* @package Amimoto-dashboard * @since 0.0.1 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } /** * Amimoto Plugin Dashboard admin page to set-up CloudFront * * @class Amimoto_Dash_Cloudfront * @since 0.0.1 */ class Amimoto_Dash_Cloudfront extends Amimoto_Dash_Component { private static $instance; private static $text_domain; private function __construct() { self::$text_domain = Amimoto_Dash_Base::text_domain(); } /** * Get Instance Class * * @return Amimoto_Dash_Cloudfront * @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 admin page html * * @access public * @param none * @return none * @since 0.0.1 */ public function init_panel() { $this->show_panel_html(); } /** * Get admin page html content * * @access public * @param none * @return string(HTML) * @since 0.0.1 */ public function get_content_html() { $html = ''; if ( $this->is_amimoto_managed() ) { $html .= $this->_get_amimoto_managed_cache_control_form(); } else { $html .= $this->_get_cf_invalidation_form(); $html .= $this->_get_cf_setting_form(); if ( $this->is_activated_ncc() ) { $html .= '