function st_vc_list_rental($attr, $content = false)
 {
     $data = shortcode_atts(array('st_ids' => '', 'taxonomy' => '', 'number' => 0, 'st_order' => '', 'st_orderby' => '', 'number_of_row' => 4, 'st_location' => ''), $attr, 'st_list_rental');
     extract($data);
     $query = array('post_type' => 'st_rental', 'posts_per_page' => $number, 'order' => $st_order, 'orderby' => $st_orderby);
     if (!empty($st_ids)) {
         $query['post__in'] = explode(',', $st_ids);
     }
     if ($st_orderby == 'sale') {
         $query['meta_key'] = 'price';
         $query['orderby'] = 'meta_value';
     }
     if ($st_orderby == 'featured') {
         $query['meta_key'] = 'cars_set_as_featured';
         $query['orderby'] = 'meta_value';
     }
     if (!empty($st_location)) {
         $query['meta_query'] = array('key' => 'id_location', 'value' => $st_location, 'compare' => "=");
     }
     $current_page = get_post_type(get_the_ID());
     // get current page .since 1.1.3
     query_posts($query);
     $txt = '';
     while (have_posts()) {
         the_post();
         $txt .= st()->load_template('vc-elements/st-list-rental/loop', 'list', array('attr' => $attr, 'data' => $data, 'current_page' => $current_page));
     }
     wp_reset_query();
     return '<div class="row row-wrap">' . $txt . '</div>';
 }
 public function widget($args, $instance)
 {
     $cache = array();
     if (!$this->is_preview()) {
         $cache = wp_cache_get($this->cache_key, 'widget');
     }
     if (!is_array($cache)) {
         $cache = array();
     }
     if (!isset($args['widget_id'])) {
         $args['widget_id'] = $this->id;
     }
     if (isset($cache[$args['widget_id']])) {
         echo balanceTags($cache[$args['widget_id']]);
         return;
     }
     ob_start();
     $default = array('title' => 'Filter By:', 'show_attribute' => '', 'st_search_fields' => '', 'style' => 'dark');
     $instance = wp_parse_args($instance, $default);
     echo st()->load_template('rental/filter', null, array('instance' => $instance));
     if (!$this->is_preview()) {
         $cache[$args['widget_id']] = ob_get_flush();
         wp_cache_set($this->cache_key, $cache, 'widget');
     } else {
         ob_end_flush();
     }
 }
Esempio n. 3
0
 function st_vc_blog($attr, $content = false)
 {
     $data = shortcode_atts(array('st_blog_number_post' => 5, 'st_blog_orderby' => 0, 'st_blog_order' => '', 'st_blog_style' => '', 'st_category' => '', 'st_style' => 'style1'), $attr, 'st_blog');
     extract($data);
     $query = array('post_type' => 'post', 'orderby' => $st_blog_orderby, 'order' => $st_blog_order, 'posts_per_page' => $st_blog_number_post);
     if ($st_category != '0' && $st_category != '') {
         $query['tax_query'][] = array('taxonomy' => 'category', 'terms' => explode(',', $st_category));
     }
     query_posts($query);
     $txt = '';
     while (have_posts()) {
         the_post();
         if ($st_style == 'style1') {
             $txt .= st()->load_template('vc-elements/st-blog/loop', false, $data);
         }
         if ($st_style == 'style2') {
             $txt .= st()->load_template('vc-elements/st-blog/loop2', false, $data);
         }
     }
     wp_reset_query();
     $r = '<div class="row row-wrap">
              ' . $txt . '
            </div>';
     return $r;
 }
Esempio n. 4
0
 function st_vc_single_search($attr, $content = false)
 {
     $data = shortcode_atts(array('st_list_form' => '', 'st_style_search' => 'style_1', 'st_direction' => 'horizontal', 'st_box_shadow' => 'no', 'st_search_tabs' => 'yes', 'st_title_search' => '', 'field_size' => '', 'active' => 1), $attr, 'st_single_search');
     extract($data);
     $txt = st()->load_template('vc-elements/st-single-search/search', 'form', array('data' => $data));
     return $txt;
 }
 function st_search_rental_result($arg = array())
 {
     if (!get_post_type() == 'st_rental' and get_query_var('post_type') != "st_rental") {
         return;
     }
     return st()->load_template('rental/search-elements/result', false, array('arg' => $arg));
 }
