Showing with 30,041 additions and 18,729 deletions.
  1. +62 −0 .github/ISSUE_TEMPLATE/Bug_report.yml
  2. +21 −0 .github/ISSUE_TEMPLATE/Feature_request.yml
  3. +10 −0 .github/dependabot.yml
  4. +5 −0 .github/labeler.yml
  5. +7 −5 .github/workflows/create-build-zip.yml
  6. +14 −0 .github/workflows/issue-labeler.yml
  7. +1 −1 .gitignore
  8. +18 −0 CHANGELOG.md
  9. +1 −1 backend/options.php
  10. +9 −9 classes/inputs/input.date.php
  11. +18 −18 composer.lock
  12. +17 −0 css/ppom-style.css
  13. +8 −0 inc/admin.php
  14. +0 −7 inc/functions.php
  15. +1 −0 inc/hooks.php
  16. +62 −8 js/admin/ppom-admin.js
  17. +30 −11 js/ppom-simple-popup.js
  18. +22 −13 js/ppom.inputs.js
  19. BIN languages/woocommerce-product-addon-da_DK.mo
  20. +2,802 −2,402 languages/woocommerce-product-addon-da_DK.po
  21. BIN languages/woocommerce-product-addon-de_DE.mo
  22. +2,928 −2,259 languages/woocommerce-product-addon-de_DE.po
  23. BIN languages/woocommerce-product-addon-es_ES.mo
  24. +3,164 −1,747 languages/woocommerce-product-addon-es_ES.po
  25. BIN languages/woocommerce-product-addon-fr_FR.mo
  26. +3,167 −1,730 languages/woocommerce-product-addon-fr_FR.po
  27. BIN languages/woocommerce-product-addon-it_IT.mo
  28. +3,171 −1,733 languages/woocommerce-product-addon-it_IT.po
  29. BIN languages/woocommerce-product-addon-nl_BE.mo
  30. +3,167 −1,757 languages/woocommerce-product-addon-nl_BE.po
  31. BIN languages/woocommerce-product-addon-nl_NL.mo
  32. +3,166 −1,740 languages/woocommerce-product-addon-nl_NL.po
  33. BIN languages/woocommerce-product-addon-sv_SE.mo
  34. +3,010 −2,266 languages/woocommerce-product-addon-sv_SE.po
  35. BIN languages/woocommerce-product-addon-tr_TR.mo
  36. +1,868 −1,218 languages/woocommerce-product-addon-tr_TR.po
  37. BIN languages/woocommerce-product-addon-zh_CN.mo
  38. +3,202 −1,744 languages/woocommerce-product-addon-zh_CN.po
  39. +1 −1 package.json
  40. +54 −12 readme.txt
  41. +2 −2 templates/admin/addons-list.php
  42. +1 −1 templates/admin/ppom-fields.php
  43. +3 −1 templates/frontend/inputs/date.php
  44. +24 −39 templates/frontend/inputs/image.php
  45. +3 −2 templates/frontend/inputs/palettes.php
  46. +2 −2 woocommerce-product-addon.php
62 changes: 62 additions & 0 deletions .github/ISSUE_TEMPLATE/Bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Bug report
description: Report a bug so we can get to squashing it.
labels: bug
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: textarea
attributes:
label: Description
description: Please write a brief description of the bug, including what you expect to happen and what is currently happening.
placeholder: |
Feature '...' is not working properly. I expect '...' to happen, but '...' happens instead
validations:
required: true

- type: textarea
attributes:
label: Step-by-step reproduction instructions
description: Please write the steps needed to reproduce the bug.
placeholder: |
1. Go to '...'
2. Click on '...'
3. Scroll down to '...'
validations:
required: true

- type: textarea
attributes:
label: Screenshots, screen recording, code snippet or Help Scout ticket
description: |
If possible, please upload a screenshot or screen recording which demonstrates the bug.
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
Tip: You can include links to customer Help Scout support thread.
validations:
required: false

