source: extensions/modus/functions.inc.php @ 26010

Last change on this file since 26010 was 25794, checked in by rvelices, 7 years ago
File size: 867 bytes
Line 
1<?php
2function modus_css_gradient($gradient) {
3        if (!empty($gradient))
4        {
5                $std = implode(',',$gradient);
6                $gs=trim($gradient[0],'#'); $ge=trim($gradient[1],'#');
7                return "filter: progid:DXImageTransform.Microsoft.gradient(startColorStr=#FF$gs,endColorStr=#FF$ge); /* IE to 9*/
8        background-image: -moz-linear-gradient(top,$std); /* FF 3.16 to 15 */
9        background-image: -webkit-linear-gradient(top,$std); /* Chrome, Safari */
10        background-image: -ms-linear-gradient(top,$std); /* IE ? to 9 */
11        background-image: -o-linear-gradient(top,$std); /* Opera 11 to 12 */
12        background-image: linear-gradient(to bottom,$std); /* Standard must be last */";
13        }
14}
15
16function modus_get_default_config()
17{
18  return array(
19        'skin' => 'dark',
20        'album_thumb_size' => 0,
21  'index_photo_deriv'=>'',
22  'index_photo_deriv_hdpi'=>'',
23  'resize_threshold' => 1,
24  'resize_factor' => 0,
25);
26}
27?>
Note: See TracBrowser for help on using the repository browser.