...
Alıntı
<?php
global $options;
foreach ($options as $value) {
if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
}
$template = get_post_meta($post->ID, 'wpzoom_post_template', true);
$showsocial = get_post_meta($post->ID, 'wpzoom_post_social', true);
$showauthor = get_post_meta($post->ID, 'wpzoom_post_author', true);
$posttype = get_post_meta($post->ID, 'wpzoom_post_type', true);
$dateformat = get_option('date_format');
$timeformat = get_option('time_format');
?>

<?php get_header(); ?>

<div class="wrapper">

<div id="frame">

<div id="content"<?php
if ($template == 'Sidebar on the left') {echo' class="side-left"';}
if ($template == 'Full Width (no sidebar)') {echo' class="full-width full-width-post"';}
?>>

<div id="main">

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

<div class="box boxSingle">
<div class="title blue"><?php echo '<h2>'; wpzoom_breadcrumbs(); echo'</h2>'; ?></div><!-- end .title -->

<h1><?php the_title(); ?></h1>
<p class="postmetadata"><?php if ($wpzoom_singlepost_author == 'Show') { ?>By <?php the_author_posts_link(); } if ($wpzoom_singlepost_date == 'Show') { ?> on <?php the_time("$dateformat $timeformat"); } if ($wpzoom_singlepost_cat == 'Show') { ?> in <?php the_category(', '); } ?> / <a href="<?php the_permalink() ?>#commentspost" title="Jump to the comments"><?php comments_number(__('no comments', 'wpzoom'),__('1 comment', 'wpzoom'),__('% comments', 'wpzoom')); ?></a><?php edit_post_link( __('EDIT', 'wpzoom'), ' / ', ''); ?></p>

<div class="sep">&nbsp;</div>

<div class="single">

<?php if (strlen($wpzoom_ad_content_imgpath) > 1 && $wpzoom_ad_content_select == 'Yes' && $wpzoom_ad_content_pos == 'Before') { echo '<div class="banner">'.stripslashes($wpzoom_ad_content_i mgpath)."</div>"; }?>

<?php the_content(); ?>
<?php wp_link_pages(array('before' => '<p class="pages"><strong>'.__('Pages', 'wpzoom').':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>

<div class="cleaner">&nbsp;</div>
<?php if (strlen($wpzoom_ad_content_imgpath) > 1 && $wpzoom_ad_content_select == 'Yes' && $wpzoom_ad_content_pos == 'After') { echo '<div class="banner">'.stripslashes($wpzoom_ad_content_i mgpath)."</div>"; }?>

</div><!-- end .single -->

<div class="metabox">

<?php } // if author information should be shown ?>
</div>
<div class="cleaner">&nbsp;</div>

<?php comments_template(); ?>

<div class="cleaner">&nbsp;</div>
</div><!-- end .box -->
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria', 'wpzoom');?>.</p>
<?php endif; ?>

<div class="cleaner">&nbsp;</div>

</div><!-- end #main -->

<?php if ($template != 'Full Width (no sidebar)') { ?>
<div id="sidebar">

<?php get_sidebar(); ?>

</div><!-- end #sidebar -->
<?php } //if template is not full width ?>

<div class="cleaner">&nbsp;</div>
</div><!-- end #content -->

<?php get_footer(); ?>