// Timezone
$TZO = $this->get_TZO($event);
$d1 = new DateTime('now', $TZO);
$d2 = new DateTime($end_date.' '.$end_time, $TZO);
// The event is expired
if($d2 < $d1) return true;
return false;
}
// Timezone
$TZO = $this->get_TZO($event);
$d1 = new DateTime('now', $TZO);
$d2 = new DateTime($end_date.' '.$end_time, $TZO);
// The event is expired
if($d2 < $d1) return true;
return false;
}
// MEC Settings
$settings = $this->get_settings();
// Expired?
if($this->is_expired($event) and isset($settings['export_module_hide_expired']) and $settings['export_module_hide_expired']) return;
// Export module on single page is disabled
if(!isset($settings['export_module_status']) or (isset($settings['export_module_status']) and !$settings['export_module_status'])) return;
$title = isset($event->data->title) ? $event->data->title : '';
// Extract Module Params
extract($params);
ob_start();
include $path;
return $output = ob_get_clean();
}
/**
* Returns MEC currencies
<?php $this->display_data_fields($event); ?>
<div class="mec-event-info-mobile"></div>
<!-- Export Module -->
<?php echo MEC_kses::full($this->main->module('export.details', array('event' => $event))); ?>
<!-- Countdown module -->
<?php if($this->main->can_show_countdown_module($event)): ?>
<div class="mec-events-meta-group mec-events-meta-group-countdown">
<?php echo MEC_kses::full($this->main->module('countdown.details', array('event' => $this->events))); ?>
elseif($fes and isset($settings['fes_single_event_style']) and trim($settings['fes_single_event_style'])) $layout = $settings['fes_single_event_style'];
elseif(!isset($settings['single_single_style']) or (isset($settings['single_single_style']) and $settings['single_single_style'] == 'default')) $layout = 'default';
elseif(isset($settings['single_single_style']) and $settings['single_single_style'] == 'builder') $layout = 'builder';
elseif(isset($settings['single_single_style']) and $settings['single_single_style'] == 'divi-builder') $layout = 'divi-builder';
else $layout = 'modern';
include MEC::import('app.skins.single.'.$layout, true, true);
if(in_array($this->sed_method, array('m1'))) $this->main->load_sed_assets($this->settings);
$custom_output = apply_filters('mec_skin_output_html', null, $this);
if(!is_null($custom_output)) return $custom_output;
ob_start();
include $this->get_tpl_path();
return ob_get_clean();
}
/**
* Returns keyword query for adding to WP_Query
// Fetch the events
$SKO->fetch();
// Return the output
return $SKO->output();
}
/**
* Returns default skin
* @author Webnus <info@webnus.net>
$defaults = array('maximum_dates'=>(isset($this->settings['booking_maximum_dates']) ? $this->settings['booking_maximum_dates'] : 6));
$atts = apply_filters('mec_vsingle_atts', $this->parse($event_id, wp_parse_args($atts, $defaults)));
$skin = 'single';
return $this->skin($skin, $atts);
}
/**
* Do the category archive skin and returns its output
* @author Webnus <info@webnus.net>
*/
public function single()
{
// Import Render Library
$render = MEC::getInstance('app.libraries.render');
return $render->vsingle(array('id'=>get_the_ID()));
}
/**
* Load category archive page
* @author Webnus <info@webnus.net>
<a href="/login" class="button with-icon">Connectez-vous</a>
</div>
<?php
}
?>
<?php $MEC = MEC::instance(); echo MEC_Kses::full($MEC->single()); ?>
<?php endwhile; // end of the loop. ?>
</section>
</main>
$__data = $data;
return (static function () use ($__path, $__data) {
extract($__data, EXTR_SKIP);
return require $__path;
})();
}
throw new FileNotFoundException("File does not exist at path {$path}.");
}
return (static function () use ($__path, $__data) {
extract($__data, EXTR_SKIP);
return require $__path;
})();
}
throw new FileNotFoundException("File does not exist at path {$path}.");
}
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
$this->files->getRequire($path, $data);
} catch (Throwable $e) {
$this->handleViewException($e, $obLevel);
}
return ltrim(ob_get_clean());
* @param array $data
* @return string
*/
public function get($path, array $data = [])
{
return $this->evaluatePath($path, $data);
}
/**
* Get the evaluated contents of the view at the given path.
*
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
* Get the data bound to the view instance.
*
// clear out the sections for any separate views that may be rendered.
$this->factory->incrementRender();
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
* @throws \Throwable
*/
public function render(callable $callback = null)
{
try {
$contents = $this->renderContents();
$response = isset($callback) ? $callback($this, $contents) : null;
// Once we have the contents of the view, we will flush the sections if we are
// done rendering all views so that there is nothing left hanging over when
do_action('get_header');
}
?>
<div id="app">
<?php echo view(app('sage.view'), app('sage.data'))->render(); ?>
</div>
<?php do_action('get_footer'); ?>
<?php wp_footer(); ?>
</body>
*
* @param string $template The path of the template to include.
*/
$template = apply_filters( 'template_include', $template );
if ( $template ) {
include $template;
} elseif ( current_user_can( 'switch_themes' ) ) {
$theme = wp_get_theme();
if ( $theme->errors() ) {
wp_die( $theme->errors() );
}
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}
<?php
/**
* WordPress View Bootstrapper
*/
define('WP_USE_THEMES', true);
require __DIR__ . '/wp/wp-blog-header.php';
Exception
|
---|
Exception: DateTime::__construct(): Failed to parse time string (2022-12-02 22:00 PM) at position 17 (P): The timezone could not be found in the database at /web-sites/ppl/multisite/web/app/plugins/modern-events-calendar/app/libraries/main.php:9226 at DateTime->__construct() (/web-sites/ppl/multisite/web/app/plugins/modern-events-calendar/app/libraries/main.php:9226) at MEC_main->is_expired() (/web-sites/ppl/multisite/web/app/plugins/modern-events-calendar/app/modules/export/details.php:11) at include('/web-sites/ppl/multisite/web/app/plugins/modern-events-calendar/app/modules/export/details.php') (/web-sites/ppl/multisite/web/app/plugins/modern-events-calendar/app/libraries/main.php:2507) at MEC_main->module() (/web-sites/ppl/multisite/web/app/themes/communaute/webnus/modern-events-calendar/app/skins/single/default.php:103) at include('/web-sites/ppl/multisite/web/app/themes/communaute/webnus/modern-events-calendar/app/skins/single/default.php') (/web-sites/ppl/multisite/web/app/plugins/modern-events-calendar/app/skins/single/tpl.php:55) at include('/web-sites/ppl/multisite/web/app/plugins/modern-events-calendar/app/skins/single/tpl.php') (/web-sites/ppl/multisite/web/app/plugins/modern-events-calendar/app/libraries/skins.php:296) at MEC_skins->output() (/web-sites/ppl/multisite/web/app/plugins/modern-events-calendar/app/libraries/render.php:487) at MEC_render->skin() (/web-sites/ppl/multisite/web/app/plugins/modern-events-calendar/app/libraries/render.php:391) at MEC_render->vsingle() (/web-sites/ppl/multisite/web/app/plugins/modern-events-calendar/mec-init.php:265) at MEC->single() (/web-sites/ppl/multisite/web/app/themes/communaute/single-mec-events.php:40) at require('/web-sites/ppl/multisite/web/app/themes/communaute/single-mec-events.php') (/web-sites/ppl/multisite/vendor/illuminate/filesystem/Filesystem.php:107) at Illuminate\Filesystem\Filesystem::Illuminate\Filesystem\{closure}() (/web-sites/ppl/multisite/vendor/illuminate/filesystem/Filesystem.php:108) at Illuminate\Filesystem\Filesystem->getRequire() (/web-sites/ppl/multisite/vendor/illuminate/view/Engines/PhpEngine.php:58) at Illuminate\View\Engines\PhpEngine->evaluatePath() (/web-sites/ppl/multisite/vendor/illuminate/view/Engines/PhpEngine.php:38) at Illuminate\View\Engines\PhpEngine->get() (/web-sites/ppl/multisite/vendor/illuminate/view/View.php:139) at Illuminate\View\View->getContents() (/web-sites/ppl/multisite/vendor/illuminate/view/View.php:122) at Illuminate\View\View->renderContents() (/web-sites/ppl/multisite/vendor/illuminate/view/View.php:91) at Illuminate\View\View->render() (/web-sites/ppl/multisite/web/app/themes/communaute/index.php:19) at include('/web-sites/ppl/multisite/web/app/themes/communaute/index.php') (/web-sites/ppl/multisite/web/wp/wp-includes/template-loader.php:106) at require_once('/web-sites/ppl/multisite/web/wp/wp-includes/template-loader.php') (/web-sites/ppl/multisite/web/wp/wp-blog-header.php:19) at require('/web-sites/ppl/multisite/web/wp/wp-blog-header.php') (/web-sites/ppl/multisite/web/index.php:6) |