function display($args) { extract($args); $options = GZ::get_options(); echo $before_widget . $before_title . 'Feeds' . $after_title; ?> <p><?php _e('Those all-important RSS feeds', 'guangzhou'); ?> :</p> <ul class="feeds"> <li> <a href="<?php bloginfo('rss2_url'); ?> "><img src="<?php bloginfo('template_url'); ?> /image/feed.png" width="16" height="16" alt="<?php _e('Get The Feed', 'guangzhou'); ?> "/></a> <a href="<?php bloginfo('rss2_url'); ?> "><?php _e('Posts', 'guangzhou'); ?> </a> <?php printf(__('(or get it via <a href="%s">email</a>)', 'guangzhou'), $options['feedemail']); ?> <br/> </li> <li> <a href="<?php bloginfo('comments_rss2_url'); ?> "><img src="<?php bloginfo('template_url'); ?> /image/feed.png" width="16" height="16" alt="<?php _e('Get The Feed', 'guangzhou'); ?> "/></a> <a href="<?php bloginfo('comments_rss2_url'); ?> "><?php _e('Comments RSS', 'guangzhou'); ?> </a> </li> </ul> <?php echo $after_widget; }
function post_single($post, $showmeta = true) { ?> <div class="post" id="post-<?php the_ID(); ?> "> <?php edit_post_link('<img src="' . get_bloginfo('template_url') . '/image/edit.png" width="16" height="16" alt="edit" style="margin-right: 5px"/>', '<div class="info">', '</div>'); ?> <h2><a href="<?php echo get_permalink(); ?> " rel="bookmark"><?php the_title(); ?> </a></h2> <div class="entry"> <?php the_content(''); ?> </div> <?php wp_link_pages(array('before' => '<div class="tablenav"><div class="tablenav-pages">' . GZ::previous_page('', ''), 'after' => GZ::next_page('', '') . '</div></div>', 'next_or_number' => 'number')); ?> <div class="clear"></div> </div> <?php }
" rel="tag"><?php bb_tag_name(); ?> </a> <?php $tags = bb_get_tag_remove_link(); if ($tags) { echo '<small>' . $tags . '</small>'; } ?> </li> <?php } ?> </ul> </div> <?php } else { ?> <p><?php printf(__('No <a href="%s">tags</a> yet.'), bb_get_tag_page_link()); ?> </p> <?php } ?> <?php GZ::tag_form(); ?> </div>
while (have_posts()) { the_post(); ?> <?php GZ::post_recent($post); ?> <?php } ?> <?php do_action('the_sniplet_place', 'guangzhou/category end'); ?> <?php if (GZ::is_paged()) { ?> <div class="tablenav"> <div class="tablenav-pages"> <?php next_posts_link(__('« Older Entries', 'guangzhou')); ?> <?php previous_posts_link(__('Newer Entries »', 'guangzhou')); ?> </div> </div> <div class="clear"></div> <?php } ?>
?> <div id="main"> <div class="pagewrap"> <div id="content" class="full"> <?php if (have_posts()) { $x = 0; ?> <div class="latest" id="single"> <?php while (have_posts()) { the_post(); ?> <?php GZ::post_single($post, false); ?> <?php $x++; if ($x == $gz_theme->latest) { break; } } ?> </div> <?php } ?> </div>
function page_info() { global $post, $authordata; $options = GZ::get_options(); if (function_exists('the_tags')) { $tags = get_the_tag_list(__('<strong>Tags:</strong>', 'guangzhou') . ' ', ', ', ''); } ?> <div class="info"> <a title="<?php _e('Subscribe to this!', 'guangzhou'); ?> " href="<?php echo get_post_comments_feed_link(); ?> "><img src="<?php bloginfo('template_url'); ?> /image/feed.png" width="16" height="16" alt="RSS"/></a> </div> <h2><?php the_time(get_option('date_format')); ?> </h2> <p> <?php if (isset($options['author']) && $options['author']) { ?> <?php printf(__('This page was created <strong>%1s ago</strong> by <a href="%2$s">%3$s</a>.', 'guangzhou'), $this->time_since(mysql2date('U', $post->post_date)), get_author_posts_url($authordata->ID, $authordata->user_nicename), get_the_author_meta('nickname')); ?> <?php } else { ?> <?php printf(__('This page was created <strong>%1s ago</strong>.', 'guangzhou'), $this->time_since(mysql2date('U', $post->post_date))); ?> <?php } ?> <?php if (is_single()) { ?> <?php printf(__('Similar pages can be found in %s.', 'guangzhou'), get_the_category_list(', ')); ?> <?php } ?> </p> <?php if ($tags) { ?> <p><?php echo $tags; ?> </p> <?php } ?> <?php echo GZ_Comments::comment_count(); }
?> <li> <h2><a href="#" onclick="jQuery('#admin-functions').toggle(); return false"><?php _e('Admin Functions', 'guangzhou'); ?> </a></h2> <ul id="admin-functions" style="display: none"> <?php topic_close_link(array('before' => '<li>', 'after' => '</li>')); ?> <?php topic_sticky_link(array('before' => '<li>', 'after' => '</li>')); ?> <li><?php GZ::topic_move_dropdown(); ?> </li> </ul> </li> <?php } ?> </ul> </div> <?php do_action('gz_place_bottom'); ?> <div style="clear: both"></div>
function options_skin() { $options = GZ::get_options(); if (isset($_POST['save'])) { $_POST = stripslashes_deep($_POST); $options['skin'] = $_POST['skin']; $options['skin_url'] = $_POST['skin_url']; $options['page_width'] = intval($_POST['page_width']); update_option('guangzhou_options', $options); $this->render_message(__('Your options have been saved', 'guangzhou')); } $stripes = $this->get_stripes(); $skins = $this->get_skins(); $this->render_admin('skin', array('stripes' => $stripes, 'skins' => $skins, 'options' => $options)); }
<div class="meta"> <?php echo GZ::icon($bb_post); ?> <div class="info"><a href="<?php echo post_anchor_link(); ?> "><?php global $pos; echo $pos; ?> </a></div> <cite><?php post_author_link(); ?> :</cite> <p><?php printf(__('Posted %s ago'), bb_get_post_time()); ?> by <?php post_author_title(); GZ::post_edit_text(); ?> </p> </div> <?php post_text();
<?php bb_get_header(); ?> <div id="main"> <div class="page"> <div id="content"> <h2><?php echo GZ::breadcrumbs(); ?> </h2> <?php if ($topics || $stickies) { ?> <table class="widefat"> <thead> <tr> <th><?php _e('Topic'); ?> </th> <th><?php _e('Posts'); ?> </th> <th><?php _e('Last Poster'); ?> </th>
</a> <?php } ?> <?php foreach (GZ::bottom_menu() as $link) { ?> | <?php echo GZ::link_detail($link); ?> <?php } ?> <?php if (GZ::get_options('copyright')) { echo '| ' . str_replace('%year%', date('Y'), GZ::get_options('copyright')); } ?> </div> <div style="clear: both"></div> </div> </div> <?php wp_footer(); ?> </body> </html>
?> </ul> <ul class="right"> <?php $x = 1; while (have_posts()) { the_post(); ?> <li> <?php GZ::post_recent($post); ?> </li> <?php if ($x >= GZ::recent() / 2) { break; } $x++; } ?> </ul> <div style="clear: both"></div> </div> <?php } ?> <div class="tablenav">
?> </ul> <?php } ?> </div> <?php if (GZ::is_paged()) { ?> <div class="navigation"> <?php GZ::next_posts_link(__('« Older entries', 'guangzhou'), '<div class="right">', '</div>'); ?> <?php GZ::previous_posts_link(__('Newer entries »', 'guangzhou'), '<div class="left">', '</div>'); ?> </div> <div class="clear"></div> <?php } ?> </div> </div> <?php get_sidebar(); ?> <?php
<?php } ?> <?php } ?> <?php foreach (GZ::top_menu() as $link) { ?> <li><?php echo GZ::link_detail($link); ?> </li> <?php } ?> <?php if (GZ::get_options('skip_links')) { ?> <li><a href="#content"><?php _e('Skip to content', 'guangzhou'); ?> </a></li> <?php } ?> </ul> </div> </div>
get_header(); ?> <div id="main"> <div class="pagewrap"> <?php do_action('the_sniplet_place', 'guangzhou/before single post'); ?> <div id="content"> <div class="latest" id="single"> <?php the_post(); ?> <?php GZ::post_single($post); ?> </div> <?php do_action('the_sniplet_place', 'guangzhou/after single post'); ?> </div> <?php get_sidebar(); ?> <div style="clear: both"></div> </div> </div>