コード例 #1
0
ファイル: festival.php プロジェクト: Torthu/kvarteret_theme
 * Template Name: Events
 * The Template for displaying dak_event_wp events, festival and agenda
 *
 * @package WordPress
 * @subpackage kvarteret
 * @since Kvarteret 1.0
 */
//require_once('dew_template.php');
// if this is a full event, attach wp_title filter
$festival_id = 0;
$festival_id = empty($_GET['festival_id']) ? $wp_query->get('festival_id') : $_GET['festival_id'];
$festival_id = intval($festival_id);
if ($festival_id > 0) {
    $eventOptions = get_option('optionsDakEventsWp');
    $client = new eventsCalendarClient($eventOptions['eventServerUrl'], null, $eventOptions['cache'], $eventOptions['cacheTime']);
    $arr = $client->festival($festival_id);
    $rawFestival = $arr->data[0];
    add_filter('wp_title', 'dew_arrangement_template_wp_title', 5, 3);
}
if ($festival_id > 0) {
    $dew_title = $rawFestival->title;
    $title = apply_filters('the_title', $dew_title);
} else {
    $title = the_title('', '', false);
}
get_header();
?>
			<?php 
echo dew_agenda_menu_shortcode_handler();
?>
			<div id="content" role="main">