| ... | ... |
@@ -0,0 +1,43 @@ |
| 1 |
+<?php |
|
| 2 |
+function DisplayNewsDefault(){
|
|
| 3 |
+ |
|
| 4 |
+ ?> |
|
| 5 |
+ <div class="row"> |
|
| 6 |
+ <div class="col-lg-12"> |
|
| 7 |
+ <div class="panel panel-primary"> |
|
| 8 |
+ <div class="panel-heading"><i class="fa fa-newspaper-o fa-fw"></i> News.fr </div> |
|
| 9 |
+ <div class="panel-body"> |
|
| 10 |
+ <div class="row"> |
|
| 11 |
+ <div class="col-md-6"> |
|
| 12 |
+ <div class="panel panel-default"> |
|
| 13 |
+ <div class="panel-body"> |
|
| 14 |
+ <p>A simple, responsive web interface to see french newspaper feeds. |
|
| 15 |
+ The original responsive template is from <a href="https://github.com/billz/raspap-webgui"><strong>raspap-webgui</strong></a></p> |
|
| 16 |
+ <h2>Supported Feeds</h2> |
|
| 17 |
+ <ul> |
|
| 18 |
+ <?php |
|
| 19 |
+ $location="sources/news-constants.php"; |
|
| 20 |
+ exec('awk -F"\'" \'{print $(NF-1)}\' '.$location.'|grep "http"', $contents, $return);
|
|
| 21 |
+ $cpt=0; |
|
| 22 |
+ foreach( $contents as $content ) {
|
|
| 23 |
+ echo '<li><a href="'.$content.'" target="feed-'.$cpt.'">'.$content.'</a></li>'; |
|
| 24 |
+ $cpt++; |
|
| 25 |
+ } |
|
| 26 |
+ ?> |
|
| 27 |
+ </ul> |
|
| 28 |
+ |
|
| 29 |
+ <h2>License</h2> |
|
| 30 |
+ <p>GPLv3 See the <a href="https://git.kawi.fr/ycawidro/news/blob/master/LICENSE" target="license"><strong>LICENSE</strong></a> file.</p> |
|
| 31 |
+ </div><!-- ./panel-body --> |
|
| 32 |
+ </div><!-- ./panel panel-default --> |
|
| 33 |
+ </div><!-- ./col-md-6 --> |
|
| 34 |
+ </div> <!-- /row --> |
|
| 35 |
+ </div><!-- /.panel-body --> |
|
| 36 |
+ <div class="panel-footer"><a href="https://git.kawi.fr/ycawidro/news" target="git">https://git.kawi.fr/ycawidro/news</a></div> |
|
| 37 |
+ </div><!-- /.panel-default --> |
|
| 38 |
+ </div><!-- /.col-lg-12 --> |
|
| 39 |
+ </div><!-- /.row --> |
|
| 40 |
+ <?php |
|
| 41 |
+} |
|
| 42 |
+ |
|
| 43 |
+?> |
| ... | ... |
@@ -22,9 +22,10 @@ include_once( 'includes/slatefr.php' ); |
| 22 | 22 |
include_once( 'includes/vicefr.php' ); |
| 23 | 23 |
include_once( 'includes/lesinrocks.php' ); |
| 24 | 24 |
include_once( 'includes/numerama.php' ); |
| 25 |
+include_once( 'includes/default.php' ); |
|
| 25 | 26 |
|
| 26 | 27 |
$output = $return = 0; |
| 27 |
-$page = "lemonde"; |
|
| 28 |
+$page = ""; |
|
| 28 | 29 |
if( isset($_GET['page'])) {
|
| 29 | 30 |
$page = $_GET['page']; |
| 30 | 31 |
} |
| ... | ... |
@@ -147,7 +148,7 @@ $theme_url = 'dist/css/' . $theme; |
| 147 | 148 |
DisplayNewsNumerama(); |
| 148 | 149 |
break; |
| 149 | 150 |
default: |
| 150 |
- DisplayNewsLeMonde(); |
|
| 151 |
+ DisplayNewsDefault(); |
|
| 151 | 152 |
} |
| 152 | 153 |
?> |
| 153 | 154 |
</div><!-- /#page-wrapper --> |