Server IP : 89.26.249.46  /  Your IP : 216.73.216.42
Web Server : Apache
System : Linux a.cp.cloudlink.pt 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User : eticalga ( 1129)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/eticalga/www/files/themes/kobuxeticalgarve/partials/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/eticalga/www/files/themes/kobuxeticalgarve/partials/partner-card.php
<?php

/**
 * Partial: Partner card
 *
 * @package kobuxeticalgarve
 */

if (isset($args['location']) && $args['location']) {
	$location = $args['location'];
} else {
	$location = '';
}

?>

<li class="article partner-card <?php echo (defined('DOING_AJAX') && DOING_AJAX) ? 'ajax-posts' : ''; ?>">
	<div class="accordion">
		<div class="accordion-wrapper">
			<dl class="accordion-inner-wrapper">
				<dt data-index="0">
					<?php if ($location == 'erasmus_block') {
						$partner_country = get_field('partner_country', get_the_ID());
						if ($partner_country) {
							$partner_country_label = $partner_country['label'];
							echo $partner_country_label;
						}
					} else {
						echo kobuxeticalgarve_list_terms('partners_cat', 'string', false, false, get_the_ID());
					} ?>
					<div class="partner-card-img">
						<?php if (has_post_thumbnail()) { ?>
							<noscript class="loading-lazy">
								<?php echo wp_get_attachment_image(get_post_thumbnail_id(), 'medium_large', false, array('class' => '', 'sizes' => '(min-width: 993px) 33vw, (min-width: 601px) 50vw, 100vw')); ?>
							</noscript>
						<?php } ?>
					</div>
					<div class="accordion-title"><?php the_title(); ?></div>
				</dt>
				<?php if (trim(get_the_content()) !== '') { ?>
					<dd class="accordion-panel wrapper">
						<div class="accordion-content">
							<?php the_content(); ?>
						</div>
					</dd>
					<button class="accordion-trigger" type="button"><?php _e('see more', 'kobu'); ?> <span class="sr-only">Toggle Accordion</span></button>
				<?php } ?>
			</dl>
		</div>
	</div>
</li>