1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
  <?php
  if(get_option( THEMESLUG.'_twitter_username') && get_option( THEMESLUG.'_twitter_bar') ):
  ?>
  <!-- Tweet Bar  -->
  <div class="border"> 
    <div class="banner tweetbar">
      <script type="text/javascript">jQuery(".banner.tweetbar").tweet({ count: '1', username: "<?php echo get_option( THEMESLUG.'_twitter_username'); ?>", loading_text: "..." });</script>
    </div>
   </div>
  <!-- / Tweet Bar  -->
  <?php endif;?>
  
</div>
</div>
<!-- / wrapper -->

<!-- footer wrapper -->
<div class="footer_background"> 
  <div class="border">

  <?php
  if(get_option( THEMESLUG.'_show_footer_widgets') ):
  ?>
  <!-- footer widgets -->
  <div class="content_background">
  <div class="content home_page content_footer"> 

    <!-- widgetized home page area -->
    <?php if (function_exists('dynamic_sidebar')){  dynamic_sidebar('sidebar-for-footer'); } ?>
    <div class="clear"></div>
    <!-- / widgetized home page area -->
    
  </div>
  </div>
  <!-- / footer widgets contents  -->
  <div class="clear"></div><div class="space half"></div>
  <?php endif;?>
  
    <!-- footer -->
    <div id="footer">
      <div class="part1">
        <!-- copyright text -->
        
        <div class="copyright"><?php echo wpml_t(THEMESLUG, 'Footer Copyright Text', get_option(THEMESLUG.'_footer_copy'));?></div>
        <!-- / copyright text -->
       
        <!-- footer links -->
            <?php 
            
            //call the footer menu
            $topmenuVars = array(
             'menu'            => 'RT Theme Footer Navigation Menu',
             'depth'     => 1,
             'menu_id'         => '',
             'menu_class'      => 'footer_links', 
             'echo'            => false,
             'container'       => '', 
             'container_class' => '', 
             'container_id'    => '',
             'theme_location'  => 'rt-theme-footer-menu' 
            );
            
            $footer_menu=wp_nav_menu($topmenuVars);
            echo $footer_menu;
            ?>
      
        <!-- / footer links -->
      </div>



    <?php
    //social media icons
    global $social_media_icons;
    $social_media_output ='';

    foreach ($social_media_icons as $key => $value){
      
      if($value=="email_icon"){//e-mail icon link 
        $link = 'mailto:'.str_replace("mailto:", "", get_option( THEMESLUG.'_'.$value ));
      }else{
        $link = get_option( THEMESLUG.'_'.$value );
      }
      
      //all icons
      if(get_option( THEMESLUG.'_'.$value )){
        $social_media_output .= '<li>';
        $social_media_output .= '<a target="_blank" href="'. $link .'" class="j_ttip" title="'.$key.'">';
        $social_media_output .= '<img src="'.THEMEURI.'/images/social_media/icon-'.$value.'.png" alt="" />';
        $social_media_output .= '</a>';
        $social_media_output .= '</li>';
      }
    }
    if($social_media_output) echo '<ul class="social_media_icons">'.$social_media_output.'</ul>';
    ?>
    
    </div>
    <!-- /footer -->
  </div>
</div>
<!-- /footer wrapper -->

<?php echo get_option( THEMESLUG.'_google_analytics');?> 
</body>
</html>

<?php wp_footer();?>