Completed
Branch master (3ac4b1)
by Zack
04:30
created
includes/admin/metaboxes/class-gravityview-metabox-tabs.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
 	 *
25 25
 	 * @return void
26 26
 	 */
27
-	public static function add( GravityView_Metabox_Tab $meta_box ) {
28
-		self::$meta_boxes[ $meta_box->id ] = $meta_box;
27
+	public static function add(GravityView_Metabox_Tab $meta_box) {
28
+		self::$meta_boxes[$meta_box->id] = $meta_box;
29 29
 	}
30 30
 
31 31
 	/**
@@ -37,9 +37,9 @@  discard block
 block discarded – undo
37 37
 	 *
38 38
 	 * @return void
39 39
 	 */
40
-	public static function remove( $meta_box_id ) {
41
-		if ( array_key_exists( $meta_box_id, self::$meta_boxes ) ) {
42
-			unset( self::$meta_boxes[ $meta_box_id ] );
40
+	public static function remove($meta_box_id) {
41
+		if (array_key_exists($meta_box_id, self::$meta_boxes)) {
42
+			unset(self::$meta_boxes[$meta_box_id]);
43 43
 		}
44 44
 	}
45 45
 
@@ -52,12 +52,12 @@  discard block
 block discarded – undo
52 52
 	 *
53 53
 	 * @return bool|GravityView_Metabox_Tab False if none exist at the key $id; GravityView_Metabox_Tab if exists.
54 54
 	 */
55
-	public static function get( $id ) {
56
-		if ( empty( self::$meta_boxes ) || empty( self::$meta_boxes[ $id ] ) ) {
55
+	public static function get($id) {
56
+		if (empty(self::$meta_boxes) || empty(self::$meta_boxes[$id])) {
57 57
 			return false;
58 58
 		}
59 59
 
60
-		return self::$meta_boxes[ $id ];
60
+		return self::$meta_boxes[$id];
61 61
 	}
62 62
 
63 63
 	/**
Please login to merge, or discard this patch.
includes/admin/metaboxes/views/data-source.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -7,55 +7,55 @@
 block discarded – undo
7 7
 
8 8
 
9 9
 // Use nonce for verification
10
-wp_nonce_field( 'gravityview_select_form', 'gravityview_select_form_nonce' );
10
+wp_nonce_field('gravityview_select_form', 'gravityview_select_form_nonce');
11 11
 
12 12
 //current value
13
-$current_form = gravityview_get_form_id( $post->ID );
13
+$current_form = gravityview_get_form_id($post->ID);
14 14
 
15 15
 // check for available gravity forms
16 16
 $forms = gravityview_get_forms();
17 17
 
18 18
 ?>
19
-<label for="gravityview_form_id" ><?php esc_html_e( 'Where would you like the data to come from for this View?', 'gravityview' ); ?></label>
19
+<label for="gravityview_form_id" ><?php esc_html_e('Where would you like the data to come from for this View?', 'gravityview'); ?></label>
20 20
 
21 21
 <p>
22 22
 	<?php
23 23
 
24
-	if ( empty( $current_form ) && GVCommon::has_cap( 'gravityforms_create_form' ) ) {
24
+	if (empty($current_form) && GVCommon::has_cap('gravityforms_create_form')) {
25 25
 		?>
26
-		<a class="button button-primary" href="#gv_start_fresh" title="<?php esc_attr_e( 'Start Fresh', 'gravityview' ); ?>"><?php esc_html_e( 'Start Fresh', 'gravityview' ); ?></a>
26
+		<a class="button button-primary" href="#gv_start_fresh" title="<?php esc_attr_e('Start Fresh', 'gravityview'); ?>"><?php esc_html_e('Start Fresh', 'gravityview'); ?></a>
27 27
 
28
-		<?php if( !empty( $forms ) ) { ?>
29
-			<span>&nbsp;<?php esc_html_e( 'or use an existing form', 'gravityview' ); ?>&nbsp;</span>
28
+		<?php if (!empty($forms)) { ?>
29
+			<span>&nbsp;<?php esc_html_e('or use an existing form', 'gravityview'); ?>&nbsp;</span>
30 30
 		<?php }
31 31
 	}
32 32
 
33 33
 	// If there are no forms to select, show no forms.
34
-	if( !empty( $forms ) ) { ?>
34
+	if (!empty($forms)) { ?>
35 35
 		<select name="gravityview_form_id" id="gravityview_form_id">
36
-			<option value="" <?php selected( '', $current_form, true ); ?>>&mdash; <?php esc_html_e( 'list of forms', 'gravityview' ); ?> &mdash;</option>
37
-			<?php foreach( $forms as $form ) { ?>
38
-				<option value="<?php echo $form['id']; ?>" <?php selected( $form['id'], $current_form, true ); ?>><?php echo esc_html( $form['title'] ); ?></option>
36
+			<option value="" <?php selected('', $current_form, true); ?>>&mdash; <?php esc_html_e('list of forms', 'gravityview'); ?> &mdash;</option>
37
+			<?php foreach ($forms as $form) { ?>
38
+				<option value="<?php echo $form['id']; ?>" <?php selected($form['id'], $current_form, true); ?>><?php echo esc_html($form['title']); ?></option>
39 39
 			<?php } ?>
40 40
 		</select>
41 41
 	<?php } ?>
42 42
 
43
-	&nbsp;<a class="button button-primary" <?php if( empty( $current_form ) ) { echo 'style="display:none;"'; } ?> id="gv_switch_view_button" href="#gv_switch_view" title="<?php esc_attr_e( 'Switch View', 'gravityview' ); ?>"><?php esc_html_e( 'Switch View Type', 'gravityview' ); ?></a>
43
+	&nbsp;<a class="button button-primary" <?php if (empty($current_form)) { echo 'style="display:none;"'; } ?> id="gv_switch_view_button" href="#gv_switch_view" title="<?php esc_attr_e('Switch View', 'gravityview'); ?>"><?php esc_html_e('Switch View Type', 'gravityview'); ?></a>
44 44
 </p>
45 45
 
46 46
 <?php // confirm dialog box ?>
47
-<div id="gravityview_form_id_dialog" class="gv-dialog-options gv-dialog-warning" title="<?php esc_attr_e( 'Attention', 'gravityview' ); ?>">
48
-	<p><?php esc_html_e( 'Changing the form will reset your field configuration. Changes will be permanent once you save the View.', 'gravityview' ); ?></p>
47
+<div id="gravityview_form_id_dialog" class="gv-dialog-options gv-dialog-warning" title="<?php esc_attr_e('Attention', 'gravityview'); ?>">
48
+	<p><?php esc_html_e('Changing the form will reset your field configuration. Changes will be permanent once you save the View.', 'gravityview'); ?></p>
49 49
 </div>
50 50
 
51 51
 <?php // confirm template dialog box ?>
52
-<div id="gravityview_switch_template_dialog" class="gv-dialog-options gv-dialog-warning" title="<?php esc_attr_e( 'Attention', 'gravityview' ); ?>">
53
-	<p><?php esc_html_e( 'Changing the View Type will reset your field configuration. Changes will be permanent once you save the View.', 'gravityview' ); ?></p>
52
+<div id="gravityview_switch_template_dialog" class="gv-dialog-options gv-dialog-warning" title="<?php esc_attr_e('Attention', 'gravityview'); ?>">
53
+	<p><?php esc_html_e('Changing the View Type will reset your field configuration. Changes will be permanent once you save the View.', 'gravityview'); ?></p>
54 54
 </div>
55 55
 
56 56
 <?php // no js notice ?>
57 57
 <div class="error hide-if-js">
58
-	<p><?php esc_html_e( 'GravityView requires Javascript to be enabled.', 'gravityview' ); ?></p>
58
+	<p><?php esc_html_e('GravityView requires Javascript to be enabled.', 'gravityview'); ?></p>
59 59
 </div>
60 60
 
61 61
 <?php
Please login to merge, or discard this patch.
includes/admin/metaboxes/views/gravityview-content.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Display the tab panels for the Settings metabox
4
- *
5
- * @package GravityView
6
- * @subpackage Gravityview/admin/metaboxes/views
7
- * @since 1.8
8
- *
9
- * @global array $metaboxes
10
- * @global WP_Post $post
11
- */
3
+	 * Display the tab panels for the Settings metabox
4
+	 *
5
+	 * @package GravityView
6
+	 * @subpackage Gravityview/admin/metaboxes/views
7
+	 * @since 1.8
8
+	 *
9
+	 * @global array $metaboxes
10
+	 * @global WP_Post $post
11
+	 */
12 12
 
13 13
 ?>
14 14
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@
 block discarded – undo
19 19
 	 * Loop through the array of registered metaboxes
20 20
 	 * @var GravityView_Metabox_Tab $metabox
21 21
 	 */
22
-	foreach( $metaboxes as $metabox ) {
22
+	foreach ($metaboxes as $metabox) {
23 23
 
24
-		echo '<div id="'.esc_attr( $metabox->id ).'">';
24
+		echo '<div id="'.esc_attr($metabox->id).'">';
25 25
 
26
-		$metabox->render( $post );
26
+		$metabox->render($post);
27 27
 
28 28
 		echo '</div>';
29 29
 	}
Please login to merge, or discard this patch.
includes/admin/metaboxes/views/gravityview-navigation.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Display the tab navigation for the Settings metabox
4
- *
5
- * @package GravityView
6
- * @subpackage Gravityview/admin/metaboxes/views
7
- * @since 1.8
8
- *
9
- * @global GravityView_Metabox_Tab[] $metaboxes
10
- * @global WP_Post $post
11
- */
3
+	 * Display the tab navigation for the Settings metabox
4
+	 *
5
+	 * @package GravityView
6
+	 * @subpackage Gravityview/admin/metaboxes/views
7
+	 * @since 1.8
8
+	 *
9
+	 * @global GravityView_Metabox_Tab[] $metaboxes
10
+	 * @global WP_Post $post
11
+	 */
12 12
 
13 13
 ?>
14 14
 <ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,13 +14,13 @@
 block discarded – undo
14 14
 <ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
15 15
 	<?php
16 16
 
17
-	foreach( $metaboxes as $metabox ) {
18
-		$class = !isset( $class ) ? 'nav-tab-active' : '';
17
+	foreach ($metaboxes as $metabox) {
18
+		$class = !isset($class) ? 'nav-tab-active' : '';
19 19
 	?>
20 20
 	<li class="ui-state-default">
21
-		<a class="nav-tab ui-tabs-anchor <?php echo $class; ?>" href="#<?php echo esc_attr( $metabox->id ); ?>">
21
+		<a class="nav-tab ui-tabs-anchor <?php echo $class; ?>" href="#<?php echo esc_attr($metabox->id); ?>">
22 22
 			<span class="<?php echo $metabox->icon_class_name; ?>"></span>&nbsp;
23
-			<?php echo esc_html( $metabox->title ); ?>
23
+			<?php echo esc_html($metabox->title); ?>
24 24
 		</a>
25 25
 	</li>
26 26
 	<?php
Please login to merge, or discard this patch.
includes/admin/metaboxes/views/select-template.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @file select-template.php
4
- * @package GravityView
5
- * @subpackage Gravityview/admin/metaboxes/partials
6
- * @global WP_Post $post
7
- */
3
+	 * @file select-template.php
4
+	 * @package GravityView
5
+	 * @subpackage Gravityview/admin/metaboxes/partials
6
+	 * @global WP_Post $post
7
+	 */
8 8
 
9 9
 global $post;
10 10
 
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -9,40 +9,40 @@
 block discarded – undo
9 9
 global $post;
10 10
 
11 11
 // Use nonce for verification
12
-wp_nonce_field( 'gravityview_select_template', 'gravityview_select_template_nonce' );
12
+wp_nonce_field('gravityview_select_template', 'gravityview_select_template_nonce');
13 13
 
14 14
 //current value
15
-$current_template = gravityview_get_template_id( $post->ID );
15
+$current_template = gravityview_get_template_id($post->ID);
16 16
 
17 17
 $templates = gravityview_get_registered_templates();
18 18
 
19 19
 // current input
20 20
 ?>
21
-<input type="hidden" id="gravityview_directory_template" name="gravityview_directory_template" value="<?php echo esc_attr( $current_template ); ?>" />
21
+<input type="hidden" id="gravityview_directory_template" name="gravityview_directory_template" value="<?php echo esc_attr($current_template); ?>" />
22 22
 
23 23
 <?php // list all the available templates (type= fresh or custom ) ?>
24 24
 <div class="gv-grid">
25
-	<?php foreach( $templates as $id => $template ) {
26
-		$selected = ( $id == $current_template ) ? ' gv-selected' : ''; ?>
25
+	<?php foreach ($templates as $id => $template) {
26
+		$selected = ($id == $current_template) ? ' gv-selected' : ''; ?>
27 27
 
28 28
 		<div class="gv-grid-col-1-3">
29
-			<div class="gv-view-types-module<?php echo $selected; ?>" data-filter="<?php echo esc_attr( $template['type'] ); ?>">
29
+			<div class="gv-view-types-module<?php echo $selected; ?>" data-filter="<?php echo esc_attr($template['type']); ?>">
30 30
 				<div class="gv-view-types-hover">
31 31
 					<div>
32
-						<?php if( !empty( $template['buy_source'] ) ) { ?>
33
-							<p><a href="<?php echo esc_url( $template['buy_source'] ); ?>" class="button-primary button-buy-now"><?php esc_html_e( 'Buy Now', 'gravityview'); ?></a></p>
32
+						<?php if (!empty($template['buy_source'])) { ?>
33
+							<p><a href="<?php echo esc_url($template['buy_source']); ?>" class="button-primary button-buy-now"><?php esc_html_e('Buy Now', 'gravityview'); ?></a></p>
34 34
 						<?php } else { ?>
35
-							<p><a href="#gv_select_template" class="button button-large button-primary" data-templateid="<?php echo esc_attr( $id ); ?>"><?php esc_html_e( 'Select', 'gravityview'); ?></a></p>
36
-							<?php if( !empty( $template['preview'] ) ) { ?>
37
-								<a href="<?php echo esc_url( $template['preview'] ); ?>" rel="external" class="gv-site-preview"><i class="dashicons dashicons-admin-links" title="<?php esc_html_e( 'View a live demo of this preset', 'gravityview'); ?>"></i></a>
35
+							<p><a href="#gv_select_template" class="button button-large button-primary" data-templateid="<?php echo esc_attr($id); ?>"><?php esc_html_e('Select', 'gravityview'); ?></a></p>
36
+							<?php if (!empty($template['preview'])) { ?>
37
+								<a href="<?php echo esc_url($template['preview']); ?>" rel="external" class="gv-site-preview"><i class="dashicons dashicons-admin-links" title="<?php esc_html_e('View a live demo of this preset', 'gravityview'); ?>"></i></a>
38 38
 							<?php } ?>
39 39
 						<?php } ?>
40 40
 					</div>
41 41
 				</div>
42 42
 				<div class="gv-view-types-normal">
43
-					<img src="<?php echo esc_url( $template['logo'] ); ?>" alt="<?php echo esc_attr( $template['label'] ); ?>">
44
-					<h5><?php echo esc_attr( $template['label'] ); ?></h5>
45
-					<p class="description"><?php echo esc_attr( $template['description'] ); ?></p>
43
+					<img src="<?php echo esc_url($template['logo']); ?>" alt="<?php echo esc_attr($template['label']); ?>">
44
+					<h5><?php echo esc_attr($template['label']); ?></h5>
45
+					<p class="description"><?php echo esc_attr($template['description']); ?></p>
46 46
 				</div>
47 47
 			</div>
48 48
 		</div>
Please login to merge, or discard this patch.
includes/admin/metaboxes/views/shortcode-hint.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package GravityView
4
- * @subpackage Gravityview/admin/metaboxes/partials
5
- * @global $post
6
- */
3
+		 * @package GravityView
4
+		 * @subpackage Gravityview/admin/metaboxes/partials
5
+		 * @global $post
6
+		 */
7 7
 
8 8
 global $post;
9 9
 ?>
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,9 +9,9 @@
 block discarded – undo
9 9
 ?>
10 10
 <div class="misc-pub-section gv-shortcode misc-pub-section-last">
11 11
 	<i class="dashicons dashicons-editor-code"></i>
12
-	<span><?php esc_html_e( 'Embed Shortcode', 'gravityview' ); ?></span>
12
+	<span><?php esc_html_e('Embed Shortcode', 'gravityview'); ?></span>
13 13
 	<div>
14 14
 		<input type="text" readonly="readonly" value="[gravityview id='<?php echo $post->ID; ?>']" class="code widefat" />
15
-		<span class="howto"><?php esc_html_e( 'Add this shortcode to a post or page to embed this view.', 'gravityview' ); ?></span>
15
+		<span class="howto"><?php esc_html_e('Add this shortcode to a post or page to embed this view.', 'gravityview'); ?></span>
16 16
 	</div>
17 17
 </div>
18 18
\ No newline at end of file
Please login to merge, or discard this patch.
includes/admin/metaboxes/views/single-entry.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,15 +7,15 @@
 block discarded – undo
7 7
 global $post;
8 8
 
9 9
 // View template settings
10
-$current_settings = gravityview_get_template_settings( $post->ID );
10
+$current_settings = gravityview_get_template_settings($post->ID);
11 11
 
12 12
 ?>
13 13
 
14 14
 <table class="form-table striped"><?php
15 15
 
16
-	GravityView_Render_Settings::render_setting_row( 'single_title', $current_settings );
16
+	GravityView_Render_Settings::render_setting_row('single_title', $current_settings);
17 17
 
18
-	GravityView_Render_Settings::render_setting_row( 'back_link_label', $current_settings );
18
+	GravityView_Render_Settings::render_setting_row('back_link_label', $current_settings);
19 19
 
20 20
 	?>
21 21
 </table>
22 22
\ No newline at end of file
Please login to merge, or discard this patch.
includes/admin/metaboxes/views/sort-filter.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package GravityView
4
- * @subpackage Gravityview/admin/metaboxes/partials
5
- * @global WP_Post $post
6
- */
3
+	 * @package GravityView
4
+	 * @subpackage Gravityview/admin/metaboxes/partials
5
+	 * @global WP_Post $post
6
+	 */
7 7
 global $post;
8 8
 
9 9
 $curr_form = gravityview_get_form_id( $post->ID );
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -6,47 +6,47 @@
 block discarded – undo
6 6
  */
7 7
 global $post;
8 8
 
9
-$curr_form = gravityview_get_form_id( $post->ID );
9
+$curr_form = gravityview_get_form_id($post->ID);
10 10
 
11 11
 // View template settings
12
-$current_settings = gravityview_get_template_settings( $post->ID );
12
+$current_settings = gravityview_get_template_settings($post->ID);
13 13
 
14 14
 ?>
15 15
 <table class="form-table striped">
16 16
 
17 17
 	<?php
18 18
 
19
-	do_action( 'gravityview_metabox_sort_filter_before', $current_settings );
19
+	do_action('gravityview_metabox_sort_filter_before', $current_settings);
20 20
 
21 21
 	// Begin Sort fields
22
-	do_action( 'gravityview_metabox_sort_before', $current_settings );
22
+	do_action('gravityview_metabox_sort_before', $current_settings);
23 23
 
24 24
 	/**
25 25
 	 * @since 1.7
26 26
 	 */
27
-	GravityView_Render_Settings::render_setting_row( 'sort_columns', $current_settings );
27
+	GravityView_Render_Settings::render_setting_row('sort_columns', $current_settings);
28 28
 
29
-	$sort_fields_input = '<select name="template_settings[sort_field]" id="gravityview_sort_field">'.gravityview_get_sortable_fields( $curr_form, $current_settings['sort_field'] ).'</select>';
29
+	$sort_fields_input = '<select name="template_settings[sort_field]" id="gravityview_sort_field">'.gravityview_get_sortable_fields($curr_form, $current_settings['sort_field']).'</select>';
30 30
 
31
-	GravityView_Render_Settings::render_setting_row( 'sort_field', $current_settings, $sort_fields_input );
31
+	GravityView_Render_Settings::render_setting_row('sort_field', $current_settings, $sort_fields_input);
32 32
 
33
-	GravityView_Render_Settings::render_setting_row( 'sort_direction', $current_settings );
33
+	GravityView_Render_Settings::render_setting_row('sort_direction', $current_settings);
34 34
 
35 35
 
36 36
 	// End Sort fields
37
-	do_action( 'gravityview_metabox_sort_after', $current_settings );
37
+	do_action('gravityview_metabox_sort_after', $current_settings);
38 38
 
39 39
 	// Begin Filter fields
40
-	do_action( 'gravityview_metabox_filter_before', $current_settings );
40
+	do_action('gravityview_metabox_filter_before', $current_settings);
41 41
 
42
-	GravityView_Render_Settings::render_setting_row( 'start_date', $current_settings );
42
+	GravityView_Render_Settings::render_setting_row('start_date', $current_settings);
43 43
 
44
-	GravityView_Render_Settings::render_setting_row( 'end_date', $current_settings );
44
+	GravityView_Render_Settings::render_setting_row('end_date', $current_settings);
45 45
 
46 46
 	// End Filter fields
47
-	do_action( 'gravityview_metabox_filter_after', $current_settings );
47
+	do_action('gravityview_metabox_filter_after', $current_settings);
48 48
 
49
-	do_action( 'gravityview_metabox_sort_filter_after', $current_settings );
49
+	do_action('gravityview_metabox_sort_filter_after', $current_settings);
50 50
 
51 51
 	?>
52 52
 
Please login to merge, or discard this patch.
includes/admin/metaboxes/views/view-configuration.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -1,42 +1,42 @@  discard block
 block discarded – undo
1 1
 <div id="gv-view-configuration-tabs">
2 2
 
3 3
 	<ul class="nav-tab-wrapper">
4
-		<li><a href="#directory-view" class="nav-tab"><i class="dashicons dashicons-admin-page"></i> <?php esc_html_e( 'Multiple Entries', 'gravityview' ); ?></a></li>
5
-		<li><a href="#single-view" class="nav-tab"><i class="dashicons dashicons-media-default"></i> <?php esc_html_e( 'Single Entry', 'gravityview' ); ?></a></li>
6
-		<li><a href="#edit-view" class="nav-tab"><i class="dashicons dashicons-welcome-write-blog"></i> <?php esc_html_e( 'Edit Entry', 'gravityview' ); ?></a></li>
4
+		<li><a href="#directory-view" class="nav-tab"><i class="dashicons dashicons-admin-page"></i> <?php esc_html_e('Multiple Entries', 'gravityview'); ?></a></li>
5
+		<li><a href="#single-view" class="nav-tab"><i class="dashicons dashicons-media-default"></i> <?php esc_html_e('Single Entry', 'gravityview'); ?></a></li>
6
+		<li><a href="#edit-view" class="nav-tab"><i class="dashicons dashicons-welcome-write-blog"></i> <?php esc_html_e('Edit Entry', 'gravityview'); ?></a></li>
7 7
 	</ul>
8 8
 
9 9
 	<div id="directory-view">
10 10
 
11 11
 		<div id="directory-fields" class="gv-section">
12 12
 
13
-			<h4><?php esc_html_e( 'Above Entries Widgets', 'gravityview'); ?> <span><?php esc_html_e( 'These widgets will be shown above entries.', 'gravityview'); ?></span></h4>
13
+			<h4><?php esc_html_e('Above Entries Widgets', 'gravityview'); ?> <span><?php esc_html_e('These widgets will be shown above entries.', 'gravityview'); ?></span></h4>
14 14
 
15
-			<?php do_action('gravityview_render_widgets_active_areas', $curr_template, 'header', $post->ID ); ?>
15
+			<?php do_action('gravityview_render_widgets_active_areas', $curr_template, 'header', $post->ID); ?>
16 16
 
17
-			<h4><?php esc_html_e( 'Entries Fields', 'gravityview'); ?> <span><?php esc_html_e( 'These fields will be shown for each entry.', 'gravityview'); ?></span></h4>
17
+			<h4><?php esc_html_e('Entries Fields', 'gravityview'); ?> <span><?php esc_html_e('These fields will be shown for each entry.', 'gravityview'); ?></span></h4>
18 18
 
19 19
 			<div id="directory-active-fields" class="gv-grid gv-grid-pad gv-grid-border">
20
-				<?php if(!empty( $curr_template ) ) {
21
-					do_action('gravityview_render_directory_active_areas', $curr_template, 'directory', $post->ID, true );
20
+				<?php if (!empty($curr_template)) {
21
+					do_action('gravityview_render_directory_active_areas', $curr_template, 'directory', $post->ID, true);
22 22
 				} ?>
23 23
 			</div>
24 24
 
25
-			<h4><?php esc_html_e( 'Below Entries Widgets', 'gravityview'); ?> <span><?php esc_html_e( 'These widgets will be shown below entries.', 'gravityview'); ?></span></h4>
25
+			<h4><?php esc_html_e('Below Entries Widgets', 'gravityview'); ?> <span><?php esc_html_e('These widgets will be shown below entries.', 'gravityview'); ?></span></h4>
26 26
 
27
-			<?php do_action('gravityview_render_widgets_active_areas', $curr_template, 'footer', $post->ID ); ?>
27
+			<?php do_action('gravityview_render_widgets_active_areas', $curr_template, 'footer', $post->ID); ?>
28 28
 
29 29
 
30 30
 			<?php // list of available fields to be shown in the popup ?>
31 31
 			<div id="directory-available-fields" class="hide-if-js gv-tooltip">
32 32
 				<span class="close"><i class="dashicons dashicons-dismiss"></i></span>
33
-				<?php do_action('gravityview_render_available_fields', $curr_form, 'directory' ); ?>
33
+				<?php do_action('gravityview_render_available_fields', $curr_form, 'directory'); ?>
34 34
 			</div>
35 35
 
36 36
 			<?php // list of available widgets to be shown in the popup ?>
37 37
 			<div id="directory-available-widgets" class="hide-if-js gv-tooltip">
38 38
 				<span class="close"><i class="dashicons dashicons-dismiss"></i></span>
39
-				<?php do_action('gravityview_render_available_widgets' ); ?>
39
+				<?php do_action('gravityview_render_available_widgets'); ?>
40 40
 			</div>
41 41
 
42 42
 		</div>
@@ -52,17 +52,17 @@  discard block
 block discarded – undo
52 52
 
53 53
 		<div id="single-fields" class="gv-section">
54 54
 
55
-			<h4><?php esc_html_e( 'These fields will be shown in Single Entry view.', 'gravityview'); ?></h4>
55
+			<h4><?php esc_html_e('These fields will be shown in Single Entry view.', 'gravityview'); ?></h4>
56 56
 
57 57
 			<div id="single-active-fields" class="gv-grid gv-grid-pad gv-grid-border">
58
-				<?php if(!empty( $curr_template ) ) {
59
-					do_action('gravityview_render_directory_active_areas', $curr_template, 'single', $post->ID, true );
58
+				<?php if (!empty($curr_template)) {
59
+					do_action('gravityview_render_directory_active_areas', $curr_template, 'single', $post->ID, true);
60 60
 				} ?>
61 61
 			</div>
62 62
 
63 63
 			<div id="single-available-fields" class="hide-if-js gv-tooltip">
64 64
 				<span class="close"><i class="dashicons dashicons-dismiss"></i></span>
65
-				<?php do_action('gravityview_render_available_fields', $curr_form, 'single' ); ?>
65
+				<?php do_action('gravityview_render_available_fields', $curr_form, 'single'); ?>
66 66
 			</div>
67 67
 
68 68
 		</div>
@@ -73,17 +73,17 @@  discard block
 block discarded – undo
73 73
 
74 74
 		<div id="edit-fields" class="gv-section">
75 75
 
76
-			<h4><?php esc_html_e( 'Fields shown when editing an entry.', 'gravityview'); ?> <span><?php esc_html_e('If not configured, all form fields will be displayed.', 'gravityview'); ?></span></h4>
76
+			<h4><?php esc_html_e('Fields shown when editing an entry.', 'gravityview'); ?> <span><?php esc_html_e('If not configured, all form fields will be displayed.', 'gravityview'); ?></span></h4>
77 77
 
78 78
 			<div id="edit-active-fields" class="gv-grid gv-grid-pad gv-grid-border">
79 79
 				<?php
80
-				do_action('gravityview_render_directory_active_areas', apply_filters( 'gravityview/template/edit', 'default_table_edit' ), 'edit', $post->ID, true );
80
+				do_action('gravityview_render_directory_active_areas', apply_filters('gravityview/template/edit', 'default_table_edit'), 'edit', $post->ID, true);
81 81
 				?>
82 82
 			</div>
83 83
 
84 84
 			<div id="edit-available-fields" class="hide-if-js gv-tooltip">
85 85
 				<span class="close"><i class="dashicons dashicons-dismiss"></i></span>
86
-				<?php do_action('gravityview_render_available_fields', $curr_form, 'edit' ); ?>
86
+				<?php do_action('gravityview_render_available_fields', $curr_form, 'edit'); ?>
87 87
 			</div>
88 88
 
89 89
 		</div>
Please login to merge, or discard this patch.