Changeset 3874:ab8368569446 for plugins/blowupConfig/lib
- Timestamp:
- 09/14/18 12:16:17 (7 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/blowupConfig/lib/class.blowup.config.php
r3731 r3874 17 17 protected static $img_folder = 'blowup-images'; 18 18 19 protected static $fonts = array(20 'sans-serif' => array(19 protected static $fonts = [ 20 'sans-serif' => [ 21 21 'ss1' => 'Arial, Helvetica, sans-serif', 22 22 'ss2' => 'Verdana,Geneva, Arial, Helvetica, sans-serif', … … 24 24 'ss4' => '"Trebuchet MS", Helvetica, sans-serif', 25 25 'ss5' => 'Impact, Charcoal, sans-serif' 26 ),27 28 'serif' => array(26 ], 27 28 'serif' => [ 29 29 's1' => 'Times, "Times New Roman", serif', 30 30 's2' => 'Georgia, serif', 31 31 's3' => 'Baskerville, "Palatino Linotype", serif' 32 ),33 34 'monospace' => array(32 ], 33 34 'monospace' => [ 35 35 'm1' => '"Andale Mono", "Courier New", monospace', 36 36 'm2' => '"Courier New", Courier, mono, monospace' 37 )38 );39 40 protected static $fonts_combo = array();41 protected static $fonts_list = array();42 43 public static $top_images = array(37 ] 38 ]; 39 40 protected static $fonts_combo = []; 41 protected static $fonts_list = []; 42 43 public static $top_images = [ 44 44 'default' => 'Default', 45 45 'blank' => 'Blank', … … 58 58 'roadrunner-2' => 'Road Runner 2', 59 59 'typo' => 'Typo' 60 );60 ]; 61 61 62 62 public static function fontsList() … … 65 65 self::$fonts_combo[__('default')] = ''; 66 66 foreach (self::$fonts as $family => $g) { 67 $fonts = array();67 $fonts = []; 68 68 foreach ($g as $code => $font) { 69 69 $fonts[str_replace('"', '', $font)] = $code; … … 157 157 } 158 158 159 $css = array();159 $css = []; 160 160 161 161 /* Sidebar position … … 199 199 dcThemeConfig::prop($css, '#top h1 span', 'text-indent', '-5000px'); 200 200 dcThemeConfig::prop($css, '#top h1', 'top', '0px'); 201 $css['#top h1 a'] = array(201 $css['#top h1 a'] = [ 202 202 'display' => 'block', 203 203 'height' => $s['top_height'] ? ($s['top_height'] - 10) . 'px' : '120px', 204 204 'width' => '800px' 205 );205 ]; 206 206 } 207 207 dcThemeConfig::prop($css, '#top', 'height', $s['top_height']); … … 325 325 } 326 326 327 $body_fill = array(327 $body_fill = [ 328 328 'light' => dirname(__FILE__) . '/../alpha-img/gradient-l.png', 329 329 'medium' => dirname(__FILE__) . '/../alpha-img/gradient-m.png', 330 330 'dark' => dirname(__FILE__) . '/../alpha-img/gradient-d.png' 331 );331 ]; 332 332 333 333 $body_g = isset($body_fill[$gradient]) ? $body_fill[$gradient] : false;
Note: See TracChangeset
for help on using the changeset viewer.