| @@ 576-586 (lines=11) @@ | ||
| 573 | ||
| 574 | // Now, let's sort the list of categories into the boards for templates that like that. |
|
| 575 | $temp_boards = array(); |
|
| 576 | foreach ($context['categories'] as $category) |
|
| 577 | { |
|
| 578 | $temp_boards[] = array( |
|
| 579 | 'name' => $category['name'], |
|
| 580 | 'child_ids' => array_keys($category['boards']) |
|
| 581 | ); |
|
| 582 | $temp_boards = array_merge($temp_boards, array_values($category['boards'])); |
|
| 583 | ||
| 584 | // Include a list of boards per category for easy toggling. |
|
| 585 | $context['categories'][$category['id']]['child_ids'] = array_keys($category['boards']); |
|
| 586 | } |
|
| 587 | ||
| 588 | createToken('admin-mmg'); |
|
| 589 | } |
|
| @@ 1125-1135 (lines=11) @@ | ||
| 1122 | ||
| 1123 | // Now, let's sort the list of categories into the boards for templates that like that. |
|
| 1124 | $temp_boards = array(); |
|
| 1125 | foreach ($context['categories'] as $category) |
|
| 1126 | { |
|
| 1127 | $temp_boards[] = array( |
|
| 1128 | 'name' => $category['name'], |
|
| 1129 | 'child_ids' => array_keys($category['boards']) |
|
| 1130 | ); |
|
| 1131 | $temp_boards = array_merge($temp_boards, array_values($category['boards'])); |
|
| 1132 | ||
| 1133 | // Include a list of boards per category for easy toggling. |
|
| 1134 | $context['categories'][$category['id']]['child_ids'] = array_keys($category['boards']); |
|
| 1135 | } |
|
| 1136 | } |
|
| 1137 | ||
| 1138 | // Get a list of all the image formats we can select. |
|
| @@ 172-182 (lines=11) @@ | ||
| 169 | ||
| 170 | // Now, let's sort the list of categories into the boards for templates that like that. |
|
| 171 | $temp_boards = array(); |
|
| 172 | foreach ($context['categories'] as $category) |
|
| 173 | { |
|
| 174 | $temp_boards[] = array( |
|
| 175 | 'name' => $category['name'], |
|
| 176 | 'child_ids' => array_keys($category['boards']) |
|
| 177 | ); |
|
| 178 | $temp_boards = array_merge($temp_boards, array_values($category['boards'])); |
|
| 179 | ||
| 180 | // Include a list of boards per category for easy toggling. |
|
| 181 | $context['categories'][$category['id']]['child_ids'] = array_keys($category['boards']); |
|
| 182 | } |
|
| 183 | ||
| 184 | $max_boards = ceil(count($temp_boards) / 2); |
|
| 185 | if ($max_boards == 1) |
|
| @@ 2776-2786 (lines=11) @@ | ||
| 2773 | ||
| 2774 | // Now, let's sort the list of categories into the boards for templates that like that. |
|
| 2775 | $temp_boards = array(); |
|
| 2776 | foreach ($context['categories'] as $category) |
|
| 2777 | { |
|
| 2778 | // Include a list of boards per category for easy toggling. |
|
| 2779 | $context['categories'][$category['id']]['child_ids'] = array_keys($category['boards']); |
|
| 2780 | ||
| 2781 | $temp_boards[] = array( |
|
| 2782 | 'name' => $category['name'], |
|
| 2783 | 'child_ids' => array_keys($category['boards']) |
|
| 2784 | ); |
|
| 2785 | $temp_boards = array_merge($temp_boards, array_values($category['boards'])); |
|
| 2786 | } |
|
| 2787 | ||
| 2788 | $max_boards = ceil(count($temp_boards) / 2); |
|
| 2789 | if ($max_boards == 1) |
|