Skip to content

Instantly share code, notes, and snippets.

@trolleway
Last active October 11, 2015 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trolleway/da2e333b9403140d2b0e to your computer and use it in GitHub Desktop.
Save trolleway/da2e333b9403140d2b0e to your computer and use it in GitHub Desktop.
photo2blog styles
-- первая версия, не помню что тут
(<a href="%(comments)s"><img src="%(source_ml)s" width="%(width_ml)s" height="%(height_ml)s" alt="%(title)s" border="0"></a>){1,1}
<lj-cut text="+NumPhotosInsideCut">
(<div style="background-color:lightgray; margin: 2em 0em"> <div style="font-weight: bold; color:black; font-family:monospace">%(title)s</div> %(description)s
<a href="%(comments)s"><img src="%(source_l)s" width="%(width_l)s" height="%(height_l)s" alt="%(title)s" border="0"></a>
<div class="Exif" style="font-size:80%"><span style="color:#EA1D2C">EXIF</span> %(Exif_exposure)s sec, f/%(Exif_aperture)s, %(Exif_focal_length)s, ISO %(Exif_ISO)s, %(Exif_date_time)s, %(Exif_model)s, %(Exif_lens)s</div>
</div>
){1,Last}</lj-cut>
-- с ссылками на большой и оригинальный размер
(<a href="%(comments)s"><img src="%(source_ml)s" width="%(width_ml)s" height="%(height_ml)s" alt="%(title)s" border="0"></a>){1,1}
<lj-cut text="+NumPhotosInsideCut">
(<div style="background-color:lightgray; margin: 2em 0em">
<div style="font-weight: bold; color:black; font-family:monospace">%(title)s</div>
<div>%(description)s</div> %(Exif_date_time)s <div id="sizeslinks" style="font-size:xx-small;"><a href="%(url_l2k)s">[2048 px]</a> <a href="%(url_o)s">[fullres]</a><br>
<a href="%(comments)s"><img src="%(source_l)s" width="%(width_l)s" height="%(height_l)s" alt="%(title)s" border="0"></a>
<div class="Exif" style="font-size:80%"><span style="color:#EA1D2C">EXIF</span> %(Exif_exposure)s sec, f/%(Exif_aperture)s, %(Exif_focal_length)s, ISO %(Exif_ISO)s, %(Exif_date_time)s, %(Exif_model)s, %(Exif_lens)s</div>
</div></div>){1,Last}
</lj-cut>
Фото распространяются под лицензией cc-by, автоматически привязаны к GPS-треку. Галерея сгенерирована на http://www.photo2blog.ru/
-- Без подписей и даты
<lj-cut text="+NumPhotosInsideCut">
(<div style="background-color:lightgray; margin: 2em 0em">
<div style="font-weight: bold; color:black; font-family:monospace" id="photo_capion"> </div>
<div id="sizeslinks" style="font-size:xx-small;"><a href="%(url_l2k)s">[2048 px]</a> <a href="%(url_o)s">[fullres]</a><br>
<a href="%(comments)s"><img src="%(source_l)s" width="%(width_l)s" height="%(height_l)s" alt="%(title)s" border="0"></a>
</div></div>
){1,Last}</lj-cut>
Фото распространяются под лицензией cc-by, автоматически привязаны к GPS-треку. Галерея сгенерирована на http://www.photo2blog.ru/
--- stereo
(<a href="%(description)s"><img src="%(source_o)s" width="%(width_o)s" height="%(height_o)s" alt="%(title)s" border="0"></a>){1,1}
<lj-cut text="+NumPhotosInsideCut">
(<div style="background-color:lightgray; margin: 2em 0em"><a href="%(description)s"><img src="%(source_o)s" width="%(width_o)s" height="%(height_o)s" alt="%(title)s" border="0"></a>
<div class="Exif" style="font-size:80%"><span style="color:#EA1D2C">EXIF</span> %(Exif_exposure)s sec, f/%(Exif_aperture)s, %(Exif_focal_length)s, ISO %(Exif_ISO)s, %(Exif_date_time)s, %(Exif_model)s, %(Exif_lens)s</div> <a href="%(description)s">%(description)s</a>
<br>
</div>
){1,Last}</lj-cut>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment