Current File : /home/pacjaorg/www/cop/templates/eventus2/headers/style-1/header.php |
<?php
/**
* @package Helix Ultimate Framework
* @author JoomShaper https://www.joomshaper.com
* @copyright Copyright (c) 2010 - 2018 JoomShaper
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or Later
*/
defined ('_JEXEC') or die();
$data = $displayData;
$offcanvs_position = $displayData->params->get('offcanvas_position', 'right');
$feature_folder_path = JPATH_THEMES . '/' . $data->template->template . '/features/';
include_once $feature_folder_path.'logo.php';
include_once $feature_folder_path.'social.php';
include_once $feature_folder_path.'contact.php';
include_once $feature_folder_path.'menu.php';
$output = '';
$output .= '<div id="sp-top-bar">';
$output .= '<div class="container">';
$output .= '<div class="container-inner">';
$output .= '<div class="row">';
$output .= '<div id="sp-top1" class="col-lg-6">';
$output .= '<div class="sp-column text-center text-lg-left">';
$social = new HelixUltimateFeatureSocial($data->params);
if(isset($social->load_pos) && $social->load_pos == 'before')
{
$output .= $social->renderFeature();
$output .= '<jdoc:include type="modules" name="top1" style="sp_xhtml" />';
}
else
{
$output .= '<jdoc:include type="modules" name="top1" style="sp_xhtml" />';
$output .= $social->renderFeature();
}
$output .= '</div>';
$output .= '</div>';
$output .= '<div id="sp-top2" class="col-lg-6">';
$output .= '<div class="sp-column text-center text-lg-right">';
$contact = new HelixUltimateFeatureContact($data->params);
if(isset($contact->load_pos) && $contact->load_pos == 'before')
{
$output .= $contact->renderFeature();
$output .= '<jdoc:include type="modules" name="top2" style="sp_xhtml" />';
}
else
{
$output .= '<jdoc:include type="modules" name="top2" style="sp_xhtml" />';
$output .= $contact->renderFeature();
}
$output .= '</div>';
$output .= '</div>';
$output .= '</div>';
$output .= '</div>';
$output .= '</div>';
$output .= '</div>';
$output .= '<header id="sp-header">';
$output .= '<div class="container">';
$output .= '<div class="container-inner">';
$output .= '<div class="row">';
$class1 = 'col-8 col-lg-3';
$class2 = 'col-4 col-lg-9';
if($offcanvs_position == 'left')
{
$class1 = 'col-12 col-lg-3';
$class2 = 'd-none d-lg-block col-lg-9';
}
$output .= '<div id="sp-logo" class="'. $class1 .'">';
$output .= '<div class="sp-column">';
$logo = new HelixUltimateFeatureLogo($data->params);
if(isset($logo->load_pos) && $logo->load_pos == 'before')
{
$output .= $logo->renderFeature();
$output .= '<jdoc:include type="modules" name="logo" style="sp_xhtml" />';
}
else
{
$output .= '<jdoc:include type="modules" name="logo" style="sp_xhtml" />';
$output .= $logo->renderFeature();
}
$output .= '</div>';
$output .= '</div>';
$output .= '<div id="sp-menu" class="'. $class2 .'">';
$output .= '<div class="sp-column">';
$menu = new HelixUltimateFeatureMenu($data->params);
if(isset($menu->load_pos) && $menu->load_pos == 'before')
{
$output .= $menu->renderFeature();
$output .= '<jdoc:include type="modules" name="menu" style="sp_xhtml" />';
}
else
{
$output .= '<jdoc:include type="modules" name="menu" style="sp_xhtml" />';
$output .= $menu->renderFeature();
}
$output .= '</div>';
$output .= '</div>';
$output .= '</div>';
$output .= '</div>';
$output .= '</div>';
$output .= '</header>';
echo $output;