Files
wordpress-preseed/wp-content/themes/piratenkleider/events/ecp-page-template.php
2019-10-25 23:14:31 +02:00

86 lines
2.7 KiB
PHP

<?php
/**
* If 'Default Events Template' is selected in Settings -> The Events Calendar -> Theme Settings -> Events Template,
* then this file loads the page template for all ECP views except for the individual
* event view. Generally, this setting should only be used if you want to manually
* specify all the shell HTML of your ECP pages in this template file. Use one of the other Theme
* Settings -> Events Template to automatically integrate views into your
* theme.
*
* You can customize this view by putting a replacement file of the same name (ecp-page-template.php) in the events/ directory of your theme.
*/
// Don't load directly
if ( !defined('ABSPATH') ) { die('-1'); }
?>
<?php get_header();
global $options;
?>
<?php tribe_events_before_html(); ?>
<div class="section content" id="main-content">
<div class="row">
<div class="content-primary">
<?php
$image_url = '';
$image_alt = '';
if (has_post_thumbnail()) {
$thumbid = get_post_thumbnail_id(get_the_ID());
$image_url_data = wp_get_attachment_image_src( $thumbid, 'full');
$image_url = $image_url_data[0];
$attribs = piratenkleider_get_image_attributs($thumbid);
} else {
if (($options['aktiv-platzhalterbilder-indexseiten']==1) && (isset($options['src-default-symbolbild']))) {
$image_url = $options['src-default-symbolbild'];
}
}
if (isset($image_url) && (strlen($image_url)>4)) {
if ($options['indexseitenbild-size']==1) {
echo '<div class="content-header-big">';
} else {
echo '<div class="content-header">';
}
?>
<h1 class="post-title"><span><?php tribe_events_title(); ?></span></h1>
<div class="symbolbild"><img src="<?php echo piratenkleider_make_link_relative($image_url); ?>" alt="">
<?php if (isset($attribs["credits"]) && (strlen($attribs["credits"])>1)) {
echo '<div class="caption">'.$attribs["credits"].'</div>';
} ?>
</div>
</div>
<?php } ?>
<div class="skin">
<?php if (!(isset($image_url) && (strlen($image_url)>4))) { ?>
<h1 class="post-title"><span><?php tribe_events_title(); ?></span></h1>
<?php } ?>
<?php echo tribe_get_current_template(); ?>
</div>
</div>
<div class="content-aside">
<div class="skin">
<h1 class="skip"><?php _e( 'More information', 'piratenkleider' ); ?></h1>
<?php
get_piratenkleider_seitenmenu($options['zeige_sidebarpagemenu'],$options['zeige_subpagesonly'],$options['seitenmenu_mode']);
get_sidebar();
?>
</div>
</div>
</div>
<?php get_piratenkleider_socialmediaicons(2); ?>
</div>
<?php
tribe_events_after_html();
get_footer();
?>