Submit
Path:
~
/
home
/
getwphos
/
public_html
/
ppine
/
wp-content
/
plugins
/
trx_addons
/
components
/
cpt
/
properties
/
File Content:
tpl.properties.parts.form.php
<?php /** * The template's part to display the agent's or author's contact form * * @package ThemeREX Addons * @since v1.6.22 */ $trx_addons_args = get_query_var('trx_addons_args_properties_form'); $trx_addons_meta = $trx_addons_args['meta']; $trx_addons_agent = $trx_addons_args['agent']; $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 class="sc_form properties_page_agent_form"> <h5 class="properties_page_agent_form_title"><?php printf(esc_html__('Contact %s', 'trx_addons'), $trx_addons_agent['name']); ?></h5><?php if ( (int) ($form_id = trx_addons_get_option('agents_form')) > 0 ) { // Add filter 'wpcf7_form_elements' before Contact Form 7 show form to add text if ( !function_exists( 'trx_addons_cpt_properties_wpcf7_form_elements' ) ) { add_filter('wpcf7_form_elements', 'trx_addons_cpt_properties_wpcf7_form_elements'); function trx_addons_cpt_properties_wpcf7_form_elements($elements) { $trx_addons_args = get_query_var('trx_addons_args_properties_form'); $trx_addons_meta = $trx_addons_args['meta']; $trx_addons_agent = $trx_addons_args['agent']; $elements = str_replace('</textarea>', esc_html(trx_addons_is_single() && get_post_type()==TRX_ADDONS_CPT_PROPERTIES_PT ? sprintf(__("Hi, %s.\nI'm interested in '%s' [ID = %s].\nPlease, get in touch with me.", 'trx_addons'), $trx_addons_agent['name'], get_the_title(), $trx_addons_meta['id']) : sprintf(__("Hi, %s.\nI saw your profile on '%s' and wanted to see if you could help me.", 'trx_addons'), $trx_addons_agent['name'], get_bloginfo('name')) ) . '</textarea>', $elements ); return $elements; } } // Store property and agent's data for the form for 4 hours set_transient(sprintf('trx_addons_cf7_%d_data', $form_id), array( 'item' => trx_addons_is_single() && get_post_type()==TRX_ADDONS_CPT_PROPERTIES_PT ? get_the_ID() : '', 'agent' => $trx_addons_meta['agent_type']=='author' ? -get_the_author_meta('ID') : $trx_addons_meta['agent'] ), 4 * 60 * 60); // Display Contact Form 7 trx_addons_show_layout(do_shortcode('[contact-form-7 id="'.esc_attr($form_id).'"]')); // Remove filter 'wpcf7_form_elements' after Contact Form 7 showed remove_filter('wpcf7_form_elements', 'trx_addons_cpt_properties_wpcf7_form_elements'); } else { // Default form ?><form class="sc_form_form <?php if ($form_style != 'default') echo 'sc_input_hover_'.esc_attr($form_style); ?>" method="post" action="<?php echo admin_url('admin-ajax.php'); ?>"> <input type="hidden" name="property_agent" value="<?php echo esc_attr($trx_addons_meta['agent_type']=='author' ? -get_the_author_meta('ID') : $trx_addons_meta['agent']); ?>"> <input type="hidden" name="property_id" value="<?php echo esc_attr(trx_addons_is_single() && get_post_type()==TRX_ADDONS_CPT_PROPERTIES_PT ? get_the_ID() : ''); ?>"> <?php // Field 'Name' 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( 'field_name' => 'name', 'field_type' => 'text', 'field_req' => true, 'field_icon' => 'trx_addons_icon-user-alt', 'field_title' => __('Name', 'trx_addons'), 'field_placeholder' => __('Your name', 'trx_addons') )) ); // Field 'E-mail' 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( 'field_name' => 'email', 'field_type' => 'text', 'field_req' => true, 'field_icon' => 'trx_addons_icon-mail', 'field_title' => __('E-mail', 'trx_addons'), 'field_placeholder' => __('Your e-mail', 'trx_addons') )) ); // Field 'Phone' 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( 'field_name' => 'phone', 'field_type' => 'text', 'field_req' => true, 'field_icon' => 'trx_addons_icon-phone', 'field_title' => __('Phone', 'trx_addons'), 'field_placeholder' => __('Your phone', 'trx_addons') )) ); // Field 'Message' 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( 'field_name' => 'message', 'field_type' => 'textarea', 'field_req' => true, 'field_icon' => 'trx_addons_icon-feather', 'field_title' => __('Message', 'trx_addons'), 'field_placeholder' => __('Your message', 'trx_addons'), 'field_value' => trx_addons_is_single() && get_post_type()==TRX_ADDONS_CPT_PROPERTIES_PT ? sprintf(__("Hi, %s.\nI'm interested in '%s' [ID = %s].\nPlease, get in touch with me.", 'trx_addons'), $trx_addons_agent['name'], get_the_title(), $trx_addons_meta['id']) : sprintf(__("Hi, %s.\nI saw your profile on '%s' and wanted to see if you could help me.", 'trx_addons'), $trx_addons_agent['name'], get_bloginfo('name')) )) ); ?> <div class="sc_form_field sc_form_field_button"><button><?php esc_html_e('Send Message', 'trx_addons'); ?></button></div> <div class="trx_addons_message_box sc_form_result"></div> </form><?php } ?></div>
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