function wt_render_single_page() { global $wp_query; //echo "wtpage".$wp_query->query_vars["wtpage"]."id=".$wp_query->query_vars["id"]; $page = get_query_var("wtpage") ? get_query_var("wtpage") : $_GET["wtpage"]; $id = get_query_var("id") ? get_query_var("id") : $_GET["id"]; if ($page && $id) { $r = new WT_Renderer(); $r->single($page, $id); exit; } }
public function events($options = array()) { $r = new WT_Renderer(); return $r->events(array_merge(array("date_range" => "all", 'artist' => $this->id, 'group_by_tour' => 0), $options), null, "wordtour_events"); }
public function events($options = array()) { $r = new WT_Renderer(); return $r->events(array_merge(array("date_range" => "upcoming", "venue" => $this->id), $options), null, "wordtour_events"); }
} ?> </div> <?php wt_dynamic_panel_end(); ?> </form> <?php } ?> <?php if ($_GET["page"] == "post") { $event = new WT_Event($_GET["event_id"]); $renderer = new WT_Renderer(); $event_id = $_GET["event_id"]; $nonce = wp_create_nonce(WT_Post::NONCE_INSERT); $title = ""; ?> <form> <div id="dialog-alert" class='wordtour-alert'></div> <input type="hidden" name="_post_nonce" value="<?php echo $nonce; ?> "></input> <input type="hidden" name="post_event_id" value="<?php echo $event_id; ?> "></input> <?php
function wt_render_events($attr = array()) { $renderer = new WT_Renderer(); echo $renderer->events($attr, null, "wordtour_events"); }
/** @see WP_Widget::widget */ function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', $instance['title']); ?> <?php echo $before_widget; ?> <?php if ($title) { echo $before_title . $title . $after_title; } ?> <?php $renderer = new WT_Renderer(); $renderer->events($instance); ?> <?php echo $after_widget; ?> <?php }