<?php
//	oficialny motyw black min cms
//
//	bm_name: Mlack Min cms
//	bm_description: oficialny motyw na główną stronę Mlack Min cms
//	bm_author: Timonix
//	bm_date_create: 09.01.2020
//	bm_url_theme_bm: nie działa usługa
//	bm_amup_bm: .-?==?--_-=?.-$2y$10$Qnlrua.98L46alICqLo6f.Oh354dqAn8K8Cv2GJpEqEd7mIKT56Rq_.==_??=?-=.=.
//	bm_versions: beta V.1.0
//	bm_autor_website: Timonix.pl
//
////////////////////// autoryzacja motywu użytkownika - black min

?>
<!DOCTYPE html>
<html lang="<?php echo lang_site_bm();?>" class="">
<head>
	
	<?php
	
		$head_bm = new head_bm(); 
		//$head_bm->add_to_head('<meta property="og:type" content="WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW">');
		//$head_bm->add_to_head('<meta property="og:type" content="_________________dwdwd______________________">');
		//$head_bm->add_to_title("ładowanie posta - ");
		$head_bm->set_icon(NULL);
		$head_bm->set_icon_ico(NULL);
		//$head_bm->add_description("");
		//$head_bm->add_keywords("sssssssssssssssssssss,dddddddddddddddddddddddd,ffffffffffffffffff,gggggggggggg,");
		$head_bm->add_css("load_jquery_ui", "bm");
		$head_bm->add_css(url_serwer_bm()."files/css/timonix_styles_rezult.css", "bm");
		$head_bm->add_css("css/braund.css", NULL);
		$head_bm->add_css("css/slider.css", NULL);
		//$head_bm->add_css("timonix.css");
		//$head_bm->add_css("raft.css");
		//$head_bm->add_script("ninja.css");
		$head_bm->add_script("load_jquery", "bm");
		$head_bm->add_script("load_jquery_ui", "bm");
		$head_bm->add_script(url_serwer_bm()."files/js/timonix_styles_rezult.js", "bm");
		$head_bm->add_script("js/slider.js", NULL);
		
		if(content_load() == "post_page"){
			$head_bm->add_script("js/post_page.js", NULL);
		}
		
		if(content_load() == "home"){
			$head_bm->add_script("js/home.js", NULL);
		}	
		
		$head_bm->set_robots(NULL);
		
		$head_bm->load_head();
	
	?>
	
