PHP Classes

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

Recommend this page to a friend!
  Classes of Burge Lab   BurgeATS   CMF/Web/application/views/en/customer/home.php   Download  
File: CMF/Web/application/views/en/customer/home.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/home.php
Date: 1 year ago
Size: 1,219 bytes
 

Contents

Class file image Download
<div class="main">

    <div class="container category">
        <?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>