Amy-Mir / page-templates / blank.php
blank.php
Raw
<?php
/**
 * Template Name: Blank Page Template
 *
 * Template for displaying a blank page.
 *
 * @package UnderStrap
 */

get_header();

$articles = array('first', 'second', 'third');

?>

<div class="container">
	<p>under construction</p>
</div>

<div class="container">
	<p>under construction</p>
</div>

<div class="container__left">
	<div class="boxx"></div>
	<div class="content__wrapper">
		<p>under construction</p>	
	</div>
</div>

<div class="container__right">
	<div class="content__wrapper">
		<p>under construction</p>	
	</div>
	<div class="boxx"></div>
</div>


<div class="container">

	<h1 class="heading1">this is a test</h1>
	<h1 class="heading2">this is a test</h1>
	<h1 class="heading3">this is a test</h1>
	<h1 class="heading4">this is a test</h1>
	<hr>
	<h1 class="menuItem">this is a test</h1>
	<hr>
	<h1 class="heading__sm">this is a test</h1>
	<h1 class="heading__md">this is a test</h1>
	<hr>
	<h1 class="btnText">this is a test</h1>
	<hr>
	<h1 class="paragraph">
		Lorem ipsum dolor sit amet consectetur adipisicing elit. Nisi temporibus porro debitis harum quidem maxime?
	</h1>

</div>

<hr>
<hr>

<?php 
/**
 * array of 4 services metadata should be passed down to this template part
 * including: title, link, thumbnail
 */
get_template_part( 'global-templates/home', 'services'); ?>

<hr>
<hr>

<div class="container">
	<?php 
	/**
	 * array of 4 blog posts metadata should be passed down to this template part
	 * including: title, short desc, thumbnail, category, link to post
	 */
	get_template_part( 'global-templates/home', 'posts' ); ?>
</div>

<hr>
<hr>

<?php

$news_cats   = get_categories();
$news_query  = new WP_Query;

foreach ( $news_cats as $news_cat ) :
    $news_query->query( array(
        'cat'                 => $news_cat->term_id,
        'posts_per_page'      => 1,
        'no_found_rows'       => true,
        'ignore_sticky_posts' => true,
    ));

    ?>

    <h2><?php echo esc_html( $news_cat->name ) ?></h2>

    <?php while ( $news_query->have_posts() ) : $news_query->the_post() ?>
	<?php $cat = get_the_category(get_the_ID())[0]; ?>
            <div class="post">
                <?php the_title() ?>
				<?php the_excerpt() ?>
				<?php get_the_excerpt() ?>
				<?php the_content() ?>
				<?php var_dump($cat, $news_cat) ?>
				<?php echo get_simple_likes_button( get_the_ID() ); ?>
				<?php echo process_post_cat(get_the_ID(), true); ?>
				<?php echo process_post_cat(get_the_ID(), false); ?>
            </div>  

    <?php endwhile ?>

<?php endforeach; 

get_footer();