abs_path_to_url( dirname( __FILE__ ) . '/toggle/toggle.js' ), array( 'jquery' ), rand(), true ); wp_enqueue_style( 'biscore-pure-css-toggle-buttons', $this->abs_path_to_url( dirname( __FILE__ ) . '/toggle/toggle.css' ), array(), rand() ); $css = ' .disabled-control-title { color: #a0a5aa; } input[type=checkbox].tgl-light:checked + .tgl-btn { background: #0085ba; } input[type=checkbox].tgl-light + .tgl-btn { background: #a0a5aa; } input[type=checkbox].tgl-light + .tgl-btn:after { background: #f7f7f7; } input[type=checkbox].tgl-ios:checked + .tgl-btn { background: #0085ba; } input[type=checkbox].tgl-flat:checked + .tgl-btn { border: 4px solid #0085ba; } input[type=checkbox].tgl-flat:checked + .tgl-btn:after { background: #0085ba; } '; wp_add_inline_style( 'pure-css-toggle-buttons', $css ); } /** * Render the control's content. * * @author soderlind * @version 1.2.0 */ public function render_content() { ?>