function yith_ywsl_constructor() { // Load YWSL text domain ___________________________________ load_plugin_textdomain('yith-woocommerce-social-login', false, dirname(plugin_basename(__FILE__)) . '/languages/'); if (session_id() == '') { session_start(); } require_once YITH_YWSL_INC . 'functions.yith-social-login.php'; require_once YITH_YWSL_INC . 'class-yith-social-login.php'; if (is_admin()) { require_once YITH_YWSL_INC . 'class-yith-social-login-admin.php'; YITH_WC_Social_Login_Admin(); } else { require_once YITH_YWSL_INC . 'class-yith-social-login-frontend.php'; YITH_WC_Social_Login_Frontend(); } YITH_WC_Social_Login(); }
/** * Print the Social Login Buttons * * @since 1.0.0 * @return string * @author Emanuela Castorina <*****@*****.**> */ public function yith_wc_social_login_shortcode($atts) { return YITH_WC_Social_Login_Frontend()->social_buttons('', true); }
<?php /** * Section to show social login buttons * * @package YITH WooCommerce Social Login * @since 1.0.0 * @author Yithemes */ if (!empty($label_checkout)) { ?> <p class="woocommerce-info"><?php printf('%s <a href="#" class="show-ywsl-box">' . __('Click here to login', 'yith-woocommerce-social-login') . '</a>', $label_checkout); ?> </p> <form class="login ywsl-box"> <?php } YITH_WC_Social_Login_Frontend()->social_buttons('social-icons'); ?> </form>