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,43 @@
|
||||
<?php
|
||||
/**
|
||||
* The blank customize control extends the WP_Customize_Control class.
|
||||
*
|
||||
* @package customizer-controls
|
||||
*/
|
||||
|
||||
if ( ! class_exists( 'WP_Customize_Control' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Class Kadence_Control_Blank
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
class Kadence_Control_Blank extends WP_Customize_Control {
|
||||
/**
|
||||
* Control type
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'kadence_blank_control';
|
||||
|
||||
/**
|
||||
* Render the control in the customizer
|
||||
*/
|
||||
public function render_content() {
|
||||
if ( ! empty( $this->label ) ) :
|
||||
?>
|
||||
<span class="customize-control-title"><?php echo $this->label; // phpcs:ignore ?></span>
|
||||
<?php
|
||||
endif;
|
||||
if ( ! empty( $this->description ) ) :
|
||||
?>
|
||||
<span class="customize-control-description"><?php echo $this->description; // phpcs:ignore ?></span>
|
||||
<?php
|
||||
endif;
|
||||
?>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/**
|
||||
* The Radio Icon customize control extends the WP_Customize_Control class.
|
||||
*
|
||||
* @package customizer-controls
|
||||
*/
|
||||
|
||||
if ( ! class_exists( 'WP_Customize_Control' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Class Kadence_Control_Import_Export
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
class Kadence_Control_Import_Export extends WP_Customize_Control {
|
||||
/**
|
||||
* Control type
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'kadence_import_export_control';
|
||||
/**
|
||||
* Empty Render Function to prevent errors.
|
||||
*/
|
||||
public function render_content() {
|
||||
?>
|
||||
<span class="customize-control-title">
|
||||
<?php esc_html_e( 'Export', 'kadence' ); ?>
|
||||
</span>
|
||||
<span class="description customize-control-description">
|
||||
<?php esc_html_e( 'Click the button below to export the customization settings for this theme.', 'kadence' ); ?>
|
||||
</span>
|
||||
<input type="button" class="button kadence-theme-export kadence-theme-button" name="kadence-theme-export-button" value="<?php esc_attr_e( 'Export', 'kadence' ); ?>" />
|
||||
|
||||
<hr class="kt-theme-hr" />
|
||||
|
||||
<span class="customize-control-title">
|
||||
<?php esc_html_e( 'Import', 'kadence' ); ?>
|
||||
</span>
|
||||
<span class="description customize-control-description">
|
||||
<?php esc_html_e( 'Upload a file to import customization settings for this theme.', 'kadence' ); ?>
|
||||
</span>
|
||||
<div class="kadence-theme-import-controls">
|
||||
<input type="file" name="kadence-theme-import-file" class="kadence-theme-import-file" />
|
||||
<?php wp_nonce_field( 'kadence-theme-importing', 'kadence-theme-import' ); ?>
|
||||
</div>
|
||||
<div class="kadence-theme-uploading"><?php esc_html_e( 'Uploading...', 'kadence' ); ?></div>
|
||||
<input type="button" class="button kadence-theme-import kadence-theme-button" name="kadence-theme-import-button" value="<?php esc_attr_e( 'Import', 'kadence' ); ?>" />
|
||||
|
||||
<hr class="kt-theme-hr" />
|
||||
<span class="customize-control-title">
|
||||
<?php esc_html_e( 'Reset', 'kadence' ); ?>
|
||||
</span>
|
||||
<span class="description customize-control-description">
|
||||
<?php esc_html_e( 'Click the button to reset all theme settings.', 'kadence' ); ?>
|
||||
</span>
|
||||
<input type="button" class="components-button is-destructive kadence-theme-reset kadence-theme-button" name="kadence-theme-reset-button" value="<?php esc_attr_e( 'Reset', 'kadence' ); ?>" />
|
||||
<?php
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
/**
|
||||
* The pro customize section extends the WP_Customize_Control class.
|
||||
*
|
||||
* @package kadence
|
||||
*/
|
||||
|
||||
if ( ! class_exists( 'WP_Customize_Section' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Class Kadence_Section_Pro
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
class Kadence_Section_Pro extends WP_Customize_Section {
|
||||
/**
|
||||
* Control type
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'kadence_section_pro';
|
||||
|
||||
/**
|
||||
* Link for pro version.
|
||||
*
|
||||
* @since 1.0.10
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $pro_link = '';
|
||||
/**
|
||||
* Gather the parameters passed to client JavaScript via JSON.
|
||||
*
|
||||
* @since 4.1.0
|
||||
*
|
||||
* @return array The array to be exported to the client as JSON.
|
||||
*/
|
||||
public function json() {
|
||||
$json = parent::json();
|
||||
$json['pro_link'] = esc_url_raw( $this->pro_link );
|
||||
return $json;
|
||||
}
|
||||
|
||||
/**
|
||||
* An Underscore (JS) template for rendering this section.
|
||||
*
|
||||
* Class variables for this section class are available in the `data` JS object;
|
||||
* export custom variables by overriding WP_Customize_Section::json().
|
||||
*
|
||||
* @since 4.3.0
|
||||
*
|
||||
* @see WP_Customize_Section::print_template()
|
||||
*/
|
||||
protected function render_template() {
|
||||
?>
|
||||
<li id="accordion-section-{{ data.id }}" class="accordion-section control-section cannon-expand control-section-{{ data.type }}">
|
||||
<h3 class="wp-ui-highlight">
|
||||
<a href="{{ data.pro_link }}" class="wp-ui-text-highlight" target="_blank" rel="noopener">{{ data.title }}</a>
|
||||
</h3>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user