Enable designer to add the class "page_breadcrumb"
This commit is contained in:
parent
b049e16634
commit
f5728a4f92
|
@ -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
|
||||
|
|
Reference in New Issue