WordPress.org

Plugin Directory


Ignore:
Timestamp:
12/18/17 11:35:02 (5 weeks ago)
Author:
hideokamoto
Message:

update v0.5.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • amimoto-dashboard/trunk/module/view/admin.php

    r1460539 r1788721  
    7878     */ 
    7979    private function _get_amimoto_plugin_list() { 
     80        $is_amimoto_managed = $this->is_amimoto_managed(); 
    8081        $plugins = array(); 
    8182        foreach ( $this->amimoto_plugins as $plugin_name => $plugin_url ) { 
     83            if ( $is_amimoto_managed ) { 
     84                if ( 
     85                    $plugin_name === 'C3 Cloudfront Cache Controller' || 
     86                    $plugin_name === 'Nginx Cache Controller on GitHub' || 
     87                    $plugin_name === 'Nginx Cache Controller on WP.org' 
     88                ) { 
     89                    continue; 
     90                } 
     91            } 
    8292            $plugin_file_path = path_join( ABSPATH . 'wp-content/plugins', $plugin_url ); 
    8393            if ( ! file_exists( $plugin_file_path ) ) { 
     
    106116        $active_plugin_urls = $this->_get_activated_plugin_list(); 
    107117        $html .= "<table class='wp-list-table widefat plugins'>"; 
     118        $html .= '<thead>'; 
     119        $html .= "<tr><th colspan='2'><h2>" . __( 'AMIMOTO support plugins', self::$text_domain ). '</h2></th></tr>'; 
     120        $html .= '</thead>'; 
    108121        $html .= '<tbody>'; 
    109122        foreach ( $plugins as $plugin_url => $plugin ) { 
     
    288301    public function get_content_html() { 
    289302        $html = ''; 
     303        if ( $this->is_amimoto_managed() ) { 
     304            $html .= $this->_get_amimoto_managed_cache_control_form(); 
     305            $html .= '<hr/>'; 
     306        } 
    290307        $html .= $this->_get_amimoto_plugin_html(); 
    291308        return $html; 
Note: See TracChangeset for help on using the changeset viewer.