| Current Path : /var/www/components/com_contactpush/layouts/ |
| Current File : /var/www/components/com_contactpush/layouts/title.php |
<?php
/** ______________________________________________
* o O | |
* ((((( o < Generated with Cook Self Service V3.1 |
* ( o o ) |______________________________________________|
* --------oOOO-----(_)-----OOOo---------------------------------- www.j-cook.pro --- +
* @version 1.0.0
* @package Contact Push
* @subpackage Contact Push
* @copyright Netamity 2017
* @author Andy Hickey - www.netamity.com - andy@netamity.com
* @license GPL V2+
*
* .oooO Oooo.
* ( ) ( )
* -------------\ (----) /----------------------------------------------------------- +
* \_) (_/
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
?>
<?php
// Initialize variables
$params = $displayData['params'];
// Show the Header ?
$showHeading = $params->get('show_page_heading', true);
$menu = JFactory::getApplication()->getMenu()->getActive();
if ($menu)
$showHeading = $params->get('show_page_heading', $menu->params->get('show_page_heading', true));
// Retreive the title to display
if (isset($displayData['title']))
$title = $displayData['title'];
else
{
$title = $params->get('title', $params->get('page_heading'));
// Fallback using menu parameters
if (empty($title) && $menu)
$title = $menu->params->get('page_heading', $menu->title);
}
// Redefine the browser title
if (isset($displayData['browserTitle']))
{
$browserTitle = $displayData['browserTitle'];
$document = JFactory::getDocument();
$document->setTitle($browserTitle);
}
?>
<?php if ($showHeading) : ?>
<div class="page-header">
<h1> <?php echo $this->escape($title); ?> </h1>
</div>
<?php endif; ?>