diff options
author | friendica <info@friendica.com> | 2014-05-11 17:38:22 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-05-11 17:38:22 -0700 |
commit | 045d23a27c26d9d6daec7412c8726eba068f594a (patch) | |
tree | 97c7663ed3def47191a09a52ab0bfff76e65bf09 /view/tpl | |
parent | b5372f81523bafdf5f7f0191f08c775c4d60dcfd (diff) | |
parent | c455663509a094c22116be60034028378aa07100 (diff) | |
download | volse-hubzilla-045d23a27c26d9d6daec7412c8726eba068f594a.tar.gz volse-hubzilla-045d23a27c26d9d6daec7412c8726eba068f594a.tar.bz2 volse-hubzilla-045d23a27c26d9d6daec7412c8726eba068f594a.zip |
Merge https://github.com/friendica/red into pending_merge
Diffstat (limited to 'view/tpl')
-rwxr-xr-x | view/tpl/head.tpl | 3 | ||||
-rwxr-xr-x | view/tpl/photo_view.tpl | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/view/tpl/head.tpl b/view/tpl/head.tpl index e7b41523f..a212fd486 100755 --- a/view/tpl/head.tpl +++ b/view/tpl/head.tpl @@ -7,6 +7,9 @@ <script src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> +<script>(function(w){var dpr=((w.devicePixelRatio===undefined)?1:w.devicePixelRatio);if(!!w.navigator.standalone){var r=new XMLHttpRequest();r.open('GET','/retinaimages.php?devicePixelRatio='+dpr,false);r.send()}else{document.cookie='devicePixelRatio='+dpr+'; path=/'}})(window)</script> +<noscript><style id="devicePixelRatio" media="only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2)">html{background-image:url("/retinaimages.php?devicePixelRatio=2")}</style></noscript> + {{$head_css}} {{$js_strings}} diff --git a/view/tpl/photo_view.tpl b/view/tpl/photo_view.tpl index 01f135522..b34f3fcf5 100755 --- a/view/tpl/photo_view.tpl +++ b/view/tpl/photo_view.tpl @@ -9,7 +9,7 @@ </div> {{if $prevlink}}<div id="photo-prev-link"><a href="{{$prevlink.0}}"><i class="icon-backward photo-icons"></i></div>{{/if}} -<div id="photo-photo"><a href="{{$photo.href}}" title="{{$photo.title}}" onclick="$.colorbox({href: '{{$photo.href}}'}); return false;" ><img src="{{$photo.src}}" /></a></div> +<div id="photo-photo"><a href="{{$photo.href}}" title="{{$photo.title}}" onclick="$.colorbox({href: '{{$photo.href}}'}); return false;" ><img style="max-width: 100%;" src="{{$photo.src}}" /></a></div> {{if $nextlink}}<div id="photo-next-link"><a href="{{$nextlink.0}}"><i class="icon-forward photo-icons"></i></a></div>{{/if}} <div id="photo-photo-end"></div> <div id="photo-caption">{{$desc}}</div> |