Bottom menu does not show template name

My tests show that the bottom menu is pulling out the directory name of the template and not the name of the template as stored in BxTemplName.php.  Any indication of how long this as been the case?  I guess if one always named the template directory exactly the same as the template name, this might have gone unnoticed.  However, it is a bug and should be pulling out the template name stored in BxTemplName.php.

You can see this with the default template UNI; the directory name is tmpl_uni and the name stored in the BxTemplName.php is UNI; all caps.  Yet, if you notice, the name listed in the bottom menu switcher is uni, all lower case.  I am also seeing this in some custom templates I am working on and I kept seeing the wrong name listed down in the bottom menu; the pop-up lists the correct template name.

        function getSwitcherTemplate()
        {
            $sContent = '';
            if(getParam('enable_template') != 'on')
                return $sContent;

            $iTmplsCount = count(get_templates_array());
            if($iTmplsCount <= 1)
                return $sContent;

            $sTemplName = $GLOBALS['oSysTemplate']->getCode();

            $aTmplVars = array();
            $aTmplVars[] = array(
                'caption' => _t('_sys_bm_design', $sTemplName),
                'link' => 'javascript:void(0)',
                'script' => 'onclick="javascript:showPopupTemplate()"',
                'target' => ''
            );

            $sContent .= $GLOBALS['oSysTemplate']->parseHtmlByName('extra_' . $this->sName . '_menu.html', array('bx_repeat:items' => $aTmplVars));
            $sContent .= $this->getListTemplate($sTemplName);

            return $sContent;
        }

Geeks, making the world a better place
Quote · 11 May 2013

Until this bug is fixed, I guess I can remove the current template name from the bottom menu although it is nice to know to show members the current template name.

Geeks, making the world a better place
Quote · 11 May 2013

Actually there is limited space in bottom menu and short version of language and template is shown there.

Rules → http://www.boonex.com/terms
Quote · 13 May 2013

 

Actually there is limited space in bottom menu and short version of language and template is shown there.

 There was plenty of space on my page; however, where is this short version of language and template located?  How can I change this because I don't want the wrong name showing for the template.    I know, I can check this by making a template folder tmpl_Averylongtemplatefoldernameforthebottommenu and sees what shows up, LOL.

Geeks, making the world a better place
Quote · 13 May 2013

 Short version is in template's folder name and in settings(as current template name), long name is in templates/tmpl_XXX/scripts/BxTemplName.php file.

where is this short version of language and template located?

 

Rules → http://www.boonex.com/terms
Quote · 14 May 2013

 

 Short version is in template's folder name and in settings(as current template name), long name is in templates/tmpl_XXX/scripts/BxTemplName.php file.

where is this short version of language and template located?

 

Alex, do you realise that if I have the template's folder name as "ThisIsMyReallyCoolTemplate" and then have the long name in the BxTemplName.php as "Cool", then the short version is going to be longer than the long version in BxTemplName.php.  Sometimes I do wonder what Boonex coders were thinking.  The name shown in the footer should be the name as included in BxTemplName.php.

Geeks, making the world a better place
Quote · 14 May 2013

The same behaviour is for languages switcher as well, language code is displayed and full language name is in popup.

This is common practice to name template folder with some short name, if someone have long template name folder it is better to ask to change it to something short and readable. Good template designers should test it and respect such behaviour.

Alex, do you realise that if I have the template's folder name as "ThisIsMyReallyCoolTemplate" and then have the long name in the BxTemplName.php as "Cool", then the short version is going to be longer than the long version in BxTemplName.php.  Sometimes I do wonder what Boonex coders were thinking.  The name shown in the footer should be the name as included in BxTemplName.php.

 

Rules → http://www.boonex.com/terms
Quote · 15 May 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.