| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/components/com_djmediatools/layouts/slider/css/ |
Upload File : |
<?php
/**
* @version $Id$
* @package DJ-MediaTools
* @copyright Copyright (C) 2017 DJ-Extensions.com, All rights reserved.
* @license http://www.gnu.org/licenses GNU/GPL
* @author url: http://dj-extensions.com
* @author email contact@dj-extensions.com
* @developer Szymon Woronowski - szymon.woronowski@design-joomla.eu
*
* DJ-MediaTools is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* DJ-MediaTools is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with DJ-MediaTools. If not, see <http://www.gnu.org/licenses/>.
*
*/
defined('_JEXEC') or die;
setlocale(LC_NUMERIC, 'C');
//Header ("Content-type: text/css");
// Get slider parameters
$mid = isset($options['mid']) ? $options['mid'] : $_GET['mid'];
$slider_type = isset($options['st']) ? $options['st'] : $_GET['st'];
$slide_width = isset($options['w']) ? $options['w'] : $_GET['w'];
$slide_height = isset($options['h']) ? $options['h'] : $_GET['h'];
$slider_width = isset($options['sw']) ? $options['sw'] : $_GET['sw'];
$slider_height = isset($options['sh']) ? $options['sh'] : $_GET['sh'];
$spacing = isset($options['s']) ? $options['s'] : $_GET['s'];
$desc_width = isset($options['dw']) ? $options['dw'] : $_GET['dw'];
$desc_bottom = isset($options['db']) ? $options['db'] : $_GET['db'];
$desc_left = isset($options['dl']) ? $options['dl'] : $_GET['dl'];
$arrows_top = isset($options['at']) ? $options['at'] : $_GET['at'];
$arrows_horizontal = isset($options['ah']) ? $options['ah'] : $_GET['ah'];
$show_buttons = isset($options['sb']) ? $options['sb'] : $_GET['sb'];
$show_arrows = isset($options['sa']) ? $options['sa'] : $_GET['sa'];
$show_custom_nav = isset($options['sc']) ? $options['sc'] : $_GET['sc'];
$custom_nav_pos = isset($options['cnp']) ? $options['cnp'] : $_GET['cnp'];
$custom_nav_align = isset($options['cna']) ? $options['cna'] : $_GET['cna'];
$resizing = isset($options['r']) ? $options['r'] : $_GET['r'];
$image_width = 'max-width: 100%';
$image_height = 'max-height: 100%';
switch($resizing){
case 'crop':
case 'toWidth':
$image_width = 'width: 100%';
$image_height = 'height: auto';
break;
case 'toHeight':
$image_width = 'width: auto';
$image_height = 'height: 100%';
break;
}
/* DON'T CHANGE ANYTHING UNLESS YOU ARE SURE YOU KNOW WHAT YOU ARE DOING */
/* General slider settings */ ?>
#djslider-loader<?php echo $mid; ?> {
margin: 10px auto;
position: relative;
background: url(<?php echo $ipath ?>/images/loader.gif) center center no-repeat;
}
#djslider<?php echo $mid; ?> {
opacity: 0;
margin: 0 auto;
position: relative;
height: <?php echo $slider_height; ?>px;
width: <?php echo $slider_width; ?>px;
max-width: <?php echo $slider_width; ?>px;
}
#slider-container<?php echo $mid; ?> {
position: absolute;
overflow: hidden;
left: 0;
top: 0;
height: 100%;
width: 100%;
}
#djslider<?php echo $mid; ?> ul#slider<?php echo $mid; ?> {
margin: 0 !important;
padding: 0 !important;
border: 0 !important;
}
#djslider<?php echo $mid; ?> ul#slider<?php echo $mid; ?> > li:before {
content: none;
}
#djslider<?php echo $mid; ?> ul#slider<?php echo $mid; ?> > li {
list-style: none outside !important;
<?php if($slider_type == 'left') { ?>
float: left;
margin: 0 <?php echo $spacing; ?>px 0 0 !important;
<?php } else if($slider_type == 'right') { ?>
float: right;
margin: 0 0 0 <?php echo $spacing; ?>px !important;
<?php } else if($slider_type == 'up') { ?>
margin: 0 0 <?php echo $spacing; ?>px 0 !important;
<?php } else if($slider_type == 'down') { ?>
margin: <?php echo $spacing; ?>px 0 0 0 !important;
<?php } else { ?>
margin: 0 !important;
<?php } ?>
padding: 0 !important;
border: 0 !important;
position: relative;
height: <?php echo $slide_height; ?>px;
width: <?php echo $slide_width; ?>px;
background: none;
overflow: hidden;
text-align: center;
}
#slider<?php echo $mid; ?> > li .dj-slide-image {
height: 100%;
}
#slider<?php echo $mid; ?> > li img {
<?php echo $image_width; ?>;
<?php echo $image_height; ?>;
border: 0 !important;
margin: 0 !important;
}
#slider<?php echo $mid; ?> > li a img, #slider<?php echo $mid; ?> > li a:hover img {
border: 0 !important;
}
#slider<?php echo $mid; ?> .video-icon {
display: block;
position: absolute;
left: 50%;
top: 50%;
width: 100px;
height: 100px;
margin: -50px 0 0 -50px;
background: url(<?php echo $ipath ?>/images/video.png) center center no-repeat;
}
<?php /* Slide description area settings */ ?>
#slider<?php echo $mid; ?> .dj-slide-desc {
position: absolute;
bottom: <?php echo $desc_bottom; ?>%;
left: <?php echo $desc_left; ?>%;
width: <?php echo $desc_width; ?>%;
}
#slider<?php echo $mid; ?> .dj-slide-desc-in {
position: relative;
}
#slider<?php echo $mid; ?> .dj-slide-desc-bg {
position:absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
<?php
// Color
if(isset($options['description']['background']) && $options['description']['background']) : ?>
background: <?php echo $options['description']['background'];?>;
<?php else : ?>
background: #000;
<?php endif; ?>
opacity: 0.5;
filter: alpha(opacity = 50);
}
#slider<?php echo $mid; ?> .dj-slide-desc-text {
position: relative;
padding: 10px;
text-align: left;
<?php
// Color
if(isset($options['description']['color']) && $options['description']['color']) : ?>
color: <?php echo $options['description']['color'];?>;
<?php endif;
// Size
if(isset($options['description']['size']) && $options['description']['size']) : ?>
font-size: <?php echo $options['description']['size'];?>;
<?php endif;
// Font
if(isset($options['description']['font']) && $options['description']['font']) : ?>
font-family: '<?php echo $options['description']['font'];?>';
<?php endif;
// Weight
if(isset($options['description']['weight']) && $options['description']['weight']) : ?>
font-weight: '<?php echo $options['description']['weight'];?>';
<?php endif; ?>
}
#slider<?php echo $mid; ?> .dj-slide-desc-text p {
display: block;
padding: 0;
}
#slider<?php echo $mid; ?> .dj-slide-desc-text a {
color: #f5f5f5;
}
#slider<?php echo $mid; ?> .dj-slide-title {
line-height: 1.1;
margin-bottom: 5px;
<?php
// Color
if(isset($options['title']['color']) && $options['title']['color']) : ?>
color: <?php echo $options['title']['color'];?>;
<?php else : ?>
color: #f5f5f5;
<?php endif; ?>
<?php
// Size
if(isset($options['title']['size']) && $options['title']['size']) : ?>
font-size: <?php echo $options['title']['size'];?>;
<?php else : ?>
font-size: 1.3em;
<?php endif;
// Font
if(isset($options['title']['font']) && $options['title']['font']) : ?>
font-family: '<?php echo $options['title']['font'];?>';
<?php endif;
// Weight
if(isset($options['title']['weight']) && $options['title']['weight']) : ?>
font-weight: '<?php echo $options['title']['weight'];?>';
<?php else : ?>
font-weight: bold;
<?php endif; ?>
}
#slider<?php echo $mid; ?> .dj-slide-title a {
background: none;
<?php
// Color
if(isset($options['title']['color']) && $options['title']['color']) : ?>
color: <?php echo $options['title']['color'];?>;
<?php else : ?>
color: #f5f5f5;
<?php endif; ?>
}
#slider<?php echo $mid; ?> .dj-slide-description a {
<?php
// Color
if(isset($options['description']['color']) && $options['description']['color']) : ?>
color: <?php echo $options['description']['color'];?>;
<?php else : ?>
color: #f5f5f5;
<?php endif; ?>
}
#slider<?php echo $mid; ?> .dj-readmore-wrapper {
padding: 5px 0 0;
<?php if(isset($options['readmore']['position']) && $options['readmore']['color']) : ?>
text-align: <?php echo $options['readmore']['position'];?>;
<?php else : ?>
text-align: right;
<?php endif; ?>
}
#slider<?php echo $mid; ?> a.dj-readmore {
<?php
// Color
if(isset($options['readmore']['color']) && $options['readmore']['color']) : ?>
color: <?php echo $options['readmore']['color'];?>;
<?php endif;
// Size
if(isset($options['readmore']['size']) && $options['readmore']['size']) : ?>
font-size: <?php echo $options['readmore']['size'];?>;
<?php else : ?>
font-size: 1.1em;
<?php endif;
// Font
if(isset($options['readmore']['font']) && $options['readmore']['font']) : ?>
font-family: '<?php echo $options['readmore']['font'];?>';
<?php endif;
// Weight
if(isset($options['readmore']['weight']) && $options['readmore']['weight']) : ?>
font-weight: <?php echo $options['readmore']['weight'];?>;
<?php endif; ?>
}
#slider<?php echo $mid; ?> .dj-extra {
float: right;
margin: 0 0 5px 20px;
}
<?php /* Navigation buttons settings */ ?>
#navigation<?php echo $mid; ?> {
position: relative;
top: <?php echo $arrows_top; ?>%;
margin: 0 <?php echo $arrows_horizontal; ?>px;
text-align: center !important;
justify-content: space-between;
display: flex;
}
#prev<?php echo $mid; ?> {
cursor: pointer;
display: block;
margin: 0 6px;
order: 1;
<?php if(!$show_arrows) { ?>
top: -9999px;
<?php } ?>
}
#next<?php echo $mid; ?> {
cursor: pointer;
display: block;
margin: 0 6px;
order: 3;
<?php if(!$show_arrows) { ?>
top: -9999px;
<?php } ?>
}
#play<?php echo $mid; ?>,
#pause<?php echo $mid; ?> {
cursor: pointer;
display: block;
margin: 0 6px;
order: 2;
<?php if(!$show_buttons) { ?>
top: -9999px;
<?php } ?>
}
<?php /* Slide indicators settings */ ?>
<?php if($show_custom_nav) { ?>
#cust-navigation<?php echo $mid; ?> {
<?php if($custom_nav_pos=='above') { ?>
margin: 0 auto 10px auto;
max-width: <?php echo $slider_width; ?>px;
<?php } else if($custom_nav_pos=='topin') { ?>
position: absolute;
z-index: 15;
width: 100%;
top: 10px;
<?php } else if($custom_nav_pos=='bottomin') { ?>
position: absolute;
z-index: 15;
width: 100%;
bottom: 10px;
<?php } else if($custom_nav_pos=='below') { ?>
margin: 10px auto 0 auto;
max-width: <?php echo $slider_width; ?>px;
<?php } ?>
}
#cust-navigation<?php echo $mid; ?> .cust-navigation-in {
text-align: <?php echo $custom_nav_align ?>;
padding: 0 10px;
}
#cust-navigation<?php echo $mid; ?> .load-button {
width: 10px;
height: 10px;
display: inline-block;
background: #000;
border: 2px solid #fff;
box-shadow: 0 0 2px #999;
margin: 2px;
cursor: pointer;
border-radius: 7px;
-moz-border-radius: 7px;
opacity: 0.2;
filter: alpha(opacity = 20);
}
#cust-navigation<?php echo $mid; ?> .load-button-active {
opacity: 0.8;
filter: alpha(opacity = 80);
}
<?php } ?>
/* Fading elements */
#djslider-loader<?php echo $mid; ?> .showOnHover {
opacity: 0;
-webkit-transition: opacity 200ms ease 50ms;
transition: opacity 200ms ease 50ms;
}
#djslider-loader<?php echo $mid; ?>:hover .showOnHover,
#djslider-loader<?php echo $mid; ?>.focused .showOnHover {
opacity: 1;
}
html[dir="rtl"] .djslider {
direction: ltr;
}
html[dir="rtl"] .djslider .navigation-container-custom {
direction: rtl;
}
#djslider-loader<?php echo $mid; ?> .dj-slide-desc.desc-center-vh{
height: 100%;
width: 100%;
left: 0;
bottom: 0;
background: none;
}
#djslider-loader<?php echo $mid; ?> .dj-slide-desc.desc-center-vh .dj-slide-desc-in{
height: auto;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: <?php echo $desc_width; ?>%;
}
#djslider-loader<?php echo $mid; ?> .dj-slide-title { margin-top: 10px; margin-bottom: 10px; }