if (!$user || $user['status'] !== 'valid') { return $handler->issue404(); } } date_default_timezone_set('UTC'); try { $list = new CHV\Listing(); $list->setType('images'); $list->setOffset(0); $list->setLimit($limit); // how many results? $list->setSortType('date'); // date | size | views $list->setSortOrder('desc'); // asc | desc $list->setRequester(CHV\Login::getUser()); /* Select feed type */ $feed = new $type(); if (!$feed instanceof CHV\FeedModule) { throw new Exception("{$type} is not a valid feed module!"); } /* Check for category */ if ($category) { $list->setCategory($category['id']); $feed->setCategory($category); } /* Check for username */ if ($user) { $list->setWhere('WHERE user_username = :u'); $list->bind(':u', $user['username']); $feed->setUser($user);
?> </a></li> <li><a href="<?php echo G\get_base_url('page/contact'); ?> " rel="contact"><?php _se('Contact'); ?> </a></li> </ul> </div> </div> </li> <?php if (!CHV\Login::isLoggedUser()) { ?> <li data-nav="language" class="phablet-hide phone-hide pop-btn"> <?php // Language selector $available_langs = CHV\get_available_languages(); $cols = min(6, ceil(count($available_langs) / 6)); ?> <span class="top-btn-text"><span class="text"><?php echo CHV\get_lang_used()['short_name']; ?> </span><span class="arrow-down"></span></span> <div class="pop-box <?php if ($cols > 1) { echo sprintf('pbcols%d ', $cols); }