<%= render 'load' %>

<h1><%= @page_tab.title %></h1>
<% if (@page_tab.subtitle) %>
  <p class="description"><%= @page_tab.subtitle %></p>
<% end %>
<div id="product-catalog">
  <div id="product-catalog-actions">
    <% if profile and user.present? and (user.is_admin?(environment) or user.is_admin?(profile)) %>
      <div class="product-catalog-ctrl">
        <%= button :add, _('Add product or service'), controller: :manage_products, action: :new, profile: profile.identifier %>
      </div>
    <% end %>
    <%= render 'configure_button' %>
  </div>

  <%= content_for :product_page do %>
    <%= render 'catalog/results', show_supplier: @scope == 'all' %>
  <% end %>
  <%= render 'catalog/search' %>
  <%= render 'catalog/javascripts', external: false %>
</div>

<%= javascript_tag do %>
  catalog.base_url_path = <%= url_for(controller: :fb_app_plugin_page_tab, action: :index, page_id: params[:page_id], signed_request: params[:signed_request]).to_json %> + '&'
<% end %>


<%= render 'load' %>

<h1><%= @page_tab.title %></h1>
<% if (@page_tab.subtitle) %>
  <div id="page-tab-subtitle"><%= @page_tab.subtitle %></div>
<% end %>
<div id="product-catalog">
  <div id="product-catalog-actions">
    <% if profile and user.present? and (user.is_admin?(environment) or user.is_admin?(profile)) %>
      <div class="product-catalog-ctrl">
        <%= button :add, _('Add product or service'), controller: :manage_products, action: :new, profile: profile.identifier %>
      </div>
    <% end %>
    <%= render 'configure_button' %>
  </div>

  <%= content_for :product_page do %>
    <%= render 'catalog/results', show_supplier: @scope == 'all' %>
  <% end %>
  <%= render 'catalog/search' %>
  <%= render 'catalog/javascripts', external: false %>
</div>

<%= javascript_tag do %>
  catalog.base_url_path = <%= url_for(controller: :fb_app_plugin_page_tab, action: :index, page_id: params[:page_id], signed_request: params[:signed_request]).to_json %> + '&'
<% end %>


Make better div for subtitle
Make better div for subtitle