Plugin Directory

Changeset 1859058


Ignore:
Timestamp:
04/16/2018 12:26:08 PM (8 years ago)
Author:
octify
Message:

Update the plugin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • octify/trunk/Octify.php

    r1846576 r1859058  
    44 * Plugin URI: https://octify.io
    55 * Description: Octify Image Compression for WordPress.
    6  * Version: 1.1.0
     6 * Version: 1.1.1
    77 * Author: Octify
    88 * Author URI: https://octify.io
     
    553553
    554554    public function adminMenu() {
     555        $svg = file_get_contents( $this->plugin_path . 'assets/octify-character-dashicon.svg' );
     556        $svg = 'data:image/svg+xml;base64,' . base64_encode( $svg );
     557
    555558        if ( \Octify\Libs\OctifyApi::getLicense() == false ) {
    556             add_media_page( __( "Octify", $this->domain ), __( "Octify", $this->domain ), 'manage_options', 'octify', array(
     559            add_menu_page( __( "Octify", $this->domain ), __( "Octify", $this->domain ), 'manage_options', 'octify', array(
    557560                &$this,
    558561                'activator'
    559             ) );
    560         } else {
    561             add_media_page( __( "Octify", $this->domain ), __( "Octify", $this->domain ), 'manage_options', 'octify', array(
     562            ), $svg );
     563        } else {
     564            add_menu_page( __( "Octify", $this->domain ), __( "Octify", $this->domain ), 'manage_options', 'octify', array(
    562565                &$this,
    563566                'showDashboard'
    564             ) );
     567            ), $svg );
    565568        }
    566569    }
Note: See TracChangeset for help on using the changeset viewer.