Esempio n. 6
0
 function st_list_hotel_related($attr, $content = false)
 {
     $data_vc = STHotel::get_taxonomy_and_id_term_tour();
     $param = array('title' => '', 'sort_taxonomy' => '', 'posts_per_page' => 3, 'orderby' => 'ID', 'order' => 'DESC', 'font_size' => '3', 'number_of_row' => 1);
     $param = array_merge($param, $data_vc['list_id_vc']);
     $data = shortcode_atts($param, $attr, 'st_list_hotel_related');
     extract($data);
     $page = STInput::request('paged');
     if (!$page) {
         $page = get_query_var('paged');
     }
     $query = array('post_type' => 'st_hotel', 'posts_per_page' => $posts_per_page, 'post_status' => 'publish', 'paged' => $page, 'order' => $order, 'orderby' => $orderby, 'post__not_in' => array(get_the_ID()));
     if (!empty($sort_taxonomy)) {
         if (isset($attr["id_term_" . $sort_taxonomy])) {
             $terms_post = wp_get_post_terms(get_the_ID(), $sort_taxonomy, array('fields' => 'ids'));
             $id_term = $attr["id_term_" . $sort_taxonomy];
             $id_term = explode(',', $id_term);
             $terms = array();
             foreach ($id_term as $key => $value) {
                 if (in_array($value, $terms_post)) {
                     $terms[] = $value;
                 }
             }
             if ($terms) {
                 $query['tax_query'] = array(array('taxonomy' => $sort_taxonomy, 'field' => 'id', 'terms' => $terms));
             }
         }
     }
     $r = "<div class='list_hotel_related'>" . st()->load_template('vc-elements/st-list-hotel/loop-hot', 'deals', array('query' => new Wp_Query($query))) . "</div>";
     wp_reset_query();
     if (!empty($title) and !empty($r)) {
         $r = '<h' . $font_size . '>' . $title . '</h' . $font_size . '>' . $r;
     }
     return $r;
 }
Esempio n. 7
0
 public function widget($args, $instance)
 {
     $title = apply_filters('widget_title', $instance['title']);
     $args['after_title'] = apply_filters('after_title_widget_location', $args['after_title']);
     $args['before_title'] = apply_filters('before_title_widget_location', $args['before_title']);
     $args['before_widget'] = apply_filters('before_widget_location', $args['before_widget']);
     $args['after_widget'] = apply_filters('after_widget_location', $args['after_widget']);
     $post_type = $instance['post_type'] ? $instance['post_type'] : "st_cars";
     echo balancetags($args['before_widget']);
     if (!empty($title)) {
         echo balancetags($args['before_title'] . $title . $args['after_title']);
     }
     $post_type = $instance['post_type'] ? $instance['post_type'] : "st_cars";
     $array = STLocation::get_info_by_post_type(get_the_ID(), $post_type);
     $array['title'] = $instance['title'] ? $instance['title'] : "";
     $array['post_type'] = $instance['post_type'];
     if (!isset($instance['use_feature']) || $instance['use_feature'] == "feature") {
         $post_id = STLocation::get_random_post_type(get_the_ID(), $instance['post_type']);
         $array['thumb'] = get_post_thumbnail_id($post_id);
     } else {
         $array['thumb'] = $instance['background'] ? $instance['background'] : "";
     }
     echo st()->load_template('location/location-content-item', null, $array);
     echo balancetags($args['after_widget']);
 }
 static function _enqueue_data()
 {
     //'Most recent booking for this property was 15 minute ago .Most recent booking for this property was 15 minute ago'
     if (!self::$is_working) {
         return;
     }
     $data = array();
     if (is_singular()) {
         $post_type = get_post_type();
         $book_able = array('st_hotel', 'st_cars', 'st_tours', 'st_activity', 'st_rental', 'cruise');
         if (!in_array($post_type, $book_able)) {
             return;
         }
         $label = get_post_type_object($post_type);
         $demo_mode = st()->get_option('edv_enable_demo_mode', 'off');
         if (st()->get_option('enable_user_online_noti', 'on') == 'on') {
             if ($demo_mode == 'on') {
                 $data['noty'][] = array('icon' => 'home', 'message' => sprintf(st_get_language('now_s_users_seeing_this_s'), rand(300, 5000), $label->labels->singular_name), 'type' => 'success');
             } else {
                 $data['noty'][] = array('icon' => 'home', 'message' => sprintf(st_get_language('now_s_users_seeing_this_s'), self::get_user_online(get_the_ID()), $label->labels->singular_name), 'type' => 'success');
             }
         }
         if (st()->get_option('enable_last_booking_noti', 'on') == 'on') {
             if ($demo_mode == 'on') {
                 $data['noty'][] = array('icon' => 'clock-o', 'message' => sprintf(st_get_language('most_revent_booking_for_this_s_was_s'), $label->labels->singular_name, sprintf(__('%s minutes ago', ST_TEXTDOMAIN), rand(2, 50))), 'type' => 'warning');
             } else {
                 $data['noty'][] = array('icon' => 'clock-o', 'message' => sprintf(st_get_language('most_revent_booking_for_this_s_was_s'), $label->labels->singular_name, TravelerObject::get_last_booking_string(get_the_ID())), 'type' => 'warning');
             }
         }
         $data['noti_position'] = st()->get_option('noti_position', 'topRight');
     }
     wp_localize_script('jquery', 'stanalytics', $data);
 }
