本文整理汇总了PHP中Gdn_Theme::assetEnd方法的典型用法代码示例。如果您正苦于以下问题:PHP Gdn_Theme::assetEnd方法的具体用法?PHP Gdn_Theme::assetEnd怎么用?PHP Gdn_Theme::assetEnd使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gdn_Theme
的用法示例。
在下文中一共展示了Gdn_Theme::assetEnd方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
?>
<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">
☰
</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: helpAsset
/**
* 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();
}