<div id = "sidebar-left"> <nav id="access" role="navigation"> <?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff. */ ?> <?php wp_nav_menu(array('theme_location' => 'primary')); ?> </nav><!-- #access --> <div id = "link"> <h3>友情链接Contact</h3> <?php $args = array('category_name' => get_hit_config('links.cat_in.name')); $links_in = get_bookmarks($args); $args = array('category_name' => get_hit_config('links.cat_out.name')); $links_out = get_bookmarks($args); ?> <select id = "links_in" class = "links" onchange = "redirect(this)"> <option value = "" selected = "selected">校内单位</option> <?php foreach ($links_in as $link) { ?> <option value = "<?php echo $link->link_url; ?> "><?php echo $link->link_name; ?> </option> <?php
echo $page->post_content; } else { echo "对不起,没有捐赠记录"; } ?> </div> </div> </aside> <aside id = "home-recent-announce"> <h3 class = "head" ><span class="head-name">公告栏</span><label>Notice</label><a href= "<?php echo get_category_link(get_cat_ID(get_hit_config('cat.announce.name'))); ?> " class="more">更多</a></h3> <ul> <?php $args = array('posts_per_page' => 3, 'paged' => 1, 'category_name' => get_hit_config('cat.announce.name')); $query = new WP_Query($args); $recent_posts = wp_get_recent_posts($query); while ($query->have_posts()) { $query->next_post(); $post_id = $query->post->ID; $post_title = urldecode($query->post->post_name); ?> <li><a href = "<?php echo get_permalink($post_id); ?> " title = "<?php echo $post_title; ?> "><?php echo $post_title;
/** * The Sidebar containing the main widget area. * * @package WordPress * @subpackage Twenty_Eleven * @since Twenty Eleven 1.0 */ /* * array in the sidebar, the links are all display as images * images all in the folder "images/links/" * array( image name => page name, .... * ) * */ $pagenames = get_hit_config('fast_way'); ?> <div id="secondary" class="widget-area" role="complementary" style = "width:14%"> <aside id="sidebar-page"> <ul> <?php foreach ($pagenames as $img => $name) { $page_info = get_page_by_title($name); ?> <li><a href = "<?php echo $page_info->guid; ?> "><img src = "<?php echo get_template_directory_uri() . '/images/links/' . $img; ?>