]> git.mxchange.org Git - mailer.git/blobdiff - inc/template-functions.php
Rewrote 'we' word a little, rewrote mail order to use SQL_INSERTID() instead of anoth...
[mailer.git] / inc / template-functions.php
index 73d0de026f2ef828888290dd5d92bb77952c2ef0..00642e5d25dca5bddb080862334ac6b5caa5a286 100644 (file)
@@ -100,7 +100,7 @@ function outputHtml ($htmlCode, $newLine = true) {
        } // 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()) {
@@ -297,7 +297,7 @@ function loadTemplate ($template, $return = false, $content = array(), $compileC
        // Set current template
        $GLOBALS['current_template'] = $template;
 
-       // Do we have cache?
+       // Is there cache?
        if ((!isDebuggingTemplateCache()) && (isTemplateCached($template))) {
                // Evaluate the cache
                eval(readTemplateCache($template));
@@ -327,7 +327,7 @@ function loadTemplate ($template, $return = false, $content = array(), $compileC
                        // 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_')) {
@@ -378,7 +378,7 @@ function loadTemplate ($template, $return = false, $content = array(), $compileC
                //* 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) {
@@ -399,7 +399,7 @@ function detectExtraTemplatePath ($template) {
        // 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_') {
@@ -515,7 +515,7 @@ function loadEmailTemplate ($template, $content = array(), $userid = NULL, $load
                $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];
@@ -538,7 +538,7 @@ function loadEmailTemplate ($template, $content = array(), $userid = NULL, $load
 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);
@@ -893,7 +893,7 @@ function createTimeSelections ($timestamp, $prefix = '', $display = '', $align =
        $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();
@@ -1295,7 +1295,7 @@ function reportBug ($F, $L, $message = '', $sendEmail = true) {
                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);
@@ -1508,7 +1508,7 @@ function determinePageTitle () {
                        $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 ';
@@ -1569,7 +1569,7 @@ function determinePageTitle () {
 
 // 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);
@@ -1986,7 +1986,7 @@ function generateTimeUnitSelectionBox ($defaultUnit, $fieldName, $unitArray) {
 
 // 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 '';
@@ -2003,7 +2003,7 @@ function addStyleMenuContent ($menuMode, $mainAction, $action) {
 
 // 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 '';