<?php

// No direct access.
defined('_JEXEC') or die;
$logo_image = $this->API->get('logo_image', '');

if(($logo_image == '') || ($this->API->get('logo_type', '') == 'css')) {
     $logo_image = $this->API->URLtemplate() . '/images/logo.png';
} else {
     $logo_image = $this->API->URLbase() . $logo_image;
}

$logo_text = $this->API->get('logo_text', '');
$logo_slogan = $this->API->get('logo_slogan', '');

?>

<?php if ($this->API->get('logo_type', 'image')!=='none'): ?>
     <?php if($this->API->get('logo_type', 'image') == 'css') : ?>
     <h1 class="gkLogo">
     	<a href="<?php echo JURI::root(); ?> " id="gkLogo" class="cssLogo"><?php echo $this->API->get('logo_text', ''); ?></a>
     </h1>
     <?php elseif($this->API->get('logo_type', 'image')=='text') : ?>
     <h1 class="gkLogo">
	     <a href="<?php echo JURI::root(); ?> " id="gkLogo" class="text">
			<span><?php echo $this->API->get('logo_text', ''); ?></span>
			<?php if($this->API->get('logo_slogan', '') != '') : ?>
	        <small class="gkLogoSlogan"><?php echo $this->API->get('logo_slogan', ''); ?></small>
	        <?php endif; ?>
	     </a>
     </h1>
     <?php elseif($this->API->get('logo_type', 'image')=='image') : ?>
     <h1 class="gkLogo">
	     <a href="<?php echo JURI::root(); ?> " id="gkLogo">
	        <img src="<?php echo $logo_image; ?>" alt="<?php echo $this->API->getPageName(); ?>" />
	     </a>
     </h1>
     <?php endif; ?>
<?php endif; ?>