<?php


if (!empty($p->pagedata['Team'])) {
    foreach ($p->pagedata['Team'] as $k => $category) {

        $cat_name = strtolower(str_replace('-', ' ', $category['Category']['value']));
        $p->pagedata['Team'][$k]['Category']['value'] = ucwords($cat_name);
    }
}


//$twig->addGlobal('categories', $category_list);

