'',
'random-default' => false,
'width' => 400,
'height' => 100,
'flex-height' => true,
'flex-width' => true,
'default-text-color' => 'ff8f85',
'header-text' => true,
'uploads' => true,
'wp-head-callback' => '',
'admin-head-callback' => 'adelle_admin_header_style',
'admin-preview-callback' => 'adelle_admin_header_image',
));
function adelle_admin_header_style() { ?>
'ffffff' ) );
// ==================================================================
// Visual editor stylesheet
// ==================================================================
add_editor_style( 'editor.css' );
// ==================================================================
// Header title tag support
// ==================================================================
add_theme_support( 'title-tag' );
// ==================================================================
// HTML5 Support
// ==================================================================
add_theme_support( 'html5', array(
'search-form',
'comment-form',
'comment-list',
'gallery',
'caption',
) );
// ==================================================================
// Jetpack infinite scroll
// ==================================================================
add_theme_support( 'infinite-scroll', array(
'container' => 'section',
'footer' => false,
) );
// ====================================================================================================================================
// Innit
// ====================================================================================================================================
}
add_action( 'after_setup_theme', 'adelle_setup' );
// ==================================================================
// Custom comment style
// ==================================================================
function adelle_theme_comment_style($comment, $args, $depth) {
$GLOBALS['comment'] = $comment; ?>
>
'',
'link_before' => '',
'next_or_number' => 'number',
'nextpagelink' => __( 'Next page', 'adelle' ),
'previouspagelink' => __( 'Previous page', 'adelle' ),
'pagelink' => '%',
'echo' => 1
)
);
}
// ==================================================================
// Pagination (WordPress)
// ==================================================================
function adelle_theme_pagination_links() {
the_posts_pagination( array(
'mid_size' => 5,
'prev_text' => __( 'Previous', 'adelle' ),
'next_text' => __( 'Next', 'adelle' ),
) );
}
// ==================================================================
// Widget - Sidebar
// ==================================================================
function adelle_widgets_init() {
register_sidebar(array(
'name' => __( 'Right Widget', 'adelle' ),
'id' => 'right-widget',
'description' => 'Right side widget area',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '
',
));
}
add_action( 'widgets_init', 'adelle_widgets_init' );
// ==================================================================
// Widget - Instagram
// ==================================================================
function adelle_footer_widgets_instagram_init() {
register_sidebar( array(
'name' => __( 'Instagram Widget', 'adelle' ),
'id' => 'footer-widget-instagram',
'class' => '',
'description' => 'Instagram widget area.',
'before_widget' => '',
'before_title' => '',
'after_title' => '
',
) );
}
add_action( 'widgets_init', 'adelle_footer_widgets_instagram_init' );
// ==================================================================
// Gettting started
// ==================================================================
if ( is_admin() && isset( $_GET['activated'] ) && $pagenow == "themes.php" ) wp_redirect( 'themes.php?page=adelle_getting_started.php' );