<%= render_page('video_section') %>

Your company can see savings of up-to 20%

Free

Consultation


Request a proposal


Enquire online

<% @breadcrumbs = [] #- Get blog data @posts = Post.site(@agency.id).language(I18n.locale).where(:kind => TESTIMONIAL) #- Filter by place if params[:place] && @place = Place.find_by_permalink(params[:place]) @posts = @posts.where(:place_id => @place.id) @breadcrumbs << "#{I18n.t('Testimonials')}" end #--------- LEISURE TAG, we hard code this!!! -------------# @posts = @posts.tag_search('corporate') @places = Place.where(['permalink <> ? AND id IN (SELECT place_id FROM posts WHERE kind=? AND id IN (SELECT post_id FROM agency_posts WHERE agency_id=?) GROUP BY place_id)', 'anywhere', TESTIMONIAL, @agency.id]).order('title').limit(20) #- Grab the rest of posts now @posts = @posts.order('created_at desc').paginate(:per_page => 10, :page => params[:page]) #- Meta @title = @agency.name + "'s " + I18n.t(' Testimonial') @description = I18n.t('Customers testimonials from ') + @agency.name @breadcrumbs << I18n.t('Testimonial') %>
<% if @posts && @posts.length > 0 %> <% @posts.each do |post| %>

<%= post.title %>

<%= post.meta1 %> <% if post.meta2 && post.meta2.strip.length > 0 && post.meta2.strip != 'Anywhere' %> - (<%= t('trip to') %> <%= post.meta2 %>) <% end %>
<% if a = post.attachments.first %>
<% if a && a._type == 'video' %>
<%= raw a.html %>
<% elsif a && a._type == 'photo' %>
<%= post.title %>
<%= post.title %>
<% end %>
<% end %> <% if !a && post.summary %>

<%= wiki_content(post.summary, post) %>

<% if post.content %> <%= t('read more')%> <% end %> <% end %>
<% end %> <% end %> <% if @posts and @posts.length > 0 %>
<% end %>