public function usersProfileViewSidebarBlogs($user) { if (!$user['total_blogs']) { return ''; } loader::helper('blogs/blogs'); echo blogs_helper::getBlogs(array('user' => $user, 'limit' => 4, 'select_users' => false, 'template' => 'blogs/helpers/blogs_list')); }
"> <h3><?php echo __($item . '_new', 'system_navigation'); ?> </h3> <?php loader::helper($item . '/' . $item); ?> <?php 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') {