| @@ -16,13 +16,16 @@ | ||
| 16 | 16 | <?php |
| 17 | 17 | if ( $is_active_style ) { |
| 18 | 18 | FrmAppHelper::icon_by_class( 'frmfont frm_checkmark_circle_icon' ); |
| 19 | 19 | } |
| 20 | + | |
| 20 | 21 | if ( ! empty( $is_locked ) ) { |
| 21 | 22 | FrmAppHelper::icon_by_class( 'frmfont frm_lock_icon' ); |
| 22 | 23 | } |
| 23 | 24 | ?> |
| 24 | - <?php // The rename option uses the text content of .frm-style-card-title so don't leave any additional whitespace here. ?> | |
| 25 | + <?php | |
| 26 | + // The rename option uses the text content of .frm-style-card-title so don't leave any additional whitespace here. | |
| 27 | + ?> | |
| 25 | 28 | <span class="frm-style-card-title"><?php echo esc_html( $style->post_title ); ?></span> |
| 26 | 29 | <?php if ( $include_info ) { ?> |
| 27 | 30 | <span class="frm-style-card-info"> |
| 28 | 31 | <?php |
| @@ -31,9 +34,9 @@ | ||
| 31 | 34 | ?> |
| 32 | 35 | </span> |
| 33 | 36 | <?php } ?> |
| 34 | 37 | <?php if ( ! empty( $is_new_template ) ) { ?> |
| 35 | - <span class="frm-new-pill"><?php esc_html_e( 'NEW', 'formidable' ); ?></span> | |
| 38 | + <span class="frm-meta-tag frm-new-pill"><?php esc_html_e( 'NEW', 'formidable' ); ?></span> | |
| 36 | 39 | <?php } ?> |
| 37 | 40 | </div> |
| 38 | 41 | <div class="frm-style-card-preview"> |
| 39 | 42 | <div class="frm-color-blocks"> |
| @@ -43,10 +46,11 @@ | ||
| 43 | 46 | 'text-color' => $style->post_content['text_color'], |
| 44 | 47 | 'submit-bg-color' => $style->post_content['submit_bg_color'], |
| 45 | 48 | ); |
| 46 | 49 | $index = 0; |
| 50 | + | |
| 47 | 51 | foreach ( $colors as $css_var_name => $color ) { |
| 48 | - if ( 0 !== strpos( $color, 'rgb' ) ) { | |
| 52 | + if ( ! str_starts_with( $color, 'rgb' ) ) { | |
| 49 | 53 | $color = '#' . $color; |
| 50 | 54 | } |
| 51 | 55 | |
| 52 | 56 | $circle_params = array( |