403Webshell
Server IP : 62.60.133.156  /  Your IP : 216.73.217.51
Web Server : LiteSpeed
System : Linux linux24.centraldnserver.com 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
User : mimradmin ( 1166)
PHP Version : 7.4.33
Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : ON |  Sudo : OFF |  Pkexec : OFF
Directory :  /proc/self/cwd/wp-content/plugins/elementor-pro-off/modules/posts/traits/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /proc/self/cwd/wp-content/plugins/elementor-pro-off/modules/posts/traits/query-note-trait.php
<?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();
	}
}

Youez - 2016 - github.com/yon3zu