Changeset 3283570
- Timestamp:
- 04/28/2025 04:50:19 PM (9 months ago)
- Location:
- whmcs-modal-login
- Files:
-
- 27 added
- 93 edited
-
. (modified) (1 prop)
-
assets (modified) (1 prop)
-
tags (modified) (1 prop)
-
tags/1.0.0 (modified) (1 prop)
-
tags/1.0.0/.git (modified) (1 prop)
-
tags/1.0.0/.git/hooks (modified) (1 prop)
-
tags/1.0.0/.git/info (modified) (1 prop)
-
tags/1.0.0/.git/logs (modified) (1 prop)
-
tags/1.0.0/.git/logs/refs (modified) (1 prop)
-
tags/1.0.0/.git/logs/refs/heads (modified) (1 prop)
-
tags/1.0.0/.git/logs/refs/remotes (modified) (1 prop)
-
tags/1.0.0/.git/logs/refs/remotes/origin (modified) (1 prop)
-
tags/1.0.0/.git/objects (modified) (1 prop)
-
tags/1.0.0/.git/objects/0c (modified) (1 prop)
-
tags/1.0.0/.git/objects/2a (modified) (1 prop)
-
tags/1.0.0/.git/objects/2f (modified) (1 prop)
-
tags/1.0.0/.git/objects/4b (modified) (1 prop)
-
tags/1.0.0/.git/objects/50 (modified) (1 prop)
-
tags/1.0.0/.git/objects/53 (modified) (1 prop)
-
tags/1.0.0/.git/objects/55 (modified) (1 prop)
-
tags/1.0.0/.git/objects/58 (modified) (1 prop)
-
tags/1.0.0/.git/objects/65 (modified) (1 prop)
-
tags/1.0.0/.git/objects/6d (modified) (1 prop)
-
tags/1.0.0/.git/objects/81 (modified) (1 prop)
-
tags/1.0.0/.git/objects/a5 (modified) (1 prop)
-
tags/1.0.0/.git/objects/ac (modified) (1 prop)
-
tags/1.0.0/.git/objects/b4 (modified) (1 prop)
-
tags/1.0.0/.git/objects/bd (modified) (1 prop)
-
tags/1.0.0/.git/objects/d1 (modified) (1 prop)
-
tags/1.0.0/.git/objects/info (modified) (1 prop)
-
tags/1.0.0/.git/objects/pack (modified) (1 prop)
-
tags/1.0.0/.git/refs (modified) (1 prop)
-
tags/1.0.0/.git/refs/heads (modified) (1 prop)
-
tags/1.0.0/.git/refs/remotes (modified) (1 prop)
-
tags/1.0.0/.git/refs/remotes/origin (modified) (1 prop)
-
tags/1.0.0/.git/refs/tags (modified) (1 prop)
-
tags/1.0.0/assets (modified) (1 prop)
-
tags/1.0.0/assets/css (modified) (1 prop)
-
tags/1.0.0/assets/img (modified) (1 prop)
-
tags/1.0.0/assets/js (modified) (1 prop)
-
tags/1.0.0/inc (modified) (1 prop)
-
tags/1.0.0/languages (modified) (1 prop)
-
tags/1.0.1 (modified) (1 prop)
-
tags/1.0.1/assets (modified) (1 prop)
-
tags/1.0.1/assets/css (modified) (1 prop)
-
tags/1.0.1/assets/img (modified) (1 prop)
-
tags/1.0.1/assets/js (modified) (1 prop)
-
tags/1.0.1/inc (modified) (1 prop)
-
tags/1.0.1/languages (modified) (1 prop)
-
tags/1.1.0 (added)
-
tags/1.1.0/LICENSE (added)
-
tags/1.1.0/README.txt (added)
-
tags/1.1.0/assets (added)
-
tags/1.1.0/assets/css (added)
-
tags/1.1.0/assets/css/whmcs-modal-login.css (added)
-
tags/1.1.0/assets/img (added)
-
tags/1.1.0/assets/img/info.png (added)
-
tags/1.1.0/assets/img/logo-azul.svg (added)
-
tags/1.1.0/assets/js (added)
-
tags/1.1.0/assets/js/whmcs-modal-login.js (added)
-
tags/1.1.0/inc (added)
-
tags/1.1.0/inc/whmcs-admin.php (added)
-
tags/1.1.0/index.php (added)
-
tags/1.1.0/languages (added)
-
tags/1.1.0/languages/whmcs-modal-login-es_CO.mo (added)
-
tags/1.1.0/languages/whmcs-modal-login-es_CO.po (added)
-
tags/1.1.0/languages/whmcs-modal-login-es_ES.mo (added)
-
tags/1.1.0/languages/whmcs-modal-login-es_ES.po (added)
-
tags/1.1.0/languages/whmcs-modal-login.pot (added)
-
tags/1.1.0/uninstall.php (added)
-
tags/1.1.0/whmcs-modal-login.php (added)
-
trunk (modified) (1 prop)
-
trunk/.git (modified) (1 prop)
-
trunk/.git/hooks (modified) (1 prop)
-
trunk/.git/index (modified) (previous)
-
trunk/.git/info (modified) (1 prop)
-
trunk/.git/logs (modified) (1 prop)
-
trunk/.git/logs/refs (modified) (1 prop)
-
trunk/.git/logs/refs/heads (modified) (1 prop)
-
trunk/.git/logs/refs/remotes (modified) (1 prop)
-
trunk/.git/logs/refs/remotes/origin (modified) (1 prop)
-
trunk/.git/objects (modified) (1 prop)
-
trunk/.git/objects/0c (modified) (1 prop)
-
trunk/.git/objects/2a (modified) (1 prop)
-
trunk/.git/objects/2f (modified) (1 prop)
-
trunk/.git/objects/4b (modified) (1 prop)
-
trunk/.git/objects/50 (modified) (1 prop)
-
trunk/.git/objects/53 (modified) (1 prop)
-
trunk/.git/objects/55 (modified) (1 prop)
-
trunk/.git/objects/58 (modified) (1 prop)
-
trunk/.git/objects/65 (modified) (1 prop)
-
trunk/.git/objects/6d (modified) (1 prop)
-
trunk/.git/objects/81 (modified) (1 prop)
-
trunk/.git/objects/a5 (modified) (1 prop)
-
trunk/.git/objects/ac (modified) (1 prop)
-
trunk/.git/objects/b4 (modified) (1 prop)
-
trunk/.git/objects/bd (modified) (1 prop)
-
trunk/.git/objects/d1 (modified) (1 prop)
-
trunk/.git/objects/info (modified) (1 prop)
-
trunk/.git/objects/pack (modified) (1 prop)
-
trunk/.git/refs (modified) (1 prop)
-
trunk/.git/refs/heads (modified) (1 prop)
-
trunk/.git/refs/remotes (modified) (1 prop)
-
trunk/.git/refs/remotes/origin (modified) (1 prop)
-
trunk/.git/refs/tags (modified) (1 prop)
-
trunk/README.txt (modified) (4 diffs)
-
trunk/assets (modified) (1 prop)
-
trunk/assets/css (modified) (1 prop)
-
trunk/assets/img (modified) (1 prop)
-
trunk/assets/js (modified) (1 prop)
-
trunk/assets/js/whmcs-modal-login.js (modified) (3 diffs)
-
trunk/inc (modified) (1 prop)
-
trunk/inc/whmcs-admin.php (modified) (22 diffs)
-
trunk/languages (modified) (1 prop)
-
trunk/languages/whmcs-modal-login-es_CO.mo (added)
-
trunk/languages/whmcs-modal-login-es_CO.po (added)
-
trunk/languages/whmcs-modal-login-es_ES.mo (added)
-
trunk/languages/whmcs-modal-login-es_ES.po (added)
-
trunk/languages/whmcs-modal-login.pot (added)
-
trunk/whmcs-modal-login.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
whmcs-modal-login
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/assets
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/.git
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/.git/hooks
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/.git/info
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/.git/logs
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/.git/logs/refs
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/.git/logs/refs/heads
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/.git/logs/refs/remotes
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/.git/logs/refs/remotes/origin
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/.git/objects
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/.git/objects/0c
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/.git/objects/2a
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/.git/objects/2f
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/.git/objects/4b
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/.git/objects/50
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/.git/objects/53
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/.git/objects/55
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/.git/objects/58
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/.git/objects/65
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/.git/objects/6d
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/.git/objects/81
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/.git/objects/a5
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/.git/objects/ac
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/.git/objects/b4
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/.git/objects/bd
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/.git/objects/d1
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/.git/objects/info
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/.git/objects/pack
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/.git/refs
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/.git/refs/heads
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/.git/refs/remotes
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/.git/refs/remotes/origin
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/.git/refs/tags
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/assets
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/assets/css
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/assets/img
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/assets/js
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/inc
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.0/languages
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.1
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.1/assets
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.1/assets/css
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.1/assets/img
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.1/assets/js
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.1/inc
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/tags/1.0.1/languages
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/.git
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/.git/hooks
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/.git/info
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/.git/logs
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/.git/logs/refs
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/.git/logs/refs/heads
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/.git/logs/refs/remotes
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/.git/logs/refs/remotes/origin
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/.git/objects
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/.git/objects/0c
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/.git/objects/2a
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/.git/objects/2f
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/.git/objects/4b
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/.git/objects/50
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/.git/objects/53
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/.git/objects/55
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/.git/objects/58
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/.git/objects/65
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/.git/objects/6d
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/.git/objects/81
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/.git/objects/a5
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/.git/objects/ac
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/.git/objects/b4
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/.git/objects/bd
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/.git/objects/d1
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/.git/objects/info
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/.git/objects/pack
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/.git/refs
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/.git/refs/heads
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/.git/refs/remotes
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/.git/refs/remotes/origin
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/.git/refs/tags
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/README.txt
r3283492 r3283570 5 5 Requires at least: 5.0 6 6 Tested up to: 6.8 7 Stable tag: 1. 0.17 Stable tag: 1.1.0 8 8 Requires PHP: 5.6 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html 11 11 WHMCS Modal Login - Custom Menu Item Section 12 12 13 13 == Description == 14 14 15 WHMCS Login Modalallows you to easily create a modal box that displays for WHMCS login form. It automatically adds a menu item to the end of the selected menu that will open the login modal box.15 WHMCS Modal Login allows you to easily create a modal box that displays for WHMCS login form. It automatically adds a menu item to the end of the selected menu that will open the login modal box. 16 16 17 17 Alternatively, you can also use the included shortcode to add the modal login box in any place of the web. … … 32 32 === From within WordPress === 33 33 1. Visit 'Plugins > Add New' 34 2. Search for 'WHMCS Login Modal'34 2. Search for 'WHMCS Modal Login' 35 35 3. Activate WHMCS Modal Login from your Plugins page. 36 36 … … 44 44 = Where can I modify WHMCS Modal Login settings? = 45 45 46 You can find the settings page on WordPress left sidebar under WHMCS Modal Login. 46 You can find the settings page on WordPress left sidebar under WHMCS Modal Login. 47 47 48 48 = Can I use WHMCS Modal Login with any theme? = … … 51 51 52 52 == Changelog == 53 = 1.1.0 = 54 * Add support lenguages 53 55 = 1.0.1 = 54 56 * WordPress 6.8 Support Declared -
whmcs-modal-login/trunk/assets
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/assets/css
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/assets/img
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/assets/js
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/assets/js/whmcs-modal-login.js
r2747245 r3283570 1 1 document.addEventListener('DOMContentLoaded', function () { 2 2 var modal = document.getElementById('WMLlogin'); 3 function openLoginModal () { 3 function openLoginModal () { 4 4 modal.style.display = 'block'; 5 5 } 6 6 7 7 var hash = window.location.hash; 8 8 if (hash.substring(1) == 'login') { 9 9 modal.style.display = 'block'; 10 10 } 11 11 12 12 var whmcslogin = document.querySelectorAll('.whmcsmlogin'); 13 13 var alogin = document.querySelectorAll('.alogin'); 14 var clogin = document.querySelectorAll('.login-modal-close')[0]; 15 14 var clogin = document.querySelectorAll('.login-modal-close')[0]; 15 16 16 for (const shortlogin of alogin) { 17 17 18 18 if (typeof(shortlogin) != 'undefined' && shortlogin != null) { 19 19 shortlogin.addEventListener('click', function(e) { 20 e.preventDefault(); 20 e.preventDefault(); 21 21 if (typeof(modal) != 'undefined' && modal != null) { 22 22 modal.style.display = 'block'; … … 25 25 } 26 26 } 27 27 28 28 if (typeof(clogin) != 'undefined' && clogin != null) { 29 29 clogin.addEventListener('click', function(e) { 30 e.preventDefault(); 30 e.preventDefault(); 31 31 modal.style.display = 'none'; 32 32 }); 33 33 } 34 34 35 35 for (const menulogin of whmcslogin) { 36 36 37 37 if (typeof(menulogin) != 'undefined' && menulogin != null) { 38 38 menulogin.addEventListener('click', function(e) { 39 e.preventDefault(); 39 e.preventDefault(); 40 40 if (typeof(modal) != 'undefined' && modal != null) { 41 41 modal.style.display = 'block'; … … 44 44 } 45 45 } 46 46 47 47 document.addEventListener('click', function(e) { 48 48 if(e.target == modal && e.target!=alogin) { 49 49 modal.style.display = 'none'; 50 }51 }); 50 } 51 }); 52 52 }); -
whmcs-modal-login/trunk/inc
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/inc/whmcs-admin.php
r2747245 r3283570 3 3 * 4 4 * @link https://www.quecodigo.com 5 * @since 1. 0.05 * @since 1.1.0 6 6 * 7 7 * @package whmcs_Login … … 26 26 ); 27 27 28 $settings_link = "<a href='$url'>" . __( 'Settings' ) . '</a>';28 $settings_link = "<a href='$url'>" . __( 'Settings', 'whmcs-modal-login' ) . '</a>'; 29 29 array_push( 30 30 $links, … … 39 39 function whmcs_ml_parent_page() { 40 40 //Page title 41 $page_title = esc_html__( 'WHMCS Modal Login - Qué Código', 'whmcs-m l' );41 $page_title = esc_html__( 'WHMCS Modal Login - Qué Código', 'whmcs-modal-login' ); 42 42 //Menu section title 43 43 //$warning_count = get_option( 'quecodig_warnings' ); 44 44 $warning_count = 0; 45 $menu_title = esc_html__( 'WHMCS Modal Login', 'whmcs-m l' );45 $menu_title = esc_html__( 'WHMCS Modal Login', 'whmcs-modal-login' ); 46 46 //User compatibility 47 47 $capability = 'edit_posts'; … … 51 51 $function = __NAMESPACE__ . '\whmcs_ml_main_menu_settings'; 52 52 // Icon url 53 $icon_url = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAxOS45Ij48ZGVmcz48c3R5bGU+LmNscy0xe2lzb2xhdGlvbjppc29sYXRlO30uY2xzLTJ7ZmlsbDojZmZmO29wYWNpdHk6MC43O30uY2xzLTMsLmNscy00e2ZpbGw6I2VlZTt9LmNscy00e29wYWNpdHk6MC4xMTttaXgtYmxlbmQtbW9kZTpkaWZmZXJlbmNlO308L3N0eWxlPjwvZGVmcz48dGl0bGU+UmVjdXJzbyAxPC90aXRsZT48ZyBjbGFzcz0iY2xzLTEiPjxnIGlkPSJDYXBhXzIiIGRhdGEtbmFtZT0iQ2FwYSAyIj48ZyBpZD0iQ2FwYV8xLTIiIGRhdGEtbmFtZT0iQ2FwYSAxIj48cGF0aCBjbGFzcz0i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76 76 <h2> 77 <?php esc_html_e( 'WHMCS Modal Login', 'whmcs-m l' ); ?>77 <?php esc_html_e( 'WHMCS Modal Login', 'whmcs-modal-login' ); ?> 78 78 </h2> 79 <a href="https://www.quecodigo.com" target="_blank"><img src="<?php echo plugins_url( 'assets/img/logo-azul.svg', WHMCS_PLUGIN_FILE); ?>" width="100" class="logo-whmcs"></a> 79 <a href="https://www.quecodigo.com" target="_blank"> 80 <img src="<?php echo esc_url( plugins_url( 'assets/img/logo-azul.svg', WHMCS_PLUGIN_FILE ) ); ?>" width="100" class="logo-whmcs" alt="<?php esc_attr_e( 'WHMCS Logo', 'whmcs-modal-login' ); ?>"> 81 </a> 80 82 <form action="options.php" method="post" class="whmcs-form"> 81 83 … … 88 90 <div class="whmcs-info"> 89 91 <p> 90 <?php echo nl2br( esc_html__( 'You can also use the login modal window anywhere on the website using the shortcode [whmcs-login] Custom text [/whmcs-login]', 'whmcs-m l' ) ); ?>92 <?php echo nl2br( esc_html__( 'You can also use the login modal window anywhere on the website using the shortcode [whmcs-login] Custom text [/whmcs-login]', 'whmcs-modal-login' ) ); ?> 91 93 </p> 92 94 </div> … … 107 109 'whmcs_ml_settings', 108 110 array( 109 'loginmenulabel' => esc_html__( 'Login', 'whmcs-m l' ),110 'logoutmenulabel' => esc_html__( 'Logout', 'whmcs-m l' ),111 'loginmenulabel' => esc_html__( 'Login', 'whmcs-modal-login' ), 112 'logoutmenulabel' => esc_html__( 'Logout', 'whmcs-modal-login' ), 111 113 'position' => '', 112 114 ) … … 115 117 add_settings_field( 116 118 'whmcs_ml_field_showpass', 117 esc_html__( 'Display Lost Password option', 'whmcs-m l' ),119 esc_html__( 'Display Lost Password option', 'whmcs-modal-login' ), 118 120 __NAMESPACE__ . '\whmcs_ml_fields_callback', 119 121 WHMCS_SLUG, … … 128 130 add_settings_field( 129 131 'whmcs_ml_field_tit', 130 esc_html__( 'Header title', 'whmcs-m l' ),132 esc_html__( 'Header title', 'whmcs-modal-login' ), 131 133 __NAMESPACE__ . '\whmcs_ml_fields_callback', 132 134 WHMCS_SLUG, … … 137 139 'type' => 'textbox', 138 140 'placeholder' => 'Login Form', 139 'description' => esc_html__( 'Title text displayed before the login form (you can leave it empty)', 'whmcs-m l' ),141 'description' => esc_html__( 'Title text displayed before the login form (you can leave it empty)', 'whmcs-modal-login' ), 140 142 ) 141 143 ); … … 143 145 add_settings_field( 144 146 'whmcs_ml_login_label', 145 esc_html__( 'Login menu label', 'whmcs-m l' ),147 esc_html__( 'Login menu label', 'whmcs-modal-login' ), 146 148 __NAMESPACE__ . '\whmcs_ml_fields_callback', 147 149 WHMCS_SLUG, … … 151 153 'value' => @$settings['loginmenulabel'], 152 154 'type' => 'textbox', 153 'placeholder' => esc_html__( 'Login', 'whmcs-m l' ),154 'description' => esc_html__( 'Menu label for login option', 'whmcs-m l' ),155 'placeholder' => esc_html__( 'Login', 'whmcs-modal-login' ), 156 'description' => esc_html__( 'Menu label for login option', 'whmcs-modal-login' ), 155 157 ) 156 158 ); … … 160 162 add_settings_field( 161 163 'whmcs_ml_field_position', 162 esc_html__( 'Select a menu to add login item', 'whmcs-m l' ),164 esc_html__( 'Select a menu to add login item', 'whmcs-modal-login' ), 163 165 __NAMESPACE__ . '\whmcs_ml_fields_callback', 164 166 WHMCS_SLUG, … … 169 171 'type' => 'select', 170 172 'options' => $options, 171 'description' => esc_html__( 'Hold Ctrl or Cmd key to select more than one menu', 'whmcs-m l' ),173 'description' => esc_html__( 'Hold Ctrl or Cmd key to select more than one menu', 'whmcs-modal-login' ), 172 174 ) 173 175 ); … … 175 177 add_settings_field( 176 178 'whmcs_ml_field_loginurl', 177 esc_html__( 'WHMCS URL', 'whmcs-m l' ),179 esc_html__( 'WHMCS URL', 'whmcs-modal-login' ), 178 180 __NAMESPACE__ . '\whmcs_ml_fields_callback', 179 181 WHMCS_SLUG, … … 183 185 'value' => @$settings['loginurl'], 184 186 'type' => 'textbox', 185 'description' => esc_html__( 'WHMCS URL ejm: https://www.domain.com/whmcs', 'whmcs-m l' ),187 'description' => esc_html__( 'WHMCS URL ejm: https://www.domain.com/whmcs', 'whmcs-modal-login' ), 186 188 'placeholder' => 'Url to WHMCS', 187 189 ) … … 190 192 add_settings_field( 191 193 'whmcs_ml_field_register', 192 esc_html__( 'Display Register link', 'whmcs-m l' ),194 esc_html__( 'Display Register link', 'whmcs-modal-login' ), 193 195 __NAMESPACE__ . '\whmcs_ml_fields_callback', 194 196 WHMCS_SLUG, … … 204 206 add_settings_field( 205 207 'whmcs_ml_field_registerurl', 206 esc_html__( 'Register link URL', 'whmcs-m l' ),208 esc_html__( 'Register link URL', 'whmcs-modal-login' ), 207 209 __NAMESPACE__ . '\whmcs_ml_fields_callback', 208 210 WHMCS_SLUG, … … 218 220 add_settings_field( 219 221 'whmcs_ml_field_registertext', 220 esc_html__( 'Register link text', 'whmcs-m l' ),222 esc_html__( 'Register link text', 'whmcs-modal-login' ), 221 223 __NAMESPACE__ . '\whmcs_ml_fields_callback', 222 224 WHMCS_SLUG, … … 251 253 252 254 function whmcs_ml_section_callback() { 253 echo nl2br( esc_html__( 'The plugin creates a Login item at the end of the selected menu.', 'whmcs-m l' ) );254 echo nl2br( esc_html__( 'On this page you can set the options for the modal login screen.', 'whmcs-m l' ) );255 echo nl2br( esc_html__( 'The plugin creates a Login item at the end of the selected menu.', 'whmcs-modal-login' ) ); 256 echo nl2br( esc_html__( 'On this page you can set the options for the modal login screen.', 'whmcs-modal-login' ) ); 255 257 } 256 258 … … 265 267 ?> 266 268 <select multiple name="<?php echo esc_attr( $args['name'] ); ?>"> 267 <option value=''><?php echo esc_html__( 'None', 'whmcs-m l' ); ?></option>269 <option value=''><?php echo esc_html__( 'None', 'whmcs-modal-login' ); ?></option> 268 270 <?php 269 271 $options = $args['options']; … … 283 285 echo '<input type="text" name="' . esc_attr( $args['name'] ) . '" value="' . esc_attr( $args['value'] ) . '" placeholder="' . esc_attr( $args['placeholder'] ) . '" size="60">'; 284 286 break; 285 endswitch;287 endswitch; 286 288 287 289 if ( ! empty( $args['description'] ) ) : -
whmcs-modal-login/trunk/languages
-
Property
svn:ignore
set to
.DS_Store
-
Property
svn:ignore
set to
-
whmcs-modal-login/trunk/whmcs-modal-login.php
r3283480 r3283570 5 5 * Plugin Name: WHMCS Modal Login 6 6 * Donate link: https://www.paypal.me/quecodig 7 * Description: WHMCS Login Modalallows you to easily create a modal box that displays for WHMCS login form. It automatically adds a menu item to the end of the selected menu that will open the login modal box.8 * Version: 1. 0.17 * Description: WHMCS Modal Login allows you to easily create a modal box that displays for WHMCS login form. It automatically adds a menu item to the end of the selected menu that will open the login modal box. 8 * Version: 1.1.0 9 9 * Author: Qué Código 10 10 * Requires PHP: 5.6 11 * Requires at least: 4.011 * Requires at least: 5.0 12 12 * Tested up to: 6.8 13 * stable tag: 1.1.0 13 14 * Author URI: https://www.quecodigo.com 14 15 * License: GPL-2.0+ 15 16 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt 16 * Text Domain: WHMCS-ml17 * Text Domain: whmcs-modal-login 17 18 * Domain Path: /languages 18 19 */ … … 40 41 } 41 42 42 define( 'WHMCS_ML_VERSION', '1. 0.0' );43 define( 'WHMCS_ML_VERSION', '1.1.0' ); 43 44 44 45 /** … … 52 53 53 54 function whmcs_ml_load_textdomain() { 54 load_plugin_textdomain( 'whmcs-m l', false, basename( __DIR__ ) . '/languages' );55 load_plugin_textdomain( 'whmcs-modal-login', false, basename( __DIR__ ) . '/languages' ); 55 56 } 56 57 … … 58 59 59 60 function whmcs_ml_styles() { 60 wp_enqueue_style( 'whmcs-m l-style', plugins_url('/assets/css/whmcs-modal-login.css', WHMCS_PLUGIN_FILE), WHMCS_ML_VERSION, true );61 wp_enqueue_style( 'whmcs-modal-login-style', plugins_url('/assets/css/whmcs-modal-login.css', WHMCS_PLUGIN_FILE), WHMCS_ML_VERSION, true ); 61 62 } 62 63 … … 65 66 66 67 function whmcs_ml_scripts() { 67 wp_enqueue_script( 'whmcs-m l-script', plugins_url('/assets/js/whmcs-modal-login.js', WHMCS_PLUGIN_FILE), '', WHMCS_ML_VERSION, true );68 wp_enqueue_script( 'whmcs-modal-login-script', plugins_url('/assets/js/whmcs-modal-login.js', WHMCS_PLUGIN_FILE), '', WHMCS_ML_VERSION, true ); 68 69 } 69 70 … … 105 106 106 107 if ( $lostpassword ) { 107 $form .= '<p class="login-forgot"><a href="'. $login_url.'/index.php?rp=/password/reset">' . esc_html__( 'Lost your password?' ) . '</a></p>';108 $form .= '<p class="login-forgot"><a href="'.esc_url($login_url).'/index.php?rp=/password/reset">' . esc_html__( 'Lost your password?', 'whmcs-modal-login' ) . '</a></p>'; 108 109 } 109 110 … … 118 119 <span class="login-modal-close"></span> 119 120 <h4><?php echo esc_html( $title ); ?></h4> 120 <form action="<?php echo esc_ html($login_url); ?>dologin.php">121 <p class="login-username">122 <label for="user_login">Nombre de usuario o dirección de correo</label>123 <input type="text" name="username" id="user_login" class="input form-control" size="20">124 </p>125 <p class="login-password">126 <label for="user_pass">Contraseña</label>127 <input type="password" name="password" id="user_pass" class="input form-control" size="20">128 </p>129 <p class="login-submit">130 <input type="submit" name="wp-submit" id="wp-submit" class="btn btn-primary-color black-hover submitwpcf7-form-control" value="Acceder">131 <input type="hidden" name="redirect_to" value="<?php echo esc_html( $login_url ); ?>">132 </p>121 <form action="<?php echo esc_url( $login_url ); ?>dologin.php"> 122 <p class="login-username"> 123 <label for="user_login"><?php echo esc_html__( "Username or email login", "whmcs-modal-login" ); ?></label> 124 <input type="text" name="username" id="user_login" class="input form-control" size="20"> 125 </p> 126 <p class="login-password"> 127 <label for="user_pass"><?php echo esc_html__( "Password", "whmcs-modal-login" ); ?></label> 128 <input type="password" name="password" id="user_pass" class="input form-control" size="20"> 129 </p> 130 <p class="login-submit"> 131 <input type="submit" name="wp-submit" id="wp-submit" class="btn btn-primary-color black-hover submitwpcf7-form-control" value="<?php echo esc_html__( "Login", "whmcs-modal-login" ); ?>"> 132 <input type="hidden" name="redirect_to" value="<?php echo esc_url( $login_url ); ?>"> 133 </p> 133 134 </form> 134 135 <?php echo esc_html($form); ?>
Note: See TracChangeset
for help on using the changeset viewer.