Esempio n. 9
0
 function st_vc_search($attr, $content = false)
 {
     $data = shortcode_atts(array('st_style_search' => 'style_1', 'st_box_shadow' => 'no'), $attr, 'st_search');
     extract($data);
     $txt = st()->load_template('vc-elements/st-search/search', 'form', array('data' => $data));
     return $txt;
 }
Esempio n. 10
0
 function is_available()
 {
     if (st()->get_option('pm_gway_st_submit_form_enable') == 'on') {
         return true;
     }
     return false;
 }
Esempio n. 11
0
 function st_hotel_room_price_ft($args)
 {
     if (is_singular('hotel_room')) {
         return st()->load_template('vc-elements/st-hotel-room/st_hotel_room_price', null, array('attr' => $args));
     }
     return false;
 }
Esempio n. 12
0
 function st_vc_flickr($arg, $content = false)
 {
     $data = shortcode_atts(array('st_number' => 5, 'st_user' => '23401669@N00'), $arg, 'st_flickr');
     extract($data);
     $r = st()->load_template('vc-elements/st-fickr/html', null, $data);
     return $r;
 }
 function __construct()
 {
     $this->dir = st()->dir('plugins/custom-option-tree');
     $this->url = st()->url('plugins/custom-option-tree');
     add_action('admin_enqueue_scripts', array($this, 'add_scripts'));
     add_action('wp_enqueue_scripts', array($this, 'add_scripts'));
 }
 protected function content($arg, $content = null)
 {
     $data = shortcode_atts(array('st_avatar' => 0, 'st_name' => 0, 'st_sub' => '', 'st_desc' => '', 'st_bg' => '', 'st_pos' => ''), $arg, 'st_testimonial_item');
     extract($data);
     $text = st()->load_template('vc-elements/st-slide-testimonial/loop', false, $data);
     return $text;
 }
Esempio n. 15
0
/**
 * Implements template_preprocess_maintenance_page().
 */
