Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Home Page
- */
- ?>
- <?php get_header(); ?>
- <div class="clear"></div><!--clear END-->
- <div class="fix content">
- <div class="fix lead">
- <div class="fix last_news">
- <div class="lnhead">
- <h3>সর্বশেষ</h3>
- </div><!--lnhead END-->
- <ul>
- <?php
- $args = array( 'numberposts' => '8' );
- $recent_posts = wp_get_recent_posts( $args );
- foreach( $recent_posts as $recent ){
- echo '<li><a href="' . get_permalink($recent["ID"]) . '" title="সর্বশেষ: '.esc_attr($recent["post_title"]).'" >' . $recent["post_title"].'</a> </li> ';
- }
- ?>
- </ul>
- </div><!--last_news END-->
- <div class="fix slider">
- <ul class="bxslider4">
- <?php query_posts('cat=38&post_type=post&post_status=publish&posts_per_page=5'); ?>
- <?php if(have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="fix sliderPicBox">
- <a href="<?php the_permalink(); ?>">
- <?php the_post_thumbnail(); ?>
- </a>
- <div class="fix sliderCp">
- <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?> </a></h2>
- </div><!--sliderCp END-->
- </div><!--sliderPicBox END-->
- <?php endwhile; ?>
- <?php endif; ?>
- </ul>
- </div><!--slider END-->
- <div class="fix last_news">
- <div class="lnhead morehit greenline">
- <h3>সর্বাধিক পঠিত</h3>
- </div><!--lnhead END-->
- <ul>
- <?php
- query_posts('meta_key=post_views_count&orderby=meta_value_num&posts_per_page=8&order=ASC');
- if (have_posts()) : while (have_posts()) : the_post(); ?>
- <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
- </li>
- <?php
- endwhile; endif;
- wp_reset_query();
- ?>
- </ul>
- </div><!--last_news END-->
- </div><!--lead END-->
- <!-- /advertisement management -->
- <?php $adsQurey = new WP_Query('post_type=ads&post_status=publish&posts_per_page=18') ?>
- <?php
- function adsRowOne(){
- ?>
- <div class="add_3_1">
- <a href="<?php the_field('ads_url'); ?>">
- <img src="<?php the_field('ads_picture'); ?>">
- </a>
- </div>
- <?php
- }
- function adsRowTwo(){
- ?>
- <div class="add_3_1">
- <a href="<?php the_field('ads_url'); ?>">
- <img src="<?php the_field('ads_picture'); ?>">
- </a>
- </div>
- <?php
- }
- function adsRowThree(){
- ?>
- <div class="add_3_1">
- <a href="<?php the_field('ads_url'); ?>">
- <img src="<?php the_field('ads_picture'); ?>">
- </a>
- </div>
- <?php
- }
- function adsRowFour(){
- ?>
- <div class="add_3_1">
- <a href="<?php the_field('ads_url'); ?>">
- <img src="<?php the_field('ads_picture'); ?>">
- </a>
- </div>
- <?php
- }
- function adsRowFive(){
- ?>
- <div class="add_3_1">
- <a href="<?php the_field('ads_url'); ?>">
- <img src="<?php the_field('ads_picture'); ?>">
- </a>
- </div>
- <?php
- }
- function adsRowSix(){
- ?>
- <div class="add_3_1">
- <a href="<?php the_field('ads_url'); ?>">
- <img src="<?php the_field('ads_picture'); ?>">
- </a>
- </div>
- <?php
- }
- ?>
- <!-- end advertisment management area -->
- <div class="add_3">
- <?php $i=0; while($adsQurey->have_posts()): $adsQurey->the_post(); $i++; ?>
- <?php
- switch($i){
- case 1:
- case 2:
- case 3: adsRowOne(); break;
- default:
- echo "";
- }
- ?>
- <?php endwhile; ?>
- </div><!--add_3 END-->
- <?php echo get_template_part('america_category'); ?>
- <div class="add_3">
- <?php $i=0; while($adsQurey->have_posts()): $adsQurey->the_post(); $i++; ?>
- <?php
- switch($i){
- case 4:
- case 5:
- case 6: adsRowTwo(); break;
- default:
- echo "";
- }
- ?>
- <?php endwhile; ?>
- </div><!--add_3 END-->
- <div class="fix catagory1">
- <div class="catagory_1">
- <div class="fix catagory_name_plus">
- <div class="fix catagory_name">
- <h1><a class="color_dra" href="http://darpon.com/দেশ-দর্পণ">দেশ দর্পণ</a></h1>
- </div><!--catagory_name END-->
- <div class="fix catagory_plus">
- <h5><a href="http://darpon.com/দেশ-দর্পণ">+</a></h5>
- </div><!--catagory_plus END-->
- </div><!--catagory_name_plus END-->
- <?php query_posts('cat=3&post_type=post&post_status=publish&posts_per_page=1'); ?>
- <?php if(have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <span class="sub_heading">
- <?php the_field('sub_title'); ?>
- </span><!--sub_heading END-->
- <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?> </a></h2>
- <div class="fix catagory_body_pic">
- <div class="fix catagory_body">
- <?php echo excerpt('40'); ?>
- </div><!--catagory_body END-->
- <div class="fix catagory_pic">
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
- </div><!--catagory_pic END-->
- </div><!--catagory_body_pic END-->
- <?php endwhile; ?>
- <?php endif; ?>
- <div class="catagory_hli">
- <ul>
- <?php query_posts('cat=3&post_type=post&post_status=publish&posts_per_page=6');
- $i = 0; ?>
- <?php if(have_posts()) : ?>
- <?php while (have_posts()) : the_post(); $i++;
- if($i==1) continue;?>
- <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
- <?php endwhile; ?>
- <?php endif; ?>
- </ul>
- </div><!--catagory_hli-->
- </div><!--catagory_1 END-->
- <div class="catagory_1">
- <div class="fix catagory_name_plus">
- <div class="fix catagory_name">
- <h1><a class="color_dra" href="http://darpon.com/রাজনীতি">রাজনীতি</a></h1>
- </div><!--catagory_name END-->
- <div class="fix catagory_plus">
- <h5><a href="http://darpon.com/রাজনীতি">+</a></h5>
- </div><!--catagory_plus END-->
- </div><!--catagory_name_plus END-->
- <?php query_posts('cat=4&post_type=post&post_status=publish&posts_per_page=1'); ?>
- <?php if(have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <span class="sub_heading">
- <?php the_field('sub_title'); ?>
- </span><!--sub_heading END-->
- <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
- <div class="fix catagory_body_pic">
- <div class="fix catagory_body">
- <?php echo excerpt('40'); ?>
- </div><!--catagory_body END-->
- <div class="fix catagory_pic">
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
- </div><!--catagory_pic END-->
- </div><!--catagory_body_pic END-->
- <?php endwhile; ?>
- <?php endif; ?>
- <div class="catagory_hli">
- <ul>
- <?php query_posts('cat=4&post_type=post&post_status=publish&posts_per_page=6');
- $i = 0; ?>
- <?php if(have_posts()) : ?>
- <?php while (have_posts()) : the_post(); $i++;
- if($i==1) continue;?>
- <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
- <?php endwhile; ?>
- <?php endif; ?>
- </ul>
- </div><!--catagory_hli-->
- </div><!--catagory_1 END-->
- <div class="catagory_1">
- <div class="fix catagory_name_plus">
- <div class="fix catagory_name">
- <h1><a class="color_dra" href="http://darpon.com/কলাম">কলাম</a></h1>
- </div><!--catagory_name END-->
- <div class="fix catagory_plus">
- <h5><a href="http://darpon.com/কলাম">+</a></h5>
- </div><!--catagory_plus END-->
- </div><!--catagory_name_plus END-->
- <?php query_posts('cat=27&post_type=post&post_status=publish&posts_per_page=3'); ?>
- <?php if(have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="fix post_box">
- <div class="fix post_writer_pic">
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
- </div><!--post_writer_pic END-->
- <div class="fix post_body">
- <span class="sub_heading">
- <?php the_field('sub_title'); ?>
- </span><!--sub_heading END-->
- <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
- <h3> <?php the_field('interview_giver'); ?></h3>
- </div><!--post_body END-->
- </div><!--post_box END-->
- <?php endwhile; ?>
- <?php endif; ?>
- </div><!--catagory_1 END-->
- </div><!--catagory1 END-->
- <div class="clear"></div><!--clear END-->
- <?php echo get_template_part('division-category'); ?>
- <div class="add_3">
- <?php $i=0; while($adsQurey->have_posts()): $adsQurey->the_post(); $i++; ?>
- <?php
- switch($i){
- case 7:
- case 8:
- case 9: adsRowThree(); break;
- default:
- echo "";
- }
- ?>
- <?php endwhile; ?>
- </div><!--add_3 END-->
- <div class="fix clear"></div>
- <?php echo get_template_part('probash-category'); ?>
- <div class="add_3">
- <?php $i=0; while($adsQurey->have_posts()): $adsQurey->the_post(); $i++; ?>
- <?php
- switch($i){
- case 10:
- case 11:
- case 12: adsRowFour(); break;
- default:
- echo "";
- }
- ?>
- <?php endwhile; ?>
- </div><!--add_3 END-->
- <?php echo get_template_part('film_category'); ?>
- <div class="fix rommo">
- <div class="fix catagory_name_plus mayeli">
- <div class="fix catagory_name mayeliColor">
- <h1><a href="http://darpon.com/মেয়েলী">মেয়েলী</a></h1>
- </div><!--catagory_name END-->
- <div class="fix catagory_plus mayeliplus">
- <h5><a href="http://darpon.com/মেয়েলী">+</a></h5>
- </div><!--catagory_plus END-->
- </div><!--catagory_name_plus END-->
- <div class="fix mayeli_matter">
- <ul class="bxslider2">
- <?php query_posts('cat=19&post_type=post&post_status=publish&posts_per_page=18'); ?>
- <?php if(have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <li>
- <div class="fix rommoSlider">
- <div class="fix rommoSliderpic">
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
- <div class="fix slcap">
- <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
- </div><!--slcap END-->
- </div><!--rommoSliderpic END-->
- </div>
- </li><!--rommoSlider END-->
- <?php endwhile; ?>
- <?php endif; ?>
- </ul>
- </div><!--mayeli_matter END-->
- </div><!--rommo END-->
- <?php echo get_template_part('sports_category'); ?>
- <div class="add_3">
- <?php $i=0; while($adsQurey->have_posts()): $adsQurey->the_post(); $i++; ?>
- <?php
- switch($i){
- case 13:
- case 14:
- case 15: adsRowFive(); break;
- default:
- echo "";
- }
- ?>
- <?php endwhile; ?>
- </div><!--add_3 END-->
- <div class="fix catagory6">
- <div class="fix photogellary">
- <h2><a href="http://darpon.com/ছবিঘর">ছবিঘর</a></h2>
- <ul class="bxsliderphoto">
- <?php query_posts('cat=25&post_type=post&post_status=publish&posts_per_page=10'); ?>
- <?php if(have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="fix photoBox">
- <div class="fix photoBoxPic">
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
- </div><!--photoBoxPic END-->
- <div class="fix photoBoxCaption">
- <h5><a href="<?php the_title(); ?>"><?php the_title(); ?></a></h5>
- </div><!--photoBoxCaption END-->
- </div><!--photoBox END-->
- <?php endwhile; ?>
- <?php endif; ?>
- </ul>
- </div><!--photogellary END-->
- <div class="fix feature">
- <div class="fix feature_part">
- <div class="fix catagory_name_plus literature">
- <div class="fix catagory_name literatureColor">
- <h1><a href="http://darpon.com/সাহিত্য">সাহিত্য</a></h1>
- </div><!--catagory_name END-->
- <div class="fix catagory_plus ltplus">
- <h5><a href="http://darpon.com/সাহিত্য">+</a></h5>
- </div><!--catagory_plus END-->
- </div><!--catagory_name_plus END-->
- <?php query_posts('cat=17&post_type=post&post_status=publish&posts_per_page=1'); ?>
- <?php if(have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="literaturePart">
- <div class="fix literature_pic">
- <?php the_post_thumbnail(); ?>
- </div><!--literature_pic END-->
- <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
- <div class="fix ltbody">
- <p><?php echo excerpt('30'); ?></p>
- </div><!--ltbody END-->
- </div><!--literaturePart END-->
- <?php endwhile; ?>
- <?php endif; ?>
- <div class="fix literaturePart">
- <ul>
- <?php query_posts('cat=17&post_type=post&post_status=publish&posts_per_page=10');
- $i = 0; ?>
- <?php if(have_posts()) : ?>
- <?php while (have_posts()) : the_post(); $i++;
- if($i==1) continue;?>
- <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
- </li>
- <?php endwhile; ?>
- <?php endif; ?>
- </ul>
- </div><!--literaturePart END-->
- </div><!--feature_part END-->
- </div><!--feature END-->
- </div><!--catagory6 END-->
- <div class="catagory7">
- <div class="fix rommo">
- <div class="fix catagory_name_plus rommohead">
- <div class="fix catagory_name rommoheadColor">
- <h1><a href="http://darpon.com/রম্য">রম্য</a></h1>
- </div><!--catagory_name END-->
- <div class="fix catagory_plus rmplus">
- <h5><a href="http://darpon.com/রম্য">+</a></h5>
- </div><!--catagory_plus END-->
- </div><!--catagory_name_plus END-->
- <div class="fix rommo_matter">
- <ul class="bxslider3">
- <?php query_posts('cat=23&post_type=post&post_status=publish&posts_per_page=18'); ?>
- <?php if(have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <li>
- <div class="fix rommoSlider">
- <div class="fix rommoSliderpic">
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
- <div class="fix slcap">
- <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
- </div><!--slcap END-->
- </div><!--rommoSliderpic END-->
- </div>
- </li><!--rommoSlider END-->
- <?php endwhile; ?>
- <?php endif; ?>
- </ul>
- </div><!--rommo_matter END-->
- </div><!--rommo END-->
- <div class="add_3">
- <?php $i=0; while($adsQurey->have_posts()): $adsQurey->the_post(); $i++; ?>
- <?php
- switch($i){
- case 16:
- case 17:
- case 18: adsRowSix(); break;
- default:
- echo "";
- }
- ?>
- <?php endwhile; ?>
- </div><!--add_3 END-->
- </div><!--catagory7 END-->
- <div class="fix catagory8">
- <div class="fix iteam4">
- <div class="fix iteam4_1">
- <div class="fix catagory_name_plus iteam4head">
- <div class="fix catagory_name item4Color">
- <h1><a href="http://darpon.com/সংস্কৃতি-ঐতিহ্য">সংস্কৃতি ঐতিহ্য</a></h1>
- </div><!--catagory_name END-->
- <div class="fix catagory_plus iteam4plus">
- <h5><a href="http://darpon.com/সংস্কৃতি-ঐতিহ্য">+</a></h5>
- </div><!--catagory_plus END-->
- </div><!--catagory_name_plus END-->
- <?php query_posts('cat=22&post_type=post&post_status=publish&posts_per_page=1'); ?>
- <?php if(have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="fix iteamPicBox">
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
- </div><!--iteamPicBox END-->
- <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
- <?php endwhile; ?>
- <?php endif; ?>
- <ul>
- <?php query_posts('cat=22&post_type=post&post_status=publish&posts_per_page=5');
- $i = 0; ?>
- <?php if(have_posts()) : ?>
- <?php while (have_posts()) : the_post(); $i++;
- if($i==1) continue;?>
- <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
- </li>
- <?php endwhile; ?>
- <?php endif; ?>
- </ul>
- </div><!--iteam4 END-->
- <div class="iteam4_1">
- <div class="fix catagory_name_plus iteam4head">
- <div class="fix catagory_name item4Color">
- <h1><a href="http://darpon.com/চিকিৎসা">চিকিৎসা</a></h1>
- </div><!--catagory_name END-->
- <div class="fix catagory_plus iteam4plus">
- <h5><a href="http://darpon.com/চিকিৎসা">+</a></h5>
- </div><!--catagory_plus END-->
- </div><!--catagory_name_plus END-->
- <?php query_posts('cat=20&post_type=post&post_status=publish&posts_per_page=1'); ?>
- <?php if(have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="fix iteamPicBox">
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
- </div><!--iteamPicBox END-->
- <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
- <?php endwhile; ?>
- <?php endif; ?>
- <ul>
- <?php query_posts('cat=20&post_type=post&post_status=publish&posts_per_page=5');
- $i = 0; ?>
- <?php if(have_posts()) : ?>
- <?php while (have_posts()) : the_post(); $i++;
- if($i==1) continue;?>
- <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
- </li>
- <?php endwhile; ?>
- <?php endif; ?>
- </ul>
- </div><!--iteam4_1 END-->
- <div class="iteam4_1">
- <div class="fix catagory_name_plus iteam4head">
- <div class="fix catagory_name item4Color">
- <h1><a href="http://darpon.com/বিজ্ঞান">বিজ্ঞান</a></h1>
- </div><!--catagory_name END-->
- <div class="fix catagory_plus iteam4plus">
- <h5><a href="http://darpon.com/বিজ্ঞান">+</a></h5>
- </div><!--catagory_plus END-->
- </div><!--catagory_name_plus END-->
- <?php query_posts('cat=21&post_type=post&post_status=publish&posts_per_page=1'); ?>
- <?php if(have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="fix iteamPicBox">
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
- </div><!--iteamPicBox END-->
- <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
- <?php endwhile; ?>
- <?php endif; ?>
- <ul>
- <?php query_posts('cat=21&post_type=post&post_status=publish&posts_per_page=5');
- $i = 0; ?>
- <?php if(have_posts()) : ?>
- <?php while (have_posts()) : the_post(); $i++;
- if($i==1) continue;?>
- <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
- </li>
- <?php endwhile; ?>
- <?php endif; ?>
- </ul>
- </div><!--iteam4_1 END-->
- <div class="iteam4_1">
- <div class="fix catagory_name_plus iteam4head">
- <div class="fix catagory_name item4Color">
- <h1><a href="http://darpon.com/ধর্ম">ধর্ম</a></h1>
- </div><!--catagory_name END-->
- <div class="fix catagory_plus iteam4plus">
- <h5><a href="http://darpon.com/ধর্ম">+</a></h5>
- </div><!--catagory_plus END-->
- </div><!--catagory_name_plus END-->
- <?php query_posts('cat=18&post_type=post&post_status=publish&posts_per_page=1'); ?>
- <?php if(have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="fix iteamPicBox">
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
- </div><!--iteamPicBox END-->
- <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
- <?php endwhile; ?>
- <?php endif; ?>
- <ul>
- <?php query_posts('cat=18&post_type=post&post_status=publish&posts_per_page=5');
- $i = 0; ?>
- <?php if(have_posts()) : ?>
- <?php while (have_posts()) : the_post(); $i++;
- if($i==1) continue;?>
- <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
- </li>
- <?php endwhile; ?>
- <?php endif; ?>
- </ul>
- </div><!--iteam4_1 END-->
- </div><!--iteam4 END-->
- </div><!--catagory8 END-->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement