} // END - if
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'getOutputMode()=' . getOutputMode() . ',htmlCode(length)=' . strlen($htmlCode) . ',output(length)=' . strlen($GLOBALS['__output']));
- // Do we have HTML-Code here?
+ // Is there HTML-Code here?
if (!empty($htmlCode)) {
// Yes, so we handle it as you have configured
switch (getOutputMode()) {
// Set current template
$GLOBALS['current_template'] = $template;
- // Do we have cache?
+ // Is there cache?
if ((!isDebuggingTemplateCache()) && (isTemplateCached($template))) {
// Evaluate the cache
eval(readTemplateCache($template));
// The local file does exists so we load it. :)
$GLOBALS['tpl_content'][$template] = readFromFile($FQFN);
- // Do we have to compile the code?
+ // Is there to compile the code?
if ((isInString('$', $GLOBALS['tpl_content'][$template])) || (isInString('{--', $GLOBALS['tpl_content'][$template])) || (isInString('{?', $GLOBALS['tpl_content'][$template])) || (isInString('{%', $GLOBALS['tpl_content'][$template]))) {
// Normal HTML output?
if ((isHtmlOutputMode()) && (substr($template, 0, 3) != 'js_')) {
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'template=' . $template . ' - AFTER EVAL');
} // END - if
- // Do we have some content to output or return?
+ // Is there some content to output or return?
if (!empty($ret)) {
// Not empty so let's put it out! ;)
if ($return === true) {
// Default is empty
$extraPath = '';
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS['extra_path'][$template])) {
// Check for admin/guest/member/etc. templates
if (substr($template, 0, 6) == 'admin_') {
$newContent = '{--NO_TEMPLATE_SUPPLIED--}';
}
- // Is there some content?
+ // Are there some content?
if (empty($newContent)) {
// Compiling failed
$newContent = "Compiler error for template " . $template . " !\nUncompiled content:\n" . $GLOBALS['tpl_content'][$template];
function getMenuCssClasses ($data) {
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'data=' . $data);
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS[__FUNCTION__][$data])) {
// $data needs to be converted into an array
$content = explode('|', $data);
$stamp = round($timestamp);
//* DEBUG: */ debugOutput('*' . $stamp .'/' . $timestamp . '*');
- // Do we have a leap year?
+ // Is there a leap year?
$SWITCH = '0';
$TEST = getYear() / 4;
$M1 = getMonth();
sendAdminNotification('{--REPORT_BUG_SUBJECT--}', 'admin_report_bug', $content);
} // END - if
- // Do we have HTML/CSS/AJAX mode?
+ // Is there HTML/CSS/AJAX mode?
if ((isHtmlOutputMode()) || (isCssOutputMode()) || (isAjaxOutputMode())) {
// And abort here
app_exit($F, $L, $debug);
$pageTitle .= '{%config,trim=title_left%} ';
} // END - if
- // Do we have some extra title?
+ // Is there an extra title?
if (isExtraTitleSet()) {
// Then prepend it
$pageTitle .= '{%pipe,getExtraTitle%} by ';
// Checks whethere there is a cache file there. This function is cached.
function isTemplateCached ($template) {
- // Do we have cached this result?
+ // Is there cached this result?
if (!isset($GLOBALS['template_cache'][$template])) {
// Generate FQFN
$FQFN = generateCacheFqfn($template);
// Function to add style tag (whether display:none/block)
function addStyleMenuContent ($menuMode, $mainAction, $action) {
- // Do we have foo_menu_javascript enabled?
+ // Is there foo_menu_javascript enabled?
if ((!isConfigEntrySet($menuMode . '_menu_javascript')) || (getConfig($menuMode . '_menu_javascript') == 'N')) {
// Silently abort here, not enabled
return '';
// Function to add onclick attribute
function addJavaScriptMenuContent ($menuMode, $mainAction, $action, $what) {
- // Do we have foo_menu_javascript enabled?
+ // Is there foo_menu_javascript enabled?
if ((!isConfigEntrySet($menuMode . '_menu_javascript')) || (getConfig($menuMode . '_menu_javascript') == 'N')) {
// Silently abort here, not enabled
return '';