Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ 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 : /proc/1534260/cwd/plugins/elementor-pro/modules/theme-builder/skins/ |
Upload File : |
<?php namespace ElementorPro\Modules\ThemeBuilder\Skins; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } trait Posts_Archive_Skin_Base { public function render() { $this->parent->query_posts(); $wp_query = $this->parent->get_query(); if ( ! $wp_query->found_posts ) { $this->render_loop_header(); $should_escape = true; /** * Should escape 'nothing found' message. * * Filters the ability for escaping HTML tags on archive pages that return no * result. * * By default Elementor removes HTML tags from the 'nothing found' message added * by the user, for security reasons. This hook allows developers to change this * behaviour. By setting this to `false`, Elementor will increase flexibility * and allow the user to add HTML tags to the message. * * @param bool $should_escape Whether to escape 'nothing found' message. */ $should_escape = apply_filters( 'elementor_pro/theme_builder/archive/escape_nothing_found_message', $should_escape ); $message = $this->parent->get_settings_for_display( 'nothing_found_message' ); if ( $should_escape ) { $message = esc_html( $message ); } ?> <div class="elementor-posts-nothing-found"> <?php // PHPCS - escaped before if should escape echo $message; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> </div> <?php $this->render_loop_footer(); return; } parent::render(); } }