* Canuck is distributed under the terms of the GNU GPL. */ /** * PANEL and SECTION ARRAY * * This function contains the array that is used to set up the panels and sub panels. */ function canuck_get_customizer_groups() { $groups = array( 'canuck_general' => array( 'name' => 'canuck_general', 'title' => esc_html__( 'Canuck General', 'canuck' ), 'description' => '', 'priority' => 1, 'sections' => array( 'general_misc_options' => array( 'name' => 'general_misc_options', 'title' => esc_html__( 'Miscelaneous Options', 'canuck' ), 'description' => esc_html__( 'Miscelaneous Options for the Canuck Theme.', 'canuck' ), 'priority' => 1, ), 'general_backup_options' => array( 'name' => 'general_backup_options', 'title' => esc_html__( 'Backup Options', 'canuck' ), 'description' => esc_html__( 'Backup options to a private page accessible with the password:Canuck.', 'canuck' ), 'priority' => 2, ), 'general_category_exclude' => array( 'name' => 'general_category_exclude', 'title' => esc_html__( 'Exclude Categories', 'canuck' ), 'description' => esc_html__( 'Exclude Categories from posts and lists', 'canuck' ), 'priority' => 3, ), 'general_flex' => array( 'name' => 'general_flex', 'title' => esc_html__( 'Flex Slider Options', 'canuck' ), 'description' => '', 'priority' => 4, ), 'general_jquery' => array( 'name' => 'general_jquery', 'title' => esc_html__( 'jQuery Options', 'canuck' ), 'description' => '', 'priority' => 5, ), ), ), 'canuck_layouts' => array( 'name' => 'canuck_layouts', 'title' => esc_html__( 'Canuck Layouts', 'canuck' ), 'description' => '', 'priority' => 2, 'sections' => array( 'layouts_general' => array( 'name' => 'layouts_general', 'title' => esc_html__( 'General Layout Options', 'canuck' ), 'description' => '', 'priority' => 1, ), 'layouts_index' => array( 'name' => 'layouts_index', 'title' => esc_html__( 'Default Page Setup', 'canuck' ), 'description' => '', 'priority' => 2, ), 'layouts_author' => array( 'name' => 'layouts_author', 'title' => esc_html__( 'Author Page Setup', 'canuck' ), 'description' => '', 'priority' => 3, ), 'layouts_category' => array( 'name' => 'layouts_category', 'title' => esc_html__( 'Category Page Setup', 'canuck' ), 'description' => '', 'priority' => 4, ), 'layouts_date' => array( 'name' => 'layouts_date', 'title' => esc_html__( 'Date Page Setup', 'canuck' ), 'description' => '', 'priority' => 5, ), 'layouts_search' => array( 'name' => 'layouts_search', 'title' => esc_html__( 'Search Page Setup', 'canuck' ), 'description' => '', 'priority' => 6, ), 'layouts_single' => array( 'name' => 'layouts_single', 'title' => esc_html__( 'Single Page Setup', 'canuck' ), 'description' => '', 'priority' => 7, ), 'layouts_tag' => array( 'name' => 'layouts_tag', 'title' => esc_html__( 'Tag Page Setup', 'canuck' ), 'description' => '', 'priority' => 8, ), 'layouts_404' => array( 'name' => 'layouts_404', 'title' => esc_html__( 'Error Page Setup', 'canuck' ), 'description' => '', 'priority' => 9, ), ), ), 'canuck_header' => array( 'name' => 'canuck_header', 'title' => esc_html__( 'Canuck Headers', 'canuck' ), 'description' => '', 'priority' => 3, 'sections' => array( 'image_header' => array( 'name' => 'image_header', 'title' => esc_html__( 'Image background options', 'canuck' ), 'description' => esc_html__( 'These options will be used when you are using a header image in your blog or in your home page.', 'canuck' ) . esc_html__( 'The options are applied to the menu and logo that overlay the image.', 'canuck' ), 'priority' => 1, ), 'contact_strip' => array( 'name' => 'contact_strip', 'title' => esc_html__( 'Contact Information', 'canuck' ), 'description' => esc_html__( 'This information will appear in the top header strip on the left hand side.', 'canuck' ), 'priority' => 2, ), ), ), 'canuck_footer' => array( 'name' => 'canuck_footer', 'title' => esc_html__( 'Canuck Footer', 'canuck' ), 'description' => '', 'priority' => 4, 'sections' => array( 'footer_footer' => array( 'name' => 'footer_footer', 'title' => esc_html__( 'Footer Options', 'canuck' ), 'description' => '', 'priority' => 1, ), 'footer_copyright' => array( 'name' => 'footer_copyright', 'title' => esc_html__( 'Copyright Strip Options', 'canuck' ), 'description' => '', 'priority' => 2, ), ), ), 'canuck_styles' => array( 'name' => 'canuck_styles', 'title' => esc_html__( 'Canuck Styles', 'canuck' ), 'description' => '', 'priority' => 5, 'sections' => array( 'styles_general' => array( 'name' => 'styles_general', 'title' => esc_html__( 'Canuck: General Styles', 'canuck' ), 'description' => esc_html__( 'General style changes', 'canuck' ), 'priority' => 1, ), ), ), 'canuck_blog' => array( 'name' => 'canuck_blog', 'title' => esc_html__( 'Canuck Blog', 'canuck' ), 'description' => '', 'priority' => 6, 'sections' => array( 'blog_general' => array( 'name' => 'blog_general', 'title' => esc_html__( 'General Blog Options', 'canuck' ), 'description' => '', 'priority' => 1, ), 'blog_posts' => array( 'name' => 'blog_posts', 'title' => esc_html__( 'Post Options', 'canuck' ), 'description' => '', 'priority' => 2, ), ), ), 'canuck_home' => array( 'name' => 'canuck_home', 'title' => esc_html__( 'Canuck Home Page', 'canuck' ), 'description' => esc_html__( 'Build a landing page with these options. ', 'canuck' ) . esc_html__( 'These options only apply when you create a new page and set Template = Home Page found in the page setup section.', 'canuck' ), 'priority' => 7, 'sections' => array( 'home_one' => array( 'name' => 'home_one', 'title' => esc_html__( 'Home Feature Options', 'canuck' ), 'description' => esc_html__( 'You can add a feature slider or image to your home page.', 'canuck' ), 'priority' => 1, ), 'home_layout' => array( 'name' => 'home_layout', 'title' => esc_html__( 'Home Layout Options', 'canuck' ), 'description' => esc_html__( 'You can use any Section you want and stack them in any order you want.', 'canuck' ), 'priority' => 1, ), 'home_section_1' => array( 'name' => 'home_section_1', 'title' => esc_html__( 'Sec 1 Text/Shortcode/Widget', 'canuck' ), 'description' => esc_html__( 'Section 1 contains html text and an optional button, plus an optional shortcode or widget.', 'canuck' ), 'priority' => 2, ), 'home_section_2' => array( 'name' => 'home_section_2', 'title' => esc_html__( 'Sec 2 Three Service Boxes', 'canuck' ), 'description' => esc_html__( 'Section 2 contains 3 service boxes, allowing an image,title,html text,and a button.', 'canuck' ), 'priority' => 3, ), 'home_section_3' => array( 'name' => 'home_section_3', 'title' => esc_html__( 'Sec 3 Text/Shortcode/Widget', 'canuck' ), 'description' => esc_html__( 'Section 3 contains html text and an optional button, plus an optional shortcode or widget.', 'canuck' ), 'priority' => 4, ), 'home_section_4' => array( 'name' => 'home_section_4', 'title' => esc_html__( 'Sec 4 Two Service Boxes', 'canuck' ), 'description' => esc_html__( 'Section 4 contains 2 service boxes, allowing an image,title,html text,and a button.', 'canuck' ), 'priority' => 5, ), 'home_section_5' => array( 'name' => 'home_section_5', 'title' => esc_html__( 'Sec 5 Text/Shortcode/Widget', 'canuck' ), 'description' => esc_html__( 'Section 5 contains html text and an optional button, plus an optional shortcode or widget.', 'canuck' ), 'priority' => 6, ), 'home_section_6' => array( 'name' => 'home_section_6', 'title' => esc_html__( 'Sec 6 Two Service Boxes', 'canuck' ), 'description' => esc_html__( 'Section 6 contains 2 service boxes, allowing an image,title,html text,and a button.', 'canuck' ), 'priority' => 7, ), 'home_section_7' => array( 'name' => 'home_section_7', 'title' => esc_html__( 'Sec 7 Text/Shortcode/Widget', 'canuck' ), 'description' => esc_html__( 'Section 7 contains html text and an optional button, plus an optional shortcode or widget.', 'canuck' ), 'priority' => 8, ), 'home_section_8' => array( 'name' => 'home_section_8', 'title' => esc_html__( 'Sec 8 Four Service Boxes', 'canuck' ), 'description' => esc_html__( 'Section contains 4 service boxes, allowing an image,title,html text,and a button.', 'canuck' ), 'priority' => 9, ), 'home_section_9' => array( 'name' => 'home_section_9', 'title' => esc_html__( 'Sec 9 Portfolio', 'canuck' ), 'description' => esc_html__( 'This section contains a simplified portfolio.', 'canuck' ) . ' ' . esc_html__( 'The portfolio is simply an image with a link to the featured post or a custom page.', 'canuck' ) . ' ' . esc_html__( 'Set up featured posts with the category selected.', 'canuck' ) . ' ' . esc_html__( 'Make sure to fill out Image Caption and Description as they show on the hover effect.', 'canuck' ), 'priority' => 10, ), 'home_section_10' => array( 'name' => 'home_section_10', 'title' => esc_html__( 'Sec 10 Media/Content', 'canuck' ), 'description' => esc_html__( 'Section contains a media area on the left half, title, text and button on the right half.', 'canuck' ), 'priority' => 11, ), 'home_section_11' => array( 'name' => 'home_section_11', 'title' => esc_html__( 'Sec 11 Content/Media', 'canuck' ), 'description' => esc_html__( 'Section contains title, text, button on left half, media area on right half', 'canuck' ), 'priority' => 12, ), 'home_section_12' => array( 'name' => 'home_section_12', 'title' => esc_html__( 'Sec 12 Medium Portfolio Carousel', 'canuck' ), 'description' => esc_html__( 'Section contains title, text, medium sized carousel.', 'canuck' ), 'priority' => 13, ), 'home_section_13' => array( 'name' => 'home_section_13', 'title' => esc_html__( 'Sec 13 Small Portfolio Carousel', 'canuck' ), 'description' => esc_html__( 'Section contains title, text, small sized carousel.', 'canuck' ), 'priority' => 14, ), ), ), ); return apply_filters( 'canuck_get_customizer_groups', $groups ); } /** * OPTIONS ARRAY. * * This function sets up the array with the option parameters. * * format: * * 'option_id' => array( * 'name' => 'canuck_id',// keep the name the same as the option key. ALL OPTION NAMES MUST BE UNIQUE * 'title' => esc_html__( 'Title of Option' ,'text domain' ),// title to show in option * 'option_type' => 'text', // text, textarea, checkbox, radio, select, range, image, color, upload, scat, stag, mcat * // scat-single category dropdown, stag-single tag drop down, mcat-multiple category checkbox * 'setting_type' => 'theme_mod', //theme_mod->saves to theme options table called theme_mods_canuck[] * // ->will have to be re-entered for child theme * 'description' => esc_html__("Description of option", 'canuck' ), //additional documentation for option * 'section' => 'panel1_section1', //panel you want the option to appear under * 'priority' => 1, // order within the section that the option is displayed * 'default' => '', // sane default, what default do you want to use if the user does not update this option * 'transport' => 'refresh', // refresh-> page must be reloaded to use the option * // postMessage-> you have custom Javascript to instantly update the preview window * 'sanitize' => 'is_email' // sanitize callback function you want to use, see recommended below * // checkbox=>wp_validate_boolean, * // text(email) => is_email,text(nohtml)=>sanitize_text_field, * // text(html allowed)=>wp_kses_post,text(link) => esc_url_raw, * // textarea(no html allowed)=>esc_html,textarea(html allowed)=> wp_kses_post * // radio=>sanitize_text_field,select=>sanitize_text_field, * // image=>esc_url_raw,upload=>esc_url_raw, * // range=>sanitize_text_field,color=>sanitize_hex_color, * // scat=>sanitize_text_field,stag=>sanitize_text_field * ), * * For select and radio lists and the range slider there is a choices array to also set up, see the defaults below. * * NOTE: Panel 1 Section 1 contains a comlete set of option examples available for this script * Simply cut and paste to add the option of your choice */ function canuck_get_customizer_option_partameters() { // First get the color scheme to allow defaults button hovers. $color_scheme = get_theme_mod( 'canuck_color_scheme', 'gray_pink' ); if ( 'gray-green' === $color_scheme ) { $button_hover_default = '#19c143'; } elseif ( 'gray-red' === $color_scheme ) { $button_hover_default = '#f20202'; } elseif ( 'gray-blue' === $color_scheme ) { $button_hover_default = '#16aee5'; } else { $button_hover_default = '#ed1651'; } $options = array( // Panel:canuck_general Section:general_misc_options. 'canuck_include_pinit' => array( 'name' => 'canuck_include_pinit', 'title' => esc_html__( 'Include Pinterest PinIt', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'If checked a Pinterest Pinit button will show on portfolio based and masonry galleries.', 'canuck' ), 'section' => 'general_misc_options', 'priority' => 1, 'default' => 0, // Leave as 1. 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), // Panel:themeslug_intro Section:intro_intro. 'canuck_backup_options_to_post' => array( 'name' => 'canuck_backup_options_to_post', 'title' => esc_html__( 'Backup Canuck Option Content', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Canuck options contains significant content creation.', 'canuck' ) . ' ' . esc_html__( 'Content creation is in the options that require some form of text input.', 'canuck' ) . ' ' . esc_html__( 'Select the checkbox above to save your content to a Private page, available only to users signed in with admin privledges.', 'canuck' ) . ' ' . esc_html__( 'You will then be able to access this content while setting up a different theme. ', 'canuck' ) . '

' . '' . esc_html__( 'If the box is checked , the page will be updated each time a Customize save is completed. ', 'canuck' ) . esc_html__( 'You can optionally check the box and Save, then un-check the box and save to update the page one time. ', 'canuck' ) . '', 'section' => 'general_backup_options', 'priority' => 1, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), // Panel:canuck_general Section:general_category_exclude. 'canuck_exclude_categories' => array( 'name' => 'canuck_exclude_categories', 'title' => esc_html__( 'Exclude Category IDs', 'canuck' ), 'option_type' => 'mcat', 'description' => esc_html__( 'Check category ids to exclude from posts and lists.', 'canuck' ), 'section' => 'general_category_exclude', 'priority' => 1, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), // Panel:canuck_general Section:general_flex. 'canuck_flex_slider_auto' => array( 'name' => 'canuck_flex_slider_auto', 'title' => esc_html__( 'Feature Slider Auto Mode', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'If checked the slider will start automatically.', 'canuck' ), 'section' => 'general_flex', 'priority' => 1, 'default' => 1, // Leave as 1. 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_flex_slider_effect' => array( 'name' => 'canuck_flex_slider_effect', 'title' => esc_html__( 'Feature Slider Transition Effect', 'canuck' ), 'option_type' => 'select', 'choices' => array( 'slide' => esc_html__( 'Slide', 'canuck' ), 'fade' => esc_html__( 'Fade', 'canuck' ), ), 'description' => esc_html__( 'Use either a slide or fade to switch slides.', 'canuck' ), 'section' => 'general_flex', 'priority' => 2, 'default' => 'fade', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_flex_effect', ), 'canuck_flex_slider_pause' => array( 'name' => 'canuck_flex_slider_pause', 'title' => esc_html__( 'Feature Slider Pause Time', 'canuck' ), 'option_type' => 'select', 'choices' => canuck_flex_slider_pause_choices(), 'description' => esc_html__( 'How long before the slide changes in milliseconds.', 'canuck' ), 'section' => 'general_flex', 'priority' => 3, 'default' => '5000', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_flex_pause', ), 'canuck_flex_slider_trans' => array( 'name' => 'canuck_flex_slider_trans', 'title' => esc_html__( 'Feature Slider Transition Time', 'canuck' ), 'option_type' => 'select', 'choices' => canuck_flex_slider_transition_choices(), 'description' => esc_html__( 'How long for the slide to switch from start of change to end of change in milliseconds.', 'canuck' ), 'section' => 'general_flex', 'priority' => 4, 'default' => '600', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_flex_trans', ), 'canuck_flex_gallery_auto' => array( 'name' => 'canuck_flex_gallery_auto', 'title' => esc_html__( 'Gallery Slider Auto Mode', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'If checked the slider will start automatically.', 'canuck' ), 'section' => 'general_flex', 'priority' => 5, 'default' => 0, // Leave as 0. 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_flex_gallery_effect' => array( 'name' => 'canuck_flex_gallery_effect', 'title' => esc_html__( 'Gallery Slider Transition Effect', 'canuck' ), 'option_type' => 'select', 'choices' => array( 'slide' => esc_html__( 'Slide', 'canuck' ), 'fade' => esc_html__( 'Fade', 'canuck' ), ), 'description' => esc_html__( 'Use either a slide or fade to switch slides.', 'canuck' ), 'section' => 'general_flex', 'priority' => 6, 'default' => 'fade', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_flex_effect', ), 'canuck_flex_gallery_pause' => array( 'name' => 'canuck_flex_gallery_pause', 'title' => esc_html__( 'Gallery Slider Pause Time', 'canuck' ), 'option_type' => 'select', 'choices' => canuck_flex_slider_pause_choices(), 'description' => esc_html__( 'How long before the slide changes in milliseconds.', 'canuck' ), 'section' => 'general_flex', 'priority' => 7, 'default' => '5000', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_flex_pause', ), 'canuck_flex_gallery_trans' => array( 'name' => 'canuck_flex_gallery_trans', 'title' => esc_html__( 'Gallery Slider Transition Time', 'canuck' ), 'option_type' => 'select', 'choices' => canuck_flex_slider_transition_choices(), 'description' => esc_html__( 'How long for the slide to switch from start of change to end of change in milliseconds.', 'canuck' ), 'section' => 'general_flex', 'priority' => 8, 'default' => '600', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_flex_trans', ), 'canuck_disable_widget_slider' => array( 'name' => 'canuck_disable_widget_slider', 'title' => esc_html__( 'Disable the widget flex slider', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'If users do not want to use the widget slider, check this box.', 'canuck' ), 'section' => 'general_flex', 'priority' => 9, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), // Panel:canuck_general Section:general_jquery. 'canuck_disable_colorboxjs' => array( 'name' => 'canuck_disable_colorboxjs', 'title' => esc_html__( 'Disable colorbox.js plugin', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'colorbox.js is a javascript image plugin', 'canuck' ), 'section' => 'general_jquery', 'priority' => 2, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_disable_fitvidsjs' => array( 'name' => 'canuck_disable_fitvidsjs', 'title' => esc_html__( 'Disable fitvids.js plugin', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'fitvids.js is the responsive video javascript plugin', 'canuck' ), 'section' => 'general_jquery', 'priority' => 3, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_disable_smoothscroll' => array( 'name' => 'canuck_disable_smoothscroll', 'title' => esc_html__( 'Disable smooth scroll js script', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Click to disable this feature', 'canuck' ), 'section' => 'general_jquery', 'priority' => 4, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_use_lazyload' => array( 'name' => 'canuck_use_lazyload', 'title' => esc_html__( 'Use lazyload.js plugin', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Click to use this feature. ', 'canuck' ) . esc_html__( 'Lazy load delays loading of off screen images and improves page speed.', 'canuck' ), 'section' => 'general_jquery', 'priority' => 5, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_disable_scrollreveal' => array( 'name' => 'canuck_disable_scrollreveal', 'title' => esc_html__( 'Disable scrollreveal.js plugin', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Click to disable this feature. ', 'canuck' ) . esc_html__( 'Scroll Reveal is used for home page section animation.', 'canuck' ), 'section' => 'general_jquery', 'priority' => 6, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), // Panel:canuck_layouts Section:layouts_general. 'canuck_breadcrumbs' => array( 'name' => 'canuck_breadcrumbs', 'title' => esc_html__( 'Include Breadcrumbs', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'To use breadcrumbs you must install a plugin called "Breadcrumb Trail" by Justin Tadlock.', 'canuck' ), 'section' => 'layouts_general', 'priority' => 1, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_use_feature' => array( 'name' => 'canuck_use_feature', 'title' => esc_html__( 'Include Feature Images', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Include feature images on archive, author, category, search, and tag pages.', 'canuck' ), 'section' => 'layouts_general', 'priority' => 2, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), // Panel:canuck_layouts Section:layouts_index. 'canuck_index_layout' => array( 'name' => 'canuck_index_layout', 'title' => esc_html__( 'Layout Option', 'canuck' ), 'option_type' => 'radio_image', 'choices' => canuck_page_layout_choices(), 'description' => esc_html__( 'Select a layout from the list', 'canuck' ), 'section' => 'layouts_index', 'priority' => 1, 'default' => 'right_sidebar', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_layout', ), 'canuck_index_title' => array( 'name' => 'canuck_index_title', 'title' => esc_html__( 'Disable Title', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to remove the title', 'canuck' ), 'section' => 'layouts_index', 'priority' => 2, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), // Panel:canuck_layouts Section:layouts_author. 'canuck_author_layout' => array( 'name' => 'canuck_author_layout', 'title' => esc_html__( 'Layout Option', 'canuck' ), 'option_type' => 'radio_image', 'choices' => canuck_page_layout_choices(), 'description' => esc_html__( 'Select a layout from the list', 'canuck' ), 'section' => 'layouts_author', 'priority' => 1, 'default' => 'right_sidebar', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_layout', ), 'canuck_include_author_bio' => array( 'name' => 'canuck_include_author_bio', 'title' => esc_html__( 'Include author bio', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check this include author avatar and bio', 'canuck' ), 'section' => 'layouts_author', 'priority' => 3, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), // Panel:canuck_layouts Section:layouts_category. 'canuck_category_layout' => array( 'name' => 'canuck_category_layout', 'title' => esc_html__( 'Layout Option', 'canuck' ), 'option_type' => 'radio_image', 'choices' => canuck_page_layout_choices(), 'description' => esc_html__( 'Select a layout from the list', 'canuck' ), 'section' => 'layouts_category', 'priority' => 1, 'default' => 'right_sidebar', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_layout', ), // Panel:canuck_layouts Section:layouts_date. 'canuck_date_layout' => array( 'name' => 'canuck_date_layout', 'title' => esc_html__( 'Layout Option', 'canuck' ), 'option_type' => 'radio_image', 'choices' => canuck_page_layout_choices(), 'description' => esc_html__( 'Select a layout from the list', 'canuck' ), 'section' => 'layouts_date', 'priority' => 1, 'default' => 'right_sidebar', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_layout', ), // Panel:canuck_layouts Section:layouts_search. 'canuck_search_layout' => array( 'name' => 'canuck_search_layout', 'title' => esc_html__( 'Layout Option', 'canuck' ), 'option_type' => 'radio_image', 'choices' => canuck_page_layout_choices(), 'description' => esc_html__( 'Select a layout from the list', 'canuck' ), 'section' => 'layouts_search', 'priority' => 1, 'default' => 'right_sidebar', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_layout', ), // Panel:canuck_layouts Section:layouts_single. 'canuck_single_post_layout' => array( 'name' => 'canuck_single_post_layout', 'title' => esc_html__( 'Layout Option', 'canuck' ), 'option_type' => 'radio_image', 'choices' => canuck_page_layout_choices(), 'description' => esc_html__( 'Select a layout from the list', 'canuck' ), 'section' => 'layouts_single', 'priority' => 1, 'default' => 'right_sidebar', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_layout', ), 'canuck_single_title' => array( 'name' => 'canuck_single_title', 'title' => esc_html__( 'Disable Title', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to remove the title', 'canuck' ), 'section' => 'layouts_single', 'priority' => 2, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_single_sidebar_a' => array( 'name' => 'canuck_single_sidebar_a', 'title' => esc_html__( 'Sidebar A', 'canuck' ), 'option_type' => 'select', 'choices' => canuck_sidebar_choices(), 'description' => esc_html__( 'select the widget panel you want to use', 'canuck' ), 'section' => 'layouts_single', 'priority' => 3, 'default' => 'blog-a', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_select', ), 'canuck_single_sidebar_b' => array( 'name' => 'canuck_single_sidebar_b', 'title' => esc_html__( 'Sidebar B', 'canuck' ), 'option_type' => 'select', 'choices' => canuck_sidebar_choices(), 'description' => esc_html__( 'select the widget panel you want to use', 'canuck' ), 'section' => 'layouts_single', 'priority' => 4, 'default' => 'blog-b', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_select', ), // Panel:canuck_layouts Section:layouts_tag. 'canuck_tag_layout' => array( 'name' => 'canuck_tag_layout', 'title' => esc_html__( 'Layout Option', 'canuck' ), 'option_type' => 'radio_image', 'choices' => canuck_page_layout_choices(), 'description' => esc_html__( 'Select a layout from the list', 'canuck' ), 'section' => 'layouts_tag', 'priority' => 1, 'default' => 'right_sidebar', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_layout', ), // Panel:canuck_layouts Section:layouts_error. 'canuck_404_layout' => array( 'name' => 'canuck_404_layout', 'title' => esc_html__( 'Layout Option', 'canuck' ), 'option_type' => 'radio_image', 'choices' => canuck_page_layout_choices(), 'description' => esc_html__( 'Select a layout from the list', 'canuck' ), 'section' => 'layouts_404', 'priority' => 1, 'default' => 'right_sidebar', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_layout', ), // Panel:canuck_header Section: image_header. 'canuck_image_header_background_color' => array( 'name' => 'canuck_image_header_background_color', 'title' => esc_html__( 'Header Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a background color. Used for the header overlay when a background image is used in the blog or home page.', 'canuck' ), 'section' => 'image_header', 'priority' => 1, 'default' => '#000000', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_image_header_background_opacity' => array( 'name' => 'canuck_image_header_background_opacity', 'title' => esc_html__( 'Header Background Opacity', 'canuck' ), 'option_type' => 'range', 'choices' => canuck_opacity_range_choices(), 'description' => esc_html__( 'This option allows you to place a dark shadow over the menu area background image.', 'canuck' ), 'section' => 'image_header', 'priority' => 2, 'default' => 0.5, 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_image_header_logo' => array( 'name' => 'canuck_image_header_logo', 'title' => esc_html__( 'Logo to overlay image backgrounds', 'canuck' ), 'option_type' => 'image', 'description' => esc_html__( 'This logo will be used to overlay image backgrounds, if used on the home page and/or blog page. ', 'canuck' ) . esc_html__( 'If blank the logo set up in the "Site Identity" panel will be used. ', 'canuck' ) . esc_html__( 'Keep the logo less than 230px wide and 100px high.', 'canuck' ), 'section' => 'image_header', 'priority' => 3, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), // Panel:canuck_header Section: image_header. 'canuck_contact_hours' => array( 'name' => 'canuck_contact_hours', 'title' => esc_html__( 'Hours of Operation', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'No HTML allowed, suggest : M-F, 9-5', 'canuck' ), 'section' => 'contact_strip', 'priority' => 1, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_contact_phone' => array( 'name' => 'canuck_contact_phone', 'title' => esc_html__( 'Phone Number', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'No HTML allowed, Suggest : 1-800-123-4567', 'canuck' ), 'section' => 'contact_strip', 'priority' => 2, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_contact_page' => array( 'name' => 'canuck_contact_page', 'title' => esc_html__( 'Contact Page Link', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'Create a contact page and provide the link here.', 'canuck' ), 'section' => 'contact_strip', 'priority' => 3, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), // Panel:canuck_footer Section:footer_footer. 'canuck_show_footer_top_strip' => array( 'name' => 'canuck_show_footer_top_strip', 'title' => esc_html__( 'Show Contact/Social strip in footer', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'This strip will be placed at the top of the footer.', 'canuck' ), 'section' => 'footer_footer', 'priority' => 0, 'default' => true, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_show_footer' => array( 'name' => 'canuck_show_footer', 'title' => esc_html__( 'Show footer area', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'The footer area with 3 or 4 widgetized columns will be shown.', 'canuck' ), 'section' => 'footer_footer', 'priority' => 1, 'default' => true, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_footer_background_image' => array( 'name' => 'canuck_footer_background_image', 'title' => esc_html__( 'Footer Background Image', 'canuck' ), 'option_type' => 'image', 'description' => esc_html__( 'Upload and use a background image', 'canuck' ), 'section' => 'footer_footer', 'priority' => 2, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_footer_overlay_opacity' => array( 'name' => 'canuck_footer_overlay_opacity', 'title' => esc_html__( 'Footer-Overlay Opacity', 'canuck' ), 'option_type' => 'range', 'choices' => canuck_opacity_range_choices(), 'description' => esc_html__( 'This option allows you to place a dark shadow over the background image.', 'canuck' ), 'section' => 'footer_footer', 'priority' => 3, 'default' => 0, 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_footer_cols' => array( 'name' => 'canuck_footer_cols', 'title' => esc_html__( 'Select footer columns', 'canuck' ), 'option_type' => 'select', 'choices' => array( '3' => '3', '4' => '4', ), 'description' => esc_html__( 'you can have 3 or 4 footer columns', 'canuck' ), 'section' => 'footer_footer', 'priority' => 4, 'default' => '3', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_select', ), 'canuck_footer_background_color' => array( 'name' => 'canuck_footer_background_color', 'title' => esc_html__( 'Footer Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a background color. Note this will not be used if a background image is set up.', 'canuck' ), 'section' => 'footer_footer', 'priority' => 5, 'default' => '#161616', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_footer_text_color' => array( 'name' => 'canuck_footer_text_color', 'title' => esc_html__( 'Footer Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a text color.', 'canuck' ), 'section' => 'footer_footer', 'priority' => 5, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_footer_link_color' => array( 'name' => 'canuck_footer_link_color', 'title' => esc_html__( 'Footer Link Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a link text color.', 'canuck' ), 'section' => 'footer_footer', 'priority' => 5, 'default' => '#c9c9c9', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_footer_link_hover_color' => array( 'name' => 'canuck_footer_link_hover_color', 'title' => esc_html__( 'Footer Link Hover Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a link hover color.', 'canuck' ), 'section' => 'footer_footer', 'priority' => 5, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), // Panel:canuck_footer Section:footer_copyright. 'canuck_show_copyright_strip' => array( 'name' => 'canuck_show_copyright_strip', 'title' => esc_html__( 'Show Copyright Strip', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'you can choose to not show a copyright strip', 'canuck' ), 'section' => 'footer_copyright', 'priority' => 0, 'default' => true, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_left_copyright_text' => array( 'name' => 'canuck_left_copyright_text', 'title' => esc_html__( 'Copyright left text', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'Some HTML allowed, suggest :', 'canuck' ) . ' &copy; ' . esc_html__( 'copyright YEAR', 'canuck' ) . "<a href='#'>www.yoursite.url</a>", 'section' => 'footer_copyright', 'priority' => 1, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_middle_copyright_text' => array( 'name' => 'canuck_middle_copyright_text', 'title' => esc_html__( 'Copyright middle text', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'Some HTML allowed, suggest : site by', 'canuck' ) . " &nbsp; <a href='#'>www.developer.url</a>", 'section' => 'footer_copyright', 'priority' => 2, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_right_copyright_text' => array( 'name' => 'canuck_right_copyright_text', 'title' => esc_html__( 'Copyright right text', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'Some HTML allowed,', 'canuck' ), 'section' => 'footer_copyright', 'priority' => 3, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), // Panel:canuck_styles Section:styles_general. 'canuck_color_scheme' => array( 'name' => 'canuck_color_scheme', 'title' => esc_html__( 'Color Scheme', 'canuck' ), 'option_type' => 'select', 'choices' => array( 'gray-pink' => esc_html__( 'Gray with Pink accents', 'canuck' ), 'gray-green' => esc_html__( 'Gray with Green accents', 'canuck' ), 'gray-red' => esc_html__( 'Gray with Red accents', 'canuck' ), 'gray-blue' => esc_html__( 'Gray with Blue accents', 'canuck' ), ), 'description' => esc_html__( 'Select a color scheme for your site', 'canuck' ), 'section' => 'styles_general', 'priority' => 1, 'default' => 'gray-pink', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_select', ), // Panel:canuck_styles Section:styles_header_font. 'canuck_header_font' => array( 'name' => 'canuck_header_font', 'title' => esc_html__( 'Font for Headers', 'canuck' ), 'option_type' => 'select', 'choices' => canuck_font_choices(), 'description' => esc_html__( 'Select a font for headers', 'canuck' ), 'section' => 'styles_general', 'priority' => 2, 'default' => 'Open Sans', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_font_select', ), // Panel:canuck_styles Section:styles_body_font. 'canuck_body_font' => array( 'name' => 'canuck_body_font', 'title' => esc_html__( 'Font for Body Text', 'canuck' ), 'option_type' => 'select', 'choices' => canuck_font_choices(), 'description' => esc_html__( 'Select a font for main text', 'canuck' ), 'section' => 'styles_general', 'priority' => 3, 'default' => 'Open Sans', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_font_select', ), // Panel:canuck_styles Section:styles_custom_font. 'canuck_page_title_font' => array( 'name' => 'canuck_page_title_font', 'title' => esc_html__( 'Font for Page Titles', 'canuck' ), 'option_type' => 'select', 'choices' => canuck_font_choices(), 'description' => esc_html__( 'Select a font for page titles', 'canuck' ), 'section' => 'styles_general', 'priority' => 4, 'default' => 'Open Sans', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_font_select', ), // Panel:canuck_styles Section:styles_custom_font. 'canuck_display_font_options' => array( 'name' => 'canuck_display_font_options', 'title' => esc_html__( 'Font Display Loading Options', 'canuck' ), 'option_type' => 'select', 'choices' => array( 'auto' => esc_html__( 'auto-use browser default loading strategy', 'canuck' ), 'block' => esc_html__( 'block-gives the font face a short block period', 'canuck' ), 'swap' => esc_html__( 'swap-use a fallback until font is available', 'canuck' ), 'fallback' => esc_html__( 'fallback-use fallback if font download is slow', 'canuck' ), 'optional' => esc_html__( 'optional-let the browser decide', 'canuck' ), ), 'description' => esc_html__( 'Font loading optimization, may use fallback font.', 'canuck' ), 'section' => 'styles_general', 'priority' => 5, 'default' => 'auto', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_font_display', ), // Panel:canuck_blog Section:blog_general. 'canuck_blog_title' => array( 'name' => 'canuck_blog_title', 'title' => esc_html__( 'Blog Title', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'If you choose to display a title this one is used', 'canuck' ), 'section' => 'blog_general', 'priority' => 1, 'default' => 'Blog', 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_blog_title_option' => array( 'name' => 'canuck_blog_title_option', 'title' => esc_html__( 'Disable Title', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to remove the title', 'canuck' ), 'section' => 'blog_general', 'priority' => 2, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_blog_layout' => array( 'name' => 'canuck_blog_layout', 'title' => esc_html__( 'Layout Option', 'canuck' ), 'option_type' => 'radio_image', 'choices' => canuck_page_layout_choices(), 'description' => esc_html__( 'Select a layout from the list', 'canuck' ), 'section' => 'blog_general', 'priority' => 3, 'default' => 'right_sidebar', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_layout', ), 'canuck_blog_style' => array( 'name' => 'canuck_blog_style', 'title' => esc_html__( 'Blog Style', 'canuck' ), 'option_type' => 'select', 'choices' => array( 'top_feature' => esc_html__( 'Top Feature - all layouts except fullwidth', 'canuck' ), 'side_feature' => esc_html__( 'Side Feature - all layouts except two sidebars', 'canuck' ), 'two_column_grid' => esc_html__( 'Two Column Grid - all layouts except two sidebars', 'canuck' ), 'three_column_grid' => esc_html__( 'Three Column Grid - only full width layouts', 'canuck' ), 'two_stamp' => esc_html__( 'Two Stamp Grid - all layouts except two sidebars', 'canuck' ), 'three_stamp' => esc_html__( 'Three Stamp Grid - only full width layouts', 'canuck' ), ), 'description' => esc_html__( 'Select a blog style from the dropdown list.', 'canuck' ), 'section' => 'blog_general', 'priority' => 4, 'default' => 'top_feature', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_blog_style', ), 'canuck_blog_feature' => array( 'name' => 'canuck_blog_feature', 'title' => esc_html__( 'Blog Feature Options', 'canuck' ), 'option_type' => 'select', 'choices' => array( 'background_image' => esc_html__( 'Background Image', 'canuck' ), 'button_nav' => esc_html__( 'Slider 3:1 aspect ratio', 'canuck' ), 'fullsize' => esc_html__( 'Slider fullsize', 'canuck' ), 'widgetized' => esc_html__( 'Widget (allows video)', 'canuck' ), 'no_feature' => esc_html__( 'No feature', 'canuck' ), ), 'description' => esc_html__( 'If you are using the Background Image option, set up the background image in the customizer "Header Image" tab.', 'canuck' ) . ' ' . esc_html__( 'If you select full size the original images you uploaded will be used. Make sure they are EXACTLY the same size and optimized for the web.', 'canuck' ), 'section' => 'blog_general', 'priority' => 5, 'default' => 'background_image', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_feature', ), 'canuck_blog_feature_category' => array( 'name' => 'canuck_blog_feature_category', 'title' => esc_html__( 'Feature Slider Category', 'canuck' ), 'option_type' => 'scat', 'description' => esc_html__( 'If using the Slider option, set up posts with a feature image.', 'canuck' ) . ' ' . esc_html__( 'Select the special category you use for those posts in the dropdown.', 'canuck' ), 'section' => 'blog_general', 'priority' => 6, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_use_post_gallery_captions' => array( 'name' => 'canuck_use_post_gallery_captions', 'title' => esc_html__( 'Use Post Galley Captions', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Captions from the image meta will be used if checked.', 'canuck' ), 'section' => 'blog_general', 'priority' => 7, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), // Panel:canuck_blog Section:blog_posts. 'canuck_use_excerpts' => array( 'name' => 'canuck_use_excerpts', 'title' => esc_html__( 'Use excerpts', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'The Top Feature and Side Feature blog layout options offer this feature.', 'canuck' ) . ' ' . esc_html__( 'Other layout options use excerpts.', 'canuck' ), 'section' => 'blog_posts', 'priority' => 1, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_excerpt_length' => array( 'name' => 'canuck_excerpt_length', 'title' => esc_html__( 'Excerpt Length', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'Enter the excerpt length in words.', 'canuck' ), 'section' => 'blog_posts', 'priority' => 2, 'default' => '30', 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_exclude_author' => array( 'name' => 'canuck_exclude_author', 'title' => esc_html__( 'Exclude author name in blog posts', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check and the author will not show', 'canuck' ), 'section' => 'blog_posts', 'priority' => 5, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_exclude_timestamp' => array( 'name' => 'canuck_exclude_timestamp', 'title' => esc_html__( 'Exclude date in blog posts', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check and the timestamp will not show', 'canuck' ), 'section' => 'blog_posts', 'priority' => 6, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_exclude_category' => array( 'name' => 'canuck_exclude_category', 'title' => esc_html__( 'Exclude categories in blog posts', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check and the category will not show', 'canuck' ), 'section' => 'blog_posts', 'priority' => 7, 'default' => false, // 0 for off 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_exclude_tags' => array( 'name' => 'canuck_exclude_tags', 'title' => esc_html__( 'Exclude tags in blog posts', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check and the tags will not show', 'canuck' ), 'section' => 'blog_posts', 'priority' => 8, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_exclude_no_comments_link' => array( 'name' => 'canuck_exclude_no_comments_link', 'title' => esc_html__( 'Exclude No Comments link', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Comments link will not be shown if there are no comments.', 'canuck' ), 'section' => 'blog_posts', 'priority' => 9, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), // Panel:canuck_home Section:Home Template. 'canuck_home_feature' => array( 'name' => 'canuck_home_feature', 'title' => esc_html__( 'Home Page Feature', 'canuck' ), 'option_type' => 'select', 'choices' => array( 'background_image' => esc_html__( 'Background Image', 'canuck' ), 'button_nav' => esc_html__( 'Slider 3:1 aspect ratio', 'canuck' ), 'fullsize' => esc_html__( 'Slider fullsize', 'canuck' ), 'widgetized' => esc_html__( 'Widget(allows video)', 'canuck' ), 'no_feature' => esc_html__( 'No feature', 'canuck' ), ), 'description' => esc_html__( 'If you are using the Background Image option, set up the background image in the customizer "Header Image" tab.', 'canuck' ) . ' ' . esc_html__( 'If you select full size the original images you uploaded will be used. Make sure they are EXACTLY the same size and optimized for the web.', 'canuck' ), 'section' => 'home_one', 'priority' => 1, 'default' => 'background_image', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_feature', ), 'canuck_home_feature_category' => array( 'name' => 'canuck_home_feature_category', 'title' => esc_html__( 'Home Slider Feature Category', 'canuck' ), 'option_type' => 'scat', 'description' => esc_html__( 'If using the Slider option, set up posts with a feature image.', 'canuck' ) . ' ' . esc_html__( 'Select the special category you use for those posts in the dropdown.', 'canuck' ), 'section' => 'home_one', 'priority' => 2, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_home_title' => array( 'name' => 'canuck_home_title', 'title' => esc_html__( 'Home Title', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'Used when Home Page Feature is set to background image.', 'canuck' ) . ' ' . esc_html__( 'Uses Blog Title if blank.', 'canuck' ), 'section' => 'home_one', 'priority' => 3, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_home_description' => array( 'name' => 'canuck_home_description', 'title' => esc_html__( 'Home Description', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'Used when Home Page Feature is set to background image.', 'canuck' ) . ' ' . esc_html__( 'Uses Blog Description if blank.', 'canuck' ), 'section' => 'home_one', 'priority' => 4, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), // Panel:canuck_home Section:home_layout. 'canuck_home_area_1' => array( 'name' => 'canuck_home_area_1', 'title' => esc_html__( 'Home Page Area 1', 'canuck' ), 'option_type' => 'select', 'choices' => canuck_home_area_choices(), 'description' => esc_html__( 'Set the section for Area 1', 'canuck' ), 'section' => 'home_layout', 'priority' => 1, 'default' => 'none', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_homearea_select', ), 'canuck_home_area_2' => array( 'name' => 'canuck_home_area_2', 'title' => esc_html__( 'Home Page Area 2', 'canuck' ), 'option_type' => 'select', 'choices' => canuck_home_area_choices(), 'description' => esc_html__( 'Set the section for Area 2', 'canuck' ), 'section' => 'home_layout', 'priority' => 2, 'default' => 'none', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_homearea_select', ), 'canuck_home_area_3' => array( 'name' => 'canuck_home_area_3', 'title' => esc_html__( 'Home Page Area 3', 'canuck' ), 'option_type' => 'select', 'choices' => canuck_home_area_choices(), 'description' => esc_html__( 'Set the section for Area 3', 'canuck' ), 'section' => 'home_layout', 'priority' => 4, 'default' => 'none', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_homearea_select', ), 'canuck_home_area_4' => array( 'name' => 'canuck_home_area_4', 'title' => esc_html__( 'Home Page Area 4', 'canuck' ), 'option_type' => 'select', 'choices' => canuck_home_area_choices(), 'description' => esc_html__( 'Set the section for Area 4', 'canuck' ), 'section' => 'home_layout', 'priority' => 4, 'default' => 'none', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_homearea_select', ), 'canuck_home_area_5' => array( 'name' => 'canuck_home_area_5', 'title' => esc_html__( 'Home Page Area 5', 'canuck' ), 'option_type' => 'select', 'choices' => canuck_home_area_choices(), 'description' => esc_html__( 'Set the section for Area 5', 'canuck' ), 'section' => 'home_layout', 'priority' => 5, 'default' => 'none', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_homearea_select', ), 'canuck_home_area_6' => array( 'name' => 'canuck_home_area_6', 'title' => esc_html__( 'Home Page Area 6', 'canuck' ), 'option_type' => 'select', 'choices' => canuck_home_area_choices(), 'description' => esc_html__( 'Set the section for Area 6', 'canuck' ), 'section' => 'home_layout', 'priority' => 6, 'default' => 'none', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_homearea_select', ), 'canuck_home_area_7' => array( 'name' => 'canuck_home_area_7', 'title' => esc_html__( 'Home Page Area 7', 'canuck' ), 'option_type' => 'select', 'choices' => canuck_home_area_choices(), 'description' => esc_html__( 'Set the section for Area 7', 'canuck' ), 'section' => 'home_layout', 'priority' => 7, 'default' => 'none', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_homearea_select', ), 'canuck_home_area_8' => array( 'name' => 'canuck_home_area_8', 'title' => esc_html__( 'Home Page Area 8', 'canuck' ), 'option_type' => 'select', 'choices' => canuck_home_area_choices(), 'description' => esc_html__( 'Set the section for Area 8', 'canuck' ), 'section' => 'home_layout', 'priority' => 8, 'default' => 'none', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_homearea_select', ), 'canuck_home_area_9' => array( 'name' => 'canuck_home_area_9', 'title' => esc_html__( 'Home Page Area 9', 'canuck' ), 'option_type' => 'select', 'choices' => canuck_home_area_choices(), 'description' => esc_html__( 'Set the section for Area 8', 'canuck' ), 'section' => 'home_layout', 'priority' => 9, 'default' => 'none', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_homearea_select', ), 'canuck_home_area_10' => array( 'name' => 'canuck_home_area_10', 'title' => esc_html__( 'Home Page Area 10', 'canuck' ), 'option_type' => 'select', 'choices' => canuck_home_area_choices(), 'description' => esc_html__( 'Set the section for Area 10', 'canuck' ), 'section' => 'home_layout', 'priority' => 10, 'default' => 'none', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_homearea_select', ), 'canuck_home_area_11' => array( 'name' => 'canuck_home_area_11', 'title' => esc_html__( 'Home Page Area 11', 'canuck' ), 'option_type' => 'select', 'choices' => canuck_home_area_choices(), 'description' => esc_html__( 'Set the section for Area 11', 'canuck' ), 'section' => 'home_layout', 'priority' => 11, 'default' => 'none', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_homearea_select', ), 'canuck_home_area_12' => array( 'name' => 'canuck_home_area_12', 'title' => esc_html__( 'Home Page Area 12', 'canuck' ), 'option_type' => 'select', 'choices' => canuck_home_area_choices(), 'description' => esc_html__( 'Set the section for Area 12', 'canuck' ), 'section' => 'home_layout', 'priority' => 12, 'default' => 'none', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_homearea_select', ), 'canuck_home_area_13' => array( 'name' => 'canuck_home_area_13', 'title' => esc_html__( 'Home Page Area 13', 'canuck' ), 'option_type' => 'select', 'choices' => canuck_home_area_choices(), 'description' => esc_html__( 'Set the section for Area 13', 'canuck' ), 'section' => 'home_layout', 'priority' => 13, 'default' => 'none', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_homearea_select', ), // Panel:canuck_home Section:home_section_1 ********************************************. 'canuck_section1_usage' => array( 'name' => 'canuck_section1_usage', 'title' => esc_html__( 'Section 1-Usage Options', 'canuck' ), 'option_type' => 'select', 'choices' => array( 'normal' => 'normal', 'shortcode' => 'shortcode', 'widgetized' => 'widgetized', ), 'description' => esc_html__( 'Normal - widget and shortcode input box are not used.', 'canuck' ) . '
' . esc_html__( 'Widgetized - Drag your widget over to "Home Page Section 1" under "Appearance->Widgets".', 'canuck' ) . ' ' . esc_html__( 'Shortcode - Enter the shortcode you want to use in the shortcode text area box.', 'canuck' ), 'section' => 'home_section_1', 'priority' => 1, 'default' => 'normal', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_useage', ), 'canuck_section1_background_option_toggle' => array( 'name' => 'canuck_section1_background_option_toggle', 'title' => esc_html__( 'Show/Hide Background Options', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check show background options.', 'canuck' ), 'section' => 'home_section_1', 'priority' => 2, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section1_background_image' => array( 'name' => 'canuck_section1_background_image', 'title' => esc_html__( 'Section 1-Background Image', 'canuck' ), 'option_type' => 'image', 'description' => esc_html__( 'Upload and use a background image.', 'canuck' ), 'section' => 'home_section_1', 'priority' => 3, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section1_overlay_opacity' => array( 'name' => 'canuck_section1_overlay_opacity', 'title' => esc_html__( 'Section 1-Overlay Opacity', 'canuck' ), 'option_type' => 'range', 'choices' => canuck_opacity_range_choices(), 'description' => esc_html__( 'This option allows you to place a dark shadow over the background image.', 'canuck' ), 'section' => 'home_section_1', 'priority' => 4, 'default' => 0, 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section1_use_parallax' => array( 'name' => 'canuck_section1_use_parallax', 'title' => esc_html__( 'Section 1-Use Parallax', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to use parallax effect for the image.', 'canuck' ), 'section' => 'home_section_1', 'priority' => 5, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section1_background_color' => array( 'name' => 'canuck_section1_background_color', 'title' => esc_html__( 'Section 1-Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a background color. Note this will not be used if a background image is set up.', 'canuck' ), 'section' => 'home_section_1', 'priority' => 6, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section1_background_color_opacity' => array( 'name' => 'canuck_section1_background_color_opacity', 'title' => esc_html__( 'Section 1-Background Color Opacity', 'canuck' ), 'option_type' => 'range', 'choices' => canuck_opacity_range_choices(), 'description' => esc_html__( 'This option allows you to set the opacity of the background color.', 'canuck' ), 'section' => 'home_section_1', 'priority' => 7, 'default' => 1, 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section1_text_color' => array( 'name' => 'canuck_section1_text_color', 'title' => esc_html__( 'Section 1-Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a text color', 'canuck' ), 'section' => 'home_section_1', 'priority' => 8, 'default' => '#4c4c4c', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section1_text' => array( 'name' => 'canuck_section1_text', 'title' => esc_html__( 'Section 1-Content', 'canuck' ), 'option_type' => 'textarea', 'description' => esc_html__( 'html allowed', 'canuck' ), 'section' => 'home_section_1', 'priority' => 9, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section1_shortcode' => array( 'name' => 'canuck_section1_shortcode', 'title' => esc_html__( 'Section 1-Shortcode', 'canuck' ), 'option_type' => 'textarea', 'description' => esc_html__( 'Add your shortcode here if using shortcode as a Useage Option.', 'canuck' ), 'section' => 'home_section_1', 'priority' => 10, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_include_section1_button' => array( 'name' => 'canuck_include_section1_button', 'title' => esc_html__( 'Section 1-Link', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to use a link, then use the options below.', 'canuck' ), 'section' => 'home_section_1', 'priority' => 11, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section1_button_name' => array( 'name' => 'canuck_section1_button_name', 'title' => esc_html__( 'Section 1-Button Label', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'html allowed, use single quotes for classes', 'canuck' ), 'section' => 'home_section_1', 'priority' => 12, 'default' => " " . esc_html__( 'more', 'canuck' ), 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section1_button_link' => array( 'name' => 'canuck_section1_button_link', 'title' => esc_html__( 'Section 1-Button URI', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'Format:http://your.website.url/contact/', 'canuck' ), 'section' => 'home_section_1', 'priority' => 13, 'default' => '#', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section1_button_background_color' => array( 'name' => 'canuck_section1_button_background_color', 'title' => esc_html__( 'Section 1-Button Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a background color for the button.', 'canuck' ), 'section' => 'home_section_1', 'priority' => 14, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section1_button_text_color' => array( 'name' => 'canuck_section1_button_text_color', 'title' => esc_html__( 'Section 1-Button Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a color for button text.', 'canuck' ), 'section' => 'home_section_1', 'priority' => 15, 'default' => $button_hover_default, 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section1_button_hover_background_color' => array( 'name' => 'canuck_section1_button_hover_background_color', 'title' => esc_html__( 'Section 1-Button Hover Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'The button changes to this color when a mouse pointer hovers over it.', 'canuck' ), 'section' => 'home_section_1', 'priority' => 16, 'default' => $button_hover_default, 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section1_button_hover_text_color' => array( 'name' => 'canuck_section1_button_hover_text_color', 'title' => esc_html__( 'Section 1-Button Hover Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'The button text changes to this color when a mouse pointer hovers over it.', 'canuck' ), 'section' => 'home_section_1', 'priority' => 17, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), // Panel:canuck_home Section:home_section_2 ====================================================. // General options for Section 2. 'canuck_section2_background_option_toggle' => array( 'name' => 'canuck_section2_background_option_toggle', 'title' => esc_html__( 'Show/Hide Background Options', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check show background options.', 'canuck' ), 'section' => 'home_section_2', 'priority' => 1, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section2_background_image' => array( 'name' => 'canuck_section2_background_image', 'title' => esc_html__( 'Section 2-Background Image', 'canuck' ), 'option_type' => 'image', 'description' => esc_html__( 'Upload and use a background image.', 'canuck' ), 'section' => 'home_section_2', 'priority' => 2, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section2_overlay_opacity' => array( 'name' => 'canuck_section2_overlay_opacity', 'title' => esc_html__( 'Section 2-Overlay Opacity', 'canuck' ), 'option_type' => 'range', 'choices' => canuck_opacity_range_choices(), 'description' => esc_html__( 'This option allows you to place a dark shadow over the background image.', 'canuck' ), 'section' => 'home_section_2', 'priority' => 3, 'default' => 0, 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section2_use_parallax' => array( 'name' => 'canuck_section2_use_parallax', 'title' => esc_html__( 'Section 2-Use Parallax', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to use parallax effect for the image.', 'canuck' ), 'section' => 'home_section_2', 'priority' => 4, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section2_background_color' => array( 'name' => 'canuck_section2_background_color', 'title' => esc_html__( 'Section 2-Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a background color. Note this will not be used if a background image is set up.', 'canuck' ), 'section' => 'home_section_2', 'priority' => 5, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section2_background_color_opacity' => array( 'name' => 'canuck_section2_background_color_opacity', 'title' => esc_html__( 'Section 2-Background Color Opacity', 'canuck' ), 'option_type' => 'range', 'choices' => canuck_opacity_range_choices(), 'description' => esc_html__( 'This option allows you to set the opacity of the background color.', 'canuck' ), 'section' => 'home_section_2', 'priority' => 6, 'default' => 1, 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section2_text_color' => array( 'name' => 'canuck_section2_text_color', 'title' => esc_html__( 'Section 2-Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a text color', 'canuck' ), 'section' => 'home_section_2', 'priority' => 7, 'default' => '#4c4c4c', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section2_button_colors_toggle' => array( 'name' => 'canuck_section2_button_colors_toggle', 'title' => esc_html__( 'Show/Hide Button Colors', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to change link button colors.', 'canuck' ), 'section' => 'home_section_2', 'priority' => 8, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section2_button_background_color' => array( 'name' => 'canuck_section2_button_background_color', 'title' => esc_html__( 'Section 2-Button Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a background color for the button.', 'canuck' ), 'section' => 'home_section_2', 'priority' => 9, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section2_button_text_color' => array( 'name' => 'canuck_section2_button_text_color', 'title' => esc_html__( 'Section 2-Button Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a text color for the button.', 'canuck' ), 'section' => 'home_section_2', 'priority' => 10, 'default' => $button_hover_default, 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section2_button_hover_background_color' => array( 'name' => 'canuck_section2_button_hover_background_color', 'title' => esc_html__( 'Section 2-Button Hover Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'The button changes to this color when a mouse pointer hovers over it.', 'canuck' ), 'section' => 'home_section_2', 'priority' => 11, 'default' => $button_hover_default, 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section2_button_hover_text_color' => array( 'name' => 'canuck_section2_button_hover_text_color', 'title' => esc_html__( 'Section 2-Button Hover Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'The button text changes to this color when a mouse pointer hovers over it.', 'canuck' ), 'section' => 'home_section_2', 'priority' => 12, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), // Service box 1. 'canuck_section2_box1_toggle' => array( 'name' => 'canuck_section2_box1_toggle', 'title' => esc_html__( 'Show/Hide Box 1 Options', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to edit box 1 options.', 'canuck' ), 'section' => 'home_section_2', 'priority' => 13, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section2_box1_use_font_icon' => array( 'name' => 'canuck_section2_box1_use_font_icon', 'title' => esc_html__( 'Section 2-Box 1-Font Icon', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Use font icon instead of image', 'canuck' ), 'section' => 'home_section_2', 'priority' => 14, 'default' => false, // 0 for off 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section2_box1_image_font' => array( 'name' => 'canuck_section2_box1_image_font', 'title' => esc_html__( 'Section 2-Box 1-Font Icon Code', 'canuck' ), 'option_type' => 'fa', 'choices' => canuck_fontawesome(), 'description' => esc_html__( 'Select a Font Awesome icon.', 'canuck' ), 'section' => 'home_section_2', 'priority' => 15, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section2_box1_image' => array( 'name' => 'canuck_section2_box1_image', 'title' => esc_html__( 'Section 2-Box 1-Image', 'canuck' ), 'option_type' => 'image', 'description' => esc_html__( 'upload and use an image, 300px wide x 200px high recommended', 'canuck' ), 'section' => 'home_section_2', 'priority' => 16, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section2_box1_title' => array( 'name' => 'canuck_section2_box1_title', 'title' => esc_html__( 'Section 2-Box 1-Title', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'no html', 'canuck' ), 'section' => 'home_section_2', 'priority' => 17, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section2_box1_text' => array( 'name' => 'canuck_section2_box1_text', 'title' => esc_html__( 'Section 2-Box 1-Content', 'canuck' ), 'option_type' => 'textarea', 'description' => esc_html__( 'html allowed', 'canuck' ), 'section' => 'home_section_2', 'priority' => 18, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section2_box1_include_link' => array( 'name' => 'canuck_section2_box1_include_link', 'title' => esc_html__( 'Section 2-Box 1-Link', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to use a link', 'canuck' ), 'section' => 'home_section_2', 'priority' => 19, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section2_box1_button_link' => array( 'name' => 'canuck_section2_box1_button_link', 'title' => esc_html__( 'Section 2-Box 1-Link URL', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'Format:http://your.website.url/page/', 'canuck' ), 'section' => 'home_section_2', 'priority' => 20, 'default' => '#', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section2_box1_button_title' => array( 'name' => 'canuck_section2_box1_button_title', 'title' => esc_html__( 'Section 2-Box 1-Link Label', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'html allowed, use single quotes for classes. Note: Leave this blank to use image or icon as the link.', 'canuck' ) . ' ' . esc_html__( 'Default : ', 'canuck' ) . "<i class='fa fa-link'></i> more ", 'section' => 'home_section_2', 'priority' => 21, 'default' => " " . esc_html__( 'more', 'canuck' ), 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), // Service box 2. 'canuck_section2_box2_toggle' => array( 'name' => 'canuck_section2_box2_toggle', 'title' => esc_html__( 'Show/Hide Box 2 Options', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to edit box 2 options.', 'canuck' ), 'section' => 'home_section_2', 'priority' => 22, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section2_box2_use_font_icon' => array( 'name' => 'canuck_section2_box2_use_font_icon', 'title' => esc_html__( 'Section 2-Box 2-Font Icon', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Use font icon instead of image', 'canuck' ), 'section' => 'home_section_2', 'priority' => 23, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section2_box2_image_font' => array( 'name' => 'canuck_section2_box2_image_font', 'title' => esc_html__( 'Section 2-Box 2-Font Icon Code', 'canuck' ), 'option_type' => 'fa', 'choices' => canuck_fontawesome(), 'description' => esc_html__( 'Select a Font Awesome icon.', 'canuck' ), 'section' => 'home_section_2', 'priority' => 24, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section2_box2_image' => array( 'name' => 'canuck_section2_box2_image', 'title' => esc_html__( 'Section 2-Box 2-Image', 'canuck' ), 'option_type' => 'image', 'description' => esc_html__( 'upload and use an image, 300px wide x 200px high recommended', 'canuck' ), 'section' => 'home_section_2', 'priority' => 25, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section2_box2_title' => array( 'name' => 'canuck_section2_box2_title', 'title' => esc_html__( 'Section 2-Box 2-Title', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'no html', 'canuck' ), 'section' => 'home_section_2', 'priority' => 26, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section2_box2_text' => array( 'name' => 'canuck_section2_box2_text', 'title' => esc_html__( 'Section 2-Box 2-Content', 'canuck' ), 'option_type' => 'textarea', 'description' => esc_html__( 'html allowed', 'canuck' ), 'section' => 'home_section_2', 'priority' => 27, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section2_box2_include_link' => array( 'name' => 'canuck_section2_box2_include_link', 'title' => esc_html__( 'Section 2-Box 2-Link', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'check to use a link', 'canuck' ), 'section' => 'home_section_2', 'priority' => 28, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section2_box2_button_link' => array( 'name' => 'canuck_section2_box2_button_link', 'title' => esc_html__( 'Section 2-Box 2-Link URL', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'Format:http://your.website.url/page/', 'canuck' ), 'section' => 'home_section_2', 'priority' => 29, 'default' => '#', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section2_box2_button_title' => array( 'name' => 'canuck_section2_box2_button_title', 'title' => esc_html__( 'Section 2-Box 2-Link Label', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'html allowed, use single quotes for classes. Note: Leave this blank to use image or icon as the link.', 'canuck' ) . ' ' . esc_html__( 'Default : ', 'canuck' ) . "<i class='fa fa-link'></i> more ", 'section' => 'home_section_2', 'priority' => 30, 'default' => " " . esc_html__( 'more', 'canuck' ), 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), // Service box 3. 'canuck_section2_box3_toggle' => array( 'name' => 'canuck_section2_box3_toggle', 'title' => esc_html__( 'Show/Hide Box 3 Options', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to edit box 3 options.', 'canuck' ), 'section' => 'home_section_2', 'priority' => 31, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section2_box3_use_font_icon' => array( 'name' => 'canuck_section2_box3_use_font_icon', 'title' => esc_html__( 'Section 2-Box 3-Font Icon', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Use font icon instead of image', 'canuck' ), 'section' => 'home_section_2', 'priority' => 32, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section2_box3_image_font' => array( 'name' => 'canuck_section2_box3_image_font', 'title' => esc_html__( 'Section 2-Box 3-Font Icon Code', 'canuck' ), 'option_type' => 'fa', 'choices' => canuck_fontawesome(), 'description' => esc_html__( 'Select a Font Awesome icon.', 'canuck' ), 'section' => 'home_section_2', 'priority' => 33, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section2_box3_image' => array( 'name' => 'canuck_section2_box3_image', 'title' => esc_html__( 'Section 2-Box 3-Image', 'canuck' ), 'option_type' => 'image', 'description' => esc_html__( 'upload and use an image, 300px wide x 200px high recommended', 'canuck' ), 'section' => 'home_section_2', 'priority' => 34, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section2_box3_title' => array( 'name' => 'canuck_section2_box3_title', 'title' => esc_html__( 'Section 2-Box 3-Title', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'no html', 'canuck' ), 'section' => 'home_section_2', 'priority' => 35, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section2_box3_text' => array( 'name' => 'canuck_section2_box3_text', 'title' => esc_html__( 'Section 2-Box 3-Content', 'canuck' ), 'option_type' => 'textarea', 'description' => esc_html__( 'html allowed', 'canuck' ), 'section' => 'home_section_2', 'priority' => 36, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section2_box3_include_link' => array( 'name' => 'canuck_section2_box3_include_link', 'title' => esc_html__( 'Section 2-Box 3-Link', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'check to use a link', 'canuck' ), 'section' => 'home_section_2', 'priority' => 37, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section2_box3_button_link' => array( 'name' => 'canuck_section2_box3_button_link', 'title' => esc_html__( 'Section 2-Box 3-Link URL', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'Format:http://your.website.url/page/', 'canuck' ), 'section' => 'home_section_2', 'priority' => 38, 'default' => '#', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section2_box3_button_title' => array( 'name' => 'canuck_section2_box3_button_title', 'title' => esc_html__( 'Section 2-Box 3-Link Label', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'html allowed, use single quotes for classes. Note: Leave this blank to use image or icon as the link.', 'canuck' ) . ' ' . esc_html__( 'Default : ', 'canuck' ) . "<i class='fa fa-link'></i> more ", 'section' => 'home_section_2', 'priority' => 39, 'default' => " " . esc_html__( 'more', 'canuck' ), 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), // Panel:canuck_home Section:home_section_3 ********************************************. 'canuck_section3_usage' => array( 'name' => 'canuck_section3_usage', 'title' => esc_html__( 'Section 3-Usage Options', 'canuck' ), 'option_type' => 'select', 'choices' => array( 'normal' => 'normal', 'shortcode' => 'shortcode', 'widgetized' => 'widgetized', ), 'description' => esc_html__( 'Normal - widget and shortcode input box are not used.', 'canuck' ) . '
' . esc_html__( 'Widgetized - Drag your widget over to "Home Page Section 3" under "Appearance->Widgets".', 'canuck' ) . ' ' . esc_html__( 'Shortcode - Enter the shortcode you want to use in the shortcode text area box.', 'canuck' ), 'section' => 'home_section_3', 'priority' => 1, 'default' => 'normal', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_useage', ), 'canuck_section3_background_option_toggle' => array( 'name' => 'canuck_section3_background_option_toggle', 'title' => esc_html__( 'Show/Hide Background Options', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check show background options.', 'canuck' ), 'section' => 'home_section_3', 'priority' => 2, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section3_background_image' => array( 'name' => 'canuck_section3_background_image', 'title' => esc_html__( 'Section 3-Background Image', 'canuck' ), 'option_type' => 'image', 'description' => esc_html__( 'Upload and use a background image.', 'canuck' ), 'section' => 'home_section_3', 'priority' => 3, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section3_overlay_opacity' => array( 'name' => 'canuck_section3_overlay_opacity', 'title' => esc_html__( 'Section 3-Overlay Opacity', 'canuck' ), 'option_type' => 'range', 'choices' => canuck_opacity_range_choices(), 'description' => esc_html__( 'This option allows you to place a dark shadow over the background image.', 'canuck' ), 'section' => 'home_section_3', 'priority' => 4, 'default' => 0, 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section3_use_parallax' => array( 'name' => 'canuck_section3_use_parallax', 'title' => esc_html__( 'Section 3-Use Parallax', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to use parallax effect for the image.', 'canuck' ), 'section' => 'home_section_3', 'priority' => 5, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section3_background_color' => array( 'name' => 'canuck_section3_background_color', 'title' => esc_html__( 'Section 3-Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a background color. Note this will not be used if a background image is set up.', 'canuck' ), 'section' => 'home_section_3', 'priority' => 6, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section3_background_color_opacity' => array( 'name' => 'canuck_section3_background_color_opacity', 'title' => esc_html__( 'Section 3-Background Color Opacity', 'canuck' ), 'option_type' => 'range', 'choices' => canuck_opacity_range_choices(), 'description' => esc_html__( 'This option allows you to set the opacity of the background color.', 'canuck' ), 'section' => 'home_section_3', 'priority' => 7, 'default' => 1, 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section3_text_color' => array( 'name' => 'canuck_section3_text_color', 'title' => esc_html__( 'Section 3-Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a text color', 'canuck' ), 'section' => 'home_section_3', 'priority' => 8, 'default' => '#4c4c4c', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section3_text' => array( 'name' => 'canuck_section3_text', 'title' => esc_html__( 'Section 3-Content', 'canuck' ), 'option_type' => 'textarea', 'description' => esc_html__( 'html allowed', 'canuck' ), 'section' => 'home_section_3', 'priority' => 9, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section3_shortcode' => array( 'name' => 'canuck_section3_shortcode', 'title' => esc_html__( 'Section 3-Shortcode', 'canuck' ), 'option_type' => 'textarea', 'description' => esc_html__( 'Add your shortcode here if using shortcode as a Useage Option.', 'canuck' ), 'section' => 'home_section_3', 'priority' => 10, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_include_section3_button' => array( 'name' => 'canuck_include_section3_button', 'title' => esc_html__( 'Section 3-Link', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to use a link, then use the options below.', 'canuck' ), 'section' => 'home_section_3', 'priority' => 11, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section3_button_name' => array( 'name' => 'canuck_section3_button_name', 'title' => esc_html__( 'Section 3-Button Label', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'html allowed, note use single quotes for classes.', 'canuck' ), 'section' => 'home_section_3', 'priority' => 12, 'default' => " " . esc_html__( 'more', 'canuck' ), 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section3_button_link' => array( 'name' => 'canuck_section3_button_link', 'title' => esc_html__( 'Section 3-Button URI', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'Format:http://your.website.url/contact/', 'canuck' ), 'section' => 'home_section_3', 'priority' => 13, 'default' => '#', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section3_button_background_color' => array( 'name' => 'canuck_section3_button_background_color', 'title' => esc_html__( 'Section 3-Button Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a background color for the button.', 'canuck' ), 'section' => 'home_section_3', 'priority' => 14, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section3_button_text_color' => array( 'name' => 'canuck_section3_button_text_color', 'title' => esc_html__( 'Section 3-Button Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a color for button text.', 'canuck' ), 'section' => 'home_section_3', 'priority' => 15, 'default' => $button_hover_default, 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section3_button_hover_background_color' => array( 'name' => 'canuck_section3_button_hover_background_color', 'title' => esc_html__( 'Section 3-Button Hover Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'The button changes to this color when a mouse pointer hovers over it.', 'canuck' ), 'section' => 'home_section_3', 'priority' => 16, 'default' => $button_hover_default, 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section3_button_hover_text_color' => array( 'name' => 'canuck_section3_button_hover_text_color', 'title' => esc_html__( 'Section 3-Button Hover Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'The button text changes to this color when a mouse pointer hovers over it.', 'canuck' ), 'section' => 'home_section_3', 'priority' => 17, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), // Panel:canuck_home Section:home_section_4 ===============================================. 'canuck_section4_background_option_toggle' => array( 'name' => 'canuck_section4_background_option_toggle', 'title' => esc_html__( 'Show/Hide Background Options', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check show background options.', 'canuck' ), 'section' => 'home_section_4', 'priority' => 1, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section4_background_image' => array( 'name' => 'canuck_section4_background_image', 'title' => esc_html__( 'Section 4-Background Image', 'canuck' ), 'option_type' => 'image', 'description' => esc_html__( 'Upload and use a background image.', 'canuck' ), 'section' => 'home_section_4', 'priority' => 2, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section4_overlay_opacity' => array( 'name' => 'canuck_section4_overlay_opacity', 'title' => esc_html__( 'Section 4-Overlay Opacity', 'canuck' ), 'option_type' => 'range', 'choices' => canuck_opacity_range_choices(), 'description' => esc_html__( 'This option allows you to place a dark shadow over the background image.', 'canuck' ), 'section' => 'home_section_4', 'priority' => 3, 'default' => 3, 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section4_use_parallax' => array( 'name' => 'canuck_section4_use_parallax', 'title' => esc_html__( 'Section 4-Use Parallax', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to use parallax effect for the image.', 'canuck' ), 'section' => 'home_section_4', 'priority' => 4, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section4_background_color' => array( 'name' => 'canuck_section4_background_color', 'title' => esc_html__( 'Section 4-Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a background color. Note this will not be used if a background image is set up.', 'canuck' ), 'section' => 'home_section_4', 'priority' => 5, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section4_background_color_opacity' => array( 'name' => 'canuck_section4_background_color_opacity', 'title' => esc_html__( 'Section 4-Background Color Opacity', 'canuck' ), 'option_type' => 'range', 'choices' => canuck_opacity_range_choices(), 'description' => esc_html__( 'This option allows you to set the opacity of the background color.', 'canuck' ), 'section' => 'home_section_4', 'priority' => 6, 'default' => 1, 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section4_text_color' => array( 'name' => 'canuck_section4_text_color', 'title' => esc_html__( 'Section 4-Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a text color', 'canuck' ), 'section' => 'home_section_4', 'priority' => 7, 'default' => '#4c4c4c', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section4_button_colors_toggle' => array( 'name' => 'canuck_section4_button_colors_toggle', 'title' => esc_html__( 'Show/Hide Button Colors', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to edit link button colors.', 'canuck' ), 'section' => 'home_section_4', 'priority' => 8, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section4_button_background_color' => array( 'name' => 'canuck_section4_button_background_color', 'title' => esc_html__( 'Section 4-Button Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a background color for the button.', 'canuck' ), 'section' => 'home_section_4', 'priority' => 8, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section4_button_text_color' => array( 'name' => 'canuck_section4_button_text_color', 'title' => esc_html__( 'Section 4-Button Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a text color for the button.', 'canuck' ), 'section' => 'home_section_4', 'priority' => 10, 'default' => $button_hover_default, 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section4_button_hover_background_color' => array( 'name' => 'canuck_section4_button_hover_background_color', 'title' => esc_html__( 'Section 4-Button Hover Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'The button changes to this color when a mouse pointer hovers over it.', 'canuck' ), 'section' => 'home_section_4', 'priority' => 11, 'default' => $button_hover_default, 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section4_button_hover_text_color' => array( 'name' => 'canuck_section4_button_hover_text_color', 'title' => esc_html__( 'Section 4-Button Hover Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'The button text changes to this color when a mouse pointer hovers over it.', 'canuck' ), 'section' => 'home_section_4', 'priority' => 12, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), // Service Box 1. 'canuck_section4_box1_toggle' => array( 'name' => 'canuck_section4_box1_toggle', 'title' => esc_html__( 'Show/Hide Box 1 Options', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to edit box 1 options.', 'canuck' ), 'section' => 'home_section_4', 'priority' => 13, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section4_box1_use_font_icon' => array( 'name' => 'canuck_section4_box1_use_font_icon', 'title' => esc_html__( 'Section 4-Box 1-Font Icon', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Use font icon instead of image', 'canuck' ), 'section' => 'home_section_4', 'priority' => 14, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section4_box1_image_font' => array( 'name' => 'canuck_section4_box1_image_font', 'title' => esc_html__( 'Section 4-Box 1-Font Icon Code', 'canuck' ), 'option_type' => 'fa', 'choices' => canuck_fontawesome(), 'description' => esc_html__( 'Select a Font Awesome icon.', 'canuck' ), 'section' => 'home_section_4', 'priority' => 15, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section4_box1_image' => array( 'name' => 'canuck_section4_box1_image', 'title' => esc_html__( 'Section 4-Box 1-Image', 'canuck' ), 'option_type' => 'image', 'description' => esc_html__( 'upload and use an image, 400px wide x 267px high recommended', 'canuck' ), 'section' => 'home_section_4', 'priority' => 16, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section4_box1_title' => array( 'name' => 'canuck_section4_box1_title', 'title' => esc_html__( 'Section 4-Box 1-Title', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'no html', 'canuck' ), 'section' => 'home_section_4', 'priority' => 17, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section4_box1_text' => array( 'name' => 'canuck_section4_box1_text', 'title' => esc_html__( 'Section 4-Box 1-Content', 'canuck' ), 'option_type' => 'textarea', 'description' => esc_html__( 'html allowed', 'canuck' ), 'section' => 'home_section_4', 'priority' => 18, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section4_box1_include_link' => array( 'name' => 'canuck_section4_box1_include_link', 'title' => esc_html__( 'Section 4-Box 1-Link', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'check to use a link', 'canuck' ), 'section' => 'home_section_4', 'priority' => 19, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section4_box1_button_link' => array( 'name' => 'canuck_section4_box1_button_link', 'title' => esc_html__( 'Section 4-Box 1-Link URL', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'Format:http://your.website.url/page/', 'canuck' ), 'section' => 'home_section_4', 'priority' => 20, 'default' => '#', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section4_box1_button_title' => array( 'name' => 'canuck_section4_box1_button_title', 'title' => esc_html__( 'Section 4-Box 1-Link Label', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'html allowed, use single quotes for classes. Note: Leave this blank to use image or icon as the link.', 'canuck' ) . ' ' . esc_html__( 'Default : ', 'canuck' ) . "<i class='fa fa-link'></i> more ", 'section' => 'home_section_4', 'priority' => 21, 'default' => " " . esc_html__( 'more', 'canuck' ), 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), // Service Box 2. 'canuck_section4_box2_toggle' => array( 'name' => 'canuck_section4_box2_toggle', 'title' => esc_html__( 'Show/Hide Box 2 Options', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to edit box 2 options.', 'canuck' ), 'section' => 'home_section_4', 'priority' => 22, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section4_box2_use_font_icon' => array( 'name' => 'canuck_section4_box2_use_font_icon', 'title' => esc_html__( 'Section 4-Box 2-Font Icon', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Use font icon instead of image', 'canuck' ), 'section' => 'home_section_4', 'priority' => 23, 'default' => false, // 0 for off 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section4_box2_image_font' => array( 'name' => 'canuck_section4_box2_image_font', 'title' => esc_html__( 'Section 4-Box 2-Font Icon Code', 'canuck' ), 'option_type' => 'fa', 'choices' => canuck_fontawesome(), 'description' => esc_html__( 'Select a Font Awesome icon.', 'canuck' ), 'section' => 'home_section_4', 'priority' => 24, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section4_box2_image' => array( 'name' => 'canuck_section4_box2_image', 'title' => esc_html__( 'Section 4-Box 2-Image', 'canuck' ), 'option_type' => 'image', 'description' => esc_html__( 'upload and use an image, 400px wide x 267px high recommended', 'canuck' ), 'section' => 'home_section_4', 'priority' => 25, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section4_box2_title' => array( 'name' => 'canuck_section4_box2_title', 'title' => esc_html__( 'Section 4-Box 2-Title', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'no html', 'canuck' ), 'section' => 'home_section_4', 'priority' => 26, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section4_box2_text' => array( 'name' => 'canuck_section4_box2_text', 'title' => esc_html__( 'Section 4-Box 2-Content', 'canuck' ), 'option_type' => 'textarea', 'description' => esc_html__( 'html allowed', 'canuck' ), 'section' => 'home_section_4', 'priority' => 27, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section4_box2_include_link' => array( 'name' => 'canuck_section4_box2_include_link', 'title' => esc_html__( 'Section 4-Box 2-Link', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'check to use a link', 'canuck' ), 'section' => 'home_section_4', 'priority' => 28, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section4_box2_button_link' => array( 'name' => 'canuck_section4_box2_button_link', 'title' => esc_html__( 'Section 4-Box 2-Link URL', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'Format:http://your.website.url/page/', 'canuck' ), 'section' => 'home_section_4', 'priority' => 29, 'default' => '#', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section4_box2_button_title' => array( 'name' => 'canuck_section4_box2_button_title', 'title' => esc_html__( 'Section 4-Box 2-Link Label', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'html allowed, use single quotes for classes. Note: Leave this blank to use image or icon as the link.', 'canuck' ) . ' ' . esc_html__( 'Default : ', 'canuck' ) . "<i class='fa fa-link'></i> more ", 'section' => 'home_section_4', 'priority' => 30, 'default' => " " . esc_html__( 'more', 'canuck' ), 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), // Panel:canuck_home Section:home_section_5. 'canuck_section5_usage' => array( 'name' => 'canuck_section5_usage', 'title' => esc_html__( 'Section 5-Usage Options', 'canuck' ), 'option_type' => 'select', 'choices' => array( 'normal' => 'normal', 'shortcode' => 'shortcode', 'widgetized' => 'widgetized', ), 'description' => esc_html__( 'Normal - widget and shortcode input box are not used.', 'canuck' ) . '
' . esc_html__( 'Widgetized - Drag your widget over to "Home Page Section 5" under "Appearance->Widgets".', 'canuck' ) . ' ' . esc_html__( 'Shortcode - Enter the shortcode you want to use in the shortcode text area box.', 'canuck' ), 'section' => 'home_section_5', 'priority' => 1, 'default' => 'normal', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_useage', ), 'canuck_section5_background_option_toggle' => array( 'name' => 'canuck_section5_background_option_toggle', 'title' => esc_html__( 'Show/Hide Background Options', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check show background options.', 'canuck' ), 'section' => 'home_section_5', 'priority' => 2, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section5_background_image' => array( 'name' => 'canuck_section5_background_image', 'title' => esc_html__( 'Section 5-Background Image', 'canuck' ), 'option_type' => 'image', 'description' => esc_html__( 'Upload and use a background image', 'canuck' ), 'section' => 'home_section_5', 'priority' => 3, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section5_overlay_opacity' => array( 'name' => 'canuck_section5_overlay_opacity', 'title' => esc_html__( 'Section 5-Overlay Opacity', 'canuck' ), 'option_type' => 'range', 'choices' => canuck_opacity_range_choices(), 'description' => esc_html__( 'This option allows you to place a dark shadow over the background image.', 'canuck' ), 'section' => 'home_section_5', 'priority' => 4, 'default' => 0, 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section5_use_parallax' => array( 'name' => 'canuck_section5_use_parallax', 'title' => esc_html__( 'Section 5-Use Parallax', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to use parallax effect for the image.', 'canuck' ), 'section' => 'home_section_5', 'priority' => 5, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section5_background_color' => array( 'name' => 'canuck_section5_background_color', 'title' => esc_html__( 'Section 5-Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a background color. Note this will not be used if a background image is set up.', 'canuck' ), 'section' => 'home_section_5', 'priority' => 6, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section5_background_color_opacity' => array( 'name' => 'canuck_section5_background_color_opacity', 'title' => esc_html__( 'Section 5-Background Color Opacity', 'canuck' ), 'option_type' => 'range', 'choices' => canuck_opacity_range_choices(), 'description' => esc_html__( 'This option allows you to set the opacity of the background color.', 'canuck' ), 'section' => 'home_section_5', 'priority' => 7, 'default' => 1, 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section5_text_color' => array( 'name' => 'canuck_section5_text_color', 'title' => esc_html__( 'Section 5-Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a text color', 'canuck' ), 'section' => 'home_section_5', 'priority' => 8, 'default' => '#4c4c4c', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section5_text' => array( 'name' => 'canuck_section5_text', 'title' => esc_html__( 'Section 5-Content', 'canuck' ), 'option_type' => 'textarea', 'description' => esc_html__( 'html allowed', 'canuck' ), 'section' => 'home_section_5', 'priority' => 9, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section5_shortcode' => array( 'name' => 'canuck_section5_shortcode', 'title' => esc_html__( 'Section 5-Shortcode', 'canuck' ), 'option_type' => 'textarea', 'description' => esc_html__( 'Add your shortcode here if using shortcode as a Useage Option.', 'canuck' ), 'section' => 'home_section_5', 'priority' => 10, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_include_section5_button' => array( 'name' => 'canuck_include_section5_button', 'title' => esc_html__( 'Section 5-Link', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to use a link, then use the options below.', 'canuck' ), 'section' => 'home_section_5', 'priority' => 11, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section5_button_name' => array( 'name' => 'canuck_section5_button_name', 'title' => esc_html__( 'Section 5-Button Label', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'html allowed, note use single quotes for classes.', 'canuck' ), 'section' => 'home_section_5', 'priority' => 12, 'default' => " " . esc_html__( 'more', 'canuck' ), 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section5_button_link' => array( 'name' => 'canuck_section5_button_link', 'title' => esc_html__( 'Section 5-Button URI', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'Format:http://your.website.url/contact/', 'canuck' ), 'section' => 'home_section_5', 'priority' => 13, 'default' => '#', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section5_button_background_color' => array( 'name' => 'canuck_section5_button_background_color', 'title' => esc_html__( 'Section 5-Button Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a background color for the button.', 'canuck' ), 'section' => 'home_section_5', 'priority' => 14, 'default' => '#fffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section5_button_text_color' => array( 'name' => 'canuck_section5_button_text_color', 'title' => esc_html__( 'Section 5-Button Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a color for button text.', 'canuck' ), 'section' => 'home_section_5', 'priority' => 15, 'default' => $button_hover_default, 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section5_button_hover_background_color' => array( 'name' => 'canuck_section5_button_hover_background_color', 'title' => esc_html__( 'Section 5-Button Hover Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'The button changes to this color when a mouse pointer hovers over it.', 'canuck' ), 'section' => 'home_section_5', 'priority' => 16, 'default' => $button_hover_default, 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section5_button_hover_text_color' => array( 'name' => 'canuck_section5_button_hover_text_color', 'title' => esc_html__( 'Section 5-Button Hover Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'The button text changes to this color when a mouse pointer hovers over it.', 'canuck' ), 'section' => 'home_section_5', 'priority' => 17, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), // Panel:canuck_home Section:home_section_6 =======================================. 'canuck_section6_background_option_toggle' => array( 'name' => 'canuck_section6_background_option_toggle', 'title' => esc_html__( 'Show/Hide Background Options', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check show background options.', 'canuck' ), 'section' => 'home_section_6', 'priority' => 1, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section6_background_image' => array( 'name' => 'canuck_section6_background_image', 'title' => esc_html__( 'Section 6-Background Image', 'canuck' ), 'option_type' => 'image', 'description' => esc_html__( 'Upload and use a background image.', 'canuck' ), 'section' => 'home_section_6', 'priority' => 2, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section6_overlay_opacity' => array( 'name' => 'canuck_section6_overlay_opacity', 'title' => esc_html__( 'Section 6-Overlay Opacity', 'canuck' ), 'option_type' => 'range', 'choices' => canuck_opacity_range_choices(), 'description' => esc_html__( 'This option allows you to place a dark shadow over the background image.', 'canuck' ), 'section' => 'home_section_6', 'priority' => 3, 'default' => 0, 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section6_use_parallax' => array( 'name' => 'canuck_section6_use_parallax', 'title' => esc_html__( 'Section 6-Use Parallax', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to use parallax effect for the image.', 'canuck' ), 'section' => 'home_section_6', 'priority' => 4, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section6_background_color' => array( 'name' => 'canuck_section6_background_color', 'title' => esc_html__( 'Section 6-Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a background color. Note this will not be used if a background image is set up.', 'canuck' ), 'section' => 'home_section_6', 'priority' => 5, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section6_background_color_opacity' => array( 'name' => 'canuck_section6_background_color_opacity', 'title' => esc_html__( 'Section 6-Background Color Opacity', 'canuck' ), 'option_type' => 'range', 'choices' => canuck_opacity_range_choices(), 'description' => esc_html__( 'This option allows you to set the opacity of the background color.', 'canuck' ), 'section' => 'home_section_6', 'priority' => 6, 'default' => 1, 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section6_text_color' => array( 'name' => 'canuck_section6_text_color', 'title' => esc_html__( 'Section 6-Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a text color', 'canuck' ), 'section' => 'home_section_6', 'priority' => 7, 'default' => '#4c4c4c', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section6_button_colors_toggle' => array( 'name' => 'canuck_section6_button_colors_toggle', 'title' => esc_html__( 'Show/Hide Button Colors', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to edit link button colors.', 'canuck' ), 'section' => 'home_section_6', 'priority' => 8, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section6_button_background_color' => array( 'name' => 'canuck_section6_button_background_color', 'title' => esc_html__( 'Section 6-Button Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a background color for the button.', 'canuck' ), 'section' => 'home_section_6', 'priority' => 9, 'default' => '#fffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section6_button_text_color' => array( 'name' => 'canuck_section6_button_text_color', 'title' => esc_html__( 'Section 6-Button Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a text color for the button.', 'canuck' ), 'section' => 'home_section_6', 'priority' => 10, 'default' => $button_hover_default, 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section6_button_hover_background_color' => array( 'name' => 'canuck_section6_button_hover_background_color', 'title' => esc_html__( 'Section 6-Button Hover Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'The button changes to this color when a mouse pointer hovers over it.', 'canuck' ), 'section' => 'home_section_6', 'priority' => 11, 'default' => $button_hover_default, 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section6_button_hover_text_color' => array( 'name' => 'canuck_section6_button_hover_text_color', 'title' => esc_html__( 'Section 6-Button Hover Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'The button text changes to this color when a mouse pointer hovers over it.', 'canuck' ), 'section' => 'home_section_6', 'priority' => 12, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), // Service Box 1. 'canuck_section6_box1_toggle' => array( 'name' => 'canuck_section6_box1_toggle', 'title' => esc_html__( 'Show/Hide Box 1 Options', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to edit box 1 options.', 'canuck' ), 'section' => 'home_section_6', 'priority' => 13, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section6_box1_use_font_icon' => array( 'name' => 'canuck_section6_box1_use_font_icon', 'title' => esc_html__( 'Section 6-Box 1-Font Icon', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Use font icon instead of image', 'canuck' ), 'section' => 'home_section_6', 'priority' => 14, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section6_box1_image_font' => array( 'name' => 'canuck_section6_box1_image_font', 'title' => esc_html__( 'Section 6-Box 1-Font Icon Code', 'canuck' ), 'option_type' => 'fa', 'choices' => canuck_fontawesome(), 'description' => esc_html__( 'Select a Font Awesome icon.', 'canuck' ), 'section' => 'home_section_6', 'priority' => 15, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section6_box1_image' => array( 'name' => 'canuck_section6_box1_image', 'title' => esc_html__( 'Section 6-Box 1-Image', 'canuck' ), 'option_type' => 'image', 'description' => esc_html__( 'upload and use an image, 400px wide x 267px high recommended', 'canuck' ), 'section' => 'home_section_6', 'priority' => 16, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section6_box1_title' => array( 'name' => 'canuck_section6_box1_title', 'title' => esc_html__( 'Section 6-Box 1-Title', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'no html', 'canuck' ), 'section' => 'home_section_6', 'priority' => 17, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section6_box1_text' => array( 'name' => 'canuck_section6_box1_text', 'title' => esc_html__( 'Section 6-Box 1-Content', 'canuck' ), 'option_type' => 'textarea', 'description' => esc_html__( 'html allowed', 'canuck' ), 'section' => 'home_section_6', 'priority' => 18, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section6_box1_include_link' => array( 'name' => 'canuck_section6_box1_include_link', 'title' => esc_html__( 'Section 6-Box 1-Link', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'check to use a link', 'canuck' ), 'section' => 'home_section_6', 'priority' => 19, 'default' => false, // 0 for off 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section6_box1_button_link' => array( 'name' => 'canuck_section6_box1_button_link', 'title' => esc_html__( 'Section 6-Box 1-Link URL', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'Format:http://your.website.url/page/', 'canuck' ), 'section' => 'home_section_6', 'priority' => 20, 'default' => '#', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section6_box1_button_title' => array( 'name' => 'canuck_section6_box1_button_title', 'title' => esc_html__( 'Section 6-Box 1-Link Label', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'html allowed, use single quotes for classes. Note: Leave this blank to use image or icon as the link.', 'canuck' ) . ' ' . esc_html__( 'Default : ', 'canuck' ) . "<i class='fa fa-link'></i> more ", 'section' => 'home_section_6', 'priority' => 21, 'default' => " " . esc_html__( 'more', 'canuck' ), 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), // Service Box 2. 'canuck_section6_box2_toggle' => array( 'name' => 'canuck_section6_box2_toggle', 'title' => esc_html__( 'Show/Hide Box 2 Options', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to edit box 2 options.', 'canuck' ), 'section' => 'home_section_6', 'priority' => 22, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section6_box2_use_font_icon' => array( 'name' => 'canuck_section6_box2_use_font_icon', 'title' => esc_html__( 'Section 6-Box 2-Font Icon', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Use font icon instead of image', 'canuck' ), 'section' => 'home_section_6', 'priority' => 23, 'default' => false, // 0 for off 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section6_box2_image_font' => array( 'name' => 'canuck_section6_box2_image_font', 'title' => esc_html__( 'Section 6-Box 2-Font Icon Code', 'canuck' ), 'option_type' => 'fa', 'choices' => canuck_fontawesome(), 'description' => esc_html__( 'Select a Font Awesome icon.', 'canuck' ), 'section' => 'home_section_6', 'priority' => 24, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section6_box2_image' => array( 'name' => 'canuck_section6_box2_image', 'title' => esc_html__( 'Section 6-Box 2-Image', 'canuck' ), 'option_type' => 'image', 'description' => esc_html__( 'upload and use an image, 400px wide x 267px high recommended', 'canuck' ), 'section' => 'home_section_6', 'priority' => 25, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section6_box2_title' => array( 'name' => 'canuck_section6_box2_title', 'title' => esc_html__( 'Section 6-Box 2-Title', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'no html', 'canuck' ), 'section' => 'home_section_6', 'priority' => 26, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section6_box2_text' => array( 'name' => 'canuck_section6_box2_text', 'title' => esc_html__( 'Section 6-Box 2-Content', 'canuck' ), 'option_type' => 'textarea', 'description' => esc_html__( 'html allowed', 'canuck' ), 'section' => 'home_section_6', 'priority' => 27, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section6_box2_include_link' => array( 'name' => 'canuck_section6_box2_include_link', 'title' => esc_html__( 'Section 6-Box 2-Link', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'check to use a link', 'canuck' ), 'section' => 'home_section_6', 'priority' => 28, 'default' => false, // 0 for off 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section6_box2_button_link' => array( 'name' => 'canuck_section6_box2_button_link', 'title' => esc_html__( 'Section 6-Box 2-Link URL', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'Format:http://your.website.url/page/', 'canuck' ), 'section' => 'home_section_6', 'priority' => 29, 'default' => '#', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section6_box2_button_title' => array( 'name' => 'canuck_section6_box2_button_title', 'title' => esc_html__( 'Section 6-Box 2-Link Label', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'html allowed, use single quotes for classes. Note: Leave this blank to use image or icon as the link.', 'canuck' ) . ' ' . esc_html__( 'Default : ', 'canuck' ) . "<i class='fa fa-link'></i> more ", 'section' => 'home_section_6', 'priority' => 30, 'default' => " " . esc_html__( 'more', 'canuck' ), 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), // Panel:canuck_home Section:home_section_7. 'canuck_section7_usage' => array( 'name' => 'canuck_section7_usage', 'title' => esc_html__( 'Section 7-Usage Options', 'canuck' ), 'option_type' => 'select', 'choices' => array( 'normal' => 'normal', 'shortcode' => 'shortcode', 'widgetized' => 'widgetized', ), 'description' => esc_html__( 'Normal - widget and shortcode input box are not used.', 'canuck' ) . '
' . esc_html__( 'Widgetized - Drag your widget over to "Home Page Section 7" under "Appearance->Widgets".', 'canuck' ) . ' ' . esc_html__( 'Shortcode - Enter the shortcode you want to use in the shortcode text area box.', 'canuck' ), 'section' => 'home_section_7', 'priority' => 1, 'default' => 'normal', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_useage', ), 'canuck_section7_background_option_toggle' => array( 'name' => 'canuck_section7_background_option_toggle', 'title' => esc_html__( 'Show/Hide Background Options', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check show background options.', 'canuck' ), 'section' => 'home_section_7', 'priority' => 2, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section7_background_image' => array( 'name' => 'canuck_section7_background_image', 'title' => esc_html__( 'Section 7-Background Image', 'canuck' ), 'option_type' => 'image', 'description' => esc_html__( 'Upload and use a background image', 'canuck' ), 'section' => 'home_section_7', 'priority' => 3, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section7_use_parallax' => array( 'name' => 'canuck_section7_use_parallax', 'title' => esc_html__( 'Section 7-Use Parallax', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to use parallax effect for the image.', 'canuck' ), 'section' => 'home_section_7', 'priority' => 4, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section7_overlay_opacity' => array( 'name' => 'canuck_section7_overlay_opacity', 'title' => esc_html__( 'Section 7-Overlay Opacity', 'canuck' ), 'option_type' => 'range', 'choices' => canuck_opacity_range_choices(), 'description' => esc_html__( 'This option allows you to place a dark shadow over the background image.', 'canuck' ), 'section' => 'home_section_7', 'priority' => 5, 'default' => 0, 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section7_background_color' => array( 'name' => 'canuck_section7_background_color', 'title' => esc_html__( 'Section 7-Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a background color. Note this will not be used if a background image is set up.', 'canuck' ), 'section' => 'home_section_7', 'priority' => 6, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section7_background_color_opacity' => array( 'name' => 'canuck_section7_background_color_opacity', 'title' => esc_html__( 'Section 7-Background Color Opacity', 'canuck' ), 'option_type' => 'range', 'choices' => canuck_opacity_range_choices(), 'description' => esc_html__( 'This option allows you to set the opacity of the background color.', 'canuck' ), 'section' => 'home_section_7', 'priority' => 7, 'default' => 1, 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section7_text_color' => array( 'name' => 'canuck_section7_text_color', 'title' => esc_html__( 'Section 7-Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a text color', 'canuck' ), 'section' => 'home_section_7', 'priority' => 8, 'default' => '#4c4c4c', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section7_text' => array( 'name' => 'canuck_section7_text', 'title' => esc_html__( 'Section 7-Content', 'canuck' ), 'option_type' => 'textarea', 'description' => esc_html__( 'html allowed', 'canuck' ), 'section' => 'home_section_7', 'priority' => 9, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section7_shortcode' => array( 'name' => 'canuck_section7_shortcode', 'title' => esc_html__( 'Section 7-Shortcode', 'canuck' ), 'option_type' => 'textarea', 'description' => esc_html__( 'Add your shortcode here if using shortcode as a Useage Option.', 'canuck' ), 'section' => 'home_section_7', 'priority' => 10, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_include_section7_button' => array( 'name' => 'canuck_include_section7_button', 'title' => esc_html__( 'Section 7-Link', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to use a link, then use the options below.', 'canuck' ), 'section' => 'home_section_7', 'priority' => 11, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section7_button_name' => array( 'name' => 'canuck_section7_button_name', 'title' => esc_html__( 'Section 7-Button Label', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'html allowed, note use single quotes for classes.', 'canuck' ), 'section' => 'home_section_7', 'priority' => 12, 'default' => " " . esc_html__( 'more', 'canuck' ), 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section7_button_link' => array( 'name' => 'canuck_section7_button_link', 'title' => esc_html__( 'Section 7-Button URI', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'Format:http://your.website.url/contact/', 'canuck' ), 'section' => 'home_section_7', 'priority' => 13, 'default' => '#', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section7_button_background_color' => array( 'name' => 'canuck_section7_button_background_color', 'title' => esc_html__( 'Section 7-Button Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a background color for the button.', 'canuck' ), 'section' => 'home_section_7', 'priority' => 14, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section7_button_text_color' => array( 'name' => 'canuck_section7_button_text_color', 'title' => esc_html__( 'Section 7-Button Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a color for button text.', 'canuck' ), 'section' => 'home_section_7', 'priority' => 15, 'default' => $button_hover_default, 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section7_button_hover_background_color' => array( 'name' => 'canuck_section7_button_hover_background_color', 'title' => esc_html__( 'Section 7-Button Hover Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'The button changes to this color when a mouse pointer hovers over it.', 'canuck' ), 'section' => 'home_section_7', 'priority' => 16, 'default' => $button_hover_default, 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section7_button_hover_text_color' => array( 'name' => 'canuck_section7_button_hover_text_color', 'title' => esc_html__( 'Section 7-Button Hover Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'The button text changes to this color when a mouse pointer hovers over it.', 'canuck' ), 'section' => 'home_section_7', 'priority' => 17, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), // Panel:canuck_home Section:home_section_8 ================================================. // General options for Section 8. 'canuck_section8_background_option_toggle' => array( 'name' => 'canuck_section8_background_option_toggle', 'title' => esc_html__( 'Show/Hide Background Options', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check show background options.', 'canuck' ), 'section' => 'home_section_8', 'priority' => 1, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section8_background_image' => array( 'name' => 'canuck_section8_background_image', 'title' => esc_html__( 'Section 8-Background Image', 'canuck' ), 'option_type' => 'image', 'description' => esc_html__( 'Upload and use a background image.', 'canuck' ), 'section' => 'home_section_8', 'priority' => 2, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section8_overlay_opacity' => array( 'name' => 'canuck_section8_overlay_opacity', 'title' => esc_html__( 'Section 8-Overlay Opacity', 'canuck' ), 'option_type' => 'range', 'choices' => canuck_opacity_range_choices(), 'description' => esc_html__( 'This option allows you to place a dark shadow over the background image.', 'canuck' ), 'section' => 'home_section_8', 'priority' => 3, 'default' => 0, 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section8_use_parallax' => array( 'name' => 'canuck_section8_use_parallax', 'title' => esc_html__( 'Section 8-Use Parallax', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to use parallax effect for the image.', 'canuck' ), 'section' => 'home_section_8', 'priority' => 4, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section8_background_color' => array( 'name' => 'canuck_section8_background_color', 'title' => esc_html__( 'Section 8-Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a background color. Note this will not be used if a background image is set up.', 'canuck' ), 'section' => 'home_section_8', 'priority' => 5, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section8_background_color_opacity' => array( 'name' => 'canuck_section8_background_color_opacity', 'title' => esc_html__( 'Section 8-Background Color Opacity', 'canuck' ), 'option_type' => 'range', 'choices' => canuck_opacity_range_choices(), 'description' => esc_html__( 'This option allows you to set the opacity of the background color.', 'canuck' ), 'section' => 'home_section_8', 'priority' => 6, 'default' => 1, 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section8_text_color' => array( 'name' => 'canuck_section8_text_color', 'title' => esc_html__( 'Section 8-Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a text color', 'canuck' ), 'section' => 'home_section_8', 'priority' => 7, 'default' => '#4c4c4c', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section8_button_colors_toggle' => array( 'name' => 'canuck_section8_button_colors_toggle', 'title' => esc_html__( 'Show/Hide Button Colors', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to edit link button colors.', 'canuck' ), 'section' => 'home_section_8', 'priority' => 8, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section8_button_background_color' => array( 'name' => 'canuck_section8_button_background_color', 'title' => esc_html__( 'Section 8-Button Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a background color for the button.', 'canuck' ), 'section' => 'home_section_8', 'priority' => 9, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section8_button_text_color' => array( 'name' => 'canuck_section8_button_text_color', 'title' => esc_html__( 'Section 8-Button Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a text color for the button.', 'canuck' ), 'section' => 'home_section_8', 'priority' => 10, 'default' => $button_hover_default, 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section8_button_hover_background_color' => array( 'name' => 'canuck_section8_button_hover_background_color', 'title' => esc_html__( 'Section 8-Button Hover Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'The button changes to this color when a mouse pointer hovers over it.', 'canuck' ), 'section' => 'home_section_8', 'priority' => 11, 'default' => $button_hover_default, 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section8_button_hover_text_color' => array( 'name' => 'canuck_section8_button_hover_text_color', 'title' => esc_html__( 'Section 8-Button Hover Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'The button text changes to this color when a mouse pointer hovers over it.', 'canuck' ), 'section' => 'home_section_8', 'priority' => 12, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), // Service box 1. 'canuck_section8_box1_toggle' => array( 'name' => 'canuck_section8_box1_toggle', 'title' => esc_html__( 'Show/Hide Box 1 Options', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to edit box 1 options.', 'canuck' ), 'section' => 'home_section_8', 'priority' => 13, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section8_box1_use_font_icon' => array( 'name' => 'canuck_section8_box1_use_font_icon', 'title' => esc_html__( 'Section 8-Box 1-Font Icon', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Use font icon instead of image', 'canuck' ), 'section' => 'home_section_8', 'priority' => 14, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section8_box1_image_font' => array( 'name' => 'canuck_section8_box1_image_font', 'title' => esc_html__( 'Section 8-Box 1-Font Icon Code', 'canuck' ), 'option_type' => 'fa', 'choices' => canuck_fontawesome(), 'description' => esc_html__( 'Select a Font Awesome icon.', 'canuck' ), 'section' => 'home_section_8', 'priority' => 15, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section8_box1_image' => array( 'name' => 'canuck_section8_box1_image', 'title' => esc_html__( 'Section 8-Box 1-Image', 'canuck' ), 'option_type' => 'image', 'description' => esc_html__( 'upload and use an image, 300px wide x 200px high recommended', 'canuck' ), 'section' => 'home_section_8', 'priority' => 16, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section8_box1_title' => array( 'name' => 'canuck_section8_box1_title', 'title' => esc_html__( 'Section 8-Box 1-Title', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'no html', 'canuck' ), 'section' => 'home_section_8', 'priority' => 17, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section8_box1_text' => array( 'name' => 'canuck_section8_box1_text', 'title' => esc_html__( 'Section 8-Box 1-Content', 'canuck' ), 'option_type' => 'textarea', 'description' => esc_html__( 'html allowed', 'canuck' ), 'section' => 'home_section_8', 'priority' => 18, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section8_box1_include_link' => array( 'name' => 'canuck_section8_box1_include_link', 'title' => esc_html__( 'Section 8-Box 1-Link', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to use a link', 'canuck' ), 'section' => 'home_section_8', 'priority' => 19, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section8_box1_button_link' => array( 'name' => 'canuck_section8_box1_button_link', 'title' => esc_html__( 'Section 8-Box 1-Link URL', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'Format:http://your.website.url/page/', 'canuck' ), 'section' => 'home_section_8', 'priority' => 20, 'default' => '#', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section8_box1_button_title' => array( 'name' => 'canuck_section8_box1_button_title', 'title' => esc_html__( 'Section 8-Box 1-Link Label', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'html allowed, use single quotes for classes. Note: Leave this blank to use image or icon as the link.', 'canuck' ) . ' ' . esc_html__( 'Default : ', 'canuck' ) . "<i class='fa fa-link'></i> more ", 'section' => 'home_section_8', 'priority' => 21, 'default' => " " . esc_html__( 'more', 'canuck' ), 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), // Service box 2. 'canuck_section8_box2_toggle' => array( 'name' => 'canuck_section8_box2_toggle', 'title' => esc_html__( 'Show/Hide Box 2 Options', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to edit box 2 options.', 'canuck' ), 'section' => 'home_section_8', 'priority' => 22, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section8_box2_use_font_icon' => array( 'name' => 'canuck_section8_box2_use_font_icon', 'title' => esc_html__( 'Section 8-Box 2-Font Icon', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Use font icon instead of image', 'canuck' ), 'section' => 'home_section_8', 'priority' => 23, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section8_box2_image_font' => array( 'name' => 'canuck_section8_box2_image_font', 'title' => esc_html__( 'Section 8-Box 2-Font Icon Code', 'canuck' ), 'option_type' => 'fa', 'choices' => canuck_fontawesome(), 'description' => esc_html__( 'Select a Font Awesome icon.', 'canuck' ), 'section' => 'home_section_8', 'priority' => 24, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section8_box2_image' => array( 'name' => 'canuck_section8_box2_image', 'title' => esc_html__( 'Section 8-Box 2-Image', 'canuck' ), 'option_type' => 'image', 'description' => esc_html__( 'upload and use an image, 300px wide x 200px high recommended', 'canuck' ), 'section' => 'home_section_8', 'priority' => 25, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section8_box2_title' => array( 'name' => 'canuck_section8_box2_title', 'title' => esc_html__( 'Section 8-Box 2-Title', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'no html', 'canuck' ), 'section' => 'home_section_8', 'priority' => 26, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section8_box2_text' => array( 'name' => 'canuck_section8_box2_text', 'title' => esc_html__( 'Section 8-Box 2-Content', 'canuck' ), 'option_type' => 'textarea', 'description' => esc_html__( 'html allowed', 'canuck' ), 'section' => 'home_section_8', 'priority' => 27, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section8_box2_include_link' => array( 'name' => 'canuck_section8_box2_include_link', 'title' => esc_html__( 'Section 8-Box 2-Link', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'check to use a link', 'canuck' ), 'section' => 'home_section_8', 'priority' => 28, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section8_box2_button_link' => array( 'name' => 'canuck_section8_box2_button_link', 'title' => esc_html__( 'Section 8-Box 2-Link URL', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'Format:http://your.website.url/page/', 'canuck' ), 'section' => 'home_section_8', 'priority' => 29, 'default' => '#', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section8_box2_button_title' => array( 'name' => 'canuck_section8_box2_button_title', 'title' => esc_html__( 'Section 8-Box 2-Link Label', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'html allowed, use single quotes for classes. Note: Leave this blank to use image or icon as the link.', 'canuck' ) . ' ' . esc_html__( 'Default : ', 'canuck' ) . "<i class='fa fa-link'></i> more ", 'section' => 'home_section_8', 'priority' => 30, 'default' => " " . esc_html__( 'more', 'canuck' ), 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), // Sservice box 3. 'canuck_section8_box3_toggle' => array( 'name' => 'canuck_section8_box3_toggle', 'title' => esc_html__( 'Show/Hide Box 3 Options', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to edit box 3 options.', 'canuck' ), 'section' => 'home_section_8', 'priority' => 31, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section8_box3_use_font_icon' => array( 'name' => 'canuck_section8_box3_use_font_icon', 'title' => esc_html__( 'Section 8-Box 3-Font Icon', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Use font icon instead of image', 'canuck' ), 'section' => 'home_section_8', 'priority' => 32, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section8_box3_image_font' => array( 'name' => 'canuck_section8_box3_image_font', 'title' => esc_html__( 'Section 8-Box 3-Font Icon Code', 'canuck' ), 'option_type' => 'fa', 'choices' => canuck_fontawesome(), 'description' => esc_html__( 'Select a Font Awesome icon.', 'canuck' ), 'section' => 'home_section_8', 'priority' => 33, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section8_box3_image' => array( 'name' => 'canuck_section8_box3_image', 'title' => esc_html__( 'Section 8-Box 3-Image', 'canuck' ), 'option_type' => 'image', 'description' => esc_html__( 'upload and use an image, 300px wide x 200px high recommended', 'canuck' ), 'section' => 'home_section_8', 'priority' => 34, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section8_box3_title' => array( 'name' => 'canuck_section8_box3_title', 'title' => esc_html__( 'Section 8-Box 3-Title', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'no html', 'canuck' ), 'section' => 'home_section_8', 'priority' => 35, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section8_box3_text' => array( 'name' => 'canuck_section8_box3_text', 'title' => esc_html__( 'Section 8-Box 3-Content', 'canuck' ), 'option_type' => 'textarea', 'description' => esc_html__( 'html allowed', 'canuck' ), 'section' => 'home_section_8', 'priority' => 36, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section8_box3_include_link' => array( 'name' => 'canuck_section8_box3_include_link', 'title' => esc_html__( 'Section 8-Box 3-Link', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'check to use a link', 'canuck' ), 'section' => 'home_section_8', 'priority' => 37, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section8_box3_button_link' => array( 'name' => 'canuck_section8_box3_button_link', 'title' => esc_html__( 'Section 8-Box 3-Link URL', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'Format:http://your.website.url/page/', 'canuck' ), 'section' => 'home_section_8', 'priority' => 38, 'default' => '#', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section8_box3_button_title' => array( 'name' => 'canuck_section8_box3_button_title', 'title' => esc_html__( 'Section 8-Box 3-Link Label', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'html allowed, use single quotes for classes. Note: Leave this blank to use image or icon as the link.', 'canuck' ) . ' ' . esc_html__( 'Default : ', 'canuck' ) . "<i class='fa fa-link'></i> more ", 'section' => 'home_section_8', 'priority' => 39, 'default' => " " . esc_html__( 'more', 'canuck' ), 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), // Service box 4. 'canuck_section8_box4_toggle' => array( 'name' => 'canuck_section8_box4_toggle', 'title' => esc_html__( 'Show/Hide Box 4 Options', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to edit box 4 options.', 'canuck' ), 'section' => 'home_section_8', 'priority' => 40, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section8_box4_use_font_icon' => array( 'name' => 'canuck_section8_box4_use_font_icon', 'title' => esc_html__( 'Section 8-Box 4-Font Icon', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Use font icon instead of image', 'canuck' ), 'section' => 'home_section_8', 'priority' => 41, 'default' => false, // 0 for off 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section8_box4_image_font' => array( 'name' => 'canuck_section8_box4_image_font', 'title' => esc_html__( 'Section 8-Box 4-Font Icon Code', 'canuck' ), 'option_type' => 'fa', 'choices' => canuck_fontawesome(), 'description' => esc_html__( 'Select a Font Awesome icon.', 'canuck' ), 'section' => 'home_section_8', 'priority' => 42, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section8_box4_image' => array( 'name' => 'canuck_section8_box4_image', 'title' => esc_html__( 'Section 8-Box 4-Image', 'canuck' ), 'option_type' => 'image', 'description' => esc_html__( 'upload and use an image, 300px wide x 200px high recommended', 'canuck' ), 'section' => 'home_section_8', 'priority' => 43, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section8_box4_title' => array( 'name' => 'canuck_section8_box4_title', 'title' => esc_html__( 'Section 8-Box 4-Title', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'no html', 'canuck' ), 'section' => 'home_section_8', 'priority' => 44, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section8_box4_text' => array( 'name' => 'canuck_section8_box4_text', 'title' => esc_html__( 'Section 8-Box 4-Content', 'canuck' ), 'option_type' => 'textarea', 'description' => esc_html__( 'html allowed', 'canuck' ), 'section' => 'home_section_8', 'priority' => 45, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section8_box4_include_link' => array( 'name' => 'canuck_section8_box4_include_link', 'title' => esc_html__( 'Section 8-Box 4-Link', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'check to use a link', 'canuck' ), 'section' => 'home_section_8', 'priority' => 46, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section8_box4_button_link' => array( 'name' => 'canuck_section8_box4_button_link', 'title' => esc_html__( 'Section 8-Box 4-Link URL', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'Format:http://your.website.url/page/', 'canuck' ), 'section' => 'home_section_8', 'priority' => 47, 'default' => '#', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section8_box4_button_title' => array( 'name' => 'canuck_section8_box4_button_title', 'title' => esc_html__( 'Section 8-Box 4-Link Label', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'html allowed, use single quotes for classes. Note: Leave this blank to use image or icon as the link.', 'canuck' ) . ' ' . esc_html__( 'Default : ', 'canuck' ) . "<i class='fa fa-link'></i> more ", 'section' => 'home_section_8', 'priority' => 48, 'default' => " " . esc_html__( 'more', 'canuck' ), 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), // Section 9 : Portfolio. 'canuck_section9_background_option_toggle' => array( 'name' => 'canuck_section9_background_option_toggle', 'title' => esc_html__( 'Show/Hide Background Options', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check show background options.', 'canuck' ), 'section' => 'home_section_9', 'priority' => 1, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section9_background_image' => array( 'name' => 'canuck_section9_background_image', 'title' => esc_html__( 'Section 9-Background Image', 'canuck' ), 'option_type' => 'image', 'description' => esc_html__( 'Upload and use a background image.', 'canuck' ), 'section' => 'home_section_9', 'priority' => 2, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section9_overlay_opacity' => array( 'name' => 'canuck_section9_overlay_opacity', 'title' => esc_html__( 'Section 9-Overlay Opacity', 'canuck' ), 'option_type' => 'range', 'choices' => canuck_opacity_range_choices(), 'description' => esc_html__( 'This option allows you to place a dark shadow over the background image.', 'canuck' ), 'section' => 'home_section_9', 'priority' => 3, 'default' => 0, 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section9_use_parallax' => array( 'name' => 'canuck_section9_use_parallax', 'title' => esc_html__( 'Section 9-Use Parallax', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to use parallax effect for the image.', 'canuck' ), 'section' => 'home_section_9', 'priority' => 4, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section9_background_color' => array( 'name' => 'canuck_section9_background_color', 'title' => esc_html__( 'Section 9-Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a background color. Note this will not be used if a background image is set up.', 'canuck' ), 'section' => 'home_section_9', 'priority' => 5, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section9_background_color_opacity' => array( 'name' => 'canuck_section9_background_color_opacity', 'title' => esc_html__( 'Section 9-Background Color Opacity', 'canuck' ), 'option_type' => 'range', 'choices' => canuck_opacity_range_choices(), 'description' => esc_html__( 'This option allows you to set the opacity of the background color.', 'canuck' ), 'section' => 'home_section_9', 'priority' => 6, 'default' => 1, 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section9_text_color' => array( 'name' => 'canuck_section9_text_color', 'title' => esc_html__( 'Section 9-Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a text color', 'canuck' ), 'section' => 'home_section_9', 'priority' => 7, 'default' => '#4c4c4c', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section9_title' => array( 'name' => 'canuck_section9_title', 'title' => esc_html__( 'Section 9-Title', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'html allowed', 'canuck' ), 'section' => 'home_section_9', 'priority' => 8, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section9_text' => array( 'name' => 'canuck_section9_text', 'title' => esc_html__( 'Section 9-Content', 'canuck' ), 'option_type' => 'textarea', 'description' => esc_html__( 'html allowed', 'canuck' ), 'section' => 'home_section_9', 'priority' => 9, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section9_portfolio_category' => array( 'name' => 'canuck_section9_portfolio_category', 'title' => esc_html__( 'Section 9-Portfolio Category', 'canuck' ), 'option_type' => 'scat', 'description' => esc_html__( 'Select the category you have used for the feature posts you are using for this portfolio section.', 'canuck' ), 'section' => 'home_section_9', 'priority' => 10, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section9_portfolio_columns' => array( 'name' => 'canuck_section9_portfolio_columns', 'title' => esc_html__( 'Section 9-Portfolio Columns', 'canuck' ), 'option_type' => 'select', 'choices' => array( '3' => '3', '4' => '4', ), 'description' => esc_html__( 'you can have 3 or 4 portfolio columns', 'canuck' ), 'section' => 'home_section_9', 'priority' => 11, 'default' => '3', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_select', ), // Section 10 : Media Left - Content Right. 'canuck_section10_background_option_toggle' => array( 'name' => 'canuck_section10_background_option_toggle', 'title' => esc_html__( 'Show/Hide Background Options', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check show background options.', 'canuck' ), 'section' => 'home_section_10', 'priority' => 1, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section10_background_image' => array( 'name' => 'canuck_section10_background_image', 'title' => esc_html__( 'Section 10-Background Image', 'canuck' ), 'option_type' => 'image', 'description' => esc_html__( 'Upload and use a background image.', 'canuck' ), 'section' => 'home_section_10', 'priority' => 2, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section10_overlay_opacity' => array( 'name' => 'canuck_section10_overlay_opacity', 'title' => esc_html__( 'Section 10-Overlay Opacity', 'canuck' ), 'option_type' => 'range', 'choices' => canuck_opacity_range_choices(), 'description' => esc_html__( 'This option allows you to place a dark shadow over the background image.', 'canuck' ), 'section' => 'home_section_10', 'priority' => 3, 'default' => 0, 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section10_use_parallax' => array( 'name' => 'canuck_section10_use_parallax', 'title' => esc_html__( 'Section 10-Use Parallax', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to use parallax effect for the image.', 'canuck' ), 'section' => 'home_section_10', 'priority' => 4, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section10_background_color' => array( 'name' => 'canuck_section10_background_color', 'title' => esc_html__( 'Section 10-Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a background color. Note this will not be used if a background image is set up.', 'canuck' ), 'section' => 'home_section_10', 'priority' => 5, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section10_background_color_opacity' => array( 'name' => 'canuck_section10_background_color_opacity', 'title' => esc_html__( 'Section 10-Background Color Opacity', 'canuck' ), 'option_type' => 'range', 'choices' => canuck_opacity_range_choices(), 'description' => esc_html__( 'This option allows you to set the opacity of the background color.', 'canuck' ), 'section' => 'home_section_10', 'priority' => 6, 'default' => 1, 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section10_text_color' => array( 'name' => 'canuck_section10_text_color', 'title' => esc_html__( 'Section 10-Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a text color', 'canuck' ), 'section' => 'home_section_10', 'priority' => 7, 'default' => '#4c4c4c', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section10_media_area_usage' => array( 'name' => 'canuck_section10_media_area_usage', 'title' => esc_html__( 'Section 10-Media Area Usage Options', 'canuck' ), 'option_type' => 'select', 'choices' => array( 'normal' => 'image', 'shortcode' => 'shortcode', 'widgetized' => 'widgetized', ), 'description' => esc_html__( 'You can use an image for the media area or use a shortcode or widget in the media area.', 'canuck' ) . ' ' . esc_html__( 'If using an image, upload the image below.', 'canuck' ) . ' ' . esc_html__( 'If using a shortcode, enter the scortcode in the shortcode entry box below.', 'canuck' ) . ' ' . esc_html__( 'If using a widget set up your widget in Appearence -> widgets using the Home Page Section 10 tab.', 'canuck' ), 'section' => 'home_section_10', 'priority' => 7, 'default' => 'normal', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_useage', ), 'canuck_section10_image' => array( 'name' => 'canuck_section10_image', 'title' => esc_html__( 'Section 10-Image', 'canuck' ), 'option_type' => 'image', 'description' => esc_html__( 'upload and use an image, 800px wide x 533px high recommended', 'canuck' ), 'section' => 'home_section_10', 'priority' => 8, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section10_shortcode' => array( 'name' => 'canuck_section10_shortcode', 'title' => esc_html__( 'Section 10-Shortcode', 'canuck' ), 'option_type' => 'textarea', 'description' => esc_html__( 'Add your shortcode here if using shortcode as a Media Area Useage Option.', 'canuck' ), 'section' => 'home_section_10', 'priority' => 9, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section10_title' => array( 'name' => 'canuck_section10_title', 'title' => esc_html__( 'Section 10-Title', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'no html', 'canuck' ), 'section' => 'home_section_10', 'priority' => 10, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section10_text' => array( 'name' => 'canuck_section10_text', 'title' => esc_html__( 'Section 10-Content', 'canuck' ), 'option_type' => 'textarea', 'description' => esc_html__( 'html allowed', 'canuck' ), 'section' => 'home_section_10', 'priority' => 11, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section10_include_link' => array( 'name' => 'canuck_section10_include_link', 'title' => esc_html__( 'Section 10-Include Link', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'check to use a link', 'canuck' ), 'section' => 'home_section_10', 'priority' => 12, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section10_button_link' => array( 'name' => 'canuck_section10_button_link', 'title' => esc_html__( 'Section 10-Button Link', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'Format:http://your.website.url/page/', 'canuck' ), 'section' => 'home_section_10', 'priority' => 13, 'default' => '#', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section10_button_title' => array( 'name' => 'canuck_section10_button_title', 'title' => esc_html__( 'Section 10-Button Label', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'html allowed, use single quotes for classes. Note: Leave this blank to use image or icon as the link.', 'canuck' ) . ' ' . esc_html__( 'Default : ', 'canuck' ) . "<i class='fa fa-link'></i> more ", 'section' => 'home_section_10', 'priority' => 14, 'default' => " " . esc_html__( 'more', 'canuck' ), 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section10_button_background_color' => array( 'name' => 'canuck_section10_button_background_color', 'title' => esc_html__( 'Section 10-Button Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a background color for the button.', 'canuck' ), 'section' => 'home_section_10', 'priority' => 15, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section10_button_text_color' => array( 'name' => 'canuck_section10_button_text_color', 'title' => esc_html__( 'Section 10-Button Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a color for button text.', 'canuck' ), 'section' => 'home_section_10', 'priority' => 16, 'default' => $button_hover_default, 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section10_button_hover_background_color' => array( 'name' => 'canuck_section10_button_hover_background_color', 'title' => esc_html__( 'Section 10-Button Hover Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'The button changes to this color when a mouse pointer hovers over it.', 'canuck' ), 'section' => 'home_section_10', 'priority' => 17, 'default' => $button_hover_default, 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section10_button_hover_text_color' => array( 'name' => 'canuck_section10_button_hover_text_color', 'title' => esc_html__( 'Section 10-Button Hover Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'The button text changes to this color when a mouse pointer hovers over it.', 'canuck' ), 'section' => 'home_section_10', 'priority' => 18, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), // Section 11: Content Left - Media Right. 'canuck_section11_background_option_toggle' => array( 'name' => 'canuck_section11_background_option_toggle', 'title' => esc_html__( 'Show/Hide Background Options', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check show background options.', 'canuck' ), 'section' => 'home_section_11', 'priority' => 1, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section11_background_image' => array( 'name' => 'canuck_section11_background_image', 'title' => esc_html__( 'Section 11-Background Image', 'canuck' ), 'option_type' => 'image', 'description' => esc_html__( 'Upload and use a background image.', 'canuck' ), 'section' => 'home_section_11', 'priority' => 2, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section11_overlay_opacity' => array( 'name' => 'canuck_section11_overlay_opacity', 'title' => esc_html__( 'Section 11-Overlay Opacity', 'canuck' ), 'option_type' => 'range', 'choices' => canuck_opacity_range_choices(), 'description' => esc_html__( 'This option allows you to place a dark shadow over the background image.', 'canuck' ), 'section' => 'home_section_11', 'priority' => 3, 'default' => 0, 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section11_use_parallax' => array( 'name' => 'canuck_section11_use_parallax', 'title' => esc_html__( 'Section 11-Use Parallax', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to use parallax effect for the image.', 'canuck' ), 'section' => 'home_section_11', 'priority' => 4, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section11_background_color' => array( 'name' => 'canuck_section11_background_color', 'title' => esc_html__( 'Section 11-Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a background color. Note this will not be used if a background image is set up.', 'canuck' ), 'section' => 'home_section_11', 'priority' => 5, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section11_background_color_opacity' => array( 'name' => 'canuck_section11_background_color_opacity', 'title' => esc_html__( 'Section 11-Background Color Opacity', 'canuck' ), 'option_type' => 'range', 'choices' => canuck_opacity_range_choices(), 'description' => esc_html__( 'This option allows you to set the opacity of the background color.', 'canuck' ), 'section' => 'home_section_11', 'priority' => 6, 'default' => 1, 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section11_text_color' => array( 'name' => 'canuck_section11_text_color', 'title' => esc_html__( 'Section 11-Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a text color', 'canuck' ), 'section' => 'home_section_11', 'priority' => 7, 'default' => '#4c4c4c', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section11_media_area_usage' => array( 'name' => 'canuck_section11_media_area_usage', 'title' => esc_html__( 'Section 11-Media Area Usage Options', 'canuck' ), 'option_type' => 'select', 'choices' => array( 'normal' => 'image', 'shortcode' => 'shortcode', 'widgetized' => 'widgetized', ), 'description' => esc_html__( 'You can use an image for the media area or use a shortcode or widget in the media area.', 'canuck' ) . ' ' . esc_html__( 'If using an image, upload the image below.', 'canuck' ) . ' ' . esc_html__( 'If using a shortcode, enter the scortcode in the shortcode box below.', 'canuck' ) . ' ' . esc_html__( 'If using a widget set up your widget in Appearence -> widgets using the Home Page Section 11 tab.', 'canuck' ), 'section' => 'home_section_11', 'priority' => 7, 'default' => 'normal', 'transport' => 'refresh', 'sanitize' => 'canuck_sanitize_useage', ), 'canuck_section11_image' => array( 'name' => 'canuck_section11_image', 'title' => esc_html__( 'Section 11-Image', 'canuck' ), 'option_type' => 'image', 'description' => esc_html__( 'upload and use an image, 800px wide x 533px high recommended', 'canuck' ), 'section' => 'home_section_11', 'priority' => 8, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section11_shortcode' => array( 'name' => 'canuck_section11_shortcode', 'title' => esc_html__( 'Section 11-Shortcode', 'canuck' ), 'option_type' => 'textarea', 'description' => esc_html__( 'Add your shortcode here if using shortcode as a Media Area Useage Option.', 'canuck' ), 'section' => 'home_section_11', 'priority' => 9, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section11_title' => array( 'name' => 'canuck_section11_title', 'title' => esc_html__( 'Section 11-Title', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'no html', 'canuck' ), 'section' => 'home_section_11', 'priority' => 10, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section11_text' => array( 'name' => 'canuck_section11_text', 'title' => esc_html__( 'Section 11-Content', 'canuck' ), 'option_type' => 'textarea', 'description' => esc_html__( 'html allowed', 'canuck' ), 'section' => 'home_section_11', 'priority' => 11, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section11_include_link' => array( 'name' => 'canuck_section11_include_link', 'title' => esc_html__( 'Section 11-Include Link', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'check to use a link', 'canuck' ), 'section' => 'home_section_11', 'priority' => 12, 'default' => false, // 0 for off 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section11_button_link' => array( 'name' => 'canuck_section11_button_link', 'title' => esc_html__( 'Section 11-Button Link', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'Format:http://your.website.url/page/', 'canuck' ), 'section' => 'home_section_11', 'priority' => 13, 'default' => '#', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section11_button_title' => array( 'name' => 'canuck_section11_button_title', 'title' => esc_html__( 'Section 11-Button Label', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'html allowed, use single quotes for classes. Note: Leave this blank to use image or icon as the link.', 'canuck' ) . ' ' . esc_html__( 'Default : ', 'canuck' ) . "<i class='fa fa-link'></i> more ", 'section' => 'home_section_11', 'priority' => 14, 'default' => '...more', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section11_button_background_color' => array( 'name' => 'canuck_section11_button_background_color', 'title' => esc_html__( 'Section 11-Button Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a background color for the button.', 'canuck' ), 'section' => 'home_section_11', 'priority' => 15, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section11_button_text_color' => array( 'name' => 'canuck_section11_button_text_color', 'title' => esc_html__( 'Section 11-Button Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a color for button text.', 'canuck' ), 'section' => 'home_section_11', 'priority' => 16, 'default' => $button_hover_default, 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section11_button_hover_background_color' => array( 'name' => 'canuck_section11_button_hover_background_color', 'title' => esc_html__( 'Section 11-Button Hover Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'The button changes to this color when a mouse pointer hovers over it.', 'canuck' ), 'section' => 'home_section_11', 'priority' => 17, 'default' => $button_hover_default, 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section11_button_hover_text_color' => array( 'name' => 'canuck_section11_button_hover_text_color', 'title' => esc_html__( 'Section 11-Button Hover Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'The button text changes to this color when a mouse pointer hovers over it.', 'canuck' ), 'section' => 'home_section_11', 'priority' => 18, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), // Section 12 : Carousel. 'canuck_section12_background_option_toggle' => array( 'name' => 'canuck_section12_background_option_toggle', 'title' => esc_html__( 'Show/Hide Background Options', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check show background options.', 'canuck' ), 'section' => 'home_section_12', 'priority' => 1, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section12_background_image' => array( 'name' => 'canuck_section12_background_image', 'title' => esc_html__( 'Section 12-Background Image', 'canuck' ), 'option_type' => 'image', 'description' => esc_html__( 'Upload and use a background image', 'canuck' ), 'section' => 'home_section_12', 'priority' => 2, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section12_overlay_opacity' => array( 'name' => 'canuck_section12_overlay_opacity', 'title' => esc_html__( 'Section 12-Overlay Opacity', 'canuck' ), 'option_type' => 'range', 'choices' => canuck_opacity_range_choices(), 'description' => esc_html__( 'This option allows you to place a dark shadow over the background image.', 'canuck' ), 'section' => 'home_section_12', 'priority' => 3, 'default' => 0, 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section12_use_parallax' => array( 'name' => 'canuck_section12_use_parallax', 'title' => esc_html__( 'Section 12-Use Parallax', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to use parallax effect for the image.', 'canuck' ), 'section' => 'home_section_12', 'priority' => 4, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section12_background_color' => array( 'name' => 'canuck_section12_background_color', 'title' => esc_html__( 'Section 12-Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a background color. Note this will not be used if a background image is set up.', 'canuck' ), 'section' => 'home_section_12', 'priority' => 5, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section12_background_color_opacity' => array( 'name' => 'canuck_section12_background_color_opacity', 'title' => esc_html__( 'Section 12-Background Color Opacity', 'canuck' ), 'option_type' => 'range', 'choices' => canuck_opacity_range_choices(), 'description' => esc_html__( 'This option allows you to set the opacity of the background color.', 'canuck' ), 'section' => 'home_section_12', 'priority' => 6, 'default' => 1, 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section12_text_color' => array( 'name' => 'canuck_section12_text_color', 'title' => esc_html__( 'Section 12-Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a text color', 'canuck' ), 'section' => 'home_section_12', 'priority' => 7, 'default' => '#4c4c4c', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section12_title' => array( 'name' => 'canuck_section12_title', 'title' => esc_html__( 'Section 12-Title', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'html allowed', 'canuck' ), 'section' => 'home_section_12', 'priority' => 8, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section12_text' => array( 'name' => 'canuck_section12_text', 'title' => esc_html__( 'Section 12-Content', 'canuck' ), 'option_type' => 'textarea', 'description' => esc_html__( 'html allowed', 'canuck' ), 'section' => 'home_section_12', 'priority' => 9, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section12_portfolio_category' => array( 'name' => 'canuck_section12_portfolio_category', 'title' => esc_html__( 'Section 12-Portfolio Category', 'canuck' ), 'option_type' => 'scat', 'description' => esc_html__( 'Select the category you have used for the feature posts you are using for this portfolio section.', 'canuck' ), 'section' => 'home_section_12', 'priority' => 10, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), // Section 13 : Carousel. 'canuck_section13_background_option_toggle' => array( 'name' => 'canuck_section13_background_option_toggle', 'title' => esc_html__( 'Show/Hide Background Options', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check show background options.', 'canuck' ), 'section' => 'home_section_13', 'priority' => 1, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section13_background_image' => array( 'name' => 'canuck_section13_background_image', 'title' => esc_html__( 'Section 13-Background Image', 'canuck' ), 'option_type' => 'image', 'description' => esc_html__( 'Upload and use a background image', 'canuck' ), 'section' => 'home_section_13', 'priority' => 2, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'esc_url_raw', ), 'canuck_section13_overlay_opacity' => array( 'name' => 'canuck_section13_overlay_opacity', 'title' => esc_html__( 'Section 13-Overlay Opacity', 'canuck' ), 'option_type' => 'range', 'choices' => canuck_opacity_range_choices(), 'description' => esc_html__( 'This option allows you to place a dark shadow over the background image.', 'canuck' ), 'section' => 'home_section_13', 'priority' => 3, 'default' => 0, 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section13_use_parallax' => array( 'name' => 'canuck_section13_use_parallax', 'title' => esc_html__( 'Section 13-Use Parallax', 'canuck' ), 'option_type' => 'checkbox', 'description' => esc_html__( 'Check to use parallax effect for the image.', 'canuck' ), 'section' => 'home_section_13', 'priority' => 4, 'default' => false, 'transport' => 'refresh', 'sanitize' => 'wp_validate_boolean', ), 'canuck_section13_background_color' => array( 'name' => 'canuck_section13_background_color', 'title' => esc_html__( 'Section 13-Background Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a background color. Note this will not be used if a background image is set up.', 'canuck' ), 'section' => 'home_section_13', 'priority' => 5, 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section13_background_color_opacity' => array( 'name' => 'canuck_section13_background_color_opacity', 'title' => esc_html__( 'Section 13-Background Color Opacity', 'canuck' ), 'option_type' => 'range', 'choices' => canuck_opacity_range_choices(), 'description' => esc_html__( 'This option allows you to set the opacity of the background color.', 'canuck' ), 'section' => 'home_section_13', 'priority' => 6, 'default' => 1, 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), 'canuck_section13_text_color' => array( 'name' => 'canuck_section13_text_color', 'title' => esc_html__( 'Section 13-Text Color', 'canuck' ), 'option_type' => 'color', 'description' => esc_html__( 'Choose a text color', 'canuck' ), 'section' => 'home_section_13', 'priority' => 7, 'default' => '#4c4c4c', 'transport' => 'refresh', 'sanitize' => 'sanitize_hex_color', ), 'canuck_section13_title' => array( 'name' => 'canuck_section13_title', 'title' => esc_html__( 'Section 13-Title', 'canuck' ), 'option_type' => 'text', 'description' => esc_html__( 'html allowed', 'canuck' ), 'section' => 'home_section_13', 'priority' => 8, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section13_text' => array( 'name' => 'canuck_section13_text', 'title' => esc_html__( 'Section 13-Content', 'canuck' ), 'option_type' => 'textarea', 'description' => esc_html__( 'html allowed', 'canuck' ), 'section' => 'home_section_13', 'priority' => 9, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'wp_kses_post', ), 'canuck_section13_portfolio_category' => array( 'name' => 'canuck_section13_portfolio_category', 'title' => esc_html__( 'Section 13-Portfolio Category', 'canuck' ), 'option_type' => 'scat', 'description' => esc_html__( 'Select the category you have used for the feature posts you are using for this portfolio section.', 'canuck' ), 'section' => 'home_section_13', 'priority' => 10, 'default' => '', 'transport' => 'refresh', 'sanitize' => 'sanitize_text_field', ), ); return apply_filters( 'canuck_get_customizer_option_parameters', $options ); } /** * Register set up the options. * * @param array $wp_customize global array. */ function canuck_customize_register( $wp_customize ) { global $wp_customize; // Start by adding custom controls. canuck_add_custom_controls(); // Set up Customizer Panels and Sections. canuck_setup_panels_sections(); // Set up the options. $canuck_customize_options = canuck_get_customizer_option_partameters(); foreach ( $canuck_customize_options as $canuck_option ) { // Add option setting. canuck_add_setting_theme_mod( $canuck_option ); // Add option control. canuck_add_control_theme_mod( $canuck_option ); } if ( is_child_theme() ) { $wp_customize->add_setting( 'canuck_import_parent_theme_options', array( 'default' => false, 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'theme_supports' => '', 'transport' => 'refresh', 'sanitize_callback' => 'wp_validate_boolean', ) ); $wp_customize->add_control( 'canuck_import_parent_theme_options', array( 'label' => esc_html__( 'Import Parent Theme Options', 'canuck' ), 'section' => 'general_backup_options', 'settings' => 'canuck_import_parent_theme_options', 'type' => 'checkbox', 'description' => esc_html__( 'This option is being displayed because you are using a child theme.', 'canuck' ) . ' ' . esc_html__( 'When you initially set up a child theme, all options are reset to defaults.', 'canuck' ) . ' ' . esc_html__( 'If you check the box above and then "Save and Publish", all Canuck custom options from the parent theme will be imported to the child theme. ', 'canuck' ) . '

' . esc_html__( 'Options that are set to the default value in the child theme will be overwritten by options in the Parent Theme that are not default. ', 'canuck' ) . esc_html__( 'Only use for initial set up of the child theme, and do not use again or you may lose default settings you wish to keep.', 'canuck' ) . '

' . '' . esc_html__( 'Un-check the box and "Save & Publish" after you do the import to prevent it from happening again.', 'canuck' ) . '

', 'priority' => 2, ) ); } } add_action( 'customize_register', 'canuck_customize_register' ); /** * SETUP PANELS AND SECTIONS * * This helper function sets up panels and sections for Theme Customizer. */ function canuck_setup_panels_sections() { global $wp_customize; $groups = array(); $group = array(); $groups = canuck_get_customizer_groups(); foreach ( $groups as $group ) { // Add panel. $wp_customize->add_panel( $group['name'], array( 'priority' => $group['priority'], 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => $group['title'], 'description' => $group['description'], ) ); // Add sections in panel. foreach ( $group['sections'] as $section ) { $wp_customize->add_section( $section['name'], array( 'priority' => $section['priority'], 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => $section['title'], 'description' => $section['description'], 'panel' => $group['name'], ) ); } } } /** * ADD SETTING THEME MOD TABLE * * This helper function loads adds a setting in Theme Customizer. * This setting function applies to options with 'setting_type'=>'theme_mod'. * * -------- capability --------------------------------------------------------------. * Note that capability is set to 'edit_theme_options' and will apply to all settings. * If you want to add different capabilities to each setting then change it to * $canuck_option['capability'] and add 'capability' => 'capability you want' to the * options array below. * -------- theme_supports ----------------------------------------------------------. * Note that theme_supports is set to '' and will apply to all settings. * If you want to add theme_cupports to each setting then change it to * $canuck_option['supports'] and add 'supports' => 'support you want' to the * options array below. * -------- sanitize_js_callback ----------------------------------------------------------. * Note that sanitize_js_callback is commented out. I initially set to '', but themecheck * was giving errors, and I was informed to just comment it out. * If you want to add sanitize_js_callback to each setting then change it to * $canuck_option['sanitize_js_callback'] and add 'sanitize_js_callback' => 'your js callback' * to the options array below. * ----------------------------------------------------------------------------------. * ref: https://codex.wordpress.org/Class_Reference/WP_Customize_Manager/add_setting. * * @param array $canuck_option contains the custom option parameters. */ function canuck_add_setting_theme_mod( $canuck_option ) { global $wp_customize; // Add_setting for option. $wp_customize->add_setting( $canuck_option['name'], array( 'default' => $canuck_option['default'], 'capability' => 'edit_theme_options', 'theme_supports' => '', 'transport' => $canuck_option['transport'], 'sanitize_callback' => $canuck_option['sanitize'], ) ); } /** * ADD CONTROL THEME MOD TABLE * * This helper function adds a control for Theme Customizer. * This function applies to options with 'setting_type'=>'theme_mod'. * * ref:https://codex.wordpress.org/Class_Reference/WP_Customize_Manager/add_control. * * @param array $canuck_option contains the custom option parameters. */ function canuck_add_control_theme_mod( $canuck_option ) { global $wp_customize; if ( 'text' === $canuck_option['option_type'] ) { $wp_customize->add_control( $canuck_option['name'], array( 'label' => $canuck_option['title'], 'section' => $canuck_option['section'], 'settings' => $canuck_option['name'], 'type' => $canuck_option['option_type'], 'description' => $canuck_option['description'], 'priority' => $canuck_option['priority'], ) ); } elseif ( 'textarea' === $canuck_option['option_type'] ) { $wp_customize->add_control( $canuck_option['name'], array( 'label' => $canuck_option['title'], 'section' => $canuck_option['section'], 'settings' => $canuck_option['name'], 'type' => $canuck_option['option_type'], 'description' => $canuck_option['description'], 'priority' => $canuck_option['priority'], ) ); } elseif ( 'checkbox' === $canuck_option['option_type'] ) { $wp_customize->add_control( $canuck_option['name'], array( 'label' => $canuck_option['title'], 'section' => $canuck_option['section'], 'settings' => $canuck_option['name'], 'type' => $canuck_option['option_type'], 'description' => $canuck_option['description'], 'priority' => $canuck_option['priority'], ) ); } elseif ( 'radio' === $canuck_option['option_type'] ) { $wp_customize->add_control( $canuck_option['name'], array( 'label' => $canuck_option['title'], 'section' => $canuck_option['section'], 'settings' => $canuck_option['name'], 'type' => $canuck_option['option_type'], 'description' => $canuck_option['description'], 'priority' => $canuck_option['priority'], 'choices' => $canuck_option['choices'], ) ); } elseif ( 'select' === $canuck_option['option_type'] ) { $wp_customize->add_control( $canuck_option['name'], array( 'label' => $canuck_option['title'], 'section' => $canuck_option['section'], 'settings' => $canuck_option['name'], 'type' => $canuck_option['option_type'], 'description' => $canuck_option['description'], 'priority' => $canuck_option['priority'], 'choices' => $canuck_option['choices'], ) ); } elseif ( 'range' === $canuck_option['option_type'] ) { $wp_customize->add_control( $canuck_option['name'], array( 'label' => $canuck_option['title'], 'section' => $canuck_option['section'], 'settings' => $canuck_option['name'], 'type' => $canuck_option['option_type'], 'description' => $canuck_option['description'], 'priority' => $canuck_option['priority'], 'input_attrs' => $canuck_option['choices'], ) ); } elseif ( 'color' === $canuck_option['option_type'] ) { $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, $canuck_option['name'], array( 'label' => $canuck_option['title'], 'section' => $canuck_option['section'], 'settings' => $canuck_option['name'], 'type' => $canuck_option['option_type'], 'description' => $canuck_option['description'], 'priority' => $canuck_option['priority'], ) ) ); } elseif ( 'image' === $canuck_option['option_type'] ) { $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, $canuck_option['name'], array( 'label' => $canuck_option['title'], 'section' => $canuck_option['section'], 'settings' => $canuck_option['name'], 'type' => $canuck_option['option_type'], 'description' => $canuck_option['description'], 'priority' => $canuck_option['priority'], ) ) ); } elseif ( 'upload' === $canuck_option['option_type'] ) { $wp_customize->add_control( new WP_Customize_Upload_Control( $wp_customize, $canuck_option['name'], array( 'label' => $canuck_option['title'], 'section' => $canuck_option['section'], 'settings' => $canuck_option['name'], 'type' => $canuck_option['option_type'], 'description' => $canuck_option['description'], 'priority' => $canuck_option['priority'], ) ) ); } elseif ( 'scat' === $canuck_option['option_type'] ) { $wp_customize->add_control( new Canuck_Category_Dropdown_Custom_Control( $wp_customize, $canuck_option['name'], array( 'label' => $canuck_option['title'], 'section' => $canuck_option['section'], 'settings' => $canuck_option['name'], 'type' => $canuck_option['option_type'], 'description' => $canuck_option['description'], 'priority' => $canuck_option['priority'], ) ) ); } elseif ( 'stag' === $canuck_option['option_type'] ) { $wp_customize->add_control( new Canuck_Tags_Dropdown_Custom_Control( $wp_customize, $canuck_option['name'], array( 'label' => $canuck_option['title'], 'section' => $canuck_option['section'], 'settings' => $canuck_option['name'], 'type' => $canuck_option['option_type'], 'description' => $canuck_option['description'], 'priority' => $canuck_option['priority'], ) ) ); } elseif ( 'mcat' === $canuck_option['option_type'] ) { $wp_customize->add_control( new Canuck_Category_Checkboxes_Control( $wp_customize, $canuck_option['name'], array( 'label' => $canuck_option['title'], 'section' => $canuck_option['section'], 'settings' => $canuck_option['name'], 'type' => $canuck_option['option_type'], 'description' => $canuck_option['description'], 'priority' => $canuck_option['priority'], ) ) ); } elseif ( 'fa' === $canuck_option['option_type'] ) { $wp_customize->add_control( new Canuck_Customizer_Fontawesome_Control( $wp_customize, $canuck_option['name'], array( 'label' => $canuck_option['title'], 'section' => $canuck_option['section'], 'settings' => $canuck_option['name'], 'type' => $canuck_option['option_type'], 'description' => $canuck_option['description'], 'priority' => $canuck_option['priority'], 'choices' => $canuck_option['choices'], ) ) ); } elseif ( 'radio_image' === $canuck_option['option_type'] ) { $wp_customize->add_control( new Canuck_Custom_Radio_Image_Control( $wp_customize, $canuck_option['name'], array( 'label' => $canuck_option['title'], 'section' => $canuck_option['section'], 'settings' => $canuck_option['name'], 'type' => $canuck_option['option_type'], 'description' => $canuck_option['description'], 'priority' => $canuck_option['priority'], 'choices' => $canuck_option['choices'], ) ) ); } } /** * CUSTOM CONTROLS * * This helper function loads the Custom Controls for Theme Customizer */ function canuck_add_custom_controls() { if ( class_exists( 'WP_Customize_Control' ) ) { /** * Class to create a custom category control. * * Source: https://github.com/bueltge/Wordpress-Theme-Customizer-Custom-Controls. */ class Canuck_Category_Dropdown_Custom_Control extends WP_Customize_Control { /** * Render Content */ public function render_content() { ?> label ); ?> description ); ?> ' . esc_html( $category->cat_name ) . '
'; } // Loads the hidden input field that stores the saved category list. ?> link() ); ?> value="value() ); ?>"> choices ) ) { return; } $name = '_customize-radio-' . $this->id; ?> label ); ?> description ) ) { ?> description ); ?>
choices as $value => $label ) { ?> link(); ?> value(), $value ); ?>>
choices ) ) { return; } ?> '', 'fa-address-book' => '', 'fa-address-book-o' => '', 'fa-address-card' => '', 'fa-address-card-o' => '', 'fa-adjust' => '', 'fa-adn' => '', 'fa-align-center' => '', 'fa-align-justify' => '', 'fa-align-left' => '', 'fa-align-right' => '', 'fa-amazon' => '', 'fa-ambulance' => '', 'fa-american-sign-language-interpreting' => '', 'fa-anchor' => '', 'fa-android' => '', 'fa-angellist' => '', 'fa-angle-double-down' => '', 'fa-angle-double-left' => '', 'fa-angle-double-right' => '', 'fa-angle-double-up' => '', 'fa-angle-down' => '', 'fa-angle-left' => '', 'fa-angle-right' => '', 'fa-angle-up' => '', 'fa-apple' => '', 'fa-archive' => '', 'fa-area-chart' => '', 'fa-arrow-circle-down' => '', 'fa-arrow-circle-left' => '', 'fa-arrow-circle-o-down' => '', 'fa-arrow-circle-o-left' => '', 'fa-arrow-circle-o-right' => '', 'fa-arrow-circle-o-up' => '', 'fa-arrow-circle-right' => '', 'fa-arrow-circle-up' => '', 'fa-arrow-down' => '', 'fa-arrow-left' => '', 'fa-arrow-right' => '', 'fa-arrows' => '', 'fa-arrows-alt' => '', 'fa-arrows-h' => '', 'fa-arrows-v' => '', 'fa-arrow-up' => '', 'fa-assistive-listening-systems' => '', 'fa-asterisk' => '', 'fa-at' => '', 'fa-audio-description' => '', 'fa-backward' => '', 'fa-balance-scale' => '', 'fa-ban' => '', 'fa-bandcamp' => '', 'fa-bar-chart' => '', 'fa-barcode' => '', 'fa-bars' => '', 'fa-bath' => '', 'fa-battery-empty' => '', 'fa-battery-full' => '', 'fa-battery-half' => '', 'fa-battery-quarter' => '', 'fa-battery-three-quarters' => '', 'fa-bed' => '', 'fa-beer' => '', 'fa-behance' => '', 'fa-behance-square' => '', 'fa-bell' => '', 'fa-bell-o' => '', 'fa-bell-slash' => '', 'fa-bell-slash-o' => '', 'fa-bicycle' => '', 'fa-binoculars' => '', 'fa-birthday-cake' => '', 'fa-bitbucket' => '', 'fa-bitbucket-square' => '', 'fa-black-tie' => '', 'fa-blind' => '', 'fa-bluetooth' => '', 'fa-bluetooth-b' => '', 'fa-bold' => '', 'fa-bolt' => '', 'fa-bomb' => '', 'fa-book' => '', 'fa-bookmark' => '', 'fa-bookmark-o' => '', 'fa-braille' => '', 'fa-briefcase' => '', 'fa-btc' => '', 'fa-bug' => '', 'fa-building' => '', 'fa-building-o' => '', 'fa-bullhorn' => '', 'fa-bullseye' => '', 'fa-bus' => '', 'fa-buysellads' => '', 'fa-calculator' => '', 'fa-calendar' => '', 'fa-calendar-check-o' => '', 'fa-calendar-minus-o' => '', 'fa-calendar-o' => '', 'fa-calendar-plus-o' => '', 'fa-calendar-times-o' => '', 'fa-camera' => '', 'fa-camera-retro' => '', 'fa-car' => '', 'fa-caret-down' => '', 'fa-caret-left' => '', 'fa-caret-right' => '', 'fa-caret-square-o-down' => '', 'fa-caret-square-o-left' => '', 'fa-caret-square-o-right' => '', 'fa-caret-square-o-up' => '', 'fa-caret-up' => '', 'fa-cart-arrow-down' => '', 'fa-cart-plus' => '', 'fa-cc' => '', 'fa-cc-amex' => '', 'fa-cc-diners-club' => '', 'fa-cc-discover' => '', 'fa-cc-jcb' => '', 'fa-cc-mastercard' => '', 'fa-cc-paypal' => '', 'fa-cc-stripe' => '', 'fa-cc-visa' => '', 'fa-certificate' => '', 'fa-chain-broken' => '', 'fa-check' => '', 'fa-check-circle' => '', 'fa-check-circle-o' => '', 'fa-check-square' => '', 'fa-check-square-o' => '', 'fa-chevron-circle-down' => '', 'fa-chevron-circle-left' => '', 'fa-chevron-circle-right' => '', 'fa-chevron-circle-up' => '', 'fa-chevron-down' => '', 'fa-chevron-left' => '', 'fa-chevron-right' => '', 'fa-chevron-up' => '', 'fa-child' => '', 'fa-chrome' => '', 'fa-circle' => '', 'fa-circle-o' => '', 'fa-circle-o-notch' => '', 'fa-circle-thin' => '', 'fa-clipboard' => '', 'fa-clock-o' => '', 'fa-clone' => '', 'fa-cloud' => '', 'fa-cloud-download' => '', 'fa-cloud-upload' => '', 'fa-code' => '', 'fa-code-fork' => '', 'fa-codepen' => '', 'fa-codiepie' => '', 'fa-coffee' => '', 'fa-cog' => '', 'fa-cogs' => '', 'fa-columns' => '', 'fa-comment' => '', 'fa-commenting' => '', 'fa-commenting-o' => '', 'fa-comment-o' => '', 'fa-comments' => '', 'fa-comments-o' => '', 'fa-compass' => '', 'fa-compress' => '', 'fa-connectdevelop' => '', 'fa-contao' => '', 'fa-copyright' => '', 'fa-creative-commons' => '', 'fa-credit-card' => '', 'fa-credit-card-alt' => '', 'fa-crop' => '', 'fa-crosshairs' => '', 'fa-css3' => '', 'fa-cube' => '', 'fa-cubes' => '', 'fa-cutlery' => '', 'fa-dashcube' => '', 'fa-database' => '', 'fa-deaf' => '', 'fa-delicious' => '', 'fa-desktop' => '', 'fa-deviantart' => '', 'fa-diamond' => '', 'fa-digg' => '', 'fa-dot-circle-o' => '', 'fa-download' => '', 'fa-dribbble' => '', 'fa-dropbox' => '', 'fa-drupal' => '', 'fa-edge' => '', 'fa-eercast' => '', 'fa-eject' => '', 'fa-ellipsis-h' => '', 'fa-ellipsis-v' => '', 'fa-empire' => '', 'fa-envelope' => '', 'fa-envelope-o' => '', 'fa-envelope-open' => '', 'fa-envelope-open-o' => '', 'fa-envelope-square' => '', 'fa-envira' => '', 'fa-eraser' => '', 'fa-etsy' => '', 'fa-eur' => '', 'fa-exchange' => '', 'fa-exclamation' => '', 'fa-exclamation-circle' => '', 'fa-exclamation-triangle' => '', 'fa-expand' => '', 'fa-expeditedssl' => '', 'fa-external-link' => '', 'fa-external-link-square' => '', 'fa-eye' => '', 'fa-eyedropper' => '', 'fa-eye-slash' => '', 'fa-facebook' => '', 'fa-facebook-official' => '', 'fa-facebook-square' => '', 'fa-fast-backward' => '', 'fa-fast-forward' => '', 'fa-fax' => '', 'fa-female' => '', 'fa-fighter-jet' => '', 'fa-file' => '', 'fa-file-archive-o' => '', 'fa-file-audio-o' => '', 'fa-file-code-o' => '', 'fa-file-excel-o' => '', 'fa-file-image-o' => '', 'fa-file-o' => '', 'fa-file-pdf-o' => '', 'fa-file-powerpoint-o' => '', 'fa-files-o' => '', 'fa-file-text' => '', 'fa-file-text-o' => '', 'fa-file-video-o' => '', 'fa-file-word-o' => '', 'fa-film' => '', 'fa-filter' => '', 'fa-fire' => '', 'fa-fire-extinguisher' => '', 'fa-firefox' => '', 'fa-first-order' => '', 'fa-flag' => '', 'fa-flag-checkered' => '', 'fa-flag-o' => '', 'fa-flask' => '', 'fa-flickr' => '', 'fa-floppy-o' => '', 'fa-folder' => '', 'fa-folder-o' => '', 'fa-folder-open' => '', 'fa-folder-open-o' => '', 'fa-font' => '', 'fa-font-awesome' => '', 'fa-fonticons' => '', 'fa-fort-awesome' => '', 'fa-forumbee' => '', 'fa-forward' => '', 'fa-foursquare' => '', 'fa-free-code-camp' => '', 'fa-frown-o' => '', 'fa-futbol-o' => '', 'fa-gamepad' => '', 'fa-gavel' => '', 'fa-gbp' => '', 'fa-genderless' => '', 'fa-get-pocket' => '', 'fa-gg' => '', 'fa-gg-circle' => '', 'fa-gift' => '', 'fa-git' => '', 'fa-github' => '', 'fa-github-alt' => '', 'fa-github-square' => '', 'fa-gitlab' => '', 'fa-git-square' => '', 'fa-glass' => '', 'fa-glide' => '', 'fa-glide-g' => '', 'fa-globe' => '', 'fa-google' => '', 'fa-google-plus' => '', 'fa-google-plus-official' => '', 'fa-google-plus-square' => '', 'fa-google-wallet' => '', 'fa-graduation-cap' => '', 'fa-gratipay' => '', 'fa-grav' => '', 'fa-hacker-news' => '', 'fa-hand-lizard-o' => '', 'fa-hand-o-down' => '', 'fa-hand-o-left' => '', 'fa-hand-o-right' => '', 'fa-hand-o-up' => '', 'fa-hand-paper-o' => '', 'fa-hand-peace-o' => '', 'fa-hand-pointer-o' => '', 'fa-hand-rock-o' => '', 'fa-hand-scissors-o' => '', 'fa-handshake-o' => '', 'fa-hand-spock-o' => '', 'fa-hashtag' => '', 'fa-hdd-o' => '', 'fa-header' => '', 'fa-headphones' => '', 'fa-heart' => '', 'fa-heartbeat' => '', 'fa-heart-o' => '', 'fa-history' => '', 'fa-home' => '', 'fa-hospital-o' => '', 'fa-hourglass' => '', 'fa-hourglass-end' => '', 'fa-hourglass-half' => '', 'fa-hourglass-o' => '', 'fa-hourglass-start' => '', 'fa-houzz' => '', 'fa-h-square' => '', 'fa-html5' => '', 'fa-i-cursor' => '', 'fa-id-badge' => '', 'fa-id-card' => '', 'fa-id-card-o' => '', 'fa-ils' => '', 'fa-imdb' => '', 'fa-inbox' => '', 'fa-indent' => '', 'fa-industry' => '', 'fa-info' => '', 'fa-info-circle' => '', 'fa-inr' => '', 'fa-instagram' => '', 'fa-internet-explorer' => '', 'fa-ioxhost' => '', 'fa-italic' => '', 'fa-joomla' => '', 'fa-jpy' => '', 'fa-jsfiddle' => '', 'fa-key' => '', 'fa-keyboard-o' => '', 'fa-krw' => '', 'fa-language' => '', 'fa-laptop' => '', 'fa-lastfm' => '', 'fa-lastfm-square' => '', 'fa-leaf' => '', 'fa-leanpub' => '', 'fa-lemon-o' => '', 'fa-level-down' => '', 'fa-level-up' => '', 'fa-life-ring' => '', 'fa-lightbulb-o' => '', 'fa-line-chart' => '', 'fa-link' => '', 'fa-linkedin' => '', 'fa-linkedin-square' => '', 'fa-linode' => '', 'fa-linux' => '', 'fa-list' => '', 'fa-list-alt' => '', 'fa-list-ol' => '', 'fa-list-ul' => '', 'fa-location-arrow' => '', 'fa-lock' => '', 'fa-long-arrow-down' => '', 'fa-long-arrow-left' => '', 'fa-long-arrow-right' => '', 'fa-long-arrow-up' => '', 'fa-low-vision' => '', 'fa-magic' => '', 'fa-magnet' => '', 'fa-male' => '', 'fa-map' => '', 'fa-map-marker' => '', 'fa-map-o' => '', 'fa-map-pin' => '', 'fa-map-signs' => '', 'fa-mars' => '', 'fa-mars-double' => '', 'fa-mars-stroke' => '', 'fa-mars-stroke-h' => '', 'fa-mars-stroke-v' => '', 'fa-maxcdn' => '', 'fa-meanpath' => '', 'fa-medium' => '', 'fa-medkit' => '', 'fa-meetup' => '', 'fa-meh-o' => '', 'fa-mercury' => '', 'fa-microchip' => '', 'fa-microphone' => '', 'fa-microphone-slash' => '', 'fa-minus' => '', 'fa-minus-circle' => '', 'fa-minus-square' => '', 'fa-minus-square-o' => '', 'fa-mixcloud' => '', 'fa-mobile' => '', 'fa-modx' => '', 'fa-money' => '', 'fa-moon-o' => '', 'fa-motorcycle' => '', 'fa-mouse-pointer' => '', 'fa-music' => '', 'fa-neuter' => '', 'fa-newspaper-o' => '', 'fa-object-group' => '', 'fa-object-ungroup' => '', 'fa-odnoklassniki' => '', 'fa-odnoklassniki-square' => '', 'fa-opencart' => '', 'fa-openid' => '', 'fa-opera' => '', 'fa-optin-monster' => '', 'fa-outdent' => '', 'fa-pagelines' => '', 'fa-paint-brush' => '', 'fa-paperclip' => '', 'fa-paper-plane' => '', 'fa-paper-plane-o' => '', 'fa-paragraph' => '', 'fa-pause' => '', 'fa-pause-circle' => '', 'fa-pause-circle-o' => '', 'fa-paw' => '', 'fa-paypal' => '', 'fa-pencil' => '', 'fa-pencil-square' => '', 'fa-pencil-square-o' => '', 'fa-percent' => '', 'fa-phone' => '', 'fa-phone-square' => '', 'fa-picture-o' => '', 'fa-pie-chart' => '', 'fa-pied-piper' => '', 'fa-pied-piper-alt' => '', 'fa-pied-piper-pp' => '', 'fa-pinterest' => '', 'fa-pinterest-p' => '', 'fa-pinterest-square' => '', 'fa-plane' => '', 'fa-play' => '', 'fa-play-circle' => '', 'fa-play-circle-o' => '', 'fa-plug' => '', 'fa-plus' => '', 'fa-plus-circle' => '', 'fa-plus-square' => '', 'fa-plus-square-o' => '', 'fa-podcast' => '', 'fa-power-off' => '', 'fa-print' => '', 'fa-product-hunt' => '', 'fa-puzzle-piece' => '', 'fa-qq' => '', 'fa-qrcode' => '', 'fa-question' => '', 'fa-question-circle' => '', 'fa-question-circle-o' => '', 'fa-quora' => '', 'fa-quote-left' => '', 'fa-quote-right' => '', 'fa-random' => '', 'fa-ravelry' => '', 'fa-rebel' => '', 'fa-recycle' => '', 'fa-reddit' => '', 'fa-reddit-alien' => '', 'fa-reddit-square' => '', 'fa-refresh' => '', 'fa-registered' => '', 'fa-renren' => '', 'fa-repeat' => '', 'fa-reply' => '', 'fa-reply-all' => '', 'fa-retweet' => '', 'fa-road' => '', 'fa-rocket' => '', 'fa-rss' => '', 'fa-rss-square' => '', 'fa-rub' => '', 'fa-safari' => '', 'fa-scissors' => '', 'fa-scribd' => '', 'fa-search' => '', 'fa-search-minus' => '', 'fa-search-plus' => '', 'fa-sellsy' => '', 'fa-server' => '', 'fa-share' => '', 'fa-share-alt' => '', 'fa-share-alt-square' => '', 'fa-share-square' => '', 'fa-share-square-o' => '', 'fa-shield' => '', 'fa-ship' => '', 'fa-shirtsinbulk' => '', 'fa-shopping-bag' => '', 'fa-shopping-basket' => '', 'fa-shopping-cart' => '', 'fa-shower' => '', 'fa-signal' => '', 'fa-sign-in' => '', 'fa-sign-language' => '', 'fa-sign-out' => '', 'fa-simplybuilt' => '', 'fa-sitemap' => '', 'fa-skyatlas' => '', 'fa-skype' => '', 'fa-slack' => '', 'fa-sliders' => '', 'fa-slideshare' => '', 'fa-smile-o' => '', 'fa-snapchat' => '', 'fa-snapchat-ghost' => '', 'fa-snapchat-square' => '', 'fa-snowflake-o' => '', 'fa-sort' => '', 'fa-sort-alpha-asc' => '', 'fa-sort-alpha-desc' => '', 'fa-sort-amount-asc' => '', 'fa-sort-amount-desc' => '', 'fa-sort-asc' => '', 'fa-sort-desc' => '', 'fa-sort-numeric-asc' => '', 'fa-sort-numeric-desc' => '', 'fa-soundcloud' => '', 'fa-space-shuttle' => '', 'fa-spinner' => '', 'fa-spoon' => '', 'fa-spotify' => '', 'fa-square' => '', 'fa-square-o' => '', 'fa-stack-exchange' => '', 'fa-stack-overflow' => '', 'fa-star' => '', 'fa-star-half' => '', 'fa-star-half-o' => '', 'fa-star-o' => '', 'fa-steam' => '', 'fa-steam-square' => '', 'fa-step-backward' => '', 'fa-step-forward' => '', 'fa-stethoscope' => '', 'fa-sticky-note' => '', 'fa-sticky-note-o' => '', 'fa-stop' => '', 'fa-stop-circle' => '', 'fa-stop-circle-o' => '', 'fa-street-view' => '', 'fa-strikethrough' => '', 'fa-stumbleupon' => '', 'fa-stumbleupon-circle' => '', 'fa-subscript' => '', 'fa-subway' => '', 'fa-suitcase' => '', 'fa-sun-o' => '', 'fa-superpowers' => '', 'fa-superscript' => '', 'fa-table' => '', 'fa-tablet' => '', 'fa-tachometer' => '', 'fa-tag' => '', 'fa-tags' => '', 'fa-tasks' => '', 'fa-taxi' => '', 'fa-telegram' => '', 'fa-television' => '', 'fa-tencent-weibo' => '', 'fa-terminal' => '', 'fa-text-height' => '', 'fa-text-width' => '', 'fa-th' => '', 'fa-themeisle' => '', 'fa-thermometer-empty' => '', 'fa-thermometer-full' => '', 'fa-thermometer-half' => '', 'fa-thermometer-quarter' => '', 'fa-thermometer-three-quarters' => '', 'fa-th-large' => '', 'fa-th-list' => '', 'fa-thumbs-down' => '', 'fa-thumbs-o-down' => '', 'fa-thumbs-o-up' => '', 'fa-thumbs-up' => '', 'fa-thumb-tack' => '', 'fa-ticket' => '', 'fa-times' => '', 'fa-times-circle' => '', 'fa-times-circle-o' => '', 'fa-tint' => '', 'fa-toggle-off' => '', 'fa-toggle-on' => '', 'fa-trademark' => '', 'fa-train' => '', 'fa-transgender' => '', 'fa-transgender-alt' => '', 'fa-trash' => '', 'fa-trash-o' => '', 'fa-tree' => '', 'fa-trello' => '', 'fa-tripadvisor' => '', 'fa-trophy' => '', 'fa-truck' => '', 'fa-try' => '', 'fa-tty' => '', 'fa-tumblr' => '', 'fa-tumblr-square' => '', 'fa-twitch' => '', 'fa-twitter' => '', 'fa-twitter-square' => '', 'fa-umbrella' => '', 'fa-underline' => '', 'fa-undo' => '', 'fa-universal-access' => '', 'fa-university' => '', 'fa-unlock' => '', 'fa-unlock-alt' => '', 'fa-upload' => '', 'fa-usb' => '', 'fa-usd' => '', 'fa-user' => '', 'fa-user-circle' => '', 'fa-user-circle-o' => '', 'fa-user-md' => '', 'fa-user-o' => '', 'fa-user-plus' => '', 'fa-users' => '', 'fa-user-secret' => '', 'fa-user-times' => '', 'fa-venus' => '', 'fa-venus-double' => '', 'fa-venus-mars' => '', 'fa-viacoin' => '', 'fa-viadeo' => '', 'fa-viadeo-square' => '', 'fa-video-camera' => '', 'fa-vimeo' => '', 'fa-vimeo-square' => '', 'fa-vine' => '', 'fa-vk' => '', 'fa-volume-control-phone' => '', 'fa-volume-down' => '', 'fa-volume-off' => '', 'fa-volume-up' => '', 'fa-weibo' => '', 'fa-weixin' => '', 'fa-whatsapp' => '', 'fa-wheelchair' => '', 'fa-wheelchair-alt' => '', 'fa-wifi' => '', 'fa-wikipedia-w' => '', 'fa-window-close' => '', 'fa-window-close-o' => '', 'fa-window-maximize' => '', 'fa-window-minimize' => '', 'fa-window-restore' => '', 'fa-windows' => '', 'fa-wordpress' => '', 'fa-wpbeginner' => '', 'fa-wpexplorer' => '', 'fa-wpforms' => '', 'fa-wrench' => '', 'fa-xing' => '', 'fa-xing-square' => '', 'fa-yahoo' => '', 'fa-y-combinator' => '', 'fa-yelp' => '', 'fa-yoast' => '', 'fa-youtube' => '', 'fa-youtube-play' => '', 'fa-youtube-square' => '', ); } /** * Function to back up options to a post.. */ function canuck_backup_options() { $canuck_backup_options_to_post = get_theme_mod( 'canuck_backup_options_to_post' ) ? true : false; if ( true === $canuck_backup_options_to_post ) { $postarray = array(); $content = ''; $content .= '' . PHP_EOL; $content .= PHP_EOL; // General post setup. $postarray['post_title'] = 'Canuck Created Content Backup'; // phpcs:ignore $postarray['post_type'] = 'page'; $postarray['post_status'] = 'private'; $postarray['comment_status'] = 'closed'; $content .= canuck_header_options_backup(); $content .= canuck_footer_options_backup(); $content .= canuck_home_options_backup(); $content .= canuck_custom_widget_content_backup(); $page = get_page_by_title( 'Canuck Created Content Backup' ); if ( isset( $page ) && '' !== $page->ID ) { $postarray['ID'] = $page->ID; $postarray['post_content'] = $content; wp_update_post( $postarray ); } else { $postarray['ID'] = 0; $postarray['post_content'] = $content; wp_insert_post( $postarray ); } } } add_action( 'customize_save_after', 'canuck_backup_options' ); /** * Canuck Option Content: Canuck Headers. */ function canuck_header_options_backup() { $string = ''; $hrs = esc_html( get_theme_mod( 'canuck_contact_hours', '' ) ); $phone = esc_html( get_theme_mod( 'canuck_contact_phone', '' ) ); if ( '' !== $hrs || '' !== $phone ) { $string .= '' . PHP_EOL; if ( '' !== $hrs ) { $string .= $hrs . PHP_EOL; } if ( '' !== $phone ) { $string .= $phone . PHP_EOL; } $string .= '' . PHP_EOL; $string .= PHP_EOL; } return $string; } /** * Canuck Option Content: Canuck Footer. */ function canuck_footer_options_backup() { $string = ''; $cl = wp_kses_post( get_theme_mod( 'canuck_left_copyright_text', '' ) ); $cm = wp_kses_post( get_theme_mod( 'canuck_middle_copyright_text', '' ) ); $cr = wp_kses_post( get_theme_mod( 'canuck_right_copyright_text', '' ) ); if ( '' !== $cl || '' !== $cm || '' !== $cr ) { $string .= '' . PHP_EOL; if ( '' !== $cl ) { $string .= $cl . PHP_EOL; } if ( '' !== $cm ) { $string .= $cm . PHP_EOL; } if ( '' !== $cr ) { $string .= $cr . PHP_EOL; } $string .= '' . PHP_EOL; $string .= PHP_EOL; } return $string; } /** * Canuck Option Content: Canuck Home Page. */ function canuck_home_options_backup() { $string = ''; // Home Feature Options =========================================================================================================================================+===. $new_title = esc_html( get_theme_mod( 'canuck_home_title', '' ) ); $new_desc = esc_html( get_theme_mod( 'canuck_home_description', '' ) ); if ( '' !== $new_title || '' !== $new_desc ) { $string .= '' . PHP_EOL; if ( '' !== $new_title ) { $string .= $new_title . PHP_EOL; } if ( '' !== $new_desc ) { $string .= $new_desc . PHP_EOL; } $string .= '' . PHP_EOL; $string .= PHP_EOL; } // Section 1 Options ===============================================================================================================================================. $content = wp_kses_post( get_theme_mod( 'canuck_section1_text', '' ) ); if ( '' !== $content ) { $string .= '' . PHP_EOL; $string .= $content . PHP_EOL; $string .= '' . PHP_EOL; $string .= PHP_EOL; } // Section 2 Options ===============================================================================================================================================. $title1 = esc_html( get_theme_mod( 'canuck_section2_box1_title', '' ) ); $content1 = wp_kses_post( get_theme_mod( 'canuck_section2_box1_text', '' ) ); $title2 = esc_html( get_theme_mod( 'canuck_section2_box2_title', '' ) ); $content2 = wp_kses_post( get_theme_mod( 'canuck_section2_box2_text', '' ) ); $title3 = esc_html( get_theme_mod( 'canuck_section2_box3_title', '' ) ); $content3 = wp_kses_post( get_theme_mod( 'canuck_section2_box3_text', '' ) ); if ( '' !== $title1 || '' !== $content1 || '' !== $title2 || '' !== $content2 || '' !== $title3 || '' !== $content3 ) { $string .= '' . PHP_EOL; if ( '' !== $title1 ) { $string .= '' . PHP_EOL; $string .= $title1 . PHP_EOL; } if ( '' !== $content1 ) { $string .= '' . PHP_EOL; $string .= $content1 . PHP_EOL; } if ( '' !== $title2 ) { $string .= '' . PHP_EOL; $string .= $title2 . PHP_EOL; } if ( '' !== $content2 ) { $string .= '' . PHP_EOL; $string .= $content2 . PHP_EOL; } if ( '' !== $title3 ) { $string .= '' . PHP_EOL; $string .= $title3 . PHP_EOL; } if ( '' !== $content3 ) { $string .= '' . PHP_EOL; $string .= $content3 . PHP_EOL; } $string .= '' . PHP_EOL; $string .= PHP_EOL; } // Section 3 Options ===============================================================================================================================================. $content = wp_kses_post( get_theme_mod( 'canuck_section3_text', '' ) ); if ( '' !== $content ) { $string .= '' . PHP_EOL; $string .= $content . PHP_EOL; $string .= '' . PHP_EOL; $string .= PHP_EOL; } // Section 4 Options ===============================================================================================================================================. $title1 = esc_html( get_theme_mod( 'canuck_section4_box1_title', '' ) ); $content1 = wp_kses_post( get_theme_mod( 'canuck_section4_box1_text', '' ) ); $title2 = esc_html( get_theme_mod( 'canuck_section4_box2_title', '' ) ); $content2 = wp_kses_post( get_theme_mod( 'canuck_section4_box2_text', '' ) ); if ( '' !== $title1 || '' !== $content1 || '' !== $title2 || '' !== $content2 ) { $string .= '' . PHP_EOL; if ( '' !== $title1 ) { $string .= '' . PHP_EOL; $string .= $title1 . PHP_EOL; } if ( '' !== $content1 ) { $string .= '' . PHP_EOL; $string .= $content1 . PHP_EOL; } if ( '' !== $title2 ) { $string .= '' . PHP_EOL; $string .= $title2 . PHP_EOL; } if ( '' !== $content2 ) { $string .= '' . PHP_EOL; $string .= $content2 . PHP_EOL; } $string .= '' . PHP_EOL; $string .= PHP_EOL; } // Section 5 Options ===============================================================================================================================================. $content = wp_kses_post( get_theme_mod( 'canuck_section5_text', '' ) ); if ( '' !== $content ) { $string .= '' . PHP_EOL; $string .= $content . PHP_EOL; $string .= '' . PHP_EOL; $string .= PHP_EOL; } // Section 6 Options ===============================================================================================================================================. $title1 = esc_html( get_theme_mod( 'canuck_section6_box1_title', '' ) ); $content1 = wp_kses_post( get_theme_mod( 'canuck_section6_box1_text', '' ) ); $title2 = esc_html( get_theme_mod( 'canuck_section6_box2_title', '' ) ); $content2 = wp_kses_post( get_theme_mod( 'canuck_section6_box2_text', '' ) ); if ( '' !== $title1 || '' !== $content1 || '' !== $title2 || '' !== $content2 ) { $string .= '' . PHP_EOL; if ( '' !== $title1 ) { $string .= '' . PHP_EOL; $string .= $title1 . PHP_EOL; } if ( '' !== $content1 ) { $string .= '' . PHP_EOL; $string .= $content1 . PHP_EOL; } if ( '' !== $title2 ) { $string .= '' . PHP_EOL; $string .= $title2 . PHP_EOL; } if ( '' !== $content2 ) { $string .= '' . PHP_EOL; $string .= $content2 . PHP_EOL; } $string .= '' . PHP_EOL; $string .= PHP_EOL; } // Section 7 Options ===============================================================================================================================================. $content = wp_kses_post( get_theme_mod( 'canuck_section7_text', '' ) ); if ( '' !== $content ) { $string .= '' . PHP_EOL; $string .= $content . PHP_EOL; $string .= '' . PHP_EOL; $string .= PHP_EOL; } // Section 8 Options ===============================================================================================================================================. $title1 = esc_html( get_theme_mod( 'canuck_section8_box1_title', '' ) ); $content1 = wp_kses_post( get_theme_mod( 'canuck_section8_box1_text', '' ) ); $title2 = esc_html( get_theme_mod( 'canuck_section8_box2_title', '' ) ); $content2 = wp_kses_post( get_theme_mod( 'canuck_section8_box2_text', '' ) ); $title3 = esc_html( get_theme_mod( 'canuck_section8_box3_title', '' ) ); $content3 = wp_kses_post( get_theme_mod( 'canuck_section8_box3_text', '' ) ); $title4 = esc_html( get_theme_mod( 'canuck_section8_box4_title', '' ) ); $content4 = wp_kses_post( get_theme_mod( 'canuck_section8_box4_text', '' ) ); if ( '' !== $title1 || '' !== $content1 || '' !== $title2 || '' !== $content2 || '' !== $title3 || '' !== $content3 || '' !== $title4 || '' !== $content4 ) { $string .= '' . PHP_EOL; if ( '' !== $title1 ) { $string .= '' . PHP_EOL; $string .= $title1 . PHP_EOL; } if ( '' !== $content1 ) { $string .= '' . PHP_EOL; $string .= $content1 . PHP_EOL; } if ( '' !== $title2 ) { $string .= '' . PHP_EOL; $string .= $title2 . PHP_EOL; } if ( '' !== $content2 ) { $string .= '' . PHP_EOL; $string .= $content2 . PHP_EOL; } if ( '' !== $title3 ) { $string .= '' . PHP_EOL; $string .= $title3 . PHP_EOL; } if ( '' !== $content3 ) { $string .= '' . PHP_EOL; $string .= $content3 . PHP_EOL; } if ( '' !== $title4 ) { $string .= '' . PHP_EOL; $string .= $title4 . PHP_EOL; } if ( '' !== $content4 ) { $string .= '' . PHP_EOL; $string .= $content4 . PHP_EOL; } $string .= '' . PHP_EOL; $string .= PHP_EOL; }// End if(). // Section 9 Options ===============================================================================================================================================. $title = wp_kses_post( get_theme_mod( 'canuck_section9_title', '' ) ); $content = wp_kses_post( get_theme_mod( 'canuck_section9_text', '' ) ); if ( '' !== $title || '' !== $content ) { $string .= '' . PHP_EOL; if ( '' !== $title ) { $string .= '' . PHP_EOL; $string .= $title . PHP_EOL; } if ( '' !== $content ) { $string .= '' . PHP_EOL; $string .= $content . PHP_EOL; } $string .= '' . PHP_EOL; $string .= PHP_EOL; } // Section 10 Options ===============================================================================================================================================. $title = esc_html( get_theme_mod( 'canuck_section10_title', '' ) ); $content = wp_kses_post( get_theme_mod( 'canuck_section10_text', '' ) ); if ( '' !== $title || '' !== $content ) { $string .= '' . PHP_EOL; if ( '' !== $title ) { $string .= '' . PHP_EOL; $string .= $title . PHP_EOL; } if ( '' !== $content ) { $string .= '' . PHP_EOL; $string .= $content . PHP_EOL; } $string .= '' . PHP_EOL; $string .= PHP_EOL; } // Section 11 Options ===============================================================================================================================================. $title = esc_html( get_theme_mod( 'canuck_section11_title', '' ) ); $content = wp_kses_post( get_theme_mod( 'canuck_section11_text', '' ) ); if ( '' !== $title || '' !== $content ) { $string .= '' . PHP_EOL; if ( '' !== $title ) { $string .= '' . PHP_EOL; $string .= $title . PHP_EOL; } if ( '' !== $content ) { $string .= '' . PHP_EOL; $string .= $content . PHP_EOL; } $string .= '' . PHP_EOL; $string .= PHP_EOL; } // Section 12 Options ===============================================================================================================================================. $title = wp_kses_post( get_theme_mod( 'canuck_section12_title', '' ) ); $content = wp_kses_post( get_theme_mod( 'canuck_section12_text', '' ) ); if ( '' !== $title || '' !== $content ) { $string .= '' . PHP_EOL; if ( '' !== $title ) { $string .= '' . PHP_EOL; $string .= $title . PHP_EOL; } if ( '' !== $content ) { $string .= '' . PHP_EOL; $string .= $content . PHP_EOL; } $string .= '' . PHP_EOL; $string .= PHP_EOL; } // Section 13 Options ===============================================================================================================================================. $title = wp_kses_post( get_theme_mod( 'canuck_section13_title', '' ) ); $content = wp_kses_post( get_theme_mod( 'canuck_section13_text', '' ) ); if ( '' !== $title || '' !== $content ) { $string .= '' . PHP_EOL; if ( '' !== $title ) { $string .= '' . PHP_EOL; $string .= $title . PHP_EOL; } if ( '' !== $content ) { $string .= '' . PHP_EOL; $string .= $content . PHP_EOL; } $string .= '' . PHP_EOL; $string .= PHP_EOL; } return $string; } /** * Canuck Option Content: Custom Widget Content Creation. */ function canuck_custom_widget_content_backup() { $string = ''; $widget_authors = get_option( 'widget_canuck_author_widget' ); $count = 1; $lastone = count( $widget_authors ); foreach ( $widget_authors as $widget_author ) { if ( $count !== $lastone ) { $string .= '' . PHP_EOL; $string .= '' . PHP_EOL; $string .= esc_html( $widget_author['canuck_author_title'] ) . PHP_EOL; $string .= '' . PHP_EOL; $string .= esc_html( $widget_author['canuck_author_name'] ) . PHP_EOL; $string .= '' . PHP_EOL; $string .= esc_html( $widget_author['canuck_author_email'] ) . PHP_EOL; $string .= '' . PHP_EOL; $string .= esc_url( $widget_author['canuck_author_website'] ) . PHP_EOL; $string .= '' . PHP_EOL; $string .= wp_kses_post( $widget_author['canuck_author_bio'] ) . PHP_EOL; $string .= '' . PHP_EOL; $string .= PHP_EOL; $count++; } } return $string; } /** * Function to import parent theme Canuck custom options. */ function canuck_import_parent_options() { $canuck_import_parent_options = get_theme_mod( 'canuck_import_parent_theme_options' ) ? true : false; if ( true === $canuck_import_parent_options ) { $options_setup = canuck_get_customizer_option_partameters(); $parent_theme_mods = get_option( 'theme_mods_canuck' ); // Start by turning off the switch to import options. set_theme_mod( 'canuck_import_parent_theme_options', false ); // Only update if the option in the child theme is not set. foreach ( $parent_theme_mods as $option_slug => $option_value ) { if ( ! get_theme_mod( $option_slug ) ) { set_theme_mod( $option_slug, $option_value ); } } } } add_action( 'customize_save_after', 'canuck_import_parent_options' ); /** * ========================================================================================================= * choices arrays for option select elements * ========================================================================================================= */ /** * Flex slider pause time choices. */ function canuck_flex_slider_pause_choices() { return array( '4000' => '4000', '5000' => '5000', '6000' => '6000', '7000' => '7000', '8000' => '8000', '9000' => '9000', '10000' => '10000', '11000' => '11000', '12000' => '12000', ); } /** * Flex slider transition time choices. */ function canuck_flex_slider_transition_choices() { return array( '500' => '500', '600' => '600', '750' => '750', '1000' => '1000', '1250' => '1250', '1500' => '1500', '1750' => '1750', '2000' => '2000', ); } /** * Page layout choices. */ function canuck_page_layout_choices() { return array( 'left_sidebar' => get_template_directory_uri() . '/images/A-C.png', 'right_sidebar' => get_template_directory_uri() . '/images/C-A.png', 'both_sidebars' => get_template_directory_uri() . '/images/A-C-B.png', 'fullwidth' => get_template_directory_uri() . '/images/FW.png', ); } /** * Sidebar choices. */ function canuck_sidebar_choices() { return array( 'default-a' => esc_html__( 'Default Sidebar A', 'canuck' ), 'default-b' => esc_html__( 'Default Sidebar B', 'canuck' ), 'blog-a' => esc_html__( 'Blog Sidebar A', 'canuck' ), 'blog-b' => esc_html__( 'Blog Sidebar B', 'canuck' ), 'sidebar-1' => esc_html__( 'Extra Sidebar 1', 'canuck' ), 'sidebar-2' => esc_html__( 'Extra Sidebar 2', 'canuck' ), 'sidebar-3' => esc_html__( 'Extra Sidebar 3', 'canuck' ), 'sidebar-4' => esc_html__( 'Extra Sidebar 4', 'canuck' ), 'sidebar-5' => esc_html__( 'Extra Sidebar 5', 'canuck' ), 'sidebar-6' => esc_html__( 'Extra Sidebar 6', 'canuck' ), ); } /** * Font choices. */ function canuck_font_choices() { return array( 'default' => esc_html__( 'default', 'canuck' ), 'Arial' => esc_html__( 'Arial', 'canuck' ), 'Artifika' => esc_html__( 'Artifika', 'canuck' ), 'Arvo' => esc_html__( 'Arvo', 'canuck' ), 'Book Antiqua' => esc_html__( 'Book Antiqua', 'canuck' ), 'Bubbler One' => esc_html__( 'Bubbler One', 'canuck' ), 'Cabin' => esc_html__( 'Cabin', 'canuck' ), 'Cambria' => esc_html__( 'Cambria', 'canuck' ), 'Comic Sans MS' => esc_html__( 'Comic Sans MS', 'canuck' ), 'Corben' => esc_html__( 'Corben', 'canuck' ), 'Droid Sans' => esc_html__( 'Droid Sans', 'canuck' ), 'Droid Serif' => esc_html__( 'Droid Serif', 'canuck' ), 'Great Vibes' => esc_html__( 'Great Vibes', 'canuck' ), 'Georgia' => esc_html__( 'Georgia', 'canuck' ), 'Josefin Sans' => esc_html__( 'Josefin Sans', 'canuck' ), 'Josefin Slab' => esc_html__( 'Josefin Slab', 'canuck' ), 'Karla' => esc_html__( 'Karla', 'canuck' ), 'Lato' => esc_html__( 'Lato', 'canuck' ), 'Lobster' => esc_html__( 'Lobster', 'canuck' ), 'Old Standard TT' => esc_html__( 'Old Standard TT', 'canuck' ), 'Open Sans' => esc_html__( 'Open Sans', 'canuck' ), 'Playfair Display SC' => esc_html__( 'Playfair Display SC', 'canuck' ), 'PT Sans' => esc_html__( 'PT Sans', 'canuck' ), 'PT Sans' => esc_html__( 'PT Sans', 'canuck' ), 'PT Serif' => esc_html__( 'PT Serif', 'canuck' ), 'Puritan' => esc_html__( 'Puritan', 'canuck' ), 'Raleway' => esc_html__( 'Raleway', 'canuck' ), 'Rock Salt' => esc_html__( 'Rock Salt', 'canuck' ), 'Tahoma' => esc_html__( 'Tahoma', 'canuck' ), 'Times New Roman' => esc_html__( 'Times New Roman', 'canuck' ), 'Titillium Web' => esc_html__( 'Titillium Web', 'canuck' ), 'Trebuchet MS' => esc_html__( 'Trebuchet MS', 'canuck' ), 'Ubuntu' => esc_html__( 'Ubuntu', 'canuck' ), 'Verdana' => esc_html__( 'Verdana', 'canuck' ), 'Vollkorn' => esc_html__( 'Vollkorn', 'canuck' ), ); } /** * Choices */ function canuck_home_area_choices() { return array( 'Section 1' => esc_html__( 'Section 1 - one column and button', 'canuck' ), 'Section 2' => esc_html__( 'Section 2 - three column service box', 'canuck' ), 'Section 3' => esc_html__( 'Section 3 - one column and button', 'canuck' ), 'Section 4' => esc_html__( 'Section 4 - two column service box', 'canuck' ), 'Section 5' => esc_html__( 'Section 5 - one column and button', 'canuck' ), 'Section 6' => esc_html__( 'Section 6 - two column service box', 'canuck' ), 'Section 7' => esc_html__( 'Section 7 - one column and button', 'canuck' ), 'Section 8' => esc_html__( 'Section 8 - four column service box', 'canuck' ), 'Section 9' => esc_html__( 'Section 9 - portfolio', 'canuck' ), 'Section 10' => esc_html__( 'Section 10 - image left, content right', 'canuck' ), 'Section 11' => esc_html__( 'Section 11 - content left, image right', 'canuck' ), 'Section 12' => esc_html__( 'Section 12 - carousel medium size', 'canuck' ), 'Section 13' => esc_html__( 'Section 13 - carousel small size', 'canuck' ), 'none' => esc_html__( 'none', 'canuck' ), ); } /** * Choices */ function canuck_opacity_range_choices() { return array( 'min' => 0, 'max' => 1, 'step' => 0.1, 'class' => 'range1-class', 'style' => 'color: #B26969', ); } /** * ========================================================================================================= * Sanitization callback functions * ========================================================================================================= */ /** * Select sanitization callback * * - Sanitization: select * - Control: select, radio * * Sanitization callback for 'select' and 'radio' type controls. This callback sanitizes `$input` * as a slug, and then validates `$input` against the choices defined for the control. * * @see sanitize_key() https://developer.wordpress.org/reference/functions/sanitize_key/ * @see $wp_customize->get_control() https://developer.wordpress.org/reference/classes/wp_customize_manager/get_control/ * * @param string $input Slug to sanitize. * @param WP_Customize_Setting $setting Setting instance. * @return string Sanitized slug if it is a valid choice; otherwise, the setting default. * @link https://github.com/WPTRT/code-examples/blob/master/customizer/sanitization-callbacks.php * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, v2 (or newer) */ function canuck_sanitize_select( $input, $setting ) { // Ensure input is a slug. $input = sanitize_key( $input ); // Get list of choices from the control associated with the setting. $choices = $setting->manager->get_control( $setting->id )->choices; // If the input is a valid key, return it; otherwise, return the default. return ( array_key_exists( $input, $choices ) ? $input : $setting->default ); } /** * Whitelist font choices. * * @param string $input Slug to sanitize. */ function canuck_sanitize_font_select( $input ) { $choices = array( 'default', 'Arial', 'Artifika', 'Arvo', 'Book Antiqua', 'Bubbler One', 'Cabin', 'Cambria', 'Comic Sans MS', 'Corben', 'Droid Sans', 'Droid Serif', 'Great Vibes', 'Georgia', 'Josefin Sans', 'Josefin Slab', 'Karla', 'Lato', 'Lobster', 'Old Standard TT', 'Open Sans', 'Playfair Display SC', 'PT Sans', 'PT Serif', 'Puritan', 'Raleway', 'Rock Salt', 'Tahoma', 'Times New Roman', 'Titillium Web', 'Trebuchet MS', 'Ubuntu', 'Verdana', 'Vollkorn', ); if ( in_array( $input, $choices, true ) ) { return $input; } else { return 'Open Sans'; // phpcs:ignore } } /** * Whitelist flex slider effect choices. * * @param string $input Slug to sanitize. */ function canuck_sanitize_flex_effect( $input ) { $choices = array( 'slide', 'fade', ); if ( in_array( $input, $choices, true ) ) { return $input; } else { return 'fade'; } } /** * Whitelist flex slider pause time choices. * * @param string $input Slug to sanitize. */ function canuck_sanitize_flex_pause( $input ) { $choices = array( '4000', '5000', '6000', '7000', '8000', '9000', '10000', '11000', '12000', ); if ( in_array( $input, $choices, true ) ) { return $input; } else { return '5000'; } } /** * Whitelist fex slider transform time choices. * * @param string $input Slug to sanitize. */ function canuck_sanitize_flex_trans( $input ) { $choices = array( '500', '600', '750', '1000', '1250', '1500', '1750', '2000', ); if ( in_array( $input, $choices, true ) ) { return $input; } else { return '600'; } } /** * Whitelist layout choices. * * @param string $input Slug to sanitize. */ function canuck_sanitize_layout( $input ) { $choices = array( 'left_sidebar', 'right_sidebar', 'both_sidebars', 'fullwidth', ); if ( in_array( $input, $choices, true ) ) { return $input; } else { return 'right_sidebar'; } } /** * Whitelist feature choices. * * @param string $input Slug to sanitize. */ function canuck_sanitize_feature( $input ) { $choices = array( 'background_image', 'button_nav', 'fullsize', 'widgetized', 'no_feature', ); if ( in_array( $input, $choices, true ) ) { return $input; } else { return 'background_image'; } } /** * Whitelist home area section choices. * * @param string $input Slug to sanitize. */ function canuck_sanitize_homearea_select( $input ) { $choices = array( 'Section 1', 'Section 2', 'Section 3', 'Section 4', 'Section 5', 'Section 6', 'Section 7', 'Section 8', 'Section 9', 'Section 10', 'Section 11', 'Section 12', 'Section 13', 'none', ); if ( in_array( $input, $choices, true ) ) { return $input; } else { return 'none'; } } /** * Whitelist useage choices. * * @param string $input Slug to sanitize. */ function canuck_sanitize_useage( $input ) { $choices = array( 'normal', 'shortcode', 'widgetized', ); if ( in_array( $input, $choices, true ) ) { return $input; } else { return 'normal'; } } /** * Whitelist blog choices. * * @param string $input Slug to sanitize. */ function canuck_sanitize_blog_style( $input ) { $choices = array( 'top_feature', 'side_feature', 'two_column_grid', 'three_column_grid', 'two_stamp', 'three_stamp', ); if ( in_array( $input, $choices, true ) ) { return $input; } else { return 'top_feature'; } } /** * Whitelist font display choices. * * @param string $input Slug to sanitize. */ function canuck_sanitize_font_display( $input ) { $choices = array( 'auto', 'block', 'swap', 'fallback', 'optional', ); if ( in_array( $input, $choices, true ) ) { return $input; } else { return 'auto'; } } /** * Load customizer-control.js. */ function canuck_customize_control_js() { wp_enqueue_script( 'canuck_customizer_control', get_template_directory_uri() . '/js/kha-customizer-controls.js', array( 'customize-controls', 'jquery' ), null, true ); } add_action( 'customize_controls_enqueue_scripts', 'canuck_customize_control_js' );