/** * @copyright Copyright 2008, 2009 Vanilla Forums Inc. * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 */ function smarty_function_module($Params, &$Smarty) { $Name = GetValue('name', $Params); unset($Params['name']); $Result = Gdn_Theme::Module($Name, $Params); return $Result; }
<?php if (!defined('APPLICATION')) { exit; } ?> <div class="Profile"> <?php include $this->fetchViewLocation('user'); // include($this->fetchViewLocation('tabs')); echo Gdn_Theme::Module('ProfileFilterModule'); include $this->fetchViewLocation($this->_TabView, $this->_TabController, $this->_TabApplication); ?> </div>
<tbody> <?php $Alt = ''; if (property_exists($this, 'AnnounceData') && is_object($this->AnnounceData)) { foreach ($this->AnnounceData->result() as $Discussion) { $Alt = $Alt == ' Alt' ? '' : ' Alt'; WriteDiscussionRow($Discussion, $this, $Session, $Alt); } } $Alt = ''; foreach ($this->DiscussionData->result() as $Discussion) { $Alt = $Alt == ' Alt' ? '' : ' Alt'; WriteDiscussionRow($Discussion, $this, $Session, $Alt); } ?> </tbody> </table> </div> <?php echo '<div class="PageControls Bottom">'; PagerModule::write($PagerOptions); echo Gdn_Theme::Module('NewDiscussionModule', $this->data('_NewDiscussionProperties', array('CssClass' => 'Button Action Primary'))); echo '</div>'; } else { ?> <div class="Empty"><?php echo t('No discussions were found.'); ?> </div> <?php }
<tbody> <?php $Alt = ''; if (property_exists($this, 'AnnounceData') && is_object($this->AnnounceData)) { foreach ($this->AnnounceData->Result() as $Discussion) { $Alt = $Alt == ' Alt' ? '' : ' Alt'; WriteDiscussionRow($Discussion, $this, $Session, $Alt); } } $Alt = ''; foreach ($this->DiscussionData->Result() as $Discussion) { $Alt = $Alt == ' Alt' ? '' : ' Alt'; WriteDiscussionRow($Discussion, $this, $Session, $Alt); } ?> </tbody> </table> </div> <?php echo '<div class="PageControls Bottom">'; PagerModule::Write($PagerOptions); echo Gdn_Theme::Module('NewDiscussionModule', array('CssClass' => 'Button Action Primary')); echo '</div>'; } else { ?> <div class="Empty"><?php echo T('No discussions were found.'); ?> </div> <?php }
<div class="User" itemscope itemtype="http://schema.org/Person"> <h1 class="H"><?php echo htmlspecialchars($this->User->Name); echo '<span class="Gloss">'; Gdn_Theme::BulletRow(); if ($this->User->Title) { echo Gdn_Theme::BulletItem('Title'); echo ' ' . Bullet() . ' ' . Wrap(htmlspecialchars($this->User->Title), 'span', array('class' => 'User-Title')); } $this->fireEvent('UsernameMeta'); echo '</span>'; ?> </h1> <?php if ($this->User->Admin == 2) { echo '<div class="DismissMessage InfoMessage">', t('This is a system account and does not represent a real person.'), '</div>'; } if ($this->User->About != '') { echo '<div id="Status" itemprop="description">' . Wrap(Gdn_Format::Display($this->User->About)); if ($this->User->About != '' && ($Session->UserID == $this->User->UserID || $Session->checkPermission('Garden.Users.Edit'))) { echo ' - ' . anchor(t('clear'), '/profile/clear/' . $this->User->UserID, 'Hijack'); } echo '</div>'; } echo Gdn_Theme::Module('UserBanModule', array('UserID' => $this->User->UserID)); $this->fireEvent('BeforeUserInfo'); echo Gdn_Theme::Module('UserInfoModule'); $this->fireEvent('AfterUserInfo'); ?> </div>
/** * @copyright Copyright 2008, 2009 Vanilla Forums Inc. * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 */ function smarty_function_module($Params, &$Smarty) { $Result = Gdn_Theme::Module(GetValue('name', $Params)); return $Result; }
<?php if (!defined('APPLICATION')) { exit; } echo '<h1 class="H HomepageTitle">' . $this->data('Title') . '</h1>'; include $this->fetchViewLocation('helper_functions', 'discussions', 'vanilla'); $Session = Gdn::session(); $ShowOptions = TRUE; $ViewLocation = $this->fetchViewLocation('drafts', 'drafts'); // WriteFilterTabs($this); echo Gdn_Theme::Module('DiscussionFilterModule'); if ($this->DraftData->numRows() > 0) { echo $this->Pager->toString('less'); ?> <ul class="DataList Drafts"> <?php include $ViewLocation; ?> </ul> <?php echo $this->Pager->toString('more'); } else { ?> <div class="Empty"><?php echo t('No drafts.', sprintf(t('You do not have any %s yet.'), t('drafts'))); ?> </div> <?php }