X7ROOT File Manager
Current Path:
/home/notabjze/shop.houreglass.com/wp-content/plugins/revslider/includes
home
/
notabjze
/
shop.houreglass.com
/
wp-content
/
plugins
/
revslider
/
includes
/
ðŸ“
..
ðŸ“
EspressoDev
📄
aq-resizer.class.php
(7.77 KB)
📄
backwards.php
(1.44 KB)
📄
basic-css.php
(11.57 KB)
📄
cache.class.php
(5.77 KB)
📄
coloreasing.class.php
(6.4 KB)
📄
colorpicker.class.php
(15.29 KB)
📄
cssparser.class.php
(24.9 KB)
📄
data.class.php
(75.53 KB)
📄
em-integration.class.php
(5.76 KB)
📄
extension.class.php
(6.38 KB)
ðŸ“
external
📄
external-sources.class.php
(54.31 KB)
📄
favorite.class.php
(1.24 KB)
📄
functions.class.php
(41.13 KB)
📄
globals.class.php
(2.49 KB)
📄
googlefonts.php
(213.15 KB)
📄
index.php
(27 B)
📄
navigation.class.php
(19.14 KB)
📄
navigations.php
(101.14 KB)
📄
object-library.class.php
(51.15 KB)
📄
output.class.php
(320.95 KB)
📄
page-template.class.php
(3.97 KB)
📄
slide.class.php
(112.32 KB)
📄
slider.class.php
(79.11 KB)
📄
update.class.php
(7.12 KB)
📄
woocommerce.class.php
(5.94 KB)
📄
wpml.class.php
(5.45 KB)
Editing: favorite.class.php
<?php /** * @author ThemePunch <info@themepunch.com> * @link https://www.themepunch.com/ * @copyright 2022 ThemePunch */ if(!defined('ABSPATH')) exit(); class RevSliderFavorite extends RevSliderFunctions { /** * change the setting of a favorization * @param string $do * @param string $type * @param mixed $id * @return array **/ public function set_favorite($do, $type, $id){ $fav = get_option('rs_favorite', array()); $id = esc_attr($id); if(!isset($fav[$type])) $fav[$type] = array(); $key = array_search($id, $fav[$type]); if($key === false){ if($do == 'add') $fav[$type][] = $id; }elseif($do == 'remove'){ unset($fav[$type][$key]); }elseif($do == 'replace'){ $fav[$type] = $id; } update_option('rs_favorite', $fav); return $fav; } /** * get a certain favorite type * @param string $type * @return array **/ public function get_favorite($type){ $fav = get_option('rs_favorite', array()); return $this->get_val($fav, $type, array()); } /** * return if certain element is in favorites * @param string $type * @param mixed $id * @return bool **/ public function is_favorite($type, $id){ $favs = $this->get_favorite($type); return array_search($id, $favs) !== false; } }
Upload File
Create Folder