| @@ 274-283 (lines=10) @@ | ||
| 271 | $_ = array(); |
|
| 272 | $i = 0; |
|
| 273 | $ph = array(); |
|
| 274 | foreach ($presets as $preset) { |
|
| 275 | $ph['i'] = $i; |
|
| 276 | $ph['name'] = $preset[0]; |
|
| 277 | $ph['alterName'] = $preset[1]; |
|
| 278 | $ph['desc'] = $preset[2]; |
|
| 279 | $ph['class'] = !in_array('sample', $preset[12]) ? 'toggle' : 'toggle demo'; |
|
| 280 | $ph['checked'] = in_array($i, $selectedTvs) || (!isset($_POST['options_selected'])) ? 'checked' : ''; |
|
| 281 | $_[] = parse($tpl, $ph); |
|
| 282 | $i++; |
|
| 283 | } |
|
| 284 | ||
| 285 | return (0 < count($_)) ? '<h3>[%tvs%]</h3>' . implode("\n", $_) : ''; |
|
| 286 | } |
|
| @@ 368-380 (lines=13) @@ | ||
| 365 | $_ = array(); |
|
| 366 | $i = 0; |
|
| 367 | $ph = array(); |
|
| 368 | foreach ($presets as $preset) { |
|
| 369 | $ph['i'] = $i; |
|
| 370 | $ph['name'] = $preset[0]; |
|
| 371 | $ph['desc'] = $preset[1]; |
|
| 372 | if (is_array($preset[8])) { |
|
| 373 | $ph['class'] = !in_array('sample', $preset[8]) ? 'toggle' : 'toggle demo'; |
|
| 374 | } else { |
|
| 375 | $ph['class'] = 'toggle demo'; |
|
| 376 | } |
|
| 377 | $ph['checked'] = in_array($i, $selected) || (!isset($_POST['options_selected'])) ? 'checked' : ''; |
|
| 378 | $_[] = parse($tpl, $ph); |
|
| 379 | $i++; |
|
| 380 | } |
|
| 381 | ||
| 382 | return (0 < count($_)) ? '<h3>[%plugins%]</h3>' . implode("\n", $_) : ''; |
|
| 383 | } |
|