本文整理汇总了PHP中porto_shortcode_end_block_comment函数的典型用法代码示例。如果您正苦于以下问题:PHP porto_shortcode_end_block_comment函数的具体用法?PHP porto_shortcode_end_block_comment怎么用?PHP porto_shortcode_end_block_comment使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了porto_shortcode_end_block_comment函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: extract
<?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: extract
<?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: while
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: preg_replace
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: ob_get_clean
?>
" 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;
示例6: extract
<?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: do_shortcode
$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;
示例8: do_shortcode
}
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;
示例9: extract
<?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;
示例10: do_shortcode
}
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: do_shortcode
$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: porto_shortcode_end_block_comment
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;
示例13: do_shortcode
}
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;
示例14: extract
<?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: porto_shortcode_end_block_comment
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;