Files

62 lines
3.0 KiB
PHP

<?php
function EN_quantica_user_viewer() {
$ano = 2023;
if (!is_user_logged_in())
{
$out = '<hr><br><h1>EXCLUSIVE ACCESS FOR REGISTERED USERS </h1>';
$out .= '<p>Log in to the website: <a href="https://www.sige.ita.br/log-in/">LOGIN</a> or complete your registration right now: <a href="https://www.sige.ita.br/cadastro_en/">REGISTRATION</a>.</p><br><hr>';
return $out;
}
$usr = wp_get_current_user();
//$usr_info = get_userdata( $usr->ID );
$out = '<h1>I NATIONAL MEETING ON QUANTUM TECHNOLOGIES FOR DEFENSE </h1><hr>';
//$out .= '<hr style="height:1px;border:none;color:#e3e3e3;background-color:#e3e3e3"/>';
$out .= '<br><p>This year, the National Meeting on Quantum Technologies for Defense will take place in São José dos Campos-SP, at ITA facilities. The event will be integrated with SIGE, allowing participants to engage in discussions on various other defense-focused topics.</p><br>';
////////////////////////////////////////////////////////////////////
//Adicionar Botão para participação ONLINE/////////////
//Adicionar Botão para participação PRESENCIAL/////////////
$btn_name_egedO = 'eged_online';
$btn_name_egedP = 'eged_presencial';
if (isset($_POST[$btn_name_egedO]))
{
update_user_meta( $usr->ID, $btn_name_egedO, $_POST[$btn_name_egedO]);
$usr->add_role( 'inscritos_2023' );
}
if (isset($_POST[$btn_name_egedP]))
{
update_user_meta( $usr->ID, $btn_name_egedP, $_POST[$btn_name_egedP]);
$usr->add_role( 'inscritos_2023' );
update_user_meta( $usr->ID, "presencial_geral", "Sim");
header("Refresh:0");
}
//Participação no EGED
$out .= '<hr style="height:1px;border:none;color:#e3e3e3;background-color:#e3e3e3"/>';
$out .='<h2><strong>ACCESS TO THE ONLINE EVENT CONTENT </strong></h2>';
$out .= '<p>You will have remote access to all the exclusive content of the I National Meeting on Quantum Technologies for Defense, including access to academic papers with presentations by the authors themselves, the ability to submit questions, and the opportunity to follow live broadcasts.</p>';
$out .= EN_create_status_request($usr, $btn_name_egedO, "STATUS: ",true);
$out .='<h2><strong>IN-PERSON PARTICIPATION </strong></h2>';
$out .='<p>Seize this opportunity! You will have the chance to attend the lectures, technical sessions, workshops, presentations, and mini-courses held at facilities of the ITA during this edition of SIGE. Moreover, you will have the opportunity to engage with military personnel, academics, and companies actively involved in the development of cutting-edge defense solutions. Secure your spot now, as we have limited availability, and registrations will be accepted until <strong>September 19, 2023</strong>.</p><br>';
$out .= EN_create_status_request($usr, $btn_name_egedP, "STATUS: ", true);
////////////////////////////////////////////////
return $out;
}
add_shortcode('EN_quantica', 'EN_quantica_user_viewer');
?>