]> git.mxchange.org Git - friendica.git/blob - view/theme/frio/php/Image.php
Merge branch 'master' of ../save/merge/frio into frio_merge
[friendica.git] / view / theme / frio / php / Image.php
1 <?php
2
3 /**
4  * @file view/theme/frio/php/Image.php
5  * @brief contain methods to deal with images
6  */
7
8 /**
9  * @brief This class contains methods to deal with images
10  */
11 class Image {
12
13         /**
14          * @brief Give all available options for the background image
15          * 
16          * @param array $arr Array with the present user settings
17          * 
18          * @return array Array with the immage options
19          */
20         public static function get_options($arr) {
21                 $bg_image_options = array(
22                                         'repeat' => array(
23                                                 'frio_bg_image_option', t("Repeat the image"),  "repeat",       t("Will repeat your image to fill the background."), ($arr["bg_image_option"] == "repeat")),
24                                         'stretch' => array(
25                                                 'frio_bg_image_option', t("Stretch"),           "stretch",      t("Will stretch to width/height of the image."), ($arr["bg_image_option"] == "stretch")),
26                                         'cover' => array(
27                                                 'frio_bg_image_option', t("Resize fill and-clip"), "cover",     t("Resize to fill and retain aspect ratio."),   ($arr["bg_image_option"] == "cover")),
28                                         'contain' => array(
29                                                 'frio_bg_image_option', t("Resize best fit"),   "contain",      t("Resize to best fit and retain aspect ratio."), ($arr["bg_image_option"] == "contain")),
30                 );
31
32                 return $bg_image_options;
33         }
34 }