login.php 1.24 KB
<?php
/**
 * Template Name: Login
 *
 * Template for displaying a page without sidebar even if a sidebar widget is published.
 *
 * @package Understrap
 */

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;

get_header();
$container = get_theme_mod( 'understrap_container_type' );

if ( is_front_page() ) {
	get_template_part( 'global-templates/hero' );
}

$wrapper_id = 'full-width-page-wrapper';
if ( is_page_template( 'page-templates/no-title.php' ) ) {
	$wrapper_id = 'no-title-page-wrapper';
}
?>


<div class="hero-container header-section blur-image" data-src="<?php echo the_post_thumbnail_url(); ?>" style="--med-image: url(<?php echo the_post_thumbnail_url('medium'); ?>);">
	<div class="full-image">
		<div class="container">
			<div class="hero-content row">				
				<div class="col align-self-center">

							<?php
							the_custom_logo();
							while ( have_posts() ) {
								the_post();
								get_template_part( 'loop-templates/content', 'page' );

								// If comments are open or we have at least one comment, load up the comment template.
								if ( comments_open() || get_comments_number() ) {
									comments_template();
								}
							}
							?>					
				</div>
			</div>
		</div>
	</div>	
</div>


<?php
get_footer();