Show
Ignore:
Timestamp:
09/19/08 04:48:52 (4 months ago)
Author:
MattRead
Message:

coding style fixes. mad props to scoates for the tokenizer foo!

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/styleswitcher/trunk/styleswitcher.plugin.php

    r678 r988  
    4343     */ 
    4444    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'; 
    4747        Stack::add( 'template_header_javascript', $jq_js_file, 'jquery' ); 
    4848        Stack::add( 'template_header_javascript', $ss_js_file, 'styleswitcher' ); 
     
    5050     
    5151    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" ); 
    5454        return $output; 
    5555    } 
    5656         
    5757    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' ); 
    6060        foreach( $stacks as $stack ) { 
    6161            $output[]= '<option value="' . $stack[2] . '">' . $stack[2] . '</option>';