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 9fd15154a8809d2e71261819f8e98bfe40ef9698..a1d16420642593eeb4b0a791e8956dec824f65ec 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 6311f5b14bab44237a71ad1486f155fae9d3e6f9..7486610d74f59ed974c7d39c03418eceb9d8a2ff 100644 (file)
@@ -12,6 +12,8 @@
 
 <body ~~~body_additions~~~>
 
+~~hidden_images_for_remotes~~
+
 <table class='imgnav'>
   <tr>
     <td width="20%">&nbsp;</td>
index f11b0fd0933d9e27f04adc769e3085c6f03028d1..315c2fede73db4951b2d3e2cb98d40dbf0a7f764 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 89049c36fa1719b79396948275727d73b49dc07b..ebde48d37c62a4b6ffcd397865b72f1f88fdcbf0 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 a77fb4eb5260e65b44174f3a49f26d893231d6ff..e91e87b8c3d2b8aaceb1a9d3ad2afbef20c88caa 100644 (file)
@@ -12,6 +12,8 @@
 
 <body ~~~body_additions~~~>
 
+~~hidden_images_for_remotes~~
+
 <table class='imgnav'>
   <tr>
     <td width="10%">&nbsp;</td>