UX: Added breadcrumbs on YMS subpages.
authorDan
Sat, 01 Aug 2009 00:12:20 -0400
changeset 1 765356a05643
parent 0 9997bee9ad03
child 2 bbdd428926b9
UX: Added breadcrumbs on YMS subpages.
yms/yms.php
--- a/yms/yms.php	Fri Jul 31 23:51:08 2009 -0400
+++ b/yms/yms.php	Sat Aug 01 00:12:20 2009 -0400
@@ -174,7 +174,7 @@
       <?php echo $lang->get('yms_btn_show_converter'); ?>
     </a>
     
-    <a href="<?php echo makeUrlNS('Special', 'YMS/Converter'); ?>" onclick="yms_showpage('ShowClientInfo'); return false;" class="abutton abutton_blue icon"
+    <a href="<?php echo makeUrlNS('Special', 'YMS/ShowClientInfo'); ?>" onclick="yms_showpage('ShowClientInfo'); return false;" class="abutton abutton_blue icon"
        style="background-image: url(<?php echo scriptPath; ?>/plugins/yms/icons/show_client_info.png);">
       <?php echo $lang->get('yms_btn_show_client_info'); ?>
     </a>
@@ -197,6 +197,11 @@
   global $output;
   global $lang;
   
+  $output->add_after_header('<div class="breadcrumbs">
+      <a href="' . makeUrlNS('Special', 'YMS') . '">' . $lang->get('yms_specialpage_yms') . '</a> &raquo;
+      ' . $lang->get('yms_btn_add_key') . '
+    </div>');
+  
   $output->header();
   ?>
   <h3><?php echo $lang->get('yms_lbl_addkey_heading'); ?></h3>
@@ -285,6 +290,11 @@
   global $db, $session, $paths, $template, $plugins; // Common objects
   global $lang, $output;
   
+  $output->add_after_header('<div class="breadcrumbs">
+      <a href="' . makeUrlNS('Special', 'YMS') . '">' . $lang->get('yms_specialpage_yms') . '</a> &raquo;
+      ' . $lang->get('yms_btn_add_key_preregistered') . '
+    </div>');
+  
   $output->header();
   ?>
   <h3><?php echo $lang->get('yms_lbl_claimkey_heading'); ?></h3>
@@ -374,6 +384,11 @@
   global $db, $session, $paths, $template, $plugins; // Common objects
   global $lang, $output;
   
+  $output->add_after_header('<div class="breadcrumbs">
+      <a href="' . makeUrlNS('Special', 'YMS') . '">' . $lang->get('yms_specialpage_yms') . '</a> &raquo;
+      ' . $lang->get('yms_btn_show_aes') . '
+    </div>');
+  
   $id = intval($paths->getParam(1));
   
   // verify ownership, retrieve key
@@ -444,6 +459,11 @@
   global $db, $session, $paths, $template, $plugins; // Common objects
   global $lang, $output;
   
+  $output->add_after_header('<div class="breadcrumbs">
+      <a href="' . makeUrlNS('Special', 'YMS') . '">' . $lang->get('yms_specialpage_yms') . '</a> &raquo;
+      ' . $lang->get('yms_btn_show_client_info') . '
+    </div>');
+  
   $q = $db->sql_query('SELECT apikey FROM ' . table_prefix . "yms_clients WHERE id = {$session->user_id};");
   if ( !$q )
     $db->_die();
@@ -498,6 +518,11 @@
   global $db, $session, $paths, $template, $plugins; // Common objects
   global $lang, $output;
   
+  $output->add_after_header('<div class="breadcrumbs">
+      <a href="' . makeUrlNS('Special', 'YMS') . '">' . $lang->get('yms_specialpage_yms') . '</a> &raquo;
+      ' . $lang->get('yms_btn_show_converter') . '
+    </div>');
+  
   $output->header();
   
   if ( isset($_POST['value']) )