__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Imagely\NGG\Admin;
class RequirementsNotice {
protected $_name;
protected $_data;
protected $_callback;
/**
* @param string $name
* @param callable $callback
* @param array $data
*/
public function __construct( $name, $callback, $data ) {
$this->_name = $name;
$this->_data = $data;
$this->_callback = $callback;
}
/**
* @return bool
*/
public function is_renderable() {
return true;
}
/**
* @return bool
*/
public function is_dismissable() {
return isset( $this->_data['dismissable'] ) ? $this->_data['dismissable'] : true;
}
/**
* @return string
*/
public function render() {
return $this->_data['message'];
}
/**
* @return string
*/
public function get_mvc_template() {
return 'photocrati-nextgen_admin#requirement_notice';
}
/**
* @return string
*/
public function get_name() {
return $this->_name;
}
/**
* @return bool
*/
public function run_callback() {
if ( is_callable( $this->_callback ) ) {
return call_user_func( $this->_callback );
} else {
return false;
}
}
/**
* @return string
*/
public function get_css_class() {
$prefix = 'notice notice-';
if ( $this->is_dismissable() ) {
return $prefix . 'warning';
} else {
return $prefix . 'error';
}
}
public function get_message() {
return empty( $this->_data['message'] ) ? '' : $this->_data['message'];
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Notifications | Folder | 0755 |
|
|
| Views | Folder | 0755 |
|
|
| AMNotifications.php | File | 18.81 KB | 0644 |
|
| About.php | File | 34.86 KB | 0644 |
|
| App.php | File | 21.34 KB | 0644 |
|
| Ecommerce_Preview.php | File | 1.81 KB | 0644 |
|
| FormManager.php | File | 2.29 KB | 0644 |
|
| MenuNudge.php | File | 6.98 KB | 0644 |
|
| Onboarding_Wizard.php | File | 21.4 KB | 0644 |
|
| RequirementsManager.php | File | 4.34 KB | 0644 |
|
| RequirementsNotice.php | File | 1.38 KB | 0644 |
|
| Shortcode_Preview.php | File | 6.7 KB | 0644 |
|