Skip to:
Content

bbPress.org


Ignore:
Timestamp:
02/29/2008 03:48:44 AM (18 years ago)
Author:
sambauers
Message:

Custom datetime and date formats in options. Props livibetter. Fixes #695

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-admin/options-general.php

    r1058 r1160  
    104104            <p><?php _e('Example: -7 for Pacific Daylight Time.'); ?></p>
    105105        </div>
     106        <label for="datetime_format">
     107            <?php _e('Date and time format:') ?>
     108        </label>
     109        <div>
     110            <input class="text" name="datetime_format" id="datetime_format" value="<?php echo(attribute_escape(bb_get_datetime_formatstring_i18n())); ?>" />
     111            <p><?php printf(__('Output: <strong>%s</strong>'), bb_datetime_format_i18n( bb_current_time() )); ?></p>
     112        </div>
     113        <label for="date_format">
     114            <?php _e('Date format:') ?>
     115        </label>
     116        <div>
     117            <input class="text" name="date_format" id="date_format" value="<?php echo(attribute_escape(bb_get_datetime_formatstring_i18n('date'))); ?>" />
     118            <p><?php printf(__('Output: <strong>%s</strong>'), bb_datetime_format_i18n( bb_current_time(), 'date' )); ?></p>
     119            <p><?php _e('Click "Update options" to update sample output.') ?></p>
     120            <p><?php _e('<a href="http://codex.wordpress.org/Formatting_Date_and_Time">Documentation on date formatting</a>.'); ?></p>
     121        </div>
    106122    </fieldset>
    107123    <fieldset>
Note: See TracChangeset for help on using the changeset viewer.