REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.67 KB
Close
/home/nshryvcy/taramarriagebureau.com/wp-content/plugins/essential-grid/admin/includes/favorite.class.php
Text
Base64
<?php /** * @package Essential_Grid * @author ThemePunch <info@themepunch.com> * @link https://www.essential-grid.com/ * @copyright 2025 ThemePunch */ if(!defined('ABSPATH')) exit(); class Essential_Grid_Favorite { /** * option to keep favorite list */ CONST OPTION = 'tp_eg-favorite'; /** * @param mixed $default * @return false|mixed|void */ public function get_favorites($default = []) { return get_option(self::OPTION, $default); } /** * @param array $data * @return void */ public function set_favorites($data) { update_option(self::OPTION, $data); } /** * get a certain favorite type * * @param string $type * @return array **/ public function get_favorite_type($type){ $fav = $this->get_favorites(); return Essential_Grid_Base::getVar($fav, $type, []); } /** * check 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($type); return array_search($id, $favs) !== false; } /** * change the setting of a favorization * * @param string $action * @param string $type * @param mixed $id * @return array **/ public function update_favorites($action, $type, $id){ $fav = $this->get_favorites(); $id = esc_attr($id); if (!isset($fav[$type])) $fav[$type] = []; $key = array_search($id, $fav[$type]); switch ($action) { case 'add': if ($key === false) $fav[$type][] = $id; break; case 'remove': unset($fav[$type][$key]); break; case 'replace': $fav[$type] = $id; break; default: } $this->set_favorites($fav); return $fav; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 15
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
builders
DIR
-
drwxr-xr-x
2025-04-30 03:18:09
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
assets.class.php
11.49 KB
lrw-r--r--
2025-04-30 03:18:09
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
builders.class.php
1.24 KB
lrw-r--r--
2025-04-30 03:18:09
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
dialogs.class.php
61.32 KB
lrw-r--r--
2025-04-30 03:18:09
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
export.class.php
8.07 KB
lrw-r--r--
2025-04-30 03:18:09
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
favorite.class.php
1.67 KB
lrw-r--r--
2025-04-30 03:18:09
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
import-port.class.php
7.58 KB
lrw-r--r--
2025-04-30 03:18:09
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
import-post.class.php
8.26 KB
lrw-r--r--
2025-04-30 03:18:09
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
import.class.php
17.20 KB
lrw-r--r--
2025-04-30 03:18:09
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.php
26 B
lrw-r--r--
2025-04-30 03:18:09
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
library.class.php
16.63 KB
lrw-r--r--
2025-04-30 03:18:09
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
license.class.php
1.61 KB
lrw-r--r--
2025-04-30 03:18:09
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
loadbalancer.class.php
3.94 KB
lrw-r--r--
2025-04-30 03:18:09
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
newsletter.class.php
1.67 KB
lrw-r--r--
2025-04-30 03:18:09
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
plugin-update.class.php
64.89 KB
lrw-r--r--
2025-04-30 03:18:09
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
update.class.php
6.03 KB
lrw-r--r--
2025-04-30 03:18:09
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).