<?php
global $vbulletin, $stylevar, $db, $template_hook, $vbphrase, $foruminfo, $userinfo;
if ($vbulletin->options['yilmaz_carousel_onoff'] AND is_member_of($vbulletin->userinfo, explode(',', $vbulletin->options['yilmaz_carousel_only_usergroups'])) AND (THIS_SCRIPT == 'index') OR array_intersect(explode(',', $foruminfo['parentlist']), explode(',', $vbulletin->options['yilmaz_carousel_only_forum_id'])))
{

if ($vbulletin->options['yilmaz_carousel_dark_or_white']){
$yilmazcarouseldarkorwhite	='<link type="text/css" media="all" href="includes/yilmaz/carousel/assets/style/dark_carousel.css" rel="stylesheet" />';
}else{
$yilmazcarouseldarkorwhite	='<link type="text/css" media="all" href="includes/yilmaz/carousel/assets/style/white_carousel.css" rel="stylesheet" />';	
}

$template_hook['headinclude_bottom_css'] .= '<!-- yilmaz_carousel -->
'.$yilmazcarouseldarkorwhite.'
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
<script type=\'text/javascript\'>/* <![CDATA[ */var wtilp = {"ajax_url":"\/ajax.php"};/* ]]> */</script><script type=\'text/javascript\'>/* <![CDATA[ */var asf = {"ajaxurl":"yilmaz_vbvideo_v1\/ajax.php"};/* ]]> */</script>
<script type=\'text/javascript\'>/* <![CDATA[ */var wc_add_to_cart_params = {"ajax_url":"yilmaz_vbvideo_v1\/ajax.php","wc_ajax_url":"\/?wc-ajax=%%endpoint%%","i18n_view_cart":"View Cart","cart_url":"\/","is_cart":"","cart_redirect_after_add":"no"};/* ]]> */</script>

<script type=\'text/javascript\'>/* <![CDATA[ */var ajax_tptn_tracker = {"ajax_url":"\/ajax.php","top_ten_nonce":"68161d0fd9","top_ten_id":"1503","top_ten_blog_id":"1","activate_counter":"11","tptn_rnd":"1443604613"};/* ]]> */</script>

<script type=\'text/javascript\'>/* <![CDATA[ */var cactus = {"ajaxurl":"\/ajax.php","video_pro_main_color":"#d9251d","query_vars":{"page":0,"pagename":"home-page-v4","error":"","m":"","p":0,"post_parent":"","subpost":"","subpost_id":"","attachment":"","attachment_id":0,"name":"home-page-v4","static":"","page_id":0,"second":"","minute":"","hour":"","day":0,"monthnum":0,"year":0,"w":0,"category_name":"","tag":"","cat":"","tag_id":"","author":"","author_name":"","feed":"","tb":"","paged":0,"meta_key":"","meta_value":"","preview":"","s":"","sentence":"","title":"","fields":"","menu_order":"","embed":"","category__in":[],"category__not_in":[],"category__and":[],"post__in":[],"post__not_in":[],"post_name__in":[],"tag__in":[],"tag__not_in":[],"tag__and":[],"tag_slug__in":[],"tag_slug__and":[],"post_parent__in":[],"post_parent__not_in":[],"author__in":[],"author__not_in":[],"ignore_sticky_posts":false,"suppress_filters":false,"cache_results":true,"update_post_term_cache":true,"lazy_load_term_meta":true,"update_post_meta_cache":true,"post_type":"","posts_per_page":12,"nopaging":false,"comments_per_page":"50","no_found_rows":false,"order":"DESC"},"current_url":"\/"};/* ]]> */</script>
<style type="text/css" data-type="vc_shortcodes-custom-css">.vc_custom_1466563983427{margin-top: 40px !important;}.vc_custom_1466563983427{margin-top: 40px !important;}.vc_custom_1470457709594{margin-top: 40px !important;}</style><noscript>
<style type="text/css"> .wpb_animate_when_almost_visible { opacity: 1; }</style></noscript>



<!-- //yilmaz_carousel -->';

$template_hook['footer_javascript'] .= '<script type="text/javascript" src="includes/yilmaz/carousel/assets/script/jquery-1.12.4.min.js"></script>';
include './includes/yilmaz/carousel/hooks/carousel.php';

}
