ok
Direktori : /home2/selectio/public_html/gangabuvana/admin/cms/application/views/ |
Current File : /home2/selectio/public_html/gangabuvana/admin/cms/application/views/view_news_detail.php |
<!--Banner Start--> <div class="banner-slider" style="background-image: url(<?php echo base_url(); ?>public/uploads/<?php echo $news_detail['banner']; ?>)"> <div class="bg"></div> <div class="bannder-table"> <div class="banner-text"> <h1><?php echo $news_detail['news_title']; ?></h1> </div> </div> </div> <!--Banner End--> <!--Blog-One Start--> <div class="blog-one-area pt_60 pb_90"> <div class="container"> <div class="row"> <div class="col-lg-8"> <div class="single-blog"> <img src="<?php echo base_url(); ?>public/uploads/<?php echo $news_detail['photo']; ?>" alt="News Photo"> <h3><?php echo $news_detail['news_title']; ?></h3> <ul> <li><i class="fa fa-edit"></i><a href="<?php echo base_url(); ?>category/<?php echo $news_detail['category_id']; ?>"><?php echo $news_detail['category_name']; ?></a></li> <li><i class="fa fa-calendar-o"></i> <?php $dt = explode('-',$news_detail['news_date']); if($dt[1] == '01') {$month = 'January';} if($dt[1] == '02') {$month = 'February';} if($dt[1] == '03') {$month = 'March';} if($dt[1] == '04') {$month = 'April';} if($dt[1] == '05') {$month = 'May';} if($dt[1] == '06') {$month = 'June';} if($dt[1] == '07') {$month = 'July';} if($dt[1] == '08') {$month = 'August';} if($dt[1] == '09') {$month = 'September';} if($dt[1] == '10') {$month = 'October';} if($dt[1] == '11') {$month = 'November';} if($dt[1] == '12') {$month = 'December';} echo $month . ' ' . $dt[2] . ', ' . $dt[0]; ?> </li> </ul> <?php echo $news_detail['news_content']; ?> </div> <div class="comment-form headstyle mt_50"> <h4><?php echo SHARE_THIS_NEWS; ?></h4> <?php $url = base_url().'news/view/'.$news_detail['news_id']; ?> <div class="share_buttons"> <a class="facebook" target="_blank" href="http://www.facebook.com/sharer.php?u=<?php echo $url; ?>&t=<?php echo $news_detail['news_title']; ?>"><i class="fa fa-facebook-f"></i></a> <a class="twitter" target="_blank" href="https://twitter.com/share?text=<?php echo $news_detail['news_title']; ?>&url=<?php echo $url; ?>"><i class="fa fa-twitter"></i></a> <a class="pinterest" target="_blank" href="https://www.pinterest.com/pin/create/button/?description=<?php echo $news_detail['news_title']; ?>&media=&url=<?php echo $url; ?>"><i class="fa fa-pinterest"></i></a> <a class="linkedin" target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&url=<?php echo $url; ?>&title=<?php echo $news_detail['news_title']; ?>"><i class="fa fa-linkedin"></i></a> </div> </div> <?php if($news_detail['comment'] == 'On'): ?> <div class="comment-form headstyle mt_50"> <h4><?php echo COMMENT; ?></h4> <div class="comment-inner"> <?php $final_url = base_url().'news/view/'.$id; ?> <div class="fb-comments" data-href="<?php echo $final_url; ?>" data-numposts="5"></div> </div> </div> <?php endif; ?> </div> <!--Sidebar Start--> <div class="col-lg-4"> <div class="sidebar"> <div class="sidebar-item"> <?php echo form_open(base_url().'search'); ?> <div class="input-group"> <input type="text" class="form-control" placeholder="<?php echo SEARCH_FOR; ?>" name="search_string" autocomplete="off"> <span class="input-group-btn"> <button class="btn btn-default" type="submit" name="form1"><i class="fa fa-search"></i></button> </span> </div> <?php echo form_close(); ?> </div> <div class="sidebar-item"> <h3><?php echo SIDEBAR_NEWS_HEADING_1; ?></h3> <ul> <?php foreach($all_categories as $row) { ?> <li><a href="<?php echo base_url(); ?>category/<?php echo $row['category_id']; ?>"><?php echo $row['category_name']; ?></a></li> <?php } ?> </ul> </div> <div class="sidebar-item"> <h3><?php echo SIDEBAR_NEWS_HEADING_2; ?></h3> <?php $i=0; foreach($news as $row) { $i++; if($i>$setting['sidebar_total_recent_post']) { break; } ?> <div class="sidebar-recent-item"> <div class="recent-photo"> <a href="<?php echo base_url(); ?>news/view/<?php echo $row['news_id']; ?>"><img src="<?php echo base_url().'public/uploads/'.$row['photo']; ?>" alt="Blog Photo"></a> </div> <div class="recent-text"> <a href="<?php echo base_url(); ?>news/view/<?php echo $row['news_id']; ?>"><?php echo $row['news_title']; ?></a> <div class="rpwwt-post-date"> <?php $dt = explode('-',$row['news_date']); if($dt[1] == '01') {$month = 'January';} if($dt[1] == '02') {$month = 'February';} if($dt[1] == '03') {$month = 'March';} if($dt[1] == '04') {$month = 'April';} if($dt[1] == '05') {$month = 'May';} if($dt[1] == '06') {$month = 'June';} if($dt[1] == '07') {$month = 'July';} if($dt[1] == '08') {$month = 'August';} if($dt[1] == '09') {$month = 'September';} if($dt[1] == '10') {$month = 'October';} if($dt[1] == '11') {$month = 'November';} if($dt[1] == '12') {$month = 'December';} echo $month . ' ' . $dt[2] . ', ' . $dt[0]; ?> </div> </div> </div> <?php } ?> </div> </div> </div> <!--Sidebar End--> </div> </div> </div> <!--Blog-One End-->