def get_theme_options

      hash = []
      Dir.glob("#{Rails.root}/app/views/themes/*/") do |themes|
        opt = themes.split('/').last
        if File.exists?("#{themes}theme.yml")
          info = YAML.load(File.read("#{themes}theme.yml"))
          hash << info if !info['name'].blank? && !info['author'].blank? && !info['foldername'].blank? && !info['view_extension'].blank?
        end
      end

      hash
    end
def get_theme_options

      hash = []
      Dir.glob("#{Rails.root}/app/views/themes/*/") do |themes|
        opt = themes.split('/').last
        if File.exists?("#{themes}theme.yml")
          info = YAML.load(File.read("#{themes}theme.yml"))
          hash << info if !info['name'].blank? && !info['author'].blank? && !info['foldername'].blank? && !info['view_extension'].blank?
        end
      end

      hash
    end
returns a hash of the different themes as a hash with the details kept in the theme.yml file