]> git.mxchange.org Git - friendica.git/commit
preferred item image size for theme, get smallest photo near scale requested
authorfabrixxm <fabrix.xm@gmail.com>
Wed, 30 Jul 2014 13:23:36 +0000 (15:23 +0200)
committerfabrixxm <fabrix.xm@gmail.com>
Wed, 30 Jul 2014 13:37:34 +0000 (15:37 +0200)
commit27024e3b1dd6e39ec7b830cc13907c8be7bd9e36
tree74f656f8cddedb2bb66b78521e8c010c7b531c52
parent8cd749bd665fbef553a7ad292cb4291f7d15b1c3
preferred item image size for theme, get smallest photo near scale requested

themes can declare preferred image size for images in items, with

   $a->theme_info = array(
    "item_image_size" => 1
   );

0: original, 1:640px, 2:320px

mod/photo.php returns the nearest scaled image near requested one
if it doesn't exists, instead of nothing
include/text.php
mod/photo.php