D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
ltfsolutionsco
/
www
/
wp-content
/
plugins
/
ml-slider
/
inc
/
slider
/
Filename :
metaslider.responsive.class.php
back
Copy
<?php if (!defined('ABSPATH')) { die('No direct access.'); } /** * Responsive Slider specific markup, javascript, css and settings. */ class MetaResponsiveSlider extends MetaSlider { protected $js_function = 'responsiveSlides'; protected $js_path = 'sliders/responsiveslides/responsiveslides.min.js'; protected $css_path = 'sliders/responsiveslides/responsiveslides.css'; /** * Constructor * * @param integer $id slideshow ID */ public function __construct($id, $shortcodeSettings) { parent::__construct($id, $shortcodeSettings); add_filter('metaslider_css_classes', array($this,'addNoTextCss'), 11, 3); } public function addNoTextCss($class, $id, $settings) { if (empty($settings["prevText"]) || empty($settings["nextText"])) { return $class .= " no-text"; } remove_filter('metaslider_css_classes', array($this, 'addNoTextCss'), 12); return $class; } /** * Detect whether thie slide supports the requested setting, * and if so, the name to use for the setting in the Javascript parameters * * @param array $param Parameters * @return false (parameter not supported) or parameter name (parameter supported) */ protected function get_param($param) { $params = array( 'prevText' => 'prevText', 'nextText' => 'nextText', 'delay' => 'timeout', 'animationSpeed' => 'speed', 'hoverPause' => 'pause', 'navigation' => 'pager', 'links' => 'nav', 'autoPlay' => 'auto' ); if (isset($params[$param])) { return $params[$param]; } return false; } /** * Build the HTML for a slider. * * @return string slider markup. */ protected function get_html() { $return_value = "<ul id='" . $this->get_identifier() . "' class='rslides'>"; $first = true; $i = 0; foreach ($this->slides as $slide) { $style = ""; if (!$first) { $style = " style='display: none;'"; } $return_value .= "\n <li{$style} aria-roledescription='slide' aria-labelledby='slide-" . esc_attr($i) . "'>" . $slide . "</li>"; $first = false; $i++; } $return_value .= "\n </ul>"; return apply_filters('metaslider_responsive_slider_get_html', $return_value, $this->id, $this->settings); ; } }
Name
Size
Last Modified
Owner
Permissions
Actions
metaslider.class.php
28.168
KB
February 03 2024 3:18:15
ltfsolutionsco
0644
metaslider.coin.class.php
1.75
KB
February 03 2024 3:18:15
ltfsolutionsco
0644
metaslider.flex.class.php
7.979
KB
February 03 2024 3:18:15
ltfsolutionsco
0644
metaslider.nivo.class.php
4.923
KB
February 03 2024 3:18:15
ltfsolutionsco
0644
metaslider.responsive.class.php
2.505
KB
February 03 2024 3:18:15
ltfsolutionsco
0644
2017 © D7net | D704T team