function solkit_octal_preprocess_maintenance_page(&$variables)
{
    global $install_state;
    if ($install_state) {
        // Find the number of tasks to run.
        $tasks = install_tasks_to_display($install_state);
        $total = sizeof($tasks);
        // Find the position of the active task.
        $keys = array_keys($tasks);
        $active_task = $install_state['active_task'];
        $current = array_search($active_task, $keys) + 1;
        // Show steps.
        $variables['steps'] = t('Step @current of @total', array('@current' => $current, '@total' => $total));
        $variables['title'] = $tasks[$active_task];
    }
    $profile = isset($_GET['profile']) ? $_GET['profile'] : '';
    if ($profile) {
        $path = drupal_get_path('profile', $profile);
        $info_file = $path . '/' . $profile . '.info';
        $info = drupal_parse_info_file($info_file);
        $variables['site_name'] = $info['name'];
        $version['version'] = $info['version'];
        // Use copyright from distro info file.
        if (isset($info['copyright'])) {
            $variables['copyright'] = $info['copyright'];
        } else {
            $variables['copyright'] = st('@name @version', array('@name' => $info['name'], '@version' => $info['version']));
        }
        // Quick fix to add the required radix-progress.js.
        // We assume that Radix is at profiles/*/themes/radix.
        // TODO: handle this better.
        drupal_add_js($path . '/themes/radix/assets/javascripts/radix-progress.js');
    }
}
 function st_vc_list_location($attr, $content = false)
 {
     $data = shortcode_atts(array('st_ids' => "", 'st_type' => 'st_hotel', 'is_featured' => 'no', 'st_number' => 0, 'st_col' => 4, 'st_style' => '', 'st_show_logo' => '', 'st_logo_position' => '', 'st_orderby' => '', 'st_order' => ''), $attr, 'st_list_location');
     extract($data);
     $query = array('post_type' => 'location', 'posts_per_page' => $st_number, 'order' => $st_order, 'orderby' => $st_orderby);
     if (!empty($st_ids)) {
         $query['post__in'] = explode(',', $st_ids);
     }
     if ($st_orderby == 'price') {
         $query['meta_key'] = 'min_price_' . $st_type . '';
         $query['orderby'] = 'meta_value';
     }
     if ($st_orderby == 'sale') {
         $query['meta_key'] = 'total_sale_number';
         $query['orderby'] = 'meta_value';
     }
     if ($st_orderby == 'rate') {
         $query['meta_key'] = 'review_' . $st_type . '';
         $query['orderby'] = 'meta_value';
     }
     if ($is_featured == 'yes') {
         $query['orderby'] = 'meta_value_num';
         $query['meta_query'] = array(array('key' => 'is_featured', 'value' => 'on', 'compare' => '='));
     }
     query_posts($query);
     $r = st()->load_template('vc-elements/st-list-location/loop', $st_style, $data);
     wp_reset_query();
     return $r;
 }
Esempio n. 17
0
 function st_vc_holiday_detail_photo($attr, $content = false)
 {
     $default = array('style' => 'slide');
     $attr = wp_parse_args($attr, $default);
     if (is_singular('st_holidays')) {
         return st()->load_template('holidays/elements/photo', null, array('attr' => $attr));
     }
 }
Esempio n. 18
0
 function st_tour_detail_attribute($attr, $content = false)
 {
     $default = array('item_col' => 12, 'font_size' => 4);
     $attr = wp_parse_args($attr, $default);
     if (is_singular('st_tours')) {
         return st()->load_template('tours/elements/attribute', null, array('attr' => $attr));
     }
 }
Esempio n. 19
0
 function __construct()
 {
     $this->dir = st()->dir('plugins/custom-select-post');
     $this->url = st()->url('plugins/custom-select-post');
     add_action('init', array($this, 'add_scripts'));
     add_action('wp_ajax_st_post_select', array($this, 'st_post_select_func'));
     add_action('wp_ajax_nopriv_st_post_select', array($this, 'st_post_select_func'));
 }
Esempio n. 20
0
 static function date_diff_with_format($date_1, $date_2, $differenceFormat = '%a')
 {
     $format = st()->get_option('search_date_format', 'm/d/Y');
     $datetime1 = date_create_from_format($format, $date_1);
     $datetime2 = date_create_from_format($format, $date_2);
     $interval = date_diff($datetime1, $datetime2);
     return $interval->format($differenceFormat);
 }
Esempio n. 21
0
 function st_vc_cars_attribute($attr, $content = false)
 {
     $default = array('font_size' => 4);
     $attr = wp_parse_args($attr, $default);
     if (is_singular('st_cars')) {
         return st()->load_template('cars/elements/attribute', null, array('attr' => $attr));
     }
 }
Esempio n. 22
0
 function _shop_product_style()
 {
     $style = st()->get_option('shop_default_list_view', 'grid');
     if (STInput::get('view_style')) {
         $style = STInput::get('view_style');
     }
     return $style;
 }
