<?php include APP_WEB_DIR . '/inc/toolbar.inc'; ?> <div class="container"> <div class="row"> <div class="span12"> <div class="page-header"> <h3> Activity feed </h3> </div> </div> <div class="span9"> <div class="feeds"> <?php $htmlObj = new \com\indigloo\sc\html\Activity(); $html = $htmlObj->getHtml($feedDataObj); echo $html; ?> </div> <!-- feeds --> </div> <div class="span3"> </div> </div> </div> <!-- container --> <?php echo \com\indigloo\sc\util\Asset::version("/js/bundle.js"); ?> <script type="text/javascript"> $(function(){
} $activityDao = new \com\indigloo\sc\dao\Activity(); $feedDataObj = $activityDao->getUserFeeds($loginId, 50); $socialGraphDao = new \com\indigloo\sc\dao\SocialGraph(); $followers = $socialGraphDao->getFollowers($loginId, 5); $followings = $socialGraphDao->getFollowing($loginId, 5); $options = array("ui" => "feed", "image" => true); $followersData = GraphHtml::getTable($loginId, $followers, 1, $options); $options = array("link" => "/user/dashboard/follower.php", "size" => sizeof($followers), "title" => "Followers"); $followersHtml = GraphHtml::getDashWrapper($followersData, $options); $options = array("ui" => "feed", "image" => true); $followingsData = GraphHtml::getTable($loginId, $followings, 2, $options); $options = array("link" => "/user/dashboard/following.php", "size" => sizeof($followings), "title" => "Followings"); $followingsHtml = GraphHtml::getDashWrapper($followingsData, $options); $htmlObj = new \com\indigloo\sc\html\Activity(); $activityHtml = $htmlObj->getHtml($feedDataObj); ?> <!DOCTYPE html> <html> <head> <title> Activities - <?php echo $loginName; ?> </title> <?php include APP_WEB_DIR . '/inc/meta.inc'; ?> <?php