Files
Malin f3ff7b7186 feat: initial ACRIB WordPress deployment
- WordPress 6.9.4 (es_ES) with Kadence theme
- Homepage: Hero, La Asociación, Pilares, Beneficios, Eventos, Miembros, Hazte Miembro, Contacto
- Brand identity: #13294b navy, #a12932 burgundy, #c69c48 gold
- Fonts: Raleway (headings) + Source Sans 3 (body) + Lato (UI)
- Plugins: Kadence Blocks, Polylang, Contact Form 7
- Custom CSS with full brand styling and responsive layout
- HTTPS enforced via wp-config.php proxy detection
2026-05-19 19:25:59 +02:00

48 lines
870 B
PHP

<?php declare( strict_types=1 );
namespace KadenceWP\KadenceBlocks\Optimizer\Enums;
/**
* A pseudo Viewport enum.
*/
final class Viewport {
public const DESKTOP = 'desktop';
public const MOBILE = 'mobile';
/**
* The view port.
*
* @var string
*/
private string $value;
private function __construct( string $value ) {
$this->value = $value;
}
public static function desktop(): self {
return new self( self::DESKTOP );
}
public static function mobile(): self {
return new self( self::MOBILE );
}
public static function current( bool $is_mobile ): self {
return $is_mobile ? self::mobile() : self::desktop();
}
public function value(): string {
return $this->value;
}
public function equals( self $other ): bool {
return $this->value === $other->value;
}
public function __toString(): string {
return $this->value;
}
}