Example #1
0
                                             <? foreach ($articles as $a): ?>
                                                 <tr role="row">
                                                     <td><?php 
echo $a['id'];
?>
</td>
                                                     <td><img width="100px" src="/<?php 
echo $a['main_image'];
?>
" alt="" /></td>
                                                     <td><?php 
echo $a['title'];
?>
</td>
                                                     <td><?php 
echo Helper::strSplitter($a['description'], 200);
?>
</td>
                                                     <td><a href="/admin/profile/id/<?php 
echo $a['user_id'];
?>
"><?php 
echo $a['username'];
?>
</a></td>
                                                     <td><?php 
echo Helper::dateConverter($a['created_time']);
?>
</td>
                                                     <td><?php 
echo Helper::dateConverter($a['updated_time']);
Example #2
0
?>

    </div><!--features_items-->

    <div class="category-tab"><!--category-tab-->
        <div class="col-sm-12">
            <ul class="nav nav-tabs">
                <? if (!empty($currentCategory) && is_array($currentCategory)): ?>
                     <li class="subCatTitle pull-right"><i class="fa fa-arrow-left"></i> <?php 
echo $currentCategory[0]['category_name'];
?>
</li>
                     <? foreach ($currentCategory as $k => $c): ?>
                         <? $active   = ($k === 0) ? 'active' : '' ?>
                         <? $subToLat = Generator::strToLat($c['subcategory_name']) ?>
                         <? $sub      = Helper::strSplitter($c['subcategory_name']) ?>
                         <li class="<?php 
echo $active;
?>
"><a href="#<?php 
echo $subToLat;
?>
" class="showSubsProducts" data-toggle="tab" data-id="<?php 
echo $c['id'];
?>
"><?php 
echo $sub;
?>
</a></li>
                     <? endforeach; ?>
 <? endif; ?>