__( 'Primary Menu', 'aphollo' ),
));
/* Switch default core markup for search form, comment form, and comments to output valid HTML5. */
add_theme_support( 'html5', array(
'search-form', 'comment-form', 'comment-list', 'gallery', 'caption',
));
/* Enable support for Post Formats. */
add_theme_support( 'post-formats', array(
'aside', 'image', 'video', 'quote', 'link',
));
// Set up the WordPress core custom background feature.
add_theme_support( 'custom-background', apply_filters( 'aphollo_custom_background_args', array(
'default-color' => '',
'default-image' => '',
)));
}
endif; // aphollo_setup
add_action( 'after_setup_theme', 'aphollo_setup' );
/* Register widget area. */
function aphollo_widgets_init() {
register_sidebar( array(
'name' => __( 'Sidebar', 'aphollo' ),
'id' => 'sidebar-1',
'description' => '',
'before_widget' => '',
'before_title' => '
',
));
// Footer A
register_sidebar( array(
'name' => __( 'Footer A', 'aphollo' ),
'id' => 'sidebar-6',
'before_widget' => '',
'before_title' => '',
));
// Footer B
register_sidebar( array(
'name' => __( 'Footer B', 'aphollo' ),
'id' => 'sidebar-7',
'before_widget' => '',
'before_title' => '',
));
// Footer C
register_sidebar( array(
'name' => __( 'Footer C', 'aphollo' ),
'id' => 'sidebar-8',
'before_widget' => '',
'before_title' => '',
));
// Footer C
register_sidebar( array(
'name' => __( 'Footer D', 'aphollo' ),
'id' => 'sidebar-9',
'before_widget' => '',
'before_title' => '',
));
}
add_action( 'widgets_init', 'aphollo_widgets_init' );
/* Enqueue scripts and styles. */
function aphollo_scripts() {
wp_enqueue_style( 'aphollo-style', get_stylesheet_uri() );
wp_enqueue_style( 'aphollo-fonts', '//fonts.googleapis.com/css?family=Poiret+One', array(), null );
wp_enqueue_style( 'aphollo-cs', get_template_directory_uri() . '/css/aphollo-assets.css', array(), null );
wp_enqueue_script('aphollo-js', get_template_directory_uri().'/js/aphollo.js', array(), '20130102', true );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
}
add_action( 'wp_enqueue_scripts', 'aphollo_scripts' );
/* Implement the Custom Header feature. */
require get_template_directory() . '/inc/custom-header.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';
/* Load Jetpack compatibility file. */
require get_template_directory() . '/inc/jetpack.php';
// Help MenĂș y submenĂș
include_once dirname( __FILE__ ) . '/help/help.php';
add_action('admin_menu', 'help_menu');
function help_menu() {
add_theme_page('Help Aphollo', __( 'Help Aphollo','aphollo'), 'edit_theme_options', 'manage_options', 'help_function');
}
/* Adds IE specific scripts */
function aphollo_ie_scripts() {
?>