Plugin Directory

Changeset 1349042


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

Doc changes

Location:
wp-imageengine/trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • wp-imageengine/trunk/css/imageengine.css

    r1304035 r1349042  
    1414  margin:2px;
    1515}
     16.wpie_options_container .wpie_get_key_text.bg-danger{
     17    padding: 1em;
     18    font-weight: bold;
     19}
     20
    1621@media screen and (max-width: 720px){
    1722    .wpie_options_container .panel{
  • wp-imageengine/trunk/index.php

    r1333718 r1349042  
    1414}
    1515
    16 define( 'IMGENG_VERSION', '1.2.1');
     16define( 'IMGENG_VERSION', '1.2.2');
    1717define( 'IMGENG_PATH', plugin_dir_path( __FILE__ ) );
    1818define( 'IMGENG_URL', plugin_dir_url( __FILE__ ) );
  • wp-imageengine/trunk/options.php

    r1331244 r1349042  
    6565                </div>
    6666                <h2><?php _e('Your Application Token','imageengine'); ?></h2>
    67                 <p class="wpie_get_key_text">
    68                     <?php _e('To obtain an application token,','imageengine'); ?> <a id="wpie_register_link" target="_blank" href="#"><?php _e('please register here','imageengine'); ?></a>.<!-- link href is javascript managed-->
    69                     <?php _e('Then, copy your token into the text field below','imageengine'); ?>
    70                 </p>
     67                <?php if(!empty($data['key'])): ?>
     68                    <p class="wpie_get_key_text">
     69                        <?php _e('All set! To manage your account,','imageengine'); ?> <a target="_blank" href="https://www.scientiamobile.com/myaccount"><?php _e('login here','imageengine'); ?></a>.<!-- link href is javascript managed-->
     70                    </p>
    7171                <div class="input-group">
     72                <?php else: ?>
     73                    <p class="wpie_get_key_text bg-danger">
     74                        <?php _e('To obtain an application token,','imageengine'); ?> <a id="wpie_register_link" target="_blank" href="#"><?php _e('please register here','imageengine'); ?></a>.<!-- link href is javascript managed-->
     75                        <?php _e('Then, copy your token into the text field below','imageengine'); ?>
     76                    </p>
     77                <div class="input-group has-error">
     78                <?php endif; ?>
    7279                    <span class="input-group-addon" id="sizing-addon3"><?php _e('Your Token','imageengine'); ?></span>
    7380                    <input type="text" class="form-control" placeholder="token" value="<?php echo $data['key']; ?>" name="wpie_key" aria-describedby="sizing-addon3">
     
    134141
    135142/**
     143 * Display notifivation when no key present.
     144 * @return void
     145 */
     146function my_wpie_admin_notice() {
     147    $data = get_option('wpie_options');
     148    if(empty($data['key'])){
     149        ?>
     150        <div class="notice error my_wpie_admin_notice is-dismissible" >
     151            <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>. Then, copy the token from your ImageEngine account page and paste it into the "Your token" input field before you save.', 'imageengine' ); ?></p>
     152        </div>
     153    <?php
     154    }
     155}
     156
     157add_action( 'admin_notices', 'my_wpie_admin_notice' );
     158
     159/**
    136160 * Register admin options page
    137161 * @return void
     
    144168
    145169
    146 /**
    147  * Display notifivation when no key present.
    148  * @return void
    149  */
    150 function 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 }
    160170
    161 add_action( 'admin_notices', 'my_wpie_admin_notice' );
    162 
    163 
  • wp-imageengine/trunk/readme.txt

    r1333718 r1349042  
    33Tags: images, image, performance, webperf, responsive, adaptive, adaptive-images, mobile, mobile images, optimize, optimize images, resize, resize images, responsive images, cdn, image cdn
    44Requires at least: 4.0.8
    5 Tested up to: 4.4.1
    6 Stable tag: 1.2.1
     5Tested up to: 4.4.2
     6Stable tag: 1.2.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
    99
    10 WP ImageEngine is an intelligent image CDN for optimizing, compressing, resizing and delivering images according to the screen- or viewport size of your users' device.
     10WP ImageEngine is an intelligent image CDN for optimizing, compressing, resizing and delivering images according to the screen- or viewport size.
    1111
    1212== Description ==
     
    4747== Installation ==
    4848
    49 1. Upload `plugin-name.php` to the `/wp-content/plugins/` directory
     491. Upload `wp-imageengine` forlder to the `/wp-content/plugins/` directory, or install the plugin through the WordPress plugins screen directly.
    50502. Activate the plugin through the 'Plugins' menu in WordPress
    51 3. Go to settings page and save your preferences
     513. Visit the [ScientiaMobile ImageEngine site](https://scientiamobile.com/imageengine/signup#imageengine-lite).  Create an ImageEngine Account to get your application token.
     524. Log into your ScientiaMobile account
     535. Copy your token from the Account Summary and Usage page. See [Screenshot section](https://wordpress.org/plugins/wp-imageengine/screenshots/) for more info.
     546. Go to `Settings->ImageEngine Options` in your Wordpress main menu.
     557. Paste the token into the WordPress ImageEngine Settings on the "Your Token" line.
     568. On the WordPress settings page, save your preferences.
    5257
    53 Remember [to register](https://scientiamobile.com/imageengine/signup#imageengine-lite) to get your application token.
    5458
    5559== Frequently Asked Questions ==
     
    5761= Do I need to register to use ImageEngine? =
    5862
    59 Yes, you can sign up for a free account [here](https://scientiamobile.com/imageengine/signup#imageengine-lite)
     63Yes, you can sign up for a free account [here](https://scientiamobile.com/imageengine/signup#imageengine-lite). When you register you get your unique application token.
     64
     65= Where do I get my ImageEngine token to make the Plugin work? =
     66
     67You must register and [create an account for ImageEngine at ScientiaMobile](https://scientiamobile.com/imageengine/signup#imageengine-lite).  Your token is available in on the  Account Summary and Usage page after you log into your account.  After copying the token from your account, go back and paste it into the WordPress ImageEngine Settings on the "Your Token" line. See [Screenshots section](https://wordpress.org/plugins/wp-imageengine/screenshots/) for more.
    6068
    6169= Can I test the current performance of my images somewhere? =
     
    1061142. This is the pro version and all possible settings . In this example plugin-functionality is activated.
    1071153. Shows performance improvement before and after activation of WP-ImageEngine.
     1164. When logged onto your ScientiaMobile account, find your ImageEngine Application token.
     1175. Copy and paste the Application token into the text field on the plugin settings page, and save.
    108118
    109119== Changelog ==
     120= 1.2.2 =
     121- Added more screenshots.
     122- Clarified the need for registration to optimize usage of the plugin
     123
    110124= 1.2.1 =
    111125- Minor text issues.
Note: See TracChangeset for help on using the changeset viewer.