SILENT KILLERPanel

Current Path: > home > transcarter > public_html > wp-content > plugins > LayerSlider > assets > includes


Operation   : Linux host59.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Software     : Apache
Server IP    : 198.54.126.42 | Your IP: 216.73.216.135
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/transcarter/public_html/wp-content/plugins/LayerSlider/assets/includes

NameTypeSizeLast ModifiedActions
index.php File 27 bytes March 10 2023 20:45:24.
ls_global.php File 77 bytes March 10 2023 20:45:24.
slider_markup_export.php File 5583 bytes March 10 2023 20:45:24.
slider_markup_html.php File 31509 bytes March 10 2023 20:45:24.
slider_markup_init.php File 2413 bytes March 10 2023 20:45:24.
slider_markup_setup.php File 8043 bytes March 10 2023 20:45:24.
slider_utils.php File 846 bytes March 10 2023 20:45:24.

Reading File: /home/transcarter/public_html/wp-content/plugins/LayerSlider/assets/includes/slider_markup_init.php

<?php

// Prevent direct file access
defined( 'LS_ROOT_FILE' ) || exit;

// Override popup triggers for layer action
if( ! empty( $GLOBALS['lsAjaxOverridePopupSettings'] ) ) {
	$slides['properties']['attrs']['popupShowOnTimeout'] = 0;
	$slides['properties']['attrs']['popupShowOnce'] = false;

	if( ! empty( $_GET['slide'] ) ) {
		$slides['properties']['attrs']['firstSlide'] = (int) $_GET['slide'];
	}
}

// Get init code
foreach($slides['properties']['attrs'] as $key => $val) {

	if(is_bool($val)) {
		$val = $val ? 'true' : 'false';
		$init[] = $key.': '.$val;
	} elseif(is_numeric($val)) { $init[] = $key.': '.$val;
	} else { $init[] = "$key: '$val'"; }
}

// Full-size sliders
if( ( !empty($slides['properties']['attrs']['type']) && $slides['properties']['attrs']['type'] === 'fullsize' ) && ( empty($slides['properties']['attrs']['fullSizeMode']) || $slides['properties']['attrs']['fullSizeMode'] !== 'fitheight' ) ) {
	$init[] = 'height: '.$slides['properties']['props']['height'].'';
}

// Popup
if( !empty($slides['properties']['attrs']['type']) && $slides['properties']['attrs']['type'] === 'popup' ) {
	$lsPlugins[] = 'popup';
}


if( ! empty( $lsPlugins ) ) {
	$lsPlugins = array_unique( $lsPlugins );
	sort( $lsPlugins );
	$init[] = 'plugins: ' . json_encode( $lsPlugins );
}

if( get_option('ls_suppress_debug_info', false ) ) {
	$init[] = 'hideWelcomeMessage: true';
}


if( ! empty( $GLOBALS['lsInitAjaxURL'] ) ) {
	$init[] = "ajaxURL: '".admin_url( 'admin-ajax.php' )."'";
}

$callbacks = [];

if( ! empty( $slides['callbacks'] ) && is_array( $slides['callbacks'] ) ) {
	foreach( $slides['callbacks'] as $event => $function ) {
		$callbacks[] = $event.': '.stripslashes( $function );
	}
}

$separator = apply_filters( 'layerslider_init_props_separator', ', ');
$initObj = implode( $separator, $init );
$eventsObj = ! empty( $callbacks ) ? ', {'.implode( $separator, $callbacks ).'}' : '';

if( ! empty( $slides['properties']['props']['loadOrder'] ) ) {
	$loadOrder = $slides['properties']['props']['loadOrder'];

	$lsInit[] = 'window._layerSlidersOrder = window._layerSlidersOrder || [];';
	$lsInit[] = 'window._layerSlidersOrder['.$loadOrder.'] = window._layerSlidersOrder['.$loadOrder.'] || [];';
	$lsInit[] = 'window._layerSlidersOrder['.$loadOrder.'].push( \'#'.$sliderID.'\' );';
}

$lsInit[] = 'jQuery(function() { _initLayerSlider( \'#'.$sliderID.'\', {'.$initObj.'}'.$eventsObj.'); });';

SILENT KILLER Tool