Example #1
0
function wpi_post_author_html()
{
    $author = ent2ncr(wpi_get_post_author());
    $attrib = array();
    $attrib['class'] = 'author reviewer';
    $htm = _t('cite', $author, array('class' => 'author reviewer', 'title' => $author));
    $attrib = array();
    $attrib['class'] = 'pby';
    if (!wpi_option('post_by_enable')) {
        $attrib['class'] .= ' dn';
    }
    $htm = _('by') . ' ' . $htm;
    t('span', $htm, $attrib);
}
Example #2
0
function wpi_template_category()
{
    global $post;
    $pby = wpi_get_theme_option('post_by_enable');
    $pby_class = $pby ? 'pby' : 'pby dn';
    $range = wpi_get_range_increment(3, 3);
    $cnt = 1;
    //wpi_dump($range);exit;
    ?>
	<ul class="hfeed r cf">
	<?php 
    while (have_posts()) {
        the_post();
        ?>
	<li class="xfolkentry hentry hreview hlisting span-7 fl prepend-1">		
		<dl class="r">			
			<dd class="postmeta-head">
			<span class="ptime r" title="<?php 
        echo get_the_time('Y-m-dTH:i:s:Z');
        ?>
"><?php 
        printf(__(' <cite>%s</cite>', WPI_META), wpi_get_postime());
        ?>
</span>
				<?php 
        wpi_hatom_title();
        ?>
			<div class="postmeta-info">	
			<span class="<?php 
        echo $pby_class;
        ?>
 dn"><?php 
        printf(__('Posted by <acronym class="reviewer author" title="%1$s">%2$s</acronym>', WPI_META), get_the_author_nickname(), wpi_get_post_author());
        ?>
</span>				
			</div>	
			</dd>
			<?php 
        if (has_excerpt($post->ID)) {
            ?>
			<dd class="entry-summary summary span-4 fr">
				<blockquote cite="<?php 
            the_permalink();
            ?>
#excerpt">
					<?php 
            the_excerpt();
            ?>
				</blockquote>
			</dd>
			<?php 
        } else {
            ?>
			<dd class="entry-content description entry ox">
				<?php 
            the_content('Continue reading &raquo;');
            ?>
			</dd>
			<?php 
        }
        ?>
			<?php 
        $rating_class = wpi_get_theme_option('post_hrating') ? 'rating-count' : 'rating-count dn';
        ?>
			<dd class="postmeta-comments cf">
			<ul class="xoxo cfl r cf">
				<li class="<?php 
        echo $rating_class;
        ?>
"><?php 
        wpi_hrating();
        ?>
&nbsp;</li>
				<li class="comments-link">
				<?php 
        comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;');
        ?>
				</li>
			</ul>
			</dd>			
			<dd class="dn">
				<ul class="more">
					<li>				
						<abbr class="dtstart published dtreviewed dc-date" title="<?php 
        the_time('Y-m-dTH:i:s:Z');
        ?>
"><?php 
        the_time('F j, Y');
        ?>
 at <?php 
        the_time('g:i a');
        ?>
</abbr>	
					</li>
					<li>
						<abbr class="dtend updated dtexpired" title="<?php 
        the_modified_date('Y-m-dTH:i:s:Z');
        ?>
"><?php 
        the_modified_date('F j, Y');
        ?>
 at <?php 
        the_modified_date('g:i a');
        ?>
</abbr>
					</li>
					<li class="version">0.3</li>
					<li class="type">url</li>					
				</ul>
			</dd>			
		</dl>
<!--
<?php 
        trackback_rdf();
        ?>
-->			
	</li>
	<?php 
        if (isset($range[$cnt])) {
            ?>
	
	<li class="hr-line cb cf">
	&nbsp;
	</li>
	<?php 
        }
        ?>
	
	<?php 
        $cnt++;
        ?>
	<?php 
    }
    ?>
	</ul>
<?php 
}