1920, 'height' => 300, 'flex-width' => true, 'flex-height' => true, ); add_theme_support( 'custom-header', $args ); } add_action( 'after_setup_theme', 'themename_custom_header_setup' ); function add_theme_scripts() { wp_enqueue_style( 'style', get_stylesheet_uri() ); wp_enqueue_script( 'script', get_template_directory_uri() . '/js/script.js', array( 'jquery' ), 1.1, true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'wp_enqueue_scripts', 'add_theme_scripts' ); function themename_custom_logo_setup() { $defaults = array( 'height' => 500, 'width' => 500, 'flex-height' => true, 'flex-width' => true, 'header-text' => array( 'site-title', 'site-description' ), 'unlink-homepage-logo' => true, ); add_theme_support( 'custom-logo', $defaults ); } add_action( 'after_setup_theme', 'themename_custom_logo_setup' ); function my_post_time_ago_function() { return sprintf( esc_html__( '%s ago', 'birdpress' ), human_time_diff(get_the_time ( 'U' ), current_time( 'timestamp' ) ) ); } add_filter( 'the_time', 'my_post_time_ago_function' ); function wp_admin_donation_notice() { $current_user = wp_get_current_user(); $dismissed = get_user_meta($current_user->ID, 'wp_admin_donation_notice_dismissed', true); if (current_user_can('manage_options') && (empty($dismissed) || $dismissed < time())) { ?>

Please consider a donation: If you find this theme helpful, please consider making a donation to support its ongoing development and maintenance. Every little bit helps!

ID, 'wp_admin_donation_notice_dismissed', strtotime('+1 month')); } add_action('wp_ajax_dismiss_wp_admin_donation_notice', 'dismiss_wp_admin_donation_notice'); ?>