Changeset 2772028
- Timestamp:
- 08/18/2022 10:50:25 AM (4 years ago)
- Location:
- indigitall-web-push-notifications
- Files:
-
- 6 deleted
- 10 edited
- 10 copied
-
tags/3.0.3 (copied) (copied from indigitall-web-push-notifications/trunk)
-
tags/3.0.3/admin (copied) (copied from indigitall-web-push-notifications/trunk/admin)
-
tags/3.0.3/admin/controllers/iwpOnBoardingController.php (modified) (1 diff)
-
tags/3.0.3/admin/controllers/iwpWebPushController.php (modified) (2 diffs)
-
tags/3.0.3/admin/controllers/iwpWhatsAppChatController.php (modified) (4 diffs)
-
tags/3.0.3/admin/includes/iwpApiManager.php (copied) (copied from indigitall-web-push-notifications/trunk/admin/includes/iwpApiManager.php)
-
tags/3.0.3/admin/views/webPush/partials/iwpWebPushTopics.php (modified) (1 diff)
-
tags/3.0.3/includes (copied) (copied from indigitall-web-push-notifications/trunk/includes)
-
tags/3.0.3/includes/iwpCurlManager.php (copied) (copied from indigitall-web-push-notifications/trunk/includes/iwpCurlManager.php)
-
tags/3.0.3/indigitall-web-push.php (copied) (copied from indigitall-web-push-notifications/trunk/indigitall-web-push.php) (1 diff)
-
tags/3.0.3/iwp-admin.php (deleted)
-
tags/3.0.3/iwp-ajax.php (deleted)
-
tags/3.0.3/iwp-public.php (deleted)
-
tags/3.0.3/js (deleted)
-
tags/3.0.3/languages (copied) (copied from indigitall-web-push-notifications/trunk/languages)
-
tags/3.0.3/public (copied) (copied from indigitall-web-push-notifications/trunk/public)
-
tags/3.0.3/readme.md (copied) (copied from indigitall-web-push-notifications/trunk/readme.md) (3 diffs)
-
tags/3.0.3/scss (deleted)
-
tags/3.0.3/uninstall.php (copied) (copied from indigitall-web-push-notifications/trunk/uninstall.php)
-
tags/3.0.3/views (deleted)
-
trunk/admin/controllers/iwpOnBoardingController.php (modified) (1 diff)
-
trunk/admin/controllers/iwpWebPushController.php (modified) (2 diffs)
-
trunk/admin/controllers/iwpWhatsAppChatController.php (modified) (4 diffs)
-
trunk/admin/views/webPush/partials/iwpWebPushTopics.php (modified) (1 diff)
-
trunk/indigitall-web-push.php (modified) (1 diff)
-
trunk/readme.md (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
indigitall-web-push-notifications/tags/3.0.3/admin/controllers/iwpOnBoardingController.php
r2771484 r2772028 338 338 // Lo usaremos para que al mostrar el select de los prefijos, preseleccione el del país correspondiente 339 339 update_option(iwpPluginOptions::WH_PHONE_COUNTRY, $whatsAppPrefix); 340 // Si algunos campos del WhatsAppChat no están definidos, asignamos los valores predeterminados 341 $iconBalloon = get_option(iwpPluginOptions::WH_ICON_SPEECH_BALLOON, false); 342 if (empty($iconBalloon)) { 343 update_option(iwpPluginOptions::WH_ICON_SPEECH_BALLOON,'show'); 344 } 345 if (!get_option(iwpPluginOptions::WH_ICON_SLEEP, false)) { 346 update_option(iwpPluginOptions::WH_ICON_SLEEP, 5); 347 } 348 if (!get_option(iwpPluginOptions::WH_CHAT_SLEEP, false)) { 349 update_option(iwpPluginOptions::WH_CHAT_SLEEP, 20); 350 } 340 351 iwpCustomEvents::sendCustomEvent(iwpCustomEvents::MACRO_WA_ACTIVAR); 341 352 } -
indigitall-web-push-notifications/tags/3.0.3/admin/controllers/iwpWebPushController.php
r2771484 r2772028 150 150 require_once IWP_ADMIN_PATH . 'responses/iwpTopicsResponse.php'; 151 151 $topicId = (int)iwpAdminUtils::getPOSTParam('topicId', 0); 152 $topicName = trim(iwpAdminUtils::getPOSTParam('name', false));152 $topicName = stripslashes(trim(iwpAdminUtils::getPOSTParam('name', false))); 153 153 if (empty($topicName) || empty($topicId)) { 154 154 return json_encode(array( … … 194 194 require_once IWP_ADMIN_PATH . 'responses/iwpTopicsResponse.php'; 195 195 196 $topicName = trim(iwpAdminUtils::getPOSTParam('name', false));197 $topicCode = trim(iwpAdminUtils::getPOSTParam('code', false));196 $topicName = stripslashes(trim(iwpAdminUtils::getPOSTParam('name', false))); 197 $topicCode = stripslashes(trim(iwpAdminUtils::getPOSTParam('code', false))); 198 198 199 199 if (empty($topicName) || empty($topicCode)) { -
indigitall-web-push-notifications/tags/3.0.3/admin/controllers/iwpWhatsAppChatController.php
r2771484 r2772028 45 45 46 46 private function loadStep2View() { 47 $iconSleep = get_option(iwpPluginOptions::WH_ICON_SLEEP, false); 48 $iconSleep = $iconSleep ? (int)$iconSleep : 5; 47 49 $paramsStep2 = array( 48 50 'iconPosition' => get_option(iwpPluginOptions::WH_ICON_POSITION, false), … … 53 55 'iconBalloon' => get_option(iwpPluginOptions::WH_ICON_SPEECH_BALLOON, false), 54 56 'iconBalloonText' => self::encodeDecodeText(get_option(iwpPluginOptions::WH_ICON_SPEECH_BALLOON_TEXT, '')), 55 'iconSleep' => (int)get_option(iwpPluginOptions::WH_ICON_SLEEP, 5),57 'iconSleep' => $iconSleep, 56 58 ); 57 59 return iwpAdminUtils::loadViewToVar(IWP_ADMIN_PATH . 'views/whatsAppChat/partials/iwpWhatsAppChatStep2.php', $paramsStep2); … … 59 61 60 62 private function loadStep3View() { 63 $chatSleep = get_option(iwpPluginOptions::WH_CHAT_SLEEP, false); 64 $chatSleep = $chatSleep ? (int)$chatSleep : 20; 61 65 $paramsStep3 = array( 62 66 'chatHeaderValue' => self::encodeDecodeText(get_option(iwpPluginOptions::WH_CHAT_HEADER, '')), … … 65 69 'chatButtonTextValue' => self::encodeDecodeText(get_option(iwpPluginOptions::WH_CHAT_BUTTON_TEXT, '')), 66 70 'buttonIcon' => get_option(iwpPluginOptions::WH_CHAT_BUTTON_IMAGE_ID, false), 67 'chatSleep' => (int)get_option(iwpPluginOptions::WH_CHAT_SLEEP, 20),71 'chatSleep' => $chatSleep, 68 72 ); 69 73 return iwpAdminUtils::loadViewToVar(IWP_ADMIN_PATH . 'views/whatsAppChat/partials/iwpWhatsAppChatStep3.php', $paramsStep3); -
indigitall-web-push-notifications/tags/3.0.3/admin/views/webPush/partials/iwpWebPushTopics.php
r2771484 r2772028 65 65 <td class="iwp-admin-webPush-topics-table-name-col"> 66 66 <input class="iwp-admin-webPush-topics-item-name" type="text" 67 value="<?php echo( $topic->getName()); ?>" data-id="<?php echo($topic->getId()); ?>">67 value="<?php echo(htmlentities($topic->getName(), ENT_QUOTES)); ?>" data-id="<?php echo($topic->getId()); ?>"> 68 68 </td> 69 69 <td class="iwp-admin-webPush-topics-table-code-col"> -
indigitall-web-push-notifications/tags/3.0.3/indigitall-web-push.php
r2771525 r2772028 4 4 * Plugin URI: https://documentation.iurny.com/reference/wordpress-plugin 5 5 * Description: iurny is a free plugin that will allow you to bring your marketing automation to the next level. 6 * Version: 3.0. 26 * Version: 3.0.3 7 7 * Author: iurny by indigitall 8 8 * Author URI: https://iurny.com/ -
indigitall-web-push-notifications/tags/3.0.3/readme.md
r2771525 r2772028 5 5 Tested up to: 6.0 6 6 Requires PHP: 5.2 7 Stable tag: 3.0. 27 Stable tag: 3.0.3 8 8 License: GPLv2 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 23 23 [youtube https://www.youtube.com/watch?v=Z1hEqNQIhRQ] 24 24 [youtube https://www.youtube.com/watch?v=3UVwng65YVg] 25 [youtube https://www.youtube.com/watch?v=rO96YOqs6yQ] 25 26 26 27 ## ⌁ WHAT YOU CAN DO WITH WHATSAPP CHAT … … 108 109 109 110 == Changelog == 111 = 3.0.3 = 112 * \[FIX\] Minor bug fixes 113 110 114 = 3.0.2 = 111 115 * \[FIX\] Minor bug fixes -
indigitall-web-push-notifications/trunk/admin/controllers/iwpOnBoardingController.php
r2771484 r2772028 338 338 // Lo usaremos para que al mostrar el select de los prefijos, preseleccione el del país correspondiente 339 339 update_option(iwpPluginOptions::WH_PHONE_COUNTRY, $whatsAppPrefix); 340 // Si algunos campos del WhatsAppChat no están definidos, asignamos los valores predeterminados 341 $iconBalloon = get_option(iwpPluginOptions::WH_ICON_SPEECH_BALLOON, false); 342 if (empty($iconBalloon)) { 343 update_option(iwpPluginOptions::WH_ICON_SPEECH_BALLOON,'show'); 344 } 345 if (!get_option(iwpPluginOptions::WH_ICON_SLEEP, false)) { 346 update_option(iwpPluginOptions::WH_ICON_SLEEP, 5); 347 } 348 if (!get_option(iwpPluginOptions::WH_CHAT_SLEEP, false)) { 349 update_option(iwpPluginOptions::WH_CHAT_SLEEP, 20); 350 } 340 351 iwpCustomEvents::sendCustomEvent(iwpCustomEvents::MACRO_WA_ACTIVAR); 341 352 } -
indigitall-web-push-notifications/trunk/admin/controllers/iwpWebPushController.php
r2771484 r2772028 150 150 require_once IWP_ADMIN_PATH . 'responses/iwpTopicsResponse.php'; 151 151 $topicId = (int)iwpAdminUtils::getPOSTParam('topicId', 0); 152 $topicName = trim(iwpAdminUtils::getPOSTParam('name', false));152 $topicName = stripslashes(trim(iwpAdminUtils::getPOSTParam('name', false))); 153 153 if (empty($topicName) || empty($topicId)) { 154 154 return json_encode(array( … … 194 194 require_once IWP_ADMIN_PATH . 'responses/iwpTopicsResponse.php'; 195 195 196 $topicName = trim(iwpAdminUtils::getPOSTParam('name', false));197 $topicCode = trim(iwpAdminUtils::getPOSTParam('code', false));196 $topicName = stripslashes(trim(iwpAdminUtils::getPOSTParam('name', false))); 197 $topicCode = stripslashes(trim(iwpAdminUtils::getPOSTParam('code', false))); 198 198 199 199 if (empty($topicName) || empty($topicCode)) { -
indigitall-web-push-notifications/trunk/admin/controllers/iwpWhatsAppChatController.php
r2771484 r2772028 45 45 46 46 private function loadStep2View() { 47 $iconSleep = get_option(iwpPluginOptions::WH_ICON_SLEEP, false); 48 $iconSleep = $iconSleep ? (int)$iconSleep : 5; 47 49 $paramsStep2 = array( 48 50 'iconPosition' => get_option(iwpPluginOptions::WH_ICON_POSITION, false), … … 53 55 'iconBalloon' => get_option(iwpPluginOptions::WH_ICON_SPEECH_BALLOON, false), 54 56 'iconBalloonText' => self::encodeDecodeText(get_option(iwpPluginOptions::WH_ICON_SPEECH_BALLOON_TEXT, '')), 55 'iconSleep' => (int)get_option(iwpPluginOptions::WH_ICON_SLEEP, 5),57 'iconSleep' => $iconSleep, 56 58 ); 57 59 return iwpAdminUtils::loadViewToVar(IWP_ADMIN_PATH . 'views/whatsAppChat/partials/iwpWhatsAppChatStep2.php', $paramsStep2); … … 59 61 60 62 private function loadStep3View() { 63 $chatSleep = get_option(iwpPluginOptions::WH_CHAT_SLEEP, false); 64 $chatSleep = $chatSleep ? (int)$chatSleep : 20; 61 65 $paramsStep3 = array( 62 66 'chatHeaderValue' => self::encodeDecodeText(get_option(iwpPluginOptions::WH_CHAT_HEADER, '')), … … 65 69 'chatButtonTextValue' => self::encodeDecodeText(get_option(iwpPluginOptions::WH_CHAT_BUTTON_TEXT, '')), 66 70 'buttonIcon' => get_option(iwpPluginOptions::WH_CHAT_BUTTON_IMAGE_ID, false), 67 'chatSleep' => (int)get_option(iwpPluginOptions::WH_CHAT_SLEEP, 20),71 'chatSleep' => $chatSleep, 68 72 ); 69 73 return iwpAdminUtils::loadViewToVar(IWP_ADMIN_PATH . 'views/whatsAppChat/partials/iwpWhatsAppChatStep3.php', $paramsStep3); -
indigitall-web-push-notifications/trunk/admin/views/webPush/partials/iwpWebPushTopics.php
r2771484 r2772028 65 65 <td class="iwp-admin-webPush-topics-table-name-col"> 66 66 <input class="iwp-admin-webPush-topics-item-name" type="text" 67 value="<?php echo( $topic->getName()); ?>" data-id="<?php echo($topic->getId()); ?>">67 value="<?php echo(htmlentities($topic->getName(), ENT_QUOTES)); ?>" data-id="<?php echo($topic->getId()); ?>"> 68 68 </td> 69 69 <td class="iwp-admin-webPush-topics-table-code-col"> -
indigitall-web-push-notifications/trunk/indigitall-web-push.php
r2771525 r2772028 4 4 * Plugin URI: https://documentation.iurny.com/reference/wordpress-plugin 5 5 * Description: iurny is a free plugin that will allow you to bring your marketing automation to the next level. 6 * Version: 3.0. 26 * Version: 3.0.3 7 7 * Author: iurny by indigitall 8 8 * Author URI: https://iurny.com/ -
indigitall-web-push-notifications/trunk/readme.md
r2771525 r2772028 5 5 Tested up to: 6.0 6 6 Requires PHP: 5.2 7 Stable tag: 3.0. 27 Stable tag: 3.0.3 8 8 License: GPLv2 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 23 23 [youtube https://www.youtube.com/watch?v=Z1hEqNQIhRQ] 24 24 [youtube https://www.youtube.com/watch?v=3UVwng65YVg] 25 [youtube https://www.youtube.com/watch?v=rO96YOqs6yQ] 25 26 26 27 ## ⌁ WHAT YOU CAN DO WITH WHATSAPP CHAT … … 108 109 109 110 == Changelog == 111 = 3.0.3 = 112 * \[FIX\] Minor bug fixes 113 110 114 = 3.0.2 = 111 115 * \[FIX\] Minor bug fixes
Note: See TracChangeset
for help on using the changeset viewer.