Exemplo n.º 1
0
<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 
    }
Exemplo n.º 2
0
							<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 
Exemplo n.º 3
0
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>
Exemplo n.º 4
0
?>
</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 
}
?>
Exemplo n.º 5
0
</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