<div class="sidebar__item">
    <a href="<?php echo base_url(); ?>" class="sidebar__link <?php echo isset($allfiles_active) && $allfiles_active == 1 ? 'active' : ''; ?>">
        <svg width="20" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z"></path></svg>
        All Files
    </a>
</div>
<div class="sidebar__item">
    <a href="<?php echo base_url().'favorites'; ?>" class="sidebar__link <?php echo isset($favorites_active) && $favorites_active == 1 ? 'active' : ''; ?>">
        <svg width="20" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z"></path></svg>
        Favorites
    </a>
</div>