Changeset 1519139
- Timestamp:
- 10/21/2016 09:50:50 AM (9 years ago)
- Location:
- wp-allaround
- Files:
-
- 3 deleted
- 4 edited
- 17 copied
-
tags/0.8.1 (copied) (copied from wp-allaround/trunk)
-
tags/0.8.1/LICENSE.txt (copied) (copied from wp-allaround/trunk/LICENSE.txt)
-
tags/0.8.1/README.txt (copied) (copied from wp-allaround/trunk/README.txt) (2 diffs)
-
tags/0.8.1/Unirest (copied) (copied from wp-allaround/trunk/Unirest)
-
tags/0.8.1/Unirest.php (copied) (copied from wp-allaround/trunk/Unirest.php)
-
tags/0.8.1/css (copied) (copied from wp-allaround/trunk/css)
-
tags/0.8.1/css/validationEngine.jquery.css (copied) (copied from wp-allaround/trunk/css/validationEngine.jquery.css)
-
tags/0.8.1/css/wp-allaround.css (copied) (copied from wp-allaround/trunk/css/wp-allaround.css)
-
tags/0.8.1/js (copied) (copied from wp-allaround/trunk/js)
-
tags/0.8.1/js/custom.js (copied) (copied from wp-allaround/trunk/js/custom.js) (1 diff)
-
tags/0.8.1/js/jquery.validationEngine-it.js (copied) (copied from wp-allaround/trunk/js/jquery.validationEngine-it.js)
-
tags/0.8.1/js/jquery.validationEngine.js (copied) (copied from wp-allaround/trunk/js/jquery.validationEngine.js)
-
tags/0.8.1/languages (copied) (copied from wp-allaround/trunk/languages)
-
tags/0.8.1/languages/default.mo (deleted)
-
tags/0.8.1/languages/default.po (deleted)
-
tags/0.8.1/languages/default.pot (deleted)
-
tags/0.8.1/languages/wp-allaround-it_IT.mo (copied) (copied from wp-allaround/trunk/languages/wp-allaround-it_IT.mo)
-
tags/0.8.1/languages/wp-allaround-it_IT.po (copied) (copied from wp-allaround/trunk/languages/wp-allaround-it_IT.po)
-
tags/0.8.1/wp-allaround-admin.php (copied) (copied from wp-allaround/trunk/wp-allaround-admin.php) (6 diffs)
-
tags/0.8.1/wp-allaround.php (copied) (copied from wp-allaround/trunk/wp-allaround.php) (1 diff)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/js/custom.js (modified) (1 diff)
-
trunk/wp-allaround-admin.php (modified) (6 diffs)
-
trunk/wp-allaround.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-allaround/tags/0.8.1/README.txt
r1517333 r1519139 4 4 Tags: telegram, bot, channel, broadcast, promote 5 5 Requires at least: 4.0.0 6 Tested up to: 4.6. 07 Stable tag: 0.8. 06 Tested up to: 4.6.1 7 Stable tag: 0.8.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 35 35 36 36 == Changelog == 37 38 = 0.8.1 = 39 * Fixed some bugs 37 40 38 41 = 0.8.0 = -
wp-allaround/tags/0.8.1/js/custom.js
r1517333 r1519139 3 3 $("#allaround_verify_result").html('<i>Connecting...please wait !</i>'); 4 4 5 $.post(ajax_object.ajax_url, { 6 action: 'verify' 7 },function(data) { 8 if (data) { 9 $("#allaround_verify_result").html(data); 10 } 5 var apiKey = $("#allaround_api_key").val(); 6 7 jQuery.ajax({ 8 method: "POST", 9 dataType : "json", 10 url : "https://www.allaroundsiena.com/rest/verify", 11 data: {key: apiKey}, 12 success: function(response) { 13 $("#allaround_verify_result").html(response.message); 14 }, 15 error: function(request, status, error) { 16 $("#allaround_verify_result").html('<b>Error '+error+'</b>'); 11 17 } 12 );18 }); 13 19 }); 14 20 }); -
wp-allaround/tags/0.8.1/wp-allaround-admin.php
r1517333 r1519139 78 78 } 79 79 80 $api_key = $_POST["allaround_api_key"]; 81 82 update_option('allaround_api_key',$api_key); 83 80 84 $result = 'updated'; 81 85 … … 88 92 global $wp_styles; 89 93 90 wp_enqueue_script( 'ajax-script', 91 plugins_url( '/js/jquery.validationEngine-it.js', __FILE__ ), 92 array('jquery') 93 ); 94 95 wp_enqueue_script( 'ajax-script', 96 plugins_url( '/js/jquery.validationEngine.js', __FILE__ ), 97 array('jquery') 98 ); 99 100 wp_enqueue_script( 'ajax-script', 101 plugins_url( '/js/custom.js', __FILE__ ), 102 array('jquery') 103 ); 94 wp_register_script( 'validation-locale', plugins_url( '/js/jquery.validationEngine-it.js', __FILE__ )); 95 wp_register_script( 'validation-engine', plugins_url( '/js/jquery.validationEngine.js', __FILE__ )); 96 wp_register_script( 'custom-js', plugins_url( '/js/custom.js', __FILE__ )); 104 97 105 98 wp_localize_script( 'ajax-script', 'ajax_object', array( … … 107 100 )); 108 101 109 // Load stylesheets 110 wp_enqueue_style( 'wp-allaround', plugins_url( '/css/validationEngine.jquery.css', __FILE__ )); 111 wp_enqueue_style( 'wp-allaround', plugins_url( '/css/wp-allaround.css', __FILE__ )); 102 wp_register_style( 'validation-css', plugins_url( '/css/validationEngine.jquery.css', __FILE__ )); 103 wp_register_style( 'custom-css', plugins_url( '/css/wp-allaround.css', __FILE__ )); 104 105 wp_enqueue_script('validation-locale'); 106 wp_enqueue_script('validation-engine'); 107 wp_enqueue_script('custom-js'); 108 wp_enqueue_style('validation-css'); 109 wp_enqueue_style('custom-css'); 112 110 } 113 111 … … 241 239 <?php _e('Admin e-mail','wp-allaround');?>: 242 240 </td><td> 243 <input type="text" name="allaround_ blog_admin" id="allaround_blog_admin" class="validate[required,custom[email]]" value="<?php echo get_bloginfo('admin_email'); ?>">241 <input type="text" name="allaround_admin_email" id="allaround_admin_email" class="validate[required,custom[email]]" value="<?php echo get_bloginfo('admin_email'); ?>"> 244 242 </td> 245 243 </tr><tr> … … 273 271 <div id="post-body-content"> 274 272 <table class="form-table"> 275 <tr valign="top"> 276 <th scope="row"><?php _e('Your AllAround BOT Api Key', 'wp-allaround' ); ?></th> 273 <tr> 277 274 <td> 278 <input type="text" name="allaround_api_key" id="allaround_api_key" value="<?php echo $option_api_key; ?>" readonly> 279 <br/> 280 <label class="description" for="allaround_api_key"><?php _e('This is the unique API key for your blog. Please, keep it safe.'); ?></label> 281 </td> 282 </tr><tr> 283 <td> 284 <button class="btn btn-large" id="allaround_verify"><?php _e('Verify connection', 'wp-allaround'); ?></button><span id="allaround_verify_result"> </span> 275 <button class="btn btn-large" id="allaround_verify"><?php _e('Verify connection', 'wp-allaround'); ?></button> <span id="allaround_verify_result"> </span> 285 276 </td> 286 277 </tr> … … 290 281 <input type="hidden" name="action" value="update"> 291 282 <table class="form-table"> 292 <tr> 283 <tr valign="top"> 284 <th scope="row"><?php _e('Your AllAround BOT Api Key', 'wp-allaround' ); ?></th> 285 <td> 286 <input type="text" name="allaround_api_key" id="allaround_api_key" value="<?php echo $option_api_key; ?>"> 287 <br/> 288 <label class="description" for="allaround_api_key"><?php _e('This is the unique API key for your blog. Please, keep it safe and do not change if not needed.'); ?></label> 289 </td> 290 </tr><tr> 293 291 <th scope="row"><?php _e('Default is to publish new articles', 'wp-allaround' ); ?></th> 294 292 <td> -
wp-allaround/tags/0.8.1/wp-allaround.php
r1517333 r1519139 4 4 Plugin URI: http://www.allaroundsiena.com/plugin 5 5 Description: This plugin let you to connect a Telegram Bot with your blog 6 Version: 0.8. 06 Version: 0.8.1 7 7 Author: Michele Pinassi 8 8 Author URI: http://www.zerozone.it -
wp-allaround/trunk/README.txt
r1517333 r1519139 4 4 Tags: telegram, bot, channel, broadcast, promote 5 5 Requires at least: 4.0.0 6 Tested up to: 4.6. 07 Stable tag: 0.8. 06 Tested up to: 4.6.1 7 Stable tag: 0.8.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 35 35 36 36 == Changelog == 37 38 = 0.8.1 = 39 * Fixed some bugs 37 40 38 41 = 0.8.0 = -
wp-allaround/trunk/js/custom.js
r1517333 r1519139 3 3 $("#allaround_verify_result").html('<i>Connecting...please wait !</i>'); 4 4 5 $.post(ajax_object.ajax_url, { 6 action: 'verify' 7 },function(data) { 8 if (data) { 9 $("#allaround_verify_result").html(data); 10 } 5 var apiKey = $("#allaround_api_key").val(); 6 7 jQuery.ajax({ 8 method: "POST", 9 dataType : "json", 10 url : "https://www.allaroundsiena.com/rest/verify", 11 data: {key: apiKey}, 12 success: function(response) { 13 $("#allaround_verify_result").html(response.message); 14 }, 15 error: function(request, status, error) { 16 $("#allaround_verify_result").html('<b>Error '+error+'</b>'); 11 17 } 12 );18 }); 13 19 }); 14 20 }); -
wp-allaround/trunk/wp-allaround-admin.php
r1517333 r1519139 78 78 } 79 79 80 $api_key = $_POST["allaround_api_key"]; 81 82 update_option('allaround_api_key',$api_key); 83 80 84 $result = 'updated'; 81 85 … … 88 92 global $wp_styles; 89 93 90 wp_enqueue_script( 'ajax-script', 91 plugins_url( '/js/jquery.validationEngine-it.js', __FILE__ ), 92 array('jquery') 93 ); 94 95 wp_enqueue_script( 'ajax-script', 96 plugins_url( '/js/jquery.validationEngine.js', __FILE__ ), 97 array('jquery') 98 ); 99 100 wp_enqueue_script( 'ajax-script', 101 plugins_url( '/js/custom.js', __FILE__ ), 102 array('jquery') 103 ); 94 wp_register_script( 'validation-locale', plugins_url( '/js/jquery.validationEngine-it.js', __FILE__ )); 95 wp_register_script( 'validation-engine', plugins_url( '/js/jquery.validationEngine.js', __FILE__ )); 96 wp_register_script( 'custom-js', plugins_url( '/js/custom.js', __FILE__ )); 104 97 105 98 wp_localize_script( 'ajax-script', 'ajax_object', array( … … 107 100 )); 108 101 109 // Load stylesheets 110 wp_enqueue_style( 'wp-allaround', plugins_url( '/css/validationEngine.jquery.css', __FILE__ )); 111 wp_enqueue_style( 'wp-allaround', plugins_url( '/css/wp-allaround.css', __FILE__ )); 102 wp_register_style( 'validation-css', plugins_url( '/css/validationEngine.jquery.css', __FILE__ )); 103 wp_register_style( 'custom-css', plugins_url( '/css/wp-allaround.css', __FILE__ )); 104 105 wp_enqueue_script('validation-locale'); 106 wp_enqueue_script('validation-engine'); 107 wp_enqueue_script('custom-js'); 108 wp_enqueue_style('validation-css'); 109 wp_enqueue_style('custom-css'); 112 110 } 113 111 … … 241 239 <?php _e('Admin e-mail','wp-allaround');?>: 242 240 </td><td> 243 <input type="text" name="allaround_ blog_admin" id="allaround_blog_admin" class="validate[required,custom[email]]" value="<?php echo get_bloginfo('admin_email'); ?>">241 <input type="text" name="allaround_admin_email" id="allaround_admin_email" class="validate[required,custom[email]]" value="<?php echo get_bloginfo('admin_email'); ?>"> 244 242 </td> 245 243 </tr><tr> … … 273 271 <div id="post-body-content"> 274 272 <table class="form-table"> 275 <tr valign="top"> 276 <th scope="row"><?php _e('Your AllAround BOT Api Key', 'wp-allaround' ); ?></th> 273 <tr> 277 274 <td> 278 <input type="text" name="allaround_api_key" id="allaround_api_key" value="<?php echo $option_api_key; ?>" readonly> 279 <br/> 280 <label class="description" for="allaround_api_key"><?php _e('This is the unique API key for your blog. Please, keep it safe.'); ?></label> 281 </td> 282 </tr><tr> 283 <td> 284 <button class="btn btn-large" id="allaround_verify"><?php _e('Verify connection', 'wp-allaround'); ?></button><span id="allaround_verify_result"> </span> 275 <button class="btn btn-large" id="allaround_verify"><?php _e('Verify connection', 'wp-allaround'); ?></button> <span id="allaround_verify_result"> </span> 285 276 </td> 286 277 </tr> … … 290 281 <input type="hidden" name="action" value="update"> 291 282 <table class="form-table"> 292 <tr> 283 <tr valign="top"> 284 <th scope="row"><?php _e('Your AllAround BOT Api Key', 'wp-allaround' ); ?></th> 285 <td> 286 <input type="text" name="allaround_api_key" id="allaround_api_key" value="<?php echo $option_api_key; ?>"> 287 <br/> 288 <label class="description" for="allaround_api_key"><?php _e('This is the unique API key for your blog. Please, keep it safe and do not change if not needed.'); ?></label> 289 </td> 290 </tr><tr> 293 291 <th scope="row"><?php _e('Default is to publish new articles', 'wp-allaround' ); ?></th> 294 292 <td> -
wp-allaround/trunk/wp-allaround.php
r1517333 r1519139 4 4 Plugin URI: http://www.allaroundsiena.com/plugin 5 5 Description: This plugin let you to connect a Telegram Bot with your blog 6 Version: 0.8. 06 Version: 0.8.1 7 7 Author: Michele Pinassi 8 8 Author URI: http://www.zerozone.it
Note: See TracChangeset
for help on using the changeset viewer.