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,40 @@
<?php
/**
* Entry Template for Posts Block.
*
* This template can be overridden by copying it to yourtheme/kadence-blocks/entry-loop-footer.php.
*
* @package Kadence Blocks
*/
defined( 'ABSPATH' ) || exit;
?>
<footer class="entry-footer">
<?php
$enabled = ( isset( $attributes ) && is_array( $attributes ) && isset( $attributes['readmore'] ) && ! $attributes['readmore'] ? false : true );
$label = ( isset( $attributes ) && is_array( $attributes ) && isset( $attributes['readmoreLabel'] ) && ! empty( $attributes['readmoreLabel'] ) ? $attributes['readmoreLabel'] : esc_html__( 'Read More', 'kadence-blocks' ) );
if ( $enabled ) {
?>
<div class="entry-actions">
<p class="more-link-wrap">
<a href="<?php the_permalink(); ?>" class="post-more-link">
<?php
echo esc_html( $label );
echo wp_kses(
'<span class="screen-reader-text"> ' . get_the_title() . '</span>',
array(
'span' => array(
'class' => array(),
),
)
);
kadence_blocks_print_icon( 'arrow-right-alt' );
?>
</a>
</p>
</div><!-- .entry-actions -->
<?php
}
?>
</footer><!-- .entry-footer -->

View File

@@ -0,0 +1,21 @@
<?php
/**
* Entry Template for Posts Block.
*
* This template can be overridden by copying it to yourtheme/kadence-blocks/entry-loop-header.php.
*
* @package Kadence Blocks
*/
defined( 'ABSPATH' ) || exit;
?>
<header class="entry-header">
<?php
if ( 'post' === get_post_type() ) {
kadence_blocks_get_template( 'entry-loop-taxonomies.php', array( 'attributes' => $attributes ) );
}
kadence_blocks_get_template( 'entry-loop-title.php', array( 'attributes' => $attributes ) );
kadence_blocks_get_template( 'entry-loop-meta.php', array( 'attributes' => $attributes ) );
?>
</header><!-- .entry-header -->

View File

@@ -0,0 +1,166 @@
<?php
/**
* Entry Template for Posts Block.
*
* This template can be overridden by copying it to yourtheme/kadence-blocks/entry-loop-taxonomies.php.
*
* @package Kadence Blocks
*/
defined( 'ABSPATH' ) || exit;
$enabled = ( isset( $attributes ) && is_array( $attributes ) && isset( $attributes['meta'] ) && ! $attributes['meta'] ? false : true );
$meta_divider = ( isset( $attributes ) && is_array( $attributes ) && isset( $attributes['metaDivider'] ) && ! empty( $attributes['metaDivider'] ) ? $attributes['metaDivider'] : 'dot' );
$author = ( isset( $attributes ) && is_array( $attributes ) && isset( $attributes['author'] ) && ! $attributes['author'] ? false : true );
$author_link = ( isset( $attributes ) && is_array( $attributes ) && isset( $attributes['authorLink'] ) && $attributes['authorLink'] ? true : false );
$author_image = ( isset( $attributes ) && is_array( $attributes ) && isset( $attributes['authorImage'] ) && $attributes['authorImage'] ? true : false );
$author_image_size = ( isset( $attributes ) && is_array( $attributes ) && isset( $attributes['authorImageSize'] ) && ! empty( $attributes['authorImageSize'] ) ? $attributes['authorImageSize'] : '25' );
$author_enable_label = ( isset( $attributes ) && is_array( $attributes ) && isset( $attributes['authorEnabledLabel'] ) && ! $attributes['authorEnabledLabel'] ? false : true );
$author_label = ( isset( $attributes ) && is_array( $attributes ) && isset( $attributes['authorLabel'] ) && ! empty( $attributes['authorLabel'] ) ? $attributes['authorLabel'] : __( 'By', 'kadence-blocks' ) );
$date = ( isset( $attributes ) && is_array( $attributes ) && isset( $attributes['date'] ) && ! $attributes['date'] ? false : true );
$date_enable_label = ( isset( $attributes ) && is_array( $attributes ) && isset( $attributes['dateEnabledLabel'] ) && $attributes['dateEnabledLabel'] ? true : false );
$date_label = ( isset( $attributes ) && is_array( $attributes ) && isset( $attributes['dateLabel'] ) && ! empty( $attributes['dateLabel'] ) ? $attributes['dateLabel'] : __( 'Posted on', 'kadence-blocks' ) );
$date_updated = ( isset( $attributes ) && is_array( $attributes ) && isset( $attributes['dateUpdated'] ) && $attributes['dateUpdated'] ? true : false );
$date_updated_enable_label = ( isset( $attributes ) && is_array( $attributes ) && isset( $attributes['dateUpdatedEnabledLabel'] ) && $attributes['dateUpdatedEnabledLabel'] ? true : false );
$date_updated_label = ( isset( $attributes ) && is_array( $attributes ) && isset( $attributes['dateUpdatedLabel'] ) && ! empty( $attributes['dateUpdatedLabel'] ) ? $attributes['dateUpdatedLabel'] : __( 'Updated on', 'kadence-blocks' ) );
$meta_categories = ( isset( $attributes ) && is_array( $attributes ) && isset( $attributes['metaCategories'] ) && $attributes['metaCategories'] ? true : false );
$meta_categories_enable_label = ( isset( $attributes ) && is_array( $attributes ) && isset( $attributes['categoriesEnabledLabel'] ) && $attributes['categoriesEnabledLabel'] ? true : false );
$meta_categories_label = ( isset( $attributes ) && is_array( $attributes ) && isset( $attributes['metaCategoriesLabel'] ) && ! empty( $attributes['metaCategoriesLabel'] ) ? $attributes['metaCategoriesLabel'] : __( 'Posted in', 'kadence-blocks' ) );
$meta_comments = ( isset( $attributes ) && is_array( $attributes ) && isset( $attributes['comments'] ) && $attributes['comments'] ? true : false );
if ( $enabled ) {
$post_type_obj = get_post_type_object( get_post_type() );
?>
<div class="entry-meta entry-meta-divider-<?php echo esc_attr( $meta_divider ); ?>">
<?php
do_action( 'kadence_before_loop_entry_meta' );
if ( $author ) {
$author_string = '';
// Show author only if the post type supports it.
if ( post_type_supports( $post_type_obj->name, 'author' ) ) {
$author_id = get_post_field( 'post_author', get_the_ID() );
if ( $author_link ) {
if ( get_the_author_meta( 'url', $author_id ) && apply_filters( 'kadence_author_use_profile_link', true ) ) {
$author_string = sprintf(
'<span class="author vcard"><a class="url fn n" href="%1$s">%2$s</a></span>',
esc_url( get_the_author_meta( 'url', $author_id ) ),
esc_html( get_the_author_meta( 'display_name', $author_id ) )
);
} else {
$author_string = sprintf(
'<span class="author vcard"><a class="url fn n" href="%1$s">%2$s</a></span>',
esc_url( get_author_posts_url( $author_id ) ),
esc_html( get_the_author_meta( 'display_name', $author_id ) )
);
}
} else {
$author_string = sprintf(
'<span class="author vcard"><span class="fn n">%1$s</span></span>',
esc_html( get_the_author_meta( 'display_name', $author_id ) )
);
}
}
if ( ! empty( $author_string ) ) {
$author_output = '<span class="posted-by">';
if ( $author_image ) {
$author_output .= '<span class="author-avatar"' . ( $author_image_size && 25 !== $author_image_size ? ' style="width:' . esc_attr( $author_image_size ) . 'px; height:' . esc_attr( $author_image_size ) . 'px;"' : '' ) .'>';
if ( $author_link ) {
$author_output .= sprintf(
'<a class="author-image" href="%1$s">%2$s</a>',
esc_url( get_author_posts_url( $author_id ) ),
get_avatar( $author_id, ( 2 * $author_image_size ) )
);
} else {
$author_output .= sprintf(
'<span class="author-image">%1$s</span>',
get_avatar( $author_id, ( 2 * $author_image_size ) )
);
}
$author_output .= '<span class="image-size-ratio"></span>';
$author_output .= '</span>';
}
if ( $author_enable_label ) {
$author_output .= '<span class="meta-label">' . esc_html( $author_label ) . '</span>';
}
$author_output .= $author_string;
$author_output .= '</span>';
echo apply_filters( 'kadence_author_meta_output', $author_output ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
}
if ( $date ) {
$time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
$time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>';
}
$time_string = sprintf(
$time_string,
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() ),
esc_attr( get_the_modified_date( 'c' ) ),
esc_html( get_the_modified_date() )
);
if ( ! empty( $time_string ) ) {
?>
<span class="posted-on">
<?php
if ( $date_enable_label ) {
echo '<span class="meta-label">' . esc_html( $date_label ) . '</span>';
}
echo $time_string; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
?>
</span>
<?php
}
}
if ( $date_updated ) {
$time_string = sprintf(
'<time class="entry-date published updated" datetime="%1$s">%2$s</time>',
esc_attr( get_the_modified_date( 'c' ) ),
esc_html( get_the_modified_date() )
);
if ( ! empty( $time_string ) ) {
?>
<span class="updated-on">
<?php
if ( $date_updated_enable_label ) {
echo '<span class="meta-label">' . esc_html( $date_updated_label ) . '</span>';
}
echo $time_string; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
?>
</span>
<?php
}
}
if ( $meta_categories ) {
if ( 'post' === get_post_type() ) {
/* translators: separator between taxonomy terms */
$separator = _x( ', ', 'list item separator', 'kadence-blocks' );
?>
<span class="category-links">
<?php
if ( $meta_categories_enable_label ) {
echo '<span class="meta-label">' . esc_html( $meta_categories_label ) . '</span>';
}
echo '<span class="category-link-items">' . get_the_category_list( esc_html( $separator ), '', get_the_ID() ) . '</span>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
?>
</span>
<?php
}
}
if ( $meta_comments ) {
echo '<div class="meta-comments">';
echo '<a class="meta-comments-link anchor-scroll" href="' . esc_url( get_the_permalink() ) . '#comments">';
if ( '1' === get_comments_number() ) {
echo esc_html( get_comments_number() ) . ' ' . esc_html__( 'Comment', 'kadence-blocks' );
} else {
echo esc_html( get_comments_number() ) . ' ' . esc_html__( 'Comments', 'kadence-blocks' );
}
echo '</a>';
echo '</div>';
}
do_action( 'kadence_after_loop_entry_meta' );
?>
</div><!-- .entry-meta -->
<?php
}

View File

@@ -0,0 +1,80 @@
<?php
/**
* Entry Template for Posts Block.
*
* This template can be overridden by copying it to yourtheme/kadence-blocks/entry-loop-taxonomies.php.
*
* @package Kadence Blocks
*/
defined( 'ABSPATH' ) || exit;
global $post;
$enabled = ( isset( $attributes ) && is_array( $attributes ) && isset( $attributes['aboveCategories'] ) && ! $attributes['aboveCategories'] ? false : true );
$divider = ( isset( $attributes ) && is_array( $attributes ) && isset( $attributes['categoriesDivider'] ) && $attributes['categoriesDivider'] ? $attributes['categoriesDivider'] : 'vline' );
$style = ( isset( $attributes ) && is_array( $attributes ) && isset( $attributes['categoriesStyle'] ) && $attributes['categoriesStyle'] ? $attributes['categoriesStyle'] : 'normal' );
if ( $enabled ) {
switch ( $divider ) {
case 'dot':
$separator = ' &middot; ';
break;
case 'slash':
/* translators: separator between taxonomy terms */
$separator = _x( ' / ', 'list item separator', 'kadence-blocks' );
break;
case 'dash':
/* translators: separator between taxonomy terms */
$separator = _x( ' - ', 'list item separator', 'kadence-blocks' );
break;
default:
/* translators: separator between taxonomy terms */
$separator = _x( ' | ', 'list item separator', 'kadence-blocks' );
break;
}
if ( 'pill' === $style ) {
$separator = ' ';
}
?>
<div class="entry-taxonomies">
<span class="category-links term-links category-style-<?php echo esc_attr( $style ); ?>">
<?php
if (class_exists( 'Kadence\Theme' ) && $attributes['customKadenceArchiveColors']) {
$post_id = get_the_ID();
$categories = apply_filters( 'the_category_list', get_the_category(), $post_id );
if( ! empty( $categories ) ) {
foreach ( $categories as $key => $category ) {
$color = get_term_meta( $category->term_id, 'archive_category_color', true );
$hover_color = get_term_meta( $category->term_id, 'archive_category_hover_color', true );
if ($color !== '' || $hover_color !== '') {
echo '<style>';
if ( $color !== '') {
echo
'.loop-entry.type-post .entry-taxonomies a.category-link-' . esc_attr( $category->slug ) . ' {
' . ( $style === 'pill' ? 'background-color' : 'color') . ': ' . esc_attr( $color ) . ';
}'
;
}
if ( $hover_color !== '') {
echo
'.loop-entry.type-post .entry-taxonomies a.category-link-' . esc_attr( $category->slug ) . ':hover {
' . ( $style === 'pill' ? 'background-color' : 'color') . ': ' . esc_attr( $hover_color ) . ';
}'
;
}
echo '</style>';
}
echo '<a href="' . esc_url( get_term_link( $category->term_id ) ) . '" class="category-link-' . esc_attr( $category->slug ) . '" rel="tag">' . esc_attr( $category->name) . '</a>';
if ( $key < count($categories) - 1 ) {
echo esc_html( $separator );
}
}
}
} else echo get_the_category_list( esc_html( $separator ), '', $post->ID ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
?>
</span>
</div><!-- .entry-taxonomies -->
<?php
}

View File

@@ -0,0 +1,62 @@
<?php
/**
* Entry Template for Posts Block.
*
* This template can be overridden by copying it to yourtheme/kadence-blocks/entry-loop-thumbnail.php.
*
* @package Kadence Blocks
*/
defined( 'ABSPATH' ) || exit;
if ( post_password_required() || ! post_type_supports( get_post_type(), 'thumbnail' ) || ! has_post_thumbnail() ) {
return;
}
$enabled = ( isset( $attributes ) && is_array( $attributes ) && isset( $attributes['image'] ) && ! $attributes['image'] ? false : true );
$img_link = ( isset( $attributes ) && is_array( $attributes ) && isset( $attributes['imageLink'] ) && ! $attributes['imageLink'] ? false : true );
$ratio = apply_filters( 'kadence_blocks_posts_image_ratio', ( isset( $attributes ) && is_array( $attributes ) && isset( $attributes['imageRatio'] ) && $attributes['imageRatio'] ? $attributes['imageRatio'] : '2-3' ), $attributes );
$size = apply_filters( 'kadence_blocks_posts_image_size', ( isset( $attributes ) && is_array( $attributes ) && isset( $attributes['imageSize'] ) && $attributes['imageSize'] ? $attributes['imageSize'] : 'medium_large' ), $attributes );
if ( $enabled ) {
$alt = get_post_meta( get_post_thumbnail_id(), '_wp_attachment_image_alt', true );
if ( $img_link ) {
?>
<a aria-hidden="true" tabindex="-1" role="presentation" class="post-thumbnail kadence-thumbnail-ratio-<?php echo esc_attr( $ratio ); ?>" href="<?php the_permalink(); ?>" aria-label="<?php the_title_attribute(); ?>">
<div class="post-thumbnail-inner">
<?php
the_post_thumbnail(
$size,
[
'alt' => $alt ? $alt : the_title_attribute(
[
'echo' => false,
]
),
]
);
?>
</div>
</a><!-- .post-thumbnail -->
<?php
} else {
?>
<div class="post-thumbnail kadence-thumbnail-ratio-<?php echo esc_attr( $ratio ); ?>">
<div class="post-thumbnail-inner">
<?php
the_post_thumbnail(
$size,
[
'alt' => $alt ? $alt : the_title_attribute(
[
'echo' => false,
]
),
]
);
?>
</div>
</div><!-- .post-thumbnail -->
<?php
}
}

View File

@@ -0,0 +1,15 @@
<?php
/**
* Entry Template for Posts Block.
*
* This template can be overridden by copying it to yourtheme/kadence-blocks/entry-loop-title.php.
*
* @package Kadence Blocks
*/
defined( 'ABSPATH' ) || exit;
$html_tag = ( isset( $attributes ) && is_array( $attributes ) && isset( $attributes['titleFont'] ) && is_array( $attributes['titleFont'] ) && isset( $attributes['titleFont'][0] ) && isset( $attributes['titleFont'][0]['level'] ) && ! empty( $attributes['titleFont'][0]['level'] ) ? 'h' . $attributes['titleFont'][0]['level'] : 'h2' );
the_title( '<' . esc_attr( $html_tag ) . ' class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></' . esc_attr( $html_tag ) . '>' );

