/* modify it under the terms of the GNU General Public License */\r
/* as published by the Free Software Foundation. */\r
/************************************************************************/\r
-if (!defined('AT_INCLUDE_PATH')) { exit; } ?>\r
+if (!defined('AT_INCLUDE_PATH')) { exit; } \r
\r
-<?php\r
// print the AccessForAll alternatives tool bar\r
-// see /content.php for details of the alt_parts() array\r
+// see /content.php for details of the alt_infos() array\r
// images for the toolbar can be customized by adding images of the same name to a theme's images directory\r
-echo '<div id="alternatives_shortcuts">';\r
-print_alternative_tools($this->cid,$this->theme_image_path,$this->alt_parts,$this->has_sign_lang_alternative,$this->has_visual_alternative,$this->has_audio_alternative,$this->has_text_alternative);\r
-echo '</div>';\r
?>\r
+<div id="alternatives_shortcuts">\r
+<?php \r
+ foreach ($this->alt_infos as $alt_info){\r
+ echo '<a href="'.$_SERVER['PHP_SELF'].'?cid='.$cid.(($_GET['alternative'] == $alt_info['0']) ? '' : htmlentities_utf8(SEP).'alternative='.$alt_info[0]).'">\r
+ <img src="'.AT_BASE_HREF.(($_GET['alternative'] == $alt_info[0]) ? $alt_info[3] : $alt_info[4]).'" alt="'.(($_GET['alternative'] == $alt_info[0]) ? $alt_info[2] : $alt_info[1]).'" title="'.(($_GET['alternative'] == $alt_info[0]) ? $alt_info[2] : $alt_info[1]).'" border="0" class="img1616"/></a>';\r
+ } \r
+?>\r
+</div>\r
\r
<?php if ($this->shortcuts): ?>\r
<fieldset id="shortcuts"><legend><?php echo _AT('shortcuts'); ?></legend>\r
if (!defined('AT_INCLUDE_PATH')) { exit; } \r
\r
// print the AccessForAll alternatives tool bar\r
-// see /content.php for details of the alt_parts() array\r
+// see /content.php for details of the alt_infos() array\r
// images for the toolbar can be customized by adding images of the same name to a theme's images directory\r
?>\r
<div id="alternatives_shortcuts">\r
/* modify it under the terms of the GNU General Public License */\r
/* as published by the Free Software Foundation. */\r
/************************************************************************/\r
-if (!defined('AT_INCLUDE_PATH')) { exit; } ?>\r
-<?php\r
+if (!defined('AT_INCLUDE_PATH')) { exit; } \r
+\r
// print the AccessForAll alternatives tool bar\r
-// see /content.php for details of the alt_parts() array\r
+// see /content.php for details of the alt_infos() array\r
// images for the toolbar can be customized by adding images of the same name to a theme's images directory\r
-echo '<div id="alternatives_shortcuts">';\r
-print_alternative_tools($this->cid,$this->theme_image_path,$this->alt_parts,$this->has_sign_lang_alternative,$this->has_visual_alternative,$this->has_audio_alternative,$this->has_text_alternative);\r
-echo '</div>';\r
?>\r
+<div id="alternatives_shortcuts">\r
+<?php \r
+ foreach ($this->alt_infos as $alt_info){\r
+ echo '<a href="'.$_SERVER['PHP_SELF'].'?cid='.$cid.(($_GET['alternative'] == $alt_info['0']) ? '' : htmlentities_utf8(SEP).'alternative='.$alt_info[0]).'">\r
+ <img src="'.AT_BASE_HREF.(($_GET['alternative'] == $alt_info[0]) ? $alt_info[3] : $alt_info[4]).'" alt="'.(($_GET['alternative'] == $alt_info[0]) ? $alt_info[2] : $alt_info[1]).'" title="'.(($_GET['alternative'] == $alt_info[0]) ? $alt_info[2] : $alt_info[1]).'" border="0" class="img1616"/></a>';\r
+ } \r
+?>\r
+</div>\r
+ \r
<?php if ($this->shortcuts): ?>\r
<fieldset id="shortcuts"><legend><?php echo _AT('shortcuts'); ?></legend>\r
<ul>\r
/* modify it under the terms of the GNU General Public License */\r
/* as published by the Free Software Foundation. */\r
/************************************************************************/\r
-if (!defined('AT_INCLUDE_PATH')) { exit; } ?>\r
-<?php\r
+if (!defined('AT_INCLUDE_PATH')) { exit; } \r
+\r
// print the AccessForAll alternatives tool bar\r
-// see /content.php for details of the alt_parts() array\r
+// see /content.php for details of the alt_infos() array\r
// images for the toolbar can be customized by adding images of the same name to a theme's images directory\r
-echo '<div id="alternatives_shortcuts">';\r
-print_alternative_tools($this->cid,$this->theme_image_path,$this->alt_parts,$this->has_sign_lang_alternative,$this->has_visual_alternative,$this->has_audio_alternative,$this->has_text_alternative);\r
-echo '</div>';\r
?>\r
+<div id="alternatives_shortcuts">\r
+<?php \r
+ foreach ($this->alt_infos as $alt_info){\r
+ echo '<a href="'.$_SERVER['PHP_SELF'].'?cid='.$cid.(($_GET['alternative'] == $alt_info['0']) ? '' : htmlentities_utf8(SEP).'alternative='.$alt_info[0]).'">\r
+ <img src="'.AT_BASE_HREF.(($_GET['alternative'] == $alt_info[0]) ? $alt_info[3] : $alt_info[4]).'" alt="'.(($_GET['alternative'] == $alt_info[0]) ? $alt_info[2] : $alt_info[1]).'" title="'.(($_GET['alternative'] == $alt_info[0]) ? $alt_info[2] : $alt_info[1]).'" border="0" class="img1616"/></a>';\r
+ } \r
+?>\r
+</div>\r
+ \r
<?php if ($this->shortcuts): ?>\r
<fieldset id="shortcuts"><legend><?php echo _AT('shortcuts'); ?></legend>\r
<ul>\r
/* modify it under the terms of the GNU General Public License */\r
/* as published by the Free Software Foundation. */\r
/****************************************************************/\r
-if (!defined('AT_INCLUDE_PATH')) { exit; } ?>\r
+if (!defined('AT_INCLUDE_PATH')) { exit; } \r
\r
-<?php if ($this->has_text_alternative || $this->has_audio_alternative || $this->has_visual_alternative || $this->has_sign_lang_alternative): ?>\r
+// print the AccessForAll alternatives tool bar\r
+// see /content.php for details of the alt_infos() array\r
+// images for the toolbar can be customized by adding images of the same name to a theme's images directory\r
+?>\r
<div id="alternatives_shortcuts">\r
-<?php if ($this->has_text_alternative) :?>\r
- <a href="<?php echo $_SERVER['PHP_SELF'].'?cid='.$this->cid.(($_GET['alternative'] == 3) ? '' : htmlentities_utf8(SEP).'alternative=3'); ?>">\r
- <img src="<?php echo AT_BASE_HREF; ?>images/<?php echo (($_GET['alternative'] == 3) ? 'pause.png' : 'text_alternative.png'); ?>" \r
- alt="<?php echo (($_GET['alternative'] == 3) ? _AT('stop_apply_text_alternatives') : _AT('apply_text_alternatives')); ?>" \r
- title="<?php echo (($_GET['alternative'] == 3) ? _AT('stop_apply_text_alternatives') : _AT('apply_text_alternatives')); ?>" \r
- border="0" />\r
- </a>\r
-<?php endif; // END OF has text alternative?>\r
-<?php if ($this->has_audio_alternative) :?>\r
- <a href="<?php echo $_SERVER['PHP_SELF'].'?cid='.$this->cid.(($_GET['alternative'] == 1) ? '' : htmlentities_utf8(SEP).'alternative=1'); ?>">\r
- <img src="<?php echo AT_BASE_HREF; ?>images/<?php echo (($_GET['alternative'] == 1) ? 'pause.png' : 'audio_alternative.png'); ?>" \r
- alt="<?php echo (($_GET['alternative'] == 1) ? _AT('stop_apply_audio_alternatives') : _AT('apply_audio_alternatives')); ?>" \r
- title="<?php echo (($_GET['alternative'] == 1) ? _AT('stop_apply_audio_alternatives') : _AT('apply_audio_alternatives')); ?>" \r
- border="0" />\r
- </a>\r
-<?php endif; // END OF has audio alternative?>\r
-<?php if ($this->has_visual_alternative) :?>\r
- <a href="<?php echo $_SERVER['PHP_SELF'].'?cid='.$this->cid.(($_GET['alternative'] == 4) ? '' : htmlentities_utf8(SEP).'alternative=4'); ?>">\r
- <img src="<?php echo AT_BASE_HREF; ?>images/<?php echo (($_GET['alternative'] == 4) ? 'pause.png' : 'visual_alternative.png'); ?>" \r
- alt="<?php echo (($_GET['alternative'] == 4) ? _AT('stop_apply_visual_alternatives') : _AT('apply_visual_alternatives')); ?>" \r
- title="<?php echo (($_GET['alternative'] == 4) ? _AT('stop_apply_visual_alternatives') : _AT('apply_visual_alternatives')); ?>" \r
- border="0" />\r
- </a>\r
-<?php endif; // END OF has visual alternative?>\r
-<?php if ($this->has_sign_lang_alternative) :?>\r
- <a href="<?php echo $_SERVER['PHP_SELF'].'?cid='.$this->cid.(($_GET['alternative'] == 2) ? '' : htmlentities_utf8(SEP).'alternative=2'); ?>">\r
- <img src="<?php echo AT_BASE_HREF; ?>images/<?php echo (($_GET['alternative'] == 2) ? 'pause.png' : 'sign_lang_alternative.png'); ?>" \r
- alt="<?php echo (($_GET['alternative'] == 2) ? _AT('stop_apply_sign_lang_alternatives') : _AT('apply_sign_lang_alternatives')); ?>" \r
- title="<?php echo (($_GET['alternative'] == 2) ? _AT('stop_apply_sign_lang_alternatives') : _AT('apply_sign_lang_alternatives')); ?>" \r
- border="0" />\r
- </a>\r
-<?php endif; // END OF has sign language alternative?>\r
+<?php \r
+ foreach ($this->alt_infos as $alt_info){\r
+ echo '<a href="'.$_SERVER['PHP_SELF'].'?cid='.$cid.(($_GET['alternative'] == $alt_info['0']) ? '' : htmlentities_utf8(SEP).'alternative='.$alt_info[0]).'">\r
+ <img src="'.AT_BASE_HREF.(($_GET['alternative'] == $alt_info[0]) ? $alt_info[3] : $alt_info[4]).'" alt="'.(($_GET['alternative'] == $alt_info[0]) ? $alt_info[2] : $alt_info[1]).'" title="'.(($_GET['alternative'] == $alt_info[0]) ? $alt_info[2] : $alt_info[1]).'" border="0" class="img1616"/></a>';\r
+ } \r
+?>\r
</div>\r
-<?php endif; // END OF displaying alternative shortcut icons?>\r
\r
<?php \r
if ($_SESSION["prefs"]["PREF_SHOW_CONTENTS"] && $this->content_table <> "") \r