forked from egbot/Symbiota
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update with server side changes. - Greg
- Loading branch information
1 parent
44975d5
commit 389b27f
Showing
12 changed files
with
668 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php | ||
/* | ||
------------------ | ||
Language: English | ||
------------------ | ||
*/ | ||
|
||
$LANG['H_HOME'] = 'Home'; | ||
|
||
$LANG['H_SEARCH'] = 'Search'; | ||
$LANG['H_COLLECTIONS'] = 'Collections'; | ||
$LANG['H_MAP'] = 'Map'; | ||
$LANG['H_MAP_SEARCH'] = 'Map Search'; | ||
$LANG['H_TAXONOMIC_EXPLORER'] = 'Taxonomic Explorer'; | ||
|
||
$LANG['H_IMAGES'] = 'Images'; | ||
$LANG['H_IMAGE_BROWSER'] = 'Image Browser'; | ||
$LANG['H_IMAGE_SEARCH'] = 'Image Search'; | ||
|
||
$LANG['H_INVENTORIES'] = 'Species Checklists'; | ||
$LANG['H_PROJECT_1'] = 'Checklist Project 1'; | ||
$LANG['H_PROJECT_2'] = 'Checklist Project 2'; | ||
|
||
$LANG['H_DYN_LISTS'] = 'Dynamic Species List'; | ||
$LANG['H_DYN_KEYS'] = 'Identification Keys'; | ||
$LANG['H_AMPHIBIA'] = 'Amphibians'; | ||
$LANG['H_AVES'] = 'Birds'; | ||
$LANG['H_FISH'] = 'Fish'; | ||
$LANG['H_INVERTEBRATES'] = 'Invertebrates'; | ||
$LANG['H_MAMMALIA'] = 'Mammals'; | ||
$LANG['H_PLANTA'] = 'Plants'; | ||
$LANG['H_REPTILIA'] = 'Reptiles'; | ||
|
||
$LANG['H_MORE_INFO'] = 'More Information'; | ||
$LANG['H_ABOUT_PROJECT'] = 'About Project'; | ||
$LANG['H_PARTNERS'] = 'Partners'; | ||
$LANG['H_CONTACTS'] = 'Contacts'; | ||
$LANG['H_HELP'] = 'Symbiota Help'; | ||
$LANG['H_SITEMAP'] = 'Sitemap'; | ||
$LANG['H_DATA_USAGE'] = 'Data Use'; | ||
|
||
$LANG['H_WELCOME'] = 'Welcome'; | ||
$LANG['H_MY_PROFILE'] = 'My Profile'; | ||
$LANG['H_LOGOUT'] = 'Sign Out'; | ||
$LANG['H_LOGIN'] = 'Sign In'; | ||
$LANG['H_NEW_ACCOUNT'] = 'New Account'; | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php | ||
/* | ||
------------------ | ||
Language: Español (Spanish) | ||
------------------ | ||
*/ | ||
|
||
$LANG['H_HOME'] = 'Inicio'; | ||
|
||
$LANG['H_SEARCH'] = 'Búsqueda'; | ||
$LANG['H_COLLECTIONS'] = 'Colecciones'; | ||
$LANG['H_MAP'] = 'Mapa'; | ||
$LANG['H_MAP_SEARCH'] = 'Búsqueda Mapa'; | ||
$LANG['H_TAXONOMIC_EXPLORER'] = 'Explorador Taxonómico'; | ||
|
||
$LANG['H_IMAGES'] = 'Imágenes'; | ||
$LANG['H_IMAGE_BROWSER'] = 'Navegador de Imágenes'; | ||
$LANG['H_IMAGE_SEARCH'] = 'Búsqueda de Imágenes'; | ||
|
||
$LANG['H_INVENTORIES'] = 'Lista de Especies'; | ||
$LANG['H_PROJECT_1'] = 'Proyecto 1'; | ||
$LANG['H_PROJECT_2'] = 'Proyecto 2'; | ||
|
||
$LANG['H_DYN_LISTS'] = 'Listados Dinámicos'; | ||
$LANG['H_DYN_KEYS'] = 'Claves de identificación'; | ||
$LANG['H_AMPHIBIA'] = 'Anfibios'; | ||
$LANG['H_AVES'] = 'Aves'; | ||
$LANG['H_FISH'] = 'Peces'; | ||
$LANG['H_INVERTEBRATES'] = 'Invertebrados'; | ||
$LANG['H_MAMMALIA'] = 'Mamíferos'; | ||
$LANG['H_PLANTA'] = 'Plantas'; | ||
$LANG['H_REPTILIA'] = 'Reptiles'; | ||
|
||
$LANG['H_MORE_INFO'] = 'Más Información'; | ||
$LANG['H_ABOUT_PROJECT'] = 'Información sobre el Proyecto'; | ||
$LANG['H_PARTNERS'] = 'Socios'; | ||
$LANG['H_CONTACTS'] = 'Contactos'; | ||
$LANG['H_HELP'] = 'Ayuda de Symbiota'; | ||
$LANG['H_SITEMAP'] = 'Mapa del Sitio'; | ||
$LANG['H_DATA_USAGE'] = 'Uso de Datos'; | ||
|
||
$LANG['H_WELCOME'] = 'Bienvenido'; | ||
$LANG['H_MY_PROFILE'] = 'Mi Perfil'; | ||
$LANG['H_LOGOUT'] = 'Finalizar Sesión'; | ||
$LANG['H_LOGIN'] = 'Iniciar Sesión'; | ||
$LANG['H_NEW_ACCOUNT'] = 'Nueva Cuenta'; | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
/* | ||
------------------ | ||
Language: English | ||
------------------ | ||
*/ | ||
|
||
//Taxon Quick Search plugin variables | ||
$LANG['QSEARCH_SEARCH'] = 'Taxon Search'; | ||
$LANG['QSEARCH_SEARCH_BUTTON'] = 'Search'; | ||
|
||
//Slideshow plugin variables | ||
$LANG['HIDE_CAPTION'] = 'HIDE CAPTION'; | ||
$LANG['SHOW_CAPTION'] = 'SHOW CAPTION'; | ||
$LANG['IMAGE_BY'] = 'Image by'; | ||
$LANG['COURTESY_OF'] = 'Courtesy of'; | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
/* | ||
------------------ | ||
Language: Español (Spanish) | ||
------------------ | ||
*/ | ||
|
||
//Various plugin variables | ||
$LANG['QSEARCH_SEARCH'] = 'Búsqueda de especies'; | ||
$LANG['QSEARCH_SEARCH_BUTTON'] = 'Búsqueda'; | ||
|
||
//Slideshow plugin variables | ||
$LANG['HIDE_CAPTION'] = 'OCULTAR SUBTÍTULO'; | ||
$LANG['SHOW_CAPTION'] = 'MOSTRAR TÍTULO'; | ||
$LANG['IMAGE_BY'] = 'Imagen por'; | ||
$LANG['COURTESY_OF'] = 'Cortesía de'; | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<footer> | ||
<div class="logo-gallery"> | ||
<?php | ||
//include($SERVER_ROOT . '/accessibility/module.php'); | ||
?> | ||
<a href="https://biokic.asu.edu" target="_blank" title="<?= $LANG['F_BIOKIC'] ?>" aria-label="Visit BioKIC website"> | ||
<img src="<?= $CLIENT_ROOT; ?>/images/layout/logo-asu-biokic.png" alt="<?= $LANG['F_BIOKIC_LOGO'] ?>" /> | ||
</a> | ||
</div> | ||
<p> | ||
<?= $LANG['F_MORE_INFO'] ?>, <a href="https://symbiota.org/docs" target="_blank" rel="noopener noreferrer"><?= $LANG['F_READ_DOCS'] ?></a> <?= $LANG['F_CONTACT'] ?> | ||
<a href="https://symbiota.org/contact-the-support-hub/" target="_blank" rel="noopener noreferrer"><?= $LANG['F_SSH'] ?></a>. | ||
</p> | ||
<p> | ||
<?= $LANG['F_POWERED_BY'] ?> <a href="https://symbiota.org/" target="_blank">Symbiota</a>. | ||
</p> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
/* | ||
** Symbiota Redesign | ||
** The version is determined by the number of the release | ||
** set in config/symbini.php ($CSS_VERSION_RELEASE). | ||
** To customize the styles, add your own CSS files to the | ||
** css folder and include them here. | ||
*/ | ||
?> | ||
<!-- Responsive viewport --> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
|
||
<!-- Symbiota styles --> | ||
<link href="<?= $CSS_BASE_PATH ?>/symbiota/header.css?ver=<?= $CSS_VERSION ?>" type="text/css" rel="stylesheet"> | ||
<link href="<?= $CSS_BASE_PATH ?>/symbiota/footer.css?ver=<?= $CSS_VERSION ?>" type="text/css" rel="stylesheet"> | ||
<link href="<?= $CSS_BASE_PATH ?>/symbiota/main.css?ver=<?= $CSS_VERSION ?>" type="text/css" rel="stylesheet"> | ||
<link href="<?= $CSS_BASE_PATH ?>/symbiota/customizations.css?ver=<?= $CSS_VERSION ?>" type="text/css" rel="stylesheet"> | ||
|
||
<script src="<?= $CLIENT_ROOT ?>/js/symb/lang.js" type="text/javascript"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
<?php | ||
if($LANG_TAG == 'en' || !file_exists($SERVER_ROOT.'/content/lang/templates/header.' . $LANG_TAG . '.php')) | ||
include_once($SERVER_ROOT . '/content/lang/templates/header.en.php'); | ||
else include_once($SERVER_ROOT . '/content/lang/templates/header.' . $LANG_TAG . '.php'); | ||
$SHOULD_USE_HARVESTPARAMS = $SHOULD_USE_HARVESTPARAMS ?? false; | ||
$collectionSearchPage = $SHOULD_USE_HARVESTPARAMS ? '/collections/index.php' : '/collections/search/index.php'; | ||
?> | ||
<div class="header-wrapper"> | ||
<header> | ||
<div class="top-wrapper"> | ||
<a class="screen-reader-only" href="#end-nav"><?= $LANG['H_SKIP_NAV'] ?></a> | ||
<nav class="top-login" aria-label="horizontal-nav"> | ||
<?php | ||
if ($USER_DISPLAY_NAME) { | ||
?> | ||
<div class="welcome-text bottom-breathing-room-rel"> | ||
<?= $LANG['H_WELCOME'] . ' ' . $USER_DISPLAY_NAME ?>! | ||
</div> | ||
<span style="white-space: nowrap;" class="button button-tertiary bottom-breathing-room-rel"> | ||
<a href="<?= $CLIENT_ROOT ?>/profile/viewprofile.php"><?= $LANG['H_MY_PROFILE'] ?></a> | ||
</span> | ||
<span style="white-space: nowrap;" class="button button-secondary bottom-breathing-room-rel"> | ||
<a href="<?= $CLIENT_ROOT ?>/profile/index.php?submit=logout"><?= $LANG['H_LOGOUT'] ?></a> | ||
</span> | ||
<?php | ||
} else { | ||
?> | ||
<span class="button button-tertiary"> | ||
<a onclick="window.location.href='#'"> | ||
<?= $LANG['H_CONTACT_US'] ?> | ||
</a> | ||
</span> | ||
<span class="button button-secondary"> | ||
<a href="<?= $CLIENT_ROOT . "/profile/index.php?refurl=" . htmlspecialchars($_SERVER['SCRIPT_NAME'], ENT_COMPAT | ENT_HTML401 | ENT_SUBSTITUTE) . "?" . htmlspecialchars($_SERVER['QUERY_STRING'], ENT_QUOTES); ?>"> | ||
<?= $LANG['H_LOGIN'] ?> | ||
</a> | ||
</span> | ||
<?php | ||
} | ||
?> | ||
</nav> | ||
<div class="top-brand"> | ||
<a href="<?= $CLIENT_ROOT ?>"> | ||
<div class="image-container"> | ||
<img src="<?= $CLIENT_ROOT ?>/images/layout/logo_symbiota.png" alt="Symbiota logo"> | ||
</div> | ||
</a> | ||
<div class="brand-name"> | ||
<h1>Weevil Portal</h1> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="menu-wrapper"> | ||
<!-- Hamburger icon --> | ||
<input class="side-menu" type="checkbox" id="side-menu" name="side-menu" /> | ||
<label class="hamb hamb-line hamb-label" for="side-menu" tabindex="0">☰</label> | ||
<!-- Menu --> | ||
<nav class="top-menu" aria-label="hamburger-nav"> | ||
<ul class="menu"> | ||
<li> | ||
<a href="<?= $CLIENT_ROOT ?>/index.php"> | ||
<?= $LANG['H_HOME'] ?> | ||
</a> | ||
</li> | ||
<li> | ||
<a href="<?= $CLIENT_ROOT . $collectionSearchPage ?>"> | ||
<?= $LANG['H_SEARCH'] ?> | ||
</a> | ||
</li> | ||
<li> | ||
<a href="<?= $CLIENT_ROOT ?>/collections/map/index.php" rel="noopener noreferrer"> | ||
<?= $LANG['H_MAP_SEARCH'] ?> | ||
</a> | ||
</li> | ||
<li> | ||
<a href="<?= $CLIENT_ROOT ?>/checklists/index.php"> | ||
<?= $LANG['H_INVENTORIES'] ?> | ||
</a> | ||
</li> | ||
<li> | ||
<a href="<?= $CLIENT_ROOT ?>/imagelib/search.php"> | ||
<?= $LANG['H_IMAGES'] ?> | ||
</a> | ||
</li> | ||
<li> | ||
<a href="<?= $CLIENT_ROOT ?>/includes/usagepolicy.php"> | ||
<?= $LANG['H_DATA_USAGE'] ?> | ||
</a> | ||
</li> | ||
<li> | ||
<a href="https://symbiota.org/docs" target="_blank" rel="noopener noreferrer"> | ||
<?= $LANG['H_HELP'] ?> | ||
</a> | ||
</li> | ||
<li> | ||
<a href='<?= $CLIENT_ROOT ?>/sitemap.php'> | ||
<?= $LANG['H_SITEMAP'] ?> | ||
</a> | ||
</li> | ||
<li id="lang-select-li"> | ||
<label for="language-selection"><?= $LANG['H_SELECT_LANGUAGE'] ?>: </label> | ||
<select oninput="setLanguage(this)" id="language-selection" name="language-selection"> | ||
<option value="en">English</option> | ||
<option value="es" <?= ($LANG_TAG=='es'?'SELECTED':'') ?>>Español</option> | ||
</select> | ||
</li> | ||
</ul> | ||
</nav> | ||
</div> | ||
<div id="end-nav"></div> | ||
</header> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
<?php | ||
if($LANG_TAG == 'en' || !file_exists($SERVER_ROOT.'/content/lang/header.'.$LANG_TAG.'.php')) include_once($SERVER_ROOT.'/content/lang/header.en.php'); | ||
else include_once($SERVER_ROOT.'/content/lang/header.'.$LANG_TAG.'.php'); | ||
?> | ||
<div class="header-wrapper"> | ||
<header> | ||
<div class="top-wrapper"> | ||
<nav class="top-login"> | ||
<?php | ||
if ($USER_DISPLAY_NAME) { | ||
?> | ||
<span style=""> | ||
<?php echo (isset($LANG['H_WELCOME'])?$LANG['H_WELCOME']:'Welcome').' '.$USER_DISPLAY_NAME; ?>! | ||
</span> | ||
<span class="button button-tertiary"> | ||
<a href="<?php echo $CLIENT_ROOT; ?>/profile/viewprofile.php"><?php echo (isset($LANG['H_MY_PROFILE'])?$LANG['H_MY_PROFILE']:'My Profile')?></a> | ||
</span> | ||
<span class="button button-secondary"> | ||
<a href="<?php echo $CLIENT_ROOT; ?>/profile/index.php?submit=logout"><?php echo (isset($LANG['H_LOGOUT'])?$LANG['H_LOGOUT']:'Sign Out')?></a> | ||
</span> | ||
<?php | ||
} else { | ||
?> | ||
<span> | ||
<a href="#"> | ||
Contact Us | ||
</a> | ||
</span> | ||
<span class="button button-secondary"> | ||
<a href="<?php echo $CLIENT_ROOT . "/profile/index.php?refurl=" . $_SERVER['SCRIPT_NAME'] . "?" . htmlspecialchars($_SERVER['QUERY_STRING'], ENT_QUOTES); ?>"> | ||
<?php echo (isset($LANG['H_LOGIN'])?$LANG['H_LOGIN']:'Login')?> | ||
</a> | ||
</span> | ||
<?php | ||
} | ||
?> | ||
</nav> | ||
<div class="top-brand"> | ||
<a href="https://serv.biokic.org/weevil/portal"> | ||
<img src="<?php echo $CLIENT_ROOT; ?>/images/layout/logo_symbiota.png" alt="Symbiota logo" width="100%"> | ||
</a> | ||
<div class="brand-name"> | ||
<h1>Weevil Portal</h1> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="menu-wrapper"> | ||
<!-- Hamburger icon --> | ||
<input class="side-menu" type="checkbox" id="side-menu" /> | ||
<label class="hamb" for="side-menu"><span class="hamb-line"></span></label> | ||
<!-- Menu --> | ||
<nav class="top-menu"> | ||
<ul class="menu"> | ||
<li> | ||
<a href="<?php echo $CLIENT_ROOT; ?>/index.php"> | ||
<?php echo (isset($LANG['H_HOME'])?$LANG['H_HOME']:'Home'); ?> | ||
</a> | ||
</li> | ||
<li> | ||
<a href="<?php echo $CLIENT_ROOT; ?>/collections/index.php"> | ||
<?php echo (isset($LANG['H_COLLECTIONS'])?$LANG['H_COLLECTIONS']:'Collections'); ?> | ||
</a> | ||
</li> | ||
<li> | ||
<a href="<?php echo $CLIENT_ROOT; ?>/collections/map/index.php" target="_blank" rel="noopener noreferrer"> | ||
<?php echo (isset($LANG['H_MAP_SEARCH'])?$LANG['H_MAP_SEARCH']:'Map Search'); ?> | ||
</a> | ||
</li> | ||
<li> | ||
<a href="<?php echo $CLIENT_ROOT; ?>/projects/index.php"> | ||
<?php echo (isset($LANG['H_INVENTORIES'])?$LANG['H_INVENTORIES']:'Checklists'); ?> | ||
</a> | ||
</li> | ||
<li> | ||
<a href="<?php echo $CLIENT_ROOT; ?>/imagelib/search.php"> | ||
<?php echo (isset($LANG['H_IMAGES'])?$LANG['H_IMAGES']:'Images'); ?> | ||
</a> | ||
</li> | ||
<li> | ||
<a href="<?php echo $CLIENT_ROOT; ?>/includes/usagepolicy.php"> | ||
<?php echo (isset($LANG['H_DATA_USAGE'])?$LANG['H_DATA_USAGE']:'Data Use'); ?> | ||
</a> | ||
</li> | ||
<li> | ||
<a href="https://symbiota.org/docs" target="_blank" rel="noopener noreferrer"> | ||
<?php echo (isset($LANG['H_HELP'])?$LANG['H_HELP']:'Help'); ?> | ||
</a> | ||
</li> | ||
<li> | ||
<a href='<?php echo $CLIENT_ROOT; ?>/sitemap.php'> | ||
<?php echo (isset($LANG['H_SITEMAP'])?$LANG['H_SITEMAP']:'Sitemap'); ?> | ||
</a> | ||
</li> | ||
<li> | ||
<select onchange="setLanguage(this)"> | ||
<option value="en">English</option> | ||
<option value="es" <?php echo ($LANG_TAG=='es'?'SELECTED':''); ?>>Español</option> | ||
</select> | ||
</li> | ||
</ul> | ||
</nav> | ||
</div> | ||
</header> | ||
</div> |
Oops, something went wrong.