$option ) { $menu .= '' . esc_html( $option['title'] ) . ''; } echo $menu; } } function options_container( $option_name, $options ) { $output = ''; if( !empty($options) ) { foreach ( $options as $key => $option ) { $output .= '
'; } } else { $output = '|
';
if(!isset($field["class"]) && isset($field['description']) && !empty($field['description'])) { $output .= ''.$field['description'].''; }
if(isset($field["class"]) && isset($field['description']) && !empty($field['description'])) { $output .= ' '.$field['description'].' '; } $output .= ' | |
| ';
if(isset($field['description']) && !empty($field['description'])) { $output .= ' '.$field['description'].' '; } $output .= ' | |
| '; if(isset($field['description']) && !empty($field['description'])) { $output .= ''.$field['description'].''; } $output .= ' | |
| ';
foreach ($field['options'] as $key => $option ) {
$output .= '';
}
if(isset($field['description']) && !empty($field['description'])) { $output .= ' '.$field['description'].' '; } $output .= ' | |
| ';
foreach ($field['options'] as $key => $option ) {
$output .= '';
}
if(isset($field['description']) && !empty($field['description'])) { $output .= ' '.$field['description'].' '; } $output .= ' | |
| '; if(isset($field['description']) && !empty($field['description'])) { $output .= ''.$field['description'].''; } $output .= ' | |
| '; if(isset($field['description']) && !empty($field['description'])) { $output .= ''.$field['description'].''; } $output .= ' | |
|
';
if(isset($field['description']) && !empty($field['description'])) { $output .= ' '.$field['description'].' '; } $output .= ' | |
| '; echo $output; $textarea_name = esc_attr( $option_name . '[' . $var. ']' ); $default_editor_settings = array( 'textarea_name' => $textarea_name, 'media_buttons' => false, 'tinymce' => array( 'plugins' => 'wordpress,wplink' ) ); $editor_settings = array(); if ( isset( $field['rows'] ) ) { $editor_settings = array( 'wpautop' => true, // Default 'textarea_rows' => $field['rows'], 'tinymce' => array( 'plugins' => 'wordpress,wplink' ) ); } $editor_settings = array_merge( $default_editor_settings, $editor_settings ); wp_editor( $settings[$var], $var, $editor_settings ); $output = ''; $output .= ' | |
| '.$field['description'].' | '; $output .= '|
| ';
foreach ($field['options'] as $key => $option) {
$checked = '';
if( isset($multicheck[$key]) ) {
$checked = checked($multicheck[$key], 1, false);
}
$output .= '' . esc_html( $option ) . '';
}
if(isset($field['description']) && !empty($field['description'])) { $output .= ' '.$field['description'].' '; } $output .= ' | |
|
';
if(!isset($field["class"]) && isset($field['description']) && !empty($field['description'])) { $output .= ''.$field['description'].''; }
if(isset($field["class"]) && isset($field['description']) && !empty($field['description'])) { $output .= ' '.$field['description'].' '; } $output .= ' |
%2$s