File: modules/user/views/friends.php

Recommend this page to a friend!
  Classes of Aby Dahana  >  Dwitri PHP Social Network Platform  >  modules/user/views/friends.php  >  Download  
File: modules/user/views/friends.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Dwitri PHP Social Network Platform
Create a community site like a social network
Author: By
Last change:
Date: 6 months ago
Size: 2,137 bytes
 

Contents

Class file image Download

    <?php
        $totSegments
= $this->uri->total_segments();
       
$uriSegments = $this->uri->segment($totSegments);
        if(!
is_numeric($uriSegments)){
           
$offset = 0;
        } else if(
is_numeric($uriSegments)){
           
$offset = $this->uri->segment($totSegments);
        }
       
$limit = 12;
       
        foreach(
$profile as $page):
        include
'user_navigation.php';
   
?>
<div class="container">
        <div class="row">
            <div class="col-md-2 hidden-xs hidden-sm sticky">
                <h4><i class="fa fa-info-circle"></i> <?php echo phrase('account_details'); ?></h4>
                <p class="text-muted">
                    <i class="fa fa-quote-left"></i> <?php echo $page['bio']; ?>
</p>
                <p>
                    <i class="fa fa-map-marker"></i> <?php echo $page['address']; ?>
</p>
                <p>
                    <i class="fa fa-mobile"></i> <?php echo $page['mobile']; ?>
</p>
                <p>
                    <i class="fa fa-venus-mars"></i> <?php echo ($page['gender'] == 'l' ? phrase('male') : phrase('female')); ?>
</p>
                <p>
                    <i class="fa fa-child"></i> <?php echo $page['age'] . ' ' . phrase('years'); ?>
</p>
            </div>
            <div class="col-md-7 sticky">
                <div class="row grid">
       
                    <?php
                       
if(count($friends) > 0)
                        {
                            foreach(
$friends as $id)
                            {
                                echo
'
                                    <div class="col-md-6 col-sm-6 grid-item">
                                        '
. getUserDetails(($id['fromID'] != $page['userID'] ? $id['fromID'] : $id['toID'])) . '
                                    </div>
                                '
;
                            }
                        }
                        else
                        {
                            echo
'<div class="col-sm-12 text-center"><div class="alert alert-danger"><h4>' . $page['full_name'] . ' ' . phrase('has_no_friend') . '</h4></div></div>';
                        }
                   
?>

                </div>
                <div class="row">
                    <div class="col-sm-12 text-center">
                   
                        <?php echo generatePagination('friends', null, $page['userID'], null, $limit, $offset); ?>

                    </div>
                </div>
            </div>
            <div class="col-md-3 hidden-sm hidden-xs sticky">
                <div class="row">
                    <div class="col-sm-12">
                        <h4><i class="fa fa-tags"></i> <?php echo phrase('trending_hashtags'); ?></h4>
                       
                        <?php echo widget_hashTags(true, 10); ?>

                    </div>
                </div>
            </div>
        </div>
    </div>
   
    <?php endforeach; ?>

For more information send a message to info at phpclasses dot org.