public function setSections() { $image_sizes = kt_get_image_sizes(); $this->sections[] = array('id' => 'general', 'title' => esc_html__('General', 'adroit'), 'icon' => 'fa fa-cogs'); $this->sections[] = array('id' => 'general_layout', 'title' => esc_html__('General', 'adroit'), 'subsection' => true, 'fields' => array(array('id' => 'layout', 'type' => 'select', 'title' => esc_html__('Site boxed mod(?)', 'adroit'), 'subtitle' => esc_html__("Please choose page layout", 'adroit'), 'options' => array('full' => esc_html__('Full width Layout', 'adroit'), 'boxed' => esc_html__('Boxed Layout', 'adroit')), 'default' => 'full', 'clear' => false), array('id' => 'archive_placeholder', 'type' => 'media', 'url' => true, 'compiler' => true, 'title' => esc_html__('Placeholder', 'adroit'), 'subtitle' => esc_html__("Placeholder for none image", 'adroit')))); /** * Logos **/ $this->sections[] = array('id' => 'logos_favicon', 'title' => esc_html__('Logos', 'adroit'), 'desc' => '', 'subsection' => true, 'fields' => array(array('id' => 'logos_heading', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Logos settings', 'adroit') . '</div>', 'full_width' => true), array('id' => 'logo', 'type' => 'media', 'url' => true, 'compiler' => true, 'title' => esc_html__('Logo', 'adroit')), array('id' => 'logo_retina', 'type' => 'media', 'url' => true, 'compiler' => true, 'title' => esc_html__('Logo (Retina Version @2x)', 'adroit'), 'desc' => esc_html__('Select an image file for the retina version of the logo. It should be exactly 2x the size of main logo.', 'adroit')))); /** * Woocommerce **/ $this->sections[] = array('id' => 'woocommerce', 'title' => esc_html__('Woocommerce', 'wingman'), 'desc' => '', 'icon' => 'icon-Full-Cart', 'fields' => array(array('id' => 'shop_products_heading', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Shop Products settings', 'wingman') . '</div>', 'full_width' => true), array('id' => 'shop_page_header', 'type' => 'switch', 'title' => esc_html__('Show Page header', 'wingman'), 'desc' => esc_html__('Show page header or?.', 'wingman'), "default" => 1, 'on' => esc_html__('Enabled', 'wingman'), 'off' => esc_html__('Disabled', 'wingman')), array('id' => 'shop_sidebar', 'type' => 'select', 'title' => esc_html__('Shop: Sidebar configuration', 'wingman'), 'subtitle' => esc_html__("Please choose sidebar for shop post", 'wingman'), 'options' => array('full' => esc_html__('No sidebars', 'wingman'), 'left' => esc_html__('Left Sidebar', 'wingman'), 'right' => esc_html__('Right Layout', 'wingman')), 'default' => 'left', 'clear' => false), array('id' => 'shop_sidebar_left', 'type' => 'select', 'title' => esc_html__('Shop: Sidebar left area', 'wingman'), 'subtitle' => esc_html__("Please choose left sidebar ", 'wingman'), 'data' => 'sidebars', 'default' => 'primary-widget-area', 'required' => array('shop_sidebar', 'equals', 'left'), 'clear' => false), array('id' => 'shop_sidebar_right', 'type' => 'select', 'title' => esc_html__('Shop: Sidebar right area', 'wingman'), 'subtitle' => esc_html__("Please choose left sidebar ", 'wingman'), 'data' => 'sidebars', 'default' => 'primary-widget-area', 'required' => array('shop_sidebar', 'equals', 'right'), 'clear' => false), array('id' => 'shop_products_layout', 'type' => 'select', 'title' => esc_html__('Shop: Products default Layout', 'wingman'), 'options' => array('grid' => esc_html__('Grid', 'wingman'), 'lists' => esc_html__('Lists', 'wingman')), 'default' => 'grid'), array('id' => 'shop_gird_cols', 'type' => 'select', 'title' => esc_html__('Number column to display width gird mod', 'wingman'), 'options' => array('2' => 2, '3' => 3, '4' => 4), 'default' => 3), array('id' => 'shop_products_effect', 'type' => 'select', 'title' => esc_html__('Shop product effect', 'wingman'), 'options' => array('1' => esc_html__('Effect 1', 'wingman'), '2' => esc_html__('Effect 2', 'wingman'), '3' => esc_html__('Effect 3', 'wingman')), 'default' => '1'), array('id' => 'loop_shop_per_page', 'type' => 'text', 'title' => esc_html__('Number of products displayed per page', 'wingman'), 'default' => '12'), array('id' => 'divide_id', 'type' => 'divide'), array('id' => 'shop_single_product', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Single Product settings', 'wingman') . '</div>', 'full_width' => true), array('id' => 'product_page_header', 'type' => 'switch', 'title' => esc_html__('Show Page header', 'wingman'), 'desc' => esc_html__('Show page header or?.', 'wingman'), "default" => 1, 'on' => esc_html__('Enabled', 'wingman'), 'off' => esc_html__('Disabled', 'wingman')), array('id' => 'product_sidebar', 'type' => 'select', 'title' => esc_html__('Product: Sidebar configuration', 'wingman'), 'subtitle' => esc_html__("Please choose single product page ", 'wingman'), 'options' => array('full' => esc_html__('No sidebars', 'wingman'), 'left' => esc_html__('Left Sidebar', 'wingman'), 'right' => esc_html__('Right Layout', 'wingman')), 'default' => 'full', 'clear' => false), array('id' => 'product_sidebar_left', 'type' => 'select', 'title' => esc_html__('Product: Sidebar left area', 'wingman'), 'subtitle' => esc_html__("Please choose left sidebar ", 'wingman'), 'data' => 'sidebars', 'default' => 'primary-widget-area', 'required' => array('product_sidebar', 'equals', 'left'), 'clear' => false), array('id' => 'product_sidebar_right', 'type' => 'select', 'title' => esc_html__('Product: Sidebar right area', 'wingman'), 'subtitle' => esc_html__("Please choose left sidebar ", 'wingman'), 'data' => 'sidebars', 'default' => 'primary-widget-area', 'required' => array('product_sidebar', 'equals', 'right'), 'clear' => false), array('id' => 'divide_id', 'type' => 'divide'), array('id' => 'shop_single_product', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Shop Product settings', 'wingman') . '</div>', 'full_width' => true), array('id' => 'time_product_new', 'type' => 'text', 'title' => esc_html__('Time Product New', 'wingman'), 'default' => '30', 'desc' => esc_html__('Time Product New ( unit: days ).', 'wingman')))); /** * Page header **/ $this->sections[] = array('id' => 'page_header_section', 'title' => esc_html__('Page header', 'wingman'), 'desc' => '', 'icon' => 'icon-Add-SpaceBeforeParagraph', 'fields' => array(array('id' => 'title_heading', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Page header settings', 'wingman') . '</div>', 'full_width' => true), array('id' => 'title_layout', 'type' => 'select', 'title' => esc_html__('Page header layout', 'wingman'), 'subtitle' => esc_html__('Select your preferred Page header layout.', 'wingman'), 'options' => array('sides' => esc_html__('Sides', 'wingman'), 'centered' => esc_html__('Centered', 'wingman')), 'default' => 'centered', 'clear' => false), array('id' => 'title_align', 'type' => 'select', 'title' => esc_html__('Page header align', 'wingman'), 'subtitle' => esc_html__('Please select page header align', 'wingman'), 'options' => array('left' => esc_html__('Left', 'wingman'), 'center' => esc_html__('Center', 'wingman'), 'right' => esc_html__('Right', 'wingman')), 'default' => 'center', 'clear' => false, 'desc' => esc_html__('Align don\'t support for layout Sides', 'wingman')), array('id' => 'title_separator', 'type' => 'switch', 'title' => esc_html__('Separator bettwen title and subtitle', 'wingman'), 'default' => true, 'on' => esc_html__('Enabled', 'wingman'), 'off' => esc_html__('Disabled', 'wingman')))); /** * General page * */ $this->sections[] = array('title' => esc_html__('Page', 'adroit'), 'desc' => esc_html__('General Page Options', 'adroit'), 'icon' => 'fa fa-suitcase', 'fields' => array(array('id' => 'show_page_header', 'type' => 'switch', 'title' => esc_html__('Show Page header', 'adroit'), 'desc' => esc_html__('Show page header or?.', 'adroit'), "default" => 1, 'on' => esc_html__('Enabled', 'adroit'), 'off' => esc_html__('Disabled', 'adroit')), array('id' => 'page_sidebar', 'type' => 'select', 'title' => esc_html__('Sidebar configuration', 'adroit'), 'subtitle' => esc_html__("Please choose archive page ", 'adroit'), 'options' => array('' => esc_html__('No sidebars', 'adroit'), 'left' => esc_html__('Left Sidebar', 'adroit'), 'right' => esc_html__('Right Layout', 'adroit')), 'default' => 'right', 'clear' => false), array('id' => 'page_sidebar_left', 'type' => 'select', 'title' => esc_html__('Sidebar left area', 'adroit'), 'subtitle' => esc_html__("Please choose default layout", 'adroit'), 'data' => 'sidebars', 'default' => 'primary-widget-area', 'required' => array('page_sidebar', 'equals', 'left')), array('id' => 'page_sidebar_right', 'type' => 'select', 'title' => esc_html__('Sidebar right area', 'adroit'), 'subtitle' => esc_html__("Please choose page layout", 'adroit'), 'data' => 'sidebars', 'default' => 'primary-widget-area', 'required' => array('page_sidebar', 'equals', 'right')), array('id' => 'show_page_comment', 'type' => 'switch', 'title' => esc_html__('Show comments on page ?', 'adroit'), 'desc' => esc_html__('Show or hide the readmore button.', 'adroit'), "default" => 1, 'on' => esc_html__('Enabled', 'adroit'), 'off' => esc_html__('Disabled', 'adroit')))); /** * General Blog * */ $this->sections[] = array('title' => esc_html__('Blog', 'adroit'), 'icon' => 'fa fa-pencil', 'desc' => esc_html__('General Blog Options', 'adroit')); /** * Archive settings **/ $this->sections[] = array('id' => 'archive_section', 'title' => esc_html__('Archive', 'adroit'), 'desc' => 'Archive post settings', 'subsection' => true, 'fields' => array(array('id' => 'archive_heading', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Archive post general', 'adroit') . '</div>', 'full_width' => true), array('id' => 'archive_page_header', 'type' => 'switch', 'title' => esc_html__('Show Page header', 'adroit'), 'desc' => esc_html__('Show page header or?.', 'adroit'), "default" => 1, 'on' => esc_html__('Enabled', 'adroit'), 'off' => esc_html__('Disabled', 'adroit')), array('id' => 'archive_sidebar', 'type' => 'select', 'title' => esc_html__('Sidebar configuration', 'adroit'), 'subtitle' => esc_html__("Please choose archive page ", 'adroit'), 'options' => array('full' => esc_html__('No sidebars', 'adroit'), 'left' => esc_html__('Left Sidebar', 'adroit'), 'right' => esc_html__('Right Layout', 'adroit')), 'default' => 'right', 'clear' => false), array('id' => 'archive_sidebar_left', 'type' => 'select', 'title' => esc_html__('Sidebar left area', 'adroit'), 'subtitle' => esc_html__("Please choose left sidebar ", 'adroit'), 'data' => 'sidebars', 'default' => 'primary-widget-area', 'required' => array('archive_sidebar', 'equals', 'left'), 'clear' => false), array('id' => 'archive_sidebar_right', 'type' => 'select', 'title' => esc_html__('Sidebar right area', 'adroit'), 'subtitle' => esc_html__("Please choose left sidebar ", 'adroit'), 'data' => 'sidebars', 'default' => 'primary-widget-area', 'required' => array('archive_sidebar', 'equals', 'right'), 'clear' => false), array('type' => 'divide', 'id' => 'divide_fake'), array('id' => 'archive_loop_style', 'type' => 'select', 'title' => esc_html__('Loop Style', 'adroit'), 'desc' => '', 'options' => array('classic' => esc_html__('classic', 'adroit'), 'list' => esc_html__('List', 'adroit'), 'grid' => esc_html__('Grid', 'adroit'), 'masonry' => esc_html__('Masonry', 'adroit'), 'zigzag' => esc_html__('ZigZag', 'adroit')), 'default' => 'grid'), array('id' => 'archive_columns', 'type' => 'select', 'title' => esc_html__('Columns on desktop', 'adroit'), 'desc' => '', 'options' => array('2' => esc_html__('2 columns', 'js_composer'), '3' => esc_html__('3 columns', 'js_composer'), '4' => esc_html__('4 columns', 'js_composer')), 'default' => '2', 'required' => array('archive_loop_style', 'equals', array('grid', 'masonry'))), array('type' => 'divide', 'id' => 'divide_fake'), array('id' => 'archive_posts_per_page', 'type' => 'text', 'title' => esc_html__('Posts per page', 'adroit'), 'desc' => esc_html__("Insert the total number of pages.", 'adroit'), 'default' => 14), array('id' => 'archive_excerpt_length', 'type' => 'text', 'title' => esc_html__('Excerpt Length', 'adroit'), 'desc' => esc_html__("Insert the number of words you want to show in the post excerpts.", 'adroit'), 'default' => 35), array('id' => 'archive_pagination', 'type' => 'select', 'title' => esc_html__('Pagination Type', 'adroit'), 'desc' => esc_html__('Select the pagination type.', 'adroit'), 'options' => array('normal' => esc_html__('Normal pagination', 'adroit'), 'button' => esc_html__('Next - Previous button', 'adroit')), 'default' => 'normal'))); /** * Single post settings **/ $this->sections[] = array('id' => 'post_single_section', 'title' => esc_html__('Single Post', 'adroit'), 'desc' => 'Single post settings', 'subsection' => true, 'fields' => array(array('id' => 'blog_single_heading', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Single post general', 'adroit') . '</div>', 'full_width' => true), array('id' => 'single_layout', 'type' => 'image_select', 'compiler' => true, 'title' => esc_html__('Single layout', 'adroit'), 'subtitle' => esc_html__('Please choose header layout', 'adroit'), 'options' => array(1 => array('alt' => esc_html__('Layout 1', 'adroit'), 'img' => KT_FW_IMG . 'single/layout-1.jpg'), 2 => array('alt' => esc_html__('Layout 2', 'adroit'), 'img' => KT_FW_IMG . 'single/layout-2.jpg'), 3 => array('alt' => esc_html__('Layout 3', 'adroit'), 'img' => KT_FW_IMG . 'single/layout-3.jpg'), 4 => array('alt' => esc_html__('Layout 4', 'adroit'), 'img' => KT_FW_IMG . 'single/layout-4.jpg'), 5 => array('alt' => esc_html__('Layout 5', 'adroit'), 'img' => KT_FW_IMG . 'single/layout-5.jpg'), 6 => array('alt' => esc_html__('Layout 6', 'adroit'), 'img' => KT_FW_IMG . 'single/layout-6.jpg')), 'default' => 1), array('type' => 'divide', 'id' => 'divide_fake'), array('id' => 'single_image_size', 'type' => 'select', 'options' => $image_sizes, 'title' => esc_html__('Image size', 'adroit'), 'desc' => esc_html__("Select image size.", 'adroit'), 'default' => 'full'), array('type' => 'divide', 'id' => 'divide_fake'), array('id' => 'single_share_box', 'type' => 'switch', 'title' => esc_html__('Share box in posts', 'adroit'), 'desc' => esc_html__('Show share box in blog posts.', 'adroit'), "default" => 1, 'on' => esc_html__('Enabled', 'adroit'), 'off' => esc_html__('Disabled', 'adroit')), array('id' => 'single_next_prev', 'type' => 'switch', 'title' => esc_html__('Previous & next buttons', 'adroit'), 'desc' => esc_html__('Show Previous & next buttons in blog posts.', 'adroit'), "default" => 1, 'on' => esc_html__('Enabled', 'adroit'), 'off' => esc_html__('Disabled', 'adroit')), array('id' => 'single_author', 'type' => 'switch', 'title' => esc_html__('Author info in posts', 'adroit'), 'desc' => esc_html__('Show author info in blog posts.', 'adroit'), "default" => 1, 'on' => esc_html__('Enabled', 'adroit'), 'off' => esc_html__('Disabled', 'adroit')), array('id' => 'single_related', 'type' => 'switch', 'title' => esc_html__('Related posts', 'adroit'), 'desc' => esc_html__('Show related posts in blog posts.', 'adroit'), "default" => 0, 'on' => esc_html__('Enabled', 'adroit'), 'off' => esc_html__('Disabled', 'adroit')), array('id' => 'single_related_type', 'type' => 'select', 'title' => esc_html__('Related Query Type', 'adroit'), 'options' => array('categories' => esc_html__('Categories', 'adroit'), 'tags' => esc_html__('Tags', 'adroit'), 'author' => esc_html__('Author', 'adroit')), 'required' => array('single_related', 'equals', '1'), 'default' => 'categories'))); /** * Advanced **/ $this->sections[] = array('id' => 'advanced', 'title' => esc_html__('Advanced', 'adroit'), 'desc' => '', 'icon' => 'fa fa-cog'); /** * Advanced Social Share **/ $this->sections[] = array('id' => 'share_section', 'title' => esc_html__('Social Share', 'adroit'), 'desc' => '', 'subsection' => true, 'fields' => array(array('id' => 'social_share', 'type' => 'sortable', 'mode' => 'checkbox', 'title' => esc_html__('Social Share', 'adroit'), 'desc' => esc_html__('Reorder and Enable/Disable Social Share Buttons.', 'adroit'), 'options' => array('facebook' => esc_html__('Facebook', 'adroit'), 'twitter' => esc_html__('Twitter', 'adroit'), 'google_plus' => esc_html__('Google+', 'adroit'), 'pinterest' => esc_html__('Pinterest', 'adroit'), 'linkedin' => esc_html__('Linkedin', 'adroit'), 'tumblr' => esc_html__('Tumblr', 'adroit'), 'mail' => esc_html__('Mail', 'adroit')), 'default' => array('facebook' => true, 'twitter' => true, 'google_plus' => true, 'pinterest' => false, 'linkedin' => false, 'tumblr' => false, 'mail' => false)))); }
/** * Image sizes. * */ function kt_image_sizes_settings_field($settings, $value) { $dependency = ''; $param_name = isset($settings['param_name']) ? $settings['param_name'] : ''; $type = isset($settings['type']) ? $settings['type'] : ''; $class = isset($settings['class']) ? $settings['class'] : ''; $custom = isset($settings['custom']) ? $settings['custom'] : false; $posts_fields = array(); $sizes = kt_get_image_sizes(true, $custom); foreach ($sizes as $key => $size) { $selected = $value == $key ? ' selected="selected"' : ''; $posts_fields[] = "<option value='{$key}' {$selected}>" . $size . "</option>"; } $output = '<select class="wpb_vc_param_value ' . $param_name . ' ' . $type . ' ' . $class . '" name="' . $param_name . '" ' . $dependency . '>' . implode($posts_fields) . '</select>'; return $output; }
public function form($instance) { //Defaults $instance = wp_parse_args((array) $instance, array('title' => esc_html__('About me', 'adroit'), 'target' => '_self', 'attachment' => '', 'size' => 'kt_recent_posts', 'description' => '')); $title = strip_tags($instance['title']); $attachment = esc_attr($instance['attachment']); $preview = false; $img_preview = ""; if ($instance['attachment']) { $file = kt_get_thumbnail_attachment($instance['attachment'], 'full'); $preview = true; $img_preview = $file['url']; } $value = isset($instance['value']) ? $instance['value'] : ''; ?> <p><label for="<?php echo $this->get_field_id('title'); ?> "><?php esc_html_e('Title:', 'adroit'); ?> </label> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?> " name="<?php echo $this->get_field_name('title'); ?> " type="text" value="<?php echo esc_attr($title); ?> " /></p> <div class="wrapper_kt_image_upload"> <p style="text-align: center;"> <input type="button" style="width: 100%; padding: 10px; height: auto;" class="button kt_image_upload" value="<?php esc_attr(esc_html_e('Select your image', 'adroit')); ?> " /> <input class="widefat kt_image_attachment" id="<?php echo $this->get_field_id('attachment'); ?> " name="<?php echo $this->get_field_name('attachment'); ?> " type="hidden" value="<?php echo esc_attr($attachment); ?> " /> </p> <p class="kt_image_preview" style="<?php if ($preview) { echo "display: block;"; } ?> "> <img src="<?php echo esc_url($img_preview); ?> " alt="" class="kt_image_preview_img" /> </p> </div> <p style="clear: both;"> <?php $sizes = kt_get_image_sizes(); $sizes['full'] = array(); ?> <label for="<?php echo $this->get_field_id('size'); ?> "><?php esc_html_e('Image size:', 'adroit'); ?> </label> <select name="<?php echo $this->get_field_name('size'); ?> " id="<?php echo $this->get_field_id('size'); ?> " class="widefat"> <?php foreach ($sizes as $key => $size) { ?> <?php $option_text = array(); $option_text[] = ucfirst($key); if (isset($size['width'])) { $option_text[] = '(' . $size['width'] . ' x ' . $size['height'] . ')'; } if (isset($size['crop']) && $size['crop']) { $option_text[] = esc_html__('Crop', 'adroit'); } ?> <option value="<?php echo esc_attr($key); ?> "<?php selected($instance['size'], $key); ?> > <?php echo implode(' - ', $option_text); ?> </option> <?php } ?> </select> </p> <p> <label for="<?php echo $this->get_field_id('description'); ?> "><?php esc_html_e('Description:', 'adroit'); ?> </label> <textarea class="widefat" rows="5" cols="20" id="<?php echo $this->get_field_id('description'); ?> " name="<?php echo $this->get_field_name('description'); ?> "><?php echo esc_textarea($instance['description']); ?> </textarea></p> <?php $socials = array('facebook' => 'fa fa-facebook', 'twitter' => 'fa fa-twitter', 'pinterest' => 'fa fa-pinterest-p', 'dribbble' => 'fa fa-dribbble', 'vimeo' => 'fa fa-vimeo-square', 'tumblr' => 'fa fa-tumblr', 'skype' => 'fa fa-skype', 'linkedin' => 'fa fa-linkedin', 'googleplus' => 'fa fa-google-plus', 'youtube' => 'fa fa-youtube-play', 'instagram' => 'fa fa-instagram'); $arr_val = $value ? explode(',', $value) : array(); ?> <div class="kt-socials-options"> <ul class="kt-socials-lists clearfix"> <?php foreach ($socials as $key => $social) { ?> <?php $class = in_array($key, $arr_val) ? 'selected' : ''; ?> <li data-type="<?php echo esc_attr($key); ?> " class="<?php echo $class; ?> "><i class="<?php echo esc_attr($social); ?> "></i><span></span></li> <?php } ?> </ul><!-- .kt-socials-lists --> <ul class="kt-socials-profiles clearfix"> <?php if (count($arr_val)) { foreach ($arr_val as $item) { ?> <li data-type="<?php echo esc_attr($item); ?> "><i class="<?php echo esc_attr($socials[$item]); ?> "></i><span></span></li> <?php } } ?> </ul><!-- .kt-socials-profiles --> <input id="<?php echo $this->get_field_id('value'); ?> " type="hidden" class="wpb_vc_param_value kt-socials-value" name="<?php echo $this->get_field_name('value'); ?> " value="<?php echo esc_attr($value); ?> " /> </div><!-- .kt-socials-options --> <?php wp_enqueue_script('cosials_js', KT_FW_JS . 'kt_socials.js', array('jquery'), KT_FW_VER, true); ?> <script type="text/javascript"> (function($){ $('document').ready(function() { $( ".kt-socials-profiles" ).sortable({ placeholder: "ui-socials-highlight", update: function( event, ui ) { var $parrent_ui = ui.item.closest('.kt-socials-options'), $profiles_ui = $parrent_ui.find('.kt-socials-profiles'), $value_ui = $parrent_ui.find('.kt-socials-value'); $profiles_val_ui = []; $profiles_ui.find('li').each(function(){ $profiles_val_ui.push($(this).data('type')); }); $value_ui.val($profiles_val_ui.join()); } }); }); })(jQuery); </script> <?php }
public function form($instance) { //Defaults $instance = wp_parse_args((array) $instance, array('title' => '', 'target' => '_self', 'link' => '', 'attachment' => '', 'size' => '', 'align' => 'center')); $title = strip_tags($instance['title']); $link = esc_attr($instance['link']); $attachment = esc_attr($instance['attachment']); $preview = false; $img_preview = ""; if ($instance['attachment']) { $file = kt_get_thumbnail_attachment($instance['attachment'], 'full'); $preview = true; $img_preview = $file['url']; } ?> <p><label for="<?php echo $this->get_field_id('title'); ?> "><?php esc_html_e('Title:', 'adroit'); ?> </label> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?> " name="<?php echo $this->get_field_name('title'); ?> " type="text" value="<?php echo $title; ?> " /></p> <div class="wrapper_kt_image_upload"> <p style="text-align: center;"> <input type="button" style="width: 100%; padding: 10px; height: auto;" class="button kt_image_upload" value="<?php esc_attr(esc_html_e('Select your image', 'adroit')); ?> " /> <input class="widefat kt_image_attachment" id="<?php echo $this->get_field_id('attachment'); ?> " name="<?php echo $this->get_field_name('attachment'); ?> " type="hidden" value="<?php echo esc_attr($attachment); ?> " /> </p> <p class="kt_image_preview" style="<?php if ($preview) { echo "display: block;"; } ?> "> <img src="<?php echo esc_url($img_preview); ?> " alt="" class="kt_image_preview_img" /> </p> </div> <p style="clear: both;"> <label for="<?php echo $this->get_field_id('link'); ?> "><?php esc_html_e('Link:', 'adroit'); ?> </label> <input class="widefat" id="<?php echo $this->get_field_id('link'); ?> " name="<?php echo $this->get_field_name('link'); ?> " type="text" value="<?php echo esc_attr($link); ?> " /> </p> <p> <label for="<?php echo $this->get_field_id('target'); ?> "><?php esc_html_e('Target:', 'adroit'); ?> </label> <select name="<?php echo $this->get_field_name('target'); ?> " id="<?php echo $this->get_field_id('target'); ?> " class="widefat"> <option value="_self"<?php selected($instance['target'], '_self'); ?> ><?php esc_html_e('Stay in Window', 'adroit'); ?> </option> <option value="_blank"<?php selected($instance['target'], '_blank'); ?> ><?php esc_html_e('Open New Window', 'adroit'); ?> </option> </select> </p> <p> <?php $sizes = kt_get_image_sizes(); $sizes['full'] = array(); ?> <label for="<?php echo $this->get_field_id('size'); ?> "><?php esc_html_e('Image size:', 'adroit'); ?> </label> <select name="<?php echo $this->get_field_name('size'); ?> " id="<?php echo $this->get_field_id('size'); ?> " class="widefat"> <?php foreach ($sizes as $key => $size) { ?> <?php $option_text = array(); $option_text[] = ucfirst($key); if (isset($size['width'])) { $option_text[] = '(' . $size['width'] . ' x ' . $size['height'] . ')'; } if (isset($size['crop']) && $size['crop']) { $option_text[] = esc_html__('Crop', 'adroit'); } ?> <option value="<?php echo $key; ?> "<?php selected($instance['size'], $key); ?> > <?php echo implode(' - ', $option_text); ?> </option> <?php } ?> </select> </p> <p> <label for="<?php echo $this->get_field_id('align'); ?> "><?php esc_html_e('Align:', 'adroit'); ?> </label> <select name="<?php echo $this->get_field_name('align'); ?> " id="<?php echo $this->get_field_id('align'); ?> " class="widefat"> <option value="center"<?php selected($instance['align'], 'center'); ?> ><?php esc_html_e('Center', 'adroit'); ?> </option> <option value="left"<?php selected($instance['align'], 'left'); ?> ><?php esc_html_e('Left', 'adroit'); ?> </option> <option value="right"<?php selected($instance['align'], 'right'); ?> ><?php esc_html_e('Right', 'adroit'); ?> </option> </select> </p> <?php }
public function setSections() { $image_sizes = kt_get_image_sizes(); $this->sections[] = array('id' => 'general', 'title' => esc_html__('General', 'adroit'), 'icon' => 'fa fa-cogs'); $this->sections[] = array('id' => 'general_layout', 'title' => esc_html__('General', 'adroit'), 'subsection' => true, 'fields' => array(array('id' => 'layout', 'type' => 'select', 'title' => esc_html__('Site boxed mod(?)', 'adroit'), 'subtitle' => esc_html__("Please choose page layout", 'adroit'), 'options' => array('full' => esc_html__('Full width Layout', 'adroit'), 'boxed' => esc_html__('Boxed Layout', 'adroit')), 'default' => 'full', 'clear' => false), array('id' => 'archive_placeholder', 'type' => 'media', 'url' => true, 'compiler' => true, 'title' => esc_html__('Placeholder', 'adroit'), 'subtitle' => esc_html__("Placeholder for none image", 'adroit')))); /** * Logos **/ $this->sections[] = array('id' => 'logos_favicon', 'title' => esc_html__('Logos', 'adroit'), 'desc' => '', 'subsection' => true, 'fields' => array(array('id' => 'logos_heading', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Logos settings', 'adroit') . '</div>', 'full_width' => true), array('id' => 'logo', 'type' => 'media', 'url' => true, 'compiler' => true, 'title' => esc_html__('Logo', 'adroit')), array('id' => 'logo_retina', 'type' => 'media', 'url' => true, 'compiler' => true, 'title' => esc_html__('Logo (Retina Version @2x)', 'adroit'), 'desc' => esc_html__('Select an image file for the retina version of the logo. It should be exactly 2x the size of main logo.', 'adroit')), array('id' => 'logo_footer', 'type' => 'media', 'url' => true, 'compiler' => true, 'title' => esc_html__('Logo Footer', 'adroit')))); /** * Header **/ $this->sections[] = array('id' => 'Header', 'title' => esc_html__('Header', 'adroit'), 'desc' => '', 'subsection' => true, 'fields' => array(array('id' => 'header', 'type' => 'image_select', 'compiler' => true, 'title' => esc_html__('Header layout', 'adroit'), 'subtitle' => esc_html__('Please choose header layout', 'adroit'), 'options' => array(1 => array('alt' => esc_html__('Layout 1', 'adroit'), 'img' => KT_FW_IMG . 'header/header-v1.jpg'), 2 => array('alt' => esc_html__('Layout 2', 'adroit'), 'img' => KT_FW_IMG . 'header/header-v2.jpg')), 'default' => 1), array('id' => 'divide_id', 'type' => 'divide'), array('id' => 'header_shadow', 'type' => 'switch', 'title' => esc_html__('Header shadow', 'adroit'), "default" => 1, 'on' => esc_html__('Enabled', 'adroit'), 'off' => esc_html__('Disabled', 'adroit')), array('id' => 'header_search', 'type' => 'switch', 'title' => esc_html__('Search Icon', 'adroit'), 'desc' => esc_html__('Enable the search Icon in the header.', 'adroit'), "default" => 1, 'on' => esc_html__('Enabled', 'adroit'), 'off' => esc_html__('Disabled', 'adroit')), array('id' => 'footer_socials', 'type' => 'kt_socials', 'title' => __('Select your socials', 'adroit')))); /** * Footer **/ $this->sections[] = array('id' => 'footer', 'title' => esc_html__('Footer', 'adroit'), 'desc' => '', 'subsection' => true, 'fields' => array(array('id' => 'backtotop', 'type' => 'switch', 'title' => esc_html__('Back to top', 'adroit'), 'default' => true, 'on' => esc_html__('Enabled', 'adroit'), 'off' => esc_html__('Disabled', 'adroit')), array('id' => 'footer_heading', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Footer settings', 'adroit') . '</div>', 'full_width' => true), array('id' => 'footer', 'type' => 'switch', 'title' => esc_html__('Footer enable', 'adroit'), 'default' => true, 'on' => esc_html__('Enabled', 'adroit'), 'off' => esc_html__('Disabled', 'adroit')), array('id' => 'footer_top_heading', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Footer top settings', 'adroit') . '</div>', 'full_width' => true), array('id' => 'footer_top', 'type' => 'switch', 'title' => esc_html__('Footer top enable', 'adroit'), 'default' => true, 'on' => esc_html__('Enabled', 'adroit'), 'off' => esc_html__('Disabled', 'adroit')), array('id' => 'footer_widgets_heading', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Footer widgets settings', 'adroit') . '</div>', 'full_width' => true), array('id' => 'footer_widgets', 'type' => 'switch', 'title' => esc_html__('Footer widgets enable', 'adroit'), 'default' => true, 'on' => esc_html__('Enabled', 'adroit'), 'off' => esc_html__('Disabled', 'adroit')), array('id' => 'footer_widgets_layout', 'type' => 'image_select', 'compiler' => true, 'title' => esc_html__('Footer widgets layout', 'adroit'), 'subtitle' => esc_html__('Select your footer widgets layout', 'adroit'), 'options' => array('3-3-3-3' => array('alt' => esc_html__('Layout 1', 'adroit'), 'img' => KT_FW_IMG . 'footer/footer-1.png'), '6-3-3' => array('alt' => esc_html__('Layout 2', 'adroit'), 'img' => KT_FW_IMG . 'footer/footer-2.png'), '3-3-6' => array('alt' => esc_html__('Layout 3', 'adroit'), 'img' => KT_FW_IMG . 'footer/footer-3.png'), '6-6' => array('alt' => esc_html__('Layout 4', 'adroit'), 'img' => KT_FW_IMG . 'footer/footer-4.png'), '4-4-4' => array('alt' => esc_html__('Layout 5', 'adroit'), 'img' => KT_FW_IMG . 'footer/footer-5.png'), '8-4' => array('alt' => esc_html__('Layout 6', 'adroit'), 'img' => KT_FW_IMG . 'footer/footer-6.png'), '4-8' => array('alt' => esc_html__('Layout 7', 'adroit'), 'img' => KT_FW_IMG . 'footer/footer-7.png'), '3-6-3' => array('alt' => esc_html__('Layout 8', 'adroit'), 'img' => KT_FW_IMG . 'footer/footer-8.png'), '12' => array('alt' => esc_html__('Layout 9', 'adroit'), 'img' => KT_FW_IMG . 'footer/footer-9.png')), 'default' => '4-4-4'), array('id' => 'footer_bottom_heading', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Footer bottom settings', 'adroit') . '</div>', 'full_width' => true), array('id' => 'footer_bottom', 'type' => 'switch', 'title' => esc_html__('Footer bottom enable', 'adroit'), 'default' => false, 'on' => esc_html__('Enabled', 'adroit'), 'off' => esc_html__('Disabled', 'adroit')), array('id' => 'footer_bottom_layout', 'type' => 'image_select', 'compiler' => true, 'title' => esc_html__('Footer bottom layout', 'adroit'), 'subtitle' => esc_html__('Select your footer bottom layout', 'adroit'), 'options' => array('1' => array('alt' => esc_html__('Layout 1', 'adroit'), 'img' => KT_FW_IMG . 'footer/footer-bottom-1.png'), '2' => array('alt' => esc_html__('Layout 2', 'adroit'), 'img' => KT_FW_IMG . 'footer/footer-bottom-2.png')), 'default' => '1'), array('id' => 'footer_copyright_heading', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Footer copyright settings', 'adroit') . '</div>', 'full_width' => true), array('id' => 'footer_copyright', 'type' => 'switch', 'title' => esc_html__('Footer copyright enable', 'adroit'), 'default' => true, 'on' => esc_html__('Enabled', 'adroit'), 'off' => esc_html__('Disabled', 'adroit')), array('id' => 'footer_copyright_text', 'type' => 'editor', 'title' => esc_html__('Footer Copyright Text', 'adroit'), 'default' => '© Copyright Alitstudio 2015 .All Rights Reserved.'))); /** * Page Loader * */ $this->sections[] = array('title' => esc_html__('Page Loader', 'adroit'), 'desc' => esc_html__('Page Loader Options', 'adroit'), 'subsection' => true, 'fields' => array(array('id' => 'use_page_loader', 'type' => 'switch', 'title' => esc_html__('Use Page Loader?', 'adroit'), 'default' => 1, 'on' => esc_html__('Enabled', 'adroit'), 'off' => esc_html__('Disabled', 'adroit')), array('id' => 'layout_loader', 'type' => 'image_select', 'compiler' => true, 'title' => esc_html__('Loader layout', 'adroit'), 'subtitle' => esc_html__('Please choose loader layout', 'adroit'), 'options' => array('style-1' => array('alt' => esc_html__('Style 1', 'adroit'), 'img' => KT_FW_IMG . 'loader/loader_v1.png'), 'style-2' => array('alt' => esc_html__('Style 2', 'adroit'), 'img' => KT_FW_IMG . 'loader/loader_v2.png'), 'style-3' => array('alt' => esc_html__('Style 2', 'adroit'), 'img' => KT_FW_IMG . 'loader/loader_v3.png')), 'default' => 'style-1'), array('id' => 'background_page_loader', 'type' => 'background', 'title' => esc_html__('Background Color Page Loader', 'adroit'), 'background-repeat' => false, 'background-attachment' => false, 'background-position' => false, 'background-image' => false, 'background-size' => false, 'preview' => false, 'transparent' => false, 'default' => array('background-color' => '#FFFFFF'), 'output' => array('.kt_page_loader'), 'required' => array('use_page_loader', 'equals', array(1))), array('id' => 'color_first_loader', 'type' => 'color', 'title' => esc_html__('Color Loader', 'adroit'), 'default' => '#22dcce', 'transparent' => false, 'required' => array('use_page_loader', 'equals', array(1))), array('id' => 'color_second_loader', 'type' => 'color', 'title' => esc_html__('Color Second Loader', 'adroit'), 'default' => '#cccccc', 'transparent' => false, 'required' => array('use_page_loader', 'equals', array(1))))); $this->sections[] = array('icon' => 'el-icon-cog', 'title' => esc_html__('Preset', 'wingman'), 'fields' => array(array('id' => 'kt-presets', 'type' => 'image_select', 'presets' => true, 'title' => esc_html__('Color Preset', 'wingman'), 'subtitle' => esc_html__('Select the color you want to use for the theme.', 'wingman'), 'default' => 0, 'options' => array('color_default' => array('alt' => 'Default', 'img' => KT_FW_IMG . '/preset/default.jpg', 'presets' => array('styling_accent' => '#22dcce', 'color_first_loader' => '#22dcce', 'mega_title_color_hover' => '#22dcce', 'mega_color_hover' => '#22dcce', 'navigation_color_hover' => '#22dcce', 'dropdown_color_hover' => '#22dcce', 'mobile_menu_color_hover' => '#22dcce', 'mobile_sub_color_hover' => '#22dcce', 'styling_link' => array('regular' => '#22dcce', 'hover' => '#00A99B', 'active' => '#00A99B'), 'typography_footer_widgets_link' => array('regular' => '#ffffff', 'hover' => '#22dcce', 'active' => '#22dcce'), 'typography_footer_bottom_link' => array('regular' => '#ffffff', 'hover' => '#22dcce', 'active' => '#22dcce'))), 'color_green' => array('alt' => 'Green', 'img' => KT_FW_IMG . '/preset/green.jpg', 'presets' => array('styling_accent' => '#6dab3c', 'color_first_loader' => '#6dab3c', 'mega_title_color_hover' => '#6dab3c', 'mega_color_hover' => '#6dab3c', 'navigation_color_hover' => '#6dab3c', 'dropdown_color_hover' => '#6dab3c', 'mobile_menu_color_hover' => '#6dab3c', 'mobile_sub_color_hover' => '#6dab3c', 'styling_link' => array('regular' => '#6dab3c', 'hover' => '#3A7809', 'active' => '#3A7809'), 'typography_footer_widgets_link' => array('regular' => '#ffffff', 'hover' => '#6dab3c', 'active' => '#6dab3c'), 'typography_footer_bottom_link' => array('regular' => '#ffffff', 'hover' => '#6dab3c', 'active' => '#6dab3c'))), 'color_juicy_pink' => array('alt' => 'Juicy Pink', 'img' => KT_FW_IMG . '/preset/juicy-pink.jpg', 'presets' => array('styling_accent' => '#f4524d', 'color_first_loader' => '#f4524d', 'mega_title_color_hover' => '#f4524d', 'mega_color_hover' => '#f4524d', 'navigation_color_hover' => '#f4524d', 'dropdown_color_hover' => '#f4524d', 'mobile_menu_color_hover' => '#f4524d', 'mobile_sub_color_hover' => '#f4524d', 'styling_link' => array('regular' => '#f4524d', 'hover' => '#C11F1A', 'active' => '#C11F1A'), 'typography_footer_widgets_link' => array('regular' => '#ffffff', 'hover' => '#f4524d', 'active' => '#f4524d'), 'typography_footer_bottom_link' => array('regular' => '#ffffff', 'hover' => '#f4524d', 'active' => '#f4524d'))), 'color_orange' => array('alt' => 'orange', 'img' => KT_FW_IMG . '/preset/orange.jpg', 'presets' => array('styling_accent' => '#f7be68', 'color_first_loader' => '#f7be68', 'mega_title_color_hover' => '#f7be68', 'mega_color_hover' => '#f7be68', 'navigation_color_hover' => '#f7be68', 'dropdown_color_hover' => '#f7be68', 'mobile_menu_color_hover' => '#f7be68', 'mobile_sub_color_hover' => '#f7be68', 'styling_link' => array('regular' => '#f7be68', 'hover' => '#C48B35', 'active' => '#C48B35'), 'typography_footer_widgets_link' => array('regular' => '#ffffff', 'hover' => '#f7be68', 'active' => '#f7be68'), 'typography_footer_bottom_link' => array('regular' => '#ffffff', 'hover' => '#f7be68', 'active' => '#f7be68'))), 'color_purple' => array('alt' => 'purple', 'img' => KT_FW_IMG . '/preset/purple.jpg', 'presets' => array('styling_accent' => '#b97ebb', 'color_first_loader' => '#b97ebb', 'mega_title_color_hover' => '#b97ebb', 'mega_color_hover' => '#b97ebb', 'navigation_color_hover' => '#b97ebb', 'dropdown_color_hover' => '#b97ebb', 'mobile_menu_color_hover' => '#b97ebb', 'mobile_sub_color_hover' => '#b97ebb', 'styling_link' => array('regular' => '#b97ebb', 'hover' => '#864B88', 'active' => '#864B88'), 'typography_footer_widgets_link' => array('regular' => '#ffffff', 'hover' => '#b97ebb', 'active' => '#b97ebb'), 'typography_footer_bottom_link' => array('regular' => '#ffffff', 'hover' => '#b97ebb', 'active' => '#b97ebb'))), 'color_sandy_brown' => array('alt' => 'sandy-brown', 'img' => KT_FW_IMG . '/preset/sandy-brown.jpg', 'presets' => array('styling_accent' => '#f79468', 'color_first_loader' => '#f79468', 'mega_title_color_hover' => '#f79468', 'mega_color_hover' => '#f79468', 'navigation_color_hover' => '#f79468', 'dropdown_color_hover' => '#f79468', 'mobile_menu_color_hover' => '#f79468', 'mobile_sub_color_hover' => '#f79468', 'styling_link' => array('regular' => '#f79468', 'hover' => '#C46135', 'active' => '#C46135'), 'typography_footer_widgets_link' => array('regular' => '#ffffff', 'hover' => '#f79468', 'active' => '#f79468'), 'typography_footer_bottom_link' => array('regular' => '#ffffff', 'hover' => '#f79468', 'active' => '#f79468'))), 'color_violet' => array('alt' => 'violet', 'img' => KT_FW_IMG . '/preset/violet.jpg', 'presets' => array('styling_accent' => '#8d6dc4', 'color_first_loader' => '#8d6dc4', 'mega_title_color_hover' => '#8d6dc4', 'mega_color_hover' => '#8d6dc4', 'navigation_color_hover' => '#8d6dc4', 'dropdown_color_hover' => '#8d6dc4', 'mobile_menu_color_hover' => '#8d6dc4', 'mobile_sub_color_hover' => '#8d6dc4', 'styling_link' => array('regular' => '#8d6dc4', 'hover' => '#5A3A91', 'active' => '#5A3A91'), 'typography_footer_widgets_link' => array('regular' => '#ffffff', 'hover' => '#8d6dc4', 'active' => '#8d6dc4'), 'typography_footer_bottom_link' => array('regular' => '#ffffff', 'hover' => '#8d6dc4', 'active' => '#8d6dc4'))), 'color_vista_blue' => array('alt' => 'vista-blue', 'img' => KT_FW_IMG . '/preset/vista-blue.jpg', 'presets' => array('styling_accent' => '#75d69c', 'color_first_loader' => '#75d69c', 'mega_title_color_hover' => '#75d69c', 'mega_color_hover' => '#75d69c', 'navigation_color_hover' => '#75d69c', 'dropdown_color_hover' => '#75d69c', 'mobile_menu_color_hover' => '#75d69c', 'mobile_sub_color_hover' => '#75d69c', 'styling_link' => array('regular' => '#75d69c', 'hover' => '#42A369', 'active' => '#42A369'), 'typography_footer_widgets_link' => array('regular' => '#ffffff', 'hover' => '#75d69c', 'active' => '#75d69c'), 'typography_footer_bottom_link' => array('regular' => '#ffffff', 'hover' => '#75d69c', 'active' => '#75d69c'))))))); /** * Styling **/ $this->sections[] = array('id' => 'styling', 'title' => esc_html__('Styling', 'adroit'), 'desc' => '', 'icon' => 'dashicons dashicons-art'); /** * Styling General **/ $this->sections[] = array('id' => 'styling_general', 'title' => esc_html__('General', 'wingman'), 'subsection' => true, 'fields' => array(array('id' => 'styling_accent', 'type' => 'color', 'title' => esc_html__('Main Color', 'wingman'), 'default' => '#22dcce', 'transparent' => false), array('id' => 'styling_link', 'type' => 'link_color', 'title' => esc_html__('Links Color', 'wingman'), 'output' => array('a'), 'default' => array('regular' => '#22dcce', 'hover' => '#00A99B', 'active' => '#00A99B')))); /** * Styling Logo **/ $this->sections[] = array('id' => 'styling-logo', 'title' => esc_html__('Logo', 'adroit'), 'subsection' => true, 'fields' => array(array('id' => 'logo_width', 'type' => 'dimensions', 'units' => 'px', 'title' => esc_html__('Logo width', 'adroit'), 'height' => false, 'default' => array('width' => '25', 'units' => 'px'), 'output' => array('#header #header-content .site-branding .site-logo img')), array('id' => 'logo_margin_spacing', 'type' => 'spacing', 'mode' => 'margin', 'output' => array('.site-branding'), 'units' => array('px'), 'units_extended' => 'true', 'title' => esc_html__('Logo margin spacing Option', 'adroit'), 'default' => array('margin-top' => '27px', 'margin-right' => '65px', 'margin-bottom' => '27px', 'margin-left' => '0')), array('id' => 'divide_id', 'type' => 'divide'), array('id' => 'logo_mobile_width', 'type' => 'dimensions', 'units' => 'px', 'title' => esc_html__('Logo mobile width', 'adroit'), 'height' => false, 'default' => array('width' => 25, 'units' => 'px'), 'output' => array('#header-content-mobile .site-branding .site-logo img')), array('id' => 'logo_mobile_margin_spacing', 'type' => 'spacing', 'mode' => 'margin', 'units' => array('px'), 'units_extended' => 'true', 'title' => esc_html__('Logo mobile margin spacing Option', 'adroit'), 'default' => array('margin-top' => '20px', 'margin-right' => '0px', 'margin-bottom' => '20px', 'margin-left' => '0px'), 'output' => array('#header-content-mobile .site-branding')))); /** * Styling Sticky **/ $this->sections[] = array('id' => 'styling_sticky', 'title' => esc_html__('Sticky', 'adroit'), 'subsection' => true, 'fields' => array(array('id' => 'fixed_header', 'type' => 'button_set', 'title' => esc_html__('Sticky header', 'adroit'), 'options' => array('1' => esc_html__('Disabled', 'adroit'), '2' => esc_html__('Fixed Sticky', 'adroit'), '3' => esc_html__('Slide Down', 'adroit')), 'default' => '3', 'desc' => esc_html__('Choose your sticky effect.', 'adroit')), array('id' => 'logo_sticky_width', 'type' => 'dimensions', 'units' => 'px', 'title' => esc_html__('Logo width', 'adroit'), 'height' => false, 'default' => array('width' => '25', 'units' => 'px'), 'output' => array('.header-layout1.header-container.is-sticky .site-branding .site-logo img')), array('id' => 'logo_sticky_margin_spacing', 'type' => 'spacing', 'mode' => 'margin', 'units' => array('px'), 'units_extended' => 'true', 'title' => esc_html__('Logo sticky margin spacing Option', 'adroit'), 'default' => array('margin-top' => '17px', 'margin-right' => '65px', 'margin-bottom' => '17px', 'margin-left' => '0'), 'output' => array('.header-layout1.header-container.is-sticky .site-branding')), array('id' => 'navigation_height_fixed', 'type' => 'dimensions', 'units' => 'px', 'title' => esc_html__('Main Navigation Sticky Height', 'adroit'), 'desc' => esc_html__('Change height of main navigation sticky', 'adroit'), 'width' => false, 'default' => array('height' => '60', 'units' => 'px'), 'output' => array('.header-container.header-layout1.is-sticky #main-navigation > li', '.header-container.is-sticky.header-layout1 #main-nav-tool > a', '.header-container.is-sticky.header-layout1 #main-nav-tool > li > a', '.header-container.is-sticky.header-layout1 .main-nav-socials > a', '.header-container.is-sticky.header-layout1 .main-nav-socials > li > a', '.header-container.header-layout2.is-sticky #main-navigation > li', '.header-container.is-sticky.header-layout2 #main-nav-tool > a', '.header-container.is-sticky.header-layout2 #main-nav-tool > li > a', '.header-container.is-sticky.header-layout2 .main-nav-socials > a', '.header-container.is-sticky.header-layout2 .main-nav-socials > li > a')), array('id' => 'header_sticky_background', 'type' => 'background', 'title' => esc_html__('Header sticky background', 'adroit'), 'desc' => esc_html__('Header sticky with image, color, etc.', 'adroit'), 'background-repeat' => false, 'background-attachment' => false, 'background-position' => false, 'background-image' => false, 'background-size' => false, 'preview' => false, 'transparent' => false, 'default' => array('background-color' => '#ffffff'), 'output' => array('.header-container.is-sticky .header-sticky-background')), array('id' => 'header_sticky_opacity', 'type' => 'slider', 'title' => esc_html__('Sticky Background opacity', 'adroit'), 'default' => 1, 'min' => 0, 'step' => 0.1, 'max' => 1, 'resolution' => 0.1, 'display_value' => 'text'))); /** * Styling Footer **/ $this->sections[] = array('id' => 'styling_footer', 'title' => esc_html__('Footer', 'adroit'), 'subsection' => true, 'fields' => array(array('id' => 'footer_heading', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Footer settings', 'adroit') . '</div>', 'full_width' => true), array('id' => 'footer_background', 'type' => 'background', 'title' => esc_html__('Footer Background', 'adroit'), 'subtitle' => esc_html__('Footer Background with image, color, etc.', 'adroit'), 'default' => array('background-color' => '#222222'), 'output' => array('#footer')), array('id' => 'footer_border', 'type' => 'border', 'title' => esc_html__('Footer Border', 'adroit'), 'output' => array('#footer'), 'all' => false, 'left' => false, 'right' => false, 'bottom' => false, 'default' => array()), array('id' => 'footer_top_heading', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Footer top settings', 'adroit') . '</div>', 'full_width' => true), array('id' => 'footer_top_background', 'type' => 'background', 'title' => esc_html__('Footer top Background', 'adroit'), 'subtitle' => esc_html__('Footer top Background with image, color, etc.', 'adroit'), 'default' => array(), 'output' => array('#footer-top')), array('id' => 'footer_top_padding', 'type' => 'spacing', 'mode' => 'padding', 'left' => false, 'right' => false, 'output' => array('#footer-top'), 'units' => array('px'), 'units_extended' => 'true', 'title' => esc_html__('Footer top padding', 'adroit'), 'default' => array()), array('id' => 'footer_top_border', 'type' => 'border', 'title' => esc_html__('Footer top Border', 'adroit'), 'output' => array('#footer-top'), 'all' => false, 'left' => false, 'right' => false, 'top' => false, 'default' => array()), array('id' => 'footer_navigation_heading', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Footer Navigation settings', 'adroit') . '</div>', 'full_width' => true), array('id' => 'footer_navigation_background', 'type' => 'background', 'title' => esc_html__('Footer navigation Background', 'adroit'), 'subtitle' => esc_html__('Footer Background with image, color, etc.', 'adroit'), 'default' => array(), 'output' => array('#footer-navigation')), array('id' => 'footer_navigation_padding', 'type' => 'spacing', 'mode' => 'padding', 'left' => false, 'right' => false, 'output' => array('#footer-navigation'), 'units' => array('px'), 'units_extended' => 'true', 'title' => esc_html__('Footer navigation padding', 'adroit'), 'default' => array()), array('id' => 'footer_widgets_heading', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Footer widgets settings', 'adroit') . '</div>', 'full_width' => true), array('id' => 'footer_widgets_background', 'type' => 'background', 'title' => esc_html__('Footer widgets Background', 'adroit'), 'subtitle' => esc_html__('Footer widgets Background with image, color, etc.', 'adroit'), 'default' => array(), 'output' => array('#footer-area')), array('id' => 'footer_widgets_padding', 'type' => 'spacing', 'mode' => 'padding', 'left' => false, 'right' => false, 'output' => array('#footer-area'), 'units' => array('px'), 'units_extended' => 'true', 'title' => esc_html__('Footer widgets padding', 'adroit'), 'default' => array()), array('id' => 'footer_widgets_border', 'type' => 'border', 'title' => esc_html__('Footer widgets Border', 'adroit'), 'output' => array('#footer-area'), 'all' => false, 'left' => false, 'right' => false, 'top' => false, 'default' => array()), array('id' => 'footer_bottom_heading', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Footer bottom settings', 'adroit') . '</div>', 'full_width' => true), array('id' => 'footer_bottom_background', 'type' => 'background', 'title' => esc_html__('Footer bottom Background', 'adroit'), 'subtitle' => esc_html__('Footer bottom Background with image, color, etc.', 'adroit'), 'default' => array(), 'output' => array('#footer-bottom')), array('id' => 'footer_bottom_padding', 'type' => 'spacing', 'mode' => 'padding', 'left' => false, 'right' => false, 'output' => array('#footer-bottom.footer-bottom-2', '#footer-bottom.footer-bottom-1'), 'units' => array('px'), 'units_extended' => 'true', 'title' => esc_html__('Footer bottom padding', 'adroit'), 'default' => array()), array('id' => 'footer_bottom_border', 'type' => 'border', 'title' => esc_html__('Footer bottom Border', 'adroit'), 'output' => array('#footer-bottom'), 'all' => false, 'left' => false, 'right' => false, 'top' => false, 'default' => array()), array('id' => 'footer_copyright_heading', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Footer copyright settings', 'adroit') . '</div>', 'full_width' => true), array('id' => 'footer_copyright_background', 'type' => 'background', 'title' => esc_html__('Footer Background', 'adroit'), 'subtitle' => esc_html__('Footer Background with image, color, etc.', 'adroit'), 'default' => array(), 'output' => array('#footer-copyright')), array('id' => 'footer_copyright_padding', 'type' => 'spacing', 'mode' => 'padding', 'left' => false, 'right' => false, 'output' => array('#footer-copyright'), 'units' => array('px'), 'units_extended' => 'true', 'title' => esc_html__('Footer copyright padding', 'adroit'), 'default' => array()))); /** * Main Navigation **/ $this->sections[] = array('id' => 'styling_navigation', 'title' => esc_html__('Main Navigation', 'adroit'), 'desc' => '', 'subsection' => true, 'fields' => array(array('id' => 'styling_navigation_general', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('General', 'adroit') . '</div>', 'full_width' => true), array('id' => 'navigation_height', 'type' => 'dimensions', 'units' => 'px', 'units_extended' => 'true', 'title' => esc_html__('Main Navigation Height', 'adroit'), 'subtitle' => esc_html__('Change height of main navigation', 'adroit'), 'width' => false, 'default' => array('height' => '80', 'units' => 'px'), 'output' => array('#main-navigation > li', '.header-layout1 #main-nav-tool > a', '.header-layout1 .nav-container-inner', '.header-layout1 #main-nav-tool > li > a', '.header-layout1 .main-nav-socials > a', '.header-layout1 .main-nav-socials > li > a', '.header-layout2 #main-nav-tool > a', '.header-layout2 #main-nav-tool > li > a', '.header-layout2 .main-nav-socials > a', '.header-layout2 .main-nav-socials > li > a')), array('id' => 'navigation_box_background', 'type' => 'background', 'title' => esc_html__('MegaMenu & Dropdown Box background', 'adroit'), 'default' => array('background-color' => '#222222'), 'output' => array('#main-navigation > li ul.sub-menu-dropdown', '#main-navigation > li > .kt-megamenu-wrapper'), 'transparent' => false), array('id' => 'styling_navigation_general', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Top Level', 'adroit') . '</div>', 'full_width' => true), array('id' => 'navigation_space', 'type' => 'slider', 'title' => esc_html__('Top Level space', 'adroit'), 'default' => 15, 'min' => 0, 'step' => 1, 'max' => 50, 'resolution' => 1, 'display_value' => 'text', 'subtitle' => esc_html__('Margin left between top level.', 'adroit')), array('id' => 'navigation_color', 'type' => 'color', 'output' => array('#main-navigation > li > a'), 'title' => esc_html__('Top Level Color', 'adroit'), 'default' => '#999999', 'transparent' => false), array('id' => 'navigation_color_hover', 'type' => 'color', 'output' => array('#main-navigation > li > a:hover', '#main-navigation > li > a:focus', '#main-navigation > li.current-menu-item > a', '#main-navigation > li.hovered > a', '#main-navigation > li:hover > a'), 'title' => esc_html__('Top Level hover Color', 'adroit'), 'default' => '#22dcce', 'transparent' => false), array('id' => 'styling_navigation_dropdown', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Drop down', 'adroit') . '</div>', 'full_width' => true), array('id' => 'navigation_dropdown', 'type' => 'dimensions', 'units' => 'px', 'units_extended' => 'true', 'title' => esc_html__('Dropdown width', 'adroit'), 'subtitle' => esc_html__('Change width of Dropdown', 'adroit'), 'height' => false, 'default' => array('width' => 300, 'units' => 'px'), 'output' => array('#main-navigation > li ul.sub-menu-dropdown')), array('id' => 'dropdown_background', 'type' => 'background', 'title' => esc_html__('Dropdown Background Color', 'adroit'), 'default' => array('background-color' => ''), 'output' => array('#main-navigation > li ul.sub-menu-dropdown > li > a'), 'background-repeat' => false, 'background-attachment' => false, 'background-position' => false, 'background-image' => false, 'background-size' => false, 'preview' => false, 'transparent' => true), array('id' => 'dropdown_background_hover', 'type' => 'background', 'title' => esc_html__('Dropdown Background Hover Color', 'adroit'), 'default' => array('background-color' => ''), 'output' => array('#main-navigation > li ul.sub-menu-dropdown > li.current-menu-item > a', '#main-navigation > li ul.sub-menu-dropdown > li.hovered > a', '#main-navigation > li ul.sub-menu-dropdown > li > a:hover'), 'background-repeat' => false, 'background-attachment' => false, 'background-position' => false, 'background-image' => false, 'background-size' => false, 'preview' => false, 'transparent' => true), array('id' => 'dropdown_color', 'type' => 'color', 'output' => array('#main-nav-tool .kt-wpml-languages ul li > a', '#main-navigation > li ul.sub-menu-dropdown > li > a'), 'title' => esc_html__('Dropdown Text Color', 'adroit'), 'default' => '#999999', 'transparent' => false), array('id' => 'dropdown_color_hover', 'type' => 'color', 'output' => array('#main-navigation > li ul.sub-menu-dropdown > li.current-menu-item > a', '#main-nav-tool .kt-wpml-languages ul li > a:hover', '#main-navigation > li ul.sub-menu-dropdown > li:hover > a', '#main-navigation > li ul.sub-menu-dropdown > li > a:hover'), 'title' => esc_html__('Dropdown Text Hover Color', 'adroit'), 'default' => '#22dcce', 'transparent' => false), array('id' => 'dropdown_border', 'type' => 'border', 'title' => esc_html__('DropDown Border', 'adroit'), 'output' => array('#main-navigation > li ul.sub-menu-dropdown li'), 'all' => false, 'left' => false, 'right' => false, 'style' => false, 'top' => false, 'default' => array('border-style' => 'solid', 'border-bottom' => '1px', 'border-color' => '#333333')), array('id' => 'styling_navigation_mega', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Mega', 'adroit') . '</div>', 'full_width' => true), array('id' => 'megamenu_background', 'type' => 'background', 'title' => esc_html__('MegaMenu Background color', 'adroit'), 'default' => array('background-color' => '#222222'), 'output' => array('#main-navigation > li > .kt-megamenu-wrapper'), 'background-repeat' => false, 'background-attachment' => false, 'background-position' => false, 'background-image' => false, 'background-size' => false, 'preview' => false, 'transparent' => true, 'transparent' => false), array('id' => 'mega_title_color', 'type' => 'color', 'output' => array('#main-navigation > li.menu-item-object-category > .kt-megamenu-wrapper .blog-posts-menu .post-item-content .entry-title a', '#main-navigation > li:not(.menu-item-object-category) .kt-megamenu-ul > li > a', '#main-navigation > li:not(.menu-item-object-category) .kt-megamenu-ul > li > span', '#main-navigation > li:not(.menu-item-object-category) .kt-megamenu-ul > li .widget-title'), 'title' => esc_html__('MegaMenu Title color', 'adroit'), 'default' => '#FFFFFF', 'transparent' => false), array('id' => 'mega_title_color_hover', 'type' => 'color', 'output' => array('#main-navigation > li.menu-item-object-category > .kt-megamenu-wrapper .blog-posts-menu .post-item-content .entry-title a:hover', '#main-navigation > li:not(.menu-item-object-category) .kt-megamenu-ul > li > a:hover', '#main-navigation > li:not(.menu-item-object-category) .kt-megamenu-ul > li > span:hover', '#main-navigation > li:not(.menu-item-object-category) .kt-megamenu-ul > li .widget-title:hover'), 'title' => esc_html__('MegaMenu Title Hover Color', 'adroit'), 'default' => '#22dcce', 'transparent' => false), array('id' => 'mega_color', 'type' => 'color', 'output' => array('#main-navigation > li:not(.menu-item-object-category) .kt-megamenu-ul > li > ul.sub-menu-megamenu a', '#main-navigation > li:not(.menu-item-object-category) .kt-megamenu-ul > li > ul.sub-menu-megamenu span'), 'title' => esc_html__('MegaMenu Text color', 'adroit'), 'default' => '#999999', 'transparent' => false), array('id' => 'mega_color_hover', 'type' => 'color', 'output' => array('#main-navigation > li:not(.menu-item-object-category) .kt-megamenu-ul > li > ul.sub-menu-megamenu > li.current-menu-item a:hover', '#main-navigation > li:not(.menu-item-object-category) .kt-megamenu-ul > li > ul.sub-menu-megamenu a:hover', '#main-navigation > li:not(.menu-item-object-category) .kt-megamenu-ul > li > ul.sub-menu-megamenu span:hover'), 'title' => esc_html__('MegaMenu Text Hover color', 'adroit'), 'default' => '#22dcce', 'transparent' => false), array('id' => 'mega_menu_spacing', 'type' => 'raw', 'content' => '<div style="height:150px"></div>', 'full_width' => true))); /** * Mobile Navigation **/ $this->sections[] = array('id' => 'styling_mobile_menu', 'title' => esc_html__('Mobile Menu', 'adroit'), 'desc' => '', 'subsection' => true, 'fields' => array(array('id' => 'mobile_menu_background', 'type' => 'background', 'title' => esc_html__('Background', 'adroit'), 'default' => array('background-color' => '#FFFFFF'), 'output' => array('#main-nav-mobile'), 'transparent' => false), array('type' => 'divide', 'id' => 'divide_fake'), array('id' => 'mobile_menu_color', 'type' => 'color', 'output' => array('ul.navigation-mobile > li > a'), 'title' => esc_html__('Top Level Color', 'adroit'), 'default' => '#999999', 'transparent' => false), array('id' => 'mobile_menu_color_hover', 'type' => 'color', 'output' => array('ul.navigation-mobile > li:hover > a', 'ul.navigation-mobile > li > a:hover'), 'title' => esc_html__('Top Level hover Color', 'adroit'), 'default' => '#22dcce', 'transparent' => false), array('id' => 'mobile_menu_background', 'type' => 'background', 'title' => esc_html__('Top Level Background Color', 'adroit'), 'default' => array('background-color' => '#FFFFFF'), 'output' => array('ul.navigation-mobile > li > a'), 'background-repeat' => false, 'background-attachment' => false, 'background-position' => false, 'background-image' => false, 'background-size' => false, 'preview' => false, 'transparent' => false), array('id' => 'mobile_menu_background_hover', 'type' => 'background', 'title' => esc_html__('Top Level Hover Color', 'adroit'), 'default' => array('background-color' => '#F5F5F5'), 'output' => array('ul.navigation-mobile > li:hover > a', 'ul.navigation-mobile > li > a:hover'), 'background-repeat' => false, 'background-attachment' => false, 'background-position' => false, 'background-image' => false, 'background-size' => false, 'preview' => false, 'transparent' => false), array('type' => 'divide', 'id' => 'divide_fake'), array('id' => 'mobile_sub_color', 'type' => 'color', 'output' => array('.main-nav-mobile > ul > li ul.sub-menu li a', '.main-nav-mobile > ul > li ul.sub-menu-megamenu li a', '.main-nav-mobile > ul > li ul.sub-menu-dropdown li a', 'ul.navigation-mobile > li .kt-megamenu-wrapper > ul.kt-megamenu-ul > li > .sub-menu-megamenu > li > a'), 'title' => esc_html__('Text color', 'adroit'), 'default' => '#999999', 'transparent' => false), array('id' => 'mobile_sub_color_hover', 'type' => 'color', 'output' => array('.main-nav-mobile > ul > li ul.sub-menu li a:hover', '.main-nav-mobile > ul > li ul.sub-menu-megamenu li a:hover', '.main-nav-mobile > ul > li ul.sub-menu-dropdown li a:hover', 'ul.navigation-mobile > li .kt-megamenu-wrapper > ul.kt-megamenu-ul > li > .sub-menu-megamenu > li > a:hover'), 'title' => esc_html__('Text Hover color', 'adroit'), 'default' => '#22dcce', 'transparent' => false), array('id' => 'mobile_menu_spacing', 'type' => 'raw', 'content' => '<div style="height:150px"></div>', 'full_width' => true))); /** * Typography **/ $this->sections[] = array('id' => 'typography', 'title' => esc_html__('Typography', 'adroit'), 'desc' => '', 'icon_class' => 'fa fa-font'); /** * Typography General **/ $this->sections[] = array('id' => 'typography_general', 'title' => esc_html__('General', 'adroit'), 'subsection' => true, 'fields' => array(array('id' => 'typography_body', 'type' => 'typography', 'title' => esc_html__('Body Font', 'adroit'), 'subtitle' => esc_html__('Specify the body font properties.', 'adroit'), 'text-align' => false, 'letter-spacing' => true, 'output' => array('body'), 'default' => array()), array('id' => 'typography_pragraph', 'type' => 'typography', 'title' => esc_html__('Pragraph', 'adroit'), 'subtitle' => esc_html__('Specify the pragraph font properties.', 'adroit'), 'output' => array('p'), 'default' => array(), 'color' => false, 'text-align' => false), array('id' => 'typography_button', 'type' => 'typography', 'title' => esc_html__('Button', 'adroit'), 'subtitle' => esc_html__('Specify the button font properties.', 'adroit'), 'output' => array('.button', '.wpcf7-submit', '.btn'), 'default' => array(), 'color' => false, 'text-align' => false, 'font-size' => false, 'text-transform' => true, 'letter-spacing' => true, 'font-weight' => false), array('id' => 'typography_heading', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Typography Heading settings', 'adroit') . '</div>', 'full_width' => true), array('id' => 'typography_heading1', 'type' => 'typography', 'title' => esc_html__('Heading 1', 'adroit'), 'subtitle' => esc_html__('Specify the heading 1 font properties.', 'adroit'), 'letter-spacing' => true, 'text-transform' => true, 'text-align' => false, 'output' => array('h1', '.h1'), 'default' => array()), array('id' => 'typography_heading2', 'type' => 'typography', 'title' => esc_html__('Heading 2', 'adroit'), 'subtitle' => esc_html__('Specify the heading 2 font properties.', 'adroit'), 'letter-spacing' => true, 'output' => array('h2', '.h2'), 'text-transform' => true, 'text-align' => false, 'default' => array()), array('id' => 'typography_heading3', 'type' => 'typography', 'title' => esc_html__('Heading 3', 'adroit'), 'subtitle' => esc_html__('Specify the heading 3 font properties.', 'adroit'), 'letter-spacing' => true, 'output' => array('h3', '.h3'), 'text-transform' => true, 'text-align' => false, 'default' => array()), array('id' => 'typography_heading4', 'type' => 'typography', 'title' => esc_html__('Heading 4', 'adroit'), 'subtitle' => esc_html__('Specify the heading 4 font properties.', 'adroit'), 'letter-spacing' => true, 'output' => array('h4', '.h4'), 'text-transform' => true, 'text-align' => false, 'default' => array()), array('id' => 'typography_heading5', 'type' => 'typography', 'title' => esc_html__('Heading 5', 'adroit'), 'subtitle' => esc_html__('Specify the heading 5 font properties.', 'adroit'), 'letter-spacing' => true, 'output' => array('h5', '.h5'), 'text-transform' => true, 'text-align' => false, 'default' => array()), array('id' => 'typography_heading6', 'type' => 'typography', 'title' => esc_html__('Heading 6', 'adroit'), 'subtitle' => esc_html__('Specify the heading 6 font properties.', 'adroit'), 'letter-spacing' => true, 'output' => array('h6', '.h6'), 'text-transform' => true, 'text-align' => false, 'default' => array()))); /** * Typography header **/ $this->sections[] = array('id' => 'typography_header', 'title' => esc_html__('Header', 'adroit'), 'desc' => '', 'subsection' => true, 'fields' => array(array('id' => 'typography_header_content', 'type' => 'typography', 'title' => esc_html__('Header', 'adroit'), 'subtitle' => esc_html__('Specify the header font properties.', 'adroit'), 'google' => true, 'text-align' => false, 'output' => array('#header')))); /** * Typography footer **/ $this->sections[] = array('id' => 'typography_footer', 'title' => esc_html__('Footer', 'adroit'), 'desc' => '', 'subsection' => true, 'fields' => array(array('id' => 'typography_footer_top_heading', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Typography Footer top settings', 'adroit') . '</div>', 'full_width' => true), array('id' => 'typography_footer_top', 'type' => 'typography', 'title' => esc_html__('Footer top', 'adroit'), 'subtitle' => esc_html__('Specify the footer top font properties.', 'adroit'), 'google' => true, 'text-align' => false, 'output' => array('#footer-top'), 'default' => array('color' => '', 'font-size' => '', 'font-weight' => '', 'line-height' => '')), array('id' => 'typography_footer_widgets_heading', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Typography Footer widgets settings', 'adroit') . '</div>', 'full_width' => true), array('id' => 'typography_footer_widgets', 'type' => 'typography', 'title' => esc_html__('Footer widgets', 'adroit'), 'subtitle' => esc_html__('Specify the footer widgets font properties.', 'adroit'), 'google' => true, 'text-align' => false, 'output' => array('#footer-area'), 'default' => array('color' => '#999999', 'font-size' => '', 'font-weight' => '', 'line-height' => '')), array('id' => 'typography_footer_widgets_title', 'type' => 'typography', 'title' => esc_html__('Footer widgets title', 'adroit'), 'subtitle' => esc_html__('Specify the footer widgets title font properties.', 'adroit'), 'letter-spacing' => true, 'text-align' => true, 'text-transform' => true, 'output' => array('#footer-area h3.widget-title'), 'default' => array()), array('id' => 'typography_footer_widgets_link', 'type' => 'link_color', 'title' => esc_html__('Footer widgets Links Color', 'adroit'), 'output' => array('#footer-area a'), 'default' => array('regular' => '#ffffff', 'hover' => '#22dcce', 'active' => '#22dcce')), array('id' => 'typography_footer_copyright_heading', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Typography Footer Bottom settings', 'adroit') . '</div>', 'full_width' => true), array('id' => 'typography_footer_bottom_link', 'type' => 'link_color', 'title' => esc_html__('Footer Bottom Links Color', 'adroit'), 'output' => array('#footer-bottom a', '#footer-bottom button'), 'default' => array('regular' => '#ffffff', 'hover' => '#22dcce', 'active' => '#22dcce')), array('id' => 'typography_footer_bottom', 'type' => 'typography', 'title' => esc_html__('Footer Bottom', 'adroit'), 'subtitle' => esc_html__('Specify the footer font properties.', 'adroit'), 'text-align' => false, 'output' => array('#footer-bottom'), 'default' => array('color' => '#999999', 'font-size' => '', 'font-weight' => '', 'line-height' => '')), array('id' => 'typography_footer_copyright_heading', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Typography Footer copyright settings', 'adroit') . '</div>', 'full_width' => true), array('id' => 'typography_footer_copyright_link', 'type' => 'link_color', 'title' => esc_html__('Footer Copyright Links Color', 'adroit'), 'output' => array('#footer-copyright a'), 'default' => array('regular' => '#999999', 'hover' => '#ffffff', 'active' => '#ffffff')), array('id' => 'typography_footer_copyright', 'type' => 'typography', 'title' => esc_html__('Footer copyright', 'adroit'), 'subtitle' => esc_html__('Specify the footer font properties.', 'adroit'), 'text-align' => false, 'output' => array('#footer-copyright'), 'default' => array('color' => '', 'font-size' => '', 'font-weight' => '', 'line-height' => '')))); /** * Typography sidebar **/ $this->sections[] = array('id' => 'typography_sidebar', 'title' => esc_html__('Sidebar', 'adroit'), 'desc' => '', 'subsection' => true, 'fields' => array(array('id' => 'typography_sidebar', 'type' => 'typography', 'title' => esc_html__('Sidebar title', 'adroit'), 'subtitle' => esc_html__('Specify the sidebar title font properties.', 'adroit'), 'letter-spacing' => true, 'text-transform' => true, 'output' => array('.sidebar .widget-title', '.wpb_widgetised_column .widget-title'), 'default' => array('text-transform' => 'uppercase')), array('id' => 'typography_sidebar_content', 'type' => 'typography', 'title' => esc_html__('Sidebar text', 'adroit'), 'subtitle' => esc_html__('Specify the sidebar title font properties.', 'adroit'), 'text-algin' => true, 'output' => array('.sidebar', '.wpb_widgetised_column'), 'default' => array()))); /** * Typography Navigation **/ $this->sections[] = array('id' => 'typography_navigation', 'title' => esc_html__('Main Navigation', 'adroit'), 'desc' => '', 'subsection' => true, 'fields' => array(array('id' => 'typography-navigation_top', 'type' => 'typography', 'title' => esc_html__('Top Menu Level', 'adroit'), 'letter-spacing' => true, 'text-align' => false, 'color' => false, 'line-height' => false, 'text-transform' => true, 'output' => array('#main-navigation > li > a')), array('type' => 'divide', 'id' => 'divide_fake'), array('id' => 'typography_navigation_dropdown', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Dropdown menu', 'adroit') . '</div>', 'full_width' => true), array('id' => 'typography_navigation_second', 'type' => 'typography', 'title' => esc_html__('Second Menu Level', 'adroit'), 'letter-spacing' => true, 'text-align' => false, 'color' => false, 'line-height' => false, 'text-transform' => true, 'output' => array('#main-navigation > li ul.sub-menu-dropdown li > a'), 'default' => array()), array('id' => 'typography_navigation_mega', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Mega menu', 'adroit') . '</div>', 'full_width' => true), array('id' => 'typography_navigation_heading', 'type' => 'typography', 'title' => esc_html__('Heading title', 'adroit'), 'letter-spacing' => true, 'text-align' => false, 'color' => false, 'line-height' => false, 'text-transform' => true, 'output' => array('#main-navigation > li > .kt-megamenu-wrapper > .kt-megamenu-ul > li > a', '#main-navigation > li > .kt-megamenu-wrapper > .kt-megamenu-ul > li > span', '#main-navigation > li > .kt-megamenu-wrapper > .kt-megamenu-ul > li .widget-title'), 'default' => array()), array('id' => 'typography_navigation_mega_link', 'type' => 'typography', 'title' => esc_html__('Mega menu', 'adroit'), 'google' => true, 'text-align' => false, 'color' => false, 'text-transform' => true, 'line-height' => false, 'output' => array('#main-navigation > li > .kt-megamenu-wrapper > .kt-megamenu-ul > li ul.sub-menu-megamenu a'), 'default' => array()))); /** * Typography Navigation **/ $this->sections[] = array('id' => 'typography_footer_navigation', 'title' => esc_html__('Footer Navigation', 'adroit'), 'desc' => '', 'subsection' => true, 'fields' => array(array('id' => 'typography-footer', 'type' => 'typography', 'title' => esc_html__('Top Menu Level', 'adroit'), 'letter-spacing' => true, 'text-align' => false, 'color' => false, 'line-height' => false, 'text-transform' => true, 'output' => array('#footer-navigation ul li a'), 'default' => array()))); /** * Typography mobile Navigation **/ $this->sections[] = array('id' => 'typography_mobile_navigation', 'title' => esc_html__('Mobile Navigation', 'adroit'), 'desc' => '', 'subsection' => true, 'fields' => array(array('id' => 'typography_mobile_navigation_top', 'type' => 'typography', 'title' => esc_html__('Top Menu Level', 'adroit'), 'letter-spacing' => true, 'text-align' => false, 'color' => false, 'line-height' => false, 'text-transform' => true, 'output' => array('ul.navigation-mobile > li > a'), 'default' => array('text-transform' => 'uppercase')), array('type' => 'divide', 'id' => 'divide_fake'), array('id' => 'typography_mobile_navigation_second', 'type' => 'typography', 'title' => esc_html__('Sub Menu Level', 'adroit'), 'letter-spacing' => true, 'text-align' => false, 'color' => false, 'line-height' => false, 'text-transform' => true, 'output' => array('.main-nav-mobile > ul > li ul.sub-menu-dropdown li a', '.main-nav-mobile > ul > li ul.sub-menu-megamenu li a')), array('id' => 'typography_mobile_navigation_heading', 'type' => 'typography', 'title' => esc_html__('Heading title', 'adroit'), 'letter-spacing' => true, 'text-align' => false, 'color' => false, 'line-height' => false, 'text-transform' => true, 'output' => array('.main-nav-mobile > ul > li div.kt-megamenu-wrapper > ul > li > a', '.main-nav-mobile > ul > li div.kt-megamenu-wrapper > ul > li > span', '.main-nav-mobile > ul > li div.kt-megamenu-wrapper > ul > li .widget-title'), 'default' => array('text-transform' => 'uppercase', 'font-weight' => '700')))); /** * General page * */ $this->sections[] = array('title' => esc_html__('Page', 'adroit'), 'desc' => esc_html__('General Page Options', 'adroit'), 'icon' => 'fa fa-suitcase', 'fields' => array(array('id' => 'show_page_header', 'type' => 'switch', 'title' => esc_html__('Show Page header', 'adroit'), 'desc' => esc_html__('Show page header or?.', 'adroit'), "default" => 1, 'on' => esc_html__('Enabled', 'adroit'), 'off' => esc_html__('Disabled', 'adroit')), array('id' => 'page_sidebar', 'type' => 'select', 'title' => esc_html__('Sidebar configuration', 'adroit'), 'subtitle' => esc_html__("Please choose archive page ", 'adroit'), 'options' => array('' => esc_html__('No sidebars', 'adroit'), 'left' => esc_html__('Left Sidebar', 'adroit'), 'right' => esc_html__('Right Layout', 'adroit')), 'default' => 'right', 'clear' => false), array('id' => 'page_sidebar_left', 'type' => 'select', 'title' => esc_html__('Sidebar left area', 'adroit'), 'subtitle' => esc_html__("Please choose default layout", 'adroit'), 'data' => 'sidebars', 'default' => 'primary-widget-area', 'required' => array('page_sidebar', 'equals', 'left')), array('id' => 'page_sidebar_right', 'type' => 'select', 'title' => esc_html__('Sidebar right area', 'adroit'), 'subtitle' => esc_html__("Please choose page layout", 'adroit'), 'data' => 'sidebars', 'default' => 'primary-widget-area', 'required' => array('page_sidebar', 'equals', 'right')), array('id' => 'show_page_comment', 'type' => 'switch', 'title' => esc_html__('Show comments on page ?', 'adroit'), 'desc' => esc_html__('Show or hide the readmore button.', 'adroit'), "default" => 1, 'on' => esc_html__('Enabled', 'adroit'), 'off' => esc_html__('Disabled', 'adroit')))); /** * General Blog * */ $this->sections[] = array('title' => esc_html__('Blog', 'adroit'), 'icon' => 'fa fa-pencil', 'desc' => esc_html__('General Blog Options', 'adroit')); /** * Archive settings **/ $this->sections[] = array('id' => 'archive_section', 'title' => esc_html__('Archive', 'adroit'), 'desc' => 'Archive post settings', 'subsection' => true, 'fields' => array(array('id' => 'archive_heading', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Archive post general', 'adroit') . '</div>', 'full_width' => true), array('id' => 'archive_page_header', 'type' => 'switch', 'title' => esc_html__('Show Page header', 'adroit'), 'desc' => esc_html__('Show page header or?.', 'adroit'), "default" => 1, 'on' => esc_html__('Enabled', 'adroit'), 'off' => esc_html__('Disabled', 'adroit')), array('id' => 'archive_sidebar', 'type' => 'select', 'title' => esc_html__('Sidebar configuration', 'adroit'), 'subtitle' => esc_html__("Please choose archive page ", 'adroit'), 'options' => array('full' => esc_html__('No sidebars', 'adroit'), 'left' => esc_html__('Left Sidebar', 'adroit'), 'right' => esc_html__('Right Layout', 'adroit')), 'default' => 'right', 'clear' => false), array('id' => 'archive_sidebar_left', 'type' => 'select', 'title' => esc_html__('Sidebar left area', 'adroit'), 'subtitle' => esc_html__("Please choose left sidebar ", 'adroit'), 'data' => 'sidebars', 'default' => 'primary-widget-area', 'required' => array('archive_sidebar', 'equals', 'left'), 'clear' => false), array('id' => 'archive_sidebar_right', 'type' => 'select', 'title' => esc_html__('Sidebar right area', 'adroit'), 'subtitle' => esc_html__("Please choose left sidebar ", 'adroit'), 'data' => 'sidebars', 'default' => 'primary-widget-area', 'required' => array('archive_sidebar', 'equals', 'right'), 'clear' => false), array('type' => 'divide', 'id' => 'divide_fake'), array('id' => 'archive_loop_style', 'type' => 'select', 'title' => esc_html__('Loop Style', 'adroit'), 'desc' => '', 'options' => array('list' => esc_html__('List', 'adroit'), 'medium' => esc_html__('Medium', 'adroit'), 'grid' => esc_html__('Grid', 'adroit'), 'masonry' => esc_html__('Masonry', 'adroit')), 'default' => 'grid'), array('id' => 'archive_first_featured', 'type' => 'switch', 'title' => esc_html__('First featured', 'adroit'), 'desc' => esc_html__('Show First article featured or?.', 'adroit'), "default" => 0, 'on' => esc_html__('Enabled', 'adroit'), 'off' => esc_html__('Disabled', 'adroit')), array('id' => 'archive_columns', 'type' => 'select', 'title' => esc_html__('Columns on desktop', 'adroit'), 'desc' => '', 'options' => array('2' => esc_html__('2 columns', 'js_composer'), '3' => esc_html__('3 columns', 'js_composer'), '4' => esc_html__('4 columns', 'js_composer')), 'default' => '2', 'required' => array('archive_loop_style', 'equals', array('grid', 'masonry'))), array('type' => 'divide', 'id' => 'divide_fake'), array('id' => 'archive_posts_per_page', 'type' => 'text', 'title' => esc_html__('Posts per page', 'adroit'), 'desc' => esc_html__("Insert the total number of pages.", 'adroit'), 'default' => 14), array('id' => 'archive_excerpt_length', 'type' => 'text', 'title' => esc_html__('Excerpt Length', 'adroit'), 'desc' => esc_html__("Insert the number of words you want to show in the post excerpts.", 'adroit'), 'default' => 35), array('id' => 'archive_pagination', 'type' => 'select', 'title' => esc_html__('Pagination Type', 'adroit'), 'desc' => esc_html__('Select the pagination type.', 'adroit'), 'options' => array('normal' => esc_html__('Normal pagination', 'adroit'), 'button' => esc_html__('Next - Previous button', 'adroit')), 'default' => 'normal'))); /** * Author settings **/ $this->sections[] = array('id' => 'author_section', 'title' => esc_html__('Author', 'adroit'), 'desc' => 'Author post settings', 'subsection' => true, 'fields' => array(array('id' => 'author_heading', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Author post general', 'adroit') . '</div>', 'full_width' => true), array('id' => 'author_page_header', 'type' => 'switch', 'title' => esc_html__('Show Page header', 'adroit'), 'desc' => esc_html__('Show page header or?.', 'adroit'), "default" => 1, 'on' => esc_html__('Enabled', 'adroit'), 'off' => esc_html__('Disabled', 'adroit')), array('id' => 'author_sidebar', 'type' => 'select', 'title' => esc_html__('Sidebar configuration', 'adroit'), 'subtitle' => esc_html__("Please choose archive page ", 'adroit'), 'options' => array('full' => esc_html__('No sidebars', 'adroit'), 'left' => esc_html__('Left Sidebar', 'adroit'), 'right' => esc_html__('Right Layout', 'adroit')), 'default' => 'full', 'clear' => false), array('id' => 'author_sidebar_left', 'type' => 'select', 'title' => esc_html__('Sidebar left area', 'adroit'), 'subtitle' => esc_html__("Please choose left sidebar ", 'adroit'), 'data' => 'sidebars', 'default' => 'primary-widget-area', 'required' => array('author_sidebar', 'equals', 'left'), 'clear' => false), array('id' => 'author_sidebar_right', 'type' => 'select', 'title' => esc_html__('Sidebar right area', 'adroit'), 'subtitle' => esc_html__("Please choose left sidebar ", 'adroit'), 'data' => 'sidebars', 'default' => 'primary-widget-area', 'required' => array('author_sidebar', 'equals', 'right'), 'clear' => false), array('type' => 'divide', 'id' => 'divide_fake'), array('id' => 'author_posts_per_page', 'type' => 'text', 'title' => esc_html__('Posts per page', 'adroit'), 'desc' => esc_html__("Insert the total number of pages.", 'adroit'), 'default' => 9), array('id' => 'author_loop_style', 'type' => 'select', 'title' => esc_html__('Loop Style', 'adroit'), 'desc' => '', 'options' => array('list' => esc_html__('List', 'adroit'), 'medium' => esc_html__('Medium', 'adroit'), 'grid' => esc_html__('Grid', 'adroit'), 'masonry' => esc_html__('Masonry', 'adroit')), 'default' => 'grid'), array('id' => 'author_first_featured', 'type' => 'switch', 'title' => esc_html__('First featured', 'adroit'), 'desc' => esc_html__('Show First article featured or?.', 'adroit'), "default" => 0, 'on' => esc_html__('Enabled', 'adroit'), 'off' => esc_html__('Disabled', 'adroit')), array('id' => 'author_columns', 'type' => 'select', 'title' => esc_html__('Columns on desktop', 'adroit'), 'desc' => '', 'options' => array('2' => esc_html__('2 columns', 'js_composer'), '3' => esc_html__('3 columns', 'js_composer'), '4' => esc_html__('4 columns', 'js_composer')), 'default' => 3, 'required' => array('author_loop_style', 'equals', array('grid', 'masonry'))), array('type' => 'divide', 'id' => 'divide_fake'), array('id' => 'author_excerpt_length', 'type' => 'text', 'title' => esc_html__('Excerpt Length', 'adroit'), 'desc' => esc_html__("Insert the number of words you want to show in the post excerpts.", 'adroit'), 'default' => 35), array('id' => 'author_pagination', 'type' => 'select', 'title' => esc_html__('Pagination Type', 'adroit'), 'desc' => esc_html__('Select the pagination type.', 'adroit'), 'options' => array('normal' => esc_html__('Normal pagination', 'adroit'), 'button' => esc_html__('Next - Previous button', 'adroit')), 'default' => 'normal'))); /** * Single post settings **/ $this->sections[] = array('id' => 'post_single_section', 'title' => esc_html__('Single Post', 'adroit'), 'desc' => 'Single post settings', 'subsection' => true, 'fields' => array(array('id' => 'blog_single_heading', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Single post general', 'adroit') . '</div>', 'full_width' => true), array('id' => 'single_layout', 'type' => 'image_select', 'compiler' => true, 'title' => esc_html__('Single layout', 'adroit'), 'subtitle' => esc_html__('Please choose header layout', 'adroit'), 'options' => array(1 => array('alt' => esc_html__('Layout 1', 'adroit'), 'img' => KT_FW_IMG . 'single/layout-1.jpg'), 2 => array('alt' => esc_html__('Layout 2', 'adroit'), 'img' => KT_FW_IMG . 'single/layout-2.jpg'), 3 => array('alt' => esc_html__('Layout 3', 'adroit'), 'img' => KT_FW_IMG . 'single/layout-3.jpg'), 4 => array('alt' => esc_html__('Layout 4', 'adroit'), 'img' => KT_FW_IMG . 'single/layout-4.jpg'), 5 => array('alt' => esc_html__('Layout 5', 'adroit'), 'img' => KT_FW_IMG . 'single/layout-5.jpg'), 6 => array('alt' => esc_html__('Layout 6', 'adroit'), 'img' => KT_FW_IMG . 'single/layout-6.jpg')), 'default' => 1), array('id' => 'single_sidebar', 'type' => 'select', 'title' => esc_html__('Sidebar configuration', 'adroit'), 'subtitle' => esc_html__("Please choose sidebar for single post", 'adroit'), 'options' => array('' => esc_html__('No sidebars', 'adroit'), 'left' => esc_html__('Left Sidebar', 'adroit'), 'right' => esc_html__('Right Layout', 'adroit')), 'default' => 'right', 'clear' => false), array('id' => 'single_sidebar_left', 'type' => 'select', 'title' => esc_html__('Single post: Sidebar left area', 'adroit'), 'subtitle' => esc_html__("Please choose left sidebar ", 'adroit'), 'data' => 'sidebars', 'default' => 'primary-widget-area', 'required' => array('single_sidebar', 'equals', 'left'), 'clear' => false), array('id' => 'single_sidebar_right', 'type' => 'select', 'title' => esc_html__('Single post: Sidebar right area', 'adroit'), 'subtitle' => esc_html__("Please choose left sidebar ", 'adroit'), 'data' => 'sidebars', 'default' => 'primary-widget-area', 'required' => array('single_sidebar', 'equals', 'right'), 'clear' => false), array('type' => 'divide', 'id' => 'divide_fake'), array('id' => 'single_image_size', 'type' => 'select', 'options' => $image_sizes, 'title' => esc_html__('Image size', 'adroit'), 'desc' => esc_html__("Select image size.", 'adroit'), 'default' => 'blog_post'), array('type' => 'divide', 'id' => 'divide_fake'), array('id' => 'single_share_box', 'type' => 'switch', 'title' => esc_html__('Share box in posts', 'adroit'), 'desc' => esc_html__('Show share box in blog posts.', 'adroit'), "default" => 1, 'on' => esc_html__('Enabled', 'adroit'), 'off' => esc_html__('Disabled', 'adroit')), array('id' => 'single_like_post', 'type' => 'switch', 'title' => esc_html__('Show like article', 'adroit'), 'desc' => esc_html__('Show like article or?', 'adroit'), "default" => 1, 'on' => esc_html__('Enabled', 'adroit'), 'off' => esc_html__('Disabled', 'adroit')), array('id' => 'single_next_prev', 'type' => 'switch', 'title' => esc_html__('Previous & next buttons', 'adroit'), 'desc' => esc_html__('Show Previous & next buttons in blog posts.', 'adroit'), "default" => 0, 'on' => esc_html__('Enabled', 'adroit'), 'off' => esc_html__('Disabled', 'adroit')), array('id' => 'single_author', 'type' => 'switch', 'title' => esc_html__('Author info in posts', 'adroit'), 'desc' => esc_html__('Show author info in blog posts.', 'adroit'), "default" => 1, 'on' => esc_html__('Enabled', 'adroit'), 'off' => esc_html__('Disabled', 'adroit')), array('id' => 'single_related', 'type' => 'switch', 'title' => esc_html__('Related posts', 'adroit'), 'desc' => esc_html__('Show related posts in blog posts.', 'adroit'), "default" => 1, 'on' => esc_html__('Enabled', 'adroit'), 'off' => esc_html__('Disabled', 'adroit')), array('id' => 'single_related_type', 'type' => 'select', 'title' => esc_html__('Related Query Type', 'adroit'), 'options' => array('categories' => esc_html__('Categories', 'adroit'), 'tags' => esc_html__('Tags', 'adroit'), 'author' => esc_html__('Author', 'adroit')), 'default' => 'categories', 'clear' => false))); /** * Search settings **/ $this->sections[] = array('id' => 'search_section', 'title' => esc_html__('Search', 'adroit'), 'desc' => 'Search settings', 'icon' => 'fa fa-search', 'fields' => array(array('id' => 'search_heading', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Search post general', 'adroit') . '</div>', 'full_width' => true), array('id' => 'search_page_header', 'type' => 'switch', 'title' => esc_html__('Show Page header', 'adroit'), 'desc' => esc_html__('Show page header or?.', 'adroit'), "default" => 1, 'on' => esc_html__('Enabled', 'adroit'), 'off' => esc_html__('Disabled', 'adroit')), array('id' => 'search_sidebar', 'type' => 'select', 'title' => esc_html__('Sidebar configuration', 'adroit'), 'subtitle' => esc_html__("Please choose archive page ", 'adroit'), 'options' => array('full' => esc_html__('No sidebars', 'adroit'), 'left' => esc_html__('Left Sidebar', 'adroit'), 'right' => esc_html__('Right Layout', 'adroit')), 'default' => 'full', 'clear' => false), array('id' => 'search_sidebar_left', 'type' => 'select', 'title' => esc_html__('Sidebar left area', 'adroit'), 'subtitle' => esc_html__("Please choose left sidebar ", 'adroit'), 'data' => 'sidebars', 'default' => 'primary-widget-area', 'required' => array('search_sidebar', 'equals', 'left'), 'clear' => false), array('id' => 'search_sidebar_right', 'type' => 'select', 'title' => esc_html__('Search: Sidebar right area', 'adroit'), 'subtitle' => esc_html__("Please choose left sidebar ", 'adroit'), 'data' => 'sidebars', 'default' => 'primary-widget-area', 'required' => array('search_sidebar', 'equals', 'right'), 'clear' => false), array('type' => 'divide', 'id' => 'divide_fake'), array('id' => 'search_posts_per_page', 'type' => 'text', 'title' => esc_html__('Posts per page', 'adroit'), 'desc' => esc_html__("Insert the total number of pages.", 'adroit'), 'default' => 9), array('id' => 'search_loop_style', 'type' => 'select', 'title' => esc_html__('Search Loop Style', 'adroit'), 'desc' => '', 'options' => array('grid' => esc_html__('Grid', 'js_composer'), 'medium' => esc_html__('medium', 'js_composer'), 'masonry' => esc_html__('Masonry', 'js_composer')), 'default' => 'grid'), array('id' => 'search_first_featured', 'type' => 'switch', 'title' => esc_html__('First featured', 'adroit'), 'desc' => esc_html__('Show First article featured or?.', 'adroit'), "default" => 0, 'on' => esc_html__('Enabled', 'adroit'), 'off' => esc_html__('Disabled', 'adroit')), array('id' => 'search_columns', 'type' => 'select', 'title' => esc_html__('Columns on desktop', 'adroit'), 'desc' => '', 'options' => array('2' => esc_html__('2 columns', 'js_composer'), '3' => esc_html__('3 columns', 'js_composer'), '4' => esc_html__('4 columns', 'js_composer')), 'default' => '3', 'required' => array('search_loop_style', 'equals', array('grid', 'masonry'))), array('id' => 'search_pagination', 'type' => 'select', 'title' => esc_html__('Pagination Type', 'adroit'), 'desc' => esc_html__('Select the pagination type.', 'adroit'), 'options' => array('normal' => esc_html__('Normal pagination', 'adroit'), 'button' => esc_html__('Next - Previous button', 'adroit')), 'default' => 'normal'), array('id' => 'search_excerpt_length', 'type' => 'text', 'title' => esc_html__('Excerpt Length', 'adroit'), 'desc' => esc_html__("Insert the number of words you want to show in the post excerpts.", 'adroit'), 'default' => 35))); $this->sections[] = array('id' => 'social', 'title' => esc_html__('Socials', 'adroit'), 'desc' => esc_html__('Social and share settings', 'adroit'), 'icon' => 'fa fa-facebook', 'fields' => array(array('id' => 'twitter', 'type' => 'text', 'title' => esc_html__('Twitter', 'adroit'), 'subtitle' => esc_html__("Your Twitter username (no @).", 'adroit'), 'default' => '#'), array('id' => 'facebook', 'type' => 'text', 'title' => esc_html__('Facebook', 'adroit'), 'subtitle' => esc_html__("Your Facebook page/profile url", 'adroit'), 'default' => '#'), array('id' => 'pinterest', 'type' => 'text', 'title' => esc_html__('Pinterest', 'adroit'), 'subtitle' => esc_html__("Your Pinterest username", 'adroit'), 'default' => '#'), array('id' => 'dribbble', 'type' => 'text', 'title' => esc_html__('Dribbble', 'adroit'), 'subtitle' => esc_html__("Your Dribbble username", 'adroit'), 'desc' => '', 'default' => ''), array('id' => 'vimeo', 'type' => 'text', 'title' => esc_html__('Vimeo', 'adroit'), 'subtitle' => esc_html__("Your Vimeo username", 'adroit'), 'desc' => '', 'default' => '#'), array('id' => 'tumblr', 'type' => 'text', 'title' => esc_html__('Tumblr', 'adroit'), 'subtitle' => esc_html__("Your Tumblr username", 'adroit'), 'desc' => '', 'default' => '#'), array('id' => 'skype', 'type' => 'text', 'title' => esc_html__('Skype', 'adroit'), 'subtitle' => esc_html__("Your Skype username", 'adroit'), 'desc' => '', 'default' => ''), array('id' => 'linkedin', 'type' => 'text', 'title' => esc_html__('LinkedIn', 'adroit'), 'subtitle' => esc_html__("Your LinkedIn page/profile url", 'adroit'), 'desc' => '', 'default' => ''), array('id' => 'googleplus', 'type' => 'text', 'title' => esc_html__('Google+', 'adroit'), 'subtitle' => esc_html__("Your Google+ page/profile URL", 'adroit'), 'desc' => '', 'default' => '#'), array('id' => 'youtube', 'type' => 'text', 'title' => esc_html__('YouTube', 'adroit'), 'subtitle' => esc_html__("Your YouTube username", 'adroit'), 'desc' => '', 'default' => ''), array('id' => 'instagram', 'type' => 'text', 'title' => esc_html__('Instagram', 'adroit'), 'subtitle' => esc_html__("Your Instagram username", 'adroit'), 'desc' => '', 'default' => ''))); /** * Sidebar **/ $this->sections[] = array('id' => 'sidebar_bar_section', 'title' => esc_html__('Sidebar Right Area', 'adroit'), 'desc' => '', 'icon' => 'fa fa-columns', 'fields' => array(array('id' => 'header_bars', 'type' => 'switch', 'title' => esc_html__('Header Bars', 'adroit'), 'desc' => esc_html__('Show button header bars on header.', 'adroit'), "default" => 1, 'on' => esc_html__('Enabled', 'adroit'), 'off' => esc_html__('Disabled', 'adroit')), array('id' => 'title_header_bars', 'type' => 'text', 'title' => esc_html__('Title Header Bars', 'adroit'), 'desc' => '', 'default' => 'Recents Posts'))); /** * Sidebar **/ $this->sections[] = array('id' => 'sidebar_section', 'title' => esc_html__('Sidebar Widgets', 'adroit'), 'desc' => '', 'icon' => 'fa fa-columns', 'fields' => array(array('id' => 'custom_sidebars', 'type' => 'slides', 'title' => esc_html__('Slides Options', 'adroit'), 'subtitle' => esc_html__('Unlimited sidebar with drag and drop sortings.', 'adroit'), 'desc' => '', 'class' => 'slider-no-image-preview', 'content_title' => 'Sidebar', 'show' => array('title' => true, 'description' => true, 'url' => false), 'placeholder' => array('title' => esc_html__('Sidebar title', 'adroit'), 'description' => esc_html__('Sidebar Description', 'adroit'))))); /** * 404 Page **/ $this->sections[] = array('id' => '404_section', 'title' => esc_html__('404 Page', 'adroit'), 'desc' => '404 Page settings', 'icon' => 'fa fa-times-circle', 'fields' => array(array('id' => 'notfound_heading', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('404 Page general', 'adroit') . '</div>', 'full_width' => true), array('id' => 'notfound_page_header', 'type' => 'switch', 'title' => esc_html__('Show Page header', 'adroit'), 'desc' => esc_html__('Show page header or?.', 'adroit'), "default" => 0, 'on' => esc_html__('Enabled', 'adroit'), 'off' => esc_html__('Disabled', 'adroit')), array('id' => 'notfound_page_type', 'type' => 'select', 'title' => esc_html__('404 Page', 'adroit'), 'desc' => '', 'options' => array('default' => esc_html__('Default', 'adroit'), 'page' => esc_html__('From Page', 'adroit'), 'home' => esc_html__('Redirect Home', 'adroit')), 'default' => 'default'), array('id' => 'notfound_page_id', 'type' => 'select', 'data' => 'pages', 'title' => esc_html__('Pages Select Option', 'adroit'), 'desc' => esc_html__('Select your page 404 you want use', 'adroit'), 'required' => array('notfound_page_type', '=', 'page')))); /** * Advanced **/ $this->sections[] = array('id' => 'advanced', 'title' => esc_html__('Advanced', 'adroit'), 'desc' => '', 'icon' => 'fa fa-cog'); /** * Advanced Social Share **/ $this->sections[] = array('id' => 'share_section', 'title' => esc_html__('Social Share', 'adroit'), 'desc' => '', 'subsection' => true, 'fields' => array(array('id' => 'social_share', 'type' => 'sortable', 'mode' => 'checkbox', 'title' => esc_html__('Social Share', 'adroit'), 'desc' => esc_html__('Reorder and Enable/Disable Social Share Buttons.', 'adroit'), 'options' => array('facebook' => esc_html__('Facebook', 'adroit'), 'twitter' => esc_html__('Twitter', 'adroit'), 'google_plus' => esc_html__('Google+', 'adroit'), 'pinterest' => esc_html__('Pinterest', 'adroit'), 'linkedin' => esc_html__('Linkedin', 'adroit'), 'tumblr' => esc_html__('Tumblr', 'adroit'), 'mail' => esc_html__('Mail', 'adroit')), 'default' => array('facebook' => true, 'twitter' => true, 'google_plus' => true, 'pinterest' => false, 'linkedin' => false, 'tumblr' => false, 'mail' => false)))); /** * Advanced Socials API **/ $this->sections[] = array('id' => 'socials_api_section', 'title' => esc_html__('Socials API', 'adroit'), 'desc' => '', 'subsection' => true, 'fields' => array(array('id' => 'facebook_app_heading', 'type' => 'raw', 'content' => '<div class="section-heading">' . esc_html__('Facebook App', 'adroit') . '</div>', 'full_width' => true), array('id' => 'facebook_app', 'type' => 'text', 'title' => esc_html__('Facebook App ID', 'adroit'), 'subtitle' => esc_html__("Add Facebook App ID.", 'adroit'), 'default' => '417674911655656'))); /** * Advanced Custom CSS **/ $this->sections[] = array('id' => 'advanced_css', 'title' => esc_html__('Custom CSS', 'adroit'), 'desc' => '', 'subsection' => true, 'fields' => array(array('id' => 'advanced_editor_css', 'type' => 'ace_editor', 'title' => esc_html__('CSS Code', 'adroit'), 'subtitle' => esc_html__('Paste your CSS code here.', 'adroit'), 'mode' => 'css', 'theme' => 'chrome', 'full_width' => true))); /** * Advanced Custom CSS **/ $this->sections[] = array('id' => 'advanced_js', 'title' => esc_html__('Custom JS', 'adroit'), 'desc' => '', 'subsection' => true, 'fields' => array(array('id' => 'advanced_editor_js', 'type' => 'ace_editor', 'title' => esc_html__('JS Code', 'adroit'), 'subtitle' => esc_html__('Paste your JS code here.', 'adroit'), 'mode' => 'javascript', 'theme' => 'chrome', 'default' => "jQuery(document).ready(function(){\n\n});", 'full_width' => true))); /** * Advanced Tracking Code **/ $this->sections[] = array('id' => 'advanced_tracking', 'title' => esc_html__('Tracking Code', 'adroit'), 'desc' => '', 'subsection' => true, 'fields' => array(array('id' => 'advanced_tracking_code', 'type' => 'textarea', 'title' => esc_html__('Tracking Code', 'adroit'), 'desc' => esc_html__('Paste your Google Analytics (or other) tracking code here. This will be added into the header template of your theme. Please put code inside script tags.', 'adroit')))); $info_arr = array(); $theme = wp_get_theme(); $info_arr[] = "<li><span>" . esc_html__('Theme Name:', 'adroit') . " </span>" . $theme->get('Name') . '</li>'; $info_arr[] = "<li><span>" . esc_html__('Theme Version:', 'adroit') . " </span>" . $theme->get('Version') . '</li>'; $info_arr[] = "<li><span>" . esc_html__('Theme URI:', 'adroit') . " </span>" . $theme->get('ThemeURI') . '</li>'; $info_arr[] = "<li><span>" . esc_html__('Author:', 'adroit') . " </span>" . $theme->get('Author') . '</li>'; $system_info = sprintf("<div class='troubleshooting'><ul>%s</ul></div>", implode('', $info_arr)); /** * Advanced Troubleshooting **/ $this->sections[] = array('id' => 'advanced_troubleshooting', 'title' => esc_html__('Troubleshooting', 'adroit'), 'desc' => '', 'subsection' => true, 'fields' => array(array('id' => 'opt-raw_info_4', 'type' => 'raw', 'content' => $system_info, 'full_width' => true))); }