mirror of
https://github.com/danpros/htmly.git
synced 2026-04-18 03:26:20 +05:30
Merge pull request #650 from sb0001/master
Sort the dropdown list of categories alphabetically when adding or editing a post by @sb0001
This commit is contained in:
commit
cb9f7adbc0
2 changed files with 9 additions and 3 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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…
Add table
Add a link
Reference in a new issue