-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
96 lines (74 loc) · 2.59 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
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
<?php
/* Load the core theme framework. */
require_once( trailingslashit( get_template_directory() ) . 'library/hybrid.php' );
new Hybrid();
/* Theme PHP code will go here. */
add_action( 'after_setup_theme', 'wp_taiga_theme_setup', 10 );
function wp_taiga_theme_setup() {
/*** Theme-supported features go here. ***/
/* Add theme support for the framework widgets. */
add_theme_support( 'hybrid-core-widgets' );
/* Allows theme developers to easily load the framework’s JavaScript files. */
add_theme_support(
'hybrid-core-scripts',
array( 'drop-downs' )
);
/* Add theme support for the framework shortcodes. */
add_theme_support( 'hybrid-core-shortcodes' );
/*A dd theme support for the Hybrid Template Hierarchy which is more flexible */
add_theme_support( 'hybrid-core-template-hierarchy' );
/* Register sidebars from Hybrid core or put in yourself but then further down. */
add_theme_support(
'hybrid-core-sidebars',
array( 'primary', 'secondary', 'subsidiary' )
);
/* Add theme support for the framework menus */
add_theme_support(
'hybrid-core-menus',
array( 'primary', 'secondary', 'subsidiary' )
);
/*** Add theme support for framework extensions. ***/
/* Add theme support for breadcrumbs */
add_theme_support( 'breadcrumb-trail' );
/* The best thumbnail/image script ever. */
add_theme_support( 'get-the-image' );
/* Add theme support for Hybrid core stylesheets */
add_theme_support(
'hybrid-core-styles',
array( 'drop-downs', 'gallery' )
);
/* Nicer [gallery] shortcode implementation. */
add_theme_support( 'cleaner-gallery' );
/*** Action and filters go here. ***/
/* Register your own sidebars here and put in the actually code further below or if not
//add_action( 'widgets_init', 'wp_taiga_register_sidebars', 11 );
/*Have to get layout-theme support working, someday */
//apply_filters( 'get_theme_layout', $l );
//add_theme_support(
// 'theme-layouts',
// array( 'full', 'one-third', 'two-third', 'half' ),
// array( 'default' => 'full', 'customize' => true )
//);
}
/*** register your own functionality from here, like sidebars, custom post types ***/
/*
*function wp_taiga_register_sidebars() {
*
* /* Register the 'Name' sidebar. */
/*
* register_sidebar(
* array(
* 'id' => 'Name',
* 'name' => __( 'Name' ),
* 'description' => __( 'A short description of the sidebar.' ),
* 'before_widget' => '<div id="%1$s" class="widget %2$s">',
* 'after_widget' => '</div>',
* 'before_title' => '<h3 class="widget-title">',
* 'after_title' => '</h3>'
* )
* );
* /* Repeat register_sidebar() code for additional sidebars. */
/*
}
*/
?>