当前位置: 首页>>代码示例>>PHP>>正文


PHP porto_shortcode_end_block_comment函数代码示例

本文整理汇总了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;
开发者ID:rinodung,项目名称:live-theme,代码行数:9,代码来源:porto_grid_item.php

示例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;
开发者ID:prosenjit-itobuz,项目名称:Unitee,代码行数:31,代码来源:porto_section.php

示例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();
开发者ID:rinodung,项目名称:live-theme,代码行数:31,代码来源:porto_members.php

示例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;
开发者ID:alikagitci,项目名称:honda.yedekleri,代码行数:31,代码来源:porto_history.php

示例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;
开发者ID:prosenjit-itobuz,项目名称:Unitee,代码行数:31,代码来源:porto_concept.php

示例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;
开发者ID:rinodung,项目名称:live-theme,代码行数:27,代码来源:porto_widget_woo_products.php

示例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;
开发者ID:prosenjit-itobuz,项目名称:Unitee,代码行数:31,代码来源:porto_blockquote.php

示例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;
开发者ID:alikagitci,项目名称:honda.yedekleri,代码行数:31,代码来源:porto_product_categories.php

示例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;
开发者ID:alikagitci,项目名称:honda.yedekleri,代码行数:22,代码来源:porto_animation.php

示例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;
开发者ID:alikagitci,项目名称:honda.yedekleri,代码行数:31,代码来源:porto_best_selling_products.php

示例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;
开发者ID:rinodung,项目名称:live-theme,代码行数:31,代码来源:porto_testimonial.php

示例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;
开发者ID:prosenjit-itobuz,项目名称:Unitee,代码行数:31,代码来源:porto_popover.php

示例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;
开发者ID:rinodung,项目名称:live-theme,代码行数:31,代码来源:porto_product_attribute.php

示例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;
开发者ID:alikagitci,项目名称:honda.yedekleri,代码行数:21,代码来源:porto_links_item.php

示例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;
开发者ID:prosenjit-itobuz,项目名称:Unitee,代码行数:31,代码来源:porto_tooltip.php


注:本文中的porto_shortcode_end_block_comment函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。