<?php
/*
Template Name: Product List
*/
get_header();
$this_is_product=true;
?>
<?php
if (get_option('rttheme_style')){
$which_theme=get_option('rttheme_style');
}else{
$which_theme="1";
}
?>
<!-- sub page header-->
<div id="sub_page_header">
<div class="left">
<!-- Page navigation-->
<div id="sub_nav">
<!-- [rt-breadcrumb] -->
<?php rt_breadcrumb(); ?>
<!--/ [rt-breadcrumb] -->
</div>
<!-- /Page navigation-->
</div>
<div class="right"></div>
</div>
<!-- /sub page header-->
<!-- Page -->
<div class="sub_page">
<div class="page_left">
<?php
$more = 0;
if($cat){
$query_string = "showposts=".get_option('rttheme_product_list_pager')."&cat=$cat&paged=$paged";
}else{
$query_string = "showposts=".get_option('rttheme_product_list_pager')."&cat=".get_option('rttheme_product_list_ex_cat[]')."&paged=$paged";
}
query_posts($query_string);
?>
<?php if (have_posts()) : while (have_posts()) : the_post();?>
<!-- box -->
<div class="box product">
<div class="imgarea product_image">
<!-- product image -->
<?php if(get_post_meta($post->ID, 'rt_product_image_url', true)):?>
<a href="<?php echo get_permalink() ?>" title="<?php the_title(); ?>">
<img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo get_post_meta($post->ID, 'rt_product_image_url', true)?>&w=190&h=104&zc=1" alt="" class="image product_image" />
</a>
<?php endif;?>
<!-- / product image -->
</div>
<div class="textarea">
<!-- box title-->
<h2><a href="<?php echo get_permalink() ?>" title=""><?php the_title(); ?></a></h2>
<!-- text-->
<?php echo get_post_meta($post->ID, 'rt_short_description', true);?>
<?php if(get_post_meta($post->ID, 'rt_product_price', true)):?>
<br />
<span class="price"><?php echo get_post_meta($post->ID, 'rt_product_price', true);?></span>
<?php endif;?>
</div>
</div>
<!-- /box -->
<?php
$box_counter++;
if ($box_counter==3){
echo "<div class=\"clear_space\"></div>";
$box_counter=0;
}
?>
<?php endwhile; ?>
<!-- /product boxes -->
<div class="clear_space_h"></div>
<!-- portfolio paging-->
<div id="paging">
<ul>
<?php get_pagination(); ?>
</ul>
</div>
<!-- /portfolio paging-->
<?php else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
<div class="emptyspace"></div>
</div>
<!--/ Page Left-->
<!-- page right-->
<div class="page_right">
<?php
include(TEMPLATEPATH."/sidebar.php");
if (function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar For Products'));
if (function_exists('dynamic_sidebar') && dynamic_sidebar('Common Sidebar'));
?>
</div>
<!-- page right-->
<div class="clear_space_h"></div>
</div>
</div>
</div>
<div class="clear_space"></div>
</div>
<!-- / containers -->
<?php get_footer();?>--R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 18:15:43 -->-> Daha önceki mesaj 18:00:23 --
yardım edebilecek bi arkadaş yok mu ?