PHP Classes

File: CMF/Web/application/views/en/customer/category.php

Recommend this page to a friend!
  Classes of Burge Lab   BurgeATS   CMF/Web/application/views/en/customer/category.php   Download  
File: CMF/Web/application/views/en/customer/category.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: BurgeATS
CRM, Ticketing system, and employee manangement
Author: By
Last change: Update of CMF/Web/application/views/en/customer/category.php
Date: 1 year ago
Size: 1,850 bytes
 

Contents

Class file image Download
<div class="main">
    <div class="container category">
        <h1><?php echo $category_info['cd_name'];?></h1>
        <div class="row">
            <div class="twelve columns">
                <?php if($category_info['cd_image']) { ?>
<div class="post-img">
                        <img class="lazy-load" data-ll-type="src"
                             data-ll-url="<?php echo $category_info['cd_image'];?>"
                         />
                    </div>
                <?php } ?>
<br>
                <div class="post-short-desc">
                    <?php echo nl2br($category_info['cd_description']); ?>
</div>
            </div>
            <?php if($total_pages>1) { ?>
&nbsp;<br>
                <div class="three columns results-page-select link-pagination">
                    {pagination}
                </div>
            <?php }?>
</div>
        <br>

        <?php
           
foreach($posts as $post)
            {
       
?>
<div class="row">
                    <div class="twelve columns">
                        <a href="<?php echo get_customer_post_details_link($post['post_id'],$post['pc_title'],$post['post_date']);?>" >
                            <h2><?php echo $post['pc_title'];?></h2>
                            <div class="post-date"><?php echo str_replace("-","/",$post['post_date']);?></div>
                            <?php if($post['pc_image']) { ?>
<div class="post-img">
                                    <img class="lazy-load" data-ll-type="src"
                                        data-ll-url="<?php echo $post['pc_image'];?>"
                                    />
                                </div>
                            <?php } ?>
<br>
                            <div class="post-short-desc">
                                <?php
                                    $content
=$post['pc_content'];
                                   
$content=preg_replace("/\s*<br\s*\/?>\s*/","\n",$content);
                                   
$content=str_replace("&nbsp;"," ", $content);
                                   
$content=strip_tags($content);
                                   
$content=mb_substr($content,0,100);
                                   
$content=preg_replace("/(\s*\n+\s*)+/", "<br/>", $content);
                                   
                                    echo
$content."...";
                               
?>
                            </div>
                            <br>
                            <div class="read-more">{read_more_text}</div>
                        </a>
                    </div>
                   
                </div>
        <?php
           
}
       
?>
</div>
</div>