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

Commit 6e2c7cc

Browse files
author
eugenio
committed
Dashboard testual elements fixed
1 parent 2dfbf6c commit 6e2c7cc

4 files changed

Lines changed: 23 additions & 19 deletions

File tree

admin/assets/css/admin.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@
5050
#dashboard_right_now a.demo-count:before{
5151
content:"\f115";
5252
}
53-
.metabox-holder .postbox .inside {
53+
.metabox-holder .postbox.codeat .inside {
5454
margin: 0;
5555
background: #4E3A4C;
5656
padding: 20px 14px;
5757
}
58-
.metabox-holder .postbox .inside a img {
58+
.metabox-holder .postbox.codeat .inside a img {
5959
margin-bottom: 16px;
6060
}
61-
.metabox-holder .hndle span {
61+
.metabox-holder .postbox.codeat .hndle span {
6262
text-align: center;
6363
display: block;
6464
}

admin/class-glossary-admin.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,12 +253,13 @@ public function cmb_glossary() {
253253
) );
254254
$cmb_demo->add_field( array(
255255
'name' => __( 'Related search terms', $this->plugin_slug ),
256-
'desc' => __( 'separated comma', $this->plugin_slug ),
256+
'desc' => __( 'More than one: Comma Separated Values', $this->plugin_slug ),
257257
'id' => $this->plugin_slug . '_tag',
258258
'type' => 'text'
259259
) );
260260
$cmb_demo->add_field( array(
261-
'name' => __( 'External url', $this->plugin_slug ),
261+
'name' => __( 'External URL', $this->plugin_slug ),
262+
'desc' => __( 'Redirects links to an external/affliate URL', $this->plugin_slug ),
262263
'id' => $this->plugin_slug . '_url',
263264
'type' => 'text_url',
264265
'protocols' => array( 'http', 'https' ),
@@ -270,7 +271,7 @@ public function cmb_glossary() {
270271
) );
271272
$cmb_demo->add_field( array(
272273
'name' => __( 'No Follow link', $this->plugin_slug ),
273-
'desc' => __( 'Put rel="nofollow" in the markup for SEO purposes', $this->plugin_slug ),
274+
'desc' => __( 'Put rel="nofollow" in the link for SEO purposes', $this->plugin_slug ),
274275
'id' => $this->plugin_slug . '_nofollow',
275276
'type' => 'checkbox'
276277
) );

admin/views/admin.php

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<div class="wrap">
1717

18-
<h2><?php echo esc_html( get_admin_page_title() ); ?></h2>
18+
<h2>Glossary General Settings</h2>
1919

2020
<div id="tabs" class="settings-tab">
2121
<ul>
@@ -31,17 +31,12 @@
3131
'show_names' => true,
3232
) );
3333
$cmb->add_field( array(
34-
'name' => __( 'Add support in specific post type', $this->plugin_slug ),
34+
'name' => __( 'Enable in:', $this->plugin_slug ),
3535
'id' => 'posttypes',
3636
'type' => 'multicheck_posttype',
3737
) );
3838
$cmb->add_field( array(
39-
'name' => __( 'Link only the first occurence', $this->plugin_slug ),
40-
'id' => 'first_occurence',
41-
'type' => 'checkbox',
42-
) );
43-
$cmb->add_field( array(
44-
'name' => __( 'Choose when enable', $this->plugin_slug ),
39+
'name' => __( 'Enable also in following archives:', $this->plugin_slug ),
4540
'id' => 'is',
4641
'type' => 'multicheck',
4742
'options' => array(
@@ -53,12 +48,20 @@
5348
)
5449
) );
5550
$cmb->add_field( array(
56-
'name' => __( 'Enable tooltip on terms', $this->plugin_slug ),
51+
'name' => __( 'Link only the first occurence', $this->plugin_slug ),
52+
'desc' => __('Prevent duplicate links and tooltips in the same post', $this->plugin_slug ),
53+
'id' => 'first_occurence',
54+
'type' => 'checkbox',
55+
) );
56+
$cmb->add_field( array(
57+
'name' => __( 'Enable tooltips on terms', $this->plugin_slug ),
58+
'desc' => __('Tooltip will popup on hover', $this->plugin_slug ),
5759
'id' => 'tooltip',
5860
'type' => 'checkbox',
5961
) );
6062
$cmb->add_field( array(
6163
'name' => __( 'Tooltip style', $this->plugin_slug ),
64+
'desc' => __('Only classic will show featured images', $this->plugin_slug ),
6265
'id' => 'tooltip_style',
6366
'type' => 'select',
6467
'options' => array(
@@ -68,14 +71,14 @@
6871
)
6972
) );
7073
$cmb->add_field( array(
71-
'name' => __( 'Excerpt char size', $this->plugin_slug ),
74+
'name' => __( 'Excerpt length', $this->plugin_slug ),
7275
'id' => 'excerpt_limit',
7376
'type' => 'text_number',
7477
'default' => '60'
7578
) );
7679
$cmb->add_field( array(
7780
'name' => __( 'Enable image in tooltip', $this->plugin_slug ),
78-
'description' => __( 'Check it if you want also term\'s featured image showing on hover', $this->plugin_slug ),
81+
'desc' => __( 'Check it if you want also term\'s featured image in classic tooltips', $this->plugin_slug ),
7982
'id' => 't_image',
8083
'type' => 'checkbox',
8184
) );
@@ -119,7 +122,7 @@
119122
</div>
120123

121124
<div class="right-column-settings-page metabox-holder">
122-
<div class="postbox">
125+
<div class="postbox codeat">
123126
<h3 class="hndle"><span><?php _e( 'A Codeat Plugin', $this->plugin_slug ); ?></span></h3>
124127
<div class="inside">
125128
<a href="http://codeat.co" target="_blank"><img src="http://i2.wp.com/codeat.co/wp-content/uploads/2016/02/cropped-logo-light.png?w=236" alt="Codeat"></a>

public/class-glossary.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ private function __construct() {
9999

100100
add_filter( 'the_content', array( $this, 'glossary_auto_link' ) );
101101
add_filter( 'the_excerpt', array( $this, 'glossary_auto_link' ) );
102-
add_action( 'genesis_entry_content', array( $this, 'genesis_content' ), 9 );
102+
add_action( 'genesis_entry_content', array( $this, 'genesis_content' ), 9 );
103103

104104
require_once( plugin_dir_path( __FILE__ ) . '/includes/Glossary_a2z_Archive.php' );
105105

0 commit comments

Comments
 (0)