本文整理汇总了PHP中wpo_excerpt函数的典型用法代码示例。如果您正苦于以下问题:PHP wpo_excerpt函数的具体用法?PHP wpo_excerpt怎么用?PHP wpo_excerpt使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wpo_excerpt函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: comments_popup_link
comments_popup_link(__(' 0 comment', TEXTDOMAIN), __(' 1 comment', TEXTDOMAIN), __(' % comments', TEXTDOMAIN));
?>
</span>
<span class="meta-sep"> / </span>
<span class="author-link"><?php
the_author_posts_link();
?>
</span>
<?php
if (is_tag()) {
?>
<span class="meta-sep"> / </span>
<span class="tag-link"><?php
the_tags('Tags: ', ', ');
?>
</span>
<?php
}
?>
</div>
<p class="entry-content">
<?php
echo wpo_excerpt(20);
?>
</p>
</div>
</div>
</div>
</div>
</article>
开发者ID:jimmitjoo,项目名称:mnh,代码行数:31,代码来源:blog-list.php
示例2: the_permalink
</div>
<div class="entry-content">
<h2 class="entry-title">
<a href="<?php
the_permalink();
?>
">
<?php
the_title();
?>
</a>
</h2>
<div class="entry-description">
<?php
echo wpo_excerpt(30);
?>
</div>
<div class="entry-meta hidden">
<span class="entry-date"><?php
echo get_the_date();
?>
</span>
<span class="meta-sep"> / </span>
<span class="comment-count">
<?php
comments_popup_link(__(' 0 comment', TEXTDOMAIN), __(' 1 comment', TEXTDOMAIN), __(' % comments', TEXTDOMAIN));
?>
</span>
<span class="meta-sep"> / </span>
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:31,代码来源:blog-masonry.php
示例3: the_title
"><?php
the_title();
?>
</a>
</h4>
<?php
}
?>
<?php
if (!has_excerpt()) {
echo "";
} else {
?>
<p class="entry-description"><?php
echo wpo_excerpt(29, '...');
?>
</p>
<?php
}
?>
</div>
</article>
<?php
if ($i == $end - 1) {
?>
</div>
<?php
}
?>
开发者ID:jimmitjoo,项目名称:mnh,代码行数:31,代码来源:frontpage-1.php
示例4: ATCF_Campaign
<?php
$campaign = new ATCF_Campaign(get_the_ID());
$uid = wpo_makeid();
?>
<div class="item-campaign row item-layout-3">
<div class="col-xs-12">
<div class="campaign-title"><a href="<?php
the_permalink();
?>
"><?php
the_title();
?>
</a></div>
<div class="campaign-des"><?php
echo wpo_excerpt(30, '...');
?>
</div>
</div>
<div class="col-xs-12">
<div class="campaign-main-style-3">
<ul class="campaign-status text-center">
<li class="campaign-raised">
<span class="label"><?php
_e('Current', TEXTDOMAIN);
?>
</span>
<span class="text"><?php
echo esc_html($campaign->current_amount());
?>
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:31,代码来源:layout-item-3.php
示例5: the_permalink
</a>
<?php
}
?>
<h6>
<a href="<?php
the_permalink();
?>
"><?php
the_title();
?>
</a>
</h6>
<div class="content">
<?php
echo wpo_excerpt(12, '...');
?>
</div>
<div class="entry-meta">
<span class="published"><?php
the_time('M d, Y');
?>
</span>
<span class="meta-sep"> | </span>
<span class="comment-count">
<i class="fa fa-comments-o"></i>
<?php
comments_popup_link(__(' 0 ', TEXTDOMAIN), __(' 1 ', TEXTDOMAIN), __(' % ', TEXTDOMAIN));
?>
</span>
<span clas="post-views">
开发者ID:k2jysy,项目名称:mergeshop,代码行数:31,代码来源:blog_tab.php
示例6: the_permalink
<div class="post-name">
<h2 class="entry-title">
<a href="<?php
the_permalink();
?>
">
<?php
the_title();
?>
</a>
</h2>
</div>
<p class="entry-content">
<?php
echo wpo_excerpt(40, '...');
?>
</p>
<div class="entry-meta">
<span class="published"><?php
the_time('M d, Y');
?>
</span>
<span class="meta-sep"> / </span>
<span class="comment-count">
<?php
comments_popup_link(__(' 0 comment', TEXTDOMAIN), __(' 1 comment', TEXTDOMAIN), __(' % comments', TEXTDOMAIN));
?>
</span>
<span class="meta-sep"> / </span>
开发者ID:shubham79,项目名称:Jhintaak,代码行数:31,代码来源:blog.php
示例7: the_post_thumbnail
">
<div class="img">
<?php
if (has_post_thumbnail()) {
the_post_thumbnail('blog-thumbnails');
}
?>
</div>
<div class="info">
<h3><?php
the_title();
?>
</h3>
<p>
<?php
echo wpo_excerpt(20, '...');
?>
</p>
</div>
</a>
</div>
</div>
</div>
<?php
}
?>
</div>
<?php
}
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:31,代码来源:portfolio-style-3.php
示例8: the_tags
?>
</span>
<?php
if (is_tag()) {
?>
<span class="meta-sep"> / </span>
<span class="tag-link"><?php
the_tags('Tags: ', ', ');
?>
</span>
<?php
}
?>
</p>
<h4 class="entry-title">
<a href="<?php
the_permalink();
?>
"><?php
the_title();
?>
</a>
</h4>
<p class="entry-description"><?php
echo wpo_excerpt(25, '...');
?>
</p>
</div>
</figure>
</article>
开发者ID:jimmitjoo,项目名称:mnh,代码行数:31,代码来源:_single-hover.php
示例9: the_permalink
<div class="information-post">
<h2 class="entry-title">
<a href="<?php
the_permalink();
?>
">
<?php
the_title();
?>
</a>
</h2>
<p class="entry-content">
<?php
echo wpo_excerpt(100);
?>
</p>
<div class="entry-meta">
<span class="entry-date"><?php
the_time('M d, Y');
?>
</span>
<span class="meta-sep"> / </span>
<span class="comment-count">
<?php
comments_popup_link(__(' 0 comment', TEXTDOMAIN), __(' 1 comment', TEXTDOMAIN), __(' % comments', TEXTDOMAIN));
?>
</span>
<span class="meta-sep"> / </span>
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:31,代码来源:blog.php
示例10: the_post_thumbnail
the_post_thumbnail('blog-thumbnails');
?>
</a>
</div>
<div class="col-md-6 col-sm-6">
<div class="blog-title">
<a href="<?php
the_permalink();
?>
"><?php
the_title();
?>
</a>
</div>
<div class="blog-description"><?php
echo wpo_excerpt(15, '...');
?>
</div>
<p class="entry-meta">
<span class="published"><?php
the_time('M d, Y');
?>
</span>
<span class="meta-sep"> | </span>
<span class="comment-count">
<?php
comments_popup_link(__(' 0 comment', TEXTDOMAIN), __(' 1 comment', TEXTDOMAIN), __(' % comments', TEXTDOMAIN));
?>
</span>
<?php
/*
开发者ID:shubham79,项目名称:Jhintaak,代码行数:31,代码来源:vc_posts_grid.php
示例11: _e
<li class="campaign-backers hidden">
<p class="label"><?php
_e('Backers', TEXTDOMAIN);
?>
</p>
<p class="text"><?php
echo esc_html($campaign->backers_count());
?>
</p>
</li>
</ul>
</div>
<div class="clearfix"></div>
<div class="desciption">
<?php
echo wpo_excerpt(36, '... <a class="read-more" href="' . esc_url(get_the_permalink()) . '">' . __('Read more', TEXTDOMAIN) . '</a>');
?>
</div>
<?php
if ($campaign->is_active()) {
?>
<div id="campaign-form-<?php
echo esc_attr(get_the_ID() . "-{$uid}");
?>
" class="campaign-form reveal-modal content-block block">
<?php
echo edd_get_purchase_link(array('download_id' => get_the_ID()));
?>
</div>
<?php
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:31,代码来源:campaign-style-2.php
示例12: wpo_load_more_portfolio
function wpo_load_more_portfolio()
{
$number = $_POST['number'];
$paged = $_POST['paged'];
$class_column = $_POST['column'];
$args = array('post_type' => 'portfolio', 'posts_per_page' => $number, 'paged' => $paged);
$loop = new WP_Query($args);
$result = $posts = array();
if ($loop->have_posts()) {
while ($loop->have_posts()) {
$loop->the_post();
$item_classes = 'all ';
$item_cats = get_the_terms($loop->post->ID, 'Categories');
foreach ((array) $item_cats as $item_cat) {
if (count($item_cat) > 0) {
$item_classes .= $item_cat->slug . ' ';
}
}
$image_attributes = wp_get_attachment_image_src(get_post_thumbnail_id($loop->post->ID), 'blog-thumbnails');
ob_start();
?>
<div class="col-sm-<?php
echo esc_attr($class_column);
?>
item col-md-<?php
echo esc_attr($class_column);
?>
col-lg-<?php
echo esc_attr($class_column);
?>
<?php
echo esc_attr($item_classes);
?>
">
<div class="wpo-portfolio-content thumbnail text-center">
<?php
if (has_post_thumbnail()) {
?>
<figure class="wpo-portfolio-thumbnail">
<a href="<?php
the_permalink();
?>
" title="<?php
the_title_attribute();
?>
">
<?php
the_post_thumbnail('blog-thumbnails');
?>
</a>
</figure>
<?php
}
?>
<div class="wpo-portfolio-title caption">
<h4 class="entry-title">
<a href="<?php
the_permalink();
?>
"><?php
the_title();
?>
</a>
</h4>
<?php
if ($image_attributes) {
?>
<a href="<?php
echo esc_url($image_attributes[0]);
?>
" rel="prettyPhoto[<?php
echo $item_classes;
?>
]" title="<?php
the_title_attribute();
?>
" class="btn btn-outline-inverse">
<i class="fa fa-plus"></i>
</a>
<?php
}
?>
<p class="entry-description"><?php
echo wpo_excerpt(20, '...');
?>
</p>
</div>
</div>
</div>
<?php
$posts[] = ob_get_clean();
}
}
if ($paged >= $loop->max_num_pages) {
$result['check'] = false;
} else {
$result['check'] = true;
}
$result['posts'] = $posts;
//.........这里部分代码省略.........
开发者ID:jimmitjoo,项目名称:mnh,代码行数:101,代码来源:theme.php
示例13: the_permalink
<div class="post-name">
<h2 class="entry-title">
<a href="<?php
the_permalink();
?>
">
<?php
the_title();
?>
</a>
</h2>
</div>
<p class="entry-content">
<?php
echo wpo_excerpt(40);
?>
</p>
<div class="entry-meta">
<span class="published"><?php
the_time('M d, Y');
?>
</span>
<span class="meta-sep"> / </span>
<span class="comment-count">
<?php
comments_popup_link(__(' 0 comment', TEXTDOMAIN), __(' 1 comment', TEXTDOMAIN), __(' % comments', TEXTDOMAIN));
?>
</span>
<span class="meta-sep"> / </span>
开发者ID:shubham79,项目名称:Jhintaak,代码行数:31,代码来源:blog.php
示例14: the_permalink
the_permalink();
?>
"><?php
the_title();
?>
</a>
</h4>
<?php
}
?>
<?php
if (has_excerpt()) {
?>
<p class="entry-description"><?php
echo wpo_excerpt(25, '[...]');
?>
</p>
<?php
}
?>
<div class="clearfix">
<div class="entry-meta">
<div class="entry-create">
<span class="entry-author"><?php
the_author_link();
?>
</span>
<span class="meta-sep">|</span>
<span class="entry-date"><?php
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:31,代码来源:frontpage-1.php
注:本文中的wpo_excerpt函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论