Sha256: 9ce1fcef6e8979853eecc6ad56d9516ab26e8304cc90144bd6ca835eb346b629

Contents?: true

Size: 468 Bytes

Versions: 2

Compression:

Stored size: 468 Bytes

Contents

class ComfyPress::Tag::SiteLogo
  include ComfyPress::Tag
  
  def self.regex_tag_signature(identifier = nil)
    identifier ||= /[\w\-]+/
    /\{\{\s*cms:site_logo\s*\}\}/ # not really using identifier
  end

  def content
    "<%= render :partial => 'cms_content/site_logo' %>"
  end

  def render
    whitelist = ComfyPress.config.allowed_partials
    if whitelist.is_a?(Array)
      content if whitelist.member?(identifier)
    else
      content
    end
  end
end

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
comfypress-0.1.4 db/lib/comfypress/tags/site_logo.rb
comfypress-0.1.4 lib/comfypress/tags/site_logo.rb