-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
executable file
·71 lines (61 loc) · 2.76 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
68
69
70
<?php
add_editor_style("library/css/editor-styles.css"); // editor styles for tinymce
// add_image_size( 'thumb-600', 600, 150, true ); // custom image size example
/************* Set Custom Image sizes ********************/
//add_image_size('featured', 1024, 350 , true);
//Call all JS scripts here, Foundation scripts, mean-menu any jquery place in scripts.js Which is already set to enque here
function responsive_scripts_basic()
{
//register scripts for our theme
wp_register_script('foundation-mod', get_template_directory_uri() . '/javascripts/vendor/jquery.js', array( 'jquery' ), true );
wp_register_script('foundation-main', get_template_directory_uri() . '/javascripts/foundation/foundation.js', true );
wp_register_script('foundation-app', get_template_directory_uri() . '/javascripts/foundation/cookie.js', true );
wp_register_script('mean-menu', get_template_directory_uri() . '/javascripts/mean-menu/jquery.meanmenu.2.0.min.js', true );
wp_register_script('scripts', get_template_directory_uri() . '/javascripts/scripts.js', true );
wp_enqueue_script( 'foundation-mod' );
wp_enqueue_script( 'foundation-main' );
wp_enqueue_script( 'foundation-app' );
wp_enqueue_script( 'mean-menu' );
wp_enqueue_script( 'scripts' );
}
add_action( 'wp_enqueue_scripts', 'responsive_scripts_basic', 5 );
/************* SIDEBARS ********************/
// Sidebars & Widgetizes Areas
function sl_register_sidebars() {
register_sidebar(array(
'id' => 'sidebar1',
'name' => 'Twitter',
'description' => 'The first (primary) sidebar.',
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h4 class="widgettitle">',
'after_title' => '</h4>',
));
register_sidebar(array(
'id' => 'sidebar-two',
'name' => 'Instagram',
'description' => 'The second (primary) sidebar.',
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h4 class="widgettitle">',
'after_title' => '</h4>',
));
register_sidebar(array(
'id' => 'sidebar-three',
'name' => 'Recent Video',
'description' => 'Place Video Here',
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h4 class="widgettitle">',
'after_title' => '</h4>',
));
register_sidebar(array(
'id' => 'sidebar-four',
'name' => 'Facebook',
'description' => 'Facebook',
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h4 class="widgettitle">',
'after_title' => '</h4>',
));
}