> - =$addon['Translation']['name']['string']?> =$addon['Version'][0]['Version']['version']?> }?> + =$addon['Translation']['name']['string']?> =$addon['Version'][0]['Version']['version']?>
=___('by')?> =$html->linkUsersFromModel($addon['User'], 0);?>
diff --git a/site/app/views/admin/collections_promobox.thtml b/site/app/views/admin/collections_promobox.thtml index 1d0d1cc..0fa1d21 100644 --- a/site/app/views/admin/collections_promobox.thtml +++ b/site/app/views/admin/collections_promobox.thtml @@ -56,13 +56,13 @@ will be shown on the front page, if more exist for a locale they will be randomly chosen. Collections specified for a locale are given priority over collections specified for all locales. - if (!empty($errors['main'])): ?> - renderElement('notification', array('msg' => $errors['main'], 'type' => 'error')); ?> - endif; ?> + + = $this->renderElement('notification', array('msg' => $errors['main'], 'type' => 'error')); ?> + - if (isset($changeSuccess) && $changeSuccess): ?> - renderElement('notification', array('msg' => 'Changes Saved', 'type' => 'success')); ?> - endif; ?> + + = $this->renderElement('notification', array('msg' => 'Changes Saved', 'type' => 'success')); ?> +Add a New Collection
=$html->formTag('/admin/collections/promobox', 'post', array('id' => 'collection-promobox-add-form-all')); ?> @@ -74,26 +74,26 @@- foreach ($locales as $locale => $english_name): ?> - if (array_key_exists($locale, $promoted_collections)): ?> + $english_name): ?> +
=$english_name?> (=$locale?>)
-
- foreach ($promoted_collections[$locale] as $tnt => $collections): ?>
- foreach ($collections as $collection_id => $collection): ?>
+ $collections): ?>
+ $collection): ?>
- =$html->formTag('/admin/collections/promobox', 'post', array('id' => 'collection-promobox-delete-form-all')); ?> - submitImage('developers/delete.png', array('title'=> 'Remove', 'alt' => 'Remove')); ?> + = $html->submitImage('developers/delete.png', array('title'=> 'Remove', 'alt' => 'Remove')); ?> =$html->image("developers/".array_search($collection['application_id'], $app_shortnames).".png")?> (=$titles_and_taglines[$tnt]['title']?>) =$collection['name']?> - endforeach; ?> - endforeach; ?> + +