Esempio n. 1
0
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 
}
Esempio n. 2
0
/**
 * Wrapper function for adding borders around large blocks
 * @since 1.0
 */
function wppb_background($name, $wppb_design_settings)
{
    wppb_display_selector($name . '_display', $wppb_design_settings, __('Display?', 'wppb_lang'));
    wppb_colour_selector($name . '_colour', $wppb_design_settings, __('Colour', 'wppb_lang'));
    wppb_background_image_selector($name . '_image', $wppb_design_settings, __('Image', 'wppb_lang'));
    wppb_imagetiling_selector($name . '_image_tiling', $wppb_design_settings, __('Image tiling', 'wppb_lang'));
}
Esempio n. 3
0
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 
}
Esempio n. 4
0
function wppb_content_editor_tab()
{
    $wppb_design_settings = get_option(WPPB_DESIGNER_SETTINGS);
    // Add HTML
    ?>
<div id="menudesign_options">
	<div id="tabs-text" class="inner-tabber">
		<ul>
			<li id="wppb_overall_options"><a href="#overall_options" title="<?php 
    _e('Overall', 'wppb_lang');
    ?>
"><?php 
    _e('Overall', 'wppb_lang');
    ?>
</a></li>
			<li id="wppb_maincontent_options"><a href="#maincontent_options" title="<?php 
    _e('Main content', 'wppb_lang');
    ?>
"><?php 
    _e('Main <br />content', 'wppb_lang');
    ?>
</a></li>
			<li id="wppb_postinfo_options"><a href="#postinfo_options" title="<?php 
    _e('Post info.', 'wppb_lang');
    ?>
"><?php 
    _e('Post info', 'wppb_lang');
    ?>
</a></li>
			<li id="wppb_pagination_options"><a href="#pagination_options" title="<?php 
    _e('Pagination', 'wppb_lang');
    ?>
"><?php 
    _e('Pagination', 'wppb_lang');
    ?>
</a></li>
			<li id="wppb_h1_options"><a href="#h1_options" title="<?php 
    _e('Heading 1', 'wppb_lang');
    ?>
"><?php 
    _e('H1', 'wppb_lang');
    ?>
</a></li>
			<li id="wppb_h2_options"><a href="#h2_options" title="<?php 
    _e('Heading 2', 'wppb_lang');
    ?>
"><?php 
    _e('H2', 'wppb_lang');
    ?>
</a></li>
			<li id="wppb_h3_options"><a href="#h3_options" title="<?php 
    _e('Heading 3', 'wppb_lang');
    ?>
"><?php 
    _e('H3', 'wppb_lang');
    ?>
</a></li>
			<li id="wppb_h4_options"><a href="#h4_options" title="<?php 
    _e('Heading 4', 'wppb_lang');
    ?>
"><?php 
    _e('H4', 'wppb_lang');
    ?>
</a></li>
			<li id="wppb_h5_options"><a href="#h5_options" title="<?php 
    _e('Heading 5', 'wppb_lang');
    ?>
"><?php 
    _e('H5', 'wppb_lang');
    ?>
</a></li>
			<li id="wppb_h6_options"><a href="#h6_options" title="<?php 
    _e('Heading 6', 'wppb_lang');
    ?>
"><?php 
    _e('H6', 'wppb_lang');
    ?>
</a></li>
			<li id="wppb_p_options"><a href="#p_options" title="<?php 
    _e('Paragraph', 'wppb_lang');
    ?>
"><?php 
    _e('P', 'wppb_lang');
    ?>
</a></li>
			<li id="wppb_li_options"><a href="#li_options" title="<?php 
    _e('List item', 'wppb_lang');
    ?>
"><?php 
    _e('LI', 'wppb_lang');
    ?>
</a></li>
			<li id="wppb_a_options"><a href="#a_options" title="<?php 
    _e('Links', 'wppb_lang');
    ?>
"><?php 
    _e('A', 'wppb_lang');
    ?>
</a></li>
		</ul>
		<div class="inner-tab-block" id="overall_options">
			<div class="section-layout">
				<h2><?php 
    _e('Background', 'wppb_lang');
    ?>
</h2>
				<?php 
    wppb_background('background', $wppb_design_settings);
    ?>
			</div>
		</div>
		<div class="inner-tab-block" id="maincontent_options">
			<?php 
    wppb_text_margins('content', $wppb_design_settings);
    ?>
			<div class="section-layout">
				<h2><?php 
    _e('Background', 'wppb_lang');
    ?>
</h2>
				<?php 
    wppb_colour_selector('maincontent_background_colour', $wppb_design_settings, __('Colour', 'wppb_lang'));
    ?>
				<?php 
    wppb_background_image_selector('maincontent_background_image', $wppb_design_settings, __('Image', 'wppb_lang'));
    ?>
				<?php 
    wppb_imagetiling_selector('maincontent_background_image_tiling', $wppb_design_settings, __('Image tiling', 'wppb_lang'));
    ?>
			</div>
			<div class="section-layout">
				<h2><?php 
    _e('Width', 'wppb_lang');
    ?>
</h2>
				<?php 
    wppb_number_selector('maincontent_maximum_width', $wppb_design_settings, __('Max width', 'wppb_lang'));
    ?>
				<?php 
    wppb_number_selector('maincontent_minimum_width', $wppb_design_settings, __('Min width', 'wppb_lang'));
    ?>
			</div>
		</div>
		<div class="inner-tab-block" id="postinfo_options">
			<div class="section-layout">
				<h2><?php 
    _e('Post info', 'wppb_lang');
    ?>
</h2>
				<?php 
    wppb_display_selector('postinfo_display', $wppb_design_settings, __('Display', 'wppb_lang'));
    ?>
			</div>
			<?php 
    wppb_text_display('postinfo', $wppb_design_settings, __('Text', 'wppb_lang'));
    wppb_text_margins('postinfo', $wppb_design_settings);
    wppb_text_padding('postinfo', $wppb_design_settings);
    wppb_text_background('postinfo', $wppb_design_settings);
    wppb_text_borders_horizontal('postinfo', $wppb_design_settings);
    ?>
		</div>
		<div class="inner-tab-block" id="pagination_options">
			<div class="section-layout">
				<h2><?php 
    _e('Pagination', 'wppb_lang');
    ?>
</h2>
				<?php 
    wppb_display_selector('pagination_display', $wppb_design_settings, __('Display', 'wppb_lang'));
    wppb_fontfamily_selector('pagination_fontfamily', $wppb_design_settings, __('Font', 'wppb_lang'), 'block fontfamily');
    wppb_number_selector('pagination_fontsize', $wppb_design_settings, __('Size', 'wppb_lang'), 'block fontsize');
    wppb_colour_selector('pagination_textcolour', $wppb_design_settings, __('Colour', 'wppb_lang'), 'block colour');
    wppb_colour_selector('pagination_texthovercolour', $wppb_design_settings, __('Colour on hover', 'wppb_lang'), 'block colour');
    wppb_fontweight_selector('pagination_font_weight', $wppb_design_settings, __('Weight', 'wppb_lang'), 'block fontweight');
    wppb_fontstyle_selector('pagination_font_style', $wppb_design_settings, __('Style', 'wppb_lang'), 'block fontstyle');
    wppb_textdecoration_selector('pagination_textdecoration', $wppb_design_settings, __('Decoration', 'wppb_lang'), 'block decoratoin');
    wppb_texttranform_selector('pagination_text_transform', $wppb_design_settings, __('Transform', 'wppb_lang'), 'block texttransform');
    wppb_smallcaps_selector('pagination_small_caps', $wppb_design_settings, __('Small caps', 'wppb_lang'), 'block smallcaps');
    ?>
			</div>
			<div class="section-layout">
			<h2><?php 
    _e('Text shadow', 'wppb_lang');
    ?>
</h3>
				<?php 
    wppb_number_selector('pagination_shadow_x_coordinate', $wppb_design_settings, __('x-coordinate', 'wppb_lang'), 'block coordinates');
    wppb_number_selector('pagination_shadow_y_coordinate', $wppb_design_settings, __('y-coordinate', 'wppb_lang'), 'block coordinates');
    wppb_number_selector('pagination_shadow_blur_radius', $wppb_design_settings, __('Blur radius', 'wppb_lang'), 'block coordinates');
    wppb_colour_selector('pagination_shadow_colour', $wppb_design_settings, __('Colour', 'wppb_lang'), 'block colour');
    ?>
			</div>
			<div class="section-layout">
				<h2><?php 
    _e('Margin', 'wppb_lang');
    ?>
</h2>
				<?php 
    wppb_number_selector('pagination_vertical_margin', $wppb_design_settings, __('Vertical margin', 'wppb_lang'), 'block coordinates');
    ?>
				<?php 
    wppb_number_selector('pagination_horizontal_margin', $wppb_design_settings, __('Horizontal margin', 'wppb_lang'), 'block coordinates');
    ?>
			</div>
			<div class="section-layout">
				<h2><?php 
    _e('Padding', 'wppb_lang');
    ?>
</h2>
				<?php 
    wppb_number_selector('pagination_padding', $wppb_design_settings, __('Padding', 'wppb_lang'), 'block coordinates');
    ?>
			</div>
			<div class="section-layout">
				<h2><?php 
    _e('Background', 'wppb_lang');
    ?>
</h2>
				<?php 
    wppb_colour_selector('pagination_background_colour', $wppb_design_settings, __('Colour', 'wppb_lang'), 'block colour');
    ?>
				<?php 
    wppb_colour_selector('pagination_background_hovercolour', $wppb_design_settings, __('Colour on hover', 'wppb_lang'), 'block colour');
    ?>
			</div>
			<div class="section-layout">
				<h2><?php 
    _e('Border', 'wppb_lang');
    ?>
</h2>
				<?php 
    wppb_number_selector('pagination_border_width', $wppb_design_settings, __('Width', 'wppb_lang'), 'block coordinates');
    ?>
				<?php 
    wppb_bordertype_selector('pagination_border_type', $wppb_design_settings, __('Type', 'wppb_lang'), 'block bordertype');
    ?>
				<?php 
    wppb_colour_selector('pagination_border_colour', $wppb_design_settings, __('Colour', 'wppb_lang'), 'block colour');
    ?>
			</div>
		</div>
		<?php 
    $count = 1;
    while ($count < 7) {
        ?>
		<div id="h<?php 
        echo $count;
        ?>
_options">
			<?php 
        wppb_text_display('heading' . $count, $wppb_design_settings, __('Heading ' . $count, 'wppb_lang'));
        wppb_text_margins('heading' . $count, $wppb_design_settings, 'block coordinates');
        wppb_text_padding('heading' . $count, $wppb_design_settings, 'block coordinates');
        wppb_text_background('heading' . $count, $wppb_design_settings);
        wppb_text_borders_horizontal('heading' . $count, $wppb_design_settings);
        $count++;
        ?>
		</div>
		<?php 
    }
    ?>
		<div id="p_options">
			<?php 
    wppb_text_display('paragraph', $wppb_design_settings, __('Paragraph', 'wppb_lang'));
    wppb_text_margins('paragraph', $wppb_design_settings, 'block coordinates');
    wppb_text_padding('paragraph', $wppb_design_settings, 'block coordinates');
    wppb_text_background('paragraph', $wppb_design_settings);
    wppb_text_borders_horizontal('paragraph', $wppb_design_settings);
    ?>
		</div>
		<div id="li_options">
			<?php 
    wppb_text_display('listitem', $wppb_design_settings, __('List items', 'wppb_lang'));
    wppb_text_margins('listitem', $wppb_design_settings);
    wppb_text_padding('listitem', $wppb_design_settings);
    wppb_text_background('listitem', $wppb_design_settings);
    wppb_text_borders_horizontal('listitem', $wppb_design_settings);
    ?>
		</div>
		<div class="inner-tab-block" id="a_options">
			<div class="section-layout">
				<h2><?php 
    _e('Links', 'wppb_lang');
    ?>
</h2>
				<?php 
    wppb_colour_selector('links_textcolour', $wppb_design_settings, __('Colour', 'wppb_lang'));
    wppb_fontweight_selector('links_font_weight', $wppb_design_settings, __('Font weight', 'wppb_lang'), 'block fontweight', 'inherit');
    wppb_fontstyle_selector('links_font_style', $wppb_design_settings, __('Font style', 'wppb_lang'), 'block', 'inherit');
    wppb_textdecoration_selector('links_textdecoration', $wppb_design_settings, __('Text decoration', 'wppb_lang'), 'block textdecoration', 'inherit');
    ?>
			</div>
			<div class="section-layout">
				<h2><?php 
    _e('Links on hover', 'wppb_lang');
    ?>
</h2>
				<?php 
    wppb_colour_selector('links_hover_textcolour', $wppb_design_settings, __('Colour', 'wppb_lang'));
    wppb_fontweight_selector('links_hover_font_weight', $wppb_design_settings, __('Font weight', 'wppb_lang'), 'block fontweight', 'inherit');
    wppb_fontstyle_selector('links_hover_font_style', $wppb_design_settings, __('Font style', 'wppb_lang'), 'block', 'inherit');
    wppb_textdecoration_selector('links_hover_textdecoration', $wppb_design_settings, __('Text decoration', 'wppb_lang'), 'block textdecoration', 'inherit');
    ?>
			</div>
		</div>
	</div>
</div>
<?php 
}
Esempio n. 5
0
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 
}