Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: NEW Index
- */
- ?>
- <?php get_header() ?>
- <div id="content">
- <?php locate_template( array( 'leftsidebar.php' ), true ) ?>
- <div class="padder">
- <?php do_action( 'bp_before_blog_home' ) ?>
- <div class="page" id="blog-latest">
- <div class="post2" id="post-<?php the_ID(); ?>">
- <div class="post-content1">
- <!-- start page content -->
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <?php the_content( __( '<p class="serif">Read the rest of this page →</p>', 'buddypress' ) ); ?>
- <?php wp_link_pages( array( 'before' => __( '<p><strong>Pages:</strong> ', 'buddypress' ), 'after' => '</p>', 'next_or_number' => 'number')); ?>
- <?php endwhile; endif; ?>
- <!-- end page content -->
- <?php if ( !is_user_logged_in() ) : ?>
- <table width="100%" cellspacing="5" cellpadding="5" style="border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom-style: solid; border-bottom-width: 0px; border-bottom-color: #202020;">
- <tr>
- <td class="newnav2" width="33%" style="border-right:5px solid white"><a href="http://www.riotcart.com/?search-class=DB_CustomSearch_Widget-db_customsearch_widget&widget_number=preset-default&cs-riotcat1-0=&search=Search" title="Start shopping"><img src="http://www.riotcart.com/wp-content/uploads/2010/11/shop1.gif" alt="Shop"></a></td>
- <td class="newnav2" width="33%" style="border-right:5px solid white"><a href="http://www.riotcart.com/shop-hosting/" title="Start selling"><img src="http://www.riotcart.com/wp-content/uploads/2010/11/sell1.gif" alt="Sell"></a></td>
- <td class="newnav2" width="33%"><a href="http://www.riotcart.com/register/" title="Start rioting"><img src="http://www.riotcart.com/wp-content/uploads/2010/11/riot1.gif" alt="Riot"></a></td>
- </tr>
- <tr>
- <td width="33%"><b>No password? No problem!</b> Shop any
- RiotCart.com vendor you'd like, without having to create an
- account with us! Just start browsing by
- <a href="http://www.riotcart.com/shops">shop</a> or
- <a href="http://www.riotcart.com/?search-class=DB_CustomSearch_Widget-db_customsearch_widget&widget_number=preset-default&cs-riotcat1-0=&search=Search">
- item</a>, click, and buy.</td>
- <td width="33%"><b>Get more than a cart, get a full featured
- e-commerce website!</b> RiotCart.com shops offer all kinds of
- <a href="http://www.riotcart.com/shop-hosting/">features</a> that
- you can't get anywhere else. </td>
- <td width="33%"><b>Kick off your combat boots and stay a while</b>...become
- a full-fledged Rioter! Members get a personal profile with friend
- connections, wishlists, private messaging,
- <a href="http://www.riotcart.com/join-the-riot/">and more</a>.</td>
- </tr>
- </table>
- <br />
- <?php endif; ?>
- <div class="newnav2">
- <a href="http://www.riotcart.com/?search-class=DB_CustomSearch_Widget-db_customsearch_widget&widget_number=preset-default&cs-riotcat1-0=&search=Search" title="Click for more newly listed items!"><img src="http://www.riotcart.com/wp-content/uploads/2011/01/newinshops4.gif"></a>
- </div>
- <br />
- <table class="latestmain" cellpadding="0" cellspacing="1px">
- <?php if (function_exists('get_featured_content_showcase')) {
- echo get_featured_content_showcase();
- }
- ?>
- <br />
- <?php
- $term = get_term_by('slug','blog', 'post_tag');
- $term2 = get_term_by('slug','gallery', 'post_tag');
- $args=array(
- 'tag__not_in' => array($term->term_id, $term2->term_id),
- 'category' => '-1',
- 'post_type' => 'post',
- 'post_status' => 'publish',
- 'numberposts' =>5,
- 'meta_key' => 'thumbnail',
- 'caller_get_posts'=> 1
- );
- $latest = get_posts($args);
- $count = 0;
- foreach($latest as $post) {
- $blogid = get_post_meta($post->ID, 'blogid', true);
- $image = get_post_meta($post->ID, 'thumbnail', true);
- if ($count % 3 == 0)
- echo '<tr>';
- echo '<td>';
- do_action( 'bp_before_blog_post' );
- ?>
- <div class="crop2">
- <?php
- $image1=get_post_meta($post->ID, 'thumbnail', true);
- $price1=get_post_meta($post->ID, 'price', true);
- ?>
- <?php if ( $image1 ) : ?>
- <p><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php echo $price1; ?>"><img src="<?php echo $image1; ?>" width="148px" alt="<?php echo $price1; ?>"</img></a></p>
- <?php else : ?>
- <p><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( '', 'buddypress' ) ?> <?php the_title_attribute(); ?>"><img src="http://www.riotcart.com/wp-content/uploads/2010/11/noimg230.jpg" width="148px" height="90px"</img></a></p>
- <?php endif; ?>
- <div class="croptext1">
- <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'buddypress' ) ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a>
- </div>
- </div>
- <?php
- do_action( 'bp_after_blog_post' );
- echo '</td>';
- $count++;
- if ($count % 3 == 0)
- echo '</tr>';
- }
- ?>
- </table>
- </td>
- </tr>
- <tr><a href="http://www.riotcart.com/?search-class=DB_CustomSearch_Widget-db_customsearch_widget&widget_number=preset-default&cs-riotcat1-0=&search=Search">← Older Items</a></tr>
- </table>
- </div>
- </div>
- </div>
- <?php do_action( 'bp_after_blog_home' ) ?>
- </div><!-- .padder -->
- </div><!-- #content -->
- <?php locate_template( array( 'sidebar.php' ), true ) ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement