mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
2ce33098b5
- phpDoc;
38 lines
554 B
PHP
38 lines
554 B
PHP
<?php
|
|
namespace um\core;
|
|
|
|
// Exit if accessed directly
|
|
if ( ! defined( 'ABSPATH' ) ) exit;
|
|
|
|
if ( ! class_exists( 'Modal' ) ) {
|
|
|
|
|
|
/**
|
|
* Class Modal
|
|
* @package um\core
|
|
*/
|
|
class Modal {
|
|
|
|
|
|
/**
|
|
* 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;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
} |