Exemple #1
0
    ?>
		</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">
Exemple #2
0
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * HUBzero is a registered trademark of Purdue University.
 *
 * @package   hubzero-cms
 * @author    Shawn Rice <*****@*****.**>
 * @copyright Copyright 2005-2015 HUBzero Foundation, LLC.
 * @license   http://opensource.org/licenses/MIT MIT
 */
// No direct access
defined('_HZEXEC_') or die;
?>
<header id="content-header" class="full">
	<h2><?php 
echo $this->title;
?>
</h2>
</header><!-- / #content-header -->

<section class="main section">
	<p class="warning"><?php 
echo Lang::txt('COM_CART_NOT_LOGGEDIN');
?>
</p>
<?php 
\Hubzero\Module\Helper::displayModules('force_mod');
?>
</section><!-- / .main section -->
					<?php 
}
?>
					</section><!-- / .main section -->

				<?php 
if ($this->debug) {
    ?>
					<section id="techinfo">
						<?php 
    echo $this->renderBacktrace();
    ?>
					</section><!-- / #techinfo -->
				<?php 
}
?>
				</div><!-- / .inner -->
			</main><!-- / #content -->

			<footer id="footer">
				<?php 
\Hubzero\Module\Helper::displayModules('footer');
?>
			</footer><!-- / #footer -->
		</div><!-- / #wrap -->

		<?php 
\Hubzero\Module\Helper::displayModules('endpage');
?>
	</body>
</html>
Exemple #4
0
 /**
  * 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;
 }
Exemple #5
0
            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 
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * HUBzero is a registered trademark of Purdue University.
 *
 * @package   hubzero-cms
 * @author    Shawn Rice <*****@*****.**>
 * @copyright Copyright 2005-2015 HUBzero Foundation, LLC.
 * @license   http://opensource.org/licenses/MIT MIT
 */
// No direct access
defined('_HZEXEC_') or die;
?>
<div class="group-login">
	<h2><?php 
echo Lang::txt('COM_GROUPS_VIEW_LOGIN');
?>
</h2>
	<?php 
echo \Hubzero\Module\Helper::renderModule('mod_login');
?>
</div>