<%= truncate(post.summary, :length => 128) %>
% if @agency.css && @agency.css.strip.length > 0 %> <% end %> <%= render_page('uniglobe_west_special_header') %> <% if html_header=Setting.get('html_header') %> <%= raw html_header %> <% end %> <% unless @posts @agents = User.where(:agency_id => @agency.id).agent.order('presence desc').limit(8) #- Posts @posts = Post.site(@agency.id).language(I18n.locale).includes(:user, :place, :agency_post).where(:kind => INDEXABLE_POSTS).order('created_at desc') if @agency_template && hashtag = Setting.get("hashtag_#{@agency_template}") @posts = @posts.hashtag(hashtag) end @posts = @posts.limit(Setting.get('fp_post_count') || 15) #- Experiences @experiences = Post.site(@agency.id).language(I18n.locale).includes(:place).where(:kind => VENDOR).order('posts.created_at desc') if @agency_template && hashtag = Setting.get("hashtag_#{@agency_template}") @experiences = @experiences.hashtag(hashtag) end @experiences = @experiences.limit(Setting.get('fp_exp_count') || 8) #- Look for sidebar content @sidebars = Page.site(@agency.id).language(I18n.locale).where(:external_link => 'sidebar_home').order('title').all @nobranding = true @title = @agency.meta_title && @agency.meta_title.strip.length > 0 ? @agency.meta_title : @agency.name unless @agency.meta_description && @agency.meta_description.strip.length > 0 && @description = @agency.meta_description @description = @agency.description end #- Get a random testimonial unless @testimonial = Post.site(@agency.id).language(I18n.locale).where(:kind => TESTIMONIAL).hashtag('#leisure').order('random()').first @testimonial = Post.site(@agency.id).language(I18n.locale).where(:kind => TESTIMONIAL).order('random()').first end end %>
<%= render_page('header_leisure') %> <%= render_page('navigation_leisure') %><%= truncate(post.summary, :length => 128) %>