??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/sendmaxagency.com/wp-content/plugins/sureforms/inc/fields/address-markup.php
⬅ Kembali
<?php
/**
* Sureforms Address Markup Class file.
*
* @package sureforms.
* @since 0.0.1
*/
namespace SRFM\Inc\Fields;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
/**
* Sureforms Address Markup Class.
*
* @since 0.0.1
*/
class Address_Markup extends Base {
/**
* Initialize the properties based on block attributes.
*
* @param array<mixed> $attributes Block attributes.
* @since 0.0.2
*/
public function __construct( $attributes ) {
$this->set_properties( $attributes );
$this->set_input_label( __( 'Address', 'sureforms' ) );
$this->slug = 'address';
$this->set_markup_properties();
}
/**
* Render the sureforms address classic styling
*
* @param string $content inner block content.
* @since 0.0.2
* @return string|bool
*/
public function markup( $content = '' ) {
/**
* Filter extra CSS classes for the address field wrapper.
*
* @param array<string> $extra_classes Extra CSS classes.
* @param array<mixed> $attributes Block attributes.
* @since 2.8.0
*/
$extra_classes = apply_filters( 'srfm_address_field_classes', [], $this->attributes );
$this->class_name = $this->get_field_classes( $extra_classes );
/**
* Filter additional HTML attributes for the address block wrapper div.
*
* IMPORTANT: Callbacks MUST escape all values with esc_attr() before
* returning. The output is echoed directly into a <div> tag.
*
* @param string $extra_attrs Additional HTML attributes string (pre-escaped).
* @param array<mixed> $attributes Block attributes.
* @since 2.8.0
*/
$extra_attrs = apply_filters( 'srfm_address_block_attributes', '', $this->attributes );
ob_start(); ?>
<div data-block-id="<?php echo esc_attr( $this->block_id ); ?>" class="<?php echo esc_attr( $this->class_name ); ?>" data-slug="<?php echo esc_attr( $this->block_slug ); ?>"
<?php
echo $extra_attrs; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped by the filter callback.
?>
>
<fieldset>
<legend class="srfm-block-legend">
<?php echo wp_kses_post( $this->label_markup ); ?>
</legend>
<?php echo wp_kses_post( $this->help_markup ); ?>
<?php
/**
* Fires after the address field legend, before the inner block content.
* Used by pro to render the autocomplete search input.
*
* @param array<mixed> $attributes Block attributes.
* @param string $block_id Block ID.
* @since 2.8.0
*/
do_action( 'srfm_address_before_fields', $this->attributes, $this->block_id );
?>
<div class="srfm-block-wrap">
<?php
// phpcs:ignore
echo $content;
// phpcs:ignoreEnd
?>
</div>
<?php
/**
* Fires after the inner block content, before the closing fieldset.
* Used by pro to render hidden fields and map container.
*
* @param array<mixed> $attributes Block attributes.
* @param string $block_id Block ID.
* @since 2.8.0
*/
do_action( 'srfm_address_after_fields', $this->attributes, $this->block_id );
?>
</fieldset>
</div>
<?php
return ob_get_clean();
}
}
Nama
Tipe
Ukuran
Diubah
Aksi
🐘 address-markup.php
php
3.1 KB
2026-06-25 20:19
🐘 base.php
php
14.2 KB
2026-06-25 20:19
🐘 checkbox-markup.php
php
3.3 KB
2026-06-25 20:19
📋 countries.json
json
16.5 KB
2026-06-25 20:19
🐘 dropdown-markup.php
php
10.7 KB
2026-06-25 20:19
🐘 email-markup.php
php
6.3 KB
2026-06-25 20:19
🐘 gdpr-markup.php
php
3.9 KB
2026-06-25 20:19
🐘 inlinebutton-markup.php
php
10.2 KB
2026-06-25 20:19
🐘 input-markup.php
php
3.5 KB
2026-06-25 20:19
🐘 multichoice-markup.php
php
11.1 KB
2026-06-25 20:19
🐘 number-markup.php
php
4.4 KB
2026-06-25 20:19
🐘 payment-markup.php
php
32.1 KB
2026-06-25 20:19
🐘 phone-markup.php
php
6 KB
2026-06-25 20:19
🐘 textarea-markup.php
php
5.9 KB
2026-06-25 20:19
🐘 url-markup.php
php
2.5 KB
2026-06-25 20:19