api_get_path(WEB_CODE_PATH).'survey/survey_list.php?'.api_get_cidreq(), 'name' => get_lang('Survey list'), ]; $interbreadcrumb[] = [ 'url' => api_get_path(WEB_CODE_PATH).'survey/survey.php?survey_id='.$survey_id.'&'.api_get_cidreq(), 'name' => strip_tags($survey_data['title']), ]; Display::display_header(get_lang('Survey'), 'Survey'); if (!SurveyManager::survey_generation_hash_available()) { api_not_allowed(true); } $link = SurveyManager::generate_survey_link( $survey_id, api_get_course_int_id(), api_get_session_id(), api_get_group_id() ); echo '
'; echo '
'; echo Display::url(get_lang('Go to Survey'), $link, ['class' => 'btn btn-primary btn-large']); echo '
'; echo '
'; echo get_lang('By copying the link below and pasting it in an e-mail or on a website, you will allow any anonymous person to enter and answer this survey.'); echo '
';
    echo  $link;
    echo '
'; echo '
'; echo '
';