<?php
	$checkMenuSettings=$community->present()->checkMenuSettings();
?>

@if($checkMenuSettings and $checkMenuSettings->show_menus_on_native_mobile==0)
	<style type="text/css">		
		.explore-mobile-menus-bottom-menubar{
			display:none !important;
		}		
    </style>	
@endif	

@if($community and $community->race_community==1)	
	
	 <style type="text/css">  
		@media (max-width: 1024px){
			.racingcommunityhidemenu{
				 display:none !important;	
			}		
			
			.explore-mobile-menus li{
				width:33%;	
			}	
			
			.mm-menu .mm-list.website-main-menu-list{
				margin-top: 60px;
			}

			.checkAccountProfileOuter{
				display:none !important;
			}

			.racingcommunityshowmenu{
				display:block !important;	
			}

			.border_right_none{
				border-right:none !important;
			}		
		}			
	 </style>
	 
	 @if(!$community->present()->canView())
	  <style type="text/css">  
			@media (max-width: 1024px){
				.explore-community-open-networking-link{
					display:none !important;
				}	
			}
	  </style>		
	 @endif   
	 
	 <script language="javascript">
		document.getElementById("explore-community-ride-news-menu").href="{{URL::route('community-ride-news-updates',['slug'=>$community->id])}}";
		document.getElementById("explore-community-ride-events-menu").href="{{URL::route('community-ride-events-updates',['slug'=>$community->id])}}";
		document.getElementById("explore-community-ride-book-menu").href="{{URL::route('community-ride-booking',['slug'=>$community->id])}}";
	 </script>
	 
	@if(!$checkMenuSettings or ($checkMenuSettings and $checkMenuSettings->racing_book_a_ride_menu_mobile==0))
		<style type="text/css">             
			.menubar-racing-book-a-sim-link-mobile{
				display:none !important;	
			}	
		</style>
	@endif

	@if(!$checkMenuSettings or ($checkMenuSettings and $checkMenuSettings->racing_news_menu_mobile==0))
		<style type="text/css">             
			.menubar-racing-news-link-mobile{
				display:none !important;	
			}	
		</style>
	@endif

	@if(!$checkMenuSettings or ($checkMenuSettings and $checkMenuSettings->racing_events_menu_mobile==0))
		<style type="text/css">             
			.menubar-racing-events-link-mobile{
				display:none !important;	
			}	
		</style>
	@endif
@endif

@if($community->business_access==1 and $community->owner_business_access==1)
	<style type="text/css">
		.explore-community-business-link{
			display:block !important;	
		}
		
		.my-store-link{
			display:block !important;	
		}
	</style>
@else
	<style type="text/css">
		.explore-community-business-link{
			display:none !important;	
		}
		
		.my-store-link{
			display:none !important;	
		}
	</style>
@endif 

@if($community->community_access==1 and $community->owner_community_access==1)
	<style type="text/css">
		.explore-community-open-networking-link{
			display:block !important;	
		}
	</style>
@else
	<style type="text/css">
		.explore-community-open-networking-link{
			display:none !important;	
		}
	</style>    
@endif
	
@if($checkMenuSettings and $checkMenuSettings->search_bar_menu==0)
	<style type="text/css">             
		.header-bar-top-search-box{
			display:none !important;	
		}	
	</style>
@endif

@if($checkMenuSettings and $checkMenuSettings->notification_menu==0)
	<style type="text/css">             
		.menubar-notification-link{
			display:none !important;	
		}	
	</style>
@endif

@if(!$checkMenuSettings or ($checkMenuSettings and $checkMenuSettings->notification_menu_mobile==0))
	<style type="text/css">             
		.menubar-notification-link-mobile{
			display:none !important;	
		}	
	</style>
@endif

@if($checkMenuSettings and $checkMenuSettings->friend_requests_menu==0)
	<style type="text/css">             
		.menubar-friend-request-link{
			display:none !important;	
		}	
	</style>
@endif

@if(!$checkMenuSettings or ($checkMenuSettings and $checkMenuSettings->friend_requests_menu_mobile==0))
	<style type="text/css">             
		.menubar-friend-request-link-mobile{
			display:none !important;	
		}	
	</style>
@endif

@if($checkMenuSettings and $checkMenuSettings->messages_menu==0)
	<style type="text/css">             
		.menubar-messages-link{
			display:none !important;	
		}	
	</style>
@endif

@if($checkMenuSettings and $checkMenuSettings->my_ecosystem_menu==0)
	<style type="text/css">             
		.menubar-ecosystem-link{
			display:none !important;	
		}	
	</style>
@endif

@if(!$checkMenuSettings or ($checkMenuSettings and $checkMenuSettings->my_ecosystem_menu_mobile==0))
	<style type="text/css">             
		.menubar-ecosystem-link-mobile{
			display:none !important;	
		}	
	</style>
