__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* @package SP Page Builder
* @author JoomShaper https://www.joomshaper.com
* @copyright Copyright (c) 2010 - 2025 JoomShaper
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
*/
// No direct access
defined('_JEXEC') or die('Restricted access');
/**
* Helper class for handling the lodash string.
*
* @since 4.0.0
*/
final class AddonUtils
{
public static $defaultDevice = 'xl';
public static function parseMediaData($media)
{
if (empty($media))
{
return '';
}
if (\is_object($media) && isset($media->src))
{
return $media->src;
}
if (\is_array($media) && isset($media['src']))
{
return $media['src'];
}
return $media;
}
public static function parseDeviceData($data, $device = '')
{
if (empty($data))
{
return '';
}
$device = !empty($device) ? $device : self::$defaultDevice;
if (\is_object($data) && isset($data->$device))
{
return $data->$device;
}
return $data;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| addon-parser.php | File | 44.22 KB | 0664 |
|
| addon-utils.php | File | 978 B | 0664 |
|
| addons.php | File | 2.69 KB | 0664 |
|
| css-helper.php | File | 31.49 KB | 0664 |
|
| helper-base.php | File | 2.83 KB | 0664 |
|
| lodash.php | File | 41.29 KB | 0664 |
|