Commits

Anonymous committed 2150935

Add facebook like plugin

Comments (0)

Files changed (4)

resources/css/theme.css

 	font-weight:bold;
 }
 
+a.comment-link{
+    float:right;
+    margin:0 20px;
+}
+
 
 #side-menu{
 	background: rgba(255,255,255,0.7);
 # Extension
 DISQUSS = 'False'      #Disquss is a comment system for blog.  http://disqus.com
 ANALYTICS = 'False'    #Google analytics integration
+FBLIKE = 'False'       #Facebook Like Button. Set this to True will enable fblike automatically on every post. No additional action required.
 

templates/front/post.html

 		{% endautoescape %}
 	</p>
 	<div class="clear"  style="height:50"></div>
+    {% if fblike %}
+    <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="{{ post.get_absolute_url }}"></fb:like>
+    {% endif %}
+    
 	{% if discuss %}
 	<!-- Put Disquss Script Here. -->
 	{% endif %}

templates/front/stream.html

 		{% endautoescape %}
 
 	</p>
-	<hr style="color:white">
-	<div class="clear"></div>
+    
+    {% if fblike %}
+    <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="{{ p.get_absolute_url }}" layout="button_count"></fb:like>	
+    {% endif %}
+    
+    {% if discuss %}
+    <a class="comment-link" href="{{ p.get_absolute_url }}#disqus_thread">Comments</a>
+	{% endif %}
+    
+    <div class="clear"></div>
 {% endfor %}
 
 {% if paging.prev %}<a href="/?page={{ paging.prev }}">Prev Posts</a> &nbsp;&nbsp;{% endif %}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.