HEX
HEX
Server: Apache
System: Linux localhost.localdomain 4.18.0-348.7.1.el8_5.x86_64 #1 SMP Wed Dec 22 13:25:12 UTC 2021 x86_64
User: www (1001)
PHP: 8.1.32
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/ahmsolaiman.com/wp-content/themes/ahm/page.thesis.php
<?php
// Exit if accessed directly
if (!defined('ABSPATH')) exit;

/**
 *Full Content Template

    Template Name: Thesis

 *@file page-thesis.php
 *@package ahm
 *@author Md Rabiul Islam Robin
 *@copyright 2025
 *@license 
 *@version 1.0
 *@filesource ahm/page-thesis.php
 *@since ahm 1.0
 */
get_header();

?>

<!-----------------------------------------------
                        Thesis Header 
    ------------------------------------------------->
<section>
    <div
        class="breadcrumb-wrapper fix"
        style="background-image: url(<?php echo get_template_directory_uri(); ?>/image/contact\ bg.jpg)"
        id="contact-page">
        <div class="star-shape-c float-bob-x">
            <img src="image/star.png" alt="" />
        </div>
        <div class="container">
            <div class="row">
                <div class="page-heading">
                    <h2>
                        Thesis
                    </h2>
                    <ul class="breadcrumb-list">
                        <li><a href="<?php echo home_url(); ?>">Home</a></li>
                        <li><i class="fa-solid fa-angle-right"></i></li>
                        <li>Thesis
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</section>

<!-----------------------------------------------
                        Thesis Section 
    ------------------------------------------------->

<div class="ug-section fix">
    <div class="container">
        <div class="ug-wrapper">
            <div class="ug-heading">
                <h3>MS & PhD Thesis Repository </h3>
            </div>
            <div class="row">
                <?php
                $args = array(
                    'post_type' => 'thesiss', // Toolset custom post type
                    'posts_per_page' => 6,
                    'orderby' => 'meta_value_num', // numeric value er jonno
                    'order' => 'ASC'
                );
                $thesis_query = new WP_Query($args);

                if ($thesis_query->have_posts()):
                    while ($thesis_query->have_posts()): $thesis_query->the_post();
                ?>
                        <div class="col-md-6">
                            <a href="<?php the_permalink(); ?>">
                                <div class="book-wrapper d-flex">
                                    <div class="book-icon">
                                        <i class="fa-solid fa-user-graduate"></i>
                                    </div>
                                    <div class="book-conetent">
                                        <?php echo the_title() ?>
                                    </div>
                                </div>
                            </a>
                        </div>
                <?php
                    endwhile;
                    wp_reset_postdata();
                else:
                    echo '<p>No thesis found.</p>';
                endif;
                ?>
            </div>
        </div>
        <div class="thesis-btn-wrapper d-flex justify-content-center">
            <button class="thesis-btn" onclick="openPopup()">Submit Thesis Info</button>

            <!-- Popup -->

            <div class="popup-overlay" id="popup">
                <div class="popup-box">
                    <Button class="close-btn" onclick="closePopup()"><i class="fa-solid fa-xmark"></i></Button>
                    <div class="t-from-box">
                        <div class="from-title">
                            <h4>Submit your thesis</h4>
                        </div>
                        <?php echo do_shortcode('[contact-form-7 id="41a7598" title="Thesis-Sumbit"]'); ?>


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

<?php get_footer(); ?>

<script>
    function openPopup() {
        document.getElementById("popup").style.display = "flex";
    }

    function closePopup() {
        document.getElementById("popup").style.display = "none";
    }
</script>