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)
|
def parse_breadcrumb(body, page, site)
|
||||||
page_breadcrumb = body.css('.page_breadcrumb').first
|
page_breadcrumb = body.css('.page_breadcrumb').first
|
||||||
if page_breadcrumb
|
if page_breadcrumb
|
||||||
res = "<div id='#{page_breadcrumb['id']}', class='#{page_breadcrumb['class']}'>"
|
res = "<orbit_front path='\#{front_show_breadcrumb_path(@item)}' class='dymanic_load widget'></orbit_front>"
|
||||||
res << "<div class='dymanic_load' path='#{front_show_breadcrumb_path}'></div>"
|
|
||||||
res << "</div>"
|
|
||||||
fragment = Nokogiri::HTML::DocumentFragment.new(body, res)
|
fragment = Nokogiri::HTML::DocumentFragment.new(body, res)
|
||||||
page_breadcrumb.swap(fragment)
|
page_breadcrumb.swap(fragment)
|
||||||
else
|
else
|
||||||
|
|
Reference in New Issue