本文整理匯總了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();
}