示例#1
0
									<a class="logo" href="<?php 
    print $link;
    ?>
"><?php 
    echo image_tag('logo_24.png', array('alt' => '[logo]', 'title' => '[logo]'));
    ?>
</a>
								<?php 
}
?>
								<div class="logo_large"><?php 
echo TBGSettings::getTBGname();
?>
</div>
								<div class="logo_small"><?php 
echo TBGSettings::getTBGtagline();
?>
</div>
							</td>
							<td style="width: auto;">
								<div class="tab_menu header_menu<?php 
if (TBGContext::isProjectContext()) {
    ?>
 project_context<?php 
}
?>
">
									<ul>
										<?php 
if (!TBGSettings::isSingleProjectTracker() && !TBGContext::isProjectContext()) {
    ?>
示例#2
0
?xml version="1.0" encoding="<?php 
echo TBGContext::getI18n()->getCharset();
?>
" ?>
<rss version="2.0">
	<channel>
		<title><?php 
echo TBGSettings::getTBGname() . ' ~ ' . __('%project_name% project timeline', array('%project_name%' => TBGContext::getCurrentProject()->getName()));
?>
</title>
		<link><?php 
echo make_url('project_timeline', array('project_key' => TBGContext::getCurrentProject()->getKey()), false);
?>
</link>
		<description><?php 
echo strip_tags(TBGSettings::getTBGtagline());
?>
</description>
		<language><?php 
echo strtolower(str_replace('_', '-', TBGContext::getI18n()->getCurrentLanguage()));
?>
</language>
		<image>
		<?php 
if (TBGSettings::isUsingCustomHeaderIcon() == '2') {
    ?>
			<url><?php 
    echo TBGSettings::getHeaderIconURL();
    ?>
</url>
		<?php 
 protected function _parse_variable($matches)
 {
     switch ($matches[2]) {
         case 'CURRENTMONTH':
             return date('m');
         case 'CURRENTMONTHNAMEGEN':
         case 'CURRENTMONTHNAME':
             return date('F');
         case 'CURRENTDAY':
             return date('d');
         case 'CURRENTDAYNAME':
             return date('l');
         case 'CURRENTYEAR':
             return date('Y');
         case 'CURRENTTIME':
             return date('H:i');
         case 'NUMBEROFARTICLES':
             return 0;
         case 'PAGENAME':
             return TBGContext::getResponse()->getPage();
         case 'NAMESPACE':
             return 'None';
         case 'TOC':
             return '{{TOC}}';
         case 'SITENAME':
             return TBGSettings::getTBGname();
         case 'SITETAGLINE':
             return TBGSettings::getTBGtagline();
         default:
             return '';
     }
 }
示例#4
0
?>
 <i>(<?php 
echo __('HTML allowed');
?>
)</i></td>
	</tr>
	<tr>
		<td><label for="b2_tagline"><?php 
echo __('Tagline / slogan');
?>
</label></td>
		<td><input type="text" name="<?php 
echo TBGSettings::SETTING_TBG_TAGLINE;
?>
" id="b2_tagline" value="<?php 
echo str_replace('"', '&quot;', TBGSettings::getTBGtagline());
?>
" style="width: 100%;"<?php 
if ($access_level != TBGSettings::ACCESS_FULL) {
    ?>
 disabled<?php 
}
?>
></td>
	</tr>
	<tr>
		<td class="config_explanation" colspan="2"><?php 
echo __('This will appear beneath the name in the header on all pages');
?>
 <i>(<?php 
echo __('HTML allowed');