File manager - Edit - /home/verseaumee/www/plugins/system/bluejoomla/shortcodes/carousel.php
Back
<?php /** * @author Bluejoomla * @date: 01-04-2014 * * @copyright Copyright (C) 2013 Bluejoomla.com . All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ //no direct accees defined ('_JEXEC') or die('resticted aceess'); //[testinomial] if(!function_exists('revolution_sc')) { function revolution_sc( $atts, $content="" ){ $params = shortcode_atts(array( 'style' => '1', ), $atts); $doc = JFactory::getDocument(); $doc->addScript(JUri::root() .'plugins/system/bluejoomla/js/jquery.themepunch.tools.min.js'); $doc->addScript(JUri::root() .'plugins/system/bluejoomla/js/jquery.themepunch.revolution.min.js'); $script = ' jQuery( document ).ready(function($) { $(".fullscreenbanner").revolution({ delay:15000, startwidth:1170, startheight:500, hideThumbs:10, fullWidth:"off", fullScreen:"on", shadow:0, dottedOverlay:"none", fullScreenOffsetContainer: "" }); });'; $html = '<div class="blue-revolution tp-banner-container"> <div class="fullscreenbanner tp-banner"> <ul>' .btdo_shortcode( $content ); $html .= ' </ul> </div> </div>'; $html .= '<script type="text/javascript">' .$script .'</script>'; return $html; } btadd_shortcode( 'revolution', 'revolution_sc' ); } //[revolution] if(!function_exists('revolution_item_sc')) { $testinomialArray = array(); function revolution_item_sc( $atts, $content="" ){ $params = shortcode_atts(array( 'video_mp4' => '', 'video_webm' => '', 'video_ogv' => '', 'layer1' => '', 'layer2' => '', 'layer3' => '', ), $atts); $html = '<li data-transition="slidehorizontal" data-slotamount="7" data-masterspeed="1000" data-fstransition="fade" data-fsmasterspeed="1000" data-fsslotamount="7"> <!-- MAIN IMAGE --> <img src="' .JUri::root() .'images/video/thumb.jpg" alt="video slide" data-bgposition="center center" data-bgfit="cover" data-bgrepeat="no-repeat"> <!-- LAYERS --> <!-- LAYER NR. 1 --> <div class="tp-caption tp-fade fadeout fullscreenvideo" data-x="0" data-y="0" data-speed="1000" data-start="1100" data-easing="Power4.easeOut" data-endspeed="1500" data-endeasing="Power4.easeIn" data-autoplay="true" data-autoplayonlyfirsttime="false" data-nextslideatend="true" data-forceCover="1" data-dottedoverlay="twoxtwo" data-aspectratio="16:9" data-forcerewind="on" style="z-index: 2"> <video class="video-js vjs-default-skin" preload="none" width="100%" height="100%" poster="' .JUri::root() .'images/video/thumb.jpg" data-setup="{}"> <source src="' .JUri::root() .$params["video_mp4"] .'" type="video/mp4" /> <source src="' .JUri::root() .$params["video_webm"] .'" type="video/webm" /> <source src="' .JUri::root() .$params["video_ogv"] .'" type="video/ogg" /> </video> </div> <p class="tp-caption sft tp-resizeme" data-x="center" data-y="200" data-speed="500" data-start="1000" data-easing="Power3.easeInOut" data-elementdelay="0.1" data-endelementdelay="0.1" style="z-index: 5;">' .$params["layer1"] .' </p> <h2 class="tp-caption sft tp-resizeme text-center" data-x="center" data-y="230" data-speed="500" data-start="1500" data-easing="Power3.easeInOut" data-elementdelay="0.05" data-endelementdelay="0.1" style="z-index: 9;"> ' .btdo_shortcode( $content ) .' </h2> <p class="tp-caption sft tp-resizeme" data-x="center" data-y="370" data-speed="500" data-start="2000" data-easing="Power3.easeInOut" data-elementdelay="0.1" data-endelementdelay="0.1" style="z-index: 5;">' .$params["layer2"] .' </p> </li>'; return $html; } btadd_shortcode( 'revolution_item', 'revolution_item_sc' ); }
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings