PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/helpers/FrmAddonsHelper.php +8 -3 6.27 → trunk View file →
@@ -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.
@@ -229,9 +231,9 @@
229 231 *
230 232 * @return string
231 233 */
232 234 private static function prepare_single_addon_classes( $addon ) {
233 - $class_names = array( 'frm-card-item frm-flex-col' );
235 + $class_names = array( 'frm-card-item frm-card-item--outlined frm-flex-col' );
234 236 $class_names[] = 'plugin-card-' . $addon['slug'];
235 237 $class_names[] = 'frm-addon-' . $addon['status']['type'];
236 238
237 239 if ( self::is_locked() ) {
@@ -287,18 +289,19 @@
287 289 *
288 290 * @return void
289 291 */
290 292 public static function show_five_star_rating( $color = 'black' ) {
291 - $icon = file_get_contents( FrmAppHelper::plugin_path() . '/images/star.svg' );
293 + // phpcs:disable Generic.WhiteSpace.ScopeIndent
292 294 ?>
293 295 <span style="color: <?php echo esc_attr( $color ); ?>;">
294 296 <?php
295 297 for ( $i = 0; $i < 5; $i++ ) {
296 - echo $icon; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
298 + readfile( FrmAppHelper::plugin_path() . '/images/star.svg' );
297 299 }
298 300 ?>
299 301 </span>
300 302 <?php
303 + // phpcs:enable Generic.WhiteSpace.ScopeIndent
301 304 }
302 305
303 306 /**
304 307 * Shows the guarantee icon.
@@ -307,11 +310,13 @@
307 310 *
308 311 * @return void
309 312 */
310 313 public static function guarantee_icon() {
314 + // phpcs:disable Generic.WhiteSpace.ScopeIndent
311 315 ?>
312 316 <img src="<?php echo esc_url( FrmAppHelper::plugin_url() . '/images/guarantee.svg' ); ?>" alt="" />
313 317 <?php
318 + // phpcs:enable Generic.WhiteSpace.ScopeIndent
314 319 }
315 320
316 321 /**
317 322 * Gets reviews text.