Sha256: a2d02cf00e09115b73e0e444f508312e53f17ff352bef0bf055fbd58cfc9c5bc

Contents?: true

Size: 611 Bytes

Versions: 1

Compression:

Stored size: 611 Bytes

Contents

module Enjoy::Seo::SeoHelper

  def enjoy_ym_counter_tag(counter_id)
    render partial: "blocks/ym", locals: {counter_id: counter_id}
  end
  def enjoy_ga_counter_tag(counter_id)
    render partial: "blocks/ga", locals: {counter_id: counter_id}
  end
  def render_enjoy_counters(opts = {})
    ret = []
    ym_counter_id = opts[:ym_counter_id] || Settings.ym_counter_id
    ga_counter_id = opts[:ga_counter_id] || Settings.ga_counter_id
    ret << enjoy_ym_counter_tag(ym_counter_id) unless ym_counter_id.blank?
    ret << enjoy_ga_counter_tag(ga_counter_id) unless ga_counter_id.blank?
    ret.join
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
enjoy_cms_seo-0.4.0.beta3 app/helpers/enjoy/seo/seo_helper.rb