Esempio n. 23
0
 function st_vc_list_activity($attr, $content = false)
 {
     $data_vc = STActivity::get_taxonomy_and_id_term_activity();
     $param = array('st_ids' => "", 'st_number' => 4, 'st_order' => '', 'st_orderby' => '', 'st_of_row' => 4, 'only_featured_location' => 'no', 'st_location' => '', 'sort_taxonomy' => '');
     $param = array_merge($param, $data_vc['list_id_vc']);
     $data = shortcode_atts($param, $attr, 'st_list_activity');
     extract($data);
     $page = STInput::request('paged');
     if (!$page) {
         $page = get_query_var('paged');
     }
     $query = array('post_type' => 'st_activity', 'posts_per_page' => $st_number, 'paged' => $page, 'order' => $st_order, 'orderby' => $st_orderby);
     if (!empty($st_ids)) {
         $query['post__in'] = explode(',', $st_ids);
         $query['orderby'] = 'post__in';
     }
     if ($st_orderby == 'sale') {
         $query['meta_key'] = 'price';
         $query['orderby'] = 'meta_value';
     }
     if ($st_orderby == 'rate') {
         $query['meta_key'] = 'rate_review';
         $query['orderby'] = 'meta_value';
     }
     if ($st_orderby == 'discount') {
         $query['meta_key'] = 'discount';
         $query['orderby'] = 'meta_value';
     }
     $_SESSION['el_only_featured_location'] = $only_featured_location;
     $_SESSION['el_st_location'] = $st_location;
     $_SESSION['el_featured'] = array();
     if ($only_featured_location == 'yes') {
         $STLocation = new STLocation();
         $featured = $STLocation->get_featured_ids();
         $_SESSION['featured'] = $featured;
     }
     $st_list_activity = new st_list_activity();
     if ($only_featured_location == 'yes' || !empty($st_location)) {
         add_filter('posts_where', array($st_list_activity, '_get_query_where'));
         add_filter('posts_join', array($st_list_activity, '_get_query_join'));
     }
     if (!empty($sort_taxonomy)) {
         if (isset($attr["id_term_" . $sort_taxonomy])) {
             $id_term = $attr["id_term_" . $sort_taxonomy];
             $query['tax_query'] = array(array('taxonomy' => $sort_taxonomy, 'field' => 'id', 'terms' => explode(',', $id_term)));
         }
     }
     query_posts($query);
     remove_filter('posts_where', array($st_list_activity, '_get_query_where'));
     remove_filter('posts_join', array($st_list_activity, '_get_query_join'));
     unset($_SESSION['el_only_featured_location']);
     unset($_SESSION['el_st_location']);
     unset($_SESSION['el_featured']);
     $r = "<div class='list_tours'>" . st()->load_template('vc-elements/st-list-activity/loop', '', $data) . "</div>";
     wp_reset_query();
     return $r;
 }
 function st_vc_search_hotel_result($arg = array())
 {
     $default = array('style' => 'grid', 'taxonomy' => '');
     $arg = wp_parse_args($arg, $default);
     if (!get_post_type() == 'st_hotel' and get_query_var('post_type') != "st_hotel") {
         return;
     }
     return st()->load_template('hotel/search-elements/result', false, array('arg' => $arg));
 }
 function st_vc_tour_content_search($attr, $content = false)
 {
     $default = array('st_style' => 1, 'taxonomy' => '');
     $attr = wp_parse_args($attr, $default);
     //if(is_search())
     //{
     return st()->load_template('tours/content', 'tours', array('attr' => $attr));
     //}
 }
 function st_vc_slide_location($attr, $content = false)
 {
     $data = shortcode_atts(array('st_type' => '', 'is_featured' => 'no', 'st_number' => 4, 'st_list_location' => 0, 'st_weather' => 'no', 'st_style' => 'style_1', 'st_height' => 'full', 'effect' => 'fade'), $attr, 'st_slide_location');
     extract($data);
     $query = array('post_type' => 'location');
     if ($is_featured == 'yes') {
         $query['posts_per_page'] = $st_number;
         $query['orderby'] = 'meta_value_num';
         $query['meta_query'] = array(array('key' => 'is_featured', 'value' => 'on', 'compare' => '='));
     } else {
         $ids = explode(',', $st_list_location);
         $query['post__in'] = $ids;
     }
     query_posts($query);
     $txt = '';
     while (have_posts()) {
         the_post();
         if ($st_style == 'style_1') {
             $txt .= st()->load_template('vc-elements/st-slide-location/loop-style', '1', $data);
         }
         if ($st_style == 'style_2') {
             $txt .= st()->load_template('vc-elements/st-slide-location/loop-style', '2', $data);
         }
     }
     wp_reset_query();
     if ($st_height == 'full') {
         $class = 'top-area show-onload';
     } else {
         $class = 'special-area';
     }
     if ($st_style == 'style_1') {
         $r = '<div class="' . $class . '">
                 <div class="owl-carousel owl-slider owl-carousel-area" id="owl-carousel-slider" data-effect="' . $effect . '">
                 ' . $txt . '
                 </div>
               </div>';
     }
     if ($st_style == 'style_2') {
         $r = '<div class="' . $class . '">
             <div class="bg-holder full">
                 <div class="bg-front bg-front-mob-rel">
                     <div class="container">
                     ' . st()->load_template('vc-elements/st-search/search', 'form', array('st_style_search' => 'style_2', 'st_box_shadow' => 'no', 'class' => 'search-tabs-abs mt50', 'title' => STLanguage::st_get_language('find_your_perfect_trip'))) . '
                     </div>
                 </div>
                 <div class="owl-carousel owl-slider owl-carousel-area visible-lg" id="owl-carousel-slider" data-effect="' . $effect . '">
                   ' . $txt . '
                 </div>
             </div>
         </div>';
     }
     if (empty($txt)) {
         $r = "";
     }
     return $r;
 }
