trick sharers (at least, facebook) into generating thumbnails by specifying the image...
authorGuillaume Cottenceau <gcottenc@gmail.com>
Wed, 9 Sep 2009 12:51:32 +0000 (14:51 +0200)
committerGuillaume Cottenceau <gcottenc@gmail.com>
Wed, 9 Sep 2009 12:51:32 +0000 (14:51 +0200)
bin/booh-backend
data/booh/themes/cardu/skeleton_image.html
data/booh/themes/dark/skeleton_image.html
data/booh/themes/sbs/skeleton_image.html
data/booh/themes/simple/skeleton_image.html

index 9fd1515..a1d1642 100644 (file)
@@ -1275,6 +1275,7 @@ def walk_source_dir
                 for sizeobj in $images_size
                     html = $html_images.collect { |l| l.clone }
                     images4js = fullscreen_images[sizeobj['name']].collect { |e| "\"#{e}\"" }.join(', ')
+                    hiddenimages4remotes = '<span style="display:none">' + fullscreen_images[sizeobj['name']].collect { |e| "<img src=\"#{e}\"/>" }.join('') + '</span>'
                     otherimages4js = ''
                     othersizes = []
                     for sizeobj2 in all_images_sizes
@@ -1285,6 +1286,7 @@ def walk_source_dir
                     end
                     for i in html
                         i.gsub!(/~~images~~/, images4js)
+                        i.gsub!(/~~hidden_images_for_remotes~~/, hiddenimages4remotes)
                         i.gsub!(/~~other_images~~/, otherimages4js)
                         i.gsub!(/~~thumbnailspages~~/, thumbnailspage4js)
                         i.gsub!(/~~other_sizes~~/, othersizes.join(', '))
index 6311f5b..7486610 100644 (file)
@@ -12,6 +12,8 @@
 
 <body ~~~body_additions~~~>
 
+~~hidden_images_for_remotes~~
+
 <table class='imgnav'>
   <tr>
     <td width="20%">&nbsp;</td>
index f11b0fd..315c2fe 100644 (file)
@@ -66,6 +66,8 @@ input:hover {
 
 <body bgcolor="#FFFFFF" ~~~body_additions~~~>
 
+~~hidden_images_for_remotes~~
+
 <table width="100%">
 <tr>
     <td width="10%">&nbsp;</td>
index 89049c3..ebde48d 100644 (file)
@@ -67,6 +67,8 @@ input:hover {
 
 <body bgcolor="#FFFFFF" ~~~body_additions~~~>
 
+~~hidden_images_for_remotes~~
+
 <table align="center" width="100%">
 <tr>
     <td width="10%">&nbsp;</td>
index a77fb4e..e91e87b 100644 (file)
@@ -12,6 +12,8 @@
 
 <body ~~~body_additions~~~>
 
+~~hidden_images_for_remotes~~
+
 <table class='imgnav'>
   <tr>
     <td width="10%">&nbsp;</td>