Plugin Directory

Changeset 3378813


Ignore:
Timestamp:
10/15/2025 10:49:29 AM (6 months ago)
Author:
rupeshjorkar
Message:

Updated plugin to version 1.5

Location:
sms-send-for-africas-talking/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sms-send-for-africas-talking/trunk/africastalking-sms.php

    r3257017 r3378813  
    33Plugin Name: SMS send for Africa's Talking
    44Description: 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.4
     5Version: 1.5
    66Author: cmetric
    77Author URI: https://www.c-metric.com/
     
    1414    die( "Please don't try to access this file directly." );
    1515}
    16 define( 'BASMS_VERSION', '1.4' );
     16define( 'BASMS_VERSION', '1.5' );
    1717define( 'BASMS_URL', plugin_dir_url( __FILE__ ) );
    1818define( 'BASMS_PATH', dirname( __FILE__ ) );
  • sms-send-for-africas-talking/trunk/assets/js/africastalking-sms-form.min.js

    r3257021 r3378813  
    11document.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")}});
     2document.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  
    33AfricasTalkingS SMS Send Template
    44*/
     5
    56if ( ! defined( 'ABSPATH' ) ) {
    67    exit;
     
    2021    $message = $response['message'];
    2122    $error = $response['error'];
    22 
    23 }
     23}
    2424?>
    2525
     
    2727    <div class="sms_main">
    2828        <h1><?php esc_html_e( 'Send SMS', 'sms-send-for-africas-talking' ); ?></h1>
     29
    2930        <?php if ( isset($error) && $error ) : ?>
    3031            <p class="error"><?php echo esc_html($error); ?></p>
    3132        <?php endif; ?>
     33
    3234        <?php if ( !empty($message) ) : ?>
    3335            <p class="success"><?php echo wp_kses_post($message); ?></p>
    3436        <?php endif; ?>
     37
    3538        <div class="toggle-buttons">
    3639            <button type="button" class="toggle-btn active" onclick="showSection('single-sms-section', this)">
     
    4649            <h2><?php esc_html_e( 'Single SMS', 'sms-send-for-africas-talking' ); ?></h2>
    4750            <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' ); ?>
    4952                <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>
    5053                <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' ); ?>">
    5357            </form>
    5458        </div>
     
    5862            <h2><?php esc_html_e( 'Bulk SMS', 'sms-send-for-africas-talking' ); ?></h2>
    5963            <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' ); ?>
    6165                <input type="file" name="csv_file" accept=".csv,.txt" required><br>
    6266                <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' ); ?>">
    6570            </form>
    6671        </div>
  • sms-send-for-africas-talking/trunk/readme.txt

    r3257017 r3378813  
    55Requires at least: 5.0
    66Requires PHP: 7.4
    7 Tested up to: 6.7
    8 Stable tag: 1.4
     7Tested up to: 6.8
     8Stable tag: 1.5
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    9393= 1.4 =
    9494* 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.