diff --git a/2016/event.php b/2016/event.php index d4f69aa..49e1287 100644 --- a/2016/event.php +++ b/2016/event.php @@ -1,354 +1,305 @@ . require 'load.php'; $conference = FullConference::factoryFromUID( CURRENT_CONFERENCE_UID ) ->queryRow(); if( !$conference ) { die_with_404(); } if( !isset( $_GET['uid'] ) ) { die_with_404(); } $event = FullEvent::factoryByConferenceAndUID( $conference->getConferenceID(), $_GET['uid'] )->queryRow(); if( !$event ) { die_with_404(); } $args = [ 'title' => sprintf( __("%s: %s"), $event->getChapterName(), $event->getEventTitle() ), 'url' => $event->getEventURL( true ), ]; if( $event->hasEventImage() ) { $args['og'] = [ 'image' => $event->getEventImage( true ), ]; } -// Adding subscribers -$subscribed = null; -if( isset( $_POST['subscription_email'] ) && $event->areEventSubscriptionsAvailable() ) { - $email = $_POST['subscription_email']; - - if( filter_var($email, FILTER_VALIDATE_EMAIL) ) { - $event->addSubscription($email); - - $args['alert'] = __("Grazie per esserti iscritto."); - $args['alert.type'] = Messagebox::INFO; - $subscribed = true; - } else { - $args['alert'] = __("E-mail non valida."); - $args['alert.type'] = Messagebox::ERROR; - $subscribed = false; - } -} - Header::spawn( null, $args ); ?> isEventEditable() ): ?>
= HTML::a( $event->getFullEventEditURL(), __("Modifica evento") . icon('edit', 'left') ) ?>
| = icon('folder', 'left'); echo __("Tema") ?> |
= $event->getTrackName() ?> = $event->getTrackLabel() ?> |
|---|---|
| = icon('room', 'left'); echo __("Dove") ?> |
= $event->getRoomName() ?> @ = HTML::a( $conference->getLocationGeoOSM(), $conference->getLocationName(), $conference->getLocationAddress(), null, 'target="_blank"' ) ?> = $conference->getLocationAddress() ?> |
| = icon('access_time', 'left'); echo __("Quando") ?> |
= $event->getEventHumanStart() ?> getEventStart('d/m/Y'), $event->getEventStart('H:i') ) ?> = HTML::a( $event->getEventCalURL(), __( "Scarica promemoria calendario" ) ) ?> |
= __("Invita anche i tuoi amici ad iscriversi condividendo l'indirizzo di questa pagina.") ?>
- - - -getSharablePath(), icon('attachment', 'left') . $sharable->getSharableTitle(['prop' => true]), null, null, 'target="_blank"' ), $sharable->getSharableLicense()->getLink() ) ?>
isSharableVideo() ): ?>getSharablePath(), icon('share', 'left') . $sharable->getSharableTitle( ['prop' => true] ), null, null, 'target="_blank"' ), $sharable->getSharableLicense()->getLink() ) ?>
= __("L'elenco dei relatori non รจ ancora noto.") ?>
= HTML::a( $previous->getEventURL(), esc_html( $previous->getEventTitle() ) ) ?>
= HTML::a( $next->getEventURL(), esc_html( $next->getEventTitle() ) ) ?>