. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 85.13.141.101 / Your IP :
216.73.216.95 [
Web Server : Apache System : Linux dd40236 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64 User : w00ad34b ( 1052) PHP Version : 8.2.30-nmm1 Disable Function : NONE Domains : 429 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /www/htdocs/w00ad34b/rosstal-aktiv/plugins/content/loadlayerslider/ |
Upload File : |
<?php
/**
* loadlayerslider - Creative Slider content plugin
*
* @author Janos Biro, Balint Polgarfi
* @copyright (c) 2014-2020 Offlajn.com - All Rights Reserved
* @license https://www.gnu.org/licenses/gpl-2.0.html
*/
defined('_JEXEC') or die;
class PlgContentLoadLayerSlider extends JPlugin
{
public function onContentPrepare($context, &$article, &$params, $page = 0)
{
// Don't run this plugin when the content is being indexed
if ($context == 'com_finder.indexer') {
return true;
}
// Simple performance check to determine whether bot should process further
if (strpos($article->text, '{creativeslider ') !== false || strpos($article->text, '{layerslider ') !== false) {
jimport('joomla.application.module.helper');
$article->text = preg_replace_callback('/{(?:layer|creative)slider\s+id="?(.+?)"?}/', array($this, 'onShortcodeMatch'), $article->text);
}
if (strpos($article->text, '{ls-navigate') !== false) {
$pattern = '/{ls-navigate\s+id="(.+?)"\s+action="?(.+?)"?}(.+?){\/ls-navigate}/';
$replacement = '<a class="ls-navigate" href="javascript:;" onclick="jQuery(\'#layerslider_$1\').layerSlider(parseInt(\'$2\')||\'$2\')">$3</a>';
$article->text = preg_replace($pattern, $replacement, $article->text);
}
}
protected function onShortcodeMatch($shortcode)
{
$attribs = array('style' => 'none');
$module = JModuleHelper::getModule('mod_layer_slider', 'LayerSlider'.rand());
$module->params = 'slider='.$shortcode[1];
return JModuleHelper::renderModule($module, $attribs);
}
}