for sizeobj2 in $images_size
if sizeobj != sizeobj2
if type == 'thumbnails'
- sizestrings << '<a href="thumbnails-' + sizeobj2['name'] + '.html">' + sizename(sizeobj2['name']) + '</a>'
+ sizestrings << '<a href="thumbnails-' + size2js(sizeobj2['name']) + '.html">' + sizename(sizeobj2['name']) + '</a>'
else
sizestrings << '<a id="link' + size2js(sizeobj2['name']) + '">' + sizename(sizeobj2['name']) + '</a>'
end
i.sub!(/~~thumbnails~~/, html_thumbnails)
i.gsub!(/~~theme~~/, $theme)
i.gsub!(/~~current_size~~/, sizeobj['name'])
+ i.gsub!(/~~current_size_js~~/, size2js(sizeobj['name']))
end
- ios = File.open("#{dest_dir}/thumbnails-#{sizeobj['name']}.html", "w")
+ ios = File.open("#{dest_dir}/thumbnails-#{size2js(sizeobj['name'])}.html", "w")
ios.write(html)
ios.close
end
i.gsub!(/~~other_sizes~~/, othersizes.join(', '))
i.gsub!(/~~captions~~/, captions4js)
i.gsub!(/~~title~~/, xmldir.attributes['thumbnails-caption'] || utf8(File.basename(dir)))
- i.gsub!(/~~thumbnails~~/, '<a href="thumbnails-' + sizeobj['name'] + '.html" id="thumbnails">' + utf8(_('return to thumbnails')) + '</a>')
+ i.gsub!(/~~thumbnails~~/, '<a href="thumbnails-' + size2js(sizeobj['name']) + '.html" id="thumbnails">' + utf8(_('return to thumbnails')) + '</a>')
i.gsub!(/~~theme~~/, $theme)
i.gsub!(/~~current_size~~/, size2js(sizeobj['name']))
substitute_html_sizes(i, sizeobj, 'image')
#- substitute "return to albums" and previous/next correctly
if xmldir.child_byname_notattr('image', 'deleted') || xmldir.child_byname_notattr('video', 'deleted')
for sizeobj in $images_size
- substInFile("#{dest_dir}/thumbnails-#{sizeobj['name']}.html") { |line|
+ substInFile("#{dest_dir}/thumbnails-#{size2js(sizeobj['name'])}.html") { |line|
sub_previous_next_album(previous_album, next_album, line)
if xmldir.elements['dir']
line.sub!(/~~return_to_albums~~/, '<a href="index.html">' + utf8(_('return to albums')) + '</a>')