If post type = forum then breadcrumbs Home > Forums

I managed to fix this by:

<?php
function the_breadcrumb() {
    global $post;
    $post_type = $post->post_type;
    echo '<ul id="breadcrumbs">';
    if(get_post_type() == 'forum' OR get_post_type() == 'topic' OR get_post_type() == 'reply') {

      echo '<li><a href="';
        echo get_option('home');
        echo '">';
        echo '<i class="ts-awesome-home" style="font-size:14px;letter-spacing: 2px;"></i> Home';
        echo '</a></li><li class="separator"> / </li>';
        echo '<a href="https://link">Forum</a>';
        echo ' &nbsp;/&nbsp; ';
        echo  the_title();

    }

    elseif (!is_home()) {
        echo '<li><a href="';
        echo get_option('home');
        echo '">';
        echo '<i class="ts-awesome-home" style="font-size:14px;letter-spacing: 2px;"></i> Home';
        echo '</a></li><li class="separator"> / </li>';
        if (is_category() || is_single()) {
            echo '<li>';
            the_category(' </li><li class="separator"> / </li><li> ');
            if (is_single()) {
                echo '</li><li class="separator"> / </li><li>';
                the_title();
                echo '</li>';
            }
        } 

        elseif (is_page()) {
            if($post->post_parent){
                $anc = get_post_ancestors( $post->ID );
                $title = get_the_title();
                foreach ( $anc as $ancestor ) {
                    $output="<li><a href="".get_permalink($ancestor).'" title="'.get_the_title($ancestor).'">'.get_the_title($ancestor).'</a></li> <li class="separator">/</li>'.$output;
                }
                echo $output;
                echo '<span title="'.$title.'"> '.$title.'</span>';
            } else {
                echo '<li><span> '.get_the_title().'</span></li>';
            }
        }

    }

}

?>