@endif
	
@if($checkMenuSettings and $checkMenuSettings->open_website_menu==0)
	<style type="text/css">             
		.menubar-open-website-link{
			display:none !important;	
		}	
	</style>
@endif

@if(!$checkMenuSettings or ($checkMenuSettings and $checkMenuSettings->open_website_menu_mobile==0))
	<style type="text/css">             
		.menubar-open-website-link-mobile{
			display:none !important;	
		}	
	</style>
@endif

@if($checkMenuSettings and $checkMenuSettings->my_website_menu==0)
	<style type="text/css">             
		.menubar-my-website-link{
			display:none !important;	
		}	
	</style>
@endif

@if(!$checkMenuSettings or ($checkMenuSettings and $checkMenuSettings->my_website_menu_mobile==0))
	<style type="text/css">             
		.menubar-my-website-link-mobile{
			display:none !important;	
		}	
	</style>
@endif

@if($checkMenuSettings and $checkMenuSettings->my_stores_menu==0)
	<style type="text/css">             
		.menubar-my-stores-link{
			display:none !important;	
		}	
	</style>
@endif

@if(!$checkMenuSettings or ($checkMenuSettings and $checkMenuSettings->my_stores_menu_mobile==0))
	<style type="text/css">             
		.menubar-my-stores-link-mobile{
			display:none !important;	
		}	
	</style>
@endif

@if($checkMenuSettings and $checkMenuSettings->my_calendar_menu==0)
	<style type="text/css">             
		.menubar-my-calendar-link{
			display:none !important;	
		}	
	</style>
@endif

@if(!$checkMenuSettings or ($checkMenuSettings and $checkMenuSettings->my_calendar_menu_mobile==0))
	<style type="text/css">             
		.menubar-my-calendar-link-mobile{
			display:none !important;	
		}	
	</style>
@endif
	
@if($checkMenuSettings and $checkMenuSettings->marketplace_menu==0)
	<style type="text/css">             
		.menubar-eMarketplace-link{
			display:none !important;	
		}	
	</style>
@endif

@if(!$checkMenuSettings or ($checkMenuSettings and $checkMenuSettings->marketplace_menu_mobile==0))
	<style type="text/css">             
		.menubar-eMarketplace-link-mobile{
			display:none !important;	
		}	
	</style>
@endif

@if($checkMenuSettings and $checkMenuSettings->my_cart_menu==0)
	<style type="text/css">             
		.menubar-my-cart-link{
			display:none !important;	
		}	
	</style>
@endif

@if(!$checkMenuSettings or ($checkMenuSettings and $checkMenuSettings->my_cart_menu_mobile==0))
	<style type="text/css">             
		.menubar-my-cart-link-mobile{
			display:none !important;	
		}	
	</style>
@endif

@if($checkMenuSettings and $checkMenuSettings->account_settings_menu==0)
	<style type="text/css">             
		.menubar-account-settings-link{
			display:none !important;	
		}	
	</style>
@endif

@if($checkMenuSettings and $checkMenuSettings->account_settings_menu_mobile==0)
	<style type="text/css">             
		.menubar-account-settings-link-mobile{
			display:none !important;	
		}	
	</style>
@endif

@if($checkMenuSettings and $checkMenuSettings->my_social_profile_menu==0)
	<style type="text/css">             
		.menubar-social-profile-link{
			display:none !important;	
		}	
	</style>
@endif

@if($checkMenuSettings and $checkMenuSettings->my_social_profile_menu_mobile==0)
	<style type="text/css">             
		.menubar-social-profile-link-mobile{
			display:none !important;	
		}	
	</style>
@endif
	
@if($checkMenuSettings and $checkMenuSettings->invite_a_friend_menu==0)
	<style type="text/css">             
		.menubar-invite-a-friend-link{
			display:none !important;	
		}	
	</style>
@endif

@if(!$checkMenuSettings or ($checkMenuSettings and $checkMenuSettings->invite_a_friend_menu_mobile==0))
	<style type="text/css">             
		.menubar-invite-a-friend-link-mobile{
			display:none !important;	
		}	
	</style>
@endif

@if($checkMenuSettings and $checkMenuSettings->my_polls_menu==0)
	<style type="text/css">             
		.menubar-my-polls-link{
			display:none !important;	
		}	
	</style>
@endif

@if(!$checkMenuSettings or ($checkMenuSettings and $checkMenuSettings->my_polls_menu_mobile==0))
	<style type="text/css">             
		.menubar-my-polls-link-mobile{
			display:none !important;	
		}	
	</style>
@endif

