| 1 |
<?php |
| 2 |
/** |
| 3 |
* Free vs Pro screen. |
| 4 |
* |
| 5 |
* @package GutSliderBlocks |
| 6 |
* |
| 7 |
* @var array $blocks Decorated block definitions. |
| 8 |
* @var string $current Current page slug. |
| 9 |
* @var bool $has_pro Whether the Pro plugin is active. |
| 10 |
*/ |
| 11 |
|
| 12 |
if ( ! defined( 'ABSPATH' ) ) { |
| 13 |
exit; |
| 14 |
} |
| 15 |
|
| 16 |
$gs_free_total = 0; |
| 17 |
$gs_pro_total = 0; |
| 18 |
|
| 19 |
foreach ( $blocks as $gs_block ) { |
| 20 |
if ( ! empty( $gs_block['is_pro'] ) ) { |
| 21 |
++$gs_pro_total; |
| 22 |
} else { |
| 23 |
++$gs_free_total; |
| 24 |
} |
| 25 |
} |
| 26 |
|
| 27 |
require GUTSLIDER_DIR . '/admin/views/header.php'; |
| 28 |
?> |
| 29 |
|
| 30 |
<div class="gs-shell gs-stack"> |
| 31 |
<?php require GUTSLIDER_DIR . '/admin/views/compare.php'; ?> |
| 32 |
</div> |
| 33 |
|
| 34 |
<?php |
| 35 |
require GUTSLIDER_DIR . '/admin/views/footer.php'; |
| 36 |
|