-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #185 from RRZE-Webteam/dev
v2.0.13
- Loading branch information
Showing
7 changed files
with
94 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
/** | ||
* The template for displaying archive pages | ||
*/ | ||
|
||
use RRZE\Calendar\Shortcodes\Events; | ||
|
||
if (isset($_GET['format']) && $_GET['format'] == 'embedded') { | ||
get_template_part('template-parts/archive', 'embedded'); | ||
return; | ||
} | ||
get_header(); | ||
global $wp_query; | ||
|
||
?> | ||
|
||
<div class="content-wrap"> | ||
<div id="blog-wrap" class="blog-wrap cf"> | ||
<div id="primary" class="site-content cf" role="main"> | ||
|
||
<header class="archive-header"> | ||
<h1 class="archive-title" ><?php _e('Events', 'rrze-calendar'); ?></h1> | ||
</header><!-- end .archive-header --> | ||
|
||
<?php | ||
$atts = []; | ||
$queryVars = $wp_query->query_vars; | ||
if (isset($queryVars['rrze-calendar-category']) && $queryVars['rrze-calendar-category'] != '') { | ||
$atts['categories'] = sanitize_title($queryVars['rrze-calendar-category']); | ||
$atts['abonnement_link'] = '1'; | ||
$atts['number'] = '99'; | ||
} | ||
echo Events::shortcode($atts); | ||
?> | ||
|
||
</div><!-- end #primary --> | ||
<?php get_sidebar(); ?> | ||
</div><!-- end .blog-wrap --> | ||
</div><!-- end .content-wrap --> | ||
|
||
<?php | ||
get_footer(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
/** | ||
* The template for displaying a single post. | ||
*/ | ||
|
||
use RRZE\Calendar\CPT\CalendarEvent; | ||
|
||
wp_enqueue_style('rrze-calendar-sc-events'); | ||
wp_enqueue_style( 'dashicons' ); | ||
|
||
get_header(); | ||
|
||
$id = get_the_ID(); | ||
$data = CalendarEvent::getEventData($id); | ||
|
||
while (have_posts()) : the_post(); ?> | ||
|
||
<div id="singlepost-wrap" class="singlepost-wrap cf"> | ||
<article class="rrze-event" itemscope itemtype="https://schema.org/Event"> | ||
|
||
<header class="entry-header"> | ||
<?php the_title('<h1 class="entry-title" itemprop="name">', '</h1>'); ?> | ||
</header><!-- .entry-header --> | ||
|
||
<div class="rrze-event-main"> | ||
|
||
<?php if (has_post_thumbnail() && !post_password_required()) { ?> | ||
<figure class="post-thumbnail wp-caption alignright"> | ||
<?php the_post_thumbnail('medium'); ?> | ||
<figcaption class="wp-caption-text"><?php echo get_the_post_thumbnail_caption(); ?></figcaption> | ||
</figure> | ||
<?php } ?> | ||
|
||
<?php CalendarEvent::displayEventMain($data); ?> | ||
|
||
</div> | ||
|
||
<?php CalendarEvent::displayEventDetails($data); ?> | ||
|
||
</article> | ||
</div> | ||
|
||
<?php endwhile; | ||
|
||
get_footer(); |