Plugin Directory

Changeset 3725576


Ignore:
Timestamp:
10/02/2026 10:22:20 PM (3 weeks ago)
Author:
ykamanin
Message:

Release 1.1.1: one line on the settings tab names the paid add-on

Location:
opuswerk-legal-pdfs-for-woocommerce/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • opuswerk-legal-pdfs-for-woocommerce/trunk/assets/css/admin.css

    r3721130 r3725576  
    7878}
    7979
     80.lea-pro-note {
     81        color: #646970;
     82        margin: 1.5em 0 0;
     83}
     84
    8085.lea-empty {
    8186        color: #646970;
  • opuswerk-legal-pdfs-for-woocommerce/trunk/includes/class-settings-page.php

    r3724676 r3725576  
    258258                                                <?php $this->render_warnings( $documents ); ?>
    259259                                        </div>
     260
     261                                        <?php $this->render_pro_note(); ?>
    260262
    261263                                        <script type="text/html" class="lea-row-template">
    … …  
    276278                        </td>
    277279                </tr>
     280                <?php
     281        }
     282
     283        /**
     284         * Prints the one line that mentions Pro.
     285         *
     286         * Only here, under the plugin's own table: no admin notice, nothing on
     287         * other screens, no disabled controls (plugin guidelines 5 and 11). Not
     288         * shown once Pro is active, whose own section then sits on this tab.
     289         *
     290         * @return void
     291         */
     292        private function render_pro_note() {
     293                $show = ! defined( 'OPUSLPRO_VERSION' );
     294
     295                /**
     296                 * Filters whether the settings tab shows the line about Pro.
     297                 *
     298                 * @since 1.1.1
     299                 *
     300                 * @param bool $show True unless Opuswerk Legal PDFs Pro is active.
     301                 */
     302                if ( ! apply_filters( 'opuslea_show_pro_note', $show ) ) {
     303                        return;
     304                }
     305
     306                $link = sprintf(
     307                        '<a href="%s" target="_blank" rel="noopener noreferrer">%s</a>',
     308                        esc_url( 'https://opuswerk.at/plugins/legal-pdfs-pro/' ),
     309                        esc_html__( 'Opuswerk Legal PDFs Pro', 'opuswerk-legal-pdfs-for-woocommerce' )
     310                );
     311                ?>
     312                <p class="lea-pro-note">
     313                        <?php
     314                        printf(
     315                                /* translators: %s: link to the Pro add-on, titled "Opuswerk Legal PDFs Pro". */
     316                                esc_html__( 'A record of every document sent with an order, with a copy of each version of the file: %s', 'opuswerk-legal-pdfs-for-woocommerce' ),
     317                                $link // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- built above from esc_url() and esc_html__().
     318                        );
     319                        ?>
     320                </p>
    278321                <?php
    279322        }
  • opuswerk-legal-pdfs-for-woocommerce/trunk/languages/opuswerk-legal-pdfs-for-woocommerce.pot

    r3724676 r3725576  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Opuswerk Legal PDFs for WooCommerce 1.1.0\n"
     5"Project-Id-Version: Opuswerk Legal PDFs for WooCommerce 1.1.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/opuswerk-legal-pdfs-for-woocommerce\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: 2026-10-02T11:14:46+00:00\n"
     12"POT-Creation-Date: 2026-10-02T22:15:47+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
    … …  
    4848
    4949#. translators: %s: name of a free PDF reader, followed by its web address.
    50 #: includes/class-email-notice.php:175
    51 #: includes/class-email-notice.php:180
     50#: includes/class-email-notice.php:181
     51#: includes/class-email-notice.php:186
    5252#, php-format
    5353msgid "To open them you need a PDF reader, for example the free %s."
    … …  
    107107#. translators: 1: email name, 2: total attachment size, for example 2.4 MB.
    108108#: includes/class-settings-page.php:161
    109 #: includes/class-settings-page.php:389
     109#: includes/class-settings-page.php:432
    110110#, php-format
    111111msgid "Attachments for %1$s total %2$s. Large attachments can be rejected by mail providers and can hurt deliverability."
    … …  
    144144msgstr[1] ""
    145145
    146 #: includes/class-settings-page.php:311
     146#: includes/class-settings-page.php:309
     147msgid "Opuswerk Legal PDFs Pro"
     148msgstr ""
     149
     150#. translators: %s: link to the Pro add-on, titled "Opuswerk Legal PDFs Pro".
     151#: includes/class-settings-page.php:316
     152#, php-format
     153msgid "A record of every document sent with an order, with a copy of each version of the file: %s"
     154msgstr ""
     155
     156#: includes/class-settings-page.php:354
    147157msgid "This file is missing or cannot be read. It will be skipped when emails are sent."
    148158msgstr ""
    149159
    150 #: includes/class-settings-page.php:317
     160#: includes/class-settings-page.php:360
    151161msgid "Emails for this document"
    152162msgstr ""
    153163
    154 #: includes/class-settings-page.php:360
     164#: includes/class-settings-page.php:403
    155165msgid "Remove"
    156166msgstr ""
    157167
    158 #: includes/class-settings-page.php:409
    159 #: includes/class-settings-page.php:413
     168#: includes/class-settings-page.php:452
     169#: includes/class-settings-page.php:456
    160170msgid "Customer emails"
    161171msgstr ""
    162172
    163 #: includes/class-settings-page.php:410
    164 #: includes/class-settings-page.php:414
     173#: includes/class-settings-page.php:453
     174#: includes/class-settings-page.php:457
    165175msgid "Admin emails"
    166176msgstr ""
  • opuswerk-legal-pdfs-for-woocommerce/trunk/opuswerk-legal-pdfs-for-woocommerce.php

    r3724676 r3725576  
    44 * Plugin URI:        https://opuswerk.at/plugins/legal-pdfs/
    55 * Description:       Attach your terms and conditions, cancellation policy and privacy policy as PDF files to any WooCommerce email.
    6  * Version:           1.1.0
     6 * Version:           1.1.1
    77 * Requires at least: 6.5
    88 * Requires PHP:      7.4
    … …  
    2222defined( 'ABSPATH' ) || exit;
    2323
    24 define( 'OPUSLEA_VERSION', '1.1.0' );
     24define( 'OPUSLEA_VERSION', '1.1.1' );
    2525define( 'OPUSLEA_FILE', __FILE__ );
    2626define( 'OPUSLEA_PATH', plugin_dir_path( __FILE__ ) );
  • opuswerk-legal-pdfs-for-woocommerce/trunk/readme.txt

    r3725554 r3725576  
    66Requires PHP: 7.4
    77Requires Plugins: woocommerce
    8 Stable tag: 1.1.0
     8Stable tag: 1.1.1
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    149149== Changelog ==
    150150
     151= 1.1.1 =
     152* One line under the document table names the paid add-on, Opuswerk Legal PDFs Pro. It is
     153  shown only on this tab, and not once Pro is active.
     154
    151155= 1.1.0 =
    152156* New: name the attached documents in the email text, under the order details, optionally with a link to a free PDF reader. On for new installs; shops that update keep their emails unchanged until they switch it on.
    … …  
    171175== Upgrade Notice ==
    172176
     177= 1.1.1 =
     178No change to what the plugin does; one line on its settings tab mentions the paid add-on.
     179
    173180= 1.1.0 =
    174181New: name the attached documents in the email text. Off for existing shops until you switch it on under WooCommerce, Settings, Legal attachments.
Note: See TracChangeset for help on using the changeset viewer.