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() ): ?>

getFullEventEditURL(), __("Modifica evento") . icon('edit', 'left') ) ?>

<?= esc_attr( $event->getEventTitle() ) ?>
getTrackName() ?>
getTrackLabel() ?>
getRoomName() ?>
@ getLocationGeoOSM(), $conference->getLocationName(), $conference->getLocationAddress(), null, 'target="_blank"' ) ?>
getLocationAddress() ?>
getEventHumanStart() ?>
getEventStart('d/m/Y'), $event->getEventStart('H:i') ) ?>
getEventCalURL(), __( "Scarica promemoria calendario" ) ) ?>
hasEventAbstract() ): ?>

getEventAbstractHTML( ['p' => 'flow-text'] ) ?>
hasEventDescription() ): ?>

getEventDescriptionHTML( ['p' => 'flow-text'] ) ?>
- - areEventSubscriptionsAvailable() ): ?> -
-
- -

- -
-
-
-
-

-

-
-
- - -
-
- -
-
-
-
-
-
- -
- - - hasEventNote() ): ?>

getEventNoteHTML( ['p' => 'flow-text'] ) ?>
factorySharebleByEvent() ->queryGenerator(); ?> valid() ): ?>

isSharableDownloadable() ): ?>

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() ) ?>

factoryUserByEvent() ->queryGenerator(); ?> valid() ): ?>
getUserURL(), "

" . esc_html( $user->getUserFullname() ) . "

", sprintf( __("Profilo di %s"), $user->getUserFullname() ), 'valign' ) ?>

factoryPreviousFullEvent() ->select('event_uid', 'event_title', 'chapter_uid', 'conference_uid', 'event_start') ->limit(1) ->queryRow(); $next = $event->factoryNextFullEvent() ->select('event_uid', 'event_title', 'chapter_uid', 'conference_uid', 'event_start') ->limit(1) ->queryRow(); ?>

getEventURL(), esc_html( $previous->getEventTitle() ) ) ?>

getEventURL(), esc_html( $next->getEventTitle() ) ) ?>