Completed
Branch master (3ac4b1)
by Zack
04:30
created
includes/presets/default-table/class-gravityview-default-template-table.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -6,18 +6,18 @@  discard block
 block discarded – undo
6 6
  */
7 7
 class GravityView_Default_Template_Table extends GravityView_Template {
8 8
 
9
-	function __construct( $id = 'default_table', $settings = array(), $field_options = array(), $areas = array() ) {
9
+	function __construct($id = 'default_table', $settings = array(), $field_options = array(), $areas = array()) {
10 10
 
11 11
 		$table_settings = array(
12 12
 			'slug'        => 'table',
13 13
 			'type'        => 'custom',
14
-			'label'       => __( 'Table (default)', 'gravityview' ),
15
-			'description' => __( 'Display items in a table view.', 'gravityview' ),
16
-			'logo'        => plugins_url( 'includes/presets/default-table/logo-default-table.png', GRAVITYVIEW_FILE ),
17
-			'css_source'  => plugins_url( 'templates/css/table-view.css', GRAVITYVIEW_FILE ),
14
+			'label'       => __('Table (default)', 'gravityview'),
15
+			'description' => __('Display items in a table view.', 'gravityview'),
16
+			'logo'        => plugins_url('includes/presets/default-table/logo-default-table.png', GRAVITYVIEW_FILE),
17
+			'css_source'  => plugins_url('templates/css/table-view.css', GRAVITYVIEW_FILE),
18 18
 		);
19 19
 
20
-		$settings = wp_parse_args( $settings, $table_settings );
20
+		$settings = wp_parse_args($settings, $table_settings);
21 21
 
22 22
 		/**
23 23
 		 * @see  GravityView_Admin_Views::get_default_field_options() for Generic Field Options
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 		$field_options = array(
27 27
 			'show_as_link' => array(
28 28
 				'type'    => 'checkbox',
29
-				'label'   => __( 'Link to single entry', 'gravityview' ),
29
+				'label'   => __('Link to single entry', 'gravityview'),
30 30
 				'value'   => false,
31 31
 				'context' => 'directory'
32 32
 			),
@@ -37,15 +37,15 @@  discard block
 block discarded – undo
37 37
 				'1-1' => array(
38 38
 					array(
39 39
 						'areaid'   => 'table-columns',
40
-						'title'    => __( 'Visible Table Columns', 'gravityview' ),
41
-						'subtitle' => __( 'Each field will be displayed as a column in the table.', 'gravityview' ),
40
+						'title'    => __('Visible Table Columns', 'gravityview'),
41
+						'subtitle' => __('Each field will be displayed as a column in the table.', 'gravityview'),
42 42
 					)
43 43
 				)
44 44
 			)
45 45
 		);
46 46
 
47 47
 
48
-		parent::__construct( $id, $settings, $field_options, $areas );
48
+		parent::__construct($id, $settings, $field_options, $areas);
49 49
 
50 50
 	}
51 51
 }
Please login to merge, or discard this patch.
includes/presets/event-listings/class-gravityview-preset-event-listings.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,15 +21,15 @@
 block discarded – undo
21 21
 		$settings = array(
22 22
 			'slug'          => 'list',
23 23
 			'type'          => 'preset',
24
-			'label'         => __( 'Event Listings', 'gravityview' ),
25
-			'description'   => __( 'Present a list of your events.', 'gravityview' ),
26
-			'logo'          => plugins_url( 'includes/presets/event-listings/logo-event-listings.png', GRAVITYVIEW_FILE ),
24
+			'label'         => __('Event Listings', 'gravityview'),
25
+			'description'   => __('Present a list of your events.', 'gravityview'),
26
+			'logo'          => plugins_url('includes/presets/event-listings/logo-event-listings.png', GRAVITYVIEW_FILE),
27 27
 			'preview'       => 'http://demo.gravityview.co/blog/view/event-listings/',
28
-			'preset_form'   => GRAVITYVIEW_DIR . 'includes/presets/event-listings/form-event-listings.xml',
29
-			'preset_fields' => GRAVITYVIEW_DIR . 'includes/presets/event-listings/fields-event-listings.xml'
28
+			'preset_form'   => GRAVITYVIEW_DIR.'includes/presets/event-listings/form-event-listings.xml',
29
+			'preset_fields' => GRAVITYVIEW_DIR.'includes/presets/event-listings/fields-event-listings.xml'
30 30
 		);
31 31
 
32
-		parent::__construct( $id, $settings );
32
+		parent::__construct($id, $settings);
33 33
 
34 34
 	}
35 35
 }
Please login to merge, or discard this patch.
includes/presets/issue-tracker/class-gravityview-preset-issue-tracker.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,16 +21,16 @@
 block discarded – undo
21 21
 		$settings = array(
22 22
 			'slug'          => 'table',
23 23
 			'type'          => 'preset',
24
-			'label'         => __( 'Issue Tracker', 'gravityview' ),
25
-			'description'   => __( 'Manage issues and their statuses.', 'gravityview' ),
26
-			'logo'          => plugins_url( 'includes/presets/issue-tracker/logo-issue-tracker.png', GRAVITYVIEW_FILE ),
24
+			'label'         => __('Issue Tracker', 'gravityview'),
25
+			'description'   => __('Manage issues and their statuses.', 'gravityview'),
26
+			'logo'          => plugins_url('includes/presets/issue-tracker/logo-issue-tracker.png', GRAVITYVIEW_FILE),
27 27
 			'preview'       => 'http://demo.gravityview.co/blog/view/issue-tracker/',
28
-			'preset_form'   => GRAVITYVIEW_DIR . 'includes/presets/issue-tracker/form-issue-tracker.xml',
29
-			'preset_fields' => GRAVITYVIEW_DIR . 'includes/presets/issue-tracker/fields-issue-tracker.xml'
28
+			'preset_form'   => GRAVITYVIEW_DIR.'includes/presets/issue-tracker/form-issue-tracker.xml',
29
+			'preset_fields' => GRAVITYVIEW_DIR.'includes/presets/issue-tracker/fields-issue-tracker.xml'
30 30
 
31 31
 		);
32 32
 
33
-		parent::__construct( $id, $settings );
33
+		parent::__construct($id, $settings);
34 34
 
35 35
 	}
36 36
 }
Please login to merge, or discard this patch.
includes/presets/job-board/class-gravityview-preset-job-board.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,16 +21,16 @@
 block discarded – undo
21 21
 		$settings = array(
22 22
 			'slug'          => 'list',
23 23
 			'type'          => 'preset',
24
-			'label'         => __( 'Job Board', 'gravityview' ),
25
-			'description'   => __( 'Post available jobs in a simple job board.', 'gravityview' ),
26
-			'logo'          => plugins_url( 'includes/presets/job-board/logo-job-board.png', GRAVITYVIEW_FILE ),
24
+			'label'         => __('Job Board', 'gravityview'),
25
+			'description'   => __('Post available jobs in a simple job board.', 'gravityview'),
26
+			'logo'          => plugins_url('includes/presets/job-board/logo-job-board.png', GRAVITYVIEW_FILE),
27 27
 			'preview'       => 'http://demo.gravityview.co/blog/view/job-board/',
28
-			'preset_form'   => GRAVITYVIEW_DIR . 'includes/presets/job-board/form-job-board.xml',
29
-			'preset_fields' => GRAVITYVIEW_DIR . 'includes/presets/job-board/fields-job-board.xml'
28
+			'preset_form'   => GRAVITYVIEW_DIR.'includes/presets/job-board/form-job-board.xml',
29
+			'preset_fields' => GRAVITYVIEW_DIR.'includes/presets/job-board/fields-job-board.xml'
30 30
 
31 31
 		);
32 32
 
33
-		parent::__construct( $id, $settings );
33
+		parent::__construct($id, $settings);
34 34
 	}
35 35
 }
36 36
 
Please login to merge, or discard this patch.
includes/presets/profiles/class-gravityview-preset-profiles.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,15 +21,15 @@
 block discarded – undo
21 21
 		$settings = array(
22 22
 			'slug'          => 'list',
23 23
 			'type'          => 'preset',
24
-			'label'         => __( 'People Profiles', 'gravityview' ),
25
-			'description'   => __( 'List people with individual profiles.', 'gravityview' ),
26
-			'logo'          => plugins_url( 'includes/presets/profiles/logo-profiles.png', GRAVITYVIEW_FILE ),
24
+			'label'         => __('People Profiles', 'gravityview'),
25
+			'description'   => __('List people with individual profiles.', 'gravityview'),
26
+			'logo'          => plugins_url('includes/presets/profiles/logo-profiles.png', GRAVITYVIEW_FILE),
27 27
 			'preview'       => 'http://demo.gravityview.co/blog/view/people-profiles/',
28
-			'preset_form'   => GRAVITYVIEW_DIR . 'includes/presets/profiles/form-profiles.xml',
29
-			'preset_fields' => GRAVITYVIEW_DIR . 'includes/presets/profiles/fields-profiles.xml'
28
+			'preset_form'   => GRAVITYVIEW_DIR.'includes/presets/profiles/form-profiles.xml',
29
+			'preset_fields' => GRAVITYVIEW_DIR.'includes/presets/profiles/fields-profiles.xml'
30 30
 		);
31 31
 
32
-		parent::__construct( $id, $settings );
32
+		parent::__construct($id, $settings);
33 33
 
34 34
 	}
35 35
 }
Please login to merge, or discard this patch.
includes/presets/register-default-templates.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
  */
14 14
 
15 15
 // Load default templates
16
-add_action( 'init', 'gravityview_register_default_templates', 11 );
16
+add_action('init', 'gravityview_register_default_templates', 11);
17 17
 
18 18
 /**
19 19
  * Registers the default templates
@@ -23,19 +23,19 @@  discard block
 block discarded – undo
23 23
 	/** @define "GRAVITYVIEW_DIR" "../../" */
24 24
 
25 25
 	// The abstract class required by all template files.
26
-	require_once GRAVITYVIEW_DIR . 'includes/class-gravityview-template.php';
26
+	require_once GRAVITYVIEW_DIR.'includes/class-gravityview-template.php';
27 27
 
28
-	$path = GRAVITYVIEW_DIR . 'includes/presets/';
29
-	include_once $path . 'default-table/class-gravityview-default-template-table.php';
30
-	include_once $path . 'default-list/class-gravityview-default-template-list.php';
31
-	include_once $path . 'default-edit/class-gravityview-default-template-edit.php';
32
-	include_once $path . 'business-listings/class-gravityview-preset-business-listings.php';
33
-	include_once $path . 'business-data/class-gravityview-preset-business-data.php';
34
-	include_once $path . 'profiles/class-gravityview-preset-profiles.php';
35
-	include_once $path . 'staff-profiles/class-gravityview-preset-staff-profiles.php';
36
-	include_once $path . 'website-showcase/class-gravityview-preset-website-showcase.php';
37
-	include_once $path . 'issue-tracker/class-gravityview-preset-issue-tracker.php';
38
-	include_once $path . 'resume-board/class-gravityview-preset-resume-board.php';
39
-	include_once $path . 'job-board/class-gravityview-preset-job-board.php';
40
-	include_once $path . 'event-listings/class-gravityview-preset-event-listings.php';
28
+	$path = GRAVITYVIEW_DIR.'includes/presets/';
29
+	include_once $path.'default-table/class-gravityview-default-template-table.php';
30
+	include_once $path.'default-list/class-gravityview-default-template-list.php';
31
+	include_once $path.'default-edit/class-gravityview-default-template-edit.php';
32
+	include_once $path.'business-listings/class-gravityview-preset-business-listings.php';
33
+	include_once $path.'business-data/class-gravityview-preset-business-data.php';
34
+	include_once $path.'profiles/class-gravityview-preset-profiles.php';
35
+	include_once $path.'staff-profiles/class-gravityview-preset-staff-profiles.php';
36
+	include_once $path.'website-showcase/class-gravityview-preset-website-showcase.php';
37
+	include_once $path.'issue-tracker/class-gravityview-preset-issue-tracker.php';
38
+	include_once $path.'resume-board/class-gravityview-preset-resume-board.php';
39
+	include_once $path.'job-board/class-gravityview-preset-job-board.php';
40
+	include_once $path.'event-listings/class-gravityview-preset-event-listings.php';
41 41
 }
42 42
\ No newline at end of file
Please login to merge, or discard this patch.
includes/presets/resume-board/class-gravityview-preset-resume-board.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * GravityView preset template
4
- *
5
- * @file class-gravityview-preset-resume-board.php
6
- * @package   GravityView
7
- * @license   GPL2+
8
- * @author    Katz Web Services, Inc.
9
- * @link      http://gravityview.co
10
- * @copyright Copyright 2015, Katz Web Services, Inc.
11
- *
12
- * @since 1.15
13
- */
3
+	 * GravityView preset template
4
+	 *
5
+	 * @file class-gravityview-preset-resume-board.php
6
+	 * @package   GravityView
7
+	 * @license   GPL2+
8
+	 * @author    Katz Web Services, Inc.
9
+	 * @link      http://gravityview.co
10
+	 * @copyright Copyright 2015, Katz Web Services, Inc.
11
+	 *
12
+	 * @since 1.15
13
+	 */
14 14
 
15 15
 class GravityView_Preset_Resume_Board extends GravityView_Default_Template_Table {
16 16
 
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,15 +21,15 @@
 block discarded – undo
21 21
 		$settings = array(
22 22
 			'slug'          => 'table',
23 23
 			'type'          => 'preset',
24
-			'label'         => __( 'Resume Board', 'gravityview' ),
25
-			'description'   => __( 'Allow job-seekers to post their resumes.', 'gravityview' ),
26
-			'logo'          => plugins_url( 'includes/presets/resume-board/logo-resume-board.png', GRAVITYVIEW_FILE ),
24
+			'label'         => __('Resume Board', 'gravityview'),
25
+			'description'   => __('Allow job-seekers to post their resumes.', 'gravityview'),
26
+			'logo'          => plugins_url('includes/presets/resume-board/logo-resume-board.png', GRAVITYVIEW_FILE),
27 27
 			'preview'       => 'http://demo.gravityview.co/blog/view/resume-board/',
28
-			'preset_form'   => GRAVITYVIEW_DIR . 'includes/presets/resume-board/form-resume-board.xml',
29
-			'preset_fields' => GRAVITYVIEW_DIR . 'includes/presets/resume-board/fields-resume-board.xml'
28
+			'preset_form'   => GRAVITYVIEW_DIR.'includes/presets/resume-board/form-resume-board.xml',
29
+			'preset_fields' => GRAVITYVIEW_DIR.'includes/presets/resume-board/fields-resume-board.xml'
30 30
 		);
31 31
 
32
-		parent::__construct( $id, $settings );
32
+		parent::__construct($id, $settings);
33 33
 
34 34
 	}
35 35
 }
Please login to merge, or discard this patch.
includes/presets/staff-profiles/class-gravityview-preset-staff-profiles.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,15 +21,15 @@
 block discarded – undo
21 21
 		$settings = array(
22 22
 			'slug'          => 'list',
23 23
 			'type'          => 'preset',
24
-			'label'         => __( 'Staff Profiles', 'gravityview' ),
25
-			'description'   => __( 'List members of your team.', 'gravityview' ),
26
-			'logo'          => plugins_url( 'includes/presets/staff-profiles/logo-staff-profiles.png', GRAVITYVIEW_FILE ),
24
+			'label'         => __('Staff Profiles', 'gravityview'),
25
+			'description'   => __('List members of your team.', 'gravityview'),
26
+			'logo'          => plugins_url('includes/presets/staff-profiles/logo-staff-profiles.png', GRAVITYVIEW_FILE),
27 27
 			'preview'       => 'http://demo.gravityview.co/blog/view/staff-profiles/',
28
-			'preset_form'   => GRAVITYVIEW_DIR . 'includes/presets/staff-profiles/form-staff-profiles.xml',
29
-			'preset_fields' => GRAVITYVIEW_DIR . 'includes/presets/staff-profiles/fields-staff-profiles.xml',
28
+			'preset_form'   => GRAVITYVIEW_DIR.'includes/presets/staff-profiles/form-staff-profiles.xml',
29
+			'preset_fields' => GRAVITYVIEW_DIR.'includes/presets/staff-profiles/fields-staff-profiles.xml',
30 30
 		);
31 31
 
32
-		parent::__construct( $id, $settings );
32
+		parent::__construct($id, $settings);
33 33
 
34 34
 	}
35 35
 }
Please login to merge, or discard this patch.
presets/website-showcase/class-gravityview-preset-website-showcase.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,15 +21,15 @@
 block discarded – undo
21 21
 		$settings = array(
22 22
 			'slug'          => 'list',
23 23
 			'type'          => 'preset',
24
-			'label'         => __( 'Website Showcase', 'gravityview' ),
25
-			'description'   => __( 'Feature submitted websites with screenshots.', 'gravityview' ),
26
-			'logo'          => plugins_url( 'includes/presets/website-showcase/logo-website-showcase.png', GRAVITYVIEW_FILE ),
24
+			'label'         => __('Website Showcase', 'gravityview'),
25
+			'description'   => __('Feature submitted websites with screenshots.', 'gravityview'),
26
+			'logo'          => plugins_url('includes/presets/website-showcase/logo-website-showcase.png', GRAVITYVIEW_FILE),
27 27
 			'preview'       => 'http://demo.gravityview.co/blog/view/website-showcase/',
28
-			'preset_form'   => GRAVITYVIEW_DIR . 'includes/presets/website-showcase/form-website-showcase.xml',
29
-			'preset_fields' => GRAVITYVIEW_DIR . 'includes/presets/website-showcase/fields-website-showcase.xml'
28
+			'preset_form'   => GRAVITYVIEW_DIR.'includes/presets/website-showcase/form-website-showcase.xml',
29
+			'preset_fields' => GRAVITYVIEW_DIR.'includes/presets/website-showcase/fields-website-showcase.xml'
30 30
 		);
31 31
 
32
-		parent::__construct( $id, $settings );
32
+		parent::__construct($id, $settings);
33 33
 
34 34
 	}
35 35
 }
Please login to merge, or discard this patch.