Completed
Push — master ( 790191...86abac )
by
unknown
01:45
created
public/includes/assets.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -20,10 +20,10 @@  discard block
 block discarded – undo
20 20
 	
21 21
 		global $post;
22 22
 		if ( lasso_user_can('edit_posts') && 
23
-		     !( function_exists( 'is_gutenberg_page' ) && has_blocks( $post->post_content) )) {// bail if the post has Gutenberg bloc
23
+			 !( function_exists( 'is_gutenberg_page' ) && has_blocks( $post->post_content) )) {// bail if the post has Gutenberg bloc
24 24
 			
25 25
 			/**    Returns the time offset from UTC
26
-			*/
26
+			 */
27 27
 			function get_UTC_offset() {
28 28
 				$timezone_string = get_option( 'timezone_string' );
29 29
 				if (empty( $timezone_string ) ) {
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
 			wp_enqueue_style('lasso-style', LASSO_URL.'/public/assets/css/lasso.css', LASSO_VERSION, true);
40 40
 
41
-            //don't load autocomplete if it's a stockholm theme
41
+			//don't load autocomplete if it's a stockholm theme
42 42
 			$themename  	= wp_get_theme()->get('Name');
43 43
 			if ($themename !='Stockholm' ) {
44 44
 				wp_enqueue_script('jquery-ui-autocomplete');
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 			$tz_offset = get_UTC_offset();
107 107
 			$post_date = get_the_time('U', $postid);
108 108
 			$time = (time()+$tz_offset);
109
-            $delta = $time - $post_date;
109
+			$delta = $time - $post_date;
110 110
 
111 111
 			$strings = array(
112 112
 				'save' 				=> __('Save','lasso'),
@@ -158,11 +158,11 @@  discard block
 block discarded – undo
158 158
 			$gallery_nonce = wp_create_nonce( $gallery_nonce_action );
159 159
 			
160 160
 			
161
-            if ($allow_change_date) {
162
-			    $permalink = get_site_url().'/?p='.$postid;
163
-            } else {
164
-                $permalink = get_permalink($postid);
165
-            }
161
+			if ($allow_change_date) {
162
+				$permalink = get_site_url().'/?p='.$postid;
163
+			} else {
164
+				$permalink = get_permalink($postid);
165
+			}
166 166
 			
167 167
 			// rest api
168 168
 			$rest_nonce = '';
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
 				'customFields'      => $custom_fields,
255 255
 				'clickToInsert'     => ($insert_comp_ui =='click'),
256 256
 				'buttonOnEmptyP'     => ($insert_comp_ui =='mediumcom'),      // auto show a button to insert components on an empty paragraph      
257
-                'rtl'               => is_rtl(),				
257
+				'rtl'               => is_rtl(),				
258 258
 				'skipToEdit'        =>( $delta < 10 && $delta >=0 ), // if it's a new post, skip to edit mode
259 259
 			);
260 260
 
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
 			
264 264
 			
265 265
 			if (!$using_restapiv2) {
266
-               // enqueue REST API V1
266
+			   // enqueue REST API V1
267 267
 			   wp_enqueue_script( 'wp-api-js', LASSO_URL.'/public/assets/js/source/util--wp-api.js', array( 'jquery', 'underscore', 'backbone' ), LASSO_VERSION, true );
268 268
 			   $settings = array( 'root' => home_url( $home_url ), 'nonce' => wp_create_nonce( 'wp_json' ) );
269 269
 			   wp_localize_script( 'wp-api-js', 'WP_API_Settings', $settings );
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
 			if ($show_color) {
280 280
 				wp_enqueue_script('lasso', LASSO_URL. "/public/assets/js/lasso{$postfix}.js", array('jquery', 'wp-api','iris'), LASSO_VERSION, true);
281 281
 			} else {
282
-			    wp_enqueue_script('lasso', LASSO_URL. "/public/assets/js/lasso{$postfix}.js", array('jquery', 'wp-api'), LASSO_VERSION, true);
282
+				wp_enqueue_script('lasso', LASSO_URL. "/public/assets/js/lasso{$postfix}.js", array('jquery', 'wp-api'), LASSO_VERSION, true);
283 283
 			}
284 284
 			wp_localize_script('lasso', 'lasso_editor', apply_filters('lasso_localized_objects', $objects ) );
285 285
 
Please login to merge, or discard this patch.