File manager - Edit - /home/jardides/www/Jardi-design/components/com_sitemap/views/sitemap/tmpl/default.php
Back
<?php /** * * @author SDIC SA * @package Sitemap * @version 2.0 * @copyright Copyright (C) 2015 SDIC SA * @license GNU GPLv2 * @link https://www.sdic.ch * */ // No direct access to this file defined('_JEXEC') or die('Restricted access'); JHtml::_('jquery.framework'); $doc = JFactory::getDocument(); /** CSS **/ $randCSS = rand(1, 999999); $doc->addStyleSheet( '/components/com_sitemap/css/sitemap.css?r='.$randCSS ); /** JavaScript **/ $randJS = rand(1, 999999); $doc->addScript( '/components/com_sitemap/js/sitemap.js?r='.$randJS ); ?> <style> <!-- #sitemap{ width: 100%; height: 100%; text-align: center; overflow: hidden; vertical-align: top; } #sitemap_subwrapper{ overflow: hidden; margin: 0 auto; } .sitemap_subwrapper_center{ display: inline-block; } .sitemap_wrapper_indentation_lvl_1{ <?php if( !empty($this->width_lvl_1) ){ echo 'padding-left: '.$this->width_lvl_1.'px;'; } ?> } .sitemap_wrapper_indentation_lvl_2{ <?php if( !empty($this->width_lvl_2) ){ echo 'padding-left: '.$this->width_lvl_2.'px;'; } ?> } .sitemap_wrapper_indentation_lvl_3{ <?php if( !empty($this->width_lvl_3) ){ echo 'padding-left: '.$this->width_lvl_3.'px;'; } ?> } .sitemap_wrapper_indentation_lvl_4{ <?php if( !empty($this->width_lvl_4) ){ echo 'padding-left: '.$this->width_lvl_4.'px;'; } ?> } .sitemap_wrapper_normal{ display: block; } .sitemap_wrapper_responsive{ float: left; } .sitemap_wrapper_parent{ text-align: left; padding: 0px; margin-left: 10px; margin-right: 10px; height: 100%; } .sitemap_items{ overflow: hidden; } .sitemap_item_bodrer{ <?php if( !empty($this->border_color) ){ echo 'border-bottom: 1px solid '.$this->border_color.';'; } ?> } <?php if( !empty($this->display_hover_background) && !empty($this->hover_background_color) ){ echo '.sitemap_items:hover{'; echo 'background-color: '.$this->hover_background_color.';'; echo '}'; } ?> .sitemap_wrapper_parent div{ text-align: left; width: auto; } @media (max-width: 400px){ .sitemap_wrapper_parent, .sitemap_wrapper_responsive{ float: none; display: block; height: auto; } .sitemap_wrapper_indentation_lvl_1{ <?php if( !empty($this->width_lvl_1) ){ $this->width_lvl_1 = round(0.5 * $this->width_lvl_1); echo 'padding-left: '.$this->width_lvl_1.'px;'; } ?> } .sitemap_wrapper_indentation_lvl_2{ <?php if( !empty($this->width_lvl_2) ){ $this->width_lvl_2 = round(0.5 * $this->width_lvl_2); echo 'padding-left: '.$this->width_lvl_2.'px;'; } ?> } .sitemap_wrapper_indentation_lvl_3{ <?php if( !empty($this->width_lvl_3) ){ $this->width_lvl_3 = round(0.5 * $this->width_lvl_3); echo 'padding-left: '.$this->width_lvl_3.'px;'; } ?> } .sitemap_wrapper_indentation_lvl_4{ <?php if( !empty($this->width_lvl_4) ){ $this->width_lvl_4 = round(0.5 * $this->width_lvl_4); echo 'padding-left: '.$this->width_lvl_4.'px;'; } ?> } } --> </style> <script type="text/javascript"> <!-- function readyLayoutSitemap(){ <?php $clsSubWrapper = ''; if( $this->display == 1 || $this->display == 2 || $this->display == 3 ) { //cls $clsSubWrapper = 'class="sitemap_subwrapper_center"'; //js if( $this->display_border && !empty($this->border_color) ){ echo 'heightBorder = '.$this->counterTot.';'; } echo "setTimeout('checkDisplay()', 500);"; echo 'jQuery(window).resize( checkDisplay );'; } ?> } jQuery( document ).ready( readyLayoutSitemap ); //--> </script> <?php if( $this->displayTitle ){ ?> <h1 class="sitemap"><?php echo JText::_('COM_SITEMAP'); ?></h1> <?php } ?> <div id="sitemap"> <div id="sitemap_subwrapper" <?php echo $clsSubWrapper; ?>> <?php echo $this->result; ?> </div> </div>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings