Enable designer to add the class "page_breadcrumb"

This commit is contained in:
chris 2013-02-06 21:06:08 +08:00
parent b049e16634
commit f5728a4f92
1 changed files with 1 additions and 3 deletions

View File

@ -97,9 +97,7 @@ module ParserFrontEnd
def parse_breadcrumb(body, page, site)
page_breadcrumb = body.css('.page_breadcrumb').first
if page_breadcrumb
res = "<div id='#{page_breadcrumb['id']}', class='#{page_breadcrumb['class']}'>"
res << "<div class='dymanic_load' path='#{front_show_breadcrumb_path}'></div>"
res << "</div>"
res = "<orbit_front path='\#{front_show_breadcrumb_path(@item)}' class='dymanic_load widget'></orbit_front>"
fragment = Nokogiri::HTML::DocumentFragment.new(body, res)
page_breadcrumb.swap(fragment)
else