<?php if ($page['footer_first'] || $page['footer_second'] || $page['footer']):?>
<!-- #footer -->
<footer id="footer" class="clearfix">
    <div class="container-full">
    
        <!-- #footer-inside -->
        <div id="footer-inside" class="clearfix">
            <div class="row">
                <div class="col-md-3">
                    <?php if ($page['footer_first']):?>
                    <div class="footer-area">
                    <?php print render($page['footer_first']); ?>
                    </div>
                    <?php endif; ?>
                </div>
                
                <div class="col-md-9">
                    <?php if ($page['footer_second']):?>
                    <div class="footer-area">
                    <?php print render($page['footer_second']); ?>
                    </div>
                    <?php endif; ?>
                </div>                
            </div>
            
            <?php if ($page['footer']):?>
            <div id="footer-inside-sub" class="clearfix">
                <div class="row">
                    <div class="col-md-12">
                        <?php if ($page['footer']):?>
                        <?php print render($page['footer']); ?>
                        <?php endif; ?>
                    </div>
                </div>
            </div>
            <?php endif; ?>
            
        </div>
        <!-- EOF: #footer-inside -->
    
    </div>
</footer> 
<!-- EOF #footer -->
<?php endif; ?>