
<!-- footer area -->

<!-- instagram start -->
<?php 
    $ins_access_token = vinkmag_option('ins_access_token', '2367672995.1677ed0.dea7a14501d04cd9982c7a0d23c716dd');
    $ins_userId = vinkmag_option('ins_userId', '2367672995');
    $ins_limit = vinkmag_option('ins_limit', '6');
    $ins_user_link = vinkmag_option('ins_user_link', 'https://www.instagram.com/xpeeder/');
 ?>
 <span id="ins_access_token" data-token="<?php echo $ins_access_token; ?>"></span>
 <span id="ins_userId" data-user="<?php echo $ins_userId; ?>"></span>
 <span id="ins_limit" data-limit="<?php echo $ins_limit; ?>"></span>

<?php if(vinkmag_option('instagram_feed', 'yes') == 'yes'): ?>
    <div class="instagram-area">
        <div id="instafeed-gallery-feed"></div>
        <div class="follow-btn-area">
            <a class="btn btn-primary" href="<?php echo esc_url($ins_user_link); ?>" target="_blank">
                <?php echo esc_html("Follow On Instagram", 'vinkmag'); ?>
            </a>
        </div>
    </div>
<?php endif; ?>
<!-- instagram end -->
<footer class="ts-footer ts-footer-2">
        <div class="container">
            <div class="row">
                <div class="col-lg-12">
                    <div class="footer-menu footer-menu-inline text-center">
                            <?php get_template_part( 'template-parts/navigations/nav', 'footer' ); ?>
                    </div>
                </div>
            </div>
            <!-- end row-->
            <div class="row">
                <div class="col-md-6">
                    <div class="copyright-text">
                        <p><?php 
                            $copyright_text = vinkmag_option('footer_copyright', '&copy; 2019, Vinkmag. All rights reserved');

                            echo vinkmag_kses($copyright_text);                                
                        ?></p>
                    </div>
                </div>
                <!-- col end-->
                <div class="col-md-6">

                <?php  
                   $social_links = vinkmag_option('general_social_links',[]);
                   if(!empty($social_links)): ?>
                
                    <ul class="footer-social-list text-right">
                        <?php 
                        foreach($social_links as $sl):
                            $class = 'ts-' . str_replace('fa fa-', '', $sl['icon_class']);
                        ?>
                        <li class="<?php echo esc_attr($class); ?>">
                            <a href="<?php echo esc_url($sl['url']); ?>">
                                <i class="<?php echo esc_attr($sl['icon_class']); ?>"></i>
                            </a>
                        </li>
                        <?php endforeach; ?>
                    </ul>
                    <?php endif; ?>
                </div>
            </div>
        </div>
    </footer>

