Plugin Directory

Changeset 3145166


Ignore:
Timestamp:
09/02/2024 08:40:04 AM (17 months ago)
Author:
grandplugins
Message:
  • Tested with the latest WP version
Location:
watermark-images-for-wp-and-woo-grandpluginswp/trunk
Files:
4 added
15 edited

Legend:

Unmodified
Added
Removed
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/gpls-wmfw-watermark-image-for-wordpress.php

    r2966022 r3145166  
    44
    55/**
    6  * Plugin Name:  Grand Watermark Images [[GrandPlugins]]
    7  * Description:  Add Text and Image watermarks to your images in your WordPress website
    8  * Author:       GrandPlugins
    9  * Author URI:   https://profiles.wordpress.org/grandplugins/
    10  * Plugin URI:   https://grandplugins.com/product/wp-images-watermark/
    11  * Domain Path:  /languages
    12  * Requires PHP: 7.0
    13  * Text Domain:  watermark-images-for-wp-and-woo-grandpluginswp
    14  * Std Name:     gpls-wmfw-watermark-image-for-wordpress
    15  * Version:      1.1.6
     6 * Plugin Name:       Grand Watermark Images [[GrandPlugins]]
     7 * Description:       Add Text and Image watermarks to your images in your WordPress website
     8 * Author:            GrandPlugins
     9 * Author URI:        https://profiles.wordpress.org/grandplugins/
     10 * Plugin URI:        https://grandplugins.com/product/wp-images-watermark/
     11 * Domain Path:       /languages
     12 * Requires at least: 5.6
     13 * Requires PHP:      7.0
     14 * Text Domain:       watermark-images-for-wp-and-woo-grandpluginswp
     15 * Std Name:          gpls-wmfw-watermark-image-for-wordpress
     16 * Version:           1.1.7
    1617 */
    1718
     
    163164            Watermark_Base::init( self::$plugin_info );
    164165            Image_Watermark::init( self::$plugin_info );
     166            MasterStudyLMS::init( self::$core, self::$plugin_info );
     167            WooImageWatermark::init( self::$core, self::$plugin_info );
    165168        }
    166169
     
    181184         */
    182185        public function load_languages() {
    183             load_plugin_textdomain( self::$plugin_info['text_domain'], false, self::$plugin_info['path'] . 'languages/' );
     186            load_plugin_textdomain( self::$plugin_info['text_domain'], false, trailingslashit( dirname( self::$plugin_info['basename'] ) ) . 'languages/' );
    184187        }
    185188
     
    219222                'localize_var'      => str_replace( '-', '_', $plugin_data['SName'] ) . '_localize_data',
    220223                'type'              => 'free',
     224                'prefix'            => 'gpls-wmfw',
    221225                'general_prefix'    => 'gpls-plugins-general-prefix',
    222226                'classes_prefix'    => 'gpls-wmfw',
     227                'classes_general'   => 'gpls-general',
    223228                'pro_link'          => 'https://grandplugins.com/product/wp-images-watermark?utm_source=free_plugin&utm_medium=wp&utm_campaign=ref',
    224229                'review_link'       => 'https://wordpress.org/support/plugin/watermark-images-for-wp-and-woo-grandpluginswp/reviews/#new-post',
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/includes/Settings.php

    r2914099 r3145166  
    7272     *
    7373     * @param object $core Core Object.
    74      * @param object $plugin_info Plugin Info Object.
     74     * @param array $plugin_info Plugin Info Object.
    7575     */
    7676    public function __construct( $core, $plugin_info ) {
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/includes/class-watermarks-templates.php

    r2953808 r3145166  
    22namespace GPLSCore\GPLS_PLUGIN_WMFW;
    33
     4defined( 'ABSPATH' ) || exit;
     5
    46use GPLSCore\GPLS_PLUGIN_WMFW\Image_Watermark;
    57use GPLSCore\GPLS_PLUGIN_WMFW\Apply_Watermarks_Queries;
     8use GPLSCore\GPLS_PLUGIN_WMFW\Utils\WatermarkUtilsTrait;
    69
    710/**
     
    912 */
    1013class Watermarks_Templates {
     14
     15    use WatermarkUtilsTrait;
    1116
    1217    /**
     
    545550     * @return void
    546551     */
    547     public static function watermark_specs( $watermark_data = array(), $is_placeholder = false ) {
     552    public static function watermark_specs( $watermark_data = array(), $is_placeholder = false, $context = 'create' ) {
    548553        $plugin_info     = self::$plugin_info;
     554        $core            = self::$core;
    549555        $available_fonts = Image_Watermark::get_available_fonts( true );
    550556        include self::$plugin_info['path'] . 'templates/watermark-specs-template-metabox.php';
     
    749755    public static function get_watermark_templates( $include_watermarks = true ) {
    750756        $watermarks_templates = array();
    751         $templates_query      = new \WP_Query(
     757        $templates            = get_posts(
    752758            array(
    753759                'post_type'   => self::$post_type_key,
     
    755761            )
    756762        );
    757         if ( $templates_query->have_posts() ) {
    758             while ( $templates_query->have_posts() ) {
    759                 $templates_query->the_post();
    760                 $template_id                          = get_the_ID();
    761                 $watermarks_templates[ $template_id ] = array(
    762                     'id'    => $template_id,
    763                     'title' => get_the_title(),
    764                 );
    765                 if ( $include_watermarks ) {
    766                     $watermarks_templates[ $template_id ]['watermarks'] = self::get_template_watermarks( $template_id );
    767                 }
    768             }
    769             wp_reset_postdata();
     763        foreach ( $templates as $template ) {
     764            $template_id                          = $template->ID;
     765            $watermarks_templates[ $template_id ] = array(
     766                'id'    => $template_id,
     767                'title' => get_the_title( $template_id ),
     768            );
     769
     770            if ( $include_watermarks ) {
     771                $watermarks_templates[ $template_id ]['watermarks'] = self::get_template_watermarks( $template_id );
     772            }
    770773        }
    771774        return $watermarks_templates;
     775    }
     776
     777    /**
     778     * Watermarks Text meta select.
     779     * @return void
     780     */
     781    public static function watermarks_text_meta_select( $watermark_data = array() ) {
     782        $dynamic_fields = self::get_dynamic_keys();
     783        ?>
     784        <div class="<?php echo esc_attr( self::$plugin_info['classes_prefix'] . '-disabled' ); ?>">
     785            <select class="watermark-dynamic-data-field" data-watermarkid="<?php echo esc_attr( ! empty( $watermark_data ) ? $watermark_data['id'] : '' ); ?>" data-type="dynamic" class="edit edit-dynamic-data-field watermark-dynamic-data-field mt-1">
     786                <option selected value=""><?php esc_html_e( '--- Select data field ---', 'gpls-wmfw-watermark-image-for-wordpress' ); ?></option>
     787       
     788                <?php foreach ( $dynamic_fields as $dynamic_group_key => $group_arr ) : ?>
     789                <optgroup label="<?php echo esc_html( $group_arr['title'] ); ?>" >
     790                    <?php foreach ( $group_arr['keys'] as $group_arr_key ) : ?>
     791                        <option value="<?php echo esc_attr( '{{' . $group_arr['prefix'] . $group_arr_key . '}}' ); ?>"><?php echo esc_attr( $group_arr_key ); ?></option>
     792                    <?php endforeach; ?>
     793                </optgroup>
     794                <?php endforeach; ?>
     795            </select>
     796        </div>
     797        <?php
    772798    }
    773799
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/languages/watermark-images-for-wp-and-woo-grandpluginswp.pot

    r2914099 r3145166  
    1 # Copyright (C) 2023 GrandPlugins
    2 # This file is distributed under the same license as the Grand Watermark Images [GrandPlugins] plugin.
     1# Copyright (C) 2024 GrandPlugins
     2# This file is distributed under the same license as the Grand Watermark Images [[GrandPlugins]] plugin.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Grand Watermark Images [GrandPlugins] 1.1.3\n"
     5"Project-Id-Version: Grand Watermark Images [[GrandPlugins]] 1.1.7\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/gpls-wmfw-watermark-images-for-wordpress-pro\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: 2023-05-18T07:09:02+00:00\n"
     12"POT-Creation-Date: 2024-09-02T08:29:27+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    14 "X-Generator: WP-CLI 2.6.0\n"
     14"X-Generator: WP-CLI 2.10.0\n"
    1515"X-Domain: watermark-images-for-wp-and-woo-grandpluginswp\n"
    1616
    1717#. Plugin Name of the plugin
    18 msgid "Grand Watermark Images [GrandPlugins]"
     18#: C:\laragon\www\WatermarkImages\wp-content\plugins\gpls-wmfw-watermark-images-for-wordpress-pro\gpls-wmfw-watermark-image-for-wordpress.php
     19msgid "Grand Watermark Images [[GrandPlugins]]"
    1920msgstr ""
    2021
    2122#. Plugin URI of the plugin
     23#: C:\laragon\www\WatermarkImages\wp-content\plugins\gpls-wmfw-watermark-images-for-wordpress-pro\gpls-wmfw-watermark-image-for-wordpress.php
    2224msgid "https://grandplugins.com/product/wp-images-watermark/"
    2325msgstr ""
    2426
    2527#. Description of the plugin
     28#: C:\laragon\www\WatermarkImages\wp-content\plugins\gpls-wmfw-watermark-images-for-wordpress-pro\gpls-wmfw-watermark-image-for-wordpress.php
    2629msgid "Add Text and Image watermarks to your images in your WordPress website"
    2730msgstr ""
    2831
    2932#. Author of the plugin
     33#: C:\laragon\www\WatermarkImages\wp-content\plugins\gpls-wmfw-watermark-images-for-wordpress-pro\gpls-wmfw-watermark-image-for-wordpress.php
    3034msgid "GrandPlugins"
    3135msgstr ""
    3236
    3337#. Author URI of the plugin
     38#: C:\laragon\www\WatermarkImages\wp-content\plugins\gpls-wmfw-watermark-images-for-wordpress-pro\gpls-wmfw-watermark-image-for-wordpress.php
    3439msgid "https://profiles.wordpress.org/grandplugins/"
    3540msgstr ""
     
    3742#: includes/class-apply-watermarks-templates.php:128
    3843#: includes/class-single-apply-watermarks.php:102
    39 #: includes/class-watermarks-templates.php:272
     44#: includes/class-watermarks-templates.php:277
    4045#: includes/Settings.php:139
    4146msgid "Select images"
     
    4348
    4449#: includes/class-apply-watermarks-templates.php:129
    45 #: includes/class-watermarks-templates.php:273
     50#: includes/class-watermarks-templates.php:278
    4651msgid "Preview Image"
    4752msgstr ""
    4853
    4954#: includes/class-apply-watermarks-templates.php:130
    50 #: includes/class-watermarks-templates.php:274
     55#: includes/class-watermarks-templates.php:279
    5156#: templates/create-watermarks-template-metabox.php:22
    5257msgid "Select Preview Image"
     
    5560#: includes/class-apply-watermarks-templates.php:131
    5661#: includes/class-single-apply-watermarks.php:104
    57 #: includes/class-watermarks-templates.php:275
     62#: includes/class-watermarks-templates.php:280
    5863msgid "Select Watermark"
    5964msgstr ""
     
    6166#: includes/class-apply-watermarks-templates.php:132
    6267#: includes/class-single-apply-watermarks.php:105
    63 #: includes/class-watermarks-templates.php:276
     68#: includes/class-watermarks-templates.php:281
    6469msgid "Choose Watermark"
    6570msgstr ""
     
    6772#: includes/class-apply-watermarks-templates.php:133
    6873#: includes/class-single-apply-watermarks.php:107
    69 #: includes/class-watermarks-templates.php:279
     74#: includes/class-watermarks-templates.php:284
    7075msgid "Search Term"
    7176msgstr ""
     
    9297msgstr ""
    9398
    94 #: includes/class-apply-watermarks-templates.php:211
     99#: includes/class-apply-watermarks-templates.php:216
    95100#: includes/class-single-apply-watermarks.php:197
    96 #: includes/class-watermarks-templates.php:391
     101#: includes/class-watermarks-templates.php:396
    97102msgid "The link has expired, please refresh the page!"
    98103msgstr ""
    99104
    100 #: includes/class-apply-watermarks-templates.php:248
     105#: includes/class-apply-watermarks-templates.php:261
    101106#: includes/class-single-apply-watermarks.php:235
    102107msgid "Failed to create watermarked image file!"
    103108msgstr ""
    104109
    105 #: includes/class-apply-watermarks-templates.php:264
     110#: includes/class-apply-watermarks-templates.php:277
    106111#: includes/class-single-apply-watermarks.php:251
    107112msgid "Failed to create watermarked attachment!"
    108113msgstr ""
    109114
    110 #: includes/class-gd-image.php:197
    111 msgid "GIF is not supported"
    112 msgstr ""
    113 
    114 #: includes/class-gd-image.php:206
    115 #: includes/class-gd-image.php:218
    116 #: includes/class-gd-image.php:230
    117 msgid "File is not valid %s"
    118 msgstr ""
    119 
    120 #: includes/class-gd-image.php:238
    121 msgid "File is not supported"
    122 msgstr ""
    123 
    124115#: includes/class-image-edit-page.php:68
    125116msgid "Subsizes"
    126117msgstr ""
    127118
    128 #: includes/class-image-edit-page.php:196
     119#: includes/class-image-edit-page.php:198
    129120msgid "Restore selected size from the original image, proceed?"
    130121msgstr ""
    131122
    132 #: includes/class-image-edit-page.php:197
     123#: includes/class-image-edit-page.php:199
    133124msgid "Backup image will be deleted, proceed?"
    134125msgstr ""
    135126
    136 #: includes/class-image.php:49
     127#: includes/class-image.php:38
    137128msgid "Image file does not exist %s"
    138129msgstr ""
    139130
    140 #: includes/class-image.php:110
     131#: includes/class-image.php:99
    141132msgid "Image file sub-size: %s not found!"
    142133msgstr ""
    143134
    144 #: includes/class-image.php:117
     135#: includes/class-image.php:106
    145136msgid "image file %s not found!"
    146137msgstr ""
    147138
    148139#: includes/class-single-apply-watermarks.php:101
    149 #: includes/class-watermarks-templates.php:271
     140#: includes/class-watermarks-templates.php:276
    150141msgid "Watermark"
    151142msgstr ""
     
    156147
    157148#: includes/class-single-apply-watermarks.php:106
    158 #: includes/class-watermarks-templates.php:277
     149#: includes/class-watermarks-templates.php:282
    159150msgid "The selected watermark is bigger than the image"
    160151msgstr ""
    161152
    162153#: includes/class-single-apply-watermarks.php:108
    163 #: includes/class-watermarks-templates.php:280
     154#: includes/class-watermarks-templates.php:285
    164155msgid "Search Terms"
    165156msgstr ""
     
    170161
    171162#: includes/class-single-apply-watermarks.php:110
    172 #: includes/class-watermarks-templates.php:282
     163#: includes/class-watermarks-templates.php:287
    173164msgid "You are about to remove a watermark, confirm?"
    174165msgstr ""
     
    186177msgstr ""
    187178
    188 #: includes/class-watermark-base.php:104
     179#: includes/class-watermark-base.php:105
    189180msgid "Preview Image is expired, Please click on Preview Watermarks button again!"
    190181msgstr ""
    191182
    192 #: includes/class-watermark-base.php:123
     183#: includes/class-watermark-base.php:124
    193184msgid "Unable to connect to the filesystem"
    194185msgstr ""
    195186
    196 #: includes/class-watermark-base.php:133
     187#: includes/class-watermark-base.php:134
    197188msgid "Unable to save the preview image"
    198189msgstr ""
    199190
    200 #: includes/class-watermark-base.php:165
     191#: includes/class-watermark-base.php:166
    201192msgid "Failed to create watermarked image!"
    202193msgstr ""
    203194
    204 #: includes/class-watermarks-templates.php:177
     195#: includes/class-watermarks-templates.php:182
    205196msgid "You have reached the maximum watermarks templates!"
    206197msgstr ""
    207198
    208 #: includes/class-watermarks-templates.php:178
     199#: includes/class-watermarks-templates.php:183
    209200#: templates/bulk-apply-watermarks-template.php:12
    210201msgid "Upgrade to"
    211202msgstr ""
    212203
    213 #: includes/class-watermarks-templates.php:178
     204#: includes/class-watermarks-templates.php:183
    214205msgid "for unlimited watermarks templates"
    215206msgstr ""
    216207
    217 #: includes/class-watermarks-templates.php:278
     208#: includes/class-watermarks-templates.php:283
    218209msgid "Search Author"
    219210msgstr ""
    220211
    221 #: includes/class-watermarks-templates.php:281
     212#: includes/class-watermarks-templates.php:286
    222213msgid "Maximum "
    223214msgstr ""
    224215
    225 #: includes/class-watermarks-templates.php:301
     216#: includes/class-watermarks-templates.php:306
    226217msgid "Watermarks"
    227218msgstr ""
    228219
    229 #: includes/class-watermarks-templates.php:302
     220#: includes/class-watermarks-templates.php:307
    230221msgid "Watermarks Templates"
    231222msgstr ""
    232223
    233 #: includes/class-watermarks-templates.php:303
     224#: includes/class-watermarks-templates.php:308
    234225msgid "Watermarks Template"
    235226msgstr ""
    236227
    237 #: includes/class-watermarks-templates.php:305
     228#: includes/class-watermarks-templates.php:310
    238229msgid "Watermarks Templates to be applied on selected images"
    239230msgstr ""
    240231
    241 #: includes/class-watermarks-templates.php:457
     232#: includes/class-watermarks-templates.php:465
    242233#: templates/single-apply-watermarks-template.php:27
    243234msgid "Current Watermarks"
    244235msgstr ""
    245236
    246 #: includes/class-watermarks-templates.php:465
     237#: includes/class-watermarks-templates.php:473
    247238msgid "Create Watermark Template"
    248239msgstr ""
    249240
    250 #: includes/class-watermarks-templates.php:473
     241#: includes/class-watermarks-templates.php:489
    251242msgid "Auto Apply Settings (Pro)"
    252243msgstr ""
     
    655646msgstr ""
    656647
    657 #: templates/watermark-specs-template-metabox.php:91
     648#: templates/watermark-specs-template-metabox.php:92
    658649msgid "Relative to center ( Pro )"
    659650msgstr ""
    660651
    661 #: templates/watermark-specs-template-metabox.php:92
     652#: templates/watermark-specs-template-metabox.php:93
    662653msgid "Set offset and rotation relative to the watermark's center instead of the watermark's left-top corner"
    663654msgstr ""
    664655
    665 #: templates/watermark-specs-template-metabox.php:97
     656#: templates/watermark-specs-template-metabox.php:98
    666657msgid "Offset"
    667658msgstr ""
    668659
    669 #: templates/watermark-specs-template-metabox.php:98
     660#: templates/watermark-specs-template-metabox.php:99
    670661msgid "The offset is calculated from the side's left-top corner which is selected from the position above"
    671662msgstr ""
    672663
    673 #: templates/watermark-specs-template-metabox.php:102
     664#: templates/watermark-specs-template-metabox.php:103
    674665msgid "Pixels"
    675666msgstr ""
    676667
    677 #: templates/watermark-specs-template-metabox.php:106
     668#: templates/watermark-specs-template-metabox.php:107
    678669msgid "percentage ( Pro )"
    679670msgstr ""
    680671
    681 #: templates/watermark-specs-template-metabox.php:111
     672#: templates/watermark-specs-template-metabox.php:112
    682673msgid "Left"
    683674msgstr ""
    684675
    685 #: templates/watermark-specs-template-metabox.php:124
     676#: templates/watermark-specs-template-metabox.php:125
    686677msgid "Top"
    687678msgstr ""
    688679
    689 #: templates/watermark-specs-template-metabox.php:142
     680#: templates/watermark-specs-template-metabox.php:162
    690681msgid "Repeat"
    691682msgstr ""
    692683
    693 #: templates/watermark-specs-template-metabox.php:148
     684#: templates/watermark-specs-template-metabox.php:168
    694685msgid "Repeat Axis"
    695686msgstr ""
    696687
    697 #: templates/watermark-specs-template-metabox.php:162
     688#: templates/watermark-specs-template-metabox.php:182
    698689msgid "Repeat Axis Offset"
    699690msgstr ""
    700691
    701 #: templates/watermark-specs-template-metabox.php:166
     692#: templates/watermark-specs-template-metabox.php:186
    702693msgid "X Axis"
    703694msgstr ""
    704695
    705 #: templates/watermark-specs-template-metabox.php:173
     696#: templates/watermark-specs-template-metabox.php:193
    706697msgid "Y Axis"
    707698msgstr ""
    708699
    709 #: templates/watermark-specs-template-metabox.php:184
     700#: templates/watermark-specs-template-metabox.php:204
    710701msgid "Rotation"
    711702msgstr ""
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/readme.txt

    r2966022 r3145166  
    11===  Watermark Images, Stamp Images, WooCommerce Image Watermark, Product Watermark for WooCommerce ===
    22Tags: watermark, image, stamp, watermark image, image watermark, picture, photo, protection, watermark image, image protection, woocommerce
    3 Tested up to: 6.3
     3Tested up to: 6.6
    44Requires at least: 5.6
    55Requires PHP: 7.0
    6 Version: 1.1.6
    7 Stable Tag: 1.1.6
     6Version: 1.1.7
     7Stable Tag: 1.1.7
    88Contributors: GrandPlugins
    99Author: GrandPlugins
     
    5353* **Bulk images Select**<br/>Select images in bulk mode based on image's post parent. You can select posts directly or based on filters [ posts availability - posts date range - posts authors - posts terms - etc...]
    5454
    55 * **Auto Resize watermarks for each different image in bulk and auto watermarking.
     55* **Auto Resize** watermarks for each different image in bulk and auto watermarking.
     56
     57* Select watermarks Corner Offset.
     58
     59* **Dynamic Watermarks** for WooCommerce and MasterStudy LMS.
     60
     61== Check Our other plugins ==
    5662
    5763
    58 == Check Our other plugins ==
     64[Woo Sales Notifications](https://grandplugins.com/product/woo-sales-notification/?utm_source=free&utm_medium=wp-watermark-img)
     65
     66[Woo Bulk Price & Stock Manager](https://grandplugins.com/product/woo-bulk-price-change/?utm_source=free&utm_medium=wp-watermark-img)
     67
     68[Woo Paddle Checkout](https://grandplugins.com/product/woo-paddle-checkout/?utm_source=free&utm_medium=wp-watermark-img)
     69
     70[Woo Sold Individually Variation](https://grandplugins.com/product/woo-variation-sold-individually/?utm_source=free&utm_medium=wp-watermark-img)
     71
     72[Woo Restrict Orders](https://grandplugins.com/product/woo-restrict-orders/?utm_source=free&utm_medium=wp-watermark-img)
     73
     74[Woo Gift Cards](https://grandplugins.com/product/woo-gift-cards/?utm_source=free&utm_medium=wp-watermark-img)
     75
     76[Woo instock notifier](https://grandplugins.com/product/woo-instock-notifier/?utm_source=free&utm_medium=wp-watermark-img)
     77
     78[Woo Email Tracker](https://grandplugins.com/product/woo-email-tracker/?utm_source=free&utm_medium=wp-watermark-img)
     79
     80[Woo Email recipients](https://grandplugins.com/product/woo-order-email-recipients/?utm_source=free&utm_medium=wp-watermark-img)
     81
     82[Woo Lemonsqueezy Checkout](https://grandplugins.com/product/woo-lemonsqueezy-gateway/?utm_source=free&utm_medium=wp-watermark-img)
     83
     84[Woo Conditional Gateways](https://grandplugins.com/product/woo-conditional-gateways/?utm_source=free&utm_medium=wp-watermark-img)
     85
     86[WP Debug Controller](https://grandplugins.com/product/wp-db-controller/?utm_source=free&utm_medium=wp-watermark-img)
     87
     88[WooCommerce Debug Viewer](https://grandplugins.com/product/wp-debug-viewer/?utm_source=free&utm_medium=wp-watermark-img)
     89
     90[WooCommerce Order Splitter](https://grandplugins.com/product/woo-order-splitter/?utm_source=free&utm_medium=wp-watermark-img)
    5991
    6092[WooCommerce Real Time Cart Tracker](https://grandplugins.com/product/woo-cart-tracker/?utm_source=free&utm_medium=wp-watermark-img)
     
    94126[Image Type Converter](https://wordpress.org/plugins/image-type-converter/)
    95127
     128[WP Plugin Creator](https://wpplugincreator.com/)
     129
    96130== Frequently Asked Questions ==
    97131
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/templates/single-apply-watermarks-template.php

    r2914099 r3145166  
    3030                                <div class="accordion watermarks-list-accordion" id="<?php echo esc_attr( $plugin_info['classes_prefix'] . '-watermarks-list-accordion' ); ?>">
    3131                                </div>
    32                                 <?php Watermarks_Templates::watermark_specs( array(), true ); ?>
     32                                <?php Watermarks_Templates::watermark_specs( array(), true, 'single' ); ?>
    3333                            </div>
    3434                        </div>
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/templates/watermark-specs-template-metabox.php

    r2914099 r3145166  
    8787                        <div class="position-box col-4 d-flex justify-content-center align-items-center"><input type="radio" value="br" name="<?php echo esc_attr( ! empty( $watermark_data ) ? 'watermarks[' . $watermark_data['id'] . '][positionSpot]' : '' ); ?>" class="edit edit-position-spot <?php echo esc_attr( $plugin_info['classes_prefix'] . '-watermark-position-spot-br' ); ?>" data-type="position-spot"></div>
    8888                    </div>
     89                    <!-- Center Offset -->
    8990                    <div class=<?php echo esc_attr( Watermarks_Templates::$plugin_info['classes_prefix'] . '-disabled' ); ?> ms-1 form-check mt-2 mb-4 d-flex align-items-center">
    9091                        <input disabled value="yes" data-watermarkid="<?php echo esc_attr( ! empty( $watermark_data ) ? $watermark_data['id'] : '' ); ?>" <?php echo esc_attr( ! empty( $watermark_data ) && ! empty( $watermark_data['centerOffset'] ) && ( $watermark_data['centerOffset'] ) ? 'checked' : '' ); ?> type="checkbox" id="<?php echo esc_attr( $plugin_info['classes_prefix'] . '-watermark-position-repeat-status' ); ?>"  name="<?php echo esc_attr( ! empty( $watermark_data ) ? 'watermarks[' . $watermark_data['id'] . '][centerOffset]' : '' ); ?>" class="edit edit-position-center-offset form-check-input watermark-position-center-offset mt-1" data-type="position-center-offset">
     
    133134                                    <?php echo esc_attr( '%' ); ?>
    134135                                </div>
     136                            </div>
     137                        </div>
     138                    </div>
     139                    <!-- Corner -->
     140                    <div class="position-offset-corner mt-3 <?php echo esc_attr( self::$plugin_info['classes_prefix'] . '-disabled' ); ?>">
     141                        <div class="col mt-2">
     142                            <label class="mb-2" for="<?php echo esc_attr( $plugin_info['name'] . '-position-offset-corner' ); ?>">
     143                                <span><?php $core->new_keyword( 'New', false ); ?></span> <?php esc_html_e( 'Offset corner', 'gpls-wmfw-watermark-image-for-wordpress' ); ?>
     144                                <span><?php $core->pro_btn(); ?></span>
     145                                <button style="padding: 1px 9px;" type="button" class="btn btn-secondary rounded-circle mt-1" data-bs-toggle="tooltip" data-bs-placement="right" title="<?php esc_html_e( 'Select which corner of the selected position box above to set offset from', 'gpls-wmfw-watermark-image-for-wordpress' ); ?>" >?</button>
     146                            </label>
     147                            <div class="edit offset-corner-select-wrapper">
     148                                <select data-watermarkid="<?php echo esc_attr( ! empty( $watermark_data ) ? $watermark_data['id'] : '' ); ?>" class="edit edit-position-offset-corner form-control" name="<?php echo esc_attr( ! empty( $watermark_data ) ? 'watermarks[' . $watermark_data['id'] . '][offsetCorner]' : '' ); ?>" id="<?php echo esc_attr( $plugin_info['name'] . '-offset-corner' ); ?>" data-type="position-offset-corner">
     149                                    <option value="">&mdash; <?php echo esc_attr( esc_html__( 'Select', 'gpls-wmfw-watermark-image-for-wordpress' ) ); ?> &mdash;</option>
     150                                    <option <?php echo esc_attr( empty( $watermark_data ) || empty( $watermark_data['offsetCorner'] ) || ( ! empty( $watermark_data['offsetCorner'] ) && 'tl' === $watermark_data['offsetCorner'] ) ? 'selected' : '' ); ?> value="tl"><?php echo esc_html_e( 'Top Left', 'gpls-wmfw-watermark-image-for-wordpress' ); ?></option>
     151                                    <option <?php echo esc_attr( ! empty( $watermark_data ) && ( 'tr' === $watermark_data['offsetCorner'] ) ? 'selected' : '' ); ?> value="tr"><?php esc_html_e( 'Top Right', 'gpls-wmfw-watermark-image-for-wordpress' ); ?></option>
     152                                    <option <?php echo esc_attr( ! empty( $watermark_data ) && ( 'bl' === $watermark_data['offsetCorner'] ) ? 'selected' : '' ); ?> value="bl"><?php esc_html_e( 'Bottom Left', 'gpls-wmfw-watermark-image-for-wordpress' ); ?></option>
     153                                    <option <?php echo esc_attr( ! empty( $watermark_data ) && ( 'br' === $watermark_data['offsetCorner'] ) ? 'selected' : '' ); ?> value="br"><?php esc_html_e( 'Bottom Right', 'gpls-wmfw-watermark-image-for-wordpress' ); ?></option>
     154                                </select>
    135155                            </div>
    136156                        </div>
     
    185205                    <input type="number" min="0" step="1" name="<?php echo esc_attr( ! empty( $watermark_data ) ? 'watermarks[' . $watermark_data['id'] . '][degree]' : '' ); ?>" value="<?php echo esc_attr( ! empty( $watermark_data['degree'] ) ? $watermark_data['degree'] : '0' ); ?>" max="360" class="edit edit-degree" data-type="degree">
    186206                </div>
     207
     208                <?php if ( 'create' === $context ) : ?>
     209                <!-- Dynamic -->
     210                <div class="form-group dynamic-row edit-row edit-text text-left mb-3">
     211                    <div class="<?php echo esc_attr( Watermarks_Templates::$plugin_info['classes_prefix'] . '-disabled' ); ?>">
     212                        <h6 class="me-1 form-check-label mt-1">
     213                            <?php esc_html_e( 'Dynamic placeholders (pro)', 'gpls-wmfw-watermark-image-for-wordpress' ); ?>
     214                            <span><?php $core->new_keyword( 'New', false ); ?></span>
     215                            <span><?php $core->pro_btn(); ?></span>
     216                            <button style="padding: 1px 9px;" type="button" class="btn btn-secondary rounded-circle mt-1" data-bs-toggle="tooltip" data-bs-placement="right" title="<?php esc_html_e( 'These placeholders will take the value of the selected data field for each order / customer.', 'gpls-wmfw-watermark-image-for-wordpress' ); ?>" >?</button>
     217                        </h6>
     218                        <?php Watermarks_Templates::watermarks_text_meta_select( $watermark_data ); ?>
     219                    </div>
     220                </div>
     221                <?php endif; ?>
    187222
    188223                <!-- Text Bot Top | Left ExactWidth baseLineOffset -->
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/vendor/autoload.php

    r2914099 r3145166  
    33// autoload.php @generated by Composer
    44
     5if (PHP_VERSION_ID < 50600) {
     6    if (!headers_sent()) {
     7        header('HTTP/1.1 500 Internal Server Error');
     8    }
     9    $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
     10    if (!ini_get('display_errors')) {
     11        if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
     12            fwrite(STDERR, $err);
     13        } elseif (!headers_sent()) {
     14            echo $err;
     15        }
     16    }
     17    trigger_error(
     18        $err,
     19        E_USER_ERROR
     20    );
     21}
     22
    523require_once __DIR__ . '/composer/autoload_real.php';
    624
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/vendor/composer/ClassLoader.php

    r2642047 r3145166  
    4343class ClassLoader
    4444{
     45    /** @var \Closure(string):void */
     46    private static $includeFile;
     47
     48    /** @var string|null */
     49    private $vendorDir;
     50
    4551    // PSR-4
     52    /**
     53     * @var array<string, array<string, int>>
     54     */
    4655    private $prefixLengthsPsr4 = array();
     56    /**
     57     * @var array<string, list<string>>
     58     */
    4759    private $prefixDirsPsr4 = array();
     60    /**
     61     * @var list<string>
     62     */
    4863    private $fallbackDirsPsr4 = array();
    4964
    5065    // PSR-0
     66    /**
     67     * List of PSR-0 prefixes
     68     *
     69     * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2')))
     70     *
     71     * @var array<string, array<string, list<string>>>
     72     */
    5173    private $prefixesPsr0 = array();
     74    /**
     75     * @var list<string>
     76     */
    5277    private $fallbackDirsPsr0 = array();
    5378
     79    /** @var bool */
    5480    private $useIncludePath = false;
     81
     82    /**
     83     * @var array<string, string>
     84     */
    5585    private $classMap = array();
     86
     87    /** @var bool */
    5688    private $classMapAuthoritative = false;
     89
     90    /**
     91     * @var array<string, bool>
     92     */
    5793    private $missingClasses = array();
     94
     95    /** @var string|null */
    5896    private $apcuPrefix;
    5997
     98    /**
     99     * @var array<string, self>
     100     */
     101    private static $registeredLoaders = array();
     102
     103    /**
     104     * @param string|null $vendorDir
     105     */
     106    public function __construct($vendorDir = null)
     107    {
     108        $this->vendorDir = $vendorDir;
     109        self::initializeIncludeClosure();
     110    }
     111
     112    /**
     113     * @return array<string, list<string>>
     114     */
    60115    public function getPrefixes()
    61116    {
     
    67122    }
    68123
     124    /**
     125     * @return array<string, list<string>>
     126     */
    69127    public function getPrefixesPsr4()
    70128    {
     
    72130    }
    73131
     132    /**
     133     * @return list<string>
     134     */
    74135    public function getFallbackDirs()
    75136    {
     
    77138    }
    78139
     140    /**
     141     * @return list<string>
     142     */
    79143    public function getFallbackDirsPsr4()
    80144    {
     
    82146    }
    83147
     148    /**
     149     * @return array<string, string> Array of classname => path
     150     */
    84151    public function getClassMap()
    85152    {
     
    88155
    89156    /**
    90      * @param array $classMap Class to filename map
     157     * @param array<string, string> $classMap Class to filename map
     158     *
     159     * @return void
    91160     */
    92161    public function addClassMap(array $classMap)
     
    103172     * appending or prepending to the ones previously set for this prefix.
    104173     *
    105      * @param string       $prefix  The prefix
    106      * @param array|string $paths   The PSR-0 root directories
    107      * @param bool         $prepend Whether to prepend the directories
     174     * @param string              $prefix  The prefix
     175     * @param list<string>|string $paths   The PSR-0 root directories
     176     * @param bool                $prepend Whether to prepend the directories
     177     *
     178     * @return void
    108179     */
    109180    public function add($prefix, $paths, $prepend = false)
    110181    {
     182        $paths = (array) $paths;
    111183        if (!$prefix) {
    112184            if ($prepend) {
    113185                $this->fallbackDirsPsr0 = array_merge(
    114                     (array) $paths,
     186                    $paths,
    115187                    $this->fallbackDirsPsr0
    116188                );
     
    118190                $this->fallbackDirsPsr0 = array_merge(
    119191                    $this->fallbackDirsPsr0,
    120                     (array) $paths
     192                    $paths
    121193                );
    122194            }
     
    127199        $first = $prefix[0];
    128200        if (!isset($this->prefixesPsr0[$first][$prefix])) {
    129             $this->prefixesPsr0[$first][$prefix] = (array) $paths;
     201            $this->prefixesPsr0[$first][$prefix] = $paths;
    130202
    131203            return;
     
    133205        if ($prepend) {
    134206            $this->prefixesPsr0[$first][$prefix] = array_merge(
    135                 (array) $paths,
     207                $paths,
    136208                $this->prefixesPsr0[$first][$prefix]
    137209            );
     
    139211            $this->prefixesPsr0[$first][$prefix] = array_merge(
    140212                $this->prefixesPsr0[$first][$prefix],
    141                 (array) $paths
     213                $paths
    142214            );
    143215        }
     
    148220     * appending or prepending to the ones previously set for this namespace.
    149221     *
    150      * @param string       $prefix  The prefix/namespace, with trailing '\\'
    151      * @param array|string $paths   The PSR-4 base directories
    152      * @param bool         $prepend Whether to prepend the directories
     222     * @param string              $prefix  The prefix/namespace, with trailing '\\'
     223     * @param list<string>|string $paths   The PSR-4 base directories
     224     * @param bool                $prepend Whether to prepend the directories
    153225     *
    154226     * @throws \InvalidArgumentException
     227     *
     228     * @return void
    155229     */
    156230    public function addPsr4($prefix, $paths, $prepend = false)
    157231    {
     232        $paths = (array) $paths;
    158233        if (!$prefix) {
    159234            // Register directories for the root namespace.
    160235            if ($prepend) {
    161236                $this->fallbackDirsPsr4 = array_merge(
    162                     (array) $paths,
     237                    $paths,
    163238                    $this->fallbackDirsPsr4
    164239                );
     
    166241                $this->fallbackDirsPsr4 = array_merge(
    167242                    $this->fallbackDirsPsr4,
    168                     (array) $paths
     243                    $paths
    169244                );
    170245            }
     
    176251            }
    177252            $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
    178             $this->prefixDirsPsr4[$prefix] = (array) $paths;
     253            $this->prefixDirsPsr4[$prefix] = $paths;
    179254        } elseif ($prepend) {
    180255            // Prepend directories for an already registered namespace.
    181256            $this->prefixDirsPsr4[$prefix] = array_merge(
    182                 (array) $paths,
     257                $paths,
    183258                $this->prefixDirsPsr4[$prefix]
    184259            );
     
    187262            $this->prefixDirsPsr4[$prefix] = array_merge(
    188263                $this->prefixDirsPsr4[$prefix],
    189                 (array) $paths
     264                $paths
    190265            );
    191266        }
     
    196271     * replacing any others previously set for this prefix.
    197272     *
    198      * @param string       $prefix The prefix
    199      * @param array|string $paths  The PSR-0 base directories
     273     * @param string              $prefix The prefix
     274     * @param list<string>|string $paths  The PSR-0 base directories
     275     *
     276     * @return void
    200277     */
    201278    public function set($prefix, $paths)
     
    212289     * replacing any others previously set for this namespace.
    213290     *
    214      * @param string       $prefix The prefix/namespace, with trailing '\\'
    215      * @param array|string $paths  The PSR-4 base directories
     291     * @param string              $prefix The prefix/namespace, with trailing '\\'
     292     * @param list<string>|string $paths  The PSR-4 base directories
    216293     *
    217294     * @throws \InvalidArgumentException
     295     *
     296     * @return void
    218297     */
    219298    public function setPsr4($prefix, $paths)
     
    235314     *
    236315     * @param bool $useIncludePath
     316     *
     317     * @return void
    237318     */
    238319    public function setUseIncludePath($useIncludePath)
     
    257338     *
    258339     * @param bool $classMapAuthoritative
     340     *
     341     * @return void
    259342     */
    260343    public function setClassMapAuthoritative($classMapAuthoritative)
     
    277360     *
    278361     * @param string|null $apcuPrefix
     362     *
     363     * @return void
    279364     */
    280365    public function setApcuPrefix($apcuPrefix)
     
    297382     *
    298383     * @param bool $prepend Whether to prepend the autoloader or not
     384     *
     385     * @return void
    299386     */
    300387    public function register($prepend = false)
    301388    {
    302389        spl_autoload_register(array($this, 'loadClass'), true, $prepend);
     390
     391        if (null === $this->vendorDir) {
     392            return;
     393        }
     394
     395        if ($prepend) {
     396            self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
     397        } else {
     398            unset(self::$registeredLoaders[$this->vendorDir]);
     399            self::$registeredLoaders[$this->vendorDir] = $this;
     400        }
    303401    }
    304402
    305403    /**
    306404     * Unregisters this instance as an autoloader.
     405     *
     406     * @return void
    307407     */
    308408    public function unregister()
    309409    {
    310410        spl_autoload_unregister(array($this, 'loadClass'));
     411
     412        if (null !== $this->vendorDir) {
     413            unset(self::$registeredLoaders[$this->vendorDir]);
     414        }
    311415    }
    312416
     
    315419     *
    316420     * @param  string    $class The name of the class
    317      * @return bool|null True if loaded, null otherwise
     421     * @return true|null True if loaded, null otherwise
    318422     */
    319423    public function loadClass($class)
    320424    {
    321425        if ($file = $this->findFile($class)) {
    322             includeFile($file);
     426            $includeFile = self::$includeFile;
     427            $includeFile($file);
    323428
    324429            return true;
    325430        }
     431
     432        return null;
    326433    }
    327434
     
    368475    }
    369476
     477    /**
     478     * Returns the currently registered loaders keyed by their corresponding vendor directories.
     479     *
     480     * @return array<string, self>
     481     */
     482    public static function getRegisteredLoaders()
     483    {
     484        return self::$registeredLoaders;
     485    }
     486
     487    /**
     488     * @param  string       $class
     489     * @param  string       $ext
     490     * @return string|false
     491     */
    370492    private function findFileWithExtension($class, $ext)
    371493    {
     
    433555        return false;
    434556    }
     557
     558    /**
     559     * @return void
     560     */
     561    private static function initializeIncludeClosure()
     562    {
     563        if (self::$includeFile !== null) {
     564            return;
     565        }
     566
     567        /**
     568         * Scope isolated include.
     569         *
     570         * Prevents access to $this/self from included files.
     571         *
     572         * @param  string $file
     573         * @return void
     574         */
     575        self::$includeFile = \Closure::bind(static function($file) {
     576            include $file;
     577        }, null, null);
     578    }
    435579}
    436 
    437 /**
    438  * Scope isolated include.
    439  *
    440  * Prevents access to $this/self from included files.
    441  */
    442 function includeFile($file)
    443 {
    444     include $file;
    445 }
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/vendor/composer/autoload_classmap.php

    r2914099 r3145166  
    33// autoload_classmap.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
     
    1010    'GPLSCore\\GPLS_PLUGIN_WMFW\\Apply_Watermarks_Queries' => $baseDir . '/includes/class-apply-watermarks-queries.php',
    1111    'GPLSCore\\GPLS_PLUGIN_WMFW\\Apply_Watermarks_Templates' => $baseDir . '/includes/class-apply-watermarks-templates.php',
    12     'GPLSCore\\GPLS_PLUGIN_WMFW\\Auto_Apply_Watermarks_Template' => $baseDir . '/includes/class-auto-apply-watermarks-template.php',
    1312    'GPLSCore\\GPLS_PLUGIN_WMFW\\Core' => $baseDir . '/core/core.php',
    1413    'GPLSCore\\GPLS_PLUGIN_WMFW\\GD_Image' => $baseDir . '/includes/class-gd-image.php',
     
    1716    'GPLSCore\\GPLS_PLUGIN_WMFW\\Image_Edit_Page' => $baseDir . '/includes/class-image-edit-page.php',
    1817    'GPLSCore\\GPLS_PLUGIN_WMFW\\Image_Watermark' => $baseDir . '/includes/class-image-watermark.php',
    19     'GPLSCore\\GPLS_PLUGIN_WMFW\\Images_Backup_List_Table' => $baseDir . '/includes/class-images-backups-list-table.php',
    2018    'GPLSCore\\GPLS_PLUGIN_WMFW\\Imagick_Image' => $baseDir . '/includes/class-imagick-image.php',
    21     'GPLSCore\\GPLS_PLUGIN_WMFW\\Plugin' => $baseDir . '/includes/Plugin.php',
     19    'GPLSCore\\GPLS_PLUGIN_WMFW\\MasterStudyLMS' => $baseDir . '/includes/MasterStudyLMS.php',
    2220    'GPLSCore\\GPLS_PLUGIN_WMFW\\Settings' => $baseDir . '/includes/Settings.php',
    2321    'GPLSCore\\GPLS_PLUGIN_WMFW\\Single_Apply_Watermarks' => $baseDir . '/includes/class-single-apply-watermarks.php',
     22    'GPLSCore\\GPLS_PLUGIN_WMFW\\Utils\\WatermarkUtilsTrait' => $baseDir . '/includes/Utils/WatermarkUtilsTrait.php',
    2423    'GPLSCore\\GPLS_PLUGIN_WMFW\\Watermark_Base' => $baseDir . '/includes/class-watermark-base.php',
    2524    'GPLSCore\\GPLS_PLUGIN_WMFW\\Watermarks_Templates' => $baseDir . '/includes/class-watermarks-templates.php',
     25    'GPLSCore\\GPLS_PLUGIN_WMFW\\WooImageWatermark' => $baseDir . '/includes/WooImageWatermarker.php',
    2626);
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/vendor/composer/autoload_files.php

    r2914099 r3145166  
    33// autoload_files.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/vendor/composer/autoload_namespaces.php

    r2642047 r3145166  
    33// autoload_namespaces.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/vendor/composer/autoload_psr4.php

    r2642047 r3145166  
    33// autoload_psr4.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
    88return array(
    9     'Tests\\' => array($baseDir . '/tests'),
    109);
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/vendor/composer/autoload_real.php

    r2914099 r3145166  
    2424
    2525        spl_autoload_register(array('ComposerAutoloaderInitaaa8345b4a45712be7199ef00e56ea38', 'loadClassLoader'), true, true);
    26         self::$loader = $loader = new \Composer\Autoload\ClassLoader();
     26        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    2727        spl_autoload_unregister(array('ComposerAutoloaderInitaaa8345b4a45712be7199ef00e56ea38', 'loadClassLoader'));
    2828
    29         $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
    30         if ($useStaticLoader) {
    31             require __DIR__ . '/autoload_static.php';
    32 
    33             call_user_func(\Composer\Autoload\ComposerStaticInitaaa8345b4a45712be7199ef00e56ea38::getInitializer($loader));
    34         } else {
    35             $map = require __DIR__ . '/autoload_namespaces.php';
    36             foreach ($map as $namespace => $path) {
    37                 $loader->set($namespace, $path);
    38             }
    39 
    40             $map = require __DIR__ . '/autoload_psr4.php';
    41             foreach ($map as $namespace => $path) {
    42                 $loader->setPsr4($namespace, $path);
    43             }
    44 
    45             $classMap = require __DIR__ . '/autoload_classmap.php';
    46             if ($classMap) {
    47                 $loader->addClassMap($classMap);
    48             }
    49         }
     29        require __DIR__ . '/autoload_static.php';
     30        call_user_func(\Composer\Autoload\ComposerStaticInitaaa8345b4a45712be7199ef00e56ea38::getInitializer($loader));
    5031
    5132        $loader->register(true);
    5233
    53         if ($useStaticLoader) {
    54             $includeFiles = Composer\Autoload\ComposerStaticInitaaa8345b4a45712be7199ef00e56ea38::$files;
    55         } else {
    56             $includeFiles = require __DIR__ . '/autoload_files.php';
    57         }
    58         foreach ($includeFiles as $fileIdentifier => $file) {
    59             composerRequireaaa8345b4a45712be7199ef00e56ea38($fileIdentifier, $file);
     34        $filesToLoad = \Composer\Autoload\ComposerStaticInitaaa8345b4a45712be7199ef00e56ea38::$files;
     35        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
     36            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
     37                $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
     38
     39                require $file;
     40            }
     41        }, null, null);
     42        foreach ($filesToLoad as $fileIdentifier => $file) {
     43            $requireFile($fileIdentifier, $file);
    6044        }
    6145
     
    6347    }
    6448}
    65 
    66 function composerRequireaaa8345b4a45712be7199ef00e56ea38($fileIdentifier, $file)
    67 {
    68     if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
    69         require $file;
    70 
    71         $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
    72     }
    73 }
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/vendor/composer/autoload_static.php

    r2914099 r3145166  
    1111    );
    1212
    13     public static $prefixLengthsPsr4 = array (
    14         'T' =>
    15         array (
    16             'Tests\\' => 6,
    17         ),
    18     );
    19 
    20     public static $prefixDirsPsr4 = array (
    21         'Tests\\' =>
    22         array (
    23             0 => __DIR__ . '/../..' . '/tests',
    24         ),
    25     );
    26 
    2713    public static $classMap = array (
    2814        'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
    2915        'GPLSCore\\GPLS_PLUGIN_WMFW\\Apply_Watermarks_Queries' => __DIR__ . '/../..' . '/includes/class-apply-watermarks-queries.php',
    3016        'GPLSCore\\GPLS_PLUGIN_WMFW\\Apply_Watermarks_Templates' => __DIR__ . '/../..' . '/includes/class-apply-watermarks-templates.php',
    31         'GPLSCore\\GPLS_PLUGIN_WMFW\\Auto_Apply_Watermarks_Template' => __DIR__ . '/../..' . '/includes/class-auto-apply-watermarks-template.php',
    3217        'GPLSCore\\GPLS_PLUGIN_WMFW\\Core' => __DIR__ . '/../..' . '/core/core.php',
    3318        'GPLSCore\\GPLS_PLUGIN_WMFW\\GD_Image' => __DIR__ . '/../..' . '/includes/class-gd-image.php',
     
    3621        'GPLSCore\\GPLS_PLUGIN_WMFW\\Image_Edit_Page' => __DIR__ . '/../..' . '/includes/class-image-edit-page.php',
    3722        'GPLSCore\\GPLS_PLUGIN_WMFW\\Image_Watermark' => __DIR__ . '/../..' . '/includes/class-image-watermark.php',
    38         'GPLSCore\\GPLS_PLUGIN_WMFW\\Images_Backup_List_Table' => __DIR__ . '/../..' . '/includes/class-images-backups-list-table.php',
    3923        'GPLSCore\\GPLS_PLUGIN_WMFW\\Imagick_Image' => __DIR__ . '/../..' . '/includes/class-imagick-image.php',
    40         'GPLSCore\\GPLS_PLUGIN_WMFW\\Plugin' => __DIR__ . '/../..' . '/includes/Plugin.php',
     24        'GPLSCore\\GPLS_PLUGIN_WMFW\\MasterStudyLMS' => __DIR__ . '/../..' . '/includes/MasterStudyLMS.php',
    4125        'GPLSCore\\GPLS_PLUGIN_WMFW\\Settings' => __DIR__ . '/../..' . '/includes/Settings.php',
    4226        'GPLSCore\\GPLS_PLUGIN_WMFW\\Single_Apply_Watermarks' => __DIR__ . '/../..' . '/includes/class-single-apply-watermarks.php',
     27        'GPLSCore\\GPLS_PLUGIN_WMFW\\Utils\\WatermarkUtilsTrait' => __DIR__ . '/../..' . '/includes/Utils/WatermarkUtilsTrait.php',
    4328        'GPLSCore\\GPLS_PLUGIN_WMFW\\Watermark_Base' => __DIR__ . '/../..' . '/includes/class-watermark-base.php',
    4429        'GPLSCore\\GPLS_PLUGIN_WMFW\\Watermarks_Templates' => __DIR__ . '/../..' . '/includes/class-watermarks-templates.php',
     30        'GPLSCore\\GPLS_PLUGIN_WMFW\\WooImageWatermark' => __DIR__ . '/../..' . '/includes/WooImageWatermarker.php',
    4531    );
    4632
     
    4834    {
    4935        return \Closure::bind(function () use ($loader) {
    50             $loader->prefixLengthsPsr4 = ComposerStaticInitaaa8345b4a45712be7199ef00e56ea38::$prefixLengthsPsr4;
    51             $loader->prefixDirsPsr4 = ComposerStaticInitaaa8345b4a45712be7199ef00e56ea38::$prefixDirsPsr4;
    5236            $loader->classMap = ComposerStaticInitaaa8345b4a45712be7199ef00e56ea38::$classMap;
    5337
Note: See TracChangeset for help on using the changeset viewer.