Version Description
Download this release
Release Info
Developer | jackdewey |
Plugin | Link Library |
Version | 6.0-Beta3 |
Comparing to | |
See all releases |
Code changes from version 6.0-Beta2 to 6.0-Beta3
- link-library-admin.php +11 -11
- link-library-defaults.php +1 -0
- readme.txt +6 -0
- render-link-library-search-sc.php +5 -1
link-library-admin.php
CHANGED
@@ -1783,7 +1783,7 @@ class link_library_plugin_admin {
|
|
1783 |
'cat_letter_filter_autoselect', 'cat_letter_filter_showalloption', 'emailsubmitter', 'addlinkakismet', 'rssfeedinlineskipempty',
|
1784 |
'current_user_links', 'showsubmittername', 'onereciprocaldomain', 'nooutputempty', 'showcatdesc', 'hidechildcatlinks',
|
1785 |
'hidechildcattop', 'catlinkspermalinksmode', 'showbreadcrumbspermalinks', 'showlinktags', 'showlinkprice', 'show0asfree',
|
1786 |
-
'allowcolumnsorting'
|
1787 |
)
|
1788 |
as $option_name
|
1789 |
) {
|
@@ -2105,11 +2105,7 @@ class link_library_plugin_admin {
|
|
2105 |
<?php $roles = $wp_roles->roles;
|
2106 |
|
2107 |
foreach ( $roles as $role ):
|
2108 |
-
|
2109 |
-
$selectedterm = "selected='selected'";
|
2110 |
-
} else {
|
2111 |
-
$selectedterm = '';
|
2112 |
-
} ?>
|
2113 |
<option value='<?php echo $role['name']; ?>' <?php echo $selectedterm; ?>><?php echo $role['name']; ?></option>
|
2114 |
<?php endforeach; ?>
|
2115 |
</select>
|
@@ -2125,11 +2121,7 @@ class link_library_plugin_admin {
|
|
2125 |
<?php $roles = $wp_roles->roles;
|
2126 |
|
2127 |
foreach ( $roles as $role ):
|
2128 |
-
|
2129 |
-
$selectedterm = "selected='selected'";
|
2130 |
-
} else {
|
2131 |
-
$selectedterm = '';
|
2132 |
-
} ?>
|
2133 |
<option value='<?php echo $role['name']; ?>' <?php echo $selectedterm; ?>><?php echo $role['name']; ?></option>
|
2134 |
<?php endforeach; ?>
|
2135 |
</select>
|
@@ -4176,6 +4168,14 @@ class link_library_plugin_admin {
|
|
4176 |
<input type="text" id="searchresultsaddress" name="searchresultsaddress" size="80" value="<?php echo strval( esc_html( stripslashes( $options['searchresultsaddress'] ) ) ); ?>" />
|
4177 |
</td>
|
4178 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4179 |
</table>
|
4180 |
</div>
|
4181 |
<?php
|
1783 |
'cat_letter_filter_autoselect', 'cat_letter_filter_showalloption', 'emailsubmitter', 'addlinkakismet', 'rssfeedinlineskipempty',
|
1784 |
'current_user_links', 'showsubmittername', 'onereciprocaldomain', 'nooutputempty', 'showcatdesc', 'hidechildcatlinks',
|
1785 |
'hidechildcattop', 'catlinkspermalinksmode', 'showbreadcrumbspermalinks', 'showlinktags', 'showlinkprice', 'show0asfree',
|
1786 |
+
'allowcolumnsorting', 'showsearchreset'
|
1787 |
)
|
1788 |
as $option_name
|
1789 |
) {
|
2105 |
<?php $roles = $wp_roles->roles;
|
2106 |
|
2107 |
foreach ( $roles as $role ):
|
2108 |
+
$selectedterm = selected( $genoptions['rolelevel'], $role['name'], false ); ?>
|
|
|
|
|
|
|
|
|
2109 |
<option value='<?php echo $role['name']; ?>' <?php echo $selectedterm; ?>><?php echo $role['name']; ?></option>
|
2110 |
<?php endforeach; ?>
|
2111 |
</select>
|
2121 |
<?php $roles = $wp_roles->roles;
|
2122 |
|
2123 |
foreach ( $roles as $role ):
|
2124 |
+
$selectedterm = selected( $genoptions['editlevel'], $role['name'], false ); ?>
|
|
|
|
|
|
|
|
|
2125 |
<option value='<?php echo $role['name']; ?>' <?php echo $selectedterm; ?>><?php echo $role['name']; ?></option>
|
2126 |
<?php endforeach; ?>
|
2127 |
</select>
|
4168 |
<input type="text" id="searchresultsaddress" name="searchresultsaddress" size="80" value="<?php echo strval( esc_html( stripslashes( $options['searchresultsaddress'] ) ) ); ?>" />
|
4169 |
</td>
|
4170 |
</tr>
|
4171 |
+
<tr>
|
4172 |
+
<td>
|
4173 |
+
<?php _e( 'Show Reset Search button', 'link-library' ); ?>
|
4174 |
+
</td>
|
4175 |
+
<td style='width:75px;padding-right:20px'>
|
4176 |
+
<input type="checkbox" id="showsearchreset" name="showsearchreset" <?php checked( $options['showsearchreset'] ); ?>/>
|
4177 |
+
</td>
|
4178 |
+
</tr>
|
4179 |
</table>
|
4180 |
</div>
|
4181 |
<?php
|
link-library-defaults.php
CHANGED
@@ -254,6 +254,7 @@ function ll_reset_options( $settings = 1, $layout = 'list', $setoptions = 'retur
|
|
254 |
$options['extraquerystring'] = '';
|
255 |
$options['updatedlabel'] = __( 'New', 'link-library' );
|
256 |
$options['showupdatedpos'] = 'before';
|
|
|
257 |
|
258 |
if ( 'return_and_set' == $setoptions ) {
|
259 |
$settingsname = 'LinkLibraryPP' . $settings;
|
254 |
$options['extraquerystring'] = '';
|
255 |
$options['updatedlabel'] = __( 'New', 'link-library' );
|
256 |
$options['showupdatedpos'] = 'before';
|
257 |
+
$options['showsearchreset'] = false;
|
258 |
|
259 |
if ( 'return_and_set' == $setoptions ) {
|
260 |
$settingsname = 'LinkLibraryPP' . $settings;
|
readme.txt
CHANGED
@@ -59,12 +59,18 @@ Further configuration is available under the Link Library Settings panel.
|
|
59 |
|
60 |
== Changelog ==
|
61 |
|
|
|
|
|
|
|
62 |
= 6.0 Beta 2 =
|
63 |
* Fixed compatibility issue with versions of PHP older than 5.5
|
64 |
|
65 |
= 6.0 Beta 1 =
|
66 |
* Complete re-work of Link Library to use Custom Post Types instead of the WordPress legacy link tables
|
67 |
|
|
|
|
|
|
|
68 |
= 5.9.15.2 =
|
69 |
* Added admin message for version 6.0 Beta 1
|
70 |
* Added reset button to search form
|
59 |
|
60 |
== Changelog ==
|
61 |
|
62 |
+
= 6.0 Beta 3 =
|
63 |
+
* Incorporated changes from 5.9.15.3
|
64 |
+
|
65 |
= 6.0 Beta 2 =
|
66 |
* Fixed compatibility issue with versions of PHP older than 5.5
|
67 |
|
68 |
= 6.0 Beta 1 =
|
69 |
* Complete re-work of Link Library to use Custom Post Types instead of the WordPress legacy link tables
|
70 |
|
71 |
+
= 5.9.15.3 =
|
72 |
+
* Added option to determine if new reset search button should be shown or not
|
73 |
+
|
74 |
= 5.9.15.2 =
|
75 |
* Added admin message for version 6.0 Beta 1
|
76 |
* Added reset button to search form
|
render-link-library-search-sc.php
CHANGED
@@ -44,7 +44,11 @@ function RenderLinkLibrarySearchForm( $libraryoptions ) {
|
|
44 |
}
|
45 |
|
46 |
$output .= "<input type='submit' id='searchbutton' value='" . $searchlabel . "' />";
|
47 |
-
|
|
|
|
|
|
|
|
|
48 |
$output .= "</div>\n";
|
49 |
$output .= "</form>\n\n";
|
50 |
|
44 |
}
|
45 |
|
46 |
$output .= "<input type='submit' id='searchbutton' value='" . $searchlabel . "' />";
|
47 |
+
|
48 |
+
if ( $showsearchreset ) {
|
49 |
+
$output .= "<input type='submit' id='resetbutton' value='" . __( 'Reset search', 'link-library' ) . "' />";
|
50 |
+
}
|
51 |
+
|
52 |
$output .= "</div>\n";
|
53 |
$output .= "</form>\n\n";
|
54 |
|