Changeset 1898
- Timestamp:
- 2006-01-30 20:51:20 (3 years ago)
- Files:
-
- Anode/trunk/acidfree/class_annodex.inc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
Anode/trunk/acidfree/class_annodex.inc
r1897 r1898 90 90 return ''; 91 91 92 theme_annodex_control( &$node );92 return theme_annodex_control( &$node ); 93 93 } 94 94 … … 98 98 99 99 function _annodex_view_help($text, $link, $alt) { 100 $output = "<p>".t('Problems viewing annodexs?')."<br />\n";100 $output = "<p>".t('Problems viewing Annodexes?')."<br />\n"; 101 101 $output .= l($text, $link, Array('title'=>$alt)); 102 102 $output .= "</p>\n"; … … 108 108 function theme_annodex_control(&$node) { 109 109 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 } 115 136 }