| Current Path : /home/x/b/o/xbodynamge/namtation/wp-content/ |
| Current File : /home/x/b/o/xbodynamge/namtation/wp-content/integrations.php.tar |
home/xbodynamge/crosstraining/wp-content/plugins/wpforms-lite/includes/integrations.php 0000604 00000006161 15113616062 0025753 0 ustar 00 <?php
/**
* Contains various WPForms integrations.
*
* @package WPForms
* @author WPForms
* @since 1.3.0
* @license GPL-2.0+
* @copyright Copyright (c) 2016, WPForms LLC
*/
/**
* Register and setup WPForms as a Visual Composer element.
*
* @since 1.3.0
*/
function wpforms_visual_composer_shortcode() {
if ( ! is_user_logged_in() ) {
return;
}
$wpf = wpforms()->form->get(
'',
array(
'orderby' => 'title',
)
);
if ( ! empty( $wpf ) ) {
$forms = array(
esc_html__( 'Select a form to display', 'wpforms-lite' ) => '',
);
foreach ( $wpf as $form ) {
$forms[ $form->post_title ] = $form->ID;
}
} else {
$forms = array(
esc_html__( 'No forms found', 'wpforms-lite' ) => '',
);
}
vc_map(
array(
'name' => esc_html__( 'WPForms', 'wpforms-lite' ),
'base' => 'wpforms',
'icon' => WPFORMS_PLUGIN_URL . 'assets/images/sullie-vc.png',
'category' => esc_html__( 'Content', 'wpforms-lite' ),
'description' => esc_html__( 'Add your form', 'wpforms-lite' ),
'params' => array(
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Form', 'wpforms-lite' ),
'param_name' => 'id',
'value' => $forms,
'save_always' => true,
'description' => esc_html__( 'Select a form to add it to your post or page.', 'wpforms-lite' ),
'admin_label' => true,
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Display Form Name', 'wpforms-lite' ),
'param_name' => 'title',
'value' => array(
esc_html__( 'No', 'wpforms-lite' ) => 'false',
esc_html__( 'Yes', 'wpforms-lite' ) => 'true',
),
'save_always' => true,
'description' => esc_html__( 'Would you like to display the forms name?', 'wpforms-lite' ),
'dependency' => array(
'element' => 'id',
'not_empty' => true,
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Display Form Description', 'wpforms-lite' ),
'param_name' => 'description',
'value' => array(
esc_html__( 'No', 'wpforms-lite' ) => 'false',
esc_html__( 'Yes', 'wpforms-lite' ) => 'true',
),
'save_always' => true,
'description' => esc_html__( 'Would you like to display the forms description?', 'wpforms-lite' ),
'dependency' => array(
'element' => 'id',
'not_empty' => true,
),
),
),
)
);
}
add_action( 'vc_before_init', 'wpforms_visual_composer_shortcode' );
/**
* Load our basic CSS when in Visual Composer's frontend editor.
*
* @since 1.3.0
*/
function wpforms_visual_composer_shortcode_css() {
// Load CSS per global setting.
if ( wpforms_setting( 'disable-css', '1' ) === '1' ) {
wp_enqueue_style(
'wpforms-full',
WPFORMS_PLUGIN_URL . 'assets/css/wpforms-full.css',
array(),
WPFORMS_VERSION
);
}
if ( wpforms_setting( 'disable-css', '1' ) === '2' ) {
wp_enqueue_style(
'wpforms-base',
WPFORMS_PLUGIN_URL . 'assets/css/wpforms-base.css',
array(),
WPFORMS_VERSION
);
}
}
add_action( 'vc_load_iframe_jscss', 'wpforms_visual_composer_shortcode_css' );
home/xbodynamge/namtation/wp-content/plugins/wordpress-seo/admin/views/tabs/network/integrations.php0000644 00000006573 15113704326 0030321 0 ustar 00 <?php
/**
* WPSEO plugin file.
*
* @package WPSEO\Admin\Views
*
* @uses Yoast_Form $yform Form object.
*/
use Yoast\WP\SEO\Presenters\Admin\Badge_Presenter;
use Yoast\WP\SEO\Presenters\Admin\Premium_Badge_Presenter;
if ( ! defined( 'WPSEO_VERSION' ) ) {
header( 'Status: 403 Forbidden' );
header( 'HTTP/1.1 403 Forbidden' );
exit();
}
$integration_toggles = Yoast_Integration_Toggles::instance()->get_all();
?>
<h2><?php esc_html_e( 'Integrations', 'wordpress-seo' ); ?></h2>
<div class="yoast-measure">
<?php
echo sprintf(
/* translators: %1$s expands to Yoast SEO */
esc_html__( 'This tab allows you to selectively disable %1$s integrations with third-party products for all sites in the network. By default all integrations are enabled, which allows site admins to choose for themselves if they want to toggle an integration on or off for their site. When you disable an integration here, site admins will not be able to use that integration at all.', 'wordpress-seo' ),
'Yoast SEO'
);
foreach ( $integration_toggles as $integration ) {
$help_text = esc_html( $integration->label );
if ( ! empty( $integration->extra ) ) {
$help_text .= ' ' . $integration->extra;
}
if ( ! empty( $integration->read_more_label ) ) {
$help_text .= ' ';
$help_text .= sprintf(
'<a href="%1$s" target="_blank" rel="noopener noreferrer">%2$s</a>',
esc_url( WPSEO_Shortlinker::get( $integration->read_more_url ) ),
esc_html( $integration->read_more_label )
);
}
$feature_help = new WPSEO_Admin_Help_Panel(
WPSEO_Option::ALLOW_KEY_PREFIX . $integration->setting,
/* translators: %s expands to an integration's name */
sprintf( esc_html__( 'Help on: %s', 'wordpress-seo' ), esc_html( $integration->name ) ),
$help_text
);
$name = $integration->name;
if ( ! empty( $integration->premium ) && $integration->premium === true ) {
$name .= ' ' . new Premium_Badge_Presenter( $integration->name );
}
if ( ! empty( $integration->new ) && $integration->new === true ) {
$name .= ' ' . new Badge_Presenter( $integration->name );
}
$disabled = $integration->disabled;
$show_premium_upsell = false;
$premium_upsell_url = '';
if ( $integration->premium === true && YoastSEO()->helpers->product->is_premium() === false ) {
$disabled = true;
$show_premium_upsell = true;
$premium_upsell_url = WPSEO_Shortlinker::get( $integration->premium_upsell_url );
}
$preserve_disabled_value = false;
if ( $disabled ) {
$preserve_disabled_value = true;
}
$yform->toggle_switch(
WPSEO_Option::ALLOW_KEY_PREFIX . $integration->setting,
[
'on' => __( 'Allow Control', 'wordpress-seo' ),
'off' => __( 'Disable', 'wordpress-seo' ),
],
$name,
$feature_help->get_button_html() . $feature_help->get_panel_html(),
[
'disabled' => $disabled,
'preserve_disabled_value' => $preserve_disabled_value,
'show_premium_upsell' => $show_premium_upsell,
'premium_upsell_url' => $premium_upsell_url,
]
);
do_action( 'Yoast\WP\SEO\admin_network_integration_after', $integration );
}
?>
</div>
<?php
/*
* Required to prevent our settings framework from saving the default because the field isn't
* explicitly set when saving the Dashboard page.
*/
$yform->hidden( 'show_onboarding_notice', 'wpseo_show_onboarding_notice' );
home/xbodynamge/dev/wp-content/plugins/wpforms-lite/includes/integrations.php 0000644 00000006161 15114274771 0023660 0 ustar 00 <?php
/**
* Contains various WPForms integrations.
*
* @package WPForms
* @author WPForms
* @since 1.3.0
* @license GPL-2.0+
* @copyright Copyright (c) 2016, WPForms LLC
*/
/**
* Register and setup WPForms as a Visual Composer element.
*
* @since 1.3.0
*/
function wpforms_visual_composer_shortcode() {
if ( ! is_user_logged_in() ) {
return;
}
$wpf = wpforms()->form->get(
'',
array(
'orderby' => 'title',
)
);
if ( ! empty( $wpf ) ) {
$forms = array(
esc_html__( 'Select a form to display', 'wpforms-lite' ) => '',
);
foreach ( $wpf as $form ) {
$forms[ $form->post_title ] = $form->ID;
}
} else {
$forms = array(
esc_html__( 'No forms found', 'wpforms-lite' ) => '',
);
}
vc_map(
array(
'name' => esc_html__( 'WPForms', 'wpforms-lite' ),
'base' => 'wpforms',
'icon' => WPFORMS_PLUGIN_URL . 'assets/images/sullie-vc.png',
'category' => esc_html__( 'Content', 'wpforms-lite' ),
'description' => esc_html__( 'Add your form', 'wpforms-lite' ),
'params' => array(
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Form', 'wpforms-lite' ),
'param_name' => 'id',
'value' => $forms,
'save_always' => true,
'description' => esc_html__( 'Select a form to add it to your post or page.', 'wpforms-lite' ),
'admin_label' => true,
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Display Form Name', 'wpforms-lite' ),
'param_name' => 'title',
'value' => array(
esc_html__( 'No', 'wpforms-lite' ) => 'false',
esc_html__( 'Yes', 'wpforms-lite' ) => 'true',
),
'save_always' => true,
'description' => esc_html__( 'Would you like to display the forms name?', 'wpforms-lite' ),
'dependency' => array(
'element' => 'id',
'not_empty' => true,
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Display Form Description', 'wpforms-lite' ),
'param_name' => 'description',
'value' => array(
esc_html__( 'No', 'wpforms-lite' ) => 'false',
esc_html__( 'Yes', 'wpforms-lite' ) => 'true',
),
'save_always' => true,
'description' => esc_html__( 'Would you like to display the forms description?', 'wpforms-lite' ),
'dependency' => array(
'element' => 'id',
'not_empty' => true,
),
),
),
)
);
}
add_action( 'vc_before_init', 'wpforms_visual_composer_shortcode' );
/**
* Load our basic CSS when in Visual Composer's frontend editor.
*
* @since 1.3.0
*/
function wpforms_visual_composer_shortcode_css() {
// Load CSS per global setting.
if ( wpforms_setting( 'disable-css', '1' ) === '1' ) {
wp_enqueue_style(
'wpforms-full',
WPFORMS_PLUGIN_URL . 'assets/css/wpforms-full.css',
array(),
WPFORMS_VERSION
);
}
if ( wpforms_setting( 'disable-css', '1' ) === '2' ) {
wp_enqueue_style(
'wpforms-base',
WPFORMS_PLUGIN_URL . 'assets/css/wpforms-base.css',
array(),
WPFORMS_VERSION
);
}
}
add_action( 'vc_load_iframe_jscss', 'wpforms_visual_composer_shortcode_css' );
xbodynamge/lebauwcentre/wp-content/plugins/wordpress-seo/admin/views/tabs/dashboard/integrations.php0000644 00000003345 15114311616 0031155 0 ustar 00 home <?php
/**
* WPSEO plugin file.
*
* @package WPSEO\Admin\Views
*
* @uses Yoast_Form $yform Form object.
*/
use Yoast\WP\SEO\Presenters\Admin\Alert_Presenter;
if ( ! defined( 'WPSEO_VERSION' ) ) {
header( 'Status: 403 Forbidden' );
header( 'HTTP/1.1 403 Forbidden' );
exit();
}
$integration_toggles = Yoast_Integration_Toggles::instance()->get_all();
?>
<h2><?php esc_html_e( 'Integrations', 'wordpress-seo' ); ?></h2>
<div class="yoast-measure">
<?php
$integrations_moved_message = sprintf(
/* translators: 1: link open tag; 2: link close tag. */
esc_html__( 'Looking for your integrations settings? We\'ve moved them to a %1$sseparate Integrations page%2$s.', 'wordpress-seo' ),
'<a href="' . esc_url( admin_url( 'admin.php?page=wpseo_integrations' ) ) . '">',
'</a>'
);
$frontpage_settings_alert = new Alert_Presenter( $integrations_moved_message, 'info' );
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Output from present() is considered safe.
echo $frontpage_settings_alert->present();
$yform->hidden( 'semrush_integration_active', 'semrush_integration_active' );
$yform->hidden( 'ryte_indexability', 'ryte_indexability' );
$yform->hidden( 'zapier_integration_active', 'zapier_integration_active' );
$yform->hidden( 'algolia_integration_active', 'algolia_integration_active' );
$yform->hidden( 'wincher_integration_active', 'wincher_integration_active' );
$yform->hidden( 'wordproof_integration_active', 'wordproof_integration_active' );
?>
</div>
<?php
/*
* Required to prevent our settings framework from saving the default because the field isn't
* explicitly set when saving the Dashboard page.
*/
$yform->hidden( 'show_onboarding_notice', 'wpseo_show_onboarding_notice' );
home/xbodynamge/www/wp-content/plugins/wordpress-seo/admin/views/tabs/dashboard/integrations.php 0000644 00000003345 15114321307 0027376 0 ustar 00 <?php
/**
* WPSEO plugin file.
*
* @package WPSEO\Admin\Views
*
* @uses Yoast_Form $yform Form object.
*/
use Yoast\WP\SEO\Presenters\Admin\Alert_Presenter;
if ( ! defined( 'WPSEO_VERSION' ) ) {
header( 'Status: 403 Forbidden' );
header( 'HTTP/1.1 403 Forbidden' );
exit();
}
$integration_toggles = Yoast_Integration_Toggles::instance()->get_all();
?>
<h2><?php esc_html_e( 'Integrations', 'wordpress-seo' ); ?></h2>
<div class="yoast-measure">
<?php
$integrations_moved_message = sprintf(
/* translators: 1: link open tag; 2: link close tag. */
esc_html__( 'Looking for your integrations settings? We\'ve moved them to a %1$sseparate Integrations page%2$s.', 'wordpress-seo' ),
'<a href="' . esc_url( admin_url( 'admin.php?page=wpseo_integrations' ) ) . '">',
'</a>'
);
$frontpage_settings_alert = new Alert_Presenter( $integrations_moved_message, 'info' );
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Output from present() is considered safe.
echo $frontpage_settings_alert->present();
$yform->hidden( 'semrush_integration_active', 'semrush_integration_active' );
$yform->hidden( 'ryte_indexability', 'ryte_indexability' );
$yform->hidden( 'zapier_integration_active', 'zapier_integration_active' );
$yform->hidden( 'algolia_integration_active', 'algolia_integration_active' );
$yform->hidden( 'wincher_integration_active', 'wincher_integration_active' );
$yform->hidden( 'wordproof_integration_active', 'wordproof_integration_active' );
?>
</div>
<?php
/*
* Required to prevent our settings framework from saving the default because the field isn't
* explicitly set when saving the Dashboard page.
*/
$yform->hidden( 'show_onboarding_notice', 'wpseo_show_onboarding_notice' );
crosstraining/wp-content/plugins/wordpress-seo/admin/views/tabs/dashboard/integrations.php 0000644 00000003345 15114322006 0031355 0 ustar 00 home/xbodynamge <?php
/**
* WPSEO plugin file.
*
* @package WPSEO\Admin\Views
*
* @uses Yoast_Form $yform Form object.
*/
use Yoast\WP\SEO\Presenters\Admin\Alert_Presenter;
if ( ! defined( 'WPSEO_VERSION' ) ) {
header( 'Status: 403 Forbidden' );
header( 'HTTP/1.1 403 Forbidden' );
exit();
}
$integration_toggles = Yoast_Integration_Toggles::instance()->get_all();
?>
<h2><?php esc_html_e( 'Integrations', 'wordpress-seo' ); ?></h2>
<div class="yoast-measure">
<?php
$integrations_moved_message = sprintf(
/* translators: 1: link open tag; 2: link close tag. */
esc_html__( 'Looking for your integrations settings? We\'ve moved them to a %1$sseparate Integrations page%2$s.', 'wordpress-seo' ),
'<a href="' . esc_url( admin_url( 'admin.php?page=wpseo_integrations' ) ) . '">',
'</a>'
);
$frontpage_settings_alert = new Alert_Presenter( $integrations_moved_message, 'info' );
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Output from present() is considered safe.
echo $frontpage_settings_alert->present();
$yform->hidden( 'semrush_integration_active', 'semrush_integration_active' );
$yform->hidden( 'ryte_indexability', 'ryte_indexability' );
$yform->hidden( 'zapier_integration_active', 'zapier_integration_active' );
$yform->hidden( 'algolia_integration_active', 'algolia_integration_active' );
$yform->hidden( 'wincher_integration_active', 'wincher_integration_active' );
$yform->hidden( 'wordproof_integration_active', 'wordproof_integration_active' );
?>
</div>
<?php
/*
* Required to prevent our settings framework from saving the default because the field isn't
* explicitly set when saving the Dashboard page.
*/
$yform->hidden( 'show_onboarding_notice', 'wpseo_show_onboarding_notice' );
xbodynamge/crosstraining/wp-content/plugins/wordpress-seo/admin/views/tabs/network/integrations.php 0000644 00000006573 15114413066 0031134 0 ustar 00 home <?php
/**
* WPSEO plugin file.
*
* @package WPSEO\Admin\Views
*
* @uses Yoast_Form $yform Form object.
*/
use Yoast\WP\SEO\Presenters\Admin\Badge_Presenter;
use Yoast\WP\SEO\Presenters\Admin\Premium_Badge_Presenter;
if ( ! defined( 'WPSEO_VERSION' ) ) {
header( 'Status: 403 Forbidden' );
header( 'HTTP/1.1 403 Forbidden' );
exit();
}
$integration_toggles = Yoast_Integration_Toggles::instance()->get_all();
?>
<h2><?php esc_html_e( 'Integrations', 'wordpress-seo' ); ?></h2>
<div class="yoast-measure">
<?php
echo sprintf(
/* translators: %1$s expands to Yoast SEO */
esc_html__( 'This tab allows you to selectively disable %1$s integrations with third-party products for all sites in the network. By default all integrations are enabled, which allows site admins to choose for themselves if they want to toggle an integration on or off for their site. When you disable an integration here, site admins will not be able to use that integration at all.', 'wordpress-seo' ),
'Yoast SEO'
);
foreach ( $integration_toggles as $integration ) {
$help_text = esc_html( $integration->label );
if ( ! empty( $integration->extra ) ) {
$help_text .= ' ' . $integration->extra;
}
if ( ! empty( $integration->read_more_label ) ) {
$help_text .= ' ';
$help_text .= sprintf(
'<a href="%1$s" target="_blank" rel="noopener noreferrer">%2$s</a>',
esc_url( WPSEO_Shortlinker::get( $integration->read_more_url ) ),
esc_html( $integration->read_more_label )
);
}
$feature_help = new WPSEO_Admin_Help_Panel(
WPSEO_Option::ALLOW_KEY_PREFIX . $integration->setting,
/* translators: %s expands to an integration's name */
sprintf( esc_html__( 'Help on: %s', 'wordpress-seo' ), esc_html( $integration->name ) ),
$help_text
);
$name = $integration->name;
if ( ! empty( $integration->premium ) && $integration->premium === true ) {
$name .= ' ' . new Premium_Badge_Presenter( $integration->name );
}
if ( ! empty( $integration->new ) && $integration->new === true ) {
$name .= ' ' . new Badge_Presenter( $integration->name );
}
$disabled = $integration->disabled;
$show_premium_upsell = false;
$premium_upsell_url = '';
if ( $integration->premium === true && YoastSEO()->helpers->product->is_premium() === false ) {
$disabled = true;
$show_premium_upsell = true;
$premium_upsell_url = WPSEO_Shortlinker::get( $integration->premium_upsell_url );
}
$preserve_disabled_value = false;
if ( $disabled ) {
$preserve_disabled_value = true;
}
$yform->toggle_switch(
WPSEO_Option::ALLOW_KEY_PREFIX . $integration->setting,
[
'on' => __( 'Allow Control', 'wordpress-seo' ),
'off' => __( 'Disable', 'wordpress-seo' ),
],
$name,
$feature_help->get_button_html() . $feature_help->get_panel_html(),
[
'disabled' => $disabled,
'preserve_disabled_value' => $preserve_disabled_value,
'show_premium_upsell' => $show_premium_upsell,
'premium_upsell_url' => $premium_upsell_url,
]
);
do_action( 'Yoast\WP\SEO\admin_network_integration_after', $integration );
}
?>
</div>
<?php
/*
* Required to prevent our settings framework from saving the default because the field isn't
* explicitly set when saving the Dashboard page.
*/
$yform->hidden( 'show_onboarding_notice', 'wpseo_show_onboarding_notice' );
xbodynamge/lebauwcentre/wp-content/plugins/wordpress-seo/admin/views/tabs/network/integrations.php 0000644 00000006573 15114450054 0030725 0 ustar 00 home <?php
/**
* WPSEO plugin file.
*
* @package WPSEO\Admin\Views
*
* @uses Yoast_Form $yform Form object.
*/
use Yoast\WP\SEO\Presenters\Admin\Badge_Presenter;
use Yoast\WP\SEO\Presenters\Admin\Premium_Badge_Presenter;
if ( ! defined( 'WPSEO_VERSION' ) ) {
header( 'Status: 403 Forbidden' );
header( 'HTTP/1.1 403 Forbidden' );
exit();
}
$integration_toggles = Yoast_Integration_Toggles::instance()->get_all();
?>
<h2><?php esc_html_e( 'Integrations', 'wordpress-seo' ); ?></h2>
<div class="yoast-measure">
<?php
echo sprintf(
/* translators: %1$s expands to Yoast SEO */
esc_html__( 'This tab allows you to selectively disable %1$s integrations with third-party products for all sites in the network. By default all integrations are enabled, which allows site admins to choose for themselves if they want to toggle an integration on or off for their site. When you disable an integration here, site admins will not be able to use that integration at all.', 'wordpress-seo' ),
'Yoast SEO'
);
foreach ( $integration_toggles as $integration ) {
$help_text = esc_html( $integration->label );
if ( ! empty( $integration->extra ) ) {
$help_text .= ' ' . $integration->extra;
}
if ( ! empty( $integration->read_more_label ) ) {
$help_text .= ' ';
$help_text .= sprintf(
'<a href="%1$s" target="_blank" rel="noopener noreferrer">%2$s</a>',
esc_url( WPSEO_Shortlinker::get( $integration->read_more_url ) ),
esc_html( $integration->read_more_label )
);
}
$feature_help = new WPSEO_Admin_Help_Panel(
WPSEO_Option::ALLOW_KEY_PREFIX . $integration->setting,
/* translators: %s expands to an integration's name */
sprintf( esc_html__( 'Help on: %s', 'wordpress-seo' ), esc_html( $integration->name ) ),
$help_text
);
$name = $integration->name;
if ( ! empty( $integration->premium ) && $integration->premium === true ) {
$name .= ' ' . new Premium_Badge_Presenter( $integration->name );
}
if ( ! empty( $integration->new ) && $integration->new === true ) {
$name .= ' ' . new Badge_Presenter( $integration->name );
}
$disabled = $integration->disabled;
$show_premium_upsell = false;
$premium_upsell_url = '';
if ( $integration->premium === true && YoastSEO()->helpers->product->is_premium() === false ) {
$disabled = true;
$show_premium_upsell = true;
$premium_upsell_url = WPSEO_Shortlinker::get( $integration->premium_upsell_url );
}
$preserve_disabled_value = false;
if ( $disabled ) {
$preserve_disabled_value = true;
}
$yform->toggle_switch(
WPSEO_Option::ALLOW_KEY_PREFIX . $integration->setting,
[
'on' => __( 'Allow Control', 'wordpress-seo' ),
'off' => __( 'Disable', 'wordpress-seo' ),
],
$name,
$feature_help->get_button_html() . $feature_help->get_panel_html(),
[
'disabled' => $disabled,
'preserve_disabled_value' => $preserve_disabled_value,
'show_premium_upsell' => $show_premium_upsell,
'premium_upsell_url' => $premium_upsell_url,
]
);
do_action( 'Yoast\WP\SEO\admin_network_integration_after', $integration );
}
?>
</div>
<?php
/*
* Required to prevent our settings framework from saving the default because the field isn't
* explicitly set when saving the Dashboard page.
*/
$yform->hidden( 'show_onboarding_notice', 'wpseo_show_onboarding_notice' );
home/xbodynamge/www/wp-content/plugins/wordpress-seo/admin/views/tabs/network/integrations.php 0000644 00000006573 15114450545 0027155 0 ustar 00 <?php
/**
* WPSEO plugin file.
*
* @package WPSEO\Admin\Views
*
* @uses Yoast_Form $yform Form object.
*/
use Yoast\WP\SEO\Presenters\Admin\Badge_Presenter;
use Yoast\WP\SEO\Presenters\Admin\Premium_Badge_Presenter;
if ( ! defined( 'WPSEO_VERSION' ) ) {
header( 'Status: 403 Forbidden' );
header( 'HTTP/1.1 403 Forbidden' );
exit();
}
$integration_toggles = Yoast_Integration_Toggles::instance()->get_all();
?>
<h2><?php esc_html_e( 'Integrations', 'wordpress-seo' ); ?></h2>
<div class="yoast-measure">
<?php
echo sprintf(
/* translators: %1$s expands to Yoast SEO */
esc_html__( 'This tab allows you to selectively disable %1$s integrations with third-party products for all sites in the network. By default all integrations are enabled, which allows site admins to choose for themselves if they want to toggle an integration on or off for their site. When you disable an integration here, site admins will not be able to use that integration at all.', 'wordpress-seo' ),
'Yoast SEO'
);
foreach ( $integration_toggles as $integration ) {
$help_text = esc_html( $integration->label );
if ( ! empty( $integration->extra ) ) {
$help_text .= ' ' . $integration->extra;
}
if ( ! empty( $integration->read_more_label ) ) {
$help_text .= ' ';
$help_text .= sprintf(
'<a href="%1$s" target="_blank" rel="noopener noreferrer">%2$s</a>',
esc_url( WPSEO_Shortlinker::get( $integration->read_more_url ) ),
esc_html( $integration->read_more_label )
);
}
$feature_help = new WPSEO_Admin_Help_Panel(
WPSEO_Option::ALLOW_KEY_PREFIX . $integration->setting,
/* translators: %s expands to an integration's name */
sprintf( esc_html__( 'Help on: %s', 'wordpress-seo' ), esc_html( $integration->name ) ),
$help_text
);
$name = $integration->name;
if ( ! empty( $integration->premium ) && $integration->premium === true ) {
$name .= ' ' . new Premium_Badge_Presenter( $integration->name );
}
if ( ! empty( $integration->new ) && $integration->new === true ) {
$name .= ' ' . new Badge_Presenter( $integration->name );
}
$disabled = $integration->disabled;
$show_premium_upsell = false;
$premium_upsell_url = '';
if ( $integration->premium === true && YoastSEO()->helpers->product->is_premium() === false ) {
$disabled = true;
$show_premium_upsell = true;
$premium_upsell_url = WPSEO_Shortlinker::get( $integration->premium_upsell_url );
}
$preserve_disabled_value = false;
if ( $disabled ) {
$preserve_disabled_value = true;
}
$yform->toggle_switch(
WPSEO_Option::ALLOW_KEY_PREFIX . $integration->setting,
[
'on' => __( 'Allow Control', 'wordpress-seo' ),
'off' => __( 'Disable', 'wordpress-seo' ),
],
$name,
$feature_help->get_button_html() . $feature_help->get_panel_html(),
[
'disabled' => $disabled,
'preserve_disabled_value' => $preserve_disabled_value,
'show_premium_upsell' => $show_premium_upsell,
'premium_upsell_url' => $premium_upsell_url,
]
);
do_action( 'Yoast\WP\SEO\admin_network_integration_after', $integration );
}
?>
</div>
<?php
/*
* Required to prevent our settings framework from saving the default because the field isn't
* explicitly set when saving the Dashboard page.
*/
$yform->hidden( 'show_onboarding_notice', 'wpseo_show_onboarding_notice' );
home/xbodynamge/lebauwcentre/wp-content/plugins/wpforms-lite/includes/integrations.php 0000644 00000006160 15114562460 0025554 0 ustar 00 <?php
/**
* Contains various WPForms integrations.
*
* @package WPForms
* @author WPForms
* @since 1.3.0
* @license GPL-2.0+
* @copyright Copyright (c) 2016, WPForms LLC
*/
/**
* Register and setup WPForms as a Visual Composer element.
*
* @since 1.3.0
*/
function wpforms_visual_composer_shortcode() {
if ( ! is_user_logged_in() ) {
return;
}
$wpf = wpforms()->form->get(
'',
array(
'orderby' => 'title',
)
);
if ( ! empty( $wpf ) ) {
$forms = array(
esc_html__( 'Select a form to display', 'wpforms-lite' ) => '',
);
foreach ( $wpf as $form ) {
$forms[ $form->post_title ] = $form->ID;
}
} else {
$forms = array(
esc_html__( 'No forms found', 'wpforms-lite' ) => '',
);
}
vc_map(
array(
'name' => esc_html__( 'WPForms', 'wpforms-lite' ),
'base' => 'wpforms',
'icon' => WPFORMS_PLUGIN_URL . 'assets/images/sullie-vc.png',
'category' => esc_html__( 'Content', 'wpforms-lite' ),
'description' => esc_html__( 'Add your form', 'wpforms-lite' ),
'params' => array(
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Form', 'wpforms-lite' ),
'param_name' => 'id',
'value' => $forms,
'save_always' => true,
'description' => esc_html__( 'Select a form to add it to your post or page.', 'wpforms-lite' ),
'admin_label' => true,
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Display Form Name', 'wpforms-lite' ),
'param_name' => 'title',
'value' => array(
esc_html__( 'No', 'wpforms-lite' ) => 'false',
esc_html__( 'Yes', 'wpforms-lite' ) => 'true',
),
'save_always' => true,
'description' => esc_html__( 'Would you like to display the forms name?', 'wpforms-lite' ),
'dependency' => array(
'element' => 'id',
'not_empty' => true,
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Display Form Description', 'wpforms-lite' ),
'param_name' => 'description',
'value' => array(
esc_html__( 'No', 'wpforms-lite' ) => 'false',
esc_html__( 'Yes', 'wpforms-lite' ) => 'true',
),
'save_always' => true,
'description' => esc_html__( 'Would you like to display the form description?', 'wpforms-lite' ),
'dependency' => array(
'element' => 'id',
'not_empty' => true,
),
),
),
)
);
}
add_action( 'vc_before_init', 'wpforms_visual_composer_shortcode' );
/**
* Load our basic CSS when in Visual Composer's frontend editor.
*
* @since 1.3.0
*/
function wpforms_visual_composer_shortcode_css() {
// Load CSS per global setting.
if ( wpforms_setting( 'disable-css', '1' ) === '1' ) {
wp_enqueue_style(
'wpforms-full',
WPFORMS_PLUGIN_URL . 'assets/css/wpforms-full.css',
array(),
WPFORMS_VERSION
);
}
if ( wpforms_setting( 'disable-css', '1' ) === '2' ) {
wp_enqueue_style(
'wpforms-base',
WPFORMS_PLUGIN_URL . 'assets/css/wpforms-base.css',
array(),
WPFORMS_VERSION
);
}
}
add_action( 'vc_load_iframe_jscss', 'wpforms_visual_composer_shortcode_css' );
home/xbodynamge/namtation/wp-content/plugins/wpforms-lite/includes/integrations.php 0000644 00000006160 15115011104 0025047 0 ustar 00 <?php
/**
* Contains various WPForms integrations.
*
* @package WPForms
* @author WPForms
* @since 1.3.0
* @license GPL-2.0+
* @copyright Copyright (c) 2016, WPForms LLC
*/
/**
* Register and setup WPForms as a Visual Composer element.
*
* @since 1.3.0
*/
function wpforms_visual_composer_shortcode() {
if ( ! is_user_logged_in() ) {
return;
}
$wpf = wpforms()->form->get(
'',
array(
'orderby' => 'title',
)
);
if ( ! empty( $wpf ) ) {
$forms = array(
esc_html__( 'Select a form to display', 'wpforms-lite' ) => '',
);
foreach ( $wpf as $form ) {
$forms[ $form->post_title ] = $form->ID;
}
} else {
$forms = array(
esc_html__( 'No forms found', 'wpforms-lite' ) => '',
);
}
vc_map(
array(
'name' => esc_html__( 'WPForms', 'wpforms-lite' ),
'base' => 'wpforms',
'icon' => WPFORMS_PLUGIN_URL . 'assets/images/sullie-vc.png',
'category' => esc_html__( 'Content', 'wpforms-lite' ),
'description' => esc_html__( 'Add your form', 'wpforms-lite' ),
'params' => array(
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Form', 'wpforms-lite' ),
'param_name' => 'id',
'value' => $forms,
'save_always' => true,
'description' => esc_html__( 'Select a form to add it to your post or page.', 'wpforms-lite' ),
'admin_label' => true,
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Display Form Name', 'wpforms-lite' ),
'param_name' => 'title',
'value' => array(
esc_html__( 'No', 'wpforms-lite' ) => 'false',
esc_html__( 'Yes', 'wpforms-lite' ) => 'true',
),
'save_always' => true,
'description' => esc_html__( 'Would you like to display the forms name?', 'wpforms-lite' ),
'dependency' => array(
'element' => 'id',
'not_empty' => true,
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Display Form Description', 'wpforms-lite' ),
'param_name' => 'description',
'value' => array(
esc_html__( 'No', 'wpforms-lite' ) => 'false',
esc_html__( 'Yes', 'wpforms-lite' ) => 'true',
),
'save_always' => true,
'description' => esc_html__( 'Would you like to display the form description?', 'wpforms-lite' ),
'dependency' => array(
'element' => 'id',
'not_empty' => true,
),
),
),
)
);
}
add_action( 'vc_before_init', 'wpforms_visual_composer_shortcode' );
/**
* Load our basic CSS when in Visual Composer's frontend editor.
*
* @since 1.3.0
*/
function wpforms_visual_composer_shortcode_css() {
// Load CSS per global setting.
if ( wpforms_setting( 'disable-css', '1' ) === '1' ) {
wp_enqueue_style(
'wpforms-full',
WPFORMS_PLUGIN_URL . 'assets/css/wpforms-full.css',
array(),
WPFORMS_VERSION
);
}
if ( wpforms_setting( 'disable-css', '1' ) === '2' ) {
wp_enqueue_style(
'wpforms-base',
WPFORMS_PLUGIN_URL . 'assets/css/wpforms-base.css',
array(),
WPFORMS_VERSION
);
}
}
add_action( 'vc_load_iframe_jscss', 'wpforms_visual_composer_shortcode_css' );