-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfront-page.php
More file actions
71 lines (69 loc) · 2.45 KB
/
front-page.php
File metadata and controls
71 lines (69 loc) · 2.45 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
66
67
68
69
70
71
<?php while (have_posts()) : the_post(); ?>
<?php get_template_part( 'templates/hero'); ?>
<?php get_template_part('templates/sticky', 'block'); ?>
<div class="ps">
<div class="row">
<div class="columns tablet-6 large-7 xlarge-8 content">
<header class="heading">
<h2 class="heading__title"><?php the_title(); ?></h2>
<hr>
<div class="heading__lead"><?php the_excerpt(); ?></div>
</header>
<?php the_content(); ?>
</div>
<div class="columns tablet-6 large-5 xlarge-4">
<?php
$args = array(
'post_type' => 'event',
'posts_per_page' => 6,
'meta_query' => array('key' => 'starts', 'compare' => '>=', 'value' => date('Y-m-d'), type => 'DATE' )
);
$the_events = new WP_Query( $args );
?>
<br><br>
<section class="pagehead__schedule callout" role="marquee">
<h4><?= __('Közelgő órák','bikram') ?></h4>
<div class="calendar calendar--teacher">
<?php while ($the_events->have_posts()) : $the_events->the_post(); ?>
<?php get_template_part('templates/calendar','entryteacher'); ?>
<?php endwhile; ?>
</div>
<br>
<a href="<?php the_permalink(42); ?>" class="button large expanded"><?= __('Teljes órarend','bikram') ?></a>
</section>
<?php wp_reset_postdata(); ?>
</div>
</div>
</div>
<div class="ps ps--dark">
<div class="row">
<div class="columns xlarge-9 content">
<?php
$args = array(
'post_type' => 'class',
'order' => 'ASC',
'orderby' => 'menu_order',
'posts_per_page' => -1
);
$the_classes = new WP_Query( $args );
?>
<div class="row tablet-up-2">
<?php while ($the_classes->have_posts()) : $the_classes->the_post(); ?>
<div class="column">
<?php get_template_part('templates/content', get_post_type() != 'post' ? get_post_type() : get_post_format()); ?>
</div>
<?php endwhile; ?>
</div>
<?php wp_reset_postdata(); ?>
</div>
<div class="columns xlarge-3">
<div class="row">
<div class="columns small-10 medium-6 tablet-4 large-3 xlarge-12 tablet-centered">
<img src="<?= get_template_directory_uri().'/dist/images/AYCM_ELFOGADOHELY.jpg' ?>" alt="AYMC elfogadóhely">
</div>
</div>
</div>
</div>
</div>
<?php get_template_part('templates/widegallery'); ?>
<?php endwhile; ?>