Esempio n. 27
0
 static function init()
 {
     $key = st()->get_option('recaptcha_key');
     $skey = st()->get_option('recaptcha_secretkey');
     if ($key and $skey) {
         self::$key = $key;
         self::$secret_key = $skey;
     }
     add_action('wp_enqueue_scripts', array(__CLASS__, 'register_script'));
 }
Esempio n. 28
0
 static function get_featured($id = null)
 {
     if (empty($id)) {
         $id = get_the_ID();
     }
     $check_featured = get_post_meta($id, 'is_featured', true);
     if (!empty($check_featured) and $check_featured == 'on') {
         return '<div class="st_featured">' . st()->get_option('st_text_featured', __('Featured', ST_TEXTDOMAIN)) . '</div>';
     } else {
         return false;
     }
 }
Esempio n. 29
0
 function st_vc_bg_gallery($attr, $content = false)
 {
     wp_enqueue_script('gridrotator.js');
     $data = shortcode_atts(array('st_images_in' => 0, 'st_images_not_in' => 0, 'st_col' => 8, 'st_row' => 4, 'st_speed' => 1200, 'opacity' => '0.5'), $attr, 'st_bg_gallery');
     extract($data);
     $per_page = $st_col * $st_row + 5;
     $query_images_args = array('post_type' => 'attachment', 'post_status' => 'public', 'posts_per_page' => $per_page, 'post__not_in' => explode(',', $st_images_not_in), 'post__in' => explode(',', $st_images_in));
     $list = query_posts($query_images_args);
     $txt = '';
     $int_i = 0;
     $int_i = count($list);
     //var_dump($query_images_args);
     //var_dump($list);
     foreach ($list as $k => $v) {
         $image = wp_get_attachment_image($v->ID, array(300, 300));
         $txt .= '<li class="image-' . $v->ID . '">
                     <a href="#">
                         ' . $image . '
                     </a>
                  </li>';
     }
     wp_reset_query();
     if ($list_in = count(explode(',', $st_images_in)) < $per_page) {
         $query_images_args = array('post_type' => 'attachment', 'post_mime_type' => 'image', 'post_status' => 'inherit', 'posts_per_page' => $per_page - $list_in, 'post__not_in' => explode(',', $st_images_not_in . ',' . $st_images_in));
         $list = query_posts($query_images_args);
         foreach ($list as $k => $v) {
             $image = wp_get_attachment_image($v->ID, array(300, 300));
             $txt .= '<li class="image-' . $v->ID . '">
                     <a href="#">
                         ' . $image . '
                     </a>
                  </li>';
             // $int_i++;
         }
         wp_reset_query();
     }
     $class_bg = Assets::build_css("opacity: " . $opacity . "!important;");
     $r = '<div class="bg-holder">
                 <div class="bg-mask-darken ' . $class_bg . '"></div>
                 <div class="bg-parallax"></div>
                 <!-- START GRIDROTATOR -->
                  <div class="ri-grid" id="ri-grid" xcount="' . $int_i . '" data-col="' . $st_col . '" data-row="' . $st_row . '" data-speed="' . $st_speed . '">
                     <ul>' . $txt . '</ul>
                 </div>
                 <!-- END GRIDROTATOR -->
                 <div class="bg-front full-center">
                     <div class="container">
                         ' . st()->load_template('vc-elements/st-search/search', 'form', array('st_style_search' => 'style_1', 'st_box_shadow' => 'no', 'class' => '')) . '
                     </div>
                 </div>
             </div>';
     return $r;
 }
