Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- get_header();
- ?>
- <div id="show_hide_content_button"></div>
- <div id="standard_page">
- <?php if( is_category() ) : ?>
- <h1 class="title"><?php single_cat_title(); ?></h1>
- <?php elseif( is_archive() ) : ?>
- <?php if ( have_posts() ) the_post();
- ?>
- <h1 class="title">
- <?php if ( is_day() ) : ?>
- Daily Archives: <?php echo get_the_date(); ?>
- <?php elseif ( is_month() ) : ?>
- Monthly Archives: <?php echo get_the_date( 'F Y' ); ?>
- <?php elseif ( is_year() ) : ?>
- Yearly Archives: <?php echo get_the_date( 'Y' ) ?>
- <?php else : ?>
- Blog Archives
- <?php endif; ?>
- </h1>
- <?php rewind_posts(); endif; ?>
- <div id="standard_body">
- <?php
- if (have_posts()) : while(have_posts()) : the_post();
- echo '<div class="blog_post">';
- echo '<a href="' . get_permalink() . '"><h1>' . the_title('','',false) . '</h1></a>';
- $image_id = get_post_thumbnail_id();
- $image_url = wp_get_attachment_image_src($image_id, 'full');
- if (has_post_thumbnail()) :
- ?>
- <div id="portfolio_page_image"><a href="<?php the_permalink(); ?>"><img src="<?php bloginfo('template_url'); ?>/timthumb.php?src=<?php echo $image_url[0]; ?>&w=690&h=350&zc=1&q=100" alt="" /></a></div>
- <?php
- endif;
- ?>
- <div id="portfolio_page_body">
- <?php
- if(!empty($post->post_excerpt)) {
- the_excerpt(get_option_tree('setting_rm','',false));
- } else {
- the_content(get_option_tree('setting_rm','',false));
- }
- ?>
- </div>
- <div id="portfolio_page_info">
- <h3><?php echo get_option_tree('pp_info_title'); ?></h3>
- <ul>
- <li id="portfolio_page_date"><?php the_time('l, F j, Y'); ?></li>
- <li id="portfolio_page_author"><?php echo get_option_tree('pp_author')." <strong>"; the_author(); ?></strong></li>
- <?php if ($post_type != "gallery") : ?>
- <li id="portfolio_page_cat"><?php echo the_category(','); ?></li>
- <?php if (has_tag()) : ?>
- <li id="portfolio_page_tags"><?php echo the_tags('',', ',''); ?></li>
- <?php endif; ?>
- <li id="portfolio_page_comments"><?php echo comments_popup_link(get_option_tree('setting_ncm','',false),get_option_tree('setting_ocm','',false), "% ".get_option_tree('setting_ncmmto','',false), 'comment_counter', get_option_tree('setting_ncm','',false)); ?></li>
- <?php endif; ?>
- <?php locate_template( array( 'sidebar2.php' ), true ) ?>
- </ul>
- </div>
- <div class="clear"></div>
- </div>
- <?php
- endwhile; endif;
- ?>
- <div id="post_links">
- <div id="post_links_right">
- <?php
- if (get_next_posts_link()) {
- next_posts_link(get_option_tree('setting_pgnnp','',false));
- } else {
- echo '<span class="no_post">' . get_option_tree('setting_pgnnnp','',false). '</span>';
- }
- ?>
- </div>
- <div id="post_links_left">
- <?php
- if (get_previous_posts_link()) {
- previous_posts_link(get_option_tree('setting_pgnpp','',false));
- } else {
- echo '<span class="no_post">' . get_option_tree('setting_pgnnpp','',false) . '</span>';
- }
- ?>
- </div>
- </div>
- <div class="clear"></div>
- </div>
- </div>
- <?php
- get_footer();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement