/** 
 * Returns Design Types Array to process in template and modules
 * @param string $params['assign']
 * @param string $params['lang']
 */
$types = FALSE;
if ($params['lang'] === 'ro') {
    // Design Type Array
    $types = [
        ["value" => "logo-and-identity", "title" => "Logo & Identity"],
        ["value" => "print-design", "title" => "Print Design"],
        ["value" => "web-and-app-design", "title" => "Web Design - UI/UX Design"],
        ["value" => "packaging", "title" => "Packaging"],
    ];
}else {
    // Design Type Array
    $types = [
        ["value" => "logo-and-identity", "title" => "Logo & Identity"],
        ["value" => "print-design", "title" => "Print Design"],
        ["value" => "web-and-app-design", "title" => "Web Design - UI/UX Design"],
        ["value" => "packaging", "title" => "Packaging"],
    ];
}

if (!empty($params['assign'])) {
    $smarty = cmsms()->GetSmarty();
    $smarty->assign($params['assign'], $types);
} else {
    $options = [];
    foreach ($types as $ind) {
        $options[$ind['title']]=$ind['value'];
    }
    return $options;
}