<?php // BEGIN PHP
require_once DOL_DOCUMENT_ROOT . '/categories/class/categorie.class.php';
require_once DOL_DOCUMENT_ROOT . '/core/lib/categories.lib.php';

$tag = GETPOST('tag', 'alpha');
$cat_id = GETPOST('cat', 'alpha');
$search = GETPOST('search_query', 'alpha');

$root_cat_object = new Categorie($db);
$result = $root_cat_object->fetch(0,"goodies");

// END PHP 
?>
<div id="page">
  <div class="header-container">
    <?php 
        includeContainer('header'); 
        $__PAGE__TITLE__ = $weblangs->trans("goodiesPageTitle");
        $__PAGE__KEYWORDS__ = $weblangs->trans("goodiesPageKeywords");
        $__PAGE__DESC__ = $weblangs->trans("goodiesPageDescription");
    ?>
    
  </div>
  <div class="columns-container">
    <div id="columns" class="container">
        <!--  Breadcrumb  -->
        <div class="breadcrumb clearfix">
        	<a class="home" href="index.php" title="Return to Home"><i class="icon-home"></i></a>
        	<span class="navigation-pipe">&gt;</span> <?php print $weblangs->trans("Goodies"); ?>
        </div>
        <!--  Breadcrumb  -->
      <div id="slider_row" class="row">
        <div id="top_column" class="center_column col-xs-12 col-sm-12"></div>
      </div>
      <div class="row">
        <!-- include lefet sidebar container -->
        <?php includeContainer('sidebar'); ?>
        <div id="center_column" class="center_column col-xs-12 col-sm-9">
          <div class="clearfix">
                <section id="category_info_section" contenteditable="true">
                	<div class="content_scene_cat">
                		<!-- Category image -->
                		<div class="content_scene_cat_bg">
                			<div class="cat_desc">
                				<span class="category-name"><?php print $root_cat_object->label; ?></span>
                				<div class="rte">
                					<p><?php print strip_tags($root_cat_object->description); ?></p>
                				</div>
                			</div>
                		</div>
                		
                		<div class="shop-container">
                            <div class="shop-image">
                                <img src="viewimage.php?modulepart=medias&entity=1&file=image/marketplace/img/goodies-shop.jpg">
                                <div class="shop-overlay">
                                    <button target="new" class="shop-button"><?php print $weblangs->trans("goodiesbuttonTitle"); ?> <i class="icon-chevron-right"></i></button>
                                </div>
                            </div>
                        </div>
            
                	</div>
                </section>
          </div>
        </div>
      </div>
    </div>
  </div>
  <!-- .columns-container -->
  <div class="footer-container">
    <?php includeContainer('footer'); ?>
  </div>
</div>