- type: input
attributes:
label: Environment info
description: |
Please share a https://pastebin.com/ link of your system details by going to site Admin -> Tools -> Site Health -> Info and Copy to Clipboard
placeholder: pastebin.com/ ...
validations:
required: false

- type: dropdown
id: regression
attributes:
label: Is the issue you are reporting a regression
description: |
i.e, a previously working feature/functionality is now broken?
By specifying whether or not your issue is a regression, it will help the development team to more effectively diagnose and resolve the problem.
multiple: false
options:
- 'No'
- 'Yes, this is a regression.'
validations:
required: true

21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/Feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Feature request
description: Suggest a feature that we can implement.
labels: new feature
body:
- type: textarea
attributes:
label: What problem does this address?
description: |
Can you give us a little more insight into this feature request? We'd love to know if it's related to any problems or pain points you've been facing.
If so, can you please let us know what the issue is in a clear and simple way?
Tip: If this is related to a customer request, please add the Help Scout thread URL.
placeholder: |
For example, something like "I find it tough when..." or "I get frustrated because..." would be great.
validations:
required: true
- type: textarea
attributes:
label: What is your proposed solution?
description: Can you please specify the desired feature or improvement and how it resolves the problem mentioned?
validations:
required: false
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

version: 2
updates:

# Maintain dependencies for Composer
- package-ecosystem: "composer"
directory: "/"
target-branch: "development"
schedule:
interval: "weekly"
5 changes: 5 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
regression:
- '(Yes, this is a regression)'

customer report:
- '(helpscout)'
12 changes: 7 additions & 5 deletions .github/workflows/create-build-zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ jobs:

- name: Check if a comment was already made
id: find-comment
uses: peter-evans/find-comment@v1
uses: peter-evans/find-comment@v2
with:
issue-number: ${{ steps.get-pr-number.outputs.num }}
comment-author: github-actions[bot]
comment-author: pirate-bot
body-includes: Download PPOM

- name: Get comment body
Expand All @@ -88,15 +88,17 @@ jobs:
echo "::set-output name=body::$body"
- name: Create comment on PR with links to plugin builds
if: ${{ steps.find-comment.outputs.comment-id == '' }}
uses: peter-evans/create-or-update-comment@v1
uses: peter-evans/create-or-update-comment@v2
with:
issue-number: ${{ steps.get-pr-number.outputs.num }}
token: ${{ secrets.BOT_TOKEN }}
body: ${{ steps.get-comment-body.outputs.body }}

- name: Update comment on PR with links to plugin builds
if: ${{ steps.find-comment.outputs.comment-id != '' }}
uses: peter-evans/create-or-update-comment@v1
uses: peter-evans/create-or-update-comment@v2
with:
comment-id: ${{ steps.find-comment.outputs.comment-id }}
edit-mode: replace
body: ${{ steps.get-comment-body.outputs.body }}
token: ${{ secrets.BOT_TOKEN }}
body: ${{ steps.get-comment-body.outputs.body }}
14 changes: 14 additions & 0 deletions .github/workflows/issue-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Issue Labeler"
on:
issues:
types: [opened]

jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: github/issue-labeler@master
with:
repo-token: "${{ secrets.BOT_TOKEN }}"
enable-versioned-regex: 0
configuration-path: .github/labeler.yml
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ node_modules
artifact
dist
vendor
languages/ppom.pot
languages/woocommerce-product-addon.pot
*.log
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
##### [Version 32.0.3](https://github.com/Codeinwp/woocommerce-product-addon/compare/v32.0.2...v32.0.3) (2023-02-23)

