Example #1
0
 public function usersProfileViewSidebarAlbums($user)
 {
     if (!$user['total_albums']) {
         return '';
     }
     loader::helper('pictures/pictures');
     echo pictures_helper::getAlbums(array('user' => $user, 'limit' => 4, 'select_users' => false));
 }
Example #2
0
        if ($item == 'blogs') {
            ?>
						<?php 
            echo blogs_helper::getBlogs(array('join_columns' => array(), 'limit' => 5, 'truncate' => 200));
            ?>
					<?php 
        } elseif ($item == 'news') {
            ?>
						<?php 
            echo news_helper::getNews(array('join_columns' => array(), 'limit' => 5, 'truncate' => 200));
            ?>
					<?php 
        } elseif ($item == 'pictures') {
            ?>
						<?php 
            echo pictures_helper::getAlbums(array('join_columns' => array('`a`.`picture_id`!=0', '`a`.`total_pictures`>0'), 'limit' => 20));
            ?>
					<?php 
        } elseif ($item == 'videos') {
            ?>
						<?php 
            echo videos_helper::getVideos(array('join_columns' => array(), 'limit' => 20));
            ?>
					<?php 
        }
        ?>

				</div>

				<?php 
        echo $i == 2 ? '</div><div class="section-break"></div><div class="clearfix">' : '';