Changeset 3874:ab8368569446 for themes/ductile/_public.php
- Timestamp:
- 09/14/18 12:16:17 (7 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
themes/ductile/_public.php
r3731 r3874 17 17 18 18 # Behaviors 19 $core->addBehavior('publicHeadContent', array(__NAMESPACE__ . '\tplDuctileTheme', 'publicHeadContent'));20 $core->addBehavior('publicInsideFooter', array(__NAMESPACE__ . '\tplDuctileTheme', 'publicInsideFooter'));19 $core->addBehavior('publicHeadContent', [__NAMESPACE__ . '\tplDuctileTheme', 'publicHeadContent']); 20 $core->addBehavior('publicInsideFooter', [__NAMESPACE__ . '\tplDuctileTheme', 'publicInsideFooter']); 21 21 22 22 # Templates 23 $core->tpl->addValue('ductileEntriesList', array(__NAMESPACE__ . '\tplDuctileTheme', 'ductileEntriesList'));24 $core->tpl->addBlock('EntryIfContentIsCut', array(__NAMESPACE__ . '\tplDuctileTheme', 'EntryIfContentIsCut'));25 $core->tpl->addValue('ductileNbEntryPerPage', array(__NAMESPACE__ . '\tplDuctileTheme', 'ductileNbEntryPerPage'));26 $core->tpl->addValue('ductileLogoSrc', array(__NAMESPACE__ . '\tplDuctileTheme', 'ductileLogoSrc'));27 $core->tpl->addBlock('IfPreviewIsNotMandatory', array(__NAMESPACE__ . '\tplDuctileTheme', 'IfPreviewIsNotMandatory'));23 $core->tpl->addValue('ductileEntriesList', [__NAMESPACE__ . '\tplDuctileTheme', 'ductileEntriesList']); 24 $core->tpl->addBlock('EntryIfContentIsCut', [__NAMESPACE__ . '\tplDuctileTheme', 'EntryIfContentIsCut']); 25 $core->tpl->addValue('ductileNbEntryPerPage', [__NAMESPACE__ . '\tplDuctileTheme', 'ductileNbEntryPerPage']); 26 $core->tpl->addValue('ductileLogoSrc', [__NAMESPACE__ . '\tplDuctileTheme', 'ductileLogoSrc']); 27 $core->tpl->addBlock('IfPreviewIsNotMandatory', [__NAMESPACE__ . '\tplDuctileTheme', 'IfPreviewIsNotMandatory']); 28 28 29 29 class tplDuctileTheme … … 109 109 110 110 $tpl_path = dirname(__FILE__) . '/tpl/'; 111 $list_types = array('title', 'short', 'full');111 $list_types = ['title', 'short', 'full']; 112 112 113 113 // Get all _entry-*.html in tpl folder of theme … … 133 133 $ret .= ' case \'' . $v . '\':' . "\n" . 134 134 '?>' . "\n" . 135 $core->tpl->includeFile( array('src' => '_entry-' . $v . '.html')) . "\n" .135 $core->tpl->includeFile(['src' => '_entry-' . $v . '.html']) . "\n" . 136 136 '<?php ' . "\n" . 137 137 ' break;' . "\n"; … … 303 303 304 304 $ret = ''; 305 $css = array();306 $uri = array();305 $css = []; 306 $uri = []; 307 307 if (!isset($s['body_font']) || ($s['body_font'] == '')) { 308 308 // See if webfont defined for main font … … 369 369 } 370 370 371 $css = array();371 $css = []; 372 372 373 373 # Properties … … 420 420 421 421 # Large screens 422 $css_large = array();422 $css_large = []; 423 423 424 424 # Blog title font weight … … 478 478 479 479 # Small screens 480 $css_small = array();480 $css_small = []; 481 481 482 482 # Blog title font weight … … 532 532 } 533 533 534 protected static $fonts = array(534 protected static $fonts = [ 535 535 // Theme standard 536 536 'Ductile body' => '"Century Schoolbook", "Century Schoolbook L", Georgia, serif', … … 552 552 // Monospace families 553 553 'Monospace' => 'Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace' 554 );554 ]; 555 555 556 556 protected static function fontDef($c)
Note: See TracChangeset
for help on using the changeset viewer.