Plugin Directory

Changeset 3377092


Ignore:
Timestamp:
10/12/2025 08:42:05 PM (6 months ago)
Author:
yournotify
Message:

v1.1.7: stable release (Subscriber Form + SMTP tabs, fixed save, preconfigured smtp.yournotify.com:587 TLS).

Location:
yournotify/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • yournotify/trunk/includes/class-yournotify-optin.php

    r3242205 r3377092  
    1212
    1313    public function register_shortcodes() {
    14         add_shortcode('yournotify_optin_form', array($this, 'render_optin_form'));
     14        add_shortcode('yournotify_subscribe', array($this, 'render_optin_form'));
    1515    }
    1616
  • yournotify/trunk/readme.txt

    r3377085 r3377092  
    44Requires at least: 4.6
    55Tested up to: 6.7
    6 Stable tag: 1.1.6
     6Stable tag: 1.1.7
    77License: GPLv3 or later
    88
  • yournotify/trunk/yournotify.php

    r3377085 r3377092  
    44 * Plugin URI: https://yournotify.com
    55 * Description: Yournotify WP Plugin to power your email and sms marketing communications with features to support (WooCommerce, Automation, SMTP, Subscriber Form)
    6  * Version: 1.1.6
     6 * Version: 1.1.7
    77 * Author: Yournotify
    88 * Author URI: https://yournotify.com
     
    9595new Yournotify_Subscription();
    9696
    97 // load settings definition early so register_setting hooks attach before admin_init
     97
    9898require_once __DIR__ . '/admin-settings-tabbed.php';
     99require_once __DIR__ . '/admin-settings-router.php';
    99100
    100 // router renders the UI
    101 require_once __DIR__ . '/admin-settings-router.php';
     101add_action('init', function () {
     102    if (function_exists('shortcode_exists') && function_exists('do_shortcode') && !shortcode_exists('yournotify_subscribe')) {
     103        add_shortcode('yournotify_subscribe', function($atts = [], $content = '') {
     104            if (shortcode_exists('yournotify_optin_form')) {
     105                $pairs = [];
     106                foreach ($atts as $k=>$v) { $pairs[] = $k.'="'.esc_attr($v).'"'; }
     107                $attr = $pairs ? ' ' . implode(' ', $pairs) : '';
     108                return do_shortcode('[yournotify_optin_form' . $attr . ']');
     109            }
     110            return '<div class="yournotify-subscribe-error">Yournotify subscribe form not available.</div>';
     111        });
     112    }
     113});
Note: See TracChangeset for help on using the changeset viewer.