| @@ 904-908 (lines=5) @@ | ||
| 901 | ||
| 902 | if ( $first_renewal_timestamp > 0 ) { |
|
| 903 | if ( $atts['show_time'] ) { |
|
| 904 | if ( 'timestamp' == $atts['format'] ) { |
|
| 905 | $date_format = 'Y-m-d H:i:s'; |
|
| 906 | } else if ( 'string' == $atts['format'] ) { |
|
| 907 | $date_format = 'D jS M Y H:i A'; |
|
| 908 | } |
|
| 909 | } else { |
|
| 910 | if ( 'timestamp' == $atts['format'] ) { |
|
| 911 | $date_format = 'Y-m-d'; |
|
| @@ 909-915 (lines=7) @@ | ||
| 906 | } else if ( 'string' == $atts['format'] ) { |
|
| 907 | $date_format = 'D jS M Y H:i A'; |
|
| 908 | } |
|
| 909 | } else { |
|
| 910 | if ( 'timestamp' == $atts['format'] ) { |
|
| 911 | $date_format = 'Y-m-d'; |
|
| 912 | } else if ( 'string' == $atts['format'] ) { |
|
| 913 | $date_format = 'D jS M Y'; |
|
| 914 | } |
|
| 915 | } |
|
| 916 | ||
| 917 | $first_payment = date( $date_format, $first_renewal_timestamp ); |
|
| 918 | } else { |
|