|
@@ 126-128 (lines=3) @@
|
| 123 |
|
* @return mixed(int|string) status int if the display string isn't requested |
| 124 |
|
*/ |
| 125 |
|
public function ticket_status( $display = FALSE ) { |
| 126 |
|
if ( ! $this->is_remaining() ) { |
| 127 |
|
return $display ? EEH_Template::pretty_status( EE_Ticket::sold_out, FALSE, 'sentence' ) : EE_Ticket::sold_out; |
| 128 |
|
} |
| 129 |
|
if ( $this->get( 'TKT_deleted' ) ) { |
| 130 |
|
return $display ? EEH_Template::pretty_status( EE_Ticket::archived, FALSE, 'sentence' ) : EE_Ticket::archived; |
| 131 |
|
} |
|
@@ 129-131 (lines=3) @@
|
| 126 |
|
if ( ! $this->is_remaining() ) { |
| 127 |
|
return $display ? EEH_Template::pretty_status( EE_Ticket::sold_out, FALSE, 'sentence' ) : EE_Ticket::sold_out; |
| 128 |
|
} |
| 129 |
|
if ( $this->get( 'TKT_deleted' ) ) { |
| 130 |
|
return $display ? EEH_Template::pretty_status( EE_Ticket::archived, FALSE, 'sentence' ) : EE_Ticket::archived; |
| 131 |
|
} |
| 132 |
|
if ( $this->is_expired() ) { |
| 133 |
|
return $display ? EEH_Template::pretty_status( EE_Ticket::expired, FALSE, 'sentence' ) : EE_Ticket::expired; |
| 134 |
|
} |