Plugin Directory

Changeset 1331244


Ignore:
Timestamp:
01/19/2016 12:01:43 PM (10 years ago)
Author:
ScientiaMobile
Message:

Text changes, added admin notice, better screenshots

Location:
wp-imageengine/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • wp-imageengine/trunk/index.php

    r1304035 r1331244  
    44 * Plugin URI: http://www.scientiamobile.com/page/WP-ImageEngine
    55 * Description: WP ImageEngine is an intelligent image CDN for optimizing, compressing and resizing images. ImageEngine will enhance your responsive images by enabling support for HTTP/2, automatic webp conversion and Client Hints. For improved performance and reduced image byte size for mobile devices, WURFL by ScientiaMobile, is used.
    6  * Version: 1.0
     6 * Version: 1.0.1
    77 * Author: ScientiaMobile
    88 * Author URI: http://www.scientiamobile.com/about
     
    1414}
    1515
    16 define( 'IMGENG_VERSION', '1.0');
     16define( 'IMGENG_VERSION', '1.0.1');
    1717define( 'IMGENG_PATH', plugin_dir_path( __FILE__ ) );
    1818define( 'IMGENG_URL', plugin_dir_url( __FILE__ ) );
  • wp-imageengine/trunk/options.php

    r1306054 r1331244  
    143143add_action('admin_menu', 'wpie_options_add_options_page');
    144144
     145
     146/**
     147 * Display notifivation when no key present.
     148 * @return void
     149 */
     150function my_wpie_admin_notice() {
     151    $data = get_option('wpie_options');
     152    if(empty($data['key'])){
     153        ?>
     154        <div class="notice error my_wpie_admin_notice is-dismissible" >
     155            <p><?php _e( '<a href="options-general.php?page=wpie-options-page">ImageEngine Alert</a>: Application Token missing. You need to <a href="'.IMGENG_LITE_REGISTRATION_URL.'">register to get an application token</a>.', 'imageengine' ); ?></p>
     156        </div>
     157    <?php
     158    }
     159}
     160
     161add_action( 'admin_notices', 'my_wpie_admin_notice' );
     162
     163
  • wp-imageengine/trunk/readme.txt

    r1306054 r1331244  
    8585= 1.0 =
    8686First version.
     87
     88= 1.0.1 =
     89Text changes and admin notification.
Note: See TracChangeset for help on using the changeset viewer.