</head>
<body>

	<div class="tsr-height-100 scroll-to-effect" style="background-image: url('<?php echo url_serwer_bm();?>pliki/uploads/2020/01/banner_bm.png');">

		<div class="tsr tsr-p-10px background-dark-gray tsr-vertical-algin-sub" >
			<section class="col-ms80 fs-80" style="height: 35px;">
				<a href="https://blackmin.timonix.pl">
					<img src="<?php echo url_serwer_bm();?>pliki/logo/logo_bm_black_100_100.png" alt="black min cms" class="tsr-ml-10 tsr-fl"/>
				</a>	
			</section>	
			<section class="col-ms20 fs-80 r-0" style="height: 35px;">
				<a href="<?php echo url_serwer_bm();?>bm/logowanie.php">
					Logowanie
				</a>
			</section>	
		</div>

	<script>

		$('#search').click('submit', function(){
			var szukaj_post = $('input[name="szukaj_post"]').val();
			location.href="<?php echo url_site_bm();?>?szukaj_post="+szukaj_post+"";
			
		});

	</script>

		<?php 
		
			// ładowanie menu i menu dla użądzeń mobilnych
			require_once "menu.php";
			require_once "menu-mobile.php";
		
		?>
		
		<div id="container" style="">
			<div class="container" >
				<section class="tsr tsr-mt-100 tsr-p-10px" style="background-color: #ffffffd1; border-radius: 25px 0px 0px 25px; -moz-border-radius: 25px 0px 0px 25px; -webkit-border-radius: 25px 0px 0px 25px; margin-top: 15%;">
					<span class="tsr fs-150">Black Min CMS</span>
					<span class="tsr ">Black Min CMS to darmowe i innowacyjne środowisko blogowe. Łatwość instalcji i konfiguracji sprawiają że każdy może stworzyć swojego bloga! <br  /> Ponad to napisanie i zaimplementowanie Motywów, skryptów, bibliotek i pluginów sprawiają że możesz w pełni wykorzystać i skonfigurować bm pod siebie i twoich potrzeb</span>
				</section>
			</div>
		</div>

	</div>
	
	<?php if(get_top_widget_bm() != NULL){?><div class="top-box tsr tsr-p-10px tsr-mt-10 tsr-mb-10 background-white"><?php echo get_top_widget_bm();?></div><?php };?>

	<!--<div class="left-box tsr tsr-p-10px tsr-mt-10 tsr-mb-10 background-white">left
	
	</div>-->

	<main id="container" class="tsr-mt-100">
		<article class="container tsr-p-10px">
			<section class="<?php if(get_right_widget_bm() != NULL){ ?>col-inp-75<?php }?> tsr-p-10px tsr-mt-50">
			<?php  
	
				if(content_load() == "post_page"){
					require_once "content/post-page.php";
				}
				
				if(content_load() == "home"){
					require_once "content/home.php";
				}	
				
				if(content_load() == "search_page"){
					require_once "content/search-page.php";
				}
				
				if(content_load() == "post_404"){
					require_once "content/post-404.php";
				}	
						
			?>	
			</section>	
			<?php if(get_right_widget_bm() != NULL){?><div class="right-box tsr tsr-p-10px tsr-mt-10 tsr-mb-10 background-white col-inp-25 "><?php echo get_right_widget_bm(); ?></div><?php };?>
		</article>
	</main>
	
	<!--<div class="right-box tsr tsr-p-10px tsr-mt-10 tsr-mb-10 background-white">right</div>-->
	<?php if(get_bottom_widget_bm() != NULL){?><div class="bottom-box tsr tsr-p-10px tsr-mt-10 tsr-mb-10 background-white"><?php echo get_bottom_widget_bm();?></div><?php };?>

	<footer class="tsr-mt-100 tsr-stopka-navigation" >
		<footer class="tsr-stopka-navigation">
			<?php if(get_footer_widget_bm() != NULL){?>
			<section class="tsr-stopka-auto">
				<section class="tsr-stopka-text  tsr tsr-p-10px tsr-mt-10 tsr-mb-10">
					<!--<div class="fother-box">fother</div>-->
					<div class="fother-box"><?php echo get_footer_widget_bm();?></div>
				</section>
			</section>
			<?php };?>
			<section class="tsr-stopka-auto">
			<section class="tsr-stopka-text">
				<section class="col-3 tsr-mt-10">
					<?php echo name_site_bm();?>
					<section class="fs-70 tsr-mt-10">	
					</section>
				</section>
					<section class="col-3">
						<section class="fs-90 tsr-p-10px">
							Menu kontekstowe
							<section class="fs-80 tsr-mt10">
								<section class="tsr-mt-10">
									<?php 
									
									$vvd2 = new menu_bm();
									$nds2 = $vvd2->update_tag_menu("div", "div", "div");
									$nds2 = $vvd2->update_class_menu("tsr fs-60 tsr-stopka-text", "tsr fs-100", "tsr fs-90");
									$nds2 = $vvd2->load_menu();
									
									?>
								</section>
							</section>
						</section>
					</section>
					<section class="col-3">
						<section class="fs-90 tsr-p-10px">
							SocialMedia
							<section class="fs-80 tsr-mt-10">
								<?php if(socialmedia_facebook_bm() !== ""){?>
								<section class="tsr fs-100 col-ms10">
									<a href="<?php echo socialmedia_facebook_bm();?>" title="<?php echo socialmedia_facebook_bm();?>" alt="<?php echo socialmedia_facebook_bm();?>">
										<img src="<?php echo url_serwer_bm();?>a/motywy/braund/img/facebook.png" alt="facebook" title="facebook" class="braund-cocialmedia"/>
									</a>
								</section>	
								<?php }; if(socialmedia_youtube_bm() !== ""){?>
								<section class="tsr fs-100 col-ms10">
									<a href="<?php echo socialmedia_youtube_bm();?>" title="<?php echo socialmedia_youtube_bm();?>" alt="<?php echo socialmedia_youtube_bm();?>">
										<img src="<?php echo url_serwer_bm();?>a/motywy/braund/img/youtube.png" alt="youtube" title="youtube" class="braund-cocialmedia"/>
									</a>
								</section>	
								<?php }; if(socialmedia_google_plus_bm() !== ""){?>
								<section class="tsr fs-100 col-ms10 tsr-p-5px">
									<a href="<?php echo socialmedia_google_plus_bm();?>" title="<?php echo socialmedia_google_plus_bm();?>" alt="<?php echo socialmedia_google_plus_bm();?>">
										<img src="<?php echo url_serwer_bm();?>a/motywy/braund/img/google_plus.png" alt="google_plus" title="google_plus" class="braund-cocialmedia"/>
									</a>
								</section>	
								<?php }; if(socialmedia_instagram_bm() !== ""){?>
								<section class="tsr fs-100 col-ms10">
									<a href="<?php echo socialmedia_instagram_bm();?>" title="<?php echo socialmedia_instagram_bm();?>" alt="<?php echo socialmedia_instagram_bm();?>">
										<img src="<?php echo url_serwer_bm();?>a/motywy/braund/img/instagram.png" alt="instagram" title="instagram" class="braund-cocialmedia"/>
									</a>
								</section>	
								<?php }; if(socialmedia_twitter_bm() !== ""){?>
								<section class="tsr fs-100 col-ms10">
									<a href="<?php echo socialmedia_twitter_bm();?>" title="<?php echo socialmedia_twitter_bm();?>" alt="<?php echo socialmedia_twitter_bm();?>">
										<img src="<?php echo url_serwer_bm();?>a/motywy/braund/img/twitter.png" alt="twitter" title="twitter" class="braund-cocialmedia"/>
									</a>
								</section>	
								<?php 
									};
								?>
							</section>
						</section>
					</section>
			</section>
			</section>
			<section class="tsr-stopka ">
			<section class="tsr tsr-stopka-text2 tsr-mt-20">
				<section class="tsr col-2 fs-80">
					Powyższa Strona Używa Black Min CMS \ 
					Wszelkie prawa zastrzeżone © 2019 - <?php echo name_site_bm();?>
				</section>
				<section class="tsr col-2 fs-80 r-0">
					Timonix.pl
				</section>
			</section>
			</section>
		</footer>
	</footer>
	

</body>
</html>	