[Hejes-devel] [958] moved nyest.hu right sidebar blog feed code to branches/onhold

hejes-devel at nytud.hu hejes-devel at nytud.hu
Fri Sep 27 16:23:36 CEST 2013


Revision: 958
Author:   mihaltz
Date:     2013-09-27 16:23:36 +0200 (Fri, 27 Sep 2013)
Log Message:
-----------
moved nyest.hu right sidebar blog feed code to branches/onhold

Added Paths:
-----------
    branches/onhold/
    branches/onhold/web2py/
    branches/onhold/web2py/applications/
    branches/onhold/web2py/applications/helyesiras_webdev/
    branches/onhold/web2py/applications/helyesiras_webdev/views/
    branches/onhold/web2py/applications/helyesiras_webdev/views/right_sidebar.html

Added: branches/onhold/web2py/applications/helyesiras_webdev/views/right_sidebar.html
===================================================================
--- branches/onhold/web2py/applications/helyesiras_webdev/views/right_sidebar.html	                        (rev 0)
+++ branches/onhold/web2py/applications/helyesiras_webdev/views/right_sidebar.html	2013-09-27 14:23:36 UTC (rev 958)
@@ -0,0 +1,45 @@
+{{from blogutil import get_feed}}
+
+<div id="helyesiras-widget-2">
+	<dl>
+
+	    <dt>
+		    <img src="http://htp-devel.nytud.hu/helyesiras_webdev/static/widget/w2_head_top.png">
+            <h2>Facebook</h2></dt>
+        <dd class="init-open active"><div class="helyesiras-widget-2-dd-inner"><div class="helyesiras-widget-2-dd-inner-top"><iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fhelyesiras.hu&width=210&height=258&show_faces=true&colorscheme=light&stream=false&show_border=false&header=false&appId=1395313737350712" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:210px; height:258px;" allowTransparency="true"></iframe></div></div></dd>
+
+	    <dt>
+		    <img src="http://htp-devel.nytud.hu/helyesiras_webdev/static/widget/w2_head_top2.png">
+		    <h2>Blog</h2>
+		</dt>
+		 <dd class="init-open active">
+		 <div class="helyesiras-widget-2-dd-inner">
+		 <div class="helyesiras-widget-2-dd-inner-top">
+{{
+# top 5 blog post titles:
+feed = get_feed(dbblog, URL(c='blog', f='index', host=True, extension=''), 
+                        URL(c='blog', f='show', host=True, extension=''),
+                        URL(c='blog', f='feed', host=True, extension='rss'), limit=5)
+for item in feed.get('entries', []):
+  = P( A( item.get('title', '(notitle)'), _href=item.get('link', URL(c='blog', f='index'))))
+pass
+= P( A( 'További blogbejegyzések...', _href=URL(c='blog', f='index')))
+}}
+     </div></div></dd>
+
+	    <dt>
+        	<img src="http://htp-devel.nytud.hu/helyesiras_webdev/static/widget/w2_head_top2.png">
+        	<h2>Nyest.hu hírek</h2>
+      	</dt>
+        <dd class="init-open active"><div class="helyesiras-widget-2-dd-inner"><div class="helyesiras-widget-2-dd-inner-top">
+{{=LOAD(c='blog', f='nyest_hirek', ajax=True, content='Betöltés...')}}
+        </div></div></dd>
+        
+	    <dt>
+        	<img src="http://htp-devel.nytud.hu/helyesiras_webdev/static/widget/w2_head_top2.png">
+        	<h2>Ketsoros cimsor is elferjen ha kell</h2>
+       	</dt>
+        <dd><div class="helyesiras-widget-2-dd-inner"><div class="helyesiras-widget-2-dd-inner-top"></div></div></dd>
+
+	</dl>
+</div> 




More information about the Hejes-devel mailing list