public static function mobiDisplay() { $words = VWSCore::pullwords(); foreach ($words as $word) { $id = $word['id']; $key = $word['key']; $pho = $word['text']; $mp3 = $word['sound']; $pho = $word['pho']; $arr[] = '<li style="listy-style: none;"><span id="' . $id . '"></span><span class="author">' . $key . '</span> '; if ($pho != '') { $arr[] .= '/' . $pho . '/ ' . '<br />'; } $def = $word['def']; $def_pos = $word['dpos']; $arr[] .= $def_pos . ' ' . $def . '<br />'; $senO = $word['ses']; $senT = $word['scs']; $sen_pos = $word['spos']; if ($senO != '' || $senT != '') { if ($sen_pos != '') { $sen_pos = ' [' . $sen_pos . ']'; } $arr[] .= $senO . $sen_pos . '<br />'; $arr[] .= $senT . '<br />'; } $c = $word['morc']; $m = $word['morm']; if ($c != '' || $m != '') { $arr[] .= '<p class="description">[ ' . $c . ': '; $arr[] .= $m . ' ]</p>'; } $arr[] .= '</li>'; } return $arr; }
xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" > <channel> <title>{$vw_sitename} - Project VaynWords</title> <atom:link href="{$site}/feed" rel="self" type="application/rss+xml" /> <link>http://lab.jixia.org/project_vws/</link> <description>Project VaynWords - Study English with Twitter and RSS</description> <lastBuildDate>{$date}</lastBuildDate> <generator>http://elnode.com/</generator> <language>en</language> XSL; header("Content-Type: application/rss+xml"); echo $rsshead; $words = VWSCore::pullwords(); foreach ($words as $word) { $id = $word['id']; $key = $word['key']; $date = date(DATE_RSS, $word['date']); $pho = $word['pho'] ? "/{$word['pho']}/" : ''; $rssbody = "\n<item>\n<title>{$key}</title>\n<link>{$site}/index.php#{$id}</link>\n<description>\n<p>{$key} {$pho}</p>"; $def = $word['def']; $def_pos = $word['dpos']; $rssbody .= "<p>{$def_pos} {$def}</p>"; $seno = $word['ses']; $sent = $word['scs']; $sen_pos = $word['pos']; if ($seno != '' || $sent != '') { if ($sen_pos != '') { $sen_pos = ' [' . $sen_pos . ']';