<?php
include_once("include/main.inc.php");
$brandname  =  $_REQUEST['brand_name'];
$brandname  =  str_replace("-"," ",$brandname);
$brandsql = mysqli_query($dbconn,"select * from brand_tbl where brandName='$brandname'");
$brandname = ucwords($brandname);
$pg = 'brand'; 
$br = $brandname;
$brands_res = mysqli_fetch_array($brandsql);
$title = $brands_res['brandTitle'];
$keyword = $brands_res['brandKeyword'];
$desc = $brands_res['brandDesc'];
?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><?=$title?></title>
    <meta name="description" content="<?=$desc?>" /> 
    <meta name="keywords" content="<?=$keyword?>" />
    <?php include "app_top.php"; ?>
  </head>
  <body> <?php include "app_header.php"; ?>
    <!-- Heading Banner--->
    <section class="heading_banner" style="background-image: url(<?=theme_url?>images/category-banner.jpg)">
      <div class="container">
        <div class="row">
          <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 text-center">
            <h1 class="cat_title"><?=$brandname?></h1>
            <div class="clearfix"></div>
          </div>
        </div>
      </div>
    </section>
    <!-- Breadcrumb--->
    <section class="inner_breadcrumb hidden_xs">
      <div class="container">
        <div class="row">
          <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
            <ul class="breadcrumb">
              <li>
                <a href="<?=site_url?>" title="Home">Home</a>
              </li>
              <li title="Our Brands">Our Brands</li>
              <li class="active"><?=$brandname?></li>
            </ul>
          </div>
        </div>
      </div>
    </section>
    <!-- Home About--->
    <section class="category_page">
      <div class="container">
        <div class="row"> <?php include "app_sidebar.php"; ?> 
        <div class="col-xxl-9 col-xl-9 col-lg-9 col-md-9 col-sm-9 col-12">
            <div class="right_side">
              <div class="you_may"><?=$brandname?></div>
              <div class="allListing">
                <div class="product_listing">
                  <div class="row">
                    <div class="col-xxl-5 col-xl-5 col-lg-5 col-md-5 col-sm-5 col-12">
                      <div class="">
                        <a href="details.php" title="Shuttering Plywood">
                          <?php if($brands_res['brandImage']) { ?>
                          <div class="brand-details-image">
                            <img src="<?=site_url?>/uploaded-files/brands/<?php echo $brands_res['brandImage']?>" alt="<?php echo $brands_res['brandName']?>" title="<?php echo $brands_res['brandName']?>">
                          </div> 
                          <?php  } ?>
                        </a>
                      </div>
                    </div>
                    <div class="col-xxl-7 col-xl-7 col-lg-7 col-md-7 col-sm-7 col-12">
                      <div class="right-content">
                        <?=$brands_res['brandDetail'];?>
                        <div class="more_info">
                        </div>
                      </div>
                    </div>
                    <div class="col-12">
                      <div class="right-content">
                      <?=$brands_res['brandDetail2'];?>
                       
                        <div class="clearfix"></div>
                      </div>
                    </div>
                    <div class="col-12">
                      <div class="">
                      <?php if($brands_res['brandImage2']) { ?>
                      <div class="brand-details-image">
                          <img src="<?=site_url?>/uploaded-files/brands/<?=$brands_res['brandImage2']?>" alt="<?=$brands_res['brandName']?>" title="<?=$brands_res['brandName']?>">
                          </div>
                       <?php } ?>
                      </div>
                    </div>                    
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      </div>
    </section> <?php include "app_footer.php";?> <?php include "app_bottom.php";?>
  </body>
</html>