@@ -321,13 +321,13 @@ discard block |
||
| 321 | 321 | if ( $form_id ) { |
| 322 | 322 | self::get_columns_for_form( $form_id, $columns ); |
| 323 | 323 | } else { |
| 324 | - $columns[ $form_id . '_form_id' ] = esc_html__( 'Form', 'formidable' ); |
|
| 325 | - $columns[ $form_id . '_name' ] = esc_html__( 'Name', 'formidable' ); |
|
| 326 | - $columns[ $form_id . '_user_id' ] = esc_html__( 'Author', 'formidable' ); |
|
| 324 | + $columns[$form_id . '_form_id'] = esc_html__( 'Form', 'formidable' ); |
|
| 325 | + $columns[$form_id . '_name'] = esc_html__( 'Name', 'formidable' ); |
|
| 326 | + $columns[$form_id . '_user_id'] = esc_html__( 'Author', 'formidable' ); |
|
| 327 | 327 | } |
| 328 | 328 | |
| 329 | - $columns[ $form_id . '_created_at' ] = esc_html__( 'Created on', 'formidable' ); |
|
| 330 | - $columns[ $form_id . '_updated_at' ] = esc_html__( 'Updated on', 'formidable' ); |
|
| 329 | + $columns[$form_id . '_created_at'] = esc_html__( 'Created on', 'formidable' ); |
|
| 330 | + $columns[$form_id . '_updated_at'] = esc_html__( 'Updated on', 'formidable' ); |
|
| 331 | 331 | |
| 332 | 332 | return $columns; |
| 333 | 333 | |
@@ -339,8 +339,8 @@ discard block |
||
| 339 | 339 | * @return boolean |
| 340 | 340 | */ |
| 341 | 341 | public static function welcome_banner_has_closed() { |
| 342 | - if ( isset( $_COOKIE[ self::$banner_closed_cookie_name ] ) ) { |
|
| 343 | - list( $cookie_value, $expiration_time ) = explode( '|', sanitize_text_field( wp_unslash( $_COOKIE[ self::$banner_closed_cookie_name ] ) ) ); |
|
| 342 | + if ( isset( $_COOKIE[self::$banner_closed_cookie_name] ) ) { |
|
| 343 | + list( $cookie_value, $expiration_time ) = explode( '|', sanitize_text_field( wp_unslash( $_COOKIE[self::$banner_closed_cookie_name] ) ) ); |
|
| 344 | 344 | if ( 1 === (int) $cookie_value ) { |
| 345 | 345 | // Refresh welcome banner cookie if it will expire in less 45 days. |
| 346 | 346 | if ( (int) $expiration_time < time() + ( 45 * 24 * 60 * 60 ) ) { |
@@ -15,20 +15,26 @@ |
||
| 15 | 15 | <h4><?php echo esc_html( $counter['heading'] ); ?></h4> |
| 16 | 16 | <?php if ( isset( $counter['cta'] ) && isset( $counter['cta']['display'] ) && true === $counter['cta']['display'] ) : ?> |
| 17 | 17 | <a href="<?php echo esc_url( $counter['cta']['link'] ); ?>"><?php echo esc_attr( $counter['cta']['title'] ); ?></a> |
| 18 | - <?php else : ?> |
|
| 18 | + <?php else { |
|
| 19 | + : ?> |
|
| 19 | 20 | <?php if ( 'currency' === $counter['type'] ) : ?> |
| 20 | 21 | <div class="frm-flex-box frm-gap-md"> |
| 21 | 22 | <?php foreach ( $counter['items'] as $item ) : ?> |
| 22 | 23 | <b> |
| 23 | - <?php echo esc_attr( $item['counter_label']['symbol_left'] ); ?> |
|
| 24 | + <?php echo esc_attr( $item['counter_label']['symbol_left'] ); |
|
| 25 | +} |
|
| 26 | +?> |
|
| 24 | 27 | <span class="frm-counter" data-type="<?php echo esc_attr( $counter['type'] ); ?>" data-locale="<?php echo esc_attr( get_locale() ); ?>" data-counter="<?php echo (int) $item['counter']; ?>"><?php echo (int) $item['counter']; ?></span> |
| 25 | 28 | <?php echo esc_attr( $item['counter_label']['symbol_right'] ); ?> |
| 26 | 29 | </b> |
| 27 | 30 | <?php endforeach; ?> |
| 28 | 31 | </div> |
| 29 | - <?php else : ?> |
|
| 32 | + <?php else { |
|
| 33 | + : ?> |
|
| 30 | 34 | <b> |
| 31 | - <span class="frm-counter" data-type="<?php echo esc_attr( $counter['type'] ); ?>" data-locale="<?php echo esc_attr( get_locale() ); ?>" data-counter="<?php echo (int) $counter['counter']; ?>"><?php echo (int) $counter['counter']; ?></span> |
|
| 35 | + <span class="frm-counter" data-type="<?php echo esc_attr( $counter['type'] ); |
|
| 36 | +} |
|
| 37 | +?>" data-locale="<?php echo esc_attr( get_locale() ); ?>" data-counter="<?php echo (int) $counter['counter']; ?>"><?php echo (int) $counter['counter']; ?></span> |
|
| 32 | 38 | </b> |
| 33 | 39 | <?php endif; ?> |
| 34 | 40 | <?php endif; ?> |