function wipfr_get_singlepage_layout($id, $parentID, $fields = "")
{
    $pages = retrieve_page_data(false, false);
    $page_select = "";
    if (!empty($pages) && is_array($pages)) {
        foreach ($pages as $pageID => $pagename) {
            $selected = '';
            if ($fields != '' && is_array($fields) && isset($fields[0]) && $fields[0] == $pageID) {
                $selected = ' selected="selected"';
            }
            $page_select .= '<option value="' . $pageID . '"' . $selected . '>' . $pagename . '</option>';
        }
    }
    $col = '<li class="layout-placer-item wip-layout-edit-inactive" id="layout-placer-item-' . $id . '">' . "\n";
    $col .= '<a class="delete_layout_item" href="#layout-placer-item-' . $id . '" title="' . __('Remove', 'wip') . '">x</a>';
    $col .= '<dl class="wip-layout-item-bar">' . "\n" . '
			<dt class="wip-layout-item-handle">' . "\n" . '
				<span class="layout-title">' . __('Page', 'wip') . '</span>' . "\n" . '
				<a class="wip-edit-layout-item" title="' . __('Edit', 'wip') . '" href="#wip-page-item-settings-' . $id . '">' . __('Edit', 'wip') . '</a>' . "\n" . '
			</dt>' . "\n" . '
			</dl>' . "\n";
    $col .= '<div class="wip-layout-item-settings" id="wip-page-item-settings-' . $id . '">' . "\n" . '
			
			<p>
			<label class="wip-label-onrow" for="single-pageid-' . $id . '">' . __('Select a page:', 'wip') . '</label>
			<select name="single-pageid[' . $id . ']" id="single-pageid-' . $id . '">
				' . $page_select . '
			</select>
			</p>
			
			<p>
			<input type="checkbox" name="show-pagetitle[' . $id . ']" id="showtop-pagetitle-' . $id . '"' . ($fields != '' && is_array($fields) && isset($fields[1]) ? $fields[1] !== '' ? ' checked="checked"' : '' : '') . '/>
			<label for="showtop-pagetitle-' . $id . '">' . __('Show Page Title?', 'wip') . '</label>
			</p>
			
			</div>' . "\n";
    $col .= '<input type="hidden" name="id[' . $parentID . '][' . $id . ']" value="' . $id . '" />';
    $col .= '<input type="hidden" name="type[' . $id . ']" value="single-page" />';
    $col .= '</li>' . "\n";
    return $col;
}
<?php

/**
 * Archive page for programa custom post type
 *
 * Methods for TimberHelper can be found in the /lib sub-directory
 *
 * @package  wp-softcatala
 */
//JS and Styles related to the page
//Template initialization
$templates = array('archive-projecte.twig');
$post = retrieve_page_data('projecte');
$post ? $context['links'] = $post->get_field('link') : '';
$title = 'En què treballem: ' . single_term_title('', false);
$contextFilterer = new SC_ContextFilterer();
$context = $contextFilterer->get_filtered_context(array('title' => $title));
$context['post'] = $post;
$context['content_title'] = $title;
$context['post_type'] = $post_type;
$context['sidebar_top'] = Timber::get_widgets('sidebar_top');
$context['sidebar_bottom'] = Timber::get_widgets('sidebar_bottom');
$context['sidebar_elements'] = array('static/suggeriment.twig', 'baixades.twig', 'links.twig');
//Posts and pagination
$args = $wp_query->query;
$context['posts'] = $sc_types['projectes']->get_sorted_projects($args);
$context['pagination'] = Timber::get_pagination();
Timber::render($templates, $context);
<?php

$templates = array('archive-esdeveniment.twig');
$title = 'Esdeveniments: ' . single_term_title('', false) . ' - Softcatalà';
$contextFilterer = new SC_ContextFilterer();
$context = $contextFilterer->get_filtered_context(array('title' => $title));
$post = retrieve_page_data('esdeveniment');
$context['cat_link'] = get_term_link(get_query_var('term'), 'esdeveniment_cat');
$context['post'] = $post;
$context['links'] = $post->get_field('link');
$context['sidebar_top'] = Timber::get_widgets('sidebar_top');
$context['sidebar_elements'] = array('baixades.twig', 'links.twig');
$context['sidebar_bottom'] = Timber::get_widgets('sidebar_bottom');
$context['categories']['temes'] = Timber::get_terms('esdeveniment_cat');
$context['filters'] = get_the_event_filters();
$context['selected_filter'] = get_query_var('filtre');
$context['content_title'] = 'Esdeveniments';
if (get_query_var('filtre')) {
    $filter = get_query_var('filtre');
    $filterdate = get_final_time($filter);
    $context['selected_filter'] = $filter;
    $date_filter_args = get_post_query_args(SearchQueryType::FilteredDate, $filterdate);
    query_posts($date_filter_args);
    $context['posts'] = Timber::get_posts($date_filter_args);
} else {
    $context['posts'] = Timber::get_posts();
}
$context['posts'] = Timber::get_posts();
$context['pagination'] = Timber::get_pagination();
Timber::render($templates, $context);
/**
 * Archive page for programa custom post type
 *
 * Methods for TimberHelper can be found in the /lib sub-directory
 *
 * @package  wp-softcatala
 */
//JS and Styles related to the page
wp_enqueue_script('sc-js-contacte', get_template_directory_uri() . '/static/js/contact_form.js', array('sc-js-main'), WP_SOFTCATALA_VERSION, true);
wp_enqueue_script('jquery-browser-plugin', get_template_directory_uri() . '/static/js/jquery.browser.min.js', array('sc-js-main'), WP_SOFTCATALA_VERSION, true);
wp_enqueue_script('sc-js-programes', get_template_directory_uri() . '/static/js/programes.js', array('sc-js-main', 'jquery-browser-plugin'), WP_SOFTCATALA_VERSION, true);
wp_localize_script('sc-js-programes', 'scajax', array('ajax_url' => admin_url('admin-ajax.php')));
//Template initialization
$templates = array('archive-programa.twig');
$post_type = get_query_var('post_type');
$post = retrieve_page_data($post_type);
$post ? $context_holder['links'] = $post->get_field('link') : '';
$context_holder['post'] = $post;
$context_holder['content_title'] = 'Programes i aplicacions';
$context_holder['post_type'] = $post_type;
$context_holder['conditions_text'] = get_option('sc_text_programes');
$context_holder['sidebar_top'] = Timber::get_widgets('sidebar_top');
$context_holder['sidebar_bottom'] = Timber::get_widgets('sidebar_bottom');
$context_holder['sidebar_elements'] = array('static/ajudeu.twig', 'static/dubte_forum.twig', 'baixades.twig', 'links.twig');
//Filters population
$context_holder['categories']['sistemes_operatius'] = Timber::get_terms('sistema-operatiu-programa');
$context_holder['categories']['categories_programes'] = Timber::get_terms('categoria-programa');
$context_holder['categories']['llicencies'] = Timber::get_terms('llicencia');
//Search and filters
$search = urldecode(get_query_var('cerca'));
$sistema_operatiu = get_query_var('sistema_operatiu');
<?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)));