From: Michael J. Rubinsky Date: Tue, 14 Sep 2010 21:49:58 +0000 (-0400) Subject: Start working on adding gallery style information to the gallery properties UI X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=667bab71347c8b970605fecb6d3ddc78055b76b2;p=horde.git Start working on adding gallery style information to the gallery properties UI --- diff --git a/ansel/lib/View/GalleryProperties.php b/ansel/lib/View/GalleryProperties.php index 6851cf5bb..45e6f6a6d 100644 --- a/ansel/lib/View/GalleryProperties.php +++ b/ansel/lib/View/GalleryProperties.php @@ -194,10 +194,9 @@ class Ansel_View_GalleryProperties 'passwd' => $gallery->get('passwd'), 'parent' => !is_null($parent) ? $parent->getId() : $parent, 'id' => $gallery->getId(), - 'owner' => $gallery->get('owner') + 'owner' => $gallery->get('owner'), + 'style' => $gallery->getStyle() ); - - //$gallery_thumbstyle = $gallery->get('style'); $this->_title = sprintf(_("Modifying: %s"), $this->_properties['name']); } catch (Ansel_Exception $e) { $title = _("Unknown Gallery"); diff --git a/ansel/templates/gallery/properties.html.php b/ansel/templates/gallery/properties.html.php index 44f37c974..d6052e618 100644 --- a/ansel/templates/gallery/properties.html.php +++ b/ansel/templates/gallery/properties.html.php @@ -4,14 +4,9 @@ * Expects the following properties to be set: *
  *   (string)action    The current actionID
- *   (int)parent       The parent id
- *   (int)id           The current gallery id, if not new.
  *   (Horde_Url)url    The return url
  *   (string)title     The form title
- *   (string)mode      The gallery mode
  *   (array)properties The gallery properties
- *
- *
  * 
*/ ?> @@ -28,6 +23,8 @@ h($this->title); ?> + + -isLocked('default_gallerystyle')): ?> - - - - - - - + + + + + + + + + + + + - + + +isLocked('default_download')): ?> '; @@ -114,12 +112,21 @@ + +getAuth() && $GLOBALS['registry']->getAuth() == $this->properties['owner']): ?> + + + + renderPartial('styles'); ?> + + +
  @@ -39,16 +36,8 @@
  - style) ?> -
@@ -58,18 +47,24 @@
 
 
  @@ -78,28 +73,31 @@
 
  - + +