Changeset 1300
- Timestamp:
- 10/01/07 14:33:36 (1 year ago)
- Files:
-
- trunk/wifidog-auth/CHANGELOG (modified) (2 diffs)
- trunk/wifidog-auth/wifidog/classes/MainUI.php (modified) (2 diffs)
- trunk/wifidog-auth/wifidog/config.php (modified) (1 diff)
- trunk/wifidog-auth/wifidog/media/base_theme/printer.css (added)
- trunk/wifidog-auth/wifidog/templates/classes/MainUI_Display.tpl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wifidog-auth/CHANGELOG
r1298 r1300 1 1 # $Id$ 2 2007-10-01 Benoit Grégoire <bock@step.polymtl.ca> 3 * Commited slightly modified patch by Robin Jones to implement #184 4 2 5 2007-09-25 Benoit Grégoire <bock@step.polymtl.ca> 3 6 * Menu.php: Fix a number of improper call time pass by reference … … 6 9 * locale/gensmarty.pl: Heads up translators: There was a bug in the regex; about 20 strings in the smarty templates were missed. 7 10 * Updated french translation 8 11 9 12 2007-09-20 Benoit Grégoire <bock@step.polymtl.ca> 10 13 * install.php: Hopefully fix #384, and remove pages unlikely to be implemented for 1.0 trunk/wifidog-auth/wifidog/classes/MainUI.php
r1290 r1300 436 436 * 437 437 * @param string Stylesheet URL 438 * 439 * @return void 440 * 441 * @access public 442 */ 443 public function appendStylesheetURL($stylesheet_url ) {438 *@param media The target media of the selected strylesheet (print, screen,etc.) 439 * @return void 440 * 441 * @access public 442 */ 443 public function appendStylesheetURL($stylesheet_url, $media=null) { 444 444 //Note: using the URL as value AND key will remove duplicate while keeping the stylesheet inclusion order, because of the way foreach is implemented in PHP 445 $this->stylesheetUrlArray[$stylesheet_url] = $stylesheet_url; 445 $this->stylesheetUrlArray[$stylesheet_url]['href'] = $stylesheet_url; 446 $this->stylesheetUrlArray[$stylesheet_url]['media'] = $media; 446 447 } 447 448 … … 544 545 // Asign base CSS and theme pack CSS stylesheet 545 546 $this->appendStylesheetURL(BASE_THEME_URL . STYLESHEET_NAME); 547 $this->appendStylesheetURL(BASE_THEME_URL . PRINT_STYLESHEET_NAME, 'print'); 546 548 $networkThemePack = Network :: getCurrentNetwork()->getThemePack(); 547 549 if ($networkThemePack) { trunk/wifidog-auth/wifidog/config.php
r1249 r1300 203 203 define('NETWORK_THEME_PACKS_DIR', 'media/network_theme_packs/'); 204 204 define('STYLESHEET_NAME', 'stylesheet.css'); 205 define('PRINT_STYLESHEET_NAME', 'printer.css'); 205 206 define('LOGIN_PAGE_NAME', 'login.html'); 206 207 define('HOTSPOT_STATUS_PAGE', 'hotspot_status.php'); trunk/wifidog-auth/wifidog/templates/classes/MainUI_Display.tpl
r1186 r1300 55 55 <title>{$title}</title> 56 56 {foreach from=$stylesheetUrlArray item=stylesheetUrl} 57 <link rel="stylesheet" type="text/css" href="{$stylesheetUrl}">57 <link rel="stylesheet" type="text/css" {if !empty($stylesheetUrl.media)}media="{$stylesheetUrl.media}"{/if} href="{$stylesheetUrl.href}"> 58 58 {/foreach} 59 59 <script src="{$base_url_path}js/formutils.js" type="text/javascript"></script>
