Make WordPress Core


Ignore:
Timestamp:
05/05/2004 07:34:41 AM (22 years ago)
Author:
saxmatt
Message:

Some style cleanup. Category base and additional URI options from Jay McCarthy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-permalink.php

    r1203 r1227  
    2626    update_option('permalink_structure', $_POST['permalink_structure']);
    2727    $permalink_structure = $_POST['permalink_structure'];
     28
     29    update_option('category_base', $_POST['category_base']);
     30    $category_base = $_POST['category_base'];
    2831} else {
    2932    $permalink_structure = get_settings('permalink_structure');
     33    $category_base = get_settings('category_base');
    3034}
    3135
     
    4448  <h2><?php _e('Edit Permalink Structure') ?></h2>
    4549  <?php _e('<p>WordPress offers you the ability to create a custom URI structure for your permalinks and archives. The following &#8220;tags&#8221; are available:</p>')?>
    46   <ul>
    47     <li><code>%year%</code> --- <?php _e('The year of the post, 4 digits, for example <code>2004</code>') ?> </li>
    48     <li><code>%monthnum%</code> --- <?php _e('Month of the year, for example <code>05</code>') ?></li>
    49     <li><code>%day% </code>--- <?php _e('Day of the month, for example <code>28</code>') ?></li>
    50     <li><code>%postname%</code> --- <?php _e('A sanitized version of the title of the post. So &#8220;This Is A Great Post!&#8221; becomes &#8220;<code>this-is-a-great-post</code>&#8221; in the URI') ?> </li>
    51     <li><code>%post_id%</code> --- <?php _e('The unique ID # of the post, for example <code>423</code>') ?></li>
    52   </ul>
     50
     51<dl>
     52    <dt><code>%year%</code></dt>
     53    <dd>
     54        <?php _e('The year of the post, 4 digits, for example <code>2004</code>') ?>
     55    </dd>
     56    <dt><code>%monthnum%</code></dt>
     57    <dd>
     58        <?php _e('Month of the year, for example <code>05</code>') ?>
     59    </dd>
     60    <dt><code>%day%</code></dt>
     61    <dd>
     62        <?php _e('Day of the month, for example <code>28</code>') ?>
     63    </dd>
     64    <dt><code>%hour%</code></dt>
     65    <dd>
     66        <?php _e('Hour of the day, for example <code>15</code>') ?>
     67    </dd>
     68    <dt><code>%minute%</code></dt>
     69    <dd>
     70        <?php _e('Minute of the hour, for example <code>43</code>') ?>
     71    </dd>
     72    <dt><code>%second%</code></dt>
     73    <dd>
     74        <?php _e('Second of the minute, for example <code>33</code>') ?>
     75    </dd>
     76    <dt><code>%postname%</code></dt>
     77    <dd>
     78        <?php _e('A sanitized version of the title of the post. So &#8220;This Is A Great Post!&#8221; becomes &#8220;<code>this-is-a-great-post</code>&#8221; in the URI') ?>
     79    </dd>
     80    <dt><code>%post_id%</code></dt>
     81    <dd>
     82        <?php _e('The unique ID # of the post, for example <code>423</code>') ?>
     83    </dd>
     84</dl>
     85
    5386  <?php _e('<p>So for example a value like:</p>
    5487  <p><code>/archives/%year%/%monthnum%/%day%/%postname%/</code> </p>
     
    5992  <p>If you use this option you can ignore the mod_rewrite rules. </p>') ?>
    6093  <form name="form" action="options-permalink.php" method="post">
    61     <?php _e('<p>Use the template tags above to create a virtual site structure:</p>') ?>
     94    <p><?php _e('Use the template tags above to create a virtual site structure:') ?></p>
    6295    <p>
    6396      <input name="permalink_structure" type="text" style="width: 98%;" value="<?php echo $permalink_structure; ?>" />
    6497    </p>
     98    <p><?php _e('Enter a path without templates for your categories:') ?> FIXME[THIS WORDING MAKES NO SENSE]</p>
     99    <p>
     100  <input name="category_base" type="text" style="width: 98%;" value="<?php echo $category_base; ?>" />
     101     </p>
    65102    <p class="submit">
    66103      <input type="submit" name="submit" value="<?php _e('Update Permalink Structure &raquo;') ?>">
Note: See TracChangeset for help on using the changeset viewer.