• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP virtue_excerpt函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中virtue_excerpt函数的典型用法代码示例。如果您正苦于以下问题:PHP virtue_excerpt函数的具体用法?PHP virtue_excerpt怎么用?PHP virtue_excerpt使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了virtue_excerpt函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: the_title

" class="bcarousellink">
				<header>
			        <h5 class="entry-title" itemprop="name headline"><?php 
        the_title();
        ?>
</h5>
			        <div class="subhead" itemprop="datePublished">
			        <span class="postday"><?php 
        echo get_the_date(get_option('date_format'));
        ?>
</span>
			        </div>
				</header>
		       	<div class="entry-content" itemprop="articleBody">
		        <p><?php 
        echo virtue_excerpt(16);
        ?>
</p>
		        </div>
				 </a>
                </div>
			</div>
		<?php 
    }
} else {
    ?>
			<div class="error-not-found"><?php 
    _e('Sorry, no blog entries found.', 'virtue');
    ?>
</div>	
				<?php 
开发者ID:jdiponziano,项目名称:thelifeoutside.com,代码行数:31,代码来源:recentblog-carousel.php


示例2: kad_portfolio_shortcode_function


//.........这里部分代码省略.........
                    the_permalink();
                    ?>
" title="<?php 
                    the_title();
                    ?>
">
	                                    <img src="<?php 
                    echo esc_url($image);
                    ?>
" alt="<?php 
                    the_title();
                    ?>
" class="lightboxhover" style="display: block;">
	                                </a> 
	                           	</div>
	                            <?php 
                    if (!empty($lightbox)) {
                        ?>
	                            	<a href="<?php 
                        echo esc_url($thumbnailURL);
                        ?>
" class="kad_portfolio_lightbox_link" title="<?php 
                        the_title();
                        ?>
" data-rel="lightbox">
	                            		<i class="icon-search"></i>
	                            	</a>
	                            <?php 
                    }
                    $image = null;
                    $thumbnailURL = null;
                    ?>
                           <?php 
                }
            }
            ?>
			              	<a href="<?php 
            the_permalink();
            ?>
" class="portfoliolink">
			              		<div class="piteminfo">   
			                          <h5><?php 
            the_title();
            ?>
</h5>
			                           <?php 
            if (empty($showtypes)) {
                $terms = get_the_terms($post->ID, 'portfolio-type');
                if ($terms) {
                    ?>
 
				                           		<p class="cportfoliotag"><?php 
                    $output = array();
                    foreach ($terms as $term) {
                        $output[] = $term->name;
                    }
                    echo implode(', ', $output);
                    ?>
</p>
				                           	<?php 
                }
            }
            ?>
				                           <?php 
            if ($excerpt == true) {
                ?>
				                           		<p><?php 
                echo virtue_excerpt(16);
                ?>
</p> 
				                           <?php 
            }
            ?>
			                    </div>
			                </a>
                </div>
            </div>
			<?php 
        }
    } else {
        ?>
				<li class="error-not-found"><?php 
        _e('Sorry, no portfolio entries found.', 'virtue');
        ?>
</li>
			<?php 
    }
    ?>
          	</div> <!-- portfoliowrapper -->
            <?php 
    $wp_query = null;
    wp_reset_query();
    ?>
		</div><!-- /.home-portfolio -->

	<?php 
    $output = ob_get_contents();
    ob_end_clean();
    return $output;
}
开发者ID:jeffreysbrother,项目名称:WordPress-integration,代码行数:101,代码来源:portfolio_shortcodes.php


示例3: the_title

" class="bcarousellink">
							        <header>
						               	<h5 class="entry-title" itemprop="name headline"><?php 
        the_title();
        ?>
</h5>
						                <div class="subhead" itemprop="datePublished">
						                	<span class="postday"><?php 
        echo get_the_date(get_option('date_format'));
        ?>
</span>
						                </div>
						            </header>
		                    		<div class="entry-content" itemprop="articleBody">
		                        		<p><?php 
        echo strip_tags(virtue_excerpt(16));
        ?>
