plugins/SpecialAdmin.php
changeset 473 518bc2b214f1
parent 465 fe8b8c9b54e8
child 504 bc8e0e9ee01d
--- a/plugins/SpecialAdmin.php	Sun Mar 02 19:32:19 2008 -0500
+++ b/plugins/SpecialAdmin.php	Sun Mar 02 22:52:23 2008 -0500
@@ -279,6 +279,12 @@
     $default_theme = ( isset($template->named_theme_list[@$_POST['default_theme']]) ) ? $_POST['default_theme'] : $template->theme_list[0]['theme_id'];
     setConfig('theme_default', $default_theme);
     
+    // Breadcrumb mode
+    if ( in_array($_POST['breadcrumb_mode'], array('subpages', 'always', 'never')) )
+    {
+      setConfig('breadcrumb_mode', $_POST['breadcrumb_mode']);
+    }
+    
     setConfig('register_tou', RenderMan::preprocess_text($_POST['register_tou'], true, false));
     
     // Account lockout policy
@@ -521,6 +527,26 @@
         </td>
       </tr>
       
+    <!-- Breadcrumbs -->
+    
+      <tr>
+        <td class="row1">
+          <?php echo $lang->get('acpgc_field_breadcrumb_mode'); ?>
+        </td>
+        <td class="row1">
+          <select name="breadcrumb_mode">
+          <?php
+            foreach ( array('subpages', 'always', 'never') as $mode )
+            {
+              $str = $lang->get("acpgc_field_breadcrumb_mode_$mode");
+              $sel = ( getConfig('breadcrumb_mode') == $mode ) ? ' selected="selected"' : '';
+              echo "  <option value=\"$mode\"$sel>$str</option>\n          ";
+            }
+          ?>
+          </select>
+        </td>
+      </tr>
+      
     </table>
     </div>