403Webshell
Server IP : 172.67.159.97  /  Your IP : 216.73.217.154
Web Server : nginx/1.24.0
System : Linux wordpress-sites 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/rebeccaone.com/wp-content/themes/x/framework/legacy/functions/plugins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/rebeccaone.com/wp-content/themes/x/framework/legacy/functions/plugins/layerslider.php
<?php

// =============================================================================
// FUNCTIONS/GLOBAL/PLUGINS/LAYERSLIDER.PHP
// -----------------------------------------------------------------------------
// Plugin setup for theme compatibility.
// =============================================================================

// =============================================================================
// TABLE OF CONTENTS
// -----------------------------------------------------------------------------
//   01. Theme Setup
//   02. Get Slider Meta
//   03. Add Slider Meta
// =============================================================================


// Theme Setup
// =============================================================================

if ( ! function_exists( 'x_layerslider_theme_setup' ) ) :

  function x_layerslider_theme_setup() {

    $GLOBALS['lsAutoUpdateBox'] = false;

    remove_action( 'after_plugin_row_' . LS_PLUGIN_BASE, 'layerslider_plugins_purchase_notice' );

  }

  add_action( 'layerslider_ready', 'x_layerslider_theme_setup' );

endif;



// Get Slider Meta
// =============================================================================

//
// Refines slider information to be filtered into page meta options.
//

function x_legacy_layerslider_get_slider_meta() {

  $sliders = LS_Sliders::find( array( 'order' => 'ASC', 'limit' => apply_filters( 'cs_query_limit', 2500 ) ) );
  $data    = array();

  foreach ( $sliders as $s ) {

    $key                  = 'x-slider-ls-' . $s['id'];
    $data[$key]['id']     = $s['id'];
    $data[$key]['slug']   = $s['slug'];
    $data[$key]['name']   = $s['name'];
    $data[$key]['source'] = 'LayerSlider';

  }

  return $data;

}



// Add Slider Meta
// =============================================================================

function x_layerslider_add_slider_meta( $meta ) {

  return array_merge( $meta, x_legacy_layerslider_get_slider_meta() );

}

add_filter( 'x_sliders_meta', 'x_layerslider_add_slider_meta' );

Youez - 2016 - github.com/yon3zu
LinuXploit