|
@@ 767-772 (lines=6) @@
|
| 764 |
|
|
| 765 |
|
// All the variant thumbnails. |
| 766 |
|
$count = 1; |
| 767 |
|
foreach ($theme['variants'] as $key => $variant) |
| 768 |
|
{ |
| 769 |
|
echo ' |
| 770 |
|
\'', $key, '\': \'', $variant['thumbnail'], '\'', (count($theme['variants']) == $count ? '' : ','); |
| 771 |
|
$count++; |
| 772 |
|
} |
| 773 |
|
|
| 774 |
|
echo ' |
| 775 |
|
} |
|
@@ 729-733 (lines=5) @@
|
| 726 |
|
<label for="variant', $theme['id'], '"><strong>', $theme['pick_label'], '</strong></label>: |
| 727 |
|
<select id="variant', $theme['id'], '" name="vrt[', $theme['id'], ']" onchange="changeVariant', $theme['id'], '(this.value);">'; |
| 728 |
|
|
| 729 |
|
foreach ($theme['variants'] as $key => $variant) |
| 730 |
|
echo ' |
| 731 |
|
<option value="', $key, '"', $theme['selected_variant'] == $key ? ' selected' : '', '>', $variant['label'], '</option>'; |
| 732 |
|
|
| 733 |
|
echo ' |
| 734 |
|
</select> |
| 735 |
|
<noscript> |
| 736 |
|
<input type="submit" name="save[', $theme['id'], ']" value="', $txt['save'], '" class="button"> |