Plugin Directory


Ignore:
Timestamp:
04/28/2020 02:28:16 PM (5 years ago)
Author:
tschutter
Message:

trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • codepress-admin-columns/trunk/classes/Message/Notice.php

    r1970341r2293580 
    44
    55use AC\Message;
     6use AC\Registrable;
    67use AC\View;
    78
    8 class Notice extends Message {
     9class Notice extends Message implements Registrable {
    910
    1011    public function render() {
    11         $data = array(
     12        $data = [
    1213            'message' => $this->message,
    1314            'type'    => $this->type,
    1415            'id'      => $this->id,
    15         );
     16        ];
    1617
    1718        $view = new View( $data );
    โ€ฆโ€ฆ 
    2627        }
    2728
    28         add_action( 'admin_notices', array( $this, 'display' ) );
    29         add_action( 'network_admin_notices', array( $this, 'display' ) );
    30         add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
     29        add_action( 'admin_notices', [ $this, 'display' ] );
     30        add_action( 'network_admin_notices', [ $this, 'display' ] );
     31        add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_scripts' ] );
    3132    }
    3233
    โ€ฆโ€ฆ 
    3536     */
    3637    public function enqueue_scripts() {
    37         wp_enqueue_style( 'ac-message', AC()->get_url() . 'assets/css/notice.css', array(), AC()->get_version() );
     38        wp_enqueue_style( 'ac-message', AC()->get_url() . 'assets/css/notice.css', [], AC()->get_version() );
    3839    }
    3940
Note: See TracChangeset for help on using the changeset viewer.