Пример #1
0
<?php

$output = $width = $el_class = '';
extract(shortcode_atts(array('width' => '', 'el_class' => ''), $atts));
$el_class = porto_shortcode_extract_class($el_class);
$output = '<div class="porto-grid-item ' . $el_class . ($width ? '" style="width:' . esc_attr($width) : '') . '">';
$output .= do_shortcode($content);
$output .= '</div>' . porto_shortcode_end_block_comment('porto_grid_item') . "\n";
echo $output;
Пример #2
0
<?php

$output = $anchor = $container = $animation_type = $animation_duration = $animation_delay = $el_class = '';
extract(shortcode_atts(array('anchor' => '', 'container' => false, 'animation_type' => '', 'animation_duration' => '', 'animation_delay' => '', 'el_class' => ''), $atts));
$el_class = porto_shortcode_extract_class($el_class);
if ($animation_type) {
    $el_class .= ' appear-animation';
}
if ($container) {
    $el_class .= ' container';
}
$id = '';
if ($anchor) {
    $id = ' id="' . $anchor . '"';
}
$output = '<section' . $id . ' class="porto-section">';
$output .= '<div class="' . $el_class . '"';
if ($animation_type) {
    $output .= ' data-appear-animation="' . $animation_type . '"';
}
if ($animation_delay) {
    $output .= ' data-appear-animation-delay="' . $animation_delay . '"';
}
if ($animation_duration && $animation_duration != 1000) {
    $output .= ' data-appear-animation-duration="' . $animation_duration . '"';
}
$output .= '>';
$output .= do_shortcode($content);
$output .= '</div>';
$output .= '</section>' . porto_shortcode_end_block_comment('porto_section') . "\n";
echo $output;
Пример #3
0
    while ($posts->have_posts()) {
        $posts->the_post();
        get_template_part('content', 'archive-member');
    }
    ?>
        </div>

    </div>

    <?php 
    if ($view_more) {
        ?>
        <div class="push-top m-b-xxl text-center">
            <a class="button btn-small" href="<?php 
        echo get_post_type_archive_link('member');
        ?>
"><?php 
        _e("View More", "porto");
        ?>
</a>
        </div>
    <?php 
    }
    ?>

    <?php 
    $output .= ob_get_clean();
    $output .= '</div>' . porto_shortcode_end_block_comment('porto_members') . "\n";
    echo $output;
}
wp_reset_postdata();
Пример #4
0
if ($animation_type) {
    $output .= ' data-appear-animation="' . $animation_type . '"';
}
if ($animation_delay) {
    $output .= ' data-appear-animation-delay="' . $animation_delay . '"';
}
if ($animation_duration && $animation_duration != 1000) {
    $output .= ' data-appear-animation-duration="' . $animation_duration . '"';
}
$output .= '>';
if (!$image_url && $image) {
    $img_id = preg_replace('/[^\\d]/', '', $image);
    $img = porto_shortcode_get_image_by_size(array('attach_id' => $img_id, 'thumb_size' => '145x145'));
    if ($img) {
        $output .= '<div class="thumb">' . $img['thumbnail'] . '</div>';
    }
} else {
    if ($image_url) {
        $output .= '<div class="thumb"><img alt="' . $year . '" src="' . $image_url . '"></div>';
    }
}
$output .= '<div class="featured-box"><div class="box-content">';
if ($year) {
    $output .= '<h4><strong>' . $year . '</strong></h4>';
}
if ($history) {
    $output .= porto_shortcode_js_remove_wpautop($history, true);
}
$output .= '</div></div>';
$output .= '</div>' . porto_shortcode_end_block_comment('porto_history');
echo $output;
Пример #5
0
    ?>
" alt="" />
                                <?php 
    if ($slide_link3) {
        ?>
</a><?php 
    }
    ?>
                            </li>
                        <?php 
}
?>
                    </ul>
                </div>
                <?php 
if ($title4) {
    ?>
<strong class="our-work"><?php 
    echo $title4;
    ?>
</strong><?php 
}
?>
            </div>
        </div>
    </div>
</div>
<?php 
$output .= ob_get_clean();
$output .= '</div>' . porto_shortcode_end_block_comment('porto_concept') . "\n";
echo $output;
<?php

$output = $title = $number = $show = $orderby = $order = $hide_free = $show_hidden = $animation_type = $animation_duration = $animation_delay = $el_class = '';
extract(shortcode_atts(array('title' => __('Products', 'woocommerce'), 'number' => 5, 'show' => '', 'orderby' => 'date', 'order' => 'desc', 'hide_free' => 0, 'show_hidden' => 0, 'animation_type' => '', 'animation_duration' => '', 'animation_delay' => '', 'el_class' => ''), $atts));
$atts['show'] = $show;
$el_class = porto_shortcode_extract_class($el_class);
if ($animation_type) {
    $el_class .= ' appear-animation';
}
$output = '<div class="vc_widget_woo_products wpb_content_element' . $el_class . '"';
if ($animation_type) {
    $output .= ' data-appear-animation="' . $animation_type . '"';
}
if ($animation_delay) {
    $output .= ' data-appear-animation-delay="' . $animation_delay . '"';
}
if ($animation_duration && $animation_duration != 1000) {
    $output .= ' data-appear-animation-duration="' . $animation_duration . '"';
}
$output .= '>';
$type = 'WC_Widget_Products';
$args = array('widget_id' => 'woocommerce_products_' . $show . '_' . $number . '_' . $orderby . '_' . $order . '_' . $hide_free . '_' . $show_hidden);
ob_start();
the_widget($type, $atts, $args);
$output .= ob_get_clean();
$output .= '</div>' . porto_shortcode_end_block_comment('porto_widget_woo_products') . "\n";
echo $output;
Пример #7
0
    $el_class .= ' ' . $sc_class;
    ?>
    <style type="text/css" data-type="vc_shortcodes-custom-css">
        .<?php 
    echo $sc_class;
    ?>
 blockquote { border-color: <?php 
    echo $color;
    ?>
; }
    </style><?php 
}
$output = '<div class="porto-blockquote wpb_content_element ' . $el_class . '"';
if ($animation_type) {
    $output .= ' data-appear-animation="' . $animation_type . '"';
}
if ($animation_delay) {
    $output .= ' data-appear-animation-delay="' . $animation_delay . '"';
}
if ($animation_duration && $animation_duration != 1000) {
    $output .= ' data-appear-animation-duration="' . $animation_duration . '"';
}
$output .= '>';
$output .= '<blockquote class="' . $view . ' ' . $dir . ' ' . (!$view && $skin != 'custom' ? 'blockquote-' . $skin : '') . '">';
$output .= '<p>' . do_shortcode($content) . '</p>';
if ($footer_before || $footer_after) {
    $output .= '<footer>' . $footer_before . ' <cite title="' . $footer_after . '">' . $footer_after . '</cite></footer>';
}
$output .= '</blockquote>';
$output .= '</div>' . porto_shortcode_end_block_comment('porto_blockquote') . "\n";
echo $output;
}
if ($animation_delay) {
    $output .= ' data-appear-animation-delay="' . $animation_delay . '"';
}
if ($animation_duration && $animation_duration != 1000) {
    $output .= ' data-appear-animation-duration="' . $animation_duration . '"';
}
$output .= '>';
if ($title) {
    if ($view == 'products-slider') {
        $output .= '<h2 class="slider-title"><span class="inline-title">' . $title . '</span><span class="line"></span></h2>';
    } else {
        $output .= '<h2 class="section-title">' . $title . '</h2>';
    }
}
if ($view == 'products-slider') {
    $output .= '<div class="slider-wrapper">';
}
global $woocommerce_loop;
$woocommerce_loop['view'] = $view;
$woocommerce_loop['columns'] = $columns;
$woocommerce_loop['column_width'] = $column_width;
$woocommerce_loop['pagination'] = $pagination;
$woocommerce_loop['navigation'] = $navigation;
$woocommerce_loop['addlinks_pos'] = $addlinks_pos;
$output .= do_shortcode('[product_categories number="' . $number . '" columns="' . $columns . '" orderby="' . $orderby . '" order="' . $order . '" hide_empty="' . $hide_empty . '" parent="' . $parent . '" ids="' . $ids . '"]');
if ($view == 'products-slider') {
    $output .= '</div>';
}
$output .= '</div>' . porto_shortcode_end_block_comment('porto_product_categories') . "\n";
echo $output;
<?php

