本文整理匯總了PHP中TBGSettings::getHeaderLink方法的典型用法代碼示例。如果您正苦於以下問題:PHP TBGSettings::getHeaderLink方法的具體用法?PHP TBGSettings::getHeaderLink怎麽用?PHP TBGSettings::getHeaderLink使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類TBGSettings
的用法示例。
在下文中一共展示了TBGSettings::getHeaderLink方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: image_tag
<header>
<div id="logo_container">
<?php
TBGEvent::createNew('core', 'header_before_logo')->trigger();
?>
<?php
$link = TBGSettings::getHeaderLink() == '' ? TBGContext::getTBGPath() : TBGSettings::getHeaderLink();
?>
<a class="logo" href="<?php
print $link;
?>
"><?php
echo image_tag(TBGSettings::getHeaderIconUrl(), array('style' => 'max-height: 24px;'), TBGSettings::isUsingCustomHeaderIcon());
?>
</a>
<div class="logo_name"><?php
echo TBGSettings::getTBGname();
?>
</div>
</div>
<?php
if (!TBGSettings::isMaintenanceModeEnabled()) {
?>
<?php
if (TBGEvent::createNew('core', 'header_mainmenu_decider')->trigger()->getReturnValue() !== false) {
?>
<?php
require THEBUGGENIE_CORE_PATH . 'templates/headermainmenu.inc.php';
?>
<?php
}
示例2: __
echo __('Configure icons');
?>
</span></div>
</td>
</tr>
<tr>
<td><label for="header_link"><?php
echo __('Custom header link');
?>
</label></td>
<td>
<input type="text" name="<?php
echo TBGSettings::SETTING_HEADER_LINK;
?>
" id="header_link" value="<?php
echo TBGSettings::getHeaderLink();
?>
" style="width: 100%;"<?php
if ($access_level != TBGSettings::ACCESS_FULL) {
?>
disabled<?php
}
?>
>
</td>
</tr>
<tr>
<td class="config_explanation" colspan="2"><?php
echo __('You can alter the webpage that clicking on the header icon navigates to. If left blank it will link to the main page of this installation.');
?>
</td>