Sha256: a182a843cd2db66c08ad9d85c9f5bb3e8d87e13e10aaf06e8a6c320d4711329e

Contents?: true

Size: 865 Bytes

Versions: 19

Compression:

Stored size: 865 Bytes

Contents

# search_form.rb English resource.

def google_form( button_name = "Google Search", size = 20, default_text = "" )
	first = %Q[<a href="http://www.google.com/">
		<img src="http://www.google.com/logos/Logo_40wht.gif"
			style="border-width: 0px; vertical-align: middle;" alt="Google"></a>]
	search_form( "http://www.google.com/search", "q", button_name, size, default_text, first, '' )
end

def yahoo_form( button_name = "Yahoo! Search", size = 20, default_text = "" )
	first = %Q[<a href="http://www.yahoo.com/">
		<img src="http://us.i1.yimg.com/us.yimg.com/i/yahootogo/ytg_search.gif"
			style="border-width: 0px; vertical-align: middle;" alt="[Yahoo!]"></a>]
	search_form( "http://search.yahoo.com/search", "p", button_name, size, default_text, first, "" )
end

# Local Variables:
# mode: ruby
# indent-tabs-mode: t
# tab-width: 3
# ruby-indent-level: 3
# End:

Version data entries

19 entries across 17 versions & 1 rubygems

Version Path
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.3/misc/plugin/en/search_form.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/tdiary-5.0.3/misc/plugin/en/search_form.rb
tdiary-5.0.4 vendor/bundle/gems/tdiary-5.0.3/misc/plugin/en/search_form.rb
tdiary-5.0.3 misc/plugin/en/search_form.rb
tdiary-5.0.2 misc/plugin/en/search_form.rb
tdiary-5.0.1 misc/plugin/en/search_form.rb
tdiary-5.0.0 misc/plugin/en/search_form.rb
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/gems/tdiary-4.2.0/misc/plugin/en/search_form.rb
tdiary-4.2.1 misc/plugin/en/search_form.rb
tdiary-4.2.0 misc/plugin/en/search_form.rb
tdiary-4.1.3 misc/plugin/en/search_form.rb
tdiary-4.1.2 misc/plugin/en/search_form.rb
tdiary-4.1.1 misc/plugin/en/search_form.rb
tdiary-4.1.0 misc/plugin/en/search_form.rb
tdiary-4.1.0.20141126 misc/plugin/en/search_form.rb
tdiary-4.0.5.1 misc/plugin/en/search_form.rb
tdiary-4.0.5 misc/plugin/en/search_form.rb
tdiary-4.0.4 misc/plugin/en/search_form.rb
tdiary-4.0.3 misc/plugin/en/search_form.rb