Completed
Push — master ( 5df60e...534e94 )
by
unknown
02:26
created
public/includes/assets.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 			$postid 			= get_the_ID();
69 69
 			
70 70
 			$post_date = get_the_time('U', $postid);
71
-            $delta = time() - $post_date;
71
+			$delta = time() - $post_date;
72 72
 
73 73
 			$strings = array(
74 74
 				'save' 				=> __('Save','lasso'),
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
 			
194 194
 			
195 195
 			if (!$using_restapiv2) {
196
-               // enqueue REST API V1
196
+			   // enqueue REST API V1
197 197
 			   wp_enqueue_script( 'wp-api-js', LASSO_URL.'/public/assets/js/source/util--wp-api.js', array( 'jquery', 'underscore', 'backbone' ), LASSO_VERSION, true );
198 198
 			   $settings = array( 'root' => home_url( $home_url ), 'nonce' => wp_create_nonce( 'wp_json' ) );
199 199
 			   wp_localize_script( 'wp-api-js', 'WP_API_Settings', $settings );
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 			if ($show_color) {
204 204
 				wp_enqueue_script('lasso', LASSO_URL. "/public/assets/js/lasso{$postfix}.js", array('jquery', 'iris'), LASSO_VERSION, true);
205 205
 			} else {
206
-			    wp_enqueue_script('lasso', LASSO_URL. "/public/assets/js/lasso{$postfix}.js", array('jquery'), LASSO_VERSION, true);
206
+				wp_enqueue_script('lasso', LASSO_URL. "/public/assets/js/lasso{$postfix}.js", array('jquery'), LASSO_VERSION, true);
207 207
 			}
208 208
 			wp_localize_script('lasso', 'lasso_editor', apply_filters('lasso_localized_objects', $objects ) );
209 209
 
Please login to merge, or discard this patch.
includes/process/save.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 block discarded – undo
146 146
 	 */
147 147
 	protected function replace_rendered_shortcodes( $content ) {
148 148
 		//debug line
149
-        //file_put_contents(WP_PLUGIN_DIR."/file1.txt", $content);
149
+		//file_put_contents(WP_PLUGIN_DIR."/file1.txt", $content);
150 150
 		
151 151
 
152 152
 		if ( false === strpos( $content, '--EDITUS_OTHER_SHORTCODE_START|' ) ) {
Please login to merge, or discard this patch.
public/includes/editor-modules.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 	$toolbar_class  = $toolbar_headings ? 'toolbar-extended' : false;
151 151
 	
152 152
 	// mobile styles
153
-    $mobile_class = $is_mobile ? 'lasso-mobile' : false;
153
+	$mobile_class = $is_mobile ? 'lasso-mobile' : false;
154 154
 	$mobile_style =$is_mobile ? 'style="bottom:0px;"' : null;
155 155
 	
156 156
 	//show color
@@ -529,8 +529,8 @@  discard block
 block discarded – undo
529 529
 	global $post;
530 530
 	
531 531
 	global $wp_post_types;
532
-    $labels = &$wp_post_types['post']->labels;
533
-    $labels->name = 'Articles';
532
+	$labels = &$wp_post_types['post']->labels;
533
+	$labels->name = 'Articles';
534 534
 
535 535
 	ob_start();
536 536
 
Please login to merge, or discard this patch.
public/includes/lasso.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -255,14 +255,14 @@  discard block
 block discarded – undo
255 255
 		$out = load_textdomain( $domain, trailingslashit( LASSO_DIR ). 'languages/' . $domain . '-' . $locale . '.mo' );
256 256
 	}
257 257
 	
258
-    // new ajax function to lock post for editing
258
+	// new ajax function to lock post for editing
259 259
 	public function editus_lock_post()
260 260
 	{
261 261
 		$post_id= $_POST["postid"];
262 262
 		$locked = wp_check_post_lock($post_id);
263 263
 		
264 264
 		if (!$locked) {
265
-		    wp_set_post_lock($post_id);
265
+			wp_set_post_lock($post_id);
266 266
 			echo "true";
267 267
 		} else {
268 268
 			$user_info = get_userdata($locked);
@@ -281,52 +281,52 @@  discard block
 block discarded – undo
281 281
 		 );
282 282
 		foreach ($_POST as $key => $value) {
283 283
 			if ($key !="code" && $key !="action") {
284
-			    //$shortcode = $shortcode.$key.'="'.$value.'" ';
284
+				//$shortcode = $shortcode.$key.'="'.$value.'" ';
285 285
 				$atts[$key] = $value;
286 286
 			}
287 287
 		}
288 288
 		if ($code == "aesop_video") {
289
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-video.php');
290
-		    echo aesop_video_shortcode($atts);
289
+			require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-video.php');
290
+			echo aesop_video_shortcode($atts);
291 291
 		}
292 292
 		
293 293
 		if ($code == "aesop_image") {
294
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-image.php');
295
-		    echo aesop_image_shortcode($atts);
294
+			require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-image.php');
295
+			echo aesop_image_shortcode($atts);
296 296
 		}
297 297
 		if ($code == "aesop_quote") {
298
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-quote.php');
299
-		    echo aesop_quote_shortcode($atts);
298
+			require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-quote.php');
299
+			echo aesop_quote_shortcode($atts);
300 300
 		}
301 301
 		
302 302
 		if ($code == "aesop_parallax") {
303
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-parallax.php');
304
-		    echo aesop_parallax_shortcode($atts);
303
+			require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-parallax.php');
304
+			echo aesop_parallax_shortcode($atts);
305 305
 		}
306 306
 		
307 307
 		if ($code == "aesop_character") {
308
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-character.php');
309
-		    echo aesop_character_shortcode($atts);
308
+			require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-character.php');
309
+			echo aesop_character_shortcode($atts);
310 310
 		}
311 311
 		
312 312
 		if ($code == "aesop_collection") {
313
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-collections.php');
314
-		    echo aesop_collection_shortcode($atts);
313
+			require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-collections.php');
314
+			echo aesop_collection_shortcode($atts);
315 315
 		}
316 316
 		
317 317
 		if ($code == "aesop_chapter") {
318
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-heading.php');
319
-		    echo aesop_chapter_shortcode($atts);
318
+			require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-heading.php');
319
+			echo aesop_chapter_shortcode($atts);
320 320
 		}
321 321
 		
322 322
 		if ($code == "aesop_content") {
323
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-cbox.php');
324
-		    echo aesop_content_shortcode($atts, $atts['content_data']);
323
+			require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-cbox.php');
324
+			echo aesop_content_shortcode($atts, $atts['content_data']);
325 325
 		}
326 326
 		
327 327
 		if ($code == "aesop_gallery") {
328
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-gallery.php');
329
-		    echo do_shortcode( '[aesop_gallery id="'.$atts["id"].'"]');
328
+			require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-gallery.php');
329
+			echo do_shortcode( '[aesop_gallery id="'.$atts["id"].'"]');
330 330
 		}
331 331
 		
332 332
 		exit; 
Please login to merge, or discard this patch.
public/includes/wrap-shortcodes.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 	if ( strpos( $m[2],'aesop_'  ) === 0 ) {
69 69
 		// check against the exceptions
70 70
 		if (strpos_arr($m[2],$exception_arr1)===false) {
71
-		    return $m[0];
71
+			return $m[0];
72 72
 		}
73 73
 	}
74 74
 	if (strpos_arr($m[2],$exception_arr2)!==false) {
@@ -80,9 +80,9 @@  discard block
 block discarded – undo
80 80
 
81 81
 /* a helper function */
82 82
 function strpos_arr($haystack, $needle) {
83
-    if(!is_array($needle)) $needle = array($needle);
84
-    foreach($needle as $what) {
85
-        if(($pos = strpos($haystack, $what))!==false) return $pos;
86
-    }
87
-    return false;
83
+	if(!is_array($needle)) $needle = array($needle);
84
+	foreach($needle as $what) {
85
+		if(($pos = strpos($haystack, $what))!==false) return $pos;
86
+	}
87
+	return false;
88 88
 }
89 89
\ No newline at end of file
Please login to merge, or discard this patch.