| @@ 887-891 (lines=5) @@ | ||
| 884 | ||
| 885 | if ( $first_renewal_timestamp > 0 ) { |
|
| 886 | if ( $atts['show_time'] ) { |
|
| 887 | if ( 'timestamp' == $atts['format'] ) { |
|
| 888 | $date_format = 'Y-m-d H:i:s'; |
|
| 889 | } else if ( 'string' == $atts['format'] ) { |
|
| 890 | $date_format = 'D jS M Y H:i A'; |
|
| 891 | } |
|
| 892 | } else { |
|
| 893 | if ( 'timestamp' == $atts['format'] ) { |
|
| 894 | $date_format = 'Y-m-d'; |
|
| @@ 892-898 (lines=7) @@ | ||
| 889 | } else if ( 'string' == $atts['format'] ) { |
|
| 890 | $date_format = 'D jS M Y H:i A'; |
|
| 891 | } |
|
| 892 | } else { |
|
| 893 | if ( 'timestamp' == $atts['format'] ) { |
|
| 894 | $date_format = 'Y-m-d'; |
|
| 895 | } else if ( 'string' == $atts['format'] ) { |
|
| 896 | $date_format = 'D jS M Y'; |
|
| 897 | } |
|
| 898 | } |
|
| 899 | ||
| 900 | $first_payment = date( $date_format, $first_renewal_timestamp ); |
|
| 901 | } else { |
|