diff options
| author | spiderr <spider@viovio.com> | 2012-05-02 23:07:40 -0400 |
|---|---|---|
| committer | spiderr <spider@viovio.com> | 2012-05-02 23:07:40 -0400 |
| commit | 362dbf212c3beec1927ce942e61eb68774ba4b06 (patch) | |
| tree | 06a84016b00fd749682a2598befa07df11cd5280 /admin | |
| parent | 97f2fb44da226bc7e1add725ceaa3fb46ee6acec (diff) | |
| download | fisheye-362dbf212c3beec1927ce942e61eb68774ba4b06.tar.gz fisheye-362dbf212c3beec1927ce942e61eb68774ba4b06.tar.bz2 fisheye-362dbf212c3beec1927ce942e61eb68774ba4b06.zip | |
add admin ability to set default_gallery_pagination
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/admin_fisheye_inc.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/admin/admin_fisheye_inc.php b/admin/admin_fisheye_inc.php index 278fd0b..5a84ad7 100644 --- a/admin/admin_fisheye_inc.php +++ b/admin/admin_fisheye_inc.php @@ -125,6 +125,9 @@ $formImageLists = array( ); $gBitSmarty->assign( 'formImageLists', $formImageLists); +require_once( FISHEYE_PKG_PATH.'FisheyeGallery.php' ); +$gBitSmarty->assign( 'galleryPaginationTypes', FisheyeGallery::getAllLayouts() ); + $sortOptions = array( '' => tra( 'None' ), 'lc.title_desc' => tra( 'Image Title' ). ' - '.tra( 'descending' ), @@ -157,11 +160,10 @@ if (!empty($_REQUEST['fisheyeAdminSubmit'])) { foreach ($formGalleryLists as $item => $data) { simple_set_toggle($item, FISHEYE_PKG_NAME); } - $gBitSystem->storeConfig('fisheye_list_thumbnail_size', $_REQUEST['list_thumbnail_size'], FISHEYE_PKG_NAME); - $gBitSystem->storeConfig('fisheye_gallery_default_thumbnail_size', $_REQUEST['default_gallery_thumbnail_size'], FISHEYE_PKG_NAME); - $gBitSystem->storeConfig('fisheye_gallery_default_rows_per_page', $_REQUEST['rows_per_page'], FISHEYE_PKG_NAME); - $gBitSystem->storeConfig('fisheye_gallery_default_cols_per_page', $_REQUEST['cols_per_page'], FISHEYE_PKG_NAME); - $gBitSystem->storeConfig('fisheye_gallery_default_sort_mode', $_REQUEST['fisheye_gallery_default_sort_mode'], FISHEYE_PKG_NAME); + + foreach( array( 'fisheye_list_thumbnail_size', 'fisheye_gallery_default_thumbnail_size', 'default_gallery_pagination', 'rows_per_page', 'cols_per_page', 'total_per_page', 'lines_per_page', 'galleriffic_style', 'fisheye_gallery_default_sort_mode' ) as $key ) { + $gBitSystem->storeConfig($key, $_REQUEST[$key], FISHEYE_PKG_NAME); + } // Image Display Settings foreach ($formImageLists as $item => $data) { |