- [Fix] Translations on some strings have been fixed.
- [Fix] [PPOM Pro] Image Cropper field doesn't work if enabled with Popup in Safari browser on mobile
- [Fix] [PPOM Pro] Added shadow to color palette choices to better visibility
- [Tweak] Deselect Support for the ImageSelect Field
- [Fix] Fixes on the PPOM Settings page.
- [Fix] [Date Input] UI/UX improved to emphasize JQuery date picker is needed for some features (Min Date, Max Date, Date Formats, Default Value, First Day of Week, Year Range, Disable Weekends, Disable Past Dates) of PPOM Date Field.
- [Fix] [Date Input] Max Date fixes (from now on, can be worked independently from disable past dates mode)
- [Fix] [Date Input] Manual date entering by keyboard was disallowed for the JQuery date picker.
- [Fix] [Date Input] Default date issue of the JQuery date picker has been fixed. (It was not working with relative values such as +5d or +1m 3d .)
- [Fix] [Date Input] Fix on the Disable past dates feature (compatibility support with Min date feature)
- [Fix] [PPOM Pro] Broken date range layout was fixed.
- [Fix] Adding two fields with same name make them overwrite each other (data name validation was added for new fields)
- [Fix] [PPOM Pro] Cart Edit is not working when Pop Up Edit is enabled
- [Fix] [PPOM Pro] Empty Field Generation, which happens when PPOM Pro is activated, has been fixed.
- Themeisle-SDK version was updated.

##### [Version 32.0.2](https://github.com/Codeinwp/woocommerce-product-addon/compare/v32.0.1...v32.0.2) (2022-11-24)

