forked from creativeslice/goldenegg-public
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-calendar.php
executable file
·49 lines (35 loc) · 939 Bytes
/
page-calendar.php
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
<?php get_header(); // Template Name: Calendar ?>
<div id="content">
<div class="wrap">
<div id="main" role="main">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article <?php post_class( 'cf' ); ?>>
<header class="article-header">
<h1 class="page-title" itemprop="headline"><?php the_title(); ?></h1>
</header>
<?php
?>
<?php // Show Calendar
$events = new eggEvents;
$events->get_events('','30' );
$args = array(
'range' => '1 month',
'selected_time' => NULL,
'start_type' => 'natural',
'add_style' => 1,
'debug' => 1
);
$cal = new calendar( $args );
$cal->output_month();
// print_r($cal);
unset($cal);
?>
<section class="entry-content" itemprop="articleBody">
<?php the_content(); ?>
</section>
</article>
<?php endwhile; endif; ?>
</div>
</div>
</div>
<?php get_footer(); ?>