forked from satanas/wp-turpial-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
executable file
·67 lines (63 loc) · 1.64 KB
/
functions.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
<?php
//Nivo Slider Fix
add_action('init', 'my_init_method');
function my_init_method() {
if (!is_admin()) {
wp_deregister_script( 'jquery' );
wp_register_script( 'jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js');
wp_enqueue_script( 'jquery' );
}
}
if ( function_exists('register_sidebar') )
register_sidebar();
function get_nivoslider_script() {
wp_enqueue_script("jquery");
if (is_page('Home') || is_page('Features') ) {
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 in twitter',
subject: '#turpial',
width: 'auto',
height: 400,
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
}
?>