$output = $animation_type = $animation_duration = $animation_delay = $el_class = '';
extract(shortcode_atts(array('animation_type' => '', 'animation_duration' => '', 'animation_delay' => '', 'el_class' => ''), $atts));
$el_class = porto_shortcode_extract_class($el_class);
if ($animation_type) {
    $el_class .= ' appear-animation';
}
$output = '<div class="porto-animation ' . $el_class . '"';
if ($animation_type) {
    $output .= ' data-appear-animation="' . $animation_type . '"';
}
if ($animation_delay) {
    $output .= ' data-appear-animation-delay="' . $animation_delay . '"';
}
if ($animation_duration && $animation_duration != 1000) {
    $output .= ' data-appear-animation-duration="' . $animation_duration . '"';
}
$output .= '>';
$output .= do_shortcode($content);
$output .= '</div>' . porto_shortcode_end_block_comment('porto_animation') . "\n";
echo $output;
}
if ($animation_delay) {
    $output .= ' data-appear-animation-delay="' . $animation_delay . '"';
}
if ($animation_duration && $animation_duration != 1000) {
    $output .= ' data-appear-animation-duration="' . $animation_duration . '"';
}
$output .= '>';
if ($title) {
    if ($view == 'products-slider') {
        $output .= '<h2 class="slider-title"><span class="inline-title">' . $title . '</span><span class="line"></span></h2>';
    } else {
        $output .= '<h2 class="section-title">' . $title . '</h2>';
    }
}
if ($view == 'products-slider') {
    $output .= '<div class="slider-wrapper">';
}
global $woocommerce_loop;
$woocommerce_loop['view'] = $view;
$woocommerce_loop['columns'] = $columns;
$woocommerce_loop['column_width'] = $column_width;
$woocommerce_loop['pagination'] = $pagination;
$woocommerce_loop['navigation'] = $navigation;
$woocommerce_loop['addlinks_pos'] = $addlinks_pos;
$output .= do_shortcode('[best_selling_products per_page="' . $per_page . '" columns="' . $columns . '"]');
if ($view == 'products-slider') {
    $output .= '</div>';
}
$output .= '</div>' . porto_shortcode_end_block_comment('porto_best_selling_products') . "\n";
echo $output;
Пример #11
0
        $output .= '<blockquote class="testimonial-simple center"><p><i class="fa fa-quote-' . (is_rtl() ? 'right' : 'left') . '"></i> ' . do_shortcode($quote) . '</p>';
        if ($author_url) {
            $output .= '<a href="' . esc_url($author_url) . '">';
        }
        $output .= '<span>- ' . $name . '</span>';
        if ($author_url) {
            $output .= '</a>';
        }
        $output .= '</blockquote>';
    } else {
        $output .= '<blockquote class="testimonial">';
        $output .= '<p>' . do_shortcode($quote) . '</p>';
        $output .= '</blockquote><div class="testimonial-arrow-down"></div>';
        $output .= '<div class="testimonial-author clearfix">';
        if ($photo_url) {
            $output .= '<div class="img-thumbnail img-thumbnail-small"><img src="' . esc_url($photo_url) . '" alt="' . $name . '"></div>';
        }
        $output .= '<p>';
        if ($author_url) {
            $output .= '<a href="' . esc_url($author_url) . '">';
        }
        $output .= '<strong>' . $name . '</strong>';
        if ($author_url) {
            $output .= '</a>';
        }
        $output .= '<span>' . $role . ($role && $company ? ' - ' : '') . $company . '</span></p>';
        $output .= '</div>';
    }
}
$output .= '</div>' . porto_shortcode_end_block_comment('porto_testimonial') . "\n";
echo $output;
Пример #12
0
if ($type == 'btn') {
    $btn_class = 'btn';
    if ($btn_size) {
        $btn_class .= ' btn-' . $btn_size;
    }
    if ($btn_skin != 'custom') {
        $btn_class .= ' btn-' . $btn_skin;
    }
    if ($btn_context) {
        $btn_class .= ' btn-' . $btn_context;
    }
    if ($btn_skin == 'custom' && !$btn_context) {
        $btn_class .= ' btn-default';
    }
    if ($type == 'btn') {
        $output .= ' <button type="button" data-toggle="popover" title="' . $popover_title . '" data-content="' . $popover_text . '" data-placement="' . $popover_position . '" class="' . $btn_class . '" data-trigger="' . $popover_trigger . '">';
        $output .= $text;
        $output .= '</button> ';
    } else {
        $output .= ' <a href="' . ($link ? $link : 'javascript:;') . '" data-toggle="popover" title="' . $popover_title . '" data-content="' . $popover_text . '" data-placement="' . $popover_position . '" class="' . $btn_class . '" data-trigger="' . $popover_trigger . '">';
        $output .= $text;
        $output .= '</a> ';
    }
} else {
    $output .= ' <a href="' . ($link ? $link : 'javascript:;') . '" data-toggle="popover" title="' . $popover_title . '" data-content="' . $popover_text . '" data-placement="' . $popover_position . '" data-trigger="' . $popover_trigger . '">';
    $output .= $text;
    $output .= '</a> ';
}
$output .= $suffix;
$output .= '</div>' . porto_shortcode_end_block_comment('porto_popover') . "\n";
echo $output;
}
if ($animation_delay) {
    $output .= ' data-appear-animation-delay="' . $animation_delay . '"';
}
if ($animation_duration && $animation_duration != 1000) {
    $output .= ' data-appear-animation-duration="' . $animation_duration . '"';
}
$output .= '>';
if ($title) {
    if ($view == 'products-slider') {
        $output .= '<h2 class="slider-title"><span class="inline-title">' . $title . '</span><span class="line"></span></h2>';
    } else {
        $output .= '<h2 class="section-title">' . $title . '</h2>';
    }
}
if ($view == 'products-slider') {
    $output .= '<div class="slider-wrapper">';
}
global $woocommerce_loop;
$woocommerce_loop['view'] = $view;
$woocommerce_loop['columns'] = $columns;
$woocommerce_loop['column_width'] = $column_width;
$woocommerce_loop['pagination'] = $pagination;
$woocommerce_loop['navigation'] = $navigation;
$woocommerce_loop['addlinks_pos'] = $addlinks_pos;
$output .= do_shortcode('[product_attribute per_page="' . $per_page . '" columns="' . $columns . '" orderby="' . $orderby . '" order="' . $order . '" attribute="' . $attribute . '" filter="' . $filter . '"]');
if ($view == 'products-slider') {
    $output .= '</div>';
}
$output .= '</div>' . porto_shortcode_end_block_comment('porto_product_attribute') . "\n";
echo $output;
<?php

