<?php
    require_once "lib.php";
    // $lib = new lib("http://localhost:8080/gits/fertimicro2/webservice/index.php");
	$lib = new lib("http://pitaya-organicos.com/fertimicro2/webservice/index.php");
	$lib = new lib("http://fertimicro.com/webservice/index.php");
	$uri_ajust = "";
?>
<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!-- Consider adding a manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 8]><!--> 
<html class="no-js" lang="es-MX"> <!--<![endif]-->
<head>
	<meta charset="utf-8">
	<!--[if IE]>
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" >
	<![endif]-->

	<title>FERTIMICRO | NUTRIENTES</title>
	<?php require_once "includes/head.php"; ?>
	<style>
		.filters{margin-bottom:0px; }
		/* #content{margin-top:-100px;} */
	</style>
</head>

<body class="page page-template-default header-transparent home8">	

<div id="main-wrapper">
	<div id="main" class="ajaxable layout-wide">
		<header id="header"><?php require_once "includes/header.php";?></header>
		<!-- END HEADER -->


	<div class="header-hero-section" id="hero-section">
	    <div class="header-hero-custom-section">
			<a href="#content">
				<div class="hero-section-wrap be-section full-no be-bg-cover fconvencional be-bg-parallax clearfix" style="background: url(pics/fondo-fconvencionales.png) no-repeat fixed center center; height: 480px !important;">
					<div class="be-row be-wrap">
						<div class="hero-section-inner-wrap">
							<div class="hero-section-inner">
								<div class="special-heading-wrap style2 be-animate scrollToFade" data-animation="fadeInUp" style="border-color: ;">
									<div class="special-heading align-center" style="background-color: rgba(134, 188, 35, 0.8);">
										<h4 class="special-h-tag" style="color: #fff">NUTRIENTES</h4>
										
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</a>
	    </div>
	</div>

	<!-- <section id="content" class="no-sidebar-page">
	    <div id="content-wrap" class="page-builder">
	        <section id="page-content">
	            <div class="clearfix">
	                <div class="be-section clearfix" data-headerscheme="background--dark" style="background-color: rgb(0, 69, 126);" id="section1">
	                    <div class="be-section-pad clearfix" style="padding-top:45px;padding-bottom:45px;">
	                        <div class="be-row be-wrap clearfix zero-bottom">
	                            <div class="one-col column-block clearfix  " style="">
	                                <h4 style="text-align: center;"><span style="color: #fff;">UNA EMPRESA DEDICADA Y COMPROMETIDA CON EL CAMPO MEXICANO.</span></h4>
	                            </div>
	                        </div>
	                    </div>
					</div>
					
	                
	                <div class="be-section clearfix" data-headerscheme="background--dark" style="background-color: #f5f5f5;" id="section3">
	                    <div class="be-section-pad clearfix" style="padding-top:100px;padding-bottom:100px;">
	                        <div class="be-row be-wrap clearfix">
	                            <div class="one-fourth column-block   " style="">
	                                <div class="team-shortcode-wrap">
										<a href="fertilizantes convencionales/liquidos">
<div class="team-img  be-animate" data-animation="fadeInUp"><img src="pics/card_cat_liquidos.jpg" alt="Liquidos" /></div>
	                                    <div class="team-wrap  be-animate" data-animation="fadeInUp">
	                                        <h6 class="team-title">LIQUIDOS</h6>
	                                    </div>
										</a>
	                                    
	                                </div>
	                            </div>
	                            <div class="one-fourth column-block   " style="">
	                                <div class="team-shortcode-wrap">
										<a href="fertilizantes convencionales/solidos">
									<div class="team-img  be-animate" data-animation="fadeInDown"><img src="pics/card_cat_solidos.jpg" alt="Solidos" /></div>
	                                    <div class="team-wrap  be-animate" data-animation="fadeInDown">
	                                        <h6 class="team-title">SOLIDOS</h6>
	                                    </div>
										</a>
	                                    
	                                </div>
	                            </div>
	                            <div class="one-fourth column-block   " style="">
	                                <div class="team-shortcode-wrap">
										<a href="fertilizantes convencionales/fertilizantes foliares">
