Changeset 5815
- Timestamp:
- Sep 13, 2017, 1:34:43 PM (4 years ago)
- Location:
- lliurex-www/trunk/fuentes
- Files:
-
- 7 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-www/trunk/fuentes/debian/changelog
r4011 r5815 1 lliurex-www (0.27) xenial; urgency=high 2 3 * Fixed server access through external ip 4 * Added LliureX News RSS feed 5 6 -- Jose A. Murcia <joamuran@gmail.com> Wed, 13 Sep 2017 13:32:18 +0200 7 1 8 lliurex-www (0.26) xenial; urgency=high 2 9 -
lliurex-www/trunk/fuentes/install-lliurex-www/usr/share/lliurex-www/srv/css/index.css
r3815 r5815 6 6 height: 100%; 7 7 width: 100%; 8 position: relative; 8 9 } 9 10 10 11 11 12 body{ 12 13 color: #888888; 14 margin: 0px !important; 15 padding: 0px !important; 13 16 } 14 17 … … 233 236 234 237 235 236 237 238 239 240 241 242 243 244 238 #newscontainer{ 239 /*border: 1px solid #cccccc;*/ 240 min-height: 200px; 241 max-height: 300px; 242 font-size: 1.1em; 243 font-weight: bold; 244 } 245 246 .newscontainerspan{ 247 width: 32px; 248 height: 32px; 249 margin: -3px 5px 0px -32px; 250 display: block; 251 float: left; 252 background: url(img/rss.png) no-repeat; 253 } 254 255 #lliurex_news{ 256 margin-top: 20px; 257 margin-left: -32px; 258 font-size: 0.9em; 259 overflow-y: scroll; 260 max-height: 290px; 261 } 262 263 #footer{ 264 position: fixed; 265 bottom: 32px !important; 266 height: 32px !important; 267 line-height: 32px !important; 268 border-top: 1px solid #aaaaaa; 269 background-color: #f5f5f5; 270 width: 100%; 271 margin: 0px 0px -31px 0px; 272 padding: 0px 0px 0px 20px; 273 } 274 275 276 277 278 279 280 -
lliurex-www/trunk/fuentes/install-lliurex-www/usr/share/lliurex-www/srv/getResources.php
r3815 r5815 58 58 59 59 function drawIcon($linkid, $link, $icon, $fonticon, $name, $description, $file,$type){ 60 60 //echo (gethostname()."<br>"); 61 62 if ($_SERVER['SERVER_NAME']==$_SERVER['SERVER_ADDR']){ 63 // if we are acessing remotely by IP, let's modify link to access fine 64 $protocol=explode("//", $link)[0]; 65 $url=explode("//", $link)[1]; 66 $link=$protocol."//".$_SERVER['SERVER_ADDR']."/".$url; 67 //echo($link); 68 } 69 70 // echo ("$link"."<br>"); 61 71 // check if it is a easy site 62 72 $path=explode("/", $file); -
lliurex-www/trunk/fuentes/install-lliurex-www/usr/share/lliurex-www/srv/index.php
r4063 r5815 5 5 <link rel="stylesheet" type="text/css" href="lib/bootstrap/css/bootstrap.min.css"/> 6 6 7 8 <link rel="stylesheet" type="text/css" href="css/feedek.css"/> 7 9 <link rel="stylesheet" type="text/css" href="css/index.css"/> 8 10 … … 10 12 <script src="lib/bootstrap/js/bootstrap.min.js"></script> 11 13 <script src="lib/isotope.pkgd.min.js"></script> 14 15 <script type="text/javascript" src="lib/moment-with-locales.min.js"></script> 16 <!--script type="text/javascript" src="lib/moment.min.js"></script--> 17 <script type="text/javascript" src="lib/feedek.js"></script> 12 18 13 19 … … 26 32 27 33 <!--div id="main"--> 28 34 29 35 <!-- Google Search --> 30 36 <div class="row"> … … 48 54 49 55 <div class="row" style="margin-bottom: 48px;"> 50 <div class="linkTypeSelector">51 56 <!--div class="linkTypeIcon" target="*"></div--> 52 57 <?php … … 56 61 $links="Enlaces"; 57 62 $rsc="Recursos educativos"; 63 $welcomemsg="Bienvenido al servidor ".gethostname()." (".$_SERVER['SERVER_ADDR']."). Versión de LliureX: ".shell_exec('lliurex-version -n'); 64 $lliurex_news="Notícias de LliureX"; 58 65 } else{ 59 66 $admin="Eines d'administració"; 60 67 $links="Enllaços"; 61 68 $rsc="Recursos educatius"; 69 $welcomemsg="Benvingut a ".gethostname()." (".$_SERVER['SERVER_ADDR']."). Versió de LliureX: ".shell_exec('lliurex-version -n'); 70 $lliurex_news="Notícies de LliureX"; 62 71 63 72 } 73 64 74 echo(' 75 <div class="linkTypeSelector"> 65 76 <div class="linkTypeIcon" i18n="true" target=".admin" style="background-image:url(icons/admin.png)" title="'.$admin.'" data-toggle="tooltip"></div> 66 77 <div class="linkTypeIcon" i18n="true" target=".resources" style="background-image:url(icons/resources.png)" title="'.$rsc.'" data-toggle="tooltip"></div> … … 72 83 73 84 <div id="links" class="row"> 74 <div class="grid col-md- 10col-md-offset-1" id="linksContainer">85 <div class="grid col-md-8 col-md-offset-1" id="linksContainer"> 75 86 <?php include_once("getResources.php"); ?> 76 87 <!--?php include_once("getStaticSites.php"); ?--> 77 88 </div> 78 89 90 <div class="col-md-3" id="newscontainer"> 91 <span class="newscontainerspan"></span> <?php echo ($lliurex_news);?> 92 <div id="lliurex_news"></div> 93 </div> 94 79 95 </div> 80 96 81 <div id="footer" class="row"> 82 97 </div> 98 <div id="footer"> 99 <?php echo($welcomemsg); ?> 83 100 </div> 84 </div> 101 85 102 <!--div class="col-md-1"></div> <!-- right container --> 86 103 -
lliurex-www/trunk/fuentes/install-lliurex-www/usr/share/lliurex-www/srv/js/index.js
r4010 r5815 67 67 }; 68 68 69 70 function writeNews($noticia, max, div_dst){ 71 var $xml = $($noticia); 72 73 node=$xml[0]; 74 var max_len=max; 75 if (max_len>node.entries.length) max_len=node.entries.length; 76 77 text="<ul>"; 78 79 if (max_len>0) { 80 81 for (i=0;i<max_len;i++) { 82 83 text=text+"<li><a href='"+node.entries[i].link+"'>"; 84 text=text+"<p class='newsbody'><span class='icon-caret-right'> </span>"+node.entries[i].title+"</p></a></li>"; 85 //alert(node.entries[i].title); 86 } 87 text=text+"</ul>"; 88 89 $("#"+div_dst).append(text); 90 } 91 else 92 $("#"+div_dst).append("<p class='newsbody'>No hi ha notícies en aquesta secció o no es disposa de connexió a la xarxa</p>"); 93 } 94 95 96 function parseRSS(url, callback, div_dst) { 97 $.ajax({ 98 url: document.location.protocol + '//ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=10&callback=?&q=' + encodeURIComponent(url), 99 dataType: 'json', 100 success: function(data) { 101 callback(data.responseData.feed, 7, div_dst); 102 }, 103 error: function(data) { 104 $("#"+div_dst).append("<p class='newsbody'>No hi ha notícies en aquesta secció o no es disposa de connexió a la xarxa</p>"); 105 } 106 }); 107 } 108 109 69 110 $(document).ready(function() { 70 111 … … 89 130 90 131 91 $('[data-toggle="tooltip"]').tooltip(); 132 $('[data-toggle="tooltip"]').tooltip(); 133 134 135 $('#lliurex_news').FeedEk({ 136 FeedUrl: 'http://mestreacasa.gva.es/web/lliurex/lliurex_rss/journal/rss/500003310157/LliureX', 137 MaxCount: 5, 138 DateFormat: 'DD MMMM YYYY', 139 DateFormatLang: 'ca', 140 ShowDesc: false 141 142 }); 143 144 92 145 93 146 });
Note: See TracChangeset
for help on using the changeset viewer.