X7ROOT File Manager
Current Path:
/home/oakwood/public_html/wp-content/plugins/wpforms-lite/includes/functions
home
/
oakwood
/
public_html
/
wp-content
/
plugins
/
wpforms-lite
/
includes
/
functions
/
ðŸ“
..
📄
access.php
(10.48 KB)
📄
builder.php
(1.38 KB)
📄
checks.php
(15.96 KB)
📄
colors.php
(3.97 KB)
📄
data-presets.php
(19.03 KB)
📄
date-time.php
(2.82 KB)
📄
debug.php
(5.23 KB)
📄
education.php
(2.89 KB)
📄
escape-sanitize.php
(13.9 KB)
📄
filesystem-media.php
(6.6 KB)
📄
form-fields.php
(16.98 KB)
📄
forms.php
(13.32 KB)
📄
list.php
(6.88 KB)
📄
payments.php
(21.88 KB)
📄
plugins.php
(2.38 KB)
📄
privacy.php
(2.52 KB)
📄
providers.php
(1.99 KB)
📄
utilities.php
(8.54 KB)
Editing: builder.php
<?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 ) ); }
Upload File
Create Folder