Current Path : /storage/v11800/affypharma/public_html/wp-content/themes/skeleton-reworked/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/affypharma/public_html/wp-content/themes/skeleton-reworked/functions.php |
<?php
/**
* @package WordPress
* @subpackage WP-Skeleton
*/
//Drag and drop menu support
register_nav_menu( 'primary', 'Primary Menu' );
//This theme uses post thumbnails
add_theme_support( 'post-thumbnails' );
//Apply do_shortcode() to widgets so that shortcodes will be executed in widgets
add_filter( 'widget_text', 'do_shortcode' );
//Widget support for a right sidebar
register_sidebar( array(
'name' => 'Right Sidebar',
'id' => 'right-sidebar',
'description' => 'Widgets in this area will be shown on the right-hand side.',
'before_widget' => '<div id="%1$s">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>'
));
//Widget support for the footer
register_sidebar( array(
'name' => 'Footer Sidebar',
'id' => 'footer-sidebar',
'description' => 'Widgets in this area will be shown in the footer.',
'before_widget' => '<div id="%1$s">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>'
));
//Enqueue_styles
if ( ! function_exists( 'Wps_load_styles' ) ) {
function Wps_load_styles() {
wp_register_style( 'skeleton-style', get_template_directory_uri() . '/style.css');
wp_register_style( 'skeleton-base', get_template_directory_uri() . '/stylesheets/base.css');
wp_register_style( 'skeleton-layout', get_template_directory_uri() . '/stylesheets/layout.css');
wp_enqueue_style( 'skeleton-base' );
wp_enqueue_style( 'skeleton-style' );
wp_enqueue_style( 'skeleton-layout' );
}
add_action('wp_enqueue_scripts', 'Wps_load_styles');
} // endif