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,223 @@
<?php
/**
* Calls in content using theme hooks.
*
* @package kadence
*/
namespace Kadence;
use function get_template_part;
defined( 'ABSPATH' ) || exit;
/**
* Archive Content
*/
function archive_markup() {
get_template_part( 'template-parts/content/archive', get_post_type() );
}
/**
* Get Archive header classes.
*
* @return array $classes for the archive header.
*/
function get_archive_hero_classes() {
$slug = get_archive_post_type_slug();
$classes = [];
$classes[] = 'entry-hero';
$classes[] = $slug . '-archive-hero-section';
$classes[] = 'entry-hero-layout-' . ( kadence()->option( $slug . '_archive_title_inner_layout' ) ? kadence()->option( $slug . '_archive_title_inner_layout' ) : 'inherit' );
return apply_filters( 'kadence_archive_hero_classes', $classes );
}
/**
* Get Archive post type slug.
*
* @return string $slug for the archive header.
*/
function get_archive_post_type_slug() {
if ( is_search() ) {
if ( is_post_type_archive( 'product' ) ) {
$slug = 'product';
} else {
$slug = 'search';
}
} else {
$slug = get_post_type();
}
if ( empty( $slug ) ) {
$queried_object = get_queried_object();
if ( is_object( $queried_object ) && property_exists( $queried_object, 'taxonomy' ) ) {
$current_tax = get_taxonomy( $queried_object->taxonomy );
if ( property_exists( $current_tax, 'object_type' ) ) {
$post_types = $current_tax->object_type;
$slug = $post_types[0];
}
}
}
return apply_filters( 'kadence_archive_post_type_slug', $slug );
}
/**
* Get Archive header classes.
*
* @return array $classes for the archive header.
*/
function get_archive_title_classes() {
$slug = get_archive_post_type_slug();
$classes = [];
$classes[] = 'entry-header';
$classes[] = $slug . '-archive-title';
$classes[] = 'title-align-' . ( kadence()->sub_option( $slug . '_archive_title_align', 'desktop' ) ? kadence()->sub_option( $slug . '_archive_title_align', 'desktop' ) : 'inherit' );
$classes[] = 'title-tablet-align-' . ( kadence()->sub_option( $slug . '_archive_title_align', 'tablet' ) ? kadence()->sub_option( $slug . '_archive_title_align', 'tablet' ) : 'inherit' );
$classes[] = 'title-mobile-align-' . ( kadence()->sub_option( $slug . '_archive_title_align', 'mobile' ) ? kadence()->sub_option( $slug . '_archive_title_align', 'mobile' ) : 'inherit' );
return apply_filters( 'kadence_archive_title_classes', $classes );
}
/**
* Get Archive container classes.
*
* @return array $classes for the archive container.
*/
function get_archive_container_classes() {
$classes = [];
$classes[] = 'content-wrap';
$classes[] = 'kadence-posts-list';
$classes[] = 'grid-cols';
if ( is_search() ) {
$classes[] = 'search-archive';
if ( '1' === kadence()->option( 'search_archive_columns' ) ) {
$placement = kadence()->option( 'search_archive_item_image_placement' );
$classes[] = 'grid-sm-col-1';
$classes[] = 'grid-lg-col-1';
$classes[] = 'item-image-style-' . $placement;
} elseif ( '2' === kadence()->option( 'search_archive_columns' ) ) {
$classes[] = 'grid-sm-col-2';
$classes[] = 'grid-lg-col-2';
$classes[] = 'item-image-style-above';
} elseif ( '4' === kadence()->option( 'search_archive_columns' ) ) {
$classes[] = 'grid-sm-col-2';
$classes[] = 'grid-lg-col-4';
$classes[] = 'item-image-style-above';
} else {
$classes[] = 'grid-sm-col-2';
$classes[] = 'grid-lg-col-3';
$classes[] = 'item-image-style-above';
}
} elseif ( 'post' === get_post_type() ) {
$classes[] = 'post-archive';
if ( '1' === kadence()->option( 'post_archive_columns' ) ) {
$placement = kadence()->option( 'post_archive_item_image_placement' );
if ( 'beside' === $placement ) {
$classes[] = 'item-content-vertical-align-' . kadence()->option( 'post_archive_item_vertical_alignment', 'top' );
$feature_element = kadence()->option( 'post_archive_element_feature' );
if ( empty( $feature_element['enabled'] ) || false === $feature_element['enabled'] ) {
return apply_filters( 'kadence_archive_container_classes', $classes );
}
}
$classes[] = 'grid-sm-col-1';
$classes[] = 'grid-lg-col-1';
$classes[] = 'item-image-style-' . $placement;
} elseif ( '2' === kadence()->option( 'post_archive_columns' ) ) {
$classes[] = 'grid-sm-col-2';
$classes[] = 'grid-lg-col-2';
$classes[] = 'item-image-style-above';
} elseif ( '4' === kadence()->option( 'post_archive_columns' ) ) {
$classes[] = 'grid-sm-col-2';
$classes[] = 'grid-lg-col-4';
$classes[] = 'item-image-style-above';
} else {
$classes[] = 'grid-sm-col-2';
$classes[] = 'grid-lg-col-3';
$classes[] = 'item-image-style-above';
}
} elseif ( kadence()->option( get_post_type() . '_archive_columns' ) ) {
$classes[] = get_post_type() . '-archive';
if ( '1' === kadence()->option( get_post_type() . '_archive_columns' ) ) {
$placement = kadence()->option( get_post_type() . '_archive_item_image_placement', 'above' );
$classes[] = 'grid-sm-col-1';
$classes[] = 'grid-lg-col-1';
$classes[] = 'item-image-style-' . $placement;
} elseif ( '2' === kadence()->option( get_post_type() . '_archive_columns' ) ) {
$classes[] = 'grid-sm-col-2';
$classes[] = 'grid-lg-col-2';
$classes[] = 'item-image-style-above';
} elseif ( '4' === kadence()->option( get_post_type() . '_archive_columns' ) ) {
$classes[] = 'grid-sm-col-2';
$classes[] = 'grid-lg-col-4';
$classes[] = 'item-image-style-above';
} else {
$classes[] = 'grid-sm-col-2';
$classes[] = 'grid-lg-col-3';
$classes[] = 'item-image-style-above';
}
} else {
$classes[] = 'post-archive';
$classes[] = 'grid-sm-col-2';
$classes[] = 'grid-lg-col-3';
}
return apply_filters( 'kadence_archive_container_classes', $classes );
}
/**
* Get Archive infinite attributes
*
* @return string $attributes for the archive container.
*/
function get_archive_infinite_attributes() {
$attributes = '';
return apply_filters( 'kadence_archive_infinite_attributes', $attributes );
}
/**
* Get loop entry template.
*/
function loop_entry() {
get_template_part( 'template-parts/content/entry', get_post_type() );
}
/**
* Get loop entry thumbnail template.
*/
function loop_entry_thumbnail() {
get_template_part( 'template-parts/content/entry_loop_thumbnail', get_post_type() );
}
/**
* Get loop entry header template.
*/
function loop_entry_header() {
get_template_part( 'template-parts/content/entry_loop_header', get_post_type() );
}
/**
* Get loop entry content template.
*/
function loop_entry_summary() {
get_template_part( 'template-parts/content/entry_summary', get_post_type() );
}
/**
* Get loop entry footer template.
*/
function loop_entry_footer() {
get_template_part( 'template-parts/content/entry_loop_footer', get_post_type() );
}
/**
* Get loop entry taxonomies template.
*/
function loop_entry_taxonomies() {
get_template_part( 'template-parts/content/entry_loop_taxonomies', get_post_type() );
}
/**
* Get loop entry title template.
*/
function loop_entry_title() {
get_template_part( 'template-parts/content/entry_loop_title', get_post_type() );
}
/**
* Get loop entry meta template.
*/
function loop_entry_meta() {
get_template_part( 'template-parts/content/entry_loop_meta', get_post_type() );
}

