Changeset 19282 for platform/tdiary

Show
Ignore:
Timestamp:
09/14/08 17:01:58 (6 years ago)
Author:
hsbt
Message:

rename plugin.

Files:
1 moved

Legend:

Unmodified
Added
Removed
  • platform/tdiary/plugin/apple_webclip.rb

    r9405 r19282  
    11# 
    2 # apple-webclip.rb - Add icon information for Apple WebClip. 
     2# apple_webclip.rb - Add icon information for Apple WebClip. 
    33# 
    44# Copyright (C) 2008, TADA Tadashi <sho@spc.gr.jp> 
     
    77 
    88add_header_proc do 
    9         if @conf['apple-webclip.url'] and @conf['apple-webclip.url'].size > 0 
    10                 %Q|     <link rel="apple-touch-icon" href="#{h @conf['apple-webclip.url']}"/>\n| 
     9        if @conf['apple_webclip.url'] and @conf['apple_webclip.url'].size > 0 
     10                %Q|     <link rel="apple-touch-icon" href="#{h @conf['apple_webclip.url']}"/>\n| 
    1111        else 
    1212                '' 
     
    1414end 
    1515 
    16 add_conf_proc( 'apple-webclip', 'Apple WebClip' ) do 
     16add_conf_proc( 'apple_webclip', 'Apple WebClip' ) do 
    1717        if @mode == 'saveconf' then 
    18       @conf['apple-webclip.url'] = @cgi.params['apple-webclip.url'][0] 
     18      @conf['apple_webclip.url'] = @cgi.params['apple_webclip.url'][0] 
    1919        end 
    2020 
    2121        <<-HTML 
    2222   <h3 class="subtitle">Icon URL</h3> 
    23    <p><input name="apple-webclip.url" value="#{h @conf['apple-webclip.url']}" size="70"></p> 
     23   <p><input name="apple_webclip.url" value="#{h @conf['apple_webclip.url']}" size="70"></p> 
    2424        <p>Create and cpecify PNG file 60x60 pixels.</p> 
    2525   HTML