Advertisement
Guest User

my loop-page.php

a guest
Nov 16th, 2012
63
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  2.     <article id="post-<?php the_ID(); ?>" <?php post_class('entry clearfix'); ?>>
  3.         <?php
  4.             $thumb = '';
  5.             $width = apply_filters('et_blog_image_width',630);
  6.             $height = apply_filters('et_blog_image_height',210);
  7.             $classtext = '';
  8.             $titletext = get_the_title();
  9.             $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext,false,'Singleimage');
  10.             $thumb = $thumbnail["thumb"];
  11.         ?>
  12.         <?php if ( '' != $thumb && 'on' == et_get_option('lucid_page_thumbnails') ) { ?>
  13.             <div class="post-thumbnail">
  14.                 <?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?>
  15.             </div>  <!-- end .post-thumbnail -->
  16.         <?php } ?>
  17.        
  18.         <div class="post_content clearfix">
  19.             <h1 class="title"><?php the_title(); ?></h1>
  20.            
  21.             <?php the_content(); ?>
  22.             <?php wp_link_pages(array('before' => '<p><strong>'.esc_attr__('Pages','Lucid').':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
  23.             <?php edit_post_link(esc_attr__('Edit this page','Lucid')); ?>
  24.         </div>  <!-- end .post_content -->
  25.     </article> <!-- end .entry -->
  26. <?php endwhile; // end of the loop. ?>
Advertisement
RAW Paste Data Copied
Advertisement