Changeset 3725576
- Timestamp:
- 10/02/2026 10:22:20 PM (3 weeks ago)
- Location:
- opuswerk-legal-pdfs-for-woocommerce/trunk
- Files:
-
- 5 edited
-
assets/css/admin.css (modified) (1 diff)
-
includes/class-settings-page.php (modified) (2 diffs)
-
languages/opuswerk-legal-pdfs-for-woocommerce.pot (modified) (5 diffs)
-
opuswerk-legal-pdfs-for-woocommerce.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
opuswerk-legal-pdfs-for-woocommerce/trunk/assets/css/admin.css
r3721130 r3725576 78 78 } 79 79 80 .lea-pro-note { 81 color: #646970; 82 margin: 1.5em 0 0; 83 } 84 80 85 .lea-empty { 81 86 color: #646970; -
opuswerk-legal-pdfs-for-woocommerce/trunk/includes/class-settings-page.php
r3724676 r3725576 258 258 <?php $this->render_warnings( $documents ); ?> 259 259 </div> 260 261 <?php $this->render_pro_note(); ?> 260 262 261 263 <script type="text/html" class="lea-row-template"> … … 276 278 </td> 277 279 </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> 278 321 <?php 279 322 } -
opuswerk-legal-pdfs-for-woocommerce/trunk/languages/opuswerk-legal-pdfs-for-woocommerce.pot
r3724676 r3725576 3 3 msgid "" 4 4 msgstr "" 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" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/opuswerk-legal-pdfs-for-woocommerce\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2026-10-02T 11:14:46+00:00\n"12 "POT-Creation-Date: 2026-10-02T22:15:47+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 48 48 49 49 #. translators: %s: name of a free PDF reader, followed by its web address. 50 #: includes/class-email-notice.php:1 7551 #: includes/class-email-notice.php:18 050 #: includes/class-email-notice.php:181 51 #: includes/class-email-notice.php:186 52 52 #, php-format 53 53 msgid "To open them you need a PDF reader, for example the free %s." … … 107 107 #. translators: 1: email name, 2: total attachment size, for example 2.4 MB. 108 108 #: includes/class-settings-page.php:161 109 #: includes/class-settings-page.php: 389109 #: includes/class-settings-page.php:432 110 110 #, php-format 111 111 msgid "Attachments for %1$s total %2$s. Large attachments can be rejected by mail providers and can hurt deliverability." … … 144 144 msgstr[1] "" 145 145 146 #: includes/class-settings-page.php:311 146 #: includes/class-settings-page.php:309 147 msgid "Opuswerk Legal PDFs Pro" 148 msgstr "" 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 153 msgid "A record of every document sent with an order, with a copy of each version of the file: %s" 154 msgstr "" 155 156 #: includes/class-settings-page.php:354 147 157 msgid "This file is missing or cannot be read. It will be skipped when emails are sent." 148 158 msgstr "" 149 159 150 #: includes/class-settings-page.php:3 17160 #: includes/class-settings-page.php:360 151 161 msgid "Emails for this document" 152 162 msgstr "" 153 163 154 #: includes/class-settings-page.php: 360164 #: includes/class-settings-page.php:403 155 165 msgid "Remove" 156 166 msgstr "" 157 167 158 #: includes/class-settings-page.php:4 09159 #: includes/class-settings-page.php:4 13168 #: includes/class-settings-page.php:452 169 #: includes/class-settings-page.php:456 160 170 msgid "Customer emails" 161 171 msgstr "" 162 172 163 #: includes/class-settings-page.php:4 10164 #: includes/class-settings-page.php:4 14173 #: includes/class-settings-page.php:453 174 #: includes/class-settings-page.php:457 165 175 msgid "Admin emails" 166 176 msgstr "" -
opuswerk-legal-pdfs-for-woocommerce/trunk/opuswerk-legal-pdfs-for-woocommerce.php
r3724676 r3725576 4 4 * Plugin URI: https://opuswerk.at/plugins/legal-pdfs/ 5 5 * Description: Attach your terms and conditions, cancellation policy and privacy policy as PDF files to any WooCommerce email. 6 * Version: 1.1. 06 * Version: 1.1.1 7 7 * Requires at least: 6.5 8 8 * Requires PHP: 7.4 … … 22 22 defined( 'ABSPATH' ) || exit; 23 23 24 define( 'OPUSLEA_VERSION', '1.1. 0' );24 define( 'OPUSLEA_VERSION', '1.1.1' ); 25 25 define( 'OPUSLEA_FILE', __FILE__ ); 26 26 define( 'OPUSLEA_PATH', plugin_dir_path( __FILE__ ) ); -
opuswerk-legal-pdfs-for-woocommerce/trunk/readme.txt
r3725554 r3725576 6 6 Requires PHP: 7.4 7 7 Requires Plugins: woocommerce 8 Stable tag: 1.1. 08 Stable tag: 1.1.1 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 149 149 == Changelog == 150 150 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 151 155 = 1.1.0 = 152 156 * 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. … … 171 175 == Upgrade Notice == 172 176 177 = 1.1.1 = 178 No change to what the plugin does; one line on its settings tab mentions the paid add-on. 179 173 180 = 1.1.0 = 174 181 New: 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)