Changeset 988 for plugins/styleswitcher/trunk/styleswitcher.plugin.php
- Timestamp:
- 09/19/08 04:48:52 (4 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
plugins/styleswitcher/trunk/styleswitcher.plugin.php
r678 r988 43 43 */ 44 44 public function action_add_template_vars() { 45 $jq_js_file = Site::get_url('scripts', TRUE) . 'jquery.js';46 $ss_js_file = Site::get_url('user', TRUE) . 'plugins/' . basename(dirname(__FILE__)) . '/styleswitcher.js';45 $jq_js_file = Site::get_url('scripts', TRUE) . 'jquery.js'; 46 $ss_js_file = Site::get_url('user', TRUE) . 'plugins/' . basename(dirname(__FILE__)) . '/styleswitcher.js'; 47 47 Stack::add( 'template_header_javascript', $jq_js_file, 'jquery' ); 48 48 Stack::add( 'template_header_javascript', $ss_js_file, 'styleswitcher' ); … … 50 50 51 51 public function theme_header() { 52 $link = '<link rel="stylesheet" type="text/css" href="' . Site::get_url('theme', true) . '%s" media="%s" title="%s">';53 $output = Stack::get( 'template_stylesheet_with_title', $link."\r\n" );52 $link = '<link rel="stylesheet" type="text/css" href="' . Site::get_url('theme', true) . '%s" media="%s" title="%s">'; 53 $output = Stack::get( 'template_stylesheet_with_title', $link."\r\n" ); 54 54 return $output; 55 55 } 56 56 57 57 public function theme_styleswitcher() { 58 $output = array( '<select id="styleswitcher">' );59 $stacks = Stack::get_named_stack( 'template_stylesheet_with_title' );58 $output = array( '<select id="styleswitcher">' ); 59 $stacks = Stack::get_named_stack( 'template_stylesheet_with_title' ); 60 60 foreach( $stacks as $stack ) { 61 61 $output[]= '<option value="' . $stack[2] . '">' . $stack[2] . '</option>';
