PHP Classes

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

Recommend this page to a friend!
  Classes of Burge Lab   Burge CMF   Web/application/views/en/customer/home.php   Download  
File: Web/application/views/en/customer/home.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Burge CMF
Framework to publish managed content
Author: By
Last change: Now each post link has a hash value, which prevents random access to all posts
Date: 7 years 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>