</p>
		                    		</div>
                           		</a>
	                 	</div>
	            	</div>
            		<?php 
    }
} else {
    ?>
					<div class="error-not-found"><?php 
    _e('Sorry, no blog entries found.', 'virtue');
    ?>
</div>	
					<?php 
开发者ID:nanookYs,项目名称:orientreizen,代码行数:31,代码来源:similarblog-carousel.php


示例4: kad_carousel_shortcode_function


//.........这里部分代码省略.........
                        $thumbnailURL = null;
                    }
                }
                ?>
				              		<a href="<?php 
                the_permalink();
                ?>
" class="portfoliolink">
				              			<div class="piteminfo">
				              				<h5><?php 
                the_title();
                ?>
</h5>
				              				<?php 
                if ($portfolio_show_types == true) {
                    $terms = get_the_terms($post->ID, 'portfolio-type');
                    if ($terms) {
                        ?>
 <p class="cportfoliotag"><?php 
                        $output = array();
                        foreach ($terms as $term) {
                            $output[] = $term->name;
                        }
                        echo implode(', ', $output);
                        ?>
</p> <?php 
                    }
                }
                ?>
				              				<?php 
                if ($portfolio_show_excerpt == true) {
                    ?>
 <p><?php 
                    echo virtue_excerpt(16);
                    ?>
</p> <?php 
                }
                ?>
				              			</div>
				              		</a>
				                </div>
				            </div>
						<?php 
            }
        } else {
            ?>
							<li class="error-not-found"><?php 
            _e('Sorry, no portfolio entries found.', 'virtue');
            ?>
</li>
						<?php 
        }
        $wp_query = null;
        wp_reset_query();
        ?>

            	<?php 
    } else {
        if ($type == "post") {
            $wp_query = null;
            $wp_query = new WP_Query();
            $wp_query->query(array('orderby' => $orderby, 'order' => $order, 'offset' => $offset, 'post_type' => 'post', 'category_name' => $carousel_category, 'posts_per_page' => $items));
            if ($wp_query) {
                while ($wp_query->have_posts()) {
                    $wp_query->the_post();
                    ?>
开发者ID:jeffreysbrother,项目名称:WordPress-integration,代码行数:67,代码来源:carousel_shortcodes.php


示例5: get_comments_number

			                          	<span class="kad-hidepostedin">|</span>
			                        	<span class="postcommentscount" rel="tooltip" data-placement="top" data-original-title="<?php 
            $num_comments = get_comments_number();
            echo esc_attr($num_comments);
            ?>
">
			                        		<i class="icon-bubbles"></i>
			                        	</span>
			                        	<?php 
        }
        ?>
			                        </div>
			                        </header>
		                        	<div class="entry-content" itemprop="articleBody">
		                          		<p><?php 
        echo virtue_excerpt($blogwordcount);
        ?>
 <a href="<?php 
        the_permalink();
        ?>
">
		                          			<?php 
        global $virtue_premium;
        if (!empty($virtue_premium['post_readmore_text'])) {
            $readmore = $virtue_premium['post_readmore_text'];
        } else {
            $readmore = __('Read More', 'virtue');
        }
        echo $readmore;
        ?>
</a></p>
开发者ID:rselvan,项目名称:wpcloudcms,代码行数:31,代码来源:blog-home.php


示例6: kad_carousel_shortcode_function


//.........这里部分代码省略.........
                    ?>
">
		                           			<img src="<?php 
                    echo $image;
                    ?>
" alt="<?php 
                    the_title();
                    ?>
" class="iconhover" style="display:block;">
		                           		</a> 
		                         	</div>
                           		<?php 
                    $image = null;
                    $thumbnailURL = null;
                    ?>
              					<a href="<?php 
                    the_permalink();
                    ?>
" class="bcarousellink">
				                    <header>
			                          <h5 class="entry-title"><?php 
                    the_title();
                    ?>
</h5>
			                          <div class="subhead">
			                          	<span class="postday kad-hidedate"><?php 
                    echo get_the_date('j M Y');
                    ?>
</span>
			                        </div>	
			                        </header>
		                        	<div class="entry-content color_body">
		                          		<p><?php 
                    echo strip_tags(virtue_excerpt(16));
                    if ($readmore) {
                        global $virtue_premium;
                        if (!empty($virtue_premium['post_readmore_text'])) {
                            $readmoret = $virtue_premium['post_readmore_text'];
                        } else {
                            $readmoret = __('Read More', 'virtue');
                        }
                        echo $readmoret;
                    }
                    ?>
		                          	</p>
		                        	</div>
                           		</a>
               		 </div>
				</div>
				<?php 
                }
            } else {
                ?>
				<div class="error-not-found"><?php 
                _e('Sorry, no post entries found.', 'virtue');
                ?>
</div>
				<?php 
            }
            $wp_query = null;
            wp_reset_query();
            ?>
								
				</div>
				</div>
            <?php 
开发者ID:Kang8M,项目名称:gaonhat,代码行数:67,代码来源:carousel_shortcodes.php


示例7: get_comments_number

			                          				<span class="kad-hidepostedin">|</span>
			                        				<span class="postcommentscount" data-toggle="tooltip" data-placement="top" data-original-title="<?php 
            $num_comments = get_comments_number();
            echo esc_attr($num_comments);
            ?>
">
			                        					<i class="icon-comments-alt"></i>
			                        				</span>
			                        			<?php 
        }
        ?>
			                        		</div>
			                        </header>
		                        	<div class="entry-content">
		                          		<p><?php 
        echo virtue_excerpt(34);
        ?>
 <a href="<?php 
        the_permalink();
        ?>