<div class="team-img  be-animate" data-animation="fadeInUp"><img src="pics/card_cat_foliares.jpg" alt="Foliares" /></div>
	                                    <div class="team-wrap  be-animate" data-animation="fadeInUp">
	                                        <h6 class="team-title">FOLIARES</h6>
	                                        
	                                    </div>
										</a>
	                                    
	                                </div>
	                            </div>
	                            <div class="one-fourth column-block   " style="">
	                                <div class="team-shortcode-wrap">
										<a href="fertilizantes convencionales/ferti-humix">
									<div class="team-img  be-animate" data-animation="fadeInDown"><img src="pics/card_cat_adherente.jpg" alt="Adherentes" /></div>
	                                    <div class="team-wrap  be-animate" data-animation="fadeInDown">
	                                        <h6 class="team-title">ADHERENTES</h6>
	                                    </div>
										</a>
	                                    
	                                </div>
	                            </div>
	                        </div>
	                    </div>
	                </div>
					
	            </div>
	            
	        </section>
	    </div>
	</section> -->

	<section id="content" class="no-sidebar-page">
        <div id="content-wrap" class="page-builder">
            <section id="page-content">
                <div class="clearfix">
                    <div class="be-section       clearfix" data-headerscheme="background--dark" style="">
                        <div class="be-section-pad clearfix" style="padding-top:0px;padding-bottom:0px;">
                            <div class="be-row  clearfix">
                                <div class="one-col column-block clearfix  " style="">
                                    <div class="portfolio four-col" data-action="get_ajax_boxed_portfolio" data-category="brochures,mobile,videos" data-masonry="0" data-showposts="20" data-paged="1" data-col="four" data-gallery="no" data-filter="categories" data-show_filters="yes" data-thumbnail-bg-color="rgba(,,,0)">
                                        <div class="filters clearfix">
											<!-- <h6><span class="sort current_choice" data-id="element">Todos</span></h6> -->
											
																						<!-- <div class="be-section clearfix" data-headerscheme="background--dark" style="background-color: rgb(0, 85, 157);">
					<div class="be-section-pad clearfix" style="padding-top:0px;padding-bottom:0px;">
						<div class="be-row be-wrap clearfix">
							<div class="one-col column-block clearfix " style="">
								<div class="carousel-wrap clearfix">
									<ul class="be-carousel client-carousel"> -->

									

                                            <?php
												// $data = "pet=productos&act=cat&data=nutrientes&data2=1";
												// $filtros= $lib->webservice_get($data);
												// foreach ($filtros as $filtro) {
											?>
												<!-- <h6><span class="sort" data-id="<?php echo str_replace(' ','-',strtolower($filtro->subcategoria));?>"><?php echo strtoupper($filtro->subcategoria);?></span></h6> -->
											<?php 
												// }
											?> 

