Commit 320b94bf authored by Tibor Katelbach's avatar Tibor Katelbach
Browse files

ressource clean and moving to modules

parent ae8316dd
......@@ -415,106 +415,12 @@
<?php } else if ($typeSelected == "classified" || $typeSelected == "ressources" ){
if(Yii::app()->params["CO2DomainName"] != "terla"){ ?>
<div class="col-lg-2 col-md-2 col-sm-3 col-xs-8 margin-top-15 text-right subsub classifiedFilters" id="sub-menu-left">
<!-- <h4 class="text-dark padding-bottom-5"><i class="fa fa-angle-down"></i> Catégories</h4>
<hr> -->
<h4 class="margin-top-25 padding-bottom-10 letter-azure label-category" id="title-sub-menu-category">
<i class="fa fa-search"></i>
$dmod = ($typeSelected == "classified") ? $typeSelected."s" : $typeSelected;
$classified = CO2::getModuleContextList($dmod,"categories");
foreach ($classified['filters'] as $key => $cat) {
<?php if(is_array($cat)) { ?>
<button class="btn btn-default text-dark margin-bottom-5 btn-select-category-1" style="margin-left:-5px;" data-keycat="<?php echo $key; ?>">
<i class="fa fa-<?php echo @$cat["icon"]; ?> hidden-xs"></i> <?php echo Yii::t("category",$key); ?>
<?php foreach (@$cat["subcat"] as $key2 => $cat2) {
$lbl2 = (isset($cat2["label"])) ? $cat2["label"] : $cat2 ;
<button class="btn btn-default text-azure margin-bottom-5 margin-left-15 hidden keycat keycat-<?php echo $key; ?>" data-categ="<?php echo $key; ?>" data-keycat="<?php echo $lbl2; ?>">
<i class="fa fa-angle-right"></i> <?php echo Yii::t("category",$lbl2); ?>
</button><br class="hidden">
<?php } ?>
<?php } ?>
<?php } ?>
<?php if( @Yii::app()->session["userId"] ) { ?>
<button class="btn btn-default margin-bottom-5 btn-select-category-1" style="margin-left:-5px;" data-keycat="favorites">
<span class="text-red"><i class="fa fa-star hidden-xs"></i> <?php echo Yii::t("common","MY FAVORITES") ?></span>
<?php } ?>
<div class="col-lg-10 col-md-9 col-sm-9 col-xs-12 text-center subsub" id="menu-section-classified">
<!-- <button class="btn margin-bottom-5 margin-left-5 btn-select-type-anc letter-<?php echo @$section["color"]; ?>"
data-type="classified" data-type-anc="" data-key="all">
<i class="fa fa-circle-o"></i>
<span class="hidden-xs hidden-sm"> Tous </span>
</button> -->
$currentSection = 1;
foreach ($classified["sections"] as $key => $section) { /*?>
<!-- <div class="col-md-2 col-sm-4 col-xs-6 no-padding">
<button class="btn btn-default col-md-12 col-sm-12 padding-10 bold text-dark elipsis btn-select-type-anc"
data-type-anc="<?php echo @$section["label"]; ?>" data-key="<?php echo @$section["key"]; ?>"
style="border-radius:0px; border-color: transparent; text-transform: uppercase;">
<i class="fa fa-<?php echo $section["icon"]; ?> fa-2x hidden-xs"></i><br><?php echo Yii::t("category",$section["labelFront"]); ?>
</div> -->
<?php */} ?>
<!-- <hr class="col-md-12 col-sm-12 col-xs-12 no-padding" id="before-section-result"> -->
<div class="col-lg-10 col-md-9 col-sm-9 col-xs-12 padding-top-10" id="section-price">
<div class="form-group col-md-4 col-sm-4 col-xs-6">
<label class="col-md-12 col-sm-12 col-xs-12 text-left control-label no-padding" for="sectionBtn">
<i class="fa fa-chevron-down"></i> <?php echo Yii::t("common","Min price") ?>
<input type="text" id="priceMin" name="priceMin" class="form-control"
placeholder="<?php echo Yii::t("common","Max Min") ?>"/>
<div class="form-group col-md-4 col-sm-4 col-xs-6">
<label class="col-md-12 col-sm-12 col-xs-12 text-left control-label no-padding" for="sectionBtn">
<i class="fa fa-chevron-down"></i> <?php echo Yii::t("common","Max price") ?>
<input type="text" id="priceMax" name="priceMax" class="form-control col-md-5"
placeholder="<?php echo Yii::t("common","Max price") ?>"/>
if(Yii::app()->params["CO2DomainName"] != "terla"){
<div class="form-group col-md-2 col-sm-2 col-xs-12">
<label class="col-md-12 col-sm-12 col-xs-12 text-left control-label no-padding" for="sectionBtn">
<i class="fa fa-money"></i> <?php echo Yii::t("common","Money") ?>
<select class="form-control" name="devise" id="devise" style="">
<?php if(@$devises){
foreach($devises as $key => $devise){ ?>
<option class="bold" value="<?php echo $key; ?>"><?php echo $devise; ?></option>
<?php } } ?>
<div class="form-group col-md-2 col-sm-2 col-xs-12 margin-top-10">
<button class="btn btn-default col-md-12 margin-top-15 btn-directory-type" data-type="classified">
<i class="fa fa-search"></i> <span class="hidden-xs hidden-ms"><?php echo Yii::t("common","Search") ?></span>
<hr class="col-md-12 col-sm-12 col-xs-12 margin-top-10 no-padding" id="before-section-result">
<!-- </div> -->
<?php } else{
$dmod = ($typeSelected == "classified") ? $typeSelected."s" : $typeSelected;
$categories = CO2::getModuleContextList($dmod,"categories");
$this->renderPartial($dmod."", array( "typeSelected" => $typeSelected,"categories" => $categories ));
} else {
$service = CO2::getContextList("service");
......@@ -557,7 +463,8 @@
<input type="checkbox" class="btn-select-category-1" data-keycat="healthfood"> <?php echo Yii::t("category","Food care"); ?>
<?php } }
<?php }
else if($typeSelected == "place"){ ?>
<div class="col-lg-2 col-md-2 col-sm-3 col-xs-8 margin-top-15 text-left subsub" id="sub-menu-left">
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment