diff --git a/changelog.txt b/changelog.txt index 0921447..549da3a 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,172 +1,177 @@ -*** Changelog *** - -2023.09.19 - version 2.5.1 -Fix: Missing "View Certificate" link for `sensei_user_courses` shortcode - #348 - -2023.08.24 - version 2.5.0 -* New: Display View Certificate button on public learner profile - #341 -* Fix: Deprecation notice for creation of dynamic property - #343 - -2023.06.01 - version 2.4.0 -* New: Add "View Certificate" link to Course List templates - #327 -* New: Bump minimum PHP version to 7.2 -* Fix: Error on the certificate page for WP VIP users - #335 -* Fix: Report links on the certificates listing - #298 -* Fix: Deprecated function warning - #336 - -2022.07.11 - version 2.3.0 -* New: Add View Certificate block - #302 -* New: Bump minimum PHP version to 7.0 - #293 -* New: Add setting to delete data on uninstall - #291 -* Fix: Redirect to login when viewing a certificate as a guest - #289 -* Fix: Fix warning when accessing certificate - #299 - -2021.08.27 - version 2.2.1 -* Tweak: Add View Certificate button to the Course Completed page automatically - #280 -* Fix: Don't display View Certificate button if course has no certificate template - #277 - -2021.08.12 - version 2.2.0 -* New: Add "View Certificate" button to Course Completed Actions block - #271 - -2021.03.02 - version 2.1.0 -* New: Introduce new tools to replace data updates - #254 -* Tweak: Update tFPDF version - #149, #256 - -2020.10.27 - version 2.0.7 -* Tweak: Remove JS code that references non-existent selectors - #247 -* Tweak: Switch to webpack via wordpress-scripts and simplify build - #241 -* Tweak: Add missing translator comments - #248 -* Fix: Don't encode course title for HTML display in PDF generation - #243 - -2020.08.21 - version 2.0.6 -* Fix: Allow line breaks in certificate templates - #239 -* Fix: Fix certificate template image functionality - #238 - -2020.07.20 - version 2.0.5 -* New: Add German translation - #214 -* Fix: Fix dropdown in Certificate Template meta box - #225 - -2020.04.27 - version 2.0.4 -* Fix: Fix issues reported by PHPCS - #219 - -2020.04.16 - version 2.0.3 -* New: Prepare the plugin to be distributed through WordPress.org - #215 - -2020.03.20 - version 2.0.2 -* Fix: Certificate display issue when using non-Latin characters - #211 - -2020.03.12 - version 2.0.1 -* New: Rename plugin to Sensei LMS Certificates - #195 -* Tweak: Remove certificates and templates from public search queries - #183 -* Tweak: Retrieve absolute image path via get_attached_file - #199 -* Tweak: Only load CSS on pages that require it - #205 -* Tweak: Replace use of deprecated course_query function - #207 -* Fix: Ensure font files can be accessed when plugin is copied to another site - #193 -* Fix: Localize placeholder text when editing certificate template - #206 -* Fix: Don't hide template positioning box when clicking off it - #204 - -2019.04.25 - version 2.0.0 -* New: Add dependency check for minimum Sensei (1.11.0) and PHP (5.6) versions - #171 -* New: Add certificate link to course completion emails - #174 -* New: Add Hungarian translation (@amroland) - #170, #177 -* Tweak: Check dependencies and perform the majority of plugin loading tasks after other plugins have loaded - #175 -* Tweak: Use Woo header for plugin updates - #172 -* Fix: Disable viewing of certificates for courses without a certificate template - #173 - -2018.12.06 - version 1.1.1 -* Fixes JavaScript error when editing a certificate template -* Adds additional string escaping throughout the plugin -* Fixes minor issue with restoring trashed certificate templates -* Add translations for Russian and French - -2018.07.23 - version 1.1.0 -* Make date formatting for certificates follow the WP date format by default -* Fix certificates menu position for Teacher users - -2017.11.01 - version 1.0.17 -* Fix fatal on plugin activation -* Remove unnecessary .pot file -* Make placeholders translatable in post_type_setup - -2017.05.03 - version 1.0.16 -* Fix fatal when activating certificates for the first time - -2017.04.28 - version 1.0.15 -* Admin: Allow only teachers and administrators to view admin areas -* Never bundle generated ttf specs from tfpdf - -2017.04.25 - version 1.0.14 -* Fix certificate data update -* Add the Display Name to the admin list table for certificates enhancement -* Fix Errors when previewing a certificate template bug -* Fix the selected admin menu item when editing a certificate template -* Fix Permissions error on certificate learner and course links bug -* Fix PHP 7 Errors/Notices on tfpdf - -2016.04.29 - version 1.0.13 - * Fix - Fixed a deprecated function notice - * Fix - Ensures the certificate background image displays after saving template - -2016.02.02 - version 1.0.12 - * Fix - Ensures certificates can be viewed when set to public - * Fix - Fixed a notice on certificates where background image id was not found - * Fix - Fixed a display issue with the certificate template dropdown - * Tweak - Ensure compatibility with Sensei 1.9 - -2015.06.18 - version 1.0.11 - * Fix - Ensure that the certificate view setting can only be seen by the current logged in user - * Tweak - Moved the certificates menu items to their own top level menu - -2015.06.11 - version 1.0.10 - * Fix - Fix the certificate error that occurred when doing manual grading - -2015.02.10 - version 1.0.9 - * Fix - Fixing certificate generation - -2015.02.01 - version 1.0.8 - * Tweak - Updating code for Sensei 1.7 compatibility - -2014.09.23 - version 1.0.7 - * Fix - Visit plugin site link in admin dashboard 404. - * Fix - Fixed certificate orientation if background image is portrait. - * Fix - Fixed a form display issue in the template editor. - * Fix - Removing erroneous Select2 reference. - * Tweak - If first and last name are added, they will be displayed on the certificate instead of the display name. - -2014.09.16 - version 1.0.6 - * Fix - Ensures sensei_certificate_date_format filter applies to all certificates, not just previews. - * Fix - Fixed coding standards warnings. - -2014.06.23 - version 1.0.5 - * Fix - Localizes completion date string to use correct language for month names. - * Fix - Fixes PHP warning when a certificate template has no styles selected. - * Fix - Ensures certificate link displays even if the course has no quizzes (requires Sensei v1.6) - -2014.04.28 - version 1.0.4 - * Update - Adding support for user-defined custom fonts - * Fix - Switching to tFPDF library for PDF generation to handle multibyte character sets (Greek, Arabic, etc.) - * Fix - Making 'View Certificate' link text available for localization - * Fix - Hiding 'View Certificate' link if no certificate template is selected for the course - -2014.03.04 - version 1.0.3 - * Fix - Switching background image to use path instead of URL - /classes/class-woothemes-sensei-certificates.php - -2014.01.14 - version 1.0.2 - * Fix - Removes unnecessary rewrite endpoints, in favour of template_redirect. - /classes/class-woothemes-sensei-certificates.php - - * Fix - Optimise the functionality to control access to, and to generate the certificate. - /classes/class-woothemes-sensei-certificates.php - - * Fix - Ensure the extension doesn't break if a WooCommerce extension is activated. - /woo-includes/woo-functions.php - /woo-includes/class-wc-dependencies.php - -2013.12.12 - version 1.0.1 - * /classes/class-woothemes-sensei-certificate-templates.php - Localization fix - * /classes/class-woothemes-sensei-certificates.php - Localization fix - * /woothemes-sensei-certificates.php - Localization fix - -2013.12.12 - version 1.0.0 - * First release +*** Changelog *** + +2024.08.08 - version 2.5.2 +* New: Add certificate data field hooks - #292 +* Fix: Allow certificates to be removed from a course - #353 +* Fix: Certificates not rendering on PHP 8.2 - #354 + +2023.09.19 - version 2.5.1 +Fix: Missing "View Certificate" link for `sensei_user_courses` shortcode - #348 + +2023.08.24 - version 2.5.0 +* New: Display View Certificate button on public learner profile - #341 +* Fix: Deprecation notice for creation of dynamic property - #343 + +2023.06.01 - version 2.4.0 +* New: Add "View Certificate" link to Course List templates - #327 +* New: Bump minimum PHP version to 7.2 +* Fix: Error on the certificate page for WP VIP users - #335 +* Fix: Report links on the certificates listing - #298 +* Fix: Deprecated function warning - #336 + +2022.07.11 - version 2.3.0 +* New: Add View Certificate block - #302 +* New: Bump minimum PHP version to 7.0 - #293 +* New: Add setting to delete data on uninstall - #291 +* Fix: Redirect to login when viewing a certificate as a guest - #289 +* Fix: Fix warning when accessing certificate - #299 + +2021.08.27 - version 2.2.1 +* Tweak: Add View Certificate button to the Course Completed page automatically - #280 +* Fix: Don't display View Certificate button if course has no certificate template - #277 + +2021.08.12 - version 2.2.0 +* New: Add "View Certificate" button to Course Completed Actions block - #271 + +2021.03.02 - version 2.1.0 +* New: Introduce new tools to replace data updates - #254 +* Tweak: Update tFPDF version - #149, #256 + +2020.10.27 - version 2.0.7 +* Tweak: Remove JS code that references non-existent selectors - #247 +* Tweak: Switch to webpack via wordpress-scripts and simplify build - #241 +* Tweak: Add missing translator comments - #248 +* Fix: Don't encode course title for HTML display in PDF generation - #243 + +2020.08.21 - version 2.0.6 +* Fix: Allow line breaks in certificate templates - #239 +* Fix: Fix certificate template image functionality - #238 + +2020.07.20 - version 2.0.5 +* New: Add German translation - #214 +* Fix: Fix dropdown in Certificate Template meta box - #225 + +2020.04.27 - version 2.0.4 +* Fix: Fix issues reported by PHPCS - #219 + +2020.04.16 - version 2.0.3 +* New: Prepare the plugin to be distributed through WordPress.org - #215 + +2020.03.20 - version 2.0.2 +* Fix: Certificate display issue when using non-Latin characters - #211 + +2020.03.12 - version 2.0.1 +* New: Rename plugin to Sensei LMS Certificates - #195 +* Tweak: Remove certificates and templates from public search queries - #183 +* Tweak: Retrieve absolute image path via get_attached_file - #199 +* Tweak: Only load CSS on pages that require it - #205 +* Tweak: Replace use of deprecated course_query function - #207 +* Fix: Ensure font files can be accessed when plugin is copied to another site - #193 +* Fix: Localize placeholder text when editing certificate template - #206 +* Fix: Don't hide template positioning box when clicking off it - #204 + +2019.04.25 - version 2.0.0 +* New: Add dependency check for minimum Sensei (1.11.0) and PHP (5.6) versions - #171 +* New: Add certificate link to course completion emails - #174 +* New: Add Hungarian translation (@amroland) - #170, #177 +* Tweak: Check dependencies and perform the majority of plugin loading tasks after other plugins have loaded - #175 +* Tweak: Use Woo header for plugin updates - #172 +* Fix: Disable viewing of certificates for courses without a certificate template - #173 + +2018.12.06 - version 1.1.1 +* Fixes JavaScript error when editing a certificate template +* Adds additional string escaping throughout the plugin +* Fixes minor issue with restoring trashed certificate templates +* Add translations for Russian and French + +2018.07.23 - version 1.1.0 +* Make date formatting for certificates follow the WP date format by default +* Fix certificates menu position for Teacher users + +2017.11.01 - version 1.0.17 +* Fix fatal on plugin activation +* Remove unnecessary .pot file +* Make placeholders translatable in post_type_setup + +2017.05.03 - version 1.0.16 +* Fix fatal when activating certificates for the first time + +2017.04.28 - version 1.0.15 +* Admin: Allow only teachers and administrators to view admin areas +* Never bundle generated ttf specs from tfpdf + +2017.04.25 - version 1.0.14 +* Fix certificate data update +* Add the Display Name to the admin list table for certificates enhancement +* Fix Errors when previewing a certificate template bug +* Fix the selected admin menu item when editing a certificate template +* Fix Permissions error on certificate learner and course links bug +* Fix PHP 7 Errors/Notices on tfpdf + +2016.04.29 - version 1.0.13 + * Fix - Fixed a deprecated function notice + * Fix - Ensures the certificate background image displays after saving template + +2016.02.02 - version 1.0.12 + * Fix - Ensures certificates can be viewed when set to public + * Fix - Fixed a notice on certificates where background image id was not found + * Fix - Fixed a display issue with the certificate template dropdown + * Tweak - Ensure compatibility with Sensei 1.9 + +2015.06.18 - version 1.0.11 + * Fix - Ensure that the certificate view setting can only be seen by the current logged in user + * Tweak - Moved the certificates menu items to their own top level menu + +2015.06.11 - version 1.0.10 + * Fix - Fix the certificate error that occurred when doing manual grading + +2015.02.10 - version 1.0.9 + * Fix - Fixing certificate generation + +2015.02.01 - version 1.0.8 + * Tweak - Updating code for Sensei 1.7 compatibility + +2014.09.23 - version 1.0.7 + * Fix - Visit plugin site link in admin dashboard 404. + * Fix - Fixed certificate orientation if background image is portrait. + * Fix - Fixed a form display issue in the template editor. + * Fix - Removing erroneous Select2 reference. + * Tweak - If first and last name are added, they will be displayed on the certificate instead of the display name. + +2014.09.16 - version 1.0.6 + * Fix - Ensures sensei_certificate_date_format filter applies to all certificates, not just previews. + * Fix - Fixed coding standards warnings. + +2014.06.23 - version 1.0.5 + * Fix - Localizes completion date string to use correct language for month names. + * Fix - Fixes PHP warning when a certificate template has no styles selected. + * Fix - Ensures certificate link displays even if the course has no quizzes (requires Sensei v1.6) + +2014.04.28 - version 1.0.4 + * Update - Adding support for user-defined custom fonts + * Fix - Switching to tFPDF library for PDF generation to handle multibyte character sets (Greek, Arabic, etc.) + * Fix - Making 'View Certificate' link text available for localization + * Fix - Hiding 'View Certificate' link if no certificate template is selected for the course + +2014.03.04 - version 1.0.3 + * Fix - Switching background image to use path instead of URL + /classes/class-woothemes-sensei-certificates.php + +2014.01.14 - version 1.0.2 + * Fix - Removes unnecessary rewrite endpoints, in favour of template_redirect. + /classes/class-woothemes-sensei-certificates.php + + * Fix - Optimise the functionality to control access to, and to generate the certificate. + /classes/class-woothemes-sensei-certificates.php + + * Fix - Ensure the extension doesn't break if a WooCommerce extension is activated. + /woo-includes/woo-functions.php + /woo-includes/class-wc-dependencies.php + +2013.12.12 - version 1.0.1 + * /classes/class-woothemes-sensei-certificate-templates.php - Localization fix + * /classes/class-woothemes-sensei-certificates.php - Localization fix + * /woothemes-sensei-certificates.php - Localization fix + +2013.12.12 - version 1.0.0 + * First release diff --git a/classes/class-woothemes-sensei-certificates.php b/classes/class-woothemes-sensei-certificates.php index 897ec30..32c26e5 100644 --- a/classes/class-woothemes-sensei-certificates.php +++ b/classes/class-woothemes-sensei-certificates.php @@ -850,7 +850,7 @@ public function download_certificate() { * Replace template tags on certificate data fields. * * @access public - * @since $$next-version$$ + * @since 2.5.2 * * @param string $field_value The data field value. * @param string $field_key The data field key. @@ -999,7 +999,7 @@ public function certificate_text( $pdf_certificate, $fpdf ) { /** * Filter the content of each of the data fields before they are written to the PDF. * - * @since $$next-version$$ + * @since 2.5.2 * * @param string $field_value The field content. * @param string $field_key The field key. diff --git a/lang/sensei-certificates.pot b/lang/sensei-certificates.pot index 2e971b4..c4d3557 100644 --- a/lang/sensei-certificates.pot +++ b/lang/sensei-certificates.pot @@ -1,36 +1,41 @@ -# Copyright (C) 2023 Automattic +# Copyright (C) 2024 Automattic # This file is distributed under the GPLv2+. msgid "" msgstr "" -"Project-Id-Version: Sensei LMS Certificates 2.5.1\n" +"Project-Id-Version: Sensei LMS Certificates 2.5.2\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/sensei-certificates\n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2023-09-19 12:08:21+00:00\n" +"POT-Creation-Date: 2024-08-07T19:25:30+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"X-Generator: WP-CLI 2.8.1\n" +"X-Generator: WP-CLI 2.10.0\n" "X-Domain: sensei-certificates\n" #. Plugin Name of the plugin +#: woothemes-sensei-certificates.php msgid "Sensei LMS Certificates" msgstr "" #. Plugin URI of the plugin +#: woothemes-sensei-certificates.php msgid "https://woocommerce.com/products/sensei-certificates/" msgstr "" #. Description of the plugin +#: woothemes-sensei-certificates.php msgid "Award your students with a certificate of completion and a sense of accomplishment after finishing a course." msgstr "" #. Author of the plugin +#: woothemes-sensei-certificates.php msgid "Automattic" msgstr "" #. Author URI of the plugin +#: woothemes-sensei-certificates.php msgid "https://automattic.com" msgstr "" @@ -70,139 +75,26 @@ msgstr "" msgid "Delete Permanently" msgstr "" -#: admin/post-types/writepanels/writepanel-certificate_data.php:77 +#: admin/post-types/writepanels/writepanel-certificate_data.php:76 msgid "Default Font" msgstr "" -#: admin/post-types/writepanels/writepanel-certificate_data.php:85 +#: admin/post-types/writepanels/writepanel-certificate_data.php:84 msgid "Default Font color" msgstr "" -#: admin/post-types/writepanels/writepanel-certificate_data.php:87 +#: admin/post-types/writepanels/writepanel-certificate_data.php:86 msgid "The default text color for the certificate." msgstr "" -#: admin/post-types/writepanels/writepanel-certificate_data.php:98 -msgid "Heading Position" -msgstr "" - -#: admin/post-types/writepanels/writepanel-certificate_data.php:100 -msgid "Optional position of the Certificate Heading" -msgstr "" - -#: admin/post-types/writepanels/writepanel-certificate_data.php:113 -#: admin/post-types/writepanels/writepanel-certificate_data.php:157 -#: admin/post-types/writepanels/writepanel-certificate_data.php:201 -#: admin/post-types/writepanels/writepanel-certificate_data.php:245 -#: admin/post-types/writepanels/writepanel-certificate_data.php:289 +#: admin/post-types/writepanels/writepanel-certificate_data.php:115 msgid "Font" msgstr "" -#: admin/post-types/writepanels/writepanel-certificate_data.php:120 -#: admin/post-types/writepanels/writepanel-certificate_data.php:164 -#: admin/post-types/writepanels/writepanel-certificate_data.php:208 -#: admin/post-types/writepanels/writepanel-certificate_data.php:252 -#: admin/post-types/writepanels/writepanel-certificate_data.php:296 +#: admin/post-types/writepanels/writepanel-certificate_data.php:122 msgid "Font color" msgstr "" -#: admin/post-types/writepanels/writepanel-certificate_data.php:129 -msgid "Heading Text" -msgstr "" - -#: admin/post-types/writepanels/writepanel-certificate_data.php:130 -msgid "Text to display in the heading." -msgstr "" - -#: admin/post-types/writepanels/writepanel-certificate_data.php:131 -#: classes/class-woothemes-sensei-certificate-templates.php:462 -#: classes/class-woothemes-sensei-certificates.php:883 -#: sensei-certificates-functions.php:201 -msgid "Certificate of Completion" -msgstr "" - -#: admin/post-types/writepanels/writepanel-certificate_data.php:142 -msgid "Message Position" -msgstr "" - -#: admin/post-types/writepanels/writepanel-certificate_data.php:144 -msgid "Optional position of the Certificate Message" -msgstr "" - -#: admin/post-types/writepanels/writepanel-certificate_data.php:173 -msgid "Message Text" -msgstr "" - -#: admin/post-types/writepanels/writepanel-certificate_data.php:174 -msgid "Text to display in the message area." -msgstr "" - -#: admin/post-types/writepanels/writepanel-certificate_data.php:175 -msgid "This is to certify that {{learner}} has completed the course" -msgstr "" - -#: admin/post-types/writepanels/writepanel-certificate_data.php:186 -msgid "Course Position" -msgstr "" - -#: admin/post-types/writepanels/writepanel-certificate_data.php:188 -msgid "Optional position of the Course Name" -msgstr "" - -#: admin/post-types/writepanels/writepanel-certificate_data.php:217 -msgid "Course Text" -msgstr "" - -#: admin/post-types/writepanels/writepanel-certificate_data.php:218 -msgid "Text to display in the course area." -msgstr "" - -#: admin/post-types/writepanels/writepanel-certificate_data.php:219 -#: sensei-certificates-functions.php:215 -msgid "{{course_title}}" -msgstr "" - -#: admin/post-types/writepanels/writepanel-certificate_data.php:230 -msgid "Completion Date Position" -msgstr "" - -#: admin/post-types/writepanels/writepanel-certificate_data.php:232 -msgid "Optional position of the Course Completion date" -msgstr "" - -#: admin/post-types/writepanels/writepanel-certificate_data.php:261 -msgid "Completion Date Text" -msgstr "" - -#: admin/post-types/writepanels/writepanel-certificate_data.php:262 -msgid "Text to display in the course completion date area." -msgstr "" - -#: admin/post-types/writepanels/writepanel-certificate_data.php:263 -msgid "{{completion_date}}" -msgstr "" - -#: admin/post-types/writepanels/writepanel-certificate_data.php:274 -msgid "Place Position" -msgstr "" - -#: admin/post-types/writepanels/writepanel-certificate_data.php:276 -msgid "Optional position of the place of Certification." -msgstr "" - -#: admin/post-types/writepanels/writepanel-certificate_data.php:305 -msgid "Course Place Text" -msgstr "" - -#: admin/post-types/writepanels/writepanel-certificate_data.php:306 -msgid "Text to display in the course place area." -msgstr "" - -#: admin/post-types/writepanels/writepanel-certificate_data.php:307 -#: sensei-certificates-functions.php:229 -msgid "{{course_place}}" -msgstr "" - #: admin/post-types/writepanels/writepanel-certificate_image.php:70 msgid "Set certificate image" msgstr "" @@ -254,7 +146,7 @@ msgid "Border" msgstr "" #: admin/post-types/writepanels/writepanels-init.php:358 -#: admin/woothemes-sensei-certificate-templates-admin-init.php:246 +#: admin/woothemes-sensei-certificate-templates-admin-init.php:240 msgid "Set Position" msgstr "" @@ -350,174 +242,136 @@ msgstr "" msgid "Your learners can now earn a Certificate when they have completed a course! Your existing learners who have already completed a course will automatically have certificates generated for them when you installed the plugin." msgstr "" -#: admin/woothemes-sensei-certificate-templates-admin-init.php:240 -msgid "Heading" -msgstr "" - -#: admin/woothemes-sensei-certificate-templates-admin-init.php:241 -msgid "Message" -msgstr "" - -#: admin/woothemes-sensei-certificate-templates-admin-init.php:242 -#: classes/class-woothemes-sensei-certificate-templates.php:192 -#: classes/class-woothemes-sensei-certificates.php:560 -msgid "Course" -msgstr "" - -#: admin/woothemes-sensei-certificate-templates-admin-init.php:243 -msgid "Completion Date" -msgstr "" - -#: admin/woothemes-sensei-certificate-templates-admin-init.php:244 -msgid "Place" -msgstr "" - -#: admin/woothemes-sensei-certificate-templates-admin-init.php:245 +#: admin/woothemes-sensei-certificate-templates-admin-init.php:239 msgid "Done" msgstr "" -#: admin/woothemes-sensei-certificate-templates-admin-init.php:281 -#: admin/woothemes-sensei-certificate-templates-admin-init.php:284 -#: admin/woothemes-sensei-certificate-templates-admin-init.php:288 +#: admin/woothemes-sensei-certificate-templates-admin-init.php:279 +#: admin/woothemes-sensei-certificate-templates-admin-init.php:282 +#: admin/woothemes-sensei-certificate-templates-admin-init.php:286 msgid "Certificate Template updated." msgstr "" -#: admin/woothemes-sensei-certificate-templates-admin-init.php:282 +#: admin/woothemes-sensei-certificate-templates-admin-init.php:280 msgid "Custom field updated." msgstr "" -#: admin/woothemes-sensei-certificate-templates-admin-init.php:283 +#: admin/woothemes-sensei-certificate-templates-admin-init.php:281 msgid "Custom field deleted." msgstr "" #. translators: %s is replaced with the formatted date timestamp of a certificate template revision -#: admin/woothemes-sensei-certificate-templates-admin-init.php:287 +#: admin/woothemes-sensei-certificate-templates-admin-init.php:285 msgid "Certificate Template restored to revision from %s" msgstr "" -#: admin/woothemes-sensei-certificate-templates-admin-init.php:289 +#: admin/woothemes-sensei-certificate-templates-admin-init.php:287 msgid "Certificate Template saved." msgstr "" -#: admin/woothemes-sensei-certificate-templates-admin-init.php:290 +#: admin/woothemes-sensei-certificate-templates-admin-init.php:288 msgid "Certificate Template submitted." msgstr "" #. translators: %1$s is replaced with the date on which the certificate template is scheduled to be published -#: admin/woothemes-sensei-certificate-templates-admin-init.php:293 +#: admin/woothemes-sensei-certificate-templates-admin-init.php:291 msgid "Certificate Template scheduled for: %1$s." msgstr "" -#: admin/woothemes-sensei-certificate-templates-admin-init.php:294 +#: admin/woothemes-sensei-certificate-templates-admin-init.php:292 msgid "M j, Y @ G:i" msgstr "" -#: admin/woothemes-sensei-certificate-templates-admin-init.php:296 +#: admin/woothemes-sensei-certificate-templates-admin-init.php:294 msgid "Certificate Template draft updated." msgstr "" #: classes/blocks/class-woothemes-sensei-certificates-view-certificate-link-block.php:69 -#: classes/class-woothemes-sensei-certificate-templates.php:260 -#: classes/class-woothemes-sensei-certificates.php:516 -#: classes/class-woothemes-sensei-certificates.php:626 -#: classes/class-woothemes-sensei-certificates.php:1120 -#: classes/class-woothemes-sensei-certificates.php:1238 -#: classes/class-woothemes-sensei-certificates.php:1705 +#: classes/class-woothemes-sensei-certificate-templates.php:337 +#: classes/class-woothemes-sensei-certificates.php:567 +#: classes/class-woothemes-sensei-certificates.php:685 +#: classes/class-woothemes-sensei-certificates.php:1204 +#: classes/class-woothemes-sensei-certificates.php:1322 +#: classes/class-woothemes-sensei-certificates.php:1789 msgid "View Certificate" msgstr "" -#: classes/class-woothemes-sensei-certificate-templates.php:143 +#: classes/class-woothemes-sensei-certificate-templates.php:220 msgctxt "post type general name" msgid "Certificate Templates" msgstr "" -#: classes/class-woothemes-sensei-certificate-templates.php:144 +#: classes/class-woothemes-sensei-certificate-templates.php:221 msgctxt "post type singular name" msgid "Certificate Template" msgstr "" -#: classes/class-woothemes-sensei-certificate-templates.php:145 +#: classes/class-woothemes-sensei-certificate-templates.php:222 msgctxt "post type add_new" msgid "Add New Certificate Template" msgstr "" -#: classes/class-woothemes-sensei-certificate-templates.php:146 +#: classes/class-woothemes-sensei-certificate-templates.php:223 msgid "Add New Certificate Template" msgstr "" -#: classes/class-woothemes-sensei-certificate-templates.php:147 +#: classes/class-woothemes-sensei-certificate-templates.php:224 msgid "Edit Certificate Template" msgstr "" -#: classes/class-woothemes-sensei-certificate-templates.php:148 +#: classes/class-woothemes-sensei-certificate-templates.php:225 msgid "New Certificate Template" msgstr "" -#: classes/class-woothemes-sensei-certificate-templates.php:149 -#: classes/class-woothemes-sensei-certificate-templates.php:155 +#: classes/class-woothemes-sensei-certificate-templates.php:226 +#: classes/class-woothemes-sensei-certificate-templates.php:232 msgid "Certificate Templates" msgstr "" -#: classes/class-woothemes-sensei-certificate-templates.php:150 +#: classes/class-woothemes-sensei-certificate-templates.php:227 msgid "View Certificate Template" msgstr "" -#: classes/class-woothemes-sensei-certificate-templates.php:151 +#: classes/class-woothemes-sensei-certificate-templates.php:228 msgid "Search Certificate Templates" msgstr "" -#: classes/class-woothemes-sensei-certificate-templates.php:152 +#: classes/class-woothemes-sensei-certificate-templates.php:229 msgid "No certificate templates found" msgstr "" -#: classes/class-woothemes-sensei-certificate-templates.php:153 +#: classes/class-woothemes-sensei-certificate-templates.php:230 msgid "No certificate templates found in Trash" msgstr "" -#: classes/class-woothemes-sensei-certificate-templates.php:191 -#: classes/class-woothemes-sensei-certificates.php:559 +#: classes/class-woothemes-sensei-certificate-templates.php:268 +#: classes/class-woothemes-sensei-certificates.php:610 msgid "Learner" msgstr "" -#: classes/class-woothemes-sensei-certificate-templates.php:193 -#: classes/class-woothemes-sensei-certificates.php:561 -msgid "Date Completed" -msgstr "" - -#: classes/class-woothemes-sensei-certificate-templates.php:194 -#: classes/class-woothemes-sensei-certificates.php:562 -msgid "Actions" -msgstr "" - -#: classes/class-woothemes-sensei-certificate-templates.php:436 -msgid "Course Title" -msgstr "" - -#: classes/class-woothemes-sensei-certificate-templates.php:470 -#: classes/class-woothemes-sensei-certificates.php:890 -#: sensei-certificates-functions.php:208 -msgid "This is to certify that" +#: classes/class-woothemes-sensei-certificate-templates.php:269 +#: classes/class-woothemes-sensei-certificates.php:611 +#: sensei-certificates-functions.php:355 +msgid "Course" msgstr "" -#: classes/class-woothemes-sensei-certificate-templates.php:470 -#: classes/class-woothemes-sensei-certificates.php:890 -#: sensei-certificates-functions.php:208 -msgid "has completed the course" +#: classes/class-woothemes-sensei-certificate-templates.php:270 +#: classes/class-woothemes-sensei-certificates.php:612 +msgid "Date Completed" msgstr "" -#. translators: %s is replaced with the site title -#: classes/class-woothemes-sensei-certificate-templates.php:495 -#: classes/class-woothemes-sensei-certificates.php:914 -msgid "At %s" +#: classes/class-woothemes-sensei-certificate-templates.php:271 +#: classes/class-woothemes-sensei-certificates.php:613 +msgid "Actions" msgstr "" -#: classes/class-woothemes-sensei-certificate-templates.php:921 +#: classes/class-woothemes-sensei-certificate-templates.php:948 msgctxt "column name" msgid "Certificate Template" msgstr "" #. translators: %s is replaced with the title of the certificate template -#: classes/class-woothemes-sensei-certificate-templates.php:947 +#: classes/class-woothemes-sensei-certificate-templates.php:974 msgid "Edit %s" msgstr "" @@ -540,125 +394,129 @@ msgstr "" msgid "Sensei LMS Certificates requires that the plugin Sensei (minimum version: %1$s) is installed and activated." msgstr "" -#: classes/class-woothemes-sensei-certificates.php:443 +#: classes/class-woothemes-sensei-certificates.php:494 msgid "Certificate Settings" msgstr "" -#: classes/class-woothemes-sensei-certificates.php:444 +#: classes/class-woothemes-sensei-certificates.php:495 msgid "Options for the Certificate Extension." msgstr "" -#: classes/class-woothemes-sensei-certificates.php:462 +#: classes/class-woothemes-sensei-certificates.php:513 msgid "View in Courses" msgstr "" -#: classes/class-woothemes-sensei-certificates.php:463 +#: classes/class-woothemes-sensei-certificates.php:514 msgid "Show a View Certificate link in the single Course page and the My Courses page." msgstr "" -#: classes/class-woothemes-sensei-certificates.php:470 +#: classes/class-woothemes-sensei-certificates.php:521 msgid "View in Learner Profile" msgstr "" -#: classes/class-woothemes-sensei-certificates.php:471 +#: classes/class-woothemes-sensei-certificates.php:522 msgid "Show a View Certificate link in the Learner Profile page." msgstr "" -#: classes/class-woothemes-sensei-certificates.php:478 +#: classes/class-woothemes-sensei-certificates.php:529 msgid "Public Certificate" msgstr "" -#: classes/class-woothemes-sensei-certificates.php:479 +#: classes/class-woothemes-sensei-certificates.php:530 msgid "Allow the Learner to share their Certificate with the public. (The learner will have to enable this in their profile by going to mysite.com/learner/{learner_username})" msgstr "" -#: classes/class-woothemes-sensei-certificates.php:486 +#: classes/class-woothemes-sensei-certificates.php:537 msgid "Delete data on uninstall" msgstr "" -#: classes/class-woothemes-sensei-certificates.php:487 +#: classes/class-woothemes-sensei-certificates.php:538 msgid "Delete Sensei Certificates data when the plugin is deleted. Once removed, this data cannot be restored." msgstr "" -#: classes/class-woothemes-sensei-certificates.php:509 +#: classes/class-woothemes-sensei-certificates.php:560 msgctxt "post type general name" msgid "Certificates" msgstr "" -#: classes/class-woothemes-sensei-certificates.php:510 +#: classes/class-woothemes-sensei-certificates.php:561 msgctxt "post type singular name" msgid "Certificate" msgstr "" -#: classes/class-woothemes-sensei-certificates.php:511 +#: classes/class-woothemes-sensei-certificates.php:562 msgctxt "post type add_new" msgid "Add New Certificate" msgstr "" -#: classes/class-woothemes-sensei-certificates.php:512 +#: classes/class-woothemes-sensei-certificates.php:563 msgid "Add New Certificate" msgstr "" -#: classes/class-woothemes-sensei-certificates.php:513 +#: classes/class-woothemes-sensei-certificates.php:564 msgid "Edit Certificate" msgstr "" -#: classes/class-woothemes-sensei-certificates.php:514 +#: classes/class-woothemes-sensei-certificates.php:565 msgid "New Certificate" msgstr "" -#: classes/class-woothemes-sensei-certificates.php:515 -#: classes/class-woothemes-sensei-certificates.php:521 +#: classes/class-woothemes-sensei-certificates.php:566 +#: classes/class-woothemes-sensei-certificates.php:572 msgid "Certificates" msgstr "" -#: classes/class-woothemes-sensei-certificates.php:517 +#: classes/class-woothemes-sensei-certificates.php:568 msgid "Search Certificates" msgstr "" -#: classes/class-woothemes-sensei-certificates.php:518 +#: classes/class-woothemes-sensei-certificates.php:569 msgid "No certificates found" msgstr "" -#: classes/class-woothemes-sensei-certificates.php:519 +#: classes/class-woothemes-sensei-certificates.php:570 msgid "No certificates found in Trash" msgstr "" #. translators: %1$s is the URL for editing the Course. -#: classes/class-woothemes-sensei-certificates.php:631 +#: classes/class-woothemes-sensei-certificates.php:690 msgid "Set a certificate template on the course in order to view this certificate" msgstr "" -#: classes/class-woothemes-sensei-certificates.php:778 +#: classes/class-woothemes-sensei-certificates.php:837 msgid "You are not allowed to view this Certificate." msgstr "" -#: classes/class-woothemes-sensei-certificates.php:778 -#: classes/class-woothemes-sensei-certificates.php:943 +#: classes/class-woothemes-sensei-certificates.php:837 +#: classes/class-woothemes-sensei-certificates.php:1027 msgid "Certificate Error" msgstr "" -#: classes/class-woothemes-sensei-certificates.php:943 +#: classes/class-woothemes-sensei-certificates.php:877 +msgid "Course Title" +msgstr "" + +#: classes/class-woothemes-sensei-certificates.php:1027 msgid "The certificate you are searching for does not exist." msgstr "" -#: classes/class-woothemes-sensei-certificates.php:1212 +#: classes/class-woothemes-sensei-certificates.php:1296 msgid "Certificate" msgstr "" -#: classes/class-woothemes-sensei-certificates.php:1413 +#: classes/class-woothemes-sensei-certificates.php:1497 msgid "Allow my Certificates to be publicly viewed" msgstr "" -#: classes/class-woothemes-sensei-certificates.php:1413 +#: classes/class-woothemes-sensei-certificates.php:1497 msgid "Save" msgstr "" -#: classes/class-woothemes-sensei-certificates.php:1454 +#: classes/class-woothemes-sensei-certificates.php:1538 msgid "Your Certificates Public View Settings Saved Successfully." msgstr "" -#: classes/class-woothemes-sensei-certificates.php:1515 +#: classes/class-woothemes-sensei-certificates.php:1599 msgid "View certificate" msgstr "" @@ -699,10 +557,135 @@ msgstr "" msgid "Sensei LMS Certificate Template Example" msgstr "" +#: sensei-certificates-functions.php:201 +#: sensei-certificates-functions.php:342 +msgid "Certificate of Completion" +msgstr "" + +#: sensei-certificates-functions.php:208 +#: sensei-certificates-functions.php:351 +msgid "This is to certify that" +msgstr "" + +#: sensei-certificates-functions.php:208 +#: sensei-certificates-functions.php:351 +msgid "has completed the course" +msgstr "" + +#: sensei-certificates-functions.php:215 +#: sensei-certificates-functions.php:360 +msgid "{{course_title}}" +msgstr "" + #: sensei-certificates-functions.php:222 msgid "{{completion_date}} at {{course_place}}" msgstr "" +#: sensei-certificates-functions.php:229 +#: sensei-certificates-functions.php:378 +msgid "{{course_place}}" +msgstr "" + +#: sensei-certificates-functions.php:337 +msgid "Heading" +msgstr "" + +#: sensei-certificates-functions.php:338 +msgid "Heading Position" +msgstr "" + +#: sensei-certificates-functions.php:339 +msgid "Optional position of the Certificate Heading" +msgstr "" + +#: sensei-certificates-functions.php:340 +msgid "Heading Text" +msgstr "" + +#: sensei-certificates-functions.php:341 +msgid "Text to display in the heading." +msgstr "" + +#: sensei-certificates-functions.php:346 +msgid "Message" +msgstr "" + +#: sensei-certificates-functions.php:347 +msgid "Message Position" +msgstr "" + +#: sensei-certificates-functions.php:348 +msgid "Optional position of the Certificate Message" +msgstr "" + +#: sensei-certificates-functions.php:349 +msgid "Message Text" +msgstr "" + +#: sensei-certificates-functions.php:350 +msgid "Text to display in the message area." +msgstr "" + +#: sensei-certificates-functions.php:356 +msgid "Course Position" +msgstr "" + +#: sensei-certificates-functions.php:357 +msgid "Optional position of the Course Name" +msgstr "" + +#: sensei-certificates-functions.php:358 +msgid "Course Text" +msgstr "" + +#: sensei-certificates-functions.php:359 +msgid "Text to display in the course area." +msgstr "" + +#: sensei-certificates-functions.php:364 +msgid "Completion Date" +msgstr "" + +#: sensei-certificates-functions.php:365 +msgid "Completion Date Position" +msgstr "" + +#: sensei-certificates-functions.php:366 +msgid "Optional position of the Course Completion date" +msgstr "" + +#: sensei-certificates-functions.php:367 +msgid "Completion Date Text" +msgstr "" + +#: sensei-certificates-functions.php:368 +msgid "Text to display in the course completion date area." +msgstr "" + +#: sensei-certificates-functions.php:369 +msgid "{{completion_date}}" +msgstr "" + +#: sensei-certificates-functions.php:373 +msgid "Place" +msgstr "" + +#: sensei-certificates-functions.php:374 +msgid "Place Position" +msgstr "" + +#: sensei-certificates-functions.php:375 +msgid "Optional position of the place of Certification." +msgstr "" + +#: sensei-certificates-functions.php:376 +msgid "Course Place Text" +msgstr "" + +#: sensei-certificates-functions.php:377 +msgid "Text to display in the course place area." +msgstr "" + #: templates/single-certificate_template.php:33 msgid "You must set a certificate_template primary image before you can preview" msgstr "" diff --git a/package-lock.json b/package-lock.json index ab2ae57..e358814 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "sensei-certificates", - "version": "2.5.1", + "version": "2.5.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "sensei-certificates", - "version": "2.5.1", + "version": "2.5.2", "license": "GPL-2.0-or-later", "dependencies": { "@wordpress/icons": "wp-6.0" diff --git a/package.json b/package.json index cc909a0..720e765 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sensei-certificates", - "version": "2.5.1", + "version": "2.5.2", "description": "Sensei LMS Certificates", "author": "Automattic", "license": "GPL-2.0-or-later", diff --git a/readme.txt b/readme.txt index 09e0605..80a03ec 100644 --- a/readme.txt +++ b/readme.txt @@ -1,10 +1,10 @@ === Sensei LMS Certificates === Contributors: automattic, alexsanford1, donnapep, jakeom, gikaragia, renathoc, yscik, m1r0, aaronfc Tags: certificates, course certificate, sensei lms -Requires at least: 6.1 -Tested up to: 6.3 -Requires PHP: 7.3 -Stable tag: 2.5.1 +Requires at least: 6.4 +Tested up to: 6.6 +Requires PHP: 7.4 +Stable tag: 2.5.2 License: GPLv2+ License URI: http://www.gnu.org/licenses/gpl-2.0.html diff --git a/sensei-certificates-functions.php b/sensei-certificates-functions.php index 31d9e1e..863a4f0 100644 --- a/sensei-certificates-functions.php +++ b/sensei-certificates-functions.php @@ -326,7 +326,7 @@ function sensei_create_master_certificate_template() { /** * Gets the data fields that are applied to each certificate. * - * @since $$next-version$$ + * @since 2.5.2 * * @return array */ @@ -382,7 +382,7 @@ function sensei_get_certificate_data_fields() { /** * Filter the certificate fields added to each template. * - * @since $$next-version$$ + * @since 2.5.2 * * @param array $data_fields The certificate fields. * diff --git a/woothemes-sensei-certificates.php b/woothemes-sensei-certificates.php index 76c3d36..d83cf43 100644 --- a/woothemes-sensei-certificates.php +++ b/woothemes-sensei-certificates.php @@ -3,12 +3,12 @@ * Plugin Name: Sensei LMS Certificates * Plugin URI: https://woocommerce.com/products/sensei-certificates/ * Description: Award your students with a certificate of completion and a sense of accomplishment after finishing a course. - * Version: 2.5.1 + * Version: 2.5.2 * Author: Automattic * Author URI: https://automattic.com - * Requires at least: 6.1 - * Tested up to: 6.3 - * Requires PHP: 7.3 + * Requires at least: 6.4 + * Tested up to: 6.6 + * Requires PHP: 7.4 * License: GPLv2+ */ @@ -16,7 +16,7 @@ exit; } -define( 'SENSEI_CERTIFICATES_VERSION', '2.5.1' ); +define( 'SENSEI_CERTIFICATES_VERSION', '2.5.2' ); define( 'SENSEI_CERTIFICATES_PLUGIN_FILE', __FILE__ ); define( 'SENSEI_CERTIFICATES_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );