جستجو در تالارهای گفتگو
در حال نمایش نتایج برای برچسب های 'عکس تیتر'.
1 نتیجه پیدا شد
-
سلام وقت بخیر دوستان یه سایتی دارم تیتر سایبدبار یکی از تب ها عکس داره اما دو تای دیگ نداره این قطعه کد کدامشو بزارم برای اون دو تا هم عکس دار بشه ؟ http://www.kalhornews.ir بعد اینک کدشو دارم ولی php زیاد وارد نیستم درستش کنم <aside id="sidebar2"> <?php $side2_count = get_option('tsweb_side2_count'); $cats_side2_ids = get_option('tsweb_cats_side2_ids'); if($cats_side2_ids) { $include_cats_side2 = explode(",", $cats_side2_ids); foreach ($include_cats_side2 as $cat_side2_id) { ?> <article class="widg"> <h4 class="widg-title"><?php echo get_cat_name($cat_side2_id);?></h4> <div class="widg-content"> <ul> <?php query_posts("cat=$cat_side2_id&posts_per_page=$side2_count"); while(have_posts()): the_post(); ?> <li><a href="<?php the_permalink();?>"><?php the_title();?></a></li> <?php endwhile; wp_reset_query(); ?> </ul> <a href="<?php echo get_category_link($cat_side2_id);?>" class="more">آرشیو</a> </div> <!--.widg-content--> </article> <!--.widg--> <?php } } $count_tab2 = get_option('tsweb_count_tab2'); $tab1_t2_name = get_option('tsweb_t2_tab1'); $tab1_t2_id = get_cat_ID($tab1_t2_name); $tab2_t2_name = get_option('tsweb_t2_tab2'); $tab2_t2_id = get_cat_ID($tab2_t2_name); $tab3_t2_name = get_option('tsweb_t2_tab3'); $tab3_t2_id = get_cat_ID($tab3_t2_name); $tab4_t2_name = get_option('tsweb_t2_tab4'); $tab4_t2_id = get_cat_ID($tab4_t2_name); if(get_option('tsweb_t2_cat1')=='true') { ?> <article class="widg"> <ul class="tabs1"> <li><a href="#tab1"><?php echo $tab1_t2_name;?></a></li> <?php if(get_option('tsweb_t2_cat2')=='true') { ?> <li><a href="#tab2"><?php echo $tab2_t2_name;?></a></li> <?php } if(get_option('tsweb_t2_cat3')=='true') { ?> <li><a href="#tab3"><?php echo $tab3_t2_name;?></a></li> <?php } if(get_option('tsweb_t2_cat4')=='true') { ?> <li><a href="#tab4"><?php echo $tab4_t2_name;?></a></li> <?php } ?> </ul> <div class="widg-content"> <div class="tab-container1"> <div id="tab1" class="tab-content"> <ul> <?php query_posts("cat=$tab1_t2_id&posts_per_page=$count_tab2"); while(have_posts()): the_post();?> <li><a href="<?php the_permalink();?>"><?php the_title();?></a></li> <?php endwhile; wp_reset_query();?> </ul> <a href="<?php echo get_category_link($tab1_t2_id);?>" class="more">آرشیو</a> </div> <!--content of tab1--> <?php if(get_option('tsweb_t2_cat2')=='true') { ?> <div id="tab2" class="tab-content"> <ul class="widg-img"> <?php query_posts("cat=$tab2_t2_id&posts_per_page=$count_tab2"); while(have_posts()): the_post();?> <li> <a href="<?php the_permalink();?>" class="widg-thumb" title="<?php the_title();?>"> <?php if(has_post_thumbnail()){ ?> <img class="thumb-preview" title="<?php the_title();?>" src="<?php $image=wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'thumbnail'); echo $image[0];?>" alt="<?php the_title();?>"> <?php } else { ?> <img src="<?php bloginfo('template_url');?>/images/no-img.jpg" alt="<?php the_title();?>"> <?php } ?> </a> <a href="<?php the_permalink();?>"><?php the_title();?></a> <?php endwhile; wp_reset_query();?> </ul> <a href="<?php echo get_category_link($tab2_t2_id);?>" class="more">آرشیو</a> </div> <!--content of tab2--> <?php } if(get_option('tsweb_t2_cat3')=='true') { ?> <div id="tab3" class="tab-content"> <ul> <?php query_posts("cat=$tab3_t2_id&posts_per_page=$count_tab2"); while(have_posts()): the_post();?> <li><a href="<?php the_permalink();?>"><?php the_title();?></a></li> <?php endwhile; wp_reset_query();?> </ul> <a href="<?php echo get_category_link($tab3_t2_id);?>" class="more">آرشیو</a> </div> <!--content of tab3--> <?php } if(get_option('tsweb_t2_cat4')=='true') { ?> <div id="tab4" class="tab-content"> <ul class="widg-img"> <?php query_posts("cat=$tab4_t2_id&posts_per_page=$count_tab2"); while(have_posts()): the_post();?> <li> <a href="<?php the_permalink();?>" class="widg-thumb" title="<?php the_title();?>"> <?php if(has_post_thumbnail()){ ?> <img class="thumb-preview" title="<?php the_title();?>" src="<?php $image=wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'thumbnail'); echo $image[0];?>" alt="<?php the_title();?>"> <?php } else { ?> <img src="<?php bloginfo('template_url');?>/images/no-img.jpg" alt="<?php the_title();?>"> <?php } ?> </a> <a href="<?php the_permalink();?>"><?php the_title();?></a> <?php endwhile; wp_reset_query();?> </ul> <a href="<?php echo get_category_link($tab4_t2_id);?>" class="more">آرشیو</a> </div> <!--content of tab4--> <?php } ?> </div> <!--.tab-container1--> </div> <!--.widg-content--> </article> <!--.widg--> <?php } ?> <?php if(get_option('tsweb_t_media')=='true') { $count_media = get_option('tsweb_count_media'); $media_name = get_option('tsweb_media'); $media_id = get_cat_ID($media_name); ?> <article class="widg"> <h4 class="widg-title"><?php echo $media_name;?></h4> <div id="mini-slider" class="widg-content"> <a class="buttons prev" href="#">قبلی</a> <div class="viewport"> <ul class="overview"> <?php query_posts("cat=$media_id&posts_per_page=$count_media"); while(have_posts()): the_post(); ?> <li><img src="<?php $image=wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full'); echo $image[0];?>" alt="<?php the_title();?>"> <h5 class="slider-title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h5> </li> <?php endwhile; wp_reset_query();?> </ul> </div> <a class="buttons next" href="#">بعدی</a> </div> <!--.widg-content--> </article> <!--.widg--> <?php } ?> <?php $side3_count = get_option('tsweb_side3_count'); $cats2_side2_ids = get_option('tsweb_cats2_side2_ids'); if($cats2_side2_ids) { $include_cats2_side2 = explode(",", $cats2_side2_ids); foreach ($include_cats2_side2 as $cat2_side2_id) { ?> <article class="widg widg-img"> <h4 class="widg-title"><?php echo get_cat_name($cat2_side2_id);?></h4> <div class="widg-content"> <ul> <?php query_posts("cat=$cat2_side2_id&posts_per_page=$side3_count"); while(have_posts()): the_post(); ?> <li> <a href="<?php the_permalink();?>" class="widg-thumb" title="<?php the_title();?>"> <?php if(has_post_thumbnail()){ ?> <img class="thumb-preview" title="<?php the_title();?>" src="<?php $image=wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'thumbnail'); echo $image[0];?>" alt="<?php the_title();?>"> <?php } else { ?> <img src="<?php bloginfo('template_url');?>/images/no-img.jpg" alt="<?php the_title();?>"> <?php } ?> </a> <a href="<?php the_permalink();?>"><?php the_title();?></a> </li> <?php endwhile; wp_reset_query(); ?> </ul> <a href="<?php echo get_category_link($cat2_side2_id);?>" class="more">آرشیو</a> </div> <!--.widg-content--> </article> <!--.widg--> <?php } } $banners_side_l = get_option('tsweb_side_l_ads_banners'); if($banners_side_l) { include(TEMPLATEPATH.'/ads-side-l.php'); } ?> <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('سایدبار چپ') ) : endif; ?> </aside> <!--#sidebar2-->