Completed
Push — master ( 07f885...3f46f1 )
by
unknown
02:28
created
public/includes/assets.php 1 patch
Spacing   +62 added lines, -62 removed lines patch added patch discarded remove patch
@@ -10,16 +10,16 @@  discard block
 block discarded – undo
10 10
 
11 11
 class assets {
12 12
 
13
-	public function __construct(){
13
+	public function __construct() {
14 14
 
15
-		add_action('wp_enqueue_scripts', array($this,'scripts'));
15
+		add_action('wp_enqueue_scripts', array($this, 'scripts'));
16 16
 	}
17 17
 
18
-	public function scripts(){
18
+	public function scripts() {
19 19
 
20 20
 	
21 21
         // for now editus is disabled for mobile. it will be reenabled when mobile platforms are better supported
22
-		if ( lasso_user_can('edit_posts')) {
22
+		if (lasso_user_can('edit_posts')) {
23 23
 
24 24
 			wp_enqueue_style('lasso-style', LASSO_URL.'/public/assets/css/lasso.css', LASSO_VERSION, true);
25 25
 
@@ -34,82 +34,82 @@  discard block
 block discarded – undo
34 34
 			// url for json api
35 35
 			$home_url = function_exists('json_get_url_prefix') ? json_get_url_prefix() : false;
36 36
 
37
-			$article_object 	= lasso_editor_get_option('article_class','lasso_editor');
37
+			$article_object 	= lasso_editor_get_option('article_class', 'lasso_editor');
38 38
 
39
-			$article_object 	= empty( $article_object ) && lasso_get_supported_theme_class() ? lasso_get_supported_theme_class() : $article_object;
39
+			$article_object 	= empty($article_object) && lasso_get_supported_theme_class() ? lasso_get_supported_theme_class() : $article_object;
40 40
 
41
-			$featImgClass 		= lasso_editor_get_option('featimg_class','lasso_editor');
42
-			if (empty( $featImgClass )) {
41
+			$featImgClass = lasso_editor_get_option('featimg_class', 'lasso_editor');
42
+			if (empty($featImgClass)) {
43 43
 				$featImgClass = lasso_get_supported_theme_featured_image_class();
44 44
 			}
45
-			$titleClass 		= lasso_editor_get_option('title_class','lasso_editor');
46
-			if (empty( $titleClass )) {
45
+			$titleClass = lasso_editor_get_option('title_class', 'lasso_editor');
46
+			if (empty($titleClass)) {
47 47
 				$titleClass = lasso_get_supported_theme_title_class();
48 48
 			}
49
-			$toolbar_headings  	= lasso_editor_get_option('toolbar_headings', 'lasso_editor');
50
-			$objectsNoSave  	= lasso_editor_get_option('dont_save', 'lasso_editor');
49
+			$toolbar_headings = lasso_editor_get_option('toolbar_headings', 'lasso_editor');
50
+			$objectsNoSave = lasso_editor_get_option('dont_save', 'lasso_editor');
51 51
 
52 52
 			// post id reference
53
-			$postid 			= get_the_ID();
53
+			$postid = get_the_ID();
54 54
 
55 55
 			$strings = array(
56
-				'save' 				=> __('Save','lasso'),
57
-				'saving' 			=> __('Saving...','lasso'),
58
-				'saved'				=> __('Saved!','lasso'),
59
-				'adding' 			=> __('Adding...','lasso'),
60
-				'added'				=> __('Added!','lasso'),
61
-				'loading' 			=> __('Loading...','lasso'),
62
-				'loadMore'			=> __('Load More','lasso'),
63
-				'noPostsFound'		=> __('No more posts found','lasso'),
64
-				'fetchFail'	    	=> __('Fetching failed. REST API plugin may not have been installed or configured correctly.','lasso'),
65
-				'galleryCreated' 	=> __('Gallery Created!','lasso'),
66
-				'galleryUpdated' 	=> __('Gallery Updated!','lasso'),
67
-				'justWrite'			=> __('Just write...','lasso'),
68
-				'chooseImage'		=> __('Choose an image','lasso'),
69
-				'updateImage'		=> __('Update Image','lasso'),
70
-				'insertImage'		=> __('Insert Image','lasso'),
71
-				'selectImage'		=> __('Select Image','lasso'),
72
-				'removeFeatImg'     => __('Remove featured image?','lasso'),
73
-				'updateSelectedImg' => __('Update Selected Image','lasso'),
74
-				'chooseImages'		=> __('Choose images','lasso'),
75
-				'editImage'			=> __('Edit Image','lasso'),
76
-				'addImages'			=> __('Add Images','lasso'),
77
-				'addNewGallery'		=> __('Add New Gallery','lasso'),
78
-				'selectGallery'		=> __('Select Lasso Gallery Image','lasso'),
79
-				'useSelectedImages' => __('Use Selected Images','lasso'),
80
-				'publishPost'		=> __('Publish Post?','lasso'),
81
-				'publishYes'		=> __('Yes, publish it!','lasso'),
82
-				'deletePost'		=> __('Trash Post?','lasso'),
83
-				'deleteYes'			=> __('Yes, trash it!','lasso'),
84
-				'warning'			=> __('Oh snap!','laso'),
85
-				'cancelText'		=> __('O.K. got it!','lasso'),
86
-				'missingClass'		=> __('It looks like we are either missing the Article CSS class, or it is configured incorrectly. Editus will not function correctly without this CSS class.','lasso'),
56
+				'save' 				=> __('Save', 'lasso'),
57
+				'saving' 			=> __('Saving...', 'lasso'),
58
+				'saved'				=> __('Saved!', 'lasso'),
59
+				'adding' 			=> __('Adding...', 'lasso'),
60
+				'added'				=> __('Added!', 'lasso'),
61
+				'loading' 			=> __('Loading...', 'lasso'),
62
+				'loadMore'			=> __('Load More', 'lasso'),
63
+				'noPostsFound'		=> __('No more posts found', 'lasso'),
64
+				'fetchFail'	    	=> __('Fetching failed. REST API plugin may not have been installed or configured correctly.', 'lasso'),
65
+				'galleryCreated' 	=> __('Gallery Created!', 'lasso'),
66
+				'galleryUpdated' 	=> __('Gallery Updated!', 'lasso'),
67
+				'justWrite'			=> __('Just write...', 'lasso'),
68
+				'chooseImage'		=> __('Choose an image', 'lasso'),
69
+				'updateImage'		=> __('Update Image', 'lasso'),
70
+				'insertImage'		=> __('Insert Image', 'lasso'),
71
+				'selectImage'		=> __('Select Image', 'lasso'),
72
+				'removeFeatImg'     => __('Remove featured image?', 'lasso'),
73
+				'updateSelectedImg' => __('Update Selected Image', 'lasso'),
74
+				'chooseImages'		=> __('Choose images', 'lasso'),
75
+				'editImage'			=> __('Edit Image', 'lasso'),
76
+				'addImages'			=> __('Add Images', 'lasso'),
77
+				'addNewGallery'		=> __('Add New Gallery', 'lasso'),
78
+				'selectGallery'		=> __('Select Lasso Gallery Image', 'lasso'),
79
+				'useSelectedImages' => __('Use Selected Images', 'lasso'),
80
+				'publishPost'		=> __('Publish Post?', 'lasso'),
81
+				'publishYes'		=> __('Yes, publish it!', 'lasso'),
82
+				'deletePost'		=> __('Trash Post?', 'lasso'),
83
+				'deleteYes'			=> __('Yes, trash it!', 'lasso'),
84
+				'warning'			=> __('Oh snap!', 'laso'),
85
+				'cancelText'		=> __('O.K. got it!', 'lasso'),
86
+				'missingClass'		=> __('It looks like we are either missing the Article CSS class, or it is configured incorrectly. Editus will not function correctly without this CSS class.', 'lasso'),
87 87
 				'missingConfirm'	=> __('Update Settings', 'lasso'),
88
-				'helperText'		=> __('one more letter','lasso'),
88
+				'helperText'		=> __('one more letter', 'lasso'),
89 89
 				'editingBackup'  	=> __('You are currently editing a backup copy of this post.')
90 90
 			);
91 91
 
92
-			$api_url = trailingslashit( home_url() ) . 'lasso-internal-api';
92
+			$api_url = trailingslashit(home_url()).'lasso-internal-api';
93 93
 
94 94
 			$gallery_class = new gallery();
95 95
 			$gallery_nonce_action = $gallery_class->nonce_action;
96
-			$gallery_nonce = wp_create_nonce( $gallery_nonce_action );
96
+			$gallery_nonce = wp_create_nonce($gallery_nonce_action);
97 97
 
98 98
 			// localized objects
99 99
 			$objects = array(
100
-				'ajaxurl' 			=> esc_url( $api_url ),
100
+				'ajaxurl' 			=> esc_url($api_url),
101 101
 				'editor' 			=> 'lasso--content', // ID of editable content (without #) DONT CHANGE
102 102
 				'article_object'	=> $article_object,
103 103
 				'featImgClass'		=> $featImgClass,
104 104
 				'titleClass'		=> $titleClass,
105 105
 				'strings'			=> $strings,
106
-				'settingsLink'		=> function_exists('is_multisite') && is_multisite() ? network_admin_url( 'settings.php?page=lasso-editor' ) : admin_url( 'admin.php?page=lasso-editor-settings' ),
107
-				'post_status'		=> get_post_status( $postid ),
106
+				'settingsLink'		=> function_exists('is_multisite') && is_multisite() ? network_admin_url('settings.php?page=lasso-editor') : admin_url('admin.php?page=lasso-editor-settings'),
107
+				'post_status'		=> get_post_status($postid),
108 108
 				'postid'			=> $postid,
109 109
 				'permalink'			=> get_permalink(),
110 110
 				'edit_others_pages'	=> current_user_can('edit_others_pages') ? true : false,
111 111
 				'edit_others_posts'	=> current_user_can('edit_others_posts') ? true : false,
112
-				'userCanEdit'		=> current_user_can('edit_post', $postid ),
112
+				'userCanEdit'		=> current_user_can('edit_post', $postid),
113 113
 				'can_publish_posts'	=> current_user_can('publish_posts'),
114 114
 				'can_publish_pages'	=> current_user_can('publish_pages'),
115 115
 				'author'			=> is_user_logged_in() ? get_current_user_ID() : false,
@@ -142,24 +142,24 @@  discard block
 block discarded – undo
142 142
 				'postTags'    		=> lasso_get_objects('tag'),
143 143
 				'noResultsDiv'		=> lasso_editor_empty_results(),
144 144
 				'noRevisionsDiv'	=> lasso_editor_empty_results('revision'),
145
-				'mapTileProvider'   => function_exists('aesop_map_tile_provider') ? aesop_map_tile_provider( $postid ) : false,
146
-				'mapLocations'		=> get_post_meta( $postid, 'ase_map_component_locations' ),
147
-				'mapStart'			=> get_post_meta( $postid, 'ase_map_component_start_point', true ),
148
-				'mapZoom'			=> get_post_meta( $postid, 'ase_map_component_zoom', true ),
145
+				'mapTileProvider'   => function_exists('aesop_map_tile_provider') ? aesop_map_tile_provider($postid) : false,
146
+				'mapLocations'		=> get_post_meta($postid, 'ase_map_component_locations'),
147
+				'mapStart'			=> get_post_meta($postid, 'ase_map_component_start_point', true),
148
+				'mapZoom'			=> get_post_meta($postid, 'ase_map_component_zoom', true),
149 149
 				'revisionModal' 	=> lasso_editor_revision_modal(),
150 150
 				'isMobile'          => wp_is_mobile(),
151
-				'enableAutoSave'    => lasso_editor_get_option( 'enable_autosave', 'lasso_editor' )
151
+				'enableAutoSave'    => lasso_editor_get_option('enable_autosave', 'lasso_editor')
152 152
 			);
153 153
 
154 154
 
155 155
 			// wp api client
156
-			wp_enqueue_script( 'wp-api-js', LASSO_URL.'/public/assets/js/source/util--wp-api.js', array( 'jquery', 'underscore', 'backbone' ), LASSO_VERSION, true );
157
-				$settings = array( 'root' => home_url( $home_url ), 'nonce' => wp_create_nonce( 'wp_json' ) );
158
-				wp_localize_script( 'wp-api-js', 'WP_API_Settings', $settings );
156
+			wp_enqueue_script('wp-api-js', LASSO_URL.'/public/assets/js/source/util--wp-api.js', array('jquery', 'underscore', 'backbone'), LASSO_VERSION, true);
157
+				$settings = array('root' => home_url($home_url), 'nonce' => wp_create_nonce('wp_json'));
158
+				wp_localize_script('wp-api-js', 'WP_API_Settings', $settings);
159 159
 
160
-				$postfix = ( defined( 'SCRIPT_DEBUG' ) && true === SCRIPT_DEBUG ) ? '' : '.min';
161
-				wp_enqueue_script('lasso', LASSO_URL. "/public/assets/js/lasso{$postfix}.js", array('jquery'), LASSO_VERSION, true);
162
-				wp_localize_script('lasso', 'lasso_editor', apply_filters('lasso_localized_objects', $objects ) );
160
+				$postfix = (defined('SCRIPT_DEBUG') && true === SCRIPT_DEBUG) ? '' : '.min';
161
+				wp_enqueue_script('lasso', LASSO_URL."/public/assets/js/lasso{$postfix}.js", array('jquery'), LASSO_VERSION, true);
162
+				wp_localize_script('lasso', 'lasso_editor', apply_filters('lasso_localized_objects', $objects));
163 163
 
164 164
 
165 165
 		}
Please login to merge, or discard this patch.
public/includes/editor-modules.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 block discarded – undo
146 146
 	$toolbar_headings      = lasso_editor_get_option( 'toolbar_headings', 'lasso_editor' );
147 147
 
148 148
 	$toolbar_class  = $toolbar_headings ? 'toolbar-extended' : false;
149
-    $mobile_class = $is_mobile ? 'lasso-mobile' : false;
149
+	$mobile_class = $is_mobile ? 'lasso-mobile' : false;
150 150
 	
151 151
 	$mobile_style =$is_mobile ? 'style="top:40px;"' : null;
152 152
 
Please login to merge, or discard this patch.
Spacing   +200 added lines, -200 removed lines patch added patch discarded remove patch
@@ -12,32 +12,32 @@  discard block
 block discarded – undo
12 12
  *
13 13
  * @since 1.0
14 14
  */
15
-add_action( 'wp_footer', 'lasso_editor_controls' );
15
+add_action('wp_footer', 'lasso_editor_controls');
16 16
 function lasso_editor_controls() {
17 17
 
18 18
 	global $post;
19 19
 
20
-	if ( lasso_user_can('edit_posts') ) {
20
+	if (lasso_user_can('edit_posts')) {
21 21
 
22
-		$status = get_post_status( get_the_ID() );
22
+		$status = get_post_status(get_the_ID());
23 23
 
24 24
 		// let users add custom css classes
25
-		$custom_classes = apply_filters( 'lasso_control_classes', '' );
25
+		$custom_classes = apply_filters('lasso_control_classes', '');
26 26
 
27 27
 		$post_access_class   = '';
28
-		$post_new_disabled   = lasso_editor_get_option( 'post_adding_disabled', 'lasso_editor' );
29
-		$post_settings_disabled = lasso_editor_get_option( 'post_settings_disabled', 'lasso_editor' );
30
-		$shortcodify_disabled = lasso_editor_get_option( 'shortcodify_disabled', 'lasso_editor' );
28
+		$post_new_disabled   = lasso_editor_get_option('post_adding_disabled', 'lasso_editor');
29
+		$post_settings_disabled = lasso_editor_get_option('post_settings_disabled', 'lasso_editor');
30
+		$shortcodify_disabled = lasso_editor_get_option('shortcodify_disabled', 'lasso_editor');
31 31
 
32 32
 
33 33
 		// CSS class if adding new post objects is disabled
34
-		if ( 'on' == $post_new_disabled ) { $post_access_class = 'lasso--post-new-disabled'; }
34
+		if ('on' == $post_new_disabled) { $post_access_class = 'lasso--post-new-disabled'; }
35 35
 
36 36
 		// CSS class if adjust settings is disabled
37
-		if ( 'on' == $post_settings_disabled ) { $post_access_class = 'lasso--post-settings-disabled'; }
37
+		if ('on' == $post_settings_disabled) { $post_access_class = 'lasso--post-settings-disabled'; }
38 38
 
39 39
 		// CSS class if adding new post objects AND settings are disabled
40
-		if ( 'on' == $post_new_disabled && 'on' == $post_settings_disabled ) { $post_access_class = 'lasso--post-all-disabled'; }
40
+		if ('on' == $post_new_disabled && 'on' == $post_settings_disabled) { $post_access_class = 'lasso--post-all-disabled'; }
41 41
 
42 42
 		// CSS class if shortcodify or (Aesop Shortcode Conversion) is disabled
43 43
 		$sc_saving_class = 'on' == $shortcodify_disabled ? 'shortcodify-disabled' : 'shortcodify-enabled';
@@ -47,44 +47,44 @@  discard block
 block discarded – undo
47 47
 		
48 48
 		$mobile_style = wp_is_mobile() ? 'style="top:40px;"' : null;
49 49
 
50
-		?><div id="lasso--controls" class="lasso-post-status--<?php echo sanitize_html_class( $status );?> <?php echo sanitize_html_class( $custom_classes );?>" data-post-id="<?php echo get_the_ID();?>" >
50
+		?><div id="lasso--controls" class="lasso-post-status--<?php echo sanitize_html_class($status); ?> <?php echo sanitize_html_class($custom_classes); ?>" data-post-id="<?php echo get_the_ID(); ?>" >
51 51
 
52
-			<ul class="lasso--controls__center lasso-editor-controls lasso-editor-controls--wrap <?php echo $post_access_class;?> "  <?php echo $mobile_style ?> >
52
+			<ul class="lasso--controls__center lasso-editor-controls lasso-editor-controls--wrap <?php echo $post_access_class; ?> "  <?php echo $mobile_style ?> >
53 53
 
54
-				<?php do_action( 'lasso_editor_controls_before' );
54
+				<?php do_action('lasso_editor_controls_before');
55 55
 
56
-				if ( $is_capable ) { ?>
56
+				if ($is_capable) { ?>
57 57
 
58
-					<li id="lasso--edit" title="<?php esc_attr_e( 'Edit Post', 'lasso' );?>"><a href="#" class="lasso--button__primary"></a></li>
58
+					<li id="lasso--edit" title="<?php esc_attr_e('Edit Post', 'lasso'); ?>"><a href="#" class="lasso--button__primary"></a></li>
59 59
 
60
-					<?php if ( 'off' == $post_settings_disabled || empty( $post_settings_disabled ) ) { ?>
61
-						<li id="lasso--post-settings" title="<?php esc_attr_e( 'Post Settings', 'lasso' );?>"><a href="#" class="lasso--button__primary"></a></li>
60
+					<?php if ('off' == $post_settings_disabled || empty($post_settings_disabled)) { ?>
61
+						<li id="lasso--post-settings" title="<?php esc_attr_e('Post Settings', 'lasso'); ?>"><a href="#" class="lasso--button__primary"></a></li>
62 62
 					<?php }
63 63
 
64 64
 				} ?>
65 65
 
66
-				<li id="lasso--post-all" title="<?php esc_attr_e( 'All Posts', 'lasso' );?>"><a href="#" class="lasso--button__primary"></a></li>
66
+				<li id="lasso--post-all" title="<?php esc_attr_e('All Posts', 'lasso'); ?>"><a href="#" class="lasso--button__primary"></a></li>
67 67
 
68
-				<?php if ( $is_capable && wp_revisions_enabled( $post ) ) { ?>
69
-					<li id="lasso--post-revisions" title="<?php esc_attr_e( 'Revisions', 'lasso' );?>"><a href="#" class="lasso--button__primary"></a></li>
68
+				<?php if ($is_capable && wp_revisions_enabled($post)) { ?>
69
+					<li id="lasso--post-revisions" title="<?php esc_attr_e('Revisions', 'lasso'); ?>"><a href="#" class="lasso--button__primary"></a></li>
70 70
 				<?php } ?>
71 71
 
72
-				<?php if ( ( 'off' == $post_new_disabled || empty( $post_new_disabled ) && lasso_user_can('publish_posts') ) ) { ?>
73
-					<li id="lasso--post-new" title="<?php esc_attr_e( 'Add Post', 'lasso' );?>"><a href="#" class="lasso--button__primary"></a></li>
72
+				<?php if (('off' == $post_new_disabled || empty($post_new_disabled) && lasso_user_can('publish_posts'))) { ?>
73
+					<li id="lasso--post-new" title="<?php esc_attr_e('Add Post', 'lasso'); ?>"><a href="#" class="lasso--button__primary"></a></li>
74 74
 				<?php } ?>
75 75
 
76
-				<?php do_action( 'lasso_editor_controls_after' );?>
76
+				<?php do_action('lasso_editor_controls_after'); ?>
77 77
 
78 78
 			</ul>
79 79
 
80
-			<?php if ( is_singular() ) { ?>
80
+			<?php if (is_singular()) { ?>
81 81
 
82 82
 				<div class="lasso--controls__right">
83 83
 
84
-					<a href="#" title="<?php esc_attr_e( 'Save Post', 'lasso' );?>" id="lasso--save" class="lasso-save-post lasso--button <?php echo $sc_saving_class;?>"></a>
84
+					<a href="#" title="<?php esc_attr_e('Save Post', 'lasso'); ?>" id="lasso--save" class="lasso-save-post lasso--button <?php echo $sc_saving_class; ?>"></a>
85 85
 
86
-					<?php if ( 'draft' == $status && ( lasso_user_can('publish_posts') || lasso_user_can('publish_pages') )  ) { ?>
87
-						<a href="#" title="<?php esc_attr_e( 'Publish Post', 'lasso' );?>" id="lasso--publish" class="lasso-publish-post lasso--button <?php echo $sc_saving_class;?>"></a>
86
+					<?php if ('draft' == $status && (lasso_user_can('publish_posts') || lasso_user_can('publish_pages'))) { ?>
87
+						<a href="#" title="<?php esc_attr_e('Publish Post', 'lasso'); ?>" id="lasso--publish" class="lasso-publish-post lasso--button <?php echo $sc_saving_class; ?>"></a>
88 88
 					<?php } ?>
89 89
 
90 90
 				</div>
@@ -107,13 +107,13 @@  discard block
 block discarded – undo
107 107
 
108 108
 	ob_start();
109 109
 
110
-	if ( !lasso_user_can() )
110
+	if (!lasso_user_can())
111 111
 		return;
112 112
 
113 113
 	// let users add custom css classes
114
-	$custom_classes = apply_filters( 'lasso_sidebar_classes', '' );
114
+	$custom_classes = apply_filters('lasso_sidebar_classes', '');
115 115
 	?>
116
-	<div id="lasso--sidebar" class="<?php echo sanitize_html_class( $custom_classes );?>" >
116
+	<div id="lasso--sidebar" class="<?php echo sanitize_html_class($custom_classes); ?>" >
117 117
 		<div class="lasso--sidebar__inner">
118 118
 			<div id="lasso--component__settings"></div>
119 119
 		</div>
@@ -131,89 +131,89 @@  discard block
 block discarded – undo
131 131
 
132 132
 	ob_start();
133 133
 
134
-	if ( !lasso_user_can() )
134
+	if (!lasso_user_can())
135 135
 		return;
136 136
 	
137 137
 	$is_mobile = wp_is_mobile();
138 138
 
139 139
 	// check for lasso story engine and add a class doniting this
140
-	$ase_status = class_exists( 'Aesop_Core' ) || defined( 'LASSO_CUSTOM' ) ? 'ase-active' : 'ase-not-active';
140
+	$ase_status = class_exists('Aesop_Core') || defined('LASSO_CUSTOM') ? 'ase-active' : 'ase-not-active';
141 141
 
142 142
 	// let users add custom css classes
143
-	$custom_classes = apply_filters( 'lasso_toolbar_classes', '' );
143
+	$custom_classes = apply_filters('lasso_toolbar_classes', '');
144 144
 
145 145
 	// are toolbar headings enabled
146
-	$toolbar_headings      = lasso_editor_get_option( 'toolbar_headings', 'lasso_editor' );
146
+	$toolbar_headings = lasso_editor_get_option('toolbar_headings', 'lasso_editor');
147 147
 
148
-	$toolbar_class  = $toolbar_headings ? 'toolbar-extended' : false;
148
+	$toolbar_class = $toolbar_headings ? 'toolbar-extended' : false;
149 149
     $mobile_class = $is_mobile ? 'lasso-mobile' : false;
150 150
 	
151
-	$mobile_style =$is_mobile ? 'style="top:40px;"' : null;
151
+	$mobile_style = $is_mobile ? 'style="top:40px;"' : null;
152 152
 
153 153
 
154 154
 	?>
155
-	<div class="lasso--toolbar_wrap lasso-editor-controls--wrap <?php echo $toolbar_class.' '.$mobile_class.' '.$ase_status.' '.sanitize_html_class( $custom_classes );?>" <?php echo $mobile_style ?>>
155
+	<div class="lasso--toolbar_wrap lasso-editor-controls--wrap <?php echo $toolbar_class.' '.$mobile_class.' '.$ase_status.' '.sanitize_html_class($custom_classes); ?>" <?php echo $mobile_style ?>>
156 156
 		<ul class="lasso--toolbar__inner lasso-editor-controls">
157
-			<?php do_action( 'lasso_toolbar_components_before' );?>
158
-		    <li id="lasso-toolbar--bold" title="<?php esc_attr_e( 'Bold', 'lasso' );?>"></li>
159
-		    <li id="lasso-toolbar--underline" title="<?php esc_attr_e( 'Underline', 'lasso' );?>"></li>
160
-		    <li id="lasso-toolbar--italic" title="<?php esc_attr_e( 'Italicize', 'lasso' );?>"></li>
161
-		    <li id="lasso-toolbar--strike" title="<?php esc_attr_e( 'Strikethrough', 'lasso' );?>"></li>
162
-		    <?php if ( $toolbar_headings ): ?>
163
-		    <li id="lasso-toolbar--h2" title="<?php esc_attr_e( 'H2 Heading', 'lasso' );?>"></li>
164
-		    <li id="lasso-toolbar--h3" title="<?php esc_attr_e( 'H3 Heading', 'lasso' );?>"></li>
157
+			<?php do_action('lasso_toolbar_components_before'); ?>
158
+		    <li id="lasso-toolbar--bold" title="<?php esc_attr_e('Bold', 'lasso'); ?>"></li>
159
+		    <li id="lasso-toolbar--underline" title="<?php esc_attr_e('Underline', 'lasso'); ?>"></li>
160
+		    <li id="lasso-toolbar--italic" title="<?php esc_attr_e('Italicize', 'lasso'); ?>"></li>
161
+		    <li id="lasso-toolbar--strike" title="<?php esc_attr_e('Strikethrough', 'lasso'); ?>"></li>
162
+		    <?php if ($toolbar_headings): ?>
163
+		    <li id="lasso-toolbar--h2" title="<?php esc_attr_e('H2 Heading', 'lasso'); ?>"></li>
164
+		    <li id="lasso-toolbar--h3" title="<?php esc_attr_e('H3 Heading', 'lasso'); ?>"></li>
165 165
 			<?php endif; ?>
166
-		    <li id="lasso-toolbar--link" title="<?php esc_attr_e( 'Anchor Link', 'lasso' );?>">
166
+		    <li id="lasso-toolbar--link" title="<?php esc_attr_e('Anchor Link', 'lasso'); ?>">
167 167
 		    	<div id="lasso-toolbar--link__wrap" <?php echo $mobile_style ?> >
168
-		    		<div id="lasso-toolbar--link__inner" contenteditable="true" placeholder="<?php esc_attr_e( 'http://url.com', 'lasso' );?>"></div>
169
-		    		<a href="#" title="<?php esc_attr_e( 'Create Link', 'lasso' );?>" class="lasso-toolbar--link__control" id="lasso-toolbar--link__create" ></a>
168
+		    		<div id="lasso-toolbar--link__inner" contenteditable="true" placeholder="<?php esc_attr_e('http://url.com', 'lasso'); ?>"></div>
169
+		    		<a href="#" title="<?php esc_attr_e('Create Link', 'lasso'); ?>" class="lasso-toolbar--link__control" id="lasso-toolbar--link__create" ></a>
170 170
 					<!--input class="styled-checkbox" type="checkbox" /-->
171 171
                     <!--label>Styled Check Box</label-->
172 172
 		    	</div>
173 173
 		    </li>
174
-		    <?php do_action( 'lasso_toolbar_components_after' );?>
175
-		    <li id="lasso-toolbar--html" title="<?php esc_attr_e( 'Insert HTML', 'lasso' );?>">
174
+		    <?php do_action('lasso_toolbar_components_after'); ?>
175
+		    <li id="lasso-toolbar--html" title="<?php esc_attr_e('Insert HTML', 'lasso'); ?>">
176 176
 		    	<div id="lasso-toolbar--html__wrap" <?php echo $mobile_style ?>>
177
-		    		<div id="lasso-toolbar--html__inner" contenteditable="true" placeholder="<?php esc_attr_e( 'Enter HTML to insert', 'lasso' );?>"></div>
177
+		    		<div id="lasso-toolbar--html__inner" contenteditable="true" placeholder="<?php esc_attr_e('Enter HTML to insert', 'lasso'); ?>"></div>
178 178
 		    		<div id="lasso-toolbar--html__footer">
179 179
 		    			<ul class="lasso-toolbar--html-snips">
180
-		    				<?php if ( !$toolbar_headings ): ?>
181
-		    				<li id="lasso-html--h2" title="<?php esc_attr_e( 'H2 Heading', 'lasso' );?>">
182
-		    				<li id="lasso-html--h3" title="<?php esc_attr_e( 'H3 Heading', 'lasso' );?>">
180
+		    				<?php if (!$toolbar_headings): ?>
181
+		    				<li id="lasso-html--h2" title="<?php esc_attr_e('H2 Heading', 'lasso'); ?>">
182
+		    				<li id="lasso-html--h3" title="<?php esc_attr_e('H3 Heading', 'lasso'); ?>">
183 183
 		    				<?php endif; ?>
184
-		    				<li id="lasso-html--ul" title="<?php esc_attr_e( 'Unordered List', 'lasso' );?>">
185
-		    				<li id="lasso-html--ol" title="<?php esc_attr_e( 'Ordered List', 'lasso' );?>">
184
+		    				<li id="lasso-html--ul" title="<?php esc_attr_e('Unordered List', 'lasso'); ?>">
185
+		    				<li id="lasso-html--ol" title="<?php esc_attr_e('Ordered List', 'lasso'); ?>">
186 186
 		    			</ul>
187
-		    			<a class="lasso-toolbar--html__control lasso-toolbar--html__cancel" href="#"><?php _e( 'Cancel', 'lasso' );?></a>
188
-		    			<a href="#" title="<?php esc_attr_e( 'Insert HTML', 'lasso' );?>" class="lasso-toolbar--html__control" id="lasso-toolbar--html__insert" ><?php _e( 'Insert', 'lasso' );?></a>
187
+		    			<a class="lasso-toolbar--html__control lasso-toolbar--html__cancel" href="#"><?php _e('Cancel', 'lasso'); ?></a>
188
+		    			<a href="#" title="<?php esc_attr_e('Insert HTML', 'lasso'); ?>" class="lasso-toolbar--html__control" id="lasso-toolbar--html__insert" ><?php _e('Insert', 'lasso'); ?></a>
189 189
 		    		</div>
190 190
 		    	</div>
191 191
 		    </li>
192
-		    <li id="lasso-toolbar--components" title="<?php esc_attr_e( 'Insert Component', 'lasso' );?>">
192
+		    <li id="lasso-toolbar--components" title="<?php esc_attr_e('Insert Component', 'lasso'); ?>">
193 193
 			    <ul id="lasso-toolbar--components__list" style="display:none;">
194
-			    	<?php if ( 'ase-active' == $ase_status ): ?>
195
-						<li data-type="image" title="<?php esc_attr_e( 'Image', 'lasso' );?>" class="lasso-toolbar--component__image"></li>
196
-						<li data-type="character" title="<?php esc_attr_e( 'Character', 'lasso' );?>" class="lasso-toolbar--component__character"></li>
197
-						<li data-type="quote" title="<?php esc_attr_e( 'Quote', 'lasso' );?>"  class="lasso-toolbar--component__quote"></li>
198
-						<li data-type="content" title="<?php esc_attr_e( 'Content', 'lasso' );?>"  class="lasso-toolbar--component__content"></li>
199
-						<li data-type="chapter" title="<?php esc_attr_e( 'Chapter', 'lasso' );?>"  class="lasso-toolbar--component__chapter"></li>
200
-						<li data-type="parallax" title="<?php esc_attr_e( 'Parallax', 'lasso' );?>"  class="lasso-toolbar--component__parallax"></li>
201
-						<li data-type="audio" title="<?php esc_attr_e( 'Audio', 'lasso' );?>"  class="lasso-toolbar--component__audio"></li>
202
-						<li data-type="video" title="<?php esc_attr_e( 'Video', 'lasso' );?>"  class="lasso-toolbar--component__video"></li>
203
-						<li data-type="map" title="<?php esc_attr_e( 'Map', 'lasso' );?>"  class="lasso-toolbar--component__map"></li>
204
-						<li data-type="timeline_stop" title="<?php esc_attr_e( 'Timeline', 'lasso' );?>"  class="lasso-toolbar--component__timeline"></li>
205
-						<li data-type="document" title="<?php esc_attr_e( 'Document', 'lasso' );?>"  class="lasso-toolbar--component__document"></li>
206
-						<li data-type="collection" title="<?php esc_attr_e( 'Collection', 'lasso' );?>"  class="lasso-toolbar--component__collection"></li>
207
-						<li data-type="gallery" title="<?php esc_attr_e( 'Gallery', 'lasso' );?>"  class="lasso-toolbar--component__gallery"></li>
208
-						<?php if ( class_exists ('Aesop_GalleryPop') ) { ?>
209
-						     <li data-type="gallery" title="<?php esc_attr_e( 'Gallery Pop', 'lasso' );?>"  class="lasso-toolbar--component__gallerypop"></li>
194
+			    	<?php if ('ase-active' == $ase_status): ?>
195
+						<li data-type="image" title="<?php esc_attr_e('Image', 'lasso'); ?>" class="lasso-toolbar--component__image"></li>
196
+						<li data-type="character" title="<?php esc_attr_e('Character', 'lasso'); ?>" class="lasso-toolbar--component__character"></li>
197
+						<li data-type="quote" title="<?php esc_attr_e('Quote', 'lasso'); ?>"  class="lasso-toolbar--component__quote"></li>
198
+						<li data-type="content" title="<?php esc_attr_e('Content', 'lasso'); ?>"  class="lasso-toolbar--component__content"></li>
199
+						<li data-type="chapter" title="<?php esc_attr_e('Chapter', 'lasso'); ?>"  class="lasso-toolbar--component__chapter"></li>
200
+						<li data-type="parallax" title="<?php esc_attr_e('Parallax', 'lasso'); ?>"  class="lasso-toolbar--component__parallax"></li>
201
+						<li data-type="audio" title="<?php esc_attr_e('Audio', 'lasso'); ?>"  class="lasso-toolbar--component__audio"></li>
202
+						<li data-type="video" title="<?php esc_attr_e('Video', 'lasso'); ?>"  class="lasso-toolbar--component__video"></li>
203
+						<li data-type="map" title="<?php esc_attr_e('Map', 'lasso'); ?>"  class="lasso-toolbar--component__map"></li>
204
+						<li data-type="timeline_stop" title="<?php esc_attr_e('Timeline', 'lasso'); ?>"  class="lasso-toolbar--component__timeline"></li>
205
+						<li data-type="document" title="<?php esc_attr_e('Document', 'lasso'); ?>"  class="lasso-toolbar--component__document"></li>
206
+						<li data-type="collection" title="<?php esc_attr_e('Collection', 'lasso'); ?>"  class="lasso-toolbar--component__collection"></li>
207
+						<li data-type="gallery" title="<?php esc_attr_e('Gallery', 'lasso'); ?>"  class="lasso-toolbar--component__gallery"></li>
208
+						<?php if (class_exists('Aesop_GalleryPop')) { ?>
209
+						     <li data-type="gallery" title="<?php esc_attr_e('Gallery Pop', 'lasso'); ?>"  class="lasso-toolbar--component__gallerypop"></li>
210 210
 						<?php }?>
211 211
 					<?php else: ?>
212
-						<li data-type="wpimg" title="<?php esc_attr_e( 'WordPress Image', 'lasso' );?>" class="image lasso-toolbar--component__image"></li>
213
-						<li data-type="wpquote" title="<?php esc_attr_e( 'WordPress Quote', 'lasso' );?>" class="quote lasso-toolbar--component__quote"></li>
214
-						<!--li data-type="wpvideo" title="<?php esc_attr_e( 'WordPress Video', 'lasso' );?>" class="video lasso-toolbar--component__video"></li-->
212
+						<li data-type="wpimg" title="<?php esc_attr_e('WordPress Image', 'lasso'); ?>" class="image lasso-toolbar--component__image"></li>
213
+						<li data-type="wpquote" title="<?php esc_attr_e('WordPress Quote', 'lasso'); ?>" class="quote lasso-toolbar--component__quote"></li>
214
+						<!--li data-type="wpvideo" title="<?php esc_attr_e('WordPress Video', 'lasso'); ?>" class="video lasso-toolbar--component__video"></li-->
215 215
 					<?php endif; ?>
216
-					<?php do_action( 'lasso_toolbar_components' );?>
216
+					<?php do_action('lasso_toolbar_components'); ?>
217 217
 			    </ul>
218 218
 			</li>
219 219
 		</ul>
@@ -229,22 +229,22 @@  discard block
 block discarded – undo
229 229
  */
230 230
 function lasso_editor_settings_toolbar() {
231 231
 
232
-	$delete_nonce = wp_create_nonce( 'lasso-delete-nonce' );
232
+	$delete_nonce = wp_create_nonce('lasso-delete-nonce');
233 233
 
234 234
 	ob_start();
235 235
 
236
-	if ( !lasso_user_can() )
236
+	if (!lasso_user_can())
237 237
 		return;
238 238
 
239 239
 	// let users add custom css classes
240
-	$custom_classes = apply_filters( 'lasso_component_classes', '' );
240
+	$custom_classes = apply_filters('lasso_component_classes', '');
241 241
 
242 242
 	?>
243
-	<ul class="lasso-component--controls <?php echo sanitize_html_class( $custom_classes );?>" contenteditable="false">
244
-		<li class="lasso-drag" title="<?php esc_attr_e( 'Move', 'lasso' );?>"></li>
245
-		<li id="lasso-component--settings__trigger" class="lasso-settings" title="<?php esc_attr_e( 'Settings', 'lasso' );?>"></li>
246
-		<li class="lasso-clone" title="<?php esc_attr_e( 'Clone', 'lasso' );?>"></li>
247
-		<li class="lasso-delete" data-postid="<?php echo get_the_ID();?>" data-nonce="<?php echo $delete_nonce;?>" title="<?php esc_attr_e( 'Delete', 'lasso' );?>"></li>
243
+	<ul class="lasso-component--controls <?php echo sanitize_html_class($custom_classes); ?>" contenteditable="false">
244
+		<li class="lasso-drag" title="<?php esc_attr_e('Move', 'lasso'); ?>"></li>
245
+		<li id="lasso-component--settings__trigger" class="lasso-settings" title="<?php esc_attr_e('Settings', 'lasso'); ?>"></li>
246
+		<li class="lasso-clone" title="<?php esc_attr_e('Clone', 'lasso'); ?>"></li>
247
+		<li class="lasso-delete" data-postid="<?php echo get_the_ID(); ?>" data-nonce="<?php echo $delete_nonce; ?>" title="<?php esc_attr_e('Delete', 'lasso'); ?>"></li>
248 248
 	</ul>
249 249
 
250 250
 	<?php return ob_get_clean();
@@ -260,17 +260,17 @@  discard block
 block discarded – undo
260 260
 
261 261
 	ob_start();
262 262
 
263
-	if ( !lasso_user_can() )
263
+	if (!lasso_user_can())
264 264
 		return;
265 265
 
266 266
 	// has post thumbnail
267
-	$has_thumbnail = has_post_thumbnail( get_the_ID() ) ? 'class="lasso--featImg--has-thumb"' : false;
267
+	$has_thumbnail = has_post_thumbnail(get_the_ID()) ? 'class="lasso--featImg--has-thumb"' : false;
268 268
 
269 269
 	?>
270
-	<ul id="lasso--featImgControls" <?php echo $has_thumbnail;?>>
271
-		<li id="lasso--featImgUpload"><a title="<?php esc_attr_e( 'Replace Image', 'lasso' );?>" href="#"><i class="lasso-icon-image"></i></a></li>
272
-		<li id="lasso--featImgDelete"><a title="<?php esc_attr_e( 'Delete Image', 'lasso' );?>" href="#"><i class="lasso-icon-bin2"></i></a></li>
273
-		<li id="lasso--featImgSave"><a href="#"><?php esc_attr_e( 'save', 'lasso' );?></a></li>
270
+	<ul id="lasso--featImgControls" <?php echo $has_thumbnail; ?>>
271
+		<li id="lasso--featImgUpload"><a title="<?php esc_attr_e('Replace Image', 'lasso'); ?>" href="#"><i class="lasso-icon-image"></i></a></li>
272
+		<li id="lasso--featImgDelete"><a title="<?php esc_attr_e('Delete Image', 'lasso'); ?>" href="#"><i class="lasso-icon-bin2"></i></a></li>
273
+		<li id="lasso--featImgSave"><a href="#"><?php esc_attr_e('save', 'lasso'); ?></a></li>
274 274
 	</ul>
275 275
 
276 276
 	<?php return ob_get_clean();
@@ -289,55 +289,55 @@  discard block
 block discarded – undo
289 289
 
290 290
 	ob_start();
291 291
 
292
-	if ( !lasso_user_can() )
292
+	if (!lasso_user_can())
293 293
 		return;
294 294
 
295 295
 	global $post;
296 296
 
297 297
 	$postid = get_the_ID();
298 298
 
299
-	$status = get_post_status( $postid );
300
-	$nonce = wp_create_nonce( 'lasso-update-post-settings' );
299
+	$status = get_post_status($postid);
300
+	$nonce = wp_create_nonce('lasso-update-post-settings');
301 301
 
302 302
 	// let users add custom css classes
303
-	$custom_classes = apply_filters( 'lasso_modal_settings_classes', '' );
303
+	$custom_classes = apply_filters('lasso_modal_settings_classes', '');
304 304
 
305 305
 	// objects categories
306
-	$categories 		= lasso_get_post_objects( $postid, 'category' );
307
-	$tags 				= lasso_get_post_objects( $postid, 'tag' );
306
+	$categories = lasso_get_post_objects($postid, 'category');
307
+	$tags = lasso_get_post_objects($postid, 'tag');
308 308
 
309 309
 	// modal tabs
310
-	$tabs  				= lasso_modal_addons('tab');
311
-	$content 			= lasso_modal_addons('content');
310
+	$tabs = lasso_modal_addons('tab');
311
+	$content = lasso_modal_addons('content');
312 312
 
313 313
 	// are we singular
314
-	$is_singular 		= is_singular();
314
+	$is_singular = is_singular();
315 315
 	$is_singular_class 	= $is_singular ? 'lasso--postsettings__2col' : 'lasso--postsettings__1col';
316 316
 	$has_thumb_class    = has_post_thumbnail() ? 'has-thumbnail' : 'no-thumbnail';
317 317
 	$theme_supports     = current_theme_supports('post-thumbnails');
318
-	$default_image 		= LASSO_URL.'/admin/assets/img/empty-img.png';
318
+	$default_image = LASSO_URL.'/admin/assets/img/empty-img.png';
319 319
 
320 320
 ?>
321
-	<div id="lasso--post-settings__modal" class="lasso--modal lassoShowAnimate <?php echo sanitize_html_class( $custom_classes );?>">
321
+	<div id="lasso--post-settings__modal" class="lasso--modal lassoShowAnimate <?php echo sanitize_html_class($custom_classes); ?>">
322 322
 		<div class="lasso--modal__inner">
323 323
 
324
-			<?php if( $tabs ) { echo $tabs; } ?>
324
+			<?php if ($tabs) { echo $tabs; } ?>
325 325
 
326 326
 			<div class="lasso--modal__content modal__content--core visible" data-addon-content="core">
327
-				<form id="lasso--postsettings__form" enctype="multipart/form-data" class="lasso--post-form <?php echo $is_singular_class.' '.$has_thumb_class;?>" >
327
+				<form id="lasso--postsettings__form" enctype="multipart/form-data" class="lasso--post-form <?php echo $is_singular_class.' '.$has_thumb_class; ?>" >
328 328
 
329
-					<?php if ( $is_singular && $theme_supports ) : ?>
329
+					<?php if ($is_singular && $theme_supports) : ?>
330 330
 					<div class="lasso--postsettings__left">
331
-						<label><?php _e( 'Featured Image', 'lasso' );?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e( 'Change the featured image for this post.', 'lasso' );?>"><i class="lasso-icon-help"></i></span></label>
332
-						<div class="lasso--post-thumb" data-default-thumb="<?php echo esc_url( $default_image );?>">
331
+						<label><?php _e('Featured Image', 'lasso'); ?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e('Change the featured image for this post.', 'lasso'); ?>"><i class="lasso-icon-help"></i></span></label>
332
+						<div class="lasso--post-thumb" data-default-thumb="<?php echo esc_url($default_image); ?>">
333 333
 
334 334
 							<div id="lasso--post-thumb__controls" class="lasso--post-thumb__controls">
335
-								<i id="lasso--post-thumb__add" title="<?php _e('Change Featured Image','lasso');?>" class="dashicons dashicons-edit"></i>
336
-								<i id="lasso--post-thumb__delete" title="<?php _e('Delete Featured Image','lasso');?>" class="dashicons dashicons-no-alt"></i>
335
+								<i id="lasso--post-thumb__add" title="<?php _e('Change Featured Image', 'lasso'); ?>" class="dashicons dashicons-edit"></i>
336
+								<i id="lasso--post-thumb__delete" title="<?php _e('Delete Featured Image', 'lasso'); ?>" class="dashicons dashicons-no-alt"></i>
337 337
 								<i id="lasso--save-status" class="lasso-icon lasso-icon-spinner6 not-visible"></i>
338 338
 							</div>
339 339
 
340
-							<?php echo has_post_thumbnail() ? get_the_post_thumbnail( $post->ID, 'medium' ) : '<img src="'.$default_image.'">'; ?>
340
+							<?php echo has_post_thumbnail() ? get_the_post_thumbnail($post->ID, 'medium') : '<img src="'.$default_image.'">'; ?>
341 341
 
342 342
 						</div>
343 343
 						<div id="lasso--featImgSave"><a href="#" class="not-visible">Save</a></div>
@@ -347,12 +347,12 @@  discard block
 block discarded – undo
347 347
 
348 348
 					<div class="lasso--postsettings__right">
349 349
 
350
-						<?php if( lasso_user_can('publish_posts') || lasso_user_can('publish_pages') ): ?>
350
+						<?php if (lasso_user_can('publish_posts') || lasso_user_can('publish_pages')): ?>
351 351
 						<div class="lasso--postsettings__option story-status-option">
352
-							<label><?php _e( 'Status', 'lasso' );?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e( 'Change the status of the post to draft or publish.', 'lasso' );?>"><i class="lasso-icon-help"></i></span></label>
353
-							<ul class="story-status story-status-<?php echo sanitize_html_class( $status );?>">
354
-								<li id="lasso--status-draft"><?php _e( 'Draft', 'lasso' );?></li>
355
-								<li id="lasso--status-publish"><?php _e( 'Publish', 'lasso' );?></li>
352
+							<label><?php _e('Status', 'lasso'); ?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e('Change the status of the post to draft or publish.', 'lasso'); ?>"><i class="lasso-icon-help"></i></span></label>
353
+							<ul class="story-status story-status-<?php echo sanitize_html_class($status); ?>">
354
+								<li id="lasso--status-draft"><?php _e('Draft', 'lasso'); ?></li>
355
+								<li id="lasso--status-publish"><?php _e('Publish', 'lasso'); ?></li>
356 356
 							</ul>
357 357
 							<div class="lasso--slider_wrap">
358 358
 								<div id="lasso--slider"></div>
@@ -360,10 +360,10 @@  discard block
 block discarded – undo
360 360
 						</div>
361 361
 						<?php endif; ?>
362 362
 
363
-						<?php if ( 'publish' == $status ): ?>
363
+						<?php if ('publish' == $status): ?>
364 364
 						<div class="lasso--postsettings__option story-slug-option">
365
-							<label><?php _e( 'Post URL', 'lasso' );?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e( 'Change the URL (slug) of this post.', 'lasso' );?>"><i class="lasso-icon-help"></i></span></label>
366
-							<input class="lasso--modal__trigger-footer" type="text" name="story_slug" value="<?php echo isset( $post ) ? esc_attr( $post->post_name ) : false;?>">
365
+							<label><?php _e('Post URL', 'lasso'); ?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e('Change the URL (slug) of this post.', 'lasso'); ?>"><i class="lasso-icon-help"></i></span></label>
366
+							<input class="lasso--modal__trigger-footer" type="text" name="story_slug" value="<?php echo isset($post) ? esc_attr($post->post_name) : false; ?>">
367 367
 						</div>
368 368
 						<?php endif; ?>
369 369
 
@@ -372,34 +372,34 @@  discard block
 block discarded – undo
372 372
 					<div class="lasso--postsettings__middle">
373 373
 
374 374
 						<div class="lasso--postsettings__option story-categories-option">
375
-							<label><?php _e( 'Categories', 'lasso' );?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e( 'Type a category name and press enter.', 'lasso' );?>"><i class="lasso-icon-help"></i></span></label>
376
-							<input id="lasso--cat-select" class="lasso--modal__trigger-footer" type="hidden" name="story_cats" value="<?php echo $categories;?>">
375
+							<label><?php _e('Categories', 'lasso'); ?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e('Type a category name and press enter.', 'lasso'); ?>"><i class="lasso-icon-help"></i></span></label>
376
+							<input id="lasso--cat-select" class="lasso--modal__trigger-footer" type="hidden" name="story_cats" value="<?php echo $categories; ?>">
377 377
 						</div>
378 378
 
379 379
 						<div class="lasso--postsettings__option story-tags-option">
380
-							<label><?php _e( 'Tags', 'lasso' );?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e( 'Type a tag name and press enter.', 'lasso' );?>"><i class="lasso-icon-help"></i></span></label>
381
-							<input id="lasso--tag-select" class="lasso--modal__trigger-footer" type="hidden" name="story_tags" value="<?php echo $tags;?>">
380
+							<label><?php _e('Tags', 'lasso'); ?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e('Type a tag name and press enter.', 'lasso'); ?>"><i class="lasso-icon-help"></i></span></label>
381
+							<input id="lasso--tag-select" class="lasso--modal__trigger-footer" type="hidden" name="story_tags" value="<?php echo $tags; ?>">
382 382
 						</div>
383 383
 
384 384
 					</div>
385 385
 
386
-					<?php do_action( 'lasso_modal_post_form' ); // action ?>
386
+					<?php do_action('lasso_modal_post_form'); // action ?>
387 387
 
388 388
 					<div class="lasso--postsettings__footer" style="display:none;">
389
-						<a href="#" class="lasso--postsettings-cancel"><?php _e( 'Cancel', 'lasso' );?></a>
389
+						<a href="#" class="lasso--postsettings-cancel"><?php _e('Cancel', 'lasso'); ?></a>
390 390
 						<input type="hidden" name="status" value="">
391 391
 						<input type="hidden" name="categories" value="">
392
-						<input type="hidden" name="postid" value="<?php echo get_the_ID();?>">
392
+						<input type="hidden" name="postid" value="<?php echo get_the_ID(); ?>">
393 393
 						<input type="hidden" name="action" value="process_update-object_post">
394
-						<input type="hidden" name="nonce" value="<?php echo $nonce;?>">
395
-						<?php do_action( 'lasso_modal_post_form_footer' ); // action ?>
396
-						<input type="submit" value="<?php esc_attr_e( 'Save', 'lasso' );?>">
394
+						<input type="hidden" name="nonce" value="<?php echo $nonce; ?>">
395
+						<?php do_action('lasso_modal_post_form_footer'); // action ?>
396
+						<input type="submit" value="<?php esc_attr_e('Save', 'lasso'); ?>">
397 397
 					</div>
398 398
 
399 399
 				</form>
400 400
 			</div>
401 401
 
402
-			<?php if( $tabs ) { echo $content; } ?>
402
+			<?php if ($tabs) { echo $content; } ?>
403 403
 
404 404
 		</div>
405 405
 
@@ -420,41 +420,41 @@  discard block
 block discarded – undo
420 420
 
421 421
 	ob_start();
422 422
 
423
-	if ( !lasso_user_can('edit_posts') )
423
+	if (!lasso_user_can('edit_posts'))
424 424
 		return;
425 425
 
426
-	$status = get_post_status( get_the_ID() );
426
+	$status = get_post_status(get_the_ID());
427 427
 
428
-	$nonce = wp_create_nonce( 'lasso-editor-new-post' );
428
+	$nonce = wp_create_nonce('lasso-editor-new-post');
429 429
 
430 430
 	// let users add custom css classes
431
-	$custom_classes = apply_filters( 'lasso_modal_post_classes', '' );
431
+	$custom_classes = apply_filters('lasso_modal_post_classes', '');
432 432
 
433 433
 	// return the post type
434
-	$type = get_post_type( get_the_ID() );
434
+	$type = get_post_type(get_the_ID());
435 435
 
436 436
 	?>
437
-	<div id="lasso--post-new__modal" class="lasso--modal lasso--modal__med lassoShowAnimate <?php echo sanitize_html_class( $custom_classes );?>">
437
+	<div id="lasso--post-new__modal" class="lasso--modal lasso--modal__med lassoShowAnimate <?php echo sanitize_html_class($custom_classes); ?>">
438 438
 		<div class="lasso--modal__inner">
439 439
 
440 440
 			<form id="lasso--postnew__form" enctype="multipart/form-data" class="lasso--post-form">
441 441
 
442 442
 				<div class="lasso--postsettings__option story-slug-option lasso--last-option">
443
-					<label><?php esc_attr_e( 'New <span>post</span> title', 'lasso' );?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e( 'Specify title for new post, then save to edit.', 'lasso' );?>"><i class="lasso-icon-help"></i></span></label>
444
-					<input class="lasso--modal__trigger-footer" type="text" required name="story_title" value="" placeholder="<?php esc_attr_e( 'Grump Wizards Make Toxic Brew', 'lasso' );?>">
443
+					<label><?php esc_attr_e('New <span>post</span> title', 'lasso'); ?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e('Specify title for new post, then save to edit.', 'lasso'); ?>"><i class="lasso-icon-help"></i></span></label>
444
+					<input class="lasso--modal__trigger-footer" type="text" required name="story_title" value="" placeholder="<?php esc_attr_e('Grump Wizards Make Toxic Brew', 'lasso'); ?>">
445 445
 						<div class="lasso--select-wrap" style="width:90px">
446 446
 						<select id="lasso--select-type" name="story_type">
447 447
 
448 448
 							<?php
449 449
 								$types = lasso_post_types();
450 450
 
451
-								if ( !empty( $types ) ) {
451
+								if (!empty($types)) {
452 452
 
453
-									foreach( $types as $type ) {
453
+									foreach ($types as $type) {
454 454
 
455
-										$type = preg_replace( '/s\b/','', $type );
455
+										$type = preg_replace('/s\b/', '', $type);
456 456
 
457
-										printf( '<option value="%s">%s</option>', lcfirst( esc_attr( $type ) ) , ucfirst( esc_attr( $type ) ) );
457
+										printf('<option value="%s">%s</option>', lcfirst(esc_attr($type)), ucfirst(esc_attr($type)));
458 458
 									}
459 459
 
460 460
 								}
@@ -465,11 +465,11 @@  discard block
 block discarded – undo
465 465
 				</div>
466 466
 
467 467
 				<div class="lasso--postsettings__footer" style="display:none;">
468
-					<a href="#" class="lasso--postsettings-cancel"><?php _e( 'Cancel', 'lasso' );?></a>
468
+					<a href="#" class="lasso--postsettings-cancel"><?php _e('Cancel', 'lasso'); ?></a>
469 469
 					<input type="hidden" name="action" value="process_new-object_post">
470 470
 					<input type="hidden" name="object" value="post">
471
-					<input type="hidden" name="nonce" value="<?php echo $nonce;?>">
472
-					<input type="submit" value="<?php esc_attr_e( 'Create', 'lasso' );?>">
471
+					<input type="hidden" name="nonce" value="<?php echo $nonce; ?>">
472
+					<input type="submit" value="<?php esc_attr_e('Create', 'lasso'); ?>">
473 473
 				</div>
474 474
 
475 475
 			</form>
@@ -493,18 +493,18 @@  discard block
 block discarded – undo
493 493
 	ob_start();
494 494
 
495 495
 	// post status
496
-	$status = get_post_status( get_the_ID() );
496
+	$status = get_post_status(get_the_ID());
497 497
 
498 498
 	// let users add custom css classes
499
-	$custom_classes = apply_filters( 'lasso_modal_all_post_classes', '' );
499
+	$custom_classes = apply_filters('lasso_modal_all_post_classes', '');
500 500
 
501 501
 	?>
502
-	<div id="lasso--all-posts__modal" class="lasso--modal lasso--modal__full lassoShowAnimate <?php echo sanitize_html_class( $custom_classes );?>">
502
+	<div id="lasso--all-posts__modal" class="lasso--modal lasso--modal__full lassoShowAnimate <?php echo sanitize_html_class($custom_classes); ?>">
503 503
 		<div class="lasso--modal__inner">
504 504
 
505 505
 			<div class="lasso--post-filtering not-visible">
506 506
 				<div class="lasso--search__results">
507
-					<span id="lasso--results-found"></span><?php _e('results found','lasso');?>
507
+					<span id="lasso--results-found"></span><?php _e('results found', 'lasso'); ?>
508 508
 				</div>
509 509
 				<div class="lasso--search">
510 510
 					<i id="lasso--search__toggle" class="dashicons dashicons-search"></i>
@@ -517,16 +517,16 @@  discard block
 block discarded – undo
517 517
 
518 518
 				$post_types = lasso_post_types_names();
519 519
 
520
-				if ( ! empty( $post_types ) ) {
520
+				if (!empty($post_types)) {
521 521
 					$first = 'active';
522
-					foreach( $post_types as $name => $label ) {
523
-						printf( '<li class="%1s lasso--show-objects" data-post-type="%2s">%3s</li>', esc_attr( $first), esc_attr( $name ), esc_attr( $label ) );
522
+					foreach ($post_types as $name => $label) {
523
+						printf('<li class="%1s lasso--show-objects" data-post-type="%2s">%3s</li>', esc_attr($first), esc_attr($name), esc_attr($label));
524 524
 						$first = '';
525 525
 					}
526 526
 
527 527
 				}
528 528
 
529
-				do_action('lasso_modal_post_objects');?>
529
+				do_action('lasso_modal_post_objects'); ?>
530 530
 
531 531
 			</ul>
532 532
 			<div id="lasso--loading" class="lasso--loading"><div class="lasso--loader"></div></div>
@@ -544,18 +544,18 @@  discard block
 block discarded – undo
544 544
 
545 545
 	ob_start();
546 546
 
547
-	if ( !lasso_user_can() )
547
+	if (!lasso_user_can())
548 548
 		return;
549 549
 
550 550
 	// let users add custom css classes
551
-	$custom_classes = apply_filters( 'lasso_wpimg_classes', '' );
551
+	$custom_classes = apply_filters('lasso_wpimg_classes', '');
552 552
 
553 553
 	?>
554
-	<ul class="lasso-component--controls <?php echo sanitize_html_class( $custom_classes );?>" contenteditable="false">
555
-		<li class="lasso-drag" title="<?php esc_attr_e( 'Move', 'lasso' );?>"></li>
556
-		<li id="lasso--wpimg-edit" class="lasso-settings" title="<?php esc_attr_e( 'Settings', 'lasso' );?>"></li>
557
-		<li class="lasso-clone" title="<?php esc_attr_e( 'Clone', 'lasso' );?>"></li>
558
-		<li class="lasso-delete" title="<?php esc_attr_e( 'Delete', 'lasso' );?>"></li>
554
+	<ul class="lasso-component--controls <?php echo sanitize_html_class($custom_classes); ?>" contenteditable="false">
555
+		<li class="lasso-drag" title="<?php esc_attr_e('Move', 'lasso'); ?>"></li>
556
+		<li id="lasso--wpimg-edit" class="lasso-settings" title="<?php esc_attr_e('Settings', 'lasso'); ?>"></li>
557
+		<li class="lasso-clone" title="<?php esc_attr_e('Clone', 'lasso'); ?>"></li>
558
+		<li class="lasso-delete" title="<?php esc_attr_e('Delete', 'lasso'); ?>"></li>
559 559
 	</ul>
560 560
 
561 561
 	<?php return ob_get_clean();
@@ -565,18 +565,18 @@  discard block
 block discarded – undo
565 565
 
566 566
 	ob_start();
567 567
 
568
-	if ( !lasso_user_can() )
568
+	if (!lasso_user_can())
569 569
 		return;
570 570
 
571 571
 	// let users add custom css classes
572
-	$custom_classes = apply_filters( 'lasso_wpimg_classes', '' );
572
+	$custom_classes = apply_filters('lasso_wpimg_classes', '');
573 573
 
574 574
 	?>
575
-	<ul class="lasso-component--controls <?php echo sanitize_html_class( $custom_classes );?>" contenteditable="false">
576
-		<li class="lasso-drag" title="<?php esc_attr_e( 'Move', 'lasso' );?>"></li>
577
-		<li id="lasso--wpvideo-edit" class="lasso-settings" title="<?php esc_attr_e( 'Settings', 'lasso' );?>"></li>
578
-		<li class="lasso-clone" title="<?php esc_attr_e( 'Clone', 'lasso' );?>"></li>
579
-		<li class="lasso-delete" title="<?php esc_attr_e( 'Delete', 'lasso' );?>"></li>
575
+	<ul class="lasso-component--controls <?php echo sanitize_html_class($custom_classes); ?>" contenteditable="false">
576
+		<li class="lasso-drag" title="<?php esc_attr_e('Move', 'lasso'); ?>"></li>
577
+		<li id="lasso--wpvideo-edit" class="lasso-settings" title="<?php esc_attr_e('Settings', 'lasso'); ?>"></li>
578
+		<li class="lasso-clone" title="<?php esc_attr_e('Clone', 'lasso'); ?>"></li>
579
+		<li class="lasso-delete" title="<?php esc_attr_e('Delete', 'lasso'); ?>"></li>
580 580
 	</ul>
581 581
 
582 582
 	<?php return ob_get_clean();
@@ -589,16 +589,16 @@  discard block
 block discarded – undo
589 589
  */
590 590
 function lasso_map_form_footer() {
591 591
 
592
-	$nonce = wp_create_nonce( 'lasso-process-map' );
592
+	$nonce = wp_create_nonce('lasso-process-map');
593 593
 
594 594
 	ob_start();
595 595
 
596 596
 	?>
597 597
 	<div class="lasso--map-form__footer">
598
-		<input type="hidden" name="postid" value="<?php echo get_the_ID();?>">
599
-		<input type="hidden" name="nonce" value="<?php echo $nonce;?>">
598
+		<input type="hidden" name="postid" value="<?php echo get_the_ID(); ?>">
599
+		<input type="hidden" name="nonce" value="<?php echo $nonce; ?>">
600 600
 		<input type="hidden" name="action" value="process_map_save">
601
-		<input type="submit" class="lasso--map-form__submit" value="<?php esc_attr_e( 'Save Locations', 'lasso' );?>">
601
+		<input type="submit" class="lasso--map-form__submit" value="<?php esc_attr_e('Save Locations', 'lasso'); ?>">
602 602
 	</div>
603 603
 
604 604
 	<?php return ob_get_clean();
@@ -616,7 +616,7 @@  discard block
 block discarded – undo
616 616
 
617 617
 	?>
618 618
 	<div id="lasso--pagerefresh" class="visible">
619
-		<?php _e( 'Save this post and refesh the page to see these changes.', 'lasso' );?>
619
+		<?php _e('Save this post and refesh the page to see these changes.', 'lasso'); ?>
620 620
 	</div>
621 621
 
622 622
 	<?php return ob_get_clean();
@@ -630,43 +630,43 @@  discard block
 block discarded – undo
630 630
  */
631 631
 function lasso_editor_options_blob() {
632 632
 
633
-	$codes   = function_exists( 'aesop_shortcodes' ) ? aesop_shortcodes() : apply_filters( 'lasso_custom_options', '' );
634
-	$galleries  = function_exists( 'lasso_editor_galleries_exist' ) && lasso_editor_galleries_exist() ? 'has-galleries' : 'creating-gallery';
633
+	$codes = function_exists('aesop_shortcodes') ? aesop_shortcodes() : apply_filters('lasso_custom_options', '');
634
+	$galleries = function_exists('lasso_editor_galleries_exist') && lasso_editor_galleries_exist() ? 'has-galleries' : 'creating-gallery';
635 635
 
636
-	$nonce = wp_create_nonce( 'lasso_gallery' );
636
+	$nonce = wp_create_nonce('lasso_gallery');
637 637
 
638 638
 	$blob = array();
639 639
 
640
-	if ( empty( $codes ) )
640
+	if (empty($codes))
641 641
 		return;
642 642
 
643
-	foreach ( $codes as $slug => $shortcode ) {
643
+	foreach ($codes as $slug => $shortcode) {
644 644
 		$return = '';
645 645
 		// Shortcode has atts
646 646
 
647
-		if ( count( $shortcode['atts'] ) && $shortcode['atts'] ) {
647
+		if (count($shortcode['atts']) && $shortcode['atts']) {
648 648
 
649
-			foreach ( $shortcode['atts'] as $attr_name => $attr_info ) {
649
+			foreach ($shortcode['atts'] as $attr_name => $attr_info) {
650 650
 
651 651
 
652
-				$prefix = isset( $attr_info['prefix'] ) ? sprintf( '<span class="lasso-option-prefix">%s</span>', $attr_info['prefix'] ) : null;
652
+				$prefix = isset($attr_info['prefix']) ? sprintf('<span class="lasso-option-prefix">%s</span>', $attr_info['prefix']) : null;
653 653
 
654 654
 				$return .= '<form id="lasso--component-settings-form" class="'.$galleries.'" method="post">';
655 655
 				$return .= '<p data-option="'.$attr_name.'" class="lasso-option lasso-'.$slug.'-'.$attr_name.'">';
656
-				$return .= '<label for="lasso-generator-attr-' . $attr_name . '">' . $attr_info['desc'] . '</label>';
656
+				$return .= '<label for="lasso-generator-attr-'.$attr_name.'">'.$attr_info['desc'].'</label>';
657 657
 				$return .= '<small class="lasso-option-desc">'.$attr_info['tip'].'</small>';
658 658
 				// Select
659 659
 
660
-				if ( isset( $attr_info['values'] ) ) {
660
+				if (isset($attr_info['values'])) {
661 661
 
662
-					$return .= '<select name="' . $attr_name . '" id="lasso-generator-attr-' . $attr_name . '" class="lasso-generator-attr">';
662
+					$return .= '<select name="'.$attr_name.'" id="lasso-generator-attr-'.$attr_name.'" class="lasso-generator-attr">';
663 663
 
664
-					$i=0;
664
+					$i = 0;
665 665
 
666
-					foreach ( $attr_info['values'] as $attr_value ) {
666
+					foreach ($attr_info['values'] as $attr_value) {
667 667
 						$attr_value_selected = $attr_info['default'] == $attr_value ? ' selected="selected"' : '';
668 668
 
669
-						$return .= '<option value="'.$attr_info['values'][$i]['value'].'" ' . $attr_value_selected . '>'.$attr_info['values'][$i]['name'].'</option>';
669
+						$return .= '<option value="'.$attr_info['values'][$i]['value'].'" '.$attr_value_selected.'>'.$attr_info['values'][$i]['name'].'</option>';
670 670
 
671 671
 						$i++;
672 672
 					}
@@ -675,24 +675,24 @@  discard block
 block discarded – undo
675 675
 
676 676
 				} else {
677 677
 
678
-					$attr_field_type = isset( $attr_info['type'] ) ? $attr_info['type'] : 'text';
678
+					$attr_field_type = isset($attr_info['type']) ? $attr_info['type'] : 'text';
679 679
 
680 680
 					// image upload
681
-					if ( 'media_upload' == $attr_info['type'] ) {
681
+					if ('media_upload' == $attr_info['type']) {
682 682
 
683
-						$return .= '<input type="' . $attr_field_type . '" name="' . $attr_name . '" value="'.$attr_info['default'].'" id="lasso-generator-attr-' . $attr_name . '" class="lasso-generator-attr lasso-generator-attr-'.$attr_field_type.'" />';
683
+						$return .= '<input type="'.$attr_field_type.'" name="'.$attr_name.'" value="'.$attr_info['default'].'" id="lasso-generator-attr-'.$attr_name.'" class="lasso-generator-attr lasso-generator-attr-'.$attr_field_type.'" />';
684 684
 						$return .= '<a href="#" id="lasso-upload-img" class="lasso-option-button" /></a>';
685 685
 
686
-					} elseif ( 'color' == $attr_info['type'] ) {
686
+					} elseif ('color' == $attr_info['type']) {
687 687
 
688
-						$return .= '<input type="color" name="' . $attr_name . '" value="'.$attr_info['default'].'" id="lasso-generator-attr-' . $attr_name . '" class="lasso-generator-attr lasso-generator-attr-'.$attr_field_type.'" />';
688
+						$return .= '<input type="color" name="'.$attr_name.'" value="'.$attr_info['default'].'" id="lasso-generator-attr-'.$attr_name.'" class="lasso-generator-attr lasso-generator-attr-'.$attr_field_type.'" />';
689 689
 
690
-					} elseif ( 'text_area' == $attr_info['type'] ) {
690
+					} elseif ('text_area' == $attr_info['type']) {
691 691
 
692
-						$return .= '<textarea name="' . $attr_name . '" id="lasso-generator-attr-' . $attr_name . '" class="lasso-generator-attr lasso-generator-attr-'.$attr_field_type.'" placeholder="'.$attr_info['default'].'" /></textarea>'.$prefix.'';
692
+						$return .= '<textarea name="'.$attr_name.'" id="lasso-generator-attr-'.$attr_name.'" class="lasso-generator-attr lasso-generator-attr-'.$attr_field_type.'" placeholder="'.$attr_info['default'].'" /></textarea>'.$prefix.'';
693 693
 
694 694
 					} else {
695
-						$return .= '<input type="' . $attr_field_type . '" name="' . $attr_name . '" value="'.$attr_info['default'].'" id="lasso-generator-attr-' . $attr_name . '" class="lasso-generator-attr lasso-generator-attr-'.$attr_field_type.'" />'.$prefix.'';
695
+						$return .= '<input type="'.$attr_field_type.'" name="'.$attr_name.'" value="'.$attr_info['default'].'" id="lasso-generator-attr-'.$attr_name.'" class="lasso-generator-attr lasso-generator-attr-'.$attr_field_type.'" />'.$prefix.'';
696 696
 					}
697 697
 				}
698 698
 				$return .= '</p>';
@@ -703,9 +703,9 @@  discard block
 block discarded – undo
703 703
 		///////////////////////////
704 704
 		// START GALLERY AND MAP FRONT END STUFFS
705 705
 		///////////////////////////
706
-		if ( isset( $shortcode['front'] ) && true == $shortcode['front'] ) {
706
+		if (isset($shortcode['front']) && true == $shortcode['front']) {
707 707
 
708
-			if ( 'gallery' == $shortcode['front_type'] ) {
708
+			if ('gallery' == $shortcode['front_type']) {
709 709
 
710 710
 				$return .= lasso_gallery_editor_module();
711 711
 
@@ -716,13 +716,13 @@  discard block
 block discarded – undo
716 716
 		///////////////////////////
717 717
 
718 718
 		// Single shortcode (not closed)
719
-		if ( 'single' == $shortcode['type'] ) {
719
+		if ('single' == $shortcode['type']) {
720 720
 
721 721
 			$return .= '<input type="hidden" name="lasso-generator-content" id="lasso-generator-content" value="false" />';
722 722
 
723 723
 		} else {
724 724
 
725
-			$return .= '<p data-option="content" class="lasso-option lasso-c-comp-text"><label>' . __( 'Content', 'lasso' ) . '</label><textarea type="text" name="lasso-generator-content" id="lasso-generator-content" value="' . $shortcode['content'] . '" /></textarea></p>';
725
+			$return .= '<p data-option="content" class="lasso-option lasso-c-comp-text"><label>'.__('Content', 'lasso').'</label><textarea type="text" name="lasso-generator-content" id="lasso-generator-content" value="'.$shortcode['content'].'" /></textarea></p>';
726 726
 		}
727 727
 
728 728
 		$return .= '<p class="lasso-buttoninsert-wrap"><a href="#" class="lasso-generator-cancel" id="lasso--sidebar__close">Cancel
@@ -755,7 +755,7 @@  discard block
 block discarded – undo
755 755
 				<div id="lasso--loading" class="lasso--loading"><div class="lasso--loader"></div></div>
756 756
 				<div id="lasso--hide" style="display:none;" class="lasso--post-form">
757 757
 					<i class="lasso-icon lasso-icon-move"></i>
758
-					<label><?php _e( 'Revisions', 'lasso' );?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e( 'Use the slider to view the revision live on the page.', 'lasso' );?>"><i class="lasso-icon-help"></i></span></label>
758
+					<label><?php _e('Revisions', 'lasso'); ?><span class="lasso-util--help lasso-util--help-top" data-tooltip="<?php esc_attr_e('Use the slider to view the revision live on the page.', 'lasso'); ?>"><i class="lasso-icon-help"></i></span></label>
759 759
 					<div class="lasso--slider_wrap">
760 760
 						<div id="lasso--slider"></div>
761 761
 					</div>
Please login to merge, or discard this patch.
lasso.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -18,27 +18,27 @@
 block discarded – undo
18 18
  */
19 19
 
20 20
 // If this file is called directly, abort.
21
-if ( ! defined( 'WPINC' ) ) {
21
+if (!defined('WPINC')) {
22 22
 	die;
23 23
 }
24 24
 
25 25
 // Set some constants
26
-define( 'LASSO_VERSION', '0.9.10.1' );
27
-define( 'LASSO_DIR', plugin_dir_path( __FILE__ ) );
28
-define( 'LASSO_URL', plugins_url( '', __FILE__ ) );
29
-define( 'LASSO_FILE', __FILE__ );
26
+define('LASSO_VERSION', '0.9.10.1');
27
+define('LASSO_DIR', plugin_dir_path(__FILE__));
28
+define('LASSO_URL', plugins_url('', __FILE__));
29
+define('LASSO_FILE', __FILE__);
30 30
 
31 31
 /**
32 32
  * Load plugin if PHP version is 5.4 or later.
33 33
  */
34
-if ( version_compare( PHP_VERSION, '5.4.0', '>=' ) ) {
34
+if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
35 35
 
36
-	include_once( LASSO_DIR . '/bootstrap.php' );
36
+	include_once(LASSO_DIR.'/bootstrap.php');
37 37
 
38 38
 } else {
39 39
 
40 40
 	add_action('admin_head', 'lasso_fail_notice');
41
-	function lasso_fail_notice(){
41
+	function lasso_fail_notice() {
42 42
 
43 43
 		printf('<div class="error"><p>Lasso requires PHP 5.4 or higher.</p></div>');
44 44
 
Please login to merge, or discard this patch.