public function rss_header() { $version = SMOBTools::version(); $owner = SMOBTools::ownername(); $title = "SMOB Hub of {$owner}"; $ts = date('c'); return "<?xml version='1.0' encoding='utf-8'?>\n\n<rdf:RDF\n\txmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'\n\txmlns:dc='http://purl.org/dc/elements/1.1/'\n\txmlns='http://purl.org/rss/1.0/'\n\txmlns:dcterms='http://purl.org/dc/terms/'\n\txmlns:cc='http://web.resource.org/cc/'\n\txmlns:content='http://purl.org/rss/1.0/modules/content/'\n\txmlns:admin='http://webns.net/mvcb/'\n\txmlns:atom='http://www.w3.org/2005/Atom'\n> \n\n<channel rdf:about='" . SMOB_ROOT . "'>\n\t<title>{$title}</title>\n\t<link>" . SMOB_ROOT . "</link>\n\t<atom:link rel='hub' href='" . HUB_URL_SUBSCRIBE . "'/>\n\t<description>{$title}</description>\n\t<dc:creator>{$owner}</dc:creator>\n\t<dc:date>{$ts}</dc:date>\n\t<admin:generatorAgent rdf:resource='http://smob.me/#smob?v={$version}' />\n\t<items>\n\t\t<rdf:Seq>\n"; }
function initial_rss_file() { $version = SMOBTools::version(); $owner = SMOBTools::ownername(); $title = "SMOB Hub of {$owner}"; $ts = date('c'); $rssfile = fopen(FEED_FILE_PATH, 'w'); $rss = "<?xml version='1.0' encoding='utf-8'?>\n<rdf:RDF\n\txmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'\n\txmlns:dc='http://purl.org/dc/elements/1.1/'\n\txmlns='http://purl.org/rss/1.0/'\n\txmlns:dcterms='http://purl.org/dc/terms/'\n\txmlns:cc='http://web.resource.org/cc/'\n\txmlns:content='http://purl.org/rss/1.0/modules/content/'\n\txmlns:admin='http://webns.net/mvcb/'\n\txmlns:atom='http://www.w3.org/2005/Atom'\n> \n\n<channel rdf:about='" . SMOB_ROOT . "'>\n\t<title>{$title}</title>\n\t<link>" . SMOB_ROOT . "</link>\n\t<atom:link rel='hub' href='" . HUB_URL_SUBSCRIBE . "'/>\n\t<description>{$title}</description>\n\t<dc:creator>{$owner}</dc:creator>\n\t<dc:date>{$ts}</dc:date>\n\t<admin:generatorAgent rdf:resource='http://smob.me/#smob?v={$version}' />\n\t<items>\n\t\t<rdf:Seq>\n\t\t</rdf:Seq>\n\t</items>\n</channel>\n</rdf:RDF>\n"; fwrite($rssfile, $rss); error_log("DEBUG: Created initial RSS file", 0); fclose($rssfile); }
public function footer() { $version = SMOBTools::version(); ?> </div> <div class="right"> <h2>Navigation</h2> <ul> <li><a href='<?php echo SMOB_ROOT; ?> '>Home</a></li> <li><a href='<?php echo SMOB_ROOT; ?> map'>Map view</a></li> <li><a href='<?php echo SMOB_ROOT; ?> sparql'>SPARQL</a></li> </ul> <h2>People</h2> <ul> <li><a href='<?php echo SMOB_ROOT; ?> me'>Owner</a> [<a href='<?php echo SMOB_ROOT; ?> me/rss'>RSS</a>]</li> <li><a href='<?php echo SMOB_ROOT; ?> followings'>Followings</a></li> <li><a href='<?php echo SMOB_ROOT; ?> followers'>Followers</a></li> <li><a href='<?php echo SMOB_ROOT; ?> replies'>@replies</a></li> </ul> <h2>Hub owner</h2> <ul> <li><a href='<?php echo SMOB_ROOT; ?> auth'>Authenticate</a></li> </ul> </div> <div style="clear: both;"> </div> </div> <div id="footer"> Powered by <a href="http://smob.me/">SMOB</a> <?php echo $version; ?> thanks to <a href="http://www.w3.org/2001/sw/">Semantic Web</a> and <a href="http://linkeddata.org">Linked Data</a> technologies.<br/> This page is valid <a href="http://validator.w3.org/check?uri=referer">XHTML</a> and <a href="http://www.w3.org/2007/08/pyRdfa/extract?uri=referer">contains RDFa markup</a>. <br/> </div> </div> <script type='text/javascript'> var options, a; jQuery(function(){ options = { serviceUrl:'<?php echo SMOB_ROOT; ?> ajax/geonames.php', minChars:2, onSelect: function(value, data) { $('#location_uri').val(data); }, }; a = $('#location').autocomplete(options); }); </script> </body> </html> <?php }