/** * Construct and display options specific to the contact form shortcode and widget. * * Requires any plugin that displays a contact form via a shortcode. * * @since 1.1.0 * * @param array $opts Optional. Saved options. * @param object $widget Optional. Widget object if displaying options for a widget. */ function blogcentral_contact_form_specific_opts($opts = array(), &$widget = false) { global $fourbzcore_plugin; $contact_opts_str = ''; if (isset($fourbzcore_plugin)) { ob_start(); $opts['name_attr_pre'] = 'blogcentral'; $fourbzcore_plugin->display_contact_opts($opts, $widget); $contact_opts_str = ob_get_clean(); } $defaults = array('contact_form_layout' => '1', 'show_contact' => false, 'show_map' => false); if ($opts) { $opts = wp_parse_args($opts, $defaults); } else { $opts = $defaults; } echo "<p class='section-title div3'>" . __('Contact Form Specific Options', BLOGCENTRAL_TXT_DOMAIN) . "</p>\n\t\t<table class='form-table'>\n\t\t\t<tbody>\n\t\t\t\t<tr>\n\t\t\t\t\t<th>" . __('Layout', BLOGCENTRAL_TXT_DOMAIN) . "</th>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<div class='group'>\n\t\t\t\t\t\t\t<input type='radio' value='1' name='" . blogcentral_get_field_name_wrap('contact_form_layout', "blogcentral[contact_form]", $widget) . "'" . checked($opts['contact_form_layout'], '1', false) . " />\n\t\t\t\t\t\t\t<label>" . __('wide', BLOGCENTRAL_TXT_DOMAIN) . "</label><br />\n\t\t\t\t\t\t\t<input type='radio' value='2' name='" . blogcentral_get_field_name_wrap('contact_form_layout', "blogcentral[contact_form]", $widget) . "'" . checked($opts['contact_form_layout'], '2', false) . " />\n\t\t\t\t\t\t\t<label>" . __('boxed', BLOGCENTRAL_TXT_DOMAIN) . "</label>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr><th>" . __('Contact Form', BLOGCENTRAL_TXT_DOMAIN) . '</th><td> <label>' . __('Enter the shortcode here to display a contact form, or leave blank and use the one entered on the theme options page.', BLOGCENTRAL_TXT_DOMAIN) . '</label> <textarea name="' . blogcentral_get_field_name_wrap('contact_form', "blogcentral[contact_form]", $widget) . '" cols="30" rows="10">'; if (isset($opts['contact_form'])) { echo esc_attr($opts['contact_form']); } echo "</textarea></td></tr> \n\t\t\t\t<tr>\n\t\t\t\t\t<th>" . __('Contact Information', BLOGCENTRAL_TXT_DOMAIN) . "</th>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<input type='checkbox' class='displaymaster' name='" . blogcentral_get_field_name_wrap('show_contact', "blogcentral[contact_form]", $widget) . "'" . checked($opts['show_contact'], 'on', false) . " /> \n\t\t\t\t\t\t<label>"; _e('Show Contact Information - depending on the screen size, it will be to the left of the contact form.', BLOGCENTRAL_TXT_DOMAIN); echo "</label><br /><br />"; echo "<div "; if (!$opts['show_contact']) { echo ' style="display:none;" '; } echo "class='hideshow'>"; blogcentral_display_contact_info_layout_opts($opts, $widget); echo $contact_opts_str; echo "</div></td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<th>" . __('Google Map', BLOGCENTRAL_TXT_DOMAIN) . "</th>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<input type='checkbox' name='" . blogcentral_get_field_name_wrap('show_map', "blogcentral[contact_form]", $widget) . "'" . checked($opts['show_map'], 'on', false) . " /> \n\t\t\t\t\t\t<label>"; _e('Show Google Map - it will be above the contact form. Enter your google application id on the theme options page.', BLOGCENTRAL_TXT_DOMAIN); echo "</label>\t\t\t\t\t\t\t\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t</tbody>\n\t\t</table>"; }
/** * Display the theme options page. * * @since 1.0.0 */ function blogcentral_theme_options() { if (!current_user_can('manage_options')) { wp_die(__('You do not have sufficient permissions to access this page.', BLOGCENTRAL_TXT_DOMAIN)); } // Get the saved settings. global $blogcentral_opts; global $blogcentral_defaults; global $blogcentral_initial; // Global plugin object. global $fourbzcore_plugin; $saved = $blogcentral_opts; if (!empty($saved)) { $saved = array_map('stripslashes_deep', $saved); foreach ($saved as $key => $val) { if (is_array($val)) { $saved[$key] = wp_parse_args($saved[$key], $blogcentral_defaults[$key]); } } $saved = wp_parse_args($saved, $blogcentral_defaults); } else { $saved = $blogcentral_initial; } $show_contact = $saved['show_contact'] ? true : false; $widget_border = $saved['widget_border'] ? $saved['widget_border'] : ''; ?> <br /> <br /> <div class="theme-options blogcentral-wrap text-format"> <div id="theme-options-header"> <div class="options-logo"> <?php _e('BlogCentral', BLOGCENTRAL_TXT_DOMAIN); ?> <span class="version"> <small><?php _e('Version: 1.1.3', BLOGCENTRAL_TXT_DOMAIN); ?> </small> </span> </div> <strong><?php _e('For tutorials, and more visit', BLOGCENTRAL_TXT_DOMAIN); ?> <a href="http://4bzthemes.com"><?php _e('Our Website', BLOGCENTRAL_TXT_DOMAIN); ?> </a> </strong> <br /><br /> <p class="pro-version" style="font-size:22px;"> <strong><a href="http://4bzthemes.com/theme/blogcentralpro"><?php _e('BlogCentral Pro- upgrade now!', BLOGCENTRAL_TXT_DOMAIN); ?> </a></strong> </p> </div> <form method="post" action="options.php" enctype="multipart/form-data" id="blogcentral_options_form"> <?php // Output hidden fields created by the Settings api. settings_fields('blogcentral'); $nonce = wp_create_nonce('blogcentral-change-demo'); // Nonce used when switching the demo. echo '<input type="hidden" name="blogcentral_demo_nonce" value="' . $nonce . '" />'; ?> <div class="blogcentral_err_msgs"></div> <div class="section"> <div class="tabs-layout2"> <ul> <li><a class="section-title" href="#blogcentral-opts"><i class="fa fa-wrench"></i> <?php _e('General', BLOGCENTRAL_TXT_DOMAIN); ?> </a></li> <li><a class="section-title" href="#blogcentral-background-colors"><i class="fa fa-list"></i> <?php _e('General Background, Colors, & Sizes', BLOGCENTRAL_TXT_DOMAIN); ?> </a></li> <li><a class="section-title" href="#blogcentral-fonts"><i class="fa fa-font"></i> <?php _e('Typography', BLOGCENTRAL_TXT_DOMAIN); ?> </a></li> <li><a class="section-title" href="#blogcentral-social"><i class="fa fa-thumbs-up"></i> <?php _e('Social Apps', BLOGCENTRAL_TXT_DOMAIN); ?> </a></li> <li><a class="section-title" href="#blogcentral-contact-info"><i class="fa fa-list"></i> <?php _e('Contact Information', BLOGCENTRAL_TXT_DOMAIN); ?> </a></li> <li><a class="section-title" href="#blogcentral-header"><i class="fa fa-list"></i> <?php _e('Header', BLOGCENTRAL_TXT_DOMAIN); ?> </a></li> <li><a class="section-title" href="#blogcentral-main-menu"><i class="fa fa-list"></i> <?php _e('Main Navigation Menu', BLOGCENTRAL_TXT_DOMAIN); ?> </a></li> <li><a class="section-title" href="#blogcentral-page-header"><i class="fa fa-list"></i> <?php _e('Page Header', BLOGCENTRAL_TXT_DOMAIN); ?> </a></li> <li><a class="section-title" href="#blogcentral-posts"><i class="fa fa-list-alt"></i> <?php _e('Posts', BLOGCENTRAL_TXT_DOMAIN); ?> </a></li> <li><a class="section-title" href="#blogcentral-footer-cont"><i class="fa fa-list"></i> <?php _e('Footer', BLOGCENTRAL_TXT_DOMAIN); ?> </a></li> <li><a class="section-title" href="#blogcentral-custom-css"><i class="fa fa-css3"></i> <?php _e('Custom CSS', BLOGCENTRAL_TXT_DOMAIN); ?> </a></li> </ul> <div id="blogcentral-opts" class="tabs-panel"> <h4><?php _e('General Settings', BLOGCENTRAL_TXT_DOMAIN); ?> </h4> <p><?php _e('Customize these options to fit your needs, or leave blank to use the default value.', BLOGCENTRAL_TXT_DOMAIN); ?> </p> <p class='section-title div3'><?php _e('Demos - choose from 3 different demos. <span class="warning">Warning:</span> Choosing a demo will delete all of your saved options. If this is not desired, backup your options before changing the demo. You have to click on the "Change Demo" button to change the demo.', BLOGCENTRAL_TXT_DOMAIN); ?> </p> <table class="form-table"> <tbody> <tr> <th> <?php _e('Demos', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <div class="group"> <input type="radio" name="blogcentral[blog_demo]" value="0"<?php checked($saved['blog_demo'], '0'); ?> /> <label><?php _e("Do not use a demo.", BLOGCENTRAL_TXT_DOMAIN); ?> </label><br /><br /> <input type="radio" name="blogcentral[blog_demo]" value="1"<?php checked($saved['blog_demo'], '1'); ?> /> <label><?php _e("Demo 1", BLOGCENTRAL_TXT_DOMAIN); ?> </label><br /> <img src='<?php echo BLOGCENTRAL_THEME_URL; ?> /images/preview/blog-demo1.jpg' alt='blog demo 1' /><br /><br /> <input type="radio" name="blogcentral[blog_demo]" value="2"<?php checked($saved['blog_demo'], '2'); ?> /> <label><?php _e("Demo 2", BLOGCENTRAL_TXT_DOMAIN); ?> </label><br /> <img src='<?php echo BLOGCENTRAL_THEME_URL; ?> /images/preview/blog-demo2.jpg' alt='blog demo 2' /><br /><br /> <input type="radio" name="blogcentral[blog_demo]" value="3"<?php checked($saved['blog_demo'], '3'); ?> /> <label><?php _e("Demo 3", BLOGCENTRAL_TXT_DOMAIN); ?> </label><br /><br /> <img src='<?php echo BLOGCENTRAL_THEME_URL; ?> /images/preview/blog-demo3.jpg' alt='blog demo 3' /><br /><br /> <input type="submit" class="button" name="blogcentral_change_blog_demo" value="Change Demo" /> </div> </td> </tr> </tbody> </table> <p class='section-title div3'><?php _e('Box Display', BLOGCENTRAL_TXT_DOMAIN); ?> </p> <table class="form-table"> <tbody> <tr> <th><?php _e('Enable block display', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <input type="checkbox" name="blogcentral[block_display]"<?php checked($saved['block_display'], 'on'); ?> /> </td> </tr> <tr> <th><?php _e('Enable box display', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <input type="checkbox" name="blogcentral[box_display]"<?php checked($saved['box_display'], 'on'); ?> /> <p class="instruction fixed"><small> <?php echo __('Box display adds a box shadow, and top and bottom margin to the main-div. Block display has to be enabled.', BLOGCENTRAL_TXT_DOMAIN); ?> </small></p> </td> </tr> </tbody> </table> <p class='section-title div3'><?php _e('Default title border', BLOGCENTRAL_TXT_DOMAIN); ?> </p> <table class="form-table"> <tbody> <tr> <th><?php _e('Shortcodes & Widgets border', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <select id='widget-border-select' class='header-border-select' name='blogcentral[widget_border]'> <?php $border_opts = blogcentral_display_border_items_select($widget_border); echo $border_opts; ?> </select> <?php if ('0' !== $widget_border) { echo "<span class='border-ex " . esc_attr($widget_border) . "'>" . esc_html($widget_border) . "</span>"; } else { echo "<span class='border-ex'></span>"; } ?> <p class='instruction fixed'><small> <?php echo __('Default border style for all widget and shortcode titles. Can be changed per shortcode or widget provided by the 4bzCore plugin.', BLOGCENTRAL_TXT_DOMAIN); ?> </small></p> </td> </tr> </tbody> </table> <p class='section-title div3'><?php _e('Show Sidebar', BLOGCENTRAL_TXT_DOMAIN); ?> </p> <table class="form-table"> <tbody> <tr> <th><?php _e('Enable sidebar', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <input type="checkbox" name="blogcentral[show_sidebar]"<?php checked($saved['show_sidebar'], 'on'); ?> /> </td> </tr> </tbody> </table> <p class='section-title div3'><?php _e('User Avatar', BLOGCENTRAL_TXT_DOMAIN); ?> </p> <table class="form-table"> <tbody> <tr> <th><?php _e('Default image for users', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <?php blogcentral_construct_upload_image($saved, 'default_user_img', false); ?> </td> </tr> </tbody> </table> <p class='section-title div3'><?php _e('Color Chooser', BLOGCENTRAL_TXT_DOMAIN); ?> </p> <table class="form-table"> <tbody> <tr> <th><?php _e('Display the color chooser', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <input type="checkbox" name="blogcentral[show_color_chooser]"<?php checked($saved['show_color_chooser'], 'on'); ?> /> </td> </tr> </tbody> </table> </div><!-- End #blogcentral-opts --> <div id="blogcentral-background-colors" class="tabs-panel"> <p class='section-title div3'><?php _e('Color Scheme', BLOGCENTRAL_TXT_DOMAIN); ?> </p> <table class="form-table"> <tbody> <tr> <th><?php _e('Color scheme', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <input type="radio" name="blogcentral[color_scheme]" value="0"<?php checked($saved["color_scheme"], '0'); ?> /> <span><?php _e('No color scheme', BLOGCENTRAL_TXT_DOMAIN); ?> </span><br /><br /> <input type="radio" name="blogcentral[color_scheme]" value="1"<?php checked($saved["color_scheme"], '1'); ?> /> <div class="color-scheme color-scheme1"></div> <br /><br /><input type="radio" name="blogcentral[color_scheme]" value="2"<?php checked($saved["color_scheme"], '2'); ?> /> <div class="color-scheme color-scheme2"></div> <br /><br /><input type="radio" name="blogcentral[color_scheme]" value="3"<?php checked($saved["color_scheme"], '3'); ?> /> <div class="color-scheme color-scheme3"></div> <br /><br /><input type="radio" name="blogcentral[color_scheme]" value="4"<?php checked($saved["color_scheme"], '4'); ?> /> <div class="color-scheme color-scheme4"></div> <br /><br /><input type="radio" name="blogcentral[color_scheme]" value="5"<?php checked($saved["color_scheme"], '5'); ?> /> <div class="color-scheme color-scheme5"></div> </td> </tr> </tbody> </table> <p class='section-title div3'><?php _e('Body', BLOGCENTRAL_TXT_DOMAIN); ?> </p> <p class="instruction fixed"><?php _e('To change the background of the body, navigate to "Appearance->Background" on the admin sidebar.', BLOGCENTRAL_TXT_DOMAIN); ?> </p><br /> <table class="form-table"> <tbody> <tr> <th><?php _e('Text color', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <label><?php _e('Choose a color.', BLOGCENTRAL_TXT_DOMAIN); ?> </label> <div class="group"> <input id="blogcentral_body_txt_color" type="text" name="blogcentral[body_txt_color]"<?php if ($saved["body_txt_color"]) { echo ' value="' . esc_attr($saved['body_txt_color']) . '"'; } ?> class="blogcentral-color-field" data-default-color="#777777" /> </div> </td> </tr> <tr> <th><?php _e('Default link color', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <label><?php _e('Default color of the links.', BLOGCENTRAL_TXT_DOMAIN); ?> </label> <div class="group"> <input id="blogcentral_body_lnk_color" type="text" name="blogcentral[body_lnk_color]" <?php if ($saved["body_lnk_color"]) { echo ' value="' . esc_attr($saved['body_lnk_color']) . '"'; } ?> class='blogcentral-color-field' data-default-color="#0071d8" /> </div> </td> </tr> <tr> <th><?php _e('Default link hover color', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <label> <?php _e('Default color of the links when hovered.', BLOGCENTRAL_TXT_DOMAIN); ?> </label> <div class="group"> <input id="blogcentral_body_lnk_hover_color" type="text" name="blogcentral[body_lnk_hover_color]"<?php if ($saved["body_lnk_hover_color"]) { echo ' value="' . esc_attr($saved['body_lnk_hover_color']) . '"'; } ?> class='blogcentral-color-field' /> <p class="instruction fixed"><small><?php _e('The default hover color is the color scheme, if chosen.', BLOGCENTRAL_TXT_DOMAIN); ?> </small></p><br /> </div> </td> </tr> <tr> <th><?php _e('Default link visited color', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <label> <?php _e('Default color of visited links.', BLOGCENTRAL_TXT_DOMAIN); ?> </label> <div class="group"> <input id="blogcentral_body_lnk_visited_color" type="text" name="blogcentral[body_lnk_visited_color]"<?php if ($saved["body_lnk_visited_color"]) { echo ' value="' . esc_attr($saved['body_lnk_visited_color']) . '"'; } ?> class="blogcentral-color-field" /> </div> </td> </tr> </tbody> </table> <p class='section-title div3'><?php _e('Main Content', BLOGCENTRAL_TXT_DOMAIN); ?> </p> <table class="form-table"> <tbody> <tr> <th><?php _e('Background color', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <label> <?php _e('This is the area that holds the main area and sidebar.', BLOGCENTRAL_TXT_DOMAIN); ?> </label> <div class="group"> <input id="blogcentral_main_content_back_color" type="text" name="blogcentral[main_content_back_color]"<?php if ($saved["main_content_back_color"]) { echo ' value="' . esc_attr($saved['main_content_back_color']) . '"'; } ?> class='blogcentral-color-field' /> </div> </td> </tr> </tbody> </table> <p class='section-title div3'><?php _e('Headers- enter size including unit of measurement, ex. 12px', BLOGCENTRAL_TXT_DOMAIN); ?> </p> <table class="form-table"> <tbody> <tr> <th><?php _e('H1', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <label> <?php _e('Font Size', BLOGCENTRAL_TXT_DOMAIN); ?> </label> <input id="blogcentral_h1_size" type="text" name="blogcentral[h1][size]"<?php if ($saved['h1']['size']) { echo 'value="' . esc_attr($saved['h1']['size']) . '"'; } ?> /> <label><?php _e('Color', BLOGCENTRAL_TXT_DOMAIN); ?> </label> <div class="group"> <input id="blogcentral_h1_color" type="text" name="blogcentral[h1][color]"<?php if ($saved['h1']['color']) { echo ' value="' . esc_attr($saved['h1']['color']) . '"'; } ?> class='blogcentral-color-field' data-default-color="#222222" /> </div> </td> </tr> <tr> <th><?php _e('H2', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <p class="instruction fixed"><small><?php _e('Setting a font size or color on this will affect the post titles in the main posts content area.', BLOGCENTRAL_TXT_DOMAIN); ?> </small></p><br /> <label><?php _e('Font Size', BLOGCENTRAL_TXT_DOMAIN); ?> </label> <input id="blogcentral_h2_size" type="text" name="blogcentral[h2][size]"<?php if ($saved['h2']['size']) { echo ' value="' . esc_attr($saved['h2']['size']) . '"'; } ?> /> <label><?php _e('Color', BLOGCENTRAL_TXT_DOMAIN); ?> </label> <div class="group"> <input id="blogcentral_h2_color" type="text" name="blogcentral[h2][color]"<?php if ($saved['h2']['color']) { echo ' value="' . esc_attr($saved['h2']['color']) . '"'; } ?> class='blogcentral-color-field' data-default-color="#222222" /> </div> </td> </tr> <tr> <th><?php _e('H3', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <label> <?php _e('Font Size', BLOGCENTRAL_TXT_DOMAIN); ?> </label> <input id="blogcentral_h3_size" type="text" name="blogcentral[h3][size]" <?php if ($saved['h3']['size']) { echo ' value="' . esc_attr($saved['h3']['size']) . '"'; } ?> /> <label><?php _e('Color', BLOGCENTRAL_TXT_DOMAIN); ?> </label> <div class="group"> <input id="blogcentral_h3_color" type="text" name="blogcentral[h3][color]"<?php if ($saved['h3']['color']) { echo ' value="' . esc_attr($saved['h3']['color']) . '"'; } ?> class='blogcentral-color-field' data-default-color="#222222" /> </div> </td> </tr> <tr> <th><?php _e('H4', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <label><?php _e('Font Size', BLOGCENTRAL_TXT_DOMAIN); ?> </label> <input id="blogcentral_h4_size" type="text" name="blogcentral[h4][size]"<?php if ($saved['h4']['size']) { echo ' value="' . esc_attr($saved['h4']['size']) . '"'; } ?> /> <label><?php _e('Color', BLOGCENTRAL_TXT_DOMAIN); ?> </label> <div class="group"> <input id="blogcentral_h4_color" type="text" name="blogcentral[h4][color]"<?php if ($saved['h4']['color']) { echo ' value="' . esc_attr($saved['h4']['color']) . '"'; } ?> class='blogcentral-color-field' data-default-color="#222222" /> </div> </td> </tr> <tr> <th><?php _e('H5', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <label><?php _e('Font Size', BLOGCENTRAL_TXT_DOMAIN); ?> </label> <input id="blogcentral_h5_size" type="text" name="blogcentral[h5][size]"<?php if ($saved['h5']['size']) { echo ' value="' . esc_attr($saved['h5']['size']) . '"'; } ?> /> <label><?php _e('Color', BLOGCENTRAL_TXT_DOMAIN); ?> </label> <div class="group"> <input id="blogcentral_h5_color" type="text" name="blogcentral[h5][color]"<?php if ($saved['h5']['color']) { echo ' value="' . esc_attr($saved['h5']['color']) . '"'; } ?> class='blogcentral-color-field' data-default-color="#222222" /> </div> </td> </tr> <tr> <th><?php _e('H6', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <label><?php _e('Font Size', BLOGCENTRAL_TXT_DOMAIN); ?> </label> <input id="blogcentral_h6_size" type="text" name="blogcentral[h6][size]"<?php if ($saved['h6']['size']) { echo ' value="' . esc_attr($saved['h6']['size']) . '"'; } ?> /> <label><?php _e('Color', BLOGCENTRAL_TXT_DOMAIN); ?> </label> <div class="group"> <input id="blogcentral_h6_color" type="text" name="blogcentral[h6][color]"<?php if ($saved['h6']['color']) { echo ' value="' . esc_attr($saved['h6']['color']) . '"'; } ?> class='blogcentral-color-field' data-default-color="#222222" /> </div> </td> </tr> </tbody> </table> </div> <div id="blogcentral-fonts" class="tabs-panel"> <p><?php _e('Customize these options to fit your needs, or leave blank to use the default value.', BLOGCENTRAL_TXT_DOMAIN); ?> </p> <?php $fonts = isset($saved['fonts']) ? $saved['fonts'] : array(); ?> <table class='form-table'> <tbody> <tr> <th><?php _e('Body text', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td id="body_txt"> <?php blogcentral_display_options_fonts($fonts, 'body_txt'); ?> </td> </tr> <tr> <th><?php _e('Headers', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td id="headers"> <?php blogcentral_display_options_fonts($fonts, 'headers'); ?> </td> </tr> <tr> <th><?php _e('Main menu', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td id="main_menu"> <?php blogcentral_display_options_fonts($fonts, 'main_menu'); ?> </td> </tr> </tbody> </table> </div> <div id="blogcentral-social" class="tabs-panel"> <p class='section-title div3'><?php _e('Social', BLOGCENTRAL_TXT_DOMAIN); ?> </p> <table class="form-table"> <tbody> <tr> <th><?php _e('Facebook', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <label><?php _e('Application id', BLOGCENTRAL_TXT_DOMAIN); ?> </label> <input type="text" name="blogcentral[facebook_app_id]"<?php if (isset($saved['facebook_app_id'])) { echo ' value="' . esc_attr($saved['facebook_app_id']) . '"'; } ?> /> </td> </tr> <tr> <th><?php _e('Google', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <label><?php _e('Application id', BLOGCENTRAL_TXT_DOMAIN); ?> </label> <input type="text" name="blogcentral[google_app_id]"<?php if (isset($saved['google_app_id'])) { echo ' value="' . esc_attr($saved['google_app_id']) . '"'; } ?> /> </td> </tr> </tbody> </table> </div> <div id="blogcentral-contact-info" class="tabs-panel"> <p><?php _e('Customize these options to fit your needs, or leave blank to use the default value. To choose an icon, click in the text box.', BLOGCENTRAL_TXT_DOMAIN); ?> </p> <p class="section-title div3"><?php _e('Requires the 4bzCore plugin to be installed and activated.', BLOGCENTRAL_TXT_DOMAIN); ?> </p> <table class='form-table'> <tbody> <?php if (isset($fourbzcore_plugin)) { ?> <tr> <th><?php _e('Contact info', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td><?php $saved['contact_info']['name'] = 'contact_info'; $saved['contact_info']['name_attr_pre'] = 'blogcentral'; $fourbzcore_plugin->display_contact_opts($saved['contact_info']); ?> </td> </tr> <tr> <th><?php _e('Contact form', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <label><?php _e('Enter the shortcode here to display a contact form.', BLOGCENTRAL_TXT_DOMAIN); ?> </label> <textarea name="blogcentral[contact_form]" cols="30" rows="10"><?php if (isset($saved['contact_form'])) { echo esc_attr($saved['contact_form']); } ?> </textarea> </td> </tr> <?php } else { ?> <tr> <td><?php _e('This theme uses the 4bzCore plugin to display contact information and/or a contact form. It is available for download from the WordPress.org repository. <a href="http://wordpress.org/plugins/4bzcore">Download Now</a>', BLOGCENTRAL_TXT_DOMAIN); ?> </td> </tr> <?php } ?> </tbody> </table> </div> <div id="blogcentral-header" class="tabs-panel"> <p><?php _e('Customize these options to fit your needs, or leave blank to use the default value.', BLOGCENTRAL_TXT_DOMAIN); ?> </p> <table class="form-table"> <tbody> <tr> <th><?php _e('Sticky header', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <div> <input type="checkbox" name="blogcentral[header_sticky]"<?php checked($saved['header_sticky'], 'on'); ?> /> <label><?php _e('Would you like the header to be fixed on top of the page on scroll?', BLOGCENTRAL_TXT_DOMAIN); ?> </label> </div> </td> </tr> <tr> <th><?php _e('Background color', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <div class="group"> <input type="text" name="blogcentral[header_back_color]"<?php if (isset($saved['header_back_color'])) { echo ' value="' . esc_attr($saved['header_back_color']) . '"'; } ?> class='blogcentral-color-field' data-default-color="#ffffff" /> </div> </td> </tr> <tr> <th><?php _e('Text color', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <div class="group"> <input type="text" name="blogcentral[header_txt_color]"<?php if (isset($saved['header_txt_color'])) { echo ' value="' . esc_attr($saved['header_txt_color']) . '"'; } ?> class='blogcentral-color-field' data-default-color="#777777" /> </div> </td> </tr> <tr> <th><?php _e('Link Color', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <div class="group"> <input type="text" name="blogcentral[header_lnk_color]"<?php if (isset($saved['header_lnk_color'])) { echo ' value="' . esc_attr($saved['header_lnk_color']) . '"'; } ?> class='blogcentral-color-field' data-default-color="#777777" /> </div> </td> </tr> <tr> <th><?php _e('Logo', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <?php blogcentral_construct_upload_image($saved, 'logo', false); ?> </td> </tr> <tr> <th><?php _e('Favicon', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <?php blogcentral_construct_upload_image($saved, 'favicon', false); ?> </td> </tr> <?php if (isset($fourbzcore_plugin)) { ?> <tr> <th><?php _e('Contact Information', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <div> <input type="checkbox" name="blogcentral[show_contact]" class="displaymaster"<?php checked($saved['show_contact'], 'on'); ?> /> <label><?php _e('Display contact information in the header top widget area. Active widgets in this area override this option.', BLOGCENTRAL_TXT_DOMAIN); ?> </label><br /><br /> <div <?php if (!$show_contact) { echo 'style="display:none;" '; } ?> class="hideshow"> <?php blogcentral_display_contact_info_layout_opts(isset($saved['contact_info']) ? $saved['contact_info'] : '', $widget); ?> </div> </div> </td> </tr> <?php } ?> <tr> <th><?php _e('Search Form', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <div> <input type="checkbox" name="blogcentral[show_search]"<?php checked($saved['show_search'], 'on'); ?> /> <label><?php _e('Display a search form in the header widget area. Active widgets in this area override this option.', BLOGCENTRAL_TXT_DOMAIN); ?> </label> </div> </td> </tr> </tbody> </table> </div> <div id="blogcentral-main-menu" class="tabs-panel"> <table class="form-table"> <tbody> <tr> <th><?php _e('Background Color', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <input id="blogcentral_menu_back_color" type="text" name="blogcentral[menu_back_color]"<?php if (isset($saved['menu_back_color'])) { echo ' value="' . esc_attr($saved['menu_back_color']) . '"'; } ?> class='blogcentral-color-field' /> </td> </tr> <tr> <th><?php _e('Link Color', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <label> <?php _e('Color of the menu links', BLOGCENTRAL_TXT_DOMAIN); ?> </label> <div class="group"> <input id="blogcentral_menu_lnk_color" type="text" name="blogcentral[menu_lnk_color]"<?php if (isset($saved['menu_lnk_color'])) { echo ' value="' . esc_attr($saved['menu_lnk_color']) . '"'; } ?> class='blogcentral-color-field' /> </div> </td> </tr> <tr> <th><?php _e('Active Link Color', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <p class="instruction fixed"><small><?php echo __("The default color is the color scheme, if set.", BLOGCENTRAL_TXT_DOMAIN); ?> </small></p><br /> <label> <?php _e('Color of the current page menu link.', BLOGCENTRAL_TXT_DOMAIN); ?> </label> <div class="group"> <input id="blogcentral_menu_active_color" type="text" name="blogcentral[menu_active_color]"<?php if (isset($saved['menu_active_color'])) { echo ' value="' . esc_attr($saved['menu_active_color']) . '"'; } ?> class='blogcentral-color-field' /> </div> </td> </tr> <tr> <th><?php _e('Sub Menus', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <label> <?php _e('Background color for all sub menus.', BLOGCENTRAL_TXT_DOMAIN); ?> </label> <div class="group"> <input id="blogcentral_submenu_back_color" type="text" name="blogcentral[submenu_back_color]"<?php if (isset($saved['submenu_back_color'])) { echo ' value="' . esc_attr($saved['submenu_back_color']) . '"'; } ?> class='blogcentral-color-field' data-default-color="#ededed" /> </div> <label> <?php _e('Color of the submenu links.', BLOGCENTRAL_TXT_DOMAIN); ?> </label> <div class="group"> <input id="blogcentral_submenu_lnk_color" type="text" name="blogcentral[submenu_lnk_color]"<?php if (isset($saved['submenu_lnk_color'])) { echo ' value="' . esc_attr($saved['submenu_lnk_color']) . '"'; } ?> class='blogcentral-color-field' data-default-color="#222222" /> </div> </td> </tr> </tbody> </table> </div> <div id="blogcentral-page-header" class="tabs-panel"> <table class="form-table"> <tbody> <tr> <td> <p class="instruction fixed"><small><?php echo __("This is the widgetized area called precontent widget. If no widgets are active, then it serves as the page header and a box with an image and an overlay that shows what page is being viewed, the blog description, today's date, and the breadcrumbs will be shown, if enabled. To disable this, leave the following field unchecked.", BLOGCENTRAL_TXT_DOMAIN); ?> </small></p><br /> <input type="checkbox" class="displaymaster" name="blogcentral[page_header]" <?php checked($saved["page_header"], "on"); ?> /> <label><?php _e('Enable Page Header', BLOGCENTRAL_TXT_DOMAIN); ?> </label> <div <?php if (!$saved['page_header']) { echo 'style="display:none;" '; } ?> class="hideshow"><br /> <div class="group"><?php blogcentral_construct_upload_image($saved, 'page_header'); ?> <label> <?php _e('Enter height with unit of measurement - leave blank to use default.', BLOGCENTRAL_TXT_DOMAIN); ?> </label> <input id="blogcentral_page_header_height" type="text" name="blogcentral[page_header_height]"<?php if (isset($saved['page_header_height'])) { echo ' value="' . esc_attr($saved['page_header_height']) . '"'; } ?> /> </div> <p><?php echo __('Layout', BLOGCENTRAL_TXT_DOMAIN); ?> </p> <div class="group"> <input type="radio" name="blogcentral[page_header_layout]" value="1"<?php checked($saved["page_header_layout"], '1'); ?> /> <label><?php _e('layout 1', BLOGCENTRAL_TXT_DOMAIN); ?> </label><br /> <img src='<?php echo BLOGCENTRAL_THEME_URL; ?> /images/preview/page-header1.jpg' alt='page header 1' /><br /><br /> <input type="radio" name="blogcentral[page_header_layout]" value="2"<?php checked($saved["page_header_layout"], '2'); ?> /> <label><?php _e('layout 2', BLOGCENTRAL_TXT_DOMAIN); ?> </label><br /> <img src='<?php echo BLOGCENTRAL_THEME_URL; ?> /images/preview/page-header2.jpg' alt='page header 2' /><br /><br /> <input type="radio" name="blogcentral[page_header_layout]" value="3"<?php checked($saved["page_header_layout"], '3'); ?> /> <label><?php _e('layout 3', BLOGCENTRAL_TXT_DOMAIN); ?> </label><br /> <img src='<?php echo BLOGCENTRAL_THEME_URL; ?> /images/preview/page-header3.jpg' alt='page header 3' /><br /><br /> </div> <label><?php _e('Page Header Text Color', BLOGCENTRAL_TXT_DOMAIN); ?> </label> <div class="group"> <input type="text" name="blogcentral[page_header_color]"<?php if (isset($saved['page_header_color'])) { echo ' value="' . esc_attr($saved['page_header_color']) . '"'; } ?> class='blogcentral-color-field' /> </div> <div class="group"> <input type="checkbox" name="blogcentral[show_todays_date]"<?php checked($saved['show_todays_date'], 'on'); ?> /> <label><?php _e("Enable show today's date", BLOGCENTRAL_TXT_DOMAIN); ?> </label> </div> <div class="group"> <input type="checkbox" name="blogcentral[breadcrumbs]"<?php checked($saved['breadcrumbs'], 'on'); ?> /> <label><?php _e('Enable breadcrumbs', BLOGCENTRAL_TXT_DOMAIN); ?> </label> </div> </div> <br /><br /> <p><?php _e('Blog description', BLOGCENTRAL_TXT_DOMAIN); ?> </p><br /> <div> <input type="checkbox" name="blogcentral[blog_info]"<?php checked($saved['blog_info'], 'on'); ?> /> <label><?php _e('Would you like to display the blog description? It will be displayed with the page title on the front posts listing page.', BLOGCENTRAL_TXT_DOMAIN); ?> </label> </div> </td> </tr> </tbody> </table> </div> <div id="blogcentral-footer-cont" class="tabs-panel"> <p><?php _e('Customize these options to fit your needs, or leave blank to use the default value.', BLOGCENTRAL_TXT_DOMAIN); ?> </p> <p class='section-title div3'><?php _e('Footer- this area has 5 widget areas. The extended option will show all of these areas, simple option will show only two of these areas. The default is to show the simple version. As always, you can add widgets on the widgets.php page.', BLOGCENTRAL_TXT_DOMAIN); ?> </p> <table class="form-table"> <tbody> <tr> <th><?php _e('Use extended version', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <input type="checkbox" name="blogcentral[footer_extended]"<?php checked($saved['footer_extended'], 'on'); ?> /> </td> </tr> <tr> <th><?php _e('Background Color', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <div class="group"> <input type="text" name="blogcentral[footer_bck_color]"<?php if (isset($saved['footer_bck_color'])) { echo ' value="' . esc_attr($saved['footer_bck_color']) . '"'; } ?> class='blogcentral-color-field' data-default-color="#2b2b2b" /> </div> </td> </tr> <tr> <th><?php _e('Text Color', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <div class="group"> <input type="text" name="blogcentral[footer_txt_color]"<?php if (isset($saved['footer_txt_color'])) { echo ' value="' . esc_attr($saved['footer_txt_color']) . '"'; } ?> class='blogcentral-color-field' data-default-color="#646464" /> </div> </td> </tr> <tr> <th><?php _e('Link Color', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <div class="group"> <input type="text" name="blogcentral[footer_lnk_color]"<?php if (isset($saved['footer_lnk_color'])) { echo ' value="' . esc_attr($saved['footer_lnk_color']) . '"'; } ?> class='blogcentral-color-field' data-default-color="#afafaf" /> </div> </td> </tr> <tr> <th><?php _e('Link Hover Color', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <div class="group"> <input type="text" name="blogcentral[footer_lnk_hover_color]"<?php if (isset($saved['footer_lnk_hover_color'])) { echo ' value="' . esc_attr($saved['footer_lnk_hover_color']) . '"'; } ?> class='blogcentral-color-field' /> </div> </td> </tr> <tr> <th><?php _e('Link Visited Color', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <div class="group"> <input type="text" name="blogcentral[footer_lnk_visited_color]"<?php if (isset($saved['footer_lnk_visited_color'])) { echo ' value="' . esc_attr($saved['footer_lnk_visited_color']) . '"'; } ?> class='blogcentral-color-field' /> </div> </td> </tr> <tr> <th><?php _e('Copyright Text', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <label><?php _e('Enter the copyright information.', BLOGCENTRAL_TXT_DOMAIN); ?> </label> <textarea id="blogcentral-copyright" name="blogcentral[copyright]" cols="50" rows="10"><?php if (isset($saved['copyright'])) { echo esc_attr($saved['copyright']); } ?> </textarea> </td> </tr> </tbody> </table> </div> <div id="blogcentral-posts" class="tabs-panel"> <p> <?php _e('Customize these options to fit your needs, or leave as-is to use the default value.', BLOGCENTRAL_TXT_DOMAIN); ?> </p> <div class="tabs-layout1 no-border"> <ul> <li><a class="section-title" href="#posts-general"><?php _e('General', BLOGCENTRAL_TXT_DOMAIN); ?> </a></li> <li><a class="section-title" href="#posts-landing-page"><?php _e('Posts Listing Pages', BLOGCENTRAL_TXT_DOMAIN); ?> </a></li> <li><a class="section-title" href="#posts-single-page"><?php _e('Single Post Page', BLOGCENTRAL_TXT_DOMAIN); ?> </a></li> </ul> <div id="posts-general" class="tabs-panel"> <?php blogcentral_display_options_posts_general(isset($saved['posts_general']) ? $saved['posts_general'] : ''); ?> </div> <div id="posts-landing-page" class="tabs-panel"> <p><?php _e('These options will affect the appearance of the posts listing in the main area on all pages that display a posts listing in a div with id #main-area.', BLOGCENTRAL_TXT_DOMAIN); ?> </p> <?php blogcentral_display_options_posts_landing(isset($saved['posts_landing']) ? $saved['posts_landing'] : ''); ?> </div> <div id="posts-single-page" class="tabs-panel"> <?php blogcentral_display_options_posts_single(isset($saved['posts_single']) ? $saved['posts_single'] : ''); ?> </div> </div> </div> <div id="blogcentral-custom-css" class="tabs-panel"> <p> <?php _e('Customize these options to fit your needs, or leave blank to use the default value.', BLOGCENTRAL_TXT_DOMAIN); ?> </p> <table class='form-table'> <tbody> <tr> <th><?php _e('Custom CSS', BLOGCENTRAL_TXT_DOMAIN); ?> </th> <td> <label><?php _e('Enter the css without style tags.', BLOGCENTRAL_TXT_DOMAIN); ?> </label> <textarea id="custom-css" name="blogcentral[custom_css]" cols="50" rows="10"><?php if (isset($saved['custom_css'])) { echo esc_attr($saved['custom_css']); } ?> </textarea> </td> </tr> </tbody> </table> </div> </div> </div> <div class="submit"> <input class="button-3" name="blogcentral_save_options" value="<?php _e('Save Options', BLOGCENTRAL_TXT_DOMAIN); ?> " type="submit" /> </div> </form> <div id="theme-options-footer"> <div class="rate-theme"> <?php _e('If you like BlogCentral and find it useful, please leave a ', BLOGCENTRAL_TXT_DOMAIN); ?> <a href="https://wordpress.org/support/view/theme-reviews/blogcentral#postform"><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i></a><?php _e(' rating. Thank you.', BLOGCENTRAL_TXT_DOMAIN); ?> </div> <div id="newsletter-signup"> <!-- Begin MailChimp Signup Form --> <div id="mc_embed_signup"> <form action="//4bzthemes.us11.list-manage.com/subscribe/post?u=9fb12b9ef798e5920165be51e&id=05db095603" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate> <div id="mc_embed_signup_scroll"> <h2><?php _e('Subscribe to our newsletter and get updates, tips, and more in your inbox.', BLOGCENTRAL_TXT_DOMAIN); ?> </h2> <div class="indicates-required"><span>*</span> <?php _e('indicates required field', BLOGCENTRAL_TXT_DOMAIN); ?> </div> <div class="mc-field-group"> <label for="mce-EMAIL"><?php _e('Email address', BLOGCENTRAL_TXT_DOMAIN); ?> <span>*</span></label> <input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL" /> </div><br /> <div class="mc-field-group"> <label for="mce-FNAME"><?php _e('First Name', BLOGCENTRAL_TXT_DOMAIN); ?> </label> <input type="text" value="" name="FNAME" class="" id="mce-FNAME" /> </div> <div class="mc-field-group"> <label for="mce-LNAME"><?php _e('Last Name', BLOGCENTRAL_TXT_DOMAIN); ?> </label> <input type="text" value="" name="LNAME" class="" id="mce-LNAME" /> </div> <div style="display:none" class="mc-field-group input-group"> <ul class="interestgroup_field checkbox-group"> <li class="below12"> <label class="checkbox" for="group_1"><input type="checkbox" data-dojo-type="dijit/form/CheckBox" id="group_1" name="group[6017][1]" value="1" class="av-checkbox" checked="checked"><span>BlogCentral</span> </label> </li> </ul> </div> <div id="mce-responses" class="clear"> <div class="response" id="mce-error-response" style="display:none"></div> <div class="response" id="mce-success-response" style="display:none"></div> </div> <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups--> <div style="position: absolute; left: -5000px;"><input type="text" name="b_9fb12b9ef798e5920165be51e_05db095603" tabindex="-1" value=""></div> <div class="clear"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"></div> </div> </form> </div> <script type='text/javascript' src='//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js'></script><script type='text/javascript'>(function($) {window.fnames = new Array(); window.ftypes = new Array();fnames[0]='EMAIL';ftypes[0]='email';fnames[1]='FNAME';ftypes[1]='text';fnames[2]='LNAME';ftypes[2]='text';}(jQuery));var $mcj = jQuery.noConflict(true);</script> <!--End mc_embed_signup--> </div> </div> </div> <?php }