$is_first = false; } ?> </ul> </div> <div class="essb-clear"></div> <?php if ($current_tab != 'analytics' && $current_tab != 'shortcode') { ESSBOptionsInterface::draw_form_start(); ESSBOptionsInterface::draw_header($section['title'], $section['hide_update_button'], $section['wizard_tab']); ESSBOptionsInterface::draw_sidebar($section['fields']); ESSBOptionsInterface::draw_content($options); ESSBOptionsInterface::draw_form_end(); ESSBOptionsFramework::register_color_selector(); ?> <?php add_thickbox(); ?> <div id="essb3-cache-instuctions" style="display: none;"> <h3 style="background-color: #f5f5f5; padding: 5px;">W3 Total Cache</h3> <ol> <li>If "Browser Cache" enabled, disable "Set expires header" in the Browser Cache settings to prevent desktop/mobile switch link issues.</li> <li>Go to the "Page Cache" settings under the "Performance" tab.</li> <li>Copy the list of mobile user agents found in the list of user agents found below.</li> <li>Scroll down to the "Rejected User Agents" field and paste the
public static function draw_content($options = array(), $custom = false, $user_settings = array()) { echo '<div class="essb-options-container" style="min-height: 840px;">'; //print_r($options); foreach ($options as $section => $fields) { printf('<div id="essb-container-%1$s" class="essb-data-container">', $section); echo '<table border="0" cellpadding="5" cellspacing="0" width="100%"> <col width="25%" /> <col width="75%" />'; $section_options = $fields; ESSBOptionsFramework::reset_row_status(); foreach ($section_options as $option) { ESSBOptionsFramework::draw_options_field($option, $custom, $user_settings); } echo '</table>'; if (count(ESSBOptionsFramework::$heading_navigations) > 1) { echo '<div class="essb-internal-navigation">'; echo '<div class="essb-internal-navigation-title">Quick Navigate <a class="essb-internal-navigation-close" href="#"></a></div>'; echo '<div class="essb-internal-navigation-inner">'; foreach (ESSBOptionsFramework::$heading_navigations as $navigation_item) { echo '<a href="#' . $navigation_item['id'] . '" data-goto="' . $navigation_item['id'] . '" class="essb-internal-navigation-item">' . $navigation_item['title'] . '</a>'; } echo '</div></div>'; } echo '</div>'; } echo '</div>'; }
public static function reset_color_selector() { self::$color_fields = array(); }
function essb3_text_readymade() { include_once ESSB3_PLUGIN_ROOT . '/lib/admin/essb-readymade-styles.php'; $goback = esc_url_raw(add_query_arg(array('import' => 'true'), 'admin.php?page=essb_redirect_import&tab=import')); $configs = array(); $count = 1; foreach ($ready_made_names as $key => $name) { $configs[$key] = array("image" => "assets/images/ready-made-" . $count . ".png", "label" => $name); $count++; } $control = array(); $control['id'] = 'ready_made'; $control['values'] = $configs; ESSBOptionsFramework::draw_image_radio_field($control['id'], $control['values']); ?> <input type="Submit" name="Submit" value="Import Ready Made Settings" class="button essb-button"> <?php }
public static function draw_content($options = array(), $min_height = '840') { echo '<div class="essb-options-container" style="min-height: ' . $min_height . 'px;">'; //print_r($options); foreach ($options as $section => $fields) { printf('<div id="essb-container-%1$s" class="essb-data-container">', $section); echo '<table border="0" cellpadding="5" cellspacing="0" width="100%"> <col width="25%" /> <col width="75%" />'; $section_options = $fields; ESSBOptionsFramework::reset_row_status(); foreach ($section_options as $option) { ESSBMetaboxOptionsFramework::draw_options_field($option); } echo '</table>'; echo '</div>'; } echo '</div>'; }