function wipfr_sidebarcontent_module($struc = 'sidebar_content', $id, $content = '', $forPage = false)
{
    $sidebarSelections = get_custom_sidebar_array();
    $sidebarSel = '';
    if ($forPage) {
        global $post;
        foreach ($sidebarSelections as $sb) {
            $sidebarSel .= '<option value="' . $sb . '"' . (get_option('wip_sidebarid_' . $id . '_' . $post->ID) == $sb ? ' selected="selected"' : '') . '>' . $sb . '</option>' . "\n";
        }
    } else {
        foreach ($sidebarSelections as $sb) {
            $sidebarSel .= '<option value="' . $sb . '"' . (get_option('wip_sidebarid_' . $id) == $sb ? ' selected="selected"' : '') . '>' . $sb . '</option>' . "\n";
        }
    }
    $tem = '<li id="wip-layout-item-' . $id . '" class="wip-layout-item no-border">' . "\n";
    $tem .= '<a class="delete_layout_item" href="#wip-layout-item-' . $id . '" title="' . __('Remove', 'wip') . '">x</a>';
    $tem .= '
	<div class="part-sidebar ' . ($struc != 'sidebar_content' ? 'right' : 'left') . ' wip-layout-edit-inactive">' . "\n" . '
	<dl class="wip-layout-item-bar">' . "\n" . '
		<dt class="wip-layout-item-handle">' . "\n" . '
			<span class="layout-title">' . __('Sidebar', 'wip') . '</span>' . "\n" . '
			<a class="wip-edit-layout-item" title="' . __('Edit', 'wip') . '" href="#wip-sidebar-item-settings-' . $id . '">' . __('Edit', 'wip') . '</a>' . "\n" . '
		</dt>' . "\n" . '
	</dl>' . "\n" . '
	<div class="wip-layout-item-settings" id="wip-sidebar-item-settings-' . $id . '">' . "\n" . '
	<label for="wip_sidebarid_' . $id . '">
		<select name="wip_sidebarid_' . $id . '" id="wip_sidebarid_' . $id . '" class="widefat">
		' . $sidebarSel . '
		</select>
	</label>	
	</div>' . "\n" . '
	</div>' . "\n";
    $tem .= '
	<div class="part-content ' . ($struc != 'sidebar_content' ? 'left' : 'right') . ' wip-layout-edit-inactive">' . "\n" . '
		<dl class="wip-layout-item-bar">' . "\n" . '
			<dt class="wip-layout-item-handle">' . "\n" . '
				<span class="layout-title">' . __('Content', 'wip') . '</span>' . "\n" . '
				<a class="wip-edit-layout-item" title="' . __('Edit', 'wip') . '" href="#wip-layout-item-settings-' . $id . '">' . __('Edit', 'wip') . '</a>' . "\n" . '
			</dt>' . "\n" . '
		</dl>' . "\n";
    $tem .= '<div class="wip-layout-item-settings" id="wip-layout-item-settings-' . $id . '">' . "\n" . '
			<div class="wip-layout-modules" id="wip-layout-modules-' . $id . '">' . "\n";
    if ($forPage) {
        $tem .= wipfr_page_layout_parent_modules($id);
    } else {
        $tem .= wipfr_layout_parent_modules($id);
    }
    $tem .= '</div>' . "\n";
    $tem .= '<div class="layout-placer" id="layout-placer-' . $id . '">' . "\n";
    if ($content != '') {
        $tem .= $content;
    } else {
        $tem .= '<ul class="layout-placer-lists"></ul>';
    }
    $tem .= '</div>' . "\n";
    $tem .= '</div>' . "\n";
    $tem .= '</div>' . "\n";
    $tem .= '<div class="clear"></div>' . "\n";
    if ($forPage) {
        $tem .= '<input type="hidden" name="wip_page_parent_id[' . $id . ']" value="' . $id . '" />';
    } else {
        $tem .= '<input type="hidden" name="parent_id[' . $id . ']" value="' . $id . '" />';
    }
    $tem .= '<input type="hidden" name="layout_parent[' . $id . ']" value="' . $struc . '" />';
    $tem .= '</li>' . "\n";
    return $tem;
}
function _wip_edit_fields_portfolio_cat($tag, $taxonomy)
{
    $layout = get_metadata('portfoliocategory', $tag->term_id, 'cat_layout_type', true);
    $column_type = get_metadata('portfoliocategory', $tag->term_id, 'cat_column_number', true);
    $sidebar_cat = get_metadata('portfoliocategory', $tag->term_id, 'cat_custom_sidebar', true);
    ?>

	
    <tr class="form-field">

        <th scope="row" valign="top"> <label for="cat_layout_type"><?php 
    print __('Layout', 'wip');
    ?>
</label></th>
		<td>
            <select name="cat_layout_type" id="cat_layout_type" class="postform">
                <option value="content-sidebar"<?php 
    if ($layout == '' || $layout == 'content-sidebar') {
        echo ' selected="selected"';
    }
    ?>
><?php 
    print __('Content Sidebar', 'wip');
    ?>
</option>
                <option value="sidebar-content"<?php 
    if ($layout == 'sidebar-content') {
        echo ' selected="selected"';
    }
    ?>
><?php 
    print __('Sidebar Content', 'wip');
    ?>
</option>
                <option value="fullwidth"<?php 
    if ($layout == 'fullwidth') {
        echo ' selected="selected"';
    }
    ?>
><?php 
    print __('FullWidth', 'wip');
    ?>
</option>
            </select>
            <br/>
            <span class="description"><?php 
    print __('Select the layout for this category', 'wip');
    ?>
</span>
		</td>
    </tr>


    <tr class="form-field">

        <th scope="row" valign="top"><label for="cat_column_number"><?php 
    print __('Columns type', 'wip');
    ?>
</label></th>
		<td>

            <select name="cat_column_number" id="cat_column_number" class="postform">
                <option value="2"<?php 
    if ($column_type == '2') {
        echo ' selected="selected"';
    }
    ?>
><?php 
    print __('2 Columns', 'wip');
    ?>
</option>
                <option value="3"<?php 
    if ($column_type == '' || $column_type == '3') {
        echo ' selected="selected"';
    }
    ?>
><?php 
    print __('3 Columns', 'wip');
    ?>
</option>
                <option value="4"<?php 
    if ($column_type == '4') {
        echo ' selected="selected"';
    }
    ?>
><?php 
    print __('4 Columns', 'wip');
    ?>
</option>
            </select>
            <br/>
            <span class="description"><?php 
    print __('Select a column style', 'wip');
    ?>
</span>
		</td>
    </tr>


    <tr class="form-field" id="ff_cat_custom_sidebar" style="display: <?php 
    if ($layout == 'fullwidth') {
        echo 'none';
    } else {
        echo 'table-row';
    }
    ?>
;">

        <th scope="row" valign="top"><label for="cat_custom_sidebar"><?php 
    print __('Select a sidebar', 'wip');
    ?>
</label></th>
		<td>
		
            <select name="cat_custom_sidebar" id="cat_custom_sidebar" class="postform">
				<?php 
    $get_custom_sidebars = get_custom_sidebar_array();
    if ($get_custom_sidebars != "") {
        foreach ($get_custom_sidebars as $sidebar) {
            ?>
				
					<option value="<?php 
            echo $sidebar;
            ?>
"<?php 
            if ($sidebar_cat == $sidebar) {
                echo ' selected="selected"';
            }
            ?>
><?php 
            echo $sidebar;
            ?>
</option>
					
				<?php 
        }
    }
    ?>

            </select>
            <br/>
            <span class="description"><?php 
    print __('Select a sidebar for this category', 'wip');
    ?>
</span>
		</td>
    </tr>


<script type="text/javascript">
/* <![CDATA[ */
(function($){
	$('document').ready(function(){

		$('#cat_layout_type').bind('change', function(){
			var t = $(this);

			if( t.val() == 'fullwidth' ){
				$('#ff_cat_custom_sidebar').slideUp();
			} else {
				$('#ff_cat_custom_sidebar').slideDown();
			}
		});

	});
})(jQuery);
/* ]]> */
</script>

	<?php 
}
/**
 * Blog metabox option
 */
