当前位置: 首页>>代码示例>>PHP>>正文


PHP TBGSettings::isUsingCustomHeaderIcon方法代码示例

本文整理汇总了PHP中TBGSettings::isUsingCustomHeaderIcon方法的典型用法代码示例。如果您正苦于以下问题:PHP TBGSettings::isUsingCustomHeaderIcon方法的具体用法?PHP TBGSettings::isUsingCustomHeaderIcon怎么用?PHP TBGSettings::isUsingCustomHeaderIcon使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TBGSettings的用法示例。


在下文中一共展示了TBGSettings::isUsingCustomHeaderIcon方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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 
    }
开发者ID:oparoz,项目名称:thebuggenie,代码行数:31,代码来源:headertop.inc.php

示例2: elseif

							<td align="left" valign="middle" id="logo_td">
								<?php 
$link = TBGSettings::getHeaderLink() == '' ? TBGContext::getTBGPath() : TBGSettings::getHeaderLink();
?>
								<?php 
if (TBGSettings::isUsingCustomHeaderIcon() == TBGSettings::APPEARANCE_HEADER_URL) {
    ?>
									<a class="logo" href="<?php 
    print $link;
    ?>
"><img src="<?php 
    print TBGSettings::getHeaderIconURL();
    ?>
" alt="[logo]" title="[logo]"></a>
								<?php 
} elseif (TBGSettings::isUsingCustomHeaderIcon() == TBGSettings::APPEARANCE_HEADER_CUSTOM) {
    ?>
									<a class="logo" href="<?php 
    print $link;
    ?>
"><img src="<?php 
    print TBGContext::getTBGPath();
    ?>
header.png" alt="[logo]" title="[logo]"></a>
								<?php 
} else {
    ?>
									<a class="logo" href="<?php 
    print $link;
    ?>
"><?php 
开发者ID:ronaldbroens,项目名称:thebuggenie,代码行数:31,代码来源:header.inc.php

示例3: __

echo __('Header icon');
?>
</h4>
						<div style="text-align: center; padding: 30px; height: 60px;">
							<?php 
echo image_tag(TBGSettings::getHeaderIconUrl(), array('style' => 'width: 24px; height: 24px;'), TBGSettings::isUsingCustomHeaderIcon());
?>
						</div>
						<div class="rounded_box lightgrey borderless" style="margin: 5px 0;">
							<ul class="simple_list" style="margin-top: 0;">
								<li><input type="radio" id="large_no_change" name="large_icon_action" value="0" checked><label for="large_no_change"><?php 
echo __('Leave as is') . '</span>';
?>
</label></li>
								<?php 
if (TBGSettings::isUsingCustomHeaderIcon()) {
    ?>
									<li><input type="radio" id="large_clear_icon" name="large_icon_action" value="clear_file"><label for="large_clear_icon"><?php 
    echo __('Remove icon and return to default');
    ?>
</label></li>
								<?php 
}
?>
								<?php 
if (TBGSettings::isUploadsEnabled()) {
    ?>
									<li><input type="radio" id="large_upload" name="large_icon_action" value="upload_file"><label for="large_upload"><?php 
    echo __('Upload new icon');
    ?>
:</label><br><input type="file" name="large_icon"></li>
开发者ID:oparoz,项目名称:thebuggenie,代码行数:31,代码来源:_siteicons.inc.php

示例4: mb_strtolower

?>
</description>
		<language><?php 
echo mb_strtolower(str_replace('_', '-', TBGContext::getI18n()->getCurrentLanguage()));
?>
</language>
		<image>
		<?php 
if (TBGSettings::isUsingCustomHeaderIcon() == '2') {
    ?>
			<url><?php 
    echo TBGSettings::getHeaderIconURL();
    ?>
</url>
		<?php 
} elseif (TBGSettings::isUsingCustomHeaderIcon() == '1') {
    ?>
			<url><?php 
    echo TBGContext::getUrlHost() . TBGContext::getTBGPath() . 'header.png';
    ?>
</url>
		<?php 
} else {
    ?>
			<url><?php 
    echo image_url('logo_24.png', false, null, false);
    ?>
</url>
		<?php 
}
?>
开发者ID:oparoz,项目名称:thebuggenie,代码行数:31,代码来源:findissues.rss.php

示例5: __

</td>
	</tr>
	<tr>
		<td><label for="icon_header_url"><?php 
echo __('Custom header icon URL');
?>
</label></td>
		<td>
			<input type="text" name="<?php 
echo TBGSettings::SETTING_HEADER_ICON_URL;
?>
" id="icon_header_url" value="<?php 
echo TBGSettings::getHeaderIconURL();
?>
" style="width: 100%;"<?php 
if ($access_level != TBGSettings::ACCESS_FULL || TBGSettings::isUsingCustomHeaderIcon() != '2') {
    ?>
 disabled<?php 
}
?>
>
		</td>
	</tr>
	<tr>
		<td class="config_explanation" colspan="2"><?php 
echo __('If you want to load your header icon from a URL, specify the URL to an image here.');
?>
</td>
	</tr>
	<tr>
		<td><label for="header_link"><?php 
开发者ID:ronaldbroens,项目名称:thebuggenie,代码行数:31,代码来源:_appearance.inc.php


注:本文中的TBGSettings::isUsingCustomHeaderIcon方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。