Skip to content

Commit

Permalink
add title as class
Browse files Browse the repository at this point in the history
  • Loading branch information
JorisLambrechts committed Jan 29, 2025
1 parent cec6fa3 commit ec36654
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions themes/base/view/common/resource-values.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ endif;

<?php $firstextra = true;?>
<?php endif; ?>
<?php if($comment != "extra" && $comment != "" && !str_contains("title",$comment)):?>
<?php if($comment != "extra" && $comment):?>
<div class="columns is-12">
<div class="column">
<h4 class="has-text-weight-semibold is-6 section-head" style="margin-top:1rem;"><?php echo $comment;?></h4>
Expand All @@ -57,14 +57,19 @@ endif;
<?php endif; ?>
<?php
$style="";$extra_class="";
$alt_class="";
if ($propertyData['alternate_label']):
if($propertyData['alternate_label'] == "Inventory" || $propertyData['alternate_label'] == "Audio" || $propertyData['alternate_label'] == "Bibliography"):
$extra_class="section-head";
$style="padding-top:1rem;";
endif;

if(!str_contains("title",$propertyData['alternate_label'])):
$alt_class = $propertyData['alternate_label'];
endif;
endif;
?>
<div class="columns <?php echo $propertyData['alternate_label']; ?>" style="<?php echo $style;?>">
<div class="columns <?php echo $alt_class; ?>" style="<?php echo $style;?>">
<div class="column is-one-fifth">
<?php if ($propertyData['alternate_label']): ?>
<?php if($propertyData['alternate_label'] == "Archival record"):
Expand Down

0 comments on commit ec36654

Please sign in to comment.