예제 #1
0
파일: GWF_RSS.php 프로젝트: sinfocol/gwf3
 public function export()
 {
     header("Content-Type: application/xml; charset=UTF-8");
     $rss_date = self::displayDate($this->guessRSSDate());
     $tVars = array('items' => $this->items, 'title_link' => $this->feedURL, 'feed_title' => $this->title, 'feed_description' => $this->descr, 'language' => GWF_Language::getCurrentISO(), 'image_url' => Common::getAbsoluteURL('/favicon.ico', false), 'image_link' => $this->webURL, 'image_width' => '32', 'image_height' => '32', 'pub_date' => $rss_date, 'build_date' => $rss_date);
     return GWF_Template::templatePHPMain('rss2.php', $tVars);
 }
예제 #2
0
 public function templatePHP($file, $tVars = array())
 {
     $name = $this->getName();
     $tVars['lang'] = $this->lang;
     $tVars['module'] = $this;
     return GWF_Template::templatePHPMain("module/{$name}/{$file}", $tVars);
 }
예제 #3
0
파일: WC_HTML.php 프로젝트: sinfocol/gwf3
 public static function displayMobileFooter()
 {
     $tVars = array();
     return GWF_Template::templatePHPMain('mobile_footer.php', $tVars);
 }
예제 #4
0
 public static function display2(array $headers, array $data, $sortURL = '', $raw_head = '', $raw_body = '')
 {
     $tVars = array('headers' => $headers, 'data' => $data, 'raw_head' => $raw_head, 'raw_body' => $raw_body);
     return GWF_Template::templatePHPMain('table2.php', $tVars);
 }