Changeset 1453950
- Timestamp:
- 07/13/2016 09:30:50 AM (10 years ago)
- Location:
- wp-allaround/trunk
- Files:
-
- 5 edited
-
README.txt (modified) (4 diffs)
-
languages/default.mo (modified) (previous)
-
languages/default.po (modified) (2 diffs)
-
wp-allaround-admin.php (modified) (2 diffs)
-
wp-allaround.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-allaround/trunk/README.txt
r1453892 r1453950 5 5 Requires at least: 4.0.0 6 6 Tested up to: 4.5.3 7 Stable tag: 0. 17 Stable tag: 0.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 14 14 15 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 via [AllAroundSiena](http://www.allaroundsiena.com/bot "AllAroundSiena Telegram Bot).16 To connect your blog to the Telegram Channel, you simply need an API key to get freely on http://www.allaroundsiena.com/. 17 17 18 18 == Installation == … … 22 22 3. Use the Settings->AllAround Options screen to configure the plugins and add the AllAround API key (get for free on www.allaroundsiena.com/bot) 23 23 4. Click on "Connect this blog" button to validate the API key and connect your blog to the AllAroundSiena Telegram Bot service 24 5. You're done ! Now you need to create you Telegram Channel and configure it as explained on [AllAroundSiena](http://www.allaroundsiena.com/bot "AllAroundSiena Telegram Bot)pages24 5. You're done ! Now you need to create you Telegram Channel and configure it as explained on http://www.allaroundsiena.com/ pages 25 25 26 26 == Frequently Asked Questions == … … 36 36 == Changelog == 37 37 38 = 0.2 = 39 * Miscellaneous bug fixed 40 38 41 = 0.1 = 39 42 * First release -
wp-allaround/trunk/languages/default.po
r1453892 r1453950 2 2 msgstr "" 3 3 "Project-Id-Version: WP-AllAround\n" 4 "POT-Creation-Date: 2016-07- 06 12:10+0100\n"5 "PO-Revision-Date: 2016-07- 06 12:11+0100\n"4 "POT-Creation-Date: 2016-07-13 11:24+0100\n" 5 "PO-Revision-Date: 2016-07-13 11:25+0100\n" 6 6 "Last-Translator: Michele \"O-Zone\" Pinassi <o-zone@zerozone.it>\n" 7 7 "Language-Team: \n" 8 "Language: it_IT\n" 8 9 "MIME-Version: 1.0\n" 9 10 "Content-Type: text/plain; charset=UTF-8\n" … … 12 13 "X-Poedit-KeywordsList: _;gettext;gettext_noop;_e\n" 13 14 "X-Poedit-Basepath: .\n" 14 "Language: it_IT\n"15 15 "X-Poedit-SearchPath-0: ..\n" 16 16 17 #: ../wp-allaround-admin.php: 7717 #: ../wp-allaround-admin.php:81 18 18 msgid "Your AllAround BOT Api Key" 19 19 msgstr "La tua API Key del BOT AllAround" 20 20 21 #: ../wp-allaround-admin.php:8 121 #: ../wp-allaround-admin.php:85 22 22 msgid "Type here your AllAround BOT Api Key" 23 23 msgstr "Digita qui la chiave del BOT" 24 24 25 #: ../wp-allaround-admin.php:9 425 #: ../wp-allaround-admin.php:98 26 26 msgid "" 27 27 "After setting BOT Api Key (get one for free at <a href='http://www." 28 "allaroundsiena.com /bot'>www.allaroundsiena.com/bot</a>) click on the"29 " followingbutton to start broadcasting:"28 "allaroundsiena.com'>www.allaroundsiena.com</a>) click on the following " 29 "button to start broadcasting:" 30 30 msgstr "" 31 31 32 #: ../wp-allaround-admin.php:9 632 #: ../wp-allaround-admin.php:99 33 33 msgid "Connect this blog" 34 34 msgstr "Connetti questo blog" 35 35 36 #: ../wp-allaround.php:84 36 #: ../wp-allaround.php:130 37 msgid "Post published successfully on your BOT !" 38 msgstr "Articolo pubblicato con successo !" 39 40 #: ../wp-allaround.php:138 37 41 msgid "" 38 "Oo ps ! Something went wrong while publishing your post: try again in few"39 " minutes"42 "Ooops ! Something wrong happens while publish your post on AllAround BOT: " 43 "try again in few minutes" 40 44 msgstr "" 45 "Ooops ! E' successo qualcosa di sbagliato nella pubblicazione del tuo post " 46 "su AllAround BOT: prova ancora tra qualche minuto...." -
wp-allaround/trunk/wp-allaround-admin.php
r1453892 r1453950 22 22 $body = Unirest\Request\Body::multipart($data); 23 23 24 $result = Unirest\Request::post('https://www.allaroundsiena.com/ bot/rest/connect', $headers, $body);24 $result = Unirest\Request::post('https://www.allaroundsiena.com/rest/connect', $headers, $body); 25 25 26 26 if($result->code == '200') { … … 96 96 </div> <!-- end poststuff --> 97 97 <div> 98 <p><?php echo _e('After setting BOT Api Key (get one for free at <a href=\'http://www.allaroundsiena.com /bot\'>www.allaroundsiena.com/bot</a>) click on the following button to start broadcasting:'); ?></p>98 <p><?php echo _e('After setting BOT Api Key (get one for free at <a href=\'http://www.allaroundsiena.com\'>www.allaroundsiena.com</a>) click on the following button to start broadcasting:'); ?></p> 99 99 <button class="btn btn-large" id="allaround_connect"><?php _e('Connect this blog', 'wp-allaround'); ?></button> 100 100 <span id="allaround_connect_result"> </span> -
wp-allaround/trunk/wp-allaround.php
r1453892 r1453950 2 2 /* 3 3 Plugin Name: WP AllAround Connector Plugin 4 Plugin URI: http://www.allaroundsiena.com/ bot4 Plugin URI: http://www.allaroundsiena.com/plugin 5 5 Description: This plugin let you to connect a Telegram Bot with your blog 6 6 Version: 0.1 … … 109 109 error_log(print_r($body, true)); 110 110 111 $result = Unirest\Request::post('https://www.allaroundsiena.com/ bot/rest/publish', $headers, $body);111 $result = Unirest\Request::post('https://www.allaroundsiena.com/rest/publish', $headers, $body); 112 112 113 113 error_log(print_r($result, true)); … … 116 116 117 117 if($result->code == "200") { /* Success */ 118 $html = "<div class='updated'><p>"._e("Post '$post_title' published successfully on your BOT", 'wp-allaround' )."</p></div>";118 add_action( 'admin_notices', 'allaround_notice_publish_success' ); 119 119 } else { 120 $html = "<div class='error'><p>"._e("Oops ! Something went wrong while publishing your post: try again in few minutes", 'wp-allaround' )."</p></div>";120 add_action( 'admin_notices', 'allaround_notice_publish_error' ); 121 121 } 122 122 … … 125 125 } 126 126 127 function allaround_notice_publish_success() { 128 ?> 129 <div class="updated notice"> 130 <p><?php _e('Post published successfully on your BOT !', 'wp-allaround' ); ?></p> 131 </div> 132 <?php 133 } 134 135 function allaround_notice_publish_error() { 136 ?> 137 <div class="error notice"> 138 <p><?php _e('Ooops ! Something wrong happens while publish your post on AllAround BOT: try again in few minutes', 'wp-allaround' ); ?></p> 139 </div> 140 <?php 141 }
Note: See TracChangeset
for help on using the changeset viewer.