![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 2 Pomógł: 0 Dołączył: 6.04.2013 Ostrzeżenie: (0%) ![]() ![]() |
Witam
Proszę doradźcie jak wykluczyć z kodu include_once tak aby strona dalej działała a omijała tą instrukcje, chce po prostu usunąć ta funkcje tylko nie wiem jak... // including base setup file include_once (JPATH_ROOT."/templates/".$this->template.'/lib/php/jm_mobile-detect.php'); include_once (JPATH_ROOT."/templates/".$this->template.'/lib/php/jm_setup.php'); Bo to ona jest odpowiedzialna za wykrywanie telefonu? ![]() Po niżej jest cały php z mojego indeksu strony. <?php /*-------------------------------------------------------------- # Copyright joomla-monster.com # License: http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only # Website: http://www.joomla-monster.com # Support: info@joomla-monster.com ---------------------------------------------------------------*/ defined('_JEXEC') or die; // including base setup file include_once (JPATH_ROOT."/templates/".$this->template.'/lib/php/jm_mobile-detect.php'); include_once (JPATH_ROOT."/templates/".$this->template.'/lib/php/jm_setup.php'); ?> <?php if ($this->direction == 'rtl') { ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <?php } else { ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <?php } ?> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $direction; ?>" > <head> <?php // including template header files include_once (JPATH_ROOT."/templates/".$this->template.'/lib/php/jm_head.php'); ?> </head> <body> <div id="jm-allpage"> <div id="jm-allpage-in"> <?php if(($this->countModules('search')) || ($this->countModules('social')) || ($logo != null) || ($logotext != null) || ($sitedescription != null)) : ?> <div id="jm-logo-search-social" class="clearfix"> <?php if (($logo != null) || ($logotext != null) || ($sitedescription != null)) : ?> <div id="jm-logo-sitedesc"> <?php if (($logo != null) || ($logotext != null)) : ?> <h1 id="jm-logo"><a href="<?php echo JURI::base(); ?>" onfocus="blur()" ><?php if ($logo != null ) : ?><img src="<?php echo JURI::base(); ?>/<?php echo htmlspecialchars($logo); ?>" alt="<?php echo htmlspecialchars($logotext);?>" border="0" /><?php else : ?><?php echo htmlspecialchars($logotext);?><?php endif; ?></a></h1> <?php endif; ?> <?php if ($sitedescription != null) : ?> <div id="jm-sitedesc"> <?php echo htmlspecialchars($sitedescription); ?> </div> <?php endif; ?> </div> <?php endif; ?> <?php if(($this->countModules('search')) || ($this->countModules('social'))) : ?> <div id="jm-search-social" class="clearfix"> <?php if($this->countModules('search')) : ?> <div id="jm-search"> <jdoc:include type="modules" name="search" style="raw"/> </div> <?php endif; ?> <?php if($this->countModules('social')) : ?> <div id="jm-social" <?php echo $nosearch; ?>> <jdoc:include type="modules" name="social" style="raw"/> </div> <?php endif; ?> </div> <?php endif; ?> </div> <?php endif; ?> <?php if($this->countModules('dj-menu-top')) : ?> <div id="jm-djmenu" class="clearfix"> <jdoc:include type="modules" name="dj-menu-top" style="raw"/> </div> <?php endif; ?> <?php if($this->countModules('header')) : ?> <div id="jm-header"> <jdoc:include type="modules" name="header" style="jmmodule"/> </div> <?php endif; ?> <?php if ($this->countModules('breadcrumbs')) : ?> <div id="jm-breadcrumbs"> <div id="jm-pathway-font-switcher" class="clearfix <?php echo $nofontsw; ?><?php echo $nobreadcrumbs; ?>"> <?php if ($this->countModules('breadcrumbs')) : ?> <jdoc:include type="modules" name="breadcrumbs" style="xhtml"/> <?php endif; ?> </div> </div> <?php endif; ?> <?php if ($this->countModules('top')) : ?> <div id="jm-top"> <?php echo DJModuleHelper::renderModules('top','jmmodule',4); ?> </div> <?php endif; ?> <div id="jm-midpage"> <?php // including template layouts for desktop, mobile and tablet devices $detect = new JMMobile_Detect(); $isMobile = $detect->isMobile(); $isTablet = $detect->isTablet(); if ($isMobile && !$isTablet) { include_once (JPATH_ROOT."/templates/".$this->template.'/tpl/content-left-right.php'); } else { include_once (JPATH_ROOT."/templates/".$this->template.'/tpl/'.$schemeoption.'.php'); } ?> </div> <?php if ($this->countModules('bottom1')) : ?> <div id="jm-bottom1"> <?php echo DJModuleHelper::renderModules('bottom1','jmmodule',4); ?> </div> <?php endif; ?> <?php if ($this->countModules('bottom2')) : ?> <div id="jm-bottom2"> <?php echo DJModuleHelper::renderModules('bottom2','jmmodule',1); ?> </div> <?php endif; ?> <?php if ($this->countModules('bottom3')) : ?> <div id="jm-bottom3"> <?php echo DJModuleHelper::renderModules('bottom3','jmmodule',1); ?> </div> <?php endif; ?> <div id="jm-footer" class="clearfix"> <?php if($this->countModules('copyrights')) : ?> <div id="jm-copyrights"> <jdoc:include type="modules" name="copyrights" style="raw" /> </div> <?php endif; ?> <div id="jm-poweredby"> <a href="http://www.alpadach.pl/" onfocus="blur()" target="_blank" title="AlpaDach">AlpaDach</a> by Michlak </div> </div> <?php if($styleswitcher == '1') : ?> <div id="jm-stylearea"> <a href="#" id="style_icon-1" class="style_switcher"><span> </span></a> <a href="#" id="style_icon-2" class="style_switcher"><span> </span></a> <a href="#" id="style_icon-3" class="style_switcher"><span> </span></a> <a href="#" id="style_icon-4" class="style_switcher"><span> </span></a> </div> <?php endif; ?> </div> <?php if($backtotop == '1') : ?> <p id="jm-back-top" style="display: block;"><a href="#top"><span></span> </a></p> <?php endif; ?> </div> <jdoc:include type="modules" name="debug" style="raw"/> </body> </html> |
|
|
![]()
Post
#2
|
|
![]() Grupa: Zarejestrowani Postów: 2 707 Pomógł: 290 Dołączył: 16.12.2008 Skąd: Śląsk Ostrzeżenie: (0%) ![]() ![]() |
Próbowałeś zakomentować / usunąć?
-------------------- |
|
|
![]() ![]() |
![]() |
Aktualny czas: 20.08.2025 - 06:24 |