Version Description
Download this release
Release Info
Developer | jackdewey |
Plugin | Link Library |
Version | 6.0-Beta9 |
Comparing to | |
See all releases |
Code changes from version 6.0-Beta8 to 6.0-Beta9
- adminstyle.css +4 -0
- link-library-admin.php +59 -5
- link-library.php +1 -1
- readme.txt +5 -0
adminstyle.css
CHANGED
@@ -16,4 +16,8 @@
|
|
16 |
|
17 |
.wp-list-table #link_library_visits {
|
18 |
width: 60px;
|
|
|
|
|
|
|
|
|
19 |
}
|
16 |
|
17 |
.wp-list-table #link_library_visits {
|
18 |
width: 60px;
|
19 |
+
}
|
20 |
+
|
21 |
+
#ll-usage table.widefat td {
|
22 |
+
padding: 2px 4px 2px 10px;
|
23 |
}
|
link-library-admin.php
CHANGED
@@ -2861,6 +2861,7 @@ class link_library_plugin_admin {
|
|
2861 |
<th class="lltooltip" title='<?php _e( 'Link Library Supports the Creation of an unlimited number of configurations to display link lists on your site', 'link-library' ); ?>'>
|
2862 |
<?php _e( 'Code to insert on a Wordpress page', 'link-library' ); ?>
|
2863 |
</th>
|
|
|
2864 |
</tr>
|
2865 |
</thead>
|
2866 |
<tr>
|
@@ -2868,24 +2869,77 @@ class link_library_plugin_admin {
|
|
2868 |
<td style='background: #FFF'><?php echo stripslashes( $options['settingssetname'] ); ?></a></td>
|
2869 |
<td style='background: #FFF'><?php _e( 'Display basic link library', 'link-library' ); ?></td>
|
2870 |
<td style='background: #FFF'><?php echo "[link-library settings=" . $settings . "]"; ?></td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2871 |
</tr>
|
2872 |
<tr>
|
2873 |
<td style='background: #FFF'></td>
|
2874 |
<td style='background: #FFF'></td>
|
2875 |
<td style='background: #FFF'><?php _e( 'Display list of link categories', 'link-library' ); ?></td>
|
2876 |
<td style='background: #FFF'><?php echo "[link-library-cats settings=" . $settings . "]"; ?></td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2877 |
</tr>
|
2878 |
<tr>
|
2879 |
<td style='background: #FFF'></td>
|
2880 |
<td style='background: #FFF'></td>
|
2881 |
<td style='background: #FFF'><?php _e( 'Display search box', 'link-library' ); ?></td>
|
2882 |
<td style='background: #FFF'><?php echo "[link-library-search settings=" . $settings . "]"; ?></td>
|
|
|
2883 |
</tr>
|
2884 |
<tr>
|
2885 |
<td style='background: #FFF'></td>
|
2886 |
<td style='background: #FFF'></td>
|
2887 |
<td style='background: #FFF'><?php _e( 'Display link submission form', 'link-library' ); ?></td>
|
2888 |
<td style='background: #FFF'><?php echo "[link-library-addlink settings=" . $settings . "]"; ?></td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2889 |
</tr>
|
2890 |
</table>
|
2891 |
<table>
|
@@ -2914,11 +2968,11 @@ class link_library_plugin_admin {
|
|
2914 |
}
|
2915 |
|
2916 |
foreach ( $categories as $category ) {
|
2917 |
-
$output .= '<option value="' . $category->term_id . '" ' . selected( in_array( $category->term_id, $selected_items ), true, false ) . ' >' . $category->name . '</option>';
|
2918 |
-
$child_categories = get_terms( '
|
2919 |
|
2920 |
if ( !empty( $child_categories ) ) {
|
2921 |
-
$output .= render_category_list( $child_categories, $select_name, $depth + 1, $selected_items, $order );
|
2922 |
}
|
2923 |
}
|
2924 |
|
@@ -5551,10 +5605,10 @@ class link_library_plugin_admin {
|
|
5551 |
'selected' =>
|
5552 |
( isset( $wp_query->query['link_library_category'] ) ?
|
5553 |
$wp_query->query['link_library_category'] : '' ),
|
5554 |
-
'hierarchical' =>
|
5555 |
'depth' => 3,
|
5556 |
'show_count' => false,
|
5557 |
-
'hide_empty' =>
|
5558 |
)
|
5559 |
);
|
5560 |
}
|
2861 |
<th class="lltooltip" title='<?php _e( 'Link Library Supports the Creation of an unlimited number of configurations to display link lists on your site', 'link-library' ); ?>'>
|
2862 |
<?php _e( 'Code to insert on a Wordpress page', 'link-library' ); ?>
|
2863 |
</th>
|
2864 |
+
<th>Optional Parameters</th>
|
2865 |
</tr>
|
2866 |
</thead>
|
2867 |
<tr>
|
2869 |
<td style='background: #FFF'><?php echo stripslashes( $options['settingssetname'] ); ?></a></td>
|
2870 |
<td style='background: #FFF'><?php _e( 'Display basic link library', 'link-library' ); ?></td>
|
2871 |
<td style='background: #FFF'><?php echo "[link-library settings=" . $settings . "]"; ?></td>
|
2872 |
+
<td style='background: #FFF'><table style="padding-left:16px;">
|
2873 |
+
<tr>
|
2874 |
+
<td><strong>Parameter</strong></td><td><strong>Description</strong></td>
|
2875 |
+
</tr>
|
2876 |
+
<tr>
|
2877 |
+
<td>[link-library settings="<?php echo $settings; ?>" categorylistoverride="28"]</td>
|
2878 |
+
<td>Overrides the list of categories to be displayed in the link list, comma-separated list of category IDs</td>
|
2879 |
+
</tr>
|
2880 |
+
<tr>
|
2881 |
+
<td>[link-library settings="<?php echo $settings; ?>" excludecategoryoverride="28"]</td>
|
2882 |
+
<td>Overrides the list of categories to be excluded in the link list, comma-separated list of category IDs</td>
|
2883 |
+
</tr>
|
2884 |
+
<tr>
|
2885 |
+
<td>[link-library settings="<?php echo $settings; ?>" notesoverride=0]</td>
|
2886 |
+
<td>Set to 0 or 1 to display or not display link notes</td>
|
2887 |
+
</tr>
|
2888 |
+
<tr>
|
2889 |
+
<td>[link-library settings="<?php echo $settings; ?>" descoverride=0]</td>
|
2890 |
+
<td>Set to 0 or 1 to display or not display link descriptions</td>
|
2891 |
+
</tr>
|
2892 |
+
<tr>
|
2893 |
+
<td>[link-library settings="<?php echo $settings; ?>" rssoverride=0]</td>
|
2894 |
+
<td>Set to 0 or 1 to display or not display rss information</td>
|
2895 |
+
</tr>
|
2896 |
+
<tr>
|
2897 |
+
<td>[link-library settings="<?php echo $settings; ?>" tableoverride=0]</td>
|
2898 |
+
<td>Set to 0 or 1 to display links in an unordered list or a table</td>
|
2899 |
+
</tr>
|
2900 |
+
</table></td>
|
2901 |
</tr>
|
2902 |
<tr>
|
2903 |
<td style='background: #FFF'></td>
|
2904 |
<td style='background: #FFF'></td>
|
2905 |
<td style='background: #FFF'><?php _e( 'Display list of link categories', 'link-library' ); ?></td>
|
2906 |
<td style='background: #FFF'><?php echo "[link-library-cats settings=" . $settings . "]"; ?></td>
|
2907 |
+
<td style='background: #FFF'>
|
2908 |
+
<table style="padding-left:16px;">
|
2909 |
+
<tr>
|
2910 |
+
<td><strong>Parameter</strong></td><td><strong>Description</strong></td>
|
2911 |
+
</tr>
|
2912 |
+
<tr>
|
2913 |
+
<td>[link-library-cats settings="<?php echo $settings; ?>" categorylistoverride="28"]</td>
|
2914 |
+
<td>Overrides the list of categories to be displayed in the category list, comma-separated list of category IDs</td>
|
2915 |
+
</tr>
|
2916 |
+
<tr>
|
2917 |
+
<td>[link-library-cats settings="<?php echo $settings; ?>" excludecategoryoverride="28"]</td>
|
2918 |
+
<td>Overrides the list of categories to be excluded in the category list, comma-separated list of category IDs</td>
|
2919 |
+
</tr>
|
2920 |
+
</table>
|
2921 |
+
</td>
|
2922 |
</tr>
|
2923 |
<tr>
|
2924 |
<td style='background: #FFF'></td>
|
2925 |
<td style='background: #FFF'></td>
|
2926 |
<td style='background: #FFF'><?php _e( 'Display search box', 'link-library' ); ?></td>
|
2927 |
<td style='background: #FFF'><?php echo "[link-library-search settings=" . $settings . "]"; ?></td>
|
2928 |
+
<td style='background: #FFF'></td>
|
2929 |
</tr>
|
2930 |
<tr>
|
2931 |
<td style='background: #FFF'></td>
|
2932 |
<td style='background: #FFF'></td>
|
2933 |
<td style='background: #FFF'><?php _e( 'Display link submission form', 'link-library' ); ?></td>
|
2934 |
<td style='background: #FFF'><?php echo "[link-library-addlink settings=" . $settings . "]"; ?></td>
|
2935 |
+
<td style='background: #FFF'></td>
|
2936 |
+
</tr>
|
2937 |
+
<tr>
|
2938 |
+
<td style='background: #FFF'></td>
|
2939 |
+
<td style='background: #FFF'></td>
|
2940 |
+
<td style='background: #FFF'><?php _e( 'Display count of links in a library', 'link-library' ); ?></td>
|
2941 |
+
<td style='background: #FFF'><?php echo "[link-library-count settings=" . $settings . "]"; ?></td>
|
2942 |
+
<td style='background: #FFF'></td>
|
2943 |
</tr>
|
2944 |
</table>
|
2945 |
<table>
|
2968 |
}
|
2969 |
|
2970 |
foreach ( $categories as $category ) {
|
2971 |
+
$output .= '<option value="' . $category->term_id . '" ' . selected( in_array( $category->term_id, $selected_items ), true, false ) . ' >' . str_repeat( ' ', 4 * $depth ) . $category->name . '</option>';
|
2972 |
+
$child_categories = get_terms( 'link_library_category', array( 'orderby' => 'name', 'parent' => $category->term_id, 'order' => $order, 'hide_empty' => false ) );
|
2973 |
|
2974 |
if ( !empty( $child_categories ) ) {
|
2975 |
+
$output .= $this->render_category_list( $child_categories, $select_name, $depth + 1, $selected_items, $order );
|
2976 |
}
|
2977 |
}
|
2978 |
|
5605 |
'selected' =>
|
5606 |
( isset( $wp_query->query['link_library_category'] ) ?
|
5607 |
$wp_query->query['link_library_category'] : '' ),
|
5608 |
+
'hierarchical' => true,
|
5609 |
'depth' => 3,
|
5610 |
'show_count' => false,
|
5611 |
+
'hide_empty' => false,
|
5612 |
)
|
5613 |
);
|
5614 |
}
|
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: 6.0 Beta
|
7 |
Author: Yannick Lefebvre
|
8 |
Author URI: http://ylefebvre.ca/
|
9 |
Text Domain: link-library
|
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: 6.0 Beta 9
|
7 |
Author: Yannick Lefebvre
|
8 |
Author URI: http://ylefebvre.ca/
|
9 |
Text Domain: link-library
|
readme.txt
CHANGED
@@ -59,6 +59,11 @@ Further configuration is available under the Link Library Settings panel.
|
|
59 |
|
60 |
== Changelog ==
|
61 |
|
|
|
|
|
|
|
|
|
|
|
62 |
= 6.0 Beta 8 =
|
63 |
* Updated bookmarket to work with new link custom post types (need to re-create bookmarklet from General Options to work)
|
64 |
* Fixed problem selecting categories in Common tab of library configuration
|
59 |
|
60 |
== Changelog ==
|
61 |
|
62 |
+
= 6.0 Beta 9 =
|
63 |
+
* Added shortcode parameters to the Usage tab under Library Configuration
|
64 |
+
* Modified All Links page filter to show all categories instead of only showing categories containing links. Also made category list hierarchical.
|
65 |
+
* Fix to show child categories in Common tab of Library Configurations
|
66 |
+
|
67 |
= 6.0 Beta 8 =
|
68 |
* Updated bookmarket to work with new link custom post types (need to re-create bookmarklet from General Options to work)
|
69 |
* Fixed problem selecting categories in Common tab of library configuration
|