Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $current_url_all = explode( "/", (parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)));
- end($current_url_all);
- $current_url_date = prev($current_url_all);
- if ( $timestamp = strtotime($current_url_date) !== false ) {
- $d = new DateTime( $current_url_date );
- _e($d->format('F'),'holidayge');
- } else {
- _e(date('F'),'holidayge');
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement