Skip to content

Commit 6e4434c

Browse files
committed
1.3.6
1 parent 074f577 commit 6e4434c

10 files changed

+2641
-28
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
LifterLMS Blocks Changelog
22
==========================
33

4+
v1.3.6 - 2019-02-22
5+
-------------------
6+
7+
+ Change method for Pricing Table block re-rendering to prevent an issue resulting it always appearing that the post has unsaved data.
8+
9+
410
v1.3.5 - 2019-02-21
511
-------------------
612

dist/blocks.build.js

Lines changed: 1782 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/blocks.editor.build.css

Lines changed: 734 additions & 8 deletions
Large diffs are not rendered by default.

dist/blocks.style.build.css

Lines changed: 102 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,102 @@
1-
.llms-cols:before,.llms-cols:after{content:" ";display:table}.llms-cols:after{clear:both}.llms-cols .llms-col{width:100%}@media all and (min-width: 600px){.llms-cols [class*="llms-col-"]{float:left}.llms-cols .llms-col-1{width:100%}.llms-cols .llms-col-2{width:50%}.llms-cols .llms-col-3{width:33.33333%}.llms-cols .llms-col-4{width:25%}.llms-cols .llms-col-5{width:20%}.llms-cols .llms-col-6{width:16.66667%}.llms-cols .llms-col-7{width:14.28571%}.llms-cols .llms-col-8{width:12.5%}.llms-cols .llms-col-9{width:11.11111%}.llms-cols .llms-col-10{width:10%}.llms-cols .llms-col-11{width:9.09091%}.llms-cols .llms-col-12{width:8.33333%}}
2-
.llms-cols:before,.llms-cols:after{content:" ";display:table}.llms-cols:after{clear:both}.llms-cols .llms-col{width:100%}@media all and (min-width: 600px){.llms-cols [class*="llms-col-"]{float:left}.llms-cols .llms-col-1{width:100%}.llms-cols .llms-col-2{width:50%}.llms-cols .llms-col-3{width:33.33333%}.llms-cols .llms-col-4{width:25%}.llms-cols .llms-col-5{width:20%}.llms-cols .llms-col-6{width:16.66667%}.llms-cols .llms-col-7{width:14.28571%}.llms-cols .llms-col-8{width:12.5%}.llms-cols .llms-col-9{width:11.11111%}.llms-cols .llms-col-10{width:10%}.llms-cols .llms-col-11{width:9.09091%}.llms-cols .llms-col-12{width:8.33333%}}
1+
/**
2+
* Common SCSS
3+
*
4+
* Include variables and mixins that are used across the project.
5+
*
6+
* @since [version]
7+
* @version [version]
8+
*/
9+
.llms-cols:before, .llms-cols:after {
10+
content: " ";
11+
display: table; }
12+
13+
.llms-cols:after {
14+
clear: both; }
15+
16+
.llms-cols .llms-col {
17+
width: 100%; }
18+
19+
@media all and (min-width: 600px) {
20+
.llms-cols [class*="llms-col-"] {
21+
float: left; }
22+
.llms-cols .llms-col-1 {
23+
width: 100%; }
24+
.llms-cols .llms-col-2 {
25+
width: 50%; }
26+
.llms-cols .llms-col-3 {
27+
width: 33.33333%; }
28+
.llms-cols .llms-col-4 {
29+
width: 25%; }
30+
.llms-cols .llms-col-5 {
31+
width: 20%; }
32+
.llms-cols .llms-col-6 {
33+
width: 16.66667%; }
34+
.llms-cols .llms-col-7 {
35+
width: 14.28571%; }
36+
.llms-cols .llms-col-8 {
37+
width: 12.5%; }
38+
.llms-cols .llms-col-9 {
39+
width: 11.11111%; }
40+
.llms-cols .llms-col-10 {
41+
width: 10%; }
42+
.llms-cols .llms-col-11 {
43+
width: 9.09091%; }
44+
.llms-cols .llms-col-12 {
45+
width: 8.33333%; } }
46+
47+
/**
48+
* Styles
49+
*
50+
* CSS for both Frontend+Backend.
51+
*/
52+
/**
53+
* Common SCSS
54+
*
55+
* Include variables and mixins that are used across the project.
56+
*
57+
* @since [version]
58+
* @version [version]
59+
*/
60+
.llms-cols:before, .llms-cols:after {
61+
content: " ";
62+
display: table; }
63+
64+
.llms-cols:after {
65+
clear: both; }
66+
67+
.llms-cols .llms-col {
68+
width: 100%; }
69+
70+
@media all and (min-width: 600px) {
71+
.llms-cols [class*="llms-col-"] {
72+
float: left; }
73+
.llms-cols .llms-col-1 {
74+
width: 100%; }
75+
.llms-cols .llms-col-2 {
76+
width: 50%; }
77+
.llms-cols .llms-col-3 {
78+
width: 33.33333%; }
79+
.llms-cols .llms-col-4 {
80+
width: 25%; }
81+
.llms-cols .llms-col-5 {
82+
width: 20%; }
83+
.llms-cols .llms-col-6 {
84+
width: 16.66667%; }
85+
.llms-cols .llms-col-7 {
86+
width: 14.28571%; }
87+
.llms-cols .llms-col-8 {
88+
width: 12.5%; }
89+
.llms-cols .llms-col-9 {
90+
width: 11.11111%; }
91+
.llms-cols .llms-col-10 {
92+
width: 10%; }
93+
.llms-cols .llms-col-11 {
94+
width: 9.09091%; }
95+
.llms-cols .llms-col-12 {
96+
width: 8.33333%; } }
97+
98+
/**
99+
* Styles
100+
*
101+
* CSS for both Frontend+Backend.
102+
*/

