@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | |
| 137 | 137 | if( empty( $connected_views ) ) { |
| 138 | 138 | |
| 139 | - $menu_items['gravityview'] = array( |
|
| 139 | + $menu_items['gravityview'] = array( |
|
| 140 | 140 | 'label' => esc_attr__( 'Create a View', 'gravityview' ), |
| 141 | 141 | 'icon' => '<i class="fa fa-lg gv-icon-astronaut-head gv-icon"></i>', |
| 142 | 142 | 'title' => esc_attr__( 'Create a View using this form as a data source', 'gravityview' ), |
@@ -167,13 +167,13 @@ discard block |
||
| 167 | 167 | // If there were no items added, then let's create the parent menu |
| 168 | 168 | if( $sub_menu_items ) { |
| 169 | 169 | |
| 170 | - $sub_menu_items[] = array( |
|
| 171 | - 'label' => esc_attr__( 'Create a View', 'gravityview' ), |
|
| 172 | - 'link_class' => 'gv-create-view', |
|
| 173 | - 'title' => esc_attr__( 'Create a View using this form as a data source', 'gravityview' ), |
|
| 174 | - 'url' => admin_url( 'post-new.php?post_type=gravityview&form_id=' . $id ), |
|
| 175 | - 'capabilities' => array( 'edit_gravityviews' ), |
|
| 176 | - ); |
|
| 170 | + $sub_menu_items[] = array( |
|
| 171 | + 'label' => esc_attr__( 'Create a View', 'gravityview' ), |
|
| 172 | + 'link_class' => 'gv-create-view', |
|
| 173 | + 'title' => esc_attr__( 'Create a View using this form as a data source', 'gravityview' ), |
|
| 174 | + 'url' => admin_url( 'post-new.php?post_type=gravityview&form_id=' . $id ), |
|
| 175 | + 'capabilities' => array( 'edit_gravityviews' ), |
|
| 176 | + ); |
|
| 177 | 177 | |
| 178 | 178 | // Make sure Gravity Forms uses the submenu; if there's only one item, it uses a link instead of a dropdown |
| 179 | 179 | $sub_menu_items[] = array( |
@@ -549,12 +549,12 @@ discard block |
||
| 549 | 549 | * Render html for displaying available fields based on a Form ID |
| 550 | 550 | * $blacklist_field_types - contains the field types which are not proper to be shown in a directory. |
| 551 | 551 | * |
| 552 | - * @see GravityView_Ajax::get_available_fields_html() Triggers `gravityview_render_available_fields` action |
|
| 552 | + * @see GravityView_Ajax::get_available_fields_html() Triggers `gravityview_render_available_fields` action |
|
| 553 | 553 | * @access public |
| 554 | - * |
|
| 554 | + * |
|
| 555 | 555 | * @param int $form Gravity Forms Form ID (default: '') |
| 556 | 556 | * @param string $context (default: 'single') |
| 557 | - * |
|
| 557 | + * |
|
| 558 | 558 | * @return void |
| 559 | 559 | */ |
| 560 | 560 | function render_available_fields( $form = 0, $context = 'single' ) { |
@@ -568,7 +568,7 @@ discard block |
||
| 568 | 568 | |
| 569 | 569 | if ( ! is_array( $blacklist_field_types ) ) { |
| 570 | 570 | |
| 571 | - do_action( 'gravityview_log_error', __METHOD__ . ': $blacklist_field_types is not an array', print_r( $blacklist_field_types, true ) ); |
|
| 571 | + do_action( 'gravityview_log_error', __METHOD__ . ': $blacklist_field_types is not an array', print_r( $blacklist_field_types, true ) ); |
|
| 572 | 572 | |
| 573 | 573 | $blacklist_field_types = array(); |
| 574 | 574 | } |
@@ -700,12 +700,12 @@ discard block |
||
| 700 | 700 | /** |
| 701 | 701 | * @since 1.7.2 |
| 702 | 702 | */ |
| 703 | - 'other_entries' => array( |
|
| 704 | - 'label' => __('Other Entries', 'gravityview'), |
|
| 705 | - 'type' => 'other_entries', |
|
| 706 | - 'desc' => __('Display other entries created by the entry creator.', 'gravityview'), |
|
| 707 | - ), |
|
| 708 | - ); |
|
| 703 | + 'other_entries' => array( |
|
| 704 | + 'label' => __('Other Entries', 'gravityview'), |
|
| 705 | + 'type' => 'other_entries', |
|
| 706 | + 'desc' => __('Display other entries created by the entry creator.', 'gravityview'), |
|
| 707 | + ), |
|
| 708 | + ); |
|
| 709 | 709 | |
| 710 | 710 | if( 'single' !== $zone) { |
| 711 | 711 | |
@@ -1030,7 +1030,7 @@ discard block |
||
| 1030 | 1030 | |
| 1031 | 1031 | wp_localize_script('gravityview_views_scripts', 'gvGlobals', array( |
| 1032 | 1032 | 'cookiepath' => COOKIEPATH, |
| 1033 | - 'passed_form_id' => (bool) rgget( 'form_id' ), |
|
| 1033 | + 'passed_form_id' => (bool) rgget( 'form_id' ), |
|
| 1034 | 1034 | 'nonce' => wp_create_nonce( 'gravityview_ajaxviews' ), |
| 1035 | 1035 | 'label_viewname' => __( 'Enter View name here', 'gravityview' ), |
| 1036 | 1036 | 'label_close' => __( 'Close', 'gravityview' ), |
@@ -1055,15 +1055,15 @@ discard block |
||
| 1055 | 1055 | GFForms::register_scripts(); |
| 1056 | 1056 | |
| 1057 | 1057 | $scripts = array( |
| 1058 | - 'sack', |
|
| 1059 | - 'gform_gravityforms', |
|
| 1060 | - 'gform_forms', |
|
| 1061 | - 'gform_form_admin', |
|
| 1062 | - 'jquery-ui-autocomplete' |
|
| 1058 | + 'sack', |
|
| 1059 | + 'gform_gravityforms', |
|
| 1060 | + 'gform_forms', |
|
| 1061 | + 'gform_form_admin', |
|
| 1062 | + 'jquery-ui-autocomplete' |
|
| 1063 | 1063 | ); |
| 1064 | 1064 | |
| 1065 | 1065 | if ( wp_is_mobile() ) { |
| 1066 | - $scripts[] = 'jquery-touch-punch'; |
|
| 1066 | + $scripts[] = 'jquery-touch-punch'; |
|
| 1067 | 1067 | } |
| 1068 | 1068 | |
| 1069 | 1069 | foreach ($scripts as $script) { |