<!-- <a href="#product-content"><h6><span class="sort" data-id="element">TODOS</span></h6></a> -->
<a href="#product-content"><h6><span class="sort" data-id="liquidos">FORMULAS LIQUIDAS</span></h6></a>
<a href="#product-content"><h6><span class="sort" data-id="formulas-fisicas-solidas">FORMULAS FISICAS SOLIDOS</span></h6></a>
<a href="#product-content"><h6><span class="sort" data-id="foliares">FOLIARES</span></h6></a>
<a href="#product-content"><h6><span class="sort" data-id="mejorador-de-suelos">MEJORADORES DE SUELO</span></h6></a>
<a href="#product-content"><h6><span class="sort" data-id="acidos">ACIDOS</span></h6></a>
<a href="#product-content"><h6><span class="sort" data-id="elementos-menores-polvo">ELEMENTOS MENORES POLVO</span></h6></a>
<a href="#product-content"><h6><span class="sort" data-id="adherente">ADHERENTE</span></h6></a>
<!-- <a href="#product-content"><h6><span class="sort" data-id="liquidos">FORMULAS LIQUIDAS</span></h6></a>
<a href="#product-content"><h6><span class="sort" data-id="foliares">FOLIARES</span></h6></a>
<a href="#product-content"><h6><span class="sort" data-id="acidos">ACIDOS</span></h6></a>
<a href="#product-content"><h6><span class="sort" data-id="elementos-menores-polvo">ELEMENTOS MENORES POLVO</span></h6></a>
<a href="#product-content"><h6><span class="sort" data-id="mejorador-de-suelos">MEJORADORES DE SUELO</span></h6></a>
<a href="#product-content"><h6><span class="sort" data-id="adherente">ADHERENTE</span></h6></a>
<a href="#product-content"><h6><span class="sort" data-id="formulas-fisicas-solidas">FORMULAS FISICAS SOLIDOS</span></h6></a> -->
	</ul>
									<!-- <a class="prev be-carousel-nav icon-left-open" href="index.html#"></a><a class="next be-carousel-nav icon-right-open" href="index.html#"></a>
								</div>
							</div>
						</div>
					</div>
				</div> -->


										</div>
										<div id="product-content" class="portfolio-container clickable clearfix">
										<?php
											$data = "pet=productos&act=nutrientes&data=all&data2=1";
											$productos= $lib->webservice_get($data);
											
											foreach ($productos as $producto) {
										?>
													
													<div class="element be-hoverlay 
														<?php 
															$sub =  str_replace(' ','-',strtolower($producto->subcategoria));
															echo str_replace('/',' ',$sub);
														?> not-wide">
													<div class="element-inner">
														<a href="producto.php?p=<?php echo $producto->id_producto;?>" class="" target="_blank"><img src="<?php echo (empty($producto->logo_producto))?'upload/portfolio2-650x385.jpg':'pics/logos/'.$producto->logo_producto;?>" alt="" style="margin-top:0;"/>
														<!-- <div class="thumb-overlay">
														<div class="thumb-bg" style="background-color:rgba(38,205,164,0.85);">
															<div class="thumb-title fadeInLeft animated">
															<?php echo $producto->producto;?>
															</div>
														</div>
														</div> -->
														</a>
													</div>
													</div>
													
												
										<?php 
											}
										?>   
										</div>                               
                                      </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!--  End Page Content -->
            </section>
        </div>
    </section>

		<footer id="footer">
			<?php require_once "includes/footer.php";?>
		</footer>
		<div class="gallery-slider-wrap">
			<div class="gallery-slider-content">
			</div>
			<div class="gallery-slider-controls">
				<div class="bubblingG loader">
					<span id="bubblingG_1"></span>
					<span id="bubblingG_2"></span>
					<span id="bubblingG_3"></span>
				</div>
			</div>
		</div>
	</div>
	
	<a href="#" id="back-to-top"><i class="font-icon icon-up-open-big"></i></a>
</div>

			<script type='text/javascript' src='js/jquery.themepunch.tools.min.js'></script>
			<script type='text/javascript' src='js/jquery.themepunch.revolution.min.js'></script>


			<script type='text/javascript' src='js/comment-reply.min.js'></script>
			<script type='text/javascript' src='js/jquery.form.min.js'></script>
			<script type='text/javascript' src='js/scripts.js'></script>
			<script type='text/javascript' src='js/frontend/add-to-cart.min.js'></script>
			<script type='text/javascript' src='js/jquery-blockui/jquery.blockUI.min.js'></script>
			<script type='text/javascript' src='js/frontend/woocommerce.min.js'></script>
			<script type='text/javascript' src='js/jquery-cookie/jquery.cookie.min.js'></script>
			<script type='text/javascript' src='js/frontend/cart-fragments.min.js'></script>
			<script type='text/javascript' src='js/plugins.js'></script>
			<script type='text/javascript' src='js/woocommerce.js'></script>
			<script type='text/javascript' src='js/be-slider.js'></script>
			<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
			<script type='text/javascript' src='js/gmap3.min.js'></script>
			<script type='text/javascript' src='js/jquery-ui-1.8.22.custom.min.js'></script>
			<script type='text/javascript' src='js/script.js'></script>
			<script type='text/javascript' src='js/chosen/chosen.jquery.min.js'></script>
			<script type='text/javascript' src='js/frontend/chosen-frontend.min.js'></script>

<script>
	(function($) {
		$(".sort").on("click", function(){
			$(".portfolio-container.clickable.clearfix").css("display","block");
			$(".filters").css("margin-bottom","50px");
		});
	})(jQuery);
</script>
</body>
</html>