# slider-blocks/3.2.0/admin/views/compare-page.php

GutSlider – All in One Slider and Carousel Blocks for Gutenberg, version 3.2.0. 36 lines.

- Page: https://pluginprobe.com/plugins/slider-blocks/3.2.0/code/admin/views/compare-page.php
- Raw: https://pluginprobe.com/plugins/slider-blocks/3.2.0/raw/admin/views/compare-page.php
- Modified: 2026-09-29T11:58:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/slider-blocks/3.2.0/code/admin/views/compare-page.php#L10-L20`.

```php
<?php
/**
 * Free vs Pro screen.
 *
 * @package GutSliderBlocks
 *
 * @var array  $blocks  Decorated block definitions.
 * @var string $current Current page slug.
 * @var bool   $has_pro Whether the Pro plugin is active.
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$gs_free_total = 0;
$gs_pro_total  = 0;

foreach ( $blocks as $gs_block ) {
	if ( ! empty( $gs_block['is_pro'] ) ) {
		++$gs_pro_total;
	} else {
		++$gs_free_total;
	}
}

require GUTSLIDER_DIR . '/admin/views/header.php';
?>

<div class="gs-shell gs-stack">
	<?php require GUTSLIDER_DIR . '/admin/views/compare.php'; ?>
</div>

<?php
require GUTSLIDER_DIR . '/admin/views/footer.php';

```
