function _b_wp_links_show($option, $wp_num = "") { $block['wp_num'] = $wp_num; $block['divid'] = 'wpLink' . $wp_num; $block['style'] = block_style_get(false); $block['links'] = get_links_list('name', '', false); $_wpTpl =& new WordPresTpl('theme'); $_wpTpl->assign('block', $block); $block['content'] = $_wpTpl->fetch('wp_links.html'); return $block; }
function widget_andreas01_links() { ?> <h2>Links:</h2> <ul class="menulist"> <?php get_links_list(); ?> </ul> <?php }
function _b_wp_links_show($option, $wp_num = "") { ob_start(); block_style_get(); echo "<ul class='wpBlockList'>\n"; get_links_list(); echo "</ul>\n"; $block['content'] = ob_get_contents(); ob_end_clean(); return $block; }
function b_wp_links_show($option) { $id = 1; require_once dirname(__FILE__) . '/../wp-blog-header.php'; global $wpdb, $tablecomments, $tableposts; ob_flush(); ob_start(); get_links_list(); $block['content'] = ob_get_contents(); ob_end_clean(); return $block; }
function b_wp_links_show($option) { $id = 1; global $dateformat, $time_difference, $siteurl, $blogfilename; global $tablelinks, $tablelinkcategories; global $querystring_start, $querystring_equal, $querystring_separator, $month, $wpdb, $start_of_week; global $tableposts, $tablepost2cat, $tablecomments, $tablecategories; require_once dirname(__FILE__) . '/../wp-blog-header.php'; ob_start(); get_links_list(); $block['content'] = ob_get_contents(); ob_end_clean(); return $block; }
function b_wp_links_show($option, $wp_num = "") { global $wpdb; global $wp_id, $wp_inblock, $use_cache; $id = 1; $use_cache = 1; if ($wp_num == "") { $wp_id = $wp_num; $wp_inblock = 1; require dirname(__FILE__) . '/../wp-config.php'; $wp_inblock = 0; } ob_start(); get_links_list(); $block['content'] = ob_get_contents(); ob_end_clean(); return $block; }
function b_wp_links_show($option, $wp_num = "") { global $wpdb; global $wp_id, $wp_inblock, $use_cache, $wp_mod, $wp_base; $id = 1; $use_cache = 1; if ($wp_num == "") { $wp_id = $wp_num; $wp_inblock = 1; require dirname(__FILE__) . '/../wp-config.php'; $wp_inblock = 0; } ob_start(); block_style_get($wp_num); echo "<ul class='wpBlockList'>\n"; get_links_list(); echo "</ul>\n"; $block['content'] = ob_get_contents(); ob_end_clean(); return $block; }
<?php /* Template Name: Links */ ?> <?php get_header(); ?> <div id="content"> <h2>Links:</h2> <ul> <?php get_links_list(); ?> </ul> </div> <?php get_footer();
$smarty->assign('ur_here', $_LANG['list_link']); $smarty->assign('action_link', array('text' => $_LANG['add_link'], 'href' => 'friend_link.php?act=add')); $smarty->assign('full_page', 1); /* 获取友情链接数据 */ $links_list = get_links_list(); $smarty->assign('links_list', $links_list['list']); $smarty->assign('filter', $links_list['filter']); $smarty->assign('record_count', $links_list['record_count']); $smarty->assign('page_count', $links_list['page_count']); $sort_flag = sort_flag($links_list['filter']); $smarty->assign($sort_flag['tag'], $sort_flag['img']); assign_query_info(); $smarty->display('link_list.htm'); } elseif ($_REQUEST['act'] == 'query') { /* 获取友情链接数据 */ $links_list = get_links_list(); $smarty->assign('links_list', $links_list['list']); $smarty->assign('filter', $links_list['filter']); $smarty->assign('record_count', $links_list['record_count']); $smarty->assign('page_count', $links_list['page_count']); $sort_flag = sort_flag($links_list['filter']); $smarty->assign($sort_flag['tag'], $sort_flag['img']); make_json_result($smarty->fetch('link_list.htm'), '', array('filter' => $links_list['filter'], 'page_count' => $links_list['page_count'])); } elseif ($_REQUEST['act'] == 'add') { admin_priv('friendlink'); $smarty->assign('ur_here', $_LANG['add_link']); $smarty->assign('action_link', array('href' => 'friend_link.php?act=list', 'text' => $_LANG['list_link'])); $smarty->assign('action', 'add'); $smarty->assign('form_act', 'insert'); assign_query_info(); $smarty->display('link_info.htm');
Template Name: Links */ get_header(); ?> <div id="main"> <?php include TEMPLATEPATH . '/sidebar_left.php'; ?> <div id="content"> <div class="post"> <h2 class="title"><a href="<?php the_permalink(); ?> " rel="bookmark"><?php the_title(); ?> </a></h2> <div class="entry"> <ul> <?php get_links_list('name'); ?> </ul> </div> </div> </div> <?php get_sidebar(); get_footer();
function widget_links($args) { // This ONLY works with li/h2 sidebars. get_links_list(); }
<!-- begin sidebar --> <div id="menu"> <ul> <?php wp_list_pages(); ?> <?php get_links_list(); ?> <li id="categories"><?php _e('Categories:'); ?> <ul> <?php wp_list_cats(); ?> </ul> </li> <li id="search"> <label for="s"><?php _e('Search:'); ?></label> <form id="searchform" method="get" action="<?php bloginfo('home'); ?>"> <div> <input type="text" name="s" id="s" size="15" /><br /> <input type="submit" value="<?php _e('Search'); ?>" /> </div> </form> </li> <li id="archives"><?php _e('Archives:'); ?> <ul> <?php wp_get_archives('type=monthly'); ?> </ul> </li> <li id="meta"><?php _e('Meta:'); ?> <ul> <?php wp_register(); ?> <li><?php wp_loginout(); ?></li> <li><a href="feed:<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
?> <input type="submit" name="submit" value="view"></input> </form> </li> <?php include TEMPLATEPATH . '/searchform.php'; ?> <?php wp_list_pages('title_li=<h2>' . __('Pages') . '</h2>'); ?> <?php get_links_list(_name); ?> <?php if (function_exists('wp_theme_switcher')) { ?> <li><h2><?php _e('Themes'); ?> </h2> <?php wp_theme_switcher(); ?> </li> <?php
function wp_widget_links($args) { global $wp_db_version; extract($args, EXTR_SKIP); if ( $wp_db_version < 3582 ) { // This ONLY works with li/h2 sidebars. get_links_list(); } else { wp_list_bookmarks(array( 'title_before' => $before_title, 'title_after' => $after_title, 'category_before' => $before_widget, 'category_after' => $after_widget, 'show_images' => true, 'class' => 'linkcat widget' )); } }
function mistylook_ShowLinks() { ?> <li class="sidebox" id="sidelinks"> <ul> <?php if (function_exists('wp_list_bookmarks')) { wp_list_bookmarks(); } else { get_links_list('name'); } ?> </ul> </li> <?php }