Commit b5e409a4 authored by yPhil's avatar yPhil
Browse files

Merge branch 'dev'

parents e7a2e4e5 f77cb28e
......@@ -43,11 +43,11 @@ Make the page your home page, and read it every morning. You know instantly what
#### Annex: A simple local server
To run NWS locally, simply install a basic LAMP server:
To run NWS locally, simply install a basic PHP server:
- Install the server components: `sudo apt install apache2 php7.0 php7.0-xml libapache2-mod-php7.0` (you may have to log in and out)
- Copy NeWS to the HTML root: `cp -r nws /var/www/html/`
- Point your browser to http://localhost/nws
- Install the server components: `sudo apt install php7.0 php7.0-xml` (you may have to log in and out)
- Start the server in the NWS directory : `php -S localhost:8000`
- Point your browser to http://localhost:8000/nws
### Usage
<?xml version="1.0" encoding="utf-8"?>
img can be either { none first all }
photo can be either {true false}
<url tab="news"></url>
<url tab="news"></url>
<url tab="news" img="none"></url>
<url tab="news"></url>
<url tab="news">;hl=en&amp;pz=1&amp;ned=us&amp;output=rss</url>
<url tab="example" photo="true" numItems="1"></url>
<url tab="example" numItems="10"></url>
<url tab="example" numItems="8"></url>
<url tab="example" photo="true" numItems="3"></url>
<url tab="example" numItems="6" photo="true"></url>
<url tab="example"></url>
<url tab="example"></url>
<url tab="example"></url>
<url tab="example"></url>
<url tab="example"></url>
<url tab="example" numItems="1" photo="true"></url>
<url tab="example" photo="true" numItems="6"></url>
<!-- disabled feeds
<url tab="snd"></url>
<url tab="snd"></url>
<url tab="snd"></url>
Remember to encode & with $amp; in your feed's URI
<url tab="example"></url>
<url tab="example"></url>
......@@ -17,7 +17,7 @@ function removeslashes($string) {
return stripslashes(trim($string));
$fallback_favicon = "img/rss.png";
$fallback_favicon = "../img/rss.png";
// 7889400 secs is a quarter
......@@ -140,7 +140,7 @@ function reparse($u, $numItems, $imgMode, $photoblog) {
<div class="feed" title ="'.$feedLink.'">
<div class="'.$title_class.'">
<span class="favicon">
<a class="nws-feed-icon" href="'.$u.'"><img src="'.$favicon.'" /></a>&nbsp;<a class="nws-feed-title" href="'.$feedLink.'" title="'.$title_link.'">'.$feedTitle.'</a>
<a class="nws-feed-icon" href="'.$u.'"><img src="libs/'.$favicon.'" /></a>&nbsp;<a class="nws-feed-title" href="'.$feedLink.'" title="'.$title_link.'">'.$feedTitle.'</a>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment