Hello bkrztuk,
Thanks for your help. I hope you can keep guiding us through this, since we haven't been able to make it work!!!
First, we found that the language file already has the sentences you mention:
- Code: Select all
TPL_GK_LANG_LOGO_TEXT="Logo Text"
TPL_GK_LANG_LOGO_TEXT_DESC="Main text of the logo (works only with text logo type)"
TPL_GK_LANG_LOGO_SLOGAN="Logo slogan"
TPL_GK_LANG_LOGO_SLOGAN_DESC="Slogan under the main text of the logo (works only with text logo type)"
So we understand that there was a problem of duplication. But still that should have shown "logo text" in our header, as we edited logo.php substituting the reference $logo_text so it is as follows:
- Code: Select all
$logo_text = JText::_('TPL_GK_LANG_LOGO_TEXT');
$logo_slogan = JText::_('TPL_GK_LANG_LOGO_SLOGAN');
I think that's where the issue is. This is how our logo.php file looks like, the section that is working now since we are using logo_type: text.
- Code: Select all
<?php if ($this->getParam('logo_type', 'image')!=='none'): ?>
<?php if($this->getParam('logo_type', 'image') == 'css') : ?>
<h1 id="gkLogo">
<a href="./" class="cssLogo"></a>
</h1>
<?php elseif($this->getParam('logo_type', 'image')=='text') : ?>
<div id="LogoNWT-wrap">
<a href="./">
<img src="images/logo2.png" alt="<?php echo $this->getPageName(); ?>" />
</a>
<div id="LogoNWT-wrap2">
<h1 class="gkLogo text">
<a href="./blog">
<span><?php echo $this->getParam('logo_text', ''); ?></span>
</a>
</h1>
<small class="gkLogoSlogan"><?php echo $this->getParam('logo_slogan',''); ?></small>
</div>
</div>
<?php elseif($this->getParam('logo_type', 'image')=='image') : ?>
<h1 id="gkLogo">
<a href="./">
<img src="<?php echo $logo_image; ?>" alt="<?php echo $this->getPageName(); ?>" />
</a>
</h1>
<?php endif; ?>
<?php endif; ?>
So looking into the <h1> for the text option, we are pulling
- Code: Select all
<?php echo $this->getParam('logo_text', ''); ?>
<?php echo $this->getParam('logo_slogan',''); ?>
And since there is no change in what is being shown in the front end, we are assuming that we are still pulling the title from the settings instead of from the language file. Shouldn't we be looking into something like?
- Code: Select all
<?php echo $this->'TPL_GK_LANG_LOGO_TEXT'; ?>
<?php echo $this->'TPL_GK_LANG_LOGO_SLOGAN'); ?>