<?php
/**
 * Games loop start.
 *
 * @var $attributes - block attributes
 *
 * @package cyberpress/templates
 */

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

// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound

$class = 'cyberpress-row';

if ( 0 !== $attributes['columns'] ) {
    $class .= ' cyberpress-row-' . $attributes['columns'];
}

if ( isset( $attributes['is_archive'] ) ) {
    $class .= ' cyberpress-games-archive';
}
?>
<ul class="<?php echo esc_attr( $class ); ?>">
