Пример #1
0
<?php comments_template(); ?>

</div><!-- .hfeed -->
</div><!-- #content -->
</div><!-- #container -->

<div id="primary" class="sidebar">
<ul>
<li id="home-link">
<h3><a href="<?php bloginfo('home') ?>" title="<?php echo wp_specialchars(get_bloginfo('name'), 1) ?>"><?php _e('&laquo; Home', 'webjournal'); ?></a></h3>
</li>
<li class="entry-meta">
<h3><?php _e('About This Post', 'webjournal') ?></h3>
<ul>
<li><?php printf(__('Posted by %s', 'webjournal'), webjournal_author_link() ) ?></li>
<li><?php printf(__('<abbr class="published" title="%1$sT%2$s">%3$s at %4$s</abbr>', 'webjournal'), get_the_time('Y-m-d'), get_the_time('H:i:sO'), get_the_time('F jS, Y'), get_the_time() ) ?></li>
<?php edit_post_link(__('Edit this entry', 'webjournal'),'<li class="entry-edit">&equiv; ','</li>') ?>
</ul>
</li>
</ul>
</div><!-- attachment.php #primary .sidebar -->

<div id="secondary" class="sidebar">
<ul>
<li class="entry-interact">
<h3><?php _e('Interact', 'webjournal') ?></h3>
<ul>
<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) : ?>
<li class="comment-link"><?php _e('<a href="#respond" title="Post a comment">Post a comment</a>', 'webjournal') ?></li>
<li class="trackback-link"><?php printf(__('<a href="%s" rel="trackback" title="Trackback URL for your post">Trackback URI</a>', 'webjournal'), get_trackback_url() ) ?></li>
Пример #2
0
<!-- == 
  
  template-single.php 
  
== -->



<div class="hfeed">

<?php the_post() ?>

<div id="post-<?php the_ID() ?>" class="<?php webjournal_post_class() ?>">
<h1 class="entry-title"><?php the_title() ?></h1>
<?php if ( get_post_custom_values('authorlink') ) printf(__('<div class="archive-meta">By %1$s</div>', 'webjournal'), webjournal_author_link() ) // Add a key/value of "authorlink" to show an author byline on a page ?>
<div class="entry-content">
<?php the_content(); ?>
</div>
<div class="entry-meta">
<div class="entry-meta-inner">
<span class="entry-date"><abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO'); ?>"><i><?php unset($previousday); printf(__('%1$s', 'webjournal'), the_date('d F Y', false)) ?></i></abbr></span>
<?php edit_post_link(__('Edit this entry', 'webjournal'),'<div class="entry-edit">','</div>') ?>
</div>
</div>
</div><!-- .post -->

<?php if ( get_post_custom_values('comments') ) comments_template() // Add a key/value of "comments" to load comments on a page ?>

</div><!-- .hfeed -->
</div><!-- #content -->
Пример #3
0
<!--div><?php _e('Search Results', 'webjournal') ?> <span class="page-subtitle"><?php the_search_query() ?></span></div-->

<?php while (have_posts()) : the_post(); ?>

<div id="post-<?php the_ID() ?>" class="<?php webjournal_post_class() ?>">
<h3 class="entry-title"><a href="<?php the_permalink() ?>" title="<?php printf(__('Permalink to %s', 'webjournal'), wp_specialchars(get_the_title(), 1)) ?>" rel="bookmark"><?php the_title() ?></a></h3>
<div class="entry-content">

<?php the_excerpt('<span class="more-link">'.__('Continue Reading &raquo;', 'webjournal').'</span>') ?>

</div>
<div class="entry-meta">
<span class="meta-sep">&para;</span>
<span class="entry-date"><?php _e('Posted', 'webjournal') ?> <abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO'); ?>"><?php unset($previousday); printf(__('%1$s', 'webjournal'), the_date('d F Y', false)) ?></abbr></span>
<?php webjournal_author_link(); // Function for author link option ?>
<span class="meta-sep">&sect;</span>
<span class="entry-category"><?php the_category(' &sect; ') ?></span>
<span class="meta-sep">&Dagger;</span>
<span class="entry-comments"><?php comments_popup_link(__('Comments (0)', 'webjournal'), __('Comments (1)', 'webjournal'), __('Comments (%)', 'webjournal')) ?></span>
<span class="meta-sep">&deg;</span>
<span class="entry-tags"><?php the_tags(__('#', 'webjournal'), ", #", "") ?></span>
<?php edit_post_link(__('Edit ' + get_the_title(), 'webjournal'), "\t\t\t\t\t<span class=\"meta-sep\">&equiv;</span>\n\t\t\t\t\t<span class='entry-edit'>", "</span>\n"); ?>
</div>
</div><!-- .post -->

<?php endwhile; ?>

<?php else : ?>

<h2 class="page-title"><?php _e('Search Results', 'webjournal') ?> for '<span class="page-subtitle"><?php printf(__('%1$s', 'webjournal'), wp_specialchars(stripslashes($_GET['s']), true) ); ?></span>'</h2>