-
Notifications
You must be signed in to change notification settings - Fork 0
/
login_awp.php
executable file
·38 lines (29 loc) · 1.2 KB
/
login_awp.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* Plugin Name: Login AWP
* Plugin URI: https://wordpress.org/plugins/login-awp
* Description: This plugin modifies the login area for WordPress admin
* Version: 1.0.0
* Requires at least: 5.4
* Requires PHP: 7.4
* Author: Alexsanchez-WP
* Author URI: https://github.com/Alexsanchez-WP
* Text Domain: login_awp
* License: GPLv2
* Released under the GNU General Public License (GPL)
* https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
*/
if (!defined('ABSPATH')) die();
if (!function_exists('login_awp_styles')) {
function login_awp_styles()
{
wp_enqueue_style('vegasCSS', plugins_url('/public/css/vegas.min.css', __FILE__), array(), false);
wp_enqueue_style('loginCSS', plugins_url('/public/css/loginStyles.css', __FILE__), array(), false);
wp_enqueue_script('jquery');
wp_enqueue_script('vegasJS', plugins_url('/public/js/vegas.min.js', __FILE__), array('jquery'), '2.5.4', true);
wp_enqueue_script('loginJS', plugins_url('/public/js/loginJs.js', __FILE__), array('jquery'), '1.0.0', true);
}
add_action('login_enqueue_scripts', 'login_awp_styles', 1);
}
# Include consult logo site
require_once plugin_dir_path(__FILE__) . 'inc/media.php';