Changeset 1516401
- Timestamp:
- 10/17/2016 09:34:14 AM (9 years ago)
- Location:
- indoona-schools-forms/trunk
- Files:
-
- 6 edited
-
function/callback_endpoint.php (modified) (4 diffs)
-
function/subscribers_bulk_actions.php (modified) (3 diffs)
-
indoona-schools-forms.php (modified) (1 diff)
-
menu/personale.php (modified) (1 diff)
-
menu/settings.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
indoona-schools-forms/trunk/function/callback_endpoint.php
r1504331 r1516401 50 50 } else if ( $parameters[0] == '/pin' ) { 51 51 if ( !$parameters[1] || !$parameters[2] ) { 52 indoona_tp_message_send( $user_id, $user_id, __( 'Pin error', 'indoona-schools-forms').PHP_EOL.__( 'Use the format /pin newpin newpin', 'indoona-schools-forms'), true, false, 101 );52 indoona_tp_message_send( $user_id, $user_id, __( 'Pin error', 'indoona-schools-forms').PHP_EOL.__( 'Use the format: /pin newpin newpin', 'indoona-schools-forms'), true, false, 101 ); 53 53 } else if ( $parameters[1] == $parameters[2] ) { 54 54 if ( strlen($parameters[1]) == 4 && is_numeric($parameters[1]) ) { … … 67 67 } 68 68 } else { 69 indoona_tp_message_send( $user_id, $user_id, __( 'New pin doesn\'t match', 'indoona-schools-forms').PHP_EOL.__( 'Use the format /pin newpin newpin', 'indoona-schools-forms'), true, false, 101 );69 indoona_tp_message_send( $user_id, $user_id, __( 'New pin doesn\'t match', 'indoona-schools-forms').PHP_EOL.__( 'Use the format: /pin newpin newpin', 'indoona-schools-forms'), true, false, 101 ); 70 70 } 71 71 } else { … … 100 100 101 101 indoona_tp_message_send( $user_id, $user_id, $message, true, false, 101 ); 102 indoona_tp_message_send( $user_id, $user_id, __('Type the number of the formyou want to submit', 'indoona-schools-forms'), false, false, 101 );102 indoona_tp_message_send( $user_id, $user_id, __('Type the form number you want to submit', 'indoona-schools-forms'), false, false, 101 ); 103 103 104 104 $form_id = indoona_msc_create_form( $user_id ); … … 145 145 } else { 146 146 indoona_tp_message_send( $user_id, $user_id, 147 __('The date must be future!', 'indoona-schools-forms'), false, false, 101 );147 __('The date must be in the future!', 'indoona-schools-forms'), false, false, 101 ); 148 148 } 149 149 } else if ( $input != __('new', 'indoona-schools-forms') ) { -
indoona-schools-forms/trunk/function/subscribers_bulk_actions.php
r1504331 r1516401 13 13 foreach( $_GET['subscriber'] as $subscriber ) { 14 14 indoona_msc_personale_remove( $subscriber ); 15 indoona_tp_message_send( $subscriber, $subscriber, __( 'You have been disabled tothis service', 'indoona-schools-forms'), true, false, 101 );15 indoona_tp_message_send( $subscriber, $subscriber, __( 'You have been disabled from using this service', 'indoona-schools-forms'), true, false, 101 ); 16 16 } 17 17 } … … 38 38 } 39 39 40 function indoona_msc_personale_contact_add( $id ) { 40 function indoona_msc_personale_contact_add( $id, $retry = false ) { 41 41 42 $sdk = new Indoona\OpenSDK(); 42 43 $apiProvider = $sdk->getApiProvider(); … … 63 64 if ( $code == 401 && !$retry ) { 64 65 indoona_tp_token( true ); //Refresh the app-token 65 $apiProvider->invokeContactAddApiWithAppAccessToken( 66 $appToken, 67 $id, 68 $contact 69 ); 66 indoona_msc_personale_contact_add( $id, true ); 70 67 } 71 68 } -
indoona-schools-forms/trunk/indoona-schools-forms.php
r1504378 r1516401 3 3 Plugin Name: indoona schools forms 4 4 Plugin URI: https://wordpress.org/plugins/indoona-schools-forms 5 Description: indoona plugin for send and manageschool forms6 Version: 0.9. 05 Description: indoona plugin for sending and managing school forms 6 Version: 0.9.1 7 7 Author: Tiscali Italia S.p.A. 8 8 Author URI: http://www.tiscali.it/ -
indoona-schools-forms/trunk/menu/personale.php
r1504331 r1516401 13 13 14 14 indoona_msc_personale_remove( $_GET['remove'] ); 15 indoona_tp_message_send( $_GET['remove'], $_GET['remove'], __( 'You have been disabled tothis service', 'indoona-schools-forms'), true, false, 101 );15 indoona_tp_message_send( $_GET['remove'], $_GET['remove'], __( 'You have been disabled from using this service', 'indoona-schools-forms'), true, false, 101 ); 16 16 17 17 } else if ( isset($_GET['restore']) ) { -
indoona-schools-forms/trunk/menu/settings.php
r1504331 r1516401 61 61 <?php indoona_msc_forms_array_set_default(); ?> 62 62 <textarea id="forms" rows="4" columns="55" class="widefat" name="wp_indoona_msc[forms]"><?php echo indoona_msc_option('forms'); ?></textarea> 63 <br><small><?php _e( 'List of form subjects (one per line) which your school allows to create via chat', 'indoona-schools-forms'); ?><br><?php _e( 'Every form follows the same chat pattern (subject + start day + days number+ details)', 'indoona-schools-forms'); ?></small>63 <br><small><?php _e( 'List of form subjects (one per line) that your school allows to create via chat', 'indoona-schools-forms'); ?><br><?php _e( 'Every form follows the same chat pattern (subject + start day + number of days + details)', 'indoona-schools-forms'); ?></small> 64 64 </td> 65 65 </tr> -
indoona-schools-forms/trunk/readme.txt
r1508071 r1516401 1 1 === indoona schools === 2 2 Contributors: indoonaopenplatform 3 Version: 0.9. 03 Version: 0.9.1 4 4 Stable tag: trunk 5 5 Tags: indoona, tiscali, chat, smartphone, school, form … … 31 31 32 32 == Changelog == 33 34 = 0.9.1 17/10/2016 = 35 * bugfixes 36
Note: See TracChangeset
for help on using the changeset viewer.