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

PHP get_linksbyname函数代码示例

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

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



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

示例1: get_linksbyname_withrating

/**
 * Gets the links associated with category 'cat_name' and display rating stars/chars.
 *
 * @since 0.71
 * @deprecated 2.1
 * @deprecated Use get_bookmarks()
 * @see get_bookmarks()
 *
 * @param string $cat_name The category name to use. If no match is found uses all
 * @param string $before The html to output before the link
 * @param string $after The html to output after the link
 * @param string $between The html to output between the link/image and it's description. Not used if no image or show_images is true
 * @param bool $show_images Whether to show images (if defined).
 * @param string $orderby the order to output the links. E.g. 'id', 'name', 'url',
 *		'description', or 'rating'. Or maybe owner. If you start the name with an
 *		underscore the order will be reversed. You can also specify 'rand' as the
 *		order which will return links in a random order.
 * @param bool $show_description Whether to show the description if show_images=false/not defined
 * @param int $limit Limit to X entries. If not specified, all entries are shown.
 * @param int $show_updated Whether to show last updated timestamp
 */
function get_linksbyname_withrating($cat_name = "noname", $before = '', $after = '<br />', $between = " ", $show_images = true, $orderby = 'id', $show_description = true, $limit = -1, $show_updated = 0)
{
    _deprecated_function(__FUNCTION__, '2.1', 'get_bookmarks()');
    get_linksbyname($cat_name, $before, $after, $between, $show_images, $orderby, $show_description, true, $limit, $show_updated);
}
开发者ID:rkglug,项目名称:WordPress,代码行数:26,代码来源:deprecated.php


示例2: get_archives

</option>
          <?php 
    get_archives('monthly', '', 'option', '', '', '');
    ?>
        </select>		
        <?php 
    include TEMPLATEPATH . '/searchform.php';
    ?>
	  </div>
	  <div class="title">
        <h2>Links</h2>
      </div>
	  <div class="post">
	    <ul>
          <?php 
    get_linksbyname('', '<li>', '</li>', '', TRUE, 'name', FALSE);
    ?>
		</ul>
      </div>
	  <div class="title">
        <h2>Subscribe</h2>
      </div>
	  <div class="post">
	    <ul>
		<li><a href="<?php 
    bloginfo('rss2_url');
    ?>
"><?php 
    _e('Entries (RSS)');
    ?>
</a></li>
开发者ID:rmccue,项目名称:wordpress-unit-tests,代码行数:31,代码来源:sidebar.php


示例3: get_linksbyname_withrating

/** function get_linksbyname_withrating()
 ** Gets the links associated with category 'cat_name' and display rating stars/chars.
 ** Parameters:
 **   cat_name (default 'noname')  - The category name to use. If no
 **     match is found uses all
 **   before (default '')  - the html to output before the link
 **   after (default '<br />')  - the html to output after the link
 **   between (default ' ')  - the html to output between the link/image
 **     and it's description. Not used if no image or show_images == true
 **   show_images (default true) - whether to show images (if defined).
 **   orderby (default 'id') - the order to output the links. E.g. 'id', 'name',
 **     'url' or 'description'. Or maybe owner. If you start the
 **     name with an underscore the order will be reversed.
 **     You can also specify 'rand' as the order which will return links in a
 **     random order.
 **   show_description (default true) - whether to show the description if
 **     show_images=false/not defined
 **   limit (default -1) - Limit to X entries. If not specified, all entries
 **     are shown.
 **   show_updated (default 0) - whether to show last updated timestamp
 */
function get_linksbyname_withrating($cat_name = "noname", $before = '', $after = '<br />', $between = " ", $show_images = true, $orderby = 'id', $show_description = true, $limit = -1, $show_updated = 0)
{
    get_linksbyname($cat_name, $before, $after, $between, $show_images, $orderby, $show_description, true, $limit, $show_updated);
}
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:25,代码来源:links.php


示例4: the_content

<?php 
the_content();
?>
</div>

<div id="primary">
<?php 
$link_cats = $wpdb->get_results("SELECT cat_id, cat_name FROM {$wpdb->categories} WHERE link_count > 0");
foreach ($link_cats as $link_cat) {
    ?>
	<h3><?php 
    echo $link_cat->cat_name;
    ?>
</h3>
	<ul class="navlist" id="linkcat-<?php 
    echo $link_cat->cat_id;
    ?>
">
		<?php 
    get_linksbyname($link_cat->cat_name, '<li>', '</li>', ' ', false, 'name', false, false, -1, false);
    ?>
	</ul>
<?php 
}
?>
</div>
<?php 
if (!get_option('tarski_hide_sidebar')) {
    get_sidebar();
}
get_footer();
开发者ID:rmccue,项目名称:wordpress-unit-tests,代码行数:31,代码来源:links.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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