<?php bloginfo( 'name' ); ?>

'', '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' => 'ace_admin_header_style', 'admin-preview-callback' => 'ace_admin_header_image', )); function ace_admin_header_style() { ?>

onclick="return false;" href="">

'ffffff',) ); // ================================================================== // Visual editor stylesheet // ================================================================== add_editor_style( 'editor.css' ); // ================================================================== // Shortcode in excerpt // ================================================================== add_filter( 'the_excerpt', 'do_shortcode' ); // ================================================================== // Shortcode in widget // ================================================================== add_filter( 'widget_text', 'do_shortcode' ); // ================================================================== // Clickable link in content // ================================================================== add_filter( 'the_content', 'make_clickable' ); // ================================================================== // Add "Home" in menu // ================================================================== function adelle_theme_home_page_menu( $args ) { $args['show_home'] = true; return $args; } add_filter( 'wp_page_menu_args', 'adelle_theme_home_page_menu' ); // ================================================================== // Header title tag support // ================================================================== add_theme_support( 'title-tag' ); // ==================================================================================================================================== // Innit // ==================================================================================================================================== } add_action( 'after_setup_theme', 'adelle_setup' ); // ================================================================== // Comment spam, prevention // ================================================================== function adelle_theme_check_referrer() { if (!isset($_SERVER['HTTP_REFERER']) || $_SERVER['HTTP_REFERER'] == "" ) { wp_die( __( 'Please enable referrers in your browser.', 'adelle-theme' ) ); } } add_action( 'check_comment_flood', 'adelle_theme_check_referrer' ); // ================================================================== // Comment time // ================================================================== function adelle_theme_time_ago( $type = 'comment' ) { $d = 'comment' == $type ? 'get_comment_time' : 'get_post_time'; return human_time_diff($d( 'U' ), current_time( 'timestamp' )) . " " . __( 'ago', 'adelle-theme' ); } // ================================================================== // Custom comment style // ================================================================== function adelle_theme_comment_style($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?>
  • >
    %s', 'adelle-theme' ), get_comment_author_link()) ?> ()
    comment_approved == '0' ) : ?>
    $depth, 'max_depth' => $args['max_depth']))) ?>
    '

    ' . __( 'Pages:', 'adelle-theme' ) . '', 'after' => '

    ', 'link_before' => '', 'link_after' => '', 'next_or_number' => 'number', 'nextpagelink' => __( 'Next page', 'adelle-theme' ), 'previouspagelink' => __( 'Previous page', 'adelle-theme' ), 'pagelink' => '%', 'echo' => 1 ) ); } // ================================================================== // Pagination (WordPress) // ================================================================== function adelle_theme_pagination_links() { if ( $GLOBALS['wp_query']->max_num_pages < 2 ) { return; } $paged = get_query_var( 'paged' ) ? intval( get_query_var( 'paged' ) ) : 1; $pagenum_link = html_entity_decode( get_pagenum_link() ); $query_args = array(); $url_parts = explode( '?', $pagenum_link ); if ( isset( $url_parts[1] ) ) { wp_parse_str( $url_parts[1], $query_args ); } $pagenum_link = remove_query_arg( array_keys( $query_args ), $pagenum_link ); $pagenum_link = trailingslashit( $pagenum_link ) . '%_%'; $format = $GLOBALS['wp_rewrite']->using_index_permalinks() && ! strpos( $pagenum_link, 'index.php' ) ? 'index.php/' : ''; $format .= $GLOBALS['wp_rewrite']->using_permalinks() ? user_trailingslashit( 'page/%#%', 'paged' ) : '?paged=%#%'; $links = paginate_links( array( 'base' => @add_query_arg( 'paged','%#%' ), 'format' => '?paged=%#%', 'current' => $paged, 'total' => $GLOBALS['wp_query']->max_num_pages, 'prev_next' => true, 'prev_text' => __( 'Previous', 'adelle-theme' ), 'next_text' => __( 'Next', 'adelle-theme' ), ) ); if ( $links ) : ?>

    __( 'Right Widget', 'adelle-theme' ), '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-theme' ), 'id' => 'footer-widget-instagram', 'class' => '', 'description' => 'Instagram widget area.', 'before_widget' => '', 'before_title' => '

    ', 'after_title' => '

    ', ) ); } add_action( 'widgets_init', 'adelle_footer_widgets_instagram_init' );