Make WordPress Core

Changeset 6976


Ignore:
Timestamp:
02/22/2008 06:43:56 AM (16 years ago)
Author:
ryan
Message:

Styling for permalink settings page from mtfrom mt. fixes #5956

File:
1 edited

Legend:

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

    r6841 r6976  
    127127    );
    128128?>
    129 <h3><?php _e('Common settings:'); ?></h3>
    130 <p>
    131     <label>
    132 <input name="selection" type="radio" value="" class="tog" <?php checked('', $permalink_structure); ?> />
    133 <?php _e('Default'); ?><br /> <span> <?php echo _c('&raquo;|Used as a list bullet'); ?> <code><?php echo get_option('home'); ?>/?p=123</code></span>
    134    </label>
    135 </p>
    136 <p>
    137     <label>
    138 <input name="selection" type="radio" value="<?php echo $structures[1]; ?>" class="tog" <?php checked($structures[1], $permalink_structure); ?> />
    139 <?php _e('Date and name based'); ?><br /> <span> <?php echo _c('&raquo;|Used as a list bullet'); ?> <code><?php echo get_option('home') . $prefix . '/' . date('Y') . '/' . date('m') . '/' . date('d') . '/sample-post/'; ?></code></span>
    140    </label>
    141 </p>
    142 <p>
    143     <label>
    144 <input name="selection" type="radio" value="<?php echo $structures[2]; ?>" class="tog" <?php checked($structures[2], $permalink_structure); ?> />
    145 <?php _e('Numeric'); ?><br /> <span> <?php echo _c('&raquo;|Used as a list bullet'); ?> <code><?php echo get_option('home') . $prefix  ; ?>/archives/123</code></span>
    146    </label>
    147 </p>
    148 <p>
    149 <label>
    150 <input name="selection" id="custom_selection" type="radio" value="custom" class="tog"
    151 <?php if ( !in_array($permalink_structure, $structures) ) { ?>
    152 checked="checked"
    153 <?php } ?>
    154  />
    155 <?php _e('Custom, specify below'); ?>
    156 </label>
    157 <br />
    158 </p>
    159 <p id="customstructure"><?php _e('Custom structure'); ?>: <input name="permalink_structure" id="permalink_structure" type="text" class="code" style="width: 60%;" value="<?php echo attribute_escape($permalink_structure); ?>" size="50" /></p>
     129<h3><?php _e('Common settings'); ?></h3>
     130<table class="niceblue">
     131    <tr>
     132        <td><label><input name="selection" type="radio" value="" class="tog" <?php checked('', $permalink_structure); ?> /> <?php _e('Default'); ?></label>
     133        <td><code><?php echo get_option('home'); ?>/?p=123</code></span></td>
     134    </tr>
     135    <tr>
     136        <td><label><input name="selection" type="radio" value="<?php echo $structures[1]; ?>" class="tog" <?php checked($structures[1], $permalink_structure); ?> /> <?php _e('Date and name based'); ?></label></td>
     137        <td><code><?php echo get_option('home') . $prefix . '/' . date('Y') . '/' . date('m') . '/' . date('d') . '/sample-post/'; ?></code></td>
     138    </tr>
     139    <tr>
     140        <td><label><input name="selection" type="radio" value="<?php echo $structures[2]; ?>" class="tog" <?php checked($structures[2], $permalink_structure); ?> /> <?php _e('Numeric'); ?></label></td>
     141        <td><code><?php echo get_option('home') . $prefix  ; ?>/archives/123</code></td>
     142    </tr>
     143    <tr>
     144        <td>
     145            <label><input name="selection" id="custom_selection" type="radio" value="custom" class="tog"
     146            <?php if ( !in_array($permalink_structure, $structures) ) { ?>
     147            checked="checked"
     148            <?php } ?>
     149             />
     150            <?php _e('Custom Structure'); ?>
     151            </label>
     152        </td>
     153        <td>
     154            <input name="permalink_structure" id="permalink_structure" type="text" class="code" style="width: 60%;" value="<?php echo attribute_escape($permalink_structure); ?>" size="50" />
     155        </td>
     156    </tr>
     157</table>
    160158
    161159<h3><?php _e('Optional'); ?></h3>
     
    165163    <p><?php _e('If you like, you may enter custom bases for your category and tag <abbr title="Universal Resource Locator">URL</abbr>s here. For example, using <code>/topics/</code> as your category base would make your category links like <code>http://example.org/index.php/topics/uncategorized/</code>. If you leave these blank the defaults will be used.') ?></p>
    166164<?php endif; ?>
    167     <p>
    168   <?php _e('Category base'); ?>: <input name="category_base" id="category_base" type="text" class="code"  value="<?php echo attribute_escape($category_base); ?>" size="30" />
    169      </p>
    170       <p>
    171       <?php _e('Tag base'); ?>: <input name="tag_base" id="tag_base" type="text" class="code"  value="<?php echo attribute_escape($tag_base); ?>" size="30" />
    172      </p>
    173     <p class="submit">
    174       <input type="submit" name="submit" value="<?php _e('Save Changes') ?>" />
    175     </p>
     165
     166<table class="niceblue">
     167    <tr>
     168        <th><?php _e('Category base'); ?></th>
     169        <td><input name="category_base" id="category_base" type="text" class="code"  value="<?php echo attribute_escape($category_base); ?>" size="30" /></td>
     170    </tr>
     171    <tr>
     172        <th><?php _e('Tag base'); ?></th>
     173        <td><input name="tag_base" id="tag_base" type="text" class="code"  value="<?php echo attribute_escape($tag_base); ?>" size="30" /></td>
     174    </tr>
     175</table>
     176<input type="submit" name="submit" class="button" value="<?php _e('Save Changes') ?>" />
    176177  </form>
    177178<?php if ( $permalink_structure && !$usingpi && !$writable ) : ?>
Note: See TracChangeset for help on using the changeset viewer.