| |
| <?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| function day_two_digits() {return date('d');}
|
| function day_text_three_letters() {return date('D');}
|
| function day_two_digits_no_zero() {return date('j');}
|
| function day_text() {return date('l');}
|
| function day_ISO() {return date('N');}
|
| function day_ordinal() {return date('S');}
|
| function day_of_week() {return date('w');}
|
| function day_of_year() {return date('z');}
|
| function week_of_year() {return date('W');}
|
| function month_text() {return date('F');}
|
| function month_two_digits() {return date('m');}
|
| function month_text_three_letters() {return date('M');}
|
| function month_two_digits_no_zero() {return date('n');}
|
| function year_four_digits() {return date('Y');}
|
| function year_two_digits() {return date('y');}
|
| function date_long() {return date('F').date('j').", ".date('Y');}
|
| function date_dmy() {return date('d')."-".date('m')."-".date('Y');}
|
| function date_mdy() {return date('m')."-".date('d')."-".date('Y');}
|
|
|
| add_shortcode('d', 'day_two_digits');
|
| add_shortcode('D', 'day_text_three_letters');
|
| add_shortcode('j', 'day_two_digits_no_zero');
|
| add_shortcode('l', 'day_text');
|
| add_shortcode('N', 'day_ISO');
|
| add_shortcode('S', 'day_ordinal');
|
| add_shortcode('w', 'day_of_week');
|
| add_shortcode('z', 'day_of_year');
|
| add_shortcode('W', 'week_of_year');
|
| add_shortcode('F', 'month_text');
|
| add_shortcode('m', 'month_two_digits');
|
| add_shortcode('M', 'month_text_three_letters');
|
| add_shortcode('n', 'month_two_digits_no_zero');
|
| add_shortcode('Y', 'year_four_digits');
|
| add_shortcode('y', 'year_two_digits');
|
| add_shortcode('date-long', 'date_long');
|
| add_shortcode('date-dmy', 'date_dmy');
|
| add_shortcode('date-mdy', 'date_mdy');
|
|
|
|
|
| |
| |