Skip to content

Commit baf8c0a

Browse files
author
nikeo
committed
v3.1.2 build
1 parent 0d049aa commit baf8c0a

15 files changed

+79
-18
lines changed

__build__

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit c1367fb210e0d1971af8d1f4e87cfa761b6c8702
1+
Subproject commit 0e0eb9cecfaacd161078638777401772f3442c26

assets/front/css/modules/quote-module.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@
5252

5353
.sek-quote.sek-quote-design .sek-quote-inner {
5454
color: inherit;
55-
padding-left: calc( 10px + 0.7em);
55+
}
56+
57+
.sek-quote.sek-quote-design.sek-quote-icon-before .sek-quote-inner {
58+
padding-left: calc( 10px + 0.7 * 50px);
5659
}
5760

5861
.sek-quote.sek-quote-design.sek-border-before {
@@ -84,7 +87,6 @@
8487
.sek-quote.sek-quote-design.sek-quote-icon-before {
8588
position: relative;
8689
display: flex;
87-
font-size: 50px;
8890
}
8991

9092
.sek-quote.sek-quote-design.sek-quote-icon-before .sek-quote-content *:last-child {
@@ -94,6 +96,8 @@
9496
.sek-quote.sek-quote-design.sek-quote-icon-before::before {
9597
content: "\275D";
9698
font-family: "Arial Unicode MS", Code2000;
99+
font-size: 50px;
100+
line-height: 1em;
97101
color: #ccc;
98102
font-style: normal;
99103
text-align: center;

assets/front/css/modules/quote-module.min.css

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

assets/front/css/sek-base-rtl.css

Lines changed: 6 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/front/css/sek-base-rtl.css.map

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

assets/front/css/sek-base-rtl.min.css

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

assets/front/css/sek-base.css

Lines changed: 6 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/front/css/sek-base.css.map

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

assets/front/css/sek-base.min.css

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

inc/sektions/ccat-sektions-base.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2530,6 +2530,8 @@ function _schedule_front_ajax_actions() {
25302530
// Returns the customize url for the edit button when using Gutenberg editor
25312531
// implemented for https://github.com/presscustomizr/nimble-builder/issues/449
25322532
// @see assets/admin/js/nimble-gutenberg.js
2533+
add_action( 'wp_ajax_sek_get_post_status_before_customizing', array( $this, 'sek_get_post_status_before_customizing' ) );
2534+
25332535
add_action( 'wp_ajax_sek_get_customize_url_for_nimble_edit_button', array( $this, 'sek_get_customize_url_for_nimble_edit_button' ) );
25342536

25352537
// This is the list of accepted actions
@@ -2914,6 +2916,25 @@ function sek_get_customize_url_for_nimble_edit_button() {
29142916
wp_send_json_success( $customize_url );
29152917
}
29162918

2919+
// check post status before attempting to open the customizer. introduced for #831
2920+
// draft post can't be edited with Nimble Builder
2921+
function sek_get_post_status_before_customizing() {
2922+
$this->sek_do_ajax_pre_checks( array( 'check_nonce' => false ) );
2923+
2924+
if ( !isset( $_POST['nimble_edit_post_id'] ) || empty( $_POST['nimble_edit_post_id'] ) ) {
2925+
wp_send_json_error( __CLASS__ . '::' . __FUNCTION__ . ' => missing post_id' );
2926+
}
2927+
2928+
$post_id = $_POST['nimble_edit_post_id'];
2929+
$post = get_post($post_id);
2930+
$post_status = 'not_set';
2931+
2932+
if ( $post && is_object($post) && isset($post->post_status)) {
2933+
$post_status = $post->post_status;
2934+
}
2935+
wp_send_json_success( $post_status );
2936+
}
2937+
29172938
}//class
29182939
endif;
29192940
?><?php

0 commit comments

Comments
 (0)