This repository has been archived on 2024-04-03. You can view files and clone it, but cannot push or open issues or pull requests.
kspace-wordpress-theme/components/sidebar/archives.php

10 lines
486 B
PHP
Raw Normal View History

<div class="card card-primary">
<div class="card-header"><i class="fa fa-folder" aria-hidden="true"></i> Archives</div>
<div class="card-body">
<select class="card-select" name="archive-dropdown" onChange='document.location.href=this.options[this.selectedIndex].value;'>
<option value=""><?php echo attribute_escape(__('Selection d\'une année…')); ?></option>
<?php wp_get_archives('type=yearly&format=option&show_post_count=1'); ?>
</select>
</div>
</div>