Advertisement
Guest User

Untitled

a guest
Aug 29th, 2011
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.95 KB | None | 0 0
  1. <?php get_header();?>
  2.  
  3.     <?php if (is_home()) { ?>
  4.     <?php include (TEMPLATEPATH.'/slideshow/nivo-slider.php');?>
  5.     <?php } ?>
  6.  
  7.     <div class="clear"></div>
  8.       <?php $disable_features_box = get_option('ecobiz_disable_features_box'); ?>
  9.       <?php if ($disable_features_box == "false") { ?>
  10.       <?php get_template_part( 'featureslist','4 cols site features' );?>
  11.       <?php } ?>
  12.       <div class="clear"></div>
  13.       <div class="center">
  14.      <!-- Main Content -->
  15.         <div class="maincontent">
  16.         <?php
  17.          $welcome_title = get_option('ecobiz_welcome_title');
  18.          $welcome_message = get_option('ecobiz_welcome_message');
  19.        ?>
  20.           <h3><?php echo ($welcome_title) ? stripslashes($welcome_title) : "Welcome to Our Site!";?></h3>
  21.           <p><?php  echo ($welcome_message) ? stripslashes($welcome_message) : "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque condimentum dui quis sem fermentum a mattis ipsum ultrices. Integer eu lacus sit amet mauris hendrerit egestas et eget neque. Mauris ac justo tempus velit imperdiet placerat. Nullam dolor lectus, sollicitudin sed dictum nec, consequat in erat. Quisque nibh ligula";?></p>
  22.  
  23.           <?php // get_template_part( 'site-overview','4 cols site overview' );?>  
  24.  
  25.      <h4> Últimas Notícias </h4>
  26.  
  27. <ul>
  28. <?php
  29. // replace 5 with the number of posts you want to show.
  30.  
  31. $aRecentPosts = new WP_Query("showposts=5");
  32. $blog_text_num = (get_option('ecobiz_blog_text_num')) ? get_option('ecobiz_blog_text_num') : 75;
  33.  
  34. while($aRecentPosts->have_posts()) : $aRecentPosts->the_post();?>
  35.  
  36. <li>
  37.             <div class="boximg-blog">
  38.             <?php if (function_exists('has_post_thumbnail') && has_post_thumbnail()) {?>
  39.               <div class="blogimage">
  40.                 <img src="<?php echo get_template_directory_uri();?>/timthumb.php?src=<?php echo thumb_url();?>&h=84&w=84&zc=1" alt="" class="boximg-pad" />
  41.               </div>
  42.             <?php } ?>
  43.             </div>
  44.             <div class="postbox">
  45.             <h3><a>"><?php the_title();?></a></h3>
  46.             <p><?php echo excerpt($blog_text_num);?></p>
  47.            </div>
  48.            <div class="clear"></div>
  49.             <div class="metapost">
  50.               <span class="first"><?php echo __('Postado em ','ecobiz');?><?php the_time( get_option('date_format') ); ?></span> |
  51.               <span><?php echo __('Por ','ecobiz');?>: <?php the_author_posts_link();?></span>  |
  52.               <span><?php echo __('Categoria ','ecobiz');?>: <?php the_category(',');?></span>  |
  53.               <span><?php comments_popup_link(__('Seja o primeiro a comentar','ecobiz'),__('1 Comentário','ecobiz'),__('% Comentários','ecobiz'));?></span>
  54.             </div>
  55.             <div class="clear"></div>
  56.           </li>
  57. <?php endwhile; ?>
  58. <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
  59. </ul>
  60.         </div>
  61.          <!-- Main Content End -->
  62. <?php get_sidebar();?>
  63.  
  64. <?php get_footer();?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement