public
anonymous / ADVITS Single.php
Created

  • Download Gist
ADVITS Single.php
PHP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
<?php
 
$k_option['custom']['bodyclass'] = ""; //<-- Display Sidebar
// $k_option['custom']['bodyclass'] = "fullwidth"; //<-- Dont display Sidebar
get_header(); ?>
 
$preview_image
<!-- ###################################################################### -->
<div id="main">
<!-- ###################################################################### -->
<div id="content">
<?php
if (have_posts()) :
while (have_posts()) : the_post();
$preview_image = kriesi_post_thumb($post->ID, array('size'=> array('M'),
'display_link' => array('lightbox'), // '_prev_image_link' or array('lightbox')
'linkurl' => array ('fullscreen','_preview_big'),
'wh' => $k_option['custom']['imgSize']['M']
));
?>
<div class="entry entry-no-pic">
<div class="entry-content ">
<h1 class="entry-heading">
<a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link:','newscast')?> <?php the_title(); ?>">
<?php the_title(); ?>
</a>
</h1>
<div class="entry-head">
<span class="date ie6fix"><?php the_time('M d, Y') ?></span>
<span class="comments ie6fix"><?php comments_popup_link(__('No Comments','newscast'), __('1 Comment','newscast'), __('% Comments','newscast')); ?></span>
<span class="author ie6fix"><?php _e('by','newscast');?> <?php the_author_posts_link(); ?></span>
</div>
<div class="entry-text">
<?php
the_content();
edit_post_link(__('Edit','newscast'), '', '');
?>
</div>
<div class="entry-bottom">
<span class="categories"><?php the_category(', '); ?></span>
</div>
</div><!--end entry_content-->
</div><!--end entry -->
<div class='entry commententry'>
<?php if ( comments_open() ) : ?>
<?php comments_template(); ?>
<?php endif; ?>
</div>
<?php
endwhile;
else:
echo'<div class="entry">';
echo'<h2>'.__('Nothing Found','newscast').'</h2>';
echo'<p>'.__('Sorry, no posts matched your criteria','newscast').'</p>';
echo'</div>';
endif;
// end content: ?></div>
<?php
get_sidebar();
get_footer();
?>
<?php wp_link_pages(); ?>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.