View File

@@ -0,0 +1,29 @@
<?php
/**
* Entry Template for Posts Block.
*
* This template can be overridden by copying it to yourtheme/kadence-blocks/entry-summary.php.
*
* @package Kadence Blocks
*/
defined( 'ABSPATH' ) || exit;
$enabled = ( isset( $attributes ) && is_array( $attributes ) && isset( $attributes['excerpt'] ) && ! $attributes['excerpt'] ? false : true );
if ( $enabled ) {
?>
<div class="entry-summary">
<?php
if ( isset( $attributes['excerptCustomLength'] ) && true === $attributes['excerptCustomLength'] ) {
global $kadence_blocks_post_block_get_excerpt_length;
$kadence_blocks_post_block_get_excerpt_length = ( ! empty( $attributes['excerptLength'] ) ? $attributes['excerptLength'] : 40 );
add_filter( 'excerpt_length', 'kadence_blocks_post_block_get_excerpt_length', 20 );
the_excerpt();
remove_filter( 'excerpt_length', 'kadence_blocks_post_block_get_excerpt_length', 20 );
} else {
the_excerpt();
}
?>
</div><!-- .entry-summary -->
<?php
}

View File

@@ -0,0 +1,28 @@
<?php
/**
* Entry Template for Posts Block.
*
* This template can be overridden by copying it to yourtheme/kadence-blocks/entry.php.
*
* @package Kadence Blocks
*/
defined( 'ABSPATH' ) || exit;
$enabled_image = ( isset( $attributes ) && is_array( $attributes ) && isset( $attributes['image'] ) && ! $attributes['image'] ? false : true );
?>
<li class="kb-post-list-item">
<article <?php post_class( 'entry content-bg loop-entry' . ( ! $enabled_image ? ' kb-post-no-image' : '' ) ); ?>>
<?php
kadence_blocks_get_template( 'entry-loop-thumbnail.php', [ 'attributes' => $attributes ] );
?>
<div class="entry-content-wrap">
<?php
kadence_blocks_get_template( 'entry-loop-header.php', [ 'attributes' => $attributes ] );
kadence_blocks_get_template( 'entry-summary.php', [ 'attributes' => $attributes ] );
kadence_blocks_get_template( 'entry-loop-footer.php', [ 'attributes' => $attributes ] );
?>
</div>
</article>
</li>

View File

