本文整理汇总了PHP中twentyeleven_continue_reading_link函数的典型用法代码示例。如果您正苦于以下问题:PHP twentyeleven_continue_reading_link函数的具体用法?PHP twentyeleven_continue_reading_link怎么用?PHP twentyeleven_continue_reading_link使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了twentyeleven_continue_reading_link函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: twentyeleven_custom_excerpt_more
/**
* Adds a pretty "Continue Reading" link to custom post excerpts.
*
* To override this link in a child theme, remove the filter and add your own
* function tied to the get_the_excerpt filter hook.
*/
function twentyeleven_custom_excerpt_more($output)
{
if (has_excerpt() && !is_attachment()) {
$output .= twentyeleven_continue_reading_link();
}
return $output;
}
示例2: twentyeleven_auto_excerpt_more
/**
* Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and twentyeleven_continue_reading_link().
*
* To override this in a child theme, remove the filter and add your own
* function tied to the excerpt_more filter hook.
*/
function twentyeleven_auto_excerpt_more($more)
{
return ' …' . twentyeleven_continue_reading_link();
}