Advertisement
vman678

Content.php

Sep 26th, 2014
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.58 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Text Post Content
  4.  *
  5.  * @since alterna 1.0
  6.  */
  7.  ?>
  8.     <article id="post-<?php the_ID(); ?>" <?php post_class('entry-post');?> >
  9.         <!-- post date -->
  10.         <div class="entry-left-side span3">
  11.             <div class="post-date-type row-fluid">
  12.                 <div class="post-type"><i class="big-icon-file"></i></div>
  13.                 <div class="date">
  14.                     <div class="day"><?php echo get_the_date('d'); ?></div>
  15.                     <div class="month"><?php echo get_the_date('M'); ?></div>
  16.                     <div class="year"><?php echo get_the_date('Y'); ?></div>
  17.                 </div>
  18.             </div>
  19.             <div class="post-meta post-author row-fluid"><i class="icon-user"></i><?php _e('by','alterna'); ?> <?php the_author_link();?></div>
  20.             <div class="post-meta post-comments row-fluid"><i class="icon-comments"></i><a href="<?php echo get_permalink(get_the_ID()).'#comments'; ?>"><?php comments_number(__('No Comment' , 'alterna') , __('1 Comment' , 'alterna') , __('% Comments' , 'alterna')); ?></a></div>
  21.         </div>
  22.  
  23.         <!-- post content -->
  24.         <div class="entry-right-side span9">
  25.             <div class="title"><h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3></div>
  26.             <div class="clear"></div>
  27.             <?php edit_post_link(__('Edit', 'alterna'), '<div class="post-edit"><i class="icon-edit"></i>', '</div>'); ?>
  28.             <div class="post-meta post-category"><i class="icon-folder-open"></i><span><?php    $categories = get_the_category();
  29.                         $seperator = ' , ';
  30.                         $output = '';
  31.                         if($categories){
  32.                             foreach($categories as $category) {
  33.                                 $output .= '<a href="'.get_category_link($category->term_id ).'" title="' . esc_attr( sprintf( __( "View all posts in %s",'alterna'), $category->name ) ) . '">'.$category->cat_name.'</a>'.$seperator;
  34.                             }
  35.                         echo trim($output, $seperator);
  36.                         }
  37.              ?></span>
  38.                 <div class="post-link"><a href="<?php echo the_permalink();?>"><i class="icon-link"></i></a></div>
  39.             </div>
  40.            
  41.             <div class="post-content">
  42.                 <?php echo string_limit_words(get_the_excerpt(), 30); ?>
  43.                 <?php echo '<p><a class="more-link" href="'.get_permalink().'">'.alterna_get_options_key('global-read-more' , '' , false , 'Read More &raquo;').'</a></p>'; ?>
  44.             </div>
  45.         </div>
  46.     </article>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement