本文整理汇总了PHP中gdlr_content_filter函数的典型用法代码示例。如果您正苦于以下问题:PHP gdlr_content_filter函数的具体用法?PHP gdlr_content_filter怎么用?PHP gdlr_content_filter使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了gdlr_content_filter函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: get_permalink
</h1>
<?php
} else {
?>
<h3 class="gdlr-blog-title"><a href="<?php
echo get_permalink();
?>
"><?php
the_title();
?>
</a></h3>
<?php
}
?>
<div class="clear"></div>
</header><!-- entry-header -->
<?php
if ($gdlr_post_settings['excerpt'] < 0) {
echo '<div class="gdlr-blog-content">';
echo gdlr_content_filter($gdlr_post_settings['content'], true);
wp_link_pages(array('before' => '<div class="page-links"><span class="page-links-title">' . __('Pages:', 'gdlr_translate') . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>'));
echo '</div>';
} else {
if ($gdlr_post_settings['excerpt'] != 0) {
echo '<div class="gdlr-blog-content">' . get_the_excerpt() . '</div>';
}
}
?>
</div>
</article><!-- #post -->
开发者ID:refazul-refat,项目名称:bcc,代码行数:31,代码来源:content-grid.php
示例2: gdlr_get_blog_info
if (is_single()) {
echo gdlr_get_blog_info(array('author', 'date', 'category', 'comment'));
}
// blog title
$blog_link = empty($post_format_data) ? get_the_title() : $post_format_data;
if (is_single()) {
echo '<h1 class="gdlr-blog-title"><a href="' . $blog_link . '" >' . get_the_title() . '</a></h1>';
} else {
echo '<h3 class="gdlr-blog-title"><a href="' . $blog_link . '" >' . get_the_title() . '</a></h3>';
}
// print blog information for widget style
if (!is_single() && !empty($gdlr_post_settings['blog-info-widget'])) {
echo gdlr_get_blog_info($gdlr_post_settings['blog-info']);
}
?>
<div class="clear"></div>
</header>
<?php
if (is_single() || $gdlr_post_settings['excerpt'] < 0) {
echo '<div class="gdlr-blog-content">';
echo gdlr_content_filter($content, true);
wp_link_pages(array('before' => '<div class="page-links"><span class="page-links-title">' . __('Pages:', 'gdlr_translate') . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>'));
echo '</div>';
} else {
if ($gdlr_post_settings['excerpt'] > 0) {
echo '<div class="gdlr-blog-content">' . get_the_excerpt() . '</div>';
}
}
?>
</article>
开发者ID:hoa32811,项目名称:wp_thanhtrung_hotel,代码行数:31,代码来源:content-link.php
示例3: gdlr_get_carousel_personnel_item
function gdlr_get_carousel_personnel_item($settings)
{
$item_id = empty($settings['page-item-id']) ? '' : ' id="' . $settings['page-item-id'] . '" ';
global $gdlr_spaces;
$margin = !empty($settings['margin-bottom']) && $settings['margin-bottom'] != $gdlr_spaces['bottom-item'] ? 'margin-bottom: ' . $settings['margin-bottom'] . ';' : '';
$margin_style = !empty($margin) ? ' style="' . $margin . '" ' : '';
$settings['personnel'] = empty($settings['personnel']) ? array() : $settings['personnel'];
$list = is_array($settings['personnel']) ? $settings['personnel'] : json_decode($settings['personnel'], true);
$ret = '<div class="gdlr-personnel-item-wrapper" ' . $item_id . $margin_style . '>';
$settings['title-type'] = empty($settings['title-type']) ? 'none' : $settings['title-type'];
$settings['title'] = empty($settings['title']) ? '' : $settings['title'];
$settings['caption'] = empty($settings['caption']) ? '' : $settings['caption'];
$settings['icon'] = empty($settings['icon']) ? '' : $settings['icon'];
$ret .= gdlr_get_item_title(array('title' => $settings['title'], 'caption' => $settings['caption'], 'icon' => $settings['icon'], 'type' => $settings['title-type'], 'carousel' => true, 'additional_class' => 'gdlr-nav-container'));
$ret .= '<div class="gdlr-item gdlr-personnel-item carousel ' . $settings['personnel-style'] . '">';
$ret .= '<div class="gdlr-ux gdlr-personnel-ux">';
$ret .= '<div class="flexslider" data-type="carousel" data-nav-container="gdlr-personnel-item" ';
$ret .= 'data-columns="' . $settings['personnel-columns'] . '" >';
$ret .= '<ul class="slides" >';
foreach ($list as $tab) {
$ret .= '<li class="personnel-item">';
if ($settings['personnel-style'] == 'round-style') {
$ret .= '<div class="personnel-author-image" >';
$ret .= gdlr_get_image($tab['gdl-tab-author-image'], $settings['thumbnail-size']);
$ret .= '</div>';
}
if ($settings['personnel-style'] != 'plain-style') {
// hide this in plain style
$ret .= '<div class="personnel-item-inner gdlr-skin-box">';
}
if ($settings['personnel-style'] != 'round-style') {
$ret .= '<div class="personnel-author-image gdlr-skin-border" >';
$ret .= gdlr_get_image($tab['gdl-tab-author-image'], $settings['thumbnail-size']);
$ret .= '</div>';
}
$ret .= '<div class="personnel-info">';
if (!empty($tab['gdl-tab-title'])) {
$ret .= '<div class="personnel-author gdlr-skin-title">' . gdlr_text_filter($tab['gdl-tab-title']) . '</div>';
}
if (!empty($tab['gdl-tab-position'])) {
$ret .= '<div class="personnel-position gdlr-skin-info">' . gdlr_text_filter($tab['gdl-tab-position']) . '</div>';
}
$ret .= '</div>';
// personnel-info
$ret .= '<div class="personnel-content gdlr-skin-content">' . gdlr_content_filter($tab['gdl-tab-content']) . '</div>';
if (!empty($tab['gdl-tab-social-list'])) {
$ret .= '<div class="personnel-social">';
$ret .= gdlr_text_filter($tab['gdl-tab-social-list']);
$ret .= '</div>';
}
if ($settings['personnel-style'] != 'plain-style') {
// hide this in plain style
$ret .= '</div>';
// personnel-item-inner
}
$ret .= '</li>';
}
$ret .= '</ul>';
$ret .= '</div>';
// flexslider
$ret .= '</div>';
// gdlr-ux
$ret .= '</div>';
// gdlr-personnel-item
$ret .= '</div>';
// gdlr-personnel-item-wrapper
return $ret;
}
开发者ID:TheHiddenHaku,项目名称:fuzzy-waddle,代码行数:68,代码来源:gdlr-page-item.php
示例4: while
<?php
while (have_posts()) {
the_post();
$content = gdlr_content_filter(get_the_content(), true);
if (!empty($content)) {
echo $content;
}
?>
<div id="document-section">
<div id="document-sort">
<div class="inner">
<?php
$full_list_args = array('post_type' => 'post', 'orderby' => 'title', 'order' => 'asc', 'posts_per_page' => 15, 'paged' => $paged, 'tax_query' => array(array('taxonomy' => 'category', 'field' => 'slug', 'terms' => 'all-businesses')));
$full_list_query = new WP_Query($full_list_args);
global $wp_query;
global $paged;
if ($full_list_query->have_posts()) {
?>
<div class="list">
<h3>Applicable to All Businesses</h3>
<?php
while ($full_list_query->have_posts()) {
$full_list_query->the_post();
$pdf = rwmb_meta('business_pdf');
$link = rwmb_meta('business_link');
$postid = get_the_ID();
?>
<div class="document-row group">
<div class="list nine columns">
<a href="<?php
开发者ID:CityOfPhiladelphia,项目名称:business.phila.gov,代码行数:31,代码来源:content-all-documents.php
示例5: gdlr_content_filter
if (preg_match('#^<blockquote[\\s\\S]+</blockquote>#', $content, $match)) {
$post_format_data = gdlr_content_filter($match[0]);
$content = substr($content, strlen($match[0]));
}
}
?>
<article id="post-<?php
the_ID();
?>
" <?php
post_class();
?>
>
<div class="gdlr-blog-content">
<div class="gdlr-top-quote">
<?php
echo $post_format_data;
?>
</div>
<div class="gdlr-quote-author">
<?php
if (is_single() || $gdlr_post_settings['excerpt'] < 0) {
echo gdlr_content_filter($content, true);
} else {
echo gdlr_content_filter($content);
}
?>
</div>
</div>
</article><!-- #post -->
开发者ID:hoa32811,项目名称:wp_thanhtrung_hotel,代码行数:31,代码来源:content-quote.php
示例6: the_ID
<?php
/**
* The template for displaying posts in the Aside post format
*/
if (!is_single()) {
global $gdlr_post_settings;
}
?>
<article id="post-<?php
the_ID();
?>
" <?php
post_class();
?>
>
<div class="gdlr-blog-content">
<?php
if (is_single() || $gdlr_post_settings['excerpt'] < 0) {
echo gdlr_content_filter(get_the_content(__('Read More', 'gdlr_translate')), true);
} else {
echo gdlr_content_filter(get_the_content(__('Read More', 'gdlr_translate')));
}
?>
</div>
</article>
开发者ID:kelscahill,项目名称:Northeast-Pride,代码行数:26,代码来源:content-aside.php
示例7: gdlr_content_filter
<!-- biography -->
<div class="gdlr-soccer-tab-content" data-tab="biography">
<?php
if (function_exists('gdlr_content_filter')) {
echo gdlr_content_filter($player_options['biography']['biography']);
} else {
echo do_shortcode($player_options['biography']['biography']);
}
?>
</div>
<!-- gallery -->
<div class="gdlr-soccer-tab-content" data-tab="gallery">
<?php
if (function_exists('gdlr_content_filter')) {
echo gdlr_content_filter($player_options['gallery']['player-gallery']);
} else {
echo do_shortcode($player_options['gallery']['player-gallery']);
}
?>
</div>
</div>
</div>
<?php
get_sidebar('left');
?>
<div class="clear"></div>
</div>
<?php
get_sidebar('right');
?>
开发者ID:kelscahill,项目名称:Northeast-Pride,代码行数:31,代码来源:single-player.php
示例8: gdlr_get_cause_full
function gdlr_get_cause_full($query, $thumbnail_size, $excerpt)
{
global $post;
$ret = '';
while ($query->have_posts()) {
$query->the_post();
$ret .= '<div class="gdlr-item gdlr-cause-item gdlr-cause-full">';
$ret .= '<div class="gdlr-ux gdlr-cause-full-ux">';
$cause_option = json_decode(gdlr_decode_preventslashes(get_post_meta($post->ID, 'post-option', true)), true);
$ret .= '<div class="gdlr-cause-thumbnail-wrapper">';
$ret .= gdlr_get_cause_thumbnail($thumbnail_size);
$ret .= '</div>';
// cause-thumbnail
$ret .= '<div class="gdlr-cause-info-wrapper" >';
$ret .= gdlr_cause_donation_button($cause_option);
$ret .= gdlr_get_cause_info(array('date', 'category'));
$ret .= '</div>';
$ret .= '<div class="cause-content-wrapper">';
$ret .= '<h3 class="cause-title"><a href="' . get_permalink() . '" >' . get_the_title() . '</a></h3>';
$ret .= gdlr_cause_donation_amount($cause_option['goal-of-donation'], $cause_option['current-funding']);
if ($excerpt == '-1') {
$ret .= '<div class="cause-content">' . gdlr_content_filter(get_the_content()) . '</div>';
} else {
if (!empty($excerpt)) {
$ret .= '<div class="cause-content">' . get_the_excerpt() . '</div>';
}
}
$ret .= '</div>';
$ret .= '<div class="clear"></div>';
$ret .= '</div>';
// gdlr-ux
$ret .= '</div>';
// gdlr-item
}
wp_reset_postdata();
return $ret;
}
开发者ID:TheHiddenHaku,项目名称:fuzzy-waddle,代码行数:37,代码来源:gdlr-cause-item.php
示例9: gdlr_soccer_get_match_thumbnail
<!-- start content -->
<div class="with-sidebar-wrapper">
<div class="with-sidebar-container container">
<div class="with-sidebar-left <?php
echo $gdlr_sidebar['outer'];
?>
columns">
<div class="with-sidebar-content <?php
echo $gdlr_sidebar['center'];
?>
columns">
<div class="gdlr-soccer-single-fixture-result gdlr-item gdlr-item-start-content" >
<?php
echo gdlr_soccer_get_match_thumbnail();
if (function_exists('gdlr_content_filter')) {
echo gdlr_content_filter($match_options['match-report']);
} else {
echo do_shortcode($match_options['match-report']);
}
?>
</div>
</div>
<?php
get_sidebar('left');
?>
<div class="clear"></div>
</div>
<?php
get_sidebar('right');
?>
<div class="clear"></div>
开发者ID:kelscahill,项目名称:Northeast-Pride,代码行数:31,代码来源:single-fixture-result.php
注:本文中的gdlr_content_filter函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论