Beispiel #1
0
    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;
    }
Beispiel #2
0
 function skin()
 {
     global $gz_theme;
     $options = GZ::get_options();
     $skin = $options['skin'];
     if (!empty($options['skin_url'])) {
         $parts = explode("\r\n", $options['skin_url']);
         if (count($parts) > 0) {
             foreach ($parts as $line) {
                 $urlparts = explode('=', $line);
                 if (count($urlparts) == 2) {
                     if (substr($_SERVER['REQUEST_URI'], 0, strlen($urlparts[0])) == $urlparts[0]) {
                         $skin = $urlparts[1];
                         break;
                     }
                 }
             }
         }
     }
     if (!file_exists(TEMPLATEPATH . '/skins/' . $skin . '/style.css')) {
         $skin = 'clear';
     }
     return $skin;
 }
Beispiel #3
0
    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();
    }
Beispiel #4
0
 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));
 }
Beispiel #5
0
</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>
Beispiel #6
0
				<?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>