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/FrmFormTemplatesHelper.php +4 -0 6.27 → trunk View file →
@@ -227,13 +227,15 @@
227 227 $args = array(
228 228 'direction' => 'vertical',
229 229 );
230 230
231 + // phpcs:disable Generic.WhiteSpace.ScopeIndent
231 232 ?>
232 233 <div class="frm-card-item frm-px-sm">
233 234 <?php require FrmAppHelper::plugin_path() . '/classes/views/shared/get-free-templates-banner.php'; ?>
234 235 </div>
235 236 <?php
237 + // phpcs:enable Generic.WhiteSpace.ScopeIndent
236 238 }
237 239
238 240 /**
239 241 * Checks if the get free templates banner should be displayed.
@@ -255,10 +257,12 @@
255 257 *
256 258 * @return bool
257 259 */
258 260 private static function needs_free_plan( $template ) {
261 + // phpcs:disable Generic.WhiteSpace.ScopeIndent
259 262 return self::needs_get_free_templates_banner()
260 263 && ! empty( $template['category_slugs'] )
261 264 && in_array( 'free', $template['category_slugs'], true )
262 265 && ! in_array( $template['id'], FrmFormTemplatesController::FREE_TEMPLATES_IDS, true );
266 + // phpcs:enable Generic.WhiteSpace.ScopeIndent
263 267 }
264 268 }