Skip to content

Commit

Permalink
Merge pull request danpros#650 from sb0001/master
Browse files Browse the repository at this point in the history
Sort the dropdown list of categories alphabetically when adding or editing a post by @sb0001
  • Loading branch information
danpros authored Dec 8, 2023
2 parents c533fb7 + 50ab090 commit cb9f7ad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion system/admin/views/add-content.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
}

$desc = get_category_info(null);
asort($desc);

$tags = tag_cloud(true);
$tagslang = "content/data/tags.lang";
Expand Down Expand Up @@ -217,4 +218,4 @@ function extractLast( term ) {

<!-- 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>
9 changes: 7 additions & 2 deletions system/admin/views/config.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,12 @@
<?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>
Expand All @@ -139,4 +144,4 @@
<button type="submit" class="btn btn-primary"><?php echo i18n('Save_Config');?></button>
</div>
</div>
</form>
</form>

0 comments on commit cb9f7ad

Please sign in to comment.