function cmsms_theme_google_fonts_generate() { $cmsms_option = cmsms_get_global_options(); $i = 1; foreach (cmsms_google_fonts_list() as $key => $value) { if (isset($cmsms_option[CMSMS_SHORTNAME . '_content_font_google_font']) && $key == $cmsms_option[CMSMS_SHORTNAME . '_content_font_google_font'] && $key != '' || isset($cmsms_option[CMSMS_SHORTNAME . '_link_font_google_font']) && $key == $cmsms_option[CMSMS_SHORTNAME . '_link_font_google_font'] && $key != '' || isset($cmsms_option[CMSMS_SHORTNAME . '_nav_title_font_google_font']) && $key == $cmsms_option[CMSMS_SHORTNAME . '_nav_title_font_google_font'] && $key != '' || isset($cmsms_option[CMSMS_SHORTNAME . '_nav_dropdown_font_google_font']) && $key == $cmsms_option[CMSMS_SHORTNAME . '_nav_dropdown_font_google_font'] && $key != '' || isset($cmsms_option[CMSMS_SHORTNAME . '_h1_font_google_font']) && $key == $cmsms_option[CMSMS_SHORTNAME . '_h1_font_google_font'] && $key != '' || isset($cmsms_option[CMSMS_SHORTNAME . '_h2_font_google_font']) && $key == $cmsms_option[CMSMS_SHORTNAME . '_h2_font_google_font'] && $key != '' || isset($cmsms_option[CMSMS_SHORTNAME . '_h3_font_google_font']) && $key == $cmsms_option[CMSMS_SHORTNAME . '_h3_font_google_font'] && $key != '' || isset($cmsms_option[CMSMS_SHORTNAME . '_h4_font_google_font']) && $key == $cmsms_option[CMSMS_SHORTNAME . '_h4_font_google_font'] && $key != '' || isset($cmsms_option[CMSMS_SHORTNAME . '_h5_font_google_font']) && $key == $cmsms_option[CMSMS_SHORTNAME . '_h5_font_google_font'] && $key != '' || isset($cmsms_option[CMSMS_SHORTNAME . '_h6_font_google_font']) && $key == $cmsms_option[CMSMS_SHORTNAME . '_h6_font_google_font'] && $key != '' || isset($cmsms_option[CMSMS_SHORTNAME . '_quote_font_google_font']) && $key == $cmsms_option[CMSMS_SHORTNAME . '_quote_font_google_font'] && $key != '' || isset($cmsms_option[CMSMS_SHORTNAME . '_dropcap_font_google_font']) && $key == $cmsms_option[CMSMS_SHORTNAME . '_dropcap_font_google_font'] && $key != '' || isset($cmsms_option[CMSMS_SHORTNAME . '_code_font_google_font']) && $key == $cmsms_option[CMSMS_SHORTNAME . '_code_font_google_font'] && $key != '' || isset($cmsms_option[CMSMS_SHORTNAME . '_small_font_google_font']) && $key == $cmsms_option[CMSMS_SHORTNAME . '_small_font_google_font'] && $key != '' || isset($cmsms_option[CMSMS_SHORTNAME . '_input_font_google_font']) && $key == $cmsms_option[CMSMS_SHORTNAME . '_input_font_google_font'] && $key != '' || isset($cmsms_option[CMSMS_SHORTNAME . '_footer_font_google_font']) && $key == $cmsms_option[CMSMS_SHORTNAME . '_footer_font_google_font'] && $key != '') { cmsms_theme_google_font($key, $i); $i++; } } }
function cmsms_form_field_fn($args = array()) { extract($args); $settings_output = cmsms_get_settings(); $cmsms_option_name = $settings_output['cmsms_option_name']; $options = get_option($cmsms_option_name); if (!isset($options[$id])) { $options[$id] = $std; } $field_class = $class != '' ? ' ' . $class : ''; switch ($type) { case 'text': $options[$id] = esc_attr(stripslashes($options[$id])); echo '<input class="regular-text' . $field_class . '" type="text" id="' . $id . '" name="' . $cmsms_option_name . '[' . $id . ']" value="' . $options[$id] . '" />' . ($desc != '' ? '<br />' . '<span class="description">' . $desc . '</span>' : ''); break; case 'multi-text': foreach ($choices as $item) { $item = explode('|', $item); $item[0] = esc_html($item[0]); if (!empty($options[$id])) { foreach ($options[$id] as $option_key => $option_val) { if ($item[1] == $option_key) { $value = $option_val; } } } else { $value = ''; } echo '<span>' . $item[0] . ':</span> ' . '<input class="' . $field_class . '" type="text" id="' . $id . '|' . $item[1] . '" name="' . $cmsms_option_name . '[' . $id . '|' . $item[1] . ']" value="' . $value . '" />' . '<br />'; } echo $desc != '' ? '<span class="description">' . $desc . '</span>' : ''; break; case 'textarea': $options[$id] = esc_html(stripslashes($options[$id])); echo '<textarea class="textarea' . $field_class . '" type="text" id="' . $id . '" name="' . $cmsms_option_name . '[' . $id . ']" rows="5" cols="30">' . $options[$id] . '</textarea>' . ($desc != '' ? '<br />' . '<span class="description">' . $desc . '</span>' : ''); break; case 'select': echo '<select id="' . $id . '" class="select' . $field_class . '" name="' . $cmsms_option_name . '[' . $id . ']">'; foreach ($choices as $item) { $item = explode('|', $item); $item[0] = esc_html($item[0]); $selected = $options[$id] == $item[1] ? ' selected="selected"' : ''; echo '<option value="' . $item[1] . '"' . $selected . '>' . $item[0] . '</option>'; } echo '</select>' . ($desc != '' ? '<br />' . '<span class="description">' . $desc . '</span>' : ''); break; case 'checkbox': echo '<input class="checkbox' . $field_class . '" type="checkbox" id="' . $id . '" name="' . $cmsms_option_name . '[' . $id . ']" value="1" ' . checked($options[$id], 1, false) . ' /> ' . ($desc != '' ? '<span class="description">' . $desc . '</span>' : ''); break; case 'multi-checkbox': foreach ($choices as $item) { $item = explode('|', $item); $item[0] = esc_html($item[0]); $checked = ''; if (isset($options[$id][$item[1]]) && $options[$id][$item[1]] == 'true') { $checked = ' checked="checked"'; } echo '<input class="checkbox' . $field_class . '" type="checkbox" id="' . $id . '|' . $item[1] . '" name="' . $cmsms_option_name . '[' . $id . '|' . $item[1] . ']" value="1"' . $checked . ' /> ' . '<label for="' . $id . '|' . $item[1] . '">' . $item[0] . '</label>' . '<br />'; } echo $desc != '' ? '<span class="description">' . $desc . '</span>' : ''; break; case 'number': $options[$id] = esc_attr(stripslashes($options[$id])); echo '<input class="small-text' . $field_class . '" type="number" id="' . $id . '" name="' . $cmsms_option_name . '[' . $id . ']" value="' . $options[$id] . '" />' . ($desc != '' ? ' ' . '<span class="description">' . $desc . '</span>' : ''); break; case 'radio': foreach ($choices as $item) { $item = explode('|', $item); $item[0] = esc_html($item[0]); echo '<input class="radio' . $field_class . '" type="radio" id="' . $id . '|' . $item[1] . '" name="' . $cmsms_option_name . '[' . $id . ']" value="' . $item[1] . '" ' . checked($options[$id], $item[1], false) . ' /> ' . '<label for="' . $id . '|' . $item[1] . '">' . $item[0] . '</label>' . '<br />'; } echo $desc != '' ? '<span class="description">' . $desc . '</span>' : ''; break; case 'radio_img': foreach ($choices as $item) { $item = explode('|', $item); $item[0] = esc_html($item[0]); echo '<div style="text-align:center; float:left; margin-right:20px;">' . '<input class="radio' . $field_class . '" type="radio" id="' . $id . '|' . $item[2] . '" name="' . $cmsms_option_name . '[' . $id . ']" value="' . $item[2] . '" ' . checked($options[$id], $item[2], false) . ' />' . '<br />' . '<label for="' . $id . '|' . $item[2] . '">' . '<img src="' . $item[1] . '" alt="' . $item[0] . '" title="' . $item[0] . '" />' . '<br />' . $item[0] . '</label>' . '</div>'; } echo $desc != '' ? '<div style="clear:both;"></div>' . '<br />' . '<span class="description">' . $desc . '</span>' : ''; break; case 'color': $options[$id] = esc_attr(stripslashes($options[$id])); echo '<input type="text" id="' . $id . '" name="' . $cmsms_option_name . '[' . $id . ']" value="' . $options[$id] . '" class="my-color-field" data-default-color="' . $std . '" />' . '<br />' . '<span class="description">' . ($desc != '' ? $desc . '<br />' : '') . '</span>' . '<script type="text/javascript">' . 'jQuery(document).ready(function () { ' . '(function ($) { ' . "\$('#" . $id . "').wpColorPicker(); " . '} )(jQuery); ' . '} ); ' . '</script>'; break; case 'upload': $options[$id] = esc_attr(stripslashes($options[$id])); $image = $std; echo '<span id="' . $id . '_default" class="custom_default_image" style="display:none;">' . $image . '</span>'; if (isset($options[$id]) && $options[$id] != '' && $options[$id] != $std) { if (is_numeric($options[$id])) { $image = wp_get_attachment_image_src($options[$id], 'medium'); $image = $image[0]; } else { $image = $options[$id]; } } echo '<input id="' . $id . '" name="' . $cmsms_option_name . '[' . $id . ']" type="hidden" class="custom_upload_image" value="' . (isset($options[$id]) && $options[$id] != '' && $options[$id] != $std ? $options[$id] : $std) . '" />' . '<img src="' . $image . '" id="' . $id . '_preview" class="custom_preview_image" alt="" />' . '<br />' . '<input id="' . $id . '_button" class="custom_upload_image_button button" type="button" value="' . __('Choose Image', 'cmsmasters') . '" />' . ' ' . '<small>' . '<a href="#" id="' . $id . '_clear" class="custom_clear_image_button">' . __('Default Image', 'cmsmasters') . '</a>' . '</small>' . '<div style="clear:both;"></div>' . ($desc != '' ? '<br />' . '<span class="description">' . $desc . '</span>' : '') . '<script type="text/javascript">' . 'jQuery(document).ready(function () { ' . '(function ($) { ' . "\$('#" . $id . "_button').bind('click', function (e) { " . 'e.preventDefault(); ' . '$(e.target).cmsmsMediaUploader( { ' . "frameId : 'cmsms-" . $id . "-media-frame', " . "frameClass : 'media-frame cmsms-media-frame cmsms-" . $id . "-media-frame', " . "frameTitle : '" . __('Choose image', 'cmsmasters') . "', " . "frameButton : '" . __('Choose', 'cmsmasters') . "', " . 'multiple : false ' . '} ); ' . '} ); ' . '} )(jQuery); ' . '} ); ' . '</script>'; break; case 'typorgaphy': $system_font = in_array('system_font', $choices) ? true : false; $google_font = in_array('google_font', $choices) ? true : false; $font_color = in_array('font_color', $choices) ? true : false; $font_size = in_array('font_size', $choices) ? true : false; $line_height = in_array('line_height', $choices) ? true : false; $font_weight = in_array('font_weight', $choices) ? true : false; $font_style = in_array('font_style', $choices) ? true : false; if ($system_font) { echo '<div class="cmsms_admin_block">' . '<select class="select" id="' . $id . '_system_font" name="' . $cmsms_option_name . '[' . $id . '_system_font]">'; foreach (cmsms_system_fonts_list() as $key => $value) { echo '<option value="' . $key . '"' . ($options[$id . '_system_font'] == $key ? ' selected="selected"' : '') . '>' . $value . '</option>'; } echo '</select>' . ' ' . '<label for="' . $id . '_system_font">' . __('System Font', 'cmsmasters') . '</label>' . '</div>'; } if ($google_font) { echo '<div class="cmsms_admin_block">' . '<select class="select" id="' . $id . '_google_font" name="' . $cmsms_option_name . '[' . $id . '_google_font]">'; foreach (cmsms_google_fonts_list() as $key => $value) { echo '<option value="' . $key . '"' . ($options[$id . '_google_font'] == $key ? ' selected="selected"' : '') . '>' . $value . '</option>'; } echo '</select>' . ' ' . '<label for="' . $id . '_google_font">' . __('Google Font', 'cmsmasters') . '</label>' . '</div>'; } if ($font_color) { echo '<div class="cmsms_admin_block" style="padding-bottom:20px;">' . '<input type="text" id="' . $id . '_font_color" name="' . $cmsms_option_name . '[' . $id . '_font_color]" value="' . $options[$id . '_font_color'] . '" class="my-color-field" data-default-color="' . $std['font_color'] . '" />' . ' ' . '<label for="' . $id . '_font_color" style="padding-bottom:15px;">' . __('Font Color', 'cmsmasters') . '</label>' . '</div>' . '<script type="text/javascript">' . 'jQuery(document).ready(function () { ' . '(function ($) { ' . "\$('#" . $id . "_font_color').wpColorPicker(); " . '} )(jQuery); ' . '} ); ' . '</script>'; } if ($font_size) { echo '<div class="cmsms_admin_block">' . '<input class="small-text" type="text" id="' . $id . '_font_size_number" name="' . $cmsms_option_name . '[' . $id . '_font_size]" value="' . $options[$id . '_font_size'] . '" /> ' . ' ' . '<label for="' . $id . '_font_size_number">' . __('Font Size', 'cmsmasters') . ' <em>(' . __('in pixels', 'cmsmasters') . ')</em></label>' . '</div>'; } if ($line_height) { echo '<div class="cmsms_admin_block">' . '<input class="small-text" type="text" id="' . $id . '_line_height_number" name="' . $cmsms_option_name . '[' . $id . '_line_height]" value="' . $options[$id . '_line_height'] . '" /> ' . ' ' . '<label for="' . $id . '_line_height_number">' . __('Line Height', 'cmsmasters') . ' <em>(' . __('in pixels', 'cmsmasters') . ')</em></label>' . '</div>'; } if ($font_weight) { echo '<div class="cmsms_admin_block">' . '<select class="select" id="' . $id . '_font_weight" name="' . $cmsms_option_name . '[' . $id . '_font_weight]">'; foreach (cmsms_font_weight_list() as $key => $value) { echo '<option value="' . $key . '"' . ($options[$id . '_font_weight'] == $key ? ' selected="selected"' : '') . '>' . $value . '</option>'; } echo '</select>' . ' ' . '<label for="' . $id . '_font_weight">' . __('Font Weight', 'cmsmasters') . '</label>' . '</div>'; } if ($font_style) { echo '<div class="cmsms_admin_block">' . '<select class="select" id="' . $id . '_font_style" name="' . $cmsms_option_name . '[' . $id . '_font_style]">'; foreach (cmsms_font_style_list() as $key => $value) { echo '<option value="' . $key . '"' . ($options[$id . '_font_style'] == $key ? ' selected="selected"' : '') . '>' . $value . '</option>'; } echo '</select>' . ' ' . '<label for="' . $id . '_font_style">' . __('Font Style', 'cmsmasters') . '</label>' . '</div>'; } echo $desc != '' ? '<span class="description">' . $desc . '</span>' : ''; break; case 'sidebar': echo '<script type="text/javascript"> ' . 'jQuery(document).ready(function () { ' . "jQuery('.sidebar_management').on('click', '.sidebar_del', function () { " . "var del_sidebar_number = Number(jQuery('#custom_sidebars_number').val()) - 1; " . "jQuery('#custom_sidebars_number').val(del_sidebar_number); " . 'jQuery(this).parent().remove(); ' . 'var li_input = undefined, ' . "li_input_val = '';" . 'for (var n = 1; n <= del_sidebar_number; n += 1) { ' . "li_input = jQuery('.sidebar_management ul li:eq(' + (n - 1) + ')').find('input[type=\"hidden\"]');" . "li_input_val = li_input.attr('name').split('_-_');" . "jQuery('.sidebar_management ul li:eq(' + (n - 1) + ')').find('input[type=\"hidden\"]').attr( { name : li_input_val[0] + '_-_' + n + ']'} );" . '} ' . 'return false; ' . '} ); ' . "jQuery('#add_sidebar').click(function () { " . "if (jQuery('#new_sidebar_name').val() !== '') { " . "var sidebar_number = Number(jQuery('#custom_sidebars_number').val()) + 1; " . "jQuery('#custom_sidebars_number').val(sidebar_number); " . "jQuery('.sidebar_management ul').append('<li>' + " . "'<a href=\"#\" class=\"sidebar_del\">" . __('Delete', 'cmsmasters') . "</a> ' + " . "jQuery('#new_sidebar_name').val() + " . "'<input type=\"hidden\" name=\"" . $cmsms_option_name . "[" . $id . "_-_' + sidebar_number + ']\" value=\"' + jQuery('#new_sidebar_name').val() + '\" />' + " . "'</li>'); " . "jQuery('#new_sidebar_name').val(''); " . '}' . 'return false; ' . '} ); ' . '} ); ' . '</script>' . ($desc != '' ? '<span class="description">' . $desc . '</span>' . '<br />' . '<br />' : '') . '<div class="sidebar_management">' . '<p>' . '<input class="all-options" type="text" id="new_sidebar_name" />' . '<input class="button" type="button" id="add_sidebar" value="' . __('Add Sidebar', 'cmsmasters') . '" />' . '</p>' . '<div></div>' . '<ul>'; if (isset($options[$id]) && is_array($options[$id])) { $i = 0; foreach ($options[$id] as $sidebar) { $i++; echo '<li>' . '<a href="#" class="sidebar_del">' . __('Delete', 'cmsmasters') . '</a> ' . $sidebar . '<input type="hidden" name="' . $cmsms_option_name . '[' . $id . '_-_' . $i . ']" value="' . $sidebar . '" />' . '</li>'; } } echo '</ul>' . '<input id="custom_sidebars_number" type="hidden" name="' . $cmsms_option_name . '[' . $id . '_number]" value="' . (isset($options[$id]) && is_array($options[$id]) ? $i : 0) . '" />' . '</div>'; break; case 'heading': echo ($desc != '' ? '<span class="description">' . $desc . '</span>' . '<br />' . '<br />' : '') . '<div class="icon_management">' . '<p>' . '<input id="' . $id . '_button" class="heading_upload_image_button button" type="button" value="' . __('Add Icons', 'cmsmasters') . '" />' . '</p>' . '<div></div>' . '<ul>'; if (isset($options[$id]) && is_array($options[$id])) { $i = 0; foreach ($options[$id] as $icon) { $image = wp_get_attachment_image_src($icon, 'thumbnail'); $image = $image[0]; $i++; echo '<li>' . '<div>' . '<img src="' . $image . '" alt="" class="icon_list_image" />' . '<input type="hidden" name="' . $cmsms_option_name . '[' . $id . '_-_' . $i . ']" value="' . $icon . '" />' . '</div>' . '<a href="#" class="icon_del" title="' . __('Delete', 'cmsmasters') . '">' . __('Delete', 'cmsmasters') . '</a> ' . '</li>'; } } echo '</ul>' . '<input id="heading_icons_number" type="hidden" name="' . $cmsms_option_name . '[' . $id . '_number]" value="' . $i . '" />' . '</div>' . '<script type="text/javascript">' . 'jQuery(document).ready(function () { ' . '(function ($) { ' . "\$('#" . $id . "_button').bind('click', function (e) { " . 'e.preventDefault(); ' . '$(e.target).cmsmsMediaUploader( { ' . "frameId : 'cmsms-" . $id . "-media-frame', " . "frameClass : 'media-frame cmsms-media-frame cmsms-" . $id . "-media-frame', " . "frameTitle : '" . __('Choose heading icons', 'cmsmasters') . "', " . "frameButton : '" . __('Choose', 'cmsmasters') . "', " . "optionName : '" . $cmsms_option_name . "', " . "optionID : '" . $id . "', " . "deleteText : '" . __('Delete', 'cmsmasters') . "', " . 'multiple : true ' . '} ); ' . '} ); ' . '} )(jQuery); ' . '} ); ' . '</script>'; break; case 'social': echo ($desc != '' ? '<span class="description">' . $desc . '</span>' . '<br />' . '<br />' : '') . '<div class="icon_management">' . '<p>' . '<img src="" class="icon_preview_image" alt="" style="display:none;" />' . '<small style="display:none;">' . '<a href="#" class="icon_clear_image_button">[X] ' . __('Cancel', 'cmsmasters') . '</a>' . '</small>' . '<span class="cl"></span>' . '<span class="icon_upload_link" style="display:none;">' . '<input class="all-options" type="text" id="new_icon_link" /> ' . '<label for="new_icon_link">' . __('Enter Link for This Icon', 'cmsmasters') . '</label>' . '<br />' . '<input type="checkbox" id="new_icon_target" value="true" /> ' . '<label for="new_icon_target">' . __('Open Link in a New Tab', 'cmsmasters') . '</label>' . '</span>' . '<span class="cl"></span>' . '<input class="icon_upload_image all-options" type="hidden" id="new_icon_name" />' . '<input id="' . $id . '_button" class="icon_upload_image_button button" type="button" value="' . __('Choose new social icon image', 'cmsmasters') . '" />' . '<span class="cl"><br /></span>' . '<input class="button-primary" type="button" id="add_icon" value="' . __('Add Icon', 'cmsmasters') . '" />' . '<input class="button-primary" type="button" id="edit_icon" value="' . __('Save Icon', 'cmsmasters') . '" style="display:none;" />' . '</p>' . '<div></div>' . '<ul>'; if (isset($options[$id]) && is_array($options[$id])) { $i = 0; foreach ($options[$id] as $icon) { $icon_array = explode('|', $icon); if (is_numeric($icon_array[0])) { $image = wp_get_attachment_image_src($icon_array[0], 'thumbnail'); $image = $image[0]; } else { $image = $icon_array[0]; } $i++; echo '<li>' . '<div>' . '<img src="' . $image . '" alt="" class="icon_list_image" />' . '<input type="hidden" id="' . $cmsms_option_name . '_' . $id . '_-_' . $i . '" name="' . $cmsms_option_name . '[' . $id . '_-_' . $i . ']" value="' . $icon . '" />' . '</div>' . '<a href="#" class="icon_del" title="' . __('Delete', 'cmsmasters') . '">' . __('Delete', 'cmsmasters') . '</a> ' . '<a href="#" class="icon_edit" title="' . __('Edit', 'cmsmasters') . '">' . __('Edit', 'cmsmasters') . '</a> ' . '</li>'; } } echo '</ul>' . '<input id="custom_icons_number" type="hidden" name="' . $cmsms_option_name . '[' . $id . '_number]" value="' . $i . '" />' . '</div>' . '<script type="text/javascript"> ' . 'jQuery(document).ready(function () { ' . "jQuery('#add_icon').click(function () { " . "if (jQuery('#new_icon_name').val() !== '') { " . "var icon_number = Number(jQuery('#custom_icons_number').val()) + 1; " . "jQuery('#custom_icons_number').val(icon_number); " . "jQuery('.icon_management ul').append('<li>' + " . "'<div>' + " . "'<img src=\"' + jQuery('#new_icon_name').parent().find('.icon_preview_image').attr('src') + '\" alt=\"\" class=\"icon_list_image\" />' + " . "'<input type=\"hidden\" id=\"" . $cmsms_option_name . "_" . $id . "_-_' + icon_number + '\" name=\"" . $cmsms_option_name . "[" . $id . "_-_' + icon_number + ']\" value=\"' + jQuery('#new_icon_name').val() + '|' + jQuery('#new_icon_link').val() + '|' + ((jQuery('#new_icon_target').is(':checked')) ? 'true' : 'false') + '\" />' + " . "'</div>' + " . "'<a href=\"#\" class=\"icon_del\" title=\"" . __('Delete', 'cmsmasters') . "\">" . __('Delete', 'cmsmasters') . "</a> ' + " . "'<a href=\"#\" class=\"icon_edit\" title=\"" . __('Edit', 'cmsmasters') . "\">" . __('Edit', 'cmsmasters') . "</a> ' + " . "'</li>'); " . "jQuery('#new_icon_name').val(''); " . "jQuery('#new_icon_link').val(''); " . "jQuery('.icon_preview_image').attr( { src : '' } ).hide();" . "jQuery('.icon_clear_image_button').parent().hide();" . "jQuery('.icon_upload_link').hide();" . '}' . 'return false; ' . '} ); ' . '(function ($) { ' . "\$('#" . $id . "_button').bind('click', function (e) { " . 'e.preventDefault(); ' . '$(e.target).cmsmsSocialUploader( { ' . "frameId : 'cmsms-" . $id . "-media-frame', " . "frameClass : 'media-frame cmsms-media-frame cmsms-" . $id . "-media-frame', " . "frameTitle : '" . __('Choose heading icons', 'cmsmasters') . "', " . "frameButton : '" . __('Choose', 'cmsmasters') . "', " . "optionName : '" . $cmsms_option_name . "', " . "optionID : '" . $id . "' " . '} ); ' . '} ); ' . '} )(jQuery); ' . '} ); ' . '</script>'; break; } }
/** * @package WordPress * @subpackage Newgate * @since Newgate 1.0 * * Theme Customizer * Created by CMSMasters * */ function cmsms_theme_customizer($wp_customize) { // General Options Section $wp_customize->add_section('cmsms_general_section', array('title' => __('General Options', 'cmsmasters'), 'description' => __('Allows you to change theme general options', 'cmsmasters'), 'priority' => '121')); // General Options Theme Color $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_general[' . CMSMS_SHORTNAME . '_theme_color]', array('default' => '#ff938a', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, CMSMS_SHORTNAME . '_theme_color', array('label' => __('Theme Color', 'cmsmasters'), 'section' => 'cmsms_general_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_general[' . CMSMS_SHORTNAME . '_theme_color]', 'priority' => '1'))); // General Options Responsive Layout $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_general[' . CMSMS_SHORTNAME . '_responsive]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_general[' . CMSMS_SHORTNAME . '_responsive]', array('label' => __('Responsive Layout', 'cmsmasters'), 'section' => 'cmsms_general_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_general[' . CMSMS_SHORTNAME . '_responsive]', 'type' => 'checkbox', 'priority' => '2')); // General Options High Resolution $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_general[' . CMSMS_SHORTNAME . '_retina]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_general[' . CMSMS_SHORTNAME . '_retina]', array('label' => __('High Resolution', 'cmsmasters'), 'section' => 'cmsms_general_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_general[' . CMSMS_SHORTNAME . '_retina]', 'type' => 'checkbox', 'priority' => '3')); // Header Options Section $wp_customize->add_section('cmsms_header_section', array('title' => __('Header Options', 'cmsmasters'), 'description' => __('Allows you to change theme header options', 'cmsmasters'), 'priority' => '122')); // Fixed Header $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_style_header[' . CMSMS_SHORTNAME . '_header_nav_fixed]', array('default' => 0, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_style_header[' . CMSMS_SHORTNAME . '_header_nav_fixed]', array('label' => __('Fixed Header', 'cmsmasters'), 'section' => 'cmsms_header_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_style_header[' . CMSMS_SHORTNAME . '_header_nav_fixed]', 'type' => 'checkbox', 'priority' => '1')); // Header Options Header Height $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_style_header[' . CMSMS_SHORTNAME . '_header_height]', array('default' => 120, 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_style_header[' . CMSMS_SHORTNAME . '_header_height]', array('label' => __('Header Height', 'cmsmasters'), 'section' => 'cmsms_header_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_style_header[' . CMSMS_SHORTNAME . '_header_height]', 'type' => 'text', 'priority' => '2')); // Header Options Header Navigation Top Position $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_style_header[' . CMSMS_SHORTNAME . '_header_nav_top]', array('default' => 33, 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_style_header[' . CMSMS_SHORTNAME . '_header_nav_top]', array('label' => __('Header Navigation Top Position', 'cmsmasters'), 'section' => 'cmsms_header_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_style_header[' . CMSMS_SHORTNAME . '_header_nav_top]', 'type' => 'text', 'priority' => '3')); // Header Options Header Navigation Right Position $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_style_header[' . CMSMS_SHORTNAME . '_header_nav_right]', array('default' => 0, 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_style_header[' . CMSMS_SHORTNAME . '_header_nav_right]', array('label' => __('Header Navigation Right Position', 'cmsmasters'), 'section' => 'cmsms_header_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_style_header[' . CMSMS_SHORTNAME . '_header_nav_right]', 'type' => 'text', 'priority' => '4')); // Logo Options Section $wp_customize->add_section('cmsms_logo_section', array('title' => __('Logo Options', 'cmsmasters'), 'description' => __('Allows you to change theme logo options', 'cmsmasters'), 'priority' => '123')); // Logo Options Custom Logo Image URL $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_logo_image[' . CMSMS_SHORTNAME . '_logo_url]', array('default' => get_template_directory_uri() . '/img/logo.png', 'type' => 'option')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, CMSMS_SHORTNAME . '_logo_url', array('label' => __('Custom Logo Image URL', 'cmsmasters'), 'section' => 'cmsms_logo_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_logo_image[' . CMSMS_SHORTNAME . '_logo_url]', 'priority' => '1'))); // Logo Options Custom Logo Image Width $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_logo_image[' . CMSMS_SHORTNAME . '_logo_width]', array('default' => 190, 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_logo_image[' . CMSMS_SHORTNAME . '_logo_width]', array('label' => __('Custom Logo Image Width', 'cmsmasters'), 'section' => 'cmsms_logo_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_logo_image[' . CMSMS_SHORTNAME . '_logo_width]', 'type' => 'text', 'priority' => '2')); // Logo Options Custom Logo Image Height $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_logo_image[' . CMSMS_SHORTNAME . '_logo_height]', array('default' => 80, 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_logo_image[' . CMSMS_SHORTNAME . '_logo_height]', array('label' => __('Custom Logo Image Height', 'cmsmasters'), 'section' => 'cmsms_logo_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_logo_image[' . CMSMS_SHORTNAME . '_logo_height]', 'type' => 'text', 'priority' => '3')); // Logo Options Custom Logo Top Position $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_logo_image[' . CMSMS_SHORTNAME . '_logo_top]', array('default' => 20, 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_logo_image[' . CMSMS_SHORTNAME . '_logo_top]', array('label' => __('Custom Logo Top Position', 'cmsmasters'), 'section' => 'cmsms_logo_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_logo_image[' . CMSMS_SHORTNAME . '_logo_top]', 'type' => 'text', 'priority' => '4')); // Logo Options Custom Logo Left Position $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_logo_image[' . CMSMS_SHORTNAME . '_logo_left]', array('default' => 0, 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_logo_image[' . CMSMS_SHORTNAME . '_logo_left]', array('label' => __('Custom Logo Left Position', 'cmsmasters'), 'section' => 'cmsms_logo_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_logo_image[' . CMSMS_SHORTNAME . '_logo_left]', 'type' => 'text', 'priority' => '5')); // Logo Options Text Logo $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_logo_text[' . CMSMS_SHORTNAME . '_text_logo]', array('default' => 0, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_logo_text[' . CMSMS_SHORTNAME . '_text_logo]', array('label' => __('Text Logo', 'cmsmasters'), 'section' => 'cmsms_logo_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_logo_text[' . CMSMS_SHORTNAME . '_text_logo]', 'type' => 'checkbox', 'priority' => '6')); // Logo Options Custom Logo Title $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_logo_text[' . CMSMS_SHORTNAME . '_text_logo_title]', array('default' => get_bloginfo('name') ? get_bloginfo('name') : 'Newgate', 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_logo_text[' . CMSMS_SHORTNAME . '_text_logo_title]', array('label' => __('Custom Logo Title', 'cmsmasters'), 'section' => 'cmsms_logo_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_logo_text[' . CMSMS_SHORTNAME . '_text_logo_title]', 'type' => 'text', 'priority' => '7')); // Logo Options Logo Subtitle $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_logo_text[' . CMSMS_SHORTNAME . '_text_logo_subtitle]', array('default' => 0, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_logo_text[' . CMSMS_SHORTNAME . '_text_logo_subtitle]', array('label' => __('Logo Subtitle', 'cmsmasters'), 'section' => 'cmsms_logo_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_logo_text[' . CMSMS_SHORTNAME . '_text_logo_subtitle]', 'type' => 'checkbox', 'priority' => '8')); // Logo Options Custom Logo Subtitle $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_logo_text[' . CMSMS_SHORTNAME . '_text_logo_subtitle_text]', array('default' => get_bloginfo('description') ? get_bloginfo('description') : 'Corporate & Business', 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_logo_text[' . CMSMS_SHORTNAME . '_text_logo_subtitle_text]', array('label' => __('Custom Logo Subtitle', 'cmsmasters'), 'section' => 'cmsms_logo_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_logo_text[' . CMSMS_SHORTNAME . '_text_logo_subtitle_text]', 'type' => 'text', 'priority' => '9')); // Background Options Section $wp_customize->add_section('cmsms_bg_section', array('title' => __('Background Options', 'cmsmasters'), 'description' => __('Allows you to change theme background options', 'cmsmasters'), 'priority' => '124')); // Background Options Boxed Version $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_style_bg[' . CMSMS_SHORTNAME . '_boxed_version]', array('default' => 0, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_style_bg[' . CMSMS_SHORTNAME . '_boxed_version]', array('label' => __('Boxed Version', 'cmsmasters'), 'section' => 'cmsms_bg_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_style_bg[' . CMSMS_SHORTNAME . '_boxed_version]', 'type' => 'checkbox', 'priority' => '1')); // Background Options Background Color $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_style_bg[' . CMSMS_SHORTNAME . '_bg_col]', array('default' => '#fbfbfa', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, CMSMS_SHORTNAME . '_bg_col', array('label' => __('Background Color', 'cmsmasters'), 'section' => 'cmsms_bg_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_style_bg[' . CMSMS_SHORTNAME . '_bg_col]', 'priority' => '2'))); // Background Options Background Image $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_style_bg[' . CMSMS_SHORTNAME . '_bg_img]', array('default' => get_template_directory_uri() . '/img/bg.jpg', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, CMSMS_SHORTNAME . '_bg_img', array('label' => __('Background Image', 'cmsmasters'), 'section' => 'cmsms_bg_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_style_bg[' . CMSMS_SHORTNAME . '_bg_img]', 'priority' => '3'))); // Background Options Background Repeat $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_style_bg[' . CMSMS_SHORTNAME . '_bg_rep]', array('default' => 'no-repeat', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_style_bg[' . CMSMS_SHORTNAME . '_bg_rep]', array('label' => __('Background Repeat', 'cmsmasters'), 'section' => 'cmsms_bg_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_style_bg[' . CMSMS_SHORTNAME . '_bg_rep]', 'type' => 'radio', 'choices' => array('no-repeat' => __('No Repeat', 'cmsmasters'), 'repeat-x' => __('Repeat Horizontally', 'cmsmasters'), 'repeat-y' => __('Repeat Vertically', 'cmsmasters'), 'repeat' => __('Repeat', 'cmsmasters')), 'priority' => '4')); // Background Options Background Position $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_style_bg[' . CMSMS_SHORTNAME . '_bg_pos]', array('default' => 'top center', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_style_bg[' . CMSMS_SHORTNAME . '_bg_pos]', array('label' => __('Background Position', 'cmsmasters'), 'section' => 'cmsms_bg_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_style_bg[' . CMSMS_SHORTNAME . '_bg_pos]', 'type' => 'select', 'choices' => array('top left' => __('Top Left', 'cmsmasters'), 'top center' => __('Top Center', 'cmsmasters'), 'top right' => __('Top Right', 'cmsmasters'), 'center left' => __('Center Left', 'cmsmasters'), 'center center' => __('Center Center', 'cmsmasters'), 'center right' => __('Center Right', 'cmsmasters'), 'bottom left' => __('Bottom Left', 'cmsmasters'), 'bottom center' => __('Bottom Center', 'cmsmasters'), 'bottom right' => __('Bottom Right', 'cmsmasters')), 'priority' => '5')); // Background Options Background Attachment $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_style_bg[' . CMSMS_SHORTNAME . '_bg_att]', array('default' => 'fixed', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_style_bg[' . CMSMS_SHORTNAME . '_bg_att]', array('label' => __('Background Attachment', 'cmsmasters'), 'section' => 'cmsms_bg_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_style_bg[' . CMSMS_SHORTNAME . '_bg_att]', 'type' => 'radio', 'choices' => array('scroll' => __('Scroll', 'cmsmasters'), 'fixed' => __('Fixed', 'cmsmasters')), 'priority' => '6')); // Footer Options Section $wp_customize->add_section('cmsms_footer_section', array('title' => __('Footer Options', 'cmsmasters'), 'description' => __('Allows you to change theme footer options', 'cmsmasters'), 'priority' => '125')); // Footer Options Footer Copyright Text $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_style_footer[' . CMSMS_SHORTNAME . '_footer_copyright]', array('default' => CMSMS_FULLNAME . ' © 2013 | ' . __('All Rights Reserved', 'cmsmasters'), 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_style_footer[' . CMSMS_SHORTNAME . '_footer_copyright]', array('label' => __('Copyright Text', 'cmsmasters'), 'section' => 'cmsms_footer_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_style_footer[' . CMSMS_SHORTNAME . '_footer_copyright]', 'type' => 'text', 'priority' => '1')); // Footer Options Footer Additional Content $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_style_footer[' . CMSMS_SHORTNAME . '_footer_additional_content]', array('default' => 'social', 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_style_footer[' . CMSMS_SHORTNAME . '_footer_additional_content]', array('label' => __('Footer Additional Content', 'cmsmasters'), 'section' => 'cmsms_footer_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_style_footer[' . CMSMS_SHORTNAME . '_footer_additional_content]', 'type' => 'radio', 'choices' => array('none' => __('None', 'cmsmasters'), 'nav' => __('Footer Navigation', 'cmsmasters'), 'social' => __('Social Icons', 'cmsmasters'), 'text' => __('Custom HTML', 'cmsmasters')), 'priority' => '2')); // Content Font Options Section $wp_customize->add_section('cmsms_font_content_section', array('title' => __('Content Font Options', 'cmsmasters'), 'description' => __('Allows you to change theme content font options', 'cmsmasters'), 'priority' => '126')); // Content Font Options System Font $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_content[' . CMSMS_SHORTNAME . '_content_font_system_font]', array('default' => "Arial,Helvetica,'Nimbus Sans L',sans-serif", 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_content[' . CMSMS_SHORTNAME . '_content_font_system_font]', array('label' => __('System Font', 'cmsmasters'), 'section' => 'cmsms_font_content_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_content[' . CMSMS_SHORTNAME . '_content_font_system_font]', 'type' => 'select', 'choices' => cmsms_system_fonts_list(), 'priority' => '1')); // Content Font Options Google Font $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_content[' . CMSMS_SHORTNAME . '_content_font_google_font]', array('default' => '', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_content[' . CMSMS_SHORTNAME . '_content_font_google_font]', array('label' => __('Google Font', 'cmsmasters'), 'section' => 'cmsms_font_content_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_content[' . CMSMS_SHORTNAME . '_content_font_google_font]', 'type' => 'select', 'choices' => cmsms_google_fonts_list(), 'priority' => '2')); // Content Font Options Font Color $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_content[' . CMSMS_SHORTNAME . '_content_font_font_color]', array('default' => '#979797', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, CMSMS_SHORTNAME . '_content_font_font_color', array('label' => __('Font Color', 'cmsmasters'), 'section' => 'cmsms_font_content_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_content[' . CMSMS_SHORTNAME . '_content_font_font_color]', 'priority' => '3'))); // Content Font Options Font Size $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_content[' . CMSMS_SHORTNAME . '_content_font_font_size]', array('default' => '13', 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_content[' . CMSMS_SHORTNAME . '_content_font_font_size]', array('label' => __('Font Size', 'cmsmasters'), 'section' => 'cmsms_font_content_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_content[' . CMSMS_SHORTNAME . '_content_font_font_size]', 'type' => 'text', 'priority' => '4')); // Content Font Options Line Height $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_content[' . CMSMS_SHORTNAME . '_content_font_line_height]', array('default' => '18', 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_content[' . CMSMS_SHORTNAME . '_content_font_line_height]', array('label' => __('Line Height', 'cmsmasters'), 'section' => 'cmsms_font_content_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_content[' . CMSMS_SHORTNAME . '_content_font_line_height]', 'type' => 'text', 'priority' => '5')); // Content Font Options Font Weight $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_content[' . CMSMS_SHORTNAME . '_content_font_font_weight]', array('default' => 'normal', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_content[' . CMSMS_SHORTNAME . '_content_font_font_weight]', array('label' => __('Font Weight', 'cmsmasters'), 'section' => 'cmsms_font_content_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_content[' . CMSMS_SHORTNAME . '_content_font_font_weight]', 'type' => 'select', 'choices' => cmsms_font_weight_list(), 'priority' => '6')); // Content Font Options Font Style $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_content[' . CMSMS_SHORTNAME . '_content_font_font_style]', array('default' => 'normal', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_content[' . CMSMS_SHORTNAME . '_content_font_font_style]', array('label' => __('Font Style', 'cmsmasters'), 'section' => 'cmsms_font_content_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_content[' . CMSMS_SHORTNAME . '_content_font_font_style]', 'type' => 'select', 'choices' => cmsms_font_style_list(), 'priority' => '7')); // Links Font Options Section $wp_customize->add_section('cmsms_font_link_section', array('title' => __('Links Font Options', 'cmsmasters'), 'description' => __('Allows you to change theme links font options', 'cmsmasters'), 'priority' => '127')); // Links Font Options System Font $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_link[' . CMSMS_SHORTNAME . '_link_font_system_font]', array('default' => "Arial,Helvetica,'Nimbus Sans L',sans-serif", 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_link[' . CMSMS_SHORTNAME . '_link_font_system_font]', array('label' => __('System Font', 'cmsmasters'), 'section' => 'cmsms_font_link_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_link[' . CMSMS_SHORTNAME . '_link_font_system_font]', 'type' => 'select', 'choices' => cmsms_system_fonts_list(), 'priority' => '1')); // Links Font Options Google Font $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_link[' . CMSMS_SHORTNAME . '_link_font_google_font]', array('default' => '', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_link[' . CMSMS_SHORTNAME . '_link_font_google_font]', array('label' => __('Google Font', 'cmsmasters'), 'section' => 'cmsms_font_link_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_link[' . CMSMS_SHORTNAME . '_link_font_google_font]', 'type' => 'select', 'choices' => cmsms_google_fonts_list(), 'priority' => '2')); // Links Font Options Font Color $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_link[' . CMSMS_SHORTNAME . '_link_font_font_color]', array('default' => '#ff938a', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, CMSMS_SHORTNAME . '_link_font_font_color', array('label' => __('Font Color', 'cmsmasters'), 'section' => 'cmsms_font_link_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_link[' . CMSMS_SHORTNAME . '_link_font_font_color]', 'priority' => '3'))); // Links Font Options Font Hover Color $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_link[' . CMSMS_SHORTNAME . '_link_font_hover]', array('default' => '#979797', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, CMSMS_SHORTNAME . '_link_font_hover', array('label' => __('Font Hover Color', 'cmsmasters'), 'section' => 'cmsms_font_link_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_link[' . CMSMS_SHORTNAME . '_link_font_hover]', 'priority' => '4'))); // Links Font Options Font Size $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_link[' . CMSMS_SHORTNAME . '_link_font_font_size]', array('default' => '13', 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_link[' . CMSMS_SHORTNAME . '_link_font_font_size]', array('label' => __('Font Size', 'cmsmasters'), 'section' => 'cmsms_font_link_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_link[' . CMSMS_SHORTNAME . '_link_font_font_size]', 'type' => 'text', 'priority' => '5')); // Links Font Options Line Height $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_link[' . CMSMS_SHORTNAME . '_link_font_line_height]', array('default' => '18', 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_link[' . CMSMS_SHORTNAME . '_link_font_line_height]', array('label' => __('Line Height', 'cmsmasters'), 'section' => 'cmsms_font_link_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_link[' . CMSMS_SHORTNAME . '_link_font_line_height]', 'type' => 'text', 'priority' => '6')); // Links Font Options Font Weight $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_link[' . CMSMS_SHORTNAME . '_link_font_font_weight]', array('default' => 'normal', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_link[' . CMSMS_SHORTNAME . '_link_font_font_weight]', array('label' => __('Font Weight', 'cmsmasters'), 'section' => 'cmsms_font_link_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_link[' . CMSMS_SHORTNAME . '_link_font_font_weight]', 'type' => 'select', 'choices' => cmsms_font_weight_list(), 'priority' => '7')); // Links Font Options Font Style $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_link[' . CMSMS_SHORTNAME . '_link_font_font_style]', array('default' => 'normal', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_link[' . CMSMS_SHORTNAME . '_link_font_font_style]', array('label' => __('Font Style', 'cmsmasters'), 'section' => 'cmsms_font_link_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_link[' . CMSMS_SHORTNAME . '_link_font_font_style]', 'type' => 'select', 'choices' => cmsms_font_style_list(), 'priority' => '8')); // Navigation Title Font Options Section $wp_customize->add_section('cmsms_font_nav_title_section', array('title' => __('Navigation Title Font Options', 'cmsmasters'), 'description' => __('Allows you to change theme navigation title font options', 'cmsmasters'), 'priority' => '128')); // Navigation Title Font Options System Font $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_title_font_system_font]', array('default' => "Arial,Helvetica,'Nimbus Sans L',sans-serif", 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_title_font_system_font]', array('label' => __('System Font', 'cmsmasters'), 'section' => 'cmsms_font_nav_title_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_title_font_system_font]', 'type' => 'select', 'choices' => cmsms_system_fonts_list(), 'priority' => '1')); // Navigation Title Font Options Google Font $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_title_font_google_font]', array('default' => '', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_title_font_google_font]', array('label' => __('Google Font', 'cmsmasters'), 'section' => 'cmsms_font_nav_title_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_title_font_google_font]', 'type' => 'select', 'choices' => cmsms_google_fonts_list(), 'priority' => '2')); // Navigation Title Font Options Font Color $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_title_font_font_color]', array('default' => '#a4a4a4', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, CMSMS_SHORTNAME . '_nav_title_font_font_color', array('label' => __('Font Color', 'cmsmasters'), 'section' => 'cmsms_font_nav_title_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_title_font_font_color]', 'priority' => '3'))); // Navigation Title Font Options Font Hover Color $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_title_font_hover]', array('default' => '#6c6c6c', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, CMSMS_SHORTNAME . '_nav_title_font_hover', array('label' => __('Font Hover Color', 'cmsmasters'), 'section' => 'cmsms_font_nav_title_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_title_font_hover]', 'priority' => '4'))); // Navigation Title Font Options Font Size $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_title_font_font_size]', array('default' => '14', 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_title_font_font_size]', array('label' => __('Font Size', 'cmsmasters'), 'section' => 'cmsms_font_nav_title_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_title_font_font_size]', 'type' => 'text', 'priority' => '5')); // Navigation Title Font Options Line Height $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_title_font_line_height]', array('default' => '20', 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_title_font_line_height]', array('label' => __('Line Height', 'cmsmasters'), 'section' => 'cmsms_font_nav_title_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_title_font_line_height]', 'type' => 'text', 'priority' => '6')); // Navigation Title Font Options Font Weight $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_title_font_font_weight]', array('default' => 'bold', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_title_font_font_weight]', array('label' => __('Font Weight', 'cmsmasters'), 'section' => 'cmsms_font_nav_title_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_title_font_font_weight]', 'type' => 'select', 'choices' => cmsms_font_weight_list(), 'priority' => '7')); // Navigation Title Font Options Font Style $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_title_font_font_style]', array('default' => 'normal', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_title_font_font_style]', array('label' => __('Font Style', 'cmsmasters'), 'section' => 'cmsms_font_nav_title_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_title_font_font_style]', 'type' => 'select', 'choices' => cmsms_font_style_list(), 'priority' => '8')); // Navigation Dropdown Font Options Section $wp_customize->add_section('cmsms_font_nav_dropdown_section', array('title' => __('Navigation Dropdown Font Options', 'cmsmasters'), 'description' => __('Allows you to change theme navigation dropdown font options', 'cmsmasters'), 'priority' => '129')); // Navigation Dropdown Font Options System Font $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_dropdown_font_system_font]', array('default' => "Arial,Helvetica,'Nimbus Sans L',sans-serif", 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_dropdown_font_system_font]', array('label' => __('System Font', 'cmsmasters'), 'section' => 'cmsms_font_nav_dropdown_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_dropdown_font_system_font]', 'type' => 'select', 'choices' => cmsms_system_fonts_list(), 'priority' => '1')); // Navigation Dropdown Font Options Google Font $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_dropdown_font_google_font]', array('default' => '', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_dropdown_font_google_font]', array('label' => __('Google Font', 'cmsmasters'), 'section' => 'cmsms_font_nav_dropdown_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_dropdown_font_google_font]', 'type' => 'select', 'choices' => cmsms_google_fonts_list(), 'priority' => '2')); // Navigation Dropdown Font Options Font Color $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_dropdown_font_font_color]', array('default' => '#6c6c6c', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, CMSMS_SHORTNAME . '_nav_dropdown_font_font_color', array('label' => __('Font Color', 'cmsmasters'), 'section' => 'cmsms_font_nav_dropdown_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_dropdown_font_font_color]', 'priority' => '3'))); // Navigation Dropdown Font Options Font Hover Color $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_dropdown_font_hover]', array('default' => '#ffffff', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, CMSMS_SHORTNAME . '_nav_dropdown_font_hover', array('label' => __('Font Hover Color', 'cmsmasters'), 'section' => 'cmsms_font_nav_dropdown_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_dropdown_font_hover]', 'priority' => '4'))); // Navigation Dropdown Font Options Font Size $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_dropdown_font_font_size]', array('default' => '13', 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_dropdown_font_font_size]', array('label' => __('Font Size', 'cmsmasters'), 'section' => 'cmsms_font_nav_dropdown_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_dropdown_font_font_size]', 'type' => 'text', 'priority' => '5')); // Navigation Dropdown Font Options Line Height $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_dropdown_font_line_height]', array('default' => '20', 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_dropdown_font_line_height]', array('label' => __('Line Height', 'cmsmasters'), 'section' => 'cmsms_font_nav_dropdown_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_dropdown_font_line_height]', 'type' => 'text', 'priority' => '6')); // Navigation Dropdown Font Options Font Weight $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_dropdown_font_font_weight]', array('default' => 'normal', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_dropdown_font_font_weight]', array('label' => __('Font Weight', 'cmsmasters'), 'section' => 'cmsms_font_nav_dropdown_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_dropdown_font_font_weight]', 'type' => 'select', 'choices' => cmsms_font_weight_list(), 'priority' => '7')); // Navigation Dropdown Font Options Font Style $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_dropdown_font_font_style]', array('default' => 'normal', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_dropdown_font_font_style]', array('label' => __('Font Style', 'cmsmasters'), 'section' => 'cmsms_font_nav_dropdown_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_nav[' . CMSMS_SHORTNAME . '_nav_dropdown_font_font_style]', 'type' => 'select', 'choices' => cmsms_font_style_list(), 'priority' => '8')); // H1 Heading Font Options Section $wp_customize->add_section('cmsms_font_h1_section', array('title' => __('H1 Heading Font Options', 'cmsmasters'), 'description' => __('Allows you to change theme H1 heading font options', 'cmsmasters'), 'priority' => '130')); // H1 Heading Font Options System Font $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h1[' . CMSMS_SHORTNAME . '_h1_font_system_font]', array('default' => "Arial,Helvetica,'Nimbus Sans L',sans-serif", 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h1[' . CMSMS_SHORTNAME . '_h1_font_system_font]', array('label' => __('System Font', 'cmsmasters'), 'section' => 'cmsms_font_h1_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h1[' . CMSMS_SHORTNAME . '_h1_font_system_font]', 'type' => 'select', 'choices' => cmsms_system_fonts_list(), 'priority' => '1')); // H1 Heading Font Options Google Font $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h1[' . CMSMS_SHORTNAME . '_h1_font_google_font]', array('default' => 'Raleway:400,700,200', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h1[' . CMSMS_SHORTNAME . '_h1_font_google_font]', array('label' => __('Google Font', 'cmsmasters'), 'section' => 'cmsms_font_h1_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h1[' . CMSMS_SHORTNAME . '_h1_font_google_font]', 'type' => 'select', 'choices' => cmsms_google_fonts_list(), 'priority' => '2')); // H1 Heading Font Options Font Color $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h1[' . CMSMS_SHORTNAME . '_h1_font_font_color]', array('default' => '#454545', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, CMSMS_SHORTNAME . '_h1_font_font_color', array('label' => __('Font Color', 'cmsmasters'), 'section' => 'cmsms_font_h1_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h1[' . CMSMS_SHORTNAME . '_h1_font_font_color]', 'priority' => '3'))); // H1 Heading Font Options Font Size $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h1[' . CMSMS_SHORTNAME . '_h1_font_font_size]', array('default' => '30', 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h1[' . CMSMS_SHORTNAME . '_h1_font_font_size]', array('label' => __('Font Size', 'cmsmasters'), 'section' => 'cmsms_font_h1_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h1[' . CMSMS_SHORTNAME . '_h1_font_font_size]', 'type' => 'text', 'priority' => '4')); // H1 Heading Font Options Line Height $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h1[' . CMSMS_SHORTNAME . '_h1_font_line_height]', array('default' => '36', 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h1[' . CMSMS_SHORTNAME . '_h1_font_line_height]', array('label' => __('Line Height', 'cmsmasters'), 'section' => 'cmsms_font_h1_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h1[' . CMSMS_SHORTNAME . '_h1_font_line_height]', 'type' => 'text', 'priority' => '5')); // H1 Heading Font Options Font Weight $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h1[' . CMSMS_SHORTNAME . '_h1_font_font_weight]', array('default' => '700', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h1[' . CMSMS_SHORTNAME . '_h1_font_font_weight]', array('label' => __('Font Weight', 'cmsmasters'), 'section' => 'cmsms_font_h1_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h1[' . CMSMS_SHORTNAME . '_h1_font_font_weight]', 'type' => 'select', 'choices' => cmsms_font_weight_list(), 'priority' => '6')); // H1 Heading Font Options Font Style $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h1[' . CMSMS_SHORTNAME . '_h1_font_font_style]', array('default' => 'normal', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h1[' . CMSMS_SHORTNAME . '_h1_font_font_style]', array('label' => __('Font Style', 'cmsmasters'), 'section' => 'cmsms_font_h1_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h1[' . CMSMS_SHORTNAME . '_h1_font_font_style]', 'type' => 'select', 'choices' => cmsms_font_style_list(), 'priority' => '7')); // H2 Heading Font Options Section $wp_customize->add_section('cmsms_font_h2_section', array('title' => __('H2 Heading Font Options', 'cmsmasters'), 'description' => __('Allows you to change theme H2 heading font options', 'cmsmasters'), 'priority' => '131')); // H2 Heading Font Options System Font $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h2[' . CMSMS_SHORTNAME . '_h2_font_system_font]', array('default' => "Arial,Helvetica,'Nimbus Sans L',sans-serif", 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h2[' . CMSMS_SHORTNAME . '_h2_font_system_font]', array('label' => __('System Font', 'cmsmasters'), 'section' => 'cmsms_font_h2_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h2[' . CMSMS_SHORTNAME . '_h2_font_system_font]', 'type' => 'select', 'choices' => cmsms_system_fonts_list(), 'priority' => '1')); // H2 Heading Font Options Google Font $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h2[' . CMSMS_SHORTNAME . '_h2_font_google_font]', array('default' => 'Raleway:400,700,200', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h2[' . CMSMS_SHORTNAME . '_h2_font_google_font]', array('label' => __('Google Font', 'cmsmasters'), 'section' => 'cmsms_font_h2_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h2[' . CMSMS_SHORTNAME . '_h2_font_google_font]', 'type' => 'select', 'choices' => cmsms_google_fonts_list(), 'priority' => '2')); // H2 Heading Font Options Font Color $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h2[' . CMSMS_SHORTNAME . '_h2_font_font_color]', array('default' => '#454545', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, CMSMS_SHORTNAME . '_h2_font_font_color', array('label' => __('Font Color', 'cmsmasters'), 'section' => 'cmsms_font_h2_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h2[' . CMSMS_SHORTNAME . '_h2_font_font_color]', 'priority' => '3'))); // H2 Heading Font Options Font Size $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h2[' . CMSMS_SHORTNAME . '_h2_font_font_size]', array('default' => '24', 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h2[' . CMSMS_SHORTNAME . '_h2_font_font_size]', array('label' => __('Font Size', 'cmsmasters'), 'section' => 'cmsms_font_h2_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h2[' . CMSMS_SHORTNAME . '_h2_font_font_size]', 'type' => 'text', 'priority' => '4')); // H2 Heading Font Options Line Height $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h2[' . CMSMS_SHORTNAME . '_h2_font_line_height]', array('default' => '36', 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h2[' . CMSMS_SHORTNAME . '_h2_font_line_height]', array('label' => __('Line Height', 'cmsmasters'), 'section' => 'cmsms_font_h2_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h2[' . CMSMS_SHORTNAME . '_h2_font_line_height]', 'type' => 'text', 'priority' => '5')); // H2 Heading Font Options Font Weight $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h2[' . CMSMS_SHORTNAME . '_h2_font_font_weight]', array('default' => '700', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h2[' . CMSMS_SHORTNAME . '_h2_font_font_weight]', array('label' => __('Font Weight', 'cmsmasters'), 'section' => 'cmsms_font_h2_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h2[' . CMSMS_SHORTNAME . '_h2_font_font_weight]', 'type' => 'select', 'choices' => cmsms_font_weight_list(), 'priority' => '6')); // H2 Heading Font Options Font Style $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h2[' . CMSMS_SHORTNAME . '_h2_font_font_style]', array('default' => 'normal', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h2[' . CMSMS_SHORTNAME . '_h2_font_font_style]', array('label' => __('Font Style', 'cmsmasters'), 'section' => 'cmsms_font_h2_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h2[' . CMSMS_SHORTNAME . '_h2_font_font_style]', 'type' => 'select', 'choices' => cmsms_font_style_list(), 'priority' => '7')); // H3 Heading Font Options Section $wp_customize->add_section('cmsms_font_h3_section', array('title' => __('H3 Heading Font Options', 'cmsmasters'), 'description' => __('Allows you to change theme H3 heading font options', 'cmsmasters'), 'priority' => '132')); // H3 Heading Font Options System Font $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h3[' . CMSMS_SHORTNAME . '_h3_font_system_font]', array('default' => "Arial,Helvetica,'Nimbus Sans L',sans-serif", 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h3[' . CMSMS_SHORTNAME . '_h3_font_system_font]', array('label' => __('System Font', 'cmsmasters'), 'section' => 'cmsms_font_h3_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h3[' . CMSMS_SHORTNAME . '_h3_font_system_font]', 'type' => 'select', 'choices' => cmsms_system_fonts_list(), 'priority' => '1')); // H3 Heading Font Options Google Font $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h3[' . CMSMS_SHORTNAME . '_h3_font_google_font]', array('default' => 'Raleway:400,700,200', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h3[' . CMSMS_SHORTNAME . '_h3_font_google_font]', array('label' => __('Google Font', 'cmsmasters'), 'section' => 'cmsms_font_h3_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h3[' . CMSMS_SHORTNAME . '_h3_font_google_font]', 'type' => 'select', 'choices' => cmsms_google_fonts_list(), 'priority' => '2')); // H3 Heading Font Options Font Color $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h3[' . CMSMS_SHORTNAME . '_h3_font_font_color]', array('default' => '#454545', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, CMSMS_SHORTNAME . '_h3_font_font_color', array('label' => __('Font Color', 'cmsmasters'), 'section' => 'cmsms_font_h3_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h3[' . CMSMS_SHORTNAME . '_h3_font_font_color]', 'priority' => '3'))); // H3 Heading Font Options Font Size $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h3[' . CMSMS_SHORTNAME . '_h3_font_font_size]', array('default' => '22', 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h3[' . CMSMS_SHORTNAME . '_h3_font_font_size]', array('label' => __('Font Size', 'cmsmasters'), 'section' => 'cmsms_font_h3_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h3[' . CMSMS_SHORTNAME . '_h3_font_font_size]', 'type' => 'text', 'priority' => '4')); // H3 Heading Font Options Line Height $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h3[' . CMSMS_SHORTNAME . '_h3_font_line_height]', array('default' => '36', 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h3[' . CMSMS_SHORTNAME . '_h3_font_line_height]', array('label' => __('Line Height', 'cmsmasters'), 'section' => 'cmsms_font_h3_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h3[' . CMSMS_SHORTNAME . '_h3_font_line_height]', 'type' => 'text', 'priority' => '5')); // H3 Heading Font Options Font Weight $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h3[' . CMSMS_SHORTNAME . '_h3_font_font_weight]', array('default' => '700', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h3[' . CMSMS_SHORTNAME . '_h3_font_font_weight]', array('label' => __('Font Weight', 'cmsmasters'), 'section' => 'cmsms_font_h3_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h3[' . CMSMS_SHORTNAME . '_h3_font_font_weight]', 'type' => 'select', 'choices' => cmsms_font_weight_list(), 'priority' => '6')); // H3 Heading Font Options Font Style $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h3[' . CMSMS_SHORTNAME . '_h3_font_font_style]', array('default' => 'normal', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h3[' . CMSMS_SHORTNAME . '_h3_font_font_style]', array('label' => __('Font Style', 'cmsmasters'), 'section' => 'cmsms_font_h3_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h3[' . CMSMS_SHORTNAME . '_h3_font_font_style]', 'type' => 'select', 'choices' => cmsms_font_style_list(), 'priority' => '7')); // H4 Heading Font Options Section $wp_customize->add_section('cmsms_font_h4_section', array('title' => __('H4 Heading Font Options', 'cmsmasters'), 'description' => __('Allows you to change theme H4 heading font options', 'cmsmasters'), 'priority' => '133')); // H4 Heading Font Options System Font $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h4[' . CMSMS_SHORTNAME . '_h4_font_system_font]', array('default' => "Arial,Helvetica,'Nimbus Sans L',sans-serif", 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h4[' . CMSMS_SHORTNAME . '_h4_font_system_font]', array('label' => __('System Font', 'cmsmasters'), 'section' => 'cmsms_font_h4_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h4[' . CMSMS_SHORTNAME . '_h4_font_system_font]', 'type' => 'select', 'choices' => cmsms_system_fonts_list(), 'priority' => '1')); // H4 Heading Font Options Google Font $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h4[' . CMSMS_SHORTNAME . '_h4_font_google_font]', array('default' => 'Raleway:400,700,200', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h4[' . CMSMS_SHORTNAME . '_h4_font_google_font]', array('label' => __('Google Font', 'cmsmasters'), 'section' => 'cmsms_font_h4_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h4[' . CMSMS_SHORTNAME . '_h4_font_google_font]', 'type' => 'select', 'choices' => cmsms_google_fonts_list(), 'priority' => '2')); // H4 Heading Font Options Font Color $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h4[' . CMSMS_SHORTNAME . '_h4_font_font_color]', array('default' => '#454545', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, CMSMS_SHORTNAME . '_h4_font_font_color', array('label' => __('Font Color', 'cmsmasters'), 'section' => 'cmsms_font_h4_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h4[' . CMSMS_SHORTNAME . '_h4_font_font_color]', 'priority' => '3'))); // H4 Heading Font Options Font Size $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h4[' . CMSMS_SHORTNAME . '_h4_font_font_size]', array('default' => '18', 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h4[' . CMSMS_SHORTNAME . '_h4_font_font_size]', array('label' => __('Font Size', 'cmsmasters'), 'section' => 'cmsms_font_h4_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h4[' . CMSMS_SHORTNAME . '_h4_font_font_size]', 'type' => 'text', 'priority' => '4')); // H4 Heading Font Options Line Height $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h4[' . CMSMS_SHORTNAME . '_h4_font_line_height]', array('default' => '24', 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h4[' . CMSMS_SHORTNAME . '_h4_font_line_height]', array('label' => __('Line Height', 'cmsmasters'), 'section' => 'cmsms_font_h4_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h4[' . CMSMS_SHORTNAME . '_h4_font_line_height]', 'type' => 'text', 'priority' => '5')); // H4 Heading Font Options Font Weight $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h4[' . CMSMS_SHORTNAME . '_h4_font_font_weight]', array('default' => '700', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h4[' . CMSMS_SHORTNAME . '_h4_font_font_weight]', array('label' => __('Font Weight', 'cmsmasters'), 'section' => 'cmsms_font_h4_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h4[' . CMSMS_SHORTNAME . '_h4_font_font_weight]', 'type' => 'select', 'choices' => cmsms_font_weight_list(), 'priority' => '6')); // H4 Heading Font Options Font Style $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h4[' . CMSMS_SHORTNAME . '_h4_font_font_style]', array('default' => 'normal', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h4[' . CMSMS_SHORTNAME . '_h4_font_font_style]', array('label' => __('Font Style', 'cmsmasters'), 'section' => 'cmsms_font_h4_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h4[' . CMSMS_SHORTNAME . '_h4_font_font_style]', 'type' => 'select', 'choices' => cmsms_font_style_list(), 'priority' => '7')); // H5 Heading Font Options Section $wp_customize->add_section('cmsms_font_h5_section', array('title' => __('H5 Heading Font Options', 'cmsmasters'), 'description' => __('Allows you to change theme H5 heading font options', 'cmsmasters'), 'priority' => '134')); // H5 Heading Font Options System Font $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h5[' . CMSMS_SHORTNAME . '_h5_font_system_font]', array('default' => "Arial,Helvetica,'Nimbus Sans L',sans-serif", 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h5[' . CMSMS_SHORTNAME . '_h5_font_system_font]', array('label' => __('System Font', 'cmsmasters'), 'section' => 'cmsms_font_h5_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h5[' . CMSMS_SHORTNAME . '_h5_font_system_font]', 'type' => 'select', 'choices' => cmsms_system_fonts_list(), 'priority' => '1')); // H5 Heading Font Options Google Font $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h5[' . CMSMS_SHORTNAME . '_h5_font_google_font]', array('default' => 'Raleway:400,700,200', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h5[' . CMSMS_SHORTNAME . '_h5_font_google_font]', array('label' => __('Google Font', 'cmsmasters'), 'section' => 'cmsms_font_h5_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h5[' . CMSMS_SHORTNAME . '_h5_font_google_font]', 'type' => 'select', 'choices' => cmsms_google_fonts_list(), 'priority' => '2')); // H5 Heading Font Options Font Color $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h5[' . CMSMS_SHORTNAME . '_h5_font_font_color]', array('default' => '#454545', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, CMSMS_SHORTNAME . '_h5_font_font_color', array('label' => __('Font Color', 'cmsmasters'), 'section' => 'cmsms_font_h5_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h5[' . CMSMS_SHORTNAME . '_h5_font_font_color]', 'priority' => '3'))); // H5 Heading Font Options Font Size $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h5[' . CMSMS_SHORTNAME . '_h5_font_font_size]', array('default' => '14', 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h5[' . CMSMS_SHORTNAME . '_h5_font_font_size]', array('label' => __('Font Size', 'cmsmasters'), 'section' => 'cmsms_font_h5_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h5[' . CMSMS_SHORTNAME . '_h5_font_font_size]', 'type' => 'text', 'priority' => '4')); // H5 Heading Font Options Line Height $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h5[' . CMSMS_SHORTNAME . '_h5_font_line_height]', array('default' => '18', 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h5[' . CMSMS_SHORTNAME . '_h5_font_line_height]', array('label' => __('Line Height', 'cmsmasters'), 'section' => 'cmsms_font_h5_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h5[' . CMSMS_SHORTNAME . '_h5_font_line_height]', 'type' => 'text', 'priority' => '5')); // H5 Heading Font Options Font Weight $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h5[' . CMSMS_SHORTNAME . '_h5_font_font_weight]', array('default' => '700', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h5[' . CMSMS_SHORTNAME . '_h5_font_font_weight]', array('label' => __('Font Weight', 'cmsmasters'), 'section' => 'cmsms_font_h5_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h5[' . CMSMS_SHORTNAME . '_h5_font_font_weight]', 'type' => 'select', 'choices' => cmsms_font_weight_list(), 'priority' => '6')); // H5 Heading Font Options Font Style $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h5[' . CMSMS_SHORTNAME . '_h5_font_font_style]', array('default' => 'normal', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h5[' . CMSMS_SHORTNAME . '_h5_font_font_style]', array('label' => __('Font Style', 'cmsmasters'), 'section' => 'cmsms_font_h5_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h5[' . CMSMS_SHORTNAME . '_h5_font_font_style]', 'type' => 'select', 'choices' => cmsms_font_style_list(), 'priority' => '7')); // H6 Heading Font Options Section $wp_customize->add_section('cmsms_font_h6_section', array('title' => __('H6 Heading Font Options', 'cmsmasters'), 'description' => __('Allows you to change theme H6 heading font options', 'cmsmasters'), 'priority' => '135')); // H6 Heading Font Options System Font $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h6[' . CMSMS_SHORTNAME . '_h6_font_system_font]', array('default' => "Arial,Helvetica,'Nimbus Sans L',sans-serif", 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h6[' . CMSMS_SHORTNAME . '_h6_font_system_font]', array('label' => __('System Font', 'cmsmasters'), 'section' => 'cmsms_font_h6_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h6[' . CMSMS_SHORTNAME . '_h6_font_system_font]', 'type' => 'select', 'choices' => cmsms_system_fonts_list(), 'priority' => '1')); // H6 Heading Font Options Google Font $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h6[' . CMSMS_SHORTNAME . '_h6_font_google_font]', array('default' => '', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h6[' . CMSMS_SHORTNAME . '_h6_font_google_font]', array('label' => __('Google Font', 'cmsmasters'), 'section' => 'cmsms_font_h6_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h6[' . CMSMS_SHORTNAME . '_h6_font_google_font]', 'type' => 'select', 'choices' => cmsms_google_fonts_list(), 'priority' => '2')); // H6 Heading Font Options Font Color $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h6[' . CMSMS_SHORTNAME . '_h6_font_font_color]', array('default' => '#454545', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, CMSMS_SHORTNAME . '_h6_font_font_color', array('label' => __('Font Color', 'cmsmasters'), 'section' => 'cmsms_font_h6_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h6[' . CMSMS_SHORTNAME . '_h6_font_font_color]', 'priority' => '3'))); // H6 Heading Font Options Font Size $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h6[' . CMSMS_SHORTNAME . '_h6_font_font_size]', array('default' => '14', 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h6[' . CMSMS_SHORTNAME . '_h6_font_font_size]', array('label' => __('Font Size', 'cmsmasters'), 'section' => 'cmsms_font_h6_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h6[' . CMSMS_SHORTNAME . '_h6_font_font_size]', 'type' => 'text', 'priority' => '4')); // H6 Heading Font Options Line Height $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h6[' . CMSMS_SHORTNAME . '_h6_font_line_height]', array('default' => '18', 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h6[' . CMSMS_SHORTNAME . '_h6_font_line_height]', array('label' => __('Line Height', 'cmsmasters'), 'section' => 'cmsms_font_h6_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h6[' . CMSMS_SHORTNAME . '_h6_font_line_height]', 'type' => 'text', 'priority' => '5')); // H6 Heading Font Options Font Weight $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h6[' . CMSMS_SHORTNAME . '_h6_font_font_weight]', array('default' => '700', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h6[' . CMSMS_SHORTNAME . '_h6_font_font_weight]', array('label' => __('Font Weight', 'cmsmasters'), 'section' => 'cmsms_font_h6_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h6[' . CMSMS_SHORTNAME . '_h6_font_font_weight]', 'type' => 'select', 'choices' => cmsms_font_weight_list(), 'priority' => '6')); // H6 Heading Font Options Font Style $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_h6[' . CMSMS_SHORTNAME . '_h6_font_font_style]', array('default' => 'normal', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_h6[' . CMSMS_SHORTNAME . '_h6_font_font_style]', array('label' => __('Font Style', 'cmsmasters'), 'section' => 'cmsms_font_h6_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_h6[' . CMSMS_SHORTNAME . '_h6_font_font_style]', 'type' => 'select', 'choices' => cmsms_font_style_list(), 'priority' => '7')); // Blockquote Font Options Section $wp_customize->add_section('cmsms_font_quote_section', array('title' => __('Blockquote Font Options', 'cmsmasters'), 'description' => __('Allows you to change theme blockquote font options', 'cmsmasters'), 'priority' => '136')); // Blockquote Font Options System Font $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_quote_font_system_font]', array('default' => "Arial,Helvetica,'Nimbus Sans L',sans-serif", 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_quote_font_system_font]', array('label' => __('System Font', 'cmsmasters'), 'section' => 'cmsms_font_quote_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_quote_font_system_font]', 'type' => 'select', 'choices' => cmsms_system_fonts_list(), 'priority' => '1')); // Blockquote Font Options Google Font $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_quote_font_google_font]', array('default' => 'Raleway:400,700,200', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_quote_font_google_font]', array('label' => __('Google Font', 'cmsmasters'), 'section' => 'cmsms_font_quote_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_quote_font_google_font]', 'type' => 'select', 'choices' => cmsms_google_fonts_list(), 'priority' => '2')); // Blockquote Font Options Font Color $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_quote_font_font_color]', array('default' => '#454545', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, CMSMS_SHORTNAME . '_quote_font_font_color', array('label' => __('Font Color', 'cmsmasters'), 'section' => 'cmsms_font_quote_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_quote_font_font_color]', 'priority' => '3'))); // Blockquote Font Options Font Size $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_quote_font_font_size]', array('default' => '22', 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_quote_font_font_size]', array('label' => __('Font Size', 'cmsmasters'), 'section' => 'cmsms_font_quote_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_quote_font_font_size]', 'type' => 'text', 'priority' => '4')); // Blockquote Font Options Line Height $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_quote_font_line_height]', array('default' => '30', 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_quote_font_line_height]', array('label' => __('Line Height', 'cmsmasters'), 'section' => 'cmsms_font_quote_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_quote_font_line_height]', 'type' => 'text', 'priority' => '5')); // Blockquote Font Options Font Weight $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_quote_font_font_weight]', array('default' => '700', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_quote_font_font_weight]', array('label' => __('Font Weight', 'cmsmasters'), 'section' => 'cmsms_font_quote_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_quote_font_font_weight]', 'type' => 'select', 'choices' => cmsms_font_weight_list(), 'priority' => '6')); // Blockquote Font Options Font Style $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_quote_font_font_style]', array('default' => 'normal', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_quote_font_font_style]', array('label' => __('Font Style', 'cmsmasters'), 'section' => 'cmsms_font_quote_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_quote_font_font_style]', 'type' => 'select', 'choices' => cmsms_font_style_list(), 'priority' => '7')); // Dropcap Font Options Section $wp_customize->add_section('cmsms_font_dropcap_section', array('title' => __('Dropcap Font Options', 'cmsmasters'), 'description' => __('Allows you to change theme dropcap font options', 'cmsmasters'), 'priority' => '137')); // Dropcap Font Options System Font $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_dropcap_font_system_font]', array('default' => "Arial,Helvetica,'Nimbus Sans L',sans-serif", 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_dropcap_font_system_font]', array('label' => __('System Font', 'cmsmasters'), 'section' => 'cmsms_font_dropcap_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_dropcap_font_system_font]', 'type' => 'select', 'choices' => cmsms_system_fonts_list(), 'priority' => '1')); // Dropcap Font Options Google Font $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_dropcap_font_google_font]', array('default' => 'Raleway:400,700,200', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_dropcap_font_google_font]', array('label' => __('Google Font', 'cmsmasters'), 'section' => 'cmsms_font_dropcap_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_dropcap_font_google_font]', 'type' => 'select', 'choices' => cmsms_google_fonts_list(), 'priority' => '2')); // Dropcap Font Options Font Color $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_dropcap_font_font_color]', array('default' => '#404040', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, CMSMS_SHORTNAME . '_dropcap_font_font_color', array('label' => __('Font Color', 'cmsmasters'), 'section' => 'cmsms_font_dropcap_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_dropcap_font_font_color]', 'priority' => '3'))); // Dropcap Font Options Font Size $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_dropcap_font_font_size]', array('default' => '48', 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_dropcap_font_font_size]', array('label' => __('Font Size', 'cmsmasters'), 'section' => 'cmsms_font_dropcap_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_dropcap_font_font_size]', 'type' => 'text', 'priority' => '4')); // Dropcap Font Options Line Height $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_dropcap_font_line_height]', array('default' => '46', 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_dropcap_font_line_height]', array('label' => __('Line Height', 'cmsmasters'), 'section' => 'cmsms_font_dropcap_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_dropcap_font_line_height]', 'type' => 'text', 'priority' => '5')); // Dropcap Font Options Font Weight $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_dropcap_font_font_weight]', array('default' => 'bold', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_dropcap_font_font_weight]', array('label' => __('Font Weight', 'cmsmasters'), 'section' => 'cmsms_font_dropcap_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_dropcap_font_font_weight]', 'type' => 'select', 'choices' => cmsms_font_weight_list(), 'priority' => '6')); // Dropcap Font Options Font Style $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_dropcap_font_font_style]', array('default' => 'normal', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_dropcap_font_font_style]', array('label' => __('Font Style', 'cmsmasters'), 'section' => 'cmsms_font_dropcap_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_dropcap_font_font_style]', 'type' => 'select', 'choices' => cmsms_font_style_list(), 'priority' => '7')); // Code Tag Font Options Section $wp_customize->add_section('cmsms_font_code_section', array('title' => __('Code Tag Font Options', 'cmsmasters'), 'description' => __('Allows you to change theme code tag font options', 'cmsmasters'), 'priority' => '138')); // Code Tag Font Options System Font $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_code_font_system_font]', array('default' => "Arial,Helvetica,'Nimbus Sans L',sans-serif", 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_code_font_system_font]', array('label' => __('System Font', 'cmsmasters'), 'section' => 'cmsms_font_code_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_code_font_system_font]', 'type' => 'select', 'choices' => cmsms_system_fonts_list(), 'priority' => '1')); // Code Tag Font Options Google Font $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_code_font_google_font]', array('default' => '', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_code_font_google_font]', array('label' => __('Google Font', 'cmsmasters'), 'section' => 'cmsms_font_code_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_code_font_google_font]', 'type' => 'select', 'choices' => cmsms_google_fonts_list(), 'priority' => '2')); // Code Tag Font Options Font Color $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_code_font_font_color]', array('default' => '#979797', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, CMSMS_SHORTNAME . '_code_font_font_color', array('label' => __('Font Color', 'cmsmasters'), 'section' => 'cmsms_font_code_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_code_font_font_color]', 'priority' => '3'))); // Code Tag Font Options Font Size $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_code_font_font_size]', array('default' => '13', 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_code_font_font_size]', array('label' => __('Font Size', 'cmsmasters'), 'section' => 'cmsms_font_code_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_code_font_font_size]', 'type' => 'text', 'priority' => '4')); // Code Tag Font Options Line Height $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_code_font_line_height]', array('default' => '18', 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_code_font_line_height]', array('label' => __('Line Height', 'cmsmasters'), 'section' => 'cmsms_font_code_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_code_font_line_height]', 'type' => 'text', 'priority' => '5')); // Code Tag Font Options Font Weight $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_code_font_font_weight]', array('default' => 'normal', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_code_font_font_weight]', array('label' => __('Font Weight', 'cmsmasters'), 'section' => 'cmsms_font_code_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_code_font_font_weight]', 'type' => 'select', 'choices' => cmsms_font_weight_list(), 'priority' => '6')); // Code Tag Font Options Font Style $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_code_font_font_style]', array('default' => 'normal', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_code_font_font_style]', array('label' => __('Font Style', 'cmsmasters'), 'section' => 'cmsms_font_code_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_code_font_font_style]', 'type' => 'select', 'choices' => cmsms_font_style_list(), 'priority' => '7')); // Small Tag Font Options Section $wp_customize->add_section('cmsms_font_small_section', array('title' => __('Small Tag Font Options', 'cmsmasters'), 'description' => __('Allows you to change theme small tag font options', 'cmsmasters'), 'priority' => '139')); // Small Tag Font Options System Font $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_small_font_system_font]', array('default' => "Arial,Helvetica,'Nimbus Sans L',sans-serif", 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_small_font_system_font]', array('label' => __('System Font', 'cmsmasters'), 'section' => 'cmsms_font_small_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_small_font_system_font]', 'type' => 'select', 'choices' => cmsms_system_fonts_list(), 'priority' => '1')); // Small Tag Font Options Google Font $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_small_font_google_font]', array('default' => '', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_small_font_google_font]', array('label' => __('Google Font', 'cmsmasters'), 'section' => 'cmsms_font_small_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_small_font_google_font]', 'type' => 'select', 'choices' => cmsms_google_fonts_list(), 'priority' => '2')); // Small Tag Font Options Font Color $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_small_font_font_color]', array('default' => '#979797', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, CMSMS_SHORTNAME . '_small_font_font_color', array('label' => __('Font Color', 'cmsmasters'), 'section' => 'cmsms_font_small_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_small_font_font_color]', 'priority' => '3'))); // Small Tag Font Options Font Size $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_small_font_font_size]', array('default' => '12', 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_small_font_font_size]', array('label' => __('Font Size', 'cmsmasters'), 'section' => 'cmsms_font_small_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_small_font_font_size]', 'type' => 'text', 'priority' => '4')); // Small Tag Font Options Line Height $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_small_font_line_height]', array('default' => '18', 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_small_font_line_height]', array('label' => __('Line Height', 'cmsmasters'), 'section' => 'cmsms_font_small_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_small_font_line_height]', 'type' => 'text', 'priority' => '5')); // Small Tag Font Options Font Weight $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_small_font_font_weight]', array('default' => 'normal', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_small_font_font_weight]', array('label' => __('Font Weight', 'cmsmasters'), 'section' => 'cmsms_font_small_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_small_font_font_weight]', 'type' => 'select', 'choices' => cmsms_font_weight_list(), 'priority' => '6')); // Small Tag Font Options Font Style $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_small_font_font_style]', array('default' => 'normal', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_small_font_font_style]', array('label' => __('Font Style', 'cmsmasters'), 'section' => 'cmsms_font_small_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_small_font_font_style]', 'type' => 'select', 'choices' => cmsms_font_style_list(), 'priority' => '7')); // Text Fields Font Options Section $wp_customize->add_section('cmsms_font_input_section', array('title' => __('Text Fields Font Options', 'cmsmasters'), 'description' => __('Allows you to change theme text fields font options', 'cmsmasters'), 'priority' => '140')); // Text Fields Font Options System Font $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_input_font_system_font]', array('default' => "Arial,Helvetica,'Nimbus Sans L',sans-serif", 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_input_font_system_font]', array('label' => __('System Font', 'cmsmasters'), 'section' => 'cmsms_font_input_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_input_font_system_font]', 'type' => 'select', 'choices' => cmsms_system_fonts_list(), 'priority' => '1')); // Text Fields Font Options Google Font $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_input_font_google_font]', array('default' => 'Raleway:400,700,200', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_input_font_google_font]', array('label' => __('Google Font', 'cmsmasters'), 'section' => 'cmsms_font_input_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_input_font_google_font]', 'type' => 'select', 'choices' => cmsms_google_fonts_list(), 'priority' => '2')); // Text Fields Font Options Font Color $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_input_font_font_color]', array('default' => '#282828', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, CMSMS_SHORTNAME . '_input_font_font_color', array('label' => __('Font Color', 'cmsmasters'), 'section' => 'cmsms_font_input_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_input_font_font_color]', 'priority' => '3'))); // Text Fields Font Options Font Size $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_input_font_font_size]', array('default' => '13', 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_input_font_font_size]', array('label' => __('Font Size', 'cmsmasters'), 'section' => 'cmsms_font_input_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_input_font_font_size]', 'type' => 'text', 'priority' => '4')); // Text Fields Font Options Line Height $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_input_font_line_height]', array('default' => '18', 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_input_font_line_height]', array('label' => __('Line Height', 'cmsmasters'), 'section' => 'cmsms_font_input_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_input_font_line_height]', 'type' => 'text', 'priority' => '5')); // Text Fields Font Options Font Weight $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_input_font_font_weight]', array('default' => 'normal', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_input_font_font_weight]', array('label' => __('Font Weight', 'cmsmasters'), 'section' => 'cmsms_font_input_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_input_font_font_weight]', 'type' => 'select', 'choices' => cmsms_font_weight_list(), 'priority' => '6')); // Text Fields Font Options Font Style $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_input_font_font_style]', array('default' => 'normal', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_input_font_font_style]', array('label' => __('Font Style', 'cmsmasters'), 'section' => 'cmsms_font_input_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_input_font_font_style]', 'type' => 'select', 'choices' => cmsms_font_style_list(), 'priority' => '7')); // Footer Font Options Section $wp_customize->add_section('cmsms_font_footer_section', array('title' => __('Footer Font Options', 'cmsmasters'), 'description' => __('Allows you to change theme footer font options', 'cmsmasters'), 'priority' => '141')); // Footer Font Options System Font $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_footer_font_system_font]', array('default' => "Arial,Helvetica,'Nimbus Sans L',sans-serif", 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_footer_font_system_font]', array('label' => __('System Font', 'cmsmasters'), 'section' => 'cmsms_font_footer_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_footer_font_system_font]', 'type' => 'select', 'choices' => cmsms_system_fonts_list(), 'priority' => '1')); // Footer Font Options Google Font $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_footer_font_google_font]', array('default' => '', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_footer_font_google_font]', array('label' => __('Google Font', 'cmsmasters'), 'section' => 'cmsms_font_footer_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_footer_font_google_font]', 'type' => 'select', 'choices' => cmsms_google_fonts_list(), 'priority' => '2')); // Footer Font Options Font Color $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_footer_font_font_color]', array('default' => '#979797', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, CMSMS_SHORTNAME . '_footer_font_font_color', array('label' => __('Font Color', 'cmsmasters'), 'section' => 'cmsms_font_footer_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_footer_font_font_color]', 'priority' => '3'))); // Footer Links Font Hover Color $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_footer_font_hover]', array('default' => '#ff938a', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, CMSMS_SHORTNAME . '_footer_font_hover', array('label' => __('Footer Links Font Hover Color', 'cmsmasters'), 'section' => 'cmsms_font_footer_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_footer_font_hover]', 'priority' => '4'))); // Footer Font Options Font Size $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_footer_font_font_size]', array('default' => '12', 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_footer_font_font_size]', array('label' => __('Font Size', 'cmsmasters'), 'section' => 'cmsms_font_footer_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_footer_font_font_size]', 'type' => 'text', 'priority' => '5')); // Footer Font Options Line Height $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_footer_font_line_height]', array('default' => '18', 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => 'check_number')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_footer_font_line_height]', array('label' => __('Line Height', 'cmsmasters'), 'section' => 'cmsms_font_footer_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_footer_font_line_height]', 'type' => 'text', 'priority' => '6')); // Footer Font Options Font Weight $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_footer_font_font_weight]', array('default' => 'normal', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_footer_font_font_weight]', array('label' => __('Font Weight', 'cmsmasters'), 'section' => 'cmsms_font_footer_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_footer_font_font_weight]', 'type' => 'select', 'choices' => cmsms_font_weight_list(), 'priority' => '7')); // Footer Font Options Font Style $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_footer_font_font_style]', array('default' => 'normal', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_footer_font_font_style]', array('label' => __('Font Style', 'cmsmasters'), 'section' => 'cmsms_font_footer_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_font_other[' . CMSMS_SHORTNAME . '_footer_font_font_style]', 'type' => 'select', 'choices' => cmsms_font_style_list(), 'priority' => '8')); // Blog Page Options Section $wp_customize->add_section('cmsms_blog_page_section', array('title' => __('Blog Page Options', 'cmsmasters'), 'description' => __('Allows you to change theme blog page template options', 'cmsmasters'), 'priority' => '142')); // Blog Page Options Post Date $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_blog_page[' . CMSMS_SHORTNAME . '_blog_page_date]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_blog_page[' . CMSMS_SHORTNAME . '_blog_page_date]', array('label' => __('Post Date', 'cmsmasters'), 'section' => 'cmsms_blog_page_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_blog_page[' . CMSMS_SHORTNAME . '_blog_page_date]', 'type' => 'checkbox', 'priority' => '1')); // Blog Page Options Post Categories $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_blog_page[' . CMSMS_SHORTNAME . '_blog_page_cat]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_blog_page[' . CMSMS_SHORTNAME . '_blog_page_cat]', array('label' => __('Post Categories', 'cmsmasters'), 'section' => 'cmsms_blog_page_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_blog_page[' . CMSMS_SHORTNAME . '_blog_page_cat]', 'type' => 'checkbox', 'priority' => '2')); // Blog Page Options Post Author $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_blog_page[' . CMSMS_SHORTNAME . '_blog_page_author]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_blog_page[' . CMSMS_SHORTNAME . '_blog_page_author]', array('label' => __('Post Author', 'cmsmasters'), 'section' => 'cmsms_blog_page_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_blog_page[' . CMSMS_SHORTNAME . '_blog_page_author]', 'type' => 'checkbox', 'priority' => '3')); // Blog Page Options Post Comments $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_blog_page[' . CMSMS_SHORTNAME . '_blog_page_comment]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_blog_page[' . CMSMS_SHORTNAME . '_blog_page_comment]', array('label' => __('Post Comments', 'cmsmasters'), 'section' => 'cmsms_blog_page_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_blog_page[' . CMSMS_SHORTNAME . '_blog_page_comment]', 'type' => 'checkbox', 'priority' => '4')); // Blog Page Options Post Tags $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_blog_page[' . CMSMS_SHORTNAME . '_blog_page_tag]', array('default' => 0, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_blog_page[' . CMSMS_SHORTNAME . '_blog_page_tag]', array('label' => __('Post Tags', 'cmsmasters'), 'section' => 'cmsms_blog_page_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_blog_page[' . CMSMS_SHORTNAME . '_blog_page_tag]', 'type' => 'checkbox', 'priority' => '5')); // Blog Page Options Post Read More $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_blog_page[' . CMSMS_SHORTNAME . '_blog_page_more]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_blog_page[' . CMSMS_SHORTNAME . '_blog_page_more]', array('label' => __('Read More', 'cmsmasters'), 'section' => 'cmsms_blog_page_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_blog_page[' . CMSMS_SHORTNAME . '_blog_page_more]', 'type' => 'checkbox', 'priority' => '6')); // Blog Post Options Section $wp_customize->add_section('cmsms_blog_post_section', array('title' => __('Blog Post Options', 'cmsmasters'), 'description' => __('Allows you to change theme blog post options', 'cmsmasters'), 'priority' => '143')); // Blog Post Options Post Title $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_blog_post[' . CMSMS_SHORTNAME . '_blog_post_title]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_blog_post[' . CMSMS_SHORTNAME . '_blog_post_title]', array('label' => __('Post Title', 'cmsmasters'), 'section' => 'cmsms_blog_post_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_blog_post[' . CMSMS_SHORTNAME . '_blog_post_title]', 'type' => 'checkbox', 'priority' => '1')); // Blog Post Options Post Date $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_blog_post[' . CMSMS_SHORTNAME . '_blog_post_date]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_blog_post[' . CMSMS_SHORTNAME . '_blog_post_date]', array('label' => __('Post Date', 'cmsmasters'), 'section' => 'cmsms_blog_post_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_blog_post[' . CMSMS_SHORTNAME . '_blog_post_date]', 'type' => 'checkbox', 'priority' => '2')); // Blog Post Options Post Categories $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_blog_post[' . CMSMS_SHORTNAME . '_blog_post_cat]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_blog_post[' . CMSMS_SHORTNAME . '_blog_post_cat]', array('label' => __('Post Categories', 'cmsmasters'), 'section' => 'cmsms_blog_post_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_blog_post[' . CMSMS_SHORTNAME . '_blog_post_cat]', 'type' => 'checkbox', 'priority' => '3')); // Blog Post Options Post Author $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_blog_post[' . CMSMS_SHORTNAME . '_blog_post_author]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_blog_post[' . CMSMS_SHORTNAME . '_blog_post_author]', array('label' => __('Post Author', 'cmsmasters'), 'section' => 'cmsms_blog_post_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_blog_post[' . CMSMS_SHORTNAME . '_blog_post_author]', 'type' => 'checkbox', 'priority' => '4')); // Blog Post Options Post Comments $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_blog_post[' . CMSMS_SHORTNAME . '_blog_post_comment]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_blog_post[' . CMSMS_SHORTNAME . '_blog_post_comment]', array('label' => __('Post Comments', 'cmsmasters'), 'section' => 'cmsms_blog_post_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_blog_post[' . CMSMS_SHORTNAME . '_blog_post_comment]', 'type' => 'checkbox', 'priority' => '5')); // Blog Post Options Post Tags $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_blog_post[' . CMSMS_SHORTNAME . '_blog_post_tag]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_blog_post[' . CMSMS_SHORTNAME . '_blog_post_tag]', array('label' => __('Post Tags', 'cmsmasters'), 'section' => 'cmsms_blog_post_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_blog_post[' . CMSMS_SHORTNAME . '_blog_post_tag]', 'type' => 'checkbox', 'priority' => '6')); // Blog Post Options Posts Navigation Box $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_blog_post[' . CMSMS_SHORTNAME . '_blog_post_nav_box]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_blog_post[' . CMSMS_SHORTNAME . '_blog_post_nav_box]', array('label' => __('Posts Navigation Box', 'cmsmasters'), 'section' => 'cmsms_blog_post_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_blog_post[' . CMSMS_SHORTNAME . '_blog_post_nav_box]', 'type' => 'checkbox', 'priority' => '7')); // Blog Post Options Related, Popular & Latest Projects Boxes Items Number $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_blog_post[' . CMSMS_SHORTNAME . '_blog_post_r_p_l_number]', array('default' => 4, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_blog_post[' . CMSMS_SHORTNAME . '_blog_post_r_p_l_number]', array('label' => __('Related, Popular & Latest Posts Boxes Items Number', 'cmsmasters'), 'section' => 'cmsms_blog_post_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_blog_post[' . CMSMS_SHORTNAME . '_blog_post_r_p_l_number]', 'type' => 'text', 'priority' => '8')); // Portfolio Page Options Section $wp_customize->add_section('cmsms_portfolio_full_section', array('title' => __('Portfolio Page Options', 'cmsmasters'), 'description' => __('Allows you to change theme portfolio page template options', 'cmsmasters'), 'priority' => '144')); // Portfolio Page Options Projects Titles $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_full[' . CMSMS_SHORTNAME . '_portfolio_full_title]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_full[' . CMSMS_SHORTNAME . '_portfolio_full_title]', array('label' => __('Project Title', 'cmsmasters'), 'section' => 'cmsms_portfolio_full_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_full[' . CMSMS_SHORTNAME . '_portfolio_full_title]', 'type' => 'checkbox', 'priority' => '1')); // Portfolio Page Options Projects Descriptions $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_full[' . CMSMS_SHORTNAME . '_portfolio_full_descr]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_full[' . CMSMS_SHORTNAME . '_portfolio_full_descr]', array('label' => __('Project Description', 'cmsmasters'), 'section' => 'cmsms_portfolio_full_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_full[' . CMSMS_SHORTNAME . '_portfolio_full_descr]', 'type' => 'checkbox', 'priority' => '2')); // Portfolio Page Options Projects Categories $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_full[' . CMSMS_SHORTNAME . '_portfolio_full_cat]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_full[' . CMSMS_SHORTNAME . '_portfolio_full_cat]', array('label' => __('Project Categories', 'cmsmasters'), 'section' => 'cmsms_portfolio_full_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_full[' . CMSMS_SHORTNAME . '_portfolio_full_cat]', 'type' => 'checkbox', 'priority' => '3')); // Portfolio Page Options Projects Date $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_full[' . CMSMS_SHORTNAME . '_portfolio_full_date]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_full[' . CMSMS_SHORTNAME . '_portfolio_full_date]', array('label' => __('Project Date', 'cmsmasters'), 'section' => 'cmsms_portfolio_full_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_full[' . CMSMS_SHORTNAME . '_portfolio_full_date]', 'type' => 'checkbox', 'priority' => '4')); // Portfolio Project Options Section $wp_customize->add_section('cmsms_portfolio_project_section', array('title' => __('Portfolio Project Options', 'cmsmasters'), 'description' => __('Allows you to change theme portfolio project options', 'cmsmasters'), 'priority' => '145')); // Portfolio Project Options Project Title $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_project[' . CMSMS_SHORTNAME . '_portfolio_project_title]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_project[' . CMSMS_SHORTNAME . '_portfolio_project_title]', array('label' => __('Project Title', 'cmsmasters'), 'section' => 'cmsms_portfolio_project_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_project[' . CMSMS_SHORTNAME . '_portfolio_project_title]', 'type' => 'checkbox', 'priority' => '1')); // Portfolio Project Options Project Date $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_project[' . CMSMS_SHORTNAME . '_portfolio_project_date]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_project[' . CMSMS_SHORTNAME . '_portfolio_project_date]', array('label' => __('Project Date', 'cmsmasters'), 'section' => 'cmsms_portfolio_project_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_project[' . CMSMS_SHORTNAME . '_portfolio_project_date]', 'type' => 'checkbox', 'priority' => '2')); // Portfolio Project Options Project Categories $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_project[' . CMSMS_SHORTNAME . '_portfolio_project_cat]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_project[' . CMSMS_SHORTNAME . '_portfolio_project_cat]', array('label' => __('Project Categories', 'cmsmasters'), 'section' => 'cmsms_portfolio_project_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_project[' . CMSMS_SHORTNAME . '_portfolio_project_cat]', 'type' => 'checkbox', 'priority' => '3')); // Portfolio Project Options Project Author $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_project[' . CMSMS_SHORTNAME . '_portfolio_project_author]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_project[' . CMSMS_SHORTNAME . '_portfolio_project_author]', array('label' => __('Project Author', 'cmsmasters'), 'section' => 'cmsms_portfolio_project_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_project[' . CMSMS_SHORTNAME . '_portfolio_project_author]', 'type' => 'checkbox', 'priority' => '4')); // Portfolio Project Options Project Comments $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_project[' . CMSMS_SHORTNAME . '_portfolio_project_comment]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_project[' . CMSMS_SHORTNAME . '_portfolio_project_comment]', array('label' => __('Project Comments', 'cmsmasters'), 'section' => 'cmsms_portfolio_project_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_project[' . CMSMS_SHORTNAME . '_portfolio_project_comment]', 'type' => 'checkbox', 'priority' => '5')); // Portfolio Project Options Project Tags $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_project[' . CMSMS_SHORTNAME . '_portfolio_project_tag]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_project[' . CMSMS_SHORTNAME . '_portfolio_project_tag]', array('label' => __('Project Tags', 'cmsmasters'), 'section' => 'cmsms_portfolio_project_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_project[' . CMSMS_SHORTNAME . '_portfolio_project_tag]', 'type' => 'checkbox', 'priority' => '6')); // Portfolio Project Options Project Link $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_project[' . CMSMS_SHORTNAME . '_portfolio_project_link]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_project[' . CMSMS_SHORTNAME . '_portfolio_project_link]', array('label' => __('Project Link', 'cmsmasters'), 'section' => 'cmsms_portfolio_project_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_project[' . CMSMS_SHORTNAME . '_portfolio_project_link]', 'type' => 'checkbox', 'priority' => '7')); // Portfolio Project Options Projects Navigation Box $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_project[' . CMSMS_SHORTNAME . '_portfolio_project_nav_box]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_project[' . CMSMS_SHORTNAME . '_portfolio_project_nav_box]', array('label' => __('Projects Navigation Box', 'cmsmasters'), 'section' => 'cmsms_portfolio_project_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_project[' . CMSMS_SHORTNAME . '_portfolio_project_nav_box]', 'type' => 'checkbox', 'priority' => '8')); // Portfolio Project Options Related, Popular & Latest Projects Boxes Items Number $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_project[' . CMSMS_SHORTNAME . '_portfolio_project_r_p_l_number]', array('default' => 4, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_project[' . CMSMS_SHORTNAME . '_portfolio_project_r_p_l_number]', array('label' => __('Related, Popular & Latest Projects Boxes Items Number', 'cmsmasters'), 'section' => 'cmsms_portfolio_project_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_portfolio_project[' . CMSMS_SHORTNAME . '_portfolio_project_r_p_l_number]', 'type' => 'text', 'priority' => '9')); // Testimonials Page Options Section $wp_customize->add_section('cmsms_tl_page_section', array('title' => __('Testimonials Page Options', 'cmsmasters'), 'description' => __('Allows you to change theme testimonials page template options', 'cmsmasters'), 'priority' => '146')); // Testimonials Page Options Testimonial Author Avatar $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_page[' . CMSMS_SHORTNAME . '_testimonial_page_author_avatar]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_page[' . CMSMS_SHORTNAME . '_testimonial_page_author_avatar]', array('label' => __('Testimonial Author Avatar', 'cmsmasters'), 'section' => 'cmsms_tl_page_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_page[' . CMSMS_SHORTNAME . '_testimonial_page_author_avatar]', 'type' => 'checkbox', 'priority' => '1')); // Testimonials Page Options Testimonial Author Description $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_page[' . CMSMS_SHORTNAME . '_testimonial_page_author_descr]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_page[' . CMSMS_SHORTNAME . '_testimonial_page_author_descr]', array('label' => __('Testimonial Author Description', 'cmsmasters'), 'section' => 'cmsms_tl_page_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_page[' . CMSMS_SHORTNAME . '_testimonial_page_author_descr]', 'type' => 'checkbox', 'priority' => '2')); // Testimonials Page Options Testimonial Date $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_page[' . CMSMS_SHORTNAME . '_testimonial_page_date]', array('default' => 0, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_page[' . CMSMS_SHORTNAME . '_testimonial_page_date]', array('label' => __('Testimonial Date', 'cmsmasters'), 'section' => 'cmsms_tl_page_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_page[' . CMSMS_SHORTNAME . '_testimonial_page_date]', 'type' => 'checkbox', 'priority' => '3')); // Testimonials Page Options Testimonial Categories $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_page[' . CMSMS_SHORTNAME . '_testimonial_page_cat]', array('default' => 0, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_page[' . CMSMS_SHORTNAME . '_testimonial_page_cat]', array('label' => __('Testimonial Categories', 'cmsmasters'), 'section' => 'cmsms_tl_page_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_page[' . CMSMS_SHORTNAME . '_testimonial_page_cat]', 'type' => 'checkbox', 'priority' => '4')); // Testimonials Page Options Testimonial Comments $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_page[' . CMSMS_SHORTNAME . '_testimonial_page_comment]', array('default' => 0, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_page[' . CMSMS_SHORTNAME . '_testimonial_page_comment]', array('label' => __('Testimonial Comments', 'cmsmasters'), 'section' => 'cmsms_tl_page_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_page[' . CMSMS_SHORTNAME . '_testimonial_page_comment]', 'type' => 'checkbox', 'priority' => '5')); // Testimonials Page Options Testimonial Read More $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_page[' . CMSMS_SHORTNAME . '_testimonial_page_more]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_page[' . CMSMS_SHORTNAME . '_testimonial_page_more]', array('label' => __('Read More', 'cmsmasters'), 'section' => 'cmsms_tl_page_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_page[' . CMSMS_SHORTNAME . '_testimonial_page_more]', 'type' => 'checkbox', 'priority' => '6')); // Testimonials Post Options Section $wp_customize->add_section('cmsms_tl_post_section', array('title' => __('Testimonials Post Options', 'cmsmasters'), 'description' => __('Allows you to change theme testimonials posts options', 'cmsmasters'), 'priority' => '147')); // Testimonials Post Options Testimonial Author Avatar $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_post[' . CMSMS_SHORTNAME . '_testimonial_post_author_avatar]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_post[' . CMSMS_SHORTNAME . '_testimonial_post_author_avatar]', array('label' => __('Testimonial Author Avatar', 'cmsmasters'), 'section' => 'cmsms_tl_post_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_post[' . CMSMS_SHORTNAME . '_testimonial_post_author_avatar]', 'type' => 'checkbox', 'priority' => '1')); // Testimonials Post Options Testimonial Author Description $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_post[' . CMSMS_SHORTNAME . '_testimonial_post_author_descr]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_post[' . CMSMS_SHORTNAME . '_testimonial_post_author_descr]', array('label' => __('Testimonial Author Description', 'cmsmasters'), 'section' => 'cmsms_tl_post_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_post[' . CMSMS_SHORTNAME . '_testimonial_post_author_descr]', 'type' => 'checkbox', 'priority' => '2')); // Testimonials Post Options Testimonial Date $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_post[' . CMSMS_SHORTNAME . '_testimonial_post_date]', array('default' => 0, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_post[' . CMSMS_SHORTNAME . '_testimonial_post_date]', array('label' => __('Testimonial Date', 'cmsmasters'), 'section' => 'cmsms_tl_post_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_post[' . CMSMS_SHORTNAME . '_testimonial_post_date]', 'type' => 'checkbox', 'priority' => '3')); // Testimonials Post Options Testimonial Categories $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_post[' . CMSMS_SHORTNAME . '_testimonial_post_cat]', array('default' => 0, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_post[' . CMSMS_SHORTNAME . '_testimonial_post_cat]', array('label' => __('Testimonial Categories', 'cmsmasters'), 'section' => 'cmsms_tl_post_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_post[' . CMSMS_SHORTNAME . '_testimonial_post_cat]', 'type' => 'checkbox', 'priority' => '4')); // Testimonials Post Options Testimonial Comments $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_post[' . CMSMS_SHORTNAME . '_testimonial_post_comment]', array('default' => 0, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_post[' . CMSMS_SHORTNAME . '_testimonial_post_comment]', array('label' => __('Testimonial Comments', 'cmsmasters'), 'section' => 'cmsms_tl_post_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_post[' . CMSMS_SHORTNAME . '_testimonial_post_comment]', 'type' => 'checkbox', 'priority' => '5')); // Testimonials Post Options Testimonial Navigation Box $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_post[' . CMSMS_SHORTNAME . '_testimonial_post_nav_box]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_post[' . CMSMS_SHORTNAME . '_testimonial_post_nav_box]', array('label' => __('Testimonial Navigation Box', 'cmsmasters'), 'section' => 'cmsms_tl_post_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_post[' . CMSMS_SHORTNAME . '_testimonial_post_nav_box]', 'type' => 'checkbox', 'priority' => '6')); // Testimonials Post Options Popular & Latest Testimonials Boxes Items Number $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_post[' . CMSMS_SHORTNAME . '_testimonial_post_p_l_number]', array('default' => 4, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_post[' . CMSMS_SHORTNAME . '_testimonial_post_p_l_number]', array('label' => __('Popular & Latest Testimonials Boxes Items Number', 'cmsmasters'), 'section' => 'cmsms_tl_post_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_testimonial_t_post[' . CMSMS_SHORTNAME . '_testimonial_post_p_l_number]', 'type' => 'text', 'priority' => '7')); // Sitemap Options Section $wp_customize->add_section('cmsms_sitemap_section', array('title' => __('Sitemap Options', 'cmsmasters'), 'description' => __('Allows you to change theme sitemap page template options', 'cmsmasters'), 'priority' => '148')); // Sitemap Options Website Pages $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_sitemap[' . CMSMS_SHORTNAME . '_sitemap_nav]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_sitemap[' . CMSMS_SHORTNAME . '_sitemap_nav]', array('label' => __('Website Pages', 'cmsmasters'), 'section' => 'cmsms_sitemap_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_sitemap[' . CMSMS_SHORTNAME . '_sitemap_nav]', 'type' => 'checkbox', 'priority' => '1')); // Sitemap Options Blog Archives by Categories $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_sitemap[' . CMSMS_SHORTNAME . '_sitemap_categs]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_sitemap[' . CMSMS_SHORTNAME . '_sitemap_categs]', array('label' => __('Blog Archives by Categories', 'cmsmasters'), 'section' => 'cmsms_sitemap_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_sitemap[' . CMSMS_SHORTNAME . '_sitemap_categs]', 'type' => 'checkbox', 'priority' => '2')); // Sitemap Options Blog Archives by Tags $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_sitemap[' . CMSMS_SHORTNAME . '_sitemap_tags]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_sitemap[' . CMSMS_SHORTNAME . '_sitemap_tags]', array('label' => __('Blog Archives by Tags', 'cmsmasters'), 'section' => 'cmsms_sitemap_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_sitemap[' . CMSMS_SHORTNAME . '_sitemap_tags]', 'type' => 'checkbox', 'priority' => '3')); // Sitemap Options Blog Archives by Month $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_sitemap[' . CMSMS_SHORTNAME . '_sitemap_month]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_sitemap[' . CMSMS_SHORTNAME . '_sitemap_month]', array('label' => __('Blog Archives by Month', 'cmsmasters'), 'section' => 'cmsms_sitemap_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_sitemap[' . CMSMS_SHORTNAME . '_sitemap_month]', 'type' => 'checkbox', 'priority' => '4')); // Sitemap Options Portfolio Archives by Categories $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_sitemap[' . CMSMS_SHORTNAME . '_sitemap_pj_categs]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_sitemap[' . CMSMS_SHORTNAME . '_sitemap_pj_categs]', array('label' => __('Portfolio Archives by Categories', 'cmsmasters'), 'section' => 'cmsms_sitemap_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_sitemap[' . CMSMS_SHORTNAME . '_sitemap_pj_categs]', 'type' => 'checkbox', 'priority' => '5')); // Sitemap Options Portfolio Archives by Tags $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_sitemap[' . CMSMS_SHORTNAME . '_sitemap_pj_tags]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_sitemap[' . CMSMS_SHORTNAME . '_sitemap_pj_tags]', array('label' => __('Portfolio Archives by Tags', 'cmsmasters'), 'section' => 'cmsms_sitemap_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_sitemap[' . CMSMS_SHORTNAME . '_sitemap_pj_tags]', 'type' => 'checkbox', 'priority' => '6')); // 404 Error Page Options Section $wp_customize->add_section('cmsms_error_section', array('title' => __('404 Error Page Options', 'cmsmasters'), 'description' => __('Allows you to change theme 404 error page options', 'cmsmasters'), 'priority' => '149')); // 404 Error Page Options Search Line $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_error[' . CMSMS_SHORTNAME . '_error_search]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_error[' . CMSMS_SHORTNAME . '_error_search]', array('label' => __('Search Line', 'cmsmasters'), 'section' => 'cmsms_error_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_error[' . CMSMS_SHORTNAME . '_error_search]', 'type' => 'checkbox', 'priority' => '1')); // 404 Error Page Options Sitemap Button $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_error[' . CMSMS_SHORTNAME . '_error_sitemap_button]', array('default' => 1, 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_error[' . CMSMS_SHORTNAME . '_error_sitemap_button]', array('label' => __('Sitemap Button', 'cmsmasters'), 'section' => 'cmsms_error_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_error[' . CMSMS_SHORTNAME . '_error_sitemap_button]', 'type' => 'checkbox', 'priority' => '2')); // 404 Error Page Options Sitemap Page URL $wp_customize->add_setting('cmsms_options_' . CMSMS_SHORTNAME . '_error[' . CMSMS_SHORTNAME . '_error_sitemap_link]', array('default' => '#', 'type' => 'option')); $wp_customize->add_control('cmsms_options_' . CMSMS_SHORTNAME . '_error[' . CMSMS_SHORTNAME . '_error_sitemap_link]', array('label' => __('Sitemap Page URL', 'cmsmasters'), 'section' => 'cmsms_error_section', 'settings' => 'cmsms_options_' . CMSMS_SHORTNAME . '_error[' . CMSMS_SHORTNAME . '_error_sitemap_link]', 'type' => 'text', 'priority' => '3')); // Check Number Function function check_number($value) { $value = (int) $value; return $value > 0 ? $value : null; } }