Changeset 1536357
- Timestamp:
- 11/18/2016 02:57:10 PM (9 years ago)
- Location:
- wp-allaround
- Files:
-
- 4 edited
- 1 copied
-
tags/0.8.3 (copied) (copied from wp-allaround/trunk)
-
tags/0.8.3/README.txt (modified) (4 diffs)
-
tags/0.8.3/wp-allaround.php (modified) (4 diffs)
-
trunk/README.txt (modified) (4 diffs)
-
trunk/wp-allaround.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-allaround/tags/0.8.3/README.txt
r1528830 r1536357 5 5 Requires at least: 4.0.0 6 6 Tested up to: 4.6.1 7 Stable tag: 0.8. 27 Stable tag: 0.8.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 13 13 == Description == 14 14 15 WP-AllAround is the connector plugin for AllAroundSiena Telegram Bot service, that let you to spread via Telegram channels new posts of your blog. 16 To connect your blog to the Telegram Channel, you simply need an API key to get freely on http://www.allaroundsiena.com 15 WP-AllAround is the connector plugin for AllAroundSiena Telegram Bot service, that let you to spread via Telegram channels new posts of your blog. 16 17 Telegram channels are the best way to promote your blog and its content. Followers simply need to join your channel, using provided link, and 18 receive directly on its smartphone any update and new articles published on your blog. 19 20 With AllAroundSiena, all you need to do is install the plugin, create a channel on Telegram Messenger platform and copy the Api Key on your 21 configuration page on https://www.allaroundsiena.com 22 23 It's simple, it's free. 17 24 18 25 == Installation == … … 28 35 = I need Telegram installed to use this ? = 29 36 30 Yes, because you need to create a channel/group where link your bot and invite your friend and followers. 37 Yes, because you need to create a channel/group where link your bot and invite your friend and followers. Don't worry: it's quite simple ! 31 38 32 39 = How does it costs ? = … … 35 42 36 43 == Changelog == 44 45 = 0.8.3 = 46 * Bug fixed. Update needed ! 37 47 38 48 = 0.8.2 = -
wp-allaround/tags/0.8.3/wp-allaround.php
r1528830 r1536357 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. 26 Version: 0.8.3 7 7 Author: Michele Pinassi 8 8 Author URI: http://www.zerozone.it … … 95 95 printf( __('Error %s while publishing on %s', 'wp-allaround'), $post_message, $t_date); 96 96 ?> 97 <p>98 <input type="checkbox" name="allaround_post_publish" id="allaround_post_publish" value="1" checked/>99 <label class="description" for="allaround_post_publish"><?php _e('Publish this post on AllAround', 'wp-allaround' ); ?></label>100 </p>97 <p> 98 <input type="checkbox" name="allaround_post_do_publish" id="allaround_post_do_publish" value="1"/> 99 <label class="description" for="allaround_post_do_publish"><?php _e('Try again', 'wp-allaround' ); ?></label> 100 </p> 101 101 <?php 102 102 … … 185 185 /* Post have an image ? */ 186 186 if(has_post_thumbnail($post->ID)) { 187 $post_image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'medium'); 188 $post_image_url = $post_image[0]; 187 $post_image_url = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'medium')[0]; 189 188 } else { 190 189 $post_image_url = ''; … … 233 232 } 234 233 235 / / add_action('transition_post_status', 'allaround_post_publish', 10, 3);236 237 add_action('save_post','allaround_post_publish', 10, 3); 238 239 function allaround_post_publish($ID, $post, $update) { 240 241 /* Check if this post was already published to avoid duplicates */ 242 $ check_is_publish = get_post_meta($post->ID,'allaround_post_publish', true);234 /* ============================================================ */ 235 /* */ 236 /* PUBLISH HOOK */ 237 /* */ 238 /* =============================================================*/ 239 240 function allaround_action_publish($new_status, $old_status, $post) { 241 $do_publish = false; 243 242 244 243 error_log("FIRED: allaround_action_publish($new_status,$old_status,$post->ID)"); -
wp-allaround/trunk/README.txt
r1528830 r1536357 5 5 Requires at least: 4.0.0 6 6 Tested up to: 4.6.1 7 Stable tag: 0.8. 27 Stable tag: 0.8.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 13 13 == Description == 14 14 15 WP-AllAround is the connector plugin for AllAroundSiena Telegram Bot service, that let you to spread via Telegram channels new posts of your blog. 16 To connect your blog to the Telegram Channel, you simply need an API key to get freely on http://www.allaroundsiena.com 15 WP-AllAround is the connector plugin for AllAroundSiena Telegram Bot service, that let you to spread via Telegram channels new posts of your blog. 16 17 Telegram channels are the best way to promote your blog and its content. Followers simply need to join your channel, using provided link, and 18 receive directly on its smartphone any update and new articles published on your blog. 19 20 With AllAroundSiena, all you need to do is install the plugin, create a channel on Telegram Messenger platform and copy the Api Key on your 21 configuration page on https://www.allaroundsiena.com 22 23 It's simple, it's free. 17 24 18 25 == Installation == … … 28 35 = I need Telegram installed to use this ? = 29 36 30 Yes, because you need to create a channel/group where link your bot and invite your friend and followers. 37 Yes, because you need to create a channel/group where link your bot and invite your friend and followers. Don't worry: it's quite simple ! 31 38 32 39 = How does it costs ? = … … 35 42 36 43 == Changelog == 44 45 = 0.8.3 = 46 * Bug fixed. Update needed ! 37 47 38 48 = 0.8.2 = -
wp-allaround/trunk/wp-allaround.php
r1528830 r1536357 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. 26 Version: 0.8.3 7 7 Author: Michele Pinassi 8 8 Author URI: http://www.zerozone.it … … 95 95 printf( __('Error %s while publishing on %s', 'wp-allaround'), $post_message, $t_date); 96 96 ?> 97 <p>98 <input type="checkbox" name="allaround_post_publish" id="allaround_post_publish" value="1" checked/>99 <label class="description" for="allaround_post_publish"><?php _e('Publish this post on AllAround', 'wp-allaround' ); ?></label>100 </p>97 <p> 98 <input type="checkbox" name="allaround_post_do_publish" id="allaround_post_do_publish" value="1"/> 99 <label class="description" for="allaround_post_do_publish"><?php _e('Try again', 'wp-allaround' ); ?></label> 100 </p> 101 101 <?php 102 102 … … 185 185 /* Post have an image ? */ 186 186 if(has_post_thumbnail($post->ID)) { 187 $post_image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'medium'); 188 $post_image_url = $post_image[0]; 187 $post_image_url = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'medium')[0]; 189 188 } else { 190 189 $post_image_url = ''; … … 233 232 } 234 233 235 / / add_action('transition_post_status', 'allaround_post_publish', 10, 3);236 237 add_action('save_post','allaround_post_publish', 10, 3); 238 239 function allaround_post_publish($ID, $post, $update) { 240 241 /* Check if this post was already published to avoid duplicates */ 242 $ check_is_publish = get_post_meta($post->ID,'allaround_post_publish', true);234 /* ============================================================ */ 235 /* */ 236 /* PUBLISH HOOK */ 237 /* */ 238 /* =============================================================*/ 239 240 function allaround_action_publish($new_status, $old_status, $post) { 241 $do_publish = false; 243 242 244 243 error_log("FIRED: allaround_action_publish($new_status,$old_status,$post->ID)");
Note: See TracChangeset
for help on using the changeset viewer.