| Current Path : /home/x/b/o/xbodynamge/namtation/wp-content/ |
| Current File : /home/x/b/o/xbodynamge/namtation/wp-content/class-providers.php.tar |
home/xbodynamge/crosstraining/wp-content/plugins/wpforms-lite/includes/class-providers.php 0000604 00000002040 15112662023 0026352 0 ustar 00 <?php
/**
* Load the providers.
*
* @package WPForms
* @author WPForms
* @since 1.3.6
* @license GPL-2.0+
* @copyright Copyright (c) 2017, WPForms LLC
*/
class WPForms_Providers {
/**
* Primary class constructor.
*
* @since 1.3.6
*/
public function __construct() {
$this->init();
}
/**
* Load and init the base provider class.
*
* @since 1.3.6
*/
public function init() {
// Parent class template.
require_once WPFORMS_PLUGIN_DIR . 'includes/providers/class-base.php';
// Load default templates on WP init.
add_action( 'wpforms_loaded', array( $this, 'load' ) );
}
/**
* Load default marketing providers.
*
* @since 1.3.6
*/
public function load() {
$providers = array(
'constant-contact',
);
$providers = apply_filters( 'wpforms_load_providers', $providers );
foreach ( $providers as $provider ) {
$provider = sanitize_file_name( $provider );
require_once WPFORMS_PLUGIN_DIR . 'includes/providers/class-' . $provider . '.php';
}
}
}
new WPForms_Providers;
crosstraining/wp-content/plugins/wpforms-lite/includes/admin/builder/panels/class-providers.php 0000604 00000010503 15113206505 0032276 0 ustar 00 home/xbodynamge <?php
/**
* Providers panel.
*
* @package WPForms
* @author WPForms
* @since 1.0.0
* @license GPL-2.0+
* @copyright Copyright (c) 2016, WPForms LLC
*/
class WPForms_Builder_Panel_Providers extends WPForms_Builder_Panel {
/**
* All systems go.
*
* @since 1.0.0
*/
public function init() {
// Define panel information.
$this->name = esc_html__( 'Marketing', 'wpforms-lite' );
$this->slug = 'providers';
$this->icon = 'fa-bullhorn';
$this->order = 10;
$this->sidebar = true;
}
/**
* Enqueue assets for the Providers panel.
*
* @since 1.0.0
*/
public function enqueues() {
wp_enqueue_style(
'wpforms-builder-providers',
WPFORMS_PLUGIN_URL . 'assets/css/admin-builder-providers.css',
null,
WPFORMS_VERSION
);
wp_enqueue_script(
'wpforms-builder-providers',
WPFORMS_PLUGIN_URL . 'assets/js/admin-builder-providers.js',
array( 'jquery' ),
WPFORMS_VERSION,
false
);
wp_localize_script(
'wpforms-builder-providers',
'wpforms_builder_providers',
array(
'url' => esc_url( add_query_arg( array( 'view' => 'providers' ) ) ),
'confirm_save' => esc_html__( 'We need to save your progress to continue to the Marketing panel. Is that OK?', 'wpforms-lite' ),
'confirm_connection' => esc_html__( 'Are you sure you want to delete this connection?', 'wpforms-lite' ),
'prompt_connection' => esc_html__( 'Enter a %type% nickname', 'wpforms-lite' ),
'prompt_placeholder' => esc_html__( 'Eg: Newsletter Optin', 'wpforms-lite' ),
'error_name' => esc_html__( 'You must provide a connection nickname', 'wpforms-lite' ),
'required_field' => esc_html__( 'Field required', 'wpforms-lite' ),
)
);
}
/**
* Outputs the Provider panel sidebar.
*
* @since 1.0.0
*/
public function panel_sidebar() {
// Sidebar contents are not valid unless we have a form.
if ( ! $this->form ) {
return;
}
$this->panel_sidebar_section( 'Default', 'default' );
do_action( 'wpforms_providers_panel_sidebar', $this->form );
}
/**
* Outputs the Provider panel primary content.
*
* @since 1.0.0
*/
public function panel_content() {
if ( ! $this->form ) {
// Check if there is a form created. When no form has been created
// yet let the user know we need a form to setup a provider.
echo '<div class="wpforms-alert wpforms-alert-info">';
echo wp_kses(
__( 'You need to <a href="#" class="wpforms-panel-switch" data-panel="setup">setup your form</a> before you can manage these settings.', 'wpforms-lite' ),
array(
'a' => array(
'href' => array(),
'class' => array(),
'data-panel' => array(),
),
)
);
echo '</div>';
return;
}
// An array of all the active provider addons.
$providers_active = wpforms_get_providers_available();
if ( empty( $providers_active ) ) {
// Check for active provider addons. When no provider addons are
// activated let the user know they need to install/activate an
// addon to setup a provider.
echo '<div class="wpforms-panel-content-section wpforms-panel-content-section-info">';
echo '<h5>' . esc_html__( 'Install Your Marketing Integration', 'wpforms-lite' ) . '</h5>';
echo '<p>' .
sprintf(
wp_kses(
/* translators: %s - plugin admin area Addons page. */
__( 'It seems you do not have any marketing addons activated. You can head over to the <a href="%s">Addons page</a> to install and activate the addon for your provider.', 'wpforms-lite' ),
array(
'a' => array(
'href' => array(),
),
)
),
esc_url( admin_url( 'admin.php?page=wpforms-addons' ) )
) .
'</p>';
echo '</div>';
} else {
// Everything is good - display default instructions.
echo '<div class="wpforms-panel-content-section wpforms-panel-content-section-default">';
echo '<h5>' . esc_html__( 'Select Your Marketing Integration', 'wpforms-lite' ) . '</h5>';
echo '<p>' . esc_html__( 'Select your email marketing service provider or CRM from the options on the left. If you don\'t see your email marketing service listed, then let us know and we\'ll do our best to get it added as fast as possible.', 'wpforms-lite' ) . '</p>';
echo '</div>';
}
do_action( 'wpforms_providers_panel_content', $this->form );
}
}
new WPForms_Builder_Panel_Providers();
lebauwcentre/wp-content/plugins/wpforms-lite/includes/admin/builder/panels/class-providers.php 0000644 00000010503 15114411650 0032075 0 ustar 00 home/xbodynamge <?php
/**
* Providers panel.
*
* @package WPForms
* @author WPForms
* @since 1.0.0
* @license GPL-2.0+
* @copyright Copyright (c) 2016, WPForms LLC
*/
class WPForms_Builder_Panel_Providers extends WPForms_Builder_Panel {
/**
* All systems go.
*
* @since 1.0.0
*/
public function init() {
// Define panel information.
$this->name = esc_html__( 'Marketing', 'wpforms-lite' );
$this->slug = 'providers';
$this->icon = 'fa-bullhorn';
$this->order = 10;
$this->sidebar = true;
}
/**
* Enqueue assets for the Providers panel.
*
* @since 1.0.0
*/
public function enqueues() {
wp_enqueue_style(
'wpforms-builder-providers',
WPFORMS_PLUGIN_URL . 'assets/css/admin-builder-providers.css',
null,
WPFORMS_VERSION
);
wp_enqueue_script(
'wpforms-builder-providers',
WPFORMS_PLUGIN_URL . 'assets/js/admin-builder-providers.js',
array( 'jquery' ),
WPFORMS_VERSION,
false
);
wp_localize_script(
'wpforms-builder-providers',
'wpforms_builder_providers',
array(
'url' => esc_url( add_query_arg( array( 'view' => 'providers' ) ) ),
'confirm_save' => esc_html__( 'We need to save your progress to continue to the Marketing panel. Is that OK?', 'wpforms-lite' ),
'confirm_connection' => esc_html__( 'Are you sure you want to delete this connection?', 'wpforms-lite' ),
'prompt_connection' => esc_html__( 'Enter a %type% nickname', 'wpforms-lite' ),
'prompt_placeholder' => esc_html__( 'Eg: Newsletter Optin', 'wpforms-lite' ),
'error_name' => esc_html__( 'You must provide a connection nickname', 'wpforms-lite' ),
'required_field' => esc_html__( 'Field required', 'wpforms-lite' ),
)
);
}
/**
* Outputs the Provider panel sidebar.
*
* @since 1.0.0
*/
public function panel_sidebar() {
// Sidebar contents are not valid unless we have a form.
if ( ! $this->form ) {
return;
}
$this->panel_sidebar_section( 'Default', 'default' );
do_action( 'wpforms_providers_panel_sidebar', $this->form );
}
/**
* Outputs the Provider panel primary content.
*
* @since 1.0.0
*/
public function panel_content() {
if ( ! $this->form ) {
// Check if there is a form created. When no form has been created
// yet let the user know we need a form to setup a provider.
echo '<div class="wpforms-alert wpforms-alert-info">';
echo wp_kses(
__( 'You need to <a href="#" class="wpforms-panel-switch" data-panel="setup">setup your form</a> before you can manage these settings.', 'wpforms-lite' ),
array(
'a' => array(
'href' => array(),
'class' => array(),
'data-panel' => array(),
),
)
);
echo '</div>';
return;
}
// An array of all the active provider addons.
$providers_active = wpforms_get_providers_available();
if ( empty( $providers_active ) ) {
// Check for active provider addons. When no provider addons are
// activated let the user know they need to install/activate an
// addon to setup a provider.
echo '<div class="wpforms-panel-content-section wpforms-panel-content-section-info">';
echo '<h5>' . esc_html__( 'Install Your Marketing Integration', 'wpforms-lite' ) . '</h5>';
echo '<p>' .
sprintf(
wp_kses(
/* translators: %s - plugin admin area Addons page. */
__( 'It seems you do not have any marketing addons activated. You can head over to the <a href="%s">Addons page</a> to install and activate the addon for your provider.', 'wpforms-lite' ),
array(
'a' => array(
'href' => array(),
),
)
),
esc_url( admin_url( 'admin.php?page=wpforms-addons' ) )
) .
'</p>';
echo '</div>';
} else {
// Everything is good - display default instructions.
echo '<div class="wpforms-panel-content-section wpforms-panel-content-section-default">';
echo '<h5>' . esc_html__( 'Select Your Marketing Integration', 'wpforms-lite' ) . '</h5>';
echo '<p>' . esc_html__( 'Select your email marketing service provider or CRM from the options on the left. If you don\'t see your email marketing service listed, then let us know and we\'ll do our best to get it added as fast as possible.', 'wpforms-lite' ) . '</p>';
echo '</div>';
}
do_action( 'wpforms_providers_panel_content', $this->form );
}
}
new WPForms_Builder_Panel_Providers();
namtation/wp-content/plugins/wpforms-lite/includes/admin/builder/panels/class-providers.php 0000644 00000010503 15114414046 0031411 0 ustar 00 home/xbodynamge <?php
/**
* Providers panel.
*
* @package WPForms
* @author WPForms
* @since 1.0.0
* @license GPL-2.0+
* @copyright Copyright (c) 2016, WPForms LLC
*/
class WPForms_Builder_Panel_Providers extends WPForms_Builder_Panel {
/**
* All systems go.
*
* @since 1.0.0
*/
public function init() {
// Define panel information.
$this->name = esc_html__( 'Marketing', 'wpforms-lite' );
$this->slug = 'providers';
$this->icon = 'fa-bullhorn';
$this->order = 10;
$this->sidebar = true;
}
/**
* Enqueue assets for the Providers panel.
*
* @since 1.0.0
*/
public function enqueues() {
wp_enqueue_style(
'wpforms-builder-providers',
WPFORMS_PLUGIN_URL . 'assets/css/admin-builder-providers.css',
null,
WPFORMS_VERSION
);
wp_enqueue_script(
'wpforms-builder-providers',
WPFORMS_PLUGIN_URL . 'assets/js/admin-builder-providers.js',
array( 'jquery' ),
WPFORMS_VERSION,
false
);
wp_localize_script(
'wpforms-builder-providers',
'wpforms_builder_providers',
array(
'url' => esc_url( add_query_arg( array( 'view' => 'providers' ) ) ),
'confirm_save' => esc_html__( 'We need to save your progress to continue to the Marketing panel. Is that OK?', 'wpforms-lite' ),
'confirm_connection' => esc_html__( 'Are you sure you want to delete this connection?', 'wpforms-lite' ),
'prompt_connection' => esc_html__( 'Enter a %type% nickname', 'wpforms-lite' ),
'prompt_placeholder' => esc_html__( 'Eg: Newsletter Optin', 'wpforms-lite' ),
'error_name' => esc_html__( 'You must provide a connection nickname', 'wpforms-lite' ),
'required_field' => esc_html__( 'Field required', 'wpforms-lite' ),
)
);
}
/**
* Outputs the Provider panel sidebar.
*
* @since 1.0.0
*/
public function panel_sidebar() {
// Sidebar contents are not valid unless we have a form.
if ( ! $this->form ) {
return;
}
$this->panel_sidebar_section( 'Default', 'default' );
do_action( 'wpforms_providers_panel_sidebar', $this->form );
}
/**
* Outputs the Provider panel primary content.
*
* @since 1.0.0
*/
public function panel_content() {
if ( ! $this->form ) {
// Check if there is a form created. When no form has been created
// yet let the user know we need a form to setup a provider.
echo '<div class="wpforms-alert wpforms-alert-info">';
echo wp_kses(
__( 'You need to <a href="#" class="wpforms-panel-switch" data-panel="setup">setup your form</a> before you can manage these settings.', 'wpforms-lite' ),
array(
'a' => array(
'href' => array(),
'class' => array(),
'data-panel' => array(),
),
)
);
echo '</div>';
return;
}
// An array of all the active provider addons.
$providers_active = wpforms_get_providers_available();
if ( empty( $providers_active ) ) {
// Check for active provider addons. When no provider addons are
// activated let the user know they need to install/activate an
// addon to setup a provider.
echo '<div class="wpforms-panel-content-section wpforms-panel-content-section-info">';
echo '<h5>' . esc_html__( 'Install Your Marketing Integration', 'wpforms-lite' ) . '</h5>';
echo '<p>' .
sprintf(
wp_kses(
/* translators: %s - plugin admin area Addons page. */
__( 'It seems you do not have any marketing addons activated. You can head over to the <a href="%s">Addons page</a> to install and activate the addon for your provider.', 'wpforms-lite' ),
array(
'a' => array(
'href' => array(),
),
)
),
esc_url( admin_url( 'admin.php?page=wpforms-addons' ) )
) .
'</p>';
echo '</div>';
} else {
// Everything is good - display default instructions.
echo '<div class="wpforms-panel-content-section wpforms-panel-content-section-default">';
echo '<h5>' . esc_html__( 'Select Your Marketing Integration', 'wpforms-lite' ) . '</h5>';
echo '<p>' . esc_html__( 'Select your email marketing service provider or CRM from the options on the left. If you don\'t see your email marketing service listed, then let us know and we\'ll do our best to get it added as fast as possible.', 'wpforms-lite' ) . '</p>';
echo '</div>';
}
do_action( 'wpforms_providers_panel_content', $this->form );
}
}
new WPForms_Builder_Panel_Providers();
xbodynamge/dev/wp-content/plugins/wpforms-lite/includes/admin/builder/panels/class-providers.php 0000644 00000010503 15114443703 0030177 0 ustar 00 home <?php
/**
* Providers panel.
*
* @package WPForms
* @author WPForms
* @since 1.0.0
* @license GPL-2.0+
* @copyright Copyright (c) 2016, WPForms LLC
*/
class WPForms_Builder_Panel_Providers extends WPForms_Builder_Panel {
/**
* All systems go.
*
* @since 1.0.0
*/
public function init() {
// Define panel information.
$this->name = esc_html__( 'Marketing', 'wpforms-lite' );
$this->slug = 'providers';
$this->icon = 'fa-bullhorn';
$this->order = 10;
$this->sidebar = true;
}
/**
* Enqueue assets for the Providers panel.
*
* @since 1.0.0
*/
public function enqueues() {
wp_enqueue_style(
'wpforms-builder-providers',
WPFORMS_PLUGIN_URL . 'assets/css/admin-builder-providers.css',
null,
WPFORMS_VERSION
);
wp_enqueue_script(
'wpforms-builder-providers',
WPFORMS_PLUGIN_URL . 'assets/js/admin-builder-providers.js',
array( 'jquery' ),
WPFORMS_VERSION,
false
);
wp_localize_script(
'wpforms-builder-providers',
'wpforms_builder_providers',
array(
'url' => esc_url( add_query_arg( array( 'view' => 'providers' ) ) ),
'confirm_save' => esc_html__( 'We need to save your progress to continue to the Marketing panel. Is that OK?', 'wpforms-lite' ),
'confirm_connection' => esc_html__( 'Are you sure you want to delete this connection?', 'wpforms-lite' ),
'prompt_connection' => esc_html__( 'Enter a %type% nickname', 'wpforms-lite' ),
'prompt_placeholder' => esc_html__( 'Eg: Newsletter Optin', 'wpforms-lite' ),
'error_name' => esc_html__( 'You must provide a connection nickname', 'wpforms-lite' ),
'required_field' => esc_html__( 'Field required', 'wpforms-lite' ),
)
);
}
/**
* Outputs the Provider panel sidebar.
*
* @since 1.0.0
*/
public function panel_sidebar() {
// Sidebar contents are not valid unless we have a form.
if ( ! $this->form ) {
return;
}
$this->panel_sidebar_section( 'Default', 'default' );
do_action( 'wpforms_providers_panel_sidebar', $this->form );
}
/**
* Outputs the Provider panel primary content.
*
* @since 1.0.0
*/
public function panel_content() {
if ( ! $this->form ) {
// Check if there is a form created. When no form has been created
// yet let the user know we need a form to setup a provider.
echo '<div class="wpforms-alert wpforms-alert-info">';
echo wp_kses(
__( 'You need to <a href="#" class="wpforms-panel-switch" data-panel="setup">setup your form</a> before you can manage these settings.', 'wpforms-lite' ),
array(
'a' => array(
'href' => array(),
'class' => array(),
'data-panel' => array(),
),
)
);
echo '</div>';
return;
}
// An array of all the active provider addons.
$providers_active = wpforms_get_providers_available();
if ( empty( $providers_active ) ) {
// Check for active provider addons. When no provider addons are
// activated let the user know they need to install/activate an
// addon to setup a provider.
echo '<div class="wpforms-panel-content-section wpforms-panel-content-section-info">';
echo '<h5>' . esc_html__( 'Install Your Marketing Integration', 'wpforms-lite' ) . '</h5>';
echo '<p>' .
sprintf(
wp_kses(
/* translators: %s - plugin admin area Addons page. */
__( 'It seems you do not have any marketing addons activated. You can head over to the <a href="%s">Addons page</a> to install and activate the addon for your provider.', 'wpforms-lite' ),
array(
'a' => array(
'href' => array(),
),
)
),
esc_url( admin_url( 'admin.php?page=wpforms-addons' ) )
) .
'</p>';
echo '</div>';
} else {
// Everything is good - display default instructions.
echo '<div class="wpforms-panel-content-section wpforms-panel-content-section-default">';
echo '<h5>' . esc_html__( 'Select Your Marketing Integration', 'wpforms-lite' ) . '</h5>';
echo '<p>' . esc_html__( 'Select your email marketing service provider or CRM from the options on the left. If you don\'t see your email marketing service listed, then let us know and we\'ll do our best to get it added as fast as possible.', 'wpforms-lite' ) . '</p>';
echo '</div>';
}
do_action( 'wpforms_providers_panel_content', $this->form );
}
}
new WPForms_Builder_Panel_Providers();
home/xbodynamge/lebauwcentre/wp-content/plugins/wpforms-lite/includes/class-providers.php 0000644 00000002040 15114564532 0026161 0 ustar 00 <?php
/**
* Load the providers.
*
* @package WPForms
* @author WPForms
* @since 1.3.6
* @license GPL-2.0+
* @copyright Copyright (c) 2017, WPForms LLC
*/
class WPForms_Providers {
/**
* Primary class constructor.
*
* @since 1.3.6
*/
public function __construct() {
$this->init();
}
/**
* Load and init the base provider class.
*
* @since 1.3.6
*/
public function init() {
// Parent class template.
require_once WPFORMS_PLUGIN_DIR . 'includes/providers/class-base.php';
// Load default templates on WP init.
add_action( 'wpforms_loaded', array( $this, 'load' ) );
}
/**
* Load default marketing providers.
*
* @since 1.3.6
*/
public function load() {
$providers = array(
'constant-contact',
);
$providers = apply_filters( 'wpforms_load_providers', $providers );
foreach ( $providers as $provider ) {
$provider = sanitize_file_name( $provider );
require_once WPFORMS_PLUGIN_DIR . 'includes/providers/class-' . $provider . '.php';
}
}
}
new WPForms_Providers;
home/xbodynamge/dev/wp-content/plugins/wpforms-lite/includes/class-providers.php 0000644 00000002040 15115033057 0024251 0 ustar 00 <?php
/**
* Load the providers.
*
* @package WPForms
* @author WPForms
* @since 1.3.6
* @license GPL-2.0+
* @copyright Copyright (c) 2017, WPForms LLC
*/
class WPForms_Providers {
/**
* Primary class constructor.
*
* @since 1.3.6
*/
public function __construct() {
$this->init();
}
/**
* Load and init the base provider class.
*
* @since 1.3.6
*/
public function init() {
// Parent class template.
require_once WPFORMS_PLUGIN_DIR . 'includes/providers/class-base.php';
// Load default templates on WP init.
add_action( 'wpforms_loaded', array( $this, 'load' ) );
}
/**
* Load default marketing providers.
*
* @since 1.3.6
*/
public function load() {
$providers = array(
'constant-contact',
);
$providers = apply_filters( 'wpforms_load_providers', $providers );
foreach ( $providers as $provider ) {
$provider = sanitize_file_name( $provider );
require_once WPFORMS_PLUGIN_DIR . 'includes/providers/class-' . $provider . '.php';
}
}
}
new WPForms_Providers;
home/xbodynamge/namtation/wp-content/plugins/wpforms-lite/includes/class-providers.php 0000644 00000002040 15115052641 0025465 0 ustar 00 <?php
/**
* Load the providers.
*
* @package WPForms
* @author WPForms
* @since 1.3.6
* @license GPL-2.0+
* @copyright Copyright (c) 2017, WPForms LLC
*/
class WPForms_Providers {
/**
* Primary class constructor.
*
* @since 1.3.6
*/
public function __construct() {
$this->init();
}
/**
* Load and init the base provider class.
*
* @since 1.3.6
*/
public function init() {
// Parent class template.
require_once WPFORMS_PLUGIN_DIR . 'includes/providers/class-base.php';
// Load default templates on WP init.
add_action( 'wpforms_loaded', array( $this, 'load' ) );
}
/**
* Load default marketing providers.
*
* @since 1.3.6
*/
public function load() {
$providers = array(
'constant-contact',
);
$providers = apply_filters( 'wpforms_load_providers', $providers );
foreach ( $providers as $provider ) {
$provider = sanitize_file_name( $provider );
require_once WPFORMS_PLUGIN_DIR . 'includes/providers/class-' . $provider . '.php';
}
}
}
new WPForms_Providers;