Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development #347

Merged
merged 169 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
169 commits
Select commit Hold shift + click to select a range
d68a26a
Sync branch [skip ci]
pirate-bot Aug 13, 2024
da35673
Sync branch [skip ci]
pirate-bot Aug 13, 2024
412a995
chore(deps): bump codeinwp/themeisle-sdk from 3.3.28 to 3.3.29
dependabot[bot] Aug 26, 2024
649358f
chore: use commit version in dev build (#339)
Soare-Robert-Daniel Aug 29, 2024
3f0737b
refactor: typescript support and custom popup
Soare-Robert-Daniel Aug 28, 2024
66bf9e8
fix: add max image selection constrain to Image Field
Soare-Robert-Daniel Sep 3, 2024
ff957cb
Add wc default product tags column
girishpanchal30 Sep 5, 2024
84c6076
Merge pull request #346 from Codeinwp/bugfix/292
selul Sep 5, 2024
8ea0c07
Merge pull request #338 from Codeinwp/dependabot/composer/development…
selul Sep 5, 2024
d5bb5ab
fix https://github.com/Codeinwp/ppom-pro/issues/383
selul Sep 5, 2024
db7042d
Add personalization preview menu in dashboard
girishpanchal30 Sep 6, 2024
c596dfb
fix link
selul Sep 6, 2024
85f4212
Change field name text
girishpanchal30 Sep 6, 2024
5206e13
review input mask https://github.com/Codeinwp/ppom-pro/issues/404
selul Sep 6, 2024
d431642
Merge pull request #349 from Codeinwp/feat/pro/393
selul Sep 6, 2024
3828301
review name https://github.com/Codeinwp/ppom-pro/issues/404
selul Sep 6, 2024
89f62c5
Add tooltip feature
girishpanchal30 Sep 6, 2024
db869aa
Add conditional repeater upsell notice when adding a new field
girishpanchal30 Sep 6, 2024
440cc46
Fix syntax highlighter issue with a new group
girishpanchal30 Sep 6, 2024
58de896
Merge pull request #353 from Codeinwp/bugfix/pro/390
selul Sep 6, 2024
de68add
Merge pull request #352 from Codeinwp/bugfix/pro/392
selul Sep 6, 2024
d144079
Merge pull request #351 from Codeinwp/feat/pro/403
selul Sep 6, 2024
c431eaf
Fix compatibility with multisite
girishpanchal30 Sep 6, 2024
eca4d42
Fix conditional field issue with other languages
girishpanchal30 Sep 6, 2024
d7d1206
Create db table on the admin_init hook
girishpanchal30 Sep 6, 2024
1aeeca1
Hide unsupported field option tabs
girishpanchal30 Sep 9, 2024
43f2ade
Restrict custom style uses for free users
girishpanchal30 Sep 9, 2024
6209414
add link to product actions
selul Sep 9, 2024
dd8861e
translate link differently
selul Sep 9, 2024
7688476
Improve the 'Existing Product Meta' button
girishpanchal30 Sep 9, 2024
7bd2dc1
Add javascript unsaved warning
girishpanchal30 Sep 9, 2024
c0d50ae
Fix issue with new field
girishpanchal30 Sep 9, 2024
14515bc
Merge pull request #358 from Codeinwp/feat/pro/398
selul Sep 9, 2024
8d869b1
Disable pointer events on input labels
girishpanchal30 Sep 10, 2024
761a46c
Merge pull request #360 from Codeinwp/bugfix/199
selul Sep 10, 2024
955fdce
Disable field conditions when they are not enabled
girishpanchal30 Sep 10, 2024
aa919b7
Fix file conflicts
girishpanchal30 Sep 10, 2024
9770c29
Merge pull request #361 from Codeinwp/bugfix/pro/433
selul Sep 10, 2024
b99a862
Lock the data name field on edit mode
girishpanchal30 Sep 10, 2024
98ad7e0
Merge branch 'development' into fix/remove-sweetalert-popup
selul Sep 10, 2024
16d196b
Merge pull request #342 from Codeinwp/fix/remove-sweetalert-popup
selul Sep 10, 2024
806672a
Remove readonly attr and lock the data name
girishpanchal30 Sep 10, 2024
a49b680
Improve field groups page upsells
girishpanchal30 Sep 10, 2024
bea3b2f
Merge pull request #363 from Codeinwp/feat/pro/396
selul Sep 10, 2024
e8d118d
Fix issue with new field
girishpanchal30 Sep 10, 2024
393a790
Merge pull request #362 from Codeinwp/feat/82
selul Sep 10, 2024
9fff5cb
chore: edit options descriptions
HardeepAsrani Sep 10, 2024
3305e4a
Fix default demo fields assign issue
girishpanchal30 Sep 11, 2024
8fe1d83
Fix changelog data parsing issue
girishpanchal30 Sep 11, 2024
7534e12
Merge pull request #366 from Codeinwp/fix/341
selul Sep 11, 2024
75c1e50
Add condition remove support
girishpanchal30 Sep 11, 2024
e4f4bbe
Improve unsaved data warning
girishpanchal30 Sep 11, 2024
3b94e52
Fix broken layout issue with collapse field
girishpanchal30 Sep 11, 2024
469e379
chore: reorganize settings
HardeepAsrani Sep 12, 2024
f90303d
chore: redo addons page content
HardeepAsrani Sep 12, 2024
eea0b21
Add required plugin header in tag
girishpanchal30 Sep 12, 2024
5ad7d01
Improve the image displayed on the order edit page
girishpanchal30 Sep 12, 2024
f531003
Merge pull request #372 from Codeinwp/feat/pro/166
selul Sep 12, 2024
5c02e5a
Merge pull request #371 from Codeinwp/feat/pro/374
selul Sep 12, 2024
aae2367
Merge pull request #370 from Codeinwp/chore/redo-addons
selul Sep 12, 2024
566e62e
Merge pull request #364 from Codeinwp/feat/edit-labels
selul Sep 12, 2024
38109d0
Merge pull request #365 from Codeinwp/bugfix/pro/384
selul Sep 12, 2024
a53db00
Show upsell popup when editing pro fields
girishpanchal30 Sep 12, 2024
0dcf6ea
Change PHP constant
girishpanchal30 Sep 12, 2024
d37dae6
Add css selector keyword to scope and description
girishpanchal30 Sep 12, 2024
66c58bf
Fix undefined 'field_index' issue
girishpanchal30 Sep 12, 2024
158a165
Add default field block wrapper selector
girishpanchal30 Sep 12, 2024
04f709d
Add selector keyword support
girishpanchal30 Sep 12, 2024
a06ee27
Merge pull request #374 from Codeinwp/feat/pro/427
selul Sep 12, 2024
009ff95
review design of the settings page and add pro fields in read only mode
selul Sep 12, 2024
d004e52
Add support for importing images, videos, and audio files
girishpanchal30 Sep 13, 2024
22b3056
Fix field validation issue with non-required fields
girishpanchal30 Sep 13, 2024
475a392
Resolve compatibility issue with files of varying extensions
girishpanchal30 Sep 13, 2024
bd7bc40
chore: update function args
girishpanchal30 Sep 13, 2024
1e97b71
Fix PHP warning
girishpanchal30 Sep 16, 2024
fd1f9ce
Lock pro features based on the license plan
girishpanchal30 Sep 16, 2024
ffbc0bc
Add popup background overlay
girishpanchal30 Sep 16, 2024
82410f2
Fix field rendering issue after importing csv
girishpanchal30 Sep 16, 2024
899b865
refactor: transform Download File link into a button (#343)
Soare-Robert-Daniel Sep 16, 2024
f87e678
chore(deps): bump codeinwp/themeisle-sdk from 3.3.29 to 3.3.30
dependabot[bot] Sep 16, 2024
66f9c85
Keep the original file name in the cart
girishpanchal30 Sep 16, 2024
25f9309
Fix issue with .eps file
girishpanchal30 Sep 17, 2024
0a9d74f
Fix file conflicts
girishpanchal30 Sep 17, 2024
851cfa7
Add layout improvement
girishpanchal30 Sep 17, 2024
ed511ef
Add layout improvement
girishpanchal30 Sep 17, 2024
e3a217b
Remove file name trim code
girishpanchal30 Sep 17, 2024
94d4530
Revert enable condition tooltip
girishpanchal30 Sep 17, 2024
1723173
Improve upsell notice
girishpanchal30 Sep 17, 2024
83145d0
fix: delete non-img file btn and workflow (#345)
Soare-Robert-Daniel Sep 17, 2024
563ea1b
Improve repeater upsell notice
girishpanchal30 Sep 17, 2024
7fa1056
Fix button color and margin
girishpanchal30 Sep 18, 2024
6d2c850
Fix file conflicts
girishpanchal30 Sep 20, 2024
ca0264e
refactor: product metabox for fields attach (#382)
Soare-Robert-Daniel Sep 20, 2024
74811ae
Merge pull request #344 from Codeinwp/fix/max-img-selection
selul Sep 23, 2024
8ad4bd4
Merge pull request #354 from Codeinwp/bugfix/pro/256
selul Sep 23, 2024
f15c7be
Merge pull request #355 from Codeinwp/bugfix/pro/255
selul Sep 23, 2024
22cacd8
Merge pull request #356 from Codeinwp/bugfix/420
selul Sep 23, 2024
0e45460
Merge branch 'development' into feat/pro/426
selul Sep 23, 2024
7849396
Merge pull request #357 from Codeinwp/feat/pro/426
selul Sep 23, 2024
e5b933b
Merge branch 'development' into feat/232
selul Sep 23, 2024
6373767
Merge pull request #367 from Codeinwp/feat/232
selul Sep 23, 2024
9dee028
Merge pull request #368 from Codeinwp/bugfix/pro/454
selul Sep 23, 2024
201e0d6
Merge branch 'development' into feat/pro/381
selul Sep 23, 2024
e48fde9
Merge pull request #373 from Codeinwp/feat/pro/381
selul Sep 23, 2024
2e46c85
Merge pull request #375 from Codeinwp/feat/pro/325
selul Sep 23, 2024
f3af7c1
Merge pull request #376 from Codeinwp/bugfix/369
selul Sep 23, 2024
2e2f917
Merge branch 'development' into bugfix/pro/289
selul Sep 23, 2024
fe94319
Merge pull request #377 from Codeinwp/bugfix/pro/289
selul Sep 23, 2024
a66504a
Merge branch 'development' into feat/pro/21
selul Sep 23, 2024
84b9354
Merge pull request #378 from Codeinwp/feat/pro/21
selul Sep 23, 2024
95c08ad
Merge pull request #380 from Codeinwp/feat/191
selul Sep 23, 2024
7ca4a5f
make the hash smaller
selul Sep 23, 2024
4ccef29
Merge pull request #379 from Codeinwp/dependabot/composer/development…
selul Sep 23, 2024
c3472b5
Review individual metabox
selul Sep 23, 2024
5fece79
refactor: add input field modal
Soare-Robert-Daniel Sep 17, 2024
9298cda
feat: add price multiplier for Measure Input
Soare-Robert-Daniel Sep 23, 2024
acf5116
Merge pull request #384 from Codeinwp/feat/measure-price-multiplier
selul Sep 23, 2024
067aefd
review group actions icons
selul Sep 23, 2024
3a9a8d6
fix style id
selul Sep 23, 2024
26226b9
improve clonning behaviour
selul Sep 23, 2024
ab9b2ff
Merge pull request #381 from Codeinwp/refactor/add-input-modal
selul Sep 23, 2024
f32098e
review field selector
selul Sep 24, 2024
73ea813
refactor: attach to products workflow
Soare-Robert-Daniel Sep 5, 2024
47ecfed
Merge pull request #350 from Codeinwp/feat/attach-popup
selul Sep 24, 2024
8a059bc
fix: admin.css syntax
Soare-Robert-Daniel Sep 24, 2024
d65700a
refactor: attach to products is multi-select
Soare-Robert-Daniel Sep 24, 2024
bf5a8eb
refactor: make attach to products to be pro
Soare-Robert-Daniel Sep 24, 2024
e2dfc39
refactor: apply contrast design suggestions
Soare-Robert-Daniel Sep 24, 2024
510a946
refactor: remove migrate to old settings button
Soare-Robert-Daniel Sep 24, 2024
aaa32ef
fix: enquiry form and popup position and close on click outside
Soare-Robert-Daniel Sep 24, 2024
8cb7e8d
Merge pull request #386 from Codeinwp/refactor/attach-to-tags
selul Sep 25, 2024
a7dc167
Merge pull request #387 from Codeinwp/refactor/contrast
selul Sep 25, 2024
0694ffb
Merge pull request #388 from Codeinwp/fix/remove-legacy-settings
selul Sep 25, 2024
9758124
fix: null value for empty `the_meta` column
Soare-Robert-Daniel Sep 25, 2024
fc29aca
Add a notice on top of the popup
girishpanchal30 Sep 25, 2024
c61b8cb
fix: saving empty group fields
Soare-Robert-Daniel Sep 25, 2024
e24f3bd
fix: saving empty fields on group creation screen
Soare-Robert-Daniel Sep 25, 2024
74f4e79
feat: add migration check for database
Soare-Robert-Daniel Sep 25, 2024
560e36d
Merge pull request #389 from Codeinwp/fix/frontend-modal
selul Sep 25, 2024
fd0ec42
fixed bg color wrongly applied
selul Sep 25, 2024
7ad8fec
fixed checkbox color
selul Sep 25, 2024
e828d55
align buttons
selul Sep 25, 2024
e99ca9c
fix edit missing on new group
selul Sep 25, 2024
efc9f32
Merge pull request #348 from Codeinwp/bugfix/399
selul Sep 26, 2024
b6c461e
fix: missing fields from Add Field modal
Soare-Robert-Daniel Sep 26, 2024
5ea9d8f
review tags filter
selul Sep 26, 2024
55f5bcb
review tags filter
selul Sep 26, 2024
4dea3f3
fix phpunit image
selul Sep 26, 2024
83d3c11
shorten input mask title
selul Sep 26, 2024
fba815b
feat: add new condition options and improve UX & UI
Soare-Robert-Daniel Sep 19, 2024
407fc54
Merge pull request #383 from Codeinwp/feat/conditions
selul Sep 26, 2024
a8b8e3f
review tags
selul Sep 26, 2024
4cf9052
unify logic of license
selul Sep 26, 2024
fc5e40c
review license logic
selul Sep 26, 2024
63078e0
move license logic
selul Sep 26, 2024
488df7f
refactor: inline selector for multiples ids
Soare-Robert-Daniel Sep 26, 2024
a47c6b0
refactor: add null check for operator checking
Soare-Robert-Daniel Sep 26, 2024
5f70e76
Revert "refactor: add null check for operator checking"
Soare-Robert-Daniel Sep 26, 2024
ff387ba
fix: keep backward compatibility
Soare-Robert-Daniel Sep 26, 2024
8005d7e
fix: creation of dynamic property PPOM_Form::$product_id
Soare-Robert-Daniel Sep 26, 2024
29ff183
fix: null checks
Soare-Robert-Daniel Sep 26, 2024
47d0117
fix: license plan check
Soare-Robert-Daniel Sep 26, 2024
c1598fc
fix: show upsell on free users when cloning pro fields
Soare-Robert-Daniel Sep 26, 2024
e1c9e89
refactor: revert the saving check to prevent the delete of pro fields…
Soare-Robert-Daniel Sep 26, 2024
c3681e8
refactor: condition layout on Add Field
Soare-Robert-Daniel Sep 26, 2024
4043807
fix: remove only the selected inputs
Soare-Robert-Daniel Sep 27, 2024
40abc7c
refactor: check DB version for migration on admin init hook
Soare-Robert-Daniel Sep 27, 2024
3366ff7
fix alignament on table header and improve color on admin tooltips.
selul Sep 27, 2024
e874a50
fix compatibility version
selul Sep 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/create-build-zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build and publish the ZIP build file

on:
pull_request:
types: [ opened, synchronize, ready_for_review ]
types: [opened, synchronize, ready_for_review]
branches-ignore:
- "update_dependencies"
concurrency:
Expand All @@ -18,7 +18,7 @@ jobs:
git-sha-8: ${{ steps.retrieve-git-sha-8.outputs.sha8 }}
steps:
- name: Check out source files
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Get Composer Cache Directory
id: composer-cache
run: |
Expand All @@ -36,6 +36,12 @@ jobs:
run: yarn install --frozen-lockfile
- name: Build files
run: yarn run build
- name: Bump the plugin version
run: |
CURRENT_VERSION=$(node -p -e "require('./package.json').version")
COMMIT_HASH=$(git rev-parse --short HEAD)
DEV_VERSION="${CURRENT_VERSION}-dev.${COMMIT_HASH}"
npm run grunt version::${DEV_VERSION}
- name: Create zip
run: yarn run dist
- name: Retrieve branch name
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
phpunit:
name: Phpunit
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
services:
mysql:
image: mysql:5.7
Expand Down
2 changes: 1 addition & 1 deletion assets/ppom-basic-meta.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"productmeta_style":"","productmeta_categories":"","send_file_attachment":"","show_cart_thumb":"","aviary_api_key":"","productmeta_validation":"","productmeta_id":"183","productmeta_created":"2019-03-12 14:22:27","productmeta_name":"Basic Fields","dynamic_price_display":"all_option","the_meta":"{"1":{"type":"text","title":"Any text input","data_name":"any_text_input","placeholder":"","description":"It\\\\\\\\'s a test field","error_message":"","maxlength":"","minlength":"","default_value":"","class":"","input_mask":"","width":"12","visibility":"everyone","visibility_role":"","conditions":{"visibility":"Show","bound":"All","rules":[{"elements":"any_text_input","operators":"is","element_values":""}]}},"2":{"type":"select","title":"Test Options","data_name":"test_options","description":"","error_message":"","options":[{"option":"Option A","price":"5","weight":"","id":"option_a"},{"option":"Option B","price":"6","weight":"","id":"option_b"},{"option":"Option C","price":"7","weight":"","id":"option_c"}],"selected":"","first_option":"","class":"","width":"12","visibility":"everyone","visibility_role":"","conditions":{"visibility":"Show","bound":"All","rules":[{"elements":"any_text_input","operators":"is","element_values":""}]}},"3":{"type":"checkbox","title":"Conditional Field","data_name":"conditional_field","description":"Shown when Option B is selected","error_message":"","options":[{"option":"Test Checkbox","price":"","weight":"","id":"test_checkbox"}],"class":"","width":"12","checked":"","min_checked":"","max_checked":"","visibility":"everyone","visibility_role":"","logic":"on","conditions":{"visibility":"Show","bound":"All","rules":[{"elements":"test_options","operators":"is","element_values":"Option B"}]}}}"}]
[{"productmeta_style":"","productmeta_categories":"","send_file_attachment":"","show_cart_thumb":"","aviary_api_key":"","productmeta_validation":"","productmeta_id":"183","productmeta_created":"2019-03-12 14:22:27","productmeta_name":"Basic Fields","dynamic_price_display":"all_option","the_meta":"{"1":{"type":"text","title":"Any text input","data_name":"any_text_input","placeholder":"","description":"It\\\\\\\\'s a test field","error_message":"","maxlength":"","minlength":"","default_value":"","class":"","input_mask":"","width":"12","visibility":"everyone","visibility_role":"","conditions":{"visibility":"Show","bound":"All","rules":[{"elements":"any_text_input","operators":"is","element_values":""}]},"ppom_id":"1"},"2":{"type":"select","title":"Test Options","data_name":"test_options","description":"","error_message":"","options":[{"option":"Option A","price":"5","weight":"","id":"option_a"},{"option":"Option B","price":"6","weight":"","id":"option_b"},{"option":"Option C","price":"7","weight":"","id":"option_c"}],"selected":"","first_option":"","class":"","width":"12","visibility":"everyone","visibility_role":"","conditions":{"visibility":"Show","bound":"All","rules":[{"elements":"any_text_input","operators":"is","element_values":""}]},"ppom_id":"1"},"3":{"type":"checkbox","title":"Conditional Field","data_name":"conditional_field","description":"Shown when Option B is selected","error_message":"","options":[{"option":"Test Checkbox","price":"","weight":"","id":"test_checkbox"}],"class":"","width":"12","checked":"","min_checked":"","max_checked":"","visibility":"everyone","visibility_role":"","logic":"on","conditions":{"visibility":"Show","bound":"All","rules":[{"elements":"test_options","operators":"is","element_values":"Option B"}]},"ppom_id":"1"}}"}]
76 changes: 35 additions & 41 deletions backend/assets/settings.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*---------------------------------
* Admin Settings Panel CSS
* It included following css
-> Inputs CSS
-> Tooltip CSS
Expand Down Expand Up @@ -45,16 +45,6 @@
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.nmsf-wrapper input[type="submit"] {
background: #f95700 !important;
border-color: #f95700 !important;
border-radius: 0 !important;
}

.nmsf-migrate-back-btn {
border-radius: 0 !important;
}

.nmsf-wrapper textarea {
min-height: 105px;
max-height: 105px;
Expand Down Expand Up @@ -289,15 +279,6 @@

/*Admin Settings Panel*/

.nmsf-wrapper {
position: relative;
border: 1px solid #f957002b;
margin-right: 15px;
margin-top: 22px;
background-color: #eaeaea;
padding: 10px;
box-shadow: 0 1px 3px rgb(0 0 0 / 12%), 0 1px 2px rgb(0 0 0 / 24%);
}

.nmsf-wrapper .nmsf-tabs-content div {
padding: 15px 20px 15px 40px;
Expand Down Expand Up @@ -355,6 +336,7 @@ div.nmsf-panels-area {
margin: 0;
padding: 0;
transition: 0.5s all cubic-bezier(0.075, 0.82, 0.165, 1);
margin-left: 30px;
}

div.nmsf-panels-area .nmsf-panels-content {
Expand Down Expand Up @@ -410,29 +392,28 @@ div.nmsf-panels-area .nmsf-panels-content p {
padding: 8px 10px;
margin-right: 2px;
cursor: pointer;
background: #3985b7;
font-weight: bold;
transition: background ease 0.2s;
color: #fff;
border: 1px solid #c3c4c7;
background: #dcdcde;
}

.nmsf-panels-content-inner .nmsf-panel-settings-area {
order: 99;
flex-grow: 1;
width: 100%;
display: none;
padding: 1rem;
background: #fff;
}

.nmsf-panels-content-inner input[type=radio] {
display: none;
}

.nmsf-panels-content-inner input[type=radio]:checked+label {
background: #fff;
border-top: 2px solid #f95700;
color: #030303;

border-bottom: 1px solid #f0f0f1;
background: #f0f0f1;
color: #000;
}

.nmsf-panels-content-inner input[type=radio]:checked+label+.nmsf-panel-settings-area {
Expand All @@ -453,15 +434,10 @@ div.nmsf-panels-area .nmsf-panels-content p {
background-color: transparent;
}

.nmsf-panel-table tr {
border-top: 1px solid #f9570094;
border-bottom: 1px solid #f9570094;
}

.nmsf-panel-table td,
.nmsf-panel-table th {
padding: .75rem;
vertical-align: top;
vertical-align: middle;
padding-left: 0px;
}

.nmsf-panel-table th {
Expand Down Expand Up @@ -605,13 +581,9 @@ div.nmsf-panels-area .nmsf-panels-content p {
}

.nmsf-section-type h3 {
background-color: #F6F6F6;
margin: 0;
font-weight: 600;
font-family: 'Titillium Web', sans-serif;
font-size: 18px;
padding: 10px;
color: #0473AA;
color: #1d2327;
font-size: 1.3em;
margin: 1em 0;
}

.nmsf-hint-area {
Expand Down Expand Up @@ -653,3 +625,25 @@ div.nmsf-panels-area .nmsf-panels-content p {
color: #fff;
background-color: #343a40;
}
.ppom-is-locked-section{
opacity: 0.7;
}
.ppom-is-locked-field .ppom-notice-upsell{
font-style: italic;
font-weight: 500;
}
.ppom-is-locked-panel .ppom-notice-upsell, .ppom-is-locked-field .ppom-notice-upsell {
background: #fff;
border: 1px solid #c3c4c7;
border-left-width: 4px;
box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
border-left-color: #72aee6;
padding: 12px;
margin-top: 15px;
}
.ppom-is-locked-panel .nmsf-panel-desc, .ppom-is-locked-panel .nmsf-panel-table, .ppom-is-locked-field > * > *:not(.ppom-notice-upsell){ opacity: 0.6; cursor: not-allowed; pointer-events: none; }
.ppom-is-locked-panel input,
.ppom-is-locked-field input,
.ppom-is-locked-field select,
.ppom-is-locked-panel select{ cursor: not-allowed;
pointer-events: none; }
28 changes: 11 additions & 17 deletions backend/assets/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,23 +74,6 @@ jQuery(function($) {
}
});


/**
Migration Event
**/
$(document).on("click", ".nmsf-migrate-back-btn", function(e) {

if (!confirm(nmsf_vars.migrate_back_msg)) {

e.preventDefault();
return false;
}
else {
return true;
}
});


/**
Add Conditional Settings Fields
**/
Expand Down Expand Up @@ -138,6 +121,17 @@ jQuery(function($) {
**/
$('.nmsf-multiselect-js').select2();

/**
* Disabled submit button.
*/
$(document).on('click', '.nmsf-panels-content-inner .nmsf-label', function(){
var isLocked = $(this).hasClass('ppom-is-locked-section');
$(this)
.parents('.nmsf-panels-area')
.find('.woocommerce-save-button')
.attr('disabled', isLocked);
});

const permissionField = $('#ppom_permission_mfields');

$(document).ready(function(){
Expand Down
7 changes: 5 additions & 2 deletions backend/changelog_handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ private function parse_changelog( $changelog_path ) {
if ( strpos( $changelog_line, '**Changes:**' ) !== false || empty( $changelog_line ) ) {
continue;
}
if ( substr( ltrim( $changelog_line ), 0, 3 ) === '###' ) {
if ( substr( ltrim( $changelog_line ), 0, 4 ) === '####' ) {
$release_count ++;

preg_match( '/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/', $changelog_line, $found_v );
Expand All @@ -63,7 +63,10 @@ private function parse_changelog( $changelog_path ) {
);
continue;
}
if ( preg_match( '/[*|-]?\s?(\[fix]|\[Fix]|fix|Fix)[:]?\s?(\b|(?=\[))/', $changelog_line ) ) {
if ( substr( ltrim( $changelog_line ), 0, 3 ) === '###' ) {
continue;
}
if ( preg_match( '/[*|-]?\s?(\[fix]|\[Fix]|fix|Fix|Fixed)[:]?\s?(\b|(?=\[))/', $changelog_line ) ) {
$changelog_line = preg_replace( '/[*|-]?\s?(\[fix]|\[Fix]|fix|Fix)[:]?\s?(\b|(?=\[))/', '', $changelog_line );
$releases[ $release_count ]['fixes'][] = $this->parse_md_and_clean( $changelog_line );
continue;
Expand Down
Loading
Loading