Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Arquivo Noticiashome.php
- <?php
- $noticiashome = new WP_Query('showposts=1&category_name=Restaurantes&orderby=date&offset=2');
- ?>
- Arquivo latest.php
- <div class="latest_l">
- <div class="latest">
- <div class="header">
- <h1>Noticias</h1>
- </div><!-- #header -->
- <!--Arquivo Latest é o De Noticias -->
- <?php
- //list featured slide previews
- require_once('noticiashome.php');
- $i = 0;
- global $noticiashome;
- $latest = $noticiashome; while($latest->have_posts()) : $latest->the_post(); ?>
- <?php { $noborder = 'class="noborder"'; } ?>
- <?php { ?>
- <div class="inside">
- <div class="top">
- <?php if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) { ?>
- <?php $image_id = get_post_thumbnail_id(); $image_url = wp_get_attachment_image_src($image_id,'large'); $image_url = $image_url[0]; ?>
- <?php $blogurl = get_bloginfo('url'); $image_url = str_replace($blogurl, '', $image_url); ?>
- <a href="<?php the_permalink(); ?>">
- <img src="<?php echo bloginfo('template_url'); ?>/thumb.php?src=<?php echo $image_url; ?>&w=200&h=130&zc=1&q=100" alt="<?php echo the_title(); ?>" /></a><div class="heading"><?php } else { ?><div class="heading" style="width:100%;"><?php }?>
- <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
- <!-- <span class="date"><?php //_e('Posted On:'); ?> <?php //the_time('F d, '); ?><?php //the_time(' Y'); ?></span> -->
- <div class="pholder">
- <p><?php echo excerpt(21); ?> [...]</p></div>
- </div><!-- #heading -->
- </div><!-- #top -->
- <?php } ?>
- <?php $i++; endwhile; ?>
- </div><!-- #inside -->
- </div><!-- #latest -->
- </div><!-- #latest_l -->
- Arquivo featured_articles.php
- <div class="latest_r_1">
- <div class="latest">
- <div class="header">
- <h1></h1>
- </div>
- <!-- #header -->
- <?php
- //list featured slide previews
- require_once('noticiashome.php');
- $i = 0;
- global $noticiashome;
- $featureds = $noticiashome; while($featureds->have_posts()) : $featureds->the_post(); ?>
- <?php { $noborder = 'class="noborder"'; } ?>
- <?php { ?>
- <div class="inside">
- <div class="top">
- <?php if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) { ?>
- <?php $image_id = get_post_thumbnail_id(); $image_url = wp_get_attachment_image_src($image_id,'large'); $image_url = $image_url[0]; ?>
- <?php $blogurl = get_bloginfo('url'); $image_url = str_replace($blogurl, '', $image_url); ?>
- <a href="<?php the_permalink(); ?>">
- <img src="<?php echo bloginfo('template_url'); ?>/thumb.php?src=<?php echo $image_url; ?>&w=200&h=130&zc=1&q=100" alt="<?php echo the_title(); ?>" /></a><div class="heading"><?php } else { ?><div class="heading" style="width:100%;"><?php }?>
- <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
- <!-- <span class="date"><?php /* _e('Posted On:'); ?> <?php the_time('F d, '); ?><?php the_time(' Y'); */?></span> -->
- <div class="pholder">
- <p><?php echo excerpt(21); ?> [...]</p>
- </div>
- </div><!-- #heading -->
- </div><!-- #top -->
- <?php } ?>
- <?php $i++; endwhile; ?>
- <?php if($i != 0){ ?>
- </div><!-- #inside -->
- <?php } ?>
- </div><!-- #latest -->
- </div><!-- #latest_r -->
- Arquivo featured_articles_2.php
- <div class="latest_r">
- <div class="latest">
- <div class="header_1">
- <h1></h1>
- </div>
- <!-- #header -->
- <?php
- //list featured slide previews
- require_once('noticiashome.php');
- $i = 0;
- global $noticiashome;
- $featured = $noticiashome; while($featured->have_posts()) : $featured->the_post(); ?>
- <?php { $noborder = 'class="noborder"'; }?>
- <?php { ?>
- <div class="inside">
- <div class="top">
- <?php if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) { ?>
- <?php $image_id = get_post_thumbnail_id(); $image_url = wp_get_attachment_image_src($image_id,'large'); $image_url = $image_url[0]; ?>
- <?php $blogurl = get_bloginfo('url'); $image_url = str_replace($blogurl, '', $image_url); ?>
- <a href="<?php the_permalink(); ?>">
- <img src="<?php echo bloginfo('template_url'); ?>/thumb.php?src=<?php echo $image_url; ?>&w=200&h=130&zc=1&q=100" alt="<?php echo the_title(); ?>" /></a><div class="heading"><?php } else { ?><div class="heading" style="width:100%;"><?php }?>
- <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
- <!-- <span class="date"><?php /* _e('Posted On:'); ?> <?php the_time('F d, '); ?><?php the_time(' Y'); */?></span> -->
- <div class="pholder">
- <p><?php echo excerpt(21); ?> [...]</p>
- </div>
- </div><!-- #heading -->
- </div><!-- #top -->
- <?php } ?>
- <?php $i++; endwhile; ?>
- <?php if($i != 0){ ?>
- </div><!-- #inside -->
- <?php } ?>
- </div><!-- #latest -->
- </div><!-- #latest_r -->
- Arquivo Latest_noticias.php
- <div class="latest_l_1">
- <div class="latest">
- <div class="header">
- </div><!-- #header -->
- <!--Arquivo Latest é o De Noticias -->
- <?php
- //list featured slide previews
- require_once('noticiashome.php');
- $i = 0;
- global $noticiashome;
- $latest = $noticiashome; while($latest->have_posts()) : $latest->the_post(); ?>
- <?php { $noborder = 'class="noborder"'; } ?>
- <?php { ?>
- <div class="inside">
- <div class="top">
- <?php if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) { ?>
- <?php $image_id = get_post_thumbnail_id(); $image_url = wp_get_attachment_image_src($image_id,'large'); $image_url = $image_url[0]; ?>
- <?php $blogurl = get_bloginfo('url'); $image_url = str_replace($blogurl, '', $image_url); ?>
- <a href="<?php the_permalink(); ?>">
- <img src="<?php echo bloginfo('template_url'); ?>/thumb.php?src=<?php echo $image_url; ?>&w=200&h=130&zc=1&q=100" alt="<?php echo the_title(); ?>" /></a><div class="heading"><?php } else { ?><div class="heading" style="width:100%;"><?php }?>
- <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
- <!-- <span class="date"><?php //_e('Posted On:'); ?> <?php //the_time('F d, '); ?><?php //the_time(' Y'); ?></span> -->
- <div class="pholder">
- <p><?php echo excerpt(21); ?> [...]</p></div>
- </div><!-- #heading -->
- </div><!-- #top -->
- <?php } ?>
- <?php $i++; endwhile; ?>
- </div><!-- #inside -->
- </div><!-- #latest -->
- </div><!-- #latest_l -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement