'3',
'size' => 'portfolio-thumbnail',
), $atts );
$out['columns'] = $atts['columns'];
$out['size'] = $atts['size'];
return $out;
}
add_filter( 'shortcode_atts_gallery', 'camise_gallery_atts', 10, 3 );
/*
* Enable support for Post Thumbnails on posts and pages.
*
* @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails
*/
add_theme_support( 'post-thumbnails' );
// This theme uses wp_nav_menu() in two locations.
register_nav_menus( array(
'primary' => __( 'Primary Menu', 'camise' ),
'secondary' => __( 'Secondary Menu', 'camise' )
) );
// Enable support for Post Formats.
add_theme_support( 'post-formats', array( 'image', 'video', 'quote', 'link' ) );
// Enable support for Custom Backgrounds.
$args = array(
'default-color' => 'f5f5f5'
);
add_theme_support( 'custom-background', $args );
// Enable support for HTML5 markup.
add_theme_support( 'html5', array(
'comment-list',
'search-form',
'comment-form',
) );
// Add images sizes for the various thumbnails
add_image_size( 'portfolio-thumbnail', 312, 206, true );
add_image_size( 'portfolio-large', 690, 9999, false );
add_image_size( 'portfolio-fullwidth', 980, 9999, false );
}
endif; // camise_setup
add_action( 'after_setup_theme', 'camise_setup' );
/**
* Register widgetized area and update sidebar with default widgets.
*/
function camise_widgets_init() {
register_sidebar( array(
'name' => __( 'Sidebar', 'camise' ),
'id' => 'primary',
'before_widget' => '',
'before_title' => '
',
) );
register_sidebar( array(
'name' => __( 'Footer Area One', 'camise' ),
'id' => 'footer-1',
'before_widget' => '',
'before_title' => '',
) );
register_sidebar( array(
'name' => __( 'Footer Area Two', 'camise' ),
'id' => 'footer-2',
'before_widget' => '',
'before_title' => '',
) );
register_sidebar( array(
'name' => __( 'Footer Area Three', 'camise' ),
'id' => 'footer-3',
'before_widget' => '',
'before_title' => '',
) );
}
add_action( 'widgets_init', 'camise_widgets_init' );
/**
* Enqueue scripts and styles.
*/
function camise_scripts() {
wp_enqueue_style( 'camise-style', get_stylesheet_uri() );
wp_enqueue_script( 'camise-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true );
wp_enqueue_script( 'camise-navigation', get_template_directory_uri() . '/js/navigation.js', array('jquery'), '20130115', true );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
}
add_action( 'wp_enqueue_scripts', 'camise_scripts' );
/**
* Enqueue fonts
*/
function camise_fonts() {
// Add FontAwesome font, used in the main stylesheet.
wp_enqueue_style( 'fontawesome', get_template_directory_uri() . '/fonts/font-awesome/font-awesome.css', array(), '4.0.3' );
// Add Google font, used in the main stylesheet.
wp_enqueue_style( 'camise-raleway-font', '//fonts.googleapis.com/css?family=Raleway:400,700', array(), null, 'screen' );
}
add_action( 'wp_enqueue_scripts', 'camise_fonts' );
/*
* Loads the Options Framework Panel
*/
define( 'OPTIONS_FRAMEWORK_DIRECTORY', get_template_directory_uri() . '/options/' );
require_once dirname( __FILE__ ) . '/options/options-framework.php';
/**
* Sets up the options panel and default functions
*/
require_once( get_template_directory() . '/inc/options-functions.php' );
/**
* Custom template tags for this theme.
*/
require get_template_directory() . '/inc/template-tags.php';
/**
* Custom functions that act independently of the theme templates.
*/
require get_template_directory() . '/inc/extras.php';
/**
* Customizer additions.
*/
require get_template_directory() . '/inc/customizer.php';
/**
* Theme additions.
*/
require get_template_directory() . '/inc/camise-helpers.php';
/**
* Load Jetpack compatibility file.
*/
require get_template_directory() . '/inc/jetpack.php';