'',
'after_widget' => '',
'before_title' => '
',
'after_title' => '
',
));
}
add_action( 'widgets_init', 'infi_widgets_init' );
//enable featured posts thumbnails//
function infi_thumbnail_theme_setup() {
add_theme_support( 'post-thumbnails' );
}
add_action( 'after_setup_theme', 'infi_thumbnail_theme_setup' );
function infi_title_tag_theme_setup() {
add_theme_support( 'title-tag' );
}
add_action( 'after_setup_theme', 'infi_title_tag_theme_setup' );
function infi_editor_style_theme_setup() {
add_editor_style( $stylesheet );
}
add_action( 'after_setup_theme', 'infi_editor_style_theme_setup' );
function infi_custom_header_theme_setup() {
add_theme_support( "custom-header", $infi_args = array() );
}
add_action( 'after_setup_theme', 'infi_custom_header_theme_setup' );
/**
* Extended Walker class for use with the
* Twitter Bootstrap toolkit Dropdown menus in Wordpress.
* Edited to support n-levels submenu.
* @author johnmegahan https://gist.github.com/1597994, Emanuele 'Tex' Tessore https://gist.github.com/3765640
* @license CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
*/
class infi_BootstrapNavMenuWalker extends Walker_Nav_Menu {
function infi_start_lvl( &$output, $depth = 0, $args = array() ) {
$indent = str_repeat( "\t", $depth );
$submenu = ($depth > 0) ? ' sub-menu' : '';
$output .= "\n$indent