HEX
Server: Apache/2.4.34 (Red Hat) OpenSSL/1.0.2k-fips
System: Linux WORDPRESS 3.10.0-1160.118.1.el7.x86_64 #1 SMP Thu Apr 4 03:33:23 EDT 2024 x86_64
User: digital (1020)
PHP: 7.2.24
Disabled: NONE
Upload Files
File: /datos/www/www.colombia.co/public_html/wp-content/themes/colombia2016/questions.php
<?php
	/**
	* Template Name: Frequently Asked Questions
	*/

	get_header();

	$locale = get_locale();
	while ( have_posts() ) : the_post();
	$subtitle = get_post_meta(get_the_ID(), 'subtitle', true);
?>

<main role="main" class="l-flex category-esta-es-colombia">
	<div id="category-header">
		<div class="l-container l-flex">
			<div class="cat-header-container">
				<?php 
					if($subtitle){	
						if($locale == "es_CO"){
						?>
							<h1 class="cat-title"><?php echo "¿Tienes preguntas sobre Colombia?" ;?></h1>
						<?php
						}
						else if($locale == "en_US"){							
						?>
							<h1 class="cat-title"><?php echo "What would you like to know more about Colombia?" ;?></h1>
						<?php
						}else if($locale == "fr_FR"){						
						?>
							<h1 class="cat-title"><?php echo "¿Tienes preguntas sobre Colombia?" ;?></h1>
						<?php
						}
					}
					else{						
						if($locale == "es_CO"){
						?>
							<h1 class="cat-title"><?php echo "¿Tienes preguntas sobre Colombia?" ;?></h1>
						<?php
						}
						else if($locale == "en_US"){							
						?>
							<h1 class="cat-title"><?php echo "What would you like to know more about Colombia?" ;?></h1>
						<?php
						}else if($locale == "fr_FR"){						
						?>
							<h1 class="cat-title"><?php echo "¿Tienes preguntas sobre Colombia?" ;?></h1>
						<?php
						}
					} ?>
			</div>
		</div>
	</div>
	<div id="content-wrapper" class="l-container l-flex">
		<section id="questions">
			<div class="page-content"><?php the_content(); ?></div>
			<?php 
				$questions = new WP_Query(
					array(
						'post_type' => 'faq',
						'posts_per_page' => '-1'
					)
				);

				if($questions->have_posts()) : while($questions->have_posts()){
					$questions->the_post();
			?>
				<article <?php post_class('question-wrapper'); ?> id="post-<?php the_ID(); ?>">
					<h2 class="question"><?php the_title(); ?></h2>
					<div class="answer">
						<?php the_content(); ?>
					</div>
				</article>
			<?php } endif; wp_reset_query(); ?>
		</section>
		<?php get_sidebar(); ?>
	</div>
</main>

<?php endwhile; ?>
<?php get_footer(); ?>