-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
136 lines (114 loc) · 4.65 KB
/
footer.php
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<footer role="contentinfo">
<div id="inner-footer" class="clearfix">
<div id="widget-footer" class="clearfix row-fluid">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('footer1') ) : ?>
<?php endif; ?>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('footer2') ) : ?>
<?php endif; ?>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('footer3') ) : ?>
<?php endif; ?>
</div>
<nav class="clearfix">
<?php bones_footer_links(); // Adjust using Menus in Wordpress Admin ?>
</nav>
<p class="pull-right"><a href="http://320press.com" id="credit320" title="By the dudes of 320press">320press</a></p>
<p class="attribution">© <?php bloginfo('name'); ?></p>
</div> <!-- end #inner-footer -->
</footer> <!-- end footer -->
</div> <!-- end #container -->
<div style="position:relative; overflow:hidden;">
<img class="my_rotator" src="<?php echo get_template_directory_uri()."/site-img/dd.png" ?>" style="bottom: 0; float: right; left: 185px; position: relative;">
</div>
<!-- scripts are now optimized via Modernizr.load -->
<script src="<?php echo get_template_directory_uri(); ?>/library/js/scripts.js"></script>
<!--[if lt IE 7 ]>
<script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
<script>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
<![endif]-->
<?php wp_footer(); // js scripts are inserted using this function ?>
<script>
/**
* @author bipsa
* @class CSS3 Jquery Plugin and Mobile handlers.
*/
;(function($){
$.fn.isCSSAnimable = function (){
return true;
}
/**
* @author Sebastian Romero
* @param {Object} options
*/
$.fn.CSS3Animate = function(options){
var defaults = {
"class" : "in",
"oncomplete": null,
"time": 300000,
"property": "opacity",
"css" : {},
"transition": "ease-in-out",
"delay" : 1
};
var settings = $.extend({}, defaults, options);
this.each(function(index, current){
var element = $(this);
if ($("body").isCSSAnimable()) {
if (typeof settings.property === "object")
settings.property = settings.property.join(",")
var cssApply = $.extend({}, {
"-webkit-animation-timing-function": settings.transition,
"-webkit-transition-duration": (settings.time / 1000) + "s",
"-webkit-transition-property": settings.property,
"-webkit-transition-delay": (settings.delay / 1000) + "s",
"-moz-transition-duration": (settings.time / 1000) + "s",
"-moz-transition-property" : settings.property
}, settings.css);
element.css(cssApply).addClass(settings["class"]);
if (settings.oncomplete)
element.transitionEnded(settings.oncomplete);
} else {
if(settings.oncomplete)
element.animate(settings.css, settings.oncomplete);
else
element.animate(settings.css);
}
});
return this;
};
/**
* @author bipsa
* @param {Function} onComplete
*/
$.fn.transitionEnded = function(onComplete){
this.each(function(index, current){
var element = $(this);
var action = function (event) {
if (onComplete) {
onComplete(event, element);
if((jQuery.browser.webkit != true))
element.get(0).removeEventListener('transitionend', action, false);
else
element.get(0).removeEventListener('webkitTransitionEnd', action, false);
}
};
if((jQuery.browser.webkit == true))
element.get(0).addEventListener('webkitTransitionEnd', action, false);
else if (jQuery.browser.mozilla && (parseFloat(jQuery.browser.version.substr(0, 3)) > 1.9)) {
element.get(0).addEventListener('transitionend', action, false);
} else
onComplete(null, element);
});
return this;
};
})(jQuery);
$(".my_rotator").CSS3Animate({
"property": ["-moz-transform", "webkit-transform"],
"transition-duration": 1000,
"css": {
"-moz-transform" : "rotate(3050deg) scale(1) rotate(0deg)",
"webkit-transform" : "rotate(3050deg) scale(1) rotate(0deg)"
}
});
</script>
</body>
</html>