| @@ -15,7 +15,7 @@ | ||
| 15 | 15 | return; | 
| 16 | 16 | } | 
| 17 | 17 | |
| 18 | - $class = !empty( $this->field['class'] ) ? $this->field['class'] : 'widefat'; | |
| 18 | + $class = !empty( $this->field['class'] ) ? $this->field['class'] : 'widefat'; | |
| 19 | 19 | |
| 20 | 20 | ?> | 
| 21 | 21 | <input name="<?php echo esc_attr( $this->name ); ?>" id="<?php echo $this->get_field_id(); ?>" type="hidden" value="<?php echo esc_attr( $this->value ); ?>" class="<?php echo esc_attr( $class ); ?>" /> | 
| @@ -14,7 +14,7 @@ discard block | ||
| 14 | 14 | |
| 15 | 15 |  		if( !GravityView_Compatibility::is_valid() ) { return; } | 
| 16 | 16 | |
| 17 | - self::$metaboxes_dir = GRAVITYVIEW_DIR . 'includes/admin/metaboxes/'; | |
| 17 | + self::$metaboxes_dir = GRAVITYVIEW_DIR . 'includes/admin/metaboxes/'; | |
| 18 | 18 | |
| 19 | 19 | include_once self::$metaboxes_dir . 'class-gravityview-metabox-tab.php'; | 
| 20 | 20 | |
| @@ -228,13 +228,13 @@ discard block | ||
| 228 | 228 | $get_id_backup = isset($_GET['id']) ? $_GET['id'] : NULL; | 
| 229 | 229 | |
| 230 | 230 |  		if( isset( $form['id'] ) ) { | 
| 231 | - $form_script = 'var form = ' . GFCommon::json_encode($form) . ';'; | |
| 231 | + $form_script = 'var form = ' . GFCommon::json_encode($form) . ';'; | |
| 232 | 232 | |
| 233 | - // The `gf_vars()` method needs a $_GET[id] variable set with the form ID. | |
| 234 | - $_GET['id'] = $form['id']; | |
| 233 | + // The `gf_vars()` method needs a $_GET[id] variable set with the form ID. | |
| 234 | + $_GET['id'] = $form['id']; | |
| 235 | 235 | |
| 236 | 236 |  		} else { | 
| 237 | - $form_script = 'var form = new Form();'; | |
| 237 | + $form_script = 'var form = new Form();'; | |
| 238 | 238 | } | 
| 239 | 239 | |
| 240 | 240 | $output = '<script type="text/javascript" data-gv-merge-tags="1">' . $form_script . "\n" . GFCommon::gf_vars(false) . '</script>'; | 
| @@ -204,7 +204,7 @@ | ||
| 204 | 204 | self::$notices['wp_version'] = array( | 
| 205 | 205 | 'class' => 'error', | 
| 206 | 206 | 'message' => sprintf( __( "%sGravityView requires WordPress %s or newer.%s \n\nYou're using Version %s. Please upgrade your WordPress installation.", 'gravityview' ), '<h3>', GV_MIN_WP_VERSION, "</h3>\n\n", '<span style="font-family: Consolas, Courier, monospace;">'.$wp_version.'</span>' ), | 
| 207 | - 'cap' => 'update_core', | |
| 207 | + 'cap' => 'update_core', | |
| 208 | 208 | 'dismiss' => 'wp_version', | 
| 209 | 209 | ); | 
| 210 | 210 | |
| @@ -23,7 +23,7 @@ | ||
| 23 | 23 | var $style = NULL; | 
| 24 | 24 | |
| 25 | 25 | /** | 
| 26 | - * String representing size of image - Choose from "full", "medium", "thumb", "tiny" | |
| 26 | + * String representing size of image - Choose from "full", "medium", "thumb", "tiny" | |
| 27 | 27 | * @var string | 
| 28 | 28 | */ | 
| 29 | 29 | var $size = NULL; | 
| @@ -180,8 +180,8 @@ | ||
| 180 | 180 | |
| 181 | 181 | // check widget settings: | 
| 182 | 182 | // [search_free] => 1 | 
| 183 | - // [search_date] => 1 | |
| 184 | - $search_generic = array(); | |
| 183 | + // [search_date] => 1 | |
| 184 | + $search_generic = array(); | |
| 185 | 185 |  					if( !empty( $widget['search_free'] ) ) { | 
| 186 | 186 | $search_generic[] = array( 'field' => 'search_all', 'input' => 'input_text' ); | 
| 187 | 187 | } | 
| @@ -56,7 +56,7 @@ discard block | ||
| 56 | 56 | add_filter( 'members_get_capabilities', array( 'GravityView_Roles_Capabilities', 'merge_with_all_caps' ) ); | 
| 57 | 57 | add_action( 'members_register_cap_groups', array( $this, 'members_register_cap_group' ), 20 ); | 
| 58 | 58 | add_filter( 'user_has_cap', array( $this, 'filter_user_has_cap' ), 10, 4 ); | 
| 59 | - add_action( 'admin_init', array( $this, 'add_caps') ); | |
| 59 | + add_action( 'admin_init', array( $this, 'add_caps') ); | |
| 60 | 60 | } | 
| 61 | 61 | |
| 62 | 62 | |
| @@ -360,7 +360,6 @@ discard block | ||
| 360 | 360 | * Add Gravity Forms and GravityView's "full access" caps when any other caps are checked against. | 
| 361 | 361 | * | 
| 362 | 362 | * @since 1.15 | 
| 363 | - | |
| 364 | 363 | * @param array $caps_to_check | 
| 365 | 364 | * | 
| 366 | 365 | * @return array | 
| @@ -307,7 +307,7 @@ | ||
| 307 | 307 | ! isset( $value ) // If it's not set, it's empty! | 
| 308 | 308 | || false === $value | 
| 309 | 309 | || null === $value | 
| 310 | - || '' === $value // Empty string | |
| 310 | + || '' === $value // Empty string | |
| 311 | 311 | || array() === $value // Empty array | 
| 312 | 312 | || ( is_object( $value ) && ! get_object_vars( $value ) ) // Empty object | 
| 313 | 313 |  	) { | 
| @@ -255,7 +255,6 @@ | ||
| 255 | 255 | * Get the default date format for a field based on the field ID and the time format setting | 
| 256 | 256 | * | 
| 257 | 257 | * @since 1.14 | 
| 258 | - | |
| 259 | 258 |  	 * @param string $time_format The time format ("12" or "24"). Default: "12" {@since 1.14} | 
| 260 | 259 |  	 * @param int $field_id The ID of the field. Used to figure out full time/hours/minutes/am/pm {@since 1.14} | 
| 261 | 260 | * | 
| @@ -40,11 +40,11 @@ | ||
| 40 | 40 | } | 
| 41 | 41 | |
| 42 | 42 | $field_options['link_phone'] = array( | 
| 43 | - 'type' => 'checkbox', | |
| 44 | - 'label' => __( 'Make Phone Number Clickable', 'gravityview' ), | |
| 45 | - 'desc' => __( 'Allow dialing a number by clicking it?', 'gravityview'), | |
| 46 | - 'value' => true, | |
| 47 | - ); | |
| 43 | + 'type' => 'checkbox', | |
| 44 | + 'label' => __( 'Make Phone Number Clickable', 'gravityview' ), | |
| 45 | + 'desc' => __( 'Allow dialing a number by clicking it?', 'gravityview'), | |
| 46 | + 'value' => true, | |
| 47 | + ); | |
| 48 | 48 | |
| 49 | 49 | return $field_options; | 
| 50 | 50 | } |