Add Piratenkleider theme

Signed-off-by: Adrian Nöthlich <git@promasu.tech>
This commit is contained in:
2019-10-25 23:14:31 +02:00
parent ea49b99d3e
commit f86066abfc
180 changed files with 32654 additions and 0 deletions

View File

@@ -0,0 +1,85 @@
<?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();
?>

View File

@@ -0,0 +1,92 @@
<?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 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-single-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 } ?>
<div class="tribe-events-event widecolumn">
<?php the_post(); global $post; ?>
<div id="post-<?php the_ID() ?>" <?php post_class() ?>>
<h2 class="entry-title"><?php the_title() ?></h2>
<?php echo tribe_get_current_template(); ?>
<?php edit_post_link(__('Edit','piratenkleider'), '<span class="edit-link">', '</span>'); ?>
</div><!-- post -->
<?php if(tribe_get_option('showComments','no') == 'yes'){ comments_template();} ?>
</div>
</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();
?>

View File

@@ -0,0 +1,2 @@
Special Template-overwrites in use of plugin 'the-events-calendar'.