<?php extract(shortcode_atts(array('count' => '', 'columns' => '', 'filter' => 'true', 'el_class' => '', 'css_animation' => '', 'pagination' => 'true', 'category' => ''), $atts)); if (!class_exists('VP_Portfolio')) { return null; } // generate unique id $uid = willow_generate_id('pf-'); wp_enqueue_script('isotope'); wp_enqueue_script('jquery-magnific-popup'); global $wp_query, $paged, $page; $temp = $wp_query; // discover current page number if (get_query_var('paged')) { $paged = get_query_var('paged'); } elseif (get_query_var('page')) { $paged = get_query_var('page'); } else { $paged = 1; } $wp_query = new WP_Query(array_merge(array('post_type' => 'portfolio', 'posts_per_page' => $count, 'ignore_sticky_posts' => 1, 'paged' => max($paged, $page)), empty($category) ? array() : array('tax_query' => array('relation' => 'AND', array('taxonomy' => 'portfolio_category', 'field' => 'slug', 'terms' => explode(',', $category), 'operator' => 'IN'))))); // get selected categorie id's $cats = empty($category) ? array() : explode(',', $category); $all_categories = array(); foreach ($cats as $cat) { $term = get_term_by('slug', $cat, 'portfolio_category'); $all_categories[] = $term->term_id; } $el_class = $this->getExtraClass($el_class); $css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'wpb_willow_portfolio_grid wpb_content_element js-isotope-grid ' . $el_class, $this->settings['base']); ?>
$output = $el_class = $bg_images = $bg_color = $bg_image_repeat = $font_color = $padding = $margin_bottom = ''; extract(shortcode_atts(array('el_class' => '', 'bg_mode' => 'images', 'gmap_lat_lng' => '-7.9812985, 112.6319264', 'gmap_zoom' => '2', 'gmap_marker_lat_lng' => '-7.9812985, 112.6319264', 'gmap_style_json' => '', 'bg_images' => '', 'bg_color' => '', 'bg_image_repeat' => '', 'font_color' => '', 'padding' => '', 'margin_bottom' => '', 'css' => '', 'id' => '', 'separator' => 'none', 'parallax' => 'false', 'bg_overlay' => ''), $atts)); wp_enqueue_style('js_composer_front'); wp_enqueue_script('wpb_composer_front_js'); wp_enqueue_style('js_composer_custom_css'); $bg_images = explode(',', $bg_images); $el_class = $this->getExtraClass($el_class); $css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'wpb_row ' . get_row_css_class(), $this->settings['base']); $style = $this->buildStyle('', $bg_color, '', $font_color, $padding, $margin_bottom); if ($this->settings['base'] == 'vc_row') { ?> <?php if (empty($id)) { $id = willow_generate_id('section-'); } ?> <section id="<?php echo $id; ?> " class="<?php echo $el_class . vc_shortcode_custom_css_class($css, ' ') . ' content-section section vc-section separator-' . $separator; ?> "<?php echo $style; ?> > <div class="section-anchor section-top-anchor" data-anchor="top" data-section="#<?php
<?php extract(shortcode_atts(array('caption' => '', 'start' => 0, 'end' => 100, 'icon' => '', 'prefix' => '', 'suffix' => '', 'decimals' => 0, 'el_class' => '', 'css_animation' => ''), $atts)); $start = floatval($start); $end = floatval($end); $decimals = absint($decimals); wp_enqueue_script('countup'); $id = willow_generate_id('counter-'); $el_class = $this->getExtraClass($el_class); $css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'wpb_willow_counter wpb_content_element text-center ' . $el_class, $this->settings['base']); ?> <div class="<?php echo $css_class; ?> js-countup" data-counter="<?php echo $id; ?> " data-start="<?php echo $start; ?> " data-end="<?php echo $end; ?> " data-decimals="<?php echo $decimals; ?> "> <div class="wpb_wrapper"> <?php if (!empty($icon)) {
echo $slide_content; ?> </li> <?php } elseif ($media == 'video') { ?> <?php $video_source = willow_hero_slide_option('video_source', null, $slide_id); $video_source_webm = willow_hero_slide_option('video_source_webm', null, $slide_id); $video_source_ogg = willow_hero_slide_option('video_source_ogg', null, $slide_id); $video_poster = willow_hero_slide_option('video_poster', null, $slide_id); $video_ratio = willow_hero_slide_option('video_ratio', '16:9', $slide_id); $video_mute = willow_hero_slide_option('video_mute', false, $slide_id); $video_id = willow_generate_id('video-background-'); $has_video = true; ?> <?php if (Mobile_Detect::is_mobile_or_tablet()) { ?> <li class="<?php echo $enable_parallax ? 'parallax-background js-parallax' : ''; ?> <?php echo "{$color_scheme}-scheme hero-slide-{$text_style}"; ?> " style="background-image: url(<?php echo $video_poster; ?>