<?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\WorldsPage\Page;
$list = $page->getPages();
$count = $page->getPages(array(
		'count' => true,							  
));
?>


    	   
                     
	<?php
	if($list){
			foreach($list as $item){ ?>
		
		  
href="<?php echo ossn_site_url('worlds/add/wpage?mpage=add'); ?>"><?php echo ossn_print('wpage:add'); ?>		
			        
			  
			    <div class="frog-to-frog">
			         <a href="<?php echo ossn_site_url("worlds/{$item->guid}");?>">  
			         <div class="logo3">
                        	<img src="<?php echo $item->photoURL();?>" />
                        	</div>
                        			</a>
			         <a href="<?php echo ossn_site_url("worlds/view/{$item->guid}");?>">  
			        <div class="worlds-page-cover3">
			            
			        <img src="<?php echo $item->coverURL();?>" />
			        
			        </div>
			       
			     		</a>
			          
			    <div class="row">
			     
    				
                        <div class="col-md-11">
                            
                        	 <a href="<?php echo ossn_site_url("worlds/view/{$item->guid}");?>">  
                        	 <div class="frog-title">
                        	 <?php echo $item->title;?>	
                        	 </div>
                        	 </a>
                        		
                        		<div class="top-container4">	
                        	
                        	 <div id="worlds-page-hr-menu" class="worlds-page-hr-menu">
                        		<div class="row worlds-page-metadata">
                        		
                        			<div class="col-md-12">
                        			<div class="worldspage-desc">
                                		            <div class="post-contents">
                                		    <p class="addReadMore showlesscontent">
                            		<?php echo $item->description;?>
                            			</p>
                            		
                            	
                            			 </div>
                           			 </div>	 
                        		
                        		 </div>	 
                        		</div>	
                        	</div>
                        	</div>
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        </div>
   				 </div>
   		
   			  </div>
   		

   		
   	
   				    
     
     
     
     
     
     <?php	
			}
			echo ossn_view_pagination($count);
	}
	?>
