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:
Malin
2026-05-19 19:25:59 +02:00
commit f3ff7b7186
6119 changed files with 1984255 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
<?php declare( strict_types=1 );
namespace KadenceWP\KadenceBlocks\Database;
use KadenceWP\KadenceBlocks\Optimizer\Database\Optimizer_Table;
use KadenceWP\KadenceBlocks\Optimizer\Database\Viewport_Hash_Table;
use KadenceWP\KadenceBlocks\Psr\Log\LoggerInterface;
use KadenceWP\KadenceBlocks\StellarWP\DB\Database\Exceptions\DatabaseQueryException;
use KadenceWP\KadenceBlocks\StellarWP\DB\DB;
use KadenceWP\KadenceBlocks\StellarWP\ProphecyMonorepo\Container\Contracts\Provider;
use KadenceWP\KadenceBlocks\StellarWP\Schema\Config;
use KadenceWP\KadenceBlocks\StellarWP\Schema\Register;
final class Database_Provider extends Provider {
public const SCHEMA_TABLES = 'kadence_blocks.database.schema_tables';
/**
* Configure the stellarwp/schema library.
*
* @throws DatabaseQueryException If we failed to create or update the database tables.
*
* @return void
*/
public function register(): void {
Config::set_container( $this->container );
Config::set_db( DB::class );
// Add all schema tables to be registered here.
$this->container->setVar(
self::SCHEMA_TABLES,
[
Viewport_Hash_Table::class,
Optimizer_Table::class,
]
);
try {
Register::tables( $this->container->getVar( self::SCHEMA_TABLES ) );
} catch ( DatabaseQueryException $e ) {
$this->container->get( LoggerInterface::class )->emergency(
'Unable to create or update database tables',
[
'query_errors' => $e->getQueryErrors(),
'query' => $e->getQuery(),
'exception' => $e,
]
);
throw $e;
}
}
}

View File

@@ -0,0 +1,75 @@
<?php declare( strict_types=1 );
namespace KadenceWP\KadenceBlocks\Database;
use KadenceWP\KadenceBlocks\StellarWP\DB\DB;
use KadenceWP\KadenceBlocks\StellarWP\DB\QueryBuilder\QueryBuilder;
/**
* A query wrapper for the StellarWP DB instance using a specific
* table.
*
* This class should be extended and configured for a specific table
* via a Provider.
*/
abstract class Query {
/**
* The WordPress table name without a prefix.
*
* @var string
*/
protected string $table;
/**
* @param string $table The WordPress table name without a prefix.
*/
public function __construct( string $table ) {
$this->table = $table;
}
/**
* Get the current table being used.
*
* @return string
*/
public function table(): string {
return $this->table;
}
/**
* Get the table name with prefix.
*
* @return string
*/
public function table_with_prefix(): string {
global $wpdb;
return $wpdb->prefix . $this->table;
}
/**
* Get the query builder for this table.
*
* @return QueryBuilder
*/
public function qb(): QueryBuilder {
return DB::table( $this->table );
}
/**
* Wrapper for wpdb::get_var
*
* @see \wpdb::get_var()
*
* @param string|null $query Optional. SQL query. Defaults to null, use the result from the
* previous query.
* @param int $x Optional. Column of value to return. Indexed from 0. Default 0.
* @param int $y Optional. Row of value to return. Indexed from 0. Default 0.
*
* @return string|null
*/
public function get_var( ?string $query = null, int $x = 0, int $y = 0 ): ?string {
return DB::get_var( $query, $x, $y );
}
}