Plugin Directory

Changeset 3337465


Ignore:
Timestamp:
07/31/2025 07:05:55 PM (7 months ago)
Author:
nurwp
Message:

Update to version 1.0.4 from GitHub

Location:
trigger
Files:
10 added
4 deleted
29 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trigger/assets/banner-772*250.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • trigger/assets/icon-256*256.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • trigger/assets/screenshot-1.jpg

    • Property svn:mime-type changed from application/octet-stream to image/jpeg
  • trigger/assets/screenshot-2.jpg

    • Property svn:mime-type changed from application/octet-stream to image/jpeg
  • trigger/assets/screenshot-3.jpg

    • Property svn:mime-type changed from application/octet-stream to image/jpeg
  • trigger/assets/screenshot-4.jpg

    • Property svn:mime-type changed from application/octet-stream to image/jpeg
  • trigger/assets/screenshot-5.jpg

    • Property svn:mime-type changed from application/octet-stream to image/jpeg
  • trigger/tags/1.0.4/inc/Admin/Menu/MainMenu.php

    r3300034 r3337465  
    135135
    136136        // Register main menu.
    137         // add_submenu_page(
    138         // $this->slug(),
    139         // 'Dashboard',
    140         // 'Dashboard',
    141         // $this->capability(),
    142         // $this->slug(),
    143         // array( $this, 'view' )
    144         // );
    145 
    146         // $submenus = $this->submenu_factory();
     137        add_submenu_page(
     138            $this->slug(),
     139            'Dashboard',
     140            'Dashboard',
     141            $this->capability(),
     142            $this->slug(),
     143            array( $this, 'view' )
     144        );
     145
     146        // Email Builder submenu
     147        add_submenu_page(
     148            $this->slug(),
     149            __( 'Email Builder', 'trigger' ),
     150            __( 'Email Builder', 'trigger' ),
     151            $this->capability(),
     152            $this->slug() . '-email-builder',
     153            array( $this, 'email_builder_view' )
     154        );
    147155
    148156        // $email_logs_submenu = new EmailLogs();
     
    151159        // $email_logs_submenu->page_title(),
    152160        // $email_logs_submenu->menu_title(),
    153         // $email_logs_submenu->capability(),
     161        // $this->capability(),
    154162        // $email_logs_submenu->slug(),
    155163        // array( $this, 'view' )
    156164        // );
    157165
    158         // // Register sub-menus.
     166        // Register sub-menus.
    159167        // $settings_submenu = new Settings();
    160168        // add_submenu_page(
     
    162170        // $settings_submenu->page_title(),
    163171        // $settings_submenu->menu_title(),
    164         // $settings_submenu->capability(),
     172        // $this->capability(),
    165173        // $settings_submenu->slug(),
    166174        // array( $this, 'view' )
     
    190198     */
    191199    public function view() {
    192         $dpage = trailingslashit( $this->plugin_data['views'] . 'pages' ) . 'trigger-view.php';
    193200        include trailingslashit( $this->plugin_data['views'] . 'pages' ) . 'trigger-view.php';
    194201    }
     202
     203    /**
     204     * Page view
     205     *
     206     * @return void
     207     */
     208    public function email_builder_view() {
     209        include trailingslashit( $this->plugin_data['views'] . 'pages' ) . 'email-builder-view.php';
     210    }
    195211}
  • trigger/tags/1.0.4/inc/Core/Enqueue.php

    r3300034 r3337465  
    4646        $trigger_style_bundle = $plugin_data['plugin_url'] . 'assets/dist/css/style.min.css';
    4747        $trigger_admin_bundle = $plugin_data['plugin_url'] . 'assets/dist/js/backend-bundle.min.js';
     48        $trigger_email_bundle = $plugin_data['plugin_url'] . 'assets/dist/js/email-builder-bundle.min.js';
    4849
    4950        if ( 'toplevel_page_trigger' === $page ) {
     
    6465            wp_add_inline_script(
    6566                'trigger-admin',
     67                'const _triggerObject = ' . wp_json_encode( self::scripts_data() ) . ';window._triggerObject=_triggerObject',
     68                'before'
     69            );
     70        }
     71
     72        if ( 'trigger_page_trigger-email-builder' === $page ) {
     73            wp_enqueue_style(
     74                'trigger-style',
     75                $trigger_style_bundle,
     76                array(),
     77                TRIGGER_VERSION,
     78                'all'
     79            );
     80            wp_enqueue_script(
     81                'trigger-email-builder',
     82                $trigger_email_bundle,
     83                array( 'wp-element', 'wp-i18n' ),
     84                TRIGGER_VERSION,
     85                true
     86            );
     87            wp_add_inline_script(
     88                'trigger-email-builder',
    6689                'const _triggerObject = ' . wp_json_encode( self::scripts_data() ) . ';window._triggerObject=_triggerObject',
    6790                'before'
  • trigger/tags/1.0.4/inc/Database/Migration.php

    r3300034 r3337465  
    3030        $tables = array(
    3131            new EmailLogTable(),
     32            new EmailTemplateTable(),
    3233        );
    3334
  • trigger/tags/1.0.4/inc/Init.php

    r3300034 r3337465  
    2323use Trigger\Frontend\CustomTemplate;
    2424use Trigger\RestAPI\Routes;
     25use Trigger\Services\EmailBuilder\EmailBuilderInit;
    2526
    2627/**
  • trigger/tags/1.0.4/languages/trigger.pot

    r3335448 r3337465  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Trigger SMTP, Mail Logs, Deliver Mails 1.0.3\n"
     5"Project-Id-Version: Trigger SMTP, Mail Logs, Deliver Mails 1.0.4\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/trigger\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-07-28T15:04:17+00:00\n"
     12"POT-Creation-Date: 2025-07-31T19:05:16+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
     
    3838#: inc/Admin/Menu/MainMenu.php:75
    3939msgid "Trigger"
     40msgstr ""
     41
     42#: inc/Admin/Menu/MainMenu.php:149
     43#: inc/Admin/Menu/MainMenu.php:150
     44msgid "Email Builder"
    4045msgstr ""
    4146
  • trigger/tags/1.0.4/readme.txt

    r3335448 r3337465  
    55Tested up to: 6.8
    66Requires PHP: 7.4
    7 Stable tag: 1.0.3
     7Stable tag: 1.0.4
    88License: GPLv3 or later
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    2626== Changelog ==
    2727
     28= 1.0.4 - June 4, 2025
     29
     30New: Github workflow added
     31
    2832= 1.0.3 - June 4, 2025
    2933
    3034New: Email logs sorting by status, provider, date
    31 
    32 = 1.0.2 - June 4, 2025
    33 
    34 New: Resend mail option in Email List
    3535
    3636= 1.0.2 - June 4, 2025
  • trigger/tags/1.0.4/triggermail.php

    r3335448 r3337465  
    22/**
    33 * Plugin Name: Trigger SMTP, Mail Logs, Deliver Mails
    4  * Version: 1.0.3
     4 * Version: 1.0.4
    55 * Requires at least: 5.3
    66 * Requires PHP: 7.4
  • trigger/tags/1.0.4/tsconfig.json

    r3300034 r3337465  
    11{
    2     "baseUrl": "./src/",
    32    "compilerOptions": {
    43        "target": "ES6",
     
    1413        "forceConsistentCasingInFileNames": true,
    1514        "typeRoots": ["./node_modules/@types/", "./assets/react/@types"],
     15        "baseUrl": ".",
    1616        "paths": {
    1717            "@/*": ["./src/*"],
     
    2222            "@hooks": ["./src/hooks"],
    2323            "@pages/*": ["./src/pages/*"],
     24            "@email-builder/*": ["./src/entries/email-builder/*"]
    2425        }
    2526    },
  • trigger/tags/1.0.4/vendor/autoload.php

    r3300034 r3337465  
    1515        }
    1616    }
    17     throw new RuntimeException($err);
     17    trigger_error(
     18        $err,
     19        E_USER_ERROR
     20    );
    1821}
    1922
  • trigger/tags/1.0.4/vendor/composer/InstalledVersions.php

    r3300034 r3337465  
    2828{
    2929    /**
    30      * @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to
    31      * @internal
    32      */
    33     private static $selfDir = null;
    34 
    35     /**
    3630     * @var mixed[]|null
    3731     * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null
    3832     */
    3933    private static $installed;
    40 
    41     /**
    42      * @var bool
    43      */
    44     private static $installedIsLocalDir;
    4534
    4635    /**
     
    321310        self::$installed = $data;
    322311        self::$installedByVendor = array();
    323 
    324         // when using reload, we disable the duplicate protection to ensure that self::$installed data is
    325         // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not,
    326         // so we have to assume it does not, and that may result in duplicate data being returned when listing
    327         // all installed packages for example
    328         self::$installedIsLocalDir = false;
    329     }
    330 
    331     /**
    332      * @return string
    333      */
    334     private static function getSelfDir()
    335     {
    336         if (self::$selfDir === null) {
    337             self::$selfDir = strtr(__DIR__, '\\', '/');
    338         }
    339 
    340         return self::$selfDir;
    341312    }
    342313
     
    352323
    353324        $installed = array();
    354         $copiedLocalDir = false;
    355325
    356326        if (self::$canGetVendors) {
    357             $selfDir = self::getSelfDir();
    358327            foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
    359                 $vendorDir = strtr($vendorDir, '\\', '/');
    360328                if (isset(self::$installedByVendor[$vendorDir])) {
    361329                    $installed[] = self::$installedByVendor[$vendorDir];
     
    363331                    /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
    364332                    $required = require $vendorDir.'/composer/installed.php';
    365                     self::$installedByVendor[$vendorDir] = $required;
    366                     $installed[] = $required;
    367                     if (self::$installed === null && $vendorDir.'/composer' === $selfDir) {
    368                         self::$installed = $required;
    369                         self::$installedIsLocalDir = true;
     333                    $installed[] = self::$installedByVendor[$vendorDir] = $required;
     334                    if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
     335                        self::$installed = $installed[count($installed) - 1];
    370336                    }
    371                 }
    372                 if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) {
    373                     $copiedLocalDir = true;
    374337                }
    375338            }
     
    388351        }
    389352
    390         if (self::$installed !== array() && !$copiedLocalDir) {
     353        if (self::$installed !== array()) {
    391354            $installed[] = self::$installed;
    392355        }
  • trigger/tags/1.0.4/vendor/composer/LICENSE

    r3300034 r3337465  
    1 
    21Copyright (c) Nils Adermann, Jordi Boggiano
    32
     
    1918OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    2019THE SOFTWARE.
    21 
  • trigger/trunk/inc/Admin/Menu/MainMenu.php

    r3300034 r3337465  
    135135
    136136        // Register main menu.
    137         // add_submenu_page(
    138         // $this->slug(),
    139         // 'Dashboard',
    140         // 'Dashboard',
    141         // $this->capability(),
    142         // $this->slug(),
    143         // array( $this, 'view' )
    144         // );
    145 
    146         // $submenus = $this->submenu_factory();
     137        add_submenu_page(
     138            $this->slug(),
     139            'Dashboard',
     140            'Dashboard',
     141            $this->capability(),
     142            $this->slug(),
     143            array( $this, 'view' )
     144        );
     145
     146        // Email Builder submenu
     147        add_submenu_page(
     148            $this->slug(),
     149            __( 'Email Builder', 'trigger' ),
     150            __( 'Email Builder', 'trigger' ),
     151            $this->capability(),
     152            $this->slug() . '-email-builder',
     153            array( $this, 'email_builder_view' )
     154        );
    147155
    148156        // $email_logs_submenu = new EmailLogs();
     
    151159        // $email_logs_submenu->page_title(),
    152160        // $email_logs_submenu->menu_title(),
    153         // $email_logs_submenu->capability(),
     161        // $this->capability(),
    154162        // $email_logs_submenu->slug(),
    155163        // array( $this, 'view' )
    156164        // );
    157165
    158         // // Register sub-menus.
     166        // Register sub-menus.
    159167        // $settings_submenu = new Settings();
    160168        // add_submenu_page(
     
    162170        // $settings_submenu->page_title(),
    163171        // $settings_submenu->menu_title(),
    164         // $settings_submenu->capability(),
     172        // $this->capability(),
    165173        // $settings_submenu->slug(),
    166174        // array( $this, 'view' )
     
    190198     */
    191199    public function view() {
    192         $dpage = trailingslashit( $this->plugin_data['views'] . 'pages' ) . 'trigger-view.php';
    193200        include trailingslashit( $this->plugin_data['views'] . 'pages' ) . 'trigger-view.php';
    194201    }
     202
     203    /**
     204     * Page view
     205     *
     206     * @return void
     207     */
     208    public function email_builder_view() {
     209        include trailingslashit( $this->plugin_data['views'] . 'pages' ) . 'email-builder-view.php';
     210    }
    195211}
  • trigger/trunk/inc/Core/Enqueue.php

    r3300034 r3337465  
    4646        $trigger_style_bundle = $plugin_data['plugin_url'] . 'assets/dist/css/style.min.css';
    4747        $trigger_admin_bundle = $plugin_data['plugin_url'] . 'assets/dist/js/backend-bundle.min.js';
     48        $trigger_email_bundle = $plugin_data['plugin_url'] . 'assets/dist/js/email-builder-bundle.min.js';
    4849
    4950        if ( 'toplevel_page_trigger' === $page ) {
     
    6465            wp_add_inline_script(
    6566                'trigger-admin',
     67                'const _triggerObject = ' . wp_json_encode( self::scripts_data() ) . ';window._triggerObject=_triggerObject',
     68                'before'
     69            );
     70        }
     71
     72        if ( 'trigger_page_trigger-email-builder' === $page ) {
     73            wp_enqueue_style(
     74                'trigger-style',
     75                $trigger_style_bundle,
     76                array(),
     77                TRIGGER_VERSION,
     78                'all'
     79            );
     80            wp_enqueue_script(
     81                'trigger-email-builder',
     82                $trigger_email_bundle,
     83                array( 'wp-element', 'wp-i18n' ),
     84                TRIGGER_VERSION,
     85                true
     86            );
     87            wp_add_inline_script(
     88                'trigger-email-builder',
    6689                'const _triggerObject = ' . wp_json_encode( self::scripts_data() ) . ';window._triggerObject=_triggerObject',
    6790                'before'
  • trigger/trunk/inc/Database/Migration.php

    r3300034 r3337465  
    3030        $tables = array(
    3131            new EmailLogTable(),
     32            new EmailTemplateTable(),
    3233        );
    3334
  • trigger/trunk/inc/Init.php

    r3300034 r3337465  
    2323use Trigger\Frontend\CustomTemplate;
    2424use Trigger\RestAPI\Routes;
     25use Trigger\Services\EmailBuilder\EmailBuilderInit;
    2526
    2627/**
  • trigger/trunk/languages/trigger.pot

    r3335448 r3337465  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Trigger SMTP, Mail Logs, Deliver Mails 1.0.3\n"
     5"Project-Id-Version: Trigger SMTP, Mail Logs, Deliver Mails 1.0.4\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/trigger\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-07-28T15:04:17+00:00\n"
     12"POT-Creation-Date: 2025-07-31T19:05:16+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
     
    3838#: inc/Admin/Menu/MainMenu.php:75
    3939msgid "Trigger"
     40msgstr ""
     41
     42#: inc/Admin/Menu/MainMenu.php:149
     43#: inc/Admin/Menu/MainMenu.php:150
     44msgid "Email Builder"
    4045msgstr ""
    4146
  • trigger/trunk/readme.txt

    r3335448 r3337465  
    55Tested up to: 6.8
    66Requires PHP: 7.4
    7 Stable tag: 1.0.3
     7Stable tag: 1.0.4
    88License: GPLv3 or later
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    2626== Changelog ==
    2727
     28= 1.0.4 - June 4, 2025
     29
     30New: Github workflow added
     31
    2832= 1.0.3 - June 4, 2025
    2933
    3034New: Email logs sorting by status, provider, date
    31 
    32 = 1.0.2 - June 4, 2025
    33 
    34 New: Resend mail option in Email List
    3535
    3636= 1.0.2 - June 4, 2025
  • trigger/trunk/triggermail.php

    r3335448 r3337465  
    22/**
    33 * Plugin Name: Trigger SMTP, Mail Logs, Deliver Mails
    4  * Version: 1.0.3
     4 * Version: 1.0.4
    55 * Requires at least: 5.3
    66 * Requires PHP: 7.4
  • trigger/trunk/tsconfig.json

    r3300034 r3337465  
    11{
    2     "baseUrl": "./src/",
    32    "compilerOptions": {
    43        "target": "ES6",
     
    1413        "forceConsistentCasingInFileNames": true,
    1514        "typeRoots": ["./node_modules/@types/", "./assets/react/@types"],
     15        "baseUrl": ".",
    1616        "paths": {
    1717            "@/*": ["./src/*"],
     
    2222            "@hooks": ["./src/hooks"],
    2323            "@pages/*": ["./src/pages/*"],
     24            "@email-builder/*": ["./src/entries/email-builder/*"]
    2425        }
    2526    },
  • trigger/trunk/vendor/autoload.php

    r3300034 r3337465  
    1515        }
    1616    }
    17     throw new RuntimeException($err);
     17    trigger_error(
     18        $err,
     19        E_USER_ERROR
     20    );
    1821}
    1922
  • trigger/trunk/vendor/composer/InstalledVersions.php

    r3300034 r3337465  
    2828{
    2929    /**
    30      * @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to
    31      * @internal
    32      */
    33     private static $selfDir = null;
    34 
    35     /**
    3630     * @var mixed[]|null
    3731     * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null
    3832     */
    3933    private static $installed;
    40 
    41     /**
    42      * @var bool
    43      */
    44     private static $installedIsLocalDir;
    4534
    4635    /**
     
    321310        self::$installed = $data;
    322311        self::$installedByVendor = array();
    323 
    324         // when using reload, we disable the duplicate protection to ensure that self::$installed data is
    325         // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not,
    326         // so we have to assume it does not, and that may result in duplicate data being returned when listing
    327         // all installed packages for example
    328         self::$installedIsLocalDir = false;
    329     }
    330 
    331     /**
    332      * @return string
    333      */
    334     private static function getSelfDir()
    335     {
    336         if (self::$selfDir === null) {
    337             self::$selfDir = strtr(__DIR__, '\\', '/');
    338         }
    339 
    340         return self::$selfDir;
    341312    }
    342313
     
    352323
    353324        $installed = array();
    354         $copiedLocalDir = false;
    355325
    356326        if (self::$canGetVendors) {
    357             $selfDir = self::getSelfDir();
    358327            foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
    359                 $vendorDir = strtr($vendorDir, '\\', '/');
    360328                if (isset(self::$installedByVendor[$vendorDir])) {
    361329                    $installed[] = self::$installedByVendor[$vendorDir];
     
    363331                    /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
    364332                    $required = require $vendorDir.'/composer/installed.php';
    365                     self::$installedByVendor[$vendorDir] = $required;
    366                     $installed[] = $required;
    367                     if (self::$installed === null && $vendorDir.'/composer' === $selfDir) {
    368                         self::$installed = $required;
    369                         self::$installedIsLocalDir = true;
     333                    $installed[] = self::$installedByVendor[$vendorDir] = $required;
     334                    if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
     335                        self::$installed = $installed[count($installed) - 1];
    370336                    }
    371                 }
    372                 if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) {
    373                     $copiedLocalDir = true;
    374337                }
    375338            }
     
    388351        }
    389352
    390         if (self::$installed !== array() && !$copiedLocalDir) {
     353        if (self::$installed !== array()) {
    391354            $installed[] = self::$installed;
    392355        }
  • trigger/trunk/vendor/composer/LICENSE

    r3300034 r3337465  
    1 
    21Copyright (c) Nils Adermann, Jordi Boggiano
    32
     
    1918OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    2019THE SOFTWARE.
    21 
Note: See TracChangeset for help on using the changeset viewer.