I installed Eventon Plugin as an event calendar, which works fine with shortcodes inside a page of lay theme.
The plugin also generates a page for each event (custom post type?), and I was able to configure it, but it doesn't work perfectly:
- example of an event: https://tonhalle.at/eventon/der-toepferbrunch-21/
- if logged in, the page shows the event, the site title (logo) and the hamburger menu, and a "back to all events" button which I hard coded into the plugin page template
- but it doesn't show the footer
- if not logged in, it even shows only the site title (logo) and the event, but no hamburger, no footer and no "back to all events" button
Below you can find the code of the php file that is used by the plugin for the single event pages. It's a mix from the lay theme page.php and from the plugins code.
Could anybody help…
- why are some parts only shown wenn logged in?
- why is the footer never shown?
It's probably just some small changes in the php below, but I don't know where (tried a few things already, nothing worked).
Thanks in advance!
<?php
get_header();
?>
<?php echo LayIntro::getMarkup();
echo LaySearch::getMarkup();
if ( post_password_required( $post ) ) {
echo get_the_password_form();
} else {
if ( class_exists('WooCommerce') && have_posts() ) {
global $post;
$content = get_the_content();
if(trim($content) != '') {
?>
<div id="lay-woocommerce" class="lay-textformat-parent">
<?php
the_content();
?>
</div><!-- #lay-woocommerce -->
<?php
}
}
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) { exit; }
do_action('eventon_before_header');
// you can also pass a lang value in below function to create fixed lang single event page.
// this value will be overriden by language corresponding events
do_action('eventon_before_main_content');
?>
<div id='main_single'>
<div class='evo_page_body'>
<?php do_action('eventon_single_content_wrapper');?>
<?php /* The loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php evo_get_template_part('content','single-event');?>
<?php endwhile; ?>
<div class="eventpage_button"><a class="laybutton1 laybutton" href="https://tonhalle.at/events/" data-title="Event-Übersicht" data-type="page">Zur Event-Übersicht</a></div>
</div>
<?php do_action('eventon_single_sidebar'); // DEP ?>
<?php do_action('eventon_single_after_loop'); ?>
</div><!-- #primary -->
<?php do_action('eventon_after_main_content');
$layout = Lay_Layout::getLayoutInit();
echo $layout;
?>
<div id="lay-overlays">
<?php
echo Lay_Overlays::getOverlays($layout);
?>
</div>
<?php
echo ProjectsOverlaysOptions::getMarkup();
?>
<?php
}
get_footer();