diff --git a/lib/parsers/parser_front_end.rb b/lib/parsers/parser_front_end.rb index 177143d3..a211412b 100644 --- a/lib/parsers/parser_front_end.rb +++ b/lib/parsers/parser_front_end.rb @@ -22,13 +22,13 @@ module ParserFrontEnd tag = params[:tag_id].blank? ? page[:tag] : params[:tag_id] body = Nokogiri::HTML(page.content) body.css('orbit_front').each do |front| - if front['class'] && front['class'].include?('dymanic_load') + if front['value'] + fragment = Nokogiri::HTML::DocumentFragment.new(body, "
#{eval(front['value']).to_s}
") + else ret = '' part = PagePart.find(front['part_id']) if front['part_id'] ret << eval("\"#{front['path']}\"") rescue '' fragment = Nokogiri::HTML::DocumentFragment.new(body, "
") - else - fragment = Nokogiri::HTML::DocumentFragment.new(body, "
eval('#{front['value']}'').to_s
" ) end front.swap(fragment) end