- [Fix] Unnecessary spaces in Text Area Field
Expand Down
2 changes: 1 addition & 1 deletion backend/options.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
'ppom_admin_core_settings' => array(
'id' => 'ppom_admin_core_settings',
'title' => 'General Settings',
'desc' => __( 'It will render the general settings.', 'woocommerce-product-addon' ),
'desc' => '',
'is_sabpanel' => true,
'active' => 'yes',
),
Expand Down
18 changes: 9 additions & 9 deletions classes/inputs/input.date.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,42 +73,42 @@ private function get_settings() {
'date_formats' => array(
'type' => 'select',
'title' => __( 'Date format', 'woocommerce-product-addon' ),
'desc' => __( '[ jQuery datePicker ] Select your preferred date format.', 'woocommerce-product-addon' ),
'desc' => __( '[ This feature requires jQuery datePicker ] Select your preferred date format.', 'woocommerce-product-addon' ),
'options' => ppom_get_date_formats(),
'col_classes' => array( 'col-md-3', 'col-sm-12' ),
),
'default_value' => array(
'type' => 'text',
'title' => __( 'Default Date', 'woocommerce-product-addon' ),
'desc' => __( '[ jQuery datePicker ] The default highlighted date if the date field is blank. Enter a date or use shortcode (examples: +10d, +17d, +1m +7d). Full dates should follow the same date format you have selected for this field.', 'woocommerce-product-addon' ),
'desc' => __( '[ This feature requires jQuery datePicker ] The default highlighted date if the date field is blank. Enter a date or use shortcode (examples: +10d, +17d, +1m +7d). Full dates should follow the same date format you have selected for this field.', 'woocommerce-product-addon' ),
'link' => __( '<a target="_blank" href="https://api.jqueryui.com/datepicker/#option-defaultDate">Example</a>', 'woocommerce-product-addon' ),
'col_classes' => array( 'col-md-3', 'col-sm-12' ),
),
'min_date' => array(
'type' => 'text',
'title' => __( 'Min Date', 'woocommerce-product-addon' ),
'desc' => __( '[ jQuery datePicker ] The earliest selectable date. Enter a date or use shortcode (examples: +10d, +17d, +1m +7d). Full dates should follow the same date format you have selected for this field.', 'woocommerce-product-addon' ),
'desc' => __( '[ This feature requires jQuery datePicker ] The earliest selectable date. Enter a date or use shortcode (examples: +10d, +17d, +1m +7d). Full dates should follow the same date format you have selected for this field.', 'woocommerce-product-addon' ),
'link' => __( '<a target="_blank" href="https://api.jqueryui.com/datepicker/#option-minDate">Example</a>', 'woocommerce-product-addon' ),
'col_classes' => array( 'col-md-3', 'col-sm-12' ),
),
'max_date' => array(
'type' => 'text',
'title' => __( 'Max Date', 'woocommerce-product-addon' ),
'desc' => __( '[ jQuery datePicker ] The maximum selectable date. Enter a date or use shortcode (examples: +10d, +17d, +1m +7d). Full dates should follow the same date format you have selected for this field.', 'woocommerce-product-addon' ),
'desc' => __( '[ This feature requires jQuery datePicker ] The maximum selectable date. Enter a date or use shortcode (examples: +10d, +17d, +1m +7d). Full dates should follow the same date format you have selected for this field.', 'woocommerce-product-addon' ),
'link' => __( '<a target="_blank" href="https://api.jqueryui.com/datepicker/#option-maxDate">Example</a>', 'woocommerce-product-addon' ),
'col_classes' => array( 'col-md-3', 'col-sm-12' ),
),
'year_range' => array(
'type' => 'text',
'title' => __( 'Year Range', 'woocommerce-product-addon' ),
'desc' => sprintf( esc_html__( '[ jQuery datePicker ] Years to allow date selections. Example: c-10:c+10. TIP: The letter "c" indicates the current year so "c+1" will indicate next year. Thus c:c+1 will be %s:%s', 'woocommerce-product-addon'), date( 'Y' ), date( 'Y', strtotime( '+1 year' ) ) ),
'desc' => sprintf( esc_html__( '[ This feature requires jQuery datePicker ] Years to allow date selections. Example: c-10:c+10. TIP: The letter "c" indicates the current year so "c+1" will indicate next year. Thus c:c+1 will be %s:%s', 'woocommerce-product-addon'), date( 'Y' ), date( 'Y', strtotime( '+1 year' ) ) ),
'link' => __( '<a target="_blank" href="https://api.jqueryui.com/datepicker/#option-yearRange">Example</a>', 'woocommerce-product-addon' ),
'col_classes' => array( 'col-md-3', 'col-sm-12' ),
),
'first_day_of_week' => array(
'type' => 'select',
'title' => __( 'First day of week', 'woocommerce-product-addon' ),
'desc' => __( '[ jQuery datePicker ] First day of the week to show on the popup calendar.', 'woocommerce-product-addon' ),
'desc' => __( '[ This feature requires jQuery datePicker ] First day of the week to show on the popup calendar.', 'woocommerce-product-addon' ),
'link' => __( '<a target="_blank" href="https://api.jqueryui.com/datepicker/#option-firstDay">Example</a>', 'woocommerce-product-addon' ),
'options' => array(
0 => 'Sunday',
Expand Down Expand Up @@ -138,20 +138,20 @@ private function get_settings() {
),
'jquery_dp' => array(
'type' => 'checkbox',
'title' => __( 'jQuery Datepicker', 'woocommerce-product-addon' ),
'title' => __( 'jQuery datePicker', 'woocommerce-product-addon' ),
'desc' => __( 'Enable jQuery datePicker over HTML5 date field.', 'woocommerce-product-addon' ),
'col_classes' => array( 'col-md-3', 'col-sm-12' ),
),
'no_weekends' => array(
'type' => 'checkbox',
'title' => __( 'Disable Weekends', 'woocommerce-product-addon' ),
'desc' => __( '[ jQuery datePicker ] Prevent display &amp; selection of weekends.', 'woocommerce-product-addon' ),
'desc' => __( '[ This feature requires jQuery datePicker ] Prevent display &amp; selection of weekends.', 'woocommerce-product-addon' ),
'col_classes' => array( 'col-md-3', 'col-sm-12' ),
),
'past_dates' => array(
'type' => 'checkbox',
'title' => __( 'Disable Past Dates', 'woocommerce-product-addon' ),
'desc' => __( '[ jQuery datePicker ] Prevent selection of dates prior to today&rsquo;s date. NOTE: Will be ignored if a Min Date has been set.', 'woocommerce-product-addon' ),
'desc' => __( '[ This feature requires jQuery datePicker ] Prevent selection of dates prior to today&rsquo;s date.', 'woocommerce-product-addon' ),
'col_classes' => array( 'col-md-3', 'col-sm-12' ),
),
'desc_tooltip' => array(
Expand Down
36 changes: 18 additions & 18 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading