<?php $terms = get_the_terms(get_the_ID(), 'post_tag'); ?>

<?php if ($terms && !is_wp_error($terms) && rt_get_option('single_element_tag', true)) : ?>
  <div class="rt-post-tag is-layout-flex gap-20">
    <strong><?php echo __('Tags:', 'jelajah-text') ?></strong>
    <div class="taxonomy-category is-style-outline wp-block-post-terms has-xx-small-font-size">
      <?php foreach ($terms as $term) : ?>
        <a class="<?php echo esc_attr($term->slug) ?>" href="<?php echo esc_url(get_tag_link($term->term_id)) ?>">
          <?php echo $term->name ?>
        </a>
      <?php endforeach; ?>
    </div>
  </div>
<?php endif ?>