| @@ -131,8 +131,9 @@ | ||
| 131 | 131 | public static function get_reconnect_link() { |
| 132 | 132 | if ( ! FrmAppHelper::pro_is_connected() ) { |
| 133 | 133 | return; |
| 134 | 134 | } |
| 135 | + // phpcs:disable Generic.WhiteSpace.ScopeIndent | |
| 135 | 136 | ?> |
| 136 | 137 | <p class="frm-py-2xs"> |
| 137 | 138 | <span class="frm-font-medium frm-text-grey-700"><?php esc_html_e( 'Missing add-ons?', 'formidable' ); ?></span> |
| 138 | 139 | <a href="#" id="frm_reconnect_link" class="frm-show-authorized frm-font-semibold" data-refresh="1"> |
| @@ -139,8 +140,9 @@ | ||
| 139 | 140 | <?php esc_html_e( 'Check now for a recent upgrade or renewal', 'formidable' ); ?> |
| 140 | 141 | </a> |
| 141 | 142 | </p> |
| 142 | 143 | <?php |
| 144 | + // phpcs:enable Generic.WhiteSpace.ScopeIndent | |
| 143 | 145 | } |
| 144 | 146 | |
| 145 | 147 | /** |
| 146 | 148 | * Get the icon for a specific addon. |
| @@ -175,8 +177,9 @@ | ||
| 175 | 177 | 'twilio' => 'twilio', |
| 176 | 178 | 'woocommerce' => 'woocommerce', |
| 177 | 179 | 'zapier' => 'zapier', |
| 178 | 180 | 'convertkit' => 'convertkit', |
| 181 | + 'n8n' => 'n8n', | |
| 179 | 182 | ); |
| 180 | 183 | |
| 181 | 184 | $icon = array_key_exists( $slug, $icons_map ) ? 'frm_' . $icons_map[ $slug ] . '_icon' : 'frm_logo_icon'; |
| 182 | 185 | |
| @@ -228,9 +231,9 @@ | ||
| 228 | 231 | * |
| 229 | 232 | * @return string |
| 230 | 233 | */ |
| 231 | 234 | private static function prepare_single_addon_classes( $addon ) { |
| 232 | - $class_names = array( 'frm-card-item frm-flex-col' ); | |
| 235 | + $class_names = array( 'frm-card-item frm-card-item--outlined frm-flex-col' ); | |
| 233 | 236 | $class_names[] = 'plugin-card-' . $addon['slug']; |
| 234 | 237 | $class_names[] = 'frm-addon-' . $addon['status']['type']; |
| 235 | 238 | |
| 236 | 239 | if ( self::is_locked() ) { |
| @@ -286,18 +289,19 @@ | ||
| 286 | 289 | * |
| 287 | 290 | * @return void |
| 288 | 291 | */ |
| 289 | 292 | public static function show_five_star_rating( $color = 'black' ) { |
| 290 | - $icon = file_get_contents( FrmAppHelper::plugin_path() . '/images/star.svg' ); | |
| 293 | + // phpcs:disable Generic.WhiteSpace.ScopeIndent | |
| 291 | 294 | ?> |
| 292 | 295 | <span style="color: <?php echo esc_attr( $color ); ?>;"> |
| 293 | 296 | <?php |
| 294 | 297 | for ( $i = 0; $i < 5; $i++ ) { |
| 295 | - echo $icon; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 298 | + readfile( FrmAppHelper::plugin_path() . '/images/star.svg' ); | |
| 296 | 299 | } |
| 297 | 300 | ?> |
| 298 | 301 | </span> |
| 299 | 302 | <?php |
| 303 | + // phpcs:enable Generic.WhiteSpace.ScopeIndent | |
| 300 | 304 | } |
| 301 | 305 | |
| 302 | 306 | /** |
| 303 | 307 | * Shows the guarantee icon. |
| @@ -306,11 +310,13 @@ | ||
| 306 | 310 | * |
| 307 | 311 | * @return void |
| 308 | 312 | */ |
| 309 | 313 | public static function guarantee_icon() { |
| 314 | + // phpcs:disable Generic.WhiteSpace.ScopeIndent | |
| 310 | 315 | ?> |
| 311 | 316 | <img src="<?php echo esc_url( FrmAppHelper::plugin_url() . '/images/guarantee.svg' ); ?>" alt="" /> |
| 312 | 317 | <?php |
| 318 | + // phpcs:enable Generic.WhiteSpace.ScopeIndent | |
| 313 | 319 | } |
| 314 | 320 | |
| 315 | 321 | /** |
| 316 | 322 | * Gets reviews text. |