Hi,
I would like to display my exhibit credits in the browse.php and show.php of my default theme (Thank’s Roy theme, files in following path : themes/default/exhibit§builder/exhibits/…)
I tried to import a php piece (created by somebody else) which do that from another theme but it doesn’t work => I don’t get what “side” navigation option refers to in the backoffice.
Any help on this?
And also : Is there any documentation catalog where I could find how to call each metadata for this Thank’s Roy Theme?
Thanks !
Sam
<?php if ($exhibitNavOption == 'side'): ?>
<nav id="exhibit-pages" class="side">
<h3><?php echo exhibit_builder_link_to_exhibit($exhibit); ?></h3>
<?php if (($exhibitCredits = metadata('exhibit', 'credits'))): ?>
<div class="exhibit-credits">
<span class="label">
<?php echo __('Credits'); ?>
</span> :
<span class="author">
<?php
if(preg_match('#;#',$exhibitCredits)) {
$exhibit_authors = explode(';', $exhibitCredits );
foreach($exhibit_authors as $authors) {
$author = explode(',', $authors);
//$nom = preg_replace('# #','-',$author[0]);
$nom = trim(strtolower($author[0]));
$prenom = trim(strtolower($author[1]));
$author_link = WEB_ROOT .'/'. str_to_noaccent($nom) . '-' . str_to_noaccent($prenom);
echo '<a href="'.$author_link.'">'. $author[1] . ' ' . $author[0] .'</a>';
}
} else {
$author = explode(',', $exhibitCredits);
$nom = preg_replace('# #','-',$author[0]);
$nom = str_to_noaccent(trim(strtolower($nom)));
$prenom = str_to_noaccent(trim(strtolower($author[1])));
$author_link = WEB_ROOT .'/'. str_to_noaccent($nom) . '-' . str_to_noaccent($prenom);
echo '<a href="'.$author_link.'">'. $author[1] . ' ' . $author[0] .'</a>';
}
?>
</span>
</div>
<?php endif; ?>
<?php echo exhibit_builder_page_tree($exhibit, $exhibit_page); ?>
</nav>
<?php endif; ?>