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
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?php declare( strict_types=1 );
|
||||
|
||||
namespace KadenceWP\KadenceBlocks\Optimizer\Skip_Rules\Rules;
|
||||
|
||||
use KadenceWP\KadenceBlocks\Optimizer\Skip_Rules\Skip_Rule;
|
||||
use KadenceWP\KadenceBlocks\StellarWP\SuperGlobals\SuperGlobals as SG;
|
||||
|
||||
final class Ignored_Query_Var_Rule implements Skip_Rule {
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
private array $query_vars;
|
||||
|
||||
/**
|
||||
* @filter kadence_blocks_optimizer_rule_skip_query_vars
|
||||
*
|
||||
* @param string[] $query_vars The query variable names.
|
||||
*/
|
||||
public function __construct( array $query_vars = [] ) {
|
||||
$this->query_vars = $query_vars;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function should_skip(): bool {
|
||||
foreach ( $this->query_vars as $query_var ) {
|
||||
if ( SG::get_get_var( $query_var ) !== null ) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php declare( strict_types=1 );
|
||||
|
||||
namespace KadenceWP\KadenceBlocks\Optimizer\Skip_Rules\Rules;
|
||||
|
||||
use KadenceWP\KadenceBlocks\Optimizer\Skip_Rules\Skip_Rule;
|
||||
|
||||
final class Logged_In_Rule implements Skip_Rule {
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function should_skip(): bool {
|
||||
return is_user_logged_in();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php declare( strict_types=1 );
|
||||
|
||||
namespace KadenceWP\KadenceBlocks\Optimizer\Skip_Rules\Rules;
|
||||
|
||||
use KadenceWP\KadenceBlocks\Optimizer\Skip_Rules\Skip_Rule;
|
||||
|
||||
final class Not_Found_Rule implements Skip_Rule {
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function should_skip(): bool {
|
||||
return is_404();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php declare( strict_types=1 );
|
||||
|
||||
namespace KadenceWP\KadenceBlocks\Optimizer\Skip_Rules\Rules;
|
||||
|
||||
use KadenceWP\KadenceBlocks\Optimizer\Request\Request;
|
||||
use KadenceWP\KadenceBlocks\Optimizer\Skip_Rules\Skip_Rule;
|
||||
|
||||
final class Optimizer_Request_Rule implements Skip_Rule {
|
||||
|
||||
private Request $request;
|
||||
|
||||
public function __construct( Request $request ) {
|
||||
$this->request = $request;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function should_skip(): bool {
|
||||
return $this->request->is_optimizer_request();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php declare( strict_types=1 );
|
||||
|
||||
namespace KadenceWP\KadenceBlocks\Optimizer\Skip_Rules\Rules;
|
||||
|
||||
use KadenceWP\KadenceBlocks\Optimizer\Skip_Rules\Skip_Rule;
|
||||
use KadenceWP\KadenceBlocks\Optimizer\Status\Status;
|
||||
use WP_Post;
|
||||
|
||||
/**
|
||||
* Skip Optimization if the post was excluded via the
|
||||
* Gutenberg plugins sidebar which stores to post meta.
|
||||
*/
|
||||
final class Post_Excluded_Rule implements Skip_Rule {
|
||||
|
||||
private Status $status;
|
||||
|
||||
public function __construct( Status $status ) {
|
||||
$this->status = $status;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function should_skip(): bool {
|
||||
$current_post = get_post();
|
||||
|
||||
if ( ! $current_post instanceof WP_Post ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $this->status->is_excluded( $current_post->ID );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user