app/themes/default/views/pwb/welcome/index.html.erb in pwb-1.3.0 vs app/themes/default/views/pwb/welcome/index.html.erb in pwb-1.4.0
- old
+ new
@@ -1,22 +1,13 @@
<% page_title @page_title %>
<%= render '/pwb/meta_tags' %>
<div class="row ">
- <% @content_to_show.each do |content| %>
- <div class="col-md-12">
- <%== content %>
- </div>
+ <% @page.ordered_visible_page_contents.each do |page_content| %>
+ <%= page_part page_content %>
<% end %>
</div>
-<% if @current_website.configuration["show_landing_searchbar"] %>
- <div class="landing-search-container row fondo_secundario">
- <div class="col-md-1"></div>
- <div class="col-md-10">
- <%= render '/pwb/search/search_form_landing' %>
- </div>
- <div class="col-md-1"></div>
- </div>
-<% end %>
+
+<%# page_component "search_cmpt", @page %>
<%# render '/pwb/welcome/content_area_cols' %>
<% if @properties_for_sale.length > 0 %>
<%= render :partial => '/pwb/welcome/single_property_row', :locals => { properties: @properties_for_sale, rent_or_sale: 'for_sale', title_key: 'propertyForSale' } %>
\ No newline at end of file