Skip to content
This repository was archived by the owner on May 2, 2018. It is now read-only.

Commit 8900577

Browse files
committed
order the glossary terms in the archive page alphabetically
1 parent 6f1b8e7 commit 8900577

2 files changed

Lines changed: 408 additions & 381 deletions

File tree

admin/views/admin.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<div id="tabs" class="settings-tab">
2121
<ul>
2222
<li><a href="#tabs-1"><?php _e( 'Settings' ); ?></a></li>
23-
<li><a href="#tabs-3"><?php _e( 'Import/Export', $this->plugin_slug ); ?></a></li>
23+
<li><a href="#tabs-2"><?php _e( 'Import/Export', $this->plugin_slug ); ?></a></li>
2424
</ul>
2525
<div id="tabs-1" class="wrap">
2626
<?php
@@ -47,6 +47,11 @@
4747
'tax_glossary' => __( 'Glossary Taxonomy', $this->plugin_slug )
4848
)
4949
) );
50+
$cmb->add_field( array(
51+
'name' => __( 'Order Glossary terms archive alphabetically', $this->plugin_slug ),
52+
'id' => 'order_terms',
53+
'type' => 'checkbox',
54+
) );
5055
$cmb->add_field( array(
5156
'name' => __( 'Link only the first occurence', $this->plugin_slug ),
5257
'desc' => __('Prevent duplicate links and tooltips in the same post', $this->plugin_slug ),
@@ -87,7 +92,7 @@
8792

8893
<!-- @TODO: Provide other markup for your options page here. -->
8994
</div>
90-
<div id="tabs-3" class="metabox-holder">
95+
<div id="tabs-2" class="metabox-holder">
9196
<div class="postbox">
9297
<h3 class="hndle"><span><?php _e( 'Export Settings', $this->plugin_slug ); ?></span></h3>
9398
<div class="inside">

0 commit comments

Comments
 (0)