Exemple #1
0
    <div class="content-wrapper" style="margin-top: 23px;">
        <?php 
include_once "public_profile_details.php";
?>
        <div class="row" style="margin-top: 10px; margin-left: -80px;">
            <div class="left-menu-width col-lg-3 col-md-4 col-sm-5">
                <?php 
include_once "public_left_menu.php";
?>
            </div>
            <div class="col-lg-7 col-md-6 col-sm-5 margin-home-content-naveigarion">                
                 <?php 
if (is_array($public_inspired_posts)) {
    foreach ($public_inspired_posts as $public_inspired_post) {
        if ($public_inspired_post->status == 1) {
            render_public_post($user_details, $public_inspired_post->uploaddetail_id, $public_inspired_post->user_id, $public_inspired_post->profileimg, $public_inspired_post->name, $public_inspired_post->updateddate, $public_inspired_post->image_urls, $public_inspired_post->finao_id, $public_inspired_post->finao_msg, $public_inspired_post->upload_text, $public_inspired_post->finao_status, 0, $public_inspired_post->tile_image, $public_inspired_post->videourls, $public_inspired_post->video_img, $public_inspired_post->totalinspired);
        }
    }
    //old rendering method:
    foreach ($public_inspired_posts as $public_inspired_post) {
        break;
        if ($public_inspired_post->status == 1) {
            ?>
                                    <div class="row col-md-12 col-sm-12" style="margin: 0px 0px 10px -30px;">
                                        <a href="index.php?r=site/public_finao_posts&uname=<?php 
            echo $public_inspired_post->uname;
            ?>
">
                                            <div class="col-md-1 col-sm-1" style="margin-right: 5px;">
                                                <img alt="Profile-image" src="<?php 
            echo $public_inspired_post->profileimg != "" ? $public_inspired_post->profileimg : $image_path . "no-image.png";
Exemple #2
0
        }
        if ($j == 3) {
            break;
        }
    }
} else {
}
?>
                        
                    </div>
                </div>
                <?php 
include_once "footer.php";
?>
            </div>
            <div class="col-md-8 col-xs-7">                
                 <?php 
if (is_array($tile_posts)) {
    foreach ($tile_posts as $tile_post) {
        if ($tile_post->status == 1) {
            render_public_post($user_details, $tile_post->uploaddetail_id, $tile_post->userid, $tile_post->profile_image, "", $tile_post->uploadeddate, $tile_post->image_urls, $tile_post->finao_id, $tile_post->finao_msg, $tile_post->upload_text, $tile_post->finao_status, 0, "", $tile_post->videourls, "", "");
        }
    }
}
?>
            </div>
        </div>
    </div>
</div>
<?php 
include_once "alert_modal.php";
<?php

include "configuration/configuration.php";
include_once "public_post_snippet.php";
if (is_array($homepage_posts)) {
    $pc = 0;
    foreach ($homepage_posts as $homepage_post) {
        //print_r($homepage_post);exit;
        ++$pc;
        render_public_post($user_details, $homepage_post->uploaddetail_id, $homepage_post->updateby, $homepage_post->profile_image, $homepage_post->profilename, $homepage_post->updateddate, $homepage_post->image_urls, $homepage_post->finao_id, $homepage_post->finao_msg, $homepage_post->upload_text, $homepage_post->finao_status, $homepage_post->tile_id, $homepage_post->videourls, $homepage_post->videoimg, $homepage_post->totalinspired, $homepage_post->isinspired);
        if ($pc == $post_count) {
            break;
        }
    }
    ?>
            <div id="postscontainer"></div>
        <?php 
} else {
    ?>
            <div class="popup-selected-finao ">
                <div class="row left-margin-home">
                    <div class="col-lg-11 col-md-11 col-sm-11 text-align-center" style="margin-top: 35%;  margin-bottom:60%;">
                        <p class="finao-title-text"><?php 
    echo $homepage_posts;
    ?>
</p>
                        <script>
                            $(function(){
                                posts_page = -1;
                            });