Link Library - Version 7.3.12

Version Description

  • Add general option to show excerpt section in link editor
Download this release

Release Info

Developer jackdewey
Plugin Icon 128x128 Link Library
Version 7.3.12
Comparing to
See all releases

Code changes from version 7.3.11 to 7.3.12

link-library-admin.php CHANGED
@@ -2556,7 +2556,7 @@ wp_editor( $post->post_content, 'content', $editor_config );
2556
  foreach ( array( 'debugmode', 'emaillinksubmitter', 'suppressemailfooter', 'usefirstpartsubmittername', 'hidedonation', 'publicly_queryable', 'exclude_from_search', 'bp_log_activity', 'deletelocalfile', 'customurl1active',
2557
  'customurl2active', 'customurl3active', 'customurl4active', 'customurl5active', 'customtext1active', 'customtext2active',
2558
  'customtext3active', 'customtext4active', 'customtext5active', 'customlist1active', 'customlist2active',
2559
- 'customlist3active', 'customlist4active', 'customlist5active', 'globalsearchresultslinkurl', 'add_to_main_rss' ) as $option_name ) {
2560
  if ( isset( $_POST[$option_name] ) ) {
2561
  $genoptions[$option_name] = true;
2562
  } else {
@@ -3306,6 +3306,10 @@ wp_editor( $post->post_content, 'content', $editor_config );
3306
  echo '</select>';
3307
  ?></td>
3308
  </tr>
 
 
 
 
3309
  <tr>
3310
  <td><?php _e( 'Default protocol for new links in admin when not specified', 'link-library' ); ?></td>
3311
  <td><?php $target_array = array( 'http' => 'http://', 'https' => 'https://' );
2556
  foreach ( array( 'debugmode', 'emaillinksubmitter', 'suppressemailfooter', 'usefirstpartsubmittername', 'hidedonation', 'publicly_queryable', 'exclude_from_search', 'bp_log_activity', 'deletelocalfile', 'customurl1active',
2557
  'customurl2active', 'customurl3active', 'customurl4active', 'customurl5active', 'customtext1active', 'customtext2active',
2558
  'customtext3active', 'customtext4active', 'customtext5active', 'customlist1active', 'customlist2active',
2559
+ 'customlist3active', 'customlist4active', 'customlist5active', 'globalsearchresultslinkurl', 'add_to_main_rss', 'showexcerpt' ) as $option_name ) {
2560
  if ( isset( $_POST[$option_name] ) ) {
2561
  $genoptions[$option_name] = true;
2562
  } else {
3306
  echo '</select>';
3307
  ?></td>
3308
  </tr>
3309
+ <tr>
3310
+ <td><?php _e( 'Display excerpt section in editor', 'link-library' ); ?></td>
3311
+ <td><input type="checkbox" id="showexcerpt" name="showexcerpt" <?php checked( $genoptions['showexcerpt'] ); ?>/></td>
3312
+ </tr>
3313
  <tr>
3314
  <td><?php _e( 'Default protocol for new links in admin when not specified', 'link-library' ); ?></td>
3315
  <td><?php $target_array = array( 'http' => 'http://', 'https' => 'https://' );
link-library-defaults.php CHANGED
@@ -568,6 +568,7 @@ function ll_reset_gen_settings( $setoptions = 'return' ) {
568
  $genoptions['cattaxonomy'] = 'link_library_category';
569
  $genoptions['tagtaxonomy'] = 'link_library_tags';
570
  $genoptions['ignoresortarticles'] = '';
 
571
 
572
  if ( 'return_and_set' == $setoptions ) {
573
  $stylesheetlocation = plugins_url( 'stylesheettemplate.css', __FILE__ );
568
  $genoptions['cattaxonomy'] = 'link_library_category';
569
  $genoptions['tagtaxonomy'] = 'link_library_tags';
570
  $genoptions['ignoresortarticles'] = '';
571
+ $genoptions['showexcerpt'] = false;
572
 
573
  if ( 'return_and_set' == $setoptions ) {
574
  $stylesheetlocation = plugins_url( 'stylesheettemplate.css', __FILE__ );
link-library.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Link Library
4
  Plugin URI: http://wordpress.org/extend/plugins/link-library/
5
  Description: Display links on pages with a variety of options
6
- Version: 7.3.11
7
  Author: Yannick Lefebvre
8
  Author URI: http://ylefebvre.github.io/
9
  Text Domain: link-library
@@ -486,6 +486,10 @@ class link_library_plugin {
486
  $post_type_args['public'] = true;
487
  }
488
 
 
 
 
 
489
  register_post_type( 'link_library_links', $post_type_args );
490
 
491
  register_taxonomy(
3
  Plugin Name: Link Library
4
  Plugin URI: http://wordpress.org/extend/plugins/link-library/
5
  Description: Display links on pages with a variety of options
6
+ Version: 7.3.12
7
  Author: Yannick Lefebvre
8
  Author URI: http://ylefebvre.github.io/
9
  Text Domain: link-library
486
  $post_type_args['public'] = true;
487
  }
488
 
489
+ if ( $genoptions['showexcerpt'] ) {
490
+ $post_type_args['supports'][] = 'excerpt';
491
+ }
492
+
493
  register_post_type( 'link_library_links', $post_type_args );
494
 
495
  register_taxonomy(
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://ylefebvre.github.io/wordpress-plugins/link-library/
4
  Tags: link, list, directory, page, library, AJAX, RSS, feeds, inline, search, paging, add, submit, import, batch, pop-up
5
  Requires at least: 4.4
6
  Tested up to: 6.0.1
7
- Stable tag: 7.3.11
8
 
9
  The purpose of this plugin is to add the ability to output a list of link categories and a complete list of links with notes and descriptions.
10
 
@@ -50,6 +50,9 @@ Further configuration is available under the Link Library Settings panel.
50
 
51
  == Changelog ==
52
 
 
 
 
53
  = 7.3.11 =
54
  * Fix to allow single quotes in empty search results message field
55
 
4
  Tags: link, list, directory, page, library, AJAX, RSS, feeds, inline, search, paging, add, submit, import, batch, pop-up
5
  Requires at least: 4.4
6
  Tested up to: 6.0.1
7
+ Stable tag: 7.3.12
8
 
9
  The purpose of this plugin is to add the ability to output a list of link categories and a complete list of links with notes and descriptions.
10
 
50
 
51
  == Changelog ==
52
 
53
+ = 7.3.12 =
54
+ * Add general option to show excerpt section in link editor
55
+
56
  = 7.3.11 =
57
  * Fix to allow single quotes in empty search results message field
58