assetEnd() public static method

public static assetEnd ( )
示例#1
0
?>
    <div class="list-group list-group-flush">
        <?php 
foreach ($this->data('meList', []) as $meItem) {
    echo anchor(t($meItem['text']) . (val('isExternal', $meItem, true) ? ' ' . dashboardSymbol('external-link') : ''), $meItem['url'], 'list-group-item', ['target' => '_blank']);
}
?>
    </div>
    <div class="card-footer">
        <?php 
echo anchor(t('Sign Out'), signOutUrl(), 'btn btn-secondary Leave');
?>
    </div>
</div>
<?php 
Gdn_Theme::assetEnd();
?>


<div class="main-container">
    <header class="navbar js-navbar">
        <button class="js-drawer-toggle drawer-toggle btn btn-link" type="button">
            &#9776;
        </button>
        <div class="navbar-brand">
            <?php 
$title = c('Garden.Title');
?>
            <div class="navbar-image logo"><?php 
echo wrap('Vanilla Forums', 'span', ['class' => 'vanilla-logo vanilla-logo-white']);
?>
示例#2
0
 /**
  * Formats a help element and adds it to the help asset.
  *
  * @param $title
  * @param $description
  */
 function helpAsset($title, $description)
 {
     Gdn_Theme::assetBegin('Help');
     echo '<aside role="note" class="help">';
     echo wrap($title, 'h2', ['class' => 'help-title']);
     echo wrap($description, 'div', ['class' => 'help-description']);
     echo '</aside>';
     Gdn_Theme::assetEnd();
 }