if (version_compare($wp_version, '3.8', 'ge')) { $addCompatStyles = true; } $currentPluginVersion = RublonHelper::getCurrentPluginVersion(); wp_enqueue_style('rublon2factor_frontend', RUBLON2FACTOR_PLUGIN_URL . '/assets/css/rublon2factor_frontend.css', false, $currentPluginVersion); if ($addCompatStyles) { wp_enqueue_style('rublon2factor_frontend_38plus', RUBLON2FACTOR_PLUGIN_URL . '/assets/css/rublon2factor_frontend_wp_3.8_plus.css', false, $currentPluginVersion); } if (is_rtl()) { wp_enqueue_style('rublon2factor_rtl', RUBLON2FACTOR_PLUGIN_URL . '/assets/css/rtl.css', false, $currentPluginVersion); } wp_enqueue_script('rublon2factor_js', RUBLON2FACTOR_PLUGIN_URL . '/assets/js/rublon-wordpress.js', false, $currentPluginVersion); } add_action('login_enqueue_scripts', 'rublon2factor_add_login_page_files'); // Shows Adam on the login page if (RublonHelper::isAdamEnabled()) { function login_page_custom_css() { wp_enqueue_style('rublon_adam', RUBLON2FACTOR_PLUGIN_URL . '/assets/css/rublon_adam.css'); } add_action('login_enqueue_scripts', 'login_page_custom_css'); function add_login_footer() { ?> <div id="main_login_form_widget_style"> <div class="triangle"> <div><?php echo RublonHelper::adam_says(); ?> </div> </div>