$output = $label = $link = $icon = $el_class = '';
extract(shortcode_atts(array('label' => '', 'link' => '', 'icon' => '', 'el_class' => ''), $atts));
$el_class = porto_shortcode_extract_class($el_class);
if ($label) {
    $output = '<li class="porto-links-item ' . $el_class . '">';
    if ($link) {
        $output .= '<a href="' . esc_attr($link) . '">';
    } else {
        $output .= '<span>';
    }
    $output .= ($icon ? '<i class="fa fa-' . str_replace('fa-', '', $icon) . '"></i>' : '') . $label;
    if ($link) {
        $output .= '</a>';
    } else {
        $output .= '</span>';
    }
    $output .= '</li>' . porto_shortcode_end_block_comment('porto_links_item') . "\n";
}
echo $output;
Пример #15
0
if ($type == 'btn' || $type == 'btn-link') {
    $btn_class = 'btn';
    if ($btn_size) {
        $btn_class .= ' btn-' . $btn_size;
    }
    if ($btn_skin != 'custom') {
        $btn_class .= ' btn-' . $btn_skin;
    }
    if ($btn_context) {
        $btn_class .= ' btn-' . $btn_context;
    }
    if ($btn_skin == 'custom' && !$btn_context) {
        $btn_class .= ' btn-default';
    }
    if ($type == 'btn') {
        $output .= ' <button type="button" data-toggle="tooltip" title="' . $tooltip_text . '" data-placement="' . $tooltip_position . '" class="' . $btn_class . '">';
        $output .= $text;
        $output .= '</button> ';
    } else {
        $output .= ' <a href="' . ($link ? $link : 'javascript:;') . '" data-toggle="tooltip" title="' . $tooltip_text . '" data-placement="' . $tooltip_position . '" class="' . $btn_class . '">';
        $output .= $text;
        $output .= '</a> ';
    }
} else {
    $output .= ' <a href="' . ($link ? $link : 'javascript:;') . '" data-toggle="tooltip" title="' . $tooltip_text . '" data-placement="' . $tooltip_position . '">';
    $output .= $text;
    $output .= '</a> ';
}
$output .= $suffix;
$output .= '</div>' . porto_shortcode_end_block_comment('porto_tooltip') . "\n";
echo $output;
<?php

