Changeset 3378813
- Timestamp:
- 10/15/2025 10:49:29 AM (6 months ago)
- Location:
- sms-send-for-africas-talking/trunk
- Files:
-
- 4 edited
-
africastalking-sms.php (modified) (2 diffs)
-
assets/js/africastalking-sms-form.min.js (modified) (1 diff)
-
includes/template/africastalking-send-sms-form.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sms-send-for-africas-talking/trunk/africastalking-sms.php
r3257017 r3378813 3 3 Plugin Name: SMS send for Africa's Talking 4 4 Description: Easily send single or bulk SMS messages from your WordPress site using the SMS send for Africa's Talking. Manage recipients, customize messages, and track SMS history with a secure, user-friendly interface. 5 Version: 1. 45 Version: 1.5 6 6 Author: cmetric 7 7 Author URI: https://www.c-metric.com/ … … 14 14 die( "Please don't try to access this file directly." ); 15 15 } 16 define( 'BASMS_VERSION', '1. 4' );16 define( 'BASMS_VERSION', '1.5' ); 17 17 define( 'BASMS_URL', plugin_dir_url( __FILE__ ) ); 18 18 define( 'BASMS_PATH', dirname( __FILE__ ) ); -
sms-send-for-africas-talking/trunk/assets/js/africastalking-sms-form.min.js
r3257021 r3378813 1 1 document.addEventListener("DOMContentLoaded",function(){window.showSection=function(e,t){let c=document.querySelectorAll(".form-section"),o=document.querySelectorAll(".toggle-btn");c.forEach(e=>e.classList.remove("active")),o.forEach(e=>e.classList.remove("active")),document.getElementById(e).classList.add("active"),t.classList.add("active")}}); 2 document.addEventListener("DOMContentLoaded",(function(){function e(e,t){const n=document.getElementById(e),c=document.getElementById(t);n&&n.addEventListener("input",(function(){const e=n.value.length,t=e>0?Math.ceil(e/160):0;c.textContent=`${e} characters (${t} SMS ${1===t?"segment":"segments"})`,c.style.color=t>1?"blue":"black"}))}e("message","char-count"),e("message_bulk","char-count-bulk")})); -
sms-send-for-africas-talking/trunk/includes/template/africastalking-send-sms-form.php
r3257021 r3378813 3 3 AfricasTalkingS SMS Send Template 4 4 */ 5 5 6 if ( ! defined( 'ABSPATH' ) ) { 6 7 exit; … … 20 21 $message = $response['message']; 21 22 $error = $response['error']; 22 23 } 23 } 24 24 ?> 25 25 … … 27 27 <div class="sms_main"> 28 28 <h1><?php esc_html_e( 'Send SMS', 'sms-send-for-africas-talking' ); ?></h1> 29 29 30 <?php if ( isset($error) && $error ) : ?> 30 31 <p class="error"><?php echo esc_html($error); ?></p> 31 32 <?php endif; ?> 33 32 34 <?php if ( !empty($message) ) : ?> 33 35 <p class="success"><?php echo wp_kses_post($message); ?></p> 34 36 <?php endif; ?> 37 35 38 <div class="toggle-buttons"> 36 39 <button type="button" class="toggle-btn active" onclick="showSection('single-sms-section', this)"> … … 46 49 <h2><?php esc_html_e( 'Single SMS', 'sms-send-for-africas-talking' ); ?></h2> 47 50 <form method="post"> 48 <?php wp_nonce_field( 'sms_send_action', 'sms_send_nonce' ); ?> <!-- Nonce field -->51 <?php wp_nonce_field( 'sms_send_action', 'sms_send_nonce' ); ?> 49 52 <input type="text" name="to" placeholder="<?php esc_attr_e( 'Recipient Phone Number', 'sms-send-for-africas-talking' ); ?>" value="<?php echo isset($to) ? esc_attr($to) : ''; ?>" required><br> 50 53 <input type="text" name="senderId" placeholder="<?php esc_attr_e( 'Sender ID - BSZ', 'sms-send-for-africas-talking' ); ?>" value="<?php echo isset($senderId) ? esc_attr($senderId) : ''; ?>"><br> 51 <textarea name="message" placeholder="<?php esc_attr_e( 'Message', 'sms-send-for-africas-talking' ); ?>" required></textarea><br> 52 <input type="submit" name="single_sms" value="<?php esc_attr_e( 'Send Single SMS', 'sms-send-for-africas-talking' ); ?>"> 54 <textarea name="message" id="message" placeholder="<?php esc_attr_e( 'Message', 'sms-send-for-africas-talking' ); ?>" required></textarea> 55 <p id="char-count">0 characters (0 SMS segments)</p> 56 <input type="submit" id="single_sms_submit" name="single_sms" value="<?php esc_attr_e( 'Send Single SMS', 'sms-send-for-africas-talking' ); ?>"> 53 57 </form> 54 58 </div> … … 58 62 <h2><?php esc_html_e( 'Bulk SMS', 'sms-send-for-africas-talking' ); ?></h2> 59 63 <form method="post" enctype="multipart/form-data"> 60 <?php wp_nonce_field( 'sms_send_action', 'sms_send_nonce' ); ?> <!-- Nonce field -->64 <?php wp_nonce_field( 'sms_send_action', 'sms_send_nonce' ); ?> 61 65 <input type="file" name="csv_file" accept=".csv,.txt" required><br> 62 66 <input type="text" name="senderId" placeholder="<?php esc_attr_e( 'Sender ID - BSZ', 'sms-send-for-africas-talking' ); ?>" value="<?php echo isset($senderId) ? esc_attr($senderId) : ''; ?>"><br> 63 <textarea name="message" placeholder="<?php esc_attr_e( 'Message', 'sms-send-for-africas-talking' ); ?>" required></textarea><br> 64 <input type="submit" name="bulk_sms" value="<?php esc_attr_e( 'Send Bulk SMS', 'sms-send-for-africas-talking' ); ?>"> 67 <textarea name="message" id="message_bulk" placeholder="<?php esc_attr_e( 'Message', 'sms-send-for-africas-talking' ); ?>" required></textarea> 68 <p id="char-count-bulk">0 characters (0 SMS segments)</p> 69 <input type="submit" id="bulk_sms_submit" name="bulk_sms" value="<?php esc_attr_e( 'Send Bulk SMS', 'sms-send-for-africas-talking' ); ?>"> 65 70 </form> 66 71 </div> -
sms-send-for-africas-talking/trunk/readme.txt
r3257017 r3378813 5 5 Requires at least: 5.0 6 6 Requires PHP: 7.4 7 Tested up to: 6. 78 Stable tag: 1. 47 Tested up to: 6.8 8 Stable tag: 1.5 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 93 93 = 1.4 = 94 94 * Updated the plugin final version 95 96 = 1.5 = 97 * Added: Character counter feature to the Bible SMS message editor. 98 * Users can now see the number of characters in their message as they type,
Note: See TracChangeset
for help on using the changeset viewer.