Advertisement
Guest User

Untitled

a guest
Apr 15th, 2012
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.97 KB | None | 0 0
  1. </div>
  2. </div><!-- end of central -->
  3. </div><!-- end of mainpage -->
  4.  
  5. <!-- footer -->
  6. <div class="footer">
  7. <div class="decor"></div>
  8. <div id="show_hide_footer_button" class="show"></div>
  9.  
  10. <div id="roll-up-info" style="display:none">
  11. <div id="auto">
  12. <?php $rollUp_footer_height_auto = get_option( 'rollUp_footer_height_auto' );
  13. if ( !empty( $rollUp_footer_height_auto ) ){
  14. echo $rollUp_footer_height_auto;
  15. } else {
  16. echo "";
  17. } ?>
  18. </div>
  19. <div id="pixels">
  20. <?php $rollUp_footer_height = get_option( 'rollUp_footer_height' );
  21. if ( !empty( $rollUp_footer_height ) ){
  22. echo $rollUp_footer_height;
  23. } else {
  24. echo 120;
  25. } ?>
  26. </div>
  27. </div>
  28.  
  29. <div class="inside">
  30. <div class="content-height">
  31. <div class="footer-text"><?php echo stripslashes(get_option( 'footer_text' )); ?></div>
  32.  
  33. <?php
  34. $footer_gallery_show = get_option( 'footer_gallery_show' );
  35. if($footer_gallery_show=="yes"):
  36. ?>
  37. <!-- content block -->
  38. <div id="gallery">
  39. <div id="mcs5_container">
  40. <div id="footerScrollBox" class="customScrollBox">
  41. <div class="container">
  42. <div class="content">
  43. <?php
  44. $footer_clone_picture = get_option( 'footer_clone_picture' );
  45. if ( !empty( $footer_clone_picture ) ){
  46. $pictures = json_decode($footer_clone_picture);
  47. }
  48.  
  49.  
  50. echo "<ul>";
  51. for($i=0;$i<count($pictures);$i++){
  52. $rel = "";
  53. if( (strpos($pictures[$i][1],".jpg")) || (strpos($pictures[$i][1],".png")) || (strpos($pictures[$i][1],".gif")) ){ $rel= 'rel="footer-gallery" '; }
  54. if(!empty($pictures[$i][0])){
  55. echo '<li><a '.$rel.'href="'.link_to($pictures[$i][1]).'"><img src="'.get_bloginfo( 'template_directory' ).'/lib/timthumb/timthumb.php?src='.link_to($pictures[$i][0]).'&amp;w=80&amp;h=52" alt="'.$pictures[$i][2].'" title="'.$pictures[$i][2].'" /></a></li>';
  56. }
  57. }
  58. // FIX scroller problem
  59. if(count($pictures)==7){
  60. $rel = "";
  61. if( (strpos($pictures[$i][1],".jpg")) || (strpos($pictures[$i][1],".png")) || (strpos($pictures[$i][1],".gif")) ){ $rel= 'rel="footer-gallery" '; }
  62. echo '<li><a '.$rel.'href="'.link_to($pictures[6][1]).'"><img src="'.link_to('/lib/timthumb/timthumb.php?src=').link_to($pictures[6][0]).'&amp;w=80&amp;h=52" alt="" title="'.$pictures[6][2].'" /></a></li>';
  63. }
  64. echo "</ul>";
  65. ?>
  66. </div><!-- end of content -->
  67. </div><!-- end of container -->
  68. <div class="dragger_container">
  69. <div class="dragger"></div>
  70. </div>
  71. </div><!-- end of customScrollBox -->
  72.  
  73. <span class="prev scrollUpBtn"><span class="wrap"><span>previous</span></span></span>
  74. <span class="next scrollDownBtn"><span class="wrap"><span>next</span></span></span>
  75.  
  76. <!-- <a href="#" class="scrollUpBtn">&#8678;</a> <a href="#" class="scrollDownBtn">&#8680;</a> -->
  77.  
  78. </div><!-- end of mcs5_container -->
  79. </div><!-- end of gallery -->
  80. <?php endif; ?>
  81.  
  82. <div class="footer-widget-container">
  83. <div class="footer-widget-area">
  84. <?php dynamic_sidebar( 'footer-widget-area' ); ?>
  85. </div>
  86. </div>
  87. </div><!-- end of content-height -->
  88. </div><!-- end of inside -->
  89.  
  90. </div><!-- end of footer -->
  91.  
  92. </div><!-- end of screen -->
  93. <?php $ga_code = get_option('ga_code'); ?>
  94. <?php if ($ga_code != ''): ?>
  95. <script type="text/javascript">
  96. var _gaq = _gaq || [];
  97. _gaq.push(['_setAccount', '<?php echo $ga_code; ?>']);
  98. _gaq.push(['_trackPageview']);
  99.  
  100. (function() {
  101. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  102. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  103. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  104. })();
  105. </script>
  106. <?php endif; ?>
  107.  
  108. <?php
  109. wp_footer();
  110. ?>
  111.  
  112. </body>
  113. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement