is_free() ) {
return ( $long )
? __( 'Register Now', AI1EC_PLUGIN_NAME )
: __( 'Register', AI1EC_PLUGIN_NAME );
}
$output = '';
if ( $long ) {
$output = apply_filters(
'ai1ec_buy_tickets_url_icon',
''
);
if ( ! empty( $output ) ) {
$output .= ' ';
}
}
$output .= ( $long )
? __( 'Buy Tickets', AI1EC_PLUGIN_NAME )
: __( 'Tickets', AI1EC_PLUGIN_NAME );
return $output;
}
/**
* Contact info as HTML
*/
public function get_contact_html( Ai1ec_Event $event ) {
$contact = '
';
$has_contents = false;
if ( $event->get( 'contact_name' ) ) {
$contact .=
'
' .
' ' .
esc_html( $event->get( 'contact_name' ) ) .
'
';
$has_contents = true;
}
if ( $event->get( 'contact_phone' ) ) {
$contact .=
'
' .
' ' .
esc_html( $event->get( 'contact_phone' ) ) .
'
';
$has_contents = true;
}
if ( $event->get( 'contact_email' ) ) {
$contact .=
'
';
$has_contents = true;
}
if ( $event->get( 'contact_url' ) ) {
$contact .=
'
';
$has_contents = true;
}
$contact .= '
';
return $has_contents ? $contact : '';
}
}