Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Why not just redefine the css for the list wrapping the content?

    I installed the events calendar and tweaked it by adding some fields. Very cool.
    Testing it at:
    HERE
    I am still in newbie territory with PHP.
    The dates are listed with mm/dd/yyyy
    I want to change this to show the full month name.
    I tried changing the m to M and noting gives.
    Any Thoughts are appreciated

    It writes to the db with this function:

    function edit_date( $date = null ) {
    	global $wp_locale;
    
    	echo "<fieldset>";
    
    	$time_adj = time() + (get_option( 'gmt_offset' ) * 3600 );
    	$jj = ($date<>null) ? mysql2date( 'd', $date ) : gmdate( 'd', $time_adj );
    	$mm = ($date<>null) ? mysql2date( 'm', $date ) : gmdate( 'm', $time_adj );
    	$aa = ($date<>null) ? mysql2date( 'Y', $date ) : gmdate( 'Y', $time_adj );
    
    	echo "<select name=\"mm\">\n";
    	for ( $i = 1; $i < 13; $i = $i +1 ) {
    		echo "\t\t\t<option value=\"$i\"";
    		if ( $i == $mm )
    			echo ' selected="selected"';
    		echo '>' . $wp_locale->get_month( $i ) . "</option>\n";
    	}

Viewing 2 replies - 1 through 2 (of 2 total)