Sha256: c96711840a3c19e3a0bcb6816e17ec3a07a603ed4cf4c3b05fe0dc0c1077cbab

Contents?: true

Size: 557 Bytes

Versions: 32

Compression:

Stored size: 557 Bytes

Contents

module Refinery
  module Helpers
    module HeadHelper

      def stylesheets_for_head(stylesheets, theme = false)
        # you can disable the use of the built-in refinery stylesheets by disabling the setting.
        stylesheets.map! {|ss| ["refinery/#{ss}", ss] }.flatten! if RefinerySetting.find_or_set(:frontend_refinery_stylesheets_enabled, true)

        # if theme is set, use themed stylesheet links.
        stylesheets.map! {|ss| ss =~ /^refinery\// ? ss : "/theme/stylesheets/#{ss}" } if theme

        stylesheets
      end

    end
  end
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
refinerycms-core-1.0.11 lib/refinery/helpers/head_helper.rb
refinerycms-core-1.0.10 lib/refinery/helpers/head_helper.rb
refinerycms-core-1.0.9 lib/refinery/helpers/head_helper.rb
refinerycms-core-1.0.8 lib/refinery/helpers/head_helper.rb
refinerycms-core-1.0.7 lib/refinery/helpers/head_helper.rb
refinerycms-core-1.0.5 lib/refinery/helpers/head_helper.rb
refinerycms-core-1.0.4 lib/refinery/helpers/head_helper.rb
refinerycms-core-1.0.3 lib/refinery/helpers/head_helper.rb
refinerycms-core-1.0.1 lib/refinery/helpers/head_helper.rb
refinerycms-core-1.0.0 lib/refinery/helpers/head_helper.rb
refinerycms-core-0.9.9.22 lib/refinery/helpers/head_helper.rb
refinerycms-core-0.9.9.21 lib/refinery/helpers/head_helper.rb
refinerycms-core-0.9.9.20 lib/refinery/helpers/head_helper.rb
refinerycms-core-0.9.9.19 lib/refinery/helpers/head_helper.rb
refinerycms-core-0.9.9.18 lib/refinery/helpers/head_helper.rb
refinerycms-core-0.9.9.17 lib/refinery/helpers/head_helper.rb
refinerycms-core-0.9.9.16 lib/refinery/helpers/head_helper.rb
refinerycms-core-0.9.9.15 lib/refinery/helpers/head_helper.rb
refinerycms-core-0.9.9.14 lib/refinery/helpers/head_helper.rb
refinerycms-core-0.9.9.13 lib/refinery/helpers/head_helper.rb