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


PHP WPBakeryShortCode::endBlockComment方法代码示例

本文整理汇总了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) {
开发者ID:EmmaTope,项目名称:gadafunds,代码行数:67,代码来源:theme-functions.php


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