<?php global $gantry; ?>
<div class="clear"></div>
</div>

</div>
<?php if (is_active_sidebar('sidebar')) { ?>
<div class="rt-grid-3">
<div id="rt-sidebar-a">
<?php  if ($gantry->countModules('sidebar')) : ?>
            
                    <?php echo $gantry->displayModules('sidebar', 'standard', 'standard','3'); ?>
                    
            
        <?php /** End Drawer * */ endif; ?>  
</div>
</div>

<?php }?>
<div class="clear"></div>
</div>

</div>
<?php /** Begin Footer * */ //if ($gantry->countModules('footer')) :    ?>
            <div id="rt-footer">
                <div class="rt-container">
                    <?php if ($gantry->countModules('footer-left-a') || $gantry->countModules('footer-left-b')) { ?>
                     
                    <div id="rt-footer-left">
                        <?php if ($gantry->countModules('footer-left-a')) { ?>
                        <div id="rt-footer-left-a">
                            <?php echo $gantry->displayModules('footer-left-a', 'basic', 'standard'); ?>
                        </div>
                        <?php } ?>
                        <?php if ($gantry->countModules('footer-left-b')) { ?>
                        <div id="rt-footer-left-b">
                            <?php echo $gantry->displayModules('footer-left-b', 'basic', 'standard'); ?>
                        </div>
                        <?php } ?>
                    </div>
                    <?php } ?>
                    <?php if ($gantry->countModules('footer-right-a')) { ?>
                    <div id="rt-footer-right">
                        <?php echo $gantry->displayModules('footer-right-a', 'basic', 'standard'); ?>
                    </div> 
                    <?php } ?>
                    <div class="clear"></div>
                </div>
            </div>
            <?php /** End Footer * */ //endif;    ?> 
            <div class="clear"></div>
        </div> 
        <?php /** Begin Copyright * */ if ($gantry->countModules('copyright')) : ?>
            <div id="rt-copyright">
                <div class="rt-container">
                    <?php echo $gantry->displayModules('copyright', 'standard', 'standard'); ?>
                    <div class="clear"></div>
                </div>
            </div>
        <?php /** End Copyright * */ endif; ?>
        <?php /** Begin Debug * */ if ($gantry->countModules('debug')) : ?>
            <div id="rt-debug">
                <div class="rt-container">
                    <?php echo $gantry->displayModules('debug', 'standard', 'standard'); ?>
                    <div class="clear"></div>
                </div>
            </div>
        <?php /** End Debug * */ endif; ?>               
                
        <?php /** Begin Analytics * */ if ($gantry->countModules('analytics')) : ?>
            <?php echo $gantry->displayModules('analytics', 'basic', 'basic'); ?>
        <?php /** End Analytics * */ endif; ?>
         
		<div class="bottom-separator"></div>
		 
        <?php if($gantry->get('background-patern') == 'yes') { ?>
            </div>
        <?php } ?>
        <?php $gantry->displayFooter(); ?>     
    </body>
</html>
<?php

$gantry->finalize();
?>