"><?php 
        _e('READ MORE', 'virtue');
        ?>
</a></p>
		                        	</div>
		                      		<footer>
                       				</footer>
							</div>
	                   	</div>
                    </article>
                </div>
开发者ID:amelc,项目名称:FINAL-PROJECT,代码行数:31,代码来源:blog-home.php


示例8: kad_blog_shortcode_function


//.........这里部分代码省略.........
				                        	</div>
				                            
				                        </div>
				                    <header class="home_blog_title">
			                          <a href="<?php 
                the_permalink();
                ?>
"><h5 class="entry-title"><?php 
                the_title();
                ?>
</h5></a>
			                          <div class="subhead color_gray">
			                          	<span class="postauthortop" rel="tooltip" data-placement="top" data-original-title="<?php 
                echo get_the_author();
                ?>
">
			                          		<i class="icon-user"></i>
			                          	</span>
			                          	<span class="kad-hidepostauthortop"> | </span>
			                          		<?php 
                $post_category = get_the_category($post->ID);
                if (!empty($post_category)) {
                    ?>
 
			                          		<span class="postedintop" rel="tooltip" data-placement="top" data-original-title="<?php 
                    foreach ($post_category as $category) {
                        echo $category->name . '&nbsp;';
                    }
                    ?>
"><i class="icon-folder"></i></span>
			                          		 <?php 
                }
                ?>
			                          		 <?php 
                if (comments_open() || get_comments_number() != 0) {
                    ?>
  
			                          	<span class="kad-hidepostedin">|</span>
			                        	<span class="postcommentscount" rel="tooltip" data-placement="top" data-original-title="<?php 
                    esc_attr(get_comments_number());
                    ?>
">
			                        		<i class="icon-bubbles"></i>
			                        	</span>
			                        	 <?php 
                }
                ?>
			                        </div>
			                        </header>
		                        	<div class="entry-content">
		                          		<p><?php 
                echo virtue_excerpt($word_count);
                ?>
 <a href="<?php 
                the_permalink();
                ?>
">
		                          			<?php 
                global $virtue_premium;
                if (!empty($virtue_premium['post_readmore_text'])) {
                    $readmore = $virtue_premium['post_readmore_text'];
                } else {
                    $readmore = __('Read More', 'virtue');
                }
                echo $readmore;
                ?>
</a></p>
		                        	</div>
		                      		<footer>
                       				</footer>
							</div>
	                   	</div>
                    </article>
                </div>
                    <?php 
            }
        } else {
            ?>
						<li class="error-not-found"><?php 
            _e('Sorry, no blog entries found.', 'virtue');
            ?>
</li>
					<?php 
        }
        ?>
				<?php 
        $wp_query = null;
        wp_reset_query();
        ?>

	</div>
</div> <!--home-blog -->
            		

	<?php 
        $output = ob_get_contents();
        ob_end_clean();
        return $output;
    }
}
开发者ID:MikeBu,项目名称:wp-fm.com,代码行数:101,代码来源:blog_shortcodes.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP viscacha_function_exists函数代码示例发布时间:2022-05-23
下一篇:
PHP virtual_goods_ship函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap