Sha256: 20c8b6e5d3e4977b2ceb1da2c3b34c0a11fff332ba2fe77ed586677ce052b0b6

Contents?: true

Size: 723 Bytes

Versions: 52

Compression:

Stored size: 723 Bytes

Contents

#
# apple_webclip.rb - Add icon information for Apple WebClip.
#
# Copyright (C) 2008, TADA Tadashi <sho@spc.gr.jp>
# You can redistribute it and/or modify it under GPL.
#

add_header_proc do
	if @conf['apple_webclip.url'] and @conf['apple_webclip.url'].size > 0
		%Q|	<link rel="apple-touch-icon" href="#{h @conf['apple_webclip.url']}">\n|
	else
		''
	end
end

add_conf_proc( 'apple_webclip', 'Apple WebClip' ) do
	if @mode == 'saveconf' then
      @conf['apple_webclip.url'] = @cgi.params['apple_webclip.url'][0]
	end

	<<-HTML
   <h3 class="subtitle">Icon URL</h3>
   <p><input name="apple_webclip.url" value="#{h @conf['apple_webclip.url']}" size="70"></p>
	<p>Create and cpecify PNG file 60x60 pixels.</p>
   HTML
end

Version data entries

52 entries across 46 versions & 2 rubygems

Version Path
tdiary-contrib-5.3.0 plugin/apple_webclip.rb
tdiary-contrib-5.2.4 plugin/apple_webclip.rb
tdiary-contrib-5.2.3 plugin/apple_webclip.rb
tdiary-contrib-5.2.2 plugin/apple_webclip.rb
tdiary-contrib-5.2.1 plugin/apple_webclip.rb
tdiary-contrib-5.2.0 plugin/apple_webclip.rb
tdiary-contrib-5.1.7 plugin/apple_webclip.rb
tdiary-contrib-5.1.6 plugin/apple_webclip.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-contrib-5.1.4/plugin/apple_webclip.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/bundler/gems/tdiary-contrib-d1e41204db13/plugin/apple_webclip.rb
tdiary-contrib-5.1.5 plugin/apple_webclip.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-contrib-5.1.4/plugin/apple_webclip.rb
tdiary-contrib-5.1.4 plugin/apple_webclip.rb
tdiary-contrib-5.1.3 plugin/apple_webclip.rb
tdiary-contrib-5.1.2 plugin/apple_webclip.rb
tdiary-contrib-5.1.1 plugin/apple_webclip.rb
tdiary-contrib-5.1.0 plugin/apple_webclip.rb
tdiary-contrib-5.0.13 plugin/apple_webclip.rb
tdiary-contrib-5.0.12 plugin/apple_webclip.rb
tdiary-contrib-5.0.11 plugin/apple_webclip.rb