' : ''; echo '
' . $output . '
'; echo $output; } function back_to_the_90s_free_blank_view_article($more) { global $post; return '... ' . esc_html__('Read More', 'back-to-the-90s-free') . ''; } function back_to_the_90s_free_style_remove($tag) { return preg_replace('~\s+type=["\'][^"\']++["\']~', '', $tag); } function back_to_the_90s_free_remove_thumbnail_dimensions($html) { $html = preg_replace('/(width|height)=\"\d*\"\s/', '', $html); return $html; } function back_to_the_90s_free_gravatar($avatar_defaults) { $myavatar = get_template_directory_uri() . '/img/gravatar.jpg'; $avatar_defaults[$myavatar] = 'Custom Gravatar'; return $avatar_defaults; } function back_to_the_90s_free_enable_threaded_comments() { if (!is_admin()) { if (is_singular() AND comments_open() AND (get_option('thread_comments') == 1)) { wp_enqueue_script('comment-reply'); } } } function back_to_the_90s_free_load_admin_style() { wp_register_style('back-to-the-90s-free-admin-css', get_template_directory_uri() . '/css/back-to-the-90s-free-admin-style.css', FALSE, '1.0.0'); wp_enqueue_style('back-to-the-90s-free-admin-css'); wp_enqueue_script('back-to-the-90s-free-admin-scripts', get_template_directory_uri() . '/js/back-to-the-90s-free-admin.js', array('jquery', 'customize-preview')); } function back_to_the_90s_free_get_gif1_url() { $gif_url = get_option('back_to_the_90s_gif1_alt_location'); if (empty($gif_url)) { $gif_url = get_template_directory_uri() . '/img/gifs/globe.gif'; } return esc_url($gif_url); } function back_to_the_90s_free_print_gif1_if_enabled() { if (get_option('back_to_the_90s_display_gifs') == 1) { echo '
';
}
}
function back_to_the_90s_free_print_gif3_if_enabled() {
if (get_option('back_to_the_90s_display_gifs') == 1) {
echo '
';
}
}
function back_to_the_90s_free_return_gif1_if_enabled() {
if (get_option('back_to_the_90s_display_gifs') == 1) {
return '
';
}
return NULL;
}
function back_to_the_90s_free_prefix_remove_css_section($wp_customize) {
$wp_customize->remove_section('custom_css');
}
function back_to_the_90s_free_get_the_title($title) {
if (is_front_page()) {
return esc_attr(get_bloginfo('name'));
}
global $post;
return $post->post_title;
}
function back_to_the_90s_free_premium_dismiss() {
set_transient('back-to-the-90s-free-premium-dismiss', TRUE, 60*60*24);
wp_die();
}
add_theme_support('post-thumbnails');
add_image_size('back-to-the-90s-free_large', 700, '', TRUE);
add_image_size('back-to-the-90s-free_medium', 250, '', TRUE);
add_image_size('back-to-the-90s-free_small', 120, '', TRUE);
add_image_size('back-to-the-90s-free_custom-size', 700, 200, TRUE);
add_theme_support('automatic-feed-links');
add_theme_support('title-tag');
add_theme_support('html5', array('comment-list', 'comment-form', 'search-form', 'gallery', 'caption'));
load_theme_textdomain('back-to-the-90s-free', get_template_directory() . '/languages');
add_action('wp_enqueue_scripts', 'back_to_the_90s_free_header_scripts');
add_action('get_header', 'back_to_the_90s_free_enable_threaded_comments');
add_action('wp_enqueue_scripts', 'back_to_the_90s_free_styles');
add_action('init', 'back_to_the_90s_free_register_menu');
add_action('widgets_init', 'back_to_the_90s_free_remove_recent_comments_style');
add_action('admin_enqueue_scripts', 'back_to_the_90s_free_load_admin_style');
add_action('customize_register', 'back_to_the_90s_free_prefix_remove_css_section', 15);
add_action('wp_ajax_back_to_the_90s_free_premium_dismiss', 'back_to_the_90s_free_premium_dismiss');
remove_action('wp_head', 'feed_links_extra', 3);
remove_action('wp_head', 'feed_links', 2);
remove_action('wp_head', 'rsd_link');
remove_action('wp_head', 'wlwmanifest_link');
remove_action('wp_head', 'wp_generator');
remove_action('wp_head', 'rel_canonical');
remove_action('wp_head', 'wp_shortlink_wp_head', 10, 0);
add_filter('avatar_defaults', 'back_to_the_90s_free_gravatar');
add_filter('widget_text', 'do_shortcode');
add_filter('widget_text', 'shortcode_unautop');
add_filter('wp_nav_menu_args', 'back_to_the_90s_free_nav_menu_args');
add_filter('the_category', 'back_to_the_90s_free_remove_category_rel_from_category_list');
add_filter('the_excerpt', 'shortcode_unautop');
add_filter('the_excerpt', 'do_shortcode');
add_filter('excerpt_more', 'back_to_the_90s_free_blank_view_article');
add_filter('style_loader_tag', 'back_to_the_90s_free_style_remove');
add_filter('post_thumbnail_html', 'back_to_the_90s_free_remove_thumbnail_dimensions', 10);
add_filter('post_thumbnail_html', 'back_to_the_90s_free_remove_width_attribute', 10);
add_filter('image_send_to_editor', 'back_to_the_90s_free_remove_width_attribute', 10);
add_filter('wp_title', 'back_to_the_90s_free_get_the_title');
remove_filter('the_excerpt', 'wpautop');