Browse Source

Merge pull request #650 from sb0001/master

Sort the dropdown list of categories alphabetically when adding or editing a post by @sb0001
pull/653/head
Dan 2 years ago
committed by GitHub
parent
commit
cb9f7adbc0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions
  1. +2
    -1
      system/admin/views/add-content.html.php
  2. +7
    -2
      system/admin/views/config.html.php

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

@ -9,6 +9,7 @@ if ($type != 'is_post' && $type != 'is_image' && $type != 'is_video' && $type !=
}
$desc = get_category_info(null);
asort($desc);
$tags = tag_cloud(true);
$tagslang = "content/data/tags.lang";
@ -217,4 +218,4 @@ $( function() {
<!-- Declare the base path. Important -->
<script type="text/javascript">var base_path = '<?php echo site_url() ?>';</script>
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/editor.js"></script>
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/editor.js"></script>

+ 7
- 2
system/admin/views/config.html.php View File

@ -113,7 +113,12 @@ Please install and enable the INTL extension to format the date format to your l
<?php echo format_date(strtotime($date), 'Y-m-d'); ?>
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="-config-date.format" id="date.format6" value="d.m.Y" <?php if (config('date.format') === 'd.m.Y'):?>checked<?php endif;?>>
<label class="form-check-label" for="date.format6">
<?php echo format_date(strtotime($date), 'd.m.Y'); ?>
</label>
</div>
</div>
</div>
</div>
@ -139,4 +144,4 @@ Please install and enable the INTL extension to format the date format to your l
<button type="submit" class="btn btn-primary"><?php echo i18n('Save_Config');?></button>
</div>
</div>
</form>
</form>

Loading…
Cancel
Save