By %(comment_by_fullname)s
' % args, - ref_doctype='Blog Post', ref_docname=blog.name) - - return comment_html.replace("\n", "") - -def get_blog_content(blog_page_name): - import webnotes.webutils - content = webnotes.webutils.get_html(blog_page_name) - import webnotes.utils - content = webnotes.utils.escape_html(content) - return content - -def get_blog_template_args(): - args = { - "categories": webnotes.conn.sql_list("select name from `tabBlog Category` order by name") - } - args.update(webnotes.doc("Blog Settings", "Blog Settings").fields) - return args diff --git a/website/helpers/blog_feed.py b/website/helpers/blog_feed.py deleted file mode 100644 index 577cde61232..00000000000 --- a/website/helpers/blog_feed.py +++ /dev/null @@ -1,61 +0,0 @@ -# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. -# License: GNU General Public License v3. See license.txt - -from __future__ import unicode_literals -""" -Generate RSS feed for blog -""" - -rss = u""" -- {% if categories %} -
Explore posts by categories
- -- {% endif %} - -
{{ title }}
- - --
- {% include "app/website/templates/html/blogger.html" %} - {% endif %} -
-
{{ texts.comments }}
- -
Subscribe
--
- -
-
-
-RSS Feed
-
{{ blogger_info.full_name }}
-{{ blogger_info.bio }}
- -{{ comment.comment }}
--
%(title)s
\ -%(content)s
\ -\ - \ - %(full_name)s wrote this on %(published)s / %(comment_text)s
\ -', b)).appendTo($wrap); - }); - blog.start += (data.length || 0); - if(!data.length || data.length < 20) { - if(blog.start) { - $("#next-page").toggle(false) - .parent().append("
About Us
Some Introduction about your company that you would like your website visitor to know. More people than you think will read your About page. People always like to know who the are doing business with. Be authentic and avoid using jargon like 'value added services' etc. Be sure to update your company history and list of key team members in Website > About Us Settings
" }} - {% if obj.doclist.get({"doctype":"Company History"}) %} -{{ obj.doc.company_history_heading or "Company History" }}
- {% for d in obj.doclist.get({"doctype":"Company History"}) %} -{{ d.year }}
-{{ d.highlight }}
-{{ obj.doc.team_members_heading or "Team Members" }}
- {% for d in obj.doclist.get({"doctype":"About Us Team Member"}) %} -{{ d.full_name }}
-{{ d.bio }}
- -{{ blog_title }}
- {% if blog_introduction %} -{{ blog_introduction }}
- {% endif %} - --
{{ obj.doc.heading or "Contact Us"}}
-- -
-- -
-- -
-- -
-{{ obj.address.address_title }}
- {% if obj.address.address_line1 %} - {{ obj.address.address_line1 }}- {% endif %} - {% if obj.address.address_line2 %} - {{ obj.address.address_line2 }}
- {% endif %} - {% if obj.address.city %} - {{ obj.address.city }}
- {% endif %} - {% if obj.address.state %} - {{ obj.address.state }}
- {% endif %} - {% if obj.address.pincode %} - {{ obj.address.pincode }}
- {% endif %} - {% if obj.address.country %} - {{ obj.address.country }}
- {% endif %} -
"); - } - - $(repl('\ -
Blog Writers
- {% if writers_introduction %} -{{ writers_introduction }}
- {% endif %} -- {% for blogger_info in bloggers %} - {% include "app/website/templates/html/blogger.html" %} - {% endfor %} -
{{ texts.first_comment }}
-