<a title="<?php echo $text ?>" class="main-link" href="<?php echo $link ?>">
    <span class="main-logo">
        <?php if ($is_image == false): ?>
        <i class="<?php echo $icon ?>"></i>
        <?php else: ?>
        <img src="<?php echo $icon ?>"/>
        <?php endif; ?>
    </span>
</a>