1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-30 01:30:32 +02:00

Fixes #817 - error in gallery admin, and also fixes missing gallery images on fresh install when not logged in.

This commit is contained in:
Cameron
2015-02-04 14:37:34 -08:00
parent 5e56b4731d
commit 4beb3086fb
3 changed files with 35 additions and 6 deletions

View File

@@ -158,7 +158,7 @@ class gallery_cat_admin_ui extends e_admin_ui
// 'slideshow_circular' => array('title'=> 'Slide circular-mode', 'type' => 'boolean', 'data' => 'integer', 'help'=>'By default when the first/last slide is reached, calling prev/next does nothing. If you want the effect to continue enable this option.'), //
'slideshow_effect' => array('title'=> 'Slide effect', 'type' => 'dropdown', 'data' => 'str', 'help'=>'Type of effect. '), //
// 'slideshow_transition' => array('title'=> 'Slide transition', 'type' => 'dropdown', 'data' => 'str', 'help'=>'Type of transition. ') //
'perpage' => array('title'=> 'Images per page', 'type' => 'number', 'data' => 'int', 'help'=>'Number of images to be shown per page', 'validate' => 'required'), // 'rule' => '#^[\d]+$#i', 'help' => 'allowed characters are a-zA-Z and underscore')),
'perpage' => array('title'=> 'Images per page', 'type' => 'number', 'data' => 'int', 'help'=>'Number of images to be shown per page'), // 'rule' => '#^[\d]+$#i', 'help' => 'allowed characters are a-zA-Z and underscore')),
);
@@ -180,10 +180,11 @@ class gallery_cat_admin_ui extends e_admin_ui
$this->prefs['slideshow_effect']['writeParms'] = $effects;
$this->prefs['slideshow_effect']['readParms'] = $effects;
//
// $transitions = array('sinoidal'=>'sinoidal','spring'=>'spring');
$transitions = array('sinoidal'=>'sinoidal','spring'=>'spring');
$this->prefs['slideshow_transition']['writeParms'] = $transitions;
$this->prefs['slideshow_transition']['readParms'] = $transitions;
// $this->prefs['slideshow_transition']['writeParms'] = $transitions;
// $this->prefs['slideshow_transition']['readParms'] = $transitions;
$categories = e107::getMedia()->getCategories('gallery');
$cats = array();

View File

@@ -12,7 +12,7 @@
<mainPrefs>
</mainPrefs>
<mediaCategories>
<category type="image" sef="gallery-1" image='{e_PLUGIN}gallery/images/butterfly.jpg'>Gallery 1</category>
<category type="image" sef="gallery-1" perm="everyone" image='{e_PLUGIN}gallery/images/butterfly.jpg'>Gallery 1</category>
</mediaCategories>
<pluginPrefs>
<pref name="popup_w">800</pref>