Submit
Path:
~
/
home
/
getwphos
/
public_html
/
ppine
/
wp-content
/
plugins
/
trx_addons
/
components
/
cpt
/
properties
/
File Content:
tpl.widget.properties_search.php
<?php /** * The style "default" of the Widget "Properties Search" * * @package ThemeREX Addons * @since v1.6.22 */ $trx_addons_args = get_query_var('trx_addons_args_widget_properties_search'); extract($trx_addons_args); $params = array_merge(array( 'properties_keyword' => '', 'properties_country' => '', 'properties_state' => '', 'properties_city' => '', 'properties_neighborhood' => '', 'properties_status' => '', 'properties_type' => '', 'properties_labels' => '', 'properties_bedrooms' => '', 'properties_bathrooms' => '', 'properties_area' => '', 'properties_price' => '', 'properties_features' => array(), 'properties_order' => sprintf("%s_%s", $orderby, $order) ), trx_addons_cpt_properties_query_params()); // Before widget (defined by themes) trx_addons_show_layout($before_widget); // Widget title if one was input (before and after defined by themes) trx_addons_show_layout($title, $before_title, $after_title); // Widget body $form_style = $trx_addons_args['style'] = empty($trx_addons_args['style']) || trx_addons_is_inherit($trx_addons_args['style']) ? trx_addons_get_option( 'input_hover', 'default' ) : $trx_addons_args['style']; ?><div <?php if (!empty($trx_addons_args['id'])) echo ' id="'.esc_attr($trx_addons_args['id']).'"'; ?> class="sc_form properties_search properties_search_<?php echo esc_attr($trx_addons_args['type']); if (!empty($trx_addons_args['class'])) echo ' '.esc_attr($trx_addons_args['class']); if (!empty($trx_addons_args['align']) && !trx_addons_is_off($trx_addons_args['align'])) echo ' sc_align_'.esc_attr($trx_addons_args['align']); ?>"<?php if (!empty($trx_addons_args['css'])) echo ' style="'.esc_attr($trx_addons_args['css']).'"'; ?>> <form class="properties_search_form sc_form_form sc_form_custom <?php if ($form_style != 'default') echo 'sc_input_hover_'.esc_attr($form_style); ?>" action="<?php echo esc_url(get_post_type_archive_link( TRX_ADDONS_CPT_PROPERTIES_PT )); ?>" method="get"> <div class="properties_search_basic"><?php // Action to allow third-party extensions add own fileds to the form do_action( 'trx_addons_action_properties_search_form_start', $trx_addons_args, $params ); // If current page is not properties archive - make new query to show results ?><input type="hidden" name="properties_query" value="<?php echo esc_attr(trx_addons_is_properties_page() && !trx_addons_is_single() ? '0' : '1'); ?>"><?php // Keywords trx_addons_get_template_part(TRX_ADDONS_PLUGIN_SHORTCODES . 'form/tpl.form-field.php', 'trx_addons_args_sc_form_field', array_merge($trx_addons_args, array( 'labels' => false, 'field_name' => 'properties_keyword', 'field_type' => 'text', 'field_value' => $params['properties_keyword'], 'field_req' => false, 'field_icon' => 'trx_addons_icon-search', 'field_title' => __('Search for', 'trx_addons'), 'field_placeholder' => __('Enter an address, ZIP or property ID', 'trx_addons') )) ); // Show Advanced Search ?><div class="properties_search_show_advanced trx_addons_icon-sliders" title="<?php esc_attr_e('Show advanced search', 'trx_addons'); ?>"></div><?php // Basic Submit button ?><button class="properties_search_button trx_addons_icon-search" title="<?php esc_attr_e('Start search', 'trx_addons'); ?>" aria-label="<?php esc_attr_e('Start search', 'trx_addons'); ?>"></button><?php ?></div> <div class="properties_search_advanced"><?php // Country $tax_obj = get_taxonomy(TRX_ADDONS_CPT_PROPERTIES_TAXONOMY_COUNTRY); $list = trx_addons_array_merge( array( 0 => trx_addons_get_not_selected_text( ! empty( $tax_obj->label ) ? $tax_obj->label : __( '- Not Selected -', 'trx_addons' ) ) ), trx_addons_get_list_terms( false, TRX_ADDONS_CPT_PROPERTIES_TAXONOMY_COUNTRY, array( 'hide_empty' => 1 ) ) ); trx_addons_get_template_part(TRX_ADDONS_PLUGIN_SHORTCODES . 'form/tpl.form-field.php', 'trx_addons_args_sc_form_field', array_merge($trx_addons_args, array( 'labels' => false, 'field_name' => 'properties_country', 'field_type' => 'select', 'field_value' => $params['properties_country'], 'field_req' => false, 'field_options' => $list, 'field_class' => 'trx_addons_country_selector', 'field_data' => array('not-selected' => 'true') )) ); // State $tax_obj = get_taxonomy(TRX_ADDONS_CPT_PROPERTIES_TAXONOMY_STATE); $list = trx_addons_array_merge( array( 0 => trx_addons_get_not_selected_text( ! empty( $tax_obj->label ) ? $tax_obj->label : __( '- Not Selected -', 'trx_addons' ) ) ), $params['properties_country'] == 0 ? array() : trx_addons_get_list_terms( false, TRX_ADDONS_CPT_PROPERTIES_TAXONOMY_STATE, array( 'meta_key' => 'country', 'meta_value' => $params['properties_country'], 'hide_empty' => 1 ) ) ); trx_addons_get_template_part(TRX_ADDONS_PLUGIN_SHORTCODES . 'form/tpl.form-field.php', 'trx_addons_args_sc_form_field', array_merge($trx_addons_args, array( 'labels' => false, 'field_name' => 'properties_state', 'field_type' => 'select', 'field_value' => $params['properties_state'], 'field_req' => false, 'field_options' => $list, 'field_class' => 'trx_addons_state_selector', 'field_data' => array('not-selected' => 'true') )) ); // City $args = array('hide_empty' => 1); if ($params['properties_state'] > 0) $args = array( 'meta_key' => 'state', 'meta_value' => $params['properties_state'] ); else if ($params['properties_country'] > 0) $args = array( 'meta_key' => 'country', 'meta_value' => $params['properties_country'] ); $tax_obj = get_taxonomy(TRX_ADDONS_CPT_PROPERTIES_TAXONOMY_CITY); $list = trx_addons_array_merge( array( 0 => trx_addons_get_not_selected_text( ! empty( $tax_obj->label ) ? $tax_obj->label : __( '- Not Selected -', 'trx_addons' ) ) ), count($args) == 0 ? array() : trx_addons_get_list_terms( false, TRX_ADDONS_CPT_PROPERTIES_TAXONOMY_CITY, $args ) ); trx_addons_get_template_part(TRX_ADDONS_PLUGIN_SHORTCODES . 'form/tpl.form-field.php', 'trx_addons_args_sc_form_field', array_merge($trx_addons_args, array( 'labels' => false, 'field_name' => 'properties_city', 'field_type' => 'select', 'field_value' => $params['properties_city'], 'field_req' => false, 'field_options' => $list, 'field_class' => 'trx_addons_city_selector', 'field_data' => array('not-selected' => 'true') )) ); // Neighborhood $tax_obj = get_taxonomy(TRX_ADDONS_CPT_PROPERTIES_TAXONOMY_NEIGHBORHOOD); $list = trx_addons_array_merge( array( 0 => trx_addons_get_not_selected_text( ! empty( $tax_obj->label ) ? $tax_obj->label : __( '- Not Selected -', 'trx_addons' ) ) ), $params['properties_city'] == 0 ? array() : trx_addons_get_list_terms( false, TRX_ADDONS_CPT_PROPERTIES_TAXONOMY_NEIGHBORHOOD, array( 'meta_key' => 'city', 'meta_value' => $params['properties_city'], 'hide_empty' => 1 ) ) ); trx_addons_get_template_part(TRX_ADDONS_PLUGIN_SHORTCODES . 'form/tpl.form-field.php', 'trx_addons_args_sc_form_field', array_merge($trx_addons_args, array( 'labels' => false, 'field_name' => 'properties_neighborhood', 'field_type' => 'select', 'field_value' => $params['properties_neighborhood'], 'field_req' => false, 'field_options' => $list, 'field_class' => 'trx_addons_neighborhood_selector', 'field_data' => array('not-selected' => 'true') )) ); // Status $tax_obj = get_taxonomy(TRX_ADDONS_CPT_PROPERTIES_TAXONOMY_STATUS); $list = trx_addons_array_merge( array( 0 => trx_addons_get_not_selected_text( ! empty( $tax_obj->label ) ? $tax_obj->label : __( '- Not Selected -', 'trx_addons' ) ) ), trx_addons_get_list_terms( false, TRX_ADDONS_CPT_PROPERTIES_TAXONOMY_STATUS, array( 'hide_empty' => 1 ) ) ); trx_addons_get_template_part(TRX_ADDONS_PLUGIN_SHORTCODES . 'form/tpl.form-field.php', 'trx_addons_args_sc_form_field', array_merge($trx_addons_args, array( 'labels' => false, 'field_name' => 'properties_status', 'field_type' => 'select', 'field_value' => $params['properties_status'], 'field_req' => false, 'field_options' => $list )) ); // Type $tax_obj = get_taxonomy(TRX_ADDONS_CPT_PROPERTIES_TAXONOMY_TYPE); $list = trx_addons_array_merge( array( 0 => trx_addons_get_not_selected_text( ! empty( $tax_obj->label ) ? $tax_obj->label : __( '- Not Selected -', 'trx_addons' ) ) ), trx_addons_get_list_terms( false, TRX_ADDONS_CPT_PROPERTIES_TAXONOMY_TYPE, array( 'hide_empty' => 1 ) ) ); trx_addons_get_template_part(TRX_ADDONS_PLUGIN_SHORTCODES . 'form/tpl.form-field.php', 'trx_addons_args_sc_form_field', array_merge($trx_addons_args, array( 'labels' => false, 'field_name' => 'properties_type', 'field_type' => 'select', 'field_value' => $params['properties_type'], 'field_req' => false, 'field_options' => $list )) ); // Label $tax_obj = get_taxonomy(TRX_ADDONS_CPT_PROPERTIES_TAXONOMY_LABELS); $list = trx_addons_array_merge( array( 0 => trx_addons_get_not_selected_text( ! empty( $tax_obj->label ) ? $tax_obj->label : __( '- Not Selected -', 'trx_addons' ) ) ), trx_addons_get_list_terms( false, TRX_ADDONS_CPT_PROPERTIES_TAXONOMY_LABELS, array('hide_empty' => 1 ) ) ); trx_addons_get_template_part(TRX_ADDONS_PLUGIN_SHORTCODES . 'form/tpl.form-field.php', 'trx_addons_args_sc_form_field', array_merge($trx_addons_args, array( 'labels' => false, 'field_name' => 'properties_labels', 'field_type' => 'select', 'field_value' => $params['properties_labels'], 'field_req' => false, 'field_options' => $list )) ); // Results Order ?><label class="sc_form_field sc_form_field_properties_order"> <select name="properties_order"> <option value="date_asc"<?php if ($params['properties_order']=='date_asc') echo ' selected="selected"'; ?>><?php esc_html_e('Date Ascending', 'trx_addons'); ?></option> <option value="date_desc"<?php if ($params['properties_order']=='date_desc') echo ' selected="selected"'; ?>><?php esc_html_e('Date Descending', 'trx_addons'); ?></option> <option value="price_asc"<?php if ($params['properties_order'] == 'price_asc') echo ' selected="selected"'; ?>><?php esc_html_e('Price Ascending', 'trx_addons'); ?></option> <option value="price_desc"<?php if ($params['properties_order'] == 'price_desc') echo ' selected="selected"'; ?>><?php esc_html_e('Price Descending', 'trx_addons'); ?></option> <option value="title_asc"<?php if ($params['properties_order'] == 'title_asc') echo ' selected="selected"'; ?>><?php esc_html_e('Title Ascending', 'trx_addons'); ?></option> <option value="title_desc"<?php if ($params['properties_order'] == 'title_desc') echo ' selected="selected"'; ?>><?php esc_html_e('Title Descending', 'trx_addons'); ?></option> </select> </label><?php // Bedrooms trx_addons_get_template_part(TRX_ADDONS_PLUGIN_SHORTCODES . 'form/tpl.form-field.php', 'trx_addons_args_sc_form_field', array_merge($trx_addons_args, array( 'labels' => true, 'field_title' => __('Bedrooms', 'trx_addons'), 'field_name' => 'properties_bedrooms', 'field_type' => 'range', 'field_value' => $params['properties_bedrooms'], 'field_req' => false, 'field_min' => trx_addons_cpt_properties_get_min_max('bed_min'), 'field_max' => trx_addons_cpt_properties_get_min_max('bed_max'), 'field_step' => 1 )) ); // Bathrooms trx_addons_get_template_part(TRX_ADDONS_PLUGIN_SHORTCODES . 'form/tpl.form-field.php', 'trx_addons_args_sc_form_field', array_merge($trx_addons_args, array( 'labels' => true, 'field_title' => __('Bathrooms', 'trx_addons'), 'field_name' => 'properties_bathrooms', 'field_type' => 'range', 'field_value' => $params['properties_bathrooms'], 'field_req' => false, 'field_min' => trx_addons_cpt_properties_get_min_max('bath_min'), 'field_max' => trx_addons_cpt_properties_get_min_max('bath_max'), 'field_step' => 1 )) ); // Area size trx_addons_get_template_part(TRX_ADDONS_PLUGIN_SHORTCODES . 'form/tpl.form-field.php', 'trx_addons_args_sc_form_field', array_merge($trx_addons_args, array( 'labels' => true, 'field_title' => __('Area size', 'trx_addons'), 'field_name' => 'properties_area', 'field_type' => 'range', 'field_value' => $params['properties_area'], 'field_req' => false, 'field_min' => trx_addons_cpt_properties_get_min_max('area_min'), 'field_max' => trx_addons_cpt_properties_get_min_max('area_max'), 'field_step' => (trx_addons_cpt_properties_get_min_max('area_max') - trx_addons_cpt_properties_get_min_max('area_min')) / 20 )) ); // Price trx_addons_get_template_part(TRX_ADDONS_PLUGIN_SHORTCODES . 'form/tpl.form-field.php', 'trx_addons_args_sc_form_field', array_merge($trx_addons_args, array( 'labels' => true, 'field_title' => __('Price', 'trx_addons'), 'field_name' => 'properties_price', 'field_type' => 'range', 'field_value' => $params['properties_price'], 'field_req' => false, 'field_min' => trx_addons_cpt_properties_get_min_max('price_min'), 'field_max' => trx_addons_cpt_properties_get_min_max('price_max'), 'field_step' => (trx_addons_cpt_properties_get_min_max('price_max') - trx_addons_cpt_properties_get_min_max('price_min')) / 20 )) ); // Features $list = trx_addons_get_list_terms(false, TRX_ADDONS_CPT_PROPERTIES_TAXONOMY_FEATURES, array('hide_empty' => 1)); if (is_array($list)) { foreach ($list as $id=>$title) { trx_addons_get_template_part(TRX_ADDONS_PLUGIN_SHORTCODES . 'form/tpl.form-field.php', 'trx_addons_args_sc_form_field', array_merge($trx_addons_args, array( 'labels' => true, 'field_placeholder' => $title, 'field_name' => "properties_features_{$id}", 'field_type' => 'checkbox', 'field_value' => $id, 'field_checked' => in_array($id, $params['properties_features']), 'field_req' => false )) ); } } ?></div> </form> </div><?php // After widget (defined by themes) trx_addons_show_layout($after_widget);
Submit
FILE
FOLDER
Name
Size
Permission
Action
gutenberg
---
0755
properties-sc-elementor.php
11408 bytes
0644
properties-sc-gutenberg.php
6485 bytes
0644
properties-sc-vc.php
9920 bytes
0644
properties-sc.php
3845 bytes
0644
properties.admin.js
6004 bytes
0644
properties.agents.php
27638 bytes
0644
properties.css
21447 bytes
0644
properties.css.map
11521 bytes
0644
properties.elementor.editor.js
4882 bytes
0644
properties.js
5843 bytes
0644
properties.php
63009 bytes
0644
properties.png
1722 bytes
0644
properties.responsive.css
3796 bytes
0644
properties.responsive.css.map
1767 bytes
0644
properties.responsive.scss
3632 bytes
0644
properties.scss
19033 bytes
0644
properties.taxonomy_city.php
13976 bytes
0644
properties.taxonomy_country.php
4756 bytes
0644
properties.taxonomy_features.php
4665 bytes
0644
properties.taxonomy_labels.php
4664 bytes
0644
properties.taxonomy_neighborhood.php
16837 bytes
0644
properties.taxonomy_state.php
9674 bytes
0644
properties.taxonomy_status.php
4628 bytes
0644
properties.taxonomy_type.php
8244 bytes
0644
tpe.widget.properties_compare.php
1712 bytes
0644
tpe.widget.properties_sort.php
1468 bytes
0644
tpl.agents.archive.php
1635 bytes
0644
tpl.agents.default-item.php
2153 bytes
0644
tpl.agents.single.php
2612 bytes
0644
tpl.author.php
1853 bytes
0644
tpl.properties.archive.php
243 bytes
0644
tpl.properties.compare.php
5776 bytes
0644
tpl.properties.default-item.php
11248 bytes
0644
tpl.properties.default.php
4324 bytes
0644
tpl.properties.map.php
6517 bytes
0644
tpl.properties.parts.address.php
1900 bytes
0644
tpl.properties.parts.agent.php
3958 bytes
0644
tpl.properties.parts.form.php
5998 bytes
0644
tpl.properties.parts.loop.php
2187 bytes
0644
tpl.properties.parts.price.php
1271 bytes
0644
tpl.properties.single.php
23483 bytes
0644
tpl.properties.slider-slide.php
3720 bytes
0644
tpl.properties.slider.php
3713 bytes
0644
tpl.widget.properties_compare.php
1304 bytes
0644
tpl.widget.properties_search.php
16251 bytes
0644
tpl.widget.properties_sort.php
2326 bytes
0644
widget.properties_compare-sc-elementor.php
3295 bytes
0644
widget.properties_compare-sc-vc.php
1799 bytes
0644
widget.properties_compare-sc.php
2022 bytes
0644
widget.properties_compare.php
3337 bytes
0644
widget.properties_compare.png
1602 bytes
0644
widget.properties_search-sc-elementor.php
4053 bytes
0644
widget.properties_search-sc-vc.php
3014 bytes
0644
widget.properties_search-sc.php
2132 bytes
0644
widget.properties_search.php
5130 bytes
0644
widget.properties_search.png
2047 bytes
0644
widget.properties_sort-sc-elementor.php
4099 bytes
0644
widget.properties_sort-sc-vc.php
2524 bytes
0644
widget.properties_sort-sc.php
2040 bytes
0644
widget.properties_sort.php
3831 bytes
0644
widget.properties_sort.png
1992 bytes
0644
N4ST4R_ID | Naxtarrr