本文整理汇总了PHP中WPBakeryShortCode::endBlockComment方法的典型用法代码示例。如果您正苦于以下问题:PHP WPBakeryShortCode::endBlockComment方法的具体用法?PHP WPBakeryShortCode::endBlockComment怎么用?PHP WPBakeryShortCode::endBlockComment使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WPBakeryShortCode
的用法示例。
在下文中一共展示了WPBakeryShortCode::endBlockComment方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: etheme_teaser
//.........这里部分代码省略.........
}
} else {
if ($grid_layout == 'thumbnail_title') {
if ($thumbnail) {
$to_filter = '<div class="post-thumb">' . $link_image_start . $thumbnail . $link_image_end . '</div>';
$teasers .= apply_filters('vc_teaser_grid_thumbnail', $to_filter, array("grid_layout" => $grid_layout, "ID" => $post_id, "thumbnail" => $thumbnail, "media_link" => $p_link));
}
if ($post_title) {
$to_filter = '<h4 class="teaser-post-info post-title">' . $link_title_start . $post_title . $link_title_end . '</h2>';
$teasers .= apply_filters('vc_teaser_grid_title', $to_filter, array("grid_layout" => $grid_layout, "ID" => $post_id, "title" => $post_title, "media_link" => $p_link));
}
} else {
if ($grid_layout == 'thumbnail') {
if ($thumbnail) {
$to_filter = '<div class="post-thumb">' . $link_image_start . $thumbnail . $link_image_end . '</div>';
$teasers .= apply_filters('vc_teaser_grid_thumbnail', $to_filter, array("grid_layout" => $grid_layout, "ID" => $post_id, "thumbnail" => $thumbnail, "media_link" => $p_link));
}
} else {
if ($grid_layout == 'title_text') {
if ($post_title) {
$to_filter = '<h4 class="post-title">' . $link_title_start . $post_title . $link_title_end . '</h2>';
$teasers .= apply_filters('vc_teaser_grid_title', $to_filter, array("grid_layout" => $grid_layout, "ID" => $post_id, "title" => $post_title, "media_link" => $p_link));
}
if ($content) {
$to_filter = '<div class="entry-content">' . $content . '</div>';
$teasers .= apply_filters('vc_teaser_grid_content', $to_filter, array("grid_layout" => $grid_layout, "ID" => $post_id, "content" => $content, "media_link" => $p_link));
}
}
}
}
}
}
}
$teasers .= '</div> ' . WPBakeryShortCode::endBlockComment('single teaser');
}
// endwhile loop
wp_reset_query();
if ($grid_template == 'filtered_grid' && $teasers && !empty($teaser_categories)) {
/*
$categories_list = wp_list_categories(array(
'orderby' => 'name',
'walker' => new Teaser_Grid_Category_Walker(),
'include' => implode(',', $teaser_categories),
'show_option_none' => __('No categories', 'js_composer'),
'echo' => false
));
*/
$categories_array = get_terms($taxonomies, array('orderby' => 'name', 'include' => implode(',', $teaser_categories)));
$categories_list_output = '<ul class="et_categories_filter clearfix">';
$categories_list_output .= '<li class="active"><a href="#" data-filter="*" class="button active">' . __('All', 'js_composer') . '</a></li>';
if (!is_wp_error($categories_array)) {
foreach ($categories_array as $cat) {
$categories_list_output .= '<li><a href="#" data-filter=".grid-cat-' . $cat->term_id . '" class="button">' . esc_attr($cat->name) . '</a></li>';
}
}
$categories_list_output .= '</ul><div class="clearfix"></div>';
} else {
$categories_list_output = '';
}
$box_id = rand(1000, 10000);
if ($grid_template == 'grid' || $grid_template == 'filtered_grid') {
$isotope_class = 'et_isotope';
} else {
$isotope_class = 'teaser-carousel-' . $box_id;
}
if ($teasers) {