field[ 'options' ] ) ) { return false; } $class = false; // invert if( ! empty( $this->field['invert'] ) ){ $class = 'invert'; } // meta if ( $meta ) { // page mata & builder existing items $name = $this->field['id']; } else { // theme options $name = $this->prefix .'['. $this->field['id'] .']'; } // array values if ( ! isset( $this->value ) || ! is_array( $this->value ) ) { $this->value = array(); } // output ----- echo '
'; // FIX | post meta save | all values unchecked echo ''; echo '
'; echo ''; echo '
'; echo '
'; if( ! $vb ){ echo $this->get_description(); } else { $this->enqueue(); } } /** * Enqueue */ public function enqueue() { wp_enqueue_script( 'mfn-opts-field-checkbox', MFN_OPTIONS_URI .'fields/checkbox/field_checkbox.js', array( 'jquery' ), MFN_THEME_VERSION, true ); } }