Skip to content

Commit

Permalink
adds default value to data resources block heading
Browse files Browse the repository at this point in the history
  • Loading branch information
kasprzyk-sz committed Oct 9, 2024
1 parent eb67001 commit 4418ac6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wp-content/plugins/vf-data-resources-block/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
}

if ($defaults == true) {
$heading = 'Data resources';
if (function_exists('embl_taxonomy_get_term')) {
$term_id = get_field('embl_taxonomy_term_what', 'option');
$term = embl_taxonomy_get_term($term_id);
Expand Down Expand Up @@ -92,4 +93,5 @@ class="vf-section-header__icon | vf-icon vf-icon-arrow--inline-end" width="24" h
<div>
<?php echo $content; ?>
</div>
<div></div>
</div>

0 comments on commit 4418ac6

Please sign in to comment.