Skip to content

Commit

Permalink
Make the default layout consistent with the master branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
vanderhoorn committed Nov 11, 2012
1 parent 3c49cda commit c48851b
Showing 1 changed file with 9 additions and 21 deletions.
30 changes: 9 additions & 21 deletions defaults/app/layouts/default/views/layouts/default.html.haml
Expand Up @@ -3,43 +3,31 @@
!!! Strict
%html{:lang => "nl", "xml:lang" => "nl", :xmlns => "http://www.w3.org/1999/xhtml"}
%head
%meta{:content => "text/html;charset=utf-8", "http-equiv" => "Content-Type"}/
%meta{:content => "nl_nl", :name => "language"}/
%meta{ :content => "text/html;charset=utf-8", "http-equiv" => "Content-Type" }/
%meta{ :content => "nl_nl", :name => "language" }/
- if DevCMS.search_configuration[:enabled_search_engines].include?('luminis') && @node
= generate_metadata_for(@node)
%title= h [Settler[:site_name], @page_title].compact.join(' | ')
%link{:href => "http://#{Settler[:host]}/favicon.ico", :rel => "SHORTCUT ICON", :type => "image/vnd.microsoft.icon"}/
%link{ :href => "http://#{Settler[:host]}/favicon.ico", :rel => "SHORTCUT ICON", :type => "image/vnd.microsoft.icon" }/
= stylesheet_link_merged :base
= stylesheet_link_tag(@layout_configuration['template_color'] || 'default')
= yield :css
= javascript_include_merged(:base, :plugin => 'devcms-core')
= javascript_include_merged(:application)
/[if lte IE 7]
<haml:loud> stylesheet_link_merged :ie </haml:loud>
= stylesheet_link_merged :ie
/[if lte IE 6]
<haml:loud> javascript_include_tag('iepngfix_tilebg.js', :plugin =&amp;gt; &amp;quot;devcms-core&amp;quot;) </haml:loud>
= javascript_include_tag('iepngfix_tilebg.js', :plugin => 'devcms-core')
= javascript_tag "var AUTH_TOKEN = #{form_authenticity_token.inspect};"
= yield :javascript
- unless @rss_feed_url.nil?
%link{:href => @rss_feed_url, :rel => "alternate", :type => "application/atom+xml"}/
- if @rss_feed_url.present?
%link{ :href => @rss_feed_url, :rel => "alternate", :type => "application/atom+xml" }/
= yield :atom_feed
= javascript_tag("document.observe('dom:loaded', function () { lightbox = new Lightbox({}); });")
= render :partial => '/shared/google_analytics'
%body
#main_container
= render :partial => '/layouts/partials/content'
= yield :header
= render :partial => '/layouts/partials/footer'
= render :partial => '/layouts/partials/admin_tools'
- if Settler[:google_analytics_key].present? || current_site.content.analytics_code.present?
/ google analytics code
:javascript
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '#{escape_javascript(current_site.content.analytics_code || Settler[:google_analytics_key])}']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

= render :partial => '/shared/admin_tools'

0 comments on commit c48851b

Please sign in to comment.