@if($checkMenuSettings and $checkMenuSettings->trends_mention_menu==0)
	<style type="text/css">             
		.menubar-trends-mention-link{
			display:none !important;	
		}	
	</style>
@endif

@if(!$checkMenuSettings or ($checkMenuSettings and $checkMenuSettings->trends_mention_menu_mobile==0))
	<style type="text/css">             
		.menubar-trends-mention-link-mobile{
			display:none !important;	
		}	
	</style>
@endif

@if($checkMenuSettings and $checkMenuSettings->personal_note_menu==0)
	<style type="text/css">             
		.menubar-personal-notes-link{
			display:none !important;	
		}	
	</style>
@endif

@if(!$checkMenuSettings or ($checkMenuSettings and $checkMenuSettings->personal_note_menu_mobile==0))
	<style type="text/css">             
		.menubar-personal-notes-link-mobile{
			display:none !important;	
		}	
	</style>
@endif

@if($checkMenuSettings and $checkMenuSettings->my_transactions_menu==0)
	<style type="text/css">             
		.menubar-my-transactions-link{
			display:none !important;	
		}	
	</style>
@endif

@if(!$checkMenuSettings or ($checkMenuSettings and $checkMenuSettings->my_transactions_menu_mobile==0))
	<style type="text/css">             
		.menubar-my-transactions-link-mobile{
			display:none !important;	
		}	
	</style>
@endif

@if($checkMenuSettings and $checkMenuSettings->my_identity_menu==0)
	<style type="text/css">             
		.menubar-my-identity-link{
			display:none !important;	
		}	
	</style>
@endif

@if(!$checkMenuSettings or ($checkMenuSettings and $checkMenuSettings->my_identity_menu_mobile==0))
	<style type="text/css">             
		.menubar-my-identity-link-mobile{
			display:none !important;	
		}	
	</style>
@endif

@if($checkMenuSettings and $checkMenuSettings->job_menu==0)
	<style type="text/css">             
		.menubar-jobs-link{
			display:none !important;	
		}	
	</style>
@endif

@if(!$checkMenuSettings or ($checkMenuSettings and $checkMenuSettings->job_menu_mobile==0))
	<style type="text/css">             
		.menubar-jobs-link-mobile{
			display:none !important;	
		}	
	</style>
@endif

@if($checkMenuSettings and $checkMenuSettings->email_campaign_menu==0)
	<style type="text/css">             
		.menubar-email-campaign-link{
			display:none !important;	
		}	
	</style>
@endif

@if(!$checkMenuSettings or ($checkMenuSettings and $checkMenuSettings->email_campaign_menu_mobile==0))
	<style type="text/css">             
		.menubar-email-campaign-link-mobile{
			display:none !important;	
		}	
	</style>
@endif

@if($checkMenuSettings and $checkMenuSettings->bottom_chat_box==0)
	<style type="text/css">             
		.menubar-chatbox-container-link{
			display:none !important;	
		}	
	</style>
@endif

@if(!$checkMenuSettings or ($checkMenuSettings and $checkMenuSettings->bottom_chat_box_mobile==0))
	<style type="text/css">             
		.menubar-chatbox-container-link-mobile{
			display:none !important;	
		}	
	</style>
@endif

@if($checkMenuSettings and $checkMenuSettings->logout_menu==0)
	<style type="text/css">             
		.menubar-logout-link{
			display:none !important;	
		}	
	</style>
@endif

<!--@if(!$checkMenuSettings or ($checkMenuSettings and $checkMenuSettings->logout_menu_mobile==0))
	<style type="text/css">             
		.menubar-logout-link-mobile{
			display:none !important;	
		}	
	</style>
@endif-->

@if($checkMenuSettings and $checkMenuSettings->logout_menu_mobile==0)
	<style type="text/css">             
		.menubar-logout-link-mobile{
			display:none !important;	
		}	
	</style>
@endif

@if(!$checkMenuSettings or ($checkMenuSettings and $checkMenuSettings->race_to_real_sim_booking_dashboard_mobile==0))
	<style type="text/css">             
		.menubar-sim-booking-dashboard-menu-mobile{
			display:none !important;	
		}	
	</style>
@endif

@if($checkMenuSettings and $checkMenuSettings->community_social_news_mobile==0)
	<style type="text/css">             
		.menubar-social-news-mobile{
			display:none !important;	
		}	
	</style>
@endif

@if(!$checkMenuSettings or ($checkMenuSettings and $checkMenuSettings->community_social_events_mobile==0))
	<style type="text/css">             
		.menubar-social-events-mobile{
			display:none !important;	
		}	
	</style>
@endif

@if(!$checkMenuSettings or ($checkMenuSettings and $checkMenuSettings->bottom_explore_mobile==0))
	<style type="text/css">             
		.menubar-explore-link-mobile{
			display:none !important;	
		}	
	</style>
