diff --git a/cache/installedVersion.json b/cache/installedVersion.json index 95f82da..cb27ad9 100644 --- a/cache/installedVersion.json +++ b/cache/installedVersion.json @@ -1,3 +1,3 @@ { - "tag_name": "v2.9.3" + "tag_name": "v2.9.4" } \ No newline at end of file diff --git a/index.php b/index.php index 5345cef..09db1bd 100644 --- a/index.php +++ b/index.php @@ -1,6 +1,6 @@ '; + foreach ($images as $index => $v) { + $tmp .= '
'; + } + $tmp .= '
'; + if (!empty($pagination['prev'])) { + $prev = $page - 1; + $tmp .= '← '. i18n('Prev') .''; + } + if (!empty($pagination['next'])) { + $next = $page + 1; + $tmp .= ''. i18n('Next') .' →'; + } + $tmp .= '
'; + return $tmp; +} diff --git a/system/admin/editor/js/editor.js b/system/admin/editor/js/editor.js index 3a19298..fdc4cac 100644 --- a/system/admin/editor/js/editor.js +++ b/system/admin/editor/js/editor.js @@ -11,6 +11,8 @@ $('#insertImageDialogFile').val(''); $('#insertMediaDialogURL').val(''); $('#insertMediaDialogFile').val(''); + $('#gallery-1').html(initial_image); + $('#gallery-2').html(initial_image); }; $('#insertImageDialogInsert').click( function() { callbackFunc( $('#insertImageDialogURL').val().length > 0 ? $('#insertImageDialogURL').val() : null ); diff --git a/system/admin/views/add-content.html.php b/system/admin/views/add-content.html.php index 38105cb..6a6147d 100644 --- a/system/admin/views/add-content.html.php +++ b/system/admin/views/add-content.html.php @@ -24,7 +24,7 @@ if (file_exists($tagslang)) { file_put_contents($tagslang, print_r($tmp, true), LOCK_EX); } -$images = get_gallery(); +$images = image_gallery(null, 1, 40); ?> @@ -227,18 +227,12 @@ $( function() {