public function html() { if ($this->data) { $tpl = new WT_Theme(); $tpl->comment(array("comments" => array($this->template()))); } return ""; }
public function panel_markup($event_id = 0) { if ($event_id) { $users = $this->get_users_by_event($event_id); $tpl = new WT_Theme(); echo $tpl->rsvp($this->template($users)); } }
public function event($atts) { require_once WT_PLUGIN_PATH . 'admin/template.php'; require_once WT_PLUGIN_PATH . 'admin/handlers.php'; require_once WT_PLUGIN_PATH . 'dwoo/dwooAutoload.php'; $dwoo = new Dwoo(); if ($atts["id"]) { $event = new WT_Event($atts["id"]); $event->retrieve(); if ($event->data) { $theme = new WT_Theme(); return $theme->post_event($event->template(), false); } } return ""; }
<?php $theme = new WT_Theme(); if ($code == "wordtour_events") { if ($group_by === "DATE") { $html .= $theme->events_by_date(array("attr" => $settings, "tpl" => $tpl), false); } else { $theme_attr = array("attr" => $settings, "tpl" => $tpl); if ($navigation && $navigation_attr) { $theme_attr["navigation"] = $theme->navigation($navigation_attr, false); } $html .= $theme->events($theme_attr, false, $theme_file_name); } $html .= wt_load_script("all", $theme_name); $html .= wt_load_script("events", $theme_name); } if ($code == "wordtour_artists") { $html .= $theme->artists($tpl, false, $theme_file_name); $html .= wt_load_script("all", $theme_name); $html .= wt_load_script("artists", $theme_name); } if ($code == "wordtour_tours") { $html .= $theme->tours($tpl, false, $theme_file_name); $html .= wt_load_script("all", $theme_name); $html .= wt_load_script("tours", $theme_name); } if ($code == "wordtour_venues") { $html .= $theme->venues($tpl, false, $theme_file_name); $html .= wt_load_script("all", $theme_name); $html .= wt_load_script("tours", $theme_name); }