NOX-ROOT-MARAZ Manager v2
PHP 8+ Secure
/
home
/
xiedrke
/
entrepot
/
wp-content
/
themes
/
realpro
/
elementor
/
widgets
/
Name
Size
Perms
Actions
📄 advan-search.php
2,080 B
0644
Edit
|
Chmod
|
Delete
📄 agent-list.php
8,153 B
0644
Edit
|
Chmod
|
Delete
📄 post-list.php
5,879 B
0644
Edit
|
Chmod
|
Delete
Editing: advan-search.php
<?php if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } use RealPress\Helpers\Template; use RealPress\Models\PropertyModel; use RealPress\Helpers\Settings; use RealPress\Shortcodes\AdvancedSearch; /** * Elementor List Widget. * * Elementor widget that inserts an embbedable content into the page, from any given URL. * * @since 1.0.0 */ class Elementor_Realpro_Search extends \Elementor\Widget_Base { public function get_name() { return 'realpro-search'; } public function get_title() { return esc_html__( 'Realpro: Search', 'realpro' ); } public function get_icon() { return 'eicon-search'; } public function get_categories() { return ['realpro']; } public function get_base() { return basename( __FILE__, '.php' ); } protected function register_controls() { $this->start_controls_section( 'content', [ 'label' => esc_html__( 'Settings', 'realpro' ) ] ); $this->add_control( 'text_placeholder', array( 'label' => esc_html__( 'Placeholder Search', 'realpro' ), 'type' => \Elementor\Controls_Manager::TEXT, ) ); $this->end_controls_section(); } protected function render() { $listing_id = get_the_ID(); $data = PropertyModel::get_data( $listing_id ); $template = Template::instance(); $settings = $this->get_settings_for_display(); if ( ! isset( $data ) ) { return; } ?> <div class="realpress-advanced-search"> <div class="wrapper-search-fields"> <?php if ( isset( $settings['text_placeholder'] ) && $settings['text_placeholder'] ) { $data['label'] = $settings['text_placeholder']; } $template->get_frontend_template_type_classic( 'shortcodes/advanced-search/keyword.php', compact( 'data' ) ); unset($data['label']); $template->get_frontend_template_type_classic( 'shortcodes/advanced-search/type.php', compact( 'data' ) ); $template->get_frontend_template_type_classic( 'shortcodes/advanced-search/search-button.php', compact( 'data' ) ); ?> </div> </div> <?php } }
Cancel