PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.18
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.18
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
formidable / classes / views / addons / categories.php

categories.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 6.18, at classes/views/addons/categories.php

39 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Add-Ons categories.
4 *
5 * @package Formidable
6 */
7
8 if ( ! defined( 'ABSPATH' ) ) {
9 die( 'You are not allowed to call this page directly.' );
10 }
11 ?>
12 <ul class="frm-page-skeleton-categories frm-flex-col frm-gap-xs" aria-label="<?php esc_attr_e( 'Categories', 'formidable' ); ?>">
13 <?php foreach ( $categories as $category_slug => $category_data ) { ?>
14 <?php
15 $classes = 'frm-page-skeleton-cat frm-flex-box frm-justify-between frm-font-medium';
16 $aria_label = sprintf(
17 // translators: %1$s: category name, %2$d: number of items in the category
18 esc_html__( '%1$s category, %2$d items', 'formidable' ),
19 esc_html( $category_data['name'] ),
20 esc_html( $category_data['count'] )
21 );
22
23 if ( 'all-items' === $category_slug || 'basic' === $category_slug ) {
24 echo '<li class="frm-page-skeleton-divider frm-mt-xs frm-mb-xs"></li>';
25 }
26 if ( 'all-items' === $category_slug ) {
27 $classes .= ' frm-current';
28 }
29 ?>
30
31 <li class="<?php echo esc_attr( $classes ); ?>" data-category="<?php echo esc_attr( $category_slug ); ?>" tabindex="0" aria-label="<?php echo esc_attr( $aria_label ); ?>">
32 <span class="frm-page-skeleton-cat-text"><?php echo esc_html( $category_data['name'] ); ?></span>
33 <span class="frm-page-skeleton-cat-count"><?php echo esc_html( $category_data['count'] ); ?></span>
34 </li>
35 <?php
36 }//end foreach
37 ?>
38 </ul>
39