Changeset 1898

Show
Ignore:
Timestamp:
2006-01-30 20:51:20 (3 years ago)
Author:
ctford
Message:

When displayed, shows three links back to itself with appropriate GET settings: Annodex, Ogg Theora and CMML.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Anode/trunk/acidfree/class_annodex.inc

    r1897 r1898  
    9090        return ''; 
    9191 
    92     theme_annodex_control( &$node ); 
     92    return theme_annodex_control( &$node ); 
    9393} 
    9494 
     
    9898 
    9999function _annodex_view_help($text, $link, $alt) { 
    100     $output = "<p>".t('Problems viewing annodexs?')."<br />\n"; 
     100    $output = "<p>".t('Problems viewing Annodexes?')."<br />\n"; 
    101101    $output .= l($text, $link, Array('title'=>$alt)); 
    102102    $output .= "</p>\n"; 
     
    108108function theme_annodex_control(&$node) { 
    109109 
    110         output($node); 
    111         die; 
    112  
    113  
    114         return $output; 
     110        if(isset($_GET['mode'])) { 
     111                $mode = $_GET['mode']; 
     112                switch ($mode) { 
     113                        case "cmml": 
     114                                output_cmml($node); 
     115                                die; 
     116                                break; 
     117                        case "annodex": 
     118                                output_annodex($node); 
     119                                die; 
     120                                break; 
     121                        case "theora": 
     122                                output_ogg($node); 
     123                                die; 
     124                                break; 
     125                        default: 
     126                                output($node); 
     127                                die; 
     128                                break; 
     129                } 
     130        } else { 
     131                $output .= "<a href=\"".$_SERVER['REQUEST_URI']."&mode=annodex\">".t('Annodex').'</a><br/>'; 
     132                $output .= "<a href=\"".$_SERVER['REQUEST_URI']."&mode=theora\">".t('Ogg Theora').'</a><br/>'; 
     133                $output .= "<a href=\"".$_SERVER['REQUEST_URI']."&mode=cmml\">".t('CMML').'</a><br/>'; 
     134                return $output; 
     135        } 
    115136}