HEX
Server: LiteSpeed
System: Linux cde2.duelhost.dk 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64
User: dtptviut (1121)
PHP: 8.0.30
Disabled: exec,system,passthru,shell_exec,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/dtptviut/domains/edn.dk/private_html/wp-content/themes/citygov/template-donation.php
<?php
/*
Template Name: Donations
*/
?>
<?php get_header(); ?>

<div class="page-header  page-header-plain">

    <?php the_post_thumbnail('citygov_header',array('class' => 'standard grayscale grayscale-fade'));?>
    
    <div class="container">

        <h1 itemprop="name" class="give-form-title entry-title"><?php the_title(); ?></h1>
    
    </div>
        
</div>

<div id="core" class="container_alt page tmnf-donations-page">
	<?php
    if ( have_posts() ) : ?>
    
        <?php
        do_action('my-give-before-archive-loop');
        
        $args = array(
			'post_type' => 'give_forms',
			'posts_per_page' => 10
		);
        
        $wp_query = new WP_Query( $args );
    
        while ( have_posts() ) : the_post();?>
            <div <?php post_class('give-archive-item'); ?>>
                
                <div class="image-wrap">
                    <?php the_post_thumbnail('citygov_small',array('class' => 'standard grayscale grayscale-fade')); ?>
                </div>
                
                <div class="item_inn p-border ghost">
                
					<?php 
                        $id = get_the_ID();
                        $shortcode = '[give_goal id="' . $id . '"]'; echo do_shortcode( $shortcode );
                    ?>
                
                    <h2 class="give-form-title">
                        <a href="<?php echo get_the_permalink(); ?>"><?php echo get_the_title(); ?></a>
                    </h2>
        
                    <?php the_excerpt(); ?>
                    
                    <a class="mainbutton" href="<?php echo get_the_permalink(); ?>"><?php esc_html_e('Donate Now','citygov');?></a>
                    
                    <div class="clearfix"></div>
                
                </div>
    
            </div>
        <?php endwhile;
    else : ?>
    
        <h2><?php esc_html_e('Sorry, no donation forms found.','citygov');?></h2>
    
    <?php endif;
    wp_reset_postdata();
    do_action('my-give-after-archive-loop');
    ?>


</div><!-- end .container -->
    
<div class="clearfix"></div>
    
<?php get_footer(); ?>