Esempio n. 30
0
 function st_register_required_plugins()
 {
     $plugins = array(array('name' => 'WPBakery Visual Composer', 'slug' => 'js_composer', 'source' => st()->url('/files/js_composer.zip'), 'required' => true), array('name' => 'Option Tree', 'slug' => 'option-tree', 'required' => true), array('name' => 'Contact Form 7', 'slug' => 'contact-form-7', 'required' => true), array('name' => 'WordPress Social Login', 'slug' => 'wordpress-social-login', 'required' => true), array('name' => 'Traveler code', 'slug' => 'traveler-code', 'required' => true, 'source' => st()->url('/files/traveler-code1.3.1.zip')), array('name' => 'MailChimp for WordPress', 'slug' => 'mailchimp-for-wp', 'required' => false), array('name' => 'Really Simple CAPTCHA', 'slug' => 'really-simple-captcha', 'required' => false), array('name' => 'Woocommerce', 'slug' => 'woocommerce', 'required' => false));
     /**
      * Array of configuration settings. Amend each line as needed.
      * If you want the default strings to be available under your own theme domain,
      * leave the strings uncommented.
      * Some of the strings are added into a sprintf, so see the comments at the
      * end of each line for what each argument will be.
      */
     $config = array('default_path' => '', 'menu' => 'tgmpa-install-plugins', 'has_notices' => true, 'dismissable' => true, 'dismiss_msg' => '', 'is_automatic' => false, 'message' => '', 'strings' => array('page_title' => __('Install Required Plugins', ST_TEXTDOMAIN), 'menu_title' => __('Install Plugins', ST_TEXTDOMAIN), 'installing' => __('Installing Plugin: %s', ST_TEXTDOMAIN), 'oops' => __('Something went wrong with the plugin API.', ST_TEXTDOMAIN), 'notice_can_install_required' => _n_noop('This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.', ST_TEXTDOMAIN), 'notice_can_install_recommended' => _n_noop('This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.', ST_TEXTDOMAIN), 'notice_cannot_install' => _n_noop('Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.', ST_TEXTDOMAIN), 'notice_can_activate_required' => _n_noop('The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.', ST_TEXTDOMAIN), 'notice_can_activate_recommended' => _n_noop('The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.', ST_TEXTDOMAIN), 'notice_cannot_activate' => _n_noop('Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.', ST_TEXTDOMAIN), 'notice_ask_to_update' => _n_noop('The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.', ST_TEXTDOMAIN), 'notice_cannot_update' => _n_noop('Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.', ST_TEXTDOMAIN), 'install_link' => _n_noop('Begin installing plugin', 'Begin installing plugins', ST_TEXTDOMAIN), 'activate_link' => _n_noop('Begin activating plugin', 'Begin activating plugins', ST_TEXTDOMAIN), 'return' => __('Return to Required Plugins Installer', ST_TEXTDOMAIN), 'plugin_activated' => __('Plugin activated successfully.', ST_TEXTDOMAIN), 'complete' => __('All plugins installed and activated successfully. %s', ST_TEXTDOMAIN), 'nag_type' => 'updated'));
     tgmpa($plugins, $config);
 }