/
home
/
vianto5
/
.trash
/
cititower.mx
/
wp-content
/
plugins
/
ml-slider
/
themes
/
clarity
/
v1.0.0
/
/home/vianto5/.trash/cititower.mx/wp-content/plugins/ml-slider/themes/clarity/v1.0.0
mkdir
upload
Name
Size
Mode
Actions
script.js
874
0644
edit
dl
rm
style.css
4025
0644
edit
dl
rm
style.scss
3332
0644
edit
dl
rm
theme.php
3379
0644
edit
dl
rm
Edit:
/home/vianto5/.trash/cititower.mx/wp-content/plugins/ml-slider/themes/clarity/v1.0.0/theme.php
(3379B)
<?php if ( ! defined( 'ABSPATH' ) ) { die( 'No direct access.' ); } /** * Main theme file */ class MetaSlider_Theme_Clarity extends MetaSlider_Theme_Base { /** * Theme ID * * @var string */ public $id = 'clarity'; /** * Theme Version * * @var string */ public $version = '1.0.0'; public function __construct() { parent::__construct( $this->id, $this->version ); // Customize theme design add_filter('metaslider_css', array($this, 'theme_customize'), 10, 3); } /** * Parameters * * @var string */ public $slider_parameters = array(); /** * Enqueues theme specific styles and scripts */ public function enqueue_assets() { wp_enqueue_style( "metaslider_{$this->id}_theme_styles", METASLIDER_THEMES_URL. "{$this->id}/v{$this->version}/style.css", array( 'metaslider-public' ), $this->version ); wp_enqueue_script('metaslider_clarity_theme_script', METASLIDER_THEMES_URL . $this->id . '/v1.0.0/script.js', array('jquery'), '1.0.0', true); } /** * Add inline CSS to customize theme design * * @since 3.91.0 */ public function theme_customize($css, $settings, $slideshow_id) { // This CSS only works with Flexslider if ($settings['type'] !== 'flex') { return $css; } $new_css = ""; if (isset($settings['theme_customize'])) { $customize = $settings['theme_customize']; // Arrows color if (isset($customize['arrows_color'])) { $new_css .= " #metaslider-id-{$slideshow_id} .flexslider .flex-direction-nav li a { background-color: " . esc_html($customize['arrows_color']) . "; }"; } // Navigation color if (isset($customize['navigation_color'])) { $new_css .= " #metaslider-id-{$slideshow_id} .flexslider .flex-control-nav li a:not(.flex-active) { background: " . esc_html($customize['navigation_color']) . "; }"; } // Caption background color if (isset($customize['caption_background'])) { $new_css .= " #metaslider-id-{$slideshow_id} .flexslider .caption-wrap .caption { background: " . esc_html($customize['caption_background']) . "; }"; } // Caption text color if (isset($customize['caption_text_color'])) { $new_css .= " #metaslider-id-{$slideshow_id} .flexslider .caption-wrap { color: " . esc_html($customize['caption_text_color']) . "; }"; } // Caption link color if (isset($customize['caption_links_color'])) { $new_css .= " #metaslider-id-{$slideshow_id} .flexslider .caption-wrap a { color: " . esc_html($customize['caption_links_color']) . "; }"; } } return $css . $new_css; } } if ( ! isset( MetaSlider_Theme_Base::$themes['clarity'] ) ) { new MetaSlider_Theme_Clarity(); }
Save
cmd:
run