/** * Field Render Function. * Takes the vars and outputs the HTML for the field in the settings * * @since 1.0.0 * @access public * @return void */ public function render() { $defaults = array('content_name' => __('Category Settings', 'redux-framework')); $this->field = wp_parse_args($this->field, $defaults); echo '<div class="redux-category_settings-accordion" data-new-content-name="' . esc_attr(sprintf(__('New %s', 'redux-framework'), $this->field['content_name'])) . '">'; $x = 0; if (isset($this->value) && is_array($this->value) && !empty($this->value)) { $category_settings = $this->value; $defaults = array('sort' => 0, 'category' => 'category', 'template' => '', 'category_name' => '', 'template_name' => '', 'sidebar_position_name' => '', 'sidebar_area_name' => '', 'show_post_category' => (bool) xt_option('show_post_category'), 'show_post_author' => (bool) xt_option('show_post_author'), 'show_post_date' => (bool) xt_option('show_post_date'), 'show_post_excerpt' => (bool) xt_option('show_post_excerpt'), 'show_post_stats' => (bool) xt_option('show_post_stats')); foreach ($category_settings as $category) { if (empty($category)) { continue; } $category = wp_parse_args($category, $defaults); $this->category = $category; echo '<div class="redux-category_settings-accordion-group"><fieldset class="redux-field" data-id="' . $this->field['id'] . '"><h3> <span class="redux-category_settings-header">' . (!empty($category['category_name']) ? $category['category_name'] . ' / ' . $category['template_name'] : 'New ' . $this->field['content_name']) . '</span></h3><div>'; echo '<ul id="' . $this->field['id'] . '-ul" class="redux-category_settings-list">'; $this->createFieldSelect('Category', 'category', $this->categories, $x, 'slide-name'); $this->createFieldSelect('Template', 'template', $this->templates, $x); $this->createFieldSelect('Sidebar Position', 'sidebar_position', $this->sidebar_positions, $x); $this->createFieldSelect('Sidebar Area', 'sidebar_area', $this->sidebar_areas, $x); $this->createFieldSwitch('Show Post Category', 'show_post_category', $x); $this->createFieldSwitch('Show Post Excerpt', 'show_post_excerpt', $x); $this->createFieldSwitch('Show Post Date', 'show_post_date', $x); $this->createFieldSwitch('Show Post Author', 'show_post_author', $x); $this->createFieldSwitch('Show Post Stats', 'show_post_stats', $x); $this->createFieldHidden('sort', $x); echo '<li><a href="javascript:void(0);" class="button deletion redux-category_settings-remove">' . sprintf(__('Delete %s', 'redux-framework'), $this->field['content_name']) . '</a></li>'; echo '</ul></div></fieldset></div>'; $x++; } } echo '</div><a href="javascript:void(0);" class="button redux-category_settings-add button-primary" rel-id="' . $this->field['id'] . '-ul" rel-name="' . $this->field['name'] . '[name][]' . $this->field['name_suffix'] . '">' . sprintf(__('Add %s', 'redux-framework'), $this->field['content_name']) . '</a><br/>'; }
/** * Register widget with WordPress. */ function __construct() { $this->cache_enabled = (bool) xt_option('cache_vc_widgets'); $this->cache_expire = (int) xt_option('cache_vc_widgets_timeout') * 60; add_shortcode($this->id, array($this, 'shortcode')); if (function_exists('vc_map')) { add_action('vc_before_init', array($this, 'vcMap')); } add_action('save_post', array($this, 'flushCache'), 10, 3); }
function xt_woocommerce_get_cart_link($class = "") { global $woocommerce; $enable_cart_count = (int) xt_option('woo_header_enable_cart_count'); $cart_title = xt_option('woo_header_cart_menu_title'); if (!empty($cart_title)) { $cart_title .= ' '; } else { $cart_title = ""; } $cart_url = $woocommerce->cart->get_cart_url() != '' ? $woocommerce->cart->get_cart_url() : '#'; $cart_count = $woocommerce->cart->cart_contents_count; $cart_hidden = false; if ($enable_cart_count == 0 || $enable_cart_count == 2 && $cart_count == 0) { $cart_hidden = true; } if (!empty($cart_title)) { $cart_count = "(" . $cart_count . ")"; } ob_start(); ?> <a class="cart-contents <?php echo esc_attr($class); ?> " <?php echo $cart_hidden ? 'style="display:none"' : ''; ?> href="<?php echo esc_url($cart_url); ?> " title="<?php _e('View your shopping cart', XT_TEXT_DOMAIN); ?> "><span class="fa fa-shopping-cart"></span> <?php echo wp_kses_post($cart_title); echo esc_html($cart_count); ?> </a> <?php $link = ob_get_clean(); return $link; }
function xt_ajax_login_register_localized_js() { if (!empty($_GET["redirect"])) { $redirect_url = urldecode($_GET["redirect"]); } else { $redirect_page = xt_option('frontend_login_redirect_page'); $redirect_url = get_permalink($redirect_page); $redirect_url = empty($redirect_page) ? $_SERVER['REQUEST_URI'] : $redirect_url; $redirect_url = apply_filters('frontend_login_redirect_page', $redirect_url); } $width = array('default' => 565, 'wide' => 440, 'extra_buttons' => 666, 'mobile' => 300); $fb_button = xt_option('enable_facebook_connect'); if (wp_is_mobile()) { $key = 'mobile'; } else { $key = 'default'; } $defaults = array('ajaxurl' => admin_url("admin-ajax.php"), 'redirect' => $redirect_url, 'dialog_width' => $width[$key], 'match_error' => AjaxLogin::status('passwords_do_not_match', 'description'), 'is_user_logged_in' => is_user_logged_in() ? 1 : 0, 'wp_logout_url' => wp_logout_url(site_url()), 'logout_text' => __('Logout', XT_TEXT_DOMAIN), 'close_text' => __('Close', XT_TEXT_DOMAIN)); $localized = apply_filters('xt_ajax_login_register_localized_js', $defaults); return $localized; }
function xt_attachment_link_class($html) { $postid = get_the_ID(); $zoom = (bool) xt_option('enable_thumbnail_zoom'); $highlight = (bool) xt_option('enable_thumbnail_border_highlight'); $html = str_replace('<a', '<a class="th post-thumbnail' . ($zoom ? ' zoom' : '') . '"', $html); $append = ""; if ($highlight) { $append .= ' <div class="border-tb th-border"></div> <div class="border-tr th-border"></div> <div class="border-bt th-border"></div> <div class="border-bl th-border"></div> '; $html = str_replace('</a>', $append . '</a>', $html); } return $html; }
} $tag_list = false; if ($show_post_tags) { $tag_list = get_the_tag_list('<li itemprop="keywords">', '</li><li itemprop="keywords">', '</li>'); } if ($categories_list || $tag_list) { echo '<div class="article-categories"><h5>' . __('In this article', XT_TEXT_DOMAIN) . '</h5>' . '<ul><li>' . ($categories_list ? $categories_list : '') . '</li>' . ($tag_list ? $tag_list : '') . '</ul></div>'; } ?> <?php } ?> <?php $show_post_author_bio = (bool) xt_option('show_post_author_bio', null, true); ?> <?php if ($show_post_author_bio && !$is_endless_template) { ?> <?php get_template_part('parts/items/post', 'author'); ?> <?php } ?> </div> <?php
<?php get_template_part('parts/facebook', 'init'); ?> <?php do_action('xt_after_body'); ?> <div class="body_overlay"></div> <div id="pusher" class="off-canvas-wrap closed" data-offcanvas> <div id="wrapper" class="container inner-wrap"> <?php $push_menu = xt_option('push-menu-position'); if ($push_menu != "disabled") { if ($push_menu == "left") { get_template_part('parts/menu', 'push-left'); } else { get_template_part('parts/menu', 'push-right'); } } ?> <!-- Header --> <header id="main-header"> <?php get_template_part('parts/menu', 'top');
<?php if (function_exists('is_shop') && function_exists('xt_woocommerce_get_cart_link')) { ?> <?php global $woocommerce; $enable_cart_count = (int) xt_option('woo_header_enable_cart_count'); $enable_cart_dropdown = (bool) xt_option('woo_header_enable_cart_dropdown'); $cart_count = $woocommerce->cart->cart_contents_count; $cart_enabled = false; if ($enable_cart_count > 0) { $cart_enabled = true; } ?> <?php if ($cart_enabled) { ?> <li class="flat canhover shopping-cart-menu show-for-medium-up <?php echo $enable_cart_dropdown ? 'has-dropdown' : ''; ?> "> <?php echo xt_woocommerce_get_cart_link(); ?> <?php if ($enable_cart_dropdown) { ?> <ul class="woo-cart-dropdown-wrap dropdown animate-drop open-top"> <li>
function vote() { global $post; if (is_user_logged_in()) { $vote_count = (array) get_user_meta(get_current_user_id(), 'vote_count', true); if (isset($_GET['xt-vote_like']) && intval($_GET['xt-vote_like']) > 0) { $post_id = intval($_GET['xt-vote_like']); $the_post = get_post($post_id); if ($the_post && !in_array($post_id, $vote_count)) { $vote_count[] = $post_id; update_user_meta(get_current_user_id(), 'vote_count', $vote_count); $post_votes = (int) get_post_meta($post_id, '_votes_likes', true); $post_votes++; update_post_meta($post_id, '_votes_likes', $post_votes); $post = get_post($post_id); $this->votes(true); die(''); } } elseif (isset($_GET['xt-vote_dislike']) && intVal($_GET['xt-vote_dislike']) > 0) { $post_id = intVal($_GET['xt-vote_dislike']); $the_post = get_post($post_id); if ($the_post && !in_array($post_id, $vote_count)) { $vote_count[] = $post_id; update_user_meta(get_current_user_id(), 'vote_count', $vote_count); $post_votes = (int) get_post_meta($post_id, '_votes_dislikes', true); $post_votes++; update_post_meta($post_id, '_votes_dislikes', $post_votes); $post = get_post($post_id); $this->votes(true); die(''); } } } elseif (!is_user_logged_in() && xt_option('likes_voting') == 1) { // ADD VOTING FOR NON LOGGED IN USERS USING COOKIE TO STOP REPEAT VOTING ON AN ARTICLE $vote_count = ''; if (isset($_COOKIE['vote_count'])) { $vote_count = @unserialize($_COOKIE['vote_count']); } if (!is_array($vote_count) && isset($vote_count)) { $vote_count = array(); } if (isset($_GET['xt-vote_like']) && intVal($_GET['xt-vote_like']) > 0) { $post_id = intVal($_GET['xt-vote_like']); $the_post = get_post($post_id); if ($the_post && !in_array($post_id, $vote_count)) { $vote_count[] = $post_id; $_COOKIE['vote_count'] = serialize($vote_count); setcookie('vote_count', $_COOKIE['vote_count'], time() + 10 * 365 * 24 * 60 * 60, '/'); $post_votes = (int) get_post_meta($post_id, '_votes_likes', true); $post_votes++; update_post_meta($post_id, '_votes_likes', $post_votes); $post = get_post($post_id); $this->votes(true); die(''); } } elseif (isset($_GET['xt-vote_dislike']) && intVal($_GET['xt-vote_dislike']) > 0) { $post_id = intVal($_GET['xt-vote_dislike']); $the_post = get_post($post_id); if ($the_post && !in_array($post_id, $vote_count)) { $vote_count[] = $post_id; $_COOKIE['vote_count'] = serialize($vote_count); setcookie('vote_count', $_COOKIE['vote_count'], time() + 10 * 365 * 24 * 60 * 60, '/'); $post_votes = (int) get_post_meta($post_id, '_votes_dislikes', true); $post_votes++; update_post_meta($post_id, '_votes_dislikes', $post_votes); $post = get_post($post_id); $this->votes(true); die(''); } } } elseif (!is_user_logged_in() && xt_option('likes_voting') == 2) { return; } }
/** * Start the element output. * * @see Walker::start_el() * * @since 3.0.0 * * @param string $output Passed by reference. Used to append additional content. * @param object $item Menu item data object. * @param int $depth Depth of menu item. Used for padding. * @param array $args An array of arguments. @see wp_nav_menu() * @param int $id Current item ID. */ function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0) { global $post; $backupPost = $post; $indent = $depth ? str_repeat("\t", $depth) : ''; $class_names = ''; $classes = empty($item->classes) ? array() : (array) $item->classes; $args->has_category_dropdown = false; if (!empty($item->enable_megamenu) && !empty($args)) { $args->megamenu_enabled = (bool) $item->enable_megamenu; if (!empty($args->megamenu_enabled) && $args->theme_location == 'main-menu' && in_array("menu-item-type-taxonomy", $classes) && $depth == 0) { $classes[] = 'has-category-dropdown'; $args->has_category_dropdown = $item->object_id; if ($item->object == 'category') { $query = new WP_Query(array('posts_per_page' => 6, 'cat' => $item->object_id)); } else { $query = new WP_Query(array('posts_per_page' => 6, 'tax_query' => array(array('taxonomy' => $item->object, 'field' => 'id', 'terms' => array($item->object_id), 'include_children' => true, 'operator' => 'IN')))); } $posts = $query->posts; $category_sub_menu = "\n{$indent}<div id=\"category_posts_sub_menu_" . $item->object_id . "\" class=\"category_posts_sub_menu inactive\" data-cid=\"" . $item->object_id . "\"><div class=\"row in-container\"><div class=\"medium-12 column\">"; ob_start(); $show_tags = (bool) xt_option('megamenu-show-tags-links', null, 1); $show_subcategories = (bool) xt_option('megamenu-show-subcategory-links', null, 1); $show_submenus = (bool) xt_option('megamenu-show-submenu-links', null, 1); $all_tags = array(); foreach ($posts as $post) { setup_postdata($post); // Get Tags if ($show_tags) { $tags = wp_get_post_tags($post->ID); foreach ($tags as $tag) { $all_tags[$tag->term_id] = $tag; } } ?> <div class="category_submenu_post"> <?php xt_post_thumbnail('th-medium', true); xt_post_title('h5', '', true); ?> </div> <?php } wp_reset_postdata(); // Get Related Categories $subcategories = array(); if ($show_subcategories) { $args = array('child_of' => $item->object_id); $subcategories = get_categories($args); } if ($show_submenus) { $submenu_items = $item->hasChildren && !empty($item->childs) ? $item->childs : false; } $post = $backupPost; $category_sub_menu .= ob_get_clean(); $category_sub_menu .= "</div></div><div class=\"row in-container\"><div class=\"medium-12 column\">"; if (!empty($all_tags) || !empty($subcategories) || !empty($submenu_items)) { $category_sub_menu .= '<div class="category_links_wrap">'; } if (!empty($all_tags)) { $category_sub_menu .= '<span class="category_links megamenu-tags">'; $category_sub_menu .= '<span>' . __("In this category", XT_TEXT_DOMAIN) . ': </span>'; foreach ($all_tags as $tag) { $category_sub_menu .= ' <a href="' . get_tag_link($tag->term_id) . '">' . $tag->name . '</a> '; } $category_sub_menu .= '</span>'; $category_sub_menu .= '<span class="spacer"></span>'; } if (!empty($subcategories)) { $category_sub_menu .= '<span class="category_links megamenu-subcategories">'; $category_sub_menu .= '<span>' . __("Subcategories", XT_TEXT_DOMAIN) . ': </span>'; foreach ($subcategories as $cat) { $category_sub_menu .= ' <a href="' . get_category_link($cat->term_id) . '">' . $cat->name . '</a> '; } $category_sub_menu .= '</span>'; $category_sub_menu .= '<span class="spacer"></span>'; } if (!empty($submenu_items)) { $category_sub_menu .= '<span class="category_links megamenu-submenu-items">'; $category_sub_menu .= '<span>' . __("Other Links", XT_TEXT_DOMAIN) . ': </span>'; foreach ($submenu_items as $menu_item) { $category_sub_menu .= '<a href="' . $menu_item->url . '">' . $menu_item->title . '</a>'; } $category_sub_menu .= '</span>'; $category_sub_menu .= '<span class="spacer"></span>'; } if (!empty($all_tags) || !empty($subcategories) || !empty($submenu_items)) { $category_sub_menu .= '</div>'; } $category_sub_menu .= "</div></div></div>"; $this->category_sub_menus[$item->object_id] = $category_sub_menu; } } /** * Filter the CSS class(es) applied to a menu item's <li>. * * @since 3.0.0 * * @see wp_nav_menu() * * @param array $classes The CSS classes that are applied to the menu item's <li>. * @param object $item The current menu item. * @param array $args An array of wp_nav_menu() arguments. */ $class_names = join(' ', apply_filters('nav_menu_css_class', array_filter($classes), $item, $args)); $class_names = str_replace('menu-item-has-children', 'has-dropdown not-click', $class_names); $class_names = $class_names ? ' class="' . esc_attr($class_names) . '"' : ''; /** * Filter the ID applied to a menu item's <li>. * * @since 3.0.1 * * @see wp_nav_menu() * * @param string $menu_id The ID that is applied to the menu item's <li>. * @param object $item The current menu item. * @param array $args An array of wp_nav_menu() arguments. */ $id = apply_filters('nav_menu_item_id', 'menu-item-' . $item->ID, $item, $args); $id = $id ? ' id="' . esc_attr($id) . '"' : ''; $output .= $indent . '<li' . $id . $class_names . ' data-itemid="' . $item->ID . '" data-objectid="' . $item->object_id . '">'; $atts = array(); $atts['title'] = !empty($item->attr_title) ? $item->attr_title : ''; $atts['target'] = !empty($item->target) ? $item->target : ''; $atts['rel'] = !empty($item->xfn) ? $item->xfn : ''; $atts['href'] = !empty($item->url) ? $item->url : ''; /** * Filter the HTML attributes applied to a menu item's <a>. * * @since 3.6.0 * * @see wp_nav_menu() * * @param array $atts { * The HTML attributes applied to the menu item's <a>, empty strings are ignored. * * @type string $title Title attribute. * @type string $target Target attribute. * @type string $rel The rel attribute. * @type string $href The href attribute. * } * @param object $item The current menu item. * @param array $args An array of wp_nav_menu() arguments. */ $atts = apply_filters('nav_menu_link_attributes', $atts, $item, $args); $attributes = ''; foreach ($atts as $attr => $value) { if (!empty($value)) { $value = 'href' === $attr ? esc_url($value) : esc_attr($value); $attributes .= ' ' . $attr . '="' . $value . '"'; } } $item_output = !empty($args->before) ? $args->before : ''; $item_output .= '<a' . $attributes . '>'; /** This filter is documented in wp-includes/post-template.php */ $item_output .= (!empty($args->link_before) ? $args->link_before : '') . apply_filters('the_title', $item->title, $item->ID) . (!empty($args->link_after) ? $args->link_after : ''); $item_output .= '</a>'; $item_output .= !empty($args->after) ? $args->after : ''; /** * Filter a menu item's starting output. * * The menu item's starting output only includes $args->before, the opening <a>, * the menu item's title, the closing </a>, and $args->after. Currently, there is * no filter for modifying the opening and closing <li> for a menu item. * * @since 3.0.0 * * @see wp_nav_menu() * * @param string $item_output The menu item's starting HTML output. * @param object $item Menu item data object. * @param int $depth Depth of menu item. Used for padding. * @param array $args An array of wp_nav_menu() arguments. */ $output .= apply_filters('walker_nav_menu_start_el', $item_output, $item, $depth, $args); }
public function setSections() { $primary_color = '#e8280b'; $secondary_color = '#eaeaea'; $text_color_1 = '#181818'; $text_color_2 = '#b7b7b7'; $text_color_3 = '#8b8c8e'; $bg_color_light = '#f3f3f3'; $bg_color_dark = '#e6e6e6'; $global_border_color = '#eaeaea'; $currently_in_options = !empty($_GET["page"]) && $_GET["page"] == $this->args["page_slug"]; if ($currently_in_options) { ob_start(); $ct = wp_get_theme(); $this->theme = $ct; $item_name = $this->theme->get('Name'); $tags = $this->theme->Tags; $screenshot = $this->theme->get_screenshot(); $class = $screenshot ? 'has-screenshot' : ''; $customize_title = sprintf(__('Customize “%s”', XT_TEXT_DOMAIN), $this->theme->display('Name')); ?> <div id="current-theme" class="<?php echo esc_attr($class); ?> "> <?php if ($screenshot) { ?> <?php if (current_user_can('edit_theme_options')) { ?> <a href="<?php echo wp_customize_url(); ?> " class="load-customize hide-if-no-customize" title="<?php echo esc_attr($customize_title); ?> "> <img src="<?php echo esc_url($screenshot); ?> " alt="<?php esc_attr_e('Current theme preview'); ?> " /> </a> <?php } ?> <img class="hide-if-customize" src="<?php echo esc_url($screenshot); ?> " alt="<?php esc_attr_e('Current theme preview'); ?> " /> <?php } ?> <h4><?php echo $this->theme->display('Name'); ?> </h4> <div> <ul class="theme-info"> <li><?php printf(__('By %s', XT_TEXT_DOMAIN), $this->theme->display('Author')); ?> </li> <li><?php printf(__('Version %s', XT_TEXT_DOMAIN), $this->theme->display('Version')); ?> </li> <li><?php echo '<strong>' . __('Tags', XT_TEXT_DOMAIN) . ':</strong> '; printf($this->theme->display('Tags')); ?> </li> </ul> <p class="theme-description"><?php echo $this->theme->display('Description'); ?> </p> <?php if ($this->theme->parent()) { printf(' <p class="howto">' . __('This <a href="%1$s">child theme</a> requires its parent theme, %2$s.') . '</p>', __('http://codex.wordpress.org/Child_Themes', XT_TEXT_DOMAIN), $this->theme->parent()->display('Name')); } ?> </div> </div> <?php $item_info = ob_get_contents(); ob_end_clean(); } if ($currently_in_options && file_exists(XT_ADMIN_DIR . '/redux-pages/docs.php')) { ob_start(); include_once XT_ADMIN_DIR . '/redux-pages/docs.php'; $docs = ob_get_contents(); ob_end_clean(); $this->sections[] = array('icon' => 'el-icon-home', 'icon_class' => 'fa-lg', 'title' => __('Getting Started', XT_TEXT_DOMAIN), 'desc' => '', 'fields' => array(array('id' => 'docs', 'type' => 'info', 'raw_html' => true, 'desc' => $docs))); } if ($currently_in_options && file_exists(XT_ADMIN_DIR . '/redux-pages/import.php')) { ob_start(); include_once XT_ADMIN_DIR . '/redux-pages/import.php'; $importData = ob_get_contents(); ob_end_clean(); $this->sections[] = array('icon' => 'el-icon-download-alt', 'icon_class' => 'fa-lg', 'title' => __('Import Demos', XT_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('Here you can clone our theme demos instantly.<br><b>Note:</b> <span style="font-weight:bold;color:green">Make sure to install Prepackaged required plugins before importing our demos or else revolution sliders will not be imported and page contents will not appear correctly.</span>', XT_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'import_default_data', 'type' => 'info', 'raw_html' => true, 'title' => __('Import Demos', XT_TEXT_DOMAIN), 'subtitle' => '<p class="description">' . __('This will flush all your current data and clone our theme demo contents.<br><font color="red">Please note that this could take up to 3 minutes.</font>', XT_TEXT_DOMAIN) . '</p>', 'desc' => $importData))); } $this->sections[] = array('icon' => 'el-icon-cogs', 'icon_class' => 'fa-lg', 'title' => __('General Settings', XT_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('These are some general settings that you can edit.', XT_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'enable_nice_scroll', 'type' => 'switch', 'title' => __('Enable NiceScroll', XT_TEXT_DOMAIN), 'subtitle' => '<p class="description">' . __('This will style the default scrollbar and will add a nice scrolling effect', XT_TEXT_DOMAIN) . '</p>', 'default' => false), array('id' => 'enable_smooth_scroll', 'type' => 'switch', 'title' => __('Enable Smooth Scroll', XT_TEXT_DOMAIN), 'subtitle' => '<p class="description">' . __('This will add a smooth scrolling effect. You can enable this globally, but it\\s only recommended for pages with parallax sections. To do so, you can enable smooth scrolling within the Visual Composer Row / Parallax Settings', XT_TEXT_DOMAIN) . '</p>', 'default' => false), array('id' => 'hide_admin_bar', 'type' => 'switch', 'title' => __('Hide admin bar on the front-end', XT_TEXT_DOMAIN), 'default' => false), array('id' => 'admin_bar_position', 'required' => array('hide_admin_bar', '!=', '1'), 'type' => 'radio', 'title' => __('Admin bar position', XT_TEXT_DOMAIN), 'options' => array('top' => __('Top', XT_TEXT_DOMAIN), 'bottom' => __('Bottom', XT_TEXT_DOMAIN)), 'default' => 'top'))); $this->sections[] = array('icon' => 'el-icon-asterisk', 'icon_class' => 'fa-lg', 'title' => __('Look & feel', XT_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('These are some global look & feel options that you can edit.<br><b>Note:</b> These options can be overridden by other sections.', XT_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'general_look_and_feel', 'type' => 'section', 'title' => __('Global Look & Feel Options ', XT_TEXT_DOMAIN)), array('id' => 'row-width', 'type' => 'text', 'title' => __('Grid Width', XT_TEXT_DOMAIN), 'default' => '1152px', 'compiler' => array(true)), array('id' => 'main-layout', 'type' => 'radio', 'title' => __('Main Layout', XT_TEXT_DOMAIN), 'options' => array('boxed' => __('Boxed', XT_TEXT_DOMAIN), 'full' => __('Full Width', XT_TEXT_DOMAIN)), 'default' => 'full', 'compiler' => array(true)), array('id' => 'body-bg', 'type' => 'background', 'title' => __('Body Background', XT_TEXT_DOMAIN), 'default' => array('background-color' => '#ffffff'), 'preview_media' => true, 'compiler' => array(true)), array('id' => 'body-overlay-color', 'type' => 'color_rgba', 'title' => __('Body Background Overlay', XT_TEXT_DOMAIN), 'default' => array('color' => ''), 'compiler' => array(true)), array('id' => 'content-bg-background-color', 'required' => array('main-layout', '=', 'boxed'), 'type' => 'color_rgba', 'title' => __('Inner Content Background', XT_TEXT_DOMAIN), 'default' => array('color' => ''), 'compiler' => array(true)), array('id' => 'primary-color', 'type' => 'color_rgba', 'title' => __('Primary Color', XT_TEXT_DOMAIN), 'default' => array('color' => $primary_color), 'compiler' => array(true)), array('id' => 'text-color-1', 'type' => 'color_rgba', 'title' => __('Text Color 1', XT_TEXT_DOMAIN), 'default' => array('color' => $text_color_1), 'compiler' => array(true)), array('id' => 'text-color-2', 'type' => 'color_rgba', 'title' => __('Text Color 2', XT_TEXT_DOMAIN), 'default' => array('color' => $text_color_2), 'compiler' => array(true)), array('id' => 'text-color-3', 'type' => 'color_rgba', 'title' => __('Text Color 3', XT_TEXT_DOMAIN), 'default' => array('color' => $text_color_3), 'compiler' => array(true)), array('id' => 'bg-color-light', 'type' => 'color_rgba', 'title' => __('Background Color Light', XT_TEXT_DOMAIN), 'default' => array('color' => $bg_color_light), 'compiler' => array(true)), array('id' => 'bg-color-dark', 'type' => 'color_rgba', 'title' => __('Background Color Dark', XT_TEXT_DOMAIN), 'default' => array('color' => $bg_color_dark), 'compiler' => array(true)), array('id' => 'border-color', 'type' => 'color_rgba', 'title' => __('Border Color', XT_TEXT_DOMAIN), 'default' => array('color' => $global_border_color), 'compiler' => array(true)), array('id' => 'alerts_look_and_feel', 'type' => 'section', 'title' => __('Alerts Options ', XT_TEXT_DOMAIN)), array('id' => 'alert-bg-color', 'type' => 'color_rgba', 'title' => __('Alert Box Background Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#ffddcf'), 'compiler' => array(true)), array('id' => 'alert-border-color', 'type' => 'color_rgba', 'title' => __('Alert Box Border Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#ffddcf'), 'compiler' => array(true)), array('id' => 'alert-text-color', 'type' => 'color_rgba', 'title' => __('Alert Box Text Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#f92800'), 'compiler' => array(true)), array('id' => 'success-bg-color', 'type' => 'color_rgba', 'title' => __('Success Box Background Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#e6f3d4'), 'compiler' => array(true)), array('id' => 'success-border-color', 'type' => 'color_rgba', 'title' => __('Success Box Border Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#e6f3d4'), 'compiler' => array(true)), array('id' => 'success-text-color', 'type' => 'color_rgba', 'title' => __('Success Box Text Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#689921'), 'compiler' => array(true)), array('id' => 'warning-bg-color', 'type' => 'color_rgba', 'title' => __('Warning Box Background Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#fff0c6'), 'compiler' => array(true)), array('id' => 'warning-border-color', 'type' => 'color_rgba', 'title' => __('Warning Box Border Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#fff0c6'), 'compiler' => array(true)), array('id' => 'warning-text-color', 'type' => 'color_rgba', 'title' => __('Warning Box Text Color', XT_TEXT_DOMAIN), 'default' => array('color' => $text_color_1), 'compiler' => array(true)), array('id' => 'info-bg-color', 'type' => 'color_rgba', 'title' => __('Info Box Background Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#ddf1ff'), 'compiler' => array(true)), array('id' => 'info-border-color', 'type' => 'color_rgba', 'title' => __('Info Box Border Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#ddf1ff'), 'compiler' => array(true)), array('id' => 'info-text-color', 'type' => 'color_rgba', 'title' => __('Info Box Text Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#4f4f4f'), 'compiler' => array(true)), array('id' => 'advanced_look_and_feel', 'type' => 'section', 'title' => __('Advanced Options ', XT_TEXT_DOMAIN)), array('id' => 'custom_css', 'type' => 'ace_editor', 'title' => __('Custom CSS', XT_TEXT_DOMAIN), 'subtitle' => __('This is for advanced users', XT_TEXT_DOMAIN), 'mode' => 'css', 'theme' => 'chrome', 'default' => ''), array('id' => 'custom_js', 'type' => 'ace_editor', 'title' => __('Custom Javascript', XT_TEXT_DOMAIN), 'subtitle' => __('This is for advanced users. Javascript will be executed on jQuery(document).ready($)', XT_TEXT_DOMAIN), 'mode' => 'javascript', 'theme' => 'chrome', 'default' => ''))); $this->sections[] = array('icon' => ' el-icon-bold', 'icon_class' => 'fa-lg', 'title' => __('Typography', XT_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('These are some typography options that you can edit.<br><b>Note:</b> These options can be overridden by other sections.', XT_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'body_typography_section', 'type' => 'section', 'title' => __('Body Typography', XT_TEXT_DOMAIN)), array('id' => 'body', 'type' => 'typography', 'title' => __('Body Typography', XT_TEXT_DOMAIN), 'subtitle' => __('Choose a font, font size and color', XT_TEXT_DOMAIN), 'default' => array('font-family' => 'Roboto', 'google' => true, 'font-script' => '', 'font-weight' => '400', 'font-size' => '16px', 'line-height' => '24px', 'color' => $text_color_1), 'compiler' => array(true)), array('id' => 'h1-section', 'type' => 'section', 'title' => __('H1 Typography', XT_TEXT_DOMAIN)), array('id' => 'h1', 'type' => 'typography', 'title' => __('Heading 1 Typography', XT_TEXT_DOMAIN), 'subtitle' => __('Choose a font, font size and color', XT_TEXT_DOMAIN), 'default' => array('font-family' => 'Roboto', 'google' => true, 'font-script' => '', 'font-weight' => '700', 'font-size' => '48px', 'line-height' => '50px'), 'compiler' => true), array('id' => 'h2-section', 'type' => 'section', 'title' => __('H2 Typography', XT_TEXT_DOMAIN)), array('id' => 'h2', 'type' => 'typography', 'title' => __('Heading 2 Typography', XT_TEXT_DOMAIN), 'subtitle' => __('Choose a font, font size and color', XT_TEXT_DOMAIN), 'default' => array('font-family' => 'Roboto', 'google' => true, 'font-script' => '', 'font-weight' => '700', 'font-size' => '30px', 'line-height' => '38px'), 'compiler' => array(true)), array('id' => 'h3-section', 'type' => 'section', 'title' => __('H3 Typography', XT_TEXT_DOMAIN)), array('id' => 'h3', 'type' => 'typography', 'title' => __('Heading 3 Typography', XT_TEXT_DOMAIN), 'subtitle' => __('Choose a font, font size and color', XT_TEXT_DOMAIN), 'default' => array('font-family' => 'Roboto', 'google' => true, 'font-script' => '', 'font-weight' => '300', 'font-size' => '24px', 'line-height' => '30px'), 'compiler' => array(true)), array('id' => 'h4-section', 'type' => 'section', 'title' => __('H4 Typography', XT_TEXT_DOMAIN)), array('id' => 'h4', 'type' => 'typography', 'title' => __('Heading 4 Typography', XT_TEXT_DOMAIN), 'subtitle' => __('Choose a font, font size and color', XT_TEXT_DOMAIN), 'default' => array('font-family' => 'Roboto', 'google' => true, 'font-script' => '', 'font-weight' => '400', 'font-size' => '18px', 'line-height' => '27px'), 'compiler' => array(true)), array('id' => 'h5-section', 'type' => 'section', 'title' => __('H5 Typography', XT_TEXT_DOMAIN)), array('id' => 'h5', 'type' => 'typography', 'title' => __('Heading 5 Typography', XT_TEXT_DOMAIN), 'subtitle' => __('Choose a font, font size and color', XT_TEXT_DOMAIN), 'default' => array('font-family' => 'Roboto', 'google' => true, 'font-script' => '', 'font-weight' => '400', 'font-size' => '16px', 'line-height' => '27px'), 'compiler' => array(true)), array('id' => 'h6-section', 'type' => 'section', 'title' => __('H6 Typography', XT_TEXT_DOMAIN)), array('id' => 'h6', 'type' => 'typography', 'title' => __('Heading 6 Typography', XT_TEXT_DOMAIN), 'subtitle' => __('Choose a font, font size and color', XT_TEXT_DOMAIN), 'default' => array('font-family' => 'Roboto', 'google' => true, 'font-script' => '', 'font-weight' => '400', 'font-size' => '14px'), 'compiler' => array(true)))); $this->sections[] = array('icon' => 'el-icon-chevron-up', 'icon_class' => 'fa-lg', 'title' => __('Header Options', XT_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('These are some header options that you can edit.', XT_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'top_bar_look_and_feel', 'type' => 'section', 'title' => __('Top Bar', XT_TEXT_DOMAIN)), array('id' => 'topbar', 'type' => 'switch', 'title' => __('Enable Top Bar', XT_TEXT_DOMAIN), 'subtitle' => __('Note: Top Bar will always be shown in mobile view even if this option is switched off', XT_TEXT_DOMAIN), 'default' => 1, 'compiler' => array(true)), array('id' => 'topbar-height', 'type' => 'text', 'title' => __('Top Bar Height', XT_TEXT_DOMAIN), 'default' => '85px', 'compiler' => array(true)), array('id' => 'topbar-container', 'required' => array('topbar', '=', '1'), 'type' => 'radio', 'title' => __('Top Bar Container', XT_TEXT_DOMAIN), 'options' => array('boxed' => __('Boxed', XT_TEXT_DOMAIN), 'full' => __('Full Width', XT_TEXT_DOMAIN)), 'default' => 'boxed', 'compiler' => array(true)), array('id' => 'topbar-show-logo', 'type' => 'switch', 'title' => __('Show Logo In Top Bar', XT_TEXT_DOMAIN), 'subtitle' => __('Note: Top Bar logo will always be shown in mobile view even if this option is switched off', XT_TEXT_DOMAIN), 'default' => 1), array('id' => 'header_logo', 'type' => 'media', 'preview' => true, 'title' => __('Top Bar Logo', XT_TEXT_DOMAIN), 'subtitle' => __('Upload your logo', XT_TEXT_DOMAIN), 'default' => array('url' => XT_ASSETS_URL . "/images/logo.png")), array('id' => 'retina_header_logo', 'type' => 'media', 'preview' => true, 'title' => __('Retina Top Bar Logo', XT_TEXT_DOMAIN), 'subtitle' => __('Upload your retina logo (2x)', XT_TEXT_DOMAIN), 'default' => array('url' => xt_option('topbar-logo', 'url'))), array('id' => 'topbar-followus', 'required' => array('topbar', '=', '1'), 'type' => 'switch', 'title' => __('Show Follow Us Toggle', XT_TEXT_DOMAIN), 'default' => 1), array('id' => 'topbar-typo', 'required' => array('topbar', '=', '1'), 'type' => 'typography', 'title' => __('Top Bar Typography', XT_TEXT_DOMAIN), 'subtitle' => __('Choose a font, font size and color', XT_TEXT_DOMAIN), 'default' => array('font-family' => 'Roboto', 'google' => true, 'font-weight' => '300'), 'color' => false, 'text-align' => false, 'line-height' => false, 'font-size' => false, 'font-style' => false, 'compiler' => array(true)), array('id' => 'topbar-bg-color', 'required' => array('topbar', '=', '1'), 'type' => 'color_rgba', 'title' => __('Top Bar Background Color', XT_TEXT_DOMAIN), 'default' => array('color' => $primary_color), 'compiler' => array(true)), array('id' => 'topbar-item-color', 'required' => array('topbar', '=', '1'), 'type' => 'color_rgba', 'title' => __('Top Bar Link Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#fff'), 'compiler' => array(true)), array('id' => 'topbar-item-hover-color', 'required' => array('topbar', '=', '1'), 'type' => 'color_rgba', 'title' => __('Top Bar Link Hover Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#fff'), 'compiler' => array(true)), array('id' => 'topbar-button-text-color', 'required' => array('topbar', '=', '1'), 'type' => 'color_rgba', 'title' => __('Top Bar Button Text Color', XT_TEXT_DOMAIN), 'default' => array('color' => $text_color_1), 'compiler' => array(true)), array('id' => 'topbar-button-bg-color', 'required' => array('topbar', '=', '1'), 'type' => 'color_rgba', 'title' => __('Top Bar Button Bg Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#fff'), 'compiler' => array(true)), array('id' => 'topbar-button-hover-text-color', 'required' => array('topbar', '=', '1'), 'type' => 'color_rgba', 'title' => __('Top Bar Button Hover Text Color', XT_TEXT_DOMAIN), 'default' => array('color' => $primary_color), 'compiler' => array(true)), array('id' => 'topbar-button-hover-bg-color', 'required' => array('topbar', '=', '1'), 'type' => 'color_rgba', 'title' => __('Top Bar Button Hover Bg Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#fff'), 'compiler' => array(true)), array('id' => 'topbar_sticky_look_and_feel', 'type' => 'section', 'title' => __('Sticky Top Bar', XT_TEXT_DOMAIN)), array('id' => 'topbar-sticky', 'type' => 'switch', 'title' => __('Enable Sticky Top Bar', XT_TEXT_DOMAIN), 'subtitle' => '<p class="description">' . __('This will make the top bar fixed on page scroll', XT_TEXT_DOMAIN) . '</p>', 'default' => true, 'compiler' => array(true)), array('id' => 'topbar-sticky-distance', 'required' => array('topbar-sticky', '=', '1'), 'type' => 'text', 'title' => __('Sticky Top Bar Distance', XT_TEXT_DOMAIN), 'subtitle' => '<p class="description">' . __('The top bar will become sticky on scroll after this distance.', XT_TEXT_DOMAIN) . '</p>', 'default' => '200px'), array('id' => 'topbar-sticky-height', 'required' => array('topbar-sticky', '=', '1'), 'type' => 'text', 'title' => __('Sticky Top Bar Height', XT_TEXT_DOMAIN), 'default' => '60px', 'compiler' => array(true)), array('id' => 'topbar-sticky-page-title', 'required' => array('topbar-sticky', '=', '1'), 'type' => 'switch', 'title' => __('Show Page Title Within Sticky Top Bar', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'topbar-sticky-bg-color', 'required' => array('topbar-sticky', '=', '1'), 'type' => 'color_rgba', 'title' => __('Sticky Top Bar Background Color', XT_TEXT_DOMAIN), 'default' => array('color' => $primary_color, 'alpha' => 0.95), 'compiler' => array(true)), array('id' => 'topbar-sticky-item-color', 'required' => array('topbar-sticky', '=', '1'), 'type' => 'color_rgba', 'title' => __('Sticky Top Bar Item Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#fff'), 'compiler' => array(true)), array('id' => 'topbar-sticky-item-hover-color', 'required' => array('topbar-sticky', '=', '1'), 'type' => 'color_rgba', 'title' => __('Sticky Top Bar Item Hover Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#fff'), 'compiler' => array(true)), array('id' => 'topbar-sticky-button-text-color', 'required' => array('topbar', '=', '1'), 'type' => 'color_rgba', 'title' => __('Sticky Top Bar Button Text Color', XT_TEXT_DOMAIN), 'default' => array('color' => $text_color_1), 'compiler' => array(true)), array('id' => 'topbar-sticky-button-bg-color', 'required' => array('topbar', '=', '1'), 'type' => 'color_rgba', 'title' => __('Sticky Top Bar Button Bg Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#fff'), 'compiler' => array(true)), array('id' => 'topbar-sticky-button-hover-text-color', 'required' => array('topbar', '=', '1'), 'type' => 'color_rgba', 'title' => __('Sticky Top Bar Button Hover Text Color', XT_TEXT_DOMAIN), 'default' => array('color' => $primary_color), 'compiler' => array(true)), array('id' => 'topbar-sticky-button-hover-bg-color', 'required' => array('topbar', '=', '1'), 'type' => 'color_rgba', 'title' => __('Sticky Top Bar Button Hover Bg Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#fff'), 'compiler' => array(true)), array('id' => 'push_menu_look_and_feel', 'type' => 'section', 'title' => __('Push Menu', XT_TEXT_DOMAIN)), array('id' => 'push-menu-position', 'type' => 'radio', 'title' => __('Enable Push Menu', XT_TEXT_DOMAIN), 'options' => array('disabled' => __('Disabled', XT_TEXT_DOMAIN), 'left' => __('Left Menu', XT_TEXT_DOMAIN), 'right' => __('Right Menu', XT_TEXT_DOMAIN)), 'default' => 'left', 'compiler' => array(true)), array('id' => 'push-menu-toggle', 'required' => array('push-menu-position', '!=', 'disabled'), 'type' => 'radio', 'title' => __('Show Push Menu Toggle', XT_TEXT_DOMAIN), 'options' => array('onsticky' => __('On Sticky Top Bar only', XT_TEXT_DOMAIN), 'always' => __('Always', XT_TEXT_DOMAIN)), 'default' => 'onsticky'), array('id' => 'off-canvas-text-align', 'required' => array('push-menu-position', '!=', 'disabled'), 'type' => 'radio', 'title' => __('Show Push Menu Text Align', XT_TEXT_DOMAIN), 'options' => array('left' => __('Left', XT_TEXT_DOMAIN), 'right' => __('Right', XT_TEXT_DOMAIN), 'center' => __('Centered', XT_TEXT_DOMAIN)), 'default' => 'left', 'compiler' => array(true)), array('id' => 'off-canvas-width', 'required' => array('push-menu-position', '!=', 'disabled'), 'type' => 'text', 'title' => __('Show Push Menu Text Align', XT_TEXT_DOMAIN), 'default' => '215px', 'compiler' => array(true)), array('id' => 'off-canvas-bg', 'required' => array('push-menu-position', '!=', 'disabled'), 'type' => 'color_rgba', 'title' => __('Push Menu Background Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#fff'), 'compiler' => array(true)), array('id' => 'off-canvas-label-color', 'required' => array('push-menu-position', '!=', 'disabled'), 'type' => 'color_rgba', 'title' => __('Push Menu Label Color', XT_TEXT_DOMAIN), 'default' => array('color' => $text_color_2), 'compiler' => array(true)), array('id' => 'off-canvas-label-bg', 'required' => array('push-menu-position', '!=', 'disabled'), 'type' => 'color_rgba', 'title' => __('Push Menu Label Bg Color', XT_TEXT_DOMAIN), 'default' => array('color' => ''), 'compiler' => array(true)), array('id' => 'off-canvas-link-color', 'required' => array('push-menu-position', '!=', 'disabled'), 'type' => 'color_rgba', 'title' => __('Push Menu Link Color', XT_TEXT_DOMAIN), 'default' => array('color' => $text_color_1), 'compiler' => array(true)), array('id' => 'off-canvas-link-bg-color', 'required' => array('push-menu-position', '!=', 'disabled'), 'type' => 'color_rgba', 'title' => __('Push Menu Link Bg Color', XT_TEXT_DOMAIN), 'default' => array('color' => ''), 'compiler' => array(true)), array('id' => 'off-canvas-link-hover-color', 'required' => array('push-menu-position', '!=', 'disabled'), 'type' => 'color_rgba', 'title' => __('Push Menu Link Hover Color', XT_TEXT_DOMAIN), 'default' => array('color' => ''), 'compiler' => array(true)), array('id' => 'off-canvas-link-bg-hover-color', 'required' => array('push-menu-position', '!=', 'disabled'), 'type' => 'color_rgba', 'title' => __('Push Menu Link Bg Hover Color', XT_TEXT_DOMAIN), 'default' => array('color' => $secondary_color), 'compiler' => array(true)), array('id' => 'search_bar_look_and_feel', 'type' => 'section', 'title' => __('Search Bar', XT_TEXT_DOMAIN)), array('id' => 'search-bar-toggle-position', 'type' => 'radio', 'title' => __('Top Bar Search Toggle Position', XT_TEXT_DOMAIN), 'subtitle' => __('The search toggle will appear within the <b>Top Bar</b>', XT_TEXT_DOMAIN), 'options' => array('disabled' => __('Disabled', XT_TEXT_DOMAIN), 'left' => __('Left', XT_TEXT_DOMAIN), 'right' => __('Right', XT_TEXT_DOMAIN)), 'default' => 'left', 'compiler' => array(true)), array('id' => 'search-bar-toggle', 'required' => array('search-bar-toggle-position', '!=', 'disabled'), 'type' => 'radio', 'title' => __('Show Top Bar Search Toggle', XT_TEXT_DOMAIN), 'options' => array('onsticky' => __('On Sticky Top Bar only', XT_TEXT_DOMAIN), 'always' => __('Always', XT_TEXT_DOMAIN)), 'default' => 'onsticky'), array('id' => 'mainmenu-search-bar-toggle-enabled', 'type' => 'switch', 'title' => __('Enable Main Menu Search Toggle', XT_TEXT_DOMAIN), 'subtitle' => __('The search toggle will appear within the <b>Main Menu</b>', XT_TEXT_DOMAIN), 'default' => 1, 'compiler' => array(true)), array('id' => 'mainmenu-search-bar-toggle', 'required' => array('mainmenu-search-bar-toggle-enabled', '=', '1'), 'type' => 'radio', 'title' => __('Show Main Menu Search Toggle', XT_TEXT_DOMAIN), 'options' => array('onunsticky' => __('On Unsticky Main Menu only', XT_TEXT_DOMAIN), 'onsticky' => __('On Sticky Main Menu only', XT_TEXT_DOMAIN), 'always' => __('Always', XT_TEXT_DOMAIN)), 'default' => 'onsticky'), array('id' => 'main_menu_look_and_feel', 'type' => 'section', 'title' => __('Main Menu', XT_TEXT_DOMAIN)), array('id' => 'mainmenu', 'type' => 'switch', 'title' => __('Enable Main Menu', XT_TEXT_DOMAIN), 'default' => 1, 'compiler' => array(true)), array('id' => 'mainmenu-height', 'required' => array('mainmenu', '=', '1'), 'type' => 'text', 'title' => __('Main Menu Height', XT_TEXT_DOMAIN), 'default' => '90px', 'compiler' => array(true)), array('id' => 'mainmenu-container', 'required' => array('mainmenu', '=', '1'), 'type' => 'radio', 'title' => __('Main Menu Container', XT_TEXT_DOMAIN), 'options' => array('boxed' => __('Boxed', XT_TEXT_DOMAIN), 'full' => __('Full Width', XT_TEXT_DOMAIN)), 'default' => 'boxed', 'compiler' => array(true)), array('id' => 'mainmenu-stretch-items', 'required' => array('mainmenu', '=', '1'), 'type' => 'switch', 'title' => __('Main Menu Stretch Items', XT_TEXT_DOMAIN), 'default' => false), array('id' => 'mainmenu-show-logo', 'type' => 'switch', 'title' => __('Show Logo In Main Menu', XT_TEXT_DOMAIN), 'default' => 0), array('id' => 'mainmenu-logo', 'required' => array('mainmenu-show-logo', '=', '1'), 'type' => 'media', 'preview' => true, 'title' => __('Main Menu Logo', XT_TEXT_DOMAIN), 'subtitle' => __('Upload your logo', XT_TEXT_DOMAIN), 'default' => array()), array('id' => 'mainmenu-retina-logo', 'required' => array('mainmenu-show-logo', '=', '1'), 'type' => 'media', 'preview' => true, 'title' => __('Retina Main Menu Logo', XT_TEXT_DOMAIN), 'subtitle' => __('Upload your retina logo (2x)', XT_TEXT_DOMAIN), 'default' => array()), array('id' => 'mainmenu-typo', 'required' => array('mainmenu', '=', '1'), 'type' => 'typography', 'title' => __('Main Menu Typography', XT_TEXT_DOMAIN), 'subtitle' => __('Choose a font, font size and color', XT_TEXT_DOMAIN), 'default' => array('font-family' => 'Roboto', 'google' => true, 'font-weight' => '400'), 'color' => false, 'text-align' => false, 'line-height' => false, 'font-size' => false, 'font-style' => false, 'compiler' => array(true)), array('id' => 'mainmenu-bg-color', 'required' => array('mainmenu', '=', '1'), 'type' => 'color_rgba', 'title' => __('Main Menu Background Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#ffffff'), 'compiler' => array(true)), array('id' => 'mainmenu-item-color', 'required' => array('mainmenu', '=', '1'), 'type' => 'color_rgba', 'title' => __('Main Menu Item Color', XT_TEXT_DOMAIN), 'default' => array('color' => $text_color_1), 'compiler' => array(true)), array('id' => 'mainmenu-item-hover-color', 'required' => array('mainmenu', '=', '1'), 'type' => 'color_rgba', 'title' => __('Main Menu Item Hover Color', XT_TEXT_DOMAIN), 'default' => array('color' => $primary_color), 'compiler' => array(true)), array('id' => 'mainmenu-icons-color', 'required' => array('mainmenu', '=', '1'), 'type' => 'color_rgba', 'title' => __('Main Menu Icons Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#888'), 'compiler' => array(true)), array('id' => 'mainmenu-item-size-medium-screens', 'required' => array('mainmenu', '=', '1'), 'type' => 'text', 'title' => __('Main Menu Item Size On Medium Screens', XT_TEXT_DOMAIN), 'default' => '20px', 'compiler' => array(true)), array('id' => 'mainmenu-item-size-large-screens', 'required' => array('mainmenu', '=', '1'), 'type' => 'text', 'title' => __('Main Menu Item Size On Large Screens', XT_TEXT_DOMAIN), 'default' => '24px', 'compiler' => array(true)), array('id' => 'main_menu_dropdowns_look_and_feel', 'type' => 'section', 'title' => __('Main Menu Dropdowns', XT_TEXT_DOMAIN)), array('id' => 'mainmenu-dropdown-item-bg', 'required' => array('mainmenu', '=', '1'), 'type' => 'color_rgba', 'title' => __('Dropdown Item Background Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#ffffff'), 'compiler' => array(true)), array('id' => 'mainmenu-dropdown-item-color', 'required' => array('mainmenu', '=', '1'), 'type' => 'color_rgba', 'title' => __('Dropdown Item Color', XT_TEXT_DOMAIN), 'default' => array('color' => $text_color_1), 'compiler' => array(true)), array('id' => 'mainmenu-dropdown-item-hover-bg', 'required' => array('mainmenu', '=', '1'), 'type' => 'color_rgba', 'title' => __('Dropdown Item Hover / Active Background Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#ffffff'), 'compiler' => array(true)), array('id' => 'mainmenu-dropdown-item-hover-color', 'required' => array('mainmenu', '=', '1'), 'type' => 'color_rgba', 'title' => __('Dropdown Hover / Active Item Color', XT_TEXT_DOMAIN), 'default' => array('color' => $primary_color), 'compiler' => array(true)), array('id' => 'mainmenu_sticky_look_and_feel', 'type' => 'section', 'title' => __('Sticky Main Menu', XT_TEXT_DOMAIN)), array('id' => 'mainmenu-sticky', 'type' => 'switch', 'title' => __('Enable Sticky Main Menu', XT_TEXT_DOMAIN), 'subtitle' => '<p class="description">' . __('This will make the main menu fixed on page scroll', XT_TEXT_DOMAIN) . '</p>', 'default' => false, 'compiler' => array(true)), array('id' => 'mainmenu-sticky-distance', 'required' => array('mainmenu-sticky', '=', '1'), 'type' => 'text', 'title' => __('Sticky Main Menu Distance', XT_TEXT_DOMAIN), 'subtitle' => '<p class="description">' . __('The main menu will become sticky on scroll after this distance.', XT_TEXT_DOMAIN) . '</p>', 'default' => '200px'), array('id' => 'mainmenu-sticky-height', 'required' => array('mainmenu-sticky', '=', '1'), 'type' => 'text', 'title' => __('Sticky Main Menu Height', XT_TEXT_DOMAIN), 'default' => '65px', 'compiler' => array(true)), array('id' => 'mainmenu-sticky-bg-color', 'required' => array('mainmenu-sticky', '=', '1'), 'type' => 'color_rgba', 'title' => __('Sticky Main Menu Background Color', XT_TEXT_DOMAIN), 'default' => array('color' => $bg_color_light, 'alpha' => 0.95), 'compiler' => array(true)), array('id' => 'mainmenu-sticky-item-color', 'required' => array('mainmenu-sticky', '=', '1'), 'type' => 'color_rgba', 'title' => __('Sticky Main Menu Item Color', XT_TEXT_DOMAIN), 'default' => array('color' => $text_color_1), 'compiler' => array(true)), array('id' => 'mainmenu-sticky-item-hover-color', 'required' => array('mainmenu-sticky', '=', '1'), 'type' => 'color_rgba', 'title' => __('Sticky Main Menu Item Hover Color', XT_TEXT_DOMAIN), 'default' => array('color' => $primary_color), 'compiler' => array(true)), array('id' => 'mainmenu-sticky-icons-color', 'required' => array('mainmenu-sticky', '=', '1'), 'type' => 'color_rgba', 'title' => __('Sticky Main Menu Icons Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#888'), 'compiler' => array(true)), array('id' => 'mobile_menu_look_and_feel', 'type' => 'section', 'title' => __('Mobile Menu', XT_TEXT_DOMAIN)), array('id' => 'topbar-mobile-menu-followus', 'type' => 'switch', 'title' => __('Show Follow Us Icons', XT_TEXT_DOMAIN), 'default' => 1), array('id' => 'topbar-mobile-menu-search', 'type' => 'switch', 'title' => __('Show Search Form', XT_TEXT_DOMAIN), 'default' => 1), array('id' => 'topbar-mobile-menu-toggle-bg-color', 'type' => 'color_rgba', 'title' => __('Mobile Menu Toggle Background Color', XT_TEXT_DOMAIN), 'default' => array('color' => xt_option('topbar-bg-color', 'color')), 'compiler' => array(true)), array('id' => 'topbar-mobile-menu-toggle-bg-active-color', 'type' => 'color_rgba', 'title' => __('Mobile Menu Toggle Background Active Color', XT_TEXT_DOMAIN), 'default' => array('color' => xt_option('topbar-mobile-menu-toggle-bg-color', 'color')), 'compiler' => array(true)), array('id' => 'topbar-mobile-menu-bg-color', 'type' => 'color_rgba', 'title' => __('Mobile Menu Background Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#242424'), 'compiler' => array(true)), array('id' => 'topbar-mobile-menu-items-bg-color', 'type' => 'color_rgba', 'title' => __('Mobile Menu Items Background Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#242424'), 'compiler' => array(true)), array('id' => 'topbar-mobile-menu-items-link-color', 'type' => 'color_rgba', 'title' => __('Mobile Menu Items Link Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#ffffff'), 'compiler' => array(true)), array('id' => 'topbar-mobile-menu-items-bg-hover-color', 'type' => 'color_rgba', 'title' => __('Mobile Menu Items Background Hover Color', XT_TEXT_DOMAIN), 'default' => array('color' => $primary_color), 'compiler' => array(true)), array('id' => 'topbar-mobile-menu-items-link-hover-color', 'type' => 'color_rgba', 'title' => __('Mobile Menu Items Link Hover Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#ffffff'), 'compiler' => array(true)), array('id' => 'topbar-mobile-menu-items-border-color', 'type' => 'color_rgba', 'title' => __('Mobile Menu Items Border Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#444444'), 'compiler' => array(true)), array('id' => 'topbar-mobile-menu-sublevel-animation', 'type' => 'select', 'title' => __('Mobile Menu Sublevel Animation', XT_TEXT_DOMAIN), 'options' => array('fade' => __('Fade', XT_TEXT_DOMAIN), 'slide' => __('Slide', XT_TEXT_DOMAIN), 'rotate' => __('Rotate 3D', XT_TEXT_DOMAIN)), 'default' => 'fade', 'compiler' => array(true)), array('id' => 'megamenu_look_and_feel', 'type' => 'section', 'title' => __('Mega Menu', XT_TEXT_DOMAIN)), array('id' => 'megamenu-show-tags-links', 'type' => 'switch', 'title' => __('Show Category Related Tags', XT_TEXT_DOMAIN), "default" => 1, 'on' => 'Yes', 'off' => 'No'), array('id' => 'megamenu-show-subcategory-links', 'type' => 'switch', 'title' => __('Show Sub Category Links', XT_TEXT_DOMAIN), "default" => 1, 'on' => 'Yes', 'off' => 'No'), array('id' => 'megamenu-show-submenu-links', 'type' => 'switch', 'title' => __('Show Sub Menu Links', XT_TEXT_DOMAIN), "default" => 1, 'on' => 'Yes', 'off' => 'No'), array('id' => 'megamenu-bg-color', 'type' => 'color_rgba', 'title' => __('Mega Menu Background Color', XT_TEXT_DOMAIN), 'default' => array('color' => $bg_color_light), 'compiler' => array(true)), array('id' => 'megamenu-post-title-color', 'type' => 'color_rgba', 'title' => __('Mega Menu Post Title Color', XT_TEXT_DOMAIN), 'default' => array('color' => $text_color_1), 'compiler' => array(true)), array('id' => 'megamenu-post-title-hover-color', 'type' => 'color_rgba', 'title' => __('Mega Menu Post Title Hover Color', XT_TEXT_DOMAIN), 'default' => array('color' => $primary_color), 'compiler' => array(true)), array('id' => 'megamenu-submenu-label-color', 'type' => 'color_rgba', 'title' => __('Mega Menu Submenu Label Color', XT_TEXT_DOMAIN), 'default' => array('color' => $text_color_2), 'compiler' => array(true)), array('id' => 'megamenu-submenu-item-color', 'type' => 'color_rgba', 'title' => __('Mega Menu Submenu Item Color', XT_TEXT_DOMAIN), 'default' => array('color' => $text_color_1), 'compiler' => array(true)), array('id' => 'megamenu-submenu-item-hover-color', 'type' => 'color_rgba', 'title' => __('Mega Menu Submenu Item Hover Color', XT_TEXT_DOMAIN), 'default' => array('color' => $primary_color), 'compiler' => array(true)), array('id' => 'title_look_and_feel', 'type' => 'section', 'title' => __('Title Bar', XT_TEXT_DOMAIN)), array('id' => 'titlebar', 'type' => 'switch', 'title' => __('Enable Title Bar', XT_TEXT_DOMAIN), 'default' => 1, 'compiler' => array(true)), array('id' => 'titlebar-height', 'required' => array('titlebar', '=', '1'), 'type' => 'text', 'title' => __('Title Bar Height', XT_TEXT_DOMAIN), 'default' => '90px', 'compiler' => array(true)), array('id' => 'titlebar-bg-color', 'required' => array('titlebar', '=', '1'), 'type' => 'color_rgba', 'title' => __('Title Bar Background Color', XT_TEXT_DOMAIN), 'default' => array('color' => $bg_color_light), 'compiler' => array(true)), array('id' => 'titlebar-title-typo', 'required' => array('titlebar', '=', '1'), 'type' => 'typography', 'title' => __('Title Typography', XT_TEXT_DOMAIN), 'subtitle' => __('Choose a font, font size and color', XT_TEXT_DOMAIN), 'default' => array('font-family' => 'Roboto', 'google' => true, 'font-weight' => '400', 'font-size' => '30px', 'color' => $text_color_1), 'text-align' => false, 'compiler' => array(true)), array('id' => 'titlebar-breadcrumbs', 'required' => array('titlebar', '=', '1'), 'type' => 'switch', 'title' => __('Enable Breadcrumbs', XT_TEXT_DOMAIN), 'default' => 1, 'compiler' => array(true)), array('id' => 'titlebar-breadcrumbs-typo', 'required' => array(array('titlebar', '=', '1'), array('titlebar-breadcrumbs', '=', '1')), 'type' => 'typography', 'title' => __('Breadcrumbs Typography', XT_TEXT_DOMAIN), 'subtitle' => __('Choose a font, font size and color', XT_TEXT_DOMAIN), 'default' => array('font-family' => 'Roboto', 'google' => true, 'font-weight' => '300', 'font-size' => '14px', 'color' => $text_color_3), 'text-align' => false, 'compiler' => array(true)))); $this->sections[] = array('icon' => 'el-icon-chevron-down', 'icon_class' => 'fa-lg', 'title' => __('Footer Options', XT_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('These are some footer options that you can edit.', XT_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'footer_look_and_feel', 'type' => 'section', 'title' => __('Footer', XT_TEXT_DOMAIN)), array('id' => 'footer-enabled', 'type' => 'switch', 'title' => __('Footer', XT_TEXT_DOMAIN), 'subtitle' => __('Will be located after content. Please note that sub footer will not be affected by this option.', XT_TEXT_DOMAIN), 'desc' => __('If you don\'t want to have footer section you can disable it.', XT_TEXT_DOMAIN), "default" => 1, 'on' => 'Enable', 'off' => 'Disable'), array('id' => 'footer_widget_zone', 'required' => array('footer-enabled', 'equals', '1'), 'type' => 'select', 'options' => xt_get_sidebars(), 'title' => __('Widget Area', XT_TEXT_DOMAIN), 'default' => 'footer-widget-zone'), array('id' => 'footer_widget_zone_layout', 'required' => array('footer-enabled', 'equals', '1'), 'type' => 'image_select', 'title' => __('Footer Widget Area Columns', XT_TEXT_DOMAIN), 'subtitle' => __('Defines in which structure footer widget areas would be divided', XT_TEXT_DOMAIN), 'desc' => __('Please choose your footer widget area column structure. Make sure you have enough widgets to fit each column.<br>Note: If you choose a 4 columns structure, you need to have 4 widgets defined within your sidebar', XT_TEXT_DOMAIN), 'options' => xt_get_widget_layouts(), 'default' => 'custom_4_4_2_2'), array('id' => 'footer-bg-color', 'type' => 'color_rgba', 'title' => __('Footer Background Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#252525'), 'compiler' => array(true)), array('id' => 'footer-text-color', 'type' => 'color_rgba', 'title' => __('Footer Text Color', XT_TEXT_DOMAIN), 'default' => array('color' => $text_color_3), 'compiler' => array(true)), array('id' => 'footer-link-color', 'type' => 'color_rgba', 'title' => __('Footer Link Color', XT_TEXT_DOMAIN), 'default' => array('color' => xt_option('footer-text-color', 'color')), 'compiler' => array(true)), array('id' => 'footer-link-hover-color', 'type' => 'color_rgba', 'title' => __('Footer Link Hover Color', XT_TEXT_DOMAIN), 'default' => array('color' => $primary_color), 'compiler' => array(true)), array('id' => 'footer-seperator-color', 'type' => 'color_rgba', 'title' => __('Footer Link Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#2e2e2e'), 'compiler' => array(true)), array('id' => 'footer-h2-color', 'type' => 'color_rgba', 'title' => __('Footer H2 Title Color', XT_TEXT_DOMAIN), 'default' => array('color' => $primary_color), 'compiler' => array(true)), array('id' => 'footer-h3-color', 'type' => 'color_rgba', 'title' => __('Footer H3 Title Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#ffffff'), 'compiler' => array(true)), array('id' => 'footer_bottom_look_and_feel', 'type' => 'section', 'title' => __('Sub Footer', XT_TEXT_DOMAIN)), array('id' => 'sub-footer-enabled', 'type' => 'switch', 'title' => __('Sub Footer', XT_TEXT_DOMAIN), 'subtitle' => __('Located below footer.', XT_TEXT_DOMAIN), 'desc' => __('If you don\'t want to have sub footer section you can disable it.', XT_TEXT_DOMAIN), "default" => 1, 'on' => 'Enable', 'off' => 'Disable'), array('id' => 'footer-copyright', 'type' => 'textarea', 'required' => array('sub-footer', 'equals', '1'), 'title' => __('Sub Footer Copyright text', XT_TEXT_DOMAIN), 'subtitle' => __('You may write your site copyright information.', XT_TEXT_DOMAIN), 'desc' => '', 'default' => __('Copyright All Rights Reserved', 'vfx')), array('id' => 'footer_back_to_top_enabled', 'type' => 'switch', 'title' => __('Back To Top Button', XT_TEXT_DOMAIN), "default" => 1, 'on' => 'Enable', 'off' => 'Disable'), array('id' => 'footer_back_to_top_text', 'type' => 'text', 'title' => __('Back To Top Button Text', XT_TEXT_DOMAIN), 'default' => 'Back to top'), array('id' => 'footer_copyright', 'type' => 'editor', 'title' => __('Footer Copyright Text', XT_TEXT_DOMAIN), 'subtitle' => __('This is a little space under the field title which can be used for additonal info.', XT_TEXT_DOMAIN), 'default' => '© ' . date('Y') . ' Good News, Inc.'), array('id' => 'sub-footer-bg-color', 'type' => 'color_rgba', 'title' => __('Sub Footer Background Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#1e1e1e'), 'compiler' => array(true)), array('id' => 'sub-footer-text-color', 'type' => 'color_rgba', 'title' => __('Sub ooter Text Color', XT_TEXT_DOMAIN), 'default' => array('color' => '#606060'), 'compiler' => array(true)), array('id' => 'sub-footer-link-color', 'type' => 'color_rgba', 'title' => __('Sub Footer Link Color', XT_TEXT_DOMAIN), 'default' => array('color' => xt_option('sub-footer-text-color', 'color')), 'compiler' => array(true)), array('id' => 'sub-footer-link-hover-color', 'type' => 'color_rgba', 'title' => __('Sub Footer Link Hover Color', XT_TEXT_DOMAIN), 'default' => array('color' => $primary_color), 'compiler' => array(true)))); $this->sections[] = array('icon' => 'el-icon-file-edit', 'icon_class' => 'fa-lg', 'title' => __('News Settings', XT_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('These are some options that you can edit related to post archives, categories, search results and singles.', XT_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'posts_post_archives', 'type' => 'section', 'title' => __('Posts Archives / Category', XT_TEXT_DOMAIN)), array('id' => 'post_archive_default_template', 'type' => 'radio', 'title' => __('Posts Archive Default Template', XT_TEXT_DOMAIN), 'options' => XT_Widget_Advanced_News::getLayouts(), 'default' => 'list-small'), array('id' => 'post_archive_sidebar_position', 'type' => 'radio', 'title' => __('Posts Archive Sidebar Position', XT_TEXT_DOMAIN), 'options' => array('disabled' => __('Disabled', XT_TEXT_DOMAIN), 'left' => __('Left', XT_TEXT_DOMAIN), 'right' => __('Right', XT_TEXT_DOMAIN)), 'default' => 'disabled'), array('id' => 'post_archive_sidebar_area', 'required' => array('post_archive_sidebar_position', '!=', 'disabled'), 'type' => 'select', 'options' => xt_get_sidebars(), 'title' => __('Posts Archive Sidebar Widget Area', XT_TEXT_DOMAIN), 'default' => ''), array('id' => 'post_archive_show_post_category', 'type' => 'switch', 'title' => __('Show post category in archive listing', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'post_archive_show_post_excerpt', 'type' => 'switch', 'title' => __('Show post excerpt in archive listing', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'post_archive_show_post_date', 'type' => 'switch', 'title' => __('Show post date in archive listing', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'post_archive_show_post_author', 'type' => 'switch', 'title' => __('Show post author in archive listing', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'post_archive_show_post_stats', 'type' => 'switch', 'title' => __('Show post stats in archive listing', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'post_archive_category_settings', 'type' => 'category_settings', 'title' => __('Posts Archive Settings By Category', XT_TEXT_DOMAIN), 'subtitle' => __('These settings will override global Category / Archive settings above.', XT_TEXT_DOMAIN), 'options' => array('templates' => XT_Widget_Advanced_News::getLayouts(), 'sidebar_positions' => array('disabled' => __('Disabled', XT_TEXT_DOMAIN), 'left' => __('Left', XT_TEXT_DOMAIN), 'right' => __('Right', XT_TEXT_DOMAIN)))), array('id' => 'posts_post_tags', 'type' => 'section', 'title' => __('Post Tags Results', XT_TEXT_DOMAIN)), array('id' => 'post_tag_default_template', 'type' => 'radio', 'title' => __('Post Tags Results Default Template', XT_TEXT_DOMAIN), 'options' => XT_Widget_Advanced_News::getLayouts(), 'default' => 'grid-2'), array('id' => 'post_tag_sidebar_position', 'type' => 'radio', 'title' => __('Posts Tags Results Sidebar Position', XT_TEXT_DOMAIN), 'options' => array('disabled' => __('Disabled', XT_TEXT_DOMAIN), 'left' => __('Left', XT_TEXT_DOMAIN), 'right' => __('Right', XT_TEXT_DOMAIN)), 'default' => 'disabled'), array('id' => 'post_tag_sidebar_area', 'required' => array('post_tag_sidebar_position', '!=', 'disabled'), 'type' => 'select', 'options' => xt_get_sidebars(), 'title' => __('Post Tags Results Sidebar Widget Area', XT_TEXT_DOMAIN), 'default' => ''), array('id' => 'post_tag_show_post_category', 'type' => 'switch', 'title' => __('Show post category in tag post results', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'post_tag_show_post_excerpt', 'type' => 'switch', 'title' => __('Show post excerpt in tag post results', XT_TEXT_DOMAIN), 'default' => false), array('id' => 'post_tag_show_post_date', 'type' => 'switch', 'title' => __('Show post date in tag post results', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'post_tag_show_post_author', 'type' => 'switch', 'title' => __('Show post author in tag post results', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'post_tag_show_post_stats', 'type' => 'switch', 'title' => __('Show post stats in tag post results', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'posts_author_posts', 'type' => 'section', 'title' => __('Author Posts Results', XT_TEXT_DOMAIN)), array('id' => 'post_author_default_template', 'type' => 'radio', 'title' => __('Author Posts Default Template', XT_TEXT_DOMAIN), 'options' => XT_Widget_Advanced_News::getLayouts(), 'default' => 'list-small'), array('id' => 'post_author_sidebar_position', 'type' => 'radio', 'title' => __('Author Posts Sidebar Position', XT_TEXT_DOMAIN), 'options' => array('disabled' => __('Disabled', XT_TEXT_DOMAIN), 'left' => __('Left', XT_TEXT_DOMAIN), 'right' => __('Right', XT_TEXT_DOMAIN)), 'default' => 'disabled'), array('id' => 'post_author_sidebar_area', 'required' => array('post_author_sidebar_position', '!=', 'disabled'), 'type' => 'select', 'options' => xt_get_sidebars(), 'title' => __('Author Posts Sidebar Widget Area', XT_TEXT_DOMAIN), 'default' => ''), array('id' => 'post_author_show_post_category', 'type' => 'switch', 'title' => __('Show post category in author post results', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'post_author_show_post_excerpt', 'type' => 'switch', 'title' => __('Show post excerpt in author post results', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'post_author_show_post_date', 'type' => 'switch', 'title' => __('Show post date in author post results', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'post_author_show_post_author', 'type' => 'switch', 'title' => __('Show post author in author post results', XT_TEXT_DOMAIN), 'default' => false), array('id' => 'post_author_show_post_stats', 'type' => 'switch', 'title' => __('Show post stats in author post results', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'posts_search_posts', 'type' => 'section', 'title' => __('Search Posts Results', XT_TEXT_DOMAIN)), array('id' => 'post_search_default_template', 'type' => 'radio', 'title' => __('Search Posts Default Template', XT_TEXT_DOMAIN), 'options' => XT_Widget_Advanced_News::getLayouts(), 'default' => 'list-small'), array('id' => 'post_search_sidebar_position', 'type' => 'radio', 'title' => __('Search Posts Sidebar Position', XT_TEXT_DOMAIN), 'options' => array('disabled' => __('Disabled', XT_TEXT_DOMAIN), 'left' => __('Left', XT_TEXT_DOMAIN), 'right' => __('Right', XT_TEXT_DOMAIN)), 'default' => 'disabled'), array('id' => 'post_search_sidebar_area', 'required' => array('post_search_sidebar_position', '!=', 'disabled'), 'type' => 'select', 'options' => xt_get_sidebars(), 'title' => __('Search Posts Sidebar Widget Area', XT_TEXT_DOMAIN), 'default' => ''), array('id' => 'post_search_show_post_category', 'type' => 'switch', 'title' => __('Show post category in posts search results', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'post_search_show_post_excerpt', 'type' => 'switch', 'title' => __('Show post excerpt in posts search results', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'post_search_show_post_date', 'type' => 'switch', 'title' => __('Show post date in posts search results', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'post_search_show_post_author', 'type' => 'switch', 'title' => __('Show post author in posts search results', XT_TEXT_DOMAIN), 'default' => false), array('id' => 'post_search_show_post_stats', 'type' => 'switch', 'title' => __('Show post stats in posts search results', XT_TEXT_DOMAIN), 'default' => false), array('id' => 'posts_single_posts', 'type' => 'section', 'title' => __('Single Posts', XT_TEXT_DOMAIN), 'desc' => __('<b>NOTE:</b> Most of these settings values can be overridden within each post', XT_TEXT_DOMAIN)), array('id' => 'single_post_default_sidebar_position', 'type' => 'radio', 'title' => __('Single Post Default Sidebar Position', XT_TEXT_DOMAIN), 'options' => array('disabled' => __('Disabled', XT_TEXT_DOMAIN), 'left' => __('Left', XT_TEXT_DOMAIN), 'right' => __('Right', XT_TEXT_DOMAIN)), 'default' => 'disabled'), array('id' => 'single_post_default_sidebar', 'required' => array('single_post_default_sidebar_position', '!=', 'disabled'), 'type' => 'select', 'options' => xt_get_sidebars(), 'title' => __('Single Post Default Sidebar', XT_TEXT_DOMAIN), 'default' => 'blog-sidebar'), array('id' => 'single_post_default_sidebar_below_title', 'type' => 'switch', 'title' => __('Single Post Default Sidebar Below Title', XT_TEXT_DOMAIN), 'subtitle' => __('This will make the sidebar appear below the post title header.<br>The post title will be shown in full width', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'single_post_featured_image', 'type' => 'radio', 'title' => __('Single Post Featured Image Size', XT_TEXT_DOMAIN), 'options' => array('fullwidth' => __('Full Width', XT_TEXT_DOMAIN), 'original' => __('Original', XT_TEXT_DOMAIN), 'none' => __('None', XT_TEXT_DOMAIN)), 'default' => 'fullwidth'), array('id' => 'single_post_featured_image_position', 'required' => array('single_post_featured_image', '!=', 'none'), 'type' => 'radio', 'title' => __('Single Post Featured Image Position', XT_TEXT_DOMAIN), 'subtitle' => '<b>Note:</b> "Behind Title" only works on standard post formats', 'options' => array('above-title' => __('Above title', XT_TEXT_DOMAIN), 'below-title' => __('Below Title', XT_TEXT_DOMAIN), 'behind-title' => __('Behind Title', XT_TEXT_DOMAIN), 'behind-title-fullwidth' => __('Behind Title Fullwidth', XT_TEXT_DOMAIN), 'below-excerpt' => __('Below Excerpt', XT_TEXT_DOMAIN), 'above-content' => __('Above Content', XT_TEXT_DOMAIN)), 'default' => 'above-content'), array('id' => 'show_post_excerpt', 'type' => 'switch', 'title' => __('Show post excerpt in single posts', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'show_post_date', 'type' => 'switch', 'title' => __('Show post date in single posts', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'show_post_author', 'type' => 'switch', 'title' => __('Show post author Link in single posts', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'show_post_author_bio', 'type' => 'switch', 'title' => __('Show post author biography in single posts', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'show_post_stats', 'type' => 'switch', 'title' => __('Show post stats in single posts', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'show_post_categories', 'type' => 'switch', 'title' => __('Show post categories in single posts', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'show_post_tags', 'type' => 'switch', 'title' => __('Show post tags in single posts', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'single_post_smart_sidebar', 'type' => 'switch', 'title' => __('Activate Post Content Smart Sidebar', XT_TEXT_DOMAIN), 'subtitle' => __('This will activate a sticky sidebar next to the post content', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'single_post_smart_sidebar_position', 'required' => array('single_post_smart_sidebar', '=', '1'), 'type' => 'radio', 'title' => __('Smart Sidebar Position', XT_TEXT_DOMAIN), 'options' => array('left' => __('Left', XT_TEXT_DOMAIN), 'right' => __('Right', XT_TEXT_DOMAIN)), 'default' => 'left'), array('id' => 'single_post_smart_sidebar_items', 'required' => array('single_post_smart_sidebar', '=', '1'), 'title' => __('Smart Content Sidebar', XT_TEXT_DOMAIN), 'subtitle' => __("<b>Note:</b> If an item (ex: Social Share) is activated within the smart sidebar, it will automatically be hidden from it's original location", XT_TEXT_DOMAIN), 'type' => 'sorter', 'options' => array('enabled' => array('social-share' => 'Social Share', 'divider-1' => 'Divider', 'post-author' => 'Post Author', 'post-date' => 'Post Date', 'divider-2' => 'Divider', 'post-stats' => 'Post Stats', 'divider-3' => 'Divider'), 'disabled' => array('widget-zone' => 'Widget Zone', 'divider-4' => 'Divider', 'divider-5' => 'Divider', 'divider-6' => 'Divider', 'divider-7' => 'Divider')), 'default' => ''), array('id' => 'single_post_smart_sidebar_widget_zone', 'required' => array('single_post_smart_sidebar', '=', '1'), 'type' => 'select', 'options' => xt_get_sidebars(), 'title' => __('Smart Sidebar Widget Zone', XT_TEXT_DOMAIN), 'subtitle' => __('Make sure that "Widget Zone" is enabled above', XT_TEXT_DOMAIN), 'default' => 'smart-content-sidebar-widget-zone'), array('id' => 'single_post_after_content_zone', 'type' => 'select', 'options' => xt_get_sidebars(), 'title' => __('Single post after content widget zone', XT_TEXT_DOMAIN), 'default' => 'after-single-post-widget-zone'), array('id' => 'single_post_after_content_zone_layout', 'required' => array('single_post_after_content_zone', '!=', ''), 'type' => 'image_select', 'title' => __('Single post after content widget zone layout', XT_TEXT_DOMAIN), 'subtitle' => __('Defines in which structure the widget area would be divided', XT_TEXT_DOMAIN), 'desc' => __('Make sure you have enough widgets to fit each column.<br>Note: If you choose a 4 columns structure, you need to have 4 widgets defined within your sidebar', XT_TEXT_DOMAIN), 'options' => xt_get_widget_layouts(), 'default' => 'custom_10_2'), array('id' => 'single_post_bottom_zone', 'type' => 'select', 'options' => xt_get_sidebars(), 'title' => __('Single post bottom widget zone', XT_TEXT_DOMAIN), 'default' => 'single-post-bottom-widget-zone'), array('id' => 'single_post_bottom_zone_layout', 'required' => array('single_post_bottom_zone', '!=', ''), 'type' => 'image_select', 'title' => __('Single post bottom widget zone layout', XT_TEXT_DOMAIN), 'subtitle' => __('Defines in which structure the widget area would be divided', XT_TEXT_DOMAIN), 'desc' => __('Make sure you have enough widgets to fit each column.<br>Note: If you choose a 4 columns structure, you need to have 4 widgets defined within your sidebar', XT_TEXT_DOMAIN), 'options' => xt_get_widget_layouts(), 'default' => '1'), array('id' => 'show_post_nav_links', 'type' => 'radio', 'options' => array('0' => __('Disabled', XT_TEXT_DOMAIN), '1' => __('Always Show', XT_TEXT_DOMAIN), '2' => __('Show on scroll down after reaching the end of the post', XT_TEXT_DOMAIN)), 'title' => __('Show previous / next post links on single post page', XT_TEXT_DOMAIN), 'default' => '2'), array('id' => 'posts_thumbnail_settings', 'type' => 'section', 'title' => __('Thumbnail Settings', XT_TEXT_DOMAIN)), array('id' => 'enable_thumbnail_zoom', 'type' => 'switch', 'title' => __('Enable thumbnail zoom on hover', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'enable_thumbnail_border_highlight', 'type' => 'switch', 'title' => __('Enable thumbnail border hightlight on hover', XT_TEXT_DOMAIN), 'default' => false))); $this->sections[] = array('icon' => 'el-icon-video', 'icon_class' => 'fa-lg', 'title' => __('Videos Settings', XT_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('These are some options that you can edit related to video archives, categories, search results and singles.', XT_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'videos_single_videos', 'type' => 'section', 'title' => __('Single Videos', XT_TEXT_DOMAIN)), array('id' => 'single_video_after_content_zone', 'type' => 'select', 'options' => xt_get_sidebars(), 'title' => __('Single video after content widget zone', XT_TEXT_DOMAIN), 'default' => 'after-single-video-widget-zone'), array('id' => 'single_video_after_content_zone_layout', 'required' => array('single_video_after_content_zone', '!=', ''), 'type' => 'image_select', 'title' => __('Single video after content widget zone layout', XT_TEXT_DOMAIN), 'subtitle' => __('Defines in which structure the widget area would be divided', XT_TEXT_DOMAIN), 'desc' => __('Make sure you have enough widgets to fit each column.<br>Note: If you choose a 4 columns structure, you need to have 4 widgets defined within your sidebar', XT_TEXT_DOMAIN), 'options' => xt_get_widget_layouts(), 'default' => '1'), array('id' => 'single_video_bottom_zone', 'type' => 'select', 'options' => xt_get_sidebars(), 'title' => __('Single video bottom widget zone', XT_TEXT_DOMAIN), 'default' => 'single-video-bottom-widget-zone'), array('id' => 'single_video_bottom_zone_layout', 'required' => array('single_video_bottom_zone', '!=', ''), 'type' => 'image_select', 'title' => __('Single video bottom widget zone layout', XT_TEXT_DOMAIN), 'subtitle' => __('Defines in which structure the widget area would be divided', XT_TEXT_DOMAIN), 'desc' => __('Make sure you have enough widgets to fit each column.<br>Note: If you choose a 4 columns structure, you need to have 4 widgets defined within your sidebar', XT_TEXT_DOMAIN), 'options' => xt_get_widget_layouts(), 'default' => '1'), array('id' => 'single_video_player_autoplay', 'type' => 'switch', 'title' => __('Auto Play Videos', XT_TEXT_DOMAIN), 'subtitle' => __('Applied to Youtube / Vimeo videos', XT_TEXT_DOMAIN), 'default' => true))); $this->sections[] = array('icon' => 'el-icon-picture', 'icon_class' => 'fa-lg', 'title' => __('Gallery Settings', XT_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('These are some options that you can edit related to Gallery Post Format', XT_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'galleries_single_galleries', 'type' => 'section', 'title' => __('Single Galleries', XT_TEXT_DOMAIN)), array('id' => 'single_gallery_after_content_zone', 'type' => 'select', 'options' => xt_get_sidebars(), 'title' => __('Single gallery after content widget zone', XT_TEXT_DOMAIN), 'default' => 'after-single-gallery-widget-zone'), array('id' => 'single_gallery_after_content_zone_layout', 'required' => array('single_gallery_after_content_zone', '!=', ''), 'type' => 'image_select', 'title' => __('Single gallery after content widget zone layout', XT_TEXT_DOMAIN), 'subtitle' => __('Defines in which structure the widget area would be divided', XT_TEXT_DOMAIN), 'desc' => __('Make sure you have enough widgets to fit each column.<br>Note: If you choose a 4 columns structure, you need to have 4 widgets defined within your sidebar', XT_TEXT_DOMAIN), 'options' => xt_get_widget_layouts(), 'default' => '1'), array('id' => 'single_gallery_bottom_zone', 'type' => 'select', 'options' => xt_get_sidebars(), 'title' => __('Single gallery bottom widget zone', XT_TEXT_DOMAIN), 'default' => 'single-gallery-bottom-widget-zone'), array('id' => 'single_gallery_bottom_zone_layout', 'required' => array('single_gallery_bottom_zone', '!=', ''), 'type' => 'image_select', 'title' => __('Single gallery bottom widget zone layout', XT_TEXT_DOMAIN), 'subtitle' => __('Defines in which structure the widget area would be divided', XT_TEXT_DOMAIN), 'desc' => __('Make sure you have enough widgets to fit each column.<br>Note: If you choose a 4 columns structure, you need to have 4 widgets defined within your sidebar', XT_TEXT_DOMAIN), 'options' => xt_get_widget_layouts(), 'default' => '1'))); $this->sections[] = array('icon' => 'el-icon-forward', 'icon_class' => 'fa-lg', 'title' => __('Pagination Settings', XT_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('You can control settings related to the reading and navigation of posts.', XT_TEXT_DOMAIN) . '</p><p>' . __('Enter the number of posts per page for each content type to be displayed within archive page templates.', XT_TEXT_DOMAIN) . '<br>' . __('You can control the number of posts for the Posts content type on the <a href="options-reading.php">Reading Settings</a> page.', XT_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'paginate_method', 'type' => 'radio', 'title' => __('Pagination Style', XT_TEXT_DOMAIN), 'subtitle' => __('Choose how to provide "paged" navigation of posts, categories, and archive pages.', XT_TEXT_DOMAIN) . '<br>' . __('You can set how many posts to list on each page on the <a href="options-reading.php">Reading Settings</a> page.', XT_TEXT_DOMAIN), 'options' => array('posts_nav_link' => __('Displays next and previous links', XT_TEXT_DOMAIN), 'paginate_links' => __('Displays a row of paginated links', XT_TEXT_DOMAIN), 'paginate_more' => __('Displays a single link to dynamically load more items', XT_TEXT_DOMAIN), 'paginate_scroll' => __('Dynamically load more items as you scroll down (infinite scrolling)', XT_TEXT_DOMAIN)), 'default' => 'paginate_links'), array('id' => 'paginate_position', 'required' => array(array('paginate_method', '!=', 'paginate_scroll')), 'type' => 'radio', 'title' => __('Pagination Position', XT_TEXT_DOMAIN), 'subtitle' => __('Choose a pagination position', XT_TEXT_DOMAIN), 'options' => array('left' => __('Left', XT_TEXT_DOMAIN), 'right' => __('Right', XT_TEXT_DOMAIN), 'center' => __('Center', XT_TEXT_DOMAIN)), 'default' => 'left'))); $comment_systems = array('wordpress' => __('Wordpress Comments', XT_TEXT_DOMAIN), 'facebook' => __('Facebook Comments (<a target="_blank" href="https://developers.facebook.com/docs/plugins/comments">More Info</a>) <br><small style="padding-left:24px">NB: Recent Comments widget will not work with this option</small>', XT_TEXT_DOMAIN), 'disqus' => __('Disqus Comment System (<a target="_blank" href="https://wordpress.org/plugins/disqus-comment-system/">More Info</a>)', XT_TEXT_DOMAIN)); if (function_exists('is_plugin_active') && !is_plugin_active('disqus-comment-system/disqus.php')) { $comment_systems['disqus'] .= '<br><br><font color="red">' . __('Disqus Comment System Plugin is not installed or inactive', XT_TEXT_DOMAIN) . '<br>' . sprintf(__('<a href="%s">Click Here</a> to install / activate this plugin', XT_TEXT_DOMAIN), admin_url('themes.php?page=tgmpa-install-plugins')) . '</font>'; } $this->sections[] = array('icon' => 'el-icon-comment', 'icon_class' => 'fa-lg', 'title' => __('Comments Settings', XT_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('Here are some comments settings that you can edit.', XT_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'comments_enabled', 'type' => 'switch', 'title' => __('Comments Enabled', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'comments_on_pages', 'required' => array('comments_enabled', '=', '1'), 'type' => 'switch', 'title' => __('Enable Comments On Pages', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'comments_on_vc_pages', 'required' => array('comments_enabled', '=', '1'), 'type' => 'switch', 'title' => __('Enable Comments On Visual Composer Pages or Posts', XT_TEXT_DOMAIN), 'default' => false), array('id' => 'comments_type', 'required' => array('comments_enabled', '=', '1'), 'type' => 'radio', 'title' => __('Comments Type', XT_TEXT_DOMAIN), 'options' => $comment_systems, 'default' => 'wordpress'), array('id' => 'comments_title_reply', 'required' => array('comments_enabled', '=', '1'), 'type' => 'text', 'title' => __('Comments Title / Reply Label', XT_TEXT_DOMAIN), 'default' => __('Join the Conversation', XT_TEXT_DOMAIN)), array('id' => 'comments_title_reply_to', 'required' => array(array('comments_enabled', '=', '1'), array('comments_type', '=', 'wordpress')), 'type' => 'text', 'title' => __('Comments Title Reply To Label', XT_TEXT_DOMAIN), 'default' => __('Leave a Reply to %s', XT_TEXT_DOMAIN)), array('id' => 'comments_cancel_reply_link', 'required' => array(array('comments_enabled', '=', '1'), array('comments_type', '=', 'wordpress')), 'type' => 'text', 'title' => __('Comments Cancel Reply Link Label', XT_TEXT_DOMAIN), 'default' => __('Cancel Reply', XT_TEXT_DOMAIN)), array('id' => 'comments_label_submit', 'required' => array(array('comments_enabled', '=', '1'), array('comments_type', '=', 'wordpress')), 'type' => 'text', 'title' => __('Comments Submit Label', XT_TEXT_DOMAIN), 'default' => __('Post Comment', XT_TEXT_DOMAIN)), array('id' => 'comments_thankyou_msg', 'required' => array(array('comments_enabled', '=', '1'), array('comments_type', '=', 'wordpress')), 'type' => 'text', 'title' => __('Comments Thank You Message', XT_TEXT_DOMAIN), 'default' => __('Thank you for your comment', XT_TEXT_DOMAIN)))); $this->sections[] = array('icon' => 'el-icon-thumbs-up', 'icon_class' => 'fa-lg', 'title' => __('Likes Settings', XT_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('Here are some likes / dislikes settings that you can edit.', XT_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'likes_enabled', 'type' => 'switch', 'title' => __('Likes Enabled', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'likes_voting', 'type' => 'select', 'options' => array('1' => __('All users', XT_TEXT_DOMAIN), '2' => __('Logged In Users Only', XT_TEXT_DOMAIN)), 'title' => __('Likes Allowed for', XT_TEXT_DOMAIN), 'default' => '1'), array('id' => 'likes_position', 'type' => 'select', 'options' => array('left' => __('Left', XT_TEXT_DOMAIN), 'center' => __('Center', XT_TEXT_DOMAIN), 'right' => __('Right', XT_TEXT_DOMAIN)), 'title' => __('Select position', XT_TEXT_DOMAIN), 'default' => 'left'), array('id' => 'likes_font_size', 'type' => 'select', 'options' => array('12px' => __('12px', XT_TEXT_DOMAIN), '13px' => __('13px', XT_TEXT_DOMAIN), '14px' => __('14px', XT_TEXT_DOMAIN), '15px' => __('15px', XT_TEXT_DOMAIN), '16px' => __('16px', XT_TEXT_DOMAIN), '17px' => __('17px', XT_TEXT_DOMAIN), '18px' => __('18px', XT_TEXT_DOMAIN)), 'title' => __('Select font size', XT_TEXT_DOMAIN), 'default' => '14px'), array('id' => 'likes_icon', 'type' => 'select', 'options' => array('none' => __('None', XT_TEXT_DOMAIN), 'thumbs' => __('Thumb', XT_TEXT_DOMAIN), 'angle' => __('Angle', XT_TEXT_DOMAIN), 'caret' => __('Caret', XT_TEXT_DOMAIN)), 'title' => __('Select icon', XT_TEXT_DOMAIN), 'default' => 'thumbs'), array('id' => 'likes_vote_like_link', 'type' => 'text', 'default' => __("I found this helpful", XT_TEXT_DOMAIN), 'title' => __('Like text', XT_TEXT_DOMAIN)), array('id' => 'likes_voted_like_single', 'type' => 'text', 'default' => __("person found this helpful", XT_TEXT_DOMAIN), 'title' => __('Liked single text', XT_TEXT_DOMAIN)), array('id' => 'likes_voted_like_plural', 'type' => 'text', 'default' => __("people found this helpful", XT_TEXT_DOMAIN), 'title' => __('Liked plural text', XT_TEXT_DOMAIN)), array('id' => 'likes_vote_dislike_link', 'type' => 'text', 'default' => __("I did not find this helpful", XT_TEXT_DOMAIN), 'title' => __('Dislike text', XT_TEXT_DOMAIN)), array('id' => 'likes_voted_dislike_single', 'type' => 'text', 'default' => __("person did not find this helpful", XT_TEXT_DOMAIN), 'title' => __('Disliked single text', XT_TEXT_DOMAIN)), array('id' => 'likes_voted_dislike_plural', 'type' => 'text', 'default' => __("people did not find this helpful", XT_TEXT_DOMAIN), 'title' => __('Disliked plural text', XT_TEXT_DOMAIN)), array('id' => 'likes_likes_bgcolor', 'type' => 'color', 'transparent' => false, 'default' => '#27a159', 'title' => __('Likes button Background color', XT_TEXT_DOMAIN)), array('id' => 'likes_likes_color', 'type' => 'color', 'transparent' => false, 'default' => '#ffffff', 'title' => __('Likes button Text color', XT_TEXT_DOMAIN)), array('id' => 'likes_dislikes_bgcolor', 'type' => 'color', 'transparent' => false, 'default' => '#ebebeb', 'title' => __('Dislikes button Background color', XT_TEXT_DOMAIN)), array('id' => 'likes_dislikes_color', 'type' => 'color', 'transparent' => false, 'default' => '#7d7d7d', 'title' => __('Dislikes button Text color', XT_TEXT_DOMAIN)), array('id' => 'likes_custom-css', 'type' => 'ace_editor', 'mode' => 'css', 'theme' => 'chrome', 'title' => __('Custom CSS code', XT_TEXT_DOMAIN), 'default' => ''), array('id' => 'likes_reset-all-votes', 'type' => 'callback', 'title' => __('Reset all votes', XT_TEXT_DOMAIN), 'callback' => 'xt_likes_reset_all'))); global $XT_SocialShare; $XT_SocialShare = new XT_SocialShare(); $this->sections[] = array('icon' => 'el-icon-share-alt', 'icon_class' => 'fa-lg', 'title' => __('Sharing Settings', XT_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('Here are some posts sharing settings that you can edit.', XT_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'xtss_settings', 'type' => 'section', 'title' => __('Social Share Settings', XT_TEXT_DOMAIN)), array('id' => 'xtss_enabled', 'type' => 'switch', 'title' => __('Social Share Enabled', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'xtss_networks', 'title' => __('Social Share Networks', XT_TEXT_DOMAIN), 'type' => 'sorter', 'options' => array('enabled' => $XT_SocialShare->getProvidersNames(), 'disabled' => array()), 'default' => ''), array('id' => 'xtss_twitter_username', 'type' => 'text', 'title' => __('Twitter Username', XT_TEXT_DOMAIN), 'default' => ''), array('id' => 'xtss_skin', 'title' => __('Social Share Skin', XT_TEXT_DOMAIN), 'type' => 'radio', 'options' => $XT_SocialShare->getSkins(), 'default' => 'default'), array('id' => 'xtss_show_title', 'type' => 'switch', 'title' => __('Social Share Show Title', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'xtss_title', 'required' => array('xtss_show_title', '=', true), 'type' => 'text', 'title' => __('Social Share Title', XT_TEXT_DOMAIN), 'default' => __('Share', XT_TEXT_DOMAIN)), array('id' => 'xtss_align', 'title' => __('Social Share Position', XT_TEXT_DOMAIN), 'type' => 'radio', 'options' => array('left' => __('Left', XT_TEXT_DOMAIN), 'right' => __('Right', XT_TEXT_DOMAIN), 'center' => __('Centered', XT_TEXT_DOMAIN)), 'default' => 'left'), array('id' => 'xtss_layout', 'title' => __('Social Share Layout', XT_TEXT_DOMAIN), 'type' => 'radio', 'options' => array('horizontal' => __('Horizontal', XT_TEXT_DOMAIN), 'vertical' => __('Vertical', XT_TEXT_DOMAIN)), 'default' => 'horizontal'), array('id' => 'xtss_is_fullwidth', 'required' => array('xtss_layout', '=', 'vertical'), 'type' => 'switch', 'title' => __('Social Share Full Width Items', XT_TEXT_DOMAIN), 'subtitle' => __('This will force a same width to all items', XT_TEXT_DOMAIN), 'default' => false), array('id' => 'xtss_size', 'title' => __('Social Share Size', XT_TEXT_DOMAIN), 'type' => 'radio', 'options' => array('small' => __('Small', XT_TEXT_DOMAIN), 'medium' => __('Medium', XT_TEXT_DOMAIN), 'large' => __('Large', XT_TEXT_DOMAIN)), 'default' => 'small'), array('id' => 'xtss_radius', 'type' => 'switch', 'title' => __('Add Radius To Social Icons', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'xtss_rounded', 'type' => 'switch', 'title' => __('Make Social Icons Rounded', XT_TEXT_DOMAIN), 'default' => false), array('id' => 'xtss_show_names', 'type' => 'switch', 'title' => __('Shows Social Networks Names', XT_TEXT_DOMAIN), 'default' => false), array('id' => 'xtss_show_shares', 'type' => 'switch', 'title' => __('Shows Social Share Count', XT_TEXT_DOMAIN), 'default' => false), array('id' => 'xtss_show_total_shares', 'type' => 'switch', 'title' => __('Shows Total Social Share Count', XT_TEXT_DOMAIN), 'default' => false))); $this->sections[] = array('icon' => 'el-icon-facebook', 'icon_class' => 'fa-lg', 'title' => __('Social Media', XT_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('Here are some social settings that you can edit. This will be used to create the follow us buttons.', XT_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'social_icons', 'type' => 'networks', 'title' => _x('Social Icons', 'Theme Options', XT_TEXT_DOMAIN), 'subtitle' => _x('Add / update social media icons.', 'Theme Options', XT_TEXT_DOMAIN), 'placeholder' => array('name' => __('Social Network Name', XT_TEXT_DOMAIN), 'url' => __('Social Network URL', XT_TEXT_DOMAIN))))); $this->sections[] = array('icon' => 'el-icon-user', 'icon_class' => 'fa-lg', 'title' => __('Registrations', XT_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('These are some login / registration settings that you can edit.', XT_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'register_settings', 'type' => 'section', 'title' => __('Registration Settings', XT_TEXT_DOMAIN)), array('id' => 'enable_frontend_register', 'type' => 'switch', 'title' => __('Enable Front-end Registration', XT_TEXT_DOMAIN), 'subtitle' => __('This feature requires you to enable WordPress memberships within the <a href="' . admin_url('options-general.php') . '">general settings</a>', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'frontend_register_label', 'required' => array('enable_frontend_register', '=', true), 'type' => 'text', 'title' => __('Register Link Label', XT_TEXT_DOMAIN), 'subtitle' => __('This link will appear in the site top bar', XT_TEXT_DOMAIN), 'default' => 'Become a member'), array('id' => 'frontend_register_type', 'required' => array('enable_frontend_register', '=', true), 'type' => 'radio', 'options' => array('page' => __('Register Page Template', XT_TEXT_DOMAIN), 'lightbox' => __('Light Box Register Form', XT_TEXT_DOMAIN)), 'title' => __('Register Form Type', XT_TEXT_DOMAIN), 'default' => 'lightbox'), array('id' => 'frontend_register_page', 'type' => 'select', 'data' => 'pages', 'title' => __('Register Page', XT_TEXT_DOMAIN)), array('id' => 'login_settings', 'type' => 'section', 'title' => __('Login Settings', XT_TEXT_DOMAIN)), array('id' => 'enable_frontend_login', 'type' => 'switch', 'title' => __('Enable Front-end Login', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'frontend_login_label', 'required' => array('enable_frontend_login', '=', true), 'type' => 'text', 'title' => __('Login Link Label', XT_TEXT_DOMAIN), 'subtitle' => __('This link will appear in the site top bar', XT_TEXT_DOMAIN), 'default' => 'Login'), array('id' => 'frontend_login_type', 'required' => array('enable_frontend_login', '=', true), 'type' => 'radio', 'options' => array('page' => __('Login Page Template', XT_TEXT_DOMAIN), 'lightbox' => __('Light Box Login Form', XT_TEXT_DOMAIN)), 'title' => __('Login Type', XT_TEXT_DOMAIN), 'default' => 'lightbox'), array('id' => 'frontend_login_page', 'type' => 'select', 'data' => 'pages', 'title' => __('Login Page', XT_TEXT_DOMAIN)), array('id' => 'frontend_login_redirect_page', 'required' => array('enable_frontend_login', '=', true), 'type' => 'select', 'data' => 'pages', 'title' => __('Login Redirect Page', XT_TEXT_DOMAIN), 'subtitle' => __('Leave empty to redirect to the referrer page.', XT_TEXT_DOMAIN)), array('id' => 'frontend_login_remember_me', 'required' => array('enable_frontend_login', '=', true), 'type' => 'switch', 'title' => __('Enable Remember Me', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'account_menu_settings', 'type' => 'section', 'title' => __('Account Menu Settings', XT_TEXT_DOMAIN)), array('id' => 'account_menu_show_profile_link', 'type' => 'switch', 'title' => __('Show profile link', XT_TEXT_DOMAIN), 'default' => true), array('id' => 'facebook_connect_settings', 'type' => 'section', 'title' => __('Facebook Connect Settings', XT_TEXT_DOMAIN)), array('id' => 'enable_facebook_connect', 'type' => 'switch', 'title' => __('Enable Facebook Connect', XT_TEXT_DOMAIN), 'default' => false), array('id' => 'facebook_appid', 'required' => array('enable_facebook_connect', '=', true), 'type' => 'text', 'title' => __('Facebook App ID', XT_TEXT_DOMAIN), 'default' => ''))); $this->sections[] = array('icon' => 'el-icon-photo', 'icon_class' => 'fa-lg', 'title' => __('Fav Icons & Metadata', XT_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('These are some metadata options that you can edit, including favicons and a short title for mobile home screens.<br>You can use this online tool to easily generate your favicons. <a href="http://iconifier.net" target="_blank" />http://iconifier.net/</a>', XT_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'meta_favicon', 'type' => 'media', 'preview' => false, 'title' => __('Favicon', XT_TEXT_DOMAIN), 'subtitle' => __('Upload your shortcut icon', XT_TEXT_DOMAIN), 'default' => get_template_directory_uri() . '/images/icons/favicon.ico', 'desc' => 'Icon Size: 32px × 32px', 'class' => 'greybg'), array('id' => 'meta_apple_touch_icon', 'type' => 'media', 'preview' => false, 'title' => __('Apple Touch Icon (57x57)', XT_TEXT_DOMAIN), 'subtitle' => __('Upload your shortcut icon', XT_TEXT_DOMAIN), 'default' => get_template_directory_uri() . '/images/icons/apple-touch-icon-57x57-precomposed.png', 'desc' => 'Precomposed. Icon Size: 57px × 57px. For iPhone 3GS, 2011 iPod Touch and older Android devices.', 'class' => 'greybg'), array('id' => 'meta_apple_touch_icon_72x72', 'type' => 'media', 'preview' => false, 'title' => __('Apple Touch Icon (72x72)', XT_TEXT_DOMAIN), 'subtitle' => __('Upload your shortcut icon', XT_TEXT_DOMAIN), 'default' => get_template_directory_uri() . '/images/icons/apple-touch-icon-72x72-precomposed.png', 'desc' => 'Precomposed. Icon Size: 72px × 72px. For 1st generation iPad, iPad 2 and iPad mini.', 'class' => 'greybg'), array('id' => 'meta_apple_touch_icon_114x114', 'type' => 'media', 'preview' => false, 'title' => __('Apple Touch Icon (114x114)', XT_TEXT_DOMAIN), 'subtitle' => __('Upload your shortcut icon', XT_TEXT_DOMAIN), 'default' => get_template_directory_uri() . '/images/icons/apple-touch-icon-114x114-precomposed.png', 'desc' => 'Precomposed. Icon Size: 114px × 114px. For iPhone 4, 4S, 5 and 2012 iPod Touch.', 'class' => 'greybg'), array('id' => 'meta_apple_touch_icon_144x144', 'type' => 'media', 'preview' => false, 'title' => __('Apple Touch Icon (144x144)', XT_TEXT_DOMAIN), 'subtitle' => __('Upload your shortcut icon', XT_TEXT_DOMAIN), 'default' => get_template_directory_uri() . '/images/icons/apple-touch-icon-144x144-precomposed.png', 'desc' => 'Precomposed. Icon Size: 144px × 144px. For iPad 3rd and 4th generation.', 'class' => 'greybg'), array('id' => 'meta_apple_mobile_web_app_title', 'type' => 'text', 'title' => __('Apple Mobile Web App Title', XT_TEXT_DOMAIN), 'desc' => '<br><br>Sets a different title for an iOS Home Screen icon. By default, Mobile Safari crops document titles to 13 characters.', 'default' => ''))); $this->sections[] = array('icon' => 'el-icon-error', 'icon_class' => 'fa-lg', 'title' => __('404 Error', XT_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('Here you can edit the 404 error page content.', XT_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => '404_page_title', 'type' => 'text', 'title' => __('Page Title', XT_TEXT_DOMAIN), 'default' => 'Page not found'), array('id' => '404_page_content', 'type' => 'editor', 'wpautop' => true, 'title' => __('Page Content', XT_TEXT_DOMAIN), 'default' => 'Oops, are you lost? The content you were looking for is not here.<br><a href="' . home_url('/') . '">Return to home page</a>'))); if (function_exists('is_plugin_active') && is_plugin_active('woocommerce/woocommerce.php')) { $this->sections[] = array('icon' => ' el-icon-shopping-cart', 'icon_class' => 'fa-lg', 'title' => __('WooCommerce', XT_TEXT_DOMAIN), 'desc' => '<p class="description">' . __('Here are some WooCommerce settings that you can edit.', XT_TEXT_DOMAIN) . '</p>', 'fields' => array(array('id' => 'woo_hide_single_product_page_title', 'type' => 'switch', 'title' => __('Hide page title on single product pages', XT_TEXT_DOMAIN), 'default' => false), array('id' => 'woo_header_enable_cart_count', 'type' => 'radio', 'title' => __('Show Cart Count within the site top bar', XT_TEXT_DOMAIN), 'options' => array('0' => __('No', XT_TEXT_DOMAIN), '1' => __('Yes', XT_TEXT_DOMAIN), '2' => __('Only if cart is not empty', XT_TEXT_DOMAIN)), 'default' => true), array('id' => 'woo_header_cart_menu_title', 'required' => array('woo_header_enable_cart_count', '!=', 0), 'type' => 'text', 'title' => __('Cart Menu Title', XT_TEXT_DOMAIN), 'subtitle' => __('Only shopping cart icon shown by default. You can append a title. Eg. "Cart"', XT_TEXT_DOMAIN), 'default' => ''), array('id' => 'woo_header_enable_cart_dropdown', 'required' => array('woo_header_enable_cart_count', '!=', 0), 'type' => 'switch', 'title' => __('Enable Mini Cart Dropdown within the site top bar', XT_TEXT_DOMAIN), 'default' => true))); } $this->sections[] = array('type' => 'divide'); $this->sections[] = array('title' => __('Performance Settings', XT_TEXT_DOMAIN), 'desc' => __('Here are couple of caching settings that will make your site run faster', XT_TEXT_DOMAIN), 'icon' => 'el-icon-wrench', 'fields' => array(array('id' => 'cache_vc_widgets', 'type' => 'switch', 'title' => __('Cache Visual Composer Widgets', XT_TEXT_DOMAIN), 'subtitle' => __('The cache will only be flushed when pages are updated within the backend or if the cache expired based on the below timeout', XT_TEXT_DOMAIN), 'default' => false), array('id' => 'cache_vc_widgets_timeout', 'required' => array('cache_vc_widgets', '=', 1), 'type' => 'slider', 'title' => __('Visual Composer Widgets Cache Timeout in minutes', XT_TEXT_DOMAIN), 'subtitle' => __('Select Between 15 minutes up to 1 week', XT_TEXT_DOMAIN), 'default' => 60, 'min' => 15, 'step' => 15, 'max' => 10080, 'display_value' => 'label'))); $this->sections[] = array('type' => 'divide'); $this->sections[] = array('title' => __('Import / Export', XT_TEXT_DOMAIN), 'desc' => __('Import and Export your Redux Framework settings from file, text or URL.', XT_TEXT_DOMAIN), 'icon' => 'el-icon-refresh', 'fields' => array(array('id' => 'opt-import-export', 'type' => 'import_export', 'title' => 'Import Export', 'subtitle' => 'Save and restore your Redux options', 'full_width' => false))); if ($currently_in_options) { $this->sections[] = array('icon' => 'el-icon-info-sign', 'title' => __('Theme Information', XT_TEXT_DOMAIN), 'fields' => array(array('id' => 'opt-raw-info', 'type' => 'raw', 'content' => $item_info))); } }
function xt_get_archive_sidebar($type = 'post') { global $post; $category = xt_get_current_category(); $default_sidebar_position = xt_option($type . '_archive_sidebar_position'); $default_sidebar_area = xt_option($type . '_archive_sidebar_area'); $category_settings = xt_option($type . '_archive_category_settings'); if (!empty($category) && !empty($category_settings) && is_array($category_settings)) { foreach ($category_settings as $setting) { if (!empty($setting["category"]) && $setting["category"] == $category) { if (!empty($setting["sidebar_position"])) { $default_sidebar_position = $setting["sidebar_position"]; } if (!empty($setting["sidebar_area"])) { $default_sidebar_area = $setting["sidebar_area"]; } break; } } } return array('position' => $default_sidebar_position, 'area' => $default_sidebar_area); }
function xt_shortcode_button($atts) { extract(shortcode_atts(array('button_text' => '', 'button_align' => '', 'button_icon' => '', 'button_icon_position' => '', 'button_link_page' => '', 'button_link_product' => '', 'button_link_external' => '', 'button_size' => '', 'button_expanded' => '', 'button_vertical_padding' => '15', 'button_horizontal_padding' => '25', 'button_border_width' => '1', 'button_border_radius' => '3', 'button_rounded' => '', 'button_bg_color' => xt_option('primary-color', 'color'), 'button_border_color' => '', 'button_text_color' => '#fff', 'button_hover_bg_color' => '', 'button_hover_border_color' => '', 'button_hover_text_color' => '', 'button_animation' => '', 'button_animation_speed' => '', 'css_animation' => ''), $atts)); $link = ''; if (!empty($button_link_page)) { $link = get_permalink($button_link_page); } else { if (!empty($button_link_product)) { $link = get_permalink($button_link_product); } else { if (!empty($button_link_external)) { $link = $button_link_external; } } } // Set Widget Styles $widgetStyle = ''; if (!empty($button_align)) { $widgetStyle .= 'text-align: ' . $button_align . ';'; } // Set Styles $style = ''; $icon_class = ''; if (empty($button_text) && !empty($button_icon)) { $icon_class .= ' loner'; } if (!empty($button_vertical_padding)) { $button_vertical_padding = str_replace('px', '', $button_vertical_padding); $style .= 'padding-top: ' . $button_vertical_padding . 'px;'; $style .= 'padding-bottom: ' . $button_vertical_padding . 'px;'; } if (!empty($button_horizontal_padding)) { $button_horizontal_padding = str_replace('px', '', $button_horizontal_padding); $style .= 'padding-right: ' . $button_horizontal_padding . 'px;'; $style .= 'padding-left: ' . $button_horizontal_padding . 'px;'; } if (!empty($button_border_width)) { $button_border_width = str_replace('px', '', $button_border_width); $style .= 'border-width: ' . $button_border_width . 'px;'; } if (empty($button_rounded) && !empty($button_border_radius)) { $button_border_radius = str_replace('px', '', $button_border_radius); $style .= '-moz-border-radius: ' . $button_border_radius . 'px;'; $style .= '-webkit-border-radius: ' . $button_border_radius . 'px;'; $style .= 'border-radius: ' . $button_border_radius . 'px;'; } if (!empty($button_bg_color)) { $style .= 'background-color: ' . $button_bg_color . ';'; } if (!empty($button_border_color)) { $style .= 'border-color: ' . $button_border_color . ';'; } if (!empty($button_text_color)) { $style .= 'color: ' . $button_text_color . ';'; } // Set Data Attr $data = ''; if (!empty($button_hover_bg_color)) { $data .= 'data-hover_bg_color = "' . esc_attr($button_hover_bg_color) . '" '; } if (!empty($button_hover_border_color)) { $data .= 'data-hover_border_color = "' . esc_attr($button_hover_border_color) . '" '; } if (!empty($button_hover_text_color)) { $data .= 'data-hover_text_color = "' . esc_attr($button_hover_text_color) . '" '; } ob_start(); ?> <div class="vc_xt_button wpb_content_element"> <div class="widget xt_button <?php echo esc_attr($css_animation); ?> " style="<?php echo esc_attr($widgetStyle); ?> "> <a class="button <?php echo esc_attr($button_size); ?> <?php echo !empty($button_expanded) ? 'expand' : ''; ?> <?php echo !empty($button_rounded) ? 'round' : ''; ?> <?php echo esc_attr($button_animation); ?> <?php echo esc_attr($button_animation_speed); ?> " href="<?php echo esc_url($link); ?> " <?php echo $data; ?> style="<?php echo esc_attr($style); ?> "> <?php if (!empty($button_icon) && $button_icon_position == 'left') { ?> <span class="fa fa-<?php echo esc_attr($button_icon); ?> <?php echo esc_attr($icon_class); ?> "></span> <?php } ?> <?php echo esc_html($button_text); ?> <?php if (!empty($button_icon) && $button_icon_position == 'right') { ?> <span class="append fa fa-<?php echo esc_attr($button_icon); ?> <?php echo esc_attr($icon_class); ?> "></span> <?php } ?> </a> </div> </div> <?php $output = ob_get_contents(); ob_end_clean(); return $output; }
?> " data-options="sticky_on: medium"> <section class="top-bar-section search-toggle-<?php echo esc_attr($mainmenu_search_bar_toggle); ?> "> <?php if ($mainmenu_show_logo) { ?> <ul class="title-area"> <li class="name"> <?php $mainmenu_logo = xt_option('mainmenu-logo', 'url'); $mainmenu_retina_logo = xt_option('mainmenu-retina-logo', 'url'); if (!empty($mainmenu_logo)) { ?> <a href="<?php echo home_url('/'); ?> " class="site-logo"> <img class="logo-desktop regular" src="<?php echo esc_url($mainmenu_logo); ?> " <?php echo !empty($mainmenu_retina_logo) ? 'data-interchange="[' . esc_url($mainmenu_retina_logo) . ', (retina)]"' : ''; ?> alt="<?php echo esc_attr(get_bloginfo('name')); ?>
if (post_password_required()) { return; } ?> <div id="comments" class="comments-area" data-thankyou="<?php echo __(xt_option('comments_thankyou_msg'), XT_TEXT_DOMAIN); ?> "> <?php $commenter = wp_get_current_commenter(); $req = get_option('require_name_email'); $aria_req = $req ? " aria-required='true'" : ''; $args = array('id_form' => 'commentform', 'id_submit' => 'submit', 'title_reply' => __(xt_option('comments_title_reply'), XT_TEXT_DOMAIN), 'title_reply_to' => __(xt_option('comments_title_reply_to'), XT_TEXT_DOMAIN), 'cancel_reply_link' => __(xt_option('comments_cancel_reply_link'), XT_TEXT_DOMAIN), 'label_submit' => __(xt_option('comments_label_submit'), XT_TEXT_DOMAIN), 'comment_field' => '<p class="comment-form-comment">' . '<textarea id="comment" name="comment" cols="45" rows="8" aria-required="true" placeholder="' . __('Your Comment', XT_TEXT_DOMAIN) . '"></textarea></p>', 'must_log_in' => '<p class="must-log-in">' . sprintf(__('You must be <a href="%s">logged in</a> to post a comment.'), wp_login_url(apply_filters('the_permalink', get_permalink()))) . '</p>', 'logged_in_as' => '<p class="logged-in-as">' . sprintf(__('Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>'), admin_url('profile.php'), $user_identity, wp_logout_url(apply_filters('the_permalink', get_permalink()))) . '</p>', 'comment_notes_before' => '', 'comment_notes_after' => '', 'fields' => apply_filters('comment_form_default_fields', array('author' => '<p class="comment-form-author">' . '<input id="author" name="author" type="text" placeholder="' . __('Your Name', XT_TEXT_DOMAIN) . '" value="' . esc_attr($commenter['comment_author']) . '" size="30"' . $aria_req . ' placeholder="' . __('Name', XT_TEXT_DOMAIN) . ($req ? ' *' : '') . '"/></p>', 'email' => '<p class="comment-form-email">' . '<input id="email" name="email" type="text" placeholder="' . __('Your Email', XT_TEXT_DOMAIN) . '" value="' . esc_attr($commenter['comment_author_email']) . '" size="30"' . $aria_req . ' placeholder="' . __('Email', XT_TEXT_DOMAIN) . ($req ? ' *' : '') . '" /> <span class="email-notes">' . __('Will not be published.') . '</span></p>', 'url' => '<p class="comment-form-url"><label for="url">' . __('Website', XT_TEXT_DOMAIN) . '</label>' . '<input id="url" name="url" type="text" size="30" placeholder="' . __('Your Website', XT_TEXT_DOMAIN) . '" value="' . esc_attr($commenter['comment_author_url']) . '" size="30" /></p>'))); ?> <?php comment_form($args); ?> <?php if (have_comments()) { ?> <h3 class="comments-title"> <?php $comments_count = get_comments_number(get_the_ID()); printf(__('%1$s comment%2$s', XT_TEXT_DOMAIN), number_format_i18n($comments_count), $comments_count > 1 ? 's' : '');
</div> <?php if (is_user_logged_in()) { ?> <div class="alert-box warning radius no-margin-bottom"><?php printf('%s <a href="%s" title="%s">%s</a>', __('You are already registered! ', XT_TEXT_DOMAIN), wp_logout_url(site_url()), __('Logout', XT_TEXT_DOMAIN), __('Logout', XT_TEXT_DOMAIN)); ?> </div> <?php } else { ?> <form action="javascript://" name="registerform" class="ajax-login-default-form-container register_form default"> <?php if (xt_option('enable_facebook_connect')) { ?> <div class="fb-login-container"> <a href="#" class="button expand fb-login"><i class="fa fa-facebook"></i> <?php _e('Sign Up with Facebook', XT_TEXT_DOMAIN); ?> </a> </div> <div class="row collapse"> <div class="small-12 column"> <div class="title_divider"> <span><?php _e("Or", XT_TEXT_DOMAIN); ?> </span> </div>
} } else { if (is_author()) { $post_settings = xt_get_post_settings('post', 'author'); $has_sidebar = false; $sidebar_area = xt_option('post_author_sidebar_area'); $sidebar_position = xt_option('post_author_sidebar_position'); if (!empty($sidebar_position) && $sidebar_position != 'disabled' && !empty($sidebar_area)) { $has_sidebar = true; } } else { if (is_search()) { $post_settings = xt_get_post_settings('post', 'search'); $has_sidebar = false; $sidebar_area = xt_option('post_search_sidebar_area'); $sidebar_position = xt_option('post_search_sidebar_position'); if (!empty($sidebar_position) && $sidebar_position != 'disabled' && !empty($sidebar_area)) { $has_sidebar = true; } } else { if (is_archive() || is_home()) { $obj = get_post_type_object('post'); if (empty($archive_title) || is_home()) { $archive_title = $obj->labels->name; } $archive_content = ""; $post_settings = xt_get_post_settings('post', 'archive'); $has_sidebar = false; $category_sidebar = xt_get_archive_sidebar('post'); $sidebar_area = $category_sidebar["area"]; $sidebar_position = $category_sidebar["position"];
public function render($url, $config = array(), $return = false) { // Wrap Classes $position = xt_option('xtss_position'); $wrap_classes = array(); $wrap_classes[] = 'skin-' . $this->skin; $wrap_classes[] = 'layout-' . $this->layout; $wrap_classes[] = 'size-' . $this->size; $wrap_classes[] = 'align-' . $this->align; if ($this->is_fullwidth && $this->layout == 'vertical') { $wrap_classes[] = 'fullwidth'; } if ($this->show_names) { $wrap_classes[] = 'showing-names'; } if ($this->show_shares) { $wrap_classes[] = 'showing-shares'; } if ($this->show_total_shares) { $wrap_classes[] = 'showing-total-shares'; } if (!empty($this->extraClass)) { $wrap_classes[] = $this->extraClass; } $wrap_classes = implode(" ", $wrap_classes); // ---- // Inner Classes $inner_classes = array(); $inner_classes[] = 'xtss-transition'; $inner_classes = implode(" ", $inner_classes); // ---- // Item Classes $item_classes = array(); $item_classes[] = 'xtss-transition'; if ($this->radius) { $item_classes[] = 'radius'; } if ($this->rounded) { $item_classes[] = 'round'; } $item_classes = implode(" ", $item_classes); // ---- $items = ''; $providerTotalShares = 0; foreach ($this->providers as $providerID => $provider) { $options = array(); if (!empty($config[$providerID])) { $options = $config[$providerID]; } $providerName = $this->getName($providerID); $providerLink = $this->getLink($providerID, $url, $options); $providerColor = $this->getColor($providerID); if (!empty($options["link_class"])) { $item_classes .= ' ' . $options["link_class"]; } $providerNameOutput = ''; if ($this->show_names) { $providerNameOutput = '<span class="xtss-name">' . $providerName . '</span>'; } $providerSharesOutput = ''; if ($this->show_shares || $this->show_total_shares) { $providerTotalShares += $providerShares; $providerShares = $this->getShares($providerID, $url); $providerSharesOutput = '<span class="xtss-shares xtss-transition">' . $providerShares . '</span>'; } $items .= ' <a class="xtss-' . $providerID . ' ' . $item_classes . '" style="background-color:' . $providerColor . ';" target="_blank" href="' . esc_attr($providerLink) . '" title="' . __('Share on', XT_TEXT_DOMAIN) . ' ' . $providerName . '"> <span class="icon fa fa-' . esc_attr($providerID) . ' xtss-transition"></span> ' . $providerNameOutput . ' ' . $providerSharesOutput . ' </a>'; } $output = '<div class="xtss-wrap ' . $wrap_classes . '">'; $output .= ' <div class="xtss ' . $inner_classes . '">'; if ($this->show_title) { $output .= '<div class="xtss-title">' . $this->title . '</div>'; } if ($this->show_total_shares) { $output .= '<span class="xtss-total-shares xtss-transition"> <span class="xtss-total-count">' . $providerTotalShares . '</span> <span class="xtss-total-text">' . __('Shares', XT_TEXT_DOMAIN) . '</span> </span>'; } $output .= '<span class="xtss-social-networks">' . $items . '</span>'; $output .= ' </div>'; $output .= '</div>'; if ($return) { return $output; } echo $output; }
$social_networks_mobile_enabled = (bool) xt_option('topbar-mobile-menu-search'); if (!empty($social_networks_mobile_enabled)) { ?> <!-- Search Section --> <ul class="search show-for-small-only clearfix"> <li class="has-form"> <?php get_template_part('parts/searchform'); ?> </li> </ul> <?php } ?> <?php $social_networks_mobile_enabled = (bool) xt_option('topbar-mobile-menu-followus'); if (!empty($social_networks_mobile_enabled)) { ?> <!-- Social Networks Section --> <div class="show-for-small-only clearfix"> <?php get_template_part('parts/networks'); ?> </div> <?php } ?> <a class="right" href="http://venturepact.com/index.php?r=site/newProject"> <span style="color:#FFFFFF; background-color:#1abb9c; valign:center;padding:10px; border-radius:5px;font-size:12px; margin:15px;"> Start Your Project </span>
<?php $item_template = xt_option('post_archive_default_template'); get_template_part('archive');
<?php $enable_frontend_login = (bool) xt_option('enable_frontend_login'); $frontend_login_label = xt_option('frontend_login_label'); $frontend_login_type = xt_option('frontend_login_type'); $frontend_login_page = xt_option('frontend_login_page'); $frontend_login_page_url = !empty($frontend_login_page) ? get_permalink($frontend_login_page) : '#'; $enable_frontend_register = (bool) xt_option('enable_frontend_register'); $frontend_register_label = xt_option('frontend_register_label'); $frontend_register_type = xt_option('frontend_register_type'); $frontend_register_page = xt_option('frontend_register_page'); $frontend_register_page_url = !empty($frontend_register_page) ? get_permalink($frontend_register_page) : '#'; $show_profile_link = (bool) xt_option('account_menu_show_profile_link'); ?> <?php if ($enable_frontend_login || $enable_frontend_register) { ?> <ul class="account-menu right"> <?php if (!is_user_logged_in()) { ?> <?php if ($enable_frontend_login) { ?> <li><a href="<?php echo esc_url($frontend_login_page_url); ?> " class="<?php
function xt_post_stats($linkComments = true, $classes = array()) { $post_id = get_the_ID(); $comments_enabled = xt_comments_enabled(); $comments_system = xt_comments_system(); $likes_enabled = (bool) xt_option('likes_enabled'); $viewsCount = xt_get_post_views($post_id); ?> <div class="stats <?php echo implode(" ", $classes); ?> "> <span class="stats-wrap"> <?php if ($likes_enabled) { $likesCount = xt_get_post_likes($post_id); ?> <span class="likes"><i class="fa fa-thumbs-up"></i> <?php echo $likesCount; ?> </span> <meta itemprop="interactionCount" content="UserLikes:<?php echo $likesCount; ?> "/> <?php } ?> <span class="views"><i class="fa fa-eye"></i> <?php echo $viewsCount; ?> </span> <meta itemprop="interactionCount" content="UserPageVisits:<?php echo $viewsCount; ?> "/> <?php if ($comments_enabled && $comments_system != 'facebook') { ?> <span class="comments"> <?php $commentsCount = get_comments_number(); ?> <?php if ($linkComments) { ?> <a href="<?php echo esc_url(get_comments_link($post_id)); ?> "><i class="fa fa-comment"></i> <?php echo $commentsCount; ?> </a> <?php } else { ?> <i class="fa fa-comment"></i> <?php echo $commentsCount; ?> <?php } ?> <meta itemprop="interactionCount" content="UserComments:<?php echo $commentsCount; ?> "/> </span> <?php } ?> </span> </div> <?php }
<?php $item_template = xt_option('post_tag_default_template'); get_template_part('archive');
<?php $social_networks = xt_option('social_icons'); if (!empty($social_networks) && !empty($social_networks[0]["name"])) { ?> <!-- social-networks --> <ul class="social-networks"> <?php foreach ($social_networks as $network) { ?> <?php if (empty($network["name"])) { continue; } ?> <li> <a style="color:<?php echo esc_attr($network["color"]); ?> " target="_blank" href="<?php echo esc_url($network["url"]); ?> "> <?php if (!empty($network["thumb"])) { ?> <img src="<?php echo esc_url($network["thumb"]); ?>
* Override this template by copying it to yourtheme/woocommerce/archive-product.php * * @author WooThemes * @package WooCommerce/Templates * @version 2.0.0 */ if (!defined('ABSPATH')) { exit; } // Exit if accessed directly $is_ajax = !empty($_POST["ajax"]) ? true : false; $shop_page_id = get_option('woocommerce_shop_page_id'); $hide_page_title = (bool) get_field('hide_page_title', $shop_page_id); $page_container_no_padding = (bool) get_field('page_container_no_padding', $shop_page_id); $full_width_page = xt_page_has_composer($shop_page_id); $paginate_method = xt_option('paginate_method'); $attr[] = 'data-paginate="' . esc_attr($paginate_method) . '"'; $load_more_class = $paginate_method; if ($paginate_method == 'paginate_scroll') { $paginate_method = "paginate_more"; } if ($is_ajax) { ?> <?php while (have_posts()) { the_post(); wc_get_template_part('content', 'product'); } ?>
/** * Front-end display of widget. */ public function widget($args, $instance) { $instance = wp_parse_args((array) $instance, self::$widget_defaults); $this->fix_args($args); $title = apply_filters('widget_title', $instance['title'], $instance, $this->id_base); $bordered = !empty($instance['bordered']) ? 1 : 0; if ($bordered) { $this->set_border($args); } extract($args); echo $before_widget; if ($title) { echo sprintf($before_title, '') . wp_kses_post($title) . $after_title; } $social_networks = xt_option('social_icons'); if (!empty($social_networks)) { ?> <!-- social-networks --> <ul class="social-networks"> <?php foreach ($social_networks as $network) { ?> <?php if (empty($network["name"])) { continue; } ?> <li style="background-color:<?php echo esc_attr($network["color"]); ?> "> <a target="_blank" href="<?php echo esc_attr($network["url"]); ?> "> <?php if (!empty($network["thumb"])) { ?> <img src="<?php echo esc_url($network["thumb"]); ?> " style="max-height:50px;"> <?php } else { ?> <i class="fa fa-<?php echo esc_attr($network["icon"]); ?> " title="<?php echo esc_attr($network["name"]); ?> "></i> <?php } ?> </a> </li> <?php } ?> </ul> <?php } echo $after_widget; }
<?php get_header(); ?> <?php $title = xt_option('404_page_title'); $content = xt_option('404_page_content'); ?> <div class="row"> <div class="medium-6 small-centered column"> <?php if (!empty($title)) { ?> <h1> <?php echo wp_kses_post($title); ?> </h1> <?php } ?> <div class="page-content t-padding"> <?php echo wp_kses_post($content); ?>
?> <?php } else { ?> <?php if ($is_endless_template) { ?> <a class="button toggle comments-toggle" data-toggle=".article-comments.post-<?php the_ID(); ?> " data-callback="showComments"><i class="fa fa-comment"></i> <?php echo __(xt_option('comments_title_reply'), XT_TEXT_DOMAIN); ?> (<?php echo get_comments_number(get_the_ID()); ?> )</a> <div class="article-comments post-<?php the_ID(); ?> fade" style="display:none"> <?php comments_template(); ?> </div>
<?php $item_template = xt_option('post_author_default_template'); get_template_part('archive');
<?php $item_template = xt_option('post_search_default_template'); get_template_part('archive');