PHP Classes

File: contents/themes/simplecolor/view/tag.php

Recommend this page to a friend!
  Classes of Minh Tien   Noblesse CMS   contents/themes/simplecolor/view/tag.php   Download  
File: contents/themes/simplecolor/view/tag.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Noblesse CMS
Content management system with custom plugins
Author: By
Last change: Improve system
Date: 8 years ago
Size: 2,387 bytes
 

Contents

Class file image Download
<!-- body -->
<div class="container">

<!-- slide -->
<div class="row">
<div class="col-lg-12">

</div>
</div>
<!-- slide -->


<div class="row">
<!-- left -->
<div class="col-lg-8">
<?php if(isset($themeSetting['site_top_content']))echo $themeSetting['site_top_content'];?>

<!-- notify -->
<div class="row">
<div class="col-lg-12"><h4>Result with tag "<?php echo $keywords;?>"</h4></div>
</div>
<!-- notify -->


<?php

$li
='';

$total=count($newPost);

if(isset(
$newPost[0]['postid']))
for(
$i=0;$i<$total;$i++)
{
 
$thumbnail='';

  if(isset(
$newPost[$i]['imageUrl'][5]))
  {
   
$thumbnail='
    <div class="col-lg-12">
    <img src="'
.$newPost[$i]['imageUrl'].'" class="img-responsive" />
    </div>
    '
;
  }

 
$li.='
  <!-- items -->
  <div class="row">
  '
.$thumbnail.'
  <div class="col-lg-12">
  <div class="well well-post-content">
  <!-- title -->
  <div class="row">
  <div class="col-lg-12"><a href="'
.$newPost[$i]['url'].'"><h2>'.$newPost[$i]['title'].'</h2></a></div>
  </div>
  <!-- title -->
  <!-- post info -->
  <div class="row">
  <div class="col-lg-12">
  <p>
    <span class="glyphicon glyphicon-calendar" title="Date Created"></span> <span title="Date Created">'
.date('d M, Y',strtotime($newPost[$i]['date_added'])).'</span>
    &nbsp;&nbsp;
    <span class="glyphicon glyphicon-globe" title="Views"></span> <span title="Views">'
.number_format($newPost[$i]['views']).'</span>

  </p>
  </div>
  </div>
  <!-- post info -->

  <!-- content -->
  <div class="row">
  <div class="col-lg-12">
  '
.Render::rawContent($newPost[$i]['content'],0,500).'
  </div>
  </div>
  <!-- content -->

  <!-- read more -->
  <div class="row">
  <div class="col-lg-12 text-right"><br>
  <a href="'
.$newPost[$i]['url'].'" class="btn btn-danger">Read more</a>
  </div>
  </div>
  <!-- read more -->





  </div>
  </div>

  </div>
  <!-- items -->


  '
;
}

echo
$li;

?>
<!-- page -->
<div class="row">
  <div class="col-lg-12 text-right">
   <?php echo $listPage;?>
  </div>
</div>
<!-- page -->
<?php if(isset($themeSetting['site_bottom_content']))echo $themeSetting['site_bottom_content'];?>

</div>
<!-- left -->
<!-- right -->
<?php View::makeWithPath('right',array(),$themePath);?>
<!-- right -->
</div>

</div>
<!-- body -->