<?php
/**
 * Open Source Social Network
 *
 * @package   (softlab24.com).ossn
 * @author    OSSN Core Team <info@softlab24.com>
 * @copyright 2014-2016 SOFTLAB24 LIMITED
 * @license   General Public Licence http://www.opensource-socialnetwork.org/licence
 * @link      https://www.opensource-socialnetwork.org/
 */


$page = new \Ossn\Component\BusinessPage\Page;
$list = $page->getPages();
$count = $page->getPages(array(
		'count' => true,							  
));
?>


    	   
                     
	<?php
	if($list){
			foreach($list as $item){ ?>
		
		  <div class="business-page ossn-page-contents">
			  
			     
			     
			   
			        
			   	<div class="user-activity">
			    <div class="business-page top-container2">
			         <a href="<?php echo ossn_site_url("page/view/{$item->guid}");?>">  
			         <div class="logo3">
                        	<img src="<?php echo $item->photoURL();?>" />
                        	</div>
                        			</a>
			         <a href="<?php echo ossn_site_url("page/view/{$item->guid}");?>">  
			        <div class="business-page-cover3">
			            
			        <img src="<?php echo $item->coverURL();?>" />
			        
			        </div>
			       
			     		</a>
			          
			    <div class="row list-item">
			     
    				
                        <div class="col-md-11">
                        	 <a href="<?php echo ossn_site_url("page/view/{$item->guid}");?>">  <b><?php echo $item->title;?></b>		</a>
                        		<div class="business-page-desc">
                        	<div class="post-contents">
                             <p class="addReadMore showlesscontent"><?php echo $item->description;?></p>
                        </div>
                        </div>
                        </div>
   				 </div>
   		
   			  </div>
   				  </div>
   				  </div>
   			</a>
   				    
     <?php	
			}
			echo ossn_view_pagination($count);
	}
	?>