$output = $title = $number = $animation_type = $animation_duration = $animation_delay = $el_class = '';
extract(shortcode_atts(array('title' => '', 'number' => 5, 'animation_type' => '', 'animation_duration' => '', 'animation_delay' => '', 'el_class' => ''), $atts));
$el_class = porto_shortcode_extract_class($el_class);
if ($animation_type) {
    $el_class .= ' appear-animation';
}
$output = '<div class="vc_widget_woo_recently_viewed_products wpb_content_element' . $el_class . '"';
if ($animation_type) {
    $output .= ' data-appear-animation="' . $animation_type . '"';
}
if ($animation_delay) {
    $output .= ' data-appear-animation-delay="' . $animation_delay . '"';
}
if ($animation_duration && $animation_duration != 1000) {
    $output .= ' data-appear-animation-duration="' . $animation_duration . '"';
}
$output .= '>';
$type = 'WC_Widget_Recently_Viewed';
$args = array('widget_id' => 'woocommerce_recently_viewed_products_' . $number);
ob_start();
the_widget($type, $atts, $args);
$output .= ob_get_clean();
$output .= '</div>' . porto_shortcode_end_block_comment('porto_widget_woo_recently_viewed') . "\n";
echo $output;
<?php

$output = $title = $icon = $animation_type = $animation_duration = $animation_delay = $el_class = '';
extract(shortcode_atts(array('title' => '', 'icon' => '', 'animation_type' => '', 'animation_duration' => '', 'animation_delay' => '', 'el_class' => ''), $atts));
$el_class = porto_shortcode_extract_class($el_class);
if ($animation_type) {
    $el_class .= ' appear-animation';
}
$output = '<div class="porto-links-block wpb_content_element ' . $el_class . '"';
if ($animation_type) {
    $output .= ' data-appear-animation="' . $animation_type . '"';
}
if ($animation_delay) {
    $output .= ' data-appear-animation-delay="' . $animation_delay . '"';
}
if ($animation_duration && $animation_duration != 1000) {
    $output .= ' data-appear-animation-duration="' . $animation_duration . '"';
}
$output .= '>';
if ($title) {
    $output .= '<div class="links-title">' . ($icon ? '<i class="fa fa-' . str_replace('fa-', '', $icon) . '"></i>' : '') . $title . '</div>';
}
$output .= '<div class="links-content"><ul>' . do_shortcode($content) . '</ul></div>';
$output .= '</div>' . porto_shortcode_end_block_comment('porto_links_block') . "\n";
echo $output;
}
if ($animation_delay) {
    $output .= ' data-appear-animation-delay="' . $animation_delay . '"';
}
if ($animation_duration && $animation_duration != 1000) {
    $output .= ' data-appear-animation-duration="' . $animation_duration . '"';
}
$output .= '>';
if ($title) {
    if ($view == 'products-slider') {
        $output .= '<h2 class="slider-title"><span class="inline-title">' . $title . '</span><span class="line"></span></h2>';
    } else {
        $output .= '<h2 class="section-title">' . $title . '</h2>';
    }
}
if ($view == 'products-slider') {
    $output .= '<div class="slider-wrapper">';
}
global $woocommerce_loop;
$woocommerce_loop['view'] = $view;
$woocommerce_loop['columns'] = $columns;
$woocommerce_loop['column_width'] = $column_width;
$woocommerce_loop['pagination'] = $pagination;
$woocommerce_loop['navigation'] = $navigation;
$woocommerce_loop['addlinks_pos'] = $addlinks_pos;
$output .= do_shortcode('[top_rated_products per_page="' . $per_page . '" columns="' . $columns . '" orderby="' . $orderby . '" order="' . $order . '"]');
if ($view == 'products-slider') {
    $output .= '</div>';
}
$output .= '</div>' . porto_shortcode_end_block_comment('porto_top_rated_products') . "\n";
echo $output;
Пример #19
0
}
if ($animation_delay) {
    $output .= ' data-appear-animation-delay="' . $animation_delay . '"';
}
if ($animation_duration && $animation_duration != 1000) {
    $output .= ' data-appear-animation-duration="' . $animation_duration . '"';
}
$output .= '>';
if ($title) {
    if ($view == 'products-slider') {
        $output .= '<h2 class="slider-title"><span class="inline-title">' . $title . '</span><span class="line"></span></h2>';
    } else {
        $output .= '<h2 class="section-title">' . $title . '</h2>';
    }
}
if ($view == 'products-slider') {
    $output .= '<div class="slider-wrapper">';
}
global $woocommerce_loop;
$woocommerce_loop['view'] = $view;
$woocommerce_loop['columns'] = $columns;
$woocommerce_loop['column_width'] = $column_width;
$woocommerce_loop['pagination'] = $pagination;
$woocommerce_loop['navigation'] = $navigation;
$woocommerce_loop['addlinks_pos'] = $addlinks_pos;
$output .= do_shortcode('[recent_products per_page="' . $per_page . '" columns="' . $columns . '" orderby="' . $orderby . '" order="' . $order . '"]');
if ($view == 'products-slider') {
    $output .= '</div>';
}
$output .= '</div>' . porto_shortcode_end_block_comment('porto_recent_products') . "\n";
echo $output;
                    var $grid = $("#grid-' . $rand . '");
                    if (typeof $grid.imagesLoaded !== "undefined") {
                        $grid.imagesLoaded(function() {
                            $grid.packery({
                                itemSelector: ".porto-grid-item",
                                columnWidth: ".grid-sizer",
                                gutter: ".gutter-sizer"
                            });
                        });
                    }
                })
                /* ]]> */
            </script>
            <style type="text/css">
                @media (max-width:' . $max_width . ') {
                    #grid-' . $rand . ' {
                        height: auto !important;
                    }
                    #grid-' . $rand . ' .porto-grid-item:first-child {
                        margin-top: 0;
                    }
                    #grid-' . $rand . ' .porto-grid-item {
                        width: 100% !important;
                        position: static !important;
                        float: none;
                        margin-top: ' . $gutter_size . ';
                    }
                }
            </style>';
$output .= '</div>' . porto_shortcode_end_block_comment('porto_grid_container') . "\n";
echo $output;