function Blog_metabox_option()
{
    global $post;
    $PortOp = array('sidebar' => array('type' => 'select', 'id' => '_bd_sidebar_use', 'label' => __('Select a sidebar', 'wip'), 'desc' => __('Select a sidebar for this post', 'wip'), 'std' => 'Default', 'option' => get_custom_sidebar_array()), 'layout' => array('type' => 'layout', 'id' => '_bd_post_layout', 'label' => __('Select the layout', 'wip'), 'desc' => '', 'std' => 'content-sidebar'));
    return $PortOp;
}
<?php

#Define the theme name, short name, and translate id
$themename = "The_Builder";
$shortname = "bd";
$tid = "wip";
#option array
$tp_page_id = retrieve_page_data(true);
/* get page id lists */
$tp_page_name = retrieve_page_data(false);
/* get page title/name lists */
$tp_cat_id = retrieve_cat_data(true);
/* get cat id lists */
$tp_cat_name = retrieve_cat_data(false);
/* get cat title/name lists */
$sidebarOpt = get_custom_sidebar_array();
/** custom sidebar in array */
function WIP_get_options()
{
    global $shortname, $tid, $tp_page_id, $tp_page_name, $sidebarOpt;
    $fontOption = array();
    $gf = _wipfr_font_lists_array('google', 'font-name');
    $df = _wipfr_font_lists_array('standard', 'font-name');
    $fontOption[] = array("label" => '', "font" => NULL);
    $fontOption[] = array("label" => __('Google Web Font', 'wip'), "font" => $gf);
    $fontOption[] = array("label" => '', "font" => NULL);
    $fontOption[] = array("label" => __('Standard Font', 'wip'), "font" => $df);
    $WIPopt = array();
    $WIPopt['general_settings'] = array("icon" => get_template_directory_uri() . '/framework/images/gear.png', "options" => array("form" => array("type" => 'form', "ajax" => true), "logo" => array("type" => 'upload_image', "label" => __('Site logo', $tid), "id" => $shortname . '_logo', "desc" => ''), "favicon" => array("type" => 'upload_image', "label" => __('Upload your favicon', $tid), "id" => $shortname . '_favicon', "desc" => ''), "prettyPhoto" => array("type" => 'selectid', "label" => __('PrettyPhoto theme', $tid), "id" => $shortname . '_pp_style', "option" => array('Default', 'Light rounded', 'Dark rounded', 'Light square', 'Dark square', 'Facebook'), "choosen" => array('pp_default', 'light_rounded', 'dark_rounded', 'light_square', 'dark_square', 'facebook'), "std" => 'pp_default', "desc" => __('Select the prettyPhoto(lightbox) style. If you want to use prettyPhoto in single product page, you need to turn off the default lightbox in WooCommerce settings page', $tid)), "copyright" => array("type" => 'textareasmall', "label" => __('Copyright text', $tid), "id" => $shortname . '_ct', "desc" => __('Enter the copyright text.', $tid), "std" => ""), "headerscript" => array("type" => 'textareascript', "label" => __('Header script', $tid), "id" => $shortname . '_hs', "desc" => __('If you need to add scripts to your header (like Mint tracking code), enter your code here.<br> Note: do not enter any advertisement script here', $tid), "std" => ""), "footerscript" => array("type" => 'textareascript', "label" => __('Footer Script', $tid), "id" => $shortname . '_fs', "desc" => __('If you need to add scripts to your footer (like Google tracking code), enter your code here.<br> Note: do not enter any advertisement script here', $tid), "std" => ""), "close_form" => array("type" => 'close_form', "part" => 'general_settings', "reset" => true)));
    $WIPopt['layout_and_style'] = array("icon" => get_template_directory_uri() . '/framework/images/skin.png', "child" => array("first" => array("title" => __('Layout', $tid)), "font_manager" => array("form" => array("type" => 'form', "ajax" => true), "headingfont" => array("type" => 'select_label', "label" => __('Heading Font (H1 - H6)', $tid), "id" => $shortname . '_heading_font', "option" => $fontOption, "std" => 'Droid Serif', "desc" => __('Select font for heading, H1 - H6', $tid)), "bodyfont" => array("type" => 'select_label', "label" => __('Body Font', $tid), "id" => $shortname . '_body_font', "option" => $fontOption, "std" => 'Droid Sans', "desc" => __('Select font for body (text)', $tid)), "menufont" => array("type" => 'select_label', "label" => __('Main Menu Font', $tid), "id" => $shortname . '_menu_font', "option" => $fontOption, "std" => 'Droid Sans', "desc" => __('Select font for main menu', $tid)), "font_warning" => array("type" => 'label', "first-row" => true, "label" => __('Note: for best performance, if you decide to use Google Api\'s fonts - you may choose the same font for body text font and main menu font', $tid)), "close_form" => array("type" => 'close_form', "part" => 'font_manager', "reset" => false)), "general_skin" => array("form" => array("type" => 'form', "ajax" => true), "wrap_generalskin" => array("type" => 'wraper', "label" => __('Content background color', $tid), "area" => 'wrap_generalskin'), "generalbgcolor" => array("type" => 'color', "label" => __('Background Color', $tid), "id" => $shortname . '_content_bgColor', "std" => 'fafafa', "desc" => ''), "generalclear" => array("type" => 'clear_float'), "wrap_generalskin_close" => array("type" => 'wraper_close'), "headingfontcolor" => array("type" => 'color', "label" => __('Heading Font Color (H1 - H6)', $tid), "id" => $shortname . '_heading_fontcolor', "std" => '4d4d4d', "desc" => ''), "bodyfontcolor" => array("type" => 'color', "label" => __('Body Font Color', $tid), "id" => $shortname . '_body_fontcolor', "std" => '858585', "desc" => ''), "alinkcolor" => array("type" => 'color', "label" => __('Link font color', $tid), "id" => $shortname . '_general_link_color', "std" => '4d4d4d', "desc" => ''), "alinkhovercolor" => array("type" => 'color', "label" => __('Link font color on mouseover', $tid), "id" => $shortname . '_general_link_hovercolor', "std" => '2999e9', "desc" => ''), "blockquotecolor" => array("type" => 'color', "label" => __('Blockquote font color', $tid), "id" => $shortname . '_blockquote_color', "std" => '5e5e5e', "desc" => ''), "defaultbuttonbgcolor" => array("type" => 'color', "label" => __('Default submit button background color', $tid), "id" => $shortname . '_defaultbuttonbgcolor', "std" => '2999e9', "desc" => ''), "defaultbuttoncolor" => array("type" => 'color', "label" => __('Default submit button font color', $tid), "id" => $shortname . '_defaultbuttoncolor', "std" => 'fcfcfc', "desc" => ''), "wrap_sidebarskin" => array("type" => 'wraper', "label" => __('Sidebar', $tid), "area" => 'wrap_sidebarskin'), "sidebar_title_bg" => array("type" => 'color', "label" => __('Sidebar title background color', $tid), "id" => $shortname . '_sidebar_title_bg', "std" => '4f4f4f', "desc" => ''), "sidebarclear" => array("type" => 'clear_float'), "wrap_sidebarskin_close" => array("type" => 'wraper_close'), "sidebar_title_color" => array("type" => 'color', "label" => __('Sidebar title color', $tid), "id" => $shortname . '_sidebar_title_color', "std" => 'ebebeb', "desc" => ''), "sidebar_link_color" => array("type" => 'color', "label" => __('Sidebar link color', $tid), "id" => $shortname . '_sidebar_link_color', "std" => '6b6b6b', "desc" => ''), "sidebar_link_color_hover" => array("type" => 'color', "label" => __('Sidebar link color on mouseover', $tid), "id" => $shortname . '_sidebar_link_color_hover', "std" => '2999e9', "desc" => ''), "wrap_innerpagetitle" => array("type" => 'wraper', "label" => __('Inner page title area', $tid), "area" => 'wrap_innerpagetitle'), "innerpagetitlebgcolor" => array("type" => 'color', "label" => __('Background Color', $tid), "id" => $shortname . '_innerpage_title_bgColor', "std" => 'f2f2f2', "desc" => ''), "innerpagetitlebgimage" => array("type" => 'upload_background', "label" => __('background image', $tid), "id" => $shortname . '_innerpage_title_bgimage', "desc" => ''), "innerclear" => array("type" => 'clear_float'), "innerpagetitle_bgposition" => array("type" => 'select', "label" => __('Background Position', $tid), "id" => $shortname . '_innerpage_title_bg_pos', "option" => array('Left Top', 'Left Center', 'Left Bottom', 'Center Top', 'Center Center', 'Center Bottom', 'Right Top', 'Right Center', 'Right Bottom'), "std" => 'Left Top', "desc" => ''), "innerpagetitle_bgattachment" => array("type" => 'select', "label" => __('Background Attachment', $tid), "id" => $shortname . '_innerpage_title_bg_attach', "option" => array('Scroll', 'Fixed', 'Inherit'), "std" => 'Scroll', "desc" => ''), "innerpagetitle_bgrepeat" => array("type" => 'select', "label" => __('Background Repeat', $tid), "id" => $shortname . '_innerpage_title_bg_repeat', "option" => array('no-repeat', 'repeat', 'repeat-x', 'repeat-y'), "std" => 'repeat', "desc" => ''), "innerpagesclear2" => array("type" => 'clear_float'), "wrap_innerpagetitle_close" => array("type" => 'wraper_close'), "innerpagetitlefont" => array("type" => 'color', "label" => __('Title font Color', $tid), "id" => $shortname . '_innerpage_title_fontcolor', "std" => '4f4f4f', "desc" => ''), "innerpagetitlefontstyle" => array("type" => 'selectid', "label" => __('Font Style', $tid), "id" => $shortname . '_innerpage_title_fontstyle', "option" => array('Normal', 'Italic'), "choosen" => array('normal', 'italic'), "std" => 'normal', "desc" => ''), "innerpagetitlefontweight" => array("type" => 'selectid', "label" => __('Font Weight', $tid), "id" => $shortname . '_innerpage_title_fontweight', "option" => array('Normal', 'Bold'), "choosen" => array('normal', 'Bold'), "std" => 'normal', "desc" => ''), "innerpagetitlefonttransform" => array("type" => 'selectid', "label" => __('Text Transform', $tid), "id" => $shortname . '_innerpage_title_texttransform', "option" => array('None', 'Capitalize', 'Uppercase', 'Lowercase'), "choosen" => array('none', 'capitalize', 'uppercase', 'lowercase'), "std" => 'capitalize', "desc" => ''), "close_form" => array("type" => 'close_form', "part" => 'general_skin', "reset" => false)), "header_skin" => array("form" => array("type" => 'form', "ajax" => true), "wrap_headerskin" => array("type" => 'wraper', "label" => __('Header background color and image', $tid), "area" => 'wrap_headerskin'), "headerbgcolor" => array("type" => 'color', "label" => __('Background Color', $tid), "id" => $shortname . '_header_bgColor', "std" => 'fafafa', "desc" => ''), "headerbgimage" => array("type" => 'upload_background', "label" => __('background image', $tid), "id" => $shortname . '_headerbgimage', "desc" => ''), "headerclear" => array("type" => 'clear_float'), "headerbgline" => array("type" => 'color', "label" => __('Top Line Color', $tid), "id" => $shortname . '_header_bgLine', "std" => '4f4f4f', "desc" => ''), "headerbg_bgposition" => array("type" => 'select', "label" => __('Background Position', $tid), "id" => $shortname . '_header_bg_pos', "option" => array('Left Top', 'Left Center', 'Left Bottom', 'Center Top', 'Center Center', 'Center Bottom', 'Right Top', 'Right Center', 'Right Bottom'), "std" => 'Left Top', "desc" => ''), "header_bgattachment" => array("type" => 'select', "label" => __('Background Attachment', $tid), "id" => $shortname . '_header_bg_attach', "option" => array('Scroll', 'Fixed', 'Inherit'), "std" => 'Scroll', "desc" => ''), "header_bgrepeat" => array("type" => 'select', "label" => __('Background Repeat', $tid), "id" => $shortname . '_header_bg_repeat', "option" => array('no-repeat', 'repeat', 'repeat-x', 'repeat-y'), "std" => 'repeat', "desc" => ''), "headerclear2" => array("type" => 'clear_float'), "wrap_headerskin_close" => array("type" => 'wraper_close'), "toplinkcolor" => array("type" => 'color', "label" => __('Top links font color', $tid), "id" => $shortname . '_toplinkcolor', "std" => '636363', "desc" => ''), "toplinkcolorhover" => array("type" => 'color', "label" => __('Top links font color on hover', $tid), "id" => $shortname . '_toplinkhovercolor', "std" => '8c8c8c', "desc" => ''), "searchcolor" => array("type" => 'color', "label" => __('Search form font color', $tid), "id" => $shortname . '_searchcolor', "std" => '636363', "desc" => ''), "close_form" => array("type" => 'close_form', "part" => 'header_skin', "reset" => false)), "menu_skin" => array("form" => array("type" => 'form', "ajax" => true), "menuparentbg" => array("type" => 'color', "label" => __('Menu background color', $tid), "id" => $shortname . '_menuparentbg', "std" => '4f4f4f', "desc" => ''), "menuparentcolor" => array("type" => 'color', "label" => __('Menu link color', $tid), "id" => $shortname . '_menuparentcolor', "std" => 'd4d4d4', "desc" => ''), "menuparenthovercolor" => array("type" => 'color', "label" => __('Menu link color on hover', $tid), "id" => $shortname . '_menuparenthovercolor', "std" => '6cb6eb', "desc" => ''), "menudropdownbg" => array("type" => 'color', "label" => __('Menu dropdown background color', $tid), "id" => $shortname . '_menudropdownbg', "std" => '6b6b6b', "desc" => ''), "menudropdownbghover" => array("type" => 'color', "label" => __('Menu dropdown background color on hover', $tid), "id" => $shortname . '_menudropdownbghover', "std" => '737373', "desc" => ''), "menudropdowncolor" => array("type" => 'color', "label" => __('Menu dropdown link color', $tid), "id" => $shortname . '_menudropdowncolor', "std" => 'c9c9c9', "desc" => ''), "menudropdownhovercolor" => array("type" => 'color', "label" => __('Menu dropdown link color on hover', $tid), "id" => $shortname . '_menudropdownhovercolor', "std" => 'f2f2f2', "desc" => ''), "close_form" => array("type" => 'close_form', "part" => 'menu_skin', "reset" => false)), "top_shopping_cart" => array("form" => array("type" => 'form', "ajax" => true), "topcartbg" => array("type" => 'color', "label" => __('Top shopping cart background color', $tid), "id" => $shortname . '_topcartbg', "std" => '4f4f4f', "desc" => ''), "topcartnumbercolor" => array("type" => 'color', "label" => __('Cart value font color', $tid), "id" => $shortname . '_topcartnumbercolor', "std" => 'd4d4d4', "desc" => ''), "topcartdrop" => array("type" => 'label', "first-row" => false, "label" => __('Below are settings for top cart dropdown', $tid)), "topcartdropdownbg" => array("type" => 'color', "label" => __('Top shopping cart dropdown background color', $tid), "id" => $shortname . '_topcartdropdownbg', "std" => '636363', "desc" => ''), "topcartdropdownitem" => array("type" => 'color', "label" => __('Item list background color', $tid), "id" => $shortname . '_topcartdropdownitem', "std" => '757575', "desc" => ''), "topcartdropdownitemprice" => array("type" => 'color', "label" => __('Color for Price and text inside the item list', $tid), "id" => $shortname . '_topcartdropdownitemcolor', "std" => 'c7c7c7', "desc" => ''), "topcartdropdownitemlink" => array("type" => 'color', "label" => __('Link font color', $tid), "id" => $shortname . '_topcartdropdownitemlink', "std" => '93b6cf', "desc" => ''), "topcartdropdownitemlink_hover" => array("type" => 'color', "label" => __('Link font color on hover', $tid), "id" => $shortname . '_topcartdropdownitemlink_hover', "std" => 'c7c7c7', "desc" => ''), "topcartdropdownsubtotal" => array("type" => 'color', "label" => __('color for Subtotal text and amount', $tid), "id" => $shortname . '_topcartdropdownsubtotal', "std" => 'cfcfcf', "desc" => ''), "topcartdropbutton" => array("type" => 'label', "first-row" => false, "label" => __('Below are settings button on top shopping cart dropdown', $tid)), "topcartdropbuttonbg" => array("type" => 'color', "label" => __('"View Cart" and "Checkout" button background color', $tid), "id" => $shortname . '_topcartdropbuttonbg', "std" => '2999e9', "desc" => ''), "topcartdropbuttoncolor" => array("type" => 'color', "label" => __('"View Cart" and "Checkout" button font color', $tid), "id" => $shortname . '_topcartdropbuttoncolor', "std" => 'fafafa', "desc" => ''), "close_form" => array("type" => 'close_form', "part" => 'top_shopping_cart', "reset" => false)), "homepage_slider_skin" => array("form" => array("type" => 'form', "ajax" => true), "wrap_sliderskin" => array("type" => 'wraper', "label" => __('Slider area background color and image', $tid), "area" => 'wrap_sliderskin'), "sliderbgcolor" => array("type" => 'color', "label" => __('Background Color', $tid), "id" => $shortname . '_sliderbgcolor', "std" => 'f2f2f2', "desc" => ''), "sliderbgimage" => array("type" => 'upload_background', "label" => __('background image', $tid), "id" => $shortname . '_sliderbgimage', "desc" => ''), "generalclear" => array("type" => 'clear_float'), "slider_bgposition" => array("type" => 'select', "label" => __('Background Position', $tid), "id" => $shortname . '_slider_bg_pos', "option" => array('Left Top', 'Left Center', 'Left Bottom', 'Center Top', 'Center Center', 'Center Bottom', 'Right Top', 'Right Center', 'Right Bottom'), "std" => 'Left Top', "desc" => ''), "slider_bgattachment" => array("type" => 'select', "label" => __('Background Attachment', $tid), "id" => $shortname . '_slider_bg_attach', "option" => array('Scroll', 'Fixed', 'Inherit'), "std" => 'Scroll', "desc" => ''), "slider_bgrepeat" => array("type" => 'select', "label" => __('Background Repeat', $tid), "id" => $shortname . '_slider_bg_repeat', "option" => array('no-repeat', 'repeat', 'repeat-x', 'repeat-y'), "std" => 'repeat', "desc" => ''), "sliderclear2" => array("type" => 'clear_float'), "wrap_sliderskin_close" => array("type" => 'wraper_close'), "nivoslider_navbg" => array("type" => 'color', "label" => __('Nivo slider navigation background color (on normal)', $tid), "id" => $shortname . '_nivoslider_navbg', "std" => 'bfbfbf', "desc" => ''), "nivoslider_navbg_active" => array("type" => 'color', "label" => __('Nivo slider navigation background color (on active)', $tid), "id" => $shortname . '_nivoslider_navbg_active', "std" => '2999e9', "desc" => ''), "close_form" => array("type" => 'close_form', "part" => 'homepage_slider_skin', "reset" => false)), "footer_widget_skin" => array("form" => array("type" => 'form', "ajax" => true), "wrap_fwskin" => array("type" => 'wraper', "label" => __('Footer widgets area background color and image', $tid), "area" => 'wrap_fwskin'), "fwbgcolor" => array("type" => 'color', "label" => __('Background Color', $tid), "id" => $shortname . '_fwbgcolor', "std" => '636363', "desc" => ''), "fwbgimage" => array("type" => 'upload_background', "label" => __('background image', $tid), "id" => $shortname . '_fwbgimage', "desc" => ''), "bfclear" => array("type" => 'clear_float'), "fw_bgposition" => array("type" => 'select', "label" => __('Background Position', $tid), "id" => $shortname . '_fw_bg_pos', "option" => array('Left Top', 'Left Center', 'Left Bottom', 'Center Top', 'Center Center', 'Center Bottom', 'Right Top', 'Right Center', 'Right Bottom'), "std" => 'Left Top', "desc" => ''), "fw_bgattachment" => array("type" => 'select', "label" => __('Background Attachment', $tid), "id" => $shortname . '_fw_bg_attach', "option" => array('Scroll', 'Fixed', 'Inherit'), "std" => 'Scroll', "desc" => ''), "fw_bgrepeat" => array("type" => 'select', "label" => __('Background Repeat', $tid), "id" => $shortname . '_fw_bg_repeat', "option" => array('no-repeat', 'repeat', 'repeat-x', 'repeat-y'), "std" => 'repeat', "desc" => ''), "fwclear2" => array("type" => 'clear_float'), "wrap_fwskin_close" => array("type" => 'wraper_close'), "fwwidgettitlecolor" => array("type" => 'color', "label" => __('Widget title font color', $tid), "id" => $shortname . '_fwwidget_titlecolor', "std" => 'e0e0e0', "desc" => ''), "fwwidgetbordercolor" => array("type" => 'color', "label" => __('Widget title border color', $tid), "id" => $shortname . '_fwwidget_title_bordercolor', "std" => '828282', "desc" => ''), "fwheadingfontcolor" => array("type" => 'color', "label" => __('Heading Font Color (H1 - H6) for this area', $tid), "id" => $shortname . '_fwheading_fontcolor', "std" => 'c2c2c2', "desc" => ''), "fwbodyfontcolor" => array("type" => 'color', "label" => __('Content/Text Font Color for this area', $tid), "id" => $shortname . '_fwbody_fontcolor', "std" => 'bababa', "desc" => ''), "fwlinkcolor" => array("type" => 'color', "label" => __('Link font color for this area', $tid), "id" => $shortname . '_fw_link_color', "std" => 'c2c2c2', "desc" => ''), "fwlinkhovercolor" => array("type" => 'color', "label" => __('Link font color on hover for this area', $tid), "id" => $shortname . '_fw_link_hovercolor', "std" => 'ededed', "desc" => ''), "close_form" => array("type" => 'close_form', "part" => 'footer_widget_skin', "reset" => false)), "copyright_area_skin" => array("form" => array("type" => 'form', "ajax" => true), "wrap_crskin" => array("type" => 'wraper', "label" => __('Copyright area background color and image', $tid), "area" => 'wrap_crskin'), "crbgcolor" => array("type" => 'color', "label" => __('Background Color', $tid), "id" => $shortname . '_crbgcolor', "std" => '2e2e2e', "desc" => ''), "crbgimage" => array("type" => 'upload_background', "label" => __('background image', $tid), "id" => $shortname . '_crbgimage', "desc" => ''), "crclear" => array("type" => 'clear_float'), "cr_bgposition" => array("type" => 'select', "label" => __('Background Position', $tid), "id" => $shortname . '_cr_bg_pos', "option" => array('Left Top', 'Left Center', 'Left Bottom', 'Center Top', 'Center Center', 'Center Bottom', 'Right Top', 'Right Center', 'Right Bottom'), "std" => 'Left Top', "desc" => ''), "cr_bgattachment" => array("type" => 'select', "label" => __('Background Attachment', $tid), "id" => $shortname . '_cr_bg_attach', "option" => array('Scroll', 'Fixed', 'Inherit'), "std" => 'Scroll', "desc" => ''), "cr_bgrepeat" => array("type" => 'select', "label" => __('Background Repeat', $tid), "id" => $shortname . '_cr_bg_repeat', "option" => array('no-repeat', 'repeat', 'repeat-x', 'repeat-y'), "std" => 'repeat', "desc" => ''), "crclear2" => array("type" => 'clear_float'), "wrap_crskin_close" => array("type" => 'wraper_close'), "crbodyfontcolor" => array("type" => 'color', "label" => __('Text Font Color for this area', $tid), "id" => $shortname . '_crbody_fontcolor', "std" => 'bcc3c4', "desc" => ''), "crlinkcolor" => array("type" => 'color', "label" => __('Link font color for this area', $tid), "id" => $shortname . '_cr_link_color', "std" => '2999e9', "desc" => ''), "crlinkhovercolor" => array("type" => 'color', "label" => __('Link font color on hover for this area', $tid), "id" => $shortname . '_cr_link_hovercolor', "std" => 'AAAAAA', "desc" => ''), "close_form" => array("type" => 'close_form', "part" => 'copyright_area_skin', "reset" => false)), "product_section" => array("form" => array("type" => 'form', "ajax" => true), "product_lists_label" => array("type" => 'label', "first-row" => true, "label" => __('Settings for product listing', $tid)), "ribbonsale" => array("type" => 'color', "label" => __('"Sale" ribbon background color', $tid), "id" => $shortname . '_sale_ribbon_bg', "std" => '2999e9', "desc" => ''), "ribbonsalefonr" => array("type" => 'color', "label" => __('"Sale" ribbon font color', $tid), "id" => $shortname . '_sale_ribbon_font', "std" => 'fafafa', "desc" => ''), "priceareabg" => array("type" => 'color', "label" => __('Price area background color', $tid), "id" => $shortname . '_price_area_bg', "std" => '4f4f4f', "desc" => ''), "actualpricefont" => array("type" => 'color', "label" => __('Price font color', $tid), "id" => $shortname . '_actual_price_font', "std" => 'f7f7f7', "desc" => 'Price font color'), "product_lists_label_single" => array("type" => 'label', "first-row" => true, "label" => __('Settings for single product page', $tid)), "single_shoppage_price" => array("type" => 'radio', "label" => __('Product Price Ribbon Color', $tid), "id" => $shortname . '_single_shoppage_price', "desc" => __('Select the ribbon color that match with your site style.', $tid), "std" => "dark", "option" => array(__('Dark', $tid), __('Red', $tid), __('Orange', $tid), __('Green', $tid), __('Blue', $tid), __('Yellow', $tid)), "choosen" => array('dark', 'red', 'orange', 'green', 'blue', 'yellow')), "variable_product_price_bg" => array("type" => 'color', "label" => __('"Variable product" price background color', $tid), "id" => $shortname . '_variable_product_price_bg', "std" => 'f3f3f3', "desc" => __('Background color of variable product price', 'wip')), "variable_product_price_color" => array("type" => 'color', "label" => __('"Variable product" price font color', $tid), "id" => $shortname . '_variable_product_price_color', "std" => '2999e9', "desc" => __('Font color of variable product price', 'wip')), "addviewopbuttonsingle" => array("type" => 'color', "label" => __('"Add to cart" button background color on single product page', $tid), "id" => $shortname . '_addtocart_single_bg', "std" => '2999e9', "desc" => ''), "addviewopbuttoncolorsingle" => array("type" => 'color', "label" => __('"Add to cart" button font color on single product page', $tid), "id" => $shortname . '_addtocart_single_font', "std" => 'fcfcfc', "desc" => ''), "close_form" => array("type" => 'close_form', "part" => 'product_section', "reset" => false))), "options" => array("form" => array("type" => 'form', "ajax" => true), "skinlayout" => array("type" => 'radio', "label" => __('Layout Style', $tid), "id" => $shortname . '_skinlayout', "desc" => __('Select a layout style, stretched or boxed layout', $tid), "std" => "box", "option" => array(__('Stretched Layout', $tid), __('Boxed Layout', $tid)), "choosen" => array('full', 'box')), "wrap_allbackgroundcolor" => array("type" => 'wraper', "label" => __('Outer area skin settings for boxed layout', $tid), "area" => 'form_for_bd_allbackgroundcolor'), "allbackgroundcolor" => array("type" => 'color', "label" => __('background color', $tid), "id" => $shortname . '_allbackgroundcolor', "std" => 'e8e8e8'), "allbackgroundimage" => array("type" => 'upload_background', "label" => __('background image', $tid), "id" => $shortname . '_allbackgroundimage', "desc" => ''), "allbackground_bgposition" => array("type" => 'select', "label" => __('Background Position', $tid), "id" => $shortname . '_allbackground_bg_pos', "option" => array('Left Top', 'Left Center', 'Left Bottom', 'Center Top', 'Center Center', 'Center Bottom', 'Right Top', 'Right Center', 'Right Bottom'), "std" => 'Left Top', "desc" => ''), "allbackground_bgattachment" => array("type" => 'select', "label" => __('Background Attachment', $tid), "id" => $shortname . '_allbackground_bg_attach', "option" => array('Scroll', 'Fixed', 'Inherit'), "std" => 'Scroll', "desc" => ''), "allbackground_bgrepeat" => array("type" => 'select', "label" => __('Background Repeat', $tid), "id" => $shortname . '_allbackground_bg_repeat', "option" => array('no-repeat', 'repeat', 'repeat-x', 'repeat-y'), "std" => 'repeat', "desc" => ''), "wrap_allbackgroundcolor_close" => array("type" => 'wraper_close'), "close_form" => array("type" => 'close_form', "part" => 'layout_and_style', "reset" => false)));
    $WIPopt['site_elements'] = array("icon" => get_template_directory_uri() . '/framework/images/tools.png', "options" => array("form" => array("type" => 'form', "ajax" => true), "logo_position" => array("type" => 'radio', "label" => __('Logo position', $tid), "id" => $shortname . '_logo_position', "desc" => '', "std" => "left", "option" => array(__('Left', $tid), __('Right', $tid), __('Center', $tid)), "choosen" => array('left', 'right', 'center')), "top_cart_pos_action" => array("type" => 'radio', "label" => __('Top Shopping Cart Position', $tid), "id" => $shortname . '_top_cart_pos_action', "desc" => '', "std" => "default", "choosen" => array('default', 'scroll'), "option" => array(__('Stay at the header, scroll the window evertime user add item to cart', 'wip'), __('Always visible, sticky style', 'wip'))), "top_search_off" => array("type" => 'onecheck', "label" => __('Turn off the top search bar?', $tid), "id" => $shortname . '_top_search_off', "desc" => '', "std" => "0"), "top_links_beforesearch_off" => array("type" => 'onecheck', "label" => __('Turn off the links before top search form', $tid), "id" => $shortname . '_top_links_beforesearch_off', "desc" => __('Turn off the links before search form? However, these links only shown when woocommerce active', 'wip'), "std" => "1"), "top_shoppingcart_off" => array("type" => 'onecheck', "label" => __('Turn off the top shopping cart', $tid), "id" => $shortname . '_top_shoppingcart_off', "desc" => __('Turn off the top shopping cart? However, this shopping cart only shown when woocommerce active', 'wip'), "std" => "1"), "top_productsearch_off" => array("type" => 'onecheck', "label" => __('Turn off the "product search" form', $tid), "id" => $shortname . '_top_productsearch_off', "desc" => __('Turn off the "product search" form after page title in shop sections? However, this form only shown when woocommerce active', 'wip'), "std" => "1"), "footer_widget_off" => array("type" => 'onecheck', "label" => __('Turn off the footer widgets area', $tid), "id" => $shortname . '_footer_widget_off', "desc" => '', "std" => "1"), "blog_related_off" => array("type" => 'onecheck', "label" => __('Turn off the related posts in blog', $tid), "id" => $shortname . '_blog_related_off', "desc" => '', "std" => "1"), "portfolio_related_off" => array("type" => 'onecheck', "label" => __('Turn off the related projects in portfolio', $tid), "id" => $shortname . '_portfolio_related_off', "desc" => '', "std" => "1"), "close_form" => array("type" => 'close_form', "part" => 'site_elements', "reset" => true)));