Changeset 1349042
- Timestamp:
- 02/12/2016 01:34:01 PM (10 years ago)
- Location:
- wp-imageengine/trunk
- Files:
-
- 2 added
- 4 edited
-
css/imageengine.css (modified) (1 diff)
-
index.php (modified) (1 diff)
-
options.php (modified) (3 diffs)
-
readme.txt (modified) (4 diffs)
-
screenshot-4.png (added)
-
screenshot-5.png (added)
Legend:
- Unmodified
- Added
- Removed
-
wp-imageengine/trunk/css/imageengine.css
r1304035 r1349042 14 14 margin:2px; 15 15 } 16 .wpie_options_container .wpie_get_key_text.bg-danger{ 17 padding: 1em; 18 font-weight: bold; 19 } 20 16 21 @media screen and (max-width: 720px){ 17 22 .wpie_options_container .panel{ -
wp-imageengine/trunk/index.php
r1333718 r1349042 14 14 } 15 15 16 define( 'IMGENG_VERSION', '1.2. 1');16 define( 'IMGENG_VERSION', '1.2.2'); 17 17 define( 'IMGENG_PATH', plugin_dir_path( __FILE__ ) ); 18 18 define( 'IMGENG_URL', plugin_dir_url( __FILE__ ) ); -
wp-imageengine/trunk/options.php
r1331244 r1349042 65 65 </div> 66 66 <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> 71 71 <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; ?> 72 79 <span class="input-group-addon" id="sizing-addon3"><?php _e('Your Token','imageengine'); ?></span> 73 80 <input type="text" class="form-control" placeholder="token" value="<?php echo $data['key']; ?>" name="wpie_key" aria-describedby="sizing-addon3"> … … 134 141 135 142 /** 143 * Display notifivation when no key present. 144 * @return void 145 */ 146 function 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 157 add_action( 'admin_notices', 'my_wpie_admin_notice' ); 158 159 /** 136 160 * Register admin options page 137 161 * @return void … … 144 168 145 169 146 /**147 * Display notifivation when no key present.148 * @return void149 */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 <?php158 }159 }160 170 161 add_action( 'admin_notices', 'my_wpie_admin_notice' );162 163 -
wp-imageengine/trunk/readme.txt
r1333718 r1349042 3 3 Tags: images, image, performance, webperf, responsive, adaptive, adaptive-images, mobile, mobile images, optimize, optimize images, resize, resize images, responsive images, cdn, image cdn 4 4 Requires at least: 4.0.8 5 Tested up to: 4.4. 16 Stable tag: 1.2. 15 Tested up to: 4.4.2 6 Stable tag: 1.2.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 9 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.10 WP ImageEngine is an intelligent image CDN for optimizing, compressing, resizing and delivering images according to the screen- or viewport size. 11 11 12 12 == Description == … … 47 47 == Installation == 48 48 49 1. Upload ` plugin-name.php` to the `/wp-content/plugins/` directory49 1. Upload `wp-imageengine` forlder to the `/wp-content/plugins/` directory, or install the plugin through the WordPress plugins screen directly. 50 50 2. Activate the plugin through the 'Plugins' menu in WordPress 51 3. Go to settings page and save your preferences 51 3. Visit the [ScientiaMobile ImageEngine site](https://scientiamobile.com/imageengine/signup#imageengine-lite). Create an ImageEngine Account to get your application token. 52 4. Log into your ScientiaMobile account 53 5. Copy your token from the Account Summary and Usage page. See [Screenshot section](https://wordpress.org/plugins/wp-imageengine/screenshots/) for more info. 54 6. Go to `Settings->ImageEngine Options` in your Wordpress main menu. 55 7. Paste the token into the WordPress ImageEngine Settings on the "Your Token" line. 56 8. On the WordPress settings page, save your preferences. 52 57 53 Remember [to register](https://scientiamobile.com/imageengine/signup#imageengine-lite) to get your application token.54 58 55 59 == Frequently Asked Questions == … … 57 61 = Do I need to register to use ImageEngine? = 58 62 59 Yes, you can sign up for a free account [here](https://scientiamobile.com/imageengine/signup#imageengine-lite) 63 Yes, 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 67 You 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. 60 68 61 69 = Can I test the current performance of my images somewhere? = … … 106 114 2. This is the pro version and all possible settings . In this example plugin-functionality is activated. 107 115 3. Shows performance improvement before and after activation of WP-ImageEngine. 116 4. When logged onto your ScientiaMobile account, find your ImageEngine Application token. 117 5. Copy and paste the Application token into the text field on the plugin settings page, and save. 108 118 109 119 == Changelog == 120 = 1.2.2 = 121 - Added more screenshots. 122 - Clarified the need for registration to optimize usage of the plugin 123 110 124 = 1.2.1 = 111 125 - Minor text issues.
Note: See TracChangeset
for help on using the changeset viewer.