@endif

@if(!$checkMenuSettings or ($checkMenuSettings and $checkMenuSettings->bottom_my_network_mobile==0))
	<style type="text/css">             
		.menubar-my-network-link-mobile{
			display:none !important;	
		}	
	</style>
@endif

@if($checkMenuSettings and $checkMenuSettings->home_menu_mobile==0)
	<style type="text/css">             
		.menubar-home-link-mobile{
			display:none !important;	
		}	
	</style>
@endif
	
<?php
/*@if($checkMenuSettings and $checkMenuSettings->social_network_menu==0)
	<style type="text/css">             
		.explore-community-open-networking-link{
			display:none;	
		}	
	</style>	
@endif*/
?>

@if($community and \Session::has('event_app_login') and \Session::get('event_app_login')=='event_app_login')
	<style type="text/css">             
		.explore-mobile-menus-bottom-menubar{
			display:block !important;	
		}	
		
		.menubar-explore-link-mobile{
			display:inline-block !important;		
		}	
		
		.menubar-notification-link-mobile{
			display:inline-block !important;		
		}
		
		.menubar-home-link-mobile{
			display:block !important;	
		}
		
		.menubar-logout-link-mobile{
			display:block !important;	
		}
		
		.menubar-social-profile-link-mobile{
			display:block !important;	
		}	
		
		.menubar-account-settings-link-mobile{
			display:block !important;	
		}
		
		.menubar-my-website-link-mobile{
			display:block !important;	
		}
		
		.menubar-my-network-link-mobile{
			display:none !important;		
		}
		
		.menubar-chatbox-container-link-mobile{
			display:none !important;		
		}
		
		.menubar-social-news-mobile{
			display:none !important;	
		}	
		
		.racingcommunityshowmenu{
			display:none !important;	
		}
		
		.menubar-sim-booking-dashboard-menu-mobile{
			display:none !important;	
		}

		.menubar-email-campaign-link-mobile{
			display:none !important;	
		}

		.menubar-jobs-link-mobile{
			display:none !important;	
		}	

		.menubar-my-identity-link-mobile{
			display:none !important;	
		}	

		.menubar-my-transactions-link-mobile{
			display:none !important;	
		}	

		.menubar-personal-notes-link-mobile{
			display:none !important;	
		}	

		.menubar-trends-mention-link-mobile{
			display:none !important;	
		}

		.menubar-my-polls-link-mobile{
			display:none !important;	
		}

		.menubar-invite-a-friend-link-mobile{
			display:none !important;	
		}	

		.menubar-my-cart-link-mobile{
			display:none !important;	
		}

		.menubar-eMarketplace-link-mobile{
			display:none !important;	
		}	

		.menubar-my-calendar-link-mobile{
			display:none !important;	
		}

		.menubar-my-stores-link-mobile{
			display:none !important;	
		}

		.menubar-open-website-link-mobile{
			display:none !important;	
		}	

		.mbl-app-menu ul.explore-mobile-menus-list li{
			display:none !important;
		}
		
		.mbl-app-menu ul.explore-mobile-menus-list li.menubar-eventapp-event-link-mobile{
			display:block !important;
		}

		.mbl-app-menu ul.explore-mobile-menus-list li.menubar-eventapp-likeminded-link-mobile{
			display:block !important;
		}

		.responsive-language-menu{
			display:none !important;
		}	
		
		.mm-menu .mm-list{
			padding-top:50px;	
		}	
		
		.explore-mobile-menus-list li:nth-child( even ) {
			background: #fff;
		}
		
		.explore-mobile-menus-list li:nth-child( odd ) {
			background: #f9e1d5;
		}
		
		.explore-mobile-menus-list{
			border:none;	
		}	
		
		.explore-mobile-menus-list li{
			border:none !important;	
			margin:0px;
		}	
		
		.explore-mobile-menus-list li a{
			font-weight:normal;	
		}
		
		@media (max-width: 768px) {
		  body {
			background-image: none !important;
			background-color: #fff !important;
		  }
		}	
	</style>
	
	@if($ipUrl!="")
		<style type="text/css">			
			.mbl-app-menu ul.explore-mobile-menus-list li.menubar-eventapp-sharemywebsite-link-mobile{
				display:block !important;
			}	
		</style>	
	@endif
	
	<script language="javascript">
		document.getElementById("site-menu-mobile-home-menu").href="{{$community->present()->url('appevents')}}";
		document.getElementById("explore-community-event-app-events-menu").href="{{$community->present()->url('appevents')}}";
		document.getElementById("event-share-my-profile-url").value="{{$community->present()->url('appeventshareprofile')}}";
	</script>
@endif
