/** * Event call to get side content * * @param object $model * @param string $area * @return mixed */ public function onProjectExtras($model, $area) { // Check if our area is the one we want to return results for if ($area != 'feed') { return; } // No suggestions for read-only users if (!$model->access('content')) { return false; } // Allow to place custom modules on project pages $html = \Hubzero\Module\Helper::renderModules('projectpage'); // Side blocks from other plugins? $sections = Event::trigger('projects.onProjectMiniList', array($model)); if (!empty($sections)) { // Show subscription to feed (new) $subscribe = Event::trigger('projects.onProjectMember', array($model)); $html .= !empty($subscribe[0]) ? $subscribe[0] : NULL; foreach ($sections as $section) { $html .= !empty($section) ? $section : NULL; } } return $html; }
?> </div><!-- / .subject --> <div class="aside extracontent"> <?php // Show related content $out = Event::trigger('resources.onResourcesSub', array($this->model->resource, $this->option, 1)); if (count($out) > 0) { foreach ($out as $ou) { if (isset($ou['html'])) { echo $ou['html']; } } } // Show what's popular if ($this->tab == 'about') { echo \Hubzero\Module\Helper::renderModules('extracontent'); } ?> </div><!-- / .aside extracontent --> </section> <?php // Show course listings under 'about' tab if ($this->tab == 'about') { // Course children $schildren = $this->model->children('standalone'); if ($schildren) { $o = 'even'; ?> <section class="section" id="series"> <table class="child-listing">
case '1': $html .= '<p class="info">' . Lang::txt('COM_WISHLIST_NOTICE_SITE_ADMIN') . '</p>' . "\n"; break; case '2': $html .= '<p class="info">' . Lang::txt('COM_WISHLIST_NOTICE_LIST_ADMIN') . ' Edit <a href="' . Route::url($this->wishlist->link('settings')) . '">' . Lang::txt('COM_WISHLIST_LIST_SETTINGS') . '</a>.</p>' . "\n"; break; case '3': $html .= '<p class="info">' . Lang::txt('COM_WISHLIST_NOTICE_ADVISORY_ADMIN') . '</p>' . "\n"; break; } echo $html; // Show what's popular if ($this->wishlist->access('manage') && $this->wishlist->wishes()->total() >= 10 && $this->wishlist->get('category') == 'general' && $this->filters['filterby'] == 'all') { Request::setVar('rid', $this->wishlist->get('referenceid')); Request::setVar('category', $this->wishlist->get('category')); echo \Hubzero\Module\Helper::renderModules('wishvoters'); } ?> </aside><!-- / .aside --> </section><!-- / .main section --> </form> <?php } // end if public } else { ?> <p class="error"><?php echo Lang::txt('COM_WISHLIST_ERROR_LIST_NOT_FOUND'); ?> </p> <?php