@@ -0,0 +1,186 @@
<?php
/**
* Default email template.
*
* This template can be overridden by copying it to yourtheme/kadence-blocks/form-email.php.
*
* @version 1.7.0
*/
defined( 'ABSPATH' ) || exit;
?>
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<style>
/* -------------------------------------
RESPONSIVE AND MOBILE FRIENDLY STYLES
------------------------------------- */
@media only screen and (max-width: 620px) {
table[class=body] h1 {
font-size: 28px !important;
margin-bottom: 10px !important;
}
table[class=body] p,
table[class=body] ul,
table[class=body] ol,
table[class=body] td,
table[class=body] span,
table[class=body] a {
font-size: 16px !important;
}
table[class=body] .wrapper,
table[class=body] .article {
padding: 10px !important;
}
table[class=body] .content {
padding: 0 !important;
}
table[class=body] .container {
padding: 0 !important;
width: 100% !important;
}
table[class=body] .main {
border-left-width: 0 !important;
border-radius: 0 !important;
border-right-width: 0 !important;
}
table[class=body] .btn table {
width: 100% !important;
}
table[class=body] .btn a {
width: 100% !important;
}
table[class=body] .img-responsive {
height: auto !important;
max-width: 100% !important;
width: auto !important;
}
}
/* -------------------------------------
PRESERVE THESE STYLES IN THE HEAD
------------------------------------- */
@media all {
.ExternalClass {
width: 100%;
}
.ExternalClass,
.ExternalClass p,
.ExternalClass span,
.ExternalClass font,
.ExternalClass td,
.ExternalClass div {
line-height: 100%;
}
.apple-link a {
color: inherit !important;
font-family: inherit !important;
font-size: inherit !important;
font-weight: inherit !important;
line-height: inherit !important;
text-decoration: none !important;
}
#MessageViewBody a {
color: inherit;
text-decoration: none;
font-size: inherit;
font-family: inherit;
font-weight: inherit;
line-height: inherit;
}
.btn-primary table td:hover {
background-color: #34495e !important;
}
.btn-primary a:hover {
background-color: #34495e !important;
border-color: #34495e !important;
}
}
</style>
</head>
<body class="" style="background-color: #f6f6f6; font-family: sans-serif; -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 1.4; margin: 0; padding: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;">
<table border="0" cellpadding="0" cellspacing="0" class="body" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background-color: #f6f6f6;">
<tr>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>
<td class="container" style="font-family: sans-serif; font-size: 14px; vertical-align: top; display: block; Margin: 0 auto; max-width: 580px; padding: 10px; width: 580px;">
<div class="content" style="box-sizing: border-box; display: block; Margin: 0 auto; max-width: 580px; padding: 10px;">
<!-- START CENTERED WHITE CONTAINER -->
<table class="main" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background: #ffffff; border-radius: 3px;">
<!-- START MAIN CONTENT AREA -->
<tr>
<td class="wrapper" style="font-family: sans-serif; font-size: 14px; vertical-align: top; box-sizing: border-box; padding: 20px;">
<?php
if ( isset( $fields ) && is_array( $fields ) ) {
$i = 0;
foreach ( $fields as $key => $data ) {
if ( is_array( $data['value'] ) ) {
$data['value'] = explode( ', ', $data['value'] );
}
?>
<table border="0" cellpadding="0" cellspacing="0" style="<?php echo ( $i === 0 ? '' : 'border-top:1px solid #dddddd; ' ); ?>border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">
<tr>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; padding-top: 20px;">
<p style="font-family: sans-serif; font-size: 14px; font-weight: Bold; margin: 0; Margin-bottom: 15px;"><?php echo esc_html( $data['label'] ); ?></p>
<?php if( !empty( $data['type'] ) && $data['type'] === 'file' && ! empty( $data['value'] ) ) { ?>
<?php
$file_name = ! empty( $data['file_name'] ) ? $data['file_name'] : esc_html__( 'View File', 'kadence-blocks' );
$file_name_array = explode( ', ', $file_name );
if ( count( $file_name_array ) > 1 ) {
$file_value_array = explode( ', ', $data['value'] );
$value_output = array();
foreach ( $file_name_array as $key => $name ) {
$value_output[] = '<a href="' . $file_value_array[ $key ] . '" target="_blank">' . $name . '</a>';
}
$file_output = implode( ', ', $value_output );
} else {
$file_output = '<a href="' . $data['value'] . '" target="_blank">' . $file_name . '</a>';
}
?>
<?php echo wpautop( '<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px; padding-bottom: 5px;">' . $file_output . '</p>' ); ?>
<?php } else { ?>
<?php echo wpautop( '<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px; padding-bottom: 5px;">' . esc_html( wp_unslash( $data['value'] ) ) . '</p>' ); ?>
<?php } ?>
</td>
</tr>
</table>
<?php
$i ++;
}
}
?>
</td>
</tr>
<!-- END MAIN CONTENT AREA -->
</table>
<!-- START FOOTER -->
<div class="footer" style="clear: both; Margin-top: 10px; text-align: center; width: 100%;">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">
<tr>
<td class="content-block powered-by" style="font-family: sans-serif; vertical-align: top; padding-bottom: 10px; padding-top: 10px; font-size: 12px; color: #999999; text-align: center;">
<?php
/* translators: %s - link to a site. */
$footer = sprintf( esc_html__( 'Sent from %s', 'kadence-blocks' ), '<a href="' . esc_url( home_url() ) . '" style="color: #999999; font-size: 12px; text-align: center; text-decoration: none;">' . wp_specialchars_decode( get_bloginfo( 'name' ) ) . '</a>' );
echo apply_filters( 'kadence_blocks_form_email_footer_text', $footer );
?>
</td>
</tr>
</table>
</div>
<!-- END FOOTER -->
<!-- END CENTERED WHITE CONTAINER -->
</div>
</td>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>
</tr>
</table>
</body>
</html>