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/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/eticalga/www/files/themes/kobuxeticalgarve/single-course.php
<?php

/**
 * The Template for displaying all single courses.
 *
 * @package kobuxeticalgarve
 */

get_header(); ?>
<article id="content">
	<?php while (have_posts()) : the_post(); ?>
		<div class="page-top-section content-single">
			<div class="site-content-single">
				<?php include(locate_template('partials/page-top-course.php')); ?>
			</div>

			<?php if (has_post_thumbnail()) { ?>
				<div class="featured-img-wrapper">
					<?php if (get_field('packed')) { ?>
						<ul class="categories">
							<li><span><?php _e('Packed', 'kobu'); ?></span></li>
						</ul>
					<?php } ?>
					<div class="featured-img">
						<figure><?php echo wp_get_attachment_image(get_post_thumbnail_id(get_the_ID()), '1536x1536', false, array('class' => '', 'sizes' => '100vw'));  ?></figure>
					</div>
					<div class="svg-animate audio-2" data-shape="shape-02" data-morph="amount"></div>
				</div>
			<?php } ?>

		</div>

		<div class="site-content">
			<?php the_content(); ?>
		</div>
	<?php endwhile; ?>
</article>

<?php
$course_form_cta = get_field('course_form', 'options');
$course_form_cta_text = isset($course_form_cta['cta_text']) ? $course_form_cta['cta_text'] : __('Estou interessad@', 'kobu');
$course_form_form_select = isset($course_form_cta['form_select']) ? $course_form_cta['form_select'] : null;
?>

<div class="course-cta-buttons">
	<?php if ($course_form_form_select) { ?>
		<div id="cta-course-registration" class="course-cta-btn cta-modal-button"><?php echo $course_form_cta_text; ?><?php echo kobuxeticalgarve_get_icons('icon-arrow'); ?></div>
		<div id="course-registration-modal-wrapper" class="cta-modal-wrapper">
			<div id="course-registration-modal">
				<div>
					<div id="course-registration-close"><?php echo kobuxeticalgarve_get_icons('icon-close'); ?></div>
					<?php gravity_form(esc_attr($course_form_form_select), false, false, false, null, true, 0, true, 'gravity'); ?>
				</div>
			</div>
		</div>
	<?php } ?>
	<?php if ($course_plan = get_field('course_plan')) { ?>
		<a href="<?php echo $course_plan; ?>" target="_blank" class="course-plan-btn course-cta-btn"><?php _e('Course Plan', 'kobu'); ?><?php echo kobuxeticalgarve_get_icons('icon-file'); ?></a>
	<?php } ?>
</div>
<?php include(locate_template('partials/virtual-assistant.php')); ?>
<?php get_footer(); ?>