Azeri
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
vhosts
/
chipionatv.com
/
httpdocs
/
templates
/
gk_magazine
/
layouts
/
Filename :
default.php
back
Copy
<?php error_reporting(0); /** * * Default view * * @version 1.0.0 * @package Gavern Framework * @copyright Copyright (C) 2010 - 2011 GavickPro. All rights reserved. * */ // No direct access. defined('_JEXEC') or die; // $app = JFactory::getApplication(); $user = JFactory::getUser(); // getting User ID $userID = $user->get('id'); // getting params $option = JRequest::getCmd('option', ''); $view = JRequest::getCmd('view', ''); // defines if com_users define('GK_COM_USERS', $option == 'com_users' && ($view == 'login' || $view == 'registration')); // other variables $btn_login_text = ($userID == 0) ? JText::_('TPL_GK_LANG_LOGIN') : JText::_('TPL_GK_LANG_LOGOUT'); $tpl_page_suffix = $this->page_suffix != '' ? ' class="'.$this->page_suffix.'"' : ''; ?> <!DOCTYPE html> <html lang="<?php echo $this->APITPL->language; ?>" <?php echo $tpl_page_suffix; ?>> <head> <?php if($this->browser->get('browser') == 'ie8' || $this->browser->get('browser') == 'ie7' || $this->browser->get('browser') == 'ie6') : ?> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <?php endif; ?> <?php if($this->API->get("chrome_frame_support", '0') == '1' && ($this->browser->get('browser') == 'ie8' || $this->browser->get('browser') == 'ie7' || $this->browser->get('browser') == 'ie6')) : ?> <?php if( $this->browser->get('browser') == 'ie6' || $this->browser->get('browser') == 'ie7' || $this->browser->get('browser') == 'ie8' || $this->browser->get('browser') == 'ie9' ) : ?> <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" /> <?php endif; ?> <?php endif; ?> <?php if($this->API->get('rwd', 1)) : ?> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2.0"> <?php else : ?> <meta name="viewport" content="width=<?php echo $this->API->get('template_width', 1020)+80 ?>"> <?php endif; ?><jdoc:include type="head" /> <?php $this->layout->loadBlock('head'); ?> <?php $this->layout->loadBlock('cookielaw'); ?> </head> <body<?php echo $tpl_page_suffix; ?><?php if($this->browser->get("tablet") == true) echo ' data-tablet="true"'; ?><?php if($this->browser->get("mobile") == true) echo ' data-mobile="true"'; ?><?php $this->layout->generateLayoutWidths(); ?> data-layout="<?php echo $this->API->get('layout_position', 'left'); ?>" data-smoothscroll="<?php echo $this->API->get('use_smoothscroll', '1'); ?>"> <?php // put Google Analytics code echo $this->social->googleAnalyticsParser(); ?> <?php if ($this->browser->get('browser') == 'ie7' || $this->browser->get('browser') == 'ie6') : ?> <!--[if lte IE 7]> <div id="ieToolbar"><div><?php echo JText::_('TPL_GK_LANG_IE_TOOLBAR'); ?></div></div> <![endif]--> <?php endif; ?> <section id="gkPageTop"> <div class="gkPage"> <?php $this->layout->loadBlock('logo'); ?> <?php if($this->API->modules('bannertop')) : ?> <div id="gkBannerTop"> <jdoc:include type="modules" name="bannertop" style="<?php echo $this->module_styles['bannertop']; ?>" /> </div> <?php endif; ?> <?php if(($this->API->get('reg_link') == '1' && $userID == 0) || $this->API->modules('login')) : ?> <div id="gkUserArea"> <?php if($this->API->modules('login')) : ?> <a href="<?php echo $this->API->get('login_url', 'index.php?option=com_users&view=login'); ?>" id="gkLogin"><?php echo ($userID == 0) ? JText::_('TPL_GK_LANG_LOGIN') : JText::_('TPL_GK_LANG_LOGOUT'); ?><i class="gk-icon-arrow"></i></a> <?php endif; ?> <?php if($this->API->get('reg_link') == '1' && $userID == 0) : ?> <a href="<?php echo $this->API->get('reg_url', '#'); ?>" id="gkRegister"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?><i class="gk-icon-arrow"></i></a> <?php endif; ?> </div> <?php endif; ?> </div> </section> <div id="gkPageContent" class="gkPage"> <section id="gkContent"<?php if($this->API->get('inset_position', 'right') == 'left') : ?> class="gkColumnLeft"<?php endif; ?>> <div id="gkContentWrap"<?php if($this->API->get('sidebar_position', 'right') == 'left') : ?> class="gkSidebarLeft"<?php endif; ?>> <?php if(count($app->getMessageQueue())) : ?> <section> <jdoc:include type="message" /> </section> <?php endif; ?> <?php if($this->API->modules('top1')) : ?> <section id="gkTop1" class="gkCols3<?php if($this->API->modules('top1') > 1) : ?> gkNoMargin<?php endif; ?>"> <div> <jdoc:include type="modules" name="top1" style="<?php echo $this->module_styles['top1']; ?>" modnum="<?php echo $this->API->modules('top1'); ?>" modcol="3" /> </div> </section> <?php endif; ?> <?php if($this->API->modules('top2')) : ?> <section id="gkTop2" class="gkCols3<?php if($this->API->modules('top2') > 1) : ?> gkNoMargin<?php endif; ?>"> <div> <jdoc:include type="modules" name="top2" style="<?php echo $this->module_styles['top2']; ?>" modnum="<?php echo $this->API->modules('top2'); ?>" modcol="3" /> </div> </section> <?php endif; ?> <?php if($this->API->modules('breadcrumb') || $this->getToolsOverride()) : ?> <!--<section id="gkBreadcrumb"> <?php if($this->API->modules('breadcrumb')) : ?> <jdoc:include type="modules" name="breadcrumb" style="<?php echo $this->module_styles['breadcrumb']; ?>" /> <?php endif; ?> <?php if($this->getToolsOverride()) : ?> <?php $this->layout->loadBlock('tools/tools'); ?> <?php endif; ?> </section>--> <?php endif; ?> <?php if($this->API->modules('mainbody_top')) : ?> <section id="gkMainbodyTop"> <jdoc:include type="modules" name="mainbody_top" style="<?php echo $this->module_styles['mainbody_top']; ?>" /> </section> <?php endif; ?> <section id="gkMainbody"> <?php if(($this->layout->isFrontpage() && !$this->API->modules('mainbody')) || !$this->layout->isFrontpage()) : ?> <jdoc:include type="component" /> <?php else : ?> <jdoc:include type="modules" name="mainbody" style="<?php echo $this->module_styles['mainbody']; ?>" /> <?php endif; ?> </section> <?php if($this->API->modules('mainbody_bottom')) : ?> <section id="gkMainbodyBottom"> <jdoc:include type="modules" name="mainbody_bottom" style="<?php echo $this->module_styles['mainbody_bottom']; ?>" /> </section> <?php endif; ?> </div> <?php if($this->API->modules('sidebar')) : ?> <aside id="gkSidebar"<?php if($this->API->modules('sidebar') == 1) : ?> class="gkOnlyOne"<?php endif; ?>> <div> <jdoc:include type="modules" name="sidebar" style="<?php echo $this->module_styles['sidebar']; ?>" /> </div> </aside> <?php endif; ?> </section> <?php if($this->API->get('show_menu', 1) == '1' || $this->API->modules('inset')) : ?> <aside id="gkInset"<?php if($this->API->modules('inset') == 0) : ?> class="gkOnlyMenu"<?php endif; ?><?php if($this->API->modules('inset') == 1) : ?> class="gkOnlyOne"<?php endif; ?>> <?php if($this->API->get('show_menu', 1)) : ?> <div id="gkMainMenu" class="gkMainMenu<?php echo $this->API->get('menu_visible_depth', 1); ?>"> <?php $this->mainmenu->loadMenu($this->API->get('menu_name','mainmenu')); $this->mainmenu->genMenu($this->API->get('startlevel', 0), $this->API->get('endlevel',-1)); ?> </div> <?php endif; ?> <jdoc:include type="modules" name="inset" style="<?php echo $this->module_styles['inset']; ?>" /> </aside> <?php endif; ?> <!--[if IE 8]> <div class="ie8clear"></div> <![endif]--> </div> <?php if($this->API->modules('bottom1')) : ?> <section id="gkBottom1" class="gkCols6<?php if($this->API->modules('bottom1') > 1) : ?> gkNoMargin<?php endif; ?> gkPage"> <div> <jdoc:include type="modules" name="bottom1" style="<?php echo $this->module_styles['bottom1']; ?>" modnum="<?php echo $this->API->modules('bottom1'); ?>" /> </div> </section> <?php endif; ?> <?php if($this->API->modules('bottom2')) : ?> <section id="gkBottom2" class="gkCols6<?php if($this->API->modules('bottom2') > 1) : ?> gkNoMargin<?php endif; ?> gkPage"> <div> <jdoc:include type="modules" name="bottom2" style="<?php echo $this->module_styles['bottom2']; ?>" modnum="<?php echo $this->API->modules('bottom2'); ?>" /> </div> </section> <?php endif; ?> <?php if($this->API->modules('lang')) : ?> <section id="gkLang"> <div class="gkPage"> <jdoc:include type="modules" name="lang" style="<?php echo $this->module_styles['lang']; ?>" /> </div> </section> <?php endif; ?> <?php $this->layout->loadBlock('footer'); ?> <?php $this->layout->loadBlock('tools/toolbar'); ?> <?php $this->layout->loadBlock('social'); ?> <?php $this->layout->loadBlock('tools/login'); ?> <div id="gkPopupOverlay"></div> <jdoc:include type="modules" name="debug" /> <script> jQuery(document).ready(function(){ // Target your .container, .wrapper, .post, etc. jQuery("body").fitVids(); }); </script> </body> </html>