protected function content($arg, $content = null) { global $i_tab; $i_tab = 0; $content_data = st_remove_wpautop($content); $r = '<div id="accordion" class="panel-group">' . $content_data . '</div>'; unset($st_title_tb); unset($id_rand); return $r; }
protected function content($arg, $content = null) { $data = shortcode_atts(array('st_title_form' => '', 'st_post_type' => "st_hotel", 'st_button_search' => __("Search", ST_TEXTDOMAIN)), $arg, 'st_search_form'); extract($data); $content = st_remove_wpautop($content); $text = ' <h2>' . $st_title_form . '</h2> <form role="search" method="get" class="search" action="' . home_url('/') . '"> <input type="hidden" name="s" value=""> <input type="hidden" name="post_type" value="' . $st_post_type . '"> <input type="hidden" name="layout" value="' . STInput::get('layout') . '"> <div class="row">' . $content . '</div> <button class="btn btn-primary btn-lg" type="submit">' . $st_button_search . '</button> </form>'; return $text; }
function st_vc_image_effect($attr, $content = false) { $data = shortcode_atts(array('st_image' => '', 'st_type' => 'icon', 'st_pos_layout' => '-top-left', 'st_hover_hold' => '', 'st_title' => '', 'st_class_icon' => '', 'st_icon_group' => '', 'url' => ''), $attr, 'st_image_effect'); extract($data); $img = wp_get_attachment_image_src($st_image, 'full'); $txt = ''; if ($st_type == "") { $txt = '<a href="#" class="hover-img"> <img title="" alt="" src="' . $img[0] . '"> </a>'; } if ($st_type == "icon") { $txt = '<a href="' . $url . '" class="hover-img"> <img title="" alt="" src="' . $img[0] . '"> <i class="fa ' . $st_class_icon . ' box-icon hover-icon' . $st_pos_layout . ' ' . $st_hover_hold . ' round"></i> </a>'; } if ($st_type == "icon-group") { $content = str_ireplace('<ul>', '', $content); $content = str_ireplace('</ul>', '', $content); $txt = '<div class="hover-img"> <img title="" alt="" src="' . $img[0] . '"> <ul class="hover-icon-group' . $st_pos_layout . ' ' . $st_hover_hold . '"> ' . st_remove_wpautop($content) . ' </ul> </div>'; } if ($st_type == "title") { $txt = '<a href="' . $url . '" class="hover-img"> <img title="" alt="" src="' . $img[0] . '"> <h5 class="hover-title' . $st_pos_layout . ' ' . $st_hover_hold . '">' . $st_title . '</h5> </a>'; } if ($st_type == "inner-full") { $txt = '<a href="' . $url . '" class="hover-img"> <img title="" alt="" src="' . $img[0] . '"> <div class="hover-inner">' . $st_title . '</div> </a>'; } if ($st_type == "inner-block") { $txt = '<a href="' . $url . '" class="hover-img"> <img title="" alt="" src="' . $img[0] . '"> <div class="hover-inner hover-hold">' . $st_title . '</div> </a>'; } return $txt; }
function st_vc_text_slide($attr, $content = false) { $data = shortcode_atts(array('st_title' => '', 'st_html_code' => '', 'st_background' => '', 'show_search' => 'yes'), $attr, 'st_text_slide'); extract($data); $bg_image = ''; foreach (explode(',', $st_background) as $k => $v) { $img = wp_get_attachment_image_src($v, 'full'); $bg_image .= '<div class="bg-holder full"> <div class="bg-mask"></div> <div class="bg-img" style="background-image:url(' . $img[0] . ');"></div> </div>'; } $html_search = ""; if ($show_search == "yes") { $html_search = '<div class="container"> ' . st()->load_template('vc-elements/st-search/search', 'form', array('st_style_search' => 'style_1', 'st_box_shadow' => 'no', 'class' => 'search-tabs-abs-bottom')) . ' </div>'; } $txt = '<div class="top-area show-onload"> <div class="bg-holder full"> <div class="bg-front full-height bg-front-mob-rel"> <div class="container full-height"> <div class="rel full-height div_tagline"> <div class="tagline visible-lg" id="tagline"> <span>' . $st_title . '</span> ' . st_remove_wpautop($st_html_code) . ' </div> ' . $html_search . ' </div> </div> </div> <div class="owl-carousel owl-slider owl-carousel-area visible-lg" id="owl-carousel-slider" data-nav="false"> ' . $bg_image . ' </div> </div> </div>'; return $txt; }
function st_vc_lightbox($attr, $content = false) { $data = shortcode_atts(array('st_type' => 'image', 'st_effect' => 'mfp-zoom-out', 'st_image' => '', 'st_link' => '', 'st_title' => '', 'st_icon' => 'fa-plus'), $attr, 'st_lightbox'); extract($data); $img = wp_get_attachment_image_src($st_image, 'full'); if ($st_type == "image") { $txt = '<a href="' . $img[0] . '" class="hover-img popup-image" data-effect="' . $st_effect . '" > <img title="" alt="" src="' . $img[0] . '"> <i class="fa ' . $st_icon . ' round box-icon-small hover-icon i round"></i> </a>'; } if ($st_type == "iframe") { $txt = '<a class="popup-iframe" data-effect="' . $st_effect . '" href="' . $st_link . '" inline_comment="lightbox">' . $st_title . '</a>'; } if ($st_type == "html") { $id = rand(); $txt = '<a class="popup-text" data-effect="' . $st_effect . '" href="#small-dialog-' . $id . '">' . $st_title . '</a> <div id="small-dialog-' . $id . '" class="mfp-with-anim mfp-dialog mfp-hide"> ' . st_remove_wpautop($content) . ' </div>'; } return $txt; }
protected function content($arg, $content = null) { global $st_title_tb; $st_title_tb = ""; global $i_tab; $i_tab = 0; global $id_rand; $id_rand = rand(); $content_data = st_remove_wpautop($content); $id = rand(); $r = '<div class="tabbable st_tab_' . esc_attr($id_rand) . '" style=""> <ul id="myTab' . $id . '" class="nav nav-tabs myTab"> ' . $st_title_tb . ' </ul> <div id="myTabContent' . $id . '" class="tab-content"> ' . $content_data . ' </div> </div>'; unset($st_title_tb); unset($id_rand); return $r; }
protected function content($arg, $content = null) { $content_data = st_remove_wpautop($content); return st()->load_template('vc-elements/st-location/location', 'header-static', $arg); }