View File

@@ -0,0 +1,182 @@
<?php
/**
* Calls in Templates using theme hooks.
*
* @package kadence
*/
namespace Kadence;
use function Kadence\kadence;
use function get_template_part;
defined( 'ABSPATH' ) || exit;
/**
* Main Call for Kadence footer
*/
function footer_markup() {
if ( kadence()->has_footer() ) {
get_template_part( 'template-parts/footer/base' );
}
}
/**
* Footer Top Row
*/
function top_footer() {
if ( kadence()->display_footer_row( 'top' ) ) {
kadence()->get_template( 'template-parts/footer/footer', 'row', [ 'row' => 'top' ] );
}
}
/**
* Footer Middle Row
*/
function middle_footer() {
if ( kadence()->display_footer_row( 'middle' ) ) {
kadence()->get_template( 'template-parts/footer/footer', 'row', [ 'row' => 'middle' ] );
}
}
/**
* Footer Bottom Row
*/
function bottom_footer() {
if ( kadence()->display_footer_row( 'bottom' ) ) {
kadence()->get_template( 'template-parts/footer/footer', 'row', [ 'row' => 'bottom' ] );
}
}
/**
* Footer Column
*
* @param string $row the column row.
* @param string $column the row column.
*/
function footer_column( $row, $column ) {
kadence()->render_footer( $row, $column );
}
/**
* Footer HTML
*/
function footer_html() {
$content = kadence()->option( 'footer_html_content' );
if ( $content || is_customize_preview() ) {
$link_style = kadence()->option( 'footer_html_link_style' );
echo '<div class="footer-html inner-link-style-' . esc_attr( $link_style ) . '">';
kadence()->customizer_quick_link();
echo '<div class="footer-html-inner">';
$content = str_replace( '{copyright}', '&copy;', $content );
$content = str_replace( '{year}', date_i18n( 'Y' ), $content );
$content = str_replace( '{site-title}', get_bloginfo( 'name' ), $content );
// translators: %s is link to Kadence WP.
$content = str_replace( '{theme-credit}', sprintf( __( '- WordPress Theme by %s', 'kadence' ), '<a href="https://www.kadencewp.com/" rel="nofollow noopener">Kadence WP</a>' ), $content );
echo do_shortcode( wpautop( $content ) );
echo '</div>';
echo '</div>';
}
}
/**
* Desktop Navigation
*/
function footer_navigation() {
?>
<nav id="footer-navigation" class="footer-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Footer', 'kadence' ); ?>">
<?php kadence()->customizer_quick_link(); ?>
<div class="footer-menu-container">
<?php
if ( kadence()->is_footer_nav_menu_active() ) {
kadence()->display_footer_nav_menu( [ 'menu_id' => 'footer-menu' ] );
} else {
kadence()->display_fallback_menu();
}
?>
</div>
</nav><!-- #footer-navigation -->
<?php
}
/**
* Desktop Social
*/
function footer_social() {
$items = kadence()->sub_option( 'footer_social_items', 'items' );
$title = kadence()->option( 'footer_social_title' );
$show_label = kadence()->option( 'footer_social_show_label' );
$brand_colors = kadence()->option( 'footer_social_brand' );
$social_links_open_new_tab = kadence()->option( 'social_links_open_new_tab' );
$brand_color_class = '';
if ( 'onhover' === $brand_colors ) {
$brand_color_class = ' social-show-brand-hover';
} elseif ( 'untilhover' === $brand_colors ) {
$brand_color_class = ' social-show-brand-until';
} elseif ( 'always' === $brand_colors ) {
$brand_color_class = ' social-show-brand-always';
}
echo '<div class="footer-social-wrap">';
kadence()->customizer_quick_link();
if ( ! empty( $title ) ) {
echo '<h2 class="widget-title">' . wp_kses_post( $title ) . '</h2>';
}
echo '<div class="footer-social-inner-wrap element-social-inner-wrap social-show-label-' . ( $show_label ? 'true' : 'false' ) . ' social-style-' . esc_attr( kadence()->option( 'footer_social_style' ) ) . esc_attr( $brand_color_class ) . '">';
if ( is_array( $items ) && ! empty( $items ) ) {
foreach ( $items as $item ) {
if ( $item['enabled'] ) {
$link = kadence()->option( $item['id'] . '_link' );
if ( 'phone' === $item['id'] ) {
$link = 'tel:' . str_replace( 'tel:', '', $link );
} elseif ( 'email' === $item['id'] ) {
$link = str_replace( 'mailto:', '', $link );
if ( is_email( $link ) ) {
$link = 'mailto:' . $link;
}
}
echo '<a href="' . esc_url( $link ) . '"' . ( $show_label ? '' : ' aria-label="' . esc_attr( $item['label'] ) . '"' ) . ' ' . ( 'phone' === $item['id'] || 'email' === $item['id'] || apply_filters( 'kadence_social_link_target', false, $item ) ? '' : 'target="' . esc_attr( $social_links_open_new_tab ? '_blank' : '_self' ) . '" rel="noopener noreferrer" ' ) . 'class="social-button footer-social-item social-link-' . esc_attr( $item['id'] ) . esc_attr( 'image' === $item['source'] ? ' has-custom-image' : '' ) . '">';
if ( 'image' === $item['source'] ) {
if ( $item['imageid'] && wp_get_attachment_image( $item['imageid'], 'full', true ) ) {
echo wp_get_attachment_image(
$item['imageid'],
'full',
true,
[
'class' => 'social-icon-image',
'style' => 'max-width:' . esc_attr( $item['width'] ) . 'px',
]
);
} elseif ( ! empty( $item['url'] ) ) {
echo '<img src="' . esc_attr( $item['url'] ) . '" alt="' . esc_attr( $item['label'] ) . '" class="social-icon-image" style="max-width:' . esc_attr( $item['width'] ) . 'px"/>';
}
} elseif ( 'svg' === $item['source'] ) {
if ( ! empty( $item['svg'] ) ) {
echo '<span class="social-icon-custom-svg" style="max-width:' . esc_attr( $item['width'] ) . 'px">' . $item['svg'] . '</span>';
}
} else {
kadence()->print_icon( $item['icon'], '', false );
}
if ( $show_label ) {
echo '<span class="social-label">' . esc_html( $item['label'] ) . '</span>';
}
echo '</a>';
}
}
}
echo '</div>';
echo '</div>';
}
/**
* Scroll To Top.
*/
function scroll_up() {
if ( kadence()->option( 'scroll_up' ) ) {
echo '<a id="kt-scroll-up" tabindex="-1" aria-hidden="true" aria-label="' . esc_attr__( 'Scroll to top', 'kadence' ) . '" href="#wrapper" class="kadence-scroll-to-top scroll-up-wrap scroll-ignore scroll-up-side-' . esc_attr( kadence()->option( 'scroll_up_side' ) ) . ' scroll-up-style-' . esc_attr( kadence()->option( 'scroll_up_style' ) ) . ' vs-lg-' . ( kadence()->sub_option( 'scroll_up_visiblity', 'desktop' ) ? 'true' : 'false' ) . ' vs-md-' . ( kadence()->sub_option( 'scroll_up_visiblity', 'tablet' ) ? 'true' : 'false' ) . ' vs-sm-' . ( kadence()->sub_option( 'scroll_up_visiblity', 'mobile' ) ? 'true' : 'false' ) . '">';
kadence()->print_icon( kadence()->option( 'scroll_up_icon' ), esc_attr__( 'Scroll to top', 'kadence' ), false );
echo '</a>';
echo '<button id="kt-scroll-up-reader" href="#wrapper" aria-label="' . esc_attr__( 'Scroll to top', 'kadence' ) . '" class="kadence-scroll-to-top scroll-up-wrap scroll-ignore scroll-up-side-' . esc_attr( kadence()->option( 'scroll_up_side' ) ) . ' scroll-up-style-' . esc_attr( kadence()->option( 'scroll_up_style' ) ) . ' vs-lg-' . ( kadence()->sub_option( 'scroll_up_visiblity', 'desktop' ) ? 'true' : 'false' ) . ' vs-md-' . ( kadence()->sub_option( 'scroll_up_visiblity', 'tablet' ) ? 'true' : 'false' ) . ' vs-sm-' . ( kadence()->sub_option( 'scroll_up_visiblity', 'mobile' ) ? 'true' : 'false' ) . '">';
kadence()->print_icon( kadence()->option( 'scroll_up_icon' ), esc_attr__( 'Scroll to top', 'kadence' ), false );
echo '</button>';
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,187 @@
<?php
/**
* Calls in content using theme hooks.
*
* @package kadence
*/
namespace Kadence;
use function get_template_part;
use function get_the_categories;
use function comment_form;
defined( 'ABSPATH' ) || exit;
/**
* Single Content
*/
function single_markup() {
get_template_part( 'template-parts/content/single', get_post_type() );
}
/**
* Single Inner content.
*/
function single_content() {
get_template_part( 'template-parts/content/single-entry', get_post_type() );
}
/**
* Get the related posts args.
*
* @param number $post_id the post id.
* @return array query args.
*/
function get_related_posts_args( $post_id ) {
$orderby = kadence()->option( 'post_related_orderby' ) ?: 'rand';
$order = kadence()->option( 'post_related_order' ) ?: 'DESC';
if ( apply_filters( 'kadence_related_posts_use_tags', true ) ) {
// Get categories.
$categories = get_the_terms( $post_id, 'category' );
if ( empty( $categories ) || is_wp_error( $categories ) ) {
$categories = array();
}
$category_list = wp_list_pluck( $categories, 'slug' );
// Get Tags.
$tags = get_the_terms( $post_id, 'post_tag' );
if ( empty( $tags ) || is_wp_error( $tags ) ) {
$tags = array();
}
$tag_list = wp_list_pluck( $tags, 'slug' );
$related_args = array(
'post_type' => 'post',
'posts_per_page' => 6,
'no_found_rows' => true,
'post_status' => 'publish',
// 'update_post_meta_cache' => false,
// 'update_post_term_cache' => false,
'post__not_in' => array( $post_id ),
'orderby' => $orderby,
'order' => $order,
'tax_query' => array(
'relation' => 'OR',
array(
'taxonomy' => 'category',
'field' => 'slug',
'terms' => $category_list,
),
array(
'taxonomy' => 'post_tag',
'field' => 'slug',
'terms' => $tag_list,
),
),
);
} else {
$categories = get_the_terms( $post_id, 'category' );
if ( empty( $categories ) || is_wp_error( $categories ) ) {
$categories = array();
}
$category_list = wp_list_pluck( $categories, 'term_id' );
$related_args = array(
'post_type' => 'post',
'posts_per_page' => 6,
'no_found_rows' => true,
'post_status' => 'publish',
// 'update_post_meta_cache' => false,
// 'update_post_term_cache' => false,
'post__not_in' => array( $post_id ),
'orderby' => $orderby,
'order' => $order,
'category__in' => $category_list,
);
}
return apply_filters( 'kadence_related_posts_args', $related_args );
}
/**
* Get the related posts args.
*
* @return array column args.
*/
function get_related_posts_columns() {
if ( kadence()->option( 'post_related_columns' ) ) {
if ( kadence()->option( 'post_related_columns' ) == 2 ) {
$cols = array(
'xxl' => 2,
'xl' => 2,
'md' => 2,
'sm' => 2,
'xs' => 2,
'ss' => 1,
);
} else if ( kadence()->option( 'post_related_columns' ) == 4 ) {
$cols = array(
'xxl' => 4,
'xl' => 4,
'md' => 4,
'sm' => 3,
'xs' => 2,
'ss' => 2,
);
} else {
$cols = array(
'xxl' => 3,
'xl' => 3,
'md' => 3,
'sm' => 2,
'xs' => 2,
'ss' => 1,
);
}
} else if ( kadence()->has_sidebar() ) {
$cols = array(
'xxl' => 2,
'xl' => 2,
'md' => 2,
'sm' => 2,
'xs' => 2,
'ss' => 1,
);
} else {
$cols = array(
'xxl' => 3,
'xl' => 3,
'md' => 3,
'sm' => 2,
'xs' => 2,
'ss' => 1,
);
}
return apply_filters( 'kadence_related_posts_carousel_columns', $cols );
}
/**
* Related Posts title
*/
function related_posts_title() {
$label = kadence()->option( 'post_related_title' );
if ( $label ) {
echo esc_html( do_shortcode( $label ) );
}
}
/**
* Comment List
*/
function comments_list() {
get_template_part( 'template-parts/content/comments-list' );
}
/**
* Comment Form
*/
function comments_form() {
comment_form();
}
/**
* 404 Content.
*/
function get_404_content() {
get_template_part( 'template-parts/content/error', '404' );
}

View File

@@ -0,0 +1,44 @@
<?php
/**
* Calls in content using theme hooks.
*
* @package kadence
*/
namespace Kadence;
use function Kadence\kadence;
use function get_template_part;
defined( 'ABSPATH' ) || exit;
/**
* Hero Title
*/
function hero_title() {
if ( kadence()->show_hero_title() ) {
if ( is_singular( get_post_type() ) ) {
get_template_part( 'template-parts/content/entry_hero' );
} else {
get_template_part( 'template-parts/content/archive_hero' );
}
}
}
/**
* Page Title area
*
* @param string $item_type the single post type.
* @param string $area the title area.
*/
function kadence_entry_header( $item_type = 'post', $area = 'normal' ) {
kadence()->render_title( $item_type, $area );
}
/**
* Archive Title area
*
* @param string $item_type the single post type.
* @param string $area the title area.
*/
function kadence_entry_archive_header( $item_type = 'post_archive', $area = 'normal' ) {
kadence()->render_archive_title( $item_type, $area );
}