| Server IP : 3.96.16.70 / Your IP : 216.73.216.15 Web Server : Apache System : Linux ip-172-31-26-103.ca-central-1.compute.internal 6.1.163-186.299.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Feb 24 16:35:42 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/registration.mining4life.org/wp-content/themes/m4l_theme/ |
Upload File : |
<?php
/**
Template Name: Public Home Page
*/
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php
$options = get_option('hefl_registration_options');
if ($options['hefl_toggle_public_registration'] == "Open") :
?>
<?php while ( have_posts() ) : the_post(); // MAIN LOOP ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php
$words = explode(' ', the_title('', '', false));
$words[0] = '<span>'.$words[0].'</span>';
$title = implode(' ', $words);
echo '<h1 class="entry-title">' . $title . '</h1>';
?>
</header>
<div class="entry-content">
<?php the_content(); ?>
</div>
</article>
<?php endwhile; // END MAIN LOOP ?>
<?php
$args = array(
'posts_per_page' => -1,
'offset' => 0,
'post_type' => 'sponsorshiplevel',
'orderby' => 'meta_value_num',
'meta_key' => 'sponsorship_sponsorshipamount',
'order' => 'DESC',
'post_status' => 'publish',
'suppress_filters' => false
);
$posts_array = get_posts( $args );
?>
<ul id="hefl_sponsorship-level-container" class="hefl_column<?php echo (count($posts_array)); ?>">
<?php
foreach ( $posts_array as $post ) :
setup_postdata( $post );
$amount = get_post_meta( get_the_ID(), 'sponsorship_sponsorshipamount', true );
?>
<li class="sponsorlevel">
<h2 class="sponsorlevel-title"><?php the_title(); ?></h2>
<h2 class="sponsorlevel-amount">$<?php echo ( number_format($amount)); ?></h3>
<div class="sponsorlevel-details"><?php the_content(); ?></div>
<div class="sponsorlevel-link"><a href="<?php echo bloginfo('url'); ?>/registration?level=<?php echo ( $post->post_name ); ?>">Register Today</a></div>
</li>
<?php endforeach; // END SECONDARY LOOP ?>
</ul>
<div class="clear"></div>
<div style="margin: 2em 0;">
<center>Already have an account? <a href="<?php echo wp_login_url(); ?>">Click here</a> to login.</center>
</div>
<?php else : ?>
<article>
<header class="entry-header">
<h1 class="entry-title">Mining4Life</h1>
</header>
<div class="entry-content">
<?php echo (wpautop($options['hefl_toggle_public_registration_message'])); ?>
</div>
</article>
<?php endif; ?>
</main>
</div>
<?php
//get_sidebar();
get_footer();