[wp-cvs] wordpress/wp-admin options-general.php,1.27,1.28

Ryan Boren rboren at users.sourceforge.net
Thu Sep 9 23:07:48 UTC 2004


Update of /cvsroot/cafelog/wordpress/wp-admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3759/wp-admin

Modified Files:
	options-general.php 
Log Message:
Allow the calendar start of week to be provisioned.  get_calendar() patch from rq. Bug 32.

Index: options-general.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/options-general.php,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** options-general.php	5 Sep 2004 00:24:26 -0000	1.27
--- options-general.php	9 Sep 2004 23:07:45 -0000	1.28
***************
*** 48,52 ****
    <form name="form1" method="post" action="options.php"> 
      <input type="hidden" name="action" value="update" /> 
! 	<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'" /> 
      <table width="100%" cellspacing="2" cellpadding="5" class="editform"> 
        <tr valign="top"> 
--- 48,52 ----
    <form name="form1" method="post" action="options.php"> 
      <input type="hidden" name="action" value="update" /> 
! 	<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'" /> 
      <table width="100%" cellspacing="2" cellpadding="5" class="editform"> 
        <tr valign="top"> 
***************
*** 111,114 ****
--- 111,127 ----
  <?php _e('Output:') ?> <strong><?php echo gmdate(get_settings('time_format'), current_time('timestamp')); ?></strong></td>
        	</tr> 
+       <tr>
+         <th scope="row"><?php _e('Weeks in the calendar should start on:') ?></th>
+         <td><select name="start_of_week" id="start_of_week">
+ 	<?php
+ for ($day_index = 0; $day_index <= 6; $day_index++) :
+ 	if ($day_index == get_settings('start_of_week')) $selected = " selected='selected'";
+ 	else $selected = '';
+ echo "\n\t<option value='$day_index' $selected>$weekday[$day_index]</option>";
+ endfor;
+ ?>
+ </select></td>
+        		</tr>
+ 
  </table>
  




More information about the cvs mailing list