Ejemplo n.º 1
0
        if ($groupData["flagsmall"]) {
            $pic = "../group/smallimages/" . $groupData["flagsmall"];
        } elseif ($groupData["emblemsmall"]) {
            $pic = "../group/smallimages/" . $groupData["emblemsmall"];
        } elseif ($groupData["mapsmall"]) {
            $pic = "../group/smallimages/" . $groupData["mapsmall"];
        }
        $tpl['GroupDescription'] = "<div class='left' style='padding: 0 10px 0 0;'>" . contentHelper::showImage($pic, '') . "</div>\n\t\t\t<div>" . str_replace("\n", "<br>", $text) . "</div>";
        unset($text);
        unset($pic);
    }
    if ($groupData["groupparent"] != 0 && $groupData["groupparent"] != $groupData["group"]) {
        $groupParentData = $shopcoins_class->getGroupItem($groupData["groupparent"]);
        $GroupNameMain = $groupParentData['name'];
    }
    $tpl['catalognew']['OtherMaterialData'] = $catalognew_class->getOtherMaterialData($group_data[0], $materialtype);
    if ($tpl['catalognew']['OtherMaterialData']) {
        $oldmaterialtype = 0;
        foreach ($tpl['catalognew']['OtherMaterialData'] as $key => $rows) {
            $tpl['catalognew']['OtherMaterialData'][$key]['metal'] = isset($tpl['metalls'][$rows['metal_id']]) ? $tpl['metalls'][$rows['metal_id']] : '';
            $tpl['catalognew']['OtherMaterialData'][$key]['condition'] = isset($tpl['conditions'][$rows['condition_id']]) ? $tpl['conditions'][$rows['condition_id']] : '';
            $tpl['catalognew']['OtherMaterialData'][$key]['gname'] = $GroupName;
            /*$tpl['catalognew']['related'][$i]['additional_title'] = '';
            		if ($oldmaterialtype != $rows["materialtype"]) {
            			$tpl['catalognew']['related'][$i]['additional_title'] = $MaterialTypeArray[$rows["materialtype"]];
            			$oldmaterialtype = $rows["materialtype"];
            		}*/
        }
    }
}
if ($groups) {