Plugin Directory

Changeset 3334996


Ignore:
Timestamp:
07/27/2025 09:09:01 PM (5 months ago)
Author:
beautifulplugins
Message:

Release version v1.2.0

Location:
advanced-shortcodes/trunk
Files:
6 added
13 edited

Legend:

Unmodified
Added
Removed
  • advanced-shortcodes/trunk/advanced-shortcodes.php

    r3154097 r3334996  
    44 * Plugin URI:        https://beautifulplugins.com/advanced-shortcodes/
    55 * Description:       Advanced Shortcodes is a powerful and user-friendly WordPress plugin designed to help you manage shortcodes across your website.
    6  * Version:           1.1.0
     6 * Version:           1.2.0
    77 * Requires at least: 5.0
    88 * Requires PHP:      7.4
    99 * Author:            BeautifulPlugins
    1010 * Author URI:        https://beautifulplugins.com
    11  * License:           GPL v2 or later
     11 * License:           GPLv2 or later
    1212 * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
    1313 * Text Domain:       advanced-shortcodes
     
    1616 * @package AdvancedShortcodes
    1717 *
    18  *  This program is free software; you can redistribute it and/or modify
    19  *  it under the terms of the GNU General Public License as published by
    20  *  the Free Software Foundation; either version 3 of the License, or
    21  *  (at your option) any later version.
     18 * Advanced Shortcodes is a plugin that helps you manage and use shortcodes effectively in your WordPress site.
    2219 *
    23  *  This program is distributed in the hope that it will be useful,
    24  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    25  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    26  *  GNU General Public License for more details.
     20 * Advanced Shortcodes is a free software: you can redistribute it and/or modify
     21 * it under the terms of the GNU General Public License as published by
     22 * the Free Software Foundation, either version 2 of the License, or
     23 * any later version.
     24 *
     25 * Advanced Shortcodes is distributed in the hope that it will be useful,
     26 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     27 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
     28 * GNU General Public License for more details.
     29 *
     30 * You should have received a copy of the GNU General Public License
     31 * along with Advanced Shortcodes. If not, see https://www.gnu.org/licenses/gpl-2.0.html
    2732 */
    2833
     
    3136defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
    3237
    33 /**
    34  * Autoload function.
    35  * This will autoload classes.
    36  *
    37  * @since 1.0.0
    38  */
     38// Include the optimized autoloader.
    3939require_once __DIR__ . '/vendor/autoload.php';
    4040
     
    4343 *
    4444 * @since 1.0.0
    45  * @return Plugin
     45 * @return Plugin plugin initialize class.
    4646 */
    4747function advanced_shortcodes() {
    48     return Plugin::create( __FILE__, '1.1.0' );
     48    return Plugin::create( __FILE__, '1.2.0' );
    4949}
    5050
  • advanced-shortcodes/trunk/composer.json

    r3154097 r3334996  
    77  "prefer-stable": true,
    88  "minimum-stability": "dev",
    9   "repositories": [
    10     {
    11       "url": "[email protected]:wpfresher/wpfresher-sniffs.git",
    12       "type": "github"
    13     }
    14   ],
     9  "repositories": [],
     10  "require-dev": {},
    1511  "require": {
    1612    "php": ">=7.4"
    17   },
    18   "require-dev": {
    19     "wpfresher/wpfresher-sniffs": "dev-master"
    2013  },
    2114  "autoload": {
     
    3831    "post-update-cmd": [
    3932      "composer dump-autoload"
    40     ],
    41     "phpcs": "@php ./vendor/bin/phpcs --standard=phpcs.xml -s -v",
    42     "phpcbf": "@php ./vendor/bin/phpcbf --standard=phpcs.xml -v"
     33    ]
    4334  },
    4435  "extra": {}
  • advanced-shortcodes/trunk/includes/Admin/Admin.php

    r3154089 r3334996  
    233233    public function enqueue_scripts( $hook ) {
    234234        if ( 'toplevel_page_advanced-shortcodes' === $hook || 'shortcodes_page_ascodes-settings' === $hook ) {
    235             wp_enqueue_style( 'ascodes-admin', ASCODES_URL . 'assets/css/ascodes-admin.css', array(), ASCODES_VERSION );
     235            wp_enqueue_style( 'ascodes-admin', ASCODES_URL . 'assets/css/admin.css', array(), ASCODES_VERSION );
    236236        }
    237237    }
  • advanced-shortcodes/trunk/includes/Admin/views/settings.php

    r3154097 r3334996  
    9595                        <ul>
    9696                            <li>
    97                                 <a href="https://wordpress.org/plugins/utm-manager/" target="_blank">
    98                                     <?php esc_html_e( 'UTM Manager', 'advanced-shortcodes' ); ?>
     97                                <span><i class="dashicons dashicons-arrow-right"></i></span>
     98                                <a href="https://wordpress.org/plugins/ai-content-writer/" target="_blank">
     99                                    <?php esc_html_e( 'AI Content Writer – Automatic Content Generator and Auto Poster', 'advanced-shortcodes' ); ?>
     100                                </a>
     101                            </li>
     102                            <li>
     103                                <span><i class="dashicons dashicons-arrow-right"></i></span>
     104                                <a href="https://wordpress.org/plugins/send-emails/" target="_blank">
     105                                    <?php esc_html_e( 'Send Emails – Newsletters, Automation & Email Marketing for WordPress', 'advanced-shortcodes' ); ?>
     106                                </a>
     107                            </li>
     108                            <li>
     109                                <span><i class="dashicons dashicons-arrow-right"></i></span>
     110                                <a href="https://wordpress.org/plugins/essential-elements/" target="_blank">
     111                                    <?php esc_html_e( 'Essential Elements for WordPress', 'advanced-shortcodes' ); ?>
     112                                </a>
     113                            </li>
     114                            <li>
     115                                <span><i class="dashicons dashicons-arrow-right"></i></span>
     116                                <a href="https://wordpress.org/plugins/post-showcase/" target="_blank">
     117                                    <?php esc_html_e( 'Post Showcase', 'advanced-shortcodes' ); ?>
    99118                                </a>
    100119                            </li>
  • advanced-shortcodes/trunk/includes/Plugin.php

    r3154089 r3334996  
    218218    public function enqueue_scripts() {
    219219        if ( ! is_admin() ) {
    220             wp_enqueue_style( 'ascodes-frontend', ASCODES_ASSETS_URL . 'css/ascodes-frontend.css', array(), ASCODES_VERSION );
     220            wp_enqueue_style( 'ascodes-frontend', ASCODES_ASSETS_URL . 'css/frontend.css', array(), ASCODES_VERSION );
    221221        }
    222222    }
  • advanced-shortcodes/trunk/languages/advanced-shortcodes.pot

    r3154097 r3334996  
    1 # Copyright (C) 2024 BeautifulPlugins
    2 # This file is distributed under the GPL v2 or later.
    3 msgid ""
    4 msgstr ""
    5 "Project-Id-Version: Shortcodes - Advanced Shortcode Manager 1.1.0\n"
     1# Copyright (C) 2025 BeautifulPlugins
     2# This file is distributed under the GPLv2 or later.
     3msgid ""
     4msgstr ""
     5"Project-Id-Version: Shortcodes - Advanced Shortcode Manager 1.2.0\n"
    66"Report-Msgid-Bugs-To: https://beautifulplugins.com/support/\n"
    7 "POT-Creation-Date: 2024-09-18 18:55:14+00:00\n"
     7"POT-Creation-Date: 2025-07-27 20:01:36+00:00\n"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=utf-8\n"
    1010"Content-Transfer-Encoding: 8bit\n"
    11 "PO-Revision-Date: 2024-MO-DA HO:MI+ZONE\n"
     11"PO-Revision-Date: 2025-MO-DA HO:MI+ZONE\n"
    1212"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    1313"Language-Team: LANGUAGE <[email protected]>\n"
     
    304304msgstr ""
    305305
    306 #: includes/Admin/views/settings.php:98
    307 msgid "UTM Manager"
     306#: includes/Admin/views/settings.php:99
     307msgid "AI Content Writer – Automatic Content Generator and Auto Poster"
     308msgstr ""
     309
     310#: includes/Admin/views/settings.php:105
     311msgid "Send Emails – Newsletters, Automation & Email Marketing for WordPress"
     312msgstr ""
     313
     314#: includes/Admin/views/settings.php:111
     315msgid "Essential Elements for WordPress"
     316msgstr ""
     317
     318#: includes/Admin/views/settings.php:117
     319msgid "Post Showcase"
    308320msgstr ""
    309321
  • advanced-shortcodes/trunk/readme.txt

    r3154097 r3334996  
    22Contributors: beautifulplugins
    33Tags: shortcode, shortcodes, shortcode manager, short code, advanced shortcodes
    4 Requires at least: 5.0
    5 Tested up to: 6.6
    6 Stable tag: 1.1.0
    7 Requires PHP: 7.4
     4Tested up to: 6.8
     5Stable tag: 1.2.0
    86License: GPLv2 or later
    97License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    104102
    105103== Changelog ==
     104= 1.2.0 (28 July 2024) =
     105* Fix: Resolved few minor issues.
     106* Compatibility: Updated plugin to be compatible with WordPress 6.8.
     107
    106108= 1.1.0 (19 September 2024) =
    107109* New: Updated plugin details.
  • advanced-shortcodes/trunk/vendor/autoload.php

    r3154097 r3334996  
    1515        }
    1616    }
    17     trigger_error(
    18         $err,
    19         E_USER_ERROR
    20     );
     17    throw new RuntimeException($err);
    2118}
    2219
    2320require_once __DIR__ . '/composer/autoload_real.php';
    2421
    25 return ComposerAutoloaderInit78ee5df60b0b9f566815ce0f5972f8b0::getLoader();
     22return ComposerAutoloaderInitb86b4815a43f34178d03c32bec4ff50c::getLoader();
  • advanced-shortcodes/trunk/vendor/composer/InstalledVersions.php

    r3154089 r3334996  
    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    /**
    3036     * @var mixed[]|null
    3137     * @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
    3238     */
    3339    private static $installed;
     40
     41    /**
     42     * @var bool
     43     */
     44    private static $installedIsLocalDir;
    3445
    3546    /**
     
    310321        self::$installed = $data;
    311322        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;
    312341    }
    313342
     
    323352
    324353        $installed = array();
     354        $copiedLocalDir = false;
    325355
    326356        if (self::$canGetVendors) {
     357            $selfDir = self::getSelfDir();
    327358            foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
     359                $vendorDir = strtr($vendorDir, '\\', '/');
    328360                if (isset(self::$installedByVendor[$vendorDir])) {
    329361                    $installed[] = self::$installedByVendor[$vendorDir];
     
    331363                    /** @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 */
    332364                    $required = require $vendorDir.'/composer/installed.php';
    333                     $installed[] = self::$installedByVendor[$vendorDir] = $required;
    334                     if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
    335                         self::$installed = $installed[count($installed) - 1];
     365                    self::$installedByVendor[$vendorDir] = $required;
     366                    $installed[] = $required;
     367                    if (self::$installed === null && $vendorDir.'/composer' === $selfDir) {
     368                        self::$installed = $required;
     369                        self::$installedIsLocalDir = true;
    336370                    }
     371                }
     372                if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) {
     373                    $copiedLocalDir = true;
    337374                }
    338375            }
     
    351388        }
    352389
    353         if (self::$installed !== array()) {
     390        if (self::$installed !== array() && !$copiedLocalDir) {
    354391            $installed[] = self::$installed;
    355392        }
  • advanced-shortcodes/trunk/vendor/composer/autoload_real.php

    r3154097 r3334996  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit78ee5df60b0b9f566815ce0f5972f8b0
     5class ComposerAutoloaderInitb86b4815a43f34178d03c32bec4ff50c
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit78ee5df60b0b9f566815ce0f5972f8b0', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInitb86b4815a43f34178d03c32bec4ff50c', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit78ee5df60b0b9f566815ce0f5972f8b0', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInitb86b4815a43f34178d03c32bec4ff50c', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit78ee5df60b0b9f566815ce0f5972f8b0::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInitb86b4815a43f34178d03c32bec4ff50c::getInitializer($loader));
    3333
    3434        $loader->register(true);
  • advanced-shortcodes/trunk/vendor/composer/autoload_static.php

    r3154097 r3334996  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit78ee5df60b0b9f566815ce0f5972f8b0
     7class ComposerStaticInitb86b4815a43f34178d03c32bec4ff50c
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    3434    {
    3535        return \Closure::bind(function () use ($loader) {
    36             $loader->prefixLengthsPsr4 = ComposerStaticInit78ee5df60b0b9f566815ce0f5972f8b0::$prefixLengthsPsr4;
    37             $loader->prefixDirsPsr4 = ComposerStaticInit78ee5df60b0b9f566815ce0f5972f8b0::$prefixDirsPsr4;
    38             $loader->classMap = ComposerStaticInit78ee5df60b0b9f566815ce0f5972f8b0::$classMap;
     36            $loader->prefixLengthsPsr4 = ComposerStaticInitb86b4815a43f34178d03c32bec4ff50c::$prefixLengthsPsr4;
     37            $loader->prefixDirsPsr4 = ComposerStaticInitb86b4815a43f34178d03c32bec4ff50c::$prefixDirsPsr4;
     38            $loader->classMap = ComposerStaticInitb86b4815a43f34178d03c32bec4ff50c::$classMap;
    3939
    4040        }, null, ClassLoader::class);
  • advanced-shortcodes/trunk/vendor/composer/installed.php

    r3154097 r3334996  
    22    'root' => array(
    33        'name' => 'beautifulplugins/advanced-shortcodes',
    4         'pretty_version' => 'v1.1.0',
    5         'version' => '1.1.0.0',
    6         'reference' => '1a8c17e78829bc40538c5030ec29965bb893bb73',
     4        'pretty_version' => 'v1.2.0',
     5        'version' => '1.2.0.0',
     6        'reference' => '806f3e770d2b18d7bd0e15ecaf60e415eea5f635',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'beautifulplugins/advanced-shortcodes' => array(
    14             'pretty_version' => 'v1.1.0',
    15             'version' => '1.1.0.0',
    16             'reference' => '1a8c17e78829bc40538c5030ec29965bb893bb73',
     14            'pretty_version' => 'v1.2.0',
     15            'version' => '1.2.0.0',
     16            'reference' => '806f3e770d2b18d7bd0e15ecaf60e415eea5f635',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
  • advanced-shortcodes/trunk/vendor/composer/platform_check.php

    r3154089 r3334996  
    2020        }
    2121    }
    22     trigger_error(
    23         'Composer detected issues in your platform: ' . implode(' ', $issues),
    24         E_USER_ERROR
     22    throw new \RuntimeException(
     23        'Composer detected issues in your platform: ' . implode(' ', $issues)
    2524    );
    2625}
Note: See TracChangeset for help on using the changeset viewer.