-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfront-page.php
More file actions
65 lines (65 loc) · 2.96 KB
/
front-page.php
File metadata and controls
65 lines (65 loc) · 2.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php use Roots\Sage\Titles; ?>
<?php while (have_posts()) : the_post(); ?>
<?php get_template_part( '/templates/promo','tiles'); ?>
<?php get_template_part( '/templates/breaking'); ?>
<section class="front__thecontent">
<div class="grid-container">
<div class="grid-x grid-margin-x">
<div class="cell large-8">
<div class="ps ps--narrow ps--nobottom">
<header class="pagehead">
<h1 class="pagehead__title"><?php the_field('focim'); ?></h1>
<div class="lead pagehead__lead"><?php the_excerpt(); ?></div>
<?php the_content(); ?>
</header>
</div>
<div class="grid-x grid-margin-x">
<div class="tablet-6 large-6 cell">
<div class="ps ps--narrow ps--nobottom">
<?php the_field('kisblokk_1'); ?>
</div>
</div>
<div class="tablet-6 large-6 cell">
<div class="ps ps--narrow ps--nobottom">
<?php the_field('kisblokk_2'); ?>
</div>
</div>
</div>
</div>
<div class="large-4 cell">
<div class="ps ps--narrow ps--nobottom">
<section class="widget widget--blogcage">
<h3 class="widget__title">Hírek és aktualitások</h3>
<div class="widget__body">
<?php
$the_cageposts = new WP_Query( array(
'posts_per_page' => 4,
'post__not_in' => array($alreadyprinted),
//'ignore_sticky_posts' => 1,
)); ?>
<ul class="blogcage">
<?php while ( $the_cageposts->have_posts() ) : $the_cageposts->the_post(); ?>
<?php setup_postdata( $post ); ?>
<?php get_template_part('templates/blogcage' ); ?>
<?php endwhile; ?>
</ul>
<?php wp_reset_query(); ?>
<a href="<?php echo get_permalink( get_option( 'page_for_posts' ) ); ?>" class="readmore">Még több hír a blogon</a>
</div>
</section>
<?php dynamic_sidebar('sidebar-frontpage'); ?>
</div>
</div>
</div>
</div>
</section>
<section class="front__bottom ps ps--prigrad">
<div class="grid-container">
<div class="grid-x grid-margin-x align-center">
<div class="large-8 cell">
<?php get_template_part('templates/testimonials'); ?>
</div>
</div>
</div>
</section>
<?php endwhile; ?>