Changeset 8506
- Timestamp:
- 01/07/11 20:57:07 (2 years ago)
- Files:
-
- 1 modified
-
trunk/include/template.class.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/template.class.php
r8449 r8506 549 549 } 550 550 551 /** 552 * combine_script smarty function allows inclusion of a javascript file in the current page. 553 * The engine will combine several js files into a single one in order to reduce the number of 554 * required http requests. 555 * param id - required 556 * param path - required - the path to js file RELATIVE to piwigo root dir 557 * param load - optional - header|footer|async, default header 558 * param require - optional - comma separated list of script ids required to be loaded and executed 559 before this one 560 * param version - optional - plugins could use this and change it in order to force a 561 browser refresh 562 */ 551 563 function func_combine_script($params, &$smarty) 552 564 { … … 653 665 } 654 666 667 /** 668 * combine_css smarty function allows inclusion of a css stylesheet file in the current page. 669 * The engine will combine several css files into a single one in order to reduce the number of 670 * required http requests. 671 * param path - required - the path to css file RELATIVE to piwigo root dir 672 * param version - optional - plugins could use this and change it in order to force a 673 browser refresh 674 */ 655 675 function func_combine_css($params, &$smarty) 656 676 { … … 900 920 $this->did_head = false; 901 921 } 902 903 function get_all()904 {905 return $this->registered_scripts;906 }922 923 function get_all() 924 { 925 return $this->registered_scripts; 926 } 907 927 908 928 function add_inline($code, $require) … … 1199 1219 } 1200 1220 1201 $output = "/* ".join("\n", $this->files)."*/\n";1221 $output = ''; 1202 1222 foreach ($this->files as $input_file) 1203 1223 { 1204 $output .= "/* BEGIN $input_file */\n";1224 $output .= "/*BEGIN $input_file */\n"; 1205 1225 if ($is_css) 1206 1226 $output .= self::process_css($input_file);
![(please configure the [header_logo] section in trac.ini)](http://piwigo.org/screenshots/piwigo_logo_on_white.png)