1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Changeset 4532

Show
Ignore:
Timestamp:
07/23/12 07:31:00 (11 months ago)
Author:
oscim
Message:

correction coquille , ajout comment dans le code des modules

Location:
branches/2.1.1/catalog/admin/includes
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • branches/2.1.1/catalog/admin/includes/classes/drivers/productsACA.php

    r4482 r4532  
    5555                                        // test flag type module, si aucun, produist base 
    5656                                        if(!isset($cl[$class]->flag_type_virtual)) $cl[$class]->flag_type_virtual=0; 
     57 
    5758                                        // incremente tableau module unqiuement si flag ok 
    5859                                        if($this->control_type_mod($cl[$class]->flag_type_virtual)) $list_mod[$class] = $cl[$class]->sort_order; 
     
    6364    } 
    6465 
    65  
    66     if(count($list_mod)>1) { 
     66    if(count($list_mod)>=1) { 
    6767      asort($list_mod); 
    6868      foreach($list_mod as $class=>$s){ 
     
    9999  private function control_type_mod($flag){ 
    100100    $this->load_type_product(); 
    101     if(in_array($flag,explode(',',$this->type_flag) ) || $flag==0) return true; 
     101    if(in_array( $this->type_flag ,explode(',',$flag) ) || $flag==0) return true; 
    102102    else return false; 
    103103  } 
  • branches/2.1.1/catalog/admin/includes/modules/products/desc_base.php

    r4261 r4532  
    3333  */ 
    3434  function desc_base() { 
     35                /* name current classes   */ 
    3536    $this->code = 'desc_base'; 
     37                /* title this module, display in backoffice section  */ 
    3638    $this->title = __('Description produits '); 
     39                /* desc this module, display in backoffice section   */ 
    3740    $this->description = __('Description simple des produits avec chapeau'); 
     41                /* sort this module  relative to other module actived  */ 
    3842    $this->sort_order = (defined('MODULE_ACAPRO_DESC_BASE_SORT_ORDER'))?MODULE_ACAPRO_DESC_BASE_SORT_ORDER : 0; 
     43                /* Active module  */ 
    3944    $this->enabled = true; 
     45                /*  Flag precise type product for activate this module. 
     46                 if this flag no found, this module is already active */ 
     47    $this->flag_type_virtual='0'; 
    4048 
    4149   self::$pInfo= new objectInfo (array()); 
  • branches/2.1.1/catalog/admin/includes/modules/products/header_tags.php

    r4315 r4532  
    3737    parent::load_lang(); 
    3838 
     39                /* name current classes   */ 
    3940    $this->code = __CLASS__ ; 
     41                /* title this module, display in backoffice section  */ 
    4042    $this->title = __('module acapro headertags text title'); 
     43                /* desc this module, display in backoffice section   */ 
    4144    $this->description = __('module acapro headertags text description'); 
     45                /* sort this module  relative to other module actived  */ 
    4246    $this->sort_order = (defined('MODULE_ACACAT_HTC_SORT_ORDER'))?MODULE_ACACAT_HTC_SORT_ORDER : 0; 
     47                /* Active module  */ 
    4348    $this->enabled = true; 
     49                /*  Flag precise type product for activate this module. 
     50                 if this flag no found, this module is already active */ 
     51    $this->flag_type_virtual='0'; 
    4452 
    4553    self::$pInfo= new objectInfo (array()); 
  • branches/2.1.1/catalog/admin/includes/modules/products/products_extra.php

    r4474 r4532  
    2727  */ 
    2828  function __construct(){ 
     29                /* name current classes   */ 
    2930    $this->code = __CLASS__; 
     31                /* title this module, display in backoffice section  */ 
    3032    $this->title = __('products extra'); 
     33                /* desc this module, display in backoffice section   */ 
    3134    $this->description = __('products extra info') ; 
     35                /* sort this module  relative to other module actived  */ 
    3236    $this->sort_order = (defined('MODULE_ACA_PRO_EXTRA_SORT_ORDER')) ? MODULE_ACA_PRO_EXTRA_SORT_ORDER : 0; 
     37                /* Active module  */ 
    3338    $this->enabled = true; 
     39                /*  Flag precise type product for activate this module. 
     40                 if this flag no found, this module is already active */ 
     41    $this->flag_type_virtual='0'; 
    3442 
    3543    self::$cInfo = new objectInfo(array()); 
     
    192200 
    193201                                        foreach($value_info as $row) { 
    194                                                 if((int)$row['languages_id'] ==0)  
     202                                                if((int)$row['languages_id'] ==0) 
    195203                                                        $value = $row['value']; 
    196204                                                else