| 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 : |
<?php
/**
* The template for displaying all pages
*
* @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
$pageTitle = get_post_meta( $post->ID, 'custom_page_title', true);
if(!empty($pageTitle)){
echo $pageTitle;
}else{
the_title();
}
?>
</h1>
</div>
</section>
<section class="grantMidCont">
<div class="container">
<?php
$pageContent = get_post_meta( $post->ID, 'add_section_0_grid_row_0_column_0_column_content', true);
$pagebottomContent = get_post_meta( $post->ID, 'show_page_bottom_content', true);
if(!empty($pageContent)){
echo $pageContent;
}else{
while ( have_posts() ) : the_post();
the_content();
endwhile;
}
?>
<?php
$serviceContent = get_post_meta( $post->ID, 'show_apply section', true);
if((!empty($serviceContent)) && ($serviceContent == 'yes')){
?>
<div class="grantNote">
Take the first step toward guaranteeing your financial future. You'll be forever happy that you had the courage to make the first move. Click and apply right here, right now! Government Grants.us has a team of experts constantly updating the site, so you are always sure of finding the most comprehensive grant listing.
</div>
<div class="jobList">
<ul class="clearfix">
<?php
query_posts(array(
'post_type' => 'services-offered',
'order' => 'ASC',
'post_status' => 'publish',
'posts_per_page' => -1
));
while (have_posts()) : the_post();
$serviceContent = get_the_content();
$serviceURL = get_post_meta( $post->ID, 'service_apply_url_one', true);
?>
<li>
<div class="jobHd">
<h2><?php the_title(); ?></h2>
<a title="Apply Now" href="<?php echo $serviceURL;?>">Apply Now</a>
</div>
<div class="jobdesc">
<?php
echo $serviceContent;
?>
</div>
</li>
<?php
endwhile;
wp_reset_query();
?>
</ul>
</div>
<?php
}
?>
<?php
if(!empty($pagebottomContent)){
echo "<p>".$pagebottomContent."</p>";
}
?>
</div>
</section>
<?php
get_footer();
?>