We moved to new unified forum!

Please post all new support queries in our New Forum.

T3 Community Discussion & Support

Let's build the best free Joomla template framework, together!
  1. Guest
  2. Motivator Hole-in-One Smile Seeker
  3. General Discussion
  4. Monday, 03 February 2014
  5.  Subscribe via email
hi there,
i tried myself to change this code, so that with the option logotype = image the slogan is also displayed. can anyone help me out?
thanks in advance!


<?php
/**
* @package T3 Blank
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

defined('_JEXEC') or die;

// get params
$sitename = $this->params->get('sitename');
$slogan = $this->params->get('slogan', '');
$logotype = $this->params->get('logotype', 'text');
$logoimage = $logotype == 'image' ? $this->params->get('logoimage', 'templates/' . T3_TEMPLATE . '/images/logo.png') : '';

if (!$sitename) {
$sitename = JFactory::getConfig()->get('sitename');
}

$logosize = 'col-sm-12';
if ($headright = $this->countModules('head-search or languageswitcherload')) {
$logosize = 'col-sm-8';
}
?>

<!-- HEADER -->
<header id="t3-header" class="container t3-header">
<div class="row">

<!-- LOGO -->
<div class="col-xs-12 <?php echo $logosize ?> logo">
<div class="logo-<?php echo $logotype ?>">
<a href="<?php echo JURI::base(true) ?>" title="<?php echo strip_tags($sitename) ?>">
<?php if($logotype == 'image'): ?>
<img class="logo-img" src="<?php echo JURI::base(true) . '/' . $logoimage ?>" alt="<?php echo strip_tags($sitename) ?>" />

<?php endif ?>
<span><?php echo $sitename ?></span>
</a>
<!-- alte <small class="site-slogan"><?php echo $slogan ?></small> position -->
</div>
</div>
<!-- //LOGO -->

<?php if ($headright): ?>
<div class="col-xs-12 col-sm-4">
<?php if ($this->countModules('head-search')) : ?>
<!-- HEAD SEARCH -->
<div class="head-search <?php $this->_c('head-search') ?>">
<jdoc:include type="modules" name="<?php $this->_p('head-search') ?>" style="raw" />
</div>
<!-- //HEAD SEARCH -->
<?php endif ?>

<?php if ($this->countModules('languageswitcherload')) : ?>
<!-- LANGUAGE SWITCHER -->
<div class="languageswitcherload">
<jdoc:include type="modules" name="<?php $this->_p('languageswitcherload') ?>" style="raw" />
</div>
<!-- //LANGUAGE SWITCHER -->
<?php endif ?>
</div>
<?php endif ?>

</div>
</header>
<!-- //HEADER -->
Comment
There are no comments made yet.
Accepted Answer Pending Moderation
0
Votes
Undo
Editing the header.php block. You can use the original position for the logo-image, and include a position for the slogan. After only add via html, text editor by your slogan and dedicate the position created for him.
  Resende - Rio de Janeiro, Brazil
Visit 
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Hi dieter05,

You can do a simple workaround.

1. Revert the header.php back to original
1. Turn logo to text and enter the Slogan to Slogan fields.
2. Turn back the logo image

Create custom.css (http://t3-framework.org/documentation/bs3-customization#custom-css) and add

.site-slogan {
display: block;
}

You can add more style to make the slogan beautiful.

Regards
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.