<?php get_header();
/**
 * Template Name: Message form Principal
 */
global $post;
$current_language = pll_current_language();
?>
<?php
while (have_posts()) : the_post();
    $name = get_field('name');
    $designation = get_field('designation');

    ?>

    <section>
        <div class="faculty-profile-banner d-flex justify-content-center align-items-center text-center"
             style=" background-image: linear-gradient(rgb(37 59 128), rgba(1, 39, 11, 0.75)),url(<?php echo get_site_url(); ?>/wp-content/uploads/2024/07/IMG-20240728-WA0000.jpg) ">
            <h1 class="fs-1 fw-bolder text-white font-poppins text-center"><?= get_the_title() ?></h1>
        </div>
    </section>

    <section class="container">
        <div class="profile my-5">
            <div class="row">
                <!--<div class="col-lg-4 col-md-12 col-sm-12">
                    <div class="text-center bg-light shadow">
                        <div class="img p-4"> 
                            <?php //if (has_post_thumbnail($post->ID)) :
                                //$imageInfo = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'single-post-thumbnail');
                                //$imageUrl = $imageInfo[0]; ?>

                            <img class="" src="<?php //echo $imageUrl ?>" alt="..." height="200" width="200">
                            <?php
                            //else:
                                ?>
                                
                            <img class="" src="<?php //echo esc_url(get_template_directory_uri()); ?>/image/Men%27s-Collection-img.jpg" alt="" height="200" width="200">
                            <?php
                            //endif;
                            ?>

                        </div>
                        <div class="text-center px-3 pb-3 bg-light rounded" style="height: 150px">
                            <div class="border-top pt-3">
                                <a href="#"
                                   class="text-dark fw-bold fs-5 mb-0 lh-sm faculty-title"><?php //$name ?>
                                </a>
                                <p class="fw-bold common-font-color fs-6 mb-1 pt-2">
                                    <?php //$designation ?>
                                </p>

                            </div>
                        </div>
                    </div>

                </div>-->
                <div class="col-lg-12 col-md-12 col-sm-12 profile-info">
                    <div class="bg-light p-3 rounded shadow about-message-content">
                        <div>
                            <h2 class="fs-3 fw-bold border-bottom pb-3 mb-3 common-font-color"><?= get_the_title() ?>
                            </h2>
                            <div class="text-justify fs-6">
                                <?php the_content(); ?>

                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </section>


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