Browse Source

Fix pager

pull/698/head
danpros 1 year ago
parent
commit
418af8d2d3
2 changed files with 5 additions and 3 deletions
  1. +4
    -2
      system/admin/admin.php
  2. +1
    -1
      system/admin/views/edit-content.html.php

+ 4
- 2
system/admin/admin.php View File

@ -1642,10 +1642,12 @@ function image_gallery($images, $page = 1, $perpage = 0)
} }
$tmp .= '</div><br><div class="row">'; $tmp .= '</div><br><div class="row">';
if (!empty($pagination['prev'])) { if (!empty($pagination['prev'])) {
$tmp .= '<a class="btn btn-primary left" href="#'. $page - 1 .'" onclick="loadImages(' . $page - 1 . ')">← '. i18n('Prev') .'</a>';
$prev = $page - 1;
$tmp .= '<a class="btn btn-primary left" href="#'. $prev .'" onclick="loadImages(' . $prev . ')">← '. i18n('Prev') .'</a>';
} }
if (!empty($pagination['next'])) { if (!empty($pagination['next'])) {
$tmp .= '<a class="btn btn-primary right" href="#'. $page + 1 .'" onclick="loadImages(' . $page + 1 . ')">'. i18n('Next') .' →</a>';
$next = $page + 1;
$tmp .= '<a class="btn btn-primary right" href="#'. $next .'" onclick="loadImages(' . $next . ')">'. i18n('Next') .' →</a>';
} }
$tmp .= '</div>'; $tmp .= '</div>';
return $tmp; return $tmp;


+ 1
- 1
system/admin/views/edit-content.html.php View File

@ -170,7 +170,7 @@ $( function() {
</div> </div>
<br> <br>
<label for="pURL"><?php echo i18n('Slug');?> (<?php echo i18n('optional');?>)</label> <label for="pURL"><?php echo i18n('Slug');?> (<?php echo i18n('optional');?>)</label>
<input type="text" id="pURL" name="url" class="form-control text" value="<?php echo $oldmd ?>" placeholder="<?php echo i18n('If_the_url_leave_empty_we_will_use_the_post_title');?>"//>
<input type="text" id="pURL" name="url" class="form-control text" value="<?php echo $oldmd ?>" placeholder="<?php echo i18n('If_the_url_leave_empty_we_will_use_the_post_title');?>"/>
<br> <br>
<?php if ($type == 'is_audio'):?> <?php if ($type == 'is_audio'):?>


Loading…
Cancel
Save