mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-13 19:56:27 +09:00
- fixed user registration;
- phpDoc;
This commit is contained in:
@@ -5,25 +5,34 @@ namespace um\core;
|
||||
if ( ! defined( 'ABSPATH' ) ) exit;
|
||||
|
||||
if ( ! class_exists( 'Modal' ) ) {
|
||||
class Modal {
|
||||
|
||||
function __construct() {
|
||||
|
||||
add_action('wp_footer', array(&$this, 'load_modal_content'), 9);
|
||||
/**
|
||||
* Class Modal
|
||||
* @package um\core
|
||||
*/
|
||||
class Modal {
|
||||
|
||||
}
|
||||
|
||||
/***
|
||||
*** @Load modal content
|
||||
***/
|
||||
function load_modal_content(){
|
||||
if ( !is_admin() ) {
|
||||
foreach( glob( um_path . 'templates/modal/*.php' ) as $modal_content) {
|
||||
include_once $modal_content;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Modal constructor.
|
||||
*/
|
||||
function __construct() {
|
||||
add_action('wp_footer', array(&$this, 'load_modal_content'), 9);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
/**
|
||||
* Load modal content
|
||||
*/
|
||||
function load_modal_content(){
|
||||
if ( !is_admin() ) {
|
||||
foreach( glob( um_path . 'templates/modal/*.php' ) as $modal_content) {
|
||||
include_once $modal_content;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user