예제 #1
0
파일: helpers.tpl.php 프로젝트: umaxfun/x4m
 function image_transform_return($params, $section)
 {
     $img = array_shift($params);
     return ENHANCE::image_transform($img, $params, $section);
 }
예제 #2
0
 function image_convert($image)
 {
     return ENHANCE::image_transform($image, array(100, 100), null, null);
 }
예제 #3
0
 function property_set_to_properties_manager($pset, $properties, $props_types)
 {
     foreach ($props_types as $name => $pt) {
         if ($pt == 'CATOBJ') {
             $this->_tree->FullBonesMas = null;
             $this->_tree->GetFullBonesUp($properties[$name]);
             $result[$name] = $properties[$name];
             if ($this->_tree->FullBonesMas) {
                 $path = implode('/', XARRAY::arr_to_lev($this->_tree->FullBonesMas, 'id', 'params', 'Name'));
                 $result[$name] = $path;
             }
         } elseif ($pt == 'IMAGE') {
             $result[$name] = ENHANCE::image_transform($properties[$name], array(50, 50), null, null);
         } elseif ($pt == 'DATE') {
             $result[$name] = date('d-m-Y', $properties[$name]);
         } else {
             $result[$name] = $properties[$name];
         }
     }
     return $result;
 }