* @package Amimoto-dashboard
* @since 0.0.1
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
/**
* Define AMMIMOTO Dashboard plugin's common comnponents
*
* @class Amimoto_Dash_Component
* @since 0.0.1
*/
class Amimoto_Dash_Component extends Amimoto_Dash_Base {
private static $instance;
private static $text_domain;
private function __construct() {
self::$text_domain = Amimoto_Dash_Base::text_domain();
}
/**
* Get Instance Class
*
* @return Amimoto_Dash_Component
* @since 0.0.1
* @access public
*/
public static function get_instance() {
if ( ! isset( self::$instance ) ) {
$c = __CLASS__;
self::$instance = new $c();
}
return self::$instance;
}
/**
* Show AMIMOTO Dashboard Plugin admin page html
*
* @access public
* @param none
* @since 0.0.1
*/
public function show_panel_html() {
$content = $this->get_content_html();
$html = $this->get_layout_html( $content );
echo $html;
}
/**
* Create AMIMOTO Dashboard Plugin's admin page header
*
* @access private
* @param none
* @return string(HTML)
* @since 0.0.1
*/
private function _get_header() {
$html = '' . __( 'AMIMOTO Plugin Dashboard', self::$text_domain ) . '
';
$html .= '
';
$html .= '
" . __( 'AMIMOTO Cache Control', self::$text_domain ). ' | |
|---|---|
| '. __( 'Flush All CDN Cache', self::$text_domain ). ''; $html .= ' | '; $html .= ''; $html .= "'; $html .= ' | '; $html .= '
| '. __( 'Reset Nginx Cache Setting', self::$text_domain ). '';
$html .= ' ' . __( 'All Nginx Cache Expires change 30sec.', self::$text_domain ) . ' | ';
$html .= ''; $html .= "'; $html .= ' | '; $html .= '