Completed
Push — master ( df1b2a...9a7ab7 )
by
unknown
34:48
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');
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 			$tz_offset = get_UTC_offset();
110 110
 			$post_date = get_the_time('U', $postid);
111 111
 			$time = (time()+$tz_offset);
112
-            $delta = $time - $post_date;
112
+			$delta = $time - $post_date;
113 113
 
114 114
 			$strings = array(
115 115
 				'save' 				=> __('Save','lasso'),
@@ -161,11 +161,11 @@  discard block
 block discarded – undo
161 161
 			$gallery_nonce = wp_create_nonce( $gallery_nonce_action );
162 162
 			
163 163
 			
164
-            if ($allow_change_date) {
165
-			    $permalink = get_site_url().'/?p='.$postid;
166
-            } else {
167
-                $permalink = get_permalink($postid);
168
-            }
164
+			if ($allow_change_date) {
165
+				$permalink = get_site_url().'/?p='.$postid;
166
+			} else {
167
+				$permalink = get_permalink($postid);
168
+			}
169 169
 			
170 170
 			// rest api
171 171
 			$rest_nonce = '';
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
 				'customFields'      => $custom_fields,
258 258
 				'clickToInsert'     => ($insert_comp_ui =='click'),
259 259
 				'buttonOnEmptyP'     => ($insert_comp_ui =='mediumcom'),      // auto show a button to insert components on an empty paragraph      
260
-                'rtl'               => is_rtl(),				
260
+				'rtl'               => is_rtl(),				
261 261
 				'skipToEdit'        =>( $delta < 10 && $delta >=0 ), // if it's a new post, skip to edit mode
262 262
 				'links_editable'    => $links_editable
263 263
 			);
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
 			
268 268
 			
269 269
 			if (!$using_restapiv2) {
270
-               // enqueue REST API V1
270
+			   // enqueue REST API V1
271 271
 			   wp_enqueue_script( 'wp-api-js', LASSO_URL.'/public/assets/js/source/util--wp-api.js', array( 'jquery', 'underscore', 'backbone' ), LASSO_VERSION, true );
272 272
 			   $settings = array( 'root' => home_url( $home_url ), 'nonce' => wp_create_nonce( 'wp_json' ) );
273 273
 			   wp_localize_script( 'wp-api-js', 'WP_API_Settings', $settings );
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
 			if ($show_color) {
284 284
 				wp_enqueue_script('lasso', LASSO_URL. "/public/assets/js/lasso{$postfix}.js", array('jquery', 'wp-api','iris'), LASSO_VERSION, true);
285 285
 			} else {
286
-			    wp_enqueue_script('lasso', LASSO_URL. "/public/assets/js/lasso{$postfix}.js", array('jquery', 'wp-api'), LASSO_VERSION, true);
286
+				wp_enqueue_script('lasso', LASSO_URL. "/public/assets/js/lasso{$postfix}.js", array('jquery', 'wp-api'), LASSO_VERSION, true);
287 287
 			}
288 288
 			wp_localize_script('lasso', 'lasso_editor', apply_filters('lasso_localized_objects', $objects ) );
289 289
 
Please login to merge, or discard this patch.