<?php
add_action( 'after_setup_theme', 'school_time_setup' );

if ( ! function_exists( 'school_time_setup' ) ) {

	function school_time_setup() {

		add_filter( 'school_time_alt_buttons', 'school_time_add_to_alt_button_list' );

		load_theme_textdomain( 'school-time', get_template_directory() . '/languages' );

		school_time_register_nav_menus();

		set_post_thumbnail_size( 150, 150, false );

		school_time_add_image_sizes();

		add_theme_support( 'post-thumbnails' );
		add_theme_support( 'post-formats', array(
			'aside',
			'gallery',
			'link',
			'image',
			'quote',
			'status',
			'video',
			'audio',
			'chat'
		) );
		add_theme_support( 'automatic-feed-links' );
		add_theme_support( 'custom-logo' );
		add_theme_support( 'align-wide' );
		add_theme_support( 'editor-styles' );
		
	}
}

function school_time_add_to_alt_button_list( $alt_button_arr ) {
	$alt_button_arr[] = '.yith-wcwl-add-button a';
	return $alt_button_arr;
}
