Make WordPress Core


Ignore:
Timestamp:
09/09/2004 11:07:46 PM (22 years ago)
Author:
rboren
Message:

Allow the calendar start of week to be provisioned. get_calendar() patch from rq. Bug 32.

File:
1 edited

Legend:

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

    r1599 r1632  
    4848  <form name="form1" method="post" action="options.php">
    4949    <input type="hidden" name="action" value="update" />
    50     <input type="hidden" name="action" value="update" /> <input type="hidden" name="page_options" value="'blogname','blogdescription','siteurl','admin_email','users_can_register','new_users_can_blog','gmt_offset','date_format','time_format','home'" />
     50    <input type="hidden" name="action" value="update" /> <input type="hidden" name="page_options" value="'blogname','blogdescription','siteurl','admin_email','users_can_register','new_users_can_blog','gmt_offset','date_format','time_format','home','start_of_week'" />
    5151    <table width="100%" cellspacing="2" cellpadding="5" class="editform">
    5252      <tr valign="top">
     
    111111<?php _e('Output:') ?> <strong><?php echo gmdate(get_settings('time_format'), current_time('timestamp')); ?></strong></td>
    112112        </tr>
     113      <tr>
     114        <th scope="row"><?php _e('Weeks in the calendar should start on:') ?></th>
     115        <td><select name="start_of_week" id="start_of_week">
     116    <?php
     117for ($day_index = 0; $day_index <= 6; $day_index++) :
     118    if ($day_index == get_settings('start_of_week')) $selected = " selected='selected'";
     119    else $selected = '';
     120echo "\n\t<option value='$day_index' $selected>$weekday[$day_index]</option>";
     121endfor;
     122?>
     123</select></td>
     124            </tr>
     125
    113126</table>
    114127
Note: See TracChangeset for help on using the changeset viewer.