Sha256: e6692e41c6f826553f4ae7ced14d94561f70477cdb45cf2227ce9fac42352556

Contents?: true

Size: 797 Bytes

Versions: 33

Compression:

Stored size: 797 Bytes

Contents

# show photo image on Picasa Web Album
#
# usage:
#   picasa( src[, title[, place]] )
#     - src: The url of the photo to show.
#     - title: title of photo. (optional)
#     - place: class name of img element. default is 'photo'.
#
#   picasa_left( src[, title] )
#
#   picasa_right( src[, title] )
#
# options configurable through settings:
#   @conf['picasa.user'] : picasa username
#   @conf['picasa.default_size'] : default image size
#
# Copyright (c) hb <http://www.smallstyle.com>
# Distributed under the GPL.
#

def picasa( src, alt = "photo", place = 'photo' )
	%Q|<img title="#{alt}" alt="#{alt}" src="#{src}" class="#{place} picasa">|
end

def picasa_left( src, alt = "photo" )
	picasa( src, alt, 'left' )
end

def picasa_right( src, alt = "photo" )
	picasa( src, alt, 'right' )
end

Version data entries

33 entries across 28 versions & 2 rubygems

Version Path
tdiary-contrib-5.0.10 plugin/picasa.rb
tdiary-contrib-5.0.9 plugin/picasa.rb
tdiary-contrib-5.0.8 plugin/picasa.rb
tdiary-contrib-5.0.7 plugin/picasa.rb
tdiary-contrib-5.0.6 plugin/picasa.rb
tdiary-contrib-5.0.5 plugin/picasa.rb
tdiary-5.0.5 vendor/bundle/bundler/gems/tdiary-contrib-8299b30cbf3f/plugin/picasa.rb
tdiary-5.0.5 vendor/bundle/bundler/gems/tdiary-contrib-f08988dfa0f6/plugin/picasa.rb
tdiary-5.0.5 vendor/bundle/bundler/gems/tdiary-contrib-a3c5f37278c4/plugin/picasa.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/bundler/gems/tdiary-contrib-8299b30cbf3f/plugin/picasa.rb
tdiary-5.0.5 vendor/bundle/bundler/gems/tdiary-contrib-fa9c20aa0d97/plugin/picasa.rb
tdiary-contrib-5.0.4 plugin/picasa.rb
tdiary-5.0.4 vendor/bundle/bundler/gems/tdiary-contrib-8299b30cbf3f/plugin/picasa.rb