Skip to content

Commit

Permalink
Check if RAD Title notes are empty/NULL. (#1870) (#1871)
Browse files Browse the repository at this point in the history
  • Loading branch information
melaniekung authored Sep 20, 2024
1 parent 4926bc9 commit 7956366
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@
<div class="titleNotes <?php echo render_b5_show_value_css_classes(); ?>">
<ul class="<?php echo render_b5_show_list_css_classes(); ?>">
<?php foreach ($resource->getNotesByTaxonomy(['taxonomyId' => QubitTaxonomy::RAD_TITLE_NOTE_ID]) as $item) { ?>
<li><?php echo render_value_inline($item->type); ?>: <?php echo render_value_inline($item->getContent(['cultureFallback' => true])); ?></li>
<?php if (0 != count($item->getContent(['cultureFallback' => true]))) { ?>
<li><?php echo render_value_inline($item->type); ?>: <?php echo render_value_inline($item->getContent(['cultureFallback' => true])); ?></li>
<?php } ?>
<?php } ?>
</ul>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@
<div class="titleNotes">
<ul>
<?php foreach ($resource->getNotesByTaxonomy(['taxonomyId' => QubitTaxonomy::RAD_TITLE_NOTE_ID]) as $item) { ?>
<li><?php echo render_value_inline($item->type); ?>: <?php echo render_value_inline($item->getContent(['cultureFallback' => true])); ?></li>
<?php if (0 != count($item->getContent(['cultureFallback' => true]))) { ?>
<li><?php echo render_value_inline($item->type); ?>: <?php echo render_value_inline($item->getContent(['cultureFallback' => true])); ?></li>
<?php } ?>
<?php } ?>
</ul>
</div>
Expand Down

0 comments on commit 7956366

Please sign in to comment.