| @@ -22,9 +22,8 @@ | ||
| 22 | 22 | * @since 6.9 |
| 23 | 23 | * |
| 24 | 24 | * @param string $addon_key The key of addon. |
| 25 | 25 | * @param array $addon The array of addon's information. |
| 26 | - * | |
| 27 | 26 | * @return void |
| 28 | 27 | */ |
| 29 | 28 | public static function add_addon_label_attributes( $addon_key, $addon ) { |
| 30 | 29 | $id = 'frm-onboarding-' . $addon_key . '-addon'; |
| @@ -36,21 +35,17 @@ | ||
| 36 | 35 | |
| 37 | 36 | if ( ! empty( $addon['is-checked'] ) ) { |
| 38 | 37 | $attributes['class'] .= ' frm-checked'; |
| 39 | 38 | } |
| 40 | - | |
| 41 | 39 | if ( ! empty( $addon['is-disabled'] ) ) { |
| 42 | 40 | $attributes['class'] .= ' frm-disabled'; |
| 43 | 41 | } |
| 44 | - | |
| 45 | 42 | if ( ! empty( $addon['rel'] ) ) { |
| 46 | 43 | $attributes['rel'] = $addon['rel']; |
| 47 | 44 | } |
| 48 | - | |
| 49 | 45 | if ( ! empty( $addon['is-vendor'] ) ) { |
| 50 | 46 | $attributes['data-is-vendor'] = 'true'; |
| 51 | 47 | } |
| 52 | - | |
| 53 | 48 | if ( ! empty( $addon['is-installed'] ) ) { |
| 54 | 49 | $attributes['data-is-installed'] = 'true'; |
| 55 | 50 | } |
| 56 | 51 | |
| @@ -63,9 +58,8 @@ | ||
| 63 | 58 | * @since 6.9 |
| 64 | 59 | * |
| 65 | 60 | * @param string $addon_key The key of addon. |
| 66 | 61 | * @param array $addon The array of addon's information. |
| 67 | - * | |
| 68 | 62 | * @return void |
| 69 | 63 | */ |
| 70 | 64 | public static function add_addon_input_attributes( $addon_key, $addon ) { |
| 71 | 65 | $id = 'frm-onboarding-' . $addon_key . '-addon'; |
| @@ -77,9 +71,8 @@ | ||
| 77 | 71 | |
| 78 | 72 | if ( ! empty( $addon['is-checked'] ) ) { |
| 79 | 73 | $attributes['checked'] = 'checked'; |
| 80 | 74 | } |
| 81 | - | |
| 82 | 75 | if ( ! empty( $addon['is-disabled'] ) ) { |
| 83 | 76 | $attributes['disabled'] = 'disabled'; |
| 84 | 77 | } |
| 85 | 78 | |
| @@ -91,9 +84,8 @@ | ||
| 91 | 84 | * |
| 92 | 85 | * @since 6.9 |
| 93 | 86 | * |
| 94 | 87 | * @param array $args |
| 95 | - * | |
| 96 | 88 | * @return void |
| 97 | 89 | */ |
| 98 | 90 | public static function print_footer( $args = array() ) { |
| 99 | 91 | $defaults = array( |
| @@ -118,17 +110,14 @@ | ||
| 118 | 110 | $primary_button_attributes = array( |
| 119 | 111 | 'href' => $args['primary-button-href'], |
| 120 | 112 | ); |
| 121 | 113 | $primary_button_attributes['class'] = trim( 'button button-primary frm-button-primary frm-sharp frm_large ' . $args['primary-button-class'] ); |
| 122 | - | |
| 123 | 114 | if ( ! empty( $args['primary-button-id'] ) ) { |
| 124 | 115 | $primary_button_attributes['id'] = $args['primary-button-id']; |
| 125 | 116 | } |
| 126 | - | |
| 127 | 117 | if ( ! empty( $args['primary-button-plugin'] ) ) { |
| 128 | 118 | $primary_button_attributes['data-plugin'] = $args['primary-button-plugin']; |
| 129 | 119 | } |
| 130 | - | |
| 131 | 120 | if ( ! empty( $args['primary-button-role'] ) ) { |
| 132 | 121 | $primary_button_attributes['role'] = $args['primary-button-role']; |
| 133 | 122 | } |
| 134 | 123 | |
| @@ -136,17 +125,14 @@ | ||
| 136 | 125 | $secondary_button_attributes = array( |
| 137 | 126 | 'href' => $args['secondary-button-href'], |
| 138 | 127 | ); |
| 139 | 128 | $secondary_button_attributes['class'] = trim( 'button button-secondary frm-button-secondary frm-sharp frm_large ' . $args['secondary-button-class'] ); |
| 140 | - | |
| 141 | 129 | if ( $args['secondary-button-skip-step'] ) { |
| 142 | 130 | $secondary_button_attributes['class'] .= ' frm-onboarding-skip-step'; |
| 143 | 131 | } |
| 144 | - | |
| 145 | 132 | if ( ! empty( $args['secondary-button-id'] ) ) { |
| 146 | 133 | $secondary_button_attributes['id'] = $args['secondary-button-id']; |
| 147 | 134 | } |
| 148 | - | |
| 149 | 135 | if ( ! empty( $args['secondary-button-role'] ) ) { |
| 150 | 136 | $secondary_button_attributes['role'] = $args['secondary-button-role']; |
| 151 | 137 | } |
| 152 | 138 | |