403Webshell
Server IP : 35.154.56.2  /  Your IP : 216.73.217.116
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ip-172-31-0-189 6.8.0-1029-aws #31-Ubuntu SMP Wed Apr 23 18:20:04 UTC 2025 aarch64
User : ubuntu ( 1000)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /srv/prima-automation.com/html/wp-content/themes/bapl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /srv/prima-automation.com/html/wp-content/themes/bapl/index.php
<?php
/**
 * The main template file
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package WordPress
 * @subpackage BAPL
 * @since 1.0.0
 */

get_header();
?>
    <!--Banner content begins -->
    <?php
        $args = array('post_type' => 'post', 'category_name' => 'banners', 'post_status' => 'publish', 'posts_per_page' => 5);
        $bannerQuery = new WP_Query($args);
        
        if ($bannerQuery->have_posts()) :
            ?>
            <div id="banner">
                <ul class="banner">
                    <?php
                        while ($bannerQuery->have_posts()) : $bannerQuery->the_post();
                            $imgSRC = get_the_post_thumbnail_url(get_the_ID(), 'full');
                            ?>
                            <li style="background-image:url(<?php echo $imgSRC; ?>);" class="panning">
                                <div class="container">
                                    <div class="banner-txt animated fadeInUp">
                                        <?php the_content(); ?>
                                    </div>
                                </div>
                            </li>                    
                            <?php
                        endwhile;
                    ?>     
                </ul>
            </div>
            <?php
        endif;
    ?>    
    <!--Banner content ends -->
    
    <div class="container">
        <div class="row">
            <?php
                $taxonomyService = get_terms(array('taxonomy' => 'service', 'hide_empty' => false, 'parent' => 0, 'posts_per_page' => 6));

                if(is_array($taxonomyService) && count($taxonomyService)) :
                    ?>
                    <h2> Prima Automation is a leader in industrial automation, offering high-quality control panels and power distribution systems that ensure efficiency, reliability, and seamless operation across industries.</h2>
                    <div class="innovation clearfix">
                        <?php
                            foreach($taxonomyService as $service) {
                                $termFields = pods('service', $service->slug);
                                $termImg = $termFields->field('taxonomy-service-image');
                                ?>
                                <div class="col-xs-12 col-sm-4 item">
                                    <a href="<?php echo get_category_link($service->term_id); ?>">
                                        <img class="img-responsive" src="<?php echo $termImg['guid']; ?>">
                                        <h4><?php echo $service->name; ?></h4>
                                    </a>
                                </div>
                                <?php
                            }
                        ?>
                    </div>
                    <?php
                endif;        
                
                // For About
                $postId = 54;
                $args = array('post_type' => 'post', 'post_status' => 'publish', 'p' => $postId); $postQuery = new WP_Query($args);
                
                if ($postQuery->have_posts()) :
                    while ($postQuery->have_posts()) : $postQuery->the_post();
                        ?>
                        <div class="about-us clearfix">
                            <div class="col-sm-4">
                                <h3><?php echo get_the_title(); ?></h3>
                            </div>
                            <div class="col-sm-8">
                                <?php echo get_the_content(); ?>
                            </div>
                        </div>
                        <?php
                    endwhile;
                endif;
                
                // For Partners
                $args = array('post_type' => 'clientele', 'post_status' => 'publish', 'posts_per_page' => -1);
                $clienteleQuery = new WP_Query($args);
                
                if ($clienteleQuery->have_posts()) :
                    ?>
                    <div id="partner" class="clearfix">
                        <?php
                            while ($clienteleQuery->have_posts()) : $clienteleQuery->the_post();  
                                $imgSRC = get_the_post_thumbnail_url();
                                ?><div class="item"><a href="#"><img src="<?php echo $imgSRC; ?>" alt="<?php echo get_the_title(); ?>"></a></div><?php
                            endwhile;
                        ?>
                    </div>
                    <?php
                endif;                
            ?>
        </div>        
    </div>
    
    <!--Awards content begins-->
    <?php
        $postId = 133;
        $args = array('post_type' => 'page', 'post_status' => 'publish', 'p' => $postId); $postQuery = new WP_Query($args);
 
        if ($postQuery->have_posts()) :
            while ($postQuery->have_posts()) : $postQuery->the_post();
                
                $postAttributes = get_post_meta(get_the_ID(), 'pageattributes', true);
                
                if(is_array($postAttributes) && count($postAttributes)) :
                    ?>
                    <div class="awards-content">
                        <div class="container">
                            <h3><?php echo get_the_title(); ?></h3>
                            <div class="awards clearfix">
                                <?php
                                    $i=0;
                                    foreach($postAttributes as $attribute) {
                                        $imgSRC = wp_get_attachment_image_src($attribute['page-attribute-image'], 'full');
                                        ?>
                                        <div class="col-xs-6 col-sm-3 award">
                                            <img class="img-responsive" src="<?php echo $imgSRC[0]; ?>">
                                            <p><?php echo $attribute['page-attribute-title']; ?></p>
                                            <a href="<?php echo get_the_permalink(); ?>">Read More</a>
                                        </div>
                                        <?php
                                        if($i>=3) break;
                                        $i++;
                                    }
                                ?>                                
                            </div>
                            <a href="<?php echo get_the_permalink(); ?>" class="more">More Awards & Recognitions
                                <img src="<?php echo get_template_directory_uri(); ?>/assets/images/right-arrow.png">
                            </a>
                        </div>
                    </div>
                    <?php
                endif;
        
            endwhile;
        endif;        
    ?>    
    <!--Awards content ends-->
    
    <!--Tag-line content begins -->
    <?php
        $postId = 145;
        $args = array('post_type' => 'post', 'post_status' => 'publish', 'p' => $postId); $postQuery = new WP_Query($args);

        if ($postQuery->have_posts()) :
            while ($postQuery->have_posts()) : $postQuery->the_post();
                ?>
                <div class="tagline">
                    <div class="container">
                        <?php the_content(); ?>
                    </div>
                </div>
                <?php
            endwhile;
        endif;
    ?>    
    <!--Tag-line content ends -->
<?php
get_footer();

Youez - 2016 - github.com/yon3zu
LinuXploit