forked from satanas/wp-turpial-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php.save
executable file
·56 lines (53 loc) · 1.35 KB
/
functions.php.save
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
<?php
if ( function_exists('register_sidebar') )
register_sidebar();
function get_nivoslider_script() {
if (is_page('Home') || is_page('Características') ) {
wp_enqueue_script("jquery");
wp_enqueue_script('nivoslider', get_bloginfo('stylesheet_directory').'/scripts/jquery.nivo.slider.pack.js', 'jquery', '2.1');
wp_enqueue_script('nivoslider-loader', get_bloginfo('stylesheet_directory').'/scripts/nivo.slider.load.js', 'nivoslider', '1.0');
}
}
function get_lytebox_script() {
if (is_page('Galería')) {
wp_enqueue_script('lytebox', get_bloginfo('stylesheet_directory').'/scripts/lytebox.js', 'jquery', '2.1');
}
function get_twitter_widget() {
?>
<script type="text/javascript" src="http://widgets.twimg.com/j/2/widget.js"></script>
<script type="text/javascript">
new TWTR.Widget({
version: 2,
type: 'search',
search: '#turpial',
interval: 6000,
title: 'Turpial en twitter',
subject: '#turpial',
width: 'auto',
height: 300,
theme: {
shell: {
background: '#009de0',
color: '#ffffff'
},
tweets: {
background: '#ffffff',
color: '#444444',
links: '#1985b5'
}
},
features: {
scrollbar: false,
loop: true,
live: true,
hashtags: true,
timestamp: true,
avatars: true,
toptweets: true,
behavior: 'default'
}
}).render().start();
</script>
<?php
}
?>