Skip to content

Instantly share code, notes, and snippets.

@mahbub-shohag
Created October 5, 2016 03:25
Show Gist options
  • Save mahbub-shohag/8ecb97397e599c31c8328f7a0af4a9cc to your computer and use it in GitHub Desktop.
Save mahbub-shohag/8ecb97397e599c31c8328f7a0af4a9cc to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<!--[if IE 7]>
<html class="ie ie7" lang="en-US">
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8" lang="en-US">
<![endif]-->
<!--[if IE 9]>
<html class="ie ie9" lang="en-US">
<![endif]-->
<!--[if !(IE 7) | !(IE 8) | !(IE 9) ]><!-->
<html lang="en-US">
<!--<![endif]-->
<head>
<title>Welcome to Talimuddin Foundation | Home</title>
<meta charset="UTF-8" />
<link rel="shortcut icon" href="images/favicon.ico" title="Favicon"/>
<meta name="viewport" content="width=device-width" />
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css">
<style type="text/css">
@font-face {
font-family: riad;
src: local(riad), url('fonts/SolaimanLipi_20-04-07.ttf') format('opentype');
}
*{
font-family: riad;
}
</style>
<link rel='stylesheet' id='magz-style-css' href='style.css' type='text/css' media='all' />
<link rel='stylesheet' id='swipemenu-css' href='css/swipemenu.css' type='text/css' media='all' />
<link rel='stylesheet' id='flexslider-css' href='css/flexslider.css' type='text/css' media='all' />
<link rel='stylesheet' id='bootstrap-css' href='css/bootstrap.css' type='text/css' media='all' />
<link rel='stylesheet' id='bootstrap-responsive-css' href='css/bootstrap-responsive.css' type='text/css' media='all' />
<link rel='stylesheet' id='simplyscroll-css' href='css/jquery.simplyscroll.css' type='text/css' media='all' />
<link rel='stylesheet' id='jPages-css' href='css/jPages.css' type='text/css' media='all' />
<link rel='stylesheet' id='rating-css' href='css/jquery.rating.css' type='text/css' media='all' />
<link rel='stylesheet' id='ie-styles-css' href='css/ie.css' type='text/css' media='all' />
<link rel='stylesheet' id='Roboto-css' href='http://fonts.googleapis.com/css?family=Roboto' type='text/css' media='all' />
<script type='text/javascript' src="js/jquery-1.10.2.min.js"></script>
<script type='text/javascript' src='js/html5.js'></script>
<script type='text/javascript' src='js/bootstrap.min.js'></script>
<script type='text/javascript' src='js/jquery.flexslider.js'></script>
<script type='text/javascript' src='js/jquery.flexslider.init.js'></script>
<script type='text/javascript' src='js/jquery.bxslider.js'></script>
<script type='text/javascript' src='js/jquery.bxslider.init.js'></script>
<script type='text/javascript' src='js/jquery.rating.js'></script>
<script type='text/javascript' src='js/jquery.idTabs.min.js'></script>
<script type='text/javascript' src='js/jquery.simplyscroll.js'></script>
<script type='text/javascript' src='js/fluidvids.min.js'></script>
<script type='text/javascript' src='js/jPages.js'></script>
<script type='text/javascript' src='js/jquery.sidr.min.js'></script>
<script type='text/javascript' src='js/jquery.touchSwipe.min.js'></script>
<script type='text/javascript' src='js/custom.js'></script>
<!-- END -->
<!--Resource tab start-->
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false);
function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- //for-mobile-apps -->
<link href="accordion/css/stylemodified.css" rel="stylesheet" type="text/css" media="all" />
<link href='//fonts.googleapis.com/css?family=Raleway:400,100,200,300,500,600,700,800,900' rel='stylesheet' type='text/css'>
<!--Resource tab end-->
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.0/themes/base/jquery-ui.css">
<link rel="stylesheet" href="/resources/demos/style.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.0/jquery-ui.js"></script>
<script>
$( function() {
$( "#tabs" ).tabs();
} );
</script>
<style>
.imagemid{
width: 371px;
height: 177px;
}
</style>
</head>
<body>
<div id="page">
<header id="header" class="container">
<div id="mast-head">
<div id="logo">
<a href="index.php" title="Talimuddin" rel="home"><img src="images/logo.jpg" style="width:30px; height:30px;" alt="Magazine" /> তালিমুদ্দীন ফাউন্ডেশন</a>
</div>
</div>
<nav class="navbar navbar-inverse clearfix nobot">
<?php include_once('common/menu.php'); ?>
</nav><!-- /.navbar -->
</header><!-- #masthead -->
<?php
include_once ('vendor/autoload.php');
use App\Posts;
$obj=new Posts();
$allpost=$obj->get_allpost();
$data=$obj->get_banner_post();
$selected_post=$obj->get_banner_middle_post();
$recent_post=$obj->get_recent_post();
$best_of_month=$obj->get_best_of_month_post();
//$quran_post=$obj->get_quran_post();
$breaking_news=$obj->breaking_news();
$tags=$obj->get_post_tags();
$get_parent_postcategory=$obj->get_all_parent_postcategory();
//$get_All_parent_post=$obj->get_all_parent_post();
/*print_r($quran_post);die();*/
?>
<div id="headline" class="container">
<?php include('common/headline.php') ?>
</div>
<div id="intr" class="container">
<div class="row-fluid">
<div class="brnews span9">
<h3>ব্রেকিং নিউজ</h3>
<ul id="scroller">
<?php
foreach ($breaking_news as $row) {
$nid=$row['id'];
?>
<li><p><a href="singlepost.php?id=<?php echo $nid;?>"title="Permalink to Lectus non rutrum pulvinar urna leo dignissim lorem" rel="bookmark"><span class="title"><?php echo $row['caption'];?></span> <?php echo $row['caption'];?></a></p></li>
<?php
}
?>
</ul>
</div>
<div class="search span3"><div class="offset1">
<form method="get" id="searchform" action="#">
<p><input type="text" value="Search here..." onfocus="if ( this.value == 'Search here...' ) { this.value = ''; }" onblur="if ( this.value == '' ) { this.value = 'Search here...'; }" name="s" id="s" />
<input type="submit" id="searchsubmit" value="Search" /></p>
</form>
</div></div>
</div>
</div>
<div id="content" class="container">
<div id="main" class="row-fluid">
<div id="main-left" class="span8">
<div id="slider" class="clearfix">
<div id="slide-left" class="flexslider span8">
<ul class="slides">
<?php
$count=0;
foreach ($data as $row)
{
$count++;
if($count!=3)
{
$image=$row['img_mid'];
$slid=$row['id'];
echo '<li data-thumb="images/dummy/">
<a href="singlepost.php?id='.$slid.'" title="Permalink to Morbi est est lectus non rutrum commodo felis quis tortor" rel="bookmark">
<img width="546" height="291" src="post/'.$image.'" alt='.$image.' />
</a>
<div class="entry">
<h4>'.$row['caption'].'</h4>
<p>Read More..</p>
</div>
</li>';
}
if($count==3)
{
}
}
?>
</ul>
</div>
<div id="slide-right" class="span4">
<h3>নির্বাচিত পোস্ট</h3>
<ul>
<?php
foreach ($selected_post as $item)
{
$id=$item['id'];
echo '<li><a href="singlepost.php?id='.$id.'" title="Permalink to Lectus non rutrum pulvinar urna leo dignissim lorem" rel="bookmark"><h4 class="post-title">'.$item['caption'].'</h4></a></li>';
}
?>
</ul><div class="clear"></div>
</div>
</div>
<?php
//print_r($get_parent_postcategory);die();
foreach ($get_parent_postcategory as $row)
{?>
<div id="home-top">
<h3 class="title"><span><?php echo $row['caption']; ?></span></h3>
<ul class="bxslider">
<?php
$quran_post=$obj->get_commun_post($row['id']);
foreach ($quran_post as $item)
{
echo date("M j, Y",$item['post_date']);
$img=$item['img_orgi'];
echo '<li><a class="image_thumb_zoom" href="singlepost.php?id='.$item['id'].'" title="Permalink to Donec consectetuer ligula vulputate sem tristique cursus" rel="bookmark">
<img style="width: 225px;height: 136px" width="225" height="136" src="post/'.$img.'" alt="No Image Found"/>
</a>
<h4 class="post-title clearfix">
<a href="#" title="Permalink to Donec consectetuer ligula vulputate sem tristique cursus" rel="bookmark">'.$item['caption'].'</a>
<a href="#" title="Permalink to Donec consectetuer ligula vulputate sem tristique cursus" rel="bookmark"><span ><br><i style{margin-top:3px;color:gray} class="fa fa-calendar"></i><span> </span>'.date("M j, Y",$item['post_date']).'</span></a></br>
<a href="#" title="Permalink to Donec consectetuer ligula vulputate sem tristique cursus" rel="bookmark">--'.$item['display_name'].'</a>
</h4>
</li>';
}
?>
</ul>
</div>
<?php }
?>
<div id="home-middle" class="clearfix">
<div class="left span6">
<h3 class="title"><a href="#" title="Al Quran"><span> আপনাদের লেখা</span></a></h3>
<div class="row-fluid">
<?php
$yourwritings=$obj->get_commun_post(2);
$ii=0;
foreach($yourwritings as $yw )
{
$thisid=$yw['id'];
$ii++;
if($ii==1){?>
<article class="post">
<!--<a class="image_thumb_zoom" href="<?php echo "singlepost.php?id=$thisid"?>" title="Permalink to Integer vitae libero ac risus egestas placerat urna" rel="bookmark">
<img class="imagemid" width="371" height="177" src="post/<?php echo $yw['img_orgi']; ?>" class="attachment-post-first wp-post-image" alt="shutterstock_58382248" />
</a>-->
<a class="image_thumb_zoom" href="<?php echo "singlepost.php?id=$thisid"?>" title="Permalink to Integer vitae libero ac risus egestas placerat urna" rel="bookmark">
<img class="imagemid" width="371" height="177" src="post/<?php echo $yw['img_orgi']; ?>" class="attachment-post-first wp-post-image" alt="shutterstock_58382248" />
</a>
<h4 class="post-title">
<a href="<?php echo "singlepost.php?id=$thisid"?>" title="Permalink to Integer vitae libero ac risus egestas placerat urna" rel="bookmark"><?php echo $yw['caption'];?></a>
<span class="date"><?php echo date("M j, Y",$item['post_date']);?></span>
</h4>
<p><?php
$truncated = (strlen($yw['content']) > 20) ? substr($yw['content'], 0, 400) . '...' : $yw['content'];
echo $truncated;
?>
</p>
</article>
<?php } else{?>
<article class="post">
<div class="entry clearfix">
<a href="<?php echo "singlepost.php?id=$thisid"?>" title="Permalink to Morbi est est lectus non rutrum commodo felis quis tortor" rel="bookmark">
<img width="225" height="136" src="post/<?php echo $yw['img_thmb'];?>" class="thumb" alt="photodune-3834701-laughing-girl-xs" />
<h4 class="post-title"><?php echo $yw['caption'];?></h4>
</a>
<p><?php
$truncated = (strlen($yw['content']) > 20) ? substr($yw['content'], 0, 150) . '...' : $yw['content'];
echo $truncated;
?></p>
<div class="meta">
<span class="date"><?php echo date("M j, Y",$item['post_date']);?></span>
</div>
</div>
</article>
<?php }}?>
<!--<div class="clearfix"></div>-->
</div>
</div>
<div id="home-middle" class="clearfix">
<div class="left span6">
<h3 class="title"><a href="#" title="Al Quran"><span> ছোটদের বিজ্ঞান</span></a></h3>
<div class="row-fluid">
<?php
$yourwritings=$obj->get_commun_post(4);
$ii=0;
foreach($yourwritings as $yw )
{
$ywid=$yw['id'];
$ii++;
if($ii==1){?>
<article class="post">
<a class="image_thumb_zoom" href="<?php echo "singlepost.php?id=$ywid"?>" title="Permalink to Integer vitae libero ac risus egestas placerat urna" rel="bookmark">
<img class="imagemid" width="371" height="177" src="post/<?php echo $yw['img_orgi']; ?>" class="attachment-post-first wp-post-image" alt="shutterstock_58382248" />
</a>
<h4 class="post-title">
<a href="$ywid" title="Permalink to Integer vitae libero ac risus egestas placerat urna" rel="bookmark"><?php echo $yw['caption'];?></a>
<span class="date"><?php echo date("M j, Y",$item['post_date']);?></span>
</h4>
<p><?php
$truncated = (strlen($yw['content']) > 20) ? substr($yw['content'], 0, 400) . '...' : $yw['content'];
echo $truncated;
?></p>
</article>
<?php } else{?>
<article class="post">
<div class="entry clearfix">
<a href="#" title="Permalink to Morbi est est lectus non rutrum commodo felis quis tortor" rel="bookmark">
<img width="225" height="136" src="post/<?php echo $yw['img_thmb'];?>" class="thumb" alt="photodune-3834701-laughing-girl-xs" />
<h4 class="post-title"><?php echo $yw['caption'];?></h4>
</a>
<p><?php
$truncated = (strlen($yw['content']) > 20) ? substr($yw['content'], 0, 150) . '...' : $yw['content'];
echo $truncated;
?></p>
<div class="meta">
<span class="date"><?php echo date("M j, Y",$item['post_date']);?></span>
</div>
</div>
</article>
<?php }}?>
<div class="clearfix"></div>
</div>
</div>
</div>
<div id="home-bottom" class="clearfix">
<h3 class="title"><a href="#" title="Fashion News"><span>গুরুত্বপুরন খবর</span></a></h3>
<div id="tabs">
<?php $postcategory=$obj->get_all_parent_postcategorybydept(12); ?>
<ul>
<?php
$dep_categories=array();
$u=0;
foreach ($postcategory as $aitem) {
$dep_categories[$u]=$aitem['id'];
$u++;
echo '<li><a href="#tabs-' . $u . '">' . $aitem['caption'] . '</a></li>';
}
?>
</ul>
<?php
for($b=0;$b<$u;$b++)
{
$posts_for_tabs=$obj->get_commun_post($dep_categories[$b]);
$j=1;
foreach ($posts_for_tabs as $itm)
{
$posts[$b][$j++] = $itm;
}
}
/*echo "<pre>";
print_r($posts);
echo "</pre>";
die();*/
?>
<?php for($h=0;$h<$u;$h++)
{
?>
<div id="tabs-<?php echo $h+1;?>">
<div class="row-fluid">
<div class="span6">
<article class="post">
<a class="image_thumb_zoom" href="singlepost.php?id=<?php echo $posts[$h][1]['id'];?>" title="Permalink to Lectus non rutrum pulvinar urna leo dignissim lorem" rel="bookmark">
<img class="imagemid" width="371" height="177" src="post/<?php echo $posts[$h][1]['img_orgi'];?>" alt="No Image Found!" />
</a>
<h4 class="post-title">
<a href="#" title="Permalink to Lectus non rutrum pulvinar urna leo dignissim lorem" rel="bookmark"><?php echo $posts[$h][1]['caption']; ?></a>
<span class="date"><?php echo date("M j, Y",$posts[$h][1]['post_date']);?></span>
</h4>
<p><?php
$truncated = (strlen($posts[$h][1]['content']) > 20) ? substr($posts[$h][1]['content'], 0, 200) . '...' : $posts[$h][1]['content'];
echo $truncated;
?></p>
</article>
</div>
<div class="span6">
<?php
/*echo "<pre>";
print_r($posts[$h]);
echo "</pre>";*/
$no=count($posts[$h]);
if($no>1) {
for ($g = 2; $g <= $no; $g++) {
?>
<article class="post">
<div class="entry clearfix">
<a href="singlepost.php?id=<?php echo $posts[$h][$g]['id'];?>"
title="Permalink to Suspen disse auctor dapibus neque pulvinar urna leo"
rel="bookmark">
<img width="225" height="136"
src="post/<?php echo $posts[$h][$g]['img_thmb']; ?>"
class="thumb" alt="shutterstock_70184773"/>
<h4 class="post-title"><?php echo $posts[$h][$g]['caption']; ?></h4>
</a>
<p><?php
$truncated = (strlen($posts[$h][1]['content']) > 20) ? substr($posts[$h][1]['content'], 0, 200) . '...' : $posts[$h][1]['content'];
echo $truncated;
?></p></p>
<div class="meta">
<span class="date"><?php echo date("M j, Y",$posts[$h][$g]['post_date']);?></span>
</div>
</div>
</article>
<?php
}
}
?>
<div class="clearfix"></div>
</div>
</div><!-- row-fluid-->
</div><!-- tab -->
<?php } ?>
</div>
</div>
</div>
</div><!-- #main-left -->
<div id="sidebar" class="span4">
<div id="tabwidget" class="widget tab-container">
<ul id="tabnav" class="clearfix">
<li><h3><a href="#tab1" class="selected"><img src="images/view-white-bg.png" alt="Popular">জনপ্রিয়</a></h3></li>
<li><h3><a href="#tab2"><img src="images/time-white.png" alt="Recent">সাম্প্রতিক</a></h3></li>
<li><h3><a href="#tab3"><img src="images/komen-putih.png" alt="Comments">ট্যাগ</a></h3></li>
</ul>
<div id="tab-content">
<div id="tab1" style="display: block; ">
<ul id="itemContainer" class="recent-tab">
<?php
foreach ($best_of_month as $item)
{?>
<li>
<a href="singlepost.php?id=<?php echo $item['id'];?>"><img width="225" height="136" src="post/<?php echo $item['img_thmb'];?>" class="thumb" alt="shutterstock_134257640" /></a>
<h4 class="post-title"><a href="singlepost.php?id=<?php echo $item['id'];?>"><?php echo $item['caption'];?></a></h4>
<p><?php
$truncated = (strlen($item['content']) > 20) ? substr($item['content'], 0, 200) . '...' : $item['content'];
echo $truncated;
?></p>
<div class="clearfix"></div>
</li>
<?php }
?>
<script type="text/javascript">
jQuery(document).ready(function($){
/* initiate the plugin */
$("div.holder").jPages({
containerID : "itemContainer",
perPage : 3,
startPage : 1,
startRange : 1,
links : "blank"
});
});
</script>
</ul>
<div class="holder clearfix"></div>
<div class="clear"></div>
<!-- End most viewed post -->
</div><!-- /#tab1 -->
<div id="tab2" style="display: none;">
<ul id="itemContainer2" class="recent-tab">
<?php
foreach ($recent_post as $item)
{?>
<li>
<a href="<?php echo "singlepost.php?id=".$item['id'];?>"><img width="225" height="136" src="post/<?php echo $item['img_thmb'];?>" class="thumb" alt="shutterstock_134257640" /></a>
<h4 class="post-title"><a href="<?php echo "singlepost.php?id=".$item['id'];?>"><?php echo $item['caption'];?></a></h4>
<p><?php
$truncated = (strlen($item['content']) > 20) ? substr($item['content'], 0, 250) . '...' : $item['content'];
echo $truncated;
?></p>
<div class="clearfix"></div>
</li>
<?php }
?>
</ul>
</div><!-- /#tab2 -->
<div id="tab3" style="display: none; ">
<div class="widget">
<div class="tagcloud">
<?php
foreach ($tags as $item)
{?>
<a href="singlepost.php?id=<?php echo $item['id'];?>"><?php echo $item['caption'];?></a>
<?php }
?>
</div>
</div>
</div><!-- /#tab2 -->
</div><!-- /#tab-content -->
</div><!-- /#tab-widget -->
<!-- Resource Tabs start -->
<div class="maina">
<h1>ইসলামিক রিসোর্স সমূহ</h1>
<section class="ac-container">
<div>
<input id="ac-1" name="accordion-1" type="checkbox" />
<label for="ac-1" class="grid1"><i></i>ইসলামিক বই</label>
<article class="ac-small">
<ul>
<li><a href="books.php?id=11">বাংলা</a></li>
<li><a href="books.php?id=12">উর্দু</a></li>
<li><a href="books.php?id=14">আরবি</a></li>
<li><a href="books.php?id=13">English</a></li>
</ul>
</article>
</div>
<div>
<input id="ac-2" name="accordion-1" type="checkbox" />
<label for="ac-2" class="grid2"><i></i>ইসলামিক ভিডিও</label>
<article class="ac-small">
<ul>
<li><a href="videos.php?id=11">বাংলা</a></li>
<li><a href="videos.php?id=12">উর্দু</a></li>
<li><a href="videos.php?id=14">আরবি</a></li>
<li><a href="videos.php?id=13">English</a></li>
</ul>
</article>
</div>
<div>
<input id="ac-3" name="accordion-1" type="checkbox" />
<label for="ac-3" class="grid3"><i></i>অডিও</label>
<article class="ac-small">
<ul>
<li><a href="audios.php?id=11">বাংলা</a></li>
<li><a href="audios.php?id=12">উর্দু</a></li>
<li><a href="audios.php?id=14">আরবি</a></li>
<li><a href="audios.php?id=13">English</a></li>
</ul>
</article>
</div>
<div>
<input id="ac-4" name="accordion-1" type="checkbox" />
<label for="ac-4" class="grid4"><i></i>ছবি</label>
<article class="ac-small">
<ul>
<li><a href="photos.php?id=11">বাংলা</a></li>
<li><a href="photos.php?id=12">উর্দু</a></li>
<li><a href="photos.php?id=14">আরবি</a></li>
<li><a href="photos.php?id=13">English</a></li>
</ul>
</article>
</div>
<!--<div>
<input id="ac-5" name="accordion-1" type="checkbox" />
<label for="ac-5" class="grid5"><i></i>Transfer in RUBLE</label>
<article class="ac-small">
<ul>
<li><a href="#">Transfer in DOLLAR</a></li>
<li><a href="#">Transfer in YEN</a></li>
<li><a href="#">Transfer in RUPEE</a></li>
<li><a href="#">Transfer in RUBLE</a></li>
<li><a href="#">Transfer in EUROS</a></li>
</ul>
</article>
</div>
<div>
<input id="ac-6" name="accordion-1" type="checkbox" />
<label for="ac-6" class="grid6"><i></i>Bill Payments</label>
<article class="ac-small">
<ul>
<li><a href="#">Account Info</a></li>
<li><a href="#">Statement</a></li>
<li><a href="#">Top Up Account</a></li>
<li><a href="#">Open New Account</a></li>
<li><a href="#">List Of Operations</a></li>
</ul>
</article>
</div>
<div>
<input id="ac-7" name="accordion-1" type="checkbox" />
<label for="ac-7" class="grid7"><i></i>Currency Exchange</label>
<article class="ac-small">
<ul>
<li><a href="#">My Accounts</a></li>
<li><a href="#">Statement</a></li>
<li><a href="#">Top Up Account</a></li>
<li><a href="#">Open New Account</a></li>
<li><a href="#">List Of Operations</a></li>
</ul>
</article>
</div>-->
</section>
</div>
<!-- Resource Tabs end -->
<div class="widget widget_latestpost">
<h3 class="title"><span>নির্বাচিত পোষ্ট</span></h3>
<div class="latest-posts widget">
<?php
foreach ($obj->get_banner_middle_post() as $sp)
{?>
<div class="latest-post clearfix">
<a href="<?php echo "singlepost.php?id=".$sp['id'];?>"><img width="225" height="136" src="post/<?php echo $sp['img_thmb'];?>" class="thumb fl" alt="shutterstock_134257640" title="" /></a>
<h4><a href="singlepost.php?id=<?php echo $item['id'];?>" rel="bookmark" title="Lectus non rutrum pulvinar urna leo dignissim lorem"><?php echo $sp['caption'];?></a></h4>
<div class="post-time"><?php $sp['post_date']; ?></div>
<div class="ratings" style="float: none">
<input class="star" type="radio" name="recent-post-<?php echo $h;?>" value="<?php echo $h;?>" disabled="disabled"/>
</div>
</div>
<?php } ?>
</div>
</div>
<div class="widget widget_latestpost"><h3 class="title"><span>সর্বাধিক আলোচিত সংবাদ</span></h3>
<div class="latest-posts">
<?php
foreach ($obj->get_banner_middle_post() as $mr)
{?>
<article class="post">
<a class="image_thumb_zoom" href="<?php echo "singlepost.php?id=".$mr['id'];?>" title="Permalink to Porta lorem ipsum dolor sit amet, consectetur adipiscing risus" rel="bookmark">
<img width="371" height="177" src="post/<?php echo $mr['img_thmb']?>" class="attachment-post-first wp-post-image" alt="shutterstock_70787161" />
</a>
<h4 class="post-title">
<a href="#" title="Permalink to Porta lorem ipsum dolor sit amet, consectetur adipiscing risus" rel="bookmark"><?php echo $mr['caption'];?></a>
<span class="date">August 2, 2013</span>
</h4>
<p><?php
$truncated = (strlen($yw['content']) > 20) ? substr($yw['content'], 0, 400) . '...' : $yw['content'];
echo $truncated;
?></p>
</article>
<?php } ?>
</div>
</div>
<div class="video-box widget row-fluid">
<h3 class="title"><span style="background-color: #;color: #;">Videos Gallery</span></h3>
<iframe width="369" height="188" src="https://www.youtube.com/embed/1DxLXL-_cL8" frameborder="0" allowfullscreen></iframe>
<ul>
</ul>
</div>
</div><!-- sidebar -->
<div class="clearfix"></div>
<div id="gallery">
<h3 class="title"><span>মহিলাঙ্গন</span></h3>
<ul class="gallery">
<?php
$mohilangon_posts=$obj->get_commun_post(2);
foreach ($mohilangon_posts as $mo)
{
?>
<li>
<a class="image_thumb_zoom" href="<?php echo "singlepost.php?id=".$mo['id'];?>" title="Permalink to Fusce pellentesque suscipit nibh massa porta molestie iaculis" rel="bookmark">
<img style="width: 225px;height: 136px" height="136" width="225" src="post/<?php echo $mo['img_orgi'];?>" alt="shutterstock_70184773" />
</a>
<a href="<?php echo "singlepost.php?id=".$mo['id'];?>" title="Permalink to Fusce pellentesque suscipit nibh massa porta molestie iaculis" rel="bookmark">
<h4 class="post-title clearfix"><img class="post-icon" alt="Text post" src="images/text.png"><?php echo $mo['caption'];?></h4></a>
<div class="meta clearfix">
<span class="date">July 30, 2013</span>
</div>
</li>
<?php } ?>
<!--<li>
<a class="image_thumb_zoom" href="#" title="Permalink to Praesent placerat risus quis pellentesque suscipit nibh ultricies nulla" rel="bookmark">
<img width="225" height="136" src="images/dummy/shutterstock_70184773-225x136.jpg" alt="shutterstock_70184773" />
</a>
<a href="#" title="Permalink to Praesent placerat risus quis pellentesque suscipit nibh ultricies nulla" rel="bookmark">
<h4 class="post-title clearfix"><img class="post-icon" alt="Gallery post" src="images/image.png"> Praesent placerat risus quis pellen...</h4>
</a>
<div class="meta clearfix">
<span class="date">July 30, 2013</span>
</div>
</li>
<li>
<a class="image_thumb_zoom" href="#" title="Permalink to Integer malesuada commodo nulla ligula vulputate sem tristique" rel="bookmark">
<img width="225" height="136" src="images/dummy/shutterstock_109209743-225x136.jpg" alt="shutterstock_109209743" />
</a>
<a href="#" title="Permalink to Integer malesuada commodo nulla ligula vulputate sem tristique" rel="bookmark">
<h4 class="post-title clearfix"><img class="post-icon" alt="Photo" src="images/photo.png"> Integer malesuada commodo nulla lig...</h4>
</a>
<div class="meta clearfix">
<span class="date">July 30, 2013</span>
</div>
</li>
<li>
<a class="image_thumb_zoom" href="#" title="Permalink to Vestibulum volutpat tortor libero sodales leo mauris ut lectus" rel="bookmark">
<img width="225" height="136" src="images/dummy/photodune-3517559-idea-s-225x136.jpg" alt="photodune-3517559-idea-s" />
</a>
<a href="#" title="Permalink to Vestibulum volutpat tortor libero sodales leo mauris ut lectus" rel="bookmark">
<h4 class="post-title clearfix"><img class="post-icon" alt="Video post" src="images/vid.png"> Vestibulum volutpat tortor libero s...</h4>
</a>
<div class="meta clearfix">
<span class="date">July 30, 2013</span>
</div>
</li>
<li>
<a class="image_thumb_zoom" href="#" title="Permalink to Fusce accumsan mollis eros amet interdum consectetuer" rel="bookmark">
<img width="225" height="136" src="images/dummy/shutterstock_2114081-225x136.jpg" alt="shutterstock_2114081" />
</a>
<a href="#" title="Permalink to Fusce accumsan mollis eros amet interdum consectetuer" rel="bookmark">
<h4 class="post-title clearfix"><img class="post-icon" alt="Text post" src="images/text.png"> Fusce accumsan mollis eros amet int...</h4>
</a>
<div class="meta clearfix">
<span class="date">July 30, 2013</span>
</div>
</li>
<li>
<a class="image_thumb_zoom" href="#" title="Permalink to Quisque fermentum penatibus et magnis dis parturient montes" rel="bookmark">
<img width="225" height="136" src="images/dummy/shutterstock_58382248-225x136.jpg" alt="shutterstock_58382248" />
</a>
<a href="#" title="Permalink to Quisque fermentum penatibus et magnis dis parturient montes" rel="bookmark">
<h4 class="post-title clearfix"><img class="post-icon" alt="Gallery post" src="images/image.png"> Quisque fermentum penatibus et magn...</h4>
</a>
<div class="meta clearfix">
<span class="date">July 30, 2013</span>
</div>
</li>
<li>
<a class="image_thumb_zoom" href="#" title="Permalink to Proin malesuada adipiscing lacus imperdiet nibh feugiat" rel="bookmark">
<img width="225" height="136" src="images/dummy/shutterstock_134257640-225x136.jpg" alt="shutterstock_134257640" />
</a>
<a href="#" title="Permalink to Proin malesuada adipiscing lacus imperdiet nibh feugiat" rel="bookmark">
<h4 class="post-title clearfix"><img class="post-icon" alt="Photo" src="images/photo.png"> Proin malesuada adipiscing lacus im...</h4>
</a>
<div class="meta clearfix">
<span class="date">July 30, 2013</span>
</div>
</li>
<li>
<a class="image_thumb_zoom" href="#" title="Permalink to Vivamus ultrices luctus nunc sem sit amet interdum consectetuer" rel="bookmark">
<img width="225" height="136" src="images/dummy/photodune-2043745-college-student-s-225x136.jpg" alt="photodune-2043745-college-student-s" />
</a>
<a href="#" title="Permalink to Vivamus ultrices luctus nunc sem sit amet interdum consectetuer" rel="bookmark">
<h4 class="post-title clearfix"><img class="post-icon" alt="Video post" src="images/vid.png"> Vivamus ultrices luctus nunc sem si...</h4>
</a>
<div class="meta clearfix">
<span class="date">July 18, 2013</span>
</div>
</li>-->
</ul>
</div>
</div><!-- #main -->
</div><!-- #content -->
<footer id="footer" class="row-fluid">
<?php
include('common/footer/footer.php');
include('common/footer/siteInfo.php');
?>
</footer>
</div><!-- #wrapper -->
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment