PluginProbe
Admin Custom Login / 3.6.7
Admin Custom Login v3.6.7
3.6.7 3.6.6 trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2.0 2.1 2.2 2.3 2.4 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.5.1 2.4.5.2 All 142 releases
admin-custom-login / admin-custom-login.php

admin-custom-login.php in Admin Custom Login 3.6.7, at admin-custom-login.php

71 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Plugin Name: Admin Custom Login
5 * Version: 3.6.7
6 * Description: Customize Your WordPress Login Screen Amazingly - Add Own Logo, Add Social Profiles, Login Form Positions, Background Image Slide Show
7 * Author: Weblizar
8 * Author URI: https://weblizar.com/plugins/
9 * Plugin URI: https://wordpress.org/plugins/admin-custom-login/
10 * Text Domain: admin-custom-login
11 * Domain Path: /languages
12 * License: GPLv2 or later
13 */
14
15 /** Exit if accessed directly **/
16 if (! defined('ABSPATH')) {
17 exit;
18 }
19 define('WEBLIZAR_NALF_PLUGIN_URL', plugin_dir_url(__FILE__));
20 define('WEBLIZAR_ACL_PLUGIN_DIR_PATH_FREE', plugin_dir_path(__FILE__));
21 define('WEBLIZAR_ACL', 'admin-custom-login');
22 define('WEBLIZAR_ACL_VERSION', '3.6.6');
23
24 final class WL_ACL_FREE
25 {
26 private static $instance = null;
27
28 private function __construct()
29 {
30 $this->initialize_hooks();
31 }
32
33 public static function get_instance()
34 {
35 if (is_null(self::$instance)) {
36 self::$instance = new self();
37 }
38 return self::$instance;
39 }
40
41 private function initialize_hooks()
42 {
43 require_once 'admin/index.php';
44 }
45 }
46 WL_ACL_FREE::get_instance();
47
48 /*** Admin Custom Login installation script */
49 register_activation_hook(__FILE__, 'ACL_WeblizarDoInstallation');
50 function ACL_WeblizarDoInstallation()
51 {
52 $plugin_data = get_plugin_data(__FILE__);
53 require_once 'installation.php';
54 }
55
56 /**
57 * @param $links
58 * @return mixed
59 */
60 function acl_links($links)
61 {
62 $acl_pro_link = '<a href="https://weblizar.com/plugins/admin-custom-login-pro/" target="_blank">' . esc_html__('Go Pro', 'admin-custom-login') . '</a>';
63 $acl_settings_link = '<a href="admin.php?page=admin_custom_login">' . esc_html__('Settings', 'admin-custom-login') . '</a>';
64 array_unshift($links, $acl_settings_link);
65 array_unshift($links, $acl_pro_link);
66 return $links;
67 }
68 $acl_plugin_name = plugin_basename(__FILE__);
69 add_filter("plugin_action_links_$acl_plugin_name", 'acl_links');
70 require_once WEBLIZAR_ACL_PLUGIN_DIR_PATH_FREE . '/init.php';
71