function cmsms_options_testimonial_fields($set_tab = false)
{
    if ($set_tab) {
        $tab = $set_tab;
    } else {
        $tab = cmsms_get_the_tab();
    }
    $options = array();
    switch ($tab) {
        case 't_page':
            $options[] = array('section' => 't_page_section', 'id' => CMSMS_SHORTNAME . '_testimonial_page_author_avatar', 'title' => __('Testimonial Author Avatar', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 't_page_section', 'id' => CMSMS_SHORTNAME . '_testimonial_page_author_descr', 'title' => __('Testimonial Author Description', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 't_page_section', 'id' => CMSMS_SHORTNAME . '_testimonial_page_date', 'title' => __('Testimonial Date', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 0);
            $options[] = array('section' => 't_page_section', 'id' => CMSMS_SHORTNAME . '_testimonial_page_cat', 'title' => __('Testimonial Categories', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 0);
            $options[] = array('section' => 't_page_section', 'id' => CMSMS_SHORTNAME . '_testimonial_page_comment', 'title' => __('Testimonial Comments', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 0);
            $options[] = array('section' => 't_page_section', 'id' => CMSMS_SHORTNAME . '_testimonial_page_more', 'title' => __('Read More', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            break;
        case 't_post':
            $options[] = array('section' => 't_post_section', 'id' => CMSMS_SHORTNAME . '_testimonial_post_layout', 'title' => __('Layout Type', 'cmsmasters'), 'desc' => '', 'type' => 'radio_img', 'std' => 'r_sidebar', 'choices' => array(__('Right Sidebar', 'cmsmasters') . '|' . get_template_directory_uri() . '/framework/admin/inc/img/sidebar_r.png' . '|r_sidebar', __('Left Sidebar', 'cmsmasters') . '|' . get_template_directory_uri() . '/framework/admin/inc/img/sidebar_l.png' . '|l_sidebar', __('Full Width', 'cmsmasters') . '|' . get_template_directory_uri() . '/framework/admin/inc/img/fullwidth.png' . '|fullwidth'));
            $options[] = array('section' => 't_post_section', 'id' => CMSMS_SHORTNAME . '_testimonial_post_author_avatar', 'title' => __('Testimonial Author Avatar', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 't_post_section', 'id' => CMSMS_SHORTNAME . '_testimonial_post_author_descr', 'title' => __('Testimonial Author Description', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 't_post_section', 'id' => CMSMS_SHORTNAME . '_testimonial_post_date', 'title' => __('Testimonial Date', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 0);
            $options[] = array('section' => 't_post_section', 'id' => CMSMS_SHORTNAME . '_testimonial_post_cat', 'title' => __('Testimonial Categories', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 0);
            $options[] = array('section' => 't_post_section', 'id' => CMSMS_SHORTNAME . '_testimonial_post_comment', 'title' => __('Testimonial Comments', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 0);
            $options[] = array('section' => 't_post_section', 'id' => CMSMS_SHORTNAME . '_testimonial_post_nav_box', 'title' => __('Testimonials Navigation Box', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 't_post_section', 'id' => CMSMS_SHORTNAME . '_testimonial_post_share_box', 'title' => __('Sharing Box', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 't_post_section', 'id' => CMSMS_SHORTNAME . '_testimonial_post_more_testimonials_box', 'title' => __('More Testimonials Box', 'cmsmasters'), 'desc' => '', 'type' => 'multi-checkbox', 'std' => array('popular' => 'true', 'recent' => 'true'), 'choices' => array(__('Show Popular Tab', 'cmsmasters') . '|popular', __('Show Recent Tab', 'cmsmasters') . '|recent'));
            $options[] = array('section' => 't_post_section', 'id' => CMSMS_SHORTNAME . '_testimonial_post_p_l_number', 'title' => __('Popular & Latest Testimonials Boxes Items Number', 'cmsmasters'), 'desc' => __('testimonials', 'cmsmasters'), 'type' => 'number', 'std' => '4');
            break;
    }
    return $options;
}
function cmsms_options_portfolio_fields($set_tab = false)
{
    if ($set_tab) {
        $tab = $set_tab;
    } else {
        $tab = cmsms_get_the_tab();
    }
    $options = array();
    switch ($tab) {
        case 'full':
            $options[] = array('section' => 'full_section', 'id' => CMSMS_SHORTNAME . '_portfolio_full_title', 'title' => __('Project Title', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 'full_section', 'id' => CMSMS_SHORTNAME . '_portfolio_full_descr', 'title' => __('Project Description', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 0);
            $options[] = array('section' => 'full_section', 'id' => CMSMS_SHORTNAME . '_portfolio_full_cat', 'title' => __('Project Categories', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 0);
            $options[] = array('section' => 'full_section', 'id' => CMSMS_SHORTNAME . '_portfolio_full_date', 'title' => __('Project Date', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            break;
        case 'project':
            $options[] = array('section' => 'project_section', 'id' => CMSMS_SHORTNAME . '_portfolio_project_layout', 'title' => __('Layout Type', 'cmsmasters'), 'desc' => '', 'type' => 'radio_img', 'std' => 'fullwidth', 'choices' => array(__('Right Sidebar', 'cmsmasters') . '|' . get_template_directory_uri() . '/framework/admin/inc/img/sidebar_r.png' . '|r_sidebar', __('Left Sidebar', 'cmsmasters') . '|' . get_template_directory_uri() . '/framework/admin/inc/img/sidebar_l.png' . '|l_sidebar', __('Full Width', 'cmsmasters') . '|' . get_template_directory_uri() . '/framework/admin/inc/img/fullwidth.png' . '|fullwidth'));
            $options[] = array('section' => 'project_section', 'id' => CMSMS_SHORTNAME . '_portfolio_project_title', 'title' => __('Project Title', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 0);
            $options[] = array('section' => 'project_section', 'id' => CMSMS_SHORTNAME . '_portfolio_project_date', 'title' => __('Project Date', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 'project_section', 'id' => CMSMS_SHORTNAME . '_portfolio_project_cat', 'title' => __('Project Categories', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 'project_section', 'id' => CMSMS_SHORTNAME . '_portfolio_project_author', 'title' => __('Project Author', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 'project_section', 'id' => CMSMS_SHORTNAME . '_portfolio_project_comment', 'title' => __('Project Comments', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 0);
            $options[] = array('section' => 'project_section', 'id' => CMSMS_SHORTNAME . '_portfolio_project_tag', 'title' => __('Project Tags', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 0);
            $options[] = array('section' => 'project_section', 'id' => CMSMS_SHORTNAME . '_portfolio_project_link', 'title' => __('Project Link', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 0);
            $options[] = array('section' => 'project_section', 'id' => CMSMS_SHORTNAME . '_portfolio_project_nav_box', 'title' => __('Projects Navigation Box', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 'project_section', 'id' => CMSMS_SHORTNAME . '_portfolio_project_share_box', 'title' => __('Sharing Box', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 'project_section', 'id' => CMSMS_SHORTNAME . '_portfolio_project_author_box', 'title' => __('About Author Box', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 'project_section', 'id' => CMSMS_SHORTNAME . '_portfolio_more_projects_box', 'title' => __('More Projects Box', 'cmsmasters'), 'desc' => '', 'type' => 'multi-checkbox', 'std' => array('related' => 'true', 'popular' => 'true', 'recent' => 'true'), 'choices' => array(__('Show Related Tab', 'cmsmasters') . '|related', __('Show Popular Tab', 'cmsmasters') . '|popular', __('Show Recent Tab', 'cmsmasters') . '|recent'));
            $options[] = array('section' => 'project_section', 'id' => CMSMS_SHORTNAME . '_portfolio_project_r_p_l_number', 'title' => __('Related, Popular & Latest Projects Boxes Items Number', 'cmsmasters'), 'desc' => __('projects', 'cmsmasters'), 'type' => 'number', 'std' => '4');
            break;
    }
    return $options;
}
function cmsms_options_logo_fields($set_tab = false)
{
    if ($set_tab) {
        $tab = $set_tab;
    } else {
        $tab = cmsms_get_the_tab();
    }
    $options = array();
    switch ($tab) {
        case 'image':
            $options[] = array('section' => 'image_section', 'id' => CMSMS_SHORTNAME . '_logo_url', 'title' => __('Custom Logo URL', 'cmsmasters'), 'desc' => __('Choose your custom website logo image url.', 'cmsmasters'), 'type' => 'upload', 'std' => get_template_directory_uri() . '/img/logo.png');
            $options[] = array('section' => 'image_section', 'id' => CMSMS_SHORTNAME . '_logo_width', 'title' => __('Logo Image Width', 'cmsmasters'), 'desc' => __('pixels', 'cmsmasters'), 'type' => 'number', 'std' => '120');
            $options[] = array('section' => 'image_section', 'id' => CMSMS_SHORTNAME . '_logo_height', 'title' => __('Logo Image Height', 'cmsmasters'), 'desc' => __('pixels', 'cmsmasters'), 'type' => 'number', 'std' => '70');
            $options[] = array('section' => 'image_section', 'id' => CMSMS_SHORTNAME . '_logo_top', 'title' => __('Logo Top Position', 'cmsmasters'), 'desc' => __('pixels', 'cmsmasters'), 'type' => 'number', 'std' => '35');
            $options[] = array('section' => 'image_section', 'id' => CMSMS_SHORTNAME . '_logo_left', 'title' => __('Logo Left Position', 'cmsmasters'), 'desc' => __('pixels', 'cmsmasters'), 'type' => 'number', 'std' => '0');
            break;
        case 'text':
            $options[] = array('section' => 'text_section', 'id' => CMSMS_SHORTNAME . '_text_logo', 'title' => __('Text Logo', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 0);
            $options[] = array('section' => 'text_section', 'id' => CMSMS_SHORTNAME . '_text_logo_title', 'title' => __('Custom Logo Title', 'cmsmasters'), 'desc' => '', 'type' => 'text', 'std' => get_bloginfo('name') ? get_bloginfo('name') : 'Industrial', 'class' => 'nohtml');
            $options[] = array('section' => 'text_section', 'id' => CMSMS_SHORTNAME . '_text_logo_subtitle', 'title' => __('Logo Subtitle', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 0);
            $options[] = array('section' => 'text_section', 'id' => CMSMS_SHORTNAME . '_text_logo_subtitle_text', 'title' => __('Custom Logo Subtitle', 'cmsmasters'), 'desc' => '', 'type' => 'text', 'std' => get_bloginfo('description') ? get_bloginfo('description') : 'Corporate & Business', 'class' => 'nohtml');
            break;
        case 'favicon':
            $options[] = array('section' => 'favicon_section', 'id' => CMSMS_SHORTNAME . '_favicon', 'title' => __('Favicon', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 'favicon_section', 'id' => CMSMS_SHORTNAME . '_favicon_url', 'title' => __('Custom Favicon URL', 'cmsmasters'), 'desc' => __('Choose your custom website favicon image url.', 'cmsmasters'), 'type' => 'upload', 'std' => get_template_directory_uri() . '/img/favicon.ico');
            break;
    }
    return $options;
}
function cmsms_options_font_fields($set_tab = false)
{
    if ($set_tab) {
        $tab = $set_tab;
    } else {
        $tab = cmsms_get_the_tab();
    }
    $options = array();
    switch ($tab) {
        case 'content':
            $options[] = array('section' => 'content_section', 'id' => CMSMS_SHORTNAME . '_content_font', 'title' => __('Main Content Font', 'cmsmasters'), 'desc' => '', 'type' => 'typorgaphy', 'std' => array('system_font' => "Arial, Helvetica, 'Nimbus Sans L', sans-serif", 'google_font' => '', 'font_color' => '#202020', 'font_size' => '13', 'line_height' => '18', 'font_weight' => 'normal', 'font_style' => 'normal'), 'choices' => array('system_font', 'google_font', 'font_color', 'font_size', 'line_height', 'font_weight', 'font_style'));
            break;
        case 'link':
            $options[] = array('section' => 'link_section', 'id' => CMSMS_SHORTNAME . '_link_font', 'title' => __('Links Font', 'cmsmasters'), 'desc' => '', 'type' => 'typorgaphy', 'std' => array('system_font' => "Arial, Helvetica, 'Nimbus Sans L', sans-serif", 'google_font' => '', 'font_color' => '#57a2bc', 'font_size' => '13', 'line_height' => '18', 'font_weight' => 'normal', 'font_style' => 'normal'), 'choices' => array('system_font', 'google_font', 'font_color', 'font_size', 'line_height', 'font_weight', 'font_style'));
            $options[] = array('section' => 'link_section', 'id' => CMSMS_SHORTNAME . '_link_font_hover', 'title' => __('Links Font Hover Color', 'cmsmasters'), 'desc' => '', 'type' => 'color', 'std' => '#b0b0b0');
            $options[] = array('section' => 'link_section', 'id' => CMSMS_SHORTNAME . '_footer_link_font', 'title' => __('Footer Links Font', 'cmsmasters'), 'desc' => '', 'type' => 'color', 'std' => '#cbccc2');
            $options[] = array('section' => 'link_section', 'id' => CMSMS_SHORTNAME . '_footer_font_hover', 'title' => __('Footer Links Font Hover Color', 'cmsmasters'), 'desc' => '', 'type' => 'color', 'std' => '#323232');
            break;
        case 'nav':
            $options[] = array('section' => 'nav_section', 'id' => CMSMS_SHORTNAME . '_nav_title_font', 'title' => __('Navigation Title Font', 'cmsmasters'), 'desc' => '', 'type' => 'typorgaphy', 'std' => array('system_font' => "Arial, Helvetica, 'Nimbus Sans L', sans-serif", 'google_font' => 'Raleway:200,400,600,700', 'font_color' => '#cc3300', 'font_size' => '16', 'line_height' => '20', 'font_weight' => 'normal', 'font_style' => 'normal'), 'choices' => array('system_font', 'google_font', 'font_color', 'font_size', 'line_height', 'font_weight', 'font_style'));
            $options[] = array('section' => 'nav_section', 'id' => CMSMS_SHORTNAME . '_nav_title_font_hover', 'title' => __('Navigation Title Hover Color', 'cmsmasters'), 'desc' => '', 'type' => 'color', 'std' => '#323232');
            $options[] = array('section' => 'nav_section', 'id' => CMSMS_SHORTNAME . '_nav_dropdown_font', 'title' => __('Navigation Dropdown Font', 'cmsmasters'), 'desc' => '', 'type' => 'typorgaphy', 'std' => array('system_font' => "Arial, Helvetica, 'Nimbus Sans L', sans-serif", 'google_font' => 'Raleway:200,400,600,700', 'font_color' => '#b0b0b0', 'font_size' => '13', 'line_height' => '20', 'font_weight' => 'normal', 'font_style' => 'normal'), 'choices' => array('system_font', 'google_font', 'font_color', 'font_size', 'line_height', 'font_weight', 'font_style'));
            $options[] = array('section' => 'nav_section', 'id' => CMSMS_SHORTNAME . '_nav_dropdown_font_hover', 'title' => __('Navigation Dropdown Hover Color', 'cmsmasters'), 'desc' => '', 'type' => 'color', 'std' => '#323232');
            break;
        case 'h1':
            $options[] = array('section' => 'h1_section', 'id' => CMSMS_SHORTNAME . '_h1_font', 'title' => __('H1 Tag Font', 'cmsmasters'), 'desc' => '', 'type' => 'typorgaphy', 'std' => array('system_font' => "Arial, Helvetica, 'Nimbus Sans L', sans-serif", 'google_font' => 'Raleway:200,400,600,700', 'font_color' => '#323232', 'font_size' => '44', 'line_height' => '56', 'font_weight' => '600', 'font_style' => 'normal'), 'choices' => array('system_font', 'google_font', 'font_color', 'font_size', 'line_height', 'font_weight', 'font_style'));
            break;
        case 'h2':
            $options[] = array('section' => 'h2_section', 'id' => CMSMS_SHORTNAME . '_h2_font', 'title' => __('H2 Tag Font', 'cmsmasters'), 'desc' => '', 'type' => 'typorgaphy', 'std' => array('system_font' => "Arial, Helvetica, 'Nimbus Sans L', sans-serif", 'google_font' => 'Raleway:200,400,600,700', 'font_color' => '#323232', 'font_size' => '24', 'line_height' => '36', 'font_weight' => 'normal', 'font_style' => 'normal'), 'choices' => array('system_font', 'google_font', 'font_color', 'font_size', 'line_height', 'font_weight', 'font_style'));
            break;
        case 'h3':
            $options[] = array('section' => 'h3_section', 'id' => CMSMS_SHORTNAME . '_h3_font', 'title' => __('H3 Tag Font', 'cmsmasters'), 'desc' => '', 'type' => 'typorgaphy', 'std' => array('system_font' => "Arial, Helvetica, 'Nimbus Sans L', sans-serif", 'google_font' => 'Raleway:200,400,600,700', 'font_color' => '#323232', 'font_size' => '24', 'line_height' => '36', 'font_weight' => 'normal', 'font_style' => 'normal'), 'choices' => array('system_font', 'google_font', 'font_color', 'font_size', 'line_height', 'font_weight', 'font_style'));
            break;
        case 'h4':
            $options[] = array('section' => 'h4_section', 'id' => CMSMS_SHORTNAME . '_h4_font', 'title' => __('H4 Tag Font', 'cmsmasters'), 'desc' => '', 'type' => 'typorgaphy', 'std' => array('system_font' => "Arial, Helvetica, 'Nimbus Sans L', sans-serif", 'google_font' => 'Raleway:200,400,600,700', 'font_color' => '#323232', 'font_size' => '20', 'line_height' => '24', 'font_weight' => 'normal', 'font_style' => 'normal'), 'choices' => array('system_font', 'google_font', 'font_color', 'font_size', 'line_height', 'font_weight', 'font_style'));
            break;
        case 'h5':
            $options[] = array('section' => 'h5_section', 'id' => CMSMS_SHORTNAME . '_h5_font', 'title' => __('H5 Tag Font', 'cmsmasters'), 'desc' => '', 'type' => 'typorgaphy', 'std' => array('system_font' => "Arial, Helvetica, 'Nimbus Sans L', sans-serif", 'google_font' => 'Raleway:200,400,600,700', 'font_color' => '#323232', 'font_size' => '18', 'line_height' => '24', 'font_weight' => 'normal', 'font_style' => 'normal'), 'choices' => array('system_font', 'google_font', 'font_color', 'font_size', 'line_height', 'font_weight', 'font_style'));
            break;
        case 'h6':
            $options[] = array('section' => 'h6_section', 'id' => CMSMS_SHORTNAME . '_h6_font', 'title' => __('H6 Tag Font', 'cmsmasters'), 'desc' => '', 'type' => 'typorgaphy', 'std' => array('system_font' => "Arial, Helvetica, 'Nimbus Sans L', sans-serif", 'google_font' => '', 'font_color' => '#323232', 'font_size' => '14', 'line_height' => '18', 'font_weight' => 'normal', 'font_style' => 'normal'), 'choices' => array('system_font', 'google_font', 'font_color', 'font_size', 'line_height', 'font_weight', 'font_style'));
            break;
        case 'other':
            $options[] = array('section' => 'other_section', 'id' => CMSMS_SHORTNAME . '_quote_font', 'title' => __('Blockquote Font', 'cmsmasters'), 'desc' => '', 'type' => 'typorgaphy', 'std' => array('system_font' => "Arial, Helvetica, 'Nimbus Sans L', sans-serif", 'google_font' => 'Raleway:200,400,600,700', 'font_color' => '#202020', 'font_size' => '18', 'line_height' => '24', 'font_weight' => 'normal', 'font_style' => 'normal'), 'choices' => array('system_font', 'google_font', 'font_color', 'font_size', 'line_height', 'font_weight', 'font_style'));
            $options[] = array('section' => 'other_section', 'id' => CMSMS_SHORTNAME . '_dropcap_font', 'title' => __('Dropcap Font', 'cmsmasters'), 'desc' => '', 'type' => 'typorgaphy', 'std' => array('system_font' => "Arial, Helvetica, 'Nimbus Sans L', sans-serif", 'google_font' => 'Raleway:200,400,600,700', 'font_color' => '#212121', 'font_size' => '40', 'line_height' => '40', 'font_weight' => 'normal', 'font_style' => 'normal'), 'choices' => array('system_font', 'google_font', 'font_color', 'font_size', 'line_height', 'font_weight', 'font_style'));
            $options[] = array('section' => 'other_section', 'id' => CMSMS_SHORTNAME . '_code_font', 'title' => __('Code Tag Font', 'cmsmasters'), 'desc' => '', 'type' => 'typorgaphy', 'std' => array('system_font' => "Arial, Helvetica, 'Nimbus Sans L', sans-serif", 'google_font' => '', 'font_color' => '#202020', 'font_size' => '13', 'line_height' => '18', 'font_weight' => 'normal', 'font_style' => 'normal'), 'choices' => array('system_font', 'google_font', 'font_color', 'font_size', 'line_height', 'font_weight', 'font_style'));
            $options[] = array('section' => 'other_section', 'id' => CMSMS_SHORTNAME . '_small_font', 'title' => __('Small Tag Font', 'cmsmasters'), 'desc' => '', 'type' => 'typorgaphy', 'std' => array('system_font' => "Arial, Helvetica, 'Nimbus Sans L', sans-serif", 'google_font' => '', 'font_color' => '#202020', 'font_size' => '12', 'line_height' => '18', 'font_weight' => 'normal', 'font_style' => 'normal'), 'choices' => array('system_font', 'google_font', 'font_color', 'font_size', 'line_height', 'font_weight', 'font_style'));
            $options[] = array('section' => 'other_section', 'id' => CMSMS_SHORTNAME . '_input_font', 'title' => __('Text Fields Font', 'cmsmasters'), 'desc' => '', 'type' => 'typorgaphy', 'std' => array('system_font' => "Arial, Helvetica, 'Nimbus Sans L', sans-serif", 'google_font' => 'Raleway:200,400,600,700', 'font_color' => '#202020', 'font_size' => '13', 'line_height' => '18', 'font_weight' => 'normal', 'font_style' => 'normal'), 'choices' => array('system_font', 'google_font', 'font_color', 'font_size', 'line_height', 'font_weight', 'font_style'));
            $options[] = array('section' => 'other_section', 'id' => CMSMS_SHORTNAME . '_footer_font', 'title' => __('Footer Font', 'cmsmasters'), 'desc' => '', 'type' => 'typorgaphy', 'std' => array('system_font' => "Arial, Helvetica, 'Nimbus Sans L', sans-serif", 'google_font' => '', 'font_color' => '#cbccc2', 'font_size' => '12', 'line_height' => '18', 'font_weight' => 'normal', 'font_style' => 'normal'), 'choices' => array('system_font', 'google_font', 'font_color', 'font_size', 'line_height', 'font_weight', 'font_style'));
            $options[] = array('section' => 'other_section', 'id' => CMSMS_SHORTNAME . '_footer_h_font', 'title' => __('Footer Headings Font Color', 'cmsmasters'), 'desc' => '', 'type' => 'color', 'std' => '#9b9b97');
            break;
    }
    return $options;
}
function cmsms_options_style_fields($set_tab = false)
{
    if ($set_tab) {
        $tab = $set_tab;
    } else {
        $tab = cmsms_get_the_tab();
    }
    $options = array();
    switch ($tab) {
        case 'bg':
            $options[] = array('section' => 'bg_section', 'id' => CMSMS_SHORTNAME . '_bg_col', 'title' => __('Background Color', 'cmsmasters'), 'desc' => '', 'type' => 'color', 'std' => '#ffffff');
            $options[] = array('section' => 'bg_section', 'id' => CMSMS_SHORTNAME . '_bg_img_enable', 'title' => __('Background Image Visibility', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 'bg_section', 'id' => CMSMS_SHORTNAME . '_bg_img', 'title' => __('Background Image', 'cmsmasters'), 'desc' => __('Choose your custom website background image url.', 'cmsmasters'), 'type' => 'upload', 'std' => '');
            $options[] = array('section' => 'bg_section', 'id' => CMSMS_SHORTNAME . '_bg_rep', 'title' => __('Background Repeat', 'cmsmasters'), 'desc' => '', 'type' => 'radio', 'std' => 'no-repeat', 'choices' => array(__('No Repeat', 'cmsmasters') . '|no-repeat', __('Repeat Horizontally', 'cmsmasters') . '|repeat-x', __('Repeat Vertically', 'cmsmasters') . '|repeat-y', __('Repeat', 'cmsmasters') . '|repeat'));
            $options[] = array('section' => 'bg_section', 'id' => CMSMS_SHORTNAME . '_bg_pos', 'title' => __('Background Position', 'cmsmasters'), 'desc' => '', 'type' => 'select', 'std' => 'top center', 'choices' => array(__('Top Left', 'cmsmasters') . '|top left', __('Top Center', 'cmsmasters') . '|top center', __('Top Right', 'cmsmasters') . '|top right', __('Center Left', 'cmsmasters') . '|center left', __('Center Center', 'cmsmasters') . '|center center', __('Center Right', 'cmsmasters') . '|center right', __('Bottom Left', 'cmsmasters') . '|bottom left', __('Bottom Center', 'cmsmasters') . '|bottom center', __('Bottom Right', 'cmsmasters') . '|bottom right'));
            $options[] = array('section' => 'bg_section', 'id' => CMSMS_SHORTNAME . '_bg_att', 'title' => __('Background Attachment', 'cmsmasters'), 'desc' => '', 'type' => 'radio', 'std' => 'fixed', 'choices' => array(__('Scroll', 'cmsmasters') . '|scroll', __('Fixed', 'cmsmasters') . '|fixed'));
            break;
        case 'header':
            $options[] = array('section' => 'header_section', 'id' => CMSMS_SHORTNAME . '_header_height', 'title' => __('Header Height', 'cmsmasters'), 'desc' => __('pixels', 'cmsmasters'), 'type' => 'number', 'std' => '150');
            $options[] = array('section' => 'header_section', 'id' => CMSMS_SHORTNAME . '_header_nav_top', 'title' => __('Header Navigation Top Position', 'cmsmasters'), 'desc' => __('pixels', 'cmsmasters'), 'type' => 'number', 'std' => '45');
            $options[] = array('section' => 'header_section', 'id' => CMSMS_SHORTNAME . '_header_nav_fixed', 'title' => __('Fixed Header', 'cmsmasters'), 'desc' => __('enable', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 'header_section', 'id' => CMSMS_SHORTNAME . '_nav_numbering', 'title' => __('Navigation Numbering', 'cmsmasters'), 'desc' => __('enable', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 'header_section', 'id' => CMSMS_SHORTNAME . '_header_social', 'title' => __('Social Icons', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 0);
            $options[] = array('section' => 'header_section', 'id' => CMSMS_SHORTNAME . '_header_social_top', 'title' => __('Header Social Icons Top Position', 'cmsmasters'), 'desc' => __('pixels', 'cmsmasters'), 'type' => 'number', 'std' => '50');
            $options[] = array('section' => 'header_section', 'id' => CMSMS_SHORTNAME . '_header_search', 'title' => __('Search', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 'header_section', 'id' => CMSMS_SHORTNAME . '_header_custom_html', 'title' => __('Header Custom HTML', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 0);
            $options[] = array('section' => 'header_section', 'id' => CMSMS_SHORTNAME . '_header_custom_html_top', 'title' => __('Header Custom HTML Top Position', 'cmsmasters'), 'desc' => __('pixels', 'cmsmasters'), 'type' => 'number', 'std' => '15');
            $options[] = array('section' => 'header_section', 'id' => CMSMS_SHORTNAME . '_header_custom_html_right', 'title' => __('Header Custom HTML Right Position', 'cmsmasters'), 'desc' => __('pixels', 'cmsmasters'), 'type' => 'number', 'std' => '0');
            $options[] = array('section' => 'header_section', 'id' => CMSMS_SHORTNAME . '_header_html', 'title' => '', 'desc' => '<strong>' . __('HTML tags are allowed!', 'cmsmasters') . '</strong>', 'type' => 'textarea', 'std' => '');
            break;
        case 'content':
            $options[] = array('section' => 'content_section', 'id' => CMSMS_SHORTNAME . '_layout', 'title' => __('Default Layout Type', 'cmsmasters'), 'desc' => '', 'type' => 'radio_img', 'std' => 'r_sidebar', 'choices' => array(__('Right Sidebar', 'cmsmasters') . '|' . get_template_directory_uri() . '/framework/admin/inc/img/sidebar_r.png' . '|r_sidebar', __('Left Sidebar', 'cmsmasters') . '|' . get_template_directory_uri() . '/framework/admin/inc/img/sidebar_l.png' . '|l_sidebar', __('Full Width', 'cmsmasters') . '|' . get_template_directory_uri() . '/framework/admin/inc/img/fullwidth.png' . '|fullwidth'));
            $options[] = array('section' => 'content_section', 'id' => CMSMS_SHORTNAME . '_breadcrumb', 'title' => __('Breadcrumbs Default Visibility', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 'content_section', 'id' => CMSMS_SHORTNAME . '_top_sidebar', 'title' => __('Top Sidebar Default Visibility', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 0);
            $options[] = array('section' => 'content_section', 'id' => CMSMS_SHORTNAME . '_middle_sidebar', 'title' => __('Middle Sidebar Default Visibility', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 0);
            $options[] = array('section' => 'content_section', 'id' => CMSMS_SHORTNAME . '_bottom_sidebar', 'title' => __('Bottom Sidebar Default Visibility', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            if (class_exists('woocommerce')) {
                $options[] = array('section' => 'content_section', 'id' => CMSMS_SHORTNAME . '_woocommerce_top_widgets_columns', 'title' => __('Woocommerce Top Sidebar Widget Column Width', 'cmsmasters'), 'desc' => '', 'type' => 'select', 'std' => 'one_fourth_woocommerce', 'choices' => array(__('One Fourth', 'cmsmasters') . '|one_fourth_woocommerce', __('One Third', 'cmsmasters') . '|one_third_woocommerce', __('One Half', 'cmsmasters') . '|one_half_woocommerce', __('One First', 'cmsmasters') . '|one_first_woocommerce'));
                $options[] = array('section' => 'content_section', 'id' => CMSMS_SHORTNAME . '_woocommerce_middle_widgets_columns', 'title' => __('Woocommerce Middle Sidebar Widget Column Width', 'cmsmasters'), 'desc' => '', 'type' => 'select', 'std' => 'one_fourth_woocommerce', 'choices' => array(__('One Fourth', 'cmsmasters') . '|one_fourth_woocommerce', __('One Third', 'cmsmasters') . '|one_third_woocommerce', __('One Half', 'cmsmasters') . '|one_half_woocommerce', __('One First', 'cmsmasters') . '|one_first_woocommerce'));
                $options[] = array('section' => 'content_section', 'id' => CMSMS_SHORTNAME . '_woocommerce_bottom_widgets_columns', 'title' => __('Woocommerce Bottom Sidebar Widget Column Width', 'cmsmasters'), 'desc' => '', 'type' => 'select', 'std' => 'one_fourth_woocommerce', 'choices' => array(__('One Fourth', 'cmsmasters') . '|one_fourth_woocommerce', __('One Third', 'cmsmasters') . '|one_third_woocommerce', __('One Half', 'cmsmasters') . '|one_half_woocommerce', __('One First', 'cmsmasters') . '|one_first_woocommerce'));
            }
            $options[] = array('section' => 'content_section', 'id' => CMSMS_SHORTNAME . '_bottom_twitter', 'title' => __('Twitter Field Default Visibility', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 'content_section', 'id' => CMSMS_SHORTNAME . '_bottom_twitter_username', 'title' => __('Twitter Username', 'cmsmasters'), 'desc' => __('Enter Twitter Username', 'cmsmasters'), 'type' => 'text', 'std' => '', 'class' => 'nohtml');
            $options[] = array('section' => 'content_section', 'id' => CMSMS_SHORTNAME . '_bottom_twitter_number', 'title' => __('Number Of Tweets', 'cmsmasters'), 'desc' => __('Enter the number of latest tweets you\'d like to display', 'cmsmasters'), 'type' => 'number', 'std' => '1');
            break;
        case 'footer':
            $options[] = array('section' => 'footer_section', 'id' => CMSMS_SHORTNAME . '_footer_additional_content', 'title' => __('Footer Additional Content', 'cmsmasters'), 'desc' => '', 'type' => 'radio', 'std' => 'social', 'choices' => array(__('None', 'cmsmasters') . '|none', __('Footer Navigation', 'cmsmasters') . '|nav', __('Social Icons', 'cmsmasters') . '|social', __('Custom HTML', 'cmsmasters') . '|text'));
            $options[] = array('section' => 'footer_section', 'id' => CMSMS_SHORTNAME . '_footer_html', 'title' => __('Footer Custom HTML', 'cmsmasters'), 'desc' => '<strong>' . __('HTML tags are allowed!', 'cmsmasters') . '</strong>', 'type' => 'textarea', 'std' => '');
            $options[] = array('section' => 'footer_section', 'id' => CMSMS_SHORTNAME . '_footer_copyright', 'title' => __('Copyright Text', 'cmsmasters'), 'desc' => '', 'type' => 'text', 'std' => CMSMS_FULLNAME . ' &copy; 2012 | ' . __('All Rights Reserved', 'cmsmasters'), 'class' => 'nohtml');
            break;
    }
    return $options;
}
function cmsms_options_general_fields($set_tab = false)
{
    if ($set_tab) {
        $tab = $set_tab;
    } else {
        $tab = cmsms_get_the_tab();
    }
    $options = array();
    switch ($tab) {
        case 'general':
            $options[] = array('section' => 'general_section', 'id' => CMSMS_SHORTNAME . '_theme_color', 'title' => __('Theme Color', 'cmsmasters'), 'desc' => '', 'type' => 'color', 'std' => '#ff938a');
            $options[] = array('section' => 'general_section', 'id' => CMSMS_SHORTNAME . '_responsive', 'title' => __('Responsive Layout', 'cmsmasters'), 'desc' => __('enable', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 'general_section', 'id' => CMSMS_SHORTNAME . '_retina', 'title' => __('High Resolution', 'cmsmasters'), 'desc' => __('enable', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            break;
        case 'sidebar':
            $options[] = array('section' => 'sidebar_section', 'id' => CMSMS_SHORTNAME . '_sidebar', 'title' => __('Custom Sidebars', 'cmsmasters'), 'desc' => '', 'type' => 'sidebar', 'std' => '');
            break;
        case 'sitemap':
            $options[] = array('section' => 'sitemap_section', 'id' => CMSMS_SHORTNAME . '_sitemap_nav', 'title' => __('Website Pages', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 'sitemap_section', 'id' => CMSMS_SHORTNAME . '_sitemap_categs', 'title' => __('Blog Archives by Categories', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 'sitemap_section', 'id' => CMSMS_SHORTNAME . '_sitemap_tags', 'title' => __('Blog Archives by Tags', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 'sitemap_section', 'id' => CMSMS_SHORTNAME . '_sitemap_month', 'title' => __('Blog Archives by Month', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 'sitemap_section', 'id' => CMSMS_SHORTNAME . '_sitemap_pj_categs', 'title' => __('Portfolio Archives by Categories', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 'sitemap_section', 'id' => CMSMS_SHORTNAME . '_sitemap_pj_tags', 'title' => __('Portfolio Archives by Tags', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            break;
        case 'error':
            $options[] = array('section' => 'error_section', 'id' => CMSMS_SHORTNAME . '_error_search', 'title' => __('Search Line', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 'error_section', 'id' => CMSMS_SHORTNAME . '_error_sitemap_button', 'title' => __('Sitemap Button', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 'error_section', 'id' => CMSMS_SHORTNAME . '_error_sitemap_link', 'title' => __('Sitemap Page URL', 'cmsmasters'), 'desc' => '', 'type' => 'text', 'std' => '');
            break;
        case 'seo':
            $options[] = array('section' => 'seo_section', 'id' => CMSMS_SHORTNAME . '_seo', 'title' => __('SEO Settings', 'cmsmasters'), 'desc' => __('enable', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 'seo_section', 'id' => CMSMS_SHORTNAME . '_seo_title', 'title' => __('Default Title', 'cmsmasters'), 'desc' => __('We recommend you enter no more than 60 characters.', 'cmsmasters'), 'type' => 'text', 'std' => '');
            $options[] = array('section' => 'seo_section', 'id' => CMSMS_SHORTNAME . '_seo_description', 'title' => __('Default Description', 'cmsmasters'), 'desc' => __('We recommend you enter no more than 160 characters.', 'cmsmasters'), 'type' => 'textarea', 'std' => '', 'class' => 'nohtml');
            $options[] = array('section' => 'seo_section', 'id' => CMSMS_SHORTNAME . '_seo_keywords', 'title' => __('Default Keywords', 'cmsmasters'), 'desc' => '', 'type' => 'textarea', 'std' => '', 'class' => 'nohtml');
            break;
        case 'code':
            $options[] = array('section' => 'code_section', 'id' => CMSMS_SHORTNAME . '_google_analytics', 'title' => __('Google Analytics', 'cmsmasters'), 'desc' => '', 'type' => 'textarea', 'std' => '', 'class' => '');
            $options[] = array('section' => 'code_section', 'id' => CMSMS_SHORTNAME . '_custom_css', 'title' => __('Custom CSS', 'cmsmasters'), 'desc' => '', 'type' => 'textarea', 'std' => '', 'class' => 'allowlinebreaks');
            $options[] = array('section' => 'code_section', 'id' => CMSMS_SHORTNAME . '_custom_js', 'title' => __('Custom JavaScript', 'cmsmasters'), 'desc' => '', 'type' => 'textarea', 'std' => '', 'class' => 'allowlinebreaks');
            break;
        case 'recaptcha':
            if (is_plugin_active('contact-form-builder/contact-form-builder.php')) {
                $options[] = array('section' => 'recaptcha_section', 'id' => CMSMS_SHORTNAME . '_recaptcha_public_key', 'title' => __('reCAPTCHA Public Key', 'cmsmasters'), 'desc' => '', 'type' => 'text', 'std' => '');
                $options[] = array('section' => 'recaptcha_section', 'id' => CMSMS_SHORTNAME . '_recaptcha_private_key', 'title' => __('reCAPTCHA Private Key', 'cmsmasters'), 'desc' => '', 'type' => 'text', 'std' => '');
            }
            break;
    }
    return $options;
}
function cmsms_options_icon_fields($set_tab = false)
{
    if ($set_tab) {
        $tab = $set_tab;
    } else {
        $tab = cmsms_get_the_tab();
    }
    $options = array();
    switch ($tab) {
        case 'heading':
            $options[] = array('section' => 'heading_section', 'id' => CMSMS_SHORTNAME . '_heading_icons', 'title' => __('Heading Icons', 'cmsmasters'), 'desc' => '', 'type' => 'heading', 'std' => '');
            break;
        case 'social':
            $options[] = array('section' => 'social_section', 'id' => CMSMS_SHORTNAME . '_social_icons', 'title' => __('Social Icons', 'cmsmasters'), 'desc' => '', 'type' => 'social', 'std' => array(get_template_directory_uri() . '/img/social/vimeo.png|#|true', get_template_directory_uri() . '/img/social/twitter.png|#|true', get_template_directory_uri() . '/img/social/flickr.png|#|true', get_template_directory_uri() . '/img/social/facebook.png|#|true'));
            break;
    }
    return $options;
}
function cmsms_options_icon_fields($set_tab = false)
{
    if ($set_tab) {
        $tab = $set_tab;
    } else {
        $tab = cmsms_get_the_tab();
    }
    $options = array();
    switch ($tab) {
        case 'heading':
            $options[] = array('section' => 'heading_section', 'id' => CMSMS_SHORTNAME . '_heading_icons', 'title' => __('Heading Icons', 'cmsmasters'), 'desc' => '', 'type' => 'heading', 'std' => '');
            break;
        case 'social':
            $options[] = array('section' => 'social_section', 'id' => CMSMS_SHORTNAME . '_social_icons', 'title' => __('Social Icons', 'cmsmasters'), 'desc' => '', 'type' => 'social', 'std' => array(get_template_directory_uri() . '/img/linkedin.png|#0072bc|#|LinkedIn|true', get_template_directory_uri() . '/img/twitter.png|#00bff3|#|Twitter|true', get_template_directory_uri() . '/img/facebook.png|#2e3192|#|Facebook|true', get_template_directory_uri() . '/img/google.png|#e34a28|#|Google|true', get_template_directory_uri() . '/img/rss.png|#f6ad1a|#|RSS|true'));
            break;
    }
    return $options;
}
function cmsms_settings_page_header()
{
    $settings_output = cmsms_get_settings();
    $tabs = $settings_output['cmsms_page_tabs'];
    $current_tab = cmsms_get_the_tab();
    echo '<div id="icon-options-general" class="icon32">' . '<br />' . '</div>' . '<h2 style="padding-top:12px;">' . $settings_output['cmsms_page_title'] . '</h2>';
    if ($tabs != '') {
        $links = array();
        foreach ($tabs as $tab => $name) {
            $class = $tab == $current_tab ? 'nav-tab nav-tab-active' : 'nav-tab';
            $page = $_GET['page'];
            $links[] = '<a class="' . $class . '" href="?page=' . $page . '&tab=' . $tab . '"' . ($tab == 'recaptcha' ? ' style="background-color:#fdffc6;' . ($class == 'nav-tab nav-tab-active' ? ' border-bottom-color:#fdffc6;' : '') . '"' : '') . '>' . $name . '</a>';
        }
        echo '<h3 class="nav-tab-wrapper">';
        foreach ($links as $link) {
            echo $link;
        }
        echo '</h3>';
    }
}
function cmsms_options_general_fields($set_tab = false)
{
    if ($set_tab) {
        $tab = $set_tab;
    } else {
        $tab = cmsms_get_the_tab();
    }
    $options = array();
    switch ($tab) {
        case 'general':
            $options[] = array('section' => 'general_section', 'id' => CMSMS_SHORTNAME . '_theme_color', 'title' => __('Theme Color', 'cmsmasters'), 'desc' => '', 'type' => 'color', 'std' => '#cc3300');
            $options[] = array('section' => 'general_section', 'id' => CMSMS_SHORTNAME . '_responsive', 'title' => __('Responsive Layout', 'cmsmasters'), 'desc' => __('enable', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 'general_section', 'id' => CMSMS_SHORTNAME . '_retina', 'title' => __('High Resolution', 'cmsmasters'), 'desc' => __('enable', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            break;
        case 'sidebar':
            $options[] = array('section' => 'sidebar_section', 'id' => CMSMS_SHORTNAME . '_sidebar', 'title' => __('Custom Sidebars', 'cmsmasters'), 'desc' => '', 'type' => 'sidebar', 'std' => '');
            break;
        case 'sitemap':
            $options[] = array('section' => 'sitemap_section', 'id' => CMSMS_SHORTNAME . '_sitemap_nav', 'title' => __('Website Pages', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 'sitemap_section', 'id' => CMSMS_SHORTNAME . '_sitemap_categs', 'title' => __('Blog Archives by Categories', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 'sitemap_section', 'id' => CMSMS_SHORTNAME . '_sitemap_tags', 'title' => __('Blog Archives by Tags', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 'sitemap_section', 'id' => CMSMS_SHORTNAME . '_sitemap_month', 'title' => __('Blog Archives by Month', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 'sitemap_section', 'id' => CMSMS_SHORTNAME . '_sitemap_pj_categs', 'title' => __('Portfolio Archives by Categories', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 'sitemap_section', 'id' => CMSMS_SHORTNAME . '_sitemap_pj_tags', 'title' => __('Portfolio Archives by Tags', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            break;
        case 'archive':
            $options[] = array('section' => 'archive_section', 'id' => CMSMS_SHORTNAME . '_archive_layout', 'title' => __('Archive Layout Type', 'cmsmasters'), 'desc' => '', 'type' => 'radio_img', 'std' => 'r_sidebar', 'choices' => array(__('Right Sidebar', 'cmsmasters') . '|' . get_template_directory_uri() . '/framework/admin/inc/img/sidebar_r.png' . '|r_sidebar', __('Left Sidebar', 'cmsmasters') . '|' . get_template_directory_uri() . '/framework/admin/inc/img/sidebar_l.png' . '|l_sidebar', __('Full Width', 'cmsmasters') . '|' . get_template_directory_uri() . '/framework/admin/inc/img/fullwidth.png' . '|fullwidth'));
            $options[] = array('section' => 'archive_section', 'id' => CMSMS_SHORTNAME . '_archive_right_left_sidebar', 'title' => __('Choose Right/Left Sidebar', 'cmsmasters'), 'desc' => '', 'type' => 'select_sidebar', 'std' => 'default');
            $options[] = array('section' => 'archive_section', 'id' => CMSMS_SHORTNAME . '_archive_top_sidebar', 'title' => __('Choose Top Sidebar', 'cmsmasters'), 'desc' => '', 'type' => 'select_sidebar', 'std' => '');
            $options[] = array('section' => 'archive_section', 'id' => CMSMS_SHORTNAME . '_archive_middle_sidebar', 'title' => __('Choose Middle Sidebar', 'cmsmasters'), 'desc' => '', 'type' => 'select_sidebar', 'std' => '');
            $options[] = array('section' => 'archive_section', 'id' => CMSMS_SHORTNAME . '_archive_bottom_sidebar', 'title' => __('Choose Bottom Sidebar', 'cmsmasters'), 'desc' => '', 'type' => 'select_sidebar', 'std' => '');
            break;
        case 'search':
            $options[] = array('section' => 'search_section', 'id' => CMSMS_SHORTNAME . '_search_layout', 'title' => __('Search Layout Type', 'cmsmasters'), 'desc' => '', 'type' => 'radio_img', 'std' => 'r_sidebar', 'choices' => array(__('Right Sidebar', 'cmsmasters') . '|' . get_template_directory_uri() . '/framework/admin/inc/img/sidebar_r.png' . '|r_sidebar', __('Left Sidebar', 'cmsmasters') . '|' . get_template_directory_uri() . '/framework/admin/inc/img/sidebar_l.png' . '|l_sidebar', __('Full Width', 'cmsmasters') . '|' . get_template_directory_uri() . '/framework/admin/inc/img/fullwidth.png' . '|fullwidth'));
            $options[] = array('section' => 'search_section', 'id' => CMSMS_SHORTNAME . '_search_right_left_sidebar', 'title' => __('Choose Right/Left Sidebar', 'cmsmasters'), 'desc' => '', 'type' => 'select_sidebar', 'std' => 'default');
            $options[] = array('section' => 'search_section', 'id' => CMSMS_SHORTNAME . '_search_top_sidebar', 'title' => __('Choose Top Sidebar', 'cmsmasters'), 'desc' => '', 'type' => 'select_sidebar', 'std' => '');
            $options[] = array('section' => 'search_section', 'id' => CMSMS_SHORTNAME . '_search_middle_sidebar', 'title' => __('Choose Middle Sidebar', 'cmsmasters'), 'desc' => '', 'type' => 'select_sidebar', 'std' => '');
            $options[] = array('section' => 'search_section', 'id' => CMSMS_SHORTNAME . '_search_bottom_sidebar', 'title' => __('Choose Bottom Sidebar', 'cmsmasters'), 'desc' => '', 'type' => 'select_sidebar', 'std' => '');
            break;
        case 'error':
            $options[] = array('section' => 'error_section', 'id' => CMSMS_SHORTNAME . '_error_search', 'title' => __('Search Line', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 'error_section', 'id' => CMSMS_SHORTNAME . '_error_sitemap_button', 'title' => __('Sitemap Button', 'cmsmasters'), 'desc' => __('show', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 'error_section', 'id' => CMSMS_SHORTNAME . '_error_sitemap_link', 'title' => __('Sitemap Page URL', 'cmsmasters'), 'desc' => '', 'type' => 'text', 'std' => '');
            break;
        case 'seo':
            $options[] = array('section' => 'seo_section', 'id' => CMSMS_SHORTNAME . '_seo', 'title' => __('SEO Settings', 'cmsmasters'), 'desc' => __('enable', 'cmsmasters'), 'type' => 'checkbox', 'std' => 1);
            $options[] = array('section' => 'seo_section', 'id' => CMSMS_SHORTNAME . '_seo_title', 'title' => __('Default Title', 'cmsmasters'), 'desc' => __('We recommend you enter no more than 60 characters.', 'cmsmasters'), 'type' => 'text', 'std' => '');
            $options[] = array('section' => 'seo_section', 'id' => CMSMS_SHORTNAME . '_seo_description', 'title' => __('Default Description', 'cmsmasters'), 'desc' => __('We recommend you enter no more than 160 characters.', 'cmsmasters'), 'type' => 'textarea', 'std' => '', 'class' => 'nohtml');
            $options[] = array('section' => 'seo_section', 'id' => CMSMS_SHORTNAME . '_seo_keywords', 'title' => __('Default Keywords', 'cmsmasters'), 'desc' => '', 'type' => 'textarea', 'std' => '', 'class' => 'nohtml');
            break;
        case 'code':
            $options[] = array('section' => 'code_section', 'id' => CMSMS_SHORTNAME . '_google_analytics', 'title' => __('Google Analytics', 'cmsmasters'), 'desc' => '', 'type' => 'textarea', 'std' => '', 'class' => '');
            $options[] = array('section' => 'code_section', 'id' => CMSMS_SHORTNAME . '_custom_css', 'title' => __('Custom CSS', 'cmsmasters'), 'desc' => '', 'type' => 'textarea', 'std' => '', 'class' => 'allowlinebreaks');
            $options[] = array('section' => 'code_section', 'id' => CMSMS_SHORTNAME . '_custom_js', 'title' => __('Custom JavaScript', 'cmsmasters'), 'desc' => '', 'type' => 'textarea', 'std' => '', 'class' => 'allowlinebreaks');
            break;
        case 'recaptcha':
            if (is_plugin_active('contact-form-builder/contact-form-builder.php')) {
                $options[] = array('section' => 'recaptcha_section', 'id' => CMSMS_SHORTNAME . '_recaptcha_public_key', 'title' => __('reCAPTCHA Public Key', 'cmsmasters'), 'desc' => '', 'type' => 'text', 'std' => '');
                $options[] = array('section' => 'recaptcha_section', 'id' => CMSMS_SHORTNAME . '_recaptcha_private_key', 'title' => __('reCAPTCHA Private Key', 'cmsmasters'), 'desc' => '', 'type' => 'text', 'std' => '');
            }
            break;
    }
    return $options;
}
function cmsms_settings_page_fn()
{
    $settings_output = cmsms_get_settings();
    $current_tab = cmsms_get_the_tab();
    echo '<div class="wrap">';
    cmsms_settings_page_header();
    echo '<form action="options.php" method="post" class="cmsms_admin_page"' . ($current_tab == 'recaptcha' ? ' style="background-color:#fdffc6; padding:35px 0 15px 25px; margin:-14px 0 0;"' : '') . '>';
    settings_fields($settings_output['cmsms_option_name']);
    do_settings_sections(__FILE__);
    echo '<p class="submit">' . '<input name="submit" type="submit" class="button-primary" value="' . __('Save Changes', 'cmsmasters') . '" />' . '</p>' . '</form>' . '</div>';
}