includes/blocks/class-llms-blocks-pricing-table-block.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* @package LifterLMS_Blocks/Blocks
66
* @since 1.0.0
7-
* @version [version]
7+
* @version 1.3.6
88
*
99
* @render_hook llms_pricing-table-block_render
1010
*/
@@ -51,7 +51,7 @@ public function add_hooks( $attributes = array(), $content = '' ) {
5151
*
5252
* @return array
5353
* @since 1.0.0
54-
* @version [version]
54+
* @version 1.3.6
5555
*/
5656
public function get_attributes() {
5757
return array_merge(

lifterlms-blocks.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Plugin Name: LifterLMS Blocks
99
* Plugin URI: https://github.com/gocodebox/lifterlms-blocks
1010
* Description: WordPress Editor (Gutenberg) blocks for LifterLMS.
11-
* Version: 1.3.5
11+
* Version: 1.3.6
1212
* Author: LifterLMS
1313
* Author URI: https://lifterlms.com/
1414
* License: GPLv3
@@ -22,7 +22,7 @@
2222

2323
// Define Constants.
2424
if ( ! defined( 'LLMS_BLOCKS_VERSION' ) ) {
25-
define( 'LLMS_BLOCKS_VERSION', '1.3.5' );
25+
define( 'LLMS_BLOCKS_VERSION', '1.3.6' );
2626
}
2727

2828
/**

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lifterlms-blocks",
3-
"version": "1.3.5",
3+
"version": "1.3.6",
44
"description": "blocks",
55
"author": "LifterLMS",
66
"homepage": "https://lifterlms.com/",

src/blocks/pricing-table/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* BLOCK: llms/pricing-table
33
*
44
* @since 1.0.0
5-
* @version [version]
5+
* @version 1.3.6
66
*/
77

88
// WP Deps.
@@ -36,7 +36,7 @@ export const name = 'llms/pricing-table';
3636
* @param {Object} settings Block settings.
3737
* @return {?WPBlock} The block, if it has been successfully, registered; otherwise `undefined`.
3838
* @since 1.0.0
39-
* @version [version]
39+
* @version 1.3.6
4040
*/
4141
export const settings = {
4242

@@ -66,7 +66,7 @@ export const settings = {
6666
* @param {Object} props Block properties.
6767
* @return {Function}
6868
* @since 1.0.0
69-
* @version [version]
69+
* @version 1.3.6
7070
*/
7171
edit: props => {
7272

src/blocks/pricing-table/subscribe.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
22
* WP Data Subscription for the llms/pricing-table block
33
*
4-
* @since [version]
5-
* @version [version]
4+
* @since 1.3.6
5+
* @version 1.3.6
66
*/
77

88
// WP Deps.
@@ -21,8 +21,8 @@ let lastRevision = null;
2121

2222
/**
2323
* Watch core data to manually save Access Plan data when the post is updated or published.
24-
* @since [version]
25-
* @version [version]
24+
* @since 1.3.6
25+
* @version 1.3.6
2626
*/
2727
const watchForChanges = subscribe( () => {
2828

@@ -49,8 +49,8 @@ const watchForChanges = subscribe( () => {
4949
/**
5050
* Determine if the button is disabled (already saving, for example).
5151
* @return {Boolean}
52-
* @since [version]
53-
* @version [version]
52+
* @since 1.3.6
53+
* @version 1.3.6
5454
*/
5555
const isBtnDisabled = function() {
5656
return ( 'disabled' === $btn.attr( 'disabled' ) )
@@ -59,8 +59,8 @@ const watchForChanges = subscribe( () => {
5959
/**
6060
* Determine if the post revision ID has changed, if it has we need to update our plans.
6161
* @return {Boolean}
62-
* @since [version]
63-
* @version [version]
62+
* @since 1.3.6
63+
* @version 1.3.6
6464
*/
6565
const hasRevisionChanged = function() {
6666
return lastRevision !== getCurrentPostLastRevisionId();

0 commit comments

Comments
 (0)