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.3.0 plugin/picasa.rb
tdiary-contrib-5.2.4 plugin/picasa.rb
tdiary-contrib-5.2.3 plugin/picasa.rb
tdiary-contrib-5.2.2 plugin/picasa.rb
tdiary-contrib-5.2.1 plugin/picasa.rb
tdiary-contrib-5.2.0 plugin/picasa.rb
tdiary-contrib-5.1.7 plugin/picasa.rb
tdiary-contrib-5.1.6 plugin/picasa.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/bundler/gems/tdiary-contrib-d1e41204db13/plugin/picasa.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/picasa.rb
tdiary-contrib-5.1.5 plugin/picasa.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-contrib-5.1.4/plugin/picasa.rb
tdiary-contrib-5.1.4 plugin/picasa.rb
tdiary-contrib-5.1.3 plugin/picasa.rb
tdiary-contrib-5.1.2 plugin/picasa.rb
tdiary-contrib-5.1.1 plugin/picasa.rb
tdiary-contrib-5.1.0 plugin/picasa.rb
tdiary-contrib-5.0.13 plugin/picasa.rb
tdiary-contrib-5.0.12 plugin/picasa.rb
tdiary-contrib-5.0.11 plugin/picasa.rb