function wppb_extras_editor_tab() { $wppb_design_settings = get_option(WPPB_DESIGNER_SETTINGS); // Add HTML ?> <div class="tab-block" id="extras_options"> <div id="tabs-extras" class="inner-tabber"> <ul> <li id="wppb_overall_options"><a href="#overall_options" title="<?php _e('Overall', 'wppb_lang'); ?> "><?php _e('Banner', 'wppb_lang'); ?> </a></li> </ul> <div class="inner-tab-block" id="overall_options"> <div class="chunk"> <div class="section-layout"> <h2><?php _e('Header image', 'wppb_lang'); ?> </h2> <?php wppb_number_selector('banner_max_width', $wppb_design_settings, __('Maximum width', 'wppb_lang')); wppb_number_selector('banner_min_width', $wppb_design_settings, __('Minimum width', 'wppb_lang')); wppb_number_selector('banner_height', $wppb_design_settings, __('Height', 'wppb_lang')); wppb_background_image_selector('banner_image', $wppb_design_settings, __('Image', 'wppb_lang')); ?> </div> <?php wppb_wrapper_block('banner', $wppb_design_settings); ?> </div> </div> </div> </div> <?php }
function wppb_add_header_editor_content() { $wppb_design_settings = get_option(WPPB_DESIGNER_SETTINGS); ?> <div class="inner-tab-block" id="headeroverall_options"> <div class="section-layout"> <h2><?php _e('Overall', 'wppb_lang'); ?> </h2> <?php wppb_number_selector('header_max_width', $wppb_design_settings, __('Max width', 'wppb_lang')); ?> <?php wppb_number_selector('header_min_width', $wppb_design_settings, __('Min width', 'wppb_lang')); ?> <?php wppb_number_selector('header_height', $wppb_design_settings, __('Height', 'wppb_lang')); ?> </div> <div class="section-layout"> <h2><?php _e('Background', 'wppb_lang'); ?> </h2> <?php wppb_colour_selector('header_background_colour', $wppb_design_settings, __('Colour', 'wppb_lang')); ?> <?php wppb_background_image_selector('header_background_image', $wppb_design_settings, __('Image', 'wppb_lang')); ?> </div> <div class="section-layout"> <h2><?php _e('Full width background', 'wppb_lang'); ?> </h2> <p><?php _e('Background displayed across the full width of the site - leave blank to use the standard page background.', 'wppb_lang'); ?> </p> <?php wppb_display_selector('header_fullwidth_background_display', $wppb_design_settings, __('Display', 'wppb_lang')); ?> <?php wppb_colour_selector('header_fullwidth_background_colour', $wppb_design_settings, __('Colour', 'wppb_lang')); ?> <?php wppb_background_image_selector('header_fullwidth_background_image', $wppb_design_settings, __('Image', 'wppb_lang')); ?> </div> <?php wppb_wrapper_block('header', $wppb_design_settings); ?> </div> <div class="inner-tab-block" id="headerheading_options"> <div class="section-layout"> <h2><?php _e('Heading', 'wppb_lang'); ?> </h2> <?php wppb_display_selector('header_heading_display', $wppb_design_settings, __('Display', 'wppb_lang')); wppb_number_selector('header_heading_position_x', $wppb_design_settings, __('x-coord', 'wppb_lang')); wppb_number_selector('header_heading_position_y', $wppb_design_settings, __('y-coord', 'wppb_lang')); wppb_alignment_selector('header_heading_position_centered', $wppb_design_settings, __('Alignment', 'wppb_lang')); ?> </div> <?php wppb_text_display('header_heading', $wppb_design_settings, __('Text', 'wppb_lang')); ?> </div> <div class="inner-tab-block" id="headerdescription_options"> <div class="section-layout"> <h2><?php _e('Description', 'wppb_lang'); ?> </h2> <?php wppb_display_selector('header_description_display', $wppb_design_settings, __('Display', 'wppb_lang')); wppb_number_selector('header_description_position_x', $wppb_design_settings, __('x-coord', 'wppb_lang')); wppb_number_selector('header_description_position_y', $wppb_design_settings, __('y-coord', 'wppb_lang')); wppb_alignment_selector('header_description_position_centered', $wppb_design_settings, __('Alignment', 'wppb_lang')); ?> </div> <?php wppb_text_display('header_description', $wppb_design_settings, __('Text', 'wppb_lang')); ?> </div> <div class="inner-tab-block" id="headerlogo_options"> <div class="section-layout"> <h2><?php _e('Logo', 'wppb_lang'); ?> </h2> <?php wppb_display_selector('header_logo_display', $wppb_design_settings, __('Display', 'wppb_lang')); ?> <?php wppb_number_selector('header_logo_width', $wppb_design_settings, __('Width', 'wppb_lang')); ?> <?php wppb_number_selector('header_logo_height', $wppb_design_settings, __('Height', 'wppb_lang')); ?> <?php wppb_number_selector('header_logo_position_x', $wppb_design_settings, __('x-coord', 'wppb_lang')); ?> <?php wppb_number_selector('header_logo_position_y', $wppb_design_settings, __('y-coord', 'wppb_lang')); ?> <?php wppb_background_image_selector('header_logo_background_image', $wppb_design_settings, __('Image', 'wppb_lang')); ?> </div> </div> <div class="inner-tab-block" id="headersearch_options"> <div class="section-layout"> <h2><?php _e('Search box', 'wppb_lang'); ?> </h2> <?php wppb_display_selector('header_searchbox_display', $wppb_design_settings, __('Display', 'wppb_lang')); ?> <?php wppb_number_selector('header_searchbox_width', $wppb_design_settings, __('Width', 'wppb_lang')); ?> <?php wppb_number_selector('header_searchbox_height', $wppb_design_settings, __('Height', 'wppb_lang')); ?> <?php wppb_number_selector('header_searchbox_position_x', $wppb_design_settings, __('x-coord', 'wppb_lang')); ?> <?php wppb_number_selector('header_searchbox_position_y', $wppb_design_settings, __('y-coord', 'wppb_lang')); ?> <h3><?php _e('Background', 'wppb_lang'); ?> </h3> <?php wppb_colour_selector('header_searchbox_background_colour', $wppb_design_settings, __('Colour', 'wppb_lang')); ?> <?php wppb_background_image_selector('header_searchbox_background_image', $wppb_design_settings, __('Image', 'wppb_lang')); ?> </div> <div class="section-layout"> <h2><?php _e('Search text', 'wppb_lang'); ?> </h2> <?php wppb_text_display('searchtext', $wppb_design_settings, '', 'yes'); ?> <h3><?php _e('Dimensions', 'wppb_lang'); ?> </h3> <?php wppb_number_selector('header_searchbox_text_width', $wppb_design_settings, __('Width', 'wppb_lang')); ?> <?php wppb_number_selector('header_searchbox_text_height', $wppb_design_settings, __('Height', 'wppb_lang')); ?> <?php wppb_number_selector('header_searchbox_text_position_x', $wppb_design_settings, __('x-coord', 'wppb_lang')); ?> <?php wppb_number_selector('header_searchbox_text_position_y', $wppb_design_settings, __('y-coord', 'wppb_lang')); ?> <h3><?php _e('Background', 'wppb_lang'); ?> </h3> <?php wppb_colour_selector('header_searchbox_text_background_colour', $wppb_design_settings, __('Colour', 'wppb_lang')); ?> <?php wppb_background_image_selector('header_searchbox_text_background_image', $wppb_design_settings, __('Image', 'wppb_lang')); ?> </div> <div class="section-layout"> <h2><?php _e('Search submit', 'wppb_lang'); ?> </h2> <?php wppb_display_selector('header_searchsubmit_text_display', $wppb_design_settings, __('Display text', 'wppb_lang')); ?> <?php wppb_text_display('searchsubmit', $wppb_design_settings, '', 'yes'); ?> <h3><?php _e('Dimensions', 'wppb_lang'); ?> </h3> <?php wppb_number_selector('header_searchsubmit_text_width', $wppb_design_settings, __('Width', 'wppb_lang')); ?> <?php wppb_number_selector('header_searchsubmit_text_height', $wppb_design_settings, __('Height', 'wppb_lang')); ?> <?php wppb_number_selector('header_searchsubmit_text_position_x', $wppb_design_settings, __('x-coord', 'wppb_lang')); ?> <?php wppb_number_selector('header_searchsubmit_text_position_y', $wppb_design_settings, __('y-coord', 'wppb_lang')); ?> <h3><?php _e('Background', 'wppb_lang'); ?> </h3> <?php wppb_colour_selector('header_searchsubmit_text_background_colour', $wppb_design_settings, __('Colour', 'wppb_lang')); ?> <?php wppb_background_image_selector('header_searchsubmit_text_background_image', $wppb_design_settings, __('Image', 'wppb_lang')); ?> </div> </div><?php }
function wppb_add_menu_editor_content() { global $wppb_menu_id, $number; $wppb_designer_settings = get_option(WPPB_DESIGNER_SETTINGS); ?> <div class="inner-tab-block" id="menu<?php echo $wppb_menu_id; ?> overall_options"> <div class="section-layout"> <h2><?php _e('Menu', 'wppb_lang'); ?> </h2> <?php wppb_number_selector('menu' . $number . '_max_width', $wppb_designer_settings, __('Maximum width', 'wppb_lang')); wppb_number_selector('menu' . $number . '_min_width', $wppb_designer_settings, __('Minimum width', 'wppb_lang')); ?> </div> <div class="section-layout"> <h2><?php _e('Background', 'wppb_lang'); ?> </h2> <?php wppb_colour_selector('menu' . $number . '_background_colour', $wppb_designer_settings, __('Colour', 'wppb_lang')); wppb_background_image_selector('menu' . $number . '_background_image', $wppb_designer_settings, __('Image', 'wppb_lang')); ?> </div> <div class="section-layout"> <h2><?php _e('Full width background', 'wppb_lang'); ?> </h2> <p><?php _e('Background displayed across the full width of the site - leave blank to use the standard page background.', 'wppb_lang'); ?> </p> <?php wppb_display_selector('menu' . $number . '_fullwidth_background_display', $wppb_designer_settings, __('Display', 'wppb_lang')); ?> <?php wppb_colour_selector('menu' . $number . '_fullwidth_background_colour', $wppb_designer_settings, __('Colour', 'wppb_lang')); ?> <?php wppb_background_image_selector('menu' . $number . '_fullwidth_background_image', $wppb_designer_settings, __('Image', 'wppb_lang')); ?> </div> <?php wppb_wrapper_block('menu' . $number . '', $wppb_designer_settings); ?> </div> <div class="inner-tab-block" id="menu<?php echo $wppb_menu_id; ?> text_options"> <div class="section-layout"> <h2><?php _e('Menu items', 'wppb_lang'); ?> </h2> <?php wppb_number_selector('menu' . $number . '_indent', $wppb_designer_settings, __('Indent items', 'wppb_lang')); ?> <?php wppb_text_display('menu' . $number . '', $wppb_designer_settings, '', 'yes'); ?> </div> <?php wppb_text_background('menu' . $number . '_items', $wppb_designer_settings); ?> <div class="section-layout"> <h2><?php _e('Margins', 'wppb_lang'); ?> </h2> <?php wppb_number_selector('menu' . $number . '_margin_top', $wppb_designer_settings, __('Top', 'wppb_lang')); wppb_number_selector('menu' . $number . '_margin_bottom', $wppb_designer_settings, __('Bottom', 'wppb_lang')); wppb_number_selector('menu' . $number . '_margin_left', $wppb_designer_settings, __('Left', 'wppb_lang')); wppb_number_selector('menu' . $number . '_margin_right', $wppb_designer_settings, __('Right', 'wppb_lang')); ?> </div> <div class="section-layout"> <h2><?php _e('Padding', 'wppb_lang'); ?> </h2> <?php wppb_number_selector('menu' . $number . '_padding_top', $wppb_designer_settings, __('Top', 'wppb_lang')); wppb_number_selector('menu' . $number . '_padding_right', $wppb_designer_settings, __('Right', 'wppb_lang')); wppb_number_selector('menu' . $number . '_padding_bottom', $wppb_designer_settings, __('Bottom', 'wppb_lang')); wppb_number_selector('menu' . $number . '_padding_left', $wppb_designer_settings, __('Left', 'wppb_lang')); ?> </div> <div class="section-layout"> <h2><?php _e('Hover effects', 'wppb_lang'); ?> </h2> <?php wppb_colour_selector('menu' . $number . '_hover_textcolour', $wppb_designer_settings, __('Colour', 'wppb_lang')); wppb_fontweight_selector('menu' . $number . '_hover_font_weight', $wppb_designer_settings, __('Font weight', 'wppb_lang')); wppb_fontstyle_selector('menu' . $number . '_hover_font_style', $wppb_designer_settings, __('Font style', 'wppb_lang')); wppb_textdecoration_selector('menu' . $number . '_hover_textdecoration', $wppb_designer_settings, __('Text decoration', 'wppb_lang')); ?> <h3><?php _e('Background', 'wppb_lang'); ?> </h3> <?php wppb_colour_selector('menu' . $number . '_hover_background_colour', $wppb_designer_settings, __('Colour', 'wppb_lang'), 'block colour'); wppb_background_image_selector('menu' . $number . '_hover_background_image', $wppb_designer_settings, __('Image', 'wppb_lang')); ?> </div> </div><?php }
function wppb_add_footer_editor_content() { $wppb_design_settings = get_option(WPPB_DESIGNER_SETTINGS); ?> <div class="inner-tab-block" id="footeroverall_options"> <div class="section-layout"> <h2><?php _e('Footer', 'wppb_lang'); ?> </h2> <?php wppb_number_selector('footer_max_width', $wppb_design_settings, __('Max width', 'wppb_lang')); wppb_number_selector('footer_min_width', $wppb_design_settings, __('Min width', 'wppb_lang')); wppb_number_selector('footer_height', $wppb_design_settings, __('height', 'wppb_lang')); ?> </div> <div class="section-layout"> <h2><?php _e('Background', 'wppb_lang'); ?> </h3> <?php wppb_colour_selector('footer_background_colour', $wppb_design_settings, __('Colour', 'wppb_lang')); wppb_background_image_selector('footer_background_image', $wppb_design_settings, __('Image', 'wppb_lang')); wppb_imagetiling_selector('footer_background_image_tiling', $wppb_design_settings, __('Image tiling', 'wppb_lang')); ?> </div> <div class="section-layout"> <h2><?php _e('Full width background', 'wppb_lang'); ?> </h2> <p><?php _e('Background displayed across the full width of the site - leave blank to use the standard page background.', 'wppb_lang'); ?> </p> <?php wppb_display_selector('footer_fullwidth_background_display', $wppb_design_settings, __('Display', 'wppb_lang')); ?> <?php wppb_colour_selector('footer_fullwidth_background_colour', $wppb_design_settings, __('Colour', 'wppb_lang')); ?> <?php wppb_background_image_selector('footer_fullwidth_background_image', $wppb_design_settings, __('Image', 'wppb_lang')); ?> </div> <?php wppb_wrapper_block('footer', $wppb_design_settings); ?> </div> <div class="inner-tab-block" id="footermenu_options"> <div class="section-layout"> <h2><?php _e('Menu', 'wppb_lang'); ?> </h2> <?php wppb_display_selector('footer_menu_display', $wppb_design_settings, __('Display', 'wppb_lang')); ?> <?php wppb_alignment_selector('footer_menu_alignment', $wppb_design_settings, __('Alignment', 'wppb_lang')); ?> <?php wppb_number_selector('footer_menu_horizontalposition', $wppb_design_settings, __('x-coord', 'wppb_lang')); ?> <?php wppb_number_selector('footer_menu_verticalposition', $wppb_design_settings, __('y-coord', 'wppb_lang')); ?> <?php wppb_number_selector('footer_menu_gap', $wppb_design_settings, __('Gap', 'wppb_lang')); ?> </div> <?php wppb_text_display('footer_menu', $wppb_design_settings, __('Text', 'wppb_lang')); ?> </div> <div class="inner-tab-block" id="footercopyright_options"> <div class="section-layout"> <h2><?php _e('Copyright', 'wppb_lang'); ?> </h2> <?php wppb_display_selector('footer_copyright_display', $wppb_design_settings, __('Display', 'wppb_lang')); wppb_number_selector('footer_copyright_horizontalposition', $wppb_design_settings, __('x-coord', 'wppb_lang')); wppb_number_selector('footer_copyright_verticalposition', $wppb_design_settings, __('y-coord', 'wppb_lang')); wppb_alignment_selector('footer_copyright_position_centered', $wppb_design_settings, __('Centered', 'wppb_lang')); ?> </div> <?php wppb_text_display('footer_copyright', $wppb_design_settings, __('Text', 'wppb_lang')); ?> </div><?php }