<?php
    /**
     * @package    WordPress
     * @subpackage Traveler
     * @since      1.0
     *
     * Header
     *
     * Created by ShineTheme
     *
     */
?>
    <!DOCTYPE html>
<html <?php language_attributes(); ?>>
    <head>
        <meta charset="<?php bloginfo( 'charset' ); ?>">
        <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=2, minimum-scale=1">
        <meta name="theme-color" content="<?php echo st()->get_option( 'main_color', '#ED8323' ); ?>"/>
        <?php if ( defined( 'ST_TRAVELER_VERSION' ) ) { ?>
            <meta name="traveler" content="<?php echo esc_attr( ST_TRAVELER_VERSION ) ?>"/>  <?php }; ?>
        <link rel="profile" href="http://gmpg.org/xfn/11">
        <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
        <?php if ( !function_exists( '_wp_render_title_tag' ) ): ?>
            <title><?php wp_title( '|', true, 'right' ) ?></title>
        <?php endif; ?>
        <?php wp_head();
        if(is_page_template('template-user.php')){
            ?>
            <script>
                // Load the SDK asynchronously
                (function(d, s, id) {
                    var js, fjs = d.getElementsByTagName(s)[0];
                    if (d.getElementById(id)) return;
                    js = d.createElement(s); js.id = id;
                    js.src = "https://connect.facebook.net/en_US/sdk.js";
                    fjs.parentNode.insertBefore(js, fjs);
                }(document, 'script', 'facebook-jssdk'));
                window.fbAsyncInit = function() {

                    FB.init({
                        appId: st_params.facbook_app_id,
                        cookie: true,  // enable cookies to allow the server to access
                                       // the session
                        xfbml: true,  // parse social plugins on this page
                        version: 'v3.1' // use graph api version 2.8
                    });

                };
            </script>
            <?php
        }
        ?>
        <script type="text/javascript">
            var ajaxurl = "<?php echo admin_url('admin-ajax.php'); ?>";
        </script>
    </head>
<body <?php body_class(); ?>>