Version Description
Download this release
Release Info
Developer | jackdewey |
Plugin | Link Library |
Version | LinkLibrary_6.0.46 |
Comparing to | |
See all releases |
Code changes from version LinkLibrary_5.9.15.8 to LinkLibrary_6.0.46
- adminstyle.css +23 -0
- icons/7683os_cover_small.jpg +0 -0
- icons/link-icon.png +0 -0
- importtemplate.csv +2 -2
- js/ll_admin_edit.js +34 -0
- languages/link-library-fr_CA.mo +0 -0
- languages/link-library-fr_CA.po +2943 -0
- languages/link-library-nb_NO.mo +0 -0
- languages/link-library-nb_NO.po +3250 -0
- languages/link-library.mo +0 -0
- languages/link-library.pot +1006 -853
- link-library-admin.php +1949 -1273
- link-library-defaults.php +67 -43
- link-library-image-generator.php +13 -13
- link-library-update-60.php +251 -0
- link-library.php +488 -193
- linkpopup.php +270 -250
- readme.txt +216 -3
- render-link-library-addlink-sc.php +674 -536
- render-link-library-alpha-filter.php +14 -14
- render-link-library-cats-sc.php +485 -482
- render-link-library-sc.php +1557 -1050
- render-link-library-search-sc.php +10 -1
- render-link-library-tag-filter-sc.php +145 -0
- rss.genesis.php +467 -467
- rssfeed.php +107 -80
- rsspreview.php +53 -52
- screenshot-1.jpg +0 -0
- screenshot-2.jpg +0 -0
- screenshot-3.jpg +0 -0
- stylesheettemplate.css +21 -0
- tracker.php +9 -20
- uninstall.php +12 -28
- usersubmission.php +198 -126
adminstyle.css
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.link_full_page_editor {
|
2 |
+
margin-bottom: 0 !important;
|
3 |
+
}
|
4 |
+
|
5 |
+
.post-type-link_library_links .wp-editor-tools {
|
6 |
+
padding-top: 0px !important;
|
7 |
+
}
|
8 |
+
|
9 |
+
#wp-content-editor-tools {
|
10 |
+
background-color: #fff;
|
11 |
+
}
|
12 |
+
|
13 |
+
.wp-list-table #link_library_rating {
|
14 |
+
width: 80px;
|
15 |
+
}
|
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 |
+
}
|
icons/7683os_cover_small.jpg
CHANGED
Binary file
|
icons/link-icon.png
ADDED
Binary file
|
importtemplate.csv
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
"Name","Address","RSS","Description","Notes","Category","
|
2 |
-
"IGN","http://ign.com","","Video Game News",,"first,second","
|
1 |
+
"Name","Address","RSS","Description","Notes","Category","Status","Secondary URL","Telephone","E-mail","Reciprocal link","Image Address","Large Description","No Follow","Rating","Link Target","Link Featured","Updated Date - Empty for none"
|
2 |
+
"IGN","http://ign.com","","Video Game News",,"first,second","publish",,,"",,,"This is a long description of the link","N",10,"_blank","N","2017-02-15"
|
js/ll_admin_edit.js
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
(function($) {
|
2 |
+
|
3 |
+
// we create a copy of the WP inline edit post function
|
4 |
+
var $wp_inline_edit = inlineEditPost.edit;
|
5 |
+
|
6 |
+
// and then we overwrite the function with our own code
|
7 |
+
inlineEditPost.edit = function( id ) {
|
8 |
+
|
9 |
+
// "call" the original WP edit function
|
10 |
+
// we don't want to leave WordPress hanging
|
11 |
+
$wp_inline_edit.apply( this, arguments );
|
12 |
+
|
13 |
+
// now we take care of our business
|
14 |
+
|
15 |
+
// get the post ID
|
16 |
+
var $post_id = 0;
|
17 |
+
if ( typeof( id ) == 'object' ) {
|
18 |
+
$post_id = parseInt( this.getId( id ) );
|
19 |
+
}
|
20 |
+
|
21 |
+
if ( $post_id > 0 ) {
|
22 |
+
// define the edit row
|
23 |
+
var $edit_row = $( '#edit-' + $post_id );
|
24 |
+
var $post_row = $( '#post-' + $post_id );
|
25 |
+
|
26 |
+
// get the data
|
27 |
+
var $link_url = $( '.column-link_library_url', $post_row ).text();
|
28 |
+
|
29 |
+
// populate the data
|
30 |
+
$( ':input[name="link_url"]', $edit_row ).val( $link_url );
|
31 |
+
}
|
32 |
+
};
|
33 |
+
|
34 |
+
})(jQuery);
|
languages/link-library-fr_CA.mo
ADDED
Binary file
|
languages/link-library-fr_CA.po
ADDED
@@ -0,0 +1,2943 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Link Library 5.9.15.1\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2018-02-08 16:20+0100\n"
|
6 |
+
"PO-Revision-Date: \n"
|
7 |
+
"Last-Translator: Luc Capronnier <lcapronnier@yahoo.com>\n"
|
8 |
+
"Language-Team: Luc Capronnier <lcapronnier@yahoo.com>\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"Language: French\n"
|
13 |
+
"X-Poedit-Bookmarks: 136,-1,-1,-1,-1,-1,-1,-1,-1,-1\n"
|
14 |
+
"X-Generator: Poedit 1.5.4\n"
|
15 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
+
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;esc_html;esc_html__;esc_html_e;esc_attr__;esc_attr_e\n"
|
17 |
+
"X-Poedit-Basepath: ..\n"
|
18 |
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
19 |
+
"X-Poedit-Language: French\n"
|
20 |
+
"X-Poedit-Country: FRANCE\n"
|
21 |
+
"X-Poedit-SearchPath-0: .\n"
|
22 |
+
|
23 |
+
# Plugin name; please avoid translating if possible
|
24 |
+
#: link-library-admin.php:99
|
25 |
+
msgid "Insert a Link Library shortcode"
|
26 |
+
msgstr "Insérer le code court de Link Library"
|
27 |
+
|
28 |
+
#: link-library-admin.php:102
|
29 |
+
msgid "Link List"
|
30 |
+
msgstr "Liste de liens"
|
31 |
+
|
32 |
+
#: link-library-admin.php:103
|
33 |
+
msgid "Link Category List"
|
34 |
+
msgstr "Liste de catégories de lien"
|
35 |
+
|
36 |
+
#: link-library-admin.php:104
|
37 |
+
msgid "Link Search"
|
38 |
+
msgstr "Recherche de lien"
|
39 |
+
|
40 |
+
#: link-library-admin.php:105
|
41 |
+
msgid "Add Link Form"
|
42 |
+
msgstr "Formulaire d’ajout de lien"
|
43 |
+
|
44 |
+
#: link-library-admin.php:109
|
45 |
+
msgid "Insert Shortcode"
|
46 |
+
msgstr "Insérer le code court"
|
47 |
+
|
48 |
+
#: link-library-admin.php:110
|
49 |
+
msgid "Cancel"
|
50 |
+
msgstr "Annuler"
|
51 |
+
|
52 |
+
#: link-library-admin.php:113
|
53 |
+
msgid "Render a list of links."
|
54 |
+
msgstr "Montrer une liste de liens."
|
55 |
+
|
56 |
+
#: link-library-admin.php:115
|
57 |
+
#: link-library-admin.php:170
|
58 |
+
#: link-library-admin.php:205
|
59 |
+
msgid "Library ID"
|
60 |
+
msgstr "ID de la librairie"
|
61 |
+
|
62 |
+
#: link-library-admin.php:126
|
63 |
+
#: link-library-admin.php:181
|
64 |
+
#: link-library-admin.php:216
|
65 |
+
#: link-library-admin.php:854
|
66 |
+
#: link-library-admin.php:2576
|
67 |
+
#: link-library-admin.php:2589
|
68 |
+
msgid "Library"
|
69 |
+
msgstr "Librairie"
|
70 |
+
|
71 |
+
#: link-library-admin.php:132
|
72 |
+
msgid "Single Link ID"
|
73 |
+
msgstr "ID d’un lien unique"
|
74 |
+
|
75 |
+
#: link-library-admin.php:135
|
76 |
+
msgid "Specify ID of single link to be displayed"
|
77 |
+
msgstr "Définir l’ID d’un lien unique à afficher"
|
78 |
+
|
79 |
+
#: link-library-admin.php:137
|
80 |
+
#: link-library-admin.php:187
|
81 |
+
#: link-library-admin.php:222
|
82 |
+
msgid "Category Override"
|
83 |
+
msgstr "Modifier la configuration des catégories"
|
84 |
+
|
85 |
+
#: link-library-admin.php:140
|
86 |
+
#: link-library-admin.php:190
|
87 |
+
#: link-library-admin.php:225
|
88 |
+
msgid "Single, or comma-separated list of categories IDs to be displayed in the link list"
|
89 |
+
msgstr "Une catégorie, ou une liste d’ID de catégories séparées par des virgules qu’il faut afficher dans la liste des liens"
|
90 |
+
|
91 |
+
#: link-library-admin.php:142
|
92 |
+
#: link-library-admin.php:192
|
93 |
+
#: link-library-admin.php:227
|
94 |
+
msgid "Excluded Category Override"
|
95 |
+
msgstr "Modifier les exclusions de catégories"
|
96 |
+
|
97 |
+
#: link-library-admin.php:145
|
98 |
+
#: link-library-admin.php:195
|
99 |
+
#: link-library-admin.php:230
|
100 |
+
msgid "Single, or comma-separated list of categories IDs to be excluded from the link list"
|
101 |
+
msgstr "Une catégorie, ou une liste d’ID de catégories séparées par des vrigules qu’il faut exclure de la liste des liens"
|
102 |
+
|
103 |
+
#: link-library-admin.php:147
|
104 |
+
#: link-library-admin.php:152
|
105 |
+
#: link-library-admin.php:157
|
106 |
+
#: link-library-admin.php:162
|
107 |
+
msgid "Notes Override"
|
108 |
+
msgstr "Modifier la configuration des notes"
|
109 |
+
|
110 |
+
#: link-library-admin.php:150
|
111 |
+
msgid "Set to 0 or 1 to display or not display link notes"
|
112 |
+
msgstr "Mettre 0 ou 1 pour affichier ou non les notes sur les liens"
|
113 |
+
|
114 |
+
#: link-library-admin.php:155
|
115 |
+
msgid "Set to 0 or 1 to display or not display link descriptions"
|
116 |
+
msgstr "Mettre 0 ou 1 pour afficher ou non les descriptions de liens"
|
117 |
+
|
118 |
+
#: link-library-admin.php:160
|
119 |
+
msgid "Set to 0 or 1 to display or not display rss information"
|
120 |
+
msgstr "Mettre 0 ou 1 pour afficher ou non les informations RSS"
|
121 |
+
|
122 |
+
#: link-library-admin.php:165
|
123 |
+
msgid "Set to 0 or 1 to display links in an unordered list or a table"
|
124 |
+
msgstr "Mettre 0 ou 1 pour affichier les liens soit en liste non triée, soit en tableau"
|
125 |
+
|
126 |
+
#: link-library-admin.php:168
|
127 |
+
msgid "Render a list of link categories."
|
128 |
+
msgstr "Montrer une liste de catégories de liens."
|
129 |
+
|
130 |
+
#: link-library-admin.php:198
|
131 |
+
msgid "Render a search box to search through links."
|
132 |
+
msgstr "Afficher une zone de recherche des liens."
|
133 |
+
|
134 |
+
#: link-library-admin.php:200
|
135 |
+
msgid "There are no options for this shortcode."
|
136 |
+
msgstr "Il n’y a pas d’options pour ce code court."
|
137 |
+
|
138 |
+
#: link-library-admin.php:203
|
139 |
+
msgid "Render a form for visitors to submit new links."
|
140 |
+
msgstr "Montrer un formulaire aux visiteurs pour proposer de nouveaux liens."
|
141 |
+
|
142 |
+
#: link-library-admin.php:265
|
143 |
+
msgid "Category Link"
|
144 |
+
msgstr "Lien des catégories"
|
145 |
+
|
146 |
+
#: link-library-admin.php:294
|
147 |
+
msgid "Extra Query String"
|
148 |
+
msgstr "Chaine supplémentaire de la requête"
|
149 |
+
|
150 |
+
#: link-library-admin.php:397
|
151 |
+
#: link-library-admin.php:752
|
152 |
+
msgid "Please create a folder called uploads under your Wordpress /wp-content/ directory with write permissions to use this functionality."
|
153 |
+
msgstr "Veuillez créer un répertoire nommé uploads dans le répertoire wp-content de votre installation WordPress avec les permissions d’écriture pour utiliser cette fonctionnalité."
|
154 |
+
|
155 |
+
#: link-library-admin.php:399
|
156 |
+
#: link-library-admin.php:754
|
157 |
+
msgid "Please make sure that the /wp-content/uploads/ directory has write permissions to use this functionality."
|
158 |
+
msgstr "Veuillez vous assurer que le répertoire /wp-content/uploads à des permissions d’écriture pour utiliser cette fonctionnalité."
|
159 |
+
|
160 |
+
#: link-library-admin.php:448
|
161 |
+
msgid "Link Library - Additional Link Parameters"
|
162 |
+
msgstr "Link Library - Paramètres Additionels"
|
163 |
+
|
164 |
+
#: link-library-admin.php:531
|
165 |
+
msgid "Link Library: Missing Thumbshots API Key"
|
166 |
+
msgstr "Link Library : Il manque le Thumbshots CID"
|
167 |
+
|
168 |
+
#: link-library-admin.php:531
|
169 |
+
msgid "One of your link libraries is configured to use Thumbshots for link thumbails, but you have not entered your Thumbshots.com API Key. Please visit Thumbshots.com to apply for a free or paid account and enter your API in the Link Library admin panel."
|
170 |
+
msgstr "Une de vos librairies est configurée pour utilisé les vignettes de Thumbshots, mais vous n’avez pas entré votre CID Thumbshots.com. Merci de visiter Thumbshots.com pour créer un compte gratuit ou payant puis saisissez la clé dans l’administration de Link Library."
|
171 |
+
|
172 |
+
# Plugin name; please avoid translating if possible
|
173 |
+
#: link-library-admin.php:531
|
174 |
+
msgid "Jump to Link Library admin"
|
175 |
+
msgstr "Aller à l’administration de Link Library"
|
176 |
+
|
177 |
+
# Plugin name; please avoid translating if possible
|
178 |
+
#: link-library-admin.php:536
|
179 |
+
msgid "Link Library: No Link Categories on your site"
|
180 |
+
msgstr "Link Library : Pas de catégories de liens dans votre site"
|
181 |
+
|
182 |
+
#: link-library-admin.php:536
|
183 |
+
msgid "There are currently no link categories defined in your WordPress site. Link Library will not work correctly without categories. Please create at least one before trying to use Link Library and make sure each link is assigned a category."
|
184 |
+
msgstr "Il n’y a pas de catégories de liens de définies dans votre site WordPress. Link Library ne fonctionnera pas correctement sans catégories. Merci de créer au moins une catégorie avant d’utiliser Link Library et faite en sorte que chaque lien soit associé à une catégorie."
|
185 |
+
|
186 |
+
#: link-library-admin.php:592
|
187 |
+
msgid "Links to moderate"
|
188 |
+
msgstr "Liens à modérer"
|
189 |
+
|
190 |
+
#: link-library-admin.php:640
|
191 |
+
#: link-library-admin.php:642
|
192 |
+
#: link-library-admin.php:645
|
193 |
+
#: link-library-admin.php:969
|
194 |
+
msgid "General Options"
|
195 |
+
msgstr "Configuration générale"
|
196 |
+
|
197 |
+
#: link-library-admin.php:647
|
198 |
+
msgid "Settings"
|
199 |
+
msgstr "Configuration"
|
200 |
+
|
201 |
+
# Plugin name; please avoid translating if possible
|
202 |
+
#: link-library-admin.php:647
|
203 |
+
#: link-library-admin.php:974
|
204 |
+
msgid "Library Settings"
|
205 |
+
msgstr "Configuration de la librairie"
|
206 |
+
|
207 |
+
#: link-library-admin.php:650
|
208 |
+
#: link-library-admin.php:652
|
209 |
+
#: link-library-admin.php:979
|
210 |
+
msgid "Moderate"
|
211 |
+
msgstr "Modération"
|
212 |
+
|
213 |
+
#: link-library-admin.php:655
|
214 |
+
#: link-library-admin.php:984
|
215 |
+
#: link-library-admin.php:2077
|
216 |
+
msgid "Stylesheet"
|
217 |
+
msgstr "Feuille de style"
|
218 |
+
|
219 |
+
#: link-library-admin.php:657
|
220 |
+
#: link-library-admin.php:689
|
221 |
+
msgid "Link checking tools"
|
222 |
+
msgstr "Outil de vérification des liens"
|
223 |
+
|
224 |
+
#: link-library-admin.php:659
|
225 |
+
#: link-library-admin.php:992
|
226 |
+
msgid "FAQ"
|
227 |
+
msgstr "FAQ"
|
228 |
+
|
229 |
+
#: link-library-admin.php:686
|
230 |
+
#: link-library-admin.php:690
|
231 |
+
msgid "Save"
|
232 |
+
msgstr "Enregistrer"
|
233 |
+
|
234 |
+
#: link-library-admin.php:687
|
235 |
+
msgid "Links awaiting moderation"
|
236 |
+
msgstr "Liens en attente de modération"
|
237 |
+
|
238 |
+
#: link-library-admin.php:688
|
239 |
+
#: link-library-admin.php:2079
|
240 |
+
msgid "Editor"
|
241 |
+
msgstr "Éditeur"
|
242 |
+
|
243 |
+
#: link-library-admin.php:794
|
244 |
+
msgid "Thumbnails successfully generated!"
|
245 |
+
msgstr "Vignettes générées avec succès !"
|
246 |
+
|
247 |
+
#: link-library-admin.php:796
|
248 |
+
msgid "Favicons successfully generated!"
|
249 |
+
msgstr "Icônes de favoris générées avec succès !"
|
250 |
+
|
251 |
+
#: link-library-admin.php:798
|
252 |
+
#: link-library-admin.php:5006
|
253 |
+
msgid "Thumbnail successfully generated for"
|
254 |
+
msgstr "Vignette générée avec succès pour"
|
255 |
+
|
256 |
+
#: link-library-admin.php:800
|
257 |
+
#: link-library-admin.php:5042
|
258 |
+
msgid "Favicon successfully generated for"
|
259 |
+
msgstr "Icône de favoris générée avec succès pour"
|
260 |
+
|
261 |
+
#: link-library-admin.php:831
|
262 |
+
msgid "General Settings Saved"
|
263 |
+
msgstr "Configuration générale enregistrée"
|
264 |
+
|
265 |
+
#: link-library-admin.php:834
|
266 |
+
msgid "Download exported links"
|
267 |
+
msgstr "Télécharger les liens exportés"
|
268 |
+
|
269 |
+
#: link-library-admin.php:836
|
270 |
+
#: link-library-admin.php:885
|
271 |
+
msgid "Link Library plugin directory needs to be writable to perform this action"
|
272 |
+
msgstr "Le répertoire doit avoir des permissions d’écriture complètes pour exécuter cette action"
|
273 |
+
|
274 |
+
#: link-library-admin.php:838
|
275 |
+
msgid "You must set the Google reCAPTCHA Site and Secret Keys to be able to set the captcha generator to Google reCAPTCHA."
|
276 |
+
msgstr "Vous devez saisir les clés de site et la clé secrète de Google reCAPTCHA avant de pouvoir utiliser le générateur de captcha."
|
277 |
+
|
278 |
+
#: link-library-admin.php:864
|
279 |
+
#: link-library-admin.php:2612
|
280 |
+
msgid "Library #"
|
281 |
+
msgstr "Librairie #"
|
282 |
+
|
283 |
+
#: link-library-admin.php:864
|
284 |
+
msgid "Updated"
|
285 |
+
msgstr "Mis à jour"
|
286 |
+
|
287 |
+
#: link-library-admin.php:868
|
288 |
+
msgid "Included Category ID"
|
289 |
+
msgstr "Identifiants des catégories inclus"
|
290 |
+
|
291 |
+
#: link-library-admin.php:868
|
292 |
+
#: link-library-admin.php:872
|
293 |
+
msgid "is invalid. Please check the ID in the Link Category editor."
|
294 |
+
msgstr "est invalide. Veuillez vérifier l’identifiant dans l’éditeur de catégories de liens."
|
295 |
+
|
296 |
+
#: link-library-admin.php:872
|
297 |
+
msgid "Excluded Category ID"
|
298 |
+
msgstr "Identifiant des catégorie exclues"
|
299 |
+
|
300 |
+
#: link-library-admin.php:876
|
301 |
+
msgid "Invalid column count for link on row. Compare against template."
|
302 |
+
msgstr "Nombre de colonnes invalides pour le lien de la ligne. Comparer avec le modèle."
|
303 |
+
|
304 |
+
#: link-library-admin.php:881
|
305 |
+
msgid "Library Settings Exported"
|
306 |
+
msgstr "Configuration de librairie exportée"
|
307 |
+
|
308 |
+
#: link-library-admin.php:881
|
309 |
+
msgid "Download here"
|
310 |
+
msgstr "Récupérer ici"
|
311 |
+
|
312 |
+
#: link-library-admin.php:889
|
313 |
+
msgid "Library Settings imported successfully"
|
314 |
+
msgstr "Configuration de librairie exportée avec succès"
|
315 |
+
|
316 |
+
#: link-library-admin.php:893
|
317 |
+
msgid "Library Settings Upload Failed"
|
318 |
+
msgstr "L’envoi de la configuration de librairie n’a pas fonctionné"
|
319 |
+
|
320 |
+
#: link-library-admin.php:897
|
321 |
+
msgid "link(s) imported"
|
322 |
+
msgstr "lien(s) importé(s)"
|
323 |
+
|
324 |
+
#: link-library-admin.php:897
|
325 |
+
msgid "link(s) updated"
|
326 |
+
msgstr "lien(s) mis à jour"
|
327 |
+
|
328 |
+
#: link-library-admin.php:901
|
329 |
+
msgid "Links are missing categories"
|
330 |
+
msgstr "Les liens n’ont pas de catégories"
|
331 |
+
|
332 |
+
#: link-library-admin.php:913
|
333 |
+
msgid "Link(s) Approved"
|
334 |
+
msgstr "Lien(s) approuvé(s)"
|
335 |
+
|
336 |
+
#: link-library-admin.php:915
|
337 |
+
msgid "Link(s) Deleted"
|
338 |
+
msgstr "Lien(s) supprimé(s)"
|
339 |
+
|
340 |
+
#: link-library-admin.php:926
|
341 |
+
msgid "Stylesheet updated"
|
342 |
+
msgstr "Feuille de style mise à jour"
|
343 |
+
|
344 |
+
#: link-library-admin.php:928
|
345 |
+
msgid "Stylesheet reset to original state"
|
346 |
+
msgstr "Feuille de style originale restaurée"
|
347 |
+
|
348 |
+
#: link-library-admin.php:935
|
349 |
+
msgid "Settings updated"
|
350 |
+
msgstr "Configuration mise à jour"
|
351 |
+
|
352 |
+
#: link-library-admin.php:989
|
353 |
+
msgid "Reciprocal Check"
|
354 |
+
msgstr "Vérification des liens réciproques"
|
355 |
+
|
356 |
+
#: link-library-admin.php:1147
|
357 |
+
msgid "General"
|
358 |
+
msgstr "Général"
|
359 |
+
|
360 |
+
#: link-library-admin.php:1148
|
361 |
+
msgid "Images"
|
362 |
+
msgstr "Images"
|
363 |
+
|
364 |
+
#: link-library-admin.php:1149
|
365 |
+
msgid "Bookmarklet"
|
366 |
+
msgstr "Bookmarklet"
|
367 |
+
|
368 |
+
#: link-library-admin.php:1150
|
369 |
+
msgid "Moderation"
|
370 |
+
msgstr "Modération"
|
371 |
+
|
372 |
+
#: link-library-admin.php:1151
|
373 |
+
msgid "Hide Donation"
|
374 |
+
msgstr "Cacher le lien de don"
|
375 |
+
|
376 |
+
#: link-library-admin.php:1158
|
377 |
+
msgid "Usage"
|
378 |
+
msgstr "Utilisation"
|
379 |
+
|
380 |
+
#: link-library-admin.php:1159
|
381 |
+
msgid "Common"
|
382 |
+
msgstr "Commun"
|
383 |
+
|
384 |
+
#: link-library-admin.php:1160
|
385 |
+
msgid "Categories"
|
386 |
+
msgstr "Catégories"
|
387 |
+
|
388 |
+
#: link-library-admin.php:1161
|
389 |
+
msgid "Links"
|
390 |
+
msgstr "Liens"
|
391 |
+
|
392 |
+
#: link-library-admin.php:1162
|
393 |
+
msgid "Advanced"
|
394 |
+
msgstr "Avancé"
|
395 |
+
|
396 |
+
#: link-library-admin.php:1163
|
397 |
+
msgid "Pop-Ups"
|
398 |
+
msgstr "Pop-ups"
|
399 |
+
|
400 |
+
#: link-library-admin.php:1164
|
401 |
+
msgid "RSS Display"
|
402 |
+
msgstr "Afficher le flux RSS"
|
403 |
+
|
404 |
+
#: link-library-admin.php:1165
|
405 |
+
msgid "Thumbnails"
|
406 |
+
msgstr "Vignettes"
|
407 |
+
|
408 |
+
#: link-library-admin.php:1166
|
409 |
+
msgid "RSS Feed"
|
410 |
+
msgstr "Titre du flux d’informations RSS"
|
411 |
+
|
412 |
+
#: link-library-admin.php:1167
|
413 |
+
#: link-library-admin.php:4078
|
414 |
+
#: link-library-admin.php:4087
|
415 |
+
msgid "Search"
|
416 |
+
msgstr "Rechercher"
|
417 |
+
|
418 |
+
#: link-library-admin.php:1168
|
419 |
+
msgid "User Submission"
|
420 |
+
msgstr "Liens soumis par les utilisateurs"
|
421 |
+
|
422 |
+
#: link-library-admin.php:1169
|
423 |
+
msgid "Import/Export"
|
424 |
+
msgstr "Importer/Exporter"
|
425 |
+
|
426 |
+
#: link-library-admin.php:1226
|
427 |
+
#: link-library-admin.php:1347
|
428 |
+
#: link-library-admin.php:1858
|
429 |
+
#: link-library-admin.php:1988
|
430 |
+
#: link-library-admin.php:2021
|
431 |
+
msgid "Not allowed"
|
432 |
+
msgstr "Non permis"
|
433 |
+
|
434 |
+
#: link-library-admin.php:1918
|
435 |
+
#: link-library-admin.php:1959
|
436 |
+
#: usersubmission.php:350
|
437 |
+
msgid "Message generated by"
|
438 |
+
msgstr "Message généré par"
|
439 |
+
|
440 |
+
#: link-library-admin.php:2069
|
441 |
+
#: link-library-admin.php:5094
|
442 |
+
msgid "Update channel"
|
443 |
+
msgstr "Canal de mise à jour"
|
444 |
+
|
445 |
+
#: link-library-admin.php:2071
|
446 |
+
#: link-library-admin.php:5096
|
447 |
+
msgid "Standard channel - Updates as they are released"
|
448 |
+
msgstr "Canal standard - Mise à jour à chaque version"
|
449 |
+
|
450 |
+
#: link-library-admin.php:2072
|
451 |
+
#: link-library-admin.php:5097
|
452 |
+
msgid "Monthly Channel - Updates once per month"
|
453 |
+
msgstr "Canal mensuel - Mise à jour une fois par mois"
|
454 |
+
|
455 |
+
#: link-library-admin.php:2077
|
456 |
+
#: link-library-admin.php:2078
|
457 |
+
msgid "The stylesheet is now defined and stored using the Link Library admin interface. This avoids problems with updates from one version to the next."
|
458 |
+
msgstr "La feuille de style est maintenant définie et sauvegardée à partir du panneau d’administration de Link Library. Ceci évite des problèmes lors des mises à jour."
|
459 |
+
|
460 |
+
#: link-library-admin.php:2083
|
461 |
+
msgid "Number of Libraries"
|
462 |
+
msgstr "Nombre de librairies"
|
463 |
+
|
464 |
+
#: link-library-admin.php:2131
|
465 |
+
msgid "Category selection method"
|
466 |
+
msgstr "Méthode de sélection des catégories"
|
467 |
+
|
468 |
+
#: link-library-admin.php:2133
|
469 |
+
msgid "Comma-separated ID list"
|
470 |
+
msgstr "Liste d’ID séparée par des virgules"
|
471 |
+
|
472 |
+
#: link-library-admin.php:2134
|
473 |
+
msgid "Multi-select List"
|
474 |
+
msgstr "Liste à sélection multiple"
|
475 |
+
|
476 |
+
#: link-library-admin.php:2138
|
477 |
+
#: link-library-admin.php:2139
|
478 |
+
msgid "Enter comma-separate list of pages on which the Link Library stylesheet and scripts should be loaded. Primarily used if you display Link Library using the API"
|
479 |
+
msgstr "Spécifier une liste de pages, séparées par des virgules, dans lesquelles les feuilles de styles et les scripts de Link Library doivent être chargés. Cette option est principalement utilisée si vous affichez Link Library en utilisant son API."
|
480 |
+
|
481 |
+
#: link-library-admin.php:2138
|
482 |
+
msgid "Additional pages to load styles and scripts"
|
483 |
+
msgstr "Pages additionelles pour afficher les styles et scripts"
|
484 |
+
|
485 |
+
#: link-library-admin.php:2144
|
486 |
+
msgid "Debug Mode"
|
487 |
+
msgstr "Mise au point"
|
488 |
+
|
489 |
+
#: link-library-admin.php:2151
|
490 |
+
#: link-library-admin.php:2152
|
491 |
+
#: link-library-admin.php:2157
|
492 |
+
#: link-library-admin.php:2158
|
493 |
+
msgid "This function is only possible when showing one category at a time and while the default category is not shown."
|
494 |
+
msgstr "Cette fonctionnalité est seulement possible lorsque l’option “N’afficher qu’une catégorie à la fois” est activée et que la catégorie par défaut n’est pas affichée."
|
495 |
+
|
496 |
+
#: link-library-admin.php:2151
|
497 |
+
msgid "Page Title Prefix"
|
498 |
+
msgstr "Préfixe pour le titre des pages"
|
499 |
+
|
500 |
+
#: link-library-admin.php:2157
|
501 |
+
msgid "Page Title Suffix"
|
502 |
+
msgstr "Suffixe pour le titre des pages"
|
503 |
+
|
504 |
+
#: link-library-admin.php:2163
|
505 |
+
#: link-library-admin.php:2164
|
506 |
+
msgid "Path for images files that are uploaded manually or generated through thumbnail generation service"
|
507 |
+
msgstr "Répertoire pour les images qui sont chargées manuellement ou bien qui sont générées par le service des vignettes thumbnail"
|
508 |
+
|
509 |
+
#: link-library-admin.php:2163
|
510 |
+
msgid "Link Image File Path"
|
511 |
+
msgstr "Répertoire des fichiers images liées"
|
512 |
+
|
513 |
+
#: link-library-admin.php:2166
|
514 |
+
msgid "Absolute"
|
515 |
+
msgstr "Absolu"
|
516 |
+
|
517 |
+
#: link-library-admin.php:2167
|
518 |
+
msgid "Relative"
|
519 |
+
msgstr "Relatif"
|
520 |
+
|
521 |
+
#: link-library-admin.php:2174
|
522 |
+
msgid "Thumbnail Generator"
|
523 |
+
msgstr "Générateur de vignettes"
|
524 |
+
|
525 |
+
#: link-library-admin.php:2185
|
526 |
+
#: link-library-admin.php:2186
|
527 |
+
msgid "API Key for Thumbshots.com thumbnail generation accounts"
|
528 |
+
msgstr "CID pour le service de vignette de Thumbshots.com "
|
529 |
+
|
530 |
+
#: link-library-admin.php:2185
|
531 |
+
msgid "Thumbshots API Key"
|
532 |
+
msgstr "CID de Thumbshots"
|
533 |
+
|
534 |
+
#: link-library-admin.php:2193
|
535 |
+
msgid "Robothumb Thumbnail size"
|
536 |
+
msgstr "Taille des vignettes"
|
537 |
+
|
538 |
+
#: link-library-admin.php:2209
|
539 |
+
msgid "Captcha generator"
|
540 |
+
msgstr "Générateur de captcha"
|
541 |
+
|
542 |
+
#: link-library-admin.php:2222
|
543 |
+
#: link-library-admin.php:2224
|
544 |
+
#: link-library-admin.php:2229
|
545 |
+
#: link-library-admin.php:2231
|
546 |
+
msgid "Sign up for the reCAPTCHA service before activating this feature to get your Site and Secret Keys"
|
547 |
+
msgstr "Enregistrer vous pour le service reCAPTCHA avant d’activé cette fonctionnalité afin d’obtenir vos clés de site et secrète"
|
548 |
+
|
549 |
+
#: link-library-admin.php:2222
|
550 |
+
msgid "Google reCAPTCHA Site Key"
|
551 |
+
msgstr "Clé de site de Google reCAPTCHA"
|
552 |
+
|
553 |
+
#: link-library-admin.php:2229
|
554 |
+
msgid "Google reCAPTCHA Secret Key"
|
555 |
+
msgstr "Clé secrète de Google reCAPTCHA"
|
556 |
+
|
557 |
+
#: link-library-admin.php:2239
|
558 |
+
msgid "Links Date Format"
|
559 |
+
msgstr "Format des dates pour les liens"
|
560 |
+
|
561 |
+
#: link-library-admin.php:2239
|
562 |
+
msgid "Help"
|
563 |
+
msgstr "Aide"
|
564 |
+
|
565 |
+
#: link-library-admin.php:2246
|
566 |
+
#: link-library-admin.php:2247
|
567 |
+
msgid "Enter list of additional link protocols, seperated by commas"
|
568 |
+
msgstr "Entrer une liste de protocoles supplémentaires, séparés par des virgules"
|
569 |
+
|
570 |
+
#: link-library-admin.php:2246
|
571 |
+
msgid "Additional protocols"
|
572 |
+
msgstr "Protocoles supplémentaires"
|
573 |
+
|
574 |
+
#: link-library-admin.php:2250
|
575 |
+
msgid "Time before clearing RSS display cache (in seconds)"
|
576 |
+
msgstr "Temps avant de purger le cache pour l’affichage du flux RSS (en secondes)"
|
577 |
+
|
578 |
+
#: link-library-admin.php:2257
|
579 |
+
msgid "Export All Links"
|
580 |
+
msgstr "Exporter tous les liens"
|
581 |
+
|
582 |
+
#: link-library-admin.php:2302
|
583 |
+
#: link-library-admin.php:2303
|
584 |
+
msgid "Custom full URL for expand icon. Uses default image if left empty."
|
585 |
+
msgstr "URL spécifique pour l’icône d’ouverture. Utilise l’image par défaut si laisser vide."
|
586 |
+
|
587 |
+
#: link-library-admin.php:2302
|
588 |
+
msgid "Expand Icon Image"
|
589 |
+
msgstr "Icon pour ouvrir"
|
590 |
+
|
591 |
+
#: link-library-admin.php:2309
|
592 |
+
#: link-library-admin.php:2310
|
593 |
+
msgid "Custom full URL for collapse icon. Uses default image if left empty."
|
594 |
+
msgstr "URL spécifique pour l’icône de fermeture. Utilise l’image par défaut si laisser vide."
|
595 |
+
|
596 |
+
#: link-library-admin.php:2309
|
597 |
+
msgid "Collapse Icon Image"
|
598 |
+
msgstr "Icon pour refermer"
|
599 |
+
|
600 |
+
#: link-library-admin.php:2324
|
601 |
+
msgid "Add new links to your site with this bookmarklet."
|
602 |
+
msgstr "Ajoutez de nouveaux liens à votre site en utilisant ce bookmarklet."
|
603 |
+
|
604 |
+
#: link-library-admin.php:2325
|
605 |
+
msgid "To use this feature, drag-and-drop the button below to your favorite / bookmark toolbar."
|
606 |
+
msgstr "Pour utiliser cette fonction, glissez le bouton ci-dessous vers la barre de favoris de votre navigateur."
|
607 |
+
|
608 |
+
#: link-library-admin.php:2326
|
609 |
+
msgid "Add to Links"
|
610 |
+
msgstr "Ajouter aux liens"
|
611 |
+
|
612 |
+
#: link-library-admin.php:2339
|
613 |
+
msgid "Approval and rejection e-mail functionality will only work correctly if the submitter e-mail field is displayed on the user link submission form"
|
614 |
+
msgstr "L’approbation ou le rejet par courriel ne fonctionnera correctement que si le champ e-mail est affiché dans le fomulaire de proposition"
|
615 |
+
|
616 |
+
#: link-library-admin.php:2343
|
617 |
+
msgid "Validate all submitted links with Akismet"
|
618 |
+
msgstr "Valider les liens proposés avec Akismet"
|
619 |
+
|
620 |
+
#: link-library-admin.php:2349
|
621 |
+
#: link-library-admin.php:2350
|
622 |
+
msgid "URL that user will be redirected to after submitting new link. When used, the short code [link-library-addlinkcustommsg] should be placed on the destination page."
|
623 |
+
msgstr "Adresse à laquelle l’usager sera redirigé après avoir soumis un nouveau lien. Lorsqu’utilisé, le code [link-library-addlinkcustommsg] devrait faire partie de la page de destination."
|
624 |
+
|
625 |
+
#: link-library-admin.php:2349
|
626 |
+
msgid "Link Acknowledgement URL"
|
627 |
+
msgstr "Adresse de la page de confirmation"
|
628 |
+
|
629 |
+
#: link-library-admin.php:2355
|
630 |
+
msgid "Title of e-mail sent to site admin when new links are submitted. Use %linkname% as a variable to be replaced by the actual link name"
|
631 |
+
msgstr "Titre du courriel qui sera envoyé à l’administrateur quand des nouveaux liens seront soumis. Utilisez %linkname% comme variable qui sera remplacée par le nom du lien"
|
632 |
+
|
633 |
+
#: link-library-admin.php:2355
|
634 |
+
msgid "Moderation Notification Title"
|
635 |
+
msgstr "Titre du courriel de modération"
|
636 |
+
|
637 |
+
#: link-library-admin.php:2361
|
638 |
+
msgid "Will send a confirmation e-mail to link submitter if they provided their contact information"
|
639 |
+
msgstr "Enverra un courriel de confirmation aux usagers ayant soumis des liens si ils ont fournis leur courriel"
|
640 |
+
|
641 |
+
#: link-library-admin.php:2361
|
642 |
+
msgid "E-mail submitter on link approval or rejection"
|
643 |
+
msgstr "Envoyer un courriel à l’utilisateur ayant soumis le lien lors de l’approbation ou du rejet"
|
644 |
+
|
645 |
+
#: link-library-admin.php:2368
|
646 |
+
msgid "Suppress Link Library message in e-mail footer"
|
647 |
+
msgstr "Supprimer le message sur Link Library dans le bas du courriel"
|
648 |
+
|
649 |
+
#: link-library-admin.php:2375
|
650 |
+
msgid "Only use first part of submitter name"
|
651 |
+
msgstr "N’utiliser que la première partie du nom de l’utilisateur ayant soumis le lien"
|
652 |
+
|
653 |
+
#: link-library-admin.php:2382
|
654 |
+
msgid "The name of the e-mail account that the approval e-mail will be sent from"
|
655 |
+
msgstr "Le nom de l’utilisateur qui apparaîtra sur les messages d’approbation"
|
656 |
+
|
657 |
+
#: link-library-admin.php:2382
|
658 |
+
msgid "Moderator Name"
|
659 |
+
msgstr "Nom du modérateur"
|
660 |
+
|
661 |
+
#: link-library-admin.php:2388
|
662 |
+
msgid "The e-mail address that the approval e-mail will be sent from"
|
663 |
+
msgstr "L’adresse de courriel de laquelle les messages d’approbation seront envoyés"
|
664 |
+
|
665 |
+
#: link-library-admin.php:2388
|
666 |
+
msgid "Moderator E-mail"
|
667 |
+
msgstr "Adresse de courriel du modérateur"
|
668 |
+
|
669 |
+
#: link-library-admin.php:2394
|
670 |
+
msgid "Title of approval e-mail. Use %linkname% as a variable to be replaced by the actual link name"
|
671 |
+
msgstr "Titre du courriel d’approbation. Utilisez %linkname% comme variable qui sera remplacé par le nom du lien"
|
672 |
+
|
673 |
+
#: link-library-admin.php:2394
|
674 |
+
msgid "Approval e-mail title"
|
675 |
+
msgstr "Titre du courriel d’approbation du lien"
|
676 |
+
|
677 |
+
#: link-library-admin.php:2400
|
678 |
+
msgid "Body of approval e-mail. Use %linkname% as a variable to be replaced by the actual link name, %submittername% for the submitter name and %linkurl% for the link address"
|
679 |
+
msgstr "Contenu du courriel d’approbation du lien. Utilisez %linkname% comme variable qui sera remplacée par le nom de lien, %submittername% pour le nom de la personne ayant soumise le lien et %linkurl% pour l’adresse du lien."
|
680 |
+
|
681 |
+
#: link-library-admin.php:2400
|
682 |
+
msgid "Approval e-mail body"
|
683 |
+
msgstr "Contenu du courriel d’approbation du lien"
|
684 |
+
|
685 |
+
#: link-library-admin.php:2406
|
686 |
+
msgid "Title of rejection e-mail. Use %linkname% as a variable to be replaced by the actual link name"
|
687 |
+
msgstr "Titre du courriel de rejet du lien. Utilisez %linkname% comme variable qui sera remplacée par le nom du lien"
|
688 |
+
|
689 |
+
#: link-library-admin.php:2406
|
690 |
+
msgid "Rejection e-mail title"
|
691 |
+
msgstr "Titre du courriel de rejet du lien"
|
692 |
+
|
693 |
+
#: link-library-admin.php:2412
|
694 |
+
msgid "Body of rejection e-mail. Use %linkname% as a variable to be replaced by the actual link name, %submittername% for the submitter name and %linkurl% for the link address"
|
695 |
+
msgstr "Contenu du courriel de rejet du lien. Utilisez %linkname% comme variable qui sera remplacée par le nom de lien, %submittername% pour le nom de la personne ayant soumise le lien et %linkurl% pour l’adresse du lien."
|
696 |
+
|
697 |
+
#: link-library-admin.php:2412
|
698 |
+
msgid "Rejection e-mail body"
|
699 |
+
msgstr "Contenu du courriel de rejet du lien"
|
700 |
+
|
701 |
+
#: link-library-admin.php:2425
|
702 |
+
msgid "The following option allows you to hide the Donate button and Support the Author section in the Link Library Admin pages. If you enjoy this plugin and use it regularly, please consider making a donation to the author before turning off these messages. This menu section will disappear along with the other elements."
|
703 |
+
msgstr "L’option suivante vous permet de masquer le bouton de don et la section sur l’autheur dans l’administration de Link Library. Si vous aimez cette extension et que vous l’utilisez régulièrement, merci de penser à faire un don à l’autheur avant de masquer ces messages."
|
704 |
+
|
705 |
+
#: link-library-admin.php:2428
|
706 |
+
msgid "Hide Donation and Support Links"
|
707 |
+
msgstr "Cacher les liens pour les dons et le support"
|
708 |
+
|
709 |
+
#: link-library-admin.php:2442
|
710 |
+
msgid "Save Settings"
|
711 |
+
msgstr "Enregistrer la configuration"
|
712 |
+
|
713 |
+
#: link-library-admin.php:2451
|
714 |
+
msgid "Update Settings"
|
715 |
+
msgstr "Mettre à jour la configuration"
|
716 |
+
|
717 |
+
#: link-library-admin.php:2462
|
718 |
+
#: link-library-admin.php:3138
|
719 |
+
#: link-library-admin.php:3441
|
720 |
+
#: link-library-admin.php:4271
|
721 |
+
#: usersubmission.php:295
|
722 |
+
#: usersubmission.php:385
|
723 |
+
msgid "Link Name"
|
724 |
+
msgstr "Nom du lien"
|
725 |
+
|
726 |
+
#: link-library-admin.php:2463
|
727 |
+
#: link-library-admin.php:4306
|
728 |
+
#: link-library-defaults.php:127
|
729 |
+
#: usersubmission.php:314
|
730 |
+
#: usersubmission.php:404
|
731 |
+
msgid "Link Category"
|
732 |
+
msgstr "Catégorie de liens"
|
733 |
+
|
734 |
+
#: link-library-admin.php:2464
|
735 |
+
msgid "Link URL"
|
736 |
+
msgstr "Adresse du lien"
|
737 |
+
|
738 |
+
#: link-library-admin.php:2465
|
739 |
+
#: link-library-admin.php:3138
|
740 |
+
#: link-library-admin.php:3489
|
741 |
+
#: link-library-admin.php:4385
|
742 |
+
#: link-library-defaults.php:128
|
743 |
+
#: usersubmission.php:303
|
744 |
+
#: usersubmission.php:393
|
745 |
+
msgid "Link Description"
|
746 |
+
msgstr "Description du lien"
|
747 |
+
|
748 |
+
#: link-library-admin.php:2514
|
749 |
+
msgid "No Links Found to Moderate"
|
750 |
+
msgstr "Aucun lien trouvé nécessitant une modération"
|
751 |
+
|
752 |
+
#: link-library-admin.php:2521
|
753 |
+
msgid "Check All"
|
754 |
+
msgstr "Cocher tous les choix"
|
755 |
+
|
756 |
+
#: link-library-admin.php:2522
|
757 |
+
msgid "Uncheck All"
|
758 |
+
msgstr "Tout décocher"
|
759 |
+
|
760 |
+
#: link-library-admin.php:2524
|
761 |
+
msgid "Approve Selected Items"
|
762 |
+
msgstr "Approuver les liens sélectionnés"
|
763 |
+
|
764 |
+
#: link-library-admin.php:2525
|
765 |
+
msgid "Delete Selected Items"
|
766 |
+
msgstr "Supprimer les liens sélectionnés"
|
767 |
+
|
768 |
+
#: link-library-admin.php:2548
|
769 |
+
msgid "If the stylesheet editor is empty after upgrading, reset to the default stylesheet using the button below or copy/paste your backup stylesheet into the editor."
|
770 |
+
msgstr "Si l’éditeur de feuille de style est vide après une mise à jour, appuyez sur le bouton ci-dessous pour importer la version originale de la feuille de style ou effectuez un copier/coller à partir de votre copie de sauvegarde de la feuille de style vers l’éditeur."
|
771 |
+
|
772 |
+
#: link-library-admin.php:2555
|
773 |
+
msgid "Submit"
|
774 |
+
msgstr "Soumettre"
|
775 |
+
|
776 |
+
#: link-library-admin.php:2555
|
777 |
+
msgid "Reset to default"
|
778 |
+
msgstr "Restauration des valeurs par défaut"
|
779 |
+
|
780 |
+
#: link-library-admin.php:2566
|
781 |
+
msgid "Select Current Library Settings"
|
782 |
+
msgstr "Sélectionnez la configuration de librairie courante"
|
783 |
+
|
784 |
+
#: link-library-admin.php:2581
|
785 |
+
msgid "Go"
|
786 |
+
msgstr "Sélectionner"
|
787 |
+
|
788 |
+
#: link-library-admin.php:2583
|
789 |
+
msgid "Copy from:"
|
790 |
+
msgstr "Copier de :"
|
791 |
+
|
792 |
+
#: link-library-admin.php:2597
|
793 |
+
msgid "Copy"
|
794 |
+
msgstr "Copier"
|
795 |
+
|
796 |
+
#: link-library-admin.php:2611
|
797 |
+
#: link-library-admin.php:2614
|
798 |
+
#: link-library-admin.php:2618
|
799 |
+
msgid "Link Library Supports the Creation of an unlimited number of configurations to display link lists on your site"
|
800 |
+
msgstr "Link Library supporte la création d’un nombre illimité de configurations pour afficher les liens sur votre site"
|
801 |
+
|
802 |
+
#: link-library-admin.php:2615
|
803 |
+
msgid "Library Name"
|
804 |
+
msgstr "Nom de la librairie"
|
805 |
+
|
806 |
+
#: link-library-admin.php:2617
|
807 |
+
msgid "Feature"
|
808 |
+
msgstr "Fonctionnalité"
|
809 |
+
|
810 |
+
#: link-library-admin.php:2619
|
811 |
+
msgid "Code to insert on a Wordpress page"
|
812 |
+
msgstr "Code à insérer dans une page WordPress"
|
813 |
+
|
814 |
+
#: link-library-admin.php:2626
|
815 |
+
msgid "Display basic link library"
|
816 |
+
msgstr "Afficher la liste de liens"
|
817 |
+
|
818 |
+
#: link-library-admin.php:2632
|
819 |
+
msgid "Display list of link categories"
|
820 |
+
msgstr "Afficher la liste des catégories de liens"
|
821 |
+
|
822 |
+
#: link-library-admin.php:2638
|
823 |
+
msgid "Display search box"
|
824 |
+
msgstr "Afficher le champ de recherche"
|
825 |
+
|
826 |
+
#: link-library-admin.php:2644
|
827 |
+
msgid "Display link submission form"
|
828 |
+
msgstr "Afficher le formulaire de soumission de liens"
|
829 |
+
|
830 |
+
#: link-library-admin.php:2651
|
831 |
+
#, php-format
|
832 |
+
msgid ""
|
833 |
+
"You are about to Delete Library #'%s'\n"
|
834 |
+
" 'Cancel' to stop, 'OK' to delete."
|
835 |
+
msgstr ""
|
836 |
+
"Vous être sur le point de supprimer la configuration de la librairie '%s'\n"
|
837 |
+
" 'Annuler' pour interrompre, 'OK' pour supprimer."
|
838 |
+
|
839 |
+
#: link-library-admin.php:2651
|
840 |
+
msgid "Delete Library"
|
841 |
+
msgstr "Supprimer la librairie"
|
842 |
+
|
843 |
+
#: link-library-admin.php:2652
|
844 |
+
#, php-format
|
845 |
+
msgid ""
|
846 |
+
"You are about to reset Library '%s'\n"
|
847 |
+
" 'Cancel' to stop, 'OK' to reset."
|
848 |
+
msgstr ""
|
849 |
+
"Vous êtes sur le point de réinitialiser la configuration de la librairie '%s'\n"
|
850 |
+
" 'Annuler' pour interrompre, 'OK' pour continuer."
|
851 |
+
|
852 |
+
#: link-library-admin.php:2652
|
853 |
+
msgid "Reset current Library"
|
854 |
+
msgstr "Réinitialiser la configuration de librairie courante"
|
855 |
+
|
856 |
+
#: link-library-admin.php:2653
|
857 |
+
#, php-format
|
858 |
+
msgid ""
|
859 |
+
"You are about to reset Library '%s' for a table layout\n"
|
860 |
+
" 'Cancel' to stop, 'OK' to reset."
|
861 |
+
msgstr ""
|
862 |
+
"Vous êtes sur le point de réinitialiser la configuration de la librairie '%s' pour une mise en page utilisant des tables\n"
|
863 |
+
" 'Annuler' pour interrompre, 'OK' pour continuer."
|
864 |
+
|
865 |
+
#: link-library-admin.php:2653
|
866 |
+
msgid "Reset current Library for table layout"
|
867 |
+
msgstr "Réinitialiser la configuration de librairie courante pour une mise en page en tableau"
|
868 |
+
|
869 |
+
#: link-library-admin.php:2672
|
870 |
+
msgid "Current Library Name"
|
871 |
+
msgstr "Nom de la librairie courante"
|
872 |
+
|
873 |
+
#: link-library-admin.php:2679
|
874 |
+
#: link-library-admin.php:2687
|
875 |
+
msgid "Leave Empty to see all categories"
|
876 |
+
msgstr "Laissez vide pour afficher toutes les catégories"
|
877 |
+
|
878 |
+
#: link-library-admin.php:2679
|
879 |
+
#: link-library-admin.php:2687
|
880 |
+
#: link-library-admin.php:2725
|
881 |
+
#: link-library-admin.php:2729
|
882 |
+
msgid "Enter list of comma-separated"
|
883 |
+
msgstr "Spécifier une liste de valeurs, séparées par des virgules"
|
884 |
+
|
885 |
+
#: link-library-admin.php:2679
|
886 |
+
#: link-library-admin.php:2687
|
887 |
+
msgid "numeric category IDs"
|
888 |
+
msgstr "identifiants de catégories numériques"
|
889 |
+
|
890 |
+
#: link-library-admin.php:2679
|
891 |
+
msgid "To find the IDs, go to the Link Categories admin page, place the mouse above a category name and look for its ID in the address shown in your browsers status bar. For example"
|
892 |
+
msgstr "Pour trouver les identifiants, aller sur la page de configuration des catégories de liens, placer votre souris au-dessus du nom de la catégorie et cherchez l’identifiant dans l’adresse qui est affichée dans la barre de status de votre navigateur. Par exemple"
|
893 |
+
|
894 |
+
#: link-library-admin.php:2681
|
895 |
+
msgid "Categories to be displayed (Empty=All)"
|
896 |
+
msgstr "Catégories à afficher (Vide=Toutes)"
|
897 |
+
|
898 |
+
#: link-library-admin.php:2683
|
899 |
+
msgid "Categories to be displayed"
|
900 |
+
msgstr "Catégories à afficher"
|
901 |
+
|
902 |
+
#: link-library-admin.php:2687
|
903 |
+
#: link-library-admin.php:2725
|
904 |
+
#: link-library-admin.php:2729
|
905 |
+
msgid "For example"
|
906 |
+
msgstr "Par exemple"
|
907 |
+
|
908 |
+
#: link-library-admin.php:2714
|
909 |
+
#: link-library-admin.php:2745
|
910 |
+
msgid "No link categories! Create some!"
|
911 |
+
msgstr "Pas de catégorie de lien ! Créer s’en une !"
|
912 |
+
|
913 |
+
#: link-library-admin.php:2716
|
914 |
+
msgid "Show all categories"
|
915 |
+
msgstr "Montrer toutes les catégories"
|
916 |
+
|
917 |
+
#: link-library-admin.php:2725
|
918 |
+
#: link-library-admin.php:2729
|
919 |
+
msgid "numeric category IDs that should not be shown"
|
920 |
+
msgstr "identifiants de catégories numériques à ne pas afficher"
|
921 |
+
|
922 |
+
#: link-library-admin.php:2726
|
923 |
+
msgid "Categories to be excluded"
|
924 |
+
msgstr "Catégories à exclure"
|
925 |
+
|
926 |
+
#: link-library-admin.php:2747
|
927 |
+
msgid "No Exclusions"
|
928 |
+
msgstr "Aucune exclusion"
|
929 |
+
|
930 |
+
#: link-library-admin.php:2756
|
931 |
+
#: link-library-admin.php:2759
|
932 |
+
msgid "Only show one category of links at a time"
|
933 |
+
msgstr "N’afficher qu’une catégorie de liens à la fois"
|
934 |
+
|
935 |
+
#: link-library-admin.php:2757
|
936 |
+
msgid "Only show one category at a time"
|
937 |
+
msgstr "N’afficher qu’une catégorie à la fois"
|
938 |
+
|
939 |
+
#: link-library-admin.php:2764
|
940 |
+
msgid "Select if AJAX should be used to only reload the list of links without reloading the whole page or HTML GET to reload entire page with a new link. The Permalinks option must be enabled for HTML GET + Permalink to work correctly."
|
941 |
+
msgstr "Sélectionner si la librairie AJAX est utilisée pour rafraîchir la liste sans recharger complètement la page ou si la méthode HTML GET doit recharger la page complète avec un nouveau lien. L’option des liens personnalisés doit être activée pour que l’option HTML GET + Permaliens fonctionne correctement."
|
942 |
+
|
943 |
+
#: link-library-admin.php:2764
|
944 |
+
msgid "Switching Method"
|
945 |
+
msgstr "Méthode pour les mises à jour de la page"
|
946 |
+
|
947 |
+
#: link-library-admin.php:2792
|
948 |
+
msgid "Default category to be shown when only showing one at a time (numeric ID)"
|
949 |
+
msgstr "Catégorie à afficher par défaut lorsqu’une seule catégorie est présente (identifiant numérique)"
|
950 |
+
|
951 |
+
#: link-library-admin.php:2797
|
952 |
+
msgid "Hide category on start in single cat AJAX mode"
|
953 |
+
msgstr "Cacher les catégories au démarrage dans le mode AJAX avec une seule catégorie"
|
954 |
+
|
955 |
+
#: link-library-admin.php:2804
|
956 |
+
#: link-library-admin.php:2807
|
957 |
+
msgid "File path is relative to Link Library plugin directory"
|
958 |
+
msgstr "Le chemin du fichier doit être relatif par rapport au répertoire du module Link Library"
|
959 |
+
|
960 |
+
#: link-library-admin.php:2805
|
961 |
+
msgid "Icon to display when performing AJAX queries"
|
962 |
+
msgstr "Icône à afficher lorsque des requêtes AJAX sont effectuées"
|
963 |
+
|
964 |
+
#: link-library-admin.php:2816
|
965 |
+
#: link-library-admin.php:2819
|
966 |
+
msgid "Only show a limited number of links and add page navigation links"
|
967 |
+
msgstr "Afficher seulement un nombre limité de liens et afficher une section de navigation des liens"
|
968 |
+
|
969 |
+
#: link-library-admin.php:2817
|
970 |
+
msgid "Paginate Results"
|
971 |
+
msgstr "Paginer les résultats"
|
972 |
+
|
973 |
+
#: link-library-admin.php:2824
|
974 |
+
#: link-library-admin.php:2827
|
975 |
+
msgid "Number of Links to be Displayed per Page in Pagination Mode"
|
976 |
+
msgstr "Nombre de liens devant être affichés en “Mode Pagination”"
|
977 |
+
|
978 |
+
#: link-library-admin.php:2825
|
979 |
+
msgid "Links per Page"
|
980 |
+
msgstr "Liens par page"
|
981 |
+
|
982 |
+
#: link-library-admin.php:2833
|
983 |
+
msgid "Pagination Position"
|
984 |
+
msgstr "Position de la pagination"
|
985 |
+
|
986 |
+
#: link-library-admin.php:2839
|
987 |
+
msgid "After Links"
|
988 |
+
msgstr "Après le lien"
|
989 |
+
|
990 |
+
#: link-library-admin.php:2842
|
991 |
+
#: link-library-admin.php:2872
|
992 |
+
msgid "Before Links"
|
993 |
+
msgstr "Avant le lien"
|
994 |
+
|
995 |
+
#: link-library-admin.php:2846
|
996 |
+
msgid "Hide Results if Empty"
|
997 |
+
msgstr "Masquer les résultats si vide"
|
998 |
+
|
999 |
+
#: link-library-admin.php:2856
|
1000 |
+
msgid "Enable Permalinks"
|
1001 |
+
msgstr "Activer les liens permanents"
|
1002 |
+
|
1003 |
+
#: link-library-admin.php:2864
|
1004 |
+
msgid "Permalinks Page"
|
1005 |
+
msgstr "Page des liens permanents"
|
1006 |
+
|
1007 |
+
#: link-library-admin.php:2871
|
1008 |
+
msgid "Display alphabetic cat filter"
|
1009 |
+
msgstr "Afficher le filtre des catégories par ordre alphabétique"
|
1010 |
+
|
1011 |
+
#: link-library-admin.php:2872
|
1012 |
+
msgid "Do not display"
|
1013 |
+
msgstr "Ne pas afficher"
|
1014 |
+
|
1015 |
+
#: link-library-admin.php:2872
|
1016 |
+
msgid "Before Categories"
|
1017 |
+
msgstr "Avant les catégories"
|
1018 |
+
|
1019 |
+
#: link-library-admin.php:2872
|
1020 |
+
msgid "Before Categories and Links"
|
1021 |
+
msgstr "Avant les catégories et les liens"
|
1022 |
+
|
1023 |
+
#: link-library-admin.php:2879
|
1024 |
+
msgid "Auto-select first alphabetic cat item"
|
1025 |
+
msgstr "Sélectionner automatiquement la première catégorie par ordre alphabétique"
|
1026 |
+
|
1027 |
+
#: link-library-admin.php:2883
|
1028 |
+
msgid "Display ALL box in alphabetic cat filter"
|
1029 |
+
msgstr "Afficher toutes les cases dans le filtre alphabétique des catégories"
|
1030 |
+
|
1031 |
+
#: link-library-admin.php:2885
|
1032 |
+
msgid "Cat filter label"
|
1033 |
+
msgstr "Texte pour le filtre sur les catégories"
|
1034 |
+
|
1035 |
+
#: link-library-admin.php:2889
|
1036 |
+
msgid "Only display links submitted by current user"
|
1037 |
+
msgstr "Affiche uniquement les liens soumis par l’utilisateur actuel"
|
1038 |
+
|
1039 |
+
#: link-library-admin.php:2934
|
1040 |
+
msgid "Results Order"
|
1041 |
+
msgstr "Ordre des résultats"
|
1042 |
+
|
1043 |
+
#: link-library-admin.php:2940
|
1044 |
+
#: link-library-admin.php:3097
|
1045 |
+
msgid "Order by Name"
|
1046 |
+
msgstr "Trier par nom"
|
1047 |
+
|
1048 |
+
#: link-library-admin.php:2943
|
1049 |
+
#: link-library-admin.php:3098
|
1050 |
+
msgid "Order by ID"
|
1051 |
+
msgstr "Trier par identifiant"
|
1052 |
+
|
1053 |
+
#: link-library-admin.php:2947
|
1054 |
+
msgid "Order of categories based on included category list"
|
1055 |
+
msgstr "Trier les catégories selon l’ordre des catégories incluses"
|
1056 |
+
|
1057 |
+
#: link-library-admin.php:2951
|
1058 |
+
msgid "Order by"
|
1059 |
+
msgstr "Trier par"
|
1060 |
+
|
1061 |
+
#: link-library-admin.php:2951
|
1062 |
+
#: link-library-admin.php:3099
|
1063 |
+
msgid "Wordpress Plugin"
|
1064 |
+
msgstr "Extension WordPress"
|
1065 |
+
|
1066 |
+
#: link-library-admin.php:2956
|
1067 |
+
msgid "Link Categories Display Format"
|
1068 |
+
msgstr "Format d’affichage des catégories de liens"
|
1069 |
+
|
1070 |
+
#: link-library-admin.php:2960
|
1071 |
+
#: link-library-admin.php:3181
|
1072 |
+
msgid "Table"
|
1073 |
+
msgstr "Table"
|
1074 |
+
|
1075 |
+
#: link-library-admin.php:2961
|
1076 |
+
#: link-library-admin.php:3182
|
1077 |
+
msgid "Unordered List"
|
1078 |
+
msgstr "Liste non-ordonnée"
|
1079 |
+
|
1080 |
+
#: link-library-admin.php:2962
|
1081 |
+
msgid "Drop-Down List"
|
1082 |
+
msgstr "Liste déroulante"
|
1083 |
+
|
1084 |
+
#: link-library-admin.php:2963
|
1085 |
+
msgid "Drop-Down List Direct Access"
|
1086 |
+
msgstr "Liste déroulante"
|
1087 |
+
|
1088 |
+
#: link-library-admin.php:2969
|
1089 |
+
msgid "Display link counts"
|
1090 |
+
msgstr "Afficher la quantité de liens"
|
1091 |
+
|
1092 |
+
#: link-library-admin.php:2975
|
1093 |
+
msgid "Display categories with search results"
|
1094 |
+
msgstr "Afficher les catégories avec les résultats de recherche"
|
1095 |
+
|
1096 |
+
#: link-library-admin.php:2980
|
1097 |
+
#: link-library-admin.php:2983
|
1098 |
+
msgid "This setting does not apply when selecting My Link Order for the order"
|
1099 |
+
msgstr "Cette option ne s’applique que lorsque l’on choisit \"Mon ordre des liens\" comme ordre de présentation"
|
1100 |
+
|
1101 |
+
#: link-library-admin.php:2981
|
1102 |
+
#: link-library-admin.php:3152
|
1103 |
+
msgid "Direction"
|
1104 |
+
msgstr "Direction"
|
1105 |
+
|
1106 |
+
#: link-library-admin.php:2985
|
1107 |
+
#: link-library-admin.php:3156
|
1108 |
+
msgid "Ascending"
|
1109 |
+
msgstr "Croissant"
|
1110 |
+
|
1111 |
+
#: link-library-admin.php:2986
|
1112 |
+
#: link-library-admin.php:3157
|
1113 |
+
msgid "Descending"
|
1114 |
+
msgstr "Décroissant"
|
1115 |
+
|
1116 |
+
#: link-library-admin.php:2990
|
1117 |
+
#: link-library-admin.php:2993
|
1118 |
+
#: link-library-admin.php:3106
|
1119 |
+
#: link-library-admin.php:3109
|
1120 |
+
msgid "Use [ and ] in the description to perform special actions using HTML such as inserting images instead of < and >"
|
1121 |
+
msgstr "Utilisez [ et ] dans la description pour écrire du code HTML, tel que du code pour afficher une image, au lien d’utiliser < et >"
|
1122 |
+
|
1123 |
+
#: link-library-admin.php:2991
|
1124 |
+
#: link-library-admin.php:3107
|
1125 |
+
msgid "Show Category Description"
|
1126 |
+
msgstr "Afficher la description des catégories"
|
1127 |
+
|
1128 |
+
#: link-library-admin.php:2995
|
1129 |
+
#: link-library-admin.php:3113
|
1130 |
+
msgid "Position"
|
1131 |
+
msgstr "Position"
|
1132 |
+
|
1133 |
+
#: link-library-admin.php:2997
|
1134 |
+
#: link-library-admin.php:3115
|
1135 |
+
msgid "Right"
|
1136 |
+
msgstr "Droite"
|
1137 |
+
|
1138 |
+
#: link-library-admin.php:2998
|
1139 |
+
#: link-library-admin.php:3116
|
1140 |
+
msgid "Left"
|
1141 |
+
msgstr "Gauche"
|
1142 |
+
|
1143 |
+
#: link-library-admin.php:3004
|
1144 |
+
msgid "Width of Categories Table in Percents"
|
1145 |
+
msgstr "Largeur de la table des catégories en pourcentage"
|
1146 |
+
|
1147 |
+
#: link-library-admin.php:3010
|
1148 |
+
#: link-library-admin.php:3013
|
1149 |
+
msgid "Determines the number of alternating div tags that will be placed before and after each link category"
|
1150 |
+
msgstr "Indique le nombre de balises div qui seront placées en alternance avant et après chaque catégorie de liens"
|
1151 |
+
|
1152 |
+
#: link-library-admin.php:3010
|
1153 |
+
#: link-library-admin.php:3013
|
1154 |
+
msgid "These div tags can be used to style of position link categories on the link page"
|
1155 |
+
msgstr "Ces balises div peuvent être utilisées pour positionner les catégories de lien sur la page"
|
1156 |
+
|
1157 |
+
#: link-library-admin.php:3011
|
1158 |
+
msgid "Number of alternating div classes"
|
1159 |
+
msgstr "Nombre de classes div en alternance"
|
1160 |
+
|
1161 |
+
#: link-library-admin.php:3026
|
1162 |
+
msgid "Number of columns in Categories Table"
|
1163 |
+
msgstr "Nombre de colonnes dans la table des catégories"
|
1164 |
+
|
1165 |
+
#: link-library-admin.php:3033
|
1166 |
+
msgid "First div class name"
|
1167 |
+
msgstr "Premier nom de classe de la div"
|
1168 |
+
|
1169 |
+
#: link-library-admin.php:3041
|
1170 |
+
msgid "Use Div Class or Heading tag around Category Names"
|
1171 |
+
msgstr "Utiliser une balise div ou une balise d’en-tête autour des noms de catégories"
|
1172 |
+
|
1173 |
+
#: link-library-admin.php:3045
|
1174 |
+
msgid "Div Class"
|
1175 |
+
msgstr "Premier nom de classe div"
|
1176 |
+
|
1177 |
+
#: link-library-admin.php:3046
|
1178 |
+
msgid "Heading Tag"
|
1179 |
+
msgstr "Balise d’en-tête"
|
1180 |
+
|
1181 |
+
#: link-library-admin.php:3051
|
1182 |
+
msgid "Second div class name"
|
1183 |
+
msgstr "Second nom de classe div"
|
1184 |
+
|
1185 |
+
#: link-library-admin.php:3058
|
1186 |
+
#: link-library-admin.php:3061
|
1187 |
+
msgid "Example div class name: linklistcatname, Example Heading Label: h3"
|
1188 |
+
msgstr "Exemples de noms de classes div : linklistcatname, Exemples de balises d’en-tête : h3"
|
1189 |
+
|
1190 |
+
#: link-library-admin.php:3059
|
1191 |
+
msgid "Div Class Name or Heading label"
|
1192 |
+
msgstr "Nom de classe div ou type de la balise de titre"
|
1193 |
+
|
1194 |
+
#: link-library-admin.php:3066
|
1195 |
+
msgid "Third div class name"
|
1196 |
+
msgstr "Troisième nom de classe div"
|
1197 |
+
|
1198 |
+
#: link-library-admin.php:3073
|
1199 |
+
#: link-library-admin.php:3076
|
1200 |
+
msgid "Set this address to a page running Link Library to place categories on a different page. Should always be used with the Show One Category at a Time and HTMLGET fetch method."
|
1201 |
+
msgstr "Configurer cette adresse vers une page utilisant Link Library pour placer la liste des catégories sur une autre page. Ce champ devrait toujours être utilisé en conjonction avec le mode n’affichez qu’une catégorie à la fois et la méthode HTML GET."
|
1202 |
+
|
1203 |
+
#: link-library-admin.php:3074
|
1204 |
+
msgid "Category Target Address"
|
1205 |
+
msgstr "Adresse cible pour les liens de catégories"
|
1206 |
+
|
1207 |
+
#: link-library-admin.php:3093
|
1208 |
+
msgid "Link Results Order"
|
1209 |
+
msgstr "Ordre des résultats"
|
1210 |
+
|
1211 |
+
#: link-library-admin.php:3099
|
1212 |
+
msgid "Order set by "
|
1213 |
+
msgstr "Trier par"
|
1214 |
+
|
1215 |
+
#: link-library-admin.php:3100
|
1216 |
+
msgid "Order randomly"
|
1217 |
+
msgstr "Trier au hazard"
|
1218 |
+
|
1219 |
+
#: link-library-admin.php:3101
|
1220 |
+
msgid "Order by updated date"
|
1221 |
+
msgstr "Trier par date de mise à jour"
|
1222 |
+
|
1223 |
+
#: link-library-admin.php:3102
|
1224 |
+
msgid "Order by number of link visits"
|
1225 |
+
msgstr "Trier par le nombre de visites du lien"
|
1226 |
+
|
1227 |
+
#: link-library-admin.php:3121
|
1228 |
+
msgid "List Featured Links ahead of Regular Links"
|
1229 |
+
msgstr "Afficher les liens vedettes avant les liens réguliers"
|
1230 |
+
|
1231 |
+
#: link-library-admin.php:3125
|
1232 |
+
msgid "Show Expand Link button and hide links"
|
1233 |
+
msgstr "Montrer le bouton 'Développer les liens' et cacher les liens"
|
1234 |
+
|
1235 |
+
#: link-library-admin.php:3130
|
1236 |
+
msgid "Combine all results without categories"
|
1237 |
+
msgstr "Combiner tous les résultats sans les catégories"
|
1238 |
+
|
1239 |
+
#: link-library-admin.php:3134
|
1240 |
+
msgid "Link Title Content"
|
1241 |
+
msgstr "Titre du lien sur le contenu"
|
1242 |
+
|
1243 |
+
#: link-library-admin.php:3151
|
1244 |
+
#: link-library-admin.php:3154
|
1245 |
+
msgid "Except for My Link Order mode"
|
1246 |
+
msgstr "Sauf pour le mode avec \"Mon ordre des lien\""
|
1247 |
+
|
1248 |
+
#: link-library-admin.php:3161
|
1249 |
+
#: link-library-admin.php:3164
|
1250 |
+
msgid "Leave empty to show all results"
|
1251 |
+
msgstr "Laissez vide pour afficher tous les résultats"
|
1252 |
+
|
1253 |
+
#: link-library-admin.php:3162
|
1254 |
+
msgid "Max number of links to display"
|
1255 |
+
msgstr "Nombre maximum de liens à afficher"
|
1256 |
+
|
1257 |
+
#: link-library-admin.php:3169
|
1258 |
+
#: link-library-admin.php:3172
|
1259 |
+
msgid "Sets default link target window, does not override specific targets set in links"
|
1260 |
+
msgstr "Configure la fenêtre cible pour les liens. Cette valeur n’est pas prioritaire par rapport aux cibles spécifiques des liens."
|
1261 |
+
|
1262 |
+
#: link-library-admin.php:3170
|
1263 |
+
msgid "Link Target"
|
1264 |
+
msgstr "Cible du lien"
|
1265 |
+
|
1266 |
+
#: link-library-admin.php:3177
|
1267 |
+
msgid "Link Display Format"
|
1268 |
+
msgstr "Format d’affichage des liens"
|
1269 |
+
|
1270 |
+
#: link-library-admin.php:3183
|
1271 |
+
msgid "No surrounding tags"
|
1272 |
+
msgstr "Pas de tags autour"
|
1273 |
+
|
1274 |
+
#: link-library-admin.php:3188
|
1275 |
+
#: link-library-admin.php:3191
|
1276 |
+
msgid "Allows extra query string to be added to all links in library"
|
1277 |
+
msgstr "Permet d’ajouter des paramètres supplémentaires sur tous les liens de la librairie"
|
1278 |
+
|
1279 |
+
#: link-library-admin.php:3189
|
1280 |
+
msgid "Additional link query string"
|
1281 |
+
msgstr "Chaine additionnelle pour le lien de recherche"
|
1282 |
+
|
1283 |
+
#: link-library-admin.php:3197
|
1284 |
+
msgid "Show Column Headers"
|
1285 |
+
msgstr "Afficher les en-têtes de colonnes"
|
1286 |
+
|
1287 |
+
#: link-library-admin.php:3204
|
1288 |
+
msgid "Link Column Header"
|
1289 |
+
msgstr "En-tête de colonne de lien"
|
1290 |
+
|
1291 |
+
#: link-library-admin.php:3212
|
1292 |
+
msgid "Description Column Header"
|
1293 |
+
msgstr "En-tête de colonne pour les descriptions"
|
1294 |
+
|
1295 |
+
#: link-library-admin.php:3219
|
1296 |
+
msgid "Notes Column Header"
|
1297 |
+
msgstr "En-tête de la colonne des notes"
|
1298 |
+
|
1299 |
+
#: link-library-admin.php:3227
|
1300 |
+
msgid "Hide Category Names"
|
1301 |
+
msgstr "Masquer les noms de catégories"
|
1302 |
+
|
1303 |
+
#: link-library-admin.php:3234
|
1304 |
+
msgid "Show Hidden Links"
|
1305 |
+
msgstr "Afficher les liens cachés"
|
1306 |
+
|
1307 |
+
#: link-library-admin.php:3241
|
1308 |
+
#: link-library-admin.php:3244
|
1309 |
+
msgid "Need to be active for Link Categories to work"
|
1310 |
+
msgstr "Doit être coché pour que les liens de catégories fonctionnent"
|
1311 |
+
|
1312 |
+
#: link-library-admin.php:3242
|
1313 |
+
msgid "Embed HTML anchors"
|
1314 |
+
msgstr "Inclusion d’ancrages HTML"
|
1315 |
+
|
1316 |
+
#: link-library-admin.php:3249
|
1317 |
+
msgid "Show Hidden Links to Admins/Editors"
|
1318 |
+
msgstr "Montrer les liens cachés aux Administrateurs/Editeurs"
|
1319 |
+
|
1320 |
+
#: link-library-admin.php:3266
|
1321 |
+
msgid "Arrange the items below via drag-and-drop to order the various Link Library elements."
|
1322 |
+
msgstr "Organiser les différents liens ci-dessous avec la souris (cliquer-déplacer-déposer)"
|
1323 |
+
|
1324 |
+
#: link-library-admin.php:3289
|
1325 |
+
#: link-library-admin.php:3411
|
1326 |
+
msgid "Image"
|
1327 |
+
msgstr "Image"
|
1328 |
+
|
1329 |
+
#: link-library-admin.php:3293
|
1330 |
+
msgid "Name"
|
1331 |
+
msgstr "Nom"
|
1332 |
+
|
1333 |
+
#: link-library-admin.php:3297
|
1334 |
+
msgid "Date"
|
1335 |
+
msgstr "Date"
|
1336 |
+
|
1337 |
+
#: link-library-admin.php:3301
|
1338 |
+
msgid "Desc"
|
1339 |
+
msgstr "Desc"
|
1340 |
+
|
1341 |
+
#: link-library-admin.php:3305
|
1342 |
+
msgid "Notes"
|
1343 |
+
msgstr "Notes"
|
1344 |
+
|
1345 |
+
#: link-library-admin.php:3309
|
1346 |
+
msgid "RSS"
|
1347 |
+
msgstr "RSS"
|
1348 |
+
|
1349 |
+
#: link-library-admin.php:3313
|
1350 |
+
#: link-library-admin.php:3588
|
1351 |
+
msgid "Link"
|
1352 |
+
msgstr "Lien"
|
1353 |
+
|
1354 |
+
#: link-library-admin.php:3317
|
1355 |
+
msgid "Phone"
|
1356 |
+
msgstr "Téléphone"
|
1357 |
+
|
1358 |
+
#: link-library-admin.php:3321
|
1359 |
+
#: link-library-admin.php:3618
|
1360 |
+
#: link-library-admin.php:4477
|
1361 |
+
#: link-library-admin.php:4820
|
1362 |
+
#: link-library-defaults.php:176
|
1363 |
+
#: render-link-library-addlink-sc.php:446
|
1364 |
+
msgid "E-mail"
|
1365 |
+
msgstr "Adresse électronique"
|
1366 |
+
|
1367 |
+
#: link-library-admin.php:3325
|
1368 |
+
msgid "Hits"
|
1369 |
+
msgstr "Accès"
|
1370 |
+
|
1371 |
+
#: link-library-admin.php:3329
|
1372 |
+
msgid "Rating"
|
1373 |
+
msgstr "Classement"
|
1374 |
+
|
1375 |
+
#: link-library-admin.php:3333
|
1376 |
+
msgid "Large Desc"
|
1377 |
+
msgstr "Grande Desc"
|
1378 |
+
|
1379 |
+
#: link-library-admin.php:3337
|
1380 |
+
#: link-library-admin.php:3715
|
1381 |
+
#: link-library-admin.php:4493
|
1382 |
+
#: link-library-defaults.php:188
|
1383 |
+
#: render-link-library-addlink-sc.php:464
|
1384 |
+
msgid "Submitter Name"
|
1385 |
+
msgstr "Nom de l’utilisateur ayant soumis le lien"
|
1386 |
+
|
1387 |
+
#: link-library-admin.php:3341
|
1388 |
+
msgid "Cat Desc"
|
1389 |
+
msgstr "Cat Desc"
|
1390 |
+
|
1391 |
+
#: link-library-admin.php:3353
|
1392 |
+
msgid "Display"
|
1393 |
+
msgstr "Afficher"
|
1394 |
+
|
1395 |
+
#: link-library-admin.php:3354
|
1396 |
+
msgid "Before"
|
1397 |
+
msgstr "Avant"
|
1398 |
+
|
1399 |
+
#: link-library-admin.php:3355
|
1400 |
+
msgid "After"
|
1401 |
+
msgstr "Après"
|
1402 |
+
|
1403 |
+
#: link-library-admin.php:3356
|
1404 |
+
msgid "Additional Details"
|
1405 |
+
msgstr "Détails additionnels"
|
1406 |
+
|
1407 |
+
#: link-library-admin.php:3357
|
1408 |
+
msgid "Link Source"
|
1409 |
+
msgstr "Source du lien"
|
1410 |
+
|
1411 |
+
#: link-library-admin.php:3360
|
1412 |
+
msgid "This column allows for the output of text/code before the first link in each category"
|
1413 |
+
msgstr "Cette colonne permet de spécifier le texte/code qui sera affiché avant le premier lien de chaque catégorie"
|
1414 |
+
|
1415 |
+
#: link-library-admin.php:3360
|
1416 |
+
msgid "Before first link"
|
1417 |
+
msgstr "Avant le premier lien"
|
1418 |
+
|
1419 |
+
#: link-library-admin.php:3362
|
1420 |
+
msgid "Output of text/code before the first link in each category"
|
1421 |
+
msgstr "Affichage du texte/code avant la première ligne de chaque catégorie"
|
1422 |
+
|
1423 |
+
#: link-library-admin.php:3368
|
1424 |
+
msgid "This column allows for the output of text/code before a number of links determined by the Display field"
|
1425 |
+
msgstr "Cette colonne permet de spécifier le texte/code qui sera affiché avant le nombre de liens spécifié sur la première ligne de cette table"
|
1426 |
+
|
1427 |
+
#: link-library-admin.php:3368
|
1428 |
+
msgid "Intermittent Before Link"
|
1429 |
+
msgstr "Balises intermittentes avant le lien"
|
1430 |
+
|
1431 |
+
#: link-library-admin.php:3369
|
1432 |
+
msgid "Frequency of additional output before and after complete link group"
|
1433 |
+
msgstr "Fréquence des affichages supplémentaires avant et après chaque groupe de liens"
|
1434 |
+
|
1435 |
+
#: link-library-admin.php:3372
|
1436 |
+
#: link-library-admin.php:3382
|
1437 |
+
msgid "Output before complete link group (link, notes, desc, etc...)"
|
1438 |
+
msgstr "Afficher avant le groupe de liens (lien, notes, description, etc...)"
|
1439 |
+
|
1440 |
+
#: link-library-admin.php:3380
|
1441 |
+
msgid "This column allows for the output of text/code before each link"
|
1442 |
+
msgstr "Cette colonne permet de spécifier le texte/code qui sera affiché avant chaque lien"
|
1443 |
+
|
1444 |
+
#: link-library-admin.php:3380
|
1445 |
+
msgid "Before Link"
|
1446 |
+
msgstr "Avant le lien"
|
1447 |
+
|
1448 |
+
#: link-library-admin.php:3411
|
1449 |
+
msgid "This column allows for the output of text/code before each link image"
|
1450 |
+
msgstr "Cette colonne permet de spécifier le texte/code qui sera affiché avant chaque image"
|
1451 |
+
|
1452 |
+
#: link-library-admin.php:3417
|
1453 |
+
msgid "Code/Text to be displayed before each link image"
|
1454 |
+
msgstr "Code/Texte à afficher avant chaque image"
|
1455 |
+
|
1456 |
+
#: link-library-admin.php:3420
|
1457 |
+
msgid "Code/Text to be displayed after each link image"
|
1458 |
+
msgstr "Code/Texte à afficher après chaque image"
|
1459 |
+
|
1460 |
+
#: link-library-admin.php:3423
|
1461 |
+
msgid "CSS Class to be assigned to link image"
|
1462 |
+
msgstr "Classe CSS qui sera assignée à l’image"
|
1463 |
+
|
1464 |
+
#: link-library-admin.php:3430
|
1465 |
+
#: link-library-admin.php:3461
|
1466 |
+
#: link-library-admin.php:3566
|
1467 |
+
#: link-library-admin.php:3607
|
1468 |
+
msgid "Primary"
|
1469 |
+
msgstr "Principal"
|
1470 |
+
|
1471 |
+
#: link-library-admin.php:3433
|
1472 |
+
#: link-library-admin.php:3462
|
1473 |
+
#: link-library-admin.php:3569
|
1474 |
+
#: link-library-admin.php:3610
|
1475 |
+
msgid "Secondary"
|
1476 |
+
msgstr "Secondaire"
|
1477 |
+
|
1478 |
+
#: link-library-admin.php:3441
|
1479 |
+
msgid "This column allows for the output of text/code before and after each link name"
|
1480 |
+
msgstr "Cette colonne permet de spécifier le texte/code qui sera affiché avant et après chaque nom"
|
1481 |
+
|
1482 |
+
#: link-library-admin.php:3447
|
1483 |
+
msgid "Code/Text to be displayed before each link"
|
1484 |
+
msgstr "Code/Texte à afficher avant chaque lien"
|
1485 |
+
|
1486 |
+
#: link-library-admin.php:3450
|
1487 |
+
msgid "Code/Text to be displayed after each link"
|
1488 |
+
msgstr "Code/Texte à afficher après chaque lien"
|
1489 |
+
|
1490 |
+
#: link-library-admin.php:3455
|
1491 |
+
msgid "No Tooltip"
|
1492 |
+
msgstr "Pas d’aide"
|
1493 |
+
|
1494 |
+
#: link-library-admin.php:3456
|
1495 |
+
msgid "Description"
|
1496 |
+
msgstr "Description"
|
1497 |
+
|
1498 |
+
#: link-library-admin.php:3470
|
1499 |
+
msgid "This column allows for the output of text/code before and after each link date stamp"
|
1500 |
+
msgstr "Cette colonne permet de spécifier le texte/code qui sera affiché avant et après chaque date"
|
1501 |
+
|
1502 |
+
#: link-library-admin.php:3470
|
1503 |
+
msgid "Link Date"
|
1504 |
+
msgstr "Date du lien"
|
1505 |
+
|
1506 |
+
#: link-library-admin.php:3471
|
1507 |
+
msgid "Check to display link date"
|
1508 |
+
msgstr "Cocher pour afficher la date du lien"
|
1509 |
+
|
1510 |
+
#: link-library-admin.php:3476
|
1511 |
+
msgid "Code/Text to be displayed before each date"
|
1512 |
+
msgstr "Code/Texte à afficher avant chaque date"
|
1513 |
+
|
1514 |
+
#: link-library-admin.php:3479
|
1515 |
+
msgid "Code/Text to be displayed after each date"
|
1516 |
+
msgstr "Code/Texte à afficher après chaque date"
|
1517 |
+
|
1518 |
+
#: link-library-admin.php:3489
|
1519 |
+
msgid "This column allows for the output of text/code before and after each link description"
|
1520 |
+
msgstr "Cette colonne permet de spécifier le texte/code qui sera affiché avant et après chaque description"
|
1521 |
+
|
1522 |
+
#: link-library-admin.php:3490
|
1523 |
+
msgid "Check to display link descriptions"
|
1524 |
+
msgstr "Cocher pour afficher la description du lien"
|
1525 |
+
|
1526 |
+
#: link-library-admin.php:3495
|
1527 |
+
msgid "Code/Text to be displayed before each description"
|
1528 |
+
msgstr "Code/Texte à afficher avant chaque description"
|
1529 |
+
|
1530 |
+
#: link-library-admin.php:3498
|
1531 |
+
msgid "Code/Text to be displayed after each description"
|
1532 |
+
msgstr "Code/Texte à afficher après chaque description"
|
1533 |
+
|
1534 |
+
#: link-library-admin.php:3508
|
1535 |
+
msgid "This column allows for the output of text/code before and after each link notes"
|
1536 |
+
msgstr "Cette colonne permet de spécifier le texte/code qui sera affiché avant et après chaque note"
|
1537 |
+
|
1538 |
+
#: link-library-admin.php:3508
|
1539 |
+
#: link-library-admin.php:4400
|
1540 |
+
#: link-library-defaults.php:129
|
1541 |
+
#: usersubmission.php:311
|
1542 |
+
#: usersubmission.php:401
|
1543 |
+
msgid "Link Notes"
|
1544 |
+
msgstr "Notes du lien"
|
1545 |
+
|
1546 |
+
#: link-library-admin.php:3509
|
1547 |
+
msgid "Check to display link notes"
|
1548 |
+
msgstr "Cocher pour afficher les notes du lien"
|
1549 |
+
|
1550 |
+
#: link-library-admin.php:3514
|
1551 |
+
msgid "Code/Text to be displayed before each note"
|
1552 |
+
msgstr "Code/Texte à afficher avant chaque note"
|
1553 |
+
|
1554 |
+
#: link-library-admin.php:3517
|
1555 |
+
msgid "Code/Text to be displayed after each note"
|
1556 |
+
msgstr "Code/Texte à afficher après chaque note"
|
1557 |
+
|
1558 |
+
#: link-library-admin.php:3527
|
1559 |
+
msgid "This column allows for the output of text/code before and after the RSS icons"
|
1560 |
+
msgstr "Cette colonne permet de spécifier le texte/code qui sera affiché avant et après les icônes RSS"
|
1561 |
+
|
1562 |
+
#: link-library-admin.php:3527
|
1563 |
+
msgid "RSS Icons"
|
1564 |
+
msgstr "Icône RSS"
|
1565 |
+
|
1566 |
+
#: link-library-admin.php:3529
|
1567 |
+
msgid "See below"
|
1568 |
+
msgstr "Voir ci-dessous"
|
1569 |
+
|
1570 |
+
#: link-library-admin.php:3531
|
1571 |
+
msgid "Code/Text to be displayed before RSS Icons"
|
1572 |
+
msgstr "Code/Texte à afficher avant les icônes RSS"
|
1573 |
+
|
1574 |
+
#: link-library-admin.php:3534
|
1575 |
+
msgid "Code/Text to be displayed after RSS Icons"
|
1576 |
+
msgstr "Code/Texte à afficher après les icônes RSS"
|
1577 |
+
|
1578 |
+
#: link-library-admin.php:3544
|
1579 |
+
msgid "This column allows for the output of text/code before and after the Web Link"
|
1580 |
+
msgstr "Cette colonne permet de spécifier le texte/code qui sera affiché avant et après les hyperliens"
|
1581 |
+
|
1582 |
+
#: link-library-admin.php:3544
|
1583 |
+
msgid "Web Link"
|
1584 |
+
msgstr "Lien du site"
|
1585 |
+
|
1586 |
+
#: link-library-admin.php:3547
|
1587 |
+
#: link-library-admin.php:3582
|
1588 |
+
#: link-library-admin.php:3623
|
1589 |
+
msgid "False"
|
1590 |
+
msgstr "Faux"
|
1591 |
+
|
1592 |
+
#: link-library-admin.php:3548
|
1593 |
+
msgid "Web Address"
|
1594 |
+
msgstr "Adresse du site"
|
1595 |
+
|
1596 |
+
#: link-library-admin.php:3549
|
1597 |
+
msgid "Web Address Only"
|
1598 |
+
msgstr "Seulement une adresse Web"
|
1599 |
+
|
1600 |
+
#: link-library-admin.php:3550
|
1601 |
+
#: link-library-admin.php:3591
|
1602 |
+
msgid "Label"
|
1603 |
+
msgstr "Identifiant"
|
1604 |
+
|
1605 |
+
#: link-library-admin.php:3553
|
1606 |
+
msgid "Code/Text to be displayed before Web Link"
|
1607 |
+
msgstr "Code/Texte à afficher avant l’hyperlien"
|
1608 |
+
|
1609 |
+
#: link-library-admin.php:3556
|
1610 |
+
msgid "Code/Text to be displayed after Web Link"
|
1611 |
+
msgstr "Code/Texte à afficher après l’hyperlien"
|
1612 |
+
|
1613 |
+
#: link-library-admin.php:3559
|
1614 |
+
msgid "Text Label that the web link will be assigned to."
|
1615 |
+
msgstr "Texte associé à l’hyperlien."
|
1616 |
+
|
1617 |
+
#: link-library-admin.php:3562
|
1618 |
+
#: link-library-admin.php:3603
|
1619 |
+
msgid "Select which link address will be displayed / used for link"
|
1620 |
+
msgstr "Sélectionner l’adresse qui doit être utilisée/affichée pour le lien"
|
1621 |
+
|
1622 |
+
#: link-library-admin.php:3577
|
1623 |
+
msgid "This column allows for the output of text/code before and after the Telephone Number"
|
1624 |
+
msgstr "Cette colonne permet de spécifier le texte/code qui sera affiché avant et après le numéro de téléphone"
|
1625 |
+
|
1626 |
+
#: link-library-admin.php:3577
|
1627 |
+
#: link-library-admin.php:4462
|
1628 |
+
#: link-library-admin.php:4814
|
1629 |
+
#: link-library-defaults.php:174
|
1630 |
+
#: render-link-library-addlink-sc.php:428
|
1631 |
+
msgid "Telephone"
|
1632 |
+
msgstr "Téléphone"
|
1633 |
+
|
1634 |
+
#: link-library-admin.php:3585
|
1635 |
+
#: link-library-admin.php:3626
|
1636 |
+
msgid "Plain Text"
|
1637 |
+
msgstr "Texte simple"
|
1638 |
+
|
1639 |
+
#: link-library-admin.php:3594
|
1640 |
+
msgid "Code/Text to be displayed before Telephone Number"
|
1641 |
+
msgstr "Code/Texte à afficher avant le numéro de téléphone"
|
1642 |
+
|
1643 |
+
#: link-library-admin.php:3597
|
1644 |
+
msgid "Code/Text to be displayed after Telephone Number"
|
1645 |
+
msgstr "Code/Texte à afficher après le numéro de téléphone"
|
1646 |
+
|
1647 |
+
#: link-library-admin.php:3600
|
1648 |
+
msgid "Text Label that the telephone will be assigned to."
|
1649 |
+
msgstr "Texte associé au numéro de téléphone."
|
1650 |
+
|
1651 |
+
#: link-library-admin.php:3618
|
1652 |
+
msgid "This column allows for the output of text/code before and after the E-mail"
|
1653 |
+
msgstr "Cette colonne permet de spécifier le texte/code qui sera affiché avant et après chaque email"
|
1654 |
+
|
1655 |
+
#: link-library-admin.php:3629
|
1656 |
+
msgid "MailTo Link"
|
1657 |
+
msgstr "Lien mailto"
|
1658 |
+
|
1659 |
+
#: link-library-admin.php:3632
|
1660 |
+
msgid "MailTo Link with Label"
|
1661 |
+
msgstr "Lien mailto avec libellé"
|
1662 |
+
|
1663 |
+
#: link-library-admin.php:3635
|
1664 |
+
msgid "Formatted Command"
|
1665 |
+
msgstr "Commande formattée"
|
1666 |
+
|
1667 |
+
#: link-library-admin.php:3638
|
1668 |
+
msgid "Formatted Command with Labels"
|
1669 |
+
msgstr "Commande formattée avec affichage textuel"
|
1670 |
+
|
1671 |
+
#: link-library-admin.php:3641
|
1672 |
+
msgid "Code/Text to be displayed before E-mail"
|
1673 |
+
msgstr "Code/Texte à afficher avant chaque courriel"
|
1674 |
+
|
1675 |
+
#: link-library-admin.php:3644
|
1676 |
+
msgid "Code/Text to be displayed after E-mail"
|
1677 |
+
msgstr "Code/Texte à afficher après le courriel"
|
1678 |
+
|
1679 |
+
#: link-library-admin.php:3647
|
1680 |
+
msgid "Text Label that the e-mail will be assigned to represent the e-mail link."
|
1681 |
+
msgstr "Titre texte qui sera utilisé pour le lien vers l’envoie de courriel."
|
1682 |
+
|
1683 |
+
#: link-library-admin.php:3650
|
1684 |
+
msgid "Command that the e-mail will be embedded in. In the case of a command, use the symbols #email and #company to indicate the position where these elements should be inserted."
|
1685 |
+
msgstr "Commande dans laquelle l’adresse électronique sera incluse. Dans le cas d’une commande, utilisez les symboles #email et #company pour indiquer l’emplacement de ces éléments."
|
1686 |
+
|
1687 |
+
#: link-library-admin.php:3658
|
1688 |
+
msgid "This column allows for the output of text/code before and after Link Hits"
|
1689 |
+
msgstr "Cette colonne permet de spécifier le texte/code qui sera affiché avant et après les statistiques du lien"
|
1690 |
+
|
1691 |
+
#: link-library-admin.php:3658
|
1692 |
+
msgid "Link Hits"
|
1693 |
+
msgstr "Statistiques du lien"
|
1694 |
+
|
1695 |
+
#: link-library-admin.php:3664
|
1696 |
+
msgid "Code/Text to be displayed before Link Hits"
|
1697 |
+
msgstr "Code/Texte à afficher avant les statistiques du lien"
|
1698 |
+
|
1699 |
+
#: link-library-admin.php:3667
|
1700 |
+
msgid "Code/Text to be displayed after Link Hits"
|
1701 |
+
msgstr "Code/Texte à afficher après les statistiques du lien"
|
1702 |
+
|
1703 |
+
#: link-library-admin.php:3677
|
1704 |
+
msgid "This column allows for the output of text/code before and after the Link Rating"
|
1705 |
+
msgstr "Cette colonne permet de spécifier le texte/code qui sera affiché avant et après le classement du lien"
|
1706 |
+
|
1707 |
+
#: link-library-admin.php:3677
|
1708 |
+
msgid "Link Rating"
|
1709 |
+
msgstr "Classement du lien"
|
1710 |
+
|
1711 |
+
#: link-library-admin.php:3683
|
1712 |
+
msgid "Code/Text to be displayed before Link Rating"
|
1713 |
+
msgstr "Code/Texte à afficher avant le classement du lien"
|
1714 |
+
|
1715 |
+
#: link-library-admin.php:3686
|
1716 |
+
msgid "Code/Text to be displayed after Link Rating"
|
1717 |
+
msgstr "Code/Texte à afficher après le classement du lien"
|
1718 |
+
|
1719 |
+
#: link-library-admin.php:3696
|
1720 |
+
#: link-library-admin.php:3715
|
1721 |
+
#: link-library-admin.php:3732
|
1722 |
+
msgid "This column allows for the output of text/code before and after the Link Large Description"
|
1723 |
+
msgstr "Cette colonne permet de spécifier le texte/code qui sera affiché avant et après chaque grande description"
|
1724 |
+
|
1725 |
+
#: link-library-admin.php:3696
|
1726 |
+
#: link-library-admin.php:4863
|
1727 |
+
#: usersubmission.php:307
|
1728 |
+
#: usersubmission.php:397
|
1729 |
+
msgid "Link Large Description"
|
1730 |
+
msgstr "Grande description du lien"
|
1731 |
+
|
1732 |
+
#: link-library-admin.php:3702
|
1733 |
+
#: link-library-admin.php:3719
|
1734 |
+
#: link-library-admin.php:3736
|
1735 |
+
msgid "Code/Text to be displayed before Link Large Description"
|
1736 |
+
msgstr "Code/Texte à afficher avant chaque grande description"
|
1737 |
+
|
1738 |
+
#: link-library-admin.php:3705
|
1739 |
+
#: link-library-admin.php:3722
|
1740 |
+
#: link-library-admin.php:3739
|
1741 |
+
msgid "Code/Text to be displayed after Link Large Description"
|
1742 |
+
msgstr "Code/Texte à afficher après chaque grande description"
|
1743 |
+
|
1744 |
+
#: link-library-admin.php:3732
|
1745 |
+
msgid "Category Description"
|
1746 |
+
msgstr "Description de la catégorie"
|
1747 |
+
|
1748 |
+
#: link-library-admin.php:3751
|
1749 |
+
msgid "This column allows for the output of text/code after each link"
|
1750 |
+
msgstr "Cette colonne permet de spécifier le texte/code qui sera affiché après chaque lien"
|
1751 |
+
|
1752 |
+
#: link-library-admin.php:3751
|
1753 |
+
msgid "After Link Block"
|
1754 |
+
msgstr "Après le lien complet"
|
1755 |
+
|
1756 |
+
#: link-library-admin.php:3754
|
1757 |
+
msgid "Output after complete link group (link, notes, desc, etc...)"
|
1758 |
+
msgstr "Afficher après le groupe de liens (lien, notes, description, etc...)"
|
1759 |
+
|
1760 |
+
#: link-library-admin.php:3761
|
1761 |
+
msgid "This column allows for the output of text/code after a number of links determined in the first column"
|
1762 |
+
msgstr "Cette colonne permet de spécifier le texte/code qui sera affiché après le nombre de liens spécifié sur la première ligne"
|
1763 |
+
|
1764 |
+
#: link-library-admin.php:3761
|
1765 |
+
msgid "Intermittent After Link"
|
1766 |
+
msgstr "Balises intermittentes après le lien"
|
1767 |
+
|
1768 |
+
#: link-library-admin.php:3771
|
1769 |
+
msgid "This column allows for the output of text/code after the last link in each category"
|
1770 |
+
msgstr "Cette colonne permet de spécifier le texte/code qui sera affiché après dernier lien dans chaque catégorie"
|
1771 |
+
|
1772 |
+
#: link-library-admin.php:3771
|
1773 |
+
msgid "After last link"
|
1774 |
+
msgstr "Après le dernier lien"
|
1775 |
+
|
1776 |
+
#: link-library-admin.php:3784
|
1777 |
+
msgid "Show Link Updated Flag"
|
1778 |
+
msgstr "Afficher l’indication de mise à jour des liens"
|
1779 |
+
|
1780 |
+
#: link-library-admin.php:3794
|
1781 |
+
msgid "Convert [] to <> in Link Description and Notes"
|
1782 |
+
msgstr "Convertir [] à <> dans les descriptions et notes de liens"
|
1783 |
+
|
1784 |
+
#: link-library-admin.php:3804
|
1785 |
+
msgid "Link Updated Flag Position"
|
1786 |
+
msgstr "Position du drapeau de mise à jour du lien"
|
1787 |
+
|
1788 |
+
#: link-library-admin.php:3819
|
1789 |
+
#: link-library-admin.php:3822
|
1790 |
+
msgid "Label to be displayed before new links"
|
1791 |
+
msgstr "Texte à afficher avant un nouveau lien"
|
1792 |
+
|
1793 |
+
#: link-library-admin.php:3820
|
1794 |
+
msgid "Updated link label"
|
1795 |
+
msgstr "Mise à jour du texte du lien"
|
1796 |
+
|
1797 |
+
#: link-library-admin.php:3828
|
1798 |
+
msgid "Add nofollow tag to outgoing links"
|
1799 |
+
msgstr "Ajouter une balise nofollow aux liens sortants"
|
1800 |
+
|
1801 |
+
#: link-library-admin.php:3835
|
1802 |
+
msgid "Show edit links when logged in as editor or administrator"
|
1803 |
+
msgstr "Afficher un lien d’édition lorsque l’utilisateur est un éditeur ou un administrateur"
|
1804 |
+
|
1805 |
+
#: link-library-admin.php:3843
|
1806 |
+
msgid "Show link name when no image is assigned"
|
1807 |
+
msgstr "Afficher le nom du lien quand il n’y a pas d’image assignée au lien"
|
1808 |
+
|
1809 |
+
#: link-library-admin.php:3850
|
1810 |
+
msgid "Do not output fields with no value"
|
1811 |
+
msgstr "Ne pas afficher les champs vides"
|
1812 |
+
|
1813 |
+
#: link-library-admin.php:3868
|
1814 |
+
msgid "Enable link Pop-Ups"
|
1815 |
+
msgstr "Activer les fenêtres pop-up pour les liens"
|
1816 |
+
|
1817 |
+
#: link-library-admin.php:3872
|
1818 |
+
msgid "Pop-Up Width"
|
1819 |
+
msgstr "Largeur de la fenêtre pop-up"
|
1820 |
+
|
1821 |
+
#: link-library-admin.php:3879
|
1822 |
+
msgid "Pop-Up Height"
|
1823 |
+
msgstr "Hauteur de la fenêtre pop-up"
|
1824 |
+
|
1825 |
+
#: link-library-admin.php:3888
|
1826 |
+
msgid "Dialog contents"
|
1827 |
+
msgstr "Contenu de la fenêtre"
|
1828 |
+
|
1829 |
+
#: link-library-admin.php:3906
|
1830 |
+
msgid "Show RSS Link using Text"
|
1831 |
+
msgstr "Afficher le lien RSS de façon textuelle"
|
1832 |
+
|
1833 |
+
#: link-library-admin.php:3914
|
1834 |
+
msgid "Show RSS Link using Standard Icon"
|
1835 |
+
msgstr "Afficher le lien RSS en utilisant l’icône standard"
|
1836 |
+
|
1837 |
+
#: link-library-admin.php:3926
|
1838 |
+
msgid "Show RSS Preview Link"
|
1839 |
+
msgstr "Afficher un lien vers l’aperçu du flux d’informations"
|
1840 |
+
|
1841 |
+
#: link-library-admin.php:3932
|
1842 |
+
msgid "Number of articles shown in RSS Preview"
|
1843 |
+
msgstr "Nombre d’articles présentés dans l’aperçu du flux d’informations RSS"
|
1844 |
+
|
1845 |
+
#: link-library-admin.php:3938
|
1846 |
+
msgid "Show RSS Feed Headers in Link Library output"
|
1847 |
+
msgstr "Afficher les en-têtes des flux d’informations RSS dans la page générée par Link Library"
|
1848 |
+
|
1849 |
+
#: link-library-admin.php:3946
|
1850 |
+
msgid "Show RSS Feed Content in Link Library output"
|
1851 |
+
msgstr "Afficher le contenu des flux d’informations RSS dans la page générée par Link Library"
|
1852 |
+
|
1853 |
+
#: link-library-admin.php:3952
|
1854 |
+
msgid "Number of RSS articles shown in Link Library Output"
|
1855 |
+
msgstr "Nombre d’articles RSS devant être affichés par Link Library"
|
1856 |
+
|
1857 |
+
#: link-library-admin.php:3957
|
1858 |
+
msgid "Max number of days since published"
|
1859 |
+
msgstr "Nombre maximum de jours depuis la publication"
|
1860 |
+
|
1861 |
+
#: link-library-admin.php:3961
|
1862 |
+
msgid "RSS Preview Width"
|
1863 |
+
msgstr "Largeur de l’aperçu du flux d’informations RSS"
|
1864 |
+
|
1865 |
+
#: link-library-admin.php:3964
|
1866 |
+
msgid "RSS Preview Height"
|
1867 |
+
msgstr "Hauteur de l’aperçu du flux d’informations RSS"
|
1868 |
+
|
1869 |
+
#: link-library-admin.php:3967
|
1870 |
+
msgid "Skip links with no RSS inline items"
|
1871 |
+
msgstr "Passer les liens sans flux RSS"
|
1872 |
+
|
1873 |
+
#: link-library-admin.php:3984
|
1874 |
+
msgid "Checking this option will get images from the Robothumb web site every time"
|
1875 |
+
msgstr "L’activation de cette option permet la récupération d’image du site internet Robothumb à chaque affichage de la page"
|
1876 |
+
|
1877 |
+
#: link-library-admin.php:3985
|
1878 |
+
msgid "Use thumbnail service for dynamic link images"
|
1879 |
+
msgstr "Utiliser le service thumbnail pour la génération dynamique de vignettes des liens"
|
1880 |
+
|
1881 |
+
#: link-library-admin.php:3987
|
1882 |
+
msgid "Checking this option will get images from the thumbshots web site every time"
|
1883 |
+
msgstr "L’activation de cette option permet la récupération d’image du site internet thumbshots.org à chaque affichage de la page"
|
1884 |
+
|
1885 |
+
#: link-library-admin.php:3995
|
1886 |
+
msgid "Give priority to images assigned to links if present"
|
1887 |
+
msgstr "Donner une priorité aux images liées aux liens si elles sont présentes"
|
1888 |
+
|
1889 |
+
#: link-library-admin.php:4003
|
1890 |
+
msgid "Generate Images / Favorite Icons"
|
1891 |
+
msgstr "Générer les images ou icônes de favoris"
|
1892 |
+
|
1893 |
+
#: link-library-admin.php:4005
|
1894 |
+
#: link-library-admin.php:4890
|
1895 |
+
msgid "This button is only available when a valid API key is entered under the Link Library General Settings."
|
1896 |
+
msgstr "Ce bouton est seulement disponible quand un CID valide est saisi dans les paramètres généraux de Link Library."
|
1897 |
+
|
1898 |
+
#: link-library-admin.php:4006
|
1899 |
+
msgid "Generate Thumbnails and Store locally"
|
1900 |
+
msgstr "Générer les vignettes et les conserver"
|
1901 |
+
|
1902 |
+
#: link-library-admin.php:4009
|
1903 |
+
msgid "Generate Favorite Icons and Store locally"
|
1904 |
+
msgstr "Générer les icônes de favoris et les conserver"
|
1905 |
+
|
1906 |
+
#: link-library-admin.php:4013
|
1907 |
+
msgid "Delete all local thumbnails and icons"
|
1908 |
+
msgstr "Supprimer toutes les mignatures et icônes locales"
|
1909 |
+
|
1910 |
+
#: link-library-admin.php:4014
|
1911 |
+
msgid "Delete all local thumbnails"
|
1912 |
+
msgstr "Supprimer toutes les miniatures locales"
|
1913 |
+
|
1914 |
+
#: link-library-admin.php:4015
|
1915 |
+
msgid "Delete all local icons"
|
1916 |
+
msgstr "Supprimer toutes les icônes locales"
|
1917 |
+
|
1918 |
+
#: link-library-admin.php:4031
|
1919 |
+
msgid "Publish RSS Feed"
|
1920 |
+
msgstr "Publier un flux d’informations RSS"
|
1921 |
+
|
1922 |
+
#: link-library-admin.php:4038
|
1923 |
+
msgid "Number of items in RSS feed"
|
1924 |
+
msgstr "Nombre d’éléments dans le flux d’informations RSS"
|
1925 |
+
|
1926 |
+
#: link-library-admin.php:4047
|
1927 |
+
msgid "RSS Feed Title"
|
1928 |
+
msgstr "Titre du flux d’informations RSS"
|
1929 |
+
|
1930 |
+
#: link-library-admin.php:4053
|
1931 |
+
msgid "RSS Feed Description"
|
1932 |
+
msgstr "Description du flux d’informations RSS"
|
1933 |
+
|
1934 |
+
#: link-library-admin.php:4059
|
1935 |
+
msgid "RSS Feed Web Address (default yoursite.com?link_library_rss_feed=1&settingset=1 )"
|
1936 |
+
msgstr "Adresse du fil de nouvelles RSS (défaut votresite.com ?link_library_rss_feed=1&settingset=1 )"
|
1937 |
+
|
1938 |
+
#: link-library-admin.php:4076
|
1939 |
+
msgid "Search Label"
|
1940 |
+
msgstr "Texte pour la recherche"
|
1941 |
+
|
1942 |
+
#: link-library-admin.php:4085
|
1943 |
+
msgid "Search Field Initial Text"
|
1944 |
+
msgstr "Texte initial dans le champ de recherche"
|
1945 |
+
|
1946 |
+
#: link-library-admin.php:4094
|
1947 |
+
msgid "Search No Results Text"
|
1948 |
+
msgstr "Message pour un résultat de recherche vide"
|
1949 |
+
|
1950 |
+
#: link-library-admin.php:4096
|
1951 |
+
#: link-library-defaults.php:226
|
1952 |
+
msgid "No links found matching your search criteria"
|
1953 |
+
msgstr "Aucun lien trouvé qui correspondent à vos critères de recherche"
|
1954 |
+
|
1955 |
+
#: link-library-admin.php:4103
|
1956 |
+
#: link-library-admin.php:4104
|
1957 |
+
msgid "Leave empty when links are to be displayed on same page as search box"
|
1958 |
+
msgstr "Laissez ce champ vide lorsque les liens sont affichés sur la même page que la boîte de recherche"
|
1959 |
+
|
1960 |
+
#: link-library-admin.php:4103
|
1961 |
+
msgid "Results Page Address"
|
1962 |
+
msgstr "Adresse de la page des résultats"
|
1963 |
+
|
1964 |
+
#: link-library-admin.php:4204
|
1965 |
+
msgid "Following this link shows a list of all links awaiting moderation"
|
1966 |
+
msgstr "Suivez ce lien pour afficher une liste des liens en attente de modération"
|
1967 |
+
|
1968 |
+
#: link-library-admin.php:4205
|
1969 |
+
msgid "View list of links awaiting moderation"
|
1970 |
+
msgstr "Visionner la liste des liens qui attendent d’être modérés"
|
1971 |
+
|
1972 |
+
#: link-library-admin.php:4209
|
1973 |
+
msgid "Show user links immediately"
|
1974 |
+
msgstr "Afficher immédiatement les liens soumis par les utilisateurs"
|
1975 |
+
|
1976 |
+
#: link-library-admin.php:4214
|
1977 |
+
msgid "E-mail admin on link submission"
|
1978 |
+
msgstr "Envoyer un e-mail à l’administrateur lors de la soumission"
|
1979 |
+
|
1980 |
+
#: link-library-admin.php:4220
|
1981 |
+
msgid "Validate links with Akismet"
|
1982 |
+
msgstr "Valider les liens avec Akismet"
|
1983 |
+
|
1984 |
+
#: link-library-admin.php:4224
|
1985 |
+
msgid "E-mail submitter"
|
1986 |
+
msgstr "Adresse e-mail de l’émetteur"
|
1987 |
+
|
1988 |
+
#: link-library-admin.php:4231
|
1989 |
+
msgid "Additional text for link submitter e-mail"
|
1990 |
+
msgstr "Text additionnel pour le lien de soumission du courriel"
|
1991 |
+
|
1992 |
+
#: link-library-admin.php:4238
|
1993 |
+
msgid "Require login to display form"
|
1994 |
+
msgstr "Nécessite une connexion pour afficher le formulaire"
|
1995 |
+
|
1996 |
+
#: link-library-admin.php:4243
|
1997 |
+
msgid "Allow link submission with empty link"
|
1998 |
+
msgstr "Accepter la soumission de liens sans adresse"
|
1999 |
+
|
2000 |
+
#: link-library-admin.php:4249
|
2001 |
+
#: link-library-admin.php:4250
|
2002 |
+
msgid "Determine if a captcha will be displayed on the user submission form. Select the captcha system (Easy Captcha or Google reCAPTCHA) to be used from General Options section"
|
2003 |
+
msgstr "Détermine si un captcha sera affiché dans le formulaire de soumission d’un lien. Choisir le type de captcha (Easy Captcha ou Google reCAPTCHA) à utiliser dans la section des options générales"
|
2004 |
+
|
2005 |
+
#: link-library-admin.php:4249
|
2006 |
+
msgid "Display captcha"
|
2007 |
+
msgstr "Afficher le captcha"
|
2008 |
+
|
2009 |
+
#: link-library-admin.php:4254
|
2010 |
+
msgid "This function will only store data when users are logged in to Wordpress"
|
2011 |
+
msgstr "Cette fonctionnalité ne peut être accessible qu’aux membres connectés à WordPress"
|
2012 |
+
|
2013 |
+
#: link-library-admin.php:4254
|
2014 |
+
msgid "Store login name on link submission"
|
2015 |
+
msgstr "Enregistrer le nom de l’utilisateur ayant soumis le lien"
|
2016 |
+
|
2017 |
+
#: link-library-admin.php:4260
|
2018 |
+
msgid "Add new link label"
|
2019 |
+
msgstr "Texte du champ d’ajout d’un nouveau lien"
|
2020 |
+
|
2021 |
+
#: link-library-admin.php:4262
|
2022 |
+
#: link-library-defaults.php:123
|
2023 |
+
#: render-link-library-addlink-sc.php:209
|
2024 |
+
msgid "Add new link"
|
2025 |
+
msgstr "Ajouter un nouveau lien"
|
2026 |
+
|
2027 |
+
#: link-library-admin.php:4269
|
2028 |
+
msgid "Link name label"
|
2029 |
+
msgstr "Texte pour le nom du lien"
|
2030 |
+
|
2031 |
+
#: link-library-admin.php:4279
|
2032 |
+
msgid "Link address label"
|
2033 |
+
msgstr "Texte pour l’adresse du lien"
|
2034 |
+
|
2035 |
+
#: link-library-admin.php:4281
|
2036 |
+
#: usersubmission.php:296
|
2037 |
+
#: usersubmission.php:386
|
2038 |
+
msgid "Link Address"
|
2039 |
+
msgstr "Adresse du lien"
|
2040 |
+
|
2041 |
+
#: link-library-admin.php:4288
|
2042 |
+
msgid "Link RSS label"
|
2043 |
+
msgstr "Texte du lien RSS"
|
2044 |
+
|
2045 |
+
#: link-library-admin.php:4290
|
2046 |
+
#: link-library-defaults.php:126
|
2047 |
+
#: render-link-library-addlink-sc.php:235
|
2048 |
+
#: usersubmission.php:299
|
2049 |
+
#: usersubmission.php:389
|
2050 |
+
msgid "Link RSS"
|
2051 |
+
msgstr "Flux RSS du lien"
|
2052 |
+
|
2053 |
+
#: link-library-admin.php:4297
|
2054 |
+
#: link-library-admin.php:4313
|
2055 |
+
#: link-library-admin.php:4392
|
2056 |
+
#: link-library-admin.php:4407
|
2057 |
+
#: link-library-admin.php:4438
|
2058 |
+
#: link-library-admin.php:4453
|
2059 |
+
#: link-library-admin.php:4469
|
2060 |
+
#: link-library-admin.php:4484
|
2061 |
+
#: link-library-admin.php:4500
|
2062 |
+
#: link-library-admin.php:4515
|
2063 |
+
#: link-library-admin.php:4531
|
2064 |
+
#: link-library-admin.php:4546
|
2065 |
+
#: link-library-admin.php:4562
|
2066 |
+
msgid "Hide"
|
2067 |
+
msgstr "Masquer"
|
2068 |
+
|
2069 |
+
#: link-library-admin.php:4298
|
2070 |
+
#: link-library-admin.php:4314
|
2071 |
+
#: link-library-admin.php:4393
|
2072 |
+
#: link-library-admin.php:4408
|
2073 |
+
#: link-library-admin.php:4439
|
2074 |
+
#: link-library-admin.php:4454
|
2075 |
+
#: link-library-admin.php:4470
|
2076 |
+
#: link-library-admin.php:4485
|
2077 |
+
#: link-library-admin.php:4501
|
2078 |
+
#: link-library-admin.php:4516
|
2079 |
+
#: link-library-admin.php:4532
|
2080 |
+
#: link-library-admin.php:4547
|
2081 |
+
#: link-library-admin.php:4563
|
2082 |
+
msgid "Show"
|
2083 |
+
msgstr "Afficher"
|
2084 |
+
|
2085 |
+
#: link-library-admin.php:4299
|
2086 |
+
#: link-library-admin.php:4394
|
2087 |
+
#: link-library-admin.php:4409
|
2088 |
+
#: link-library-admin.php:4440
|
2089 |
+
#: link-library-admin.php:4455
|
2090 |
+
#: link-library-admin.php:4471
|
2091 |
+
#: link-library-admin.php:4486
|
2092 |
+
#: link-library-admin.php:4502
|
2093 |
+
#: link-library-admin.php:4517
|
2094 |
+
#: link-library-admin.php:4533
|
2095 |
+
#: link-library-admin.php:4548
|
2096 |
+
msgid "Required"
|
2097 |
+
msgstr "Obligatoire"
|
2098 |
+
|
2099 |
+
#: link-library-admin.php:4304
|
2100 |
+
msgid "Link category label"
|
2101 |
+
msgstr "Texte pour la catégorie du lien"
|
2102 |
+
|
2103 |
+
#: link-library-admin.php:4318
|
2104 |
+
msgid "Comma-seperated list of categories to be displayed in category selection box (e.g. 1,5,4) instead of displaying the set of categories specified by the library."
|
2105 |
+
msgstr "Liste de catégories séparées par des virgules pour être affichées dans la liste de sélection de catégories (e.g. 1,5,4) au lieu de celles spécifiées par la configuration des catégories de la librairie."
|
2106 |
+
|
2107 |
+
#: link-library-admin.php:4318
|
2108 |
+
msgid "Link category override selection list"
|
2109 |
+
msgstr "Liste de catégories de remplacement"
|
2110 |
+
|
2111 |
+
#: link-library-admin.php:4319
|
2112 |
+
msgid "Comma-seperated list of categories to be displayed in category selection box (e.g. 1,5,4)"
|
2113 |
+
msgstr "Liste de catégories séparées par des virgules qui doivent être affichées dans la liste de sélection de catégories présentée aux usagers."
|
2114 |
+
|
2115 |
+
#: link-library-admin.php:4324
|
2116 |
+
msgid "Default category"
|
2117 |
+
msgstr "Catégorie par défaut"
|
2118 |
+
|
2119 |
+
#: link-library-admin.php:4359
|
2120 |
+
#: link-library-admin.php:4361
|
2121 |
+
#: link-library-defaults.php:154
|
2122 |
+
msgid "User-submitted category"
|
2123 |
+
msgstr "Catégorie soumise par l’utilisateur"
|
2124 |
+
|
2125 |
+
#: link-library-admin.php:4368
|
2126 |
+
msgid "No"
|
2127 |
+
msgstr "Non"
|
2128 |
+
|
2129 |
+
#: link-library-admin.php:4369
|
2130 |
+
msgid "Allow"
|
2131 |
+
msgstr "Permettre"
|
2132 |
+
|
2133 |
+
#: link-library-admin.php:4373
|
2134 |
+
msgid "User-submitted category prompt"
|
2135 |
+
msgstr "Texte pour la soumission de catégories par l’utilisateur"
|
2136 |
+
|
2137 |
+
#: link-library-admin.php:4375
|
2138 |
+
#: link-library-defaults.php:155
|
2139 |
+
#: render-link-library-addlink-sc.php:289
|
2140 |
+
msgid "User-submitted category (define below)"
|
2141 |
+
msgstr "Catégorie définie par l’usager (définir ci-dessous)"
|
2142 |
+
|
2143 |
+
#: link-library-admin.php:4383
|
2144 |
+
msgid "Link description label"
|
2145 |
+
msgstr "Texte pour la description du lien"
|
2146 |
+
|
2147 |
+
#: link-library-admin.php:4398
|
2148 |
+
msgid "Link notes label"
|
2149 |
+
msgstr "Texte pour les notes du lien"
|
2150 |
+
|
2151 |
+
#: link-library-admin.php:4414
|
2152 |
+
#: link-library-admin.php:4415
|
2153 |
+
msgid "Reciprocal link must be configured for this option to work correctly"
|
2154 |
+
msgstr "Les liens réciproques doivent être autorisés pour que cette option fonctionne correctement"
|
2155 |
+
|
2156 |
+
#: link-library-admin.php:4414
|
2157 |
+
msgid "Show immediately if reciprocal link valid"
|
2158 |
+
msgstr "Montre immédiatement si le lien réciproque est valide"
|
2159 |
+
|
2160 |
+
#: link-library-admin.php:4418
|
2161 |
+
msgid "Use Text Area for Notes"
|
2162 |
+
msgstr "Utiliser une zone de texte pour les notes"
|
2163 |
+
|
2164 |
+
#: link-library-admin.php:4423
|
2165 |
+
msgid "Only allow one reciprocal link per domain"
|
2166 |
+
msgstr "Autoriser seulement un lien reciproque par domaine"
|
2167 |
+
|
2168 |
+
#: link-library-admin.php:4429
|
2169 |
+
msgid "Reciprocal Link label"
|
2170 |
+
msgstr "Texte du lien réciproque"
|
2171 |
+
|
2172 |
+
#: link-library-admin.php:4431
|
2173 |
+
#: link-library-admin.php:4826
|
2174 |
+
#: link-library-defaults.php:170
|
2175 |
+
#: render-link-library-addlink-sc.php:392
|
2176 |
+
#: usersubmission.php:317
|
2177 |
+
#: usersubmission.php:407
|
2178 |
+
msgid "Reciprocal Link"
|
2179 |
+
msgstr "Lien réciproque"
|
2180 |
+
|
2181 |
+
#: link-library-admin.php:4444
|
2182 |
+
msgid "Secondary Address label"
|
2183 |
+
msgstr "Texte de l’adresse secondaire"
|
2184 |
+
|
2185 |
+
#: link-library-admin.php:4446
|
2186 |
+
#: link-library-defaults.php:172
|
2187 |
+
#: render-link-library-addlink-sc.php:410
|
2188 |
+
msgid "Secondary Address"
|
2189 |
+
msgstr "Adresse secondaire"
|
2190 |
+
|
2191 |
+
#: link-library-admin.php:4460
|
2192 |
+
msgid "Link Telephone label"
|
2193 |
+
msgstr "Texte du numéro de téléphone"
|
2194 |
+
|
2195 |
+
#: link-library-admin.php:4475
|
2196 |
+
msgid "Link E-mail label"
|
2197 |
+
msgstr "Texte pour l’adresse électronique"
|
2198 |
+
|
2199 |
+
#: link-library-admin.php:4491
|
2200 |
+
msgid "Link Submitter Name label"
|
2201 |
+
msgstr "Texte pour le nom d’utilisateur ayant soumis le lien"
|
2202 |
+
|
2203 |
+
#: link-library-admin.php:4506
|
2204 |
+
msgid "Link Submitter E-mail label"
|
2205 |
+
msgstr "Texte pour l’adresse électronique de l’utilisateur ayant soumis le lien"
|
2206 |
+
|
2207 |
+
#: link-library-admin.php:4508
|
2208 |
+
#: link-library-defaults.php:190
|
2209 |
+
#: render-link-library-addlink-sc.php:495
|
2210 |
+
msgid "Submitter E-mail"
|
2211 |
+
msgstr "E-mail de l’utilisateur ayant soumis le lien"
|
2212 |
+
|
2213 |
+
#: link-library-admin.php:4522
|
2214 |
+
msgid "Link Submitter Comment Label"
|
2215 |
+
msgstr "Texte pour les commentaires du lien"
|
2216 |
+
|
2217 |
+
#: link-library-admin.php:4524
|
2218 |
+
#: link-library-defaults.php:192
|
2219 |
+
#: render-link-library-addlink-sc.php:526
|
2220 |
+
msgid "Submitter Comment"
|
2221 |
+
msgstr "Commentaire de l’utilisateur soumettant le lien"
|
2222 |
+
|
2223 |
+
#: link-library-admin.php:4537
|
2224 |
+
msgid "Large Description Label"
|
2225 |
+
msgstr "Texte de la grande description du lien"
|
2226 |
+
|
2227 |
+
#: link-library-admin.php:4539
|
2228 |
+
#: link-library-defaults.php:205
|
2229 |
+
msgid "Large Description"
|
2230 |
+
msgstr "Grande description du lien"
|
2231 |
+
|
2232 |
+
#: link-library-admin.php:4553
|
2233 |
+
msgid "Custom Captcha Question"
|
2234 |
+
msgstr "Question de captcha personalisée"
|
2235 |
+
|
2236 |
+
#: link-library-admin.php:4555
|
2237 |
+
#: link-library-defaults.php:199
|
2238 |
+
#: render-link-library-addlink-sc.php:544
|
2239 |
+
msgid "Is boiling water hot or cold?"
|
2240 |
+
msgstr "Est-ce que l’eau bouillante est froide ou chaude ?"
|
2241 |
+
|
2242 |
+
#: link-library-admin.php:4567
|
2243 |
+
msgid "Custom Captcha Answer"
|
2244 |
+
msgstr "Réponse à la question du captcha"
|
2245 |
+
|
2246 |
+
#: link-library-admin.php:4569
|
2247 |
+
#: link-library-defaults.php:200
|
2248 |
+
msgid "hot"
|
2249 |
+
msgstr "chaude"
|
2250 |
+
|
2251 |
+
#: link-library-admin.php:4576
|
2252 |
+
msgid "Add Link button label"
|
2253 |
+
msgstr "Texte du bouton d’ajout de lien"
|
2254 |
+
|
2255 |
+
#: link-library-admin.php:4578
|
2256 |
+
#: link-library-defaults.php:130
|
2257 |
+
msgid "Add Link"
|
2258 |
+
msgstr "Ajouter un lien"
|
2259 |
+
|
2260 |
+
#: link-library-admin.php:4585
|
2261 |
+
msgid "New Link Message"
|
2262 |
+
msgstr "Message pour les nouveaux liens"
|
2263 |
+
|
2264 |
+
#: link-library-admin.php:4587
|
2265 |
+
msgid "New link submitted"
|
2266 |
+
msgstr "Nouveau lien soumis"
|
2267 |
+
|
2268 |
+
#: link-library-admin.php:4594
|
2269 |
+
msgid "New Link Moderation Label"
|
2270 |
+
msgstr "Message pour les liens devant être modérés"
|
2271 |
+
|
2272 |
+
#: link-library-admin.php:4596
|
2273 |
+
msgid "it will appear in the list once moderated. Thank you."
|
2274 |
+
msgstr "il apparaîtra dans la liste une fois modéré. Merci."
|
2275 |
+
|
2276 |
+
#: link-library-admin.php:4617
|
2277 |
+
msgid "Allows for links to be added in batch to the Wordpress links database. CSV file needs to follow template for column layout."
|
2278 |
+
msgstr "Permets d’ajouter des liens en masse dans la base de données de liens de WordPress. Le fichier CSV doit suivre le format établi dans l’exemple."
|
2279 |
+
|
2280 |
+
#: link-library-admin.php:4617
|
2281 |
+
msgid "CSV file to upload to import links"
|
2282 |
+
msgstr "Fichier CSV à téléverser pour importer des liens"
|
2283 |
+
|
2284 |
+
#: link-library-admin.php:4617
|
2285 |
+
msgid "file template"
|
2286 |
+
msgstr "example de fichier"
|
2287 |
+
|
2288 |
+
#: link-library-admin.php:4620
|
2289 |
+
msgid "Import Links from CSV"
|
2290 |
+
msgstr "Importer les liens depuis un CSV"
|
2291 |
+
|
2292 |
+
#: link-library-admin.php:4624
|
2293 |
+
msgid "First row contains column headers"
|
2294 |
+
msgstr "La première ligne contient les en-têtes"
|
2295 |
+
|
2296 |
+
#: link-library-admin.php:4628
|
2297 |
+
#: link-library-admin.php:4659
|
2298 |
+
msgid "Update items when URL is identical"
|
2299 |
+
msgstr "Mettre à jour les éléments quand les URLs sont identiques"
|
2300 |
+
|
2301 |
+
#: link-library-admin.php:4636
|
2302 |
+
msgid "Import links from site pages"
|
2303 |
+
msgstr "Importer les liens depuis les pages du site"
|
2304 |
+
|
2305 |
+
#: link-library-admin.php:4637
|
2306 |
+
msgid "All Pages and Posts"
|
2307 |
+
msgstr "Toutes les pages et les articles"
|
2308 |
+
|
2309 |
+
#: link-library-admin.php:4638
|
2310 |
+
msgid "All Pages, Posts and Custom Post Types"
|
2311 |
+
msgstr "Toutes les pages, articles et types d’article personalisés"
|
2312 |
+
|
2313 |
+
#: link-library-admin.php:4639
|
2314 |
+
msgid "Specific Page"
|
2315 |
+
msgstr "Page spécifique"
|
2316 |
+
|
2317 |
+
#: link-library-admin.php:4643
|
2318 |
+
msgid "Specific Post"
|
2319 |
+
msgstr "Article spécifique"
|
2320 |
+
|
2321 |
+
#: link-library-admin.php:4653
|
2322 |
+
msgid "Specific "
|
2323 |
+
msgstr "Spécifique"
|
2324 |
+
|
2325 |
+
#: link-library-admin.php:4689
|
2326 |
+
msgid "Import Links from Site"
|
2327 |
+
msgstr "Importer les liens depuis le site"
|
2328 |
+
|
2329 |
+
#: link-library-admin.php:4697
|
2330 |
+
msgid "Overwrites current library settings with contents of CSV file"
|
2331 |
+
msgstr "Écrase la configuration de librairie courante avec le contenu du fichier CSV"
|
2332 |
+
|
2333 |
+
#: link-library-admin.php:4697
|
2334 |
+
msgid "Library Settings CSV file to import"
|
2335 |
+
msgstr "Fichier CSV contenant une configuration de librairie à importer"
|
2336 |
+
|
2337 |
+
#: link-library-admin.php:4700
|
2338 |
+
msgid "Import Library Settings"
|
2339 |
+
msgstr "Importer une configuration de librairie"
|
2340 |
+
|
2341 |
+
#: link-library-admin.php:4704
|
2342 |
+
msgid "Generates CSV file with current library configuration for download"
|
2343 |
+
msgstr "Générer un fichier CSV contenant la configuration de la librairie courante afin de la télécharger"
|
2344 |
+
|
2345 |
+
#: link-library-admin.php:4704
|
2346 |
+
msgid "Export current library settings"
|
2347 |
+
msgstr "Exporter la configuration de la librairie courante"
|
2348 |
+
|
2349 |
+
#: link-library-admin.php:4706
|
2350 |
+
msgid "Export Library Settings"
|
2351 |
+
msgstr "Exporter la configuration de la librairie"
|
2352 |
+
|
2353 |
+
#: link-library-admin.php:4719
|
2354 |
+
msgid "Search string"
|
2355 |
+
msgstr "Chaîne de recherche"
|
2356 |
+
|
2357 |
+
#: link-library-admin.php:4725
|
2358 |
+
msgid "Delete links that return a 403 error"
|
2359 |
+
msgstr "Supprimer les liens qui retournent une erreur 403"
|
2360 |
+
|
2361 |
+
#: link-library-admin.php:4733
|
2362 |
+
msgid "Check Reciprocal Links"
|
2363 |
+
msgstr "Vérifier les liens réciproques"
|
2364 |
+
|
2365 |
+
#: link-library-admin.php:4739
|
2366 |
+
msgid "Check Broken Links"
|
2367 |
+
msgstr "Vérifier les liens"
|
2368 |
+
|
2369 |
+
#: link-library-admin.php:4744
|
2370 |
+
msgid "Check Duplicate Links"
|
2371 |
+
msgstr "Vérifier les liens en double"
|
2372 |
+
|
2373 |
+
#: link-library-admin.php:4784
|
2374 |
+
msgid "Featured Link"
|
2375 |
+
msgstr "Lien mis en avant"
|
2376 |
+
|
2377 |
+
#: link-library-admin.php:4790
|
2378 |
+
msgid "No Follow"
|
2379 |
+
msgstr "No Follow"
|
2380 |
+
|
2381 |
+
#: link-library-admin.php:4796
|
2382 |
+
msgid "Updated Date"
|
2383 |
+
msgstr "Date de mise à jour"
|
2384 |
+
|
2385 |
+
#: link-library-admin.php:4807
|
2386 |
+
msgid "Secondary Web Address"
|
2387 |
+
msgstr "Adresse internet secondaire"
|
2388 |
+
|
2389 |
+
#: link-library-admin.php:4810
|
2390 |
+
#: link-library-admin.php:4829
|
2391 |
+
msgid "Visit"
|
2392 |
+
msgstr "Visiter"
|
2393 |
+
|
2394 |
+
#: link-library-admin.php:4833
|
2395 |
+
msgid "Number of link views"
|
2396 |
+
msgstr "Nombre de visites du lien"
|
2397 |
+
|
2398 |
+
#: link-library-admin.php:4839
|
2399 |
+
msgid "Link Submitter"
|
2400 |
+
msgstr "Utilisateur ayant soumis le lien"
|
2401 |
+
|
2402 |
+
#: link-library-admin.php:4845
|
2403 |
+
#: usersubmission.php:333
|
2404 |
+
#: usersubmission.php:423
|
2405 |
+
msgid "Link Submitter Name"
|
2406 |
+
msgstr "Nom de l’utilisateur ayant soumis le lien"
|
2407 |
+
|
2408 |
+
#: link-library-admin.php:4851
|
2409 |
+
#: usersubmission.php:337
|
2410 |
+
#: usersubmission.php:427
|
2411 |
+
msgid "Link Submitter E-mail"
|
2412 |
+
msgstr "E-mail de l’utilisateur ayant soumis le lien"
|
2413 |
+
|
2414 |
+
#: link-library-admin.php:4857
|
2415 |
+
msgid "Link Additional Rel Tags"
|
2416 |
+
msgstr "Détails additionnels pour les tags Rel"
|
2417 |
+
|
2418 |
+
#: link-library-admin.php:4875
|
2419 |
+
msgid "Current Link Image"
|
2420 |
+
msgstr "Image assignée au lien"
|
2421 |
+
|
2422 |
+
#: link-library-admin.php:4881
|
2423 |
+
msgid "None Assigned"
|
2424 |
+
msgstr "Non disponible"
|
2425 |
+
|
2426 |
+
#: link-library-admin.php:4888
|
2427 |
+
#: link-library-admin.php:4898
|
2428 |
+
msgid "Automatic Image Generation"
|
2429 |
+
msgstr "Génération automatique des images"
|
2430 |
+
|
2431 |
+
#: link-library-admin.php:4892
|
2432 |
+
msgid "Generate Thumbnail and Store locally"
|
2433 |
+
msgstr "Générer la vignette Thumbnail et la conserver"
|
2434 |
+
|
2435 |
+
#: link-library-admin.php:4893
|
2436 |
+
msgid "Generate Favorite Icon and Store locally"
|
2437 |
+
msgstr "Générer l’icône de favori et la conserver"
|
2438 |
+
|
2439 |
+
#: link-library-admin.php:4899
|
2440 |
+
msgid "Only available once link is saved"
|
2441 |
+
msgstr "Seulement disponible lorsque le lien est sauvegardé"
|
2442 |
+
|
2443 |
+
#: link-library-admin.php:4904
|
2444 |
+
msgid "Manual Image Upload"
|
2445 |
+
msgstr "Téléchargement manuel de l’image"
|
2446 |
+
|
2447 |
+
#: link-library-admin.php:4906
|
2448 |
+
msgid "Launch Media Uploader"
|
2449 |
+
msgstr "Démarrer le gestionnaire de téléchargement des médias"
|
2450 |
+
|
2451 |
+
#: link-library-admin.php:4911
|
2452 |
+
msgid "Manual upload requires a wp-content\\uploads directory to be present with write permissions"
|
2453 |
+
msgstr "Le téléchargement manuel requiert la présence du répertoire wp-content\\uploads avec des permissions d’écriture"
|
2454 |
+
|
2455 |
+
#: link-library-admin.php:5012
|
2456 |
+
msgid "Cannot generate thumbnail when no name and no web address are specified."
|
2457 |
+
msgstr "Il n’est pas possible de générer de vignette puisque qu’aucun nom ou adresse web n’est spécifiée."
|
2458 |
+
|
2459 |
+
#: link-library-admin.php:5048
|
2460 |
+
msgid "Cannot generate favorite icon when no name and no web address are specified."
|
2461 |
+
msgstr "Il n’est pas possible de générer l’icône de favori puisque qu’aucun nom ou adresse web n’est spécifiée."
|
2462 |
+
|
2463 |
+
#: link-library-admin.php:5261
|
2464 |
+
msgid "Duplicate Link Checker Report"
|
2465 |
+
msgstr "Rapport du vérificateur de liens en double"
|
2466 |
+
|
2467 |
+
#: link-library-admin.php:5263
|
2468 |
+
msgid "Duplicate URLs"
|
2469 |
+
msgstr "URLs en double"
|
2470 |
+
|
2471 |
+
#: link-library-admin.php:5279
|
2472 |
+
msgid "Duplicate Names"
|
2473 |
+
msgstr "Nom en double"
|
2474 |
+
|
2475 |
+
#: link-library-admin.php:5322
|
2476 |
+
msgid "Reciprocal Link Checker Report"
|
2477 |
+
msgstr "Rapport du vérificateur de liens réciproques"
|
2478 |
+
|
2479 |
+
#: link-library-admin.php:5324
|
2480 |
+
msgid "Broken Link Checker Report"
|
2481 |
+
msgstr "Rapport du vérificateur de liens cassés"
|
2482 |
+
|
2483 |
+
#: link-library-admin.php:5340
|
2484 |
+
msgid "Not Found"
|
2485 |
+
msgstr "Pas trouvé"
|
2486 |
+
|
2487 |
+
#: link-library-admin.php:5342
|
2488 |
+
msgid "OK"
|
2489 |
+
msgstr "OK"
|
2490 |
+
|
2491 |
+
#: link-library-admin.php:5344
|
2492 |
+
msgid "Link valid"
|
2493 |
+
msgstr "Lien valide"
|
2494 |
+
|
2495 |
+
#: link-library-admin.php:5347
|
2496 |
+
msgid "Error 403: Link Deleted"
|
2497 |
+
msgstr "Erreur 403 : Lien supprimé"
|
2498 |
+
|
2499 |
+
#: link-library-admin.php:5349
|
2500 |
+
msgid "Error 403"
|
2501 |
+
msgstr "Erreur 403"
|
2502 |
+
|
2503 |
+
#: link-library-admin.php:5351
|
2504 |
+
msgid "Website Unreachable"
|
2505 |
+
msgstr "Site Web non joignable"
|
2506 |
+
|
2507 |
+
#: link-library-admin.php:5355
|
2508 |
+
msgid "There are no links with reciprocal links associated with them"
|
2509 |
+
msgstr "Il n’y a pas de liens avec des liens réciproques associés"
|
2510 |
+
|
2511 |
+
# Plugin name; please avoid translating if possible
|
2512 |
+
#: link-library-admin.php:5362
|
2513 |
+
msgid "Add Link Library Shortcode"
|
2514 |
+
msgstr "Ajouter le code court de Link Library"
|
2515 |
+
|
2516 |
+
#: link-library-defaults.php:124
|
2517 |
+
#: render-link-library-addlink-sc.php:217
|
2518 |
+
msgid "Link name"
|
2519 |
+
msgstr "Nom du lien"
|
2520 |
+
|
2521 |
+
#: link-library-defaults.php:125
|
2522 |
+
#: render-link-library-addlink-sc.php:223
|
2523 |
+
msgid "Link address"
|
2524 |
+
msgstr "Adresse du lien"
|
2525 |
+
|
2526 |
+
#: link-library-defaults.php:131
|
2527 |
+
msgid "New link submitted."
|
2528 |
+
msgstr "Nouveau lien soumis."
|
2529 |
+
|
2530 |
+
#: link-library-defaults.php:132
|
2531 |
+
msgid "It will appear in the list once moderated. Thank you."
|
2532 |
+
msgstr "Il apparaîtra dans la liste une fois modéré. Merci."
|
2533 |
+
|
2534 |
+
#: link-library-defaults.php:149
|
2535 |
+
msgid "Link Library-Generated RSS Feed"
|
2536 |
+
msgstr "Link Library-Flux d’informations généré"
|
2537 |
+
|
2538 |
+
#: link-library-defaults.php:150
|
2539 |
+
msgid "Description of Link Library-Generated Feed"
|
2540 |
+
msgstr "Description du flux d’informations généré par Link Library"
|
2541 |
+
|
2542 |
+
#: link-library-defaults.php:212
|
2543 |
+
#: linkpopup.php:64
|
2544 |
+
msgid "%link_image%<br />Click through to visit %link_name%."
|
2545 |
+
msgstr "%link_image%<br />Cliquer pour visiter %link_name%."
|
2546 |
+
|
2547 |
+
#: link-library-defaults.php:225
|
2548 |
+
msgid "Search..."
|
2549 |
+
msgstr "Rechercher..."
|
2550 |
+
|
2551 |
+
#: link-library-defaults.php:227
|
2552 |
+
msgid "Category Filter"
|
2553 |
+
msgstr "Filtre des catégories"
|
2554 |
+
|
2555 |
+
#: link-library-defaults.php:241
|
2556 |
+
msgid "New"
|
2557 |
+
msgstr "Nouveau"
|
2558 |
+
|
2559 |
+
#: link-library.php:417
|
2560 |
+
msgid "Link Library Generated Feed"
|
2561 |
+
msgstr "Flux d’informations généré par Link Library"
|
2562 |
+
|
2563 |
+
#: link-library.php:611
|
2564 |
+
msgid "Could not update link in the database"
|
2565 |
+
msgstr "Le lien n’a pas pu être mis à jour dans la base de données"
|
2566 |
+
|
2567 |
+
#: link-library.php:618
|
2568 |
+
msgid "Could not insert link into the database"
|
2569 |
+
msgstr "Le lien n’a pas pu être inséré dans la base de données"
|
2570 |
+
|
2571 |
+
#: link-library.php:640
|
2572 |
+
#: link-library.php:644
|
2573 |
+
msgid "Link Library no longer supports calling this function with individual arguments. Please use the admin panel to configure Link Library and the do_shortcode function to use Link Library output in your code."
|
2574 |
+
msgstr "Link Library ne supporte plus un appel à cette fonction avec des arguments. Merci d’utiliser le panneau d’administration pour paramétrer Link Library et la fonction do_shortcode pour utiliser le rendu de Link Library dans votre code."
|
2575 |
+
|
2576 |
+
#: render-link-library-addlink-sc.php:137
|
2577 |
+
msgid "Confirm code not given"
|
2578 |
+
msgstr "Le code de confirmation n’a pas été saisi"
|
2579 |
+
|
2580 |
+
#: render-link-library-addlink-sc.php:139
|
2581 |
+
msgid "Captcha code is wrong"
|
2582 |
+
msgstr "Le code du captcha est incorrect"
|
2583 |
+
|
2584 |
+
#: render-link-library-addlink-sc.php:141
|
2585 |
+
msgid "Captcha code is only valid for 5 minutes"
|
2586 |
+
msgstr "Le code du captcha n’est valide que durant 5 minutes"
|
2587 |
+
|
2588 |
+
#: render-link-library-addlink-sc.php:143
|
2589 |
+
msgid "No captcha cookie given. Make sure cookies are enabled"
|
2590 |
+
msgstr "Le cookie pour le code du captcha est absent. Veuillez vous assurer que les cookies sont activés."
|
2591 |
+
|
2592 |
+
#: render-link-library-addlink-sc.php:145
|
2593 |
+
msgid "Captcha answer was not provided."
|
2594 |
+
msgstr "La réponse à la question du captcha n’a pas été fournie."
|
2595 |
+
|
2596 |
+
#: render-link-library-addlink-sc.php:147
|
2597 |
+
msgid "Captcha answer is incorrect"
|
2598 |
+
msgstr "La réponse à la question du captcha est incorrecte"
|
2599 |
+
|
2600 |
+
#: render-link-library-addlink-sc.php:149
|
2601 |
+
msgid "User Category was not provided correctly. Link insertion failed."
|
2602 |
+
msgstr "La catégorie spécifiée par l’utilisateur n’a pas été correctement saisie. L’ajout du lien a échoué."
|
2603 |
+
|
2604 |
+
#: render-link-library-addlink-sc.php:157
|
2605 |
+
msgid "Error: Link does not have an address."
|
2606 |
+
msgstr "Erreur : Le lien n’a pas d’adresse spécifiée."
|
2607 |
+
|
2608 |
+
#: render-link-library-addlink-sc.php:159
|
2609 |
+
msgid "Error: Link already exists."
|
2610 |
+
msgstr "Erreur : Ce lien existe déjà."
|
2611 |
+
|
2612 |
+
#: render-link-library-addlink-sc.php:161
|
2613 |
+
#: render-link-library-addlink-sc.php:163
|
2614 |
+
#: render-link-library-addlink-sc.php:165
|
2615 |
+
#: render-link-library-addlink-sc.php:167
|
2616 |
+
#: render-link-library-addlink-sc.php:169
|
2617 |
+
#: render-link-library-addlink-sc.php:171
|
2618 |
+
#: render-link-library-addlink-sc.php:173
|
2619 |
+
#: render-link-library-addlink-sc.php:175
|
2620 |
+
#: render-link-library-addlink-sc.php:177
|
2621 |
+
#: render-link-library-addlink-sc.php:179
|
2622 |
+
#: render-link-library-addlink-sc.php:181
|
2623 |
+
msgid " is a required field"
|
2624 |
+
msgstr " est un champ obligatoire"
|
2625 |
+
|
2626 |
+
#: render-link-library-addlink-sc.php:183
|
2627 |
+
msgid "Link submission error"
|
2628 |
+
msgstr "Erreur lors de l’enregistrement du lien"
|
2629 |
+
|
2630 |
+
#: render-link-library-addlink-sc.php:185
|
2631 |
+
msgid "Link rejected. There is already a site with this reciprocal link."
|
2632 |
+
msgstr "Lien refusé. Il existe déjà un site avec ce lien réciproque."
|
2633 |
+
|
2634 |
+
#: render-link-library-addlink-sc.php:220
|
2635 |
+
#: render-link-library-addlink-sc.php:282
|
2636 |
+
#: render-link-library-addlink-sc.php:348
|
2637 |
+
#: render-link-library-addlink-sc.php:365
|
2638 |
+
#: render-link-library-addlink-sc.php:373
|
2639 |
+
#: render-link-library-addlink-sc.php:421
|
2640 |
+
#: render-link-library-addlink-sc.php:439
|
2641 |
+
#: render-link-library-addlink-sc.php:532
|
2642 |
+
#: render-link-library-addlink-sc.php:547
|
2643 |
+
msgid "Required field"
|
2644 |
+
msgstr "Champ obligatoire"
|
2645 |
+
|
2646 |
+
#: render-link-library-addlink-sc.php:228
|
2647 |
+
msgid "Required field, URL"
|
2648 |
+
msgstr "Champ obligatoire, URL"
|
2649 |
+
|
2650 |
+
#: render-link-library-addlink-sc.php:246
|
2651 |
+
#: render-link-library-addlink-sc.php:335
|
2652 |
+
#: render-link-library-addlink-sc.php:403
|
2653 |
+
msgid "Required field, 1-255 chars"
|
2654 |
+
msgstr "Champ obligatoire, 1 à 255 caractères"
|
2655 |
+
|
2656 |
+
#: render-link-library-addlink-sc.php:278
|
2657 |
+
msgid "Link category"
|
2658 |
+
msgstr "Catégorie du lien"
|
2659 |
+
|
2660 |
+
#: render-link-library-addlink-sc.php:285
|
2661 |
+
msgid "Select a category"
|
2662 |
+
msgstr "Choisir une catégorie"
|
2663 |
+
|
2664 |
+
#: render-link-library-addlink-sc.php:324
|
2665 |
+
msgid "Link description"
|
2666 |
+
msgstr "Description du lien"
|
2667 |
+
|
2668 |
+
#: render-link-library-addlink-sc.php:342
|
2669 |
+
msgid "Large description"
|
2670 |
+
msgstr "Grande Description du lien"
|
2671 |
+
|
2672 |
+
#: render-link-library-addlink-sc.php:356
|
2673 |
+
msgid "Link notes"
|
2674 |
+
msgstr "Notes du lien"
|
2675 |
+
|
2676 |
+
#: render-link-library-addlink-sc.php:457
|
2677 |
+
msgid "Required field, proper e-mail, 1-128 chars"
|
2678 |
+
msgstr "Champ obligatoire, adresse e-mail correcte, 1 à 128 caractères"
|
2679 |
+
|
2680 |
+
#: render-link-library-addlink-sc.php:488
|
2681 |
+
#: render-link-library-addlink-sc.php:519
|
2682 |
+
msgid "Required field, 1-128 chars"
|
2683 |
+
msgstr "Champ obligatoire, 1 à 128 caractères"
|
2684 |
+
|
2685 |
+
#: render-link-library-addlink-sc.php:553
|
2686 |
+
msgid "Add link"
|
2687 |
+
msgstr "Ajouter un lien"
|
2688 |
+
|
2689 |
+
#: render-link-library-addlink-sc.php:565
|
2690 |
+
msgid "Form submission failed!"
|
2691 |
+
msgstr "Erreur lors de l’envoi du formulaire !"
|
2692 |
+
|
2693 |
+
#: render-link-library-addlink-sc.php:566
|
2694 |
+
msgid "You have not answered all required fields"
|
2695 |
+
msgstr "Vous n’avez pas remplis tous les champs obligatoires"
|
2696 |
+
|
2697 |
+
#: render-link-library-addlink-sc.php:567
|
2698 |
+
msgid "You have not given a correct time"
|
2699 |
+
msgstr "Vous n’avez pas donné une heure correcte"
|
2700 |
+
|
2701 |
+
#: render-link-library-addlink-sc.php:568
|
2702 |
+
msgid "You have not given a correct e-mail address"
|
2703 |
+
msgstr "Vous n’avez pas donné une adresse e-mail correcte"
|
2704 |
+
|
2705 |
+
#: render-link-library-addlink-sc.php:569
|
2706 |
+
msgid "You have not given a correct phone number"
|
2707 |
+
msgstr "Vous n’avez pas donné un numéro de téléphone correct"
|
2708 |
+
|
2709 |
+
#: render-link-library-addlink-sc.php:570
|
2710 |
+
msgid "You have not given a correct answer to the security question"
|
2711 |
+
msgstr "Vous n’avez pas donné une réponse correcte à la question de sécurité"
|
2712 |
+
|
2713 |
+
#: render-link-library-addlink-sc.php:571
|
2714 |
+
msgid "You have not given a correct date"
|
2715 |
+
msgstr "Vous n’avez pas donné une date correcte"
|
2716 |
+
|
2717 |
+
#: render-link-library-addlink-sc.php:572
|
2718 |
+
msgid "The input value must be between "
|
2719 |
+
msgstr "La valeur doit être entre "
|
2720 |
+
|
2721 |
+
#: render-link-library-addlink-sc.php:573
|
2722 |
+
msgid "characters"
|
2723 |
+
msgstr "caractères"
|
2724 |
+
|
2725 |
+
#: render-link-library-addlink-sc.php:574
|
2726 |
+
msgid "The input value is longer than "
|
2727 |
+
msgstr "La valeur est plus longue que "
|
2728 |
+
|
2729 |
+
#: render-link-library-addlink-sc.php:575
|
2730 |
+
msgid "The input value is shorter than "
|
2731 |
+
msgstr "La valeur est plus petite que "
|
2732 |
+
|
2733 |
+
#: render-link-library-addlink-sc.php:576
|
2734 |
+
msgid "Input values could not be confirmed"
|
2735 |
+
msgstr "La valeur saisie ne peut pas être validée"
|
2736 |
+
|
2737 |
+
#: render-link-library-addlink-sc.php:577
|
2738 |
+
msgid "Incorrect domain value"
|
2739 |
+
msgstr "Valeur incorrect du domaine"
|
2740 |
+
|
2741 |
+
#: render-link-library-addlink-sc.php:578
|
2742 |
+
msgid "The input value is not a correct URL. Requires http://."
|
2743 |
+
msgstr "La valeur saisie n’est pas une URL correcte. Il faut mettre http://."
|
2744 |
+
|
2745 |
+
#: render-link-library-addlink-sc.php:579
|
2746 |
+
msgid "The input value is incorrect"
|
2747 |
+
msgstr "La valeur saisie est incorrecte"
|
2748 |
+
|
2749 |
+
#: render-link-library-addlink-sc.php:580
|
2750 |
+
msgid " and spaces "
|
2751 |
+
msgstr " et espaces "
|
2752 |
+
|
2753 |
+
#: render-link-library-addlink-sc.php:581
|
2754 |
+
msgid "The input value was not a correct number"
|
2755 |
+
msgstr "La valeur n’est pas un nombre correct"
|
2756 |
+
|
2757 |
+
#: render-link-library-addlink-sc.php:582
|
2758 |
+
msgid "Your social security number was incorrect"
|
2759 |
+
msgstr "Votre numéro de sécurité sociale n’est pas correct"
|
2760 |
+
|
2761 |
+
#: render-link-library-addlink-sc.php:583
|
2762 |
+
msgid "Incorrect UK VAT Number"
|
2763 |
+
msgstr "Le nombre UK VAT est incorrect"
|
2764 |
+
|
2765 |
+
#: render-link-library-addlink-sc.php:584
|
2766 |
+
msgid "The password is not strong enough"
|
2767 |
+
msgstr "Le mot de passe n’est pas assez fort"
|
2768 |
+
|
2769 |
+
#: render-link-library-addlink-sc.php:585
|
2770 |
+
msgid "You have to choose at least "
|
2771 |
+
msgstr "Vous devez choisir au moins "
|
2772 |
+
|
2773 |
+
#: render-link-library-addlink-sc.php:586
|
2774 |
+
msgid " answers"
|
2775 |
+
msgstr " réponses"
|
2776 |
+
|
2777 |
+
#: render-link-library-addlink-sc.php:587
|
2778 |
+
msgid "The input value can only contain alphanumeric characters "
|
2779 |
+
msgstr "La valeur ne peut contenir que des caractères alphanumériques "
|
2780 |
+
|
2781 |
+
#: render-link-library-addlink-sc.php:588
|
2782 |
+
msgid " and "
|
2783 |
+
msgstr " et "
|
2784 |
+
|
2785 |
+
#: render-link-library-addlink-sc.php:589
|
2786 |
+
#, php-format
|
2787 |
+
msgid "The file you are trying to upload is too large (max %s)"
|
2788 |
+
msgstr "Le fichier que vous essayez de téléverser est trop gros (max %s)"
|
2789 |
+
|
2790 |
+
#: render-link-library-addlink-sc.php:590
|
2791 |
+
#, php-format
|
2792 |
+
msgid "Only files of type %s is allowed"
|
2793 |
+
msgstr "Seulement les fichiers de type %s sont autorisés"
|
2794 |
+
|
2795 |
+
#: render-link-library-addlink-sc.php:591
|
2796 |
+
msgid "Please choose between "
|
2797 |
+
msgstr "Merci de choisir entre "
|
2798 |
+
|
2799 |
+
#: render-link-library-addlink-sc.php:592
|
2800 |
+
msgid "Please choose at least "
|
2801 |
+
msgstr "Merci de choisir au moins "
|
2802 |
+
|
2803 |
+
#: render-link-library-addlink-sc.php:593
|
2804 |
+
msgid "Please choose a maximum of "
|
2805 |
+
msgstr "Merci de choisir un maximum de "
|
2806 |
+
|
2807 |
+
#: render-link-library-addlink-sc.php:594
|
2808 |
+
msgid " item(s)"
|
2809 |
+
msgstr " élément(s)"
|
2810 |
+
|
2811 |
+
#: render-link-library-addlink-sc.php:595
|
2812 |
+
msgid "The credit card number is not correct"
|
2813 |
+
msgstr "Le numéro de carte de crédit est incorrect"
|
2814 |
+
|
2815 |
+
#: render-link-library-addlink-sc.php:596
|
2816 |
+
msgid "The CVV number was not correct"
|
2817 |
+
msgstr "Le nombre CVV n’est pas correct"
|
2818 |
+
|
2819 |
+
#: render-link-library-addlink-sc.php:597
|
2820 |
+
msgid "Incorrect image dimensions,"
|
2821 |
+
msgstr "Dimentions de l’image incorrectes,"
|
2822 |
+
|
2823 |
+
#: render-link-library-addlink-sc.php:598
|
2824 |
+
msgid "the image can not be taller than"
|
2825 |
+
msgstr "l’image ne peut pas être plus haute que"
|
2826 |
+
|
2827 |
+
#: render-link-library-addlink-sc.php:599
|
2828 |
+
msgid "the image can not be wider than"
|
2829 |
+
msgstr "l’image ne peut pas être plus large que"
|
2830 |
+
|
2831 |
+
#: render-link-library-addlink-sc.php:600
|
2832 |
+
msgid "the image was too small"
|
2833 |
+
msgstr "l’image est trop petite"
|
2834 |
+
|
2835 |
+
#: render-link-library-addlink-sc.php:601
|
2836 |
+
msgid "min"
|
2837 |
+
msgstr "min"
|
2838 |
+
|
2839 |
+
#: render-link-library-addlink-sc.php:602
|
2840 |
+
msgid "max"
|
2841 |
+
msgstr "max"
|
2842 |
+
|
2843 |
+
#: render-link-library-addlink-sc.php:603
|
2844 |
+
msgid "Image ratio is not accepted"
|
2845 |
+
msgstr "Le ratio pour l’image n’est pas accepté"
|
2846 |
+
|
2847 |
+
#: render-link-library-addlink-sc.php:630
|
2848 |
+
msgid "Enter code from above image"
|
2849 |
+
msgstr "Entrer le code de l’image ci-dessus"
|
2850 |
+
|
2851 |
+
#: render-link-library-cats-sc.php:404
|
2852 |
+
msgid "Go!"
|
2853 |
+
msgstr "Allez-y !"
|
2854 |
+
|
2855 |
+
#: render-link-library-cats-sc.php:433
|
2856 |
+
msgid "No categories found"
|
2857 |
+
msgstr "Aucune catégorie trouvée"
|
2858 |
+
|
2859 |
+
#: render-link-library-sc.php:50
|
2860 |
+
#: render-link-library-sc.php:61
|
2861 |
+
#: render-link-library-sc.php:65
|
2862 |
+
#: render-link-library-sc.php:78
|
2863 |
+
#: render-link-library-sc.php:84
|
2864 |
+
msgid "Previous"
|
2865 |
+
msgstr "Précédent"
|
2866 |
+
|
2867 |
+
#: render-link-library-sc.php:149
|
2868 |
+
#: render-link-library-sc.php:160
|
2869 |
+
#: render-link-library-sc.php:164
|
2870 |
+
#: render-link-library-sc.php:170
|
2871 |
+
#: render-link-library-sc.php:177
|
2872 |
+
msgid "Next"
|
2873 |
+
msgstr "Suivant"
|
2874 |
+
|
2875 |
+
#: render-link-library-sc.php:637
|
2876 |
+
msgid "Search Results for"
|
2877 |
+
msgstr "Résultats de la recherche pour"
|
2878 |
+
|
2879 |
+
#: render-link-library-sc.php:1065
|
2880 |
+
msgid "Last updated"
|
2881 |
+
msgstr "Dernière mise à jour"
|
2882 |
+
|
2883 |
+
#: render-link-library-sc.php:1211
|
2884 |
+
msgid "Edit"
|
2885 |
+
msgstr "Éditer"
|
2886 |
+
|
2887 |
+
#: render-link-library-sc.php:1295
|
2888 |
+
msgid "Preview of RSS feed for"
|
2889 |
+
msgstr "Aperçu du flux d’informations RSS de"
|
2890 |
+
|
2891 |
+
#: render-link-library-sc.php:1658
|
2892 |
+
msgid "No links found"
|
2893 |
+
msgstr "Aucun lien trouvé"
|
2894 |
+
|
2895 |
+
#: usersubmission.php:294
|
2896 |
+
msgid "A user submitted a new link to your Wordpress Link database."
|
2897 |
+
msgstr "Un utilisateur a soumis un nouveau lien pour votre site WordPress."
|
2898 |
+
|
2899 |
+
#: usersubmission.php:321
|
2900 |
+
#: usersubmission.php:411
|
2901 |
+
msgid "Link Secondary Address"
|
2902 |
+
msgstr "Adresse supplémentaire pour le lien"
|
2903 |
+
|
2904 |
+
#: usersubmission.php:325
|
2905 |
+
#: usersubmission.php:415
|
2906 |
+
msgid "Link Telephone"
|
2907 |
+
msgstr "Numéro de téléphone"
|
2908 |
+
|
2909 |
+
#: usersubmission.php:329
|
2910 |
+
#: usersubmission.php:419
|
2911 |
+
msgid "Link E-mail"
|
2912 |
+
msgstr "Adresse électronique"
|
2913 |
+
|
2914 |
+
#: usersubmission.php:341
|
2915 |
+
#: usersubmission.php:431
|
2916 |
+
msgid "Link Comment"
|
2917 |
+
msgstr "Commentaire sur le lien"
|
2918 |
+
|
2919 |
+
#: usersubmission.php:356
|
2920 |
+
msgid "New link added"
|
2921 |
+
msgstr "Nouveau lien soumis"
|
2922 |
+
|
2923 |
+
#: usersubmission.php:370
|
2924 |
+
msgid "Link Submission Confirmation"
|
2925 |
+
msgstr "Confirmation d’enregistrement du lien"
|
2926 |
+
|
2927 |
+
#: usersubmission.php:372
|
2928 |
+
msgid "Thank you for your link submission on "
|
2929 |
+
msgstr "Merci pour votre proposition de lien sur "
|
2930 |
+
|
2931 |
+
#: usersubmission.php:376
|
2932 |
+
msgid "Your link will appear once approved by the site administrator."
|
2933 |
+
msgstr "Votre lien apparaitra lorsqu’il sera approuvé par l’administrateur du site."
|
2934 |
+
|
2935 |
+
#: usersubmission.php:378
|
2936 |
+
msgid "Your link will immediately be added to the site."
|
2937 |
+
msgstr "Votre lien va être immédiatement publié sur le site."
|
2938 |
+
|
2939 |
+
#: wp_dropdown_posts.php:121
|
2940 |
+
#, php-format
|
2941 |
+
msgid "#%d (no title)"
|
2942 |
+
msgstr "#%d (pas de titre)"
|
2943 |
+
|
languages/link-library-nb_NO.mo
ADDED
Binary file
|
languages/link-library-nb_NO.po
ADDED
@@ -0,0 +1,3250 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Link Library 5.9.13.13\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2017-03-30 13:42-0500\n"
|
6 |
+
"PO-Revision-Date: \n"
|
7 |
+
"Last-Translator: \n"
|
8 |
+
"Language-Team: Luc Capronnier <lcapronnier@yahoo.com>\n"
|
9 |
+
"Language: nb\n"
|
10 |
+
"MIME-Version: 1.0\n"
|
11 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
+
"Content-Transfer-Encoding: 8bit\n"
|
13 |
+
"X-Poedit-Bookmarks: 136,-1,-1,-1,-1,-1,-1,-1,-1,-1\n"
|
14 |
+
"X-Generator: Poedit 1.6.9\n"
|
15 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
+
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;esc_html;esc_html__;esc_html_e;"
|
17 |
+
"esc_attr__;esc_attr_e\n"
|
18 |
+
"X-Poedit-Basepath: ..\n"
|
19 |
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
20 |
+
"X-Poedit-SearchPath-0: .\n"
|
21 |
+
|
22 |
+
# Plugin name; please avoid translating if possible
|
23 |
+
#: link-library-admin.php:109
|
24 |
+
msgid "Insert a Link Library shortcode"
|
25 |
+
msgstr "Sett inn en Link Library shortcode"
|
26 |
+
|
27 |
+
#: link-library-admin.php:112
|
28 |
+
msgid "Link List"
|
29 |
+
msgstr "Lenkeliste"
|
30 |
+
|
31 |
+
#: link-library-admin.php:113
|
32 |
+
msgid "Link Category List"
|
33 |
+
msgstr "Lenkekategorier"
|
34 |
+
|
35 |
+
#: link-library-admin.php:114
|
36 |
+
msgid "Link Search"
|
37 |
+
msgstr "Lenkesøk"
|
38 |
+
|
39 |
+
#: link-library-admin.php:115
|
40 |
+
msgid "Add Link Form"
|
41 |
+
msgstr "Legg til skjema for lenker"
|
42 |
+
|
43 |
+
#: link-library-admin.php:119
|
44 |
+
msgid "Insert Shortcode"
|
45 |
+
msgstr "Sett inn shortcode"
|
46 |
+
|
47 |
+
#: link-library-admin.php:120
|
48 |
+
msgid "Cancel"
|
49 |
+
msgstr "Avbryt"
|
50 |
+
|
51 |
+
#: link-library-admin.php:123
|
52 |
+
msgid "Render a list of links."
|
53 |
+
msgstr "Gjengi liste over lenker."
|
54 |
+
|
55 |
+
#: link-library-admin.php:125 link-library-admin.php:180
|
56 |
+
#: link-library-admin.php:215
|
57 |
+
msgid "Library ID"
|
58 |
+
msgstr "Bibliotek ID"
|
59 |
+
|
60 |
+
#: link-library-admin.php:136 link-library-admin.php:191
|
61 |
+
#: link-library-admin.php:226 link-library-admin.php:769
|
62 |
+
#: link-library-admin.php:2624 link-library-admin.php:2639
|
63 |
+
msgid "Library"
|
64 |
+
msgstr "Bibliotek"
|
65 |
+
|
66 |
+
#: link-library-admin.php:142
|
67 |
+
msgid "Single Link ID"
|
68 |
+
msgstr "Unik lenke-ID"
|
69 |
+
|
70 |
+
#: link-library-admin.php:145
|
71 |
+
msgid "Specify ID of single link to be displayed"
|
72 |
+
msgstr "Spesifiser unik lenke-ID for visning"
|
73 |
+
|
74 |
+
#: link-library-admin.php:147 link-library-admin.php:197
|
75 |
+
#: link-library-admin.php:232
|
76 |
+
msgid "Category Override"
|
77 |
+
msgstr "Endre konfigurasjon for kategorier"
|
78 |
+
|
79 |
+
#: link-library-admin.php:150 link-library-admin.php:200
|
80 |
+
#: link-library-admin.php:235
|
81 |
+
msgid ""
|
82 |
+
"Single, or comma-separated list of categories IDs to be displayed in the "
|
83 |
+
"link list"
|
84 |
+
msgstr ""
|
85 |
+
"Unik kategori-ID, eller flere kategorier separert med komma, som skal vises "
|
86 |
+
"i lenkelisten"
|
87 |
+
|
88 |
+
#: link-library-admin.php:152 link-library-admin.php:202
|
89 |
+
#: link-library-admin.php:237
|
90 |
+
msgid "Excluded Category Override"
|
91 |
+
msgstr "Unntatt fra konfigurasjonsendringer for kategorier"
|
92 |
+
|
93 |
+
#: link-library-admin.php:155 link-library-admin.php:205
|
94 |
+
#: link-library-admin.php:240
|
95 |
+
msgid ""
|
96 |
+
"Single, or comma-separated list of categories IDs to be excluded from the "
|
97 |
+
"link list"
|
98 |
+
msgstr ""
|
99 |
+
"En kategori-ID ( eller flere separert med komma ) som skal fjernes fra "
|
100 |
+
"visning av lenkeliste"
|
101 |
+
|
102 |
+
#: link-library-admin.php:157 link-library-admin.php:162
|
103 |
+
#: link-library-admin.php:167 link-library-admin.php:172
|
104 |
+
msgid "Notes Override"
|
105 |
+
msgstr "Notater for konfigurasjonsendringer"
|
106 |
+
|
107 |
+
#: link-library-admin.php:160
|
108 |
+
msgid "Set to 0 or 1 to display or not display link notes"
|
109 |
+
msgstr "Sett til 0 eller 1 for å vise eller ikke vise notater for lenkene"
|
110 |
+
|
111 |
+
#: link-library-admin.php:165
|
112 |
+
msgid "Set to 0 or 1 to display or not display link descriptions"
|
113 |
+
msgstr "Sett til 0 eller 1 for å vise eller ikke vise beskrivelser for lenkene"
|
114 |
+
|
115 |
+
#: link-library-admin.php:170
|
116 |
+
msgid "Set to 0 or 1 to display or not display rss information"
|
117 |
+
msgstr "Sett til 0 eller 1 for å vise eller ikke vise RSS-informasjon"
|
118 |
+
|
119 |
+
#: link-library-admin.php:175
|
120 |
+
msgid "Set to 0 or 1 to display links in an unordered list or a table"
|
121 |
+
msgstr ""
|
122 |
+
"Sett til 0 eller 1 for å vise eller lenker i en usortert liste eller tabell"
|
123 |
+
|
124 |
+
#: link-library-admin.php:178
|
125 |
+
msgid "Render a list of link categories."
|
126 |
+
msgstr "Opprett kategoriliste."
|
127 |
+
|
128 |
+
#: link-library-admin.php:208
|
129 |
+
msgid "Render a search box to search through links."
|
130 |
+
msgstr "Opprett en søkeboks for å søke gjennom lenker."
|
131 |
+
|
132 |
+
#: link-library-admin.php:210
|
133 |
+
msgid "There are no options for this shortcode."
|
134 |
+
msgstr "Ingen valg for shortcode."
|
135 |
+
|
136 |
+
#: link-library-admin.php:213
|
137 |
+
msgid "Render a form for visitors to submit new links."
|
138 |
+
msgstr "Opprett et skjema for besøkende der de kan sende inn egne lenker."
|
139 |
+
|
140 |
+
#: link-library-admin.php:273
|
141 |
+
msgid "Category Link"
|
142 |
+
msgstr "Kategorilenke"
|
143 |
+
|
144 |
+
#: link-library-admin.php:372 link-library-admin.php:644
|
145 |
+
msgid ""
|
146 |
+
"Please create a folder called uploads under your Wordpress /wp-content/ "
|
147 |
+
"directory with write permissions to use this functionality."
|
148 |
+
msgstr ""
|
149 |
+
"For å benytte denne funksjonaliteten må du opprette en mappe (med "
|
150 |
+
"skriverettigheter) som heter uploads under /wp-content/ i din Wordpress-"
|
151 |
+
"installasjon."
|
152 |
+
|
153 |
+
#: link-library-admin.php:374 link-library-admin.php:646
|
154 |
+
msgid ""
|
155 |
+
"Please make sure that the /wp-content/uploads/ directory has write "
|
156 |
+
"permissions to use this functionality."
|
157 |
+
msgstr ""
|
158 |
+
"Vennligst kontroller at /wp-content/uploads/ har skriverettigheter for å "
|
159 |
+
"benytte denne funksjonen."
|
160 |
+
|
161 |
+
#: link-library-admin.php:464
|
162 |
+
msgid "Basic Details"
|
163 |
+
msgstr "Detaljer"
|
164 |
+
|
165 |
+
#: link-library-admin.php:466 link-library-admin.php:3342
|
166 |
+
#: link-library-admin.php:3471 render-link-library-sc.php:986
|
167 |
+
msgid "Image"
|
168 |
+
msgstr "Bilde"
|
169 |
+
|
170 |
+
#: link-library-admin.php:471
|
171 |
+
msgid "Full-Page Content"
|
172 |
+
msgstr "Fullside-visning"
|
173 |
+
|
174 |
+
#: link-library-admin.php:474
|
175 |
+
msgid "Additional Parameters"
|
176 |
+
msgstr "Andre innstillinger"
|
177 |
+
|
178 |
+
#: link-library-admin.php:484
|
179 |
+
msgid "Link Library: Missing Thumbshots API Key"
|
180 |
+
msgstr "Link Library : Mangler Thumbshots API nøkkel"
|
181 |
+
|
182 |
+
#: link-library-admin.php:484
|
183 |
+
msgid ""
|
184 |
+
"One of your link libraries is configured to use Thumbshots for link "
|
185 |
+
"thumbails, but you have not entered your Thumbshots.com API Key. Please "
|
186 |
+
"visit Thumbshots.com to apply for a free or paid account and enter your API "
|
187 |
+
"in the Link Library admin panel."
|
188 |
+
msgstr ""
|
189 |
+
"En av dine lenkebibliotek er konfigurert for å bruke Thumbshots, men du har "
|
190 |
+
"ikke tastet inn din Thumbshots.com API-nøkkel. Vennligst besøk Thumbshots."
|
191 |
+
"com for å søke om en gratis eller betalt konto, og tast inn din API-kode i "
|
192 |
+
"kontrollpanelet for Link Library."
|
193 |
+
|
194 |
+
# Plugin name; please avoid translating if possible
|
195 |
+
#: link-library-admin.php:484
|
196 |
+
msgid "Jump to Link Library admin"
|
197 |
+
msgstr "Gå til Link Library admin-grensesnitt"
|
198 |
+
|
199 |
+
# Plugin name; please avoid translating if possible
|
200 |
+
#: link-library-admin.php:489
|
201 |
+
msgid "Link Library: No Link Categories on your site"
|
202 |
+
msgstr "Link Library : Ingen lenkekategorier på nettstedet ditt"
|
203 |
+
|
204 |
+
#: link-library-admin.php:489
|
205 |
+
msgid ""
|
206 |
+
"There are currently no link categories defined in your WordPress site. Link "
|
207 |
+
"Library will not work correctly without categories. Please create at least "
|
208 |
+
"one before trying to use Link Library and make sure each link is assigned a "
|
209 |
+
"category."
|
210 |
+
msgstr ""
|
211 |
+
"Det er ikke opprettet noen lenke-kategorier i din Wordpress-installasjon. "
|
212 |
+
"Link Library vil ikke fungere uten lenkekategorier. Vennligst opprett minst "
|
213 |
+
"en lenkekategori før du begynner å legge til og organisere lenker, og "
|
214 |
+
"forsikre deg om at hver lenke er knyttet til en kategori."
|
215 |
+
|
216 |
+
#: link-library-admin.php:544
|
217 |
+
msgid "Links to moderate"
|
218 |
+
msgstr "Lenke for moderering"
|
219 |
+
|
220 |
+
#: link-library-admin.php:562
|
221 |
+
msgid "Global Options"
|
222 |
+
msgstr "Globale innstillinger"
|
223 |
+
|
224 |
+
#: link-library-admin.php:564
|
225 |
+
msgid "Configurations"
|
226 |
+
msgstr "Konfigurasjoner"
|
227 |
+
|
228 |
+
#: link-library-admin.php:564
|
229 |
+
msgid "Library Configurations"
|
230 |
+
msgstr "Bibliotek-konfigurasjoner"
|
231 |
+
|
232 |
+
#: link-library-admin.php:567 link-library-admin.php:569
|
233 |
+
#: link-library-admin.php:890
|
234 |
+
msgid "Moderate"
|
235 |
+
msgstr "Moderere"
|
236 |
+
|
237 |
+
#: link-library-admin.php:572 link-library-admin.php:895
|
238 |
+
#: link-library-admin.php:2140
|
239 |
+
msgid "Stylesheet"
|
240 |
+
msgstr "Stilark"
|
241 |
+
|
242 |
+
#: link-library-admin.php:574 link-library-admin.php:604
|
243 |
+
msgid "Link checking tools"
|
244 |
+
msgstr "Verktøy for å kontrollere lenke"
|
245 |
+
|
246 |
+
#: link-library-admin.php:576 link-library-admin.php:903
|
247 |
+
msgid "FAQ"
|
248 |
+
msgstr "OSS"
|
249 |
+
|
250 |
+
#: link-library-admin.php:602
|
251 |
+
msgid "Links awaiting moderation"
|
252 |
+
msgstr "Lenker i kø for moderering"
|
253 |
+
|
254 |
+
#: link-library-admin.php:603 link-library-admin.php:2142
|
255 |
+
msgid "Editor"
|
256 |
+
msgstr "Redaktør"
|
257 |
+
|
258 |
+
#: link-library-admin.php:605
|
259 |
+
msgid "Save"
|
260 |
+
msgstr "Lagre"
|
261 |
+
|
262 |
+
#: link-library-admin.php:690
|
263 |
+
msgid "Thumbnails successfully generated!"
|
264 |
+
msgstr "Miniatyrbilder opprettet!"
|
265 |
+
|
266 |
+
#: link-library-admin.php:692
|
267 |
+
msgid "Favicons successfully generated!"
|
268 |
+
msgstr "Favicon opprettet !"
|
269 |
+
|
270 |
+
#: link-library-admin.php:694 link-library-admin.php:4871
|
271 |
+
msgid "Thumbnail successfully generated for"
|
272 |
+
msgstr "Miniatyrbilder opprettet for"
|
273 |
+
|
274 |
+
#: link-library-admin.php:696 link-library-admin.php:4907
|
275 |
+
msgid "Favicon successfully generated for"
|
276 |
+
msgstr "Favicon generert for"
|
277 |
+
|
278 |
+
#: link-library-admin.php:727
|
279 |
+
msgid "General Settings Saved"
|
280 |
+
msgstr "Innstillinger lagret"
|
281 |
+
|
282 |
+
#: link-library-admin.php:729 link-library-admin.php:795
|
283 |
+
msgid ""
|
284 |
+
"Link Library plugin directory needs to be writable to perform this action"
|
285 |
+
msgstr ""
|
286 |
+
"Link Library plugin-mappe må ha riktige skrivetillatelser for å fulle denne "
|
287 |
+
"operasjonen"
|
288 |
+
|
289 |
+
#: link-library-admin.php:731
|
290 |
+
msgid "row(s) found"
|
291 |
+
msgstr "rad(er) funnet"
|
292 |
+
|
293 |
+
#: link-library-admin.php:731 link-library-admin.php:807
|
294 |
+
msgid "link(s) imported"
|
295 |
+
msgstr "lenke(r) importert"
|
296 |
+
|
297 |
+
#: link-library-admin.php:731 link-library-admin.php:807
|
298 |
+
msgid "link(s) updated"
|
299 |
+
msgstr "lenke(r) oppdatert"
|
300 |
+
|
301 |
+
#: link-library-admin.php:779 link-library-admin.php:2662
|
302 |
+
msgid "Library #"
|
303 |
+
msgstr "Bibliotek #"
|
304 |
+
|
305 |
+
#: link-library-admin.php:779
|
306 |
+
msgid "Updated"
|
307 |
+
msgstr "Oppdatert"
|
308 |
+
|
309 |
+
#: link-library-admin.php:783
|
310 |
+
msgid "Included Category ID"
|
311 |
+
msgstr "Inkludert kategori ID"
|
312 |
+
|
313 |
+
#: link-library-admin.php:783 link-library-admin.php:787
|
314 |
+
msgid "is invalid. Please check the ID in the Link Category editor."
|
315 |
+
msgstr "er ikke gyldig. Vennligst sjekk ID under lenkekategorier."
|
316 |
+
|
317 |
+
#: link-library-admin.php:787
|
318 |
+
msgid "Excluded Category ID"
|
319 |
+
msgstr "Ekskluderte kategori ID"
|
320 |
+
|
321 |
+
#: link-library-admin.php:791
|
322 |
+
msgid "Invalid column count for link on row. Compare against template."
|
323 |
+
msgstr "Ugyldig kolonne-antall for lenker på rad. Sammenlikne med malen."
|
324 |
+
|
325 |
+
#: link-library-admin.php:799
|
326 |
+
msgid "Library Settings imported successfully"
|
327 |
+
msgstr "Bibliotek-innstillinger importert"
|
328 |
+
|
329 |
+
#: link-library-admin.php:803
|
330 |
+
msgid "Library Settings Upload Failed"
|
331 |
+
msgstr "Opplasting av innstillinger mislyktes"
|
332 |
+
|
333 |
+
#: link-library-admin.php:811
|
334 |
+
msgid "Links are missing categories"
|
335 |
+
msgstr "Lenker mangler kategorier"
|
336 |
+
|
337 |
+
#: link-library-admin.php:824
|
338 |
+
msgid "Link(s) Approved"
|
339 |
+
msgstr "Lenke(r) godkjent"
|
340 |
+
|
341 |
+
#: link-library-admin.php:826
|
342 |
+
msgid "Link(s) Deleted"
|
343 |
+
msgstr "Lenker(r) slettet"
|
344 |
+
|
345 |
+
#: link-library-admin.php:837
|
346 |
+
msgid "Stylesheet updated"
|
347 |
+
msgstr "Stilark oppdatert"
|
348 |
+
|
349 |
+
#: link-library-admin.php:839
|
350 |
+
msgid "Stylesheet reset to original state"
|
351 |
+
msgstr "Stilark satt tilbake til original"
|
352 |
+
|
353 |
+
#: link-library-admin.php:846
|
354 |
+
msgid "Settings updated"
|
355 |
+
msgstr "Innstillinger oppdatert"
|
356 |
+
|
357 |
+
#: link-library-admin.php:880
|
358 |
+
msgid "General Options"
|
359 |
+
msgstr "Generelle innstillinger"
|
360 |
+
|
361 |
+
# Plugin name; please avoid translating if possible
|
362 |
+
#: link-library-admin.php:885
|
363 |
+
msgid "Library Settings"
|
364 |
+
msgstr "Bibliotek innstillinger"
|
365 |
+
|
366 |
+
#: link-library-admin.php:900
|
367 |
+
msgid "Reciprocal Check"
|
368 |
+
msgstr "Sjekk gjensidige lenker"
|
369 |
+
|
370 |
+
#: link-library-admin.php:1058
|
371 |
+
msgid "General"
|
372 |
+
msgstr "Normale"
|
373 |
+
|
374 |
+
#: link-library-admin.php:1059
|
375 |
+
msgid "Single Item Layout"
|
376 |
+
msgstr "Layout for enkeltoppføringer"
|
377 |
+
|
378 |
+
#: link-library-admin.php:1060
|
379 |
+
msgid "Images"
|
380 |
+
msgstr "Bilder"
|
381 |
+
|
382 |
+
#: link-library-admin.php:1061
|
383 |
+
msgid "Bookmarklet"
|
384 |
+
msgstr "Bookmarklet"
|
385 |
+
|
386 |
+
#: link-library-admin.php:1062
|
387 |
+
msgid "Moderation"
|
388 |
+
msgstr "Moderering"
|
389 |
+
|
390 |
+
#: link-library-admin.php:1063
|
391 |
+
msgid "Hide Donation"
|
392 |
+
msgstr "Skjul donasjon"
|
393 |
+
|
394 |
+
#: link-library-admin.php:1064
|
395 |
+
msgid "Import/Export Links"
|
396 |
+
msgstr "Importer/Eksporter lenker"
|
397 |
+
|
398 |
+
#: link-library-admin.php:1071
|
399 |
+
msgid "Usage"
|
400 |
+
msgstr "Bruksområde"
|
401 |
+
|
402 |
+
#: link-library-admin.php:1072
|
403 |
+
msgid "Common"
|
404 |
+
msgstr "Vanlig"
|
405 |
+
|
406 |
+
#: link-library-admin.php:1073
|
407 |
+
msgid "Categories"
|
408 |
+
msgstr "Kategorier"
|
409 |
+
|
410 |
+
#: link-library-admin.php:1074
|
411 |
+
msgid "Links"
|
412 |
+
msgstr "Lenker"
|
413 |
+
|
414 |
+
#: link-library-admin.php:1075
|
415 |
+
msgid "Advanced"
|
416 |
+
msgstr "Avansert"
|
417 |
+
|
418 |
+
#: link-library-admin.php:1076
|
419 |
+
msgid "Pop-Ups"
|
420 |
+
msgstr "Sprett-opp vinduer"
|
421 |
+
|
422 |
+
#: link-library-admin.php:1077
|
423 |
+
msgid "RSS Display"
|
424 |
+
msgstr "RSS visning"
|
425 |
+
|
426 |
+
#: link-library-admin.php:1078
|
427 |
+
msgid "Thumbnails"
|
428 |
+
msgstr "Miniatyrbilder"
|
429 |
+
|
430 |
+
#: link-library-admin.php:1079
|
431 |
+
msgid "RSS Feed"
|
432 |
+
msgstr "RSS-strøm"
|
433 |
+
|
434 |
+
#: link-library-admin.php:1080 link-library-admin.php:4093
|
435 |
+
#: link-library-admin.php:4102
|
436 |
+
msgid "Search"
|
437 |
+
msgstr "Søk"
|
438 |
+
|
439 |
+
#: link-library-admin.php:1081
|
440 |
+
msgid "User Submission"
|
441 |
+
msgstr "Sendt inn av bruker"
|
442 |
+
|
443 |
+
#: link-library-admin.php:1082
|
444 |
+
msgid "Import/Export Settings"
|
445 |
+
msgstr "Importer/Eksporter innstillinger"
|
446 |
+
|
447 |
+
#: link-library-admin.php:1139 link-library-admin.php:1670
|
448 |
+
#: link-library-admin.php:1934 link-library-admin.php:2051
|
449 |
+
#: link-library-admin.php:2087
|
450 |
+
msgid "Not allowed"
|
451 |
+
msgstr "Ikke tillatt"
|
452 |
+
|
453 |
+
#: link-library-admin.php:1981 link-library-admin.php:2024
|
454 |
+
#: usersubmission.php:317
|
455 |
+
msgid "Message generated by"
|
456 |
+
msgstr "Beskjed generert av"
|
457 |
+
|
458 |
+
#: link-library-admin.php:2132 link-library-admin.php:5381
|
459 |
+
msgid "Update channel"
|
460 |
+
msgstr "Oppdater kanal"
|
461 |
+
|
462 |
+
#: link-library-admin.php:2134 link-library-admin.php:5383
|
463 |
+
msgid "Standard channel - Updates as they are released"
|
464 |
+
msgstr "Standardkanal - Last ned oppdateringer når de blir tilgjengelige"
|
465 |
+
|
466 |
+
#: link-library-admin.php:2135 link-library-admin.php:5384
|
467 |
+
msgid "Monthly Channel - Updates once per month"
|
468 |
+
msgstr "Hver måned - Oppdatere en gang per måned"
|
469 |
+
|
470 |
+
#: link-library-admin.php:2140 link-library-admin.php:2141
|
471 |
+
msgid ""
|
472 |
+
"The stylesheet is now defined and stored using the Link Library admin "
|
473 |
+
"interface. This avoids problems with updates from one version to the next."
|
474 |
+
msgstr ""
|
475 |
+
"Stilarket er nå definert og lagret gjennom Link Library's "
|
476 |
+
"administrasjonsgrensesnitt. Denne prosedyren hindrer problemer ved "
|
477 |
+
"oppdatering til nyere versjoner."
|
478 |
+
|
479 |
+
#: link-library-admin.php:2146
|
480 |
+
msgid "Number of Libraries"
|
481 |
+
msgstr "Antall bibliotek"
|
482 |
+
|
483 |
+
#: link-library-admin.php:2154
|
484 |
+
msgid "Category selection method"
|
485 |
+
msgstr "Metode for å velge kategorier"
|
486 |
+
|
487 |
+
#: link-library-admin.php:2156
|
488 |
+
msgid "Comma-separated ID list"
|
489 |
+
msgstr "Komma-separert ID-liste"
|
490 |
+
|
491 |
+
#: link-library-admin.php:2157
|
492 |
+
msgid "Multi-select List"
|
493 |
+
msgstr "Flervalgslister"
|
494 |
+
|
495 |
+
#: link-library-admin.php:2161 link-library-admin.php:2162
|
496 |
+
msgid ""
|
497 |
+
"Enter comma-separate list of pages on which the Link Library stylesheet and "
|
498 |
+
"scripts should be loaded. Primarily used if you display Link Library using "
|
499 |
+
"the API"
|
500 |
+
msgstr ""
|
501 |
+
"Tast inn en komma-separert liste med sider som skal laste Link Library "
|
502 |
+
"stilark og scripts. Bruker primært hvis du viser Link Library via API. "
|
503 |
+
|
504 |
+
#: link-library-admin.php:2161
|
505 |
+
msgid "Additional pages to load styles and scripts"
|
506 |
+
msgstr "Andre sider som skal laste stiler og script"
|
507 |
+
|
508 |
+
#: link-library-admin.php:2167
|
509 |
+
msgid "Debug Mode"
|
510 |
+
msgstr "Feilsøkingmodus"
|
511 |
+
|
512 |
+
#: link-library-admin.php:2172 link-library-admin.php:2173
|
513 |
+
#: link-library-admin.php:2178 link-library-admin.php:2179
|
514 |
+
msgid ""
|
515 |
+
"This function is only possible when showing one category at a time and while "
|
516 |
+
"the default category is not shown."
|
517 |
+
msgstr ""
|
518 |
+
"Denne funksjonen er kun mulig når man viser en kategori ad gangen, når "
|
519 |
+
"standardkategorien ikke vises."
|
520 |
+
|
521 |
+
#: link-library-admin.php:2172
|
522 |
+
msgid "Page Title Prefix"
|
523 |
+
msgstr "Prefiks sidetittel"
|
524 |
+
|
525 |
+
#: link-library-admin.php:2178
|
526 |
+
msgid "Page Title Suffix"
|
527 |
+
msgstr "Suffiks sidetittel"
|
528 |
+
|
529 |
+
#: link-library-admin.php:2184 link-library-admin.php:2185
|
530 |
+
msgid ""
|
531 |
+
"Path for images files that are uploaded manually or generated through "
|
532 |
+
"thumbnail generation service"
|
533 |
+
msgstr ""
|
534 |
+
"Sti ( lagring ) for bilder som lastes opp manuelt, eller genereres som "
|
535 |
+
"miniatyrbilder"
|
536 |
+
|
537 |
+
#: link-library-admin.php:2184
|
538 |
+
msgid "Link Image File Path"
|
539 |
+
msgstr "Sti (lagring) for lenke-bildevedlegg"
|
540 |
+
|
541 |
+
#: link-library-admin.php:2187
|
542 |
+
msgid "Absolute"
|
543 |
+
msgstr "Absolutt"
|
544 |
+
|
545 |
+
#: link-library-admin.php:2188
|
546 |
+
msgid "Relative"
|
547 |
+
msgstr "Relativ"
|
548 |
+
|
549 |
+
#: link-library-admin.php:2192
|
550 |
+
msgid "Thumbnail Generator"
|
551 |
+
msgstr "Minatyrbilde generator"
|
552 |
+
|
553 |
+
#: link-library-admin.php:2203 link-library-admin.php:2204
|
554 |
+
msgid "API Key for Thumbshots.com thumbnail generation accounts"
|
555 |
+
msgstr "API-nøkkel for Thumbshots.com miniatyrbilde-generator konto"
|
556 |
+
|
557 |
+
#: link-library-admin.php:2203
|
558 |
+
msgid "Thumbshots API Key"
|
559 |
+
msgstr "Thumbshots API-nøkkel"
|
560 |
+
|
561 |
+
#: link-library-admin.php:2211
|
562 |
+
msgid "Robothumb Thumbnail size"
|
563 |
+
msgstr "Robothumb miniatyrbilde-størrelse"
|
564 |
+
|
565 |
+
#: link-library-admin.php:2224
|
566 |
+
msgid "Links Date Format"
|
567 |
+
msgstr "Datoformat for lenke"
|
568 |
+
|
569 |
+
#: link-library-admin.php:2224
|
570 |
+
msgid "Help"
|
571 |
+
msgstr "Hjelp"
|
572 |
+
|
573 |
+
#: link-library-admin.php:2231 link-library-admin.php:2232
|
574 |
+
msgid "Enter list of additional link protocols, seperated by commas"
|
575 |
+
msgstr "Tast inn komma-separert liste av ekstra lenkeprotokoller"
|
576 |
+
|
577 |
+
#: link-library-admin.php:2231
|
578 |
+
msgid "Additional protocols"
|
579 |
+
msgstr "Flere protokoller"
|
580 |
+
|
581 |
+
#: link-library-admin.php:2235
|
582 |
+
msgid "Time before clearing RSS display cache (in seconds)"
|
583 |
+
msgstr "Tid før tømming av hurtigminne (i sekunder)"
|
584 |
+
|
585 |
+
#: link-library-admin.php:2291 link-library-admin.php:2292
|
586 |
+
msgid "Custom full URL for expand icon. Uses default image if left empty."
|
587 |
+
msgstr "Full URL for utvid-ikon. Bruker standardikon hvis ikke utfylt."
|
588 |
+
|
589 |
+
#: link-library-admin.php:2291
|
590 |
+
msgid "Expand Icon Image"
|
591 |
+
msgstr "Utvid ikon-bilde"
|
592 |
+
|
593 |
+
#: link-library-admin.php:2298 link-library-admin.php:2299
|
594 |
+
msgid "Custom full URL for collapse icon. Uses default image if left empty."
|
595 |
+
msgstr "Full URL for kollaps-ikon. Bruker standardikon hvis ikke utfylt."
|
596 |
+
|
597 |
+
#: link-library-admin.php:2298
|
598 |
+
msgid "Collapse Icon Image"
|
599 |
+
msgstr "Kollaps-ikon bilde"
|
600 |
+
|
601 |
+
#: link-library-admin.php:2313
|
602 |
+
msgid "Add new links to your site with this bookmarklet."
|
603 |
+
msgstr "Legg til nye lenker på ditt nettsted med dette bookmarklet-programmet."
|
604 |
+
|
605 |
+
#: link-library-admin.php:2314
|
606 |
+
msgid ""
|
607 |
+
"To use this feature, drag-and-drop the button below to your favorite / "
|
608 |
+
"bookmark toolbar."
|
609 |
+
msgstr ""
|
610 |
+
"For å bruke denne funksjonen, dra-og-slipp knappen til dine favoritter/"
|
611 |
+
"bokmerker."
|
612 |
+
|
613 |
+
#: link-library-admin.php:2315
|
614 |
+
msgid "Add to Links"
|
615 |
+
msgstr "Legg til lenker"
|
616 |
+
|
617 |
+
#: link-library-admin.php:2328
|
618 |
+
msgid ""
|
619 |
+
"Approval and rejection e-mail functionality will only work correctly if the "
|
620 |
+
"submitter e-mail field is displayed on the user link submission form"
|
621 |
+
msgstr ""
|
622 |
+
"Epost med funksjoner for godkjenning eller avvisning vil kun fungere dersom "
|
623 |
+
"avsenders epostadresse vises i innsendt skjema"
|
624 |
+
|
625 |
+
#: link-library-admin.php:2332 link-library-admin.php:2333
|
626 |
+
msgid ""
|
627 |
+
"URL that user will be redirected to after submitting new link. When used, "
|
628 |
+
"the short code [link-library-addlinkcustommsg] should be placed on the "
|
629 |
+
"destination page."
|
630 |
+
msgstr ""
|
631 |
+
"URL (side) som brukeren vil bli ledet til etter at skjemaet for å sende inn "
|
632 |
+
"ny link er sendt. Når dette valget benyttes må koden [link-library-"
|
633 |
+
"addlinkcustommsg] settes inn på siden som skal brukes."
|
634 |
+
|
635 |
+
#: link-library-admin.php:2332
|
636 |
+
msgid "Link Acknowledgement URL"
|
637 |
+
msgstr "Side (URL) for bekreftelse av lenke"
|
638 |
+
|
639 |
+
#: link-library-admin.php:2338
|
640 |
+
msgid ""
|
641 |
+
"Title of e-mail sent to site admin when new links are submitted. Use "
|
642 |
+
"%linkname% as a variable to be replaced by the actual link name"
|
643 |
+
msgstr ""
|
644 |
+
"Tittel ( emne ) i epost sendt til nettstedansvarlig når nye lenker blir "
|
645 |
+
"sendt inn fra skjemaet. Bruk %linkname% som variabel som erstatter det "
|
646 |
+
"faktiske lenke-navnet"
|
647 |
+
|
648 |
+
#: link-library-admin.php:2338
|
649 |
+
msgid "Moderation Notification Title"
|
650 |
+
msgstr "Tittel, varsel om moderasjon"
|
651 |
+
|
652 |
+
#: link-library-admin.php:2344
|
653 |
+
msgid ""
|
654 |
+
"Will send a confirmation e-mail to link submitter if they provided their "
|
655 |
+
"contact information"
|
656 |
+
msgstr ""
|
657 |
+
"Sender en bekreftelsesepost til avsender dersom kontaktinformasjon finnes"
|
658 |
+
|
659 |
+
#: link-library-admin.php:2344
|
660 |
+
msgid "E-mail submitter on link approval or rejection"
|
661 |
+
msgstr "Varsle avsender om godkjenning eller avvisning av foreslått lenke"
|
662 |
+
|
663 |
+
#: link-library-admin.php:2349
|
664 |
+
msgid "Suppress Link Library message in e-mail footer"
|
665 |
+
msgstr "Overstyr Link Library beskjed i bunnen av utsendte eposter"
|
666 |
+
|
667 |
+
#: link-library-admin.php:2354
|
668 |
+
msgid "Only use first part of submitter name"
|
669 |
+
msgstr "Bruk kun fornavn på bidragsytere (innsendte lenker)"
|
670 |
+
|
671 |
+
#: link-library-admin.php:2359
|
672 |
+
msgid ""
|
673 |
+
"The name of the e-mail account that the approval e-mail will be sent from"
|
674 |
+
msgstr "Navnet på epostkontoen som epost for godkjenning skal sendes fra"
|
675 |
+
|
676 |
+
#: link-library-admin.php:2359
|
677 |
+
msgid "Moderator Name"
|
678 |
+
msgstr "Navn moderator"
|
679 |
+
|
680 |
+
#: link-library-admin.php:2365
|
681 |
+
msgid "The e-mail address that the approval e-mail will be sent from"
|
682 |
+
msgstr "Avsender epostadresse for godkjenning"
|
683 |
+
|
684 |
+
#: link-library-admin.php:2365
|
685 |
+
msgid "Moderator E-mail"
|
686 |
+
msgstr "Moderators epostadresse"
|
687 |
+
|
688 |
+
#: link-library-admin.php:2371
|
689 |
+
msgid ""
|
690 |
+
"Title of approval e-mail. Use %linkname% as a variable to be replaced by the "
|
691 |
+
"actual link name"
|
692 |
+
msgstr ""
|
693 |
+
"Tittel epost for godkjenning. Bruk %linkname% som variabel for det faktiske "
|
694 |
+
"lenkenavnet"
|
695 |
+
|
696 |
+
#: link-library-admin.php:2371
|
697 |
+
msgid "Approval e-mail title"
|
698 |
+
msgstr "Epost for godkjenning - tittel"
|
699 |
+
|
700 |
+
#: link-library-admin.php:2377
|
701 |
+
msgid ""
|
702 |
+
"Body of approval e-mail. Use %linkname% as a variable to be replaced by the "
|
703 |
+
"actual link name, %submittername% for the submitter name and %linkurl% for "
|
704 |
+
"the link address"
|
705 |
+
msgstr ""
|
706 |
+
"Innhold i epost for godkjenning av lenke. Bruk %linkname% som variabel for "
|
707 |
+
"det faktiske lenkenavnet, %submittername% for innsenders navn og %linkurl% "
|
708 |
+
"for lenkeadresse"
|
709 |
+
|
710 |
+
#: link-library-admin.php:2377
|
711 |
+
msgid "Approval e-mail body"
|
712 |
+
msgstr "Innhold epost for godkjenning"
|
713 |
+
|
714 |
+
#: link-library-admin.php:2383
|
715 |
+
msgid ""
|
716 |
+
"Title of rejection e-mail. Use %linkname% as a variable to be replaced by "
|
717 |
+
"the actual link name"
|
718 |
+
msgstr ""
|
719 |
+
"Tittel - epost for avvisning av lenkeforslag. Bruk %linkname% som variabel "
|
720 |
+
"for det faktiske lenkenavnet"
|
721 |
+
|
722 |
+
#: link-library-admin.php:2383
|
723 |
+
msgid "Rejection e-mail title"
|
724 |
+
msgstr "Tittel - epost for avvisning av lenke"
|
725 |
+
|
726 |
+
#: link-library-admin.php:2389
|
727 |
+
msgid ""
|
728 |
+
"Body of rejection e-mail. Use %linkname% as a variable to be replaced by the "
|
729 |
+
"actual link name, %submittername% for the submitter name and %linkurl% for "
|
730 |
+
"the link address"
|
731 |
+
msgstr ""
|
732 |
+
"Innhold i epost for avvisning av lenke. Benytt %linkname% der du vil "
|
733 |
+
"plassere navnet på den avviste lenken, %submittername% for innsenders navn, "
|
734 |
+
"og %linkurl% for å sette inn lenkeadressen"
|
735 |
+
|
736 |
+
#: link-library-admin.php:2389
|
737 |
+
msgid "Rejection e-mail body"
|
738 |
+
msgstr "Innhold i epost for avvisning av lenke"
|
739 |
+
|
740 |
+
#: link-library-admin.php:2402
|
741 |
+
msgid ""
|
742 |
+
"The following option allows you to hide the Donate button and Support the "
|
743 |
+
"Author section in the Link Library Admin pages. If you enjoy this plugin and "
|
744 |
+
"use it regularly, please consider making a donation to the author before "
|
745 |
+
"turning off these messages. This menu section will disappear along with the "
|
746 |
+
"other elements."
|
747 |
+
msgstr ""
|
748 |
+
"Dette valget lar deg skjule donasjonsknapper og support for utviklerne i "
|
749 |
+
"Link Librarys kontrollpanel. Hvis du liker denne utvidelsen og har glede og "
|
750 |
+
"nytte av den, ber vi deg vurdere å donere en sum du velger selv til "
|
751 |
+
"utviklerne av Link Library før du slår av disse valgene. "
|
752 |
+
|
753 |
+
#: link-library-admin.php:2405
|
754 |
+
msgid "Hide Donation and Support Links"
|
755 |
+
msgstr "Skjul donasjon- og support-lenker"
|
756 |
+
|
757 |
+
#: link-library-admin.php:2420
|
758 |
+
msgid "Export all links to a CSV file"
|
759 |
+
msgstr "Eksportere alle lenker til CSV-fil / regneark"
|
760 |
+
|
761 |
+
#: link-library-admin.php:2422
|
762 |
+
msgid "Export All Links"
|
763 |
+
msgstr "Eksporter alle lenker"
|
764 |
+
|
765 |
+
#: link-library-admin.php:2429
|
766 |
+
msgid ""
|
767 |
+
"Allows for links to be added in batch to the Wordpress links database. CSV "
|
768 |
+
"file needs to follow template for column layout."
|
769 |
+
msgstr ""
|
770 |
+
"Tillat at lenkene samlet legges til lenke-databasen i Wordpress. CSV-fil må "
|
771 |
+
"være satt opp med kolonner."
|
772 |
+
|
773 |
+
#: link-library-admin.php:2429
|
774 |
+
msgid "CSV file to upload to import links"
|
775 |
+
msgstr "CSV-fil for opplasting og importering av lenker"
|
776 |
+
|
777 |
+
#: link-library-admin.php:2429
|
778 |
+
msgid "file template"
|
779 |
+
msgstr "fil-mal"
|
780 |
+
|
781 |
+
#: link-library-admin.php:2432
|
782 |
+
msgid "Import Links from CSV"
|
783 |
+
msgstr "Importer lenker fra CSV"
|
784 |
+
|
785 |
+
#: link-library-admin.php:2436
|
786 |
+
msgid "First row contains column headers"
|
787 |
+
msgstr "Første rad inneholder kolonneoverskrifter"
|
788 |
+
|
789 |
+
#: link-library-admin.php:2440 link-library-admin.php:2470
|
790 |
+
msgid "Update items when URL is identical"
|
791 |
+
msgstr "Oppdater objektet når URL er identisk"
|
792 |
+
|
793 |
+
#: link-library-admin.php:2448
|
794 |
+
msgid "Import links from site pages"
|
795 |
+
msgstr "Importer lenker fra sider på nettstedet"
|
796 |
+
|
797 |
+
#: link-library-admin.php:2449
|
798 |
+
msgid "All Pages and Posts"
|
799 |
+
msgstr "Alle sider og innlegg"
|
800 |
+
|
801 |
+
#: link-library-admin.php:2450
|
802 |
+
msgid "All Pages, Posts and Custom Post Types"
|
803 |
+
msgstr "Alle sider, innlegg og spesielle maler som er i bruk på nettstedet"
|
804 |
+
|
805 |
+
#: link-library-admin.php:2451
|
806 |
+
msgid "Specific Page"
|
807 |
+
msgstr "Spesifikk side"
|
808 |
+
|
809 |
+
#: link-library-admin.php:2455
|
810 |
+
msgid "Specific Post"
|
811 |
+
msgstr "Spesifikt innlegg"
|
812 |
+
|
813 |
+
#: link-library-admin.php:2465
|
814 |
+
msgid "Specific "
|
815 |
+
msgstr "Spesifikk "
|
816 |
+
|
817 |
+
#: link-library-admin.php:2484
|
818 |
+
msgid "Import Links from Site"
|
819 |
+
msgstr "Importere lenker fra nettsted"
|
820 |
+
|
821 |
+
#: link-library-admin.php:2494
|
822 |
+
msgid "Save Settings"
|
823 |
+
msgstr "Lagre innstillinger"
|
824 |
+
|
825 |
+
#: link-library-admin.php:2503
|
826 |
+
msgid "Update Settings"
|
827 |
+
msgstr "Oppdater innstillinger"
|
828 |
+
|
829 |
+
#: link-library-admin.php:2514 link-library-admin.php:3183
|
830 |
+
#: link-library-admin.php:3495 link-library-admin.php:4286
|
831 |
+
#: usersubmission.php:295 usersubmission.php:352
|
832 |
+
msgid "Link Name"
|
833 |
+
msgstr "Lenkenavn"
|
834 |
+
|
835 |
+
#: link-library-admin.php:2515 link-library-admin.php:4321
|
836 |
+
#: link-library-defaults.php:123 usersubmission.php:301 usersubmission.php:371
|
837 |
+
msgid "Link Category"
|
838 |
+
msgstr "Lenkekategori"
|
839 |
+
|
840 |
+
#: link-library-admin.php:2516
|
841 |
+
msgid "Link URL"
|
842 |
+
msgstr "Lenkekadresse"
|
843 |
+
|
844 |
+
#: link-library-admin.php:2517 link-library-admin.php:3183
|
845 |
+
#: link-library-admin.php:3540 link-library-admin.php:4400
|
846 |
+
#: link-library-defaults.php:124 usersubmission.php:298 usersubmission.php:360
|
847 |
+
msgid "Link Description"
|
848 |
+
msgstr "Lenkebeskrivelse"
|
849 |
+
|
850 |
+
#: link-library-admin.php:2560
|
851 |
+
msgid "No Links Found to Moderate"
|
852 |
+
msgstr "Ingen lenker å moderere"
|
853 |
+
|
854 |
+
#: link-library-admin.php:2567
|
855 |
+
msgid "Check All"
|
856 |
+
msgstr "Merk alle"
|
857 |
+
|
858 |
+
#: link-library-admin.php:2568
|
859 |
+
msgid "Uncheck All"
|
860 |
+
msgstr "Fjern alle"
|
861 |
+
|
862 |
+
#: link-library-admin.php:2570
|
863 |
+
msgid "Approve Selected Items"
|
864 |
+
msgstr "Godkjenn valgte objekter"
|
865 |
+
|
866 |
+
#: link-library-admin.php:2571
|
867 |
+
msgid "Delete Selected Items"
|
868 |
+
msgstr "Slett valgte objekter"
|
869 |
+
|
870 |
+
#: link-library-admin.php:2594
|
871 |
+
msgid ""
|
872 |
+
"If the stylesheet editor is empty after upgrading, reset to the default "
|
873 |
+
"stylesheet using the button below or copy/paste your backup stylesheet into "
|
874 |
+
"the editor."
|
875 |
+
msgstr ""
|
876 |
+
"Hvis stilark-editoren er tom etter oppgradering, gjenopprett til standard "
|
877 |
+
"stilark ved å bruke knappen under, eller klipp og lim fra lokal kopi av "
|
878 |
+
"stilark til editor."
|
879 |
+
|
880 |
+
#: link-library-admin.php:2601
|
881 |
+
msgid "Submit"
|
882 |
+
msgstr "Send"
|
883 |
+
|
884 |
+
#: link-library-admin.php:2601
|
885 |
+
msgid "Reset to default"
|
886 |
+
msgstr "Sett tilbake til standardinnstillinger"
|
887 |
+
|
888 |
+
#: link-library-admin.php:2612
|
889 |
+
msgid "Select Current Library Settings"
|
890 |
+
msgstr "Velg gjeldene bibliotek-innstillinger"
|
891 |
+
|
892 |
+
#: link-library-admin.php:2629
|
893 |
+
msgid "Go"
|
894 |
+
msgstr "Sett i gang"
|
895 |
+
|
896 |
+
#: link-library-admin.php:2631
|
897 |
+
msgid "Copy from:"
|
898 |
+
msgstr "Kopiere fra :"
|
899 |
+
|
900 |
+
#: link-library-admin.php:2647
|
901 |
+
msgid "Copy"
|
902 |
+
msgstr "Kopiere"
|
903 |
+
|
904 |
+
#: link-library-admin.php:2661 link-library-admin.php:2664
|
905 |
+
#: link-library-admin.php:2668
|
906 |
+
msgid ""
|
907 |
+
"Link Library Supports the Creation of an unlimited number of configurations "
|
908 |
+
"to display link lists on your site"
|
909 |
+
msgstr ""
|
910 |
+
"Link Library har ingen begrensninger i antall konfigurasjoner for visning av "
|
911 |
+
"lenker på nettsidene dine"
|
912 |
+
|
913 |
+
#: link-library-admin.php:2665
|
914 |
+
msgid "Library Name"
|
915 |
+
msgstr "Navn på bibliotek"
|
916 |
+
|
917 |
+
#: link-library-admin.php:2667
|
918 |
+
msgid "Feature"
|
919 |
+
msgstr "Funksjon"
|
920 |
+
|
921 |
+
#: link-library-admin.php:2669
|
922 |
+
msgid "Code to insert on a Wordpress page"
|
923 |
+
msgstr "Kode for å sette inn på Wordpress-side"
|
924 |
+
|
925 |
+
#: link-library-admin.php:2676
|
926 |
+
msgid "Display basic link library"
|
927 |
+
msgstr "Vis basisversjon av Link Library"
|
928 |
+
|
929 |
+
#: link-library-admin.php:2682
|
930 |
+
msgid "Display list of link categories"
|
931 |
+
msgstr "Vis liste over lenkekategorier"
|
932 |
+
|
933 |
+
#: link-library-admin.php:2688
|
934 |
+
msgid "Display search box"
|
935 |
+
msgstr "Vis søkefelt"
|
936 |
+
|
937 |
+
#: link-library-admin.php:2694
|
938 |
+
msgid "Display link submission form"
|
939 |
+
msgstr "Vis skjema for innsendelse av lenkeforslag"
|
940 |
+
|
941 |
+
#: link-library-admin.php:2701
|
942 |
+
#, php-format
|
943 |
+
msgid ""
|
944 |
+
"You are about to Delete Library #'%s'\n"
|
945 |
+
" 'Cancel' to stop, 'OK' to delete."
|
946 |
+
msgstr ""
|
947 |
+
"Du er i ferd med å slette bibliotek '%s'\\n 'Avbryt' for å beholde "
|
948 |
+
"biblioteket, 'OK' for å slette."
|
949 |
+
|
950 |
+
#: link-library-admin.php:2701
|
951 |
+
msgid "Delete Library"
|
952 |
+
msgstr "Slett bibliotek"
|
953 |
+
|
954 |
+
#: link-library-admin.php:2702
|
955 |
+
#, php-format
|
956 |
+
msgid ""
|
957 |
+
"You are about to reset Library '%s'\n"
|
958 |
+
" 'Cancel' to stop, 'OK' to reset."
|
959 |
+
msgstr ""
|
960 |
+
"Du er i ferd med å tilbakestille bibliotek '%s'\\n 'Avbryt' for å beholde, "
|
961 |
+
"'OK' for å slette."
|
962 |
+
|
963 |
+
#: link-library-admin.php:2702
|
964 |
+
msgid "Reset current Library"
|
965 |
+
msgstr "Tilbakestill gjeldene bibliotek"
|
966 |
+
|
967 |
+
#: link-library-admin.php:2703
|
968 |
+
#, php-format
|
969 |
+
msgid ""
|
970 |
+
"You are about to reset Library '%s' for a table layout\n"
|
971 |
+
" 'Cancel' to stop, 'OK' to reset."
|
972 |
+
msgstr ""
|
973 |
+
"Du er i ferd med å tilbakestille bibliotek '%s' til å bruke tabell-layout\n"
|
974 |
+
" 'Avbryt' for å beholde gjeldene oppsett, 'OK' for å fortsette."
|
975 |
+
|
976 |
+
#: link-library-admin.php:2703
|
977 |
+
msgid "Reset current Library for table layout"
|
978 |
+
msgstr "Tilbakestill gjeldene bibliotek til tabell-layout"
|
979 |
+
|
980 |
+
#: link-library-admin.php:2734
|
981 |
+
msgid "No link categories! Create some!"
|
982 |
+
msgstr "Ingen lenkekategorier! Lag noen!"
|
983 |
+
|
984 |
+
#: link-library-admin.php:2751
|
985 |
+
msgid "Current Library Name"
|
986 |
+
msgstr "Gjeldene biblioteknavn"
|
987 |
+
|
988 |
+
#: link-library-admin.php:2758 link-library-admin.php:2766
|
989 |
+
msgid "Leave Empty to see all categories"
|
990 |
+
msgstr "La stå tom for å se alle kategorier"
|
991 |
+
|
992 |
+
#: link-library-admin.php:2758 link-library-admin.php:2766
|
993 |
+
#: link-library-admin.php:2786 link-library-admin.php:2790
|
994 |
+
msgid "Enter list of comma-separated"
|
995 |
+
msgstr "Fyll inn komma-separert liste"
|
996 |
+
|
997 |
+
#: link-library-admin.php:2758 link-library-admin.php:2766
|
998 |
+
msgid "numeric category IDs"
|
999 |
+
msgstr "numerisk katagori ID"
|
1000 |
+
|
1001 |
+
#: link-library-admin.php:2758
|
1002 |
+
msgid ""
|
1003 |
+
"To find the IDs, go to the Link Categories admin page, place the mouse above "
|
1004 |
+
"a category name and look for its ID in the address shown in your browsers "
|
1005 |
+
"status bar. For example"
|
1006 |
+
msgstr ""
|
1007 |
+
"For å finne ID, gå til siden for lenkekategorier i kontrollpanelet og "
|
1008 |
+
"plasser muspekeren over kategorinavnet for å se ID i adressen som vises i "
|
1009 |
+
"statusfeltet. For eksempel"
|
1010 |
+
|
1011 |
+
#: link-library-admin.php:2760
|
1012 |
+
msgid "Categories to be displayed (Empty=All)"
|
1013 |
+
msgstr "Kategorier for visning (tom=vis alle)"
|
1014 |
+
|
1015 |
+
#: link-library-admin.php:2762
|
1016 |
+
msgid "Categories to be displayed"
|
1017 |
+
msgstr "Kategorier for visning"
|
1018 |
+
|
1019 |
+
#: link-library-admin.php:2766 link-library-admin.php:2786
|
1020 |
+
#: link-library-admin.php:2790
|
1021 |
+
msgid "For example"
|
1022 |
+
msgstr "For eksempel"
|
1023 |
+
|
1024 |
+
#: link-library-admin.php:2779
|
1025 |
+
msgid "Show all categories"
|
1026 |
+
msgstr "Vis alle kategorier"
|
1027 |
+
|
1028 |
+
#: link-library-admin.php:2786 link-library-admin.php:2790
|
1029 |
+
msgid "numeric category IDs that should not be shown"
|
1030 |
+
msgstr "numeriske kategori ID kan ikke vises"
|
1031 |
+
|
1032 |
+
#: link-library-admin.php:2787
|
1033 |
+
msgid "Categories to be excluded"
|
1034 |
+
msgstr "Kategorier som skal ekskluderes"
|
1035 |
+
|
1036 |
+
#: link-library-admin.php:2799
|
1037 |
+
msgid "No Exclusions"
|
1038 |
+
msgstr "Ingen ekskluderte"
|
1039 |
+
|
1040 |
+
#: link-library-admin.php:2806 link-library-admin.php:2809
|
1041 |
+
msgid "Only show one category of links at a time"
|
1042 |
+
msgstr "Vis kun en lenkekategori om gangen"
|
1043 |
+
|
1044 |
+
#: link-library-admin.php:2807
|
1045 |
+
msgid "Only show one category at a time"
|
1046 |
+
msgstr "Vis kun en kategori om gangen"
|
1047 |
+
|
1048 |
+
#: link-library-admin.php:2812
|
1049 |
+
msgid ""
|
1050 |
+
"Select if AJAX should be used to only reload the list of links without "
|
1051 |
+
"reloading the whole page or HTML GET to reload entire page with a new link. "
|
1052 |
+
"The Permalinks option must be enabled for HTML GET + Permalink to work "
|
1053 |
+
"correctly."
|
1054 |
+
msgstr ""
|
1055 |
+
"Velg dersom AJAX skal brukes kun til å oppdatere listen over lenker uten å "
|
1056 |
+
"laste hele siden på nytt, eller HTML GET for å laste hele siden på nytt med "
|
1057 |
+
"nye lenker. Permalenker må være aktivisert for at HTML GET + Permalenke skal "
|
1058 |
+
"fungere."
|
1059 |
+
|
1060 |
+
#: link-library-admin.php:2812
|
1061 |
+
msgid "Switching Method"
|
1062 |
+
msgstr "Bytter metode"
|
1063 |
+
|
1064 |
+
#: link-library-admin.php:2830
|
1065 |
+
msgid ""
|
1066 |
+
"Default category to be shown when only showing one at a time (numeric ID)"
|
1067 |
+
msgstr ""
|
1068 |
+
"Standard kategori for visning når det kun skal vises en om gangen (numerisk "
|
1069 |
+
"ID)"
|
1070 |
+
|
1071 |
+
#: link-library-admin.php:2835
|
1072 |
+
msgid "Hide category on start in single cat mode"
|
1073 |
+
msgstr "Skjul kategori ved oppstart i enkeltkategori-modus"
|
1074 |
+
|
1075 |
+
#: link-library-admin.php:2840 link-library-admin.php:2843
|
1076 |
+
msgid "File path is relative to Link Library plugin directory"
|
1077 |
+
msgstr "Stien til fila er relativ til Link Librarys plugin-mappe"
|
1078 |
+
|
1079 |
+
#: link-library-admin.php:2841
|
1080 |
+
msgid "Icon to display when performing AJAX queries"
|
1081 |
+
msgstr "Ikon som skal vises når AJAX kjører"
|
1082 |
+
|
1083 |
+
#: link-library-admin.php:2852 link-library-admin.php:2855
|
1084 |
+
msgid "Only show a limited number of links and add page navigation links"
|
1085 |
+
msgstr "Vis kun et begrenset antall lenker og legg til sidenavigasjon"
|
1086 |
+
|
1087 |
+
#: link-library-admin.php:2853
|
1088 |
+
msgid "Paginate Results"
|
1089 |
+
msgstr "Sidenumrering resultat"
|
1090 |
+
|
1091 |
+
#: link-library-admin.php:2858 link-library-admin.php:2861
|
1092 |
+
msgid "Number of Links to be Displayed per Page in Pagination Mode"
|
1093 |
+
msgstr "Antall lenker som skal vises per side i visning med sidenumrering"
|
1094 |
+
|
1095 |
+
#: link-library-admin.php:2859
|
1096 |
+
msgid "Links per Page"
|
1097 |
+
msgstr "Antall lenker per side"
|
1098 |
+
|
1099 |
+
#: link-library-admin.php:2867
|
1100 |
+
msgid "Pagination Position"
|
1101 |
+
msgstr "Plassering av sidenavigasjon"
|
1102 |
+
|
1103 |
+
#: link-library-admin.php:2871
|
1104 |
+
msgid "After Links"
|
1105 |
+
msgstr "Etter lenker"
|
1106 |
+
|
1107 |
+
#: link-library-admin.php:2872 link-library-admin.php:2926
|
1108 |
+
msgid "Before Links"
|
1109 |
+
msgstr "Før lenker"
|
1110 |
+
|
1111 |
+
#: link-library-admin.php:2876
|
1112 |
+
msgid "Hide Results if Empty"
|
1113 |
+
msgstr "Skjul resultat hvis ikke utfylt"
|
1114 |
+
|
1115 |
+
#: link-library-admin.php:2887
|
1116 |
+
msgid "Enable Permalinks"
|
1117 |
+
msgstr "Aktivisere permalenker"
|
1118 |
+
|
1119 |
+
#: link-library-admin.php:2893
|
1120 |
+
msgid "Permalinks Page"
|
1121 |
+
msgstr "Side for permalenker"
|
1122 |
+
|
1123 |
+
#: link-library-admin.php:2901
|
1124 |
+
msgid "Permalink Top Page Text"
|
1125 |
+
msgstr "Permelenke topptekst"
|
1126 |
+
|
1127 |
+
#: link-library-admin.php:2909
|
1128 |
+
msgid "Category links in permalinks mode"
|
1129 |
+
msgstr "Kategorilenker i permalenke-modus"
|
1130 |
+
|
1131 |
+
#: link-library-admin.php:2915
|
1132 |
+
msgid "Show breadcrumbs in permalinks mode"
|
1133 |
+
msgstr "Vi breadcrumbs i permelenke-modus"
|
1134 |
+
|
1135 |
+
#: link-library-admin.php:2925
|
1136 |
+
msgid "Display alphabetic cat filter"
|
1137 |
+
msgstr "Vis kategorier alfabetisk"
|
1138 |
+
|
1139 |
+
#: link-library-admin.php:2926
|
1140 |
+
msgid "Do not display"
|
1141 |
+
msgstr "Ikke vis"
|
1142 |
+
|
1143 |
+
#: link-library-admin.php:2926
|
1144 |
+
msgid "Before Categories"
|
1145 |
+
msgstr "Før kategorier"
|
1146 |
+
|
1147 |
+
#: link-library-admin.php:2926
|
1148 |
+
msgid "Before Categories and Links"
|
1149 |
+
msgstr "Før kategorier og lenker"
|
1150 |
+
|
1151 |
+
#: link-library-admin.php:2933
|
1152 |
+
msgid "Auto-select first alphabetic cat item"
|
1153 |
+
msgstr "Velg første katalog-objekt automatisk"
|
1154 |
+
|
1155 |
+
#: link-library-admin.php:2937
|
1156 |
+
msgid "Display ALL box in alphabetic cat filter"
|
1157 |
+
msgstr "Vis alle-boks i alfabetisk kategorifilter"
|
1158 |
+
|
1159 |
+
#: link-library-admin.php:2939
|
1160 |
+
msgid "Cat filter label"
|
1161 |
+
msgstr "Kategorifilter merkelapp"
|
1162 |
+
|
1163 |
+
#: link-library-admin.php:2943
|
1164 |
+
msgid "Only display links submitted by current user"
|
1165 |
+
msgstr "Vis kun lenker som er innsendt av gjeldene bruker"
|
1166 |
+
|
1167 |
+
#: link-library-admin.php:2988
|
1168 |
+
msgid "Results Order"
|
1169 |
+
msgstr "Rekkefølge resultat"
|
1170 |
+
|
1171 |
+
#: link-library-admin.php:2992 link-library-admin.php:3143
|
1172 |
+
msgid "Order by Name"
|
1173 |
+
msgstr "Sortere etter navn"
|
1174 |
+
|
1175 |
+
#: link-library-admin.php:2993 link-library-admin.php:3144
|
1176 |
+
msgid "Order by ID"
|
1177 |
+
msgstr "Sortere etter ID"
|
1178 |
+
|
1179 |
+
#: link-library-admin.php:2995
|
1180 |
+
msgid "Order of categories based on included category list"
|
1181 |
+
msgstr "Rekkefølge på kategorier basert på inkludert kategoriliste"
|
1182 |
+
|
1183 |
+
#: link-library-admin.php:2997
|
1184 |
+
msgid "Order by"
|
1185 |
+
msgstr "Sortere etter"
|
1186 |
+
|
1187 |
+
#: link-library-admin.php:2997 link-library-admin.php:3145
|
1188 |
+
msgid "Wordpress Plugin"
|
1189 |
+
msgstr "Utvidelse (plugin) WordPress"
|
1190 |
+
|
1191 |
+
#: link-library-admin.php:3002
|
1192 |
+
msgid "Link Categories Display Format"
|
1193 |
+
msgstr "Format lenkekategorier"
|
1194 |
+
|
1195 |
+
#: link-library-admin.php:3006 link-library-admin.php:3226
|
1196 |
+
msgid "Table"
|
1197 |
+
msgstr "Tabell"
|
1198 |
+
|
1199 |
+
#: link-library-admin.php:3007 link-library-admin.php:3227
|
1200 |
+
msgid "Unordered List"
|
1201 |
+
msgstr "Usortert liste"
|
1202 |
+
|
1203 |
+
#: link-library-admin.php:3008
|
1204 |
+
msgid "Drop-Down List"
|
1205 |
+
msgstr "Nedtrekksliste"
|
1206 |
+
|
1207 |
+
#: link-library-admin.php:3009
|
1208 |
+
msgid "Drop-Down List Direct Access"
|
1209 |
+
msgstr "Nedtrekksliste direkte aksess"
|
1210 |
+
|
1211 |
+
#: link-library-admin.php:3015
|
1212 |
+
msgid "Display link counts"
|
1213 |
+
msgstr "Vis lenkeantall"
|
1214 |
+
|
1215 |
+
#: link-library-admin.php:3021
|
1216 |
+
msgid "Display categories with search results"
|
1217 |
+
msgstr "Vis kategorier med søkeresultater"
|
1218 |
+
|
1219 |
+
#: link-library-admin.php:3026 link-library-admin.php:3029
|
1220 |
+
msgid "This setting does not apply when selecting My Link Order for the order"
|
1221 |
+
msgstr ""
|
1222 |
+
"Denne innstillingen vil være uvirksom når egendefinert lenkerekkefølge er "
|
1223 |
+
"valgt"
|
1224 |
+
|
1225 |
+
#: link-library-admin.php:3027 link-library-admin.php:3197
|
1226 |
+
msgid "Direction"
|
1227 |
+
msgstr "Retning"
|
1228 |
+
|
1229 |
+
#: link-library-admin.php:3031 link-library-admin.php:3201
|
1230 |
+
msgid "Ascending"
|
1231 |
+
msgstr "Stigende"
|
1232 |
+
|
1233 |
+
#: link-library-admin.php:3032 link-library-admin.php:3202
|
1234 |
+
msgid "Descending"
|
1235 |
+
msgstr "Synkende"
|
1236 |
+
|
1237 |
+
#: link-library-admin.php:3036 link-library-admin.php:3039
|
1238 |
+
#: link-library-admin.php:3151 link-library-admin.php:3154
|
1239 |
+
msgid ""
|
1240 |
+
"Use [ and ] in the description to perform special actions using HTML such as "
|
1241 |
+
"inserting images instead of < and >"
|
1242 |
+
msgstr ""
|
1243 |
+
"Bruk [ and ] i beskrivelsen for å utføre spesielle operasjoner ved hjelp av "
|
1244 |
+
"HTML, som for eksempel å sette inn et bilde i stedet for < and >"
|
1245 |
+
|
1246 |
+
#: link-library-admin.php:3037 link-library-admin.php:3152
|
1247 |
+
msgid "Show Category Description"
|
1248 |
+
msgstr "Vis kategoribeskrivelse"
|
1249 |
+
|
1250 |
+
#: link-library-admin.php:3041 link-library-admin.php:3156
|
1251 |
+
msgid "Position"
|
1252 |
+
msgstr "Posisjon"
|
1253 |
+
|
1254 |
+
#: link-library-admin.php:3043 link-library-admin.php:3158
|
1255 |
+
msgid "Right"
|
1256 |
+
msgstr "Høyre"
|
1257 |
+
|
1258 |
+
#: link-library-admin.php:3044 link-library-admin.php:3159
|
1259 |
+
msgid "Left"
|
1260 |
+
msgstr "Venstre"
|
1261 |
+
|
1262 |
+
#: link-library-admin.php:3050
|
1263 |
+
msgid "Width of Categories Table in Percents"
|
1264 |
+
msgstr "Bredde på kategoritabell i prosent"
|
1265 |
+
|
1266 |
+
#: link-library-admin.php:3056 link-library-admin.php:3059
|
1267 |
+
msgid ""
|
1268 |
+
"Determines the number of alternating div tags that will be placed before and "
|
1269 |
+
"after each link category"
|
1270 |
+
msgstr ""
|
1271 |
+
"Bestemmer antallet aternative div tagger som vil bli plassert foran og etter "
|
1272 |
+
"hver lenkekategori"
|
1273 |
+
|
1274 |
+
#: link-library-admin.php:3056 link-library-admin.php:3059
|
1275 |
+
msgid ""
|
1276 |
+
"These div tags can be used to style of position link categories on the link "
|
1277 |
+
"page"
|
1278 |
+
msgstr ""
|
1279 |
+
"Disse div-taggene kan brukes til å bestemme posisjonen for lenkekategoriene "
|
1280 |
+
"på siden"
|
1281 |
+
|
1282 |
+
#: link-library-admin.php:3057
|
1283 |
+
msgid "Number of alternating div classes"
|
1284 |
+
msgstr "Antall alternative div-tagger"
|
1285 |
+
|
1286 |
+
#: link-library-admin.php:3072
|
1287 |
+
msgid "Number of columns in Categories Table"
|
1288 |
+
msgstr "Antall kolonner i kategoritabellen"
|
1289 |
+
|
1290 |
+
#: link-library-admin.php:3079
|
1291 |
+
msgid "First div class name"
|
1292 |
+
msgstr "Første div klasse navn"
|
1293 |
+
|
1294 |
+
#: link-library-admin.php:3087
|
1295 |
+
msgid "Use Div Class or Heading tag around Category Names"
|
1296 |
+
msgstr "Bruk div-klasse eller overskrift-tag for navn på kategori"
|
1297 |
+
|
1298 |
+
#: link-library-admin.php:3091
|
1299 |
+
msgid "Div Class"
|
1300 |
+
msgstr "Div-klasse"
|
1301 |
+
|
1302 |
+
#: link-library-admin.php:3092
|
1303 |
+
msgid "Heading Tag"
|
1304 |
+
msgstr "Heading tag"
|
1305 |
+
|
1306 |
+
#: link-library-admin.php:3097
|
1307 |
+
msgid "Second div class name"
|
1308 |
+
msgstr "Andre div-klasse navn"
|
1309 |
+
|
1310 |
+
#: link-library-admin.php:3104 link-library-admin.php:3107
|
1311 |
+
msgid "Example div class name: linklistcatname, Example Heading Label: h3"
|
1312 |
+
msgstr "Eksempel div : lenkelistekategorinavn, Eksempel heading : h3"
|
1313 |
+
|
1314 |
+
#: link-library-admin.php:3105
|
1315 |
+
msgid "Div Class Name or Heading label"
|
1316 |
+
msgstr "Div-klasse navn eller merkelapp for overskrift"
|
1317 |
+
|
1318 |
+
#: link-library-admin.php:3112
|
1319 |
+
msgid "Third div class name"
|
1320 |
+
msgstr "Tredje div-klasse navn"
|
1321 |
+
|
1322 |
+
#: link-library-admin.php:3119 link-library-admin.php:3122
|
1323 |
+
msgid ""
|
1324 |
+
"Set this address to a page running Link Library to place categories on a "
|
1325 |
+
"different page. Should always be used with the Show One Category at a Time "
|
1326 |
+
"and HTMLGET fetch method."
|
1327 |
+
msgstr ""
|
1328 |
+
"Sett denne adressen til en side som kjører Link Library for å plassere "
|
1329 |
+
"kategorier på en annen side. Må brukes sammen med \"Vis bare en kategori om "
|
1330 |
+
"gangen\" og HTMLGET importering."
|
1331 |
+
|
1332 |
+
#: link-library-admin.php:3120
|
1333 |
+
msgid "Category Target Address"
|
1334 |
+
msgstr "Kategori måladresse"
|
1335 |
+
|
1336 |
+
#: link-library-admin.php:3139
|
1337 |
+
msgid "Link Results Order"
|
1338 |
+
msgstr "Sortering av lenkeresultater"
|
1339 |
+
|
1340 |
+
#: link-library-admin.php:3145
|
1341 |
+
msgid "Order set by "
|
1342 |
+
msgstr "Rekkefølge bestemt av "
|
1343 |
+
|
1344 |
+
#: link-library-admin.php:3146
|
1345 |
+
msgid "Order randomly"
|
1346 |
+
msgstr "Sorter tilfeldig"
|
1347 |
+
|
1348 |
+
#: link-library-admin.php:3147
|
1349 |
+
msgid "Order by updated date"
|
1350 |
+
msgstr "Sortere etter oppdateringsdato"
|
1351 |
+
|
1352 |
+
#: link-library-admin.php:3160
|
1353 |
+
msgid "After Category Name"
|
1354 |
+
msgstr "Etter kategorinavn"
|
1355 |
+
|
1356 |
+
#: link-library-admin.php:3161
|
1357 |
+
msgid "After Top-Level Category Name"
|
1358 |
+
msgstr "Etter toppnivå kategorinavn"
|
1359 |
+
|
1360 |
+
#: link-library-admin.php:3166
|
1361 |
+
msgid "List Featured Links ahead of Regular Links"
|
1362 |
+
msgstr "Plassere merkede/uthevede lenker foran vanlige lenker"
|
1363 |
+
|
1364 |
+
#: link-library-admin.php:3170
|
1365 |
+
msgid "Show Expand Link button and hide links"
|
1366 |
+
msgstr "Vis \"utvid\"-knapp og gjem lenker"
|
1367 |
+
|
1368 |
+
#: link-library-admin.php:3175
|
1369 |
+
msgid "Combine all results without categories"
|
1370 |
+
msgstr "Kombinere alle resultater uten kategorier"
|
1371 |
+
|
1372 |
+
#: link-library-admin.php:3179
|
1373 |
+
msgid "Link Title Content"
|
1374 |
+
msgstr "Lenketittel innhold"
|
1375 |
+
|
1376 |
+
#: link-library-admin.php:3196 link-library-admin.php:3199
|
1377 |
+
msgid "Except for My Link Order mode"
|
1378 |
+
msgstr "Med unntak av Mine Lenker sortering"
|
1379 |
+
|
1380 |
+
#: link-library-admin.php:3206 link-library-admin.php:3209
|
1381 |
+
msgid "Leave empty to show all results"
|
1382 |
+
msgstr "La stå tom for å vise alle resultater"
|
1383 |
+
|
1384 |
+
#: link-library-admin.php:3207
|
1385 |
+
msgid "Max number of links to display"
|
1386 |
+
msgstr "Maksimum antall lenker i visning"
|
1387 |
+
|
1388 |
+
#: link-library-admin.php:3214 link-library-admin.php:3217
|
1389 |
+
msgid ""
|
1390 |
+
"Sets default link target window, does not override specific targets set in "
|
1391 |
+
"links"
|
1392 |
+
msgstr ""
|
1393 |
+
"Angir standard lenkemål ( target ), overskriver ikke spesifikke lenkemål "
|
1394 |
+
"satt i den enkelte lenken"
|
1395 |
+
|
1396 |
+
#: link-library-admin.php:3215
|
1397 |
+
msgid "Link Target"
|
1398 |
+
msgstr "Lenkemål"
|
1399 |
+
|
1400 |
+
#: link-library-admin.php:3222
|
1401 |
+
msgid "Link Display Format"
|
1402 |
+
msgstr "Lenke visningsformat"
|
1403 |
+
|
1404 |
+
#: link-library-admin.php:3233
|
1405 |
+
msgid "Show Column Headers"
|
1406 |
+
msgstr "Vis kolonneoverskrifter"
|
1407 |
+
|
1408 |
+
#: link-library-admin.php:3240
|
1409 |
+
msgid "Column Headers Override"
|
1410 |
+
msgstr "Overstyr kolonneoverskrifter"
|
1411 |
+
|
1412 |
+
#: link-library-admin.php:3243
|
1413 |
+
msgid "Comma-separated list of column header labels"
|
1414 |
+
msgstr "Komma-separerte liste over kolonnenes overskrifter"
|
1415 |
+
|
1416 |
+
#: link-library-admin.php:3249
|
1417 |
+
msgid "Allow sorting through column headers"
|
1418 |
+
msgstr "Tillat sortering på kolonnenes overskrifter"
|
1419 |
+
|
1420 |
+
#: link-library-admin.php:3257
|
1421 |
+
msgid "Hide Category Names"
|
1422 |
+
msgstr "Skjul kategorinavn"
|
1423 |
+
|
1424 |
+
#: link-library-admin.php:3264
|
1425 |
+
msgid "Show Hidden Links"
|
1426 |
+
msgstr "Vis gjemte lenker"
|
1427 |
+
|
1428 |
+
#: link-library-admin.php:3272
|
1429 |
+
msgid "Hide links of children categories"
|
1430 |
+
msgstr "Skjul liste over underkategorier"
|
1431 |
+
|
1432 |
+
#: link-library-admin.php:3279
|
1433 |
+
msgid "Child category depth limit"
|
1434 |
+
msgstr "Underkategori dybdebegrensning"
|
1435 |
+
|
1436 |
+
#: link-library-admin.php:3287
|
1437 |
+
msgid "Hide children categories on top page"
|
1438 |
+
msgstr "Gjem underkategorier på toppside"
|
1439 |
+
|
1440 |
+
#: link-library-admin.php:3294 link-library-admin.php:3297
|
1441 |
+
msgid "Need to be active for Link Categories to work"
|
1442 |
+
msgstr "Må være aktiv for at lenkekategorier skal fungere"
|
1443 |
+
|
1444 |
+
#: link-library-admin.php:3295
|
1445 |
+
msgid "Embed HTML anchors"
|
1446 |
+
msgstr "Bygg inn HTML-ankere"
|
1447 |
+
|
1448 |
+
#: link-library-admin.php:3302
|
1449 |
+
msgid "Show Hidden Links to Admins/Editors"
|
1450 |
+
msgstr "Vis skjulte lenker for administator/redaktør"
|
1451 |
+
|
1452 |
+
#: link-library-admin.php:3319
|
1453 |
+
msgid ""
|
1454 |
+
"Arrange the items below via drag-and-drop to order the various Link Library "
|
1455 |
+
"elements."
|
1456 |
+
msgstr ""
|
1457 |
+
"Organisere objektene under med dra-og-slipp for å sortere Link Library-"
|
1458 |
+
"elementene."
|
1459 |
+
|
1460 |
+
#: link-library-admin.php:3346 render-link-library-sc.php:986
|
1461 |
+
msgid "Name"
|
1462 |
+
msgstr "Navn"
|
1463 |
+
|
1464 |
+
#: link-library-admin.php:3350 render-link-library-sc.php:987
|
1465 |
+
msgid "Date"
|
1466 |
+
msgstr "Dato"
|
1467 |
+
|
1468 |
+
#: link-library-admin.php:3354
|
1469 |
+
msgid "Desc"
|
1470 |
+
msgstr "Beskrivelse"
|
1471 |
+
|
1472 |
+
#: link-library-admin.php:3358 link-library-admin.php:4706
|
1473 |
+
#: render-link-library-sc.php:988
|
1474 |
+
msgid "Notes"
|
1475 |
+
msgstr "Notater"
|
1476 |
+
|
1477 |
+
#: link-library-admin.php:3362 render-link-library-sc.php:988
|
1478 |
+
msgid "RSS"
|
1479 |
+
msgstr "RSS"
|
1480 |
+
|
1481 |
+
#: link-library-admin.php:3366 link-library-admin.php:3591
|
1482 |
+
#: render-link-library-sc.php:989
|
1483 |
+
msgid "Web Link"
|
1484 |
+
msgstr "Weblenke"
|
1485 |
+
|
1486 |
+
#: link-library-admin.php:3370
|
1487 |
+
msgid "Phone"
|
1488 |
+
msgstr "Telefon"
|
1489 |
+
|
1490 |
+
#: link-library-admin.php:3374 link-library-admin.php:3648
|
1491 |
+
#: link-library-admin.php:4492 link-library-admin.php:5002
|
1492 |
+
#: link-library-defaults.php:172 render-link-library-addlink-sc.php:442
|
1493 |
+
#: render-link-library-sc.php:990
|
1494 |
+
msgid "E-mail"
|
1495 |
+
msgstr "Epost"
|
1496 |
+
|
1497 |
+
#: link-library-admin.php:3378 render-link-library-sc.php:990
|
1498 |
+
msgid "Hits"
|
1499 |
+
msgstr "Treff"
|
1500 |
+
|
1501 |
+
#: link-library-admin.php:3382 link-library-admin.php:4970
|
1502 |
+
#: render-link-library-sc.php:991
|
1503 |
+
msgid "Rating"
|
1504 |
+
msgstr "Rangering"
|
1505 |
+
|
1506 |
+
#: link-library-admin.php:3386
|
1507 |
+
msgid "Large Desc"
|
1508 |
+
msgstr "Full beskrivelse"
|
1509 |
+
|
1510 |
+
#: link-library-admin.php:3390 link-library-admin.php:3727
|
1511 |
+
#: link-library-admin.php:4508 link-library-admin.php:5027
|
1512 |
+
#: link-library-defaults.php:184 render-link-library-addlink-sc.php:460
|
1513 |
+
#: render-link-library-sc.php:992
|
1514 |
+
msgid "Submitter Name"
|
1515 |
+
msgstr "Innsenders navn"
|
1516 |
+
|
1517 |
+
#: link-library-admin.php:3394
|
1518 |
+
msgid "Cat Desc"
|
1519 |
+
msgstr "Kategoribeskrivelse"
|
1520 |
+
|
1521 |
+
#: link-library-admin.php:3398 render-link-library-sc.php:993
|
1522 |
+
msgid "Tags"
|
1523 |
+
msgstr "Tagger"
|
1524 |
+
|
1525 |
+
#: link-library-admin.php:3402 link-library-admin.php:5039
|
1526 |
+
#: link-library.php:894 render-link-library-sc.php:993
|
1527 |
+
msgid "Price"
|
1528 |
+
msgstr "Pris"
|
1529 |
+
|
1530 |
+
#: link-library-admin.php:3414
|
1531 |
+
msgid "Display"
|
1532 |
+
msgstr "Vis"
|
1533 |
+
|
1534 |
+
#: link-library-admin.php:3415
|
1535 |
+
msgid "Before"
|
1536 |
+
msgstr "Før"
|
1537 |
+
|
1538 |
+
#: link-library-admin.php:3416
|
1539 |
+
msgid "After"
|
1540 |
+
msgstr "Etter"
|
1541 |
+
|
1542 |
+
#: link-library-admin.php:3417
|
1543 |
+
msgid "Additional Details"
|
1544 |
+
msgstr "Ekstra informasjon"
|
1545 |
+
|
1546 |
+
#: link-library-admin.php:3418
|
1547 |
+
msgid "Link Source"
|
1548 |
+
msgstr "Lenkekilde"
|
1549 |
+
|
1550 |
+
#: link-library-admin.php:3421
|
1551 |
+
msgid ""
|
1552 |
+
"This column allows for the output of text/code before the first link in each "
|
1553 |
+
"category"
|
1554 |
+
msgstr ""
|
1555 |
+
"Denne kolonnen muliggjør visning av tekst/kode foran den første lenken i "
|
1556 |
+
"hver kategori"
|
1557 |
+
|
1558 |
+
#: link-library-admin.php:3421
|
1559 |
+
msgid "Before first link"
|
1560 |
+
msgstr "Foran første lenke"
|
1561 |
+
|
1562 |
+
#: link-library-admin.php:3423
|
1563 |
+
msgid "Output of text/code before the first link in each category"
|
1564 |
+
msgstr "Visning av tekst/kode foran den første lenken i hver kategori"
|
1565 |
+
|
1566 |
+
#: link-library-admin.php:3429
|
1567 |
+
msgid ""
|
1568 |
+
"This column allows for the output of text/code before a number of links "
|
1569 |
+
"determined by the Display field"
|
1570 |
+
msgstr ""
|
1571 |
+
"Denne kolonnen muliggjør visning av tekst/kode foran lenker i hver kategori "
|
1572 |
+
"avhenging av visningsfelt"
|
1573 |
+
|
1574 |
+
#: link-library-admin.php:3429
|
1575 |
+
msgid "Intermittent Before Link"
|
1576 |
+
msgstr ""
|
1577 |
+
|
1578 |
+
#: link-library-admin.php:3430
|
1579 |
+
msgid "Frequency of additional output before and after complete link group"
|
1580 |
+
msgstr "Frekvens for ekstra output foran og etter fullstendig lenkegruppe"
|
1581 |
+
|
1582 |
+
#: link-library-admin.php:3433 link-library-admin.php:3443
|
1583 |
+
msgid "Output before complete link group (link, notes, desc, etc...)"
|
1584 |
+
msgstr ""
|
1585 |
+
"Output foran fullstendig lenkegruppe (lenke, notater, beskrivelse, etc...)"
|
1586 |
+
|
1587 |
+
#: link-library-admin.php:3441
|
1588 |
+
msgid "This column allows for the output of text/code before each link"
|
1589 |
+
msgstr "Denne kolonnen muliggjør visning av tekst/kode foran hver lenke"
|
1590 |
+
|
1591 |
+
#: link-library-admin.php:3441
|
1592 |
+
msgid "Before Link"
|
1593 |
+
msgstr "Foran lenke"
|
1594 |
+
|
1595 |
+
#: link-library-admin.php:3471
|
1596 |
+
msgid "This column allows for the output of text/code before each link image"
|
1597 |
+
msgstr ""
|
1598 |
+
"Denne kolonnen muliggjør visning av tekst/kode foran hver bildevedlegget for "
|
1599 |
+
"hver lenke"
|
1600 |
+
|
1601 |
+
#: link-library-admin.php:3475
|
1602 |
+
msgid "Code/Text to be displayed before each link image"
|
1603 |
+
msgstr "Kode/tekst som skal vises foran bildevedlegg for lenke"
|
1604 |
+
|
1605 |
+
#: link-library-admin.php:3478
|
1606 |
+
msgid "Code/Text to be displayed after each link image"
|
1607 |
+
msgstr "Kode/tekst som skal vises etter bildevedlegg for lenke"
|
1608 |
+
|
1609 |
+
#: link-library-admin.php:3481
|
1610 |
+
msgid "CSS Class to be assigned to link image"
|
1611 |
+
msgstr "CSS-klasse for bildevedlegg for lenke"
|
1612 |
+
|
1613 |
+
#: link-library-admin.php:3486 link-library-admin.php:3513
|
1614 |
+
#: link-library-admin.php:3610 link-library-admin.php:3639
|
1615 |
+
msgid "Primary"
|
1616 |
+
msgstr "Primær"
|
1617 |
+
|
1618 |
+
#: link-library-admin.php:3487 link-library-admin.php:3514
|
1619 |
+
#: link-library-admin.php:3611 link-library-admin.php:3640
|
1620 |
+
msgid "Secondary"
|
1621 |
+
msgstr "Sekundær"
|
1622 |
+
|
1623 |
+
#: link-library-admin.php:3495
|
1624 |
+
msgid ""
|
1625 |
+
"This column allows for the output of text/code before and after each link "
|
1626 |
+
"name"
|
1627 |
+
msgstr ""
|
1628 |
+
"Denne kolonnen muliggjør visning av kode/tekst foran og etter hver lenkes "
|
1629 |
+
"navn"
|
1630 |
+
|
1631 |
+
#: link-library-admin.php:3499
|
1632 |
+
msgid "Code/Text to be displayed before each link"
|
1633 |
+
msgstr "Kode/tekst som skal vises foran hver lenke"
|
1634 |
+
|
1635 |
+
#: link-library-admin.php:3502
|
1636 |
+
msgid "Code/Text to be displayed after each link"
|
1637 |
+
msgstr "Kode/tekst som skal vises etter hver lenke"
|
1638 |
+
|
1639 |
+
#: link-library-admin.php:3507
|
1640 |
+
msgid "No Tooltip"
|
1641 |
+
msgstr "Ingen verktøytips"
|
1642 |
+
|
1643 |
+
#: link-library-admin.php:3508 link-library-admin.php:4702
|
1644 |
+
#: render-link-library-sc.php:987
|
1645 |
+
msgid "Description"
|
1646 |
+
msgstr "Beskrivelse"
|
1647 |
+
|
1648 |
+
#: link-library-admin.php:3515
|
1649 |
+
msgid "Dedicated page"
|
1650 |
+
msgstr "Dedikert side"
|
1651 |
+
|
1652 |
+
#: link-library-admin.php:3523
|
1653 |
+
msgid ""
|
1654 |
+
"This column allows for the output of text/code before and after each link "
|
1655 |
+
"date stamp"
|
1656 |
+
msgstr ""
|
1657 |
+
"Denne kolonnen muliggjør visning av kode/tekst foran og etter hver lenkes "
|
1658 |
+
"dato"
|
1659 |
+
|
1660 |
+
#: link-library-admin.php:3523
|
1661 |
+
msgid "Link Date"
|
1662 |
+
msgstr "Publiseringsdato lenke"
|
1663 |
+
|
1664 |
+
#: link-library-admin.php:3524
|
1665 |
+
msgid "Check to display link date"
|
1666 |
+
msgstr "Merk for å vise publiseringsdato for lenke"
|
1667 |
+
|
1668 |
+
#: link-library-admin.php:3527
|
1669 |
+
msgid "Code/Text to be displayed before each date"
|
1670 |
+
msgstr "Kode/tekst som skal vises foran publiseringsdato for lenke"
|
1671 |
+
|
1672 |
+
#: link-library-admin.php:3530
|
1673 |
+
msgid "Code/Text to be displayed after each date"
|
1674 |
+
msgstr "Kode/tekst som skal vises etter publiseringsdato for lenke"
|
1675 |
+
|
1676 |
+
#: link-library-admin.php:3540
|
1677 |
+
msgid ""
|
1678 |
+
"This column allows for the output of text/code before and after each link "
|
1679 |
+
"description"
|
1680 |
+
msgstr ""
|
1681 |
+
"Denne kolonnen muliggjør visning av kode/tekst foran og etter "
|
1682 |
+
"lenkebeskrivelsen"
|
1683 |
+
|
1684 |
+
#: link-library-admin.php:3541
|
1685 |
+
msgid "Check to display link descriptions"
|
1686 |
+
msgstr "Merk for å vise lenkebeskrivelser"
|
1687 |
+
|
1688 |
+
#: link-library-admin.php:3544
|
1689 |
+
msgid "Code/Text to be displayed before each description"
|
1690 |
+
msgstr "Kode/tekst som skal vises foran hver beskrivelse"
|
1691 |
+
|
1692 |
+
#: link-library-admin.php:3547
|
1693 |
+
msgid "Code/Text to be displayed after each description"
|
1694 |
+
msgstr "Kode/tekst som skal vises etter hver beskrivelse"
|
1695 |
+
|
1696 |
+
#: link-library-admin.php:3557
|
1697 |
+
msgid ""
|
1698 |
+
"This column allows for the output of text/code before and after each link "
|
1699 |
+
"notes"
|
1700 |
+
msgstr ""
|
1701 |
+
"Denne kolonnen muliggjør visning av kode/tekst foran og etter lenkenotater"
|
1702 |
+
|
1703 |
+
#: link-library-admin.php:3557 link-library-admin.php:4415
|
1704 |
+
#: link-library-defaults.php:125 usersubmission.php:300 usersubmission.php:368
|
1705 |
+
msgid "Link Notes"
|
1706 |
+
msgstr "Lenkenotater"
|
1707 |
+
|
1708 |
+
#: link-library-admin.php:3558
|
1709 |
+
msgid "Check to display link notes"
|
1710 |
+
msgstr "Merk for å vise lenkenotater"
|
1711 |
+
|
1712 |
+
#: link-library-admin.php:3561
|
1713 |
+
msgid "Code/Text to be displayed before each note"
|
1714 |
+
msgstr "Kode/tekst som skal vises foran hvert notat"
|
1715 |
+
|
1716 |
+
#: link-library-admin.php:3564
|
1717 |
+
msgid "Code/Text to be displayed after each note"
|
1718 |
+
msgstr "Kode/tekst som skal vises etter hvert notat"
|
1719 |
+
|
1720 |
+
#: link-library-admin.php:3574
|
1721 |
+
msgid ""
|
1722 |
+
"This column allows for the output of text/code before and after the RSS icons"
|
1723 |
+
msgstr ""
|
1724 |
+
"Denne kolonnen muliggjør visning av kode/tekst foran og etter RSS-ikoner"
|
1725 |
+
|
1726 |
+
#: link-library-admin.php:3574
|
1727 |
+
msgid "RSS Icons"
|
1728 |
+
msgstr "RSS-ikoner"
|
1729 |
+
|
1730 |
+
#: link-library-admin.php:3576
|
1731 |
+
msgid "See below"
|
1732 |
+
msgstr "Se under"
|
1733 |
+
|
1734 |
+
#: link-library-admin.php:3578
|
1735 |
+
msgid "Code/Text to be displayed before RSS Icons"
|
1736 |
+
msgstr "Kode/tekst som skal vises foran RSS-ikoner"
|
1737 |
+
|
1738 |
+
#: link-library-admin.php:3581
|
1739 |
+
msgid "Code/Text to be displayed after RSS Icons"
|
1740 |
+
msgstr "Kode/tekst som skal vises etter RSS-ikoner"
|
1741 |
+
|
1742 |
+
#: link-library-admin.php:3591
|
1743 |
+
msgid ""
|
1744 |
+
"This column allows for the output of text/code before and after the Web Link"
|
1745 |
+
msgstr "Denne kolonnen muliggjør visning av kode/tekst før og etter web-lenke"
|
1746 |
+
|
1747 |
+
#: link-library-admin.php:3594 link-library-admin.php:3622
|
1748 |
+
#: link-library-admin.php:3651
|
1749 |
+
msgid "False"
|
1750 |
+
msgstr "Ugyldig"
|
1751 |
+
|
1752 |
+
#: link-library-admin.php:3595 link-library-admin.php:4698
|
1753 |
+
msgid "Web Address"
|
1754 |
+
msgstr "Webadresse"
|
1755 |
+
|
1756 |
+
#: link-library-admin.php:3596 link-library-admin.php:3625
|
1757 |
+
msgid "Label"
|
1758 |
+
msgstr "Beskrivelse"
|
1759 |
+
|
1760 |
+
#: link-library-admin.php:3599
|
1761 |
+
msgid "Code/Text to be displayed before Web Link"
|
1762 |
+
msgstr "Kode/tekst som skal vises foran web-lenke"
|
1763 |
+
|
1764 |
+
#: link-library-admin.php:3602
|
1765 |
+
msgid "Code/Text to be displayed after Web Link"
|
1766 |
+
msgstr "Kode/tekst som skal vises etter web-lenke"
|
1767 |
+
|
1768 |
+
#: link-library-admin.php:3605
|
1769 |
+
msgid "Text Label that the web link will be assigned to."
|
1770 |
+
msgstr "Tekstbeskrivelse for web-lenken"
|
1771 |
+
|
1772 |
+
#: link-library-admin.php:3608 link-library-admin.php:3637
|
1773 |
+
msgid "Select which link address will be displayed / used for link"
|
1774 |
+
msgstr "Velg hvilken lenkeadresse som skal vises/brukes for lenke"
|
1775 |
+
|
1776 |
+
#: link-library-admin.php:3619
|
1777 |
+
msgid ""
|
1778 |
+
"This column allows for the output of text/code before and after the "
|
1779 |
+
"Telephone Number"
|
1780 |
+
msgstr ""
|
1781 |
+
"Denne kolonnen muliggjør visning av tekst/kode foran og etter telefonnummeret"
|
1782 |
+
|
1783 |
+
#: link-library-admin.php:3619 link-library-admin.php:4477
|
1784 |
+
#: link-library-admin.php:4996 link-library-defaults.php:170
|
1785 |
+
#: render-link-library-addlink-sc.php:424 render-link-library-sc.php:989
|
1786 |
+
msgid "Telephone"
|
1787 |
+
msgstr "Telefon"
|
1788 |
+
|
1789 |
+
#: link-library-admin.php:3623 link-library-admin.php:3652
|
1790 |
+
msgid "Plain Text"
|
1791 |
+
msgstr "Enkel tekst"
|
1792 |
+
|
1793 |
+
#: link-library-admin.php:3624
|
1794 |
+
msgid "Link"
|
1795 |
+
msgstr "Lenke"
|
1796 |
+
|
1797 |
+
#: link-library-admin.php:3628
|
1798 |
+
msgid "Code/Text to be displayed before Telephone Number"
|
1799 |
+
msgstr "Kode/tekst som skal vises foran telefonnummeret"
|
1800 |
+
|
1801 |
+
#: link-library-admin.php:3631
|
1802 |
+
msgid "Code/Text to be displayed after Telephone Number"
|
1803 |
+
msgstr "Kode/tekst som skal vises etter telefonnummeret"
|
1804 |
+
|
1805 |
+
#: link-library-admin.php:3634
|
1806 |
+
msgid "Text Label that the telephone will be assigned to."
|
1807 |
+
msgstr "Tekstbekrivelse for telefonnummer."
|
1808 |
+
|
1809 |
+
#: link-library-admin.php:3648
|
1810 |
+
msgid ""
|
1811 |
+
"This column allows for the output of text/code before and after the E-mail"
|
1812 |
+
msgstr ""
|
1813 |
+
"Denne kolonnen muliggjør visning av kode/tekst foran og etter epostadressen"
|
1814 |
+
|
1815 |
+
#: link-library-admin.php:3653
|
1816 |
+
msgid "MailTo Link"
|
1817 |
+
msgstr "mailto-lenke"
|
1818 |
+
|
1819 |
+
#: link-library-admin.php:3654
|
1820 |
+
msgid "MailTo Link with Label"
|
1821 |
+
msgstr "Mailto-lenke med notat"
|
1822 |
+
|
1823 |
+
#: link-library-admin.php:3655
|
1824 |
+
msgid "Formatted Command"
|
1825 |
+
msgstr ""
|
1826 |
+
|
1827 |
+
#: link-library-admin.php:3656
|
1828 |
+
msgid "Formatted Command with Labels"
|
1829 |
+
msgstr ""
|
1830 |
+
|
1831 |
+
#: link-library-admin.php:3659
|
1832 |
+
msgid "Code/Text to be displayed before E-mail"
|
1833 |
+
msgstr "Kode/tekst som skal vises foran epostadresse"
|
1834 |
+
|
1835 |
+
#: link-library-admin.php:3662
|
1836 |
+
msgid "Code/Text to be displayed after E-mail"
|
1837 |
+
msgstr "Kode/tekst som skal vises etter epostadresse"
|
1838 |
+
|
1839 |
+
#: link-library-admin.php:3665
|
1840 |
+
msgid ""
|
1841 |
+
"Text Label that the e-mail will be assigned to represent the e-mail link."
|
1842 |
+
msgstr ""
|
1843 |
+
|
1844 |
+
#: link-library-admin.php:3668
|
1845 |
+
msgid ""
|
1846 |
+
"Command that the e-mail will be embedded in. In the case of a command, use "
|
1847 |
+
"the symbols #email and #company to indicate the position where these "
|
1848 |
+
"elements should be inserted."
|
1849 |
+
msgstr ""
|
1850 |
+
|
1851 |
+
#: link-library-admin.php:3676
|
1852 |
+
msgid ""
|
1853 |
+
"This column allows for the output of text/code before and after Link Hits"
|
1854 |
+
msgstr ""
|
1855 |
+
"Denne kolonnen muliggjør visning av kode/tekst foran eller etter lenke-treff"
|
1856 |
+
|
1857 |
+
#: link-library-admin.php:3676
|
1858 |
+
msgid "Link Hits"
|
1859 |
+
msgstr "Lenketreff"
|
1860 |
+
|
1861 |
+
#: link-library-admin.php:3680
|
1862 |
+
msgid "Code/Text to be displayed before Link Hits"
|
1863 |
+
msgstr "Kode/tekst som skal vises foran Lenketreff"
|
1864 |
+
|
1865 |
+
#: link-library-admin.php:3683
|
1866 |
+
msgid "Code/Text to be displayed after Link Hits"
|
1867 |
+
msgstr "Kode/tekst som skal vises etter Lenketreff"
|
1868 |
+
|
1869 |
+
#: link-library-admin.php:3693
|
1870 |
+
msgid ""
|
1871 |
+
"This column allows for the output of text/code before and after the Link "
|
1872 |
+
"Rating"
|
1873 |
+
msgstr ""
|
1874 |
+
"Denne kolonnen muliggjør visning av kode/tekst foran eller bak Lenkevurdering"
|
1875 |
+
|
1876 |
+
#: link-library-admin.php:3693
|
1877 |
+
msgid "Link Rating"
|
1878 |
+
msgstr "Lenkevurdering"
|
1879 |
+
|
1880 |
+
#: link-library-admin.php:3697
|
1881 |
+
msgid "Code/Text to be displayed before Link Rating"
|
1882 |
+
msgstr "Kode/tekst som skal vises foran Lenkevurdering"
|
1883 |
+
|
1884 |
+
#: link-library-admin.php:3700
|
1885 |
+
msgid "Code/Text to be displayed after Link Rating"
|
1886 |
+
msgstr "Kode/tekst som skal vises etter Lenkevurdering"
|
1887 |
+
|
1888 |
+
#: link-library-admin.php:3710 link-library-admin.php:3727
|
1889 |
+
#: link-library-admin.php:3744
|
1890 |
+
msgid ""
|
1891 |
+
"This column allows for the output of text/code before and after the Link "
|
1892 |
+
"Large Description"
|
1893 |
+
msgstr ""
|
1894 |
+
"Denne kolonnen muliggjør visning av kode/tekst foran og etter Lenke Full "
|
1895 |
+
"Beskrivelse"
|
1896 |
+
|
1897 |
+
#: link-library-admin.php:3710 usersubmission.php:299 usersubmission.php:364
|
1898 |
+
msgid "Link Large Description"
|
1899 |
+
msgstr "Lenke Full Beskrivelse"
|
1900 |
+
|
1901 |
+
#: link-library-admin.php:3714 link-library-admin.php:3731
|
1902 |
+
#: link-library-admin.php:3748
|
1903 |
+
msgid "Code/Text to be displayed before Link Large Description"
|
1904 |
+
msgstr "Kode/tekst som skal vises foran Lenke Full Bekrivelse"
|
1905 |
+
|
1906 |
+
#: link-library-admin.php:3717 link-library-admin.php:3734
|
1907 |
+
#: link-library-admin.php:3751
|
1908 |
+
msgid "Code/Text to be displayed after Link Large Description"
|
1909 |
+
msgstr "Kode/tekst som skal vises etter Lenke Full Beskrivelse"
|
1910 |
+
|
1911 |
+
#: link-library-admin.php:3744 render-link-library-sc.php:992
|
1912 |
+
msgid "Category Description"
|
1913 |
+
msgstr "Kategori Beskrivelse"
|
1914 |
+
|
1915 |
+
#: link-library-admin.php:3761
|
1916 |
+
msgid "This column allows for the output of tags associated with the link"
|
1917 |
+
msgstr "Denne kolonnen muliggjør visning av tagger som er assosiert med lenken"
|
1918 |
+
|
1919 |
+
#: link-library-admin.php:3761
|
1920 |
+
msgid "Link Tags"
|
1921 |
+
msgstr "Lenketagger"
|
1922 |
+
|
1923 |
+
#: link-library-admin.php:3765
|
1924 |
+
msgid "Code/Text to be displayed before Link Tags"
|
1925 |
+
msgstr "Kode/tekst som skal vises foran Lenketagger"
|
1926 |
+
|
1927 |
+
#: link-library-admin.php:3768
|
1928 |
+
msgid "Code/Text to be displayed after Link Tags"
|
1929 |
+
msgstr "Kode/tekst som skal vises etter Lenketagger"
|
1930 |
+
|
1931 |
+
#: link-library-admin.php:3778
|
1932 |
+
msgid ""
|
1933 |
+
"This column allows for the output of the price field associated with the link"
|
1934 |
+
msgstr ""
|
1935 |
+
"Denne kolonnen muliggjør visning av pris dersom dette er satt for lenken"
|
1936 |
+
|
1937 |
+
#: link-library-admin.php:3778
|
1938 |
+
msgid "Link Price"
|
1939 |
+
msgstr "Lenke Pris"
|
1940 |
+
|
1941 |
+
#: link-library-admin.php:3782
|
1942 |
+
msgid "Code/Text to be displayed before Link Price"
|
1943 |
+
msgstr "Kode/tekst som skal vises foran Lenke Pris"
|
1944 |
+
|
1945 |
+
#: link-library-admin.php:3785
|
1946 |
+
msgid "Code/Text to be displayed after Link Price"
|
1947 |
+
msgstr "Kode/tekst som skal vises etter Lenke Pris"
|
1948 |
+
|
1949 |
+
#: link-library-admin.php:3789
|
1950 |
+
msgid "Currency symbol to be displayed next to price"
|
1951 |
+
msgstr "Valtuasymbol som skal vises ved siden av pris"
|
1952 |
+
|
1953 |
+
#: link-library-admin.php:3794
|
1954 |
+
msgid "Before Price"
|
1955 |
+
msgstr "Før pris"
|
1956 |
+
|
1957 |
+
#: link-library-admin.php:3795
|
1958 |
+
msgid "After Price"
|
1959 |
+
msgstr "Etter pris"
|
1960 |
+
|
1961 |
+
#: link-library-admin.php:3805
|
1962 |
+
msgid "This column allows for the output of text/code after each link"
|
1963 |
+
msgstr "Denne kolonnen muliggjør visning av kode/tekst etter hver lenke"
|
1964 |
+
|
1965 |
+
#: link-library-admin.php:3805
|
1966 |
+
msgid "After Link Block"
|
1967 |
+
msgstr "Etter lenke-blokk"
|
1968 |
+
|
1969 |
+
#: link-library-admin.php:3808
|
1970 |
+
msgid "Output after complete link group (link, notes, desc, etc...)"
|
1971 |
+
msgstr ""
|
1972 |
+
"Visning etter fullstendig lenkegruppe (lenke, notater, bekrivelse etc...)"
|
1973 |
+
|
1974 |
+
#: link-library-admin.php:3815
|
1975 |
+
msgid ""
|
1976 |
+
"This column allows for the output of text/code after a number of links "
|
1977 |
+
"determined in the first column"
|
1978 |
+
msgstr ""
|
1979 |
+
"Denne kolonnen muliggjør visning av kode/tekst etter et antall lenker "
|
1980 |
+
"bestemt i første kolonne"
|
1981 |
+
|
1982 |
+
#: link-library-admin.php:3815
|
1983 |
+
msgid "Intermittent After Link"
|
1984 |
+
msgstr "Sporadisk etter lenke"
|
1985 |
+
|
1986 |
+
#: link-library-admin.php:3825
|
1987 |
+
msgid ""
|
1988 |
+
"This column allows for the output of text/code after the last link in each "
|
1989 |
+
"category"
|
1990 |
+
msgstr ""
|
1991 |
+
"Denne kolonnen muliggjør visning av kode/tekst etter den siste lenken i hver "
|
1992 |
+
"kategori"
|
1993 |
+
|
1994 |
+
#: link-library-admin.php:3825
|
1995 |
+
msgid "After last link"
|
1996 |
+
msgstr "Etter siste lenke"
|
1997 |
+
|
1998 |
+
#: link-library-admin.php:3838
|
1999 |
+
msgid "Show Link Updated Flag"
|
2000 |
+
msgstr "Vis flagg for oppdatert-lenke"
|
2001 |
+
|
2002 |
+
#: link-library-admin.php:3846
|
2003 |
+
msgid "Convert [] to <> in Link Description and Notes"
|
2004 |
+
msgstr "Konvertere [] til <> i lenkebekrivelser og -notater"
|
2005 |
+
|
2006 |
+
#: link-library-admin.php:3854
|
2007 |
+
msgid "Add nofollow tag to outgoing links"
|
2008 |
+
msgstr "Legg til følgende tag i utgående lenker"
|
2009 |
+
|
2010 |
+
#: link-library-admin.php:3861
|
2011 |
+
msgid "Show edit links when logged in as editor or administrator"
|
2012 |
+
msgstr ""
|
2013 |
+
"Vis redigeringsknapp for lenker for innloggende administrator eller redaktør"
|
2014 |
+
|
2015 |
+
#: link-library-admin.php:3869
|
2016 |
+
msgid "Show link name when no image is assigned"
|
2017 |
+
msgstr "Vis lenkenavn når ikke illustrasjonsbilde er brukt"
|
2018 |
+
|
2019 |
+
#: link-library-admin.php:3876
|
2020 |
+
msgid "Do not output fields with no value"
|
2021 |
+
msgstr "Ikke vis felt som ikke er utfylt"
|
2022 |
+
|
2023 |
+
#: link-library-admin.php:3894
|
2024 |
+
msgid "Enable link Pop-Ups"
|
2025 |
+
msgstr "Aktivere lenke sprett-opp vindu"
|
2026 |
+
|
2027 |
+
#: link-library-admin.php:3898
|
2028 |
+
msgid "Pop-Up Width"
|
2029 |
+
msgstr "Sprett-opp vindu bredde"
|
2030 |
+
|
2031 |
+
#: link-library-admin.php:3905
|
2032 |
+
msgid "Pop-Up Height"
|
2033 |
+
msgstr "Sprett-opp vindu høyde"
|
2034 |
+
|
2035 |
+
#: link-library-admin.php:3914
|
2036 |
+
msgid "Dialog contents"
|
2037 |
+
msgstr "Dialog innhold"
|
2038 |
+
|
2039 |
+
#: link-library-admin.php:3932
|
2040 |
+
msgid "Show RSS Link using Text"
|
2041 |
+
msgstr "Vis RSS-lenke som tekst"
|
2042 |
+
|
2043 |
+
#: link-library-admin.php:3938
|
2044 |
+
msgid "Show RSS Link using Standard Icon"
|
2045 |
+
msgstr "Vis RSS-lenke med standard ikon"
|
2046 |
+
|
2047 |
+
#: link-library-admin.php:3948
|
2048 |
+
msgid "Show RSS Preview Link"
|
2049 |
+
msgstr "Vis knapp for RSS-forhåndsvisning"
|
2050 |
+
|
2051 |
+
#: link-library-admin.php:3954
|
2052 |
+
msgid "Number of articles shown in RSS Preview"
|
2053 |
+
msgstr "Antall artikler vist i RSS-forhåndsvisning"
|
2054 |
+
|
2055 |
+
#: link-library-admin.php:3960
|
2056 |
+
msgid "Show RSS Feed Headers in Link Library output"
|
2057 |
+
msgstr "Vis RSS-strøm overskrifter i Link Library visninger"
|
2058 |
+
|
2059 |
+
#: link-library-admin.php:3968
|
2060 |
+
msgid "Show RSS Feed Content in Link Library output"
|
2061 |
+
msgstr "Vis RSS-strøm innhold i Link Library visninger"
|
2062 |
+
|
2063 |
+
#: link-library-admin.php:3974
|
2064 |
+
msgid "Number of RSS articles shown in Link Library Output"
|
2065 |
+
msgstr "Antall RSS-artikler i Link Library visning"
|
2066 |
+
|
2067 |
+
#: link-library-admin.php:3979
|
2068 |
+
msgid "Max number of days since published"
|
2069 |
+
msgstr "Maks antall dager etter publisering"
|
2070 |
+
|
2071 |
+
#: link-library-admin.php:3983
|
2072 |
+
msgid "RSS Preview Width"
|
2073 |
+
msgstr "RSS forhåndsvisning bredde"
|
2074 |
+
|
2075 |
+
#: link-library-admin.php:3986
|
2076 |
+
msgid "RSS Preview Height"
|
2077 |
+
msgstr "RSS forhåndsvisning høyde"
|
2078 |
+
|
2079 |
+
#: link-library-admin.php:3988
|
2080 |
+
msgid "Skip links with no RSS inline items"
|
2081 |
+
msgstr ""
|
2082 |
+
|
2083 |
+
#: link-library-admin.php:4005
|
2084 |
+
msgid ""
|
2085 |
+
"Checking this option will get images from the Robothumb web site every time"
|
2086 |
+
msgstr ""
|
2087 |
+
|
2088 |
+
#: link-library-admin.php:4006
|
2089 |
+
msgid "Use thumbnail service for dynamic link images"
|
2090 |
+
msgstr ""
|
2091 |
+
|
2092 |
+
#: link-library-admin.php:4008
|
2093 |
+
msgid ""
|
2094 |
+
"Checking this option will get images from the thumbshots web site every time"
|
2095 |
+
msgstr ""
|
2096 |
+
|
2097 |
+
#: link-library-admin.php:4014
|
2098 |
+
msgid "Give priority to images assigned to links if present"
|
2099 |
+
msgstr ""
|
2100 |
+
|
2101 |
+
#: link-library-admin.php:4020
|
2102 |
+
msgid "Generate Images / Favorite Icons"
|
2103 |
+
msgstr "Generere bilder og ikoner"
|
2104 |
+
|
2105 |
+
#: link-library-admin.php:4022 link-library-admin.php:4764
|
2106 |
+
msgid ""
|
2107 |
+
"This button is only available when a valid API key is entered under the Link "
|
2108 |
+
"Library General Settings."
|
2109 |
+
msgstr ""
|
2110 |
+
|
2111 |
+
#: link-library-admin.php:4023
|
2112 |
+
msgid "Generate Thumbnails and Store locally"
|
2113 |
+
msgstr ""
|
2114 |
+
|
2115 |
+
#: link-library-admin.php:4026
|
2116 |
+
msgid "Generate Favorite Icons and Store locally"
|
2117 |
+
msgstr ""
|
2118 |
+
|
2119 |
+
#: link-library-admin.php:4030
|
2120 |
+
msgid "Delete all local thumbnails and icons"
|
2121 |
+
msgstr ""
|
2122 |
+
|
2123 |
+
#: link-library-admin.php:4031
|
2124 |
+
msgid "Delete all local thumbnails"
|
2125 |
+
msgstr ""
|
2126 |
+
|
2127 |
+
#: link-library-admin.php:4032
|
2128 |
+
msgid "Delete all local icons"
|
2129 |
+
msgstr ""
|
2130 |
+
|
2131 |
+
#: link-library-admin.php:4048
|
2132 |
+
msgid "Publish RSS Feed"
|
2133 |
+
msgstr ""
|
2134 |
+
|
2135 |
+
#: link-library-admin.php:4053
|
2136 |
+
msgid "Number of items in RSS feed"
|
2137 |
+
msgstr ""
|
2138 |
+
|
2139 |
+
#: link-library-admin.php:4062
|
2140 |
+
msgid "RSS Feed Title"
|
2141 |
+
msgstr "Tittel RSS-strøm"
|
2142 |
+
|
2143 |
+
#: link-library-admin.php:4068
|
2144 |
+
msgid "RSS Feed Description"
|
2145 |
+
msgstr "RSS-strøm beskrivelse"
|
2146 |
+
|
2147 |
+
#: link-library-admin.php:4074
|
2148 |
+
msgid ""
|
2149 |
+
"RSS Feed Web Address (default yoursite.com?"
|
2150 |
+
"link_library_rss_feed=1&settingset=1 )"
|
2151 |
+
msgstr ""
|
2152 |
+
|
2153 |
+
#: link-library-admin.php:4091
|
2154 |
+
msgid "Search Label"
|
2155 |
+
msgstr ""
|
2156 |
+
|
2157 |
+
#: link-library-admin.php:4100
|
2158 |
+
msgid "Search Field Initial Text"
|
2159 |
+
msgstr ""
|
2160 |
+
|
2161 |
+
#: link-library-admin.php:4109
|
2162 |
+
msgid "Search No Results Text"
|
2163 |
+
msgstr ""
|
2164 |
+
|
2165 |
+
#: link-library-admin.php:4111 link-library-defaults.php:222
|
2166 |
+
msgid "No links found matching your search criteria"
|
2167 |
+
msgstr "Ingen lenker funnet som passer til søket ditt"
|
2168 |
+
|
2169 |
+
#: link-library-admin.php:4118 link-library-admin.php:4119
|
2170 |
+
msgid "Leave empty when links are to be displayed on same page as search box"
|
2171 |
+
msgstr ""
|
2172 |
+
|
2173 |
+
#: link-library-admin.php:4118
|
2174 |
+
msgid "Results Page Address"
|
2175 |
+
msgstr "Side for visning av søkeresultater"
|
2176 |
+
|
2177 |
+
#: link-library-admin.php:4219
|
2178 |
+
msgid "Following this link shows a list of all links awaiting moderation"
|
2179 |
+
msgstr ""
|
2180 |
+
|
2181 |
+
#: link-library-admin.php:4220
|
2182 |
+
msgid "View list of links awaiting moderation"
|
2183 |
+
msgstr "Se liste over lenker som avventer moderasjon"
|
2184 |
+
|
2185 |
+
#: link-library-admin.php:4224
|
2186 |
+
msgid "Show user links immediately"
|
2187 |
+
msgstr "Vis innsendte lenker umiddelbart"
|
2188 |
+
|
2189 |
+
#: link-library-admin.php:4229
|
2190 |
+
msgid "E-mail admin on link submission"
|
2191 |
+
msgstr "Meld fra til admin på epost når nye lenker foreslås"
|
2192 |
+
|
2193 |
+
#: link-library-admin.php:4235
|
2194 |
+
msgid "Validate links with Akismet"
|
2195 |
+
msgstr "Valider med Akismet"
|
2196 |
+
|
2197 |
+
#: link-library-admin.php:4239
|
2198 |
+
msgid "E-mail submitter"
|
2199 |
+
msgstr ""
|
2200 |
+
|
2201 |
+
#: link-library-admin.php:4246
|
2202 |
+
msgid "Additional text for link submitter e-mail"
|
2203 |
+
msgstr ""
|
2204 |
+
|
2205 |
+
#: link-library-admin.php:4253
|
2206 |
+
msgid "Require login to display form"
|
2207 |
+
msgstr "Vis innsendingsskjema for nye lenker kun for innloggende brukere"
|
2208 |
+
|
2209 |
+
#: link-library-admin.php:4258
|
2210 |
+
msgid "Allow link submission with empty link"
|
2211 |
+
msgstr "Tillat innsending av skjema med tomt lenkefelt"
|
2212 |
+
|
2213 |
+
#: link-library-admin.php:4264
|
2214 |
+
msgid "Display captcha"
|
2215 |
+
msgstr "Vis Captcha"
|
2216 |
+
|
2217 |
+
#: link-library-admin.php:4269
|
2218 |
+
msgid ""
|
2219 |
+
"This function will only store data when users are logged in to Wordpress"
|
2220 |
+
msgstr "Denne funksjonen lagrer kun data når brukere er innlogget"
|
2221 |
+
|
2222 |
+
#: link-library-admin.php:4269
|
2223 |
+
msgid "Store login name on link submission"
|
2224 |
+
msgstr "Lagre innlogging ved innsending av lenke"
|
2225 |
+
|
2226 |
+
#: link-library-admin.php:4275
|
2227 |
+
msgid "Add new link label"
|
2228 |
+
msgstr ""
|
2229 |
+
|
2230 |
+
#: link-library-admin.php:4277 link-library-defaults.php:119
|
2231 |
+
#: render-link-library-addlink-sc.php:206
|
2232 |
+
msgid "Add new link"
|
2233 |
+
msgstr "Legg til ny lenke"
|
2234 |
+
|
2235 |
+
#: link-library-admin.php:4284
|
2236 |
+
msgid "Link name label"
|
2237 |
+
msgstr ""
|
2238 |
+
|
2239 |
+
#: link-library-admin.php:4294
|
2240 |
+
msgid "Link address label"
|
2241 |
+
msgstr ""
|
2242 |
+
|
2243 |
+
#: link-library-admin.php:4296 usersubmission.php:296 usersubmission.php:353
|
2244 |
+
msgid "Link Address"
|
2245 |
+
msgstr "Lenkeadresse"
|
2246 |
+
|
2247 |
+
#: link-library-admin.php:4303
|
2248 |
+
msgid "Link RSS label"
|
2249 |
+
msgstr ""
|
2250 |
+
|
2251 |
+
#: link-library-admin.php:4305 link-library-defaults.php:122
|
2252 |
+
#: render-link-library-addlink-sc.php:231 usersubmission.php:297
|
2253 |
+
#: usersubmission.php:356
|
2254 |
+
msgid "Link RSS"
|
2255 |
+
msgstr ""
|
2256 |
+
|
2257 |
+
#: link-library-admin.php:4312 link-library-admin.php:4328
|
2258 |
+
#: link-library-admin.php:4407 link-library-admin.php:4422
|
2259 |
+
#: link-library-admin.php:4453 link-library-admin.php:4468
|
2260 |
+
#: link-library-admin.php:4484 link-library-admin.php:4499
|
2261 |
+
#: link-library-admin.php:4515 link-library-admin.php:4530
|
2262 |
+
#: link-library-admin.php:4546 link-library-admin.php:4561
|
2263 |
+
#: link-library-admin.php:4577
|
2264 |
+
msgid "Hide"
|
2265 |
+
msgstr "Skjul"
|
2266 |
+
|
2267 |
+
#: link-library-admin.php:4313 link-library-admin.php:4329
|
2268 |
+
#: link-library-admin.php:4408 link-library-admin.php:4423
|
2269 |
+
#: link-library-admin.php:4454 link-library-admin.php:4469
|
2270 |
+
#: link-library-admin.php:4485 link-library-admin.php:4500
|
2271 |
+
#: link-library-admin.php:4516 link-library-admin.php:4531
|
2272 |
+
#: link-library-admin.php:4547 link-library-admin.php:4562
|
2273 |
+
#: link-library-admin.php:4578
|
2274 |
+
msgid "Show"
|
2275 |
+
msgstr "Vis"
|
2276 |
+
|
2277 |
+
#: link-library-admin.php:4314 link-library-admin.php:4409
|
2278 |
+
#: link-library-admin.php:4424 link-library-admin.php:4455
|
2279 |
+
#: link-library-admin.php:4470 link-library-admin.php:4486
|
2280 |
+
#: link-library-admin.php:4501 link-library-admin.php:4517
|
2281 |
+
#: link-library-admin.php:4532 link-library-admin.php:4548
|
2282 |
+
#: link-library-admin.php:4563
|
2283 |
+
msgid "Required"
|
2284 |
+
msgstr "Obligatorisk"
|
2285 |
+
|
2286 |
+
#: link-library-admin.php:4319
|
2287 |
+
msgid "Link category label"
|
2288 |
+
msgstr ""
|
2289 |
+
|
2290 |
+
#: link-library-admin.php:4333
|
2291 |
+
msgid ""
|
2292 |
+
"Comma-seperated list of categories to be displayed in category selection box "
|
2293 |
+
"(e.g. 1,5,4) instead of displaying the set of categories specified by the "
|
2294 |
+
"library."
|
2295 |
+
msgstr ""
|
2296 |
+
|
2297 |
+
#: link-library-admin.php:4333
|
2298 |
+
msgid "Link category override selection list"
|
2299 |
+
msgstr ""
|
2300 |
+
|
2301 |
+
#: link-library-admin.php:4334
|
2302 |
+
msgid ""
|
2303 |
+
"Comma-seperated list of categories to be displayed in category selection box "
|
2304 |
+
"(e.g. 1,5,4)"
|
2305 |
+
msgstr ""
|
2306 |
+
|
2307 |
+
#: link-library-admin.php:4339
|
2308 |
+
msgid "Default category"
|
2309 |
+
msgstr "Standard kategori"
|
2310 |
+
|
2311 |
+
#: link-library-admin.php:4374 link-library-admin.php:4376
|
2312 |
+
#: link-library-defaults.php:150
|
2313 |
+
msgid "User-submitted category"
|
2314 |
+
msgstr "Bruker-innsendt kategori"
|
2315 |
+
|
2316 |
+
#: link-library-admin.php:4383
|
2317 |
+
msgid "No"
|
2318 |
+
msgstr "Ingen"
|
2319 |
+
|
2320 |
+
#: link-library-admin.php:4384
|
2321 |
+
msgid "Allow"
|
2322 |
+
msgstr "Tillat"
|
2323 |
+
|
2324 |
+
#: link-library-admin.php:4388
|
2325 |
+
msgid "User-submitted category prompt"
|
2326 |
+
msgstr ""
|
2327 |
+
|
2328 |
+
#: link-library-admin.php:4390 link-library-defaults.php:151
|
2329 |
+
#: render-link-library-addlink-sc.php:285
|
2330 |
+
msgid "User-submitted category (define below)"
|
2331 |
+
msgstr "Bruker-innsendt kategori ( beskriv under )"
|
2332 |
+
|
2333 |
+
#: link-library-admin.php:4398
|
2334 |
+
msgid "Link description label"
|
2335 |
+
msgstr ""
|
2336 |
+
|
2337 |
+
#: link-library-admin.php:4413
|
2338 |
+
msgid "Link notes label"
|
2339 |
+
msgstr ""
|
2340 |
+
|
2341 |
+
#: link-library-admin.php:4429 link-library-admin.php:4430
|
2342 |
+
msgid "Reciprocal link must be configured for this option to work correctly"
|
2343 |
+
msgstr ""
|
2344 |
+
|
2345 |
+
#: link-library-admin.php:4429
|
2346 |
+
msgid "Show immediately if reciprocal link valid"
|
2347 |
+
msgstr ""
|
2348 |
+
|
2349 |
+
#: link-library-admin.php:4433
|
2350 |
+
msgid "Use Text Area for Notes"
|
2351 |
+
msgstr ""
|
2352 |
+
|
2353 |
+
#: link-library-admin.php:4438
|
2354 |
+
msgid "Only allow one reciprocal link per domain"
|
2355 |
+
msgstr ""
|
2356 |
+
|
2357 |
+
#: link-library-admin.php:4444
|
2358 |
+
msgid "Reciprocal Link label"
|
2359 |
+
msgstr ""
|
2360 |
+
|
2361 |
+
#: link-library-admin.php:4446 link-library-admin.php:5008
|
2362 |
+
#: link-library-defaults.php:166 render-link-library-addlink-sc.php:388
|
2363 |
+
#: usersubmission.php:302 usersubmission.php:374
|
2364 |
+
msgid "Reciprocal Link"
|
2365 |
+
msgstr ""
|
2366 |
+
|
2367 |
+
#: link-library-admin.php:4459
|
2368 |
+
msgid "Secondary Address label"
|
2369 |
+
msgstr ""
|
2370 |
+
|
2371 |
+
#: link-library-admin.php:4461 link-library-defaults.php:168
|
2372 |
+
#: render-link-library-addlink-sc.php:406
|
2373 |
+
msgid "Secondary Address"
|
2374 |
+
msgstr ""
|
2375 |
+
|
2376 |
+
#: link-library-admin.php:4475
|
2377 |
+
msgid "Link Telephone label"
|
2378 |
+
msgstr ""
|
2379 |
+
|
2380 |
+
#: link-library-admin.php:4490
|
2381 |
+
msgid "Link E-mail label"
|
2382 |
+
msgstr ""
|
2383 |
+
|
2384 |
+
#: link-library-admin.php:4506
|
2385 |
+
msgid "Link Submitter Name label"
|
2386 |
+
msgstr ""
|
2387 |
+
|
2388 |
+
#: link-library-admin.php:4521
|
2389 |
+
msgid "Link Submitter E-mail label"
|
2390 |
+
msgstr ""
|
2391 |
+
|
2392 |
+
#: link-library-admin.php:4523 link-library-admin.php:5033
|
2393 |
+
#: link-library-defaults.php:186 render-link-library-addlink-sc.php:491
|
2394 |
+
msgid "Submitter E-mail"
|
2395 |
+
msgstr "Innsenders epost"
|
2396 |
+
|
2397 |
+
#: link-library-admin.php:4537
|
2398 |
+
msgid "Link Submitter Comment Label"
|
2399 |
+
msgstr ""
|
2400 |
+
|
2401 |
+
#: link-library-admin.php:4539 link-library-defaults.php:188
|
2402 |
+
#: render-link-library-addlink-sc.php:522
|
2403 |
+
msgid "Submitter Comment"
|
2404 |
+
msgstr "Innsenders kommentarer"
|
2405 |
+
|
2406 |
+
#: link-library-admin.php:4552
|
2407 |
+
msgid "Large Description Label"
|
2408 |
+
msgstr ""
|
2409 |
+
|
2410 |
+
#: link-library-admin.php:4554 link-library-admin.php:4710
|
2411 |
+
#: link-library-defaults.php:201 render-link-library-sc.php:991
|
2412 |
+
msgid "Large Description"
|
2413 |
+
msgstr "Full beskrivelse"
|
2414 |
+
|
2415 |
+
#: link-library-admin.php:4568
|
2416 |
+
msgid "Custom Captcha Question"
|
2417 |
+
msgstr "Egendefinert Captcha spørsmål"
|
2418 |
+
|
2419 |
+
#: link-library-admin.php:4570 link-library-defaults.php:195
|
2420 |
+
#: render-link-library-addlink-sc.php:540
|
2421 |
+
msgid "Is boiling water hot or cold?"
|
2422 |
+
msgstr "Er kokende vann varmt eller kaldt?"
|
2423 |
+
|
2424 |
+
#: link-library-admin.php:4582
|
2425 |
+
msgid "Custom Captcha Answer"
|
2426 |
+
msgstr "Egendefinert Captcha svar"
|
2427 |
+
|
2428 |
+
#: link-library-admin.php:4584 link-library-defaults.php:196
|
2429 |
+
msgid "hot"
|
2430 |
+
msgstr "varmt"
|
2431 |
+
|
2432 |
+
#: link-library-admin.php:4591
|
2433 |
+
msgid "Add Link button label"
|
2434 |
+
msgstr "Navn på lenkeknapp"
|
2435 |
+
|
2436 |
+
#: link-library-admin.php:4593 link-library-defaults.php:126
|
2437 |
+
msgid "Add Link"
|
2438 |
+
msgstr "Legg til lenke"
|
2439 |
+
|
2440 |
+
#: link-library-admin.php:4600
|
2441 |
+
msgid "New Link Message"
|
2442 |
+
msgstr "Ny lenke - beskjed"
|
2443 |
+
|
2444 |
+
#: link-library-admin.php:4602
|
2445 |
+
msgid "New link submitted"
|
2446 |
+
msgstr "Ny lenke sendt"
|
2447 |
+
|
2448 |
+
#: link-library-admin.php:4609
|
2449 |
+
msgid "New Link Moderation Label"
|
2450 |
+
msgstr ""
|
2451 |
+
|
2452 |
+
#: link-library-admin.php:4611
|
2453 |
+
msgid "it will appear in the list once moderated. Thank you."
|
2454 |
+
msgstr ""
|
2455 |
+
"den vil bli lagt til på nettstedet så snart den er godkjent. Takk for ditt "
|
2456 |
+
"bidrag."
|
2457 |
+
|
2458 |
+
#: link-library-admin.php:4632
|
2459 |
+
msgid "Overwrites current library settings with contents of CSV file"
|
2460 |
+
msgstr "Overskrive gjeldene bibliotek-innstillinger med innholdet i CSV-fil"
|
2461 |
+
|
2462 |
+
#: link-library-admin.php:4632
|
2463 |
+
msgid "Library Settings CSV file to import"
|
2464 |
+
msgstr ""
|
2465 |
+
|
2466 |
+
#: link-library-admin.php:4635
|
2467 |
+
msgid "Import Library Settings"
|
2468 |
+
msgstr ""
|
2469 |
+
|
2470 |
+
#: link-library-admin.php:4639
|
2471 |
+
msgid "Generates CSV file with current library configuration for download"
|
2472 |
+
msgstr ""
|
2473 |
+
|
2474 |
+
#: link-library-admin.php:4639
|
2475 |
+
msgid "Export current library settings"
|
2476 |
+
msgstr ""
|
2477 |
+
|
2478 |
+
#: link-library-admin.php:4641
|
2479 |
+
msgid "Export Library Settings"
|
2480 |
+
msgstr ""
|
2481 |
+
|
2482 |
+
#: link-library-admin.php:4654
|
2483 |
+
msgid "Search string"
|
2484 |
+
msgstr "Søkestreng"
|
2485 |
+
|
2486 |
+
#: link-library-admin.php:4660
|
2487 |
+
msgid "Delete links that return a 403 error"
|
2488 |
+
msgstr "Fjern lenker som returnerer 403 error"
|
2489 |
+
|
2490 |
+
#: link-library-admin.php:4666
|
2491 |
+
msgid "Check Reciprocal Links"
|
2492 |
+
msgstr ""
|
2493 |
+
|
2494 |
+
#: link-library-admin.php:4672
|
2495 |
+
msgid "Check Broken Links"
|
2496 |
+
msgstr ""
|
2497 |
+
|
2498 |
+
#: link-library-admin.php:4677
|
2499 |
+
msgid "Check Duplicate Links"
|
2500 |
+
msgstr ""
|
2501 |
+
|
2502 |
+
#: link-library-admin.php:4722
|
2503 |
+
msgid "RSS Address"
|
2504 |
+
msgstr "RSS adresse"
|
2505 |
+
|
2506 |
+
#: link-library-admin.php:4726
|
2507 |
+
msgid "Target"
|
2508 |
+
msgstr ""
|
2509 |
+
|
2510 |
+
#: link-library-admin.php:4745
|
2511 |
+
msgid "Current Image"
|
2512 |
+
msgstr ""
|
2513 |
+
|
2514 |
+
#: link-library-admin.php:4751
|
2515 |
+
msgid "None Assigned"
|
2516 |
+
msgstr ""
|
2517 |
+
|
2518 |
+
#: link-library-admin.php:4757
|
2519 |
+
msgid "Image URL"
|
2520 |
+
msgstr "Bilde URL"
|
2521 |
+
|
2522 |
+
#: link-library-admin.php:4762 link-library-admin.php:4772
|
2523 |
+
msgid "Automatic Image Generation"
|
2524 |
+
msgstr ""
|
2525 |
+
|
2526 |
+
#: link-library-admin.php:4766
|
2527 |
+
msgid "Generate Thumbnail and Store locally"
|
2528 |
+
msgstr ""
|
2529 |
+
|
2530 |
+
#: link-library-admin.php:4767
|
2531 |
+
msgid "Generate Favorite Icon and Store locally"
|
2532 |
+
msgstr ""
|
2533 |
+
|
2534 |
+
#: link-library-admin.php:4773
|
2535 |
+
msgid "Only available once link is saved"
|
2536 |
+
msgstr ""
|
2537 |
+
|
2538 |
+
#: link-library-admin.php:4778
|
2539 |
+
msgid "Image Upload"
|
2540 |
+
msgstr ""
|
2541 |
+
|
2542 |
+
#: link-library-admin.php:4780
|
2543 |
+
msgid "Launch Media Uploader"
|
2544 |
+
msgstr ""
|
2545 |
+
|
2546 |
+
#: link-library-admin.php:4877
|
2547 |
+
msgid ""
|
2548 |
+
"Cannot generate thumbnail when no name and no web address are specified."
|
2549 |
+
msgstr ""
|
2550 |
+
|
2551 |
+
#: link-library-admin.php:4913
|
2552 |
+
msgid ""
|
2553 |
+
"Cannot generate favorite icon when no name and no web address are specified."
|
2554 |
+
msgstr ""
|
2555 |
+
|
2556 |
+
#: link-library-admin.php:4958
|
2557 |
+
msgid "Featured Item"
|
2558 |
+
msgstr ""
|
2559 |
+
|
2560 |
+
#: link-library-admin.php:4964
|
2561 |
+
msgid "No Follow"
|
2562 |
+
msgstr ""
|
2563 |
+
|
2564 |
+
#: link-library-admin.php:4980
|
2565 |
+
msgid "Updated Date"
|
2566 |
+
msgstr ""
|
2567 |
+
|
2568 |
+
#: link-library-admin.php:4989
|
2569 |
+
msgid "Secondary Web Address"
|
2570 |
+
msgstr "Sekundær webadresse"
|
2571 |
+
|
2572 |
+
#: link-library-admin.php:4992 link-library-admin.php:5011
|
2573 |
+
msgid "Visit"
|
2574 |
+
msgstr "Besøk"
|
2575 |
+
|
2576 |
+
#: link-library-admin.php:5015
|
2577 |
+
msgid "Number of views"
|
2578 |
+
msgstr "Antall visninger"
|
2579 |
+
|
2580 |
+
#: link-library-admin.php:5021
|
2581 |
+
msgid "Submitter"
|
2582 |
+
msgstr "Innsender"
|
2583 |
+
|
2584 |
+
#: link-library-admin.php:5561
|
2585 |
+
msgid "Duplicate Link Checker Report"
|
2586 |
+
msgstr ""
|
2587 |
+
|
2588 |
+
#: link-library-admin.php:5563
|
2589 |
+
msgid "Duplicate URLs"
|
2590 |
+
msgstr ""
|
2591 |
+
|
2592 |
+
#: link-library-admin.php:5579
|
2593 |
+
msgid "Duplicate Names"
|
2594 |
+
msgstr ""
|
2595 |
+
|
2596 |
+
#: link-library-admin.php:5622
|
2597 |
+
msgid "Reciprocal Link Checker Report"
|
2598 |
+
msgstr ""
|
2599 |
+
|
2600 |
+
#: link-library-admin.php:5624
|
2601 |
+
msgid "Broken Link Checker Report"
|
2602 |
+
msgstr ""
|
2603 |
+
|
2604 |
+
#: link-library-admin.php:5640
|
2605 |
+
msgid "Not Found"
|
2606 |
+
msgstr ""
|
2607 |
+
|
2608 |
+
#: link-library-admin.php:5642
|
2609 |
+
msgid "OK"
|
2610 |
+
msgstr "OK"
|
2611 |
+
|
2612 |
+
#: link-library-admin.php:5644
|
2613 |
+
msgid "Link valid"
|
2614 |
+
msgstr ""
|
2615 |
+
|
2616 |
+
#: link-library-admin.php:5647
|
2617 |
+
msgid "Error 403: Link Deleted"
|
2618 |
+
msgstr "Error 403: Lenke oppdaget"
|
2619 |
+
|
2620 |
+
#: link-library-admin.php:5649
|
2621 |
+
msgid "Error 403"
|
2622 |
+
msgstr "Error 403"
|
2623 |
+
|
2624 |
+
#: link-library-admin.php:5651
|
2625 |
+
msgid "Website Unreachable"
|
2626 |
+
msgstr ""
|
2627 |
+
|
2628 |
+
#: link-library-admin.php:5655
|
2629 |
+
msgid "There are no links with reciprocal links associated with them"
|
2630 |
+
msgstr ""
|
2631 |
+
|
2632 |
+
# Plugin name; please avoid translating if possible
|
2633 |
+
#: link-library-admin.php:5661
|
2634 |
+
msgid "Add Link Library Shortcode"
|
2635 |
+
msgstr "Sett inn Link Library shortcode"
|
2636 |
+
|
2637 |
+
#: link-library-defaults.php:120 render-link-library-addlink-sc.php:214
|
2638 |
+
msgid "Link name"
|
2639 |
+
msgstr "Lenke - Navn"
|
2640 |
+
|
2641 |
+
#: link-library-defaults.php:121 render-link-library-addlink-sc.php:220
|
2642 |
+
msgid "Link address"
|
2643 |
+
msgstr "Lenke - Adresse"
|
2644 |
+
|
2645 |
+
#: link-library-defaults.php:127
|
2646 |
+
msgid "New link submitted."
|
2647 |
+
msgstr "Ny lenke sendt inn"
|
2648 |
+
|
2649 |
+
#: link-library-defaults.php:128
|
2650 |
+
msgid "It will appear in the list once moderated. Thank you."
|
2651 |
+
msgstr ""
|
2652 |
+
"Dersom lenken godkjennes vil den legges til i biblioteket. Takk for ditt "
|
2653 |
+
"bidrag."
|
2654 |
+
|
2655 |
+
#: link-library-defaults.php:145
|
2656 |
+
msgid "Link Library-Generated RSS Feed"
|
2657 |
+
msgstr ""
|
2658 |
+
|
2659 |
+
#: link-library-defaults.php:146
|
2660 |
+
msgid "Description of Link Library-Generated Feed"
|
2661 |
+
msgstr ""
|
2662 |
+
|
2663 |
+
#: link-library-defaults.php:208 linkpopup.php:66
|
2664 |
+
msgid "%link_image%<br />Click through to visit %link_name%."
|
2665 |
+
msgstr "%link_image%<br />Klikk for å besøke %link_name%."
|
2666 |
+
|
2667 |
+
#: link-library-defaults.php:221
|
2668 |
+
msgid "Search..."
|
2669 |
+
msgstr "Søk..."
|
2670 |
+
|
2671 |
+
#: link-library-defaults.php:223
|
2672 |
+
msgid "Category Filter"
|
2673 |
+
msgstr "Kategori - Filter"
|
2674 |
+
|
2675 |
+
#: link-library.php:532
|
2676 |
+
msgid "Link Library Generated Feed"
|
2677 |
+
msgstr ""
|
2678 |
+
|
2679 |
+
#: link-library.php:720
|
2680 |
+
msgid "Could not update link in the database"
|
2681 |
+
msgstr ""
|
2682 |
+
|
2683 |
+
#: link-library.php:727
|
2684 |
+
msgid "Could not insert link into the database"
|
2685 |
+
msgstr ""
|
2686 |
+
|
2687 |
+
#: link-library.php:749 link-library.php:753
|
2688 |
+
msgid ""
|
2689 |
+
"Link Library no longer supports calling this function with individual "
|
2690 |
+
"arguments. Please use the admin panel to configure Link Library and the "
|
2691 |
+
"do_shortcode function to use Link Library output in your code."
|
2692 |
+
msgstr ""
|
2693 |
+
|
2694 |
+
#: link-library.php:892
|
2695 |
+
msgid "Tag"
|
2696 |
+
msgstr ""
|
2697 |
+
|
2698 |
+
#: render-link-library-addlink-sc.php:134
|
2699 |
+
msgid "Confirm code not given"
|
2700 |
+
msgstr "Bekreftelseskode ikke angitt"
|
2701 |
+
|
2702 |
+
#: render-link-library-addlink-sc.php:136
|
2703 |
+
msgid "Captcha code is wrong"
|
2704 |
+
msgstr "Feil Captcha-kode"
|
2705 |
+
|
2706 |
+
#: render-link-library-addlink-sc.php:138
|
2707 |
+
msgid "Captcha code is only valid for 5 minutes"
|
2708 |
+
msgstr "Captcha-koden er kun gyldig i fem minutter"
|
2709 |
+
|
2710 |
+
#: render-link-library-addlink-sc.php:140
|
2711 |
+
msgid "No captcha cookie given. Make sure cookies are enabled"
|
2712 |
+
msgstr ""
|
2713 |
+
|
2714 |
+
#: render-link-library-addlink-sc.php:142
|
2715 |
+
msgid "Captcha answer was not provided."
|
2716 |
+
msgstr "Captcha - svar ikke angitt"
|
2717 |
+
|
2718 |
+
#: render-link-library-addlink-sc.php:144
|
2719 |
+
msgid "Captcha answer is incorrect"
|
2720 |
+
msgstr "Captcha - svaret er ikke korrekt"
|
2721 |
+
|
2722 |
+
#: render-link-library-addlink-sc.php:146
|
2723 |
+
msgid "User Category was not provided correctly. Link insertion failed."
|
2724 |
+
msgstr ""
|
2725 |
+
|
2726 |
+
#: render-link-library-addlink-sc.php:154
|
2727 |
+
msgid "Error: Link does not have an address."
|
2728 |
+
msgstr "Feilmelding : Lenken har ingen adresse"
|
2729 |
+
|
2730 |
+
#: render-link-library-addlink-sc.php:156
|
2731 |
+
msgid "Error: Link already exists."
|
2732 |
+
msgstr "Feilmelding : Lenken eksisterer allerede"
|
2733 |
+
|
2734 |
+
#: render-link-library-addlink-sc.php:158
|
2735 |
+
#: render-link-library-addlink-sc.php:160
|
2736 |
+
#: render-link-library-addlink-sc.php:162
|
2737 |
+
#: render-link-library-addlink-sc.php:164
|
2738 |
+
#: render-link-library-addlink-sc.php:166
|
2739 |
+
#: render-link-library-addlink-sc.php:168
|
2740 |
+
#: render-link-library-addlink-sc.php:170
|
2741 |
+
#: render-link-library-addlink-sc.php:172
|
2742 |
+
#: render-link-library-addlink-sc.php:174
|
2743 |
+
#: render-link-library-addlink-sc.php:176
|
2744 |
+
#: render-link-library-addlink-sc.php:178
|
2745 |
+
msgid " is a required field"
|
2746 |
+
msgstr " er et obligatorisk felt"
|
2747 |
+
|
2748 |
+
#: render-link-library-addlink-sc.php:180
|
2749 |
+
msgid "Link submission error"
|
2750 |
+
msgstr "Feil ved innsending av lenke"
|
2751 |
+
|
2752 |
+
#: render-link-library-addlink-sc.php:182
|
2753 |
+
msgid "Link rejected. There is already a site with this reciprocal link."
|
2754 |
+
msgstr ""
|
2755 |
+
|
2756 |
+
#: render-link-library-addlink-sc.php:217
|
2757 |
+
#: render-link-library-addlink-sc.php:278
|
2758 |
+
#: render-link-library-addlink-sc.php:344
|
2759 |
+
#: render-link-library-addlink-sc.php:361
|
2760 |
+
#: render-link-library-addlink-sc.php:369
|
2761 |
+
#: render-link-library-addlink-sc.php:417
|
2762 |
+
#: render-link-library-addlink-sc.php:435
|
2763 |
+
#: render-link-library-addlink-sc.php:528
|
2764 |
+
#: render-link-library-addlink-sc.php:543
|
2765 |
+
msgid "Required field"
|
2766 |
+
msgstr "Obligatorisk felt"
|
2767 |
+
|
2768 |
+
#: render-link-library-addlink-sc.php:225
|
2769 |
+
msgid "Required field, URL"
|
2770 |
+
msgstr "Obligatorisk felt, URL"
|
2771 |
+
|
2772 |
+
#: render-link-library-addlink-sc.php:242
|
2773 |
+
#: render-link-library-addlink-sc.php:331
|
2774 |
+
#: render-link-library-addlink-sc.php:399
|
2775 |
+
msgid "Required field, 1-255 chars"
|
2776 |
+
msgstr "Obligatorisk felt, 1 - 255 tegn"
|
2777 |
+
|
2778 |
+
#: render-link-library-addlink-sc.php:274
|
2779 |
+
msgid "Link category"
|
2780 |
+
msgstr "Lenke - Kategori"
|
2781 |
+
|
2782 |
+
#: render-link-library-addlink-sc.php:281
|
2783 |
+
msgid "Select a category"
|
2784 |
+
msgstr "Velg en kategori"
|
2785 |
+
|
2786 |
+
#: render-link-library-addlink-sc.php:320
|
2787 |
+
msgid "Link description"
|
2788 |
+
msgstr "Lenke - Beskrivelse"
|
2789 |
+
|
2790 |
+
#: render-link-library-addlink-sc.php:338
|
2791 |
+
msgid "Large description"
|
2792 |
+
msgstr "Full beskrivelse"
|
2793 |
+
|
2794 |
+
#: render-link-library-addlink-sc.php:352
|
2795 |
+
msgid "Link notes"
|
2796 |
+
msgstr "Lenke - Notater"
|
2797 |
+
|
2798 |
+
#: render-link-library-addlink-sc.php:453
|
2799 |
+
msgid "Required field, proper e-mail, 1-128 chars"
|
2800 |
+
msgstr "Obligatorisk felt, gyldig epostadresse, 1 - 128 tegn"
|
2801 |
+
|
2802 |
+
#: render-link-library-addlink-sc.php:484
|
2803 |
+
#: render-link-library-addlink-sc.php:515
|
2804 |
+
msgid "Required field, 1-128 chars"
|
2805 |
+
msgstr "Obligatorisk felt, 1 - 128 tegn"
|
2806 |
+
|
2807 |
+
#: render-link-library-addlink-sc.php:549
|
2808 |
+
msgid "Add link"
|
2809 |
+
msgstr "Legg til lenke"
|
2810 |
+
|
2811 |
+
#: render-link-library-addlink-sc.php:561
|
2812 |
+
msgid "Form submission failed!"
|
2813 |
+
msgstr "Feil ved innsending av skjemaet!"
|
2814 |
+
|
2815 |
+
#: render-link-library-addlink-sc.php:562
|
2816 |
+
msgid "You have not answered all required fields"
|
2817 |
+
msgstr "Du har ikke fylt inn alle obligatoriske felt"
|
2818 |
+
|
2819 |
+
#: render-link-library-addlink-sc.php:563
|
2820 |
+
msgid "You have not given a correct time"
|
2821 |
+
msgstr "Du har ikke oppgitt riktig tidspunkt"
|
2822 |
+
|
2823 |
+
#: render-link-library-addlink-sc.php:564
|
2824 |
+
msgid "You have not given a correct e-mail address"
|
2825 |
+
msgstr "Du har ikke oppgitt en gyldig epostadresse"
|
2826 |
+
|
2827 |
+
#: render-link-library-addlink-sc.php:565
|
2828 |
+
msgid "You have not given a correct phone number"
|
2829 |
+
msgstr "Du har ikke oppgitt et gyldig telefonnummer"
|
2830 |
+
|
2831 |
+
#: render-link-library-addlink-sc.php:566
|
2832 |
+
msgid "You have not given a correct answer to the security question"
|
2833 |
+
msgstr "Du har ikke oppgitt riktig svar på sikkerhetsspørsmålet"
|
2834 |
+
|
2835 |
+
#: render-link-library-addlink-sc.php:567
|
2836 |
+
msgid "You have not given a correct date"
|
2837 |
+
msgstr "Du har ikke oppgitt riktig dato"
|
2838 |
+
|
2839 |
+
#: render-link-library-addlink-sc.php:568
|
2840 |
+
msgid "The input value must be between "
|
2841 |
+
msgstr "Verdien må være mellom"
|
2842 |
+
|
2843 |
+
#: render-link-library-addlink-sc.php:569
|
2844 |
+
msgid "characters"
|
2845 |
+
msgstr "tegn"
|
2846 |
+
|
2847 |
+
#: render-link-library-addlink-sc.php:570
|
2848 |
+
msgid "The input value is longer than "
|
2849 |
+
msgstr "Verdien overstiger "
|
2850 |
+
|
2851 |
+
#: render-link-library-addlink-sc.php:571
|
2852 |
+
msgid "The input value is shorter than "
|
2853 |
+
msgstr "Verdien er kortere enn"
|
2854 |
+
|
2855 |
+
#: render-link-library-addlink-sc.php:572
|
2856 |
+
msgid "Input values could not be confirmed"
|
2857 |
+
msgstr "Inntastede verdier kunne ikke bekreftes"
|
2858 |
+
|
2859 |
+
#: render-link-library-addlink-sc.php:573
|
2860 |
+
msgid "Incorrect domain value"
|
2861 |
+
msgstr "Ikke gyldig domene"
|
2862 |
+
|
2863 |
+
#: render-link-library-addlink-sc.php:574
|
2864 |
+
msgid "The input value is not a correct URL. Requires http://."
|
2865 |
+
msgstr "Ikke godkjent verdig. Krever http://."
|
2866 |
+
|
2867 |
+
#: render-link-library-addlink-sc.php:575
|
2868 |
+
msgid "The input value is incorrect"
|
2869 |
+
msgstr ""
|
2870 |
+
|
2871 |
+
#: render-link-library-addlink-sc.php:576
|
2872 |
+
msgid " and spaces "
|
2873 |
+
msgstr " og mellomrom "
|
2874 |
+
|
2875 |
+
#: render-link-library-addlink-sc.php:577
|
2876 |
+
msgid "The input value was not a correct number"
|
2877 |
+
msgstr "Inntasted verdi er ikke et gyldig nummer"
|
2878 |
+
|
2879 |
+
#: render-link-library-addlink-sc.php:578
|
2880 |
+
msgid "Your social security number was incorrect"
|
2881 |
+
msgstr ""
|
2882 |
+
|
2883 |
+
#: render-link-library-addlink-sc.php:579
|
2884 |
+
msgid "Incorrect UK VAT Number"
|
2885 |
+
msgstr ""
|
2886 |
+
|
2887 |
+
#: render-link-library-addlink-sc.php:580
|
2888 |
+
msgid "The password is not strong enough"
|
2889 |
+
msgstr "Passordet er ikke sterkt nok"
|
2890 |
+
|
2891 |
+
#: render-link-library-addlink-sc.php:581
|
2892 |
+
msgid "You have to choose at least "
|
2893 |
+
msgstr "Du må velge minst "
|
2894 |
+
|
2895 |
+
#: render-link-library-addlink-sc.php:582
|
2896 |
+
msgid " answers"
|
2897 |
+
msgstr " svar"
|
2898 |
+
|
2899 |
+
#: render-link-library-addlink-sc.php:583
|
2900 |
+
msgid "The input value can only contain alphanumeric characters "
|
2901 |
+
msgstr ""
|
2902 |
+
|
2903 |
+
#: render-link-library-addlink-sc.php:584
|
2904 |
+
msgid " and "
|
2905 |
+
msgstr " og "
|
2906 |
+
|
2907 |
+
#: render-link-library-addlink-sc.php:585
|
2908 |
+
#, php-format
|
2909 |
+
msgid "The file you are trying to upload is too large (max %s)"
|
2910 |
+
msgstr "Filen du forsøker å laste opp er for stor (max %s)"
|
2911 |
+
|
2912 |
+
#: render-link-library-addlink-sc.php:586
|
2913 |
+
#, php-format
|
2914 |
+
msgid "Only files of type %s is allowed"
|
2915 |
+
msgstr "Kun filer av typen %s tillates"
|
2916 |
+
|
2917 |
+
#: render-link-library-addlink-sc.php:587
|
2918 |
+
msgid "Please choose between "
|
2919 |
+
msgstr "Velg mellom "
|
2920 |
+
|
2921 |
+
#: render-link-library-addlink-sc.php:588
|
2922 |
+
msgid "Please choose at least "
|
2923 |
+
msgstr "Velg minst"
|
2924 |
+
|
2925 |
+
#: render-link-library-addlink-sc.php:589
|
2926 |
+
msgid "Please choose a maximum of "
|
2927 |
+
msgstr "Velg maksimalt "
|
2928 |
+
|
2929 |
+
#: render-link-library-addlink-sc.php:590
|
2930 |
+
msgid " item(s)"
|
2931 |
+
msgstr " element(er)"
|
2932 |
+
|
2933 |
+
#: render-link-library-addlink-sc.php:591
|
2934 |
+
msgid "The credit card number is not correct"
|
2935 |
+
msgstr ""
|
2936 |
+
|
2937 |
+
#: render-link-library-addlink-sc.php:592
|
2938 |
+
msgid "The CVV number was not correct"
|
2939 |
+
msgstr ""
|
2940 |
+
|
2941 |
+
#: render-link-library-addlink-sc.php:593
|
2942 |
+
msgid "Incorrect image dimensions,"
|
2943 |
+
msgstr ""
|
2944 |
+
|
2945 |
+
#: render-link-library-addlink-sc.php:594
|
2946 |
+
msgid "the image can not be taller than"
|
2947 |
+
msgstr "bildet kan ikke være høyere enn"
|
2948 |
+
|
2949 |
+
#: render-link-library-addlink-sc.php:595
|
2950 |
+
msgid "the image can not be wider than"
|
2951 |
+
msgstr "bildet kan ikke være bredere enn"
|
2952 |
+
|
2953 |
+
#: render-link-library-addlink-sc.php:596
|
2954 |
+
msgid "the image was too small"
|
2955 |
+
msgstr "bildet er for lite"
|
2956 |
+
|
2957 |
+
#: render-link-library-addlink-sc.php:597
|
2958 |
+
msgid "min"
|
2959 |
+
msgstr "min"
|
2960 |
+
|
2961 |
+
#: render-link-library-addlink-sc.php:598
|
2962 |
+
msgid "max"
|
2963 |
+
msgstr "maks"
|
2964 |
+
|
2965 |
+
#: render-link-library-addlink-sc.php:599
|
2966 |
+
msgid "Image ratio is not accepted"
|
2967 |
+
msgstr ""
|
2968 |
+
|
2969 |
+
#: render-link-library-addlink-sc.php:622
|
2970 |
+
msgid "Enter code from above image"
|
2971 |
+
msgstr "Sett inn koden fra bildet over"
|
2972 |
+
|
2973 |
+
#: render-link-library-cats-sc.php:409
|
2974 |
+
msgid "Go!"
|
2975 |
+
msgstr "Kjør!"
|
2976 |
+
|
2977 |
+
#: render-link-library-cats-sc.php:438
|
2978 |
+
msgid "No categories found"
|
2979 |
+
msgstr "Ingen kategorier funnet"
|
2980 |
+
|
2981 |
+
#: render-link-library-sc.php:115 render-link-library-sc.php:118
|
2982 |
+
#: render-link-library-sc.php:131 render-link-library-sc.php:137
|
2983 |
+
msgid "Previous"
|
2984 |
+
msgstr "Forrige"
|
2985 |
+
|
2986 |
+
#: render-link-library-sc.php:206 render-link-library-sc.php:209
|
2987 |
+
#: render-link-library-sc.php:215 render-link-library-sc.php:222
|
2988 |
+
msgid "Next"
|
2989 |
+
msgstr "Neste"
|
2990 |
+
|
2991 |
+
#: render-link-library-sc.php:572
|
2992 |
+
msgid "Search Results for"
|
2993 |
+
msgstr "Søkeresultater for"
|
2994 |
+
|
2995 |
+
#: render-link-library-sc.php:1080
|
2996 |
+
msgid "No links found"
|
2997 |
+
msgstr "Ingen lenker funnet"
|
2998 |
+
|
2999 |
+
#: render-link-library-sc.php:1248
|
3000 |
+
msgid "Last updated"
|
3001 |
+
msgstr "Sist oppdatert"
|
3002 |
+
|
3003 |
+
#: render-link-library-sc.php:1396
|
3004 |
+
msgid "Edit"
|
3005 |
+
msgstr "Redigere"
|
3006 |
+
|
3007 |
+
#: render-link-library-sc.php:1480
|
3008 |
+
msgid "Preview of RSS feed for"
|
3009 |
+
msgstr ""
|
3010 |
+
|
3011 |
+
#: render-link-library-sc.php:1784
|
3012 |
+
msgid "Free"
|
3013 |
+
msgstr "Gratis"
|
3014 |
+
|
3015 |
+
#: render-link-library-tag-filter-sc.php:87
|
3016 |
+
msgid "Apply filter"
|
3017 |
+
msgstr "Aktiver filter"
|
3018 |
+
|
3019 |
+
#: usersubmission.php:294
|
3020 |
+
msgid "A user submitted a new link to your Wordpress Link database."
|
3021 |
+
msgstr ""
|
3022 |
+
"En bruker har sendt inn en forslag på en ny lenke for din Wordpress database."
|
3023 |
+
|
3024 |
+
#: usersubmission.php:303 usersubmission.php:378
|
3025 |
+
msgid "Link Secondary Address"
|
3026 |
+
msgstr ""
|
3027 |
+
|
3028 |
+
#: usersubmission.php:304 usersubmission.php:382
|
3029 |
+
msgid "Link Telephone"
|
3030 |
+
msgstr ""
|
3031 |
+
|
3032 |
+
#: usersubmission.php:305 usersubmission.php:386
|
3033 |
+
msgid "Link E-mail"
|
3034 |
+
msgstr ""
|
3035 |
+
|
3036 |
+
#: usersubmission.php:306
|
3037 |
+
msgid "Link Submitter"
|
3038 |
+
msgstr ""
|
3039 |
+
|
3040 |
+
#: usersubmission.php:307 usersubmission.php:390
|
3041 |
+
msgid "Link Submitter Name"
|
3042 |
+
msgstr ""
|
3043 |
+
|
3044 |
+
#: usersubmission.php:308 usersubmission.php:394
|
3045 |
+
msgid "Link Submitter E-mail"
|
3046 |
+
msgstr ""
|
3047 |
+
|
3048 |
+
#: usersubmission.php:309 usersubmission.php:398
|
3049 |
+
msgid "Link Comment"
|
3050 |
+
msgstr ""
|
3051 |
+
|
3052 |
+
#: usersubmission.php:323
|
3053 |
+
msgid "New link added"
|
3054 |
+
msgstr ""
|
3055 |
+
|
3056 |
+
#: usersubmission.php:337
|
3057 |
+
msgid "Link Submission Confirmation"
|
3058 |
+
msgstr "Innsendt lenke bekreftet"
|
3059 |
+
|
3060 |
+
#: usersubmission.php:339
|
3061 |
+
msgid "Thank you for your link submission on "
|
3062 |
+
msgstr "Takk for ditt innsendte forslag"
|
3063 |
+
|
3064 |
+
#: usersubmission.php:343
|
3065 |
+
msgid "Your link will appear once approved by the site administrator."
|
3066 |
+
msgstr "Lenken må godkjennes av moderator før den publiseres på nettsiden."
|
3067 |
+
|
3068 |
+
#: usersubmission.php:345
|
3069 |
+
msgid "Your link will immediately be added to the site."
|
3070 |
+
msgstr "Din lenke vil umiddelbart bli lagt til på nettsiden."
|
3071 |
+
|
3072 |
+
#: wp_dropdown_posts.php:121
|
3073 |
+
#, php-format
|
3074 |
+
msgid "#%d (no title)"
|
3075 |
+
msgstr "#%d (ingen tittel)"
|
3076 |
+
|
3077 |
+
msgid "Filters"
|
3078 |
+
msgstr "Filter"
|
3079 |
+
|
3080 |
+
#~ msgid "Link Library - Additional Link Parameters"
|
3081 |
+
#~ msgstr "Link Library - Paramètres Additionels"
|
3082 |
+
|
3083 |
+
#~ msgid "Settings"
|
3084 |
+
#~ msgstr "Configuration"
|
3085 |
+
|
3086 |
+
#~ msgid "Reciprocal and Broken Link Checker"
|
3087 |
+
#~ msgstr "Vérificateur de liens et de liens réciproques"
|
3088 |
+
|
3089 |
+
#~ msgid "Reciprocal Link Checker"
|
3090 |
+
#~ msgstr "Vérificateur de liens réciproques"
|
3091 |
+
|
3092 |
+
#~ msgid "Download exported links"
|
3093 |
+
#~ msgstr "Télécharger les liens exportés"
|
3094 |
+
|
3095 |
+
#~ msgid "Library Settings Exported"
|
3096 |
+
#~ msgstr "Configuration de librairie exportée"
|
3097 |
+
|
3098 |
+
#~ msgid "Download here"
|
3099 |
+
#~ msgstr "Récupérer ici"
|
3100 |
+
|
3101 |
+
#~ msgid "Validate all submitted links with Akismet"
|
3102 |
+
#~ msgstr "Valider les liens proposés avec Akismet"
|
3103 |
+
|
3104 |
+
#~ msgid "Link Column Header"
|
3105 |
+
#~ msgstr "Entête de colonne de lien"
|
3106 |
+
|
3107 |
+
#~ msgid "Description Column Header"
|
3108 |
+
#~ msgstr "Entête de colonne pour les descriptions"
|
3109 |
+
|
3110 |
+
#~ msgid "Notes Column Header"
|
3111 |
+
#~ msgstr "Entête de la colonne des notes"
|
3112 |
+
|
3113 |
+
#~ msgid "Web Address Only"
|
3114 |
+
#~ msgstr "Seulement une adresse Web"
|
3115 |
+
|
3116 |
+
#~ msgid "Featured Link"
|
3117 |
+
#~ msgstr "Lien vedette"
|
3118 |
+
|
3119 |
+
#~ msgid ""
|
3120 |
+
#~ "Manual upload requires a wp-content\\uploads directory to be present with "
|
3121 |
+
#~ "write permissions"
|
3122 |
+
#~ msgstr ""
|
3123 |
+
#~ "Le téléchargement manuel requiert la présence du répertoire wp-content"
|
3124 |
+
#~ "\\uploads avec des permissions d'écriture"
|
3125 |
+
|
3126 |
+
#~ msgid "Participate in the Link Library User Survey"
|
3127 |
+
#~ msgstr "Particciper au sondage des utilisateurs de Link Library"
|
3128 |
+
|
3129 |
+
#~ msgid ""
|
3130 |
+
#~ "10 short questions to help shape future versions of Link Library and "
|
3131 |
+
#~ "inform decisions on migrating its content to Custom Post Types for data "
|
3132 |
+
#~ "storage. Important to users who use multiple link management plugins."
|
3133 |
+
#~ msgstr ""
|
3134 |
+
#~ "10 questions courtes pour aider à définir les futures versions de Link "
|
3135 |
+
#~ "Library et s'informer sur la décision de migrer son contenu vers des "
|
3136 |
+
#~ "types d'articles personels (Custom Post Types) pour le stockage des "
|
3137 |
+
#~ "données. C'est important pour les utilisateurs de plusieurs gestionnaires "
|
3138 |
+
#~ "de liens."
|
3139 |
+
|
3140 |
+
#~ msgid ""
|
3141 |
+
#~ "Read the results of the Link Library User Survey and learn how the plugin "
|
3142 |
+
#~ "will evolve"
|
3143 |
+
#~ msgstr ""
|
3144 |
+
#~ "Lire le résultat du sondage sur Link Library et découvrez comment "
|
3145 |
+
#~ "l'extension va évoluer"
|
3146 |
+
|
3147 |
+
#~ msgid "Reciprocal Checker"
|
3148 |
+
#~ msgstr "Vérificateur de liens réciproques"
|
3149 |
+
|
3150 |
+
#~ msgid "General Settings"
|
3151 |
+
#~ msgstr "Configuration générale"
|
3152 |
+
|
3153 |
+
#~ msgid "General Moderation Options"
|
3154 |
+
#~ msgstr "Configuration générale de modération"
|
3155 |
+
|
3156 |
+
#~ msgid "Library Selection and Usage Instructions"
|
3157 |
+
#~ msgstr "Sélection de librairie et instructions d'utilisation"
|
3158 |
+
|
3159 |
+
#~ msgid "Common Parameters"
|
3160 |
+
#~ msgstr "Paramètres communs"
|
3161 |
+
|
3162 |
+
#~ msgid "Link Categories Settings"
|
3163 |
+
#~ msgstr "Configurations des catégories de liens"
|
3164 |
+
|
3165 |
+
#~ msgid "Link Element Settings"
|
3166 |
+
#~ msgstr "Configuration des éléments des liens"
|
3167 |
+
|
3168 |
+
#~ msgid "Link Pop-Up"
|
3169 |
+
#~ msgstr "Activer les fenêtres Pop-up pour les liens"
|
3170 |
+
|
3171 |
+
#~ msgid "RSS Field Configuration"
|
3172 |
+
#~ msgstr "Configuration du champ RSS"
|
3173 |
+
|
3174 |
+
#~ msgid "RSS Generation"
|
3175 |
+
#~ msgstr "Génération de flux d'informations RSS"
|
3176 |
+
|
3177 |
+
#~ msgid "Search Form Configuration"
|
3178 |
+
#~ msgstr "Configuration du formulaire de recherche"
|
3179 |
+
|
3180 |
+
#~ msgid "Stylesheet Editor"
|
3181 |
+
#~ msgstr "Éditeur de Feuille de style"
|
3182 |
+
|
3183 |
+
#~ msgid "CID provided with paid Thumbshots.org accounts"
|
3184 |
+
#~ msgstr ""
|
3185 |
+
#~ "Le code CID peut être obtenu avec un abonnement payant sur Thumbshots.org"
|
3186 |
+
|
3187 |
+
# Plugin name; please avoid translating if possible
|
3188 |
+
#, fuzzy
|
3189 |
+
#~ msgid "Link Library - Reciprocal Checker"
|
3190 |
+
#~ msgstr "Link Library - Modération"
|
3191 |
+
|
3192 |
+
# Plugin name; please avoid translating if possible
|
3193 |
+
#~ msgid "Link Library - Stylesheet"
|
3194 |
+
#~ msgstr "Link Library - Feuille de Style"
|
3195 |
+
|
3196 |
+
#~ msgid "Link Library General Options"
|
3197 |
+
#~ msgstr "Options Générales de Link Library"
|
3198 |
+
|
3199 |
+
# Plugin name; please avoid translating if possible
|
3200 |
+
#, fuzzy
|
3201 |
+
#~ msgid "Link Library Settings"
|
3202 |
+
#~ msgstr "Link Library - Groupes de Configuration"
|
3203 |
+
|
3204 |
+
#, fuzzy
|
3205 |
+
#~ msgid "Link Library General Settings"
|
3206 |
+
#~ msgstr "Options Générales de Link Library"
|
3207 |
+
|
3208 |
+
#, fuzzy
|
3209 |
+
#~ msgid "Link Library Reciprocal Link Checker"
|
3210 |
+
#~ msgstr "Link Library - Paramètres Additionels"
|
3211 |
+
|
3212 |
+
# Plugin name; please avoid translating if possible
|
3213 |
+
#, fuzzy
|
3214 |
+
#~ msgid "Link Library Stylesheet Editor"
|
3215 |
+
#~ msgstr "Link Library - Feuille de Style"
|
3216 |
+
|
3217 |
+
#~ msgid "Change Current Style Set"
|
3218 |
+
#~ msgstr "Sélectionner le groupe de configuration courant"
|
3219 |
+
|
3220 |
+
#~ msgid "Current Settings Set Name"
|
3221 |
+
#~ msgstr "Nom du groupe de configuration courant"
|
3222 |
+
|
3223 |
+
#~ msgid "Delete Settings Set"
|
3224 |
+
#~ msgstr "Supprimer le groupe de configuration courant"
|
3225 |
+
|
3226 |
+
#~ msgid "Number of Style Sets"
|
3227 |
+
#~ msgstr "Nombre de groupes de configuration"
|
3228 |
+
|
3229 |
+
#~ msgid "Order set by"
|
3230 |
+
#~ msgstr "Trier par"
|
3231 |
+
|
3232 |
+
#~ msgid "RSS Cache Directory"
|
3233 |
+
#~ msgstr "Répertoire cache pour les flux d'informations"
|
3234 |
+
|
3235 |
+
#~ msgid "Set #"
|
3236 |
+
#~ msgstr "Groupe #"
|
3237 |
+
|
3238 |
+
#~ msgid "Set Name"
|
3239 |
+
#~ msgstr "Nom du groupe"
|
3240 |
+
|
3241 |
+
#~ msgid "Setting Set"
|
3242 |
+
#~ msgstr "Groupe de configuration"
|
3243 |
+
|
3244 |
+
#~ msgid ""
|
3245 |
+
#~ "Used for RSS Preview and RSS Inline Articles options below. Must have "
|
3246 |
+
#~ "write access to directory"
|
3247 |
+
#~ msgstr ""
|
3248 |
+
#~ "Utilisé par l'aperçu des flux d'informations RSS et la présentation "
|
3249 |
+
#~ "d'articles RSS dans la liste de lien ci-dessous. Le répertoire doit avoir "
|
3250 |
+
#~ "des permissions d'écriture"
|
languages/link-library.mo
ADDED
Binary file
|
languages/link-library.pot
CHANGED
@@ -1,185 +1,164 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
-
"Project-Id-Version: \n"
|
4 |
-
"POT-Creation-Date:
|
5 |
-
"PO-Revision-Date:
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: \n"
|
8 |
"Language: en\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Generator: Poedit 1.
|
13 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
14 |
"X-Poedit-KeywordsList: __;_e\n"
|
|
|
15 |
"X-Poedit-SearchPath-0: .\n"
|
|
|
16 |
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
17 |
|
18 |
-
#: link-library-admin.php:
|
19 |
msgid "Insert a Link Library shortcode"
|
20 |
msgstr ""
|
21 |
|
22 |
-
#: link-library-admin.php:
|
23 |
msgid "Link List"
|
24 |
msgstr ""
|
25 |
|
26 |
-
#: link-library-admin.php:
|
27 |
msgid "Link Category List"
|
28 |
msgstr ""
|
29 |
|
30 |
-
#: link-library-admin.php:
|
31 |
msgid "Link Search"
|
32 |
msgstr ""
|
33 |
|
34 |
-
#: link-library-admin.php:
|
35 |
msgid "Add Link Form"
|
36 |
msgstr ""
|
37 |
|
38 |
-
#: link-library-admin.php:
|
39 |
msgid "Render a list of links."
|
40 |
msgstr ""
|
41 |
|
42 |
-
#: link-library-admin.php:
|
43 |
-
#: link-library-admin.php:
|
44 |
msgid "Library ID"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: link-library-admin.php:
|
48 |
-
#: link-library-admin.php:
|
49 |
-
#: link-library-admin.php:
|
50 |
msgid "Library"
|
51 |
msgstr ""
|
52 |
|
53 |
-
#: link-library-admin.php:
|
54 |
msgid "Single Link ID"
|
55 |
msgstr ""
|
56 |
|
57 |
-
#: link-library-admin.php:
|
58 |
msgid "Specify ID of single link to be displayed"
|
59 |
msgstr ""
|
60 |
|
61 |
-
#: link-library-admin.php:
|
62 |
-
#: link-library-admin.php:
|
63 |
msgid "Category Override"
|
64 |
msgstr ""
|
65 |
|
66 |
-
#: link-library-admin.php:
|
67 |
-
#: link-library-admin.php:
|
68 |
msgid ""
|
69 |
"Single, or comma-separated list of categories IDs to be displayed in the "
|
70 |
"link list"
|
71 |
msgstr ""
|
72 |
|
73 |
-
#: link-library-admin.php:
|
74 |
-
#: link-library-admin.php:
|
75 |
msgid "Excluded Category Override"
|
76 |
msgstr ""
|
77 |
|
78 |
-
#: link-library-admin.php:
|
79 |
-
#: link-library-admin.php:
|
80 |
msgid ""
|
81 |
"Single, or comma-separated list of categories IDs to be excluded from the "
|
82 |
"link list"
|
83 |
msgstr ""
|
84 |
|
85 |
-
#: link-library-admin.php:
|
86 |
-
#: link-library-admin.php:
|
87 |
msgid "Notes Override"
|
88 |
msgstr ""
|
89 |
|
90 |
-
#: link-library-admin.php:
|
91 |
msgid "Set to 0 or 1 to display or not display link notes"
|
92 |
msgstr ""
|
93 |
|
94 |
-
#: link-library-admin.php:
|
95 |
msgid "Set to 0 or 1 to display or not display link descriptions"
|
96 |
msgstr ""
|
97 |
|
98 |
-
#: link-library-admin.php:
|
99 |
msgid "Set to 0 or 1 to display or not display rss information"
|
100 |
msgstr ""
|
101 |
|
102 |
-
#: link-library-admin.php:
|
103 |
msgid "Set to 0 or 1 to display links in an unordered list or a table"
|
104 |
msgstr ""
|
105 |
|
106 |
-
#: link-library-admin.php:
|
107 |
msgid "Render a list of link categories."
|
108 |
msgstr ""
|
109 |
|
110 |
-
#: link-library-admin.php:
|
111 |
msgid "Render a search box to search through links."
|
112 |
msgstr ""
|
113 |
|
114 |
-
#: link-library-admin.php:
|
115 |
msgid "There are no options for this shortcode."
|
116 |
msgstr ""
|
117 |
|
118 |
-
#: link-library-admin.php:
|
119 |
msgid "Render a form for visitors to submit new links."
|
120 |
msgstr ""
|
121 |
|
122 |
-
#: link-library-admin.php:
|
123 |
msgid "Category Link"
|
124 |
msgstr ""
|
125 |
|
126 |
-
#: link-library-admin.php:
|
127 |
-
msgid "Reciprocal Link Checker Report"
|
128 |
-
msgstr ""
|
129 |
-
|
130 |
-
#: link-library-admin.php:367
|
131 |
-
msgid "Broken Link Checker Report"
|
132 |
-
msgstr ""
|
133 |
-
|
134 |
-
#: link-library-admin.php:383
|
135 |
-
msgid "Not Found"
|
136 |
-
msgstr ""
|
137 |
-
|
138 |
-
#: link-library-admin.php:385
|
139 |
-
msgid "OK"
|
140 |
-
msgstr ""
|
141 |
-
|
142 |
-
#: link-library-admin.php:387
|
143 |
-
msgid "Link valid"
|
144 |
-
msgstr ""
|
145 |
-
|
146 |
-
#: link-library-admin.php:390
|
147 |
-
msgid "Error 403: Link Deleted"
|
148 |
-
msgstr ""
|
149 |
-
|
150 |
-
#: link-library-admin.php:392
|
151 |
-
msgid "Error 403"
|
152 |
-
msgstr ""
|
153 |
-
|
154 |
-
#: link-library-admin.php:394
|
155 |
-
msgid "Website Unreachable"
|
156 |
-
msgstr ""
|
157 |
-
|
158 |
-
#: link-library-admin.php:398
|
159 |
-
msgid "There are no links with reciprocal links associated with them"
|
160 |
-
msgstr ""
|
161 |
-
|
162 |
-
#: link-library-admin.php:421 link-library-admin.php:720
|
163 |
msgid ""
|
164 |
"Please create a folder called uploads under your Wordpress /wp-content/ "
|
165 |
"directory with write permissions to use this functionality."
|
166 |
msgstr ""
|
167 |
|
168 |
-
#: link-library-admin.php:
|
169 |
msgid ""
|
170 |
"Please make sure that the /wp-content/uploads/ directory has write "
|
171 |
"permissions to use this functionality."
|
172 |
msgstr ""
|
173 |
|
174 |
-
#: link-library-admin.php:
|
175 |
-
msgid "
|
176 |
msgstr ""
|
177 |
|
178 |
-
#: link-library-admin.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
179 |
msgid "Link Library: Missing Thumbshots API Key"
|
180 |
msgstr ""
|
181 |
|
182 |
-
#: link-library-admin.php:
|
183 |
msgid ""
|
184 |
"One of your link libraries is configured to use Thumbshots for link "
|
185 |
"thumbails, but you have not entered your Thumbshots.com API Key. Please "
|
@@ -187,15 +166,15 @@ msgid ""
|
|
187 |
"in the Link Library admin panel."
|
188 |
msgstr ""
|
189 |
|
190 |
-
#: link-library-admin.php:
|
191 |
msgid "Jump to Link Library admin"
|
192 |
msgstr ""
|
193 |
|
194 |
-
#: link-library-admin.php:
|
195 |
msgid "Link Library: No Link Categories on your site"
|
196 |
msgstr ""
|
197 |
|
198 |
-
#: link-library-admin.php:
|
199 |
msgid ""
|
200 |
"There are currently no link categories defined in your WordPress site. Link "
|
201 |
"Library will not work correctly without categories. Please create at least "
|
@@ -203,503 +182,498 @@ msgid ""
|
|
203 |
"category."
|
204 |
msgstr ""
|
205 |
|
206 |
-
#: link-library-admin.php:
|
207 |
msgid "Links to moderate"
|
208 |
msgstr ""
|
209 |
|
210 |
-
#: link-library-admin.php:
|
211 |
-
|
212 |
-
msgid "General Options"
|
213 |
msgstr ""
|
214 |
|
215 |
-
#: link-library-admin.php:
|
216 |
-
msgid "
|
217 |
msgstr ""
|
218 |
|
219 |
-
#: link-library-admin.php:
|
220 |
-
msgid "Library
|
221 |
msgstr ""
|
222 |
|
223 |
-
#: link-library-admin.php:
|
224 |
-
#: link-library-admin.php:
|
225 |
msgid "Moderate"
|
226 |
msgstr ""
|
227 |
|
228 |
-
#: link-library-admin.php:
|
229 |
-
#: link-library-admin.php:
|
230 |
msgid "Stylesheet"
|
231 |
msgstr ""
|
232 |
|
233 |
-
#: link-library-admin.php:
|
234 |
-
msgid "
|
235 |
msgstr ""
|
236 |
|
237 |
-
#: link-library-admin.php:
|
238 |
msgid "FAQ"
|
239 |
msgstr ""
|
240 |
|
241 |
-
#: link-library-admin.php:
|
242 |
-
msgid "Save"
|
243 |
-
msgstr ""
|
244 |
-
|
245 |
-
#: link-library-admin.php:677
|
246 |
msgid "Links awaiting moderation"
|
247 |
msgstr ""
|
248 |
|
249 |
-
#: link-library-admin.php:
|
250 |
msgid "Editor"
|
251 |
msgstr ""
|
252 |
|
253 |
-
#: link-library-admin.php:
|
254 |
-
msgid "
|
255 |
msgstr ""
|
256 |
|
257 |
-
#: link-library-admin.php:
|
258 |
msgid "Thumbnails successfully generated!"
|
259 |
msgstr ""
|
260 |
|
261 |
-
#: link-library-admin.php:
|
262 |
msgid "Favicons successfully generated!"
|
263 |
msgstr ""
|
264 |
|
265 |
-
#: link-library-admin.php:
|
266 |
msgid "Thumbnail successfully generated for"
|
267 |
msgstr ""
|
268 |
|
269 |
-
#: link-library-admin.php:
|
270 |
msgid "Favicon successfully generated for"
|
271 |
msgstr ""
|
272 |
|
273 |
-
#: link-library-admin.php:
|
274 |
msgid "General Settings Saved"
|
275 |
msgstr ""
|
276 |
|
277 |
-
#: link-library-admin.php:
|
278 |
-
msgid "Download exported links"
|
279 |
-
msgstr ""
|
280 |
-
|
281 |
-
#: link-library-admin.php:804 link-library-admin.php:873
|
282 |
msgid ""
|
283 |
"Link Library plugin directory needs to be writable to perform this action"
|
284 |
msgstr ""
|
285 |
|
286 |
-
#: link-library-admin.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
287 |
msgid "Library #"
|
288 |
msgstr ""
|
289 |
|
290 |
-
#: link-library-admin.php:
|
291 |
msgid "Updated"
|
292 |
msgstr ""
|
293 |
|
294 |
-
#: link-library-admin.php:
|
295 |
msgid "Included Category ID"
|
296 |
msgstr ""
|
297 |
|
298 |
-
#: link-library-admin.php:
|
299 |
msgid "is invalid. Please check the ID in the Link Category editor."
|
300 |
msgstr ""
|
301 |
|
302 |
-
#: link-library-admin.php:
|
303 |
msgid "Excluded Category ID"
|
304 |
msgstr ""
|
305 |
|
306 |
-
#: link-library-admin.php:
|
307 |
msgid "Invalid column count for link on row. Compare against template."
|
308 |
msgstr ""
|
309 |
|
310 |
-
#: link-library-admin.php:
|
311 |
-
msgid "Library Settings Exported"
|
312 |
-
msgstr ""
|
313 |
-
|
314 |
-
#: link-library-admin.php:869
|
315 |
-
msgid "Download here"
|
316 |
-
msgstr ""
|
317 |
-
|
318 |
-
#: link-library-admin.php:877
|
319 |
msgid "Library Settings imported successfully"
|
320 |
msgstr ""
|
321 |
|
322 |
-
#: link-library-admin.php:
|
323 |
msgid "Library Settings Upload Failed"
|
324 |
msgstr ""
|
325 |
|
326 |
-
#: link-library-admin.php:
|
327 |
-
msgid "link(s) imported"
|
328 |
-
msgstr ""
|
329 |
-
|
330 |
-
#: link-library-admin.php:885
|
331 |
-
msgid "link(s) updated"
|
332 |
-
msgstr ""
|
333 |
-
|
334 |
-
#: link-library-admin.php:889
|
335 |
msgid "Links are missing categories"
|
336 |
msgstr ""
|
337 |
|
338 |
-
#: link-library-admin.php:
|
339 |
msgid "Link(s) Approved"
|
340 |
msgstr ""
|
341 |
|
342 |
-
#: link-library-admin.php:
|
343 |
msgid "Link(s) Deleted"
|
344 |
msgstr ""
|
345 |
|
346 |
-
#: link-library-admin.php:
|
347 |
msgid "Stylesheet updated"
|
348 |
msgstr ""
|
349 |
|
350 |
-
#: link-library-admin.php:
|
351 |
msgid "Stylesheet reset to original state"
|
352 |
msgstr ""
|
353 |
|
354 |
-
#: link-library-admin.php:
|
355 |
msgid "Settings updated"
|
356 |
msgstr ""
|
357 |
|
358 |
-
#: link-library-admin.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
359 |
msgid "Reciprocal Check"
|
360 |
msgstr ""
|
361 |
|
362 |
-
#: link-library-admin.php:
|
363 |
msgid "General"
|
364 |
msgstr ""
|
365 |
|
366 |
-
#: link-library-admin.php:
|
|
|
|
|
|
|
|
|
367 |
msgid "Images"
|
368 |
msgstr ""
|
369 |
|
370 |
-
#: link-library-admin.php:
|
371 |
msgid "Bookmarklet"
|
372 |
msgstr ""
|
373 |
|
374 |
-
#: link-library-admin.php:
|
375 |
msgid "Moderation"
|
376 |
msgstr ""
|
377 |
|
378 |
-
#: link-library-admin.php:
|
379 |
msgid "Hide Donation"
|
380 |
msgstr ""
|
381 |
|
382 |
-
#: link-library-admin.php:
|
|
|
|
|
|
|
|
|
383 |
msgid "Usage"
|
384 |
msgstr ""
|
385 |
|
386 |
-
#: link-library-admin.php:
|
387 |
msgid "Common"
|
388 |
msgstr ""
|
389 |
|
390 |
-
#: link-library-admin.php:
|
391 |
msgid "Categories"
|
392 |
msgstr ""
|
393 |
|
394 |
-
#: link-library-admin.php:
|
395 |
msgid "Links"
|
396 |
msgstr ""
|
397 |
|
398 |
-
#: link-library-admin.php:
|
399 |
msgid "Advanced"
|
400 |
msgstr ""
|
401 |
|
402 |
-
#: link-library-admin.php:
|
403 |
msgid "Pop-Ups"
|
404 |
msgstr ""
|
405 |
|
406 |
-
#: link-library-admin.php:
|
407 |
msgid "RSS Display"
|
408 |
msgstr ""
|
409 |
|
410 |
-
#: link-library-admin.php:
|
411 |
msgid "Thumbnails"
|
412 |
msgstr ""
|
413 |
|
414 |
-
#: link-library-admin.php:
|
415 |
msgid "RSS Feed"
|
416 |
msgstr ""
|
417 |
|
418 |
-
#: link-library-admin.php:
|
419 |
-
#: link-library-admin.php:
|
420 |
msgid "Search"
|
421 |
msgstr ""
|
422 |
|
423 |
-
#: link-library-admin.php:
|
424 |
msgid "User Submission"
|
425 |
msgstr ""
|
426 |
|
427 |
-
#: link-library-admin.php:
|
428 |
-
msgid "Import/Export"
|
429 |
msgstr ""
|
430 |
|
431 |
-
#: link-library-admin.php:
|
432 |
-
#: link-library-admin.php:
|
433 |
-
#: link-library-admin.php:
|
434 |
msgid "Not allowed"
|
435 |
msgstr ""
|
436 |
|
437 |
-
#: link-library-admin.php:
|
438 |
-
#: usersubmission.php:
|
439 |
msgid "Message generated by"
|
440 |
msgstr ""
|
441 |
|
442 |
-
#: link-library-admin.php:
|
443 |
msgid "Update channel"
|
444 |
msgstr ""
|
445 |
|
446 |
-
#: link-library-admin.php:
|
447 |
msgid "Standard channel - Updates as they are released"
|
448 |
msgstr ""
|
449 |
|
450 |
-
#: link-library-admin.php:
|
451 |
msgid "Monthly Channel - Updates once per month"
|
452 |
msgstr ""
|
453 |
|
454 |
-
#: link-library-admin.php:
|
455 |
msgid ""
|
456 |
"The stylesheet is now defined and stored using the Link Library admin "
|
457 |
"interface. This avoids problems with updates from one version to the next."
|
458 |
msgstr ""
|
459 |
|
460 |
-
#: link-library-admin.php:
|
461 |
msgid "Number of Libraries"
|
462 |
msgstr ""
|
463 |
|
464 |
-
#: link-library-admin.php:
|
465 |
msgid "Category selection method"
|
466 |
msgstr ""
|
467 |
|
468 |
-
#: link-library-admin.php:
|
469 |
msgid "Comma-separated ID list"
|
470 |
msgstr ""
|
471 |
|
472 |
-
#: link-library-admin.php:
|
473 |
msgid "Multi-select List"
|
474 |
msgstr ""
|
475 |
|
476 |
-
#: link-library-admin.php:
|
477 |
msgid ""
|
478 |
"Enter comma-separate list of pages on which the Link Library stylesheet and "
|
479 |
"scripts should be loaded. Primarily used if you display Link Library using "
|
480 |
"the API"
|
481 |
msgstr ""
|
482 |
|
483 |
-
#: link-library-admin.php:
|
484 |
msgid "Additional pages to load styles and scripts"
|
485 |
msgstr ""
|
486 |
|
487 |
-
#: link-library-admin.php:
|
488 |
msgid "Debug Mode"
|
489 |
msgstr ""
|
490 |
|
491 |
-
#: link-library-admin.php:
|
492 |
-
#: link-library-admin.php:
|
493 |
msgid ""
|
494 |
"This function is only possible when showing one category at a time and while "
|
495 |
"the default category is not shown."
|
496 |
msgstr ""
|
497 |
|
498 |
-
#: link-library-admin.php:
|
499 |
msgid "Page Title Prefix"
|
500 |
msgstr ""
|
501 |
|
502 |
-
#: link-library-admin.php:
|
503 |
msgid "Page Title Suffix"
|
504 |
msgstr ""
|
505 |
|
506 |
-
#: link-library-admin.php:
|
507 |
msgid ""
|
508 |
"Path for images files that are uploaded manually or generated through "
|
509 |
"thumbnail generation service"
|
510 |
msgstr ""
|
511 |
|
512 |
-
#: link-library-admin.php:
|
513 |
msgid "Link Image File Path"
|
514 |
msgstr ""
|
515 |
|
516 |
-
#: link-library-admin.php:
|
517 |
msgid "Absolute"
|
518 |
msgstr ""
|
519 |
|
520 |
-
#: link-library-admin.php:
|
521 |
msgid "Relative"
|
522 |
msgstr ""
|
523 |
|
524 |
-
#: link-library-admin.php:
|
525 |
msgid "Thumbnail Generator"
|
526 |
msgstr ""
|
527 |
|
528 |
-
#: link-library-admin.php:
|
529 |
msgid "API Key for Thumbshots.com thumbnail generation accounts"
|
530 |
msgstr ""
|
531 |
|
532 |
-
#: link-library-admin.php:
|
533 |
msgid "Thumbshots API Key"
|
534 |
msgstr ""
|
535 |
|
536 |
-
#: link-library-admin.php:
|
537 |
msgid "Robothumb Thumbnail size"
|
538 |
msgstr ""
|
539 |
|
540 |
-
#: link-library-admin.php:
|
541 |
msgid "Links Date Format"
|
542 |
msgstr ""
|
543 |
|
544 |
-
#: link-library-admin.php:
|
545 |
msgid "Help"
|
546 |
msgstr ""
|
547 |
|
548 |
-
#: link-library-admin.php:
|
549 |
msgid "Enter list of additional link protocols, seperated by commas"
|
550 |
msgstr ""
|
551 |
|
552 |
-
#: link-library-admin.php:
|
553 |
msgid "Additional protocols"
|
554 |
msgstr ""
|
555 |
|
556 |
-
#: link-library-admin.php:
|
557 |
msgid "Time before clearing RSS display cache (in seconds)"
|
558 |
msgstr ""
|
559 |
|
560 |
-
#: link-library-admin.php:
|
561 |
-
msgid "Export All Links"
|
562 |
-
msgstr ""
|
563 |
-
|
564 |
-
#: link-library-admin.php:2191 link-library-admin.php:2192
|
565 |
msgid "Custom full URL for expand icon. Uses default image if left empty."
|
566 |
msgstr ""
|
567 |
|
568 |
-
#: link-library-admin.php:
|
569 |
msgid "Expand Icon Image"
|
570 |
msgstr ""
|
571 |
|
572 |
-
#: link-library-admin.php:
|
573 |
msgid "Custom full URL for collapse icon. Uses default image if left empty."
|
574 |
msgstr ""
|
575 |
|
576 |
-
#: link-library-admin.php:
|
577 |
msgid "Collapse Icon Image"
|
578 |
msgstr ""
|
579 |
|
580 |
-
#: link-library-admin.php:
|
581 |
msgid "Add new links to your site with this bookmarklet."
|
582 |
msgstr ""
|
583 |
|
584 |
-
#: link-library-admin.php:
|
585 |
msgid ""
|
586 |
"To use this feature, drag-and-drop the button below to your favorite / "
|
587 |
"bookmark toolbar."
|
588 |
msgstr ""
|
589 |
|
590 |
-
#: link-library-admin.php:
|
591 |
msgid "Add to Links"
|
592 |
msgstr ""
|
593 |
|
594 |
-
#: link-library-admin.php:
|
595 |
msgid ""
|
596 |
"Approval and rejection e-mail functionality will only work correctly if the "
|
597 |
"submitter e-mail field is displayed on the user link submission form"
|
598 |
msgstr ""
|
599 |
|
600 |
-
#: link-library-admin.php:
|
601 |
-
msgid "Validate all submitted links with Akismet"
|
602 |
-
msgstr ""
|
603 |
-
|
604 |
-
#: link-library-admin.php:2238 link-library-admin.php:2239
|
605 |
msgid ""
|
606 |
"URL that user will be redirected to after submitting new link. When used, "
|
607 |
"the short code [link-library-addlinkcustommsg] should be placed on the "
|
608 |
"destination page."
|
609 |
msgstr ""
|
610 |
|
611 |
-
#: link-library-admin.php:
|
612 |
msgid "Link Acknowledgement URL"
|
613 |
msgstr ""
|
614 |
|
615 |
-
#: link-library-admin.php:
|
616 |
msgid ""
|
617 |
"Title of e-mail sent to site admin when new links are submitted. Use "
|
618 |
"%linkname% as a variable to be replaced by the actual link name"
|
619 |
msgstr ""
|
620 |
|
621 |
-
#: link-library-admin.php:
|
622 |
msgid "Moderation Notification Title"
|
623 |
msgstr ""
|
624 |
|
625 |
-
#: link-library-admin.php:
|
626 |
msgid ""
|
627 |
"Will send a confirmation e-mail to link submitter if they provided their "
|
628 |
"contact information"
|
629 |
msgstr ""
|
630 |
|
631 |
-
#: link-library-admin.php:
|
632 |
msgid "E-mail submitter on link approval or rejection"
|
633 |
msgstr ""
|
634 |
|
635 |
-
#: link-library-admin.php:
|
636 |
msgid "Suppress Link Library message in e-mail footer"
|
637 |
msgstr ""
|
638 |
|
639 |
-
#: link-library-admin.php:
|
640 |
msgid "Only use first part of submitter name"
|
641 |
msgstr ""
|
642 |
|
643 |
-
#: link-library-admin.php:
|
644 |
msgid ""
|
645 |
"The name of the e-mail account that the approval e-mail will be sent from"
|
646 |
msgstr ""
|
647 |
|
648 |
-
#: link-library-admin.php:
|
649 |
msgid "Moderator Name"
|
650 |
msgstr ""
|
651 |
|
652 |
-
#: link-library-admin.php:
|
653 |
msgid "The e-mail address that the approval e-mail will be sent from"
|
654 |
msgstr ""
|
655 |
|
656 |
-
#: link-library-admin.php:
|
657 |
msgid "Moderator E-mail"
|
658 |
msgstr ""
|
659 |
|
660 |
-
#: link-library-admin.php:
|
661 |
msgid ""
|
662 |
"Title of approval e-mail. Use %linkname% as a variable to be replaced by the "
|
663 |
"actual link name"
|
664 |
msgstr ""
|
665 |
|
666 |
-
#: link-library-admin.php:
|
667 |
msgid "Approval e-mail title"
|
668 |
msgstr ""
|
669 |
|
670 |
-
#: link-library-admin.php:
|
671 |
msgid ""
|
672 |
"Body of approval e-mail. Use %linkname% as a variable to be replaced by the "
|
673 |
"actual link name, %submittername% for the submitter name and %linkurl% for "
|
674 |
"the link address"
|
675 |
msgstr ""
|
676 |
|
677 |
-
#: link-library-admin.php:
|
678 |
msgid "Approval e-mail body"
|
679 |
msgstr ""
|
680 |
|
681 |
-
#: link-library-admin.php:
|
682 |
msgid ""
|
683 |
"Title of rejection e-mail. Use %linkname% as a variable to be replaced by "
|
684 |
"the actual link name"
|
685 |
msgstr ""
|
686 |
|
687 |
-
#: link-library-admin.php:
|
688 |
msgid "Rejection e-mail title"
|
689 |
msgstr ""
|
690 |
|
691 |
-
#: link-library-admin.php:
|
692 |
msgid ""
|
693 |
"Body of rejection e-mail. Use %linkname% as a variable to be replaced by the "
|
694 |
"actual link name, %submittername% for the submitter name and %linkurl% for "
|
695 |
"the link address"
|
696 |
msgstr ""
|
697 |
|
698 |
-
#: link-library-admin.php:
|
699 |
msgid "Rejection e-mail body"
|
700 |
msgstr ""
|
701 |
|
702 |
-
#: link-library-admin.php:
|
703 |
msgid ""
|
704 |
"The following option allows you to hide the Donate button and Support the "
|
705 |
"Author section in the Link Library Admin pages. If you enjoy this plugin and "
|
@@ -708,224 +682,288 @@ msgid ""
|
|
708 |
"other elements."
|
709 |
msgstr ""
|
710 |
|
711 |
-
#: link-library-admin.php:
|
712 |
msgid "Hide Donation and Support Links"
|
713 |
msgstr ""
|
714 |
|
715 |
-
#: link-library-admin.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
716 |
msgid "Save Settings"
|
717 |
msgstr ""
|
718 |
|
719 |
-
#: link-library-admin.php:
|
720 |
msgid "Update Settings"
|
721 |
msgstr ""
|
722 |
|
723 |
-
#: link-library-admin.php:
|
724 |
-
#: link-library-admin.php:
|
725 |
-
#: usersubmission.php:295 usersubmission.php:
|
726 |
msgid "Link Name"
|
727 |
msgstr ""
|
728 |
|
729 |
-
#: link-library-admin.php:
|
730 |
-
#: link-library-defaults.php:
|
|
|
731 |
msgid "Link Category"
|
732 |
msgstr ""
|
733 |
|
734 |
-
#: link-library-admin.php:
|
735 |
msgid "Link URL"
|
736 |
msgstr ""
|
737 |
|
738 |
-
#: link-library-admin.php:
|
739 |
-
#: link-library-admin.php:
|
740 |
-
#: link-library-defaults.php:
|
|
|
741 |
msgid "Link Description"
|
742 |
msgstr ""
|
743 |
|
744 |
-
#: link-library-admin.php:
|
745 |
msgid "No Links Found to Moderate"
|
746 |
msgstr ""
|
747 |
|
748 |
-
#: link-library-admin.php:
|
749 |
msgid "Check All"
|
750 |
msgstr ""
|
751 |
|
752 |
-
#: link-library-admin.php:
|
753 |
msgid "Uncheck All"
|
754 |
msgstr ""
|
755 |
|
756 |
-
#: link-library-admin.php:
|
757 |
msgid "Approve Selected Items"
|
758 |
msgstr ""
|
759 |
|
760 |
-
#: link-library-admin.php:
|
761 |
msgid "Delete Selected Items"
|
762 |
msgstr ""
|
763 |
|
764 |
-
#: link-library-admin.php:
|
765 |
msgid ""
|
766 |
"If the stylesheet editor is empty after upgrading, reset to the default "
|
767 |
"stylesheet using the button below or copy/paste your backup stylesheet into "
|
768 |
"the editor."
|
769 |
msgstr ""
|
770 |
|
771 |
-
#: link-library-admin.php:
|
772 |
msgid "Submit"
|
773 |
msgstr ""
|
774 |
|
775 |
-
#: link-library-admin.php:
|
776 |
msgid "Reset to default"
|
777 |
msgstr ""
|
778 |
|
779 |
-
#: link-library-admin.php:
|
780 |
msgid "Select Current Library Settings"
|
781 |
msgstr ""
|
782 |
|
783 |
-
#: link-library-admin.php:
|
784 |
msgid "Go"
|
785 |
msgstr ""
|
786 |
|
787 |
-
#: link-library-admin.php:
|
788 |
msgid "Copy from:"
|
789 |
msgstr ""
|
790 |
|
791 |
-
#: link-library-admin.php:
|
792 |
msgid "Copy"
|
793 |
msgstr ""
|
794 |
|
795 |
-
#: link-library-admin.php:
|
796 |
-
#: link-library-admin.php:
|
797 |
msgid ""
|
798 |
"Link Library Supports the Creation of an unlimited number of configurations "
|
799 |
"to display link lists on your site"
|
800 |
msgstr ""
|
801 |
|
802 |
-
#: link-library-admin.php:
|
803 |
msgid "Library Name"
|
804 |
msgstr ""
|
805 |
|
806 |
-
#: link-library-admin.php:
|
807 |
msgid "Feature"
|
808 |
msgstr ""
|
809 |
|
810 |
-
#: link-library-admin.php:
|
811 |
msgid "Code to insert on a Wordpress page"
|
812 |
msgstr ""
|
813 |
|
814 |
-
#: link-library-admin.php:
|
815 |
msgid "Display basic link library"
|
816 |
msgstr ""
|
817 |
|
818 |
-
#: link-library-admin.php:
|
819 |
msgid "Display list of link categories"
|
820 |
msgstr ""
|
821 |
|
822 |
-
#: link-library-admin.php:
|
823 |
msgid "Display search box"
|
824 |
msgstr ""
|
825 |
|
826 |
-
#: link-library-admin.php:
|
827 |
msgid "Display link submission form"
|
828 |
msgstr ""
|
829 |
|
830 |
-
#: link-library-admin.php:
|
831 |
#, php-format
|
832 |
msgid ""
|
833 |
"You are about to Delete Library #'%s'\n"
|
834 |
" 'Cancel' to stop, 'OK' to delete."
|
835 |
msgstr ""
|
836 |
|
837 |
-
#: link-library-admin.php:
|
838 |
msgid "Delete Library"
|
839 |
msgstr ""
|
840 |
|
841 |
-
#: link-library-admin.php:
|
842 |
#, php-format
|
843 |
msgid ""
|
844 |
"You are about to reset Library '%s'\n"
|
845 |
" 'Cancel' to stop, 'OK' to reset."
|
846 |
msgstr ""
|
847 |
|
848 |
-
#: link-library-admin.php:
|
849 |
msgid "Reset current Library"
|
850 |
msgstr ""
|
851 |
|
852 |
-
#: link-library-admin.php:
|
853 |
#, php-format
|
854 |
msgid ""
|
855 |
"You are about to reset Library '%s' for a table layout\n"
|
856 |
" 'Cancel' to stop, 'OK' to reset."
|
857 |
msgstr ""
|
858 |
|
859 |
-
#: link-library-admin.php:
|
860 |
msgid "Reset current Library for table layout"
|
861 |
msgstr ""
|
862 |
|
863 |
-
#: link-library-admin.php:
|
|
|
|
|
|
|
|
|
864 |
msgid "Current Library Name"
|
865 |
msgstr ""
|
866 |
|
867 |
-
#: link-library-admin.php:
|
868 |
msgid "Leave Empty to see all categories"
|
869 |
msgstr ""
|
870 |
|
871 |
-
#: link-library-admin.php:
|
872 |
-
#: link-library-admin.php:
|
873 |
msgid "Enter list of comma-separated"
|
874 |
msgstr ""
|
875 |
|
876 |
-
#: link-library-admin.php:
|
877 |
msgid "numeric category IDs"
|
878 |
msgstr ""
|
879 |
|
880 |
-
#: link-library-admin.php:
|
881 |
msgid ""
|
882 |
"To find the IDs, go to the Link Categories admin page, place the mouse above "
|
883 |
"a category name and look for its ID in the address shown in your browsers "
|
884 |
"status bar. For example"
|
885 |
msgstr ""
|
886 |
|
887 |
-
#: link-library-admin.php:
|
888 |
msgid "Categories to be displayed (Empty=All)"
|
889 |
msgstr ""
|
890 |
|
891 |
-
#: link-library-admin.php:
|
892 |
msgid "Categories to be displayed"
|
893 |
msgstr ""
|
894 |
|
895 |
-
#: link-library-admin.php:
|
896 |
-
#: link-library-admin.php:
|
897 |
msgid "For example"
|
898 |
msgstr ""
|
899 |
|
900 |
-
#: link-library-admin.php:
|
901 |
-
msgid "No link categories! Create some!"
|
902 |
-
msgstr ""
|
903 |
-
|
904 |
-
#: link-library-admin.php:2608
|
905 |
msgid "Show all categories"
|
906 |
msgstr ""
|
907 |
|
908 |
-
#: link-library-admin.php:
|
909 |
msgid "numeric category IDs that should not be shown"
|
910 |
msgstr ""
|
911 |
|
912 |
-
#: link-library-admin.php:
|
913 |
msgid "Categories to be excluded"
|
914 |
msgstr ""
|
915 |
|
916 |
-
#: link-library-admin.php:
|
917 |
msgid "No Exclusions"
|
918 |
msgstr ""
|
919 |
|
920 |
-
#: link-library-admin.php:
|
921 |
msgid "Only show one category of links at a time"
|
922 |
msgstr ""
|
923 |
|
924 |
-
#: link-library-admin.php:
|
925 |
msgid "Only show one category at a time"
|
926 |
msgstr ""
|
927 |
|
928 |
-
#: link-library-admin.php:
|
929 |
msgid ""
|
930 |
"Select if AJAX should be used to only reload the list of links without "
|
931 |
"reloading the whole page or HTML GET to reload entire page with a new link. "
|
@@ -933,1856 +971,1971 @@ msgid ""
|
|
933 |
"correctly."
|
934 |
msgstr ""
|
935 |
|
936 |
-
#: link-library-admin.php:
|
937 |
msgid "Switching Method"
|
938 |
msgstr ""
|
939 |
|
940 |
-
#: link-library-admin.php:
|
941 |
msgid ""
|
942 |
"Default category to be shown when only showing one at a time (numeric ID)"
|
943 |
msgstr ""
|
944 |
|
945 |
-
#: link-library-admin.php:
|
946 |
-
msgid "Hide category on start in single cat
|
947 |
msgstr ""
|
948 |
|
949 |
-
#: link-library-admin.php:
|
950 |
msgid "File path is relative to Link Library plugin directory"
|
951 |
msgstr ""
|
952 |
|
953 |
-
#: link-library-admin.php:
|
954 |
msgid "Icon to display when performing AJAX queries"
|
955 |
msgstr ""
|
956 |
|
957 |
-
#: link-library-admin.php:
|
958 |
msgid "Only show a limited number of links and add page navigation links"
|
959 |
msgstr ""
|
960 |
|
961 |
-
#: link-library-admin.php:
|
962 |
msgid "Paginate Results"
|
963 |
msgstr ""
|
964 |
|
965 |
-
#: link-library-admin.php:
|
966 |
msgid "Number of Links to be Displayed per Page in Pagination Mode"
|
967 |
msgstr ""
|
968 |
|
969 |
-
#: link-library-admin.php:
|
970 |
msgid "Links per Page"
|
971 |
msgstr ""
|
972 |
|
973 |
-
#: link-library-admin.php:
|
974 |
msgid "Pagination Position"
|
975 |
msgstr ""
|
976 |
|
977 |
-
#: link-library-admin.php:
|
978 |
msgid "After Links"
|
979 |
msgstr ""
|
980 |
|
981 |
-
#: link-library-admin.php:
|
982 |
msgid "Before Links"
|
983 |
msgstr ""
|
984 |
|
985 |
-
#: link-library-admin.php:
|
986 |
msgid "Hide Results if Empty"
|
987 |
msgstr ""
|
988 |
|
989 |
-
#: link-library-admin.php:
|
990 |
msgid "Enable Permalinks"
|
991 |
msgstr ""
|
992 |
|
993 |
-
#: link-library-admin.php:
|
994 |
msgid "Permalinks Page"
|
995 |
msgstr ""
|
996 |
|
997 |
-
#: link-library-admin.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
998 |
msgid "Display alphabetic cat filter"
|
999 |
msgstr ""
|
1000 |
|
1001 |
-
#: link-library-admin.php:
|
1002 |
msgid "Do not display"
|
1003 |
msgstr ""
|
1004 |
|
1005 |
-
#: link-library-admin.php:
|
1006 |
msgid "Before Categories"
|
1007 |
msgstr ""
|
1008 |
|
1009 |
-
#: link-library-admin.php:
|
1010 |
msgid "Before Categories and Links"
|
1011 |
msgstr ""
|
1012 |
|
1013 |
-
#: link-library-admin.php:
|
1014 |
msgid "Auto-select first alphabetic cat item"
|
1015 |
msgstr ""
|
1016 |
|
1017 |
-
#: link-library-admin.php:
|
1018 |
msgid "Display ALL box in alphabetic cat filter"
|
1019 |
msgstr ""
|
1020 |
|
1021 |
-
#: link-library-admin.php:
|
1022 |
msgid "Cat filter label"
|
1023 |
msgstr ""
|
1024 |
|
1025 |
-
#: link-library-admin.php:
|
1026 |
msgid "Only display links submitted by current user"
|
1027 |
msgstr ""
|
1028 |
|
1029 |
-
#: link-library-admin.php:
|
1030 |
msgid "Results Order"
|
1031 |
msgstr ""
|
1032 |
|
1033 |
-
#: link-library-admin.php:
|
1034 |
msgid "Order by Name"
|
1035 |
msgstr ""
|
1036 |
|
1037 |
-
#: link-library-admin.php:
|
1038 |
msgid "Order by ID"
|
1039 |
msgstr ""
|
1040 |
|
1041 |
-
#: link-library-admin.php:
|
1042 |
msgid "Order of categories based on included category list"
|
1043 |
msgstr ""
|
1044 |
|
1045 |
-
#: link-library-admin.php:
|
1046 |
msgid "Order by"
|
1047 |
msgstr ""
|
1048 |
|
1049 |
-
#: link-library-admin.php:
|
1050 |
msgid "Wordpress Plugin"
|
1051 |
msgstr ""
|
1052 |
|
1053 |
-
#: link-library-admin.php:
|
1054 |
msgid "Link Categories Display Format"
|
1055 |
msgstr ""
|
1056 |
|
1057 |
-
#: link-library-admin.php:
|
1058 |
msgid "Table"
|
1059 |
msgstr ""
|
1060 |
|
1061 |
-
#: link-library-admin.php:
|
1062 |
msgid "Unordered List"
|
1063 |
msgstr ""
|
1064 |
|
1065 |
-
#: link-library-admin.php:
|
1066 |
msgid "Drop-Down List"
|
1067 |
msgstr ""
|
1068 |
|
1069 |
-
#: link-library-admin.php:
|
1070 |
msgid "Drop-Down List Direct Access"
|
1071 |
msgstr ""
|
1072 |
|
1073 |
-
#: link-library-admin.php:
|
1074 |
msgid "Display link counts"
|
1075 |
msgstr ""
|
1076 |
|
1077 |
-
#: link-library-admin.php:
|
1078 |
msgid "Display categories with search results"
|
1079 |
msgstr ""
|
1080 |
|
1081 |
-
#: link-library-admin.php:
|
1082 |
msgid "This setting does not apply when selecting My Link Order for the order"
|
1083 |
msgstr ""
|
1084 |
|
1085 |
-
#: link-library-admin.php:
|
1086 |
msgid "Direction"
|
1087 |
msgstr ""
|
1088 |
|
1089 |
-
#: link-library-admin.php:
|
1090 |
msgid "Ascending"
|
1091 |
msgstr ""
|
1092 |
|
1093 |
-
#: link-library-admin.php:
|
1094 |
msgid "Descending"
|
1095 |
msgstr ""
|
1096 |
|
1097 |
-
#: link-library-admin.php:
|
1098 |
-
#: link-library-admin.php:
|
1099 |
msgid ""
|
1100 |
"Use [ and ] in the description to perform special actions using HTML such as "
|
1101 |
"inserting images instead of < and >"
|
1102 |
msgstr ""
|
1103 |
|
1104 |
-
#: link-library-admin.php:
|
1105 |
msgid "Show Category Description"
|
1106 |
msgstr ""
|
1107 |
|
1108 |
-
#: link-library-admin.php:
|
1109 |
msgid "Position"
|
1110 |
msgstr ""
|
1111 |
|
1112 |
-
#: link-library-admin.php:
|
1113 |
msgid "Right"
|
1114 |
msgstr ""
|
1115 |
|
1116 |
-
#: link-library-admin.php:
|
1117 |
msgid "Left"
|
1118 |
msgstr ""
|
1119 |
|
1120 |
-
#: link-library-admin.php:
|
1121 |
msgid "Width of Categories Table in Percents"
|
1122 |
msgstr ""
|
1123 |
|
1124 |
-
#: link-library-admin.php:
|
1125 |
msgid ""
|
1126 |
"Determines the number of alternating div tags that will be placed before and "
|
1127 |
"after each link category"
|
1128 |
msgstr ""
|
1129 |
|
1130 |
-
#: link-library-admin.php:
|
1131 |
msgid ""
|
1132 |
"These div tags can be used to style of position link categories on the link "
|
1133 |
"page"
|
1134 |
msgstr ""
|
1135 |
|
1136 |
-
#: link-library-admin.php:
|
1137 |
msgid "Number of alternating div classes"
|
1138 |
msgstr ""
|
1139 |
|
1140 |
-
#: link-library-admin.php:
|
1141 |
msgid "Number of columns in Categories Table"
|
1142 |
msgstr ""
|
1143 |
|
1144 |
-
#: link-library-admin.php:
|
1145 |
msgid "First div class name"
|
1146 |
msgstr ""
|
1147 |
|
1148 |
-
#: link-library-admin.php:
|
1149 |
msgid "Use Div Class or Heading tag around Category Names"
|
1150 |
msgstr ""
|
1151 |
|
1152 |
-
#: link-library-admin.php:
|
1153 |
msgid "Div Class"
|
1154 |
msgstr ""
|
1155 |
|
1156 |
-
#: link-library-admin.php:
|
1157 |
msgid "Heading Tag"
|
1158 |
msgstr ""
|
1159 |
|
1160 |
-
#: link-library-admin.php:
|
1161 |
msgid "Second div class name"
|
1162 |
msgstr ""
|
1163 |
|
1164 |
-
#: link-library-admin.php:
|
1165 |
msgid "Example div class name: linklistcatname, Example Heading Label: h3"
|
1166 |
msgstr ""
|
1167 |
|
1168 |
-
#: link-library-admin.php:
|
1169 |
msgid "Div Class Name or Heading label"
|
1170 |
msgstr ""
|
1171 |
|
1172 |
-
#: link-library-admin.php:
|
1173 |
msgid "Third div class name"
|
1174 |
msgstr ""
|
1175 |
|
1176 |
-
#: link-library-admin.php:
|
1177 |
msgid ""
|
1178 |
"Set this address to a page running Link Library to place categories on a "
|
1179 |
"different page. Should always be used with the Show One Category at a Time "
|
1180 |
"and HTMLGET fetch method."
|
1181 |
msgstr ""
|
1182 |
|
1183 |
-
#: link-library-admin.php:
|
1184 |
msgid "Category Target Address"
|
1185 |
msgstr ""
|
1186 |
|
1187 |
-
#: link-library-admin.php:
|
1188 |
msgid "Link Results Order"
|
1189 |
msgstr ""
|
1190 |
|
1191 |
-
#: link-library-admin.php:
|
1192 |
msgid "Order set by "
|
1193 |
msgstr ""
|
1194 |
|
1195 |
-
#: link-library-admin.php:
|
1196 |
msgid "Order randomly"
|
1197 |
msgstr ""
|
1198 |
|
1199 |
-
#: link-library-admin.php:
|
1200 |
msgid "Order by updated date"
|
1201 |
msgstr ""
|
1202 |
|
1203 |
-
#: link-library-admin.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1204 |
msgid "List Featured Links ahead of Regular Links"
|
1205 |
msgstr ""
|
1206 |
|
1207 |
-
#: link-library-admin.php:
|
1208 |
msgid "Show Expand Link button and hide links"
|
1209 |
msgstr ""
|
1210 |
|
1211 |
-
#: link-library-admin.php:
|
1212 |
msgid "Combine all results without categories"
|
1213 |
msgstr ""
|
1214 |
|
1215 |
-
#: link-library-admin.php:
|
1216 |
msgid "Link Title Content"
|
1217 |
msgstr ""
|
1218 |
|
1219 |
-
#: link-library-admin.php:
|
1220 |
msgid "Except for My Link Order mode"
|
1221 |
msgstr ""
|
1222 |
|
1223 |
-
#: link-library-admin.php:
|
1224 |
msgid "Leave empty to show all results"
|
1225 |
msgstr ""
|
1226 |
|
1227 |
-
#: link-library-admin.php:
|
1228 |
msgid "Max number of links to display"
|
1229 |
msgstr ""
|
1230 |
|
1231 |
-
#: link-library-admin.php:
|
1232 |
msgid ""
|
1233 |
"Sets default link target window, does not override specific targets set in "
|
1234 |
"links"
|
1235 |
msgstr ""
|
1236 |
|
1237 |
-
#: link-library-admin.php:
|
1238 |
msgid "Link Target"
|
1239 |
msgstr ""
|
1240 |
|
1241 |
-
#: link-library-admin.php:
|
1242 |
msgid "Link Display Format"
|
1243 |
msgstr ""
|
1244 |
|
1245 |
-
#: link-library-admin.php:
|
1246 |
msgid "Show Column Headers"
|
1247 |
msgstr ""
|
1248 |
|
1249 |
-
#: link-library-admin.php:
|
1250 |
-
msgid "
|
1251 |
msgstr ""
|
1252 |
|
1253 |
-
#: link-library-admin.php:
|
1254 |
-
msgid "
|
1255 |
msgstr ""
|
1256 |
|
1257 |
-
#: link-library-admin.php:
|
1258 |
-
msgid "
|
1259 |
msgstr ""
|
1260 |
|
1261 |
-
#: link-library-admin.php:
|
1262 |
msgid "Hide Category Names"
|
1263 |
msgstr ""
|
1264 |
|
1265 |
-
#: link-library-admin.php:
|
1266 |
msgid "Show Hidden Links"
|
1267 |
msgstr ""
|
1268 |
|
1269 |
-
#: link-library-admin.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1270 |
msgid "Need to be active for Link Categories to work"
|
1271 |
msgstr ""
|
1272 |
|
1273 |
-
#: link-library-admin.php:
|
1274 |
msgid "Embed HTML anchors"
|
1275 |
msgstr ""
|
1276 |
|
1277 |
-
#: link-library-admin.php:
|
1278 |
msgid "Show Hidden Links to Admins/Editors"
|
1279 |
msgstr ""
|
1280 |
|
1281 |
-
#: link-library-admin.php:
|
1282 |
msgid ""
|
1283 |
"Arrange the items below via drag-and-drop to order the various Link Library "
|
1284 |
"elements."
|
1285 |
msgstr ""
|
1286 |
|
1287 |
-
#: link-library-admin.php:
|
1288 |
-
msgid "Image"
|
1289 |
-
msgstr ""
|
1290 |
-
|
1291 |
-
#: link-library-admin.php:3175
|
1292 |
msgid "Name"
|
1293 |
msgstr ""
|
1294 |
|
1295 |
-
#: link-library-admin.php:
|
1296 |
msgid "Date"
|
1297 |
msgstr ""
|
1298 |
|
1299 |
-
#: link-library-admin.php:
|
1300 |
msgid "Desc"
|
1301 |
msgstr ""
|
1302 |
|
1303 |
-
#: link-library-admin.php:
|
|
|
1304 |
msgid "Notes"
|
1305 |
msgstr ""
|
1306 |
|
1307 |
-
#: link-library-admin.php:
|
1308 |
msgid "RSS"
|
1309 |
msgstr ""
|
1310 |
|
1311 |
-
#: link-library-admin.php:
|
1312 |
-
|
|
|
1313 |
msgstr ""
|
1314 |
|
1315 |
-
#: link-library-admin.php:
|
1316 |
msgid "Phone"
|
1317 |
msgstr ""
|
1318 |
|
1319 |
-
#: link-library-admin.php:
|
1320 |
-
#: link-library-admin.php:
|
1321 |
-
#: link-library-defaults.php:
|
|
|
1322 |
msgid "E-mail"
|
1323 |
msgstr ""
|
1324 |
|
1325 |
-
#: link-library-admin.php:
|
1326 |
msgid "Hits"
|
1327 |
msgstr ""
|
1328 |
|
1329 |
-
#: link-library-admin.php:
|
|
|
1330 |
msgid "Rating"
|
1331 |
msgstr ""
|
1332 |
|
1333 |
-
#: link-library-admin.php:
|
1334 |
msgid "Large Desc"
|
1335 |
msgstr ""
|
1336 |
|
1337 |
-
#: link-library-admin.php:
|
1338 |
-
#: link-library-admin.php:
|
1339 |
-
#: render-link-library-addlink-sc.php:
|
|
|
1340 |
msgid "Submitter Name"
|
1341 |
msgstr ""
|
1342 |
|
1343 |
-
#: link-library-admin.php:
|
1344 |
msgid "Cat Desc"
|
1345 |
msgstr ""
|
1346 |
|
1347 |
-
#: link-library-admin.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1348 |
msgid "Display"
|
1349 |
msgstr ""
|
1350 |
|
1351 |
-
#: link-library-admin.php:
|
1352 |
msgid "Before"
|
1353 |
msgstr ""
|
1354 |
|
1355 |
-
#: link-library-admin.php:
|
1356 |
msgid "After"
|
1357 |
msgstr ""
|
1358 |
|
1359 |
-
#: link-library-admin.php:
|
1360 |
msgid "Additional Details"
|
1361 |
msgstr ""
|
1362 |
|
1363 |
-
#: link-library-admin.php:
|
1364 |
msgid "Link Source"
|
1365 |
msgstr ""
|
1366 |
|
1367 |
-
#: link-library-admin.php:
|
1368 |
msgid ""
|
1369 |
"This column allows for the output of text/code before the first link in each "
|
1370 |
"category"
|
1371 |
msgstr ""
|
1372 |
|
1373 |
-
#: link-library-admin.php:
|
1374 |
msgid "Before first link"
|
1375 |
msgstr ""
|
1376 |
|
1377 |
-
#: link-library-admin.php:
|
1378 |
msgid "Output of text/code before the first link in each category"
|
1379 |
msgstr ""
|
1380 |
|
1381 |
-
#: link-library-admin.php:
|
1382 |
msgid ""
|
1383 |
"This column allows for the output of text/code before a number of links "
|
1384 |
"determined by the Display field"
|
1385 |
msgstr ""
|
1386 |
|
1387 |
-
#: link-library-admin.php:
|
1388 |
msgid "Intermittent Before Link"
|
1389 |
msgstr ""
|
1390 |
|
1391 |
-
#: link-library-admin.php:
|
1392 |
msgid "Frequency of additional output before and after complete link group"
|
1393 |
msgstr ""
|
1394 |
|
1395 |
-
#: link-library-admin.php:
|
1396 |
msgid "Output before complete link group (link, notes, desc, etc...)"
|
1397 |
msgstr ""
|
1398 |
|
1399 |
-
#: link-library-admin.php:
|
1400 |
msgid "This column allows for the output of text/code before each link"
|
1401 |
msgstr ""
|
1402 |
|
1403 |
-
#: link-library-admin.php:
|
1404 |
msgid "Before Link"
|
1405 |
msgstr ""
|
1406 |
|
1407 |
-
#: link-library-admin.php:
|
1408 |
msgid "This column allows for the output of text/code before each link image"
|
1409 |
msgstr ""
|
1410 |
|
1411 |
-
#: link-library-admin.php:
|
1412 |
msgid "Code/Text to be displayed before each link image"
|
1413 |
msgstr ""
|
1414 |
|
1415 |
-
#: link-library-admin.php:
|
1416 |
msgid "Code/Text to be displayed after each link image"
|
1417 |
msgstr ""
|
1418 |
|
1419 |
-
#: link-library-admin.php:
|
1420 |
msgid "CSS Class to be assigned to link image"
|
1421 |
msgstr ""
|
1422 |
|
1423 |
-
#: link-library-admin.php:
|
1424 |
-
#: link-library-admin.php:
|
1425 |
msgid "Primary"
|
1426 |
msgstr ""
|
1427 |
|
1428 |
-
#: link-library-admin.php:
|
1429 |
-
#: link-library-admin.php:
|
1430 |
msgid "Secondary"
|
1431 |
msgstr ""
|
1432 |
|
1433 |
-
#: link-library-admin.php:
|
1434 |
msgid ""
|
1435 |
"This column allows for the output of text/code before and after each link "
|
1436 |
"name"
|
1437 |
msgstr ""
|
1438 |
|
1439 |
-
#: link-library-admin.php:
|
1440 |
msgid "Code/Text to be displayed before each link"
|
1441 |
msgstr ""
|
1442 |
|
1443 |
-
#: link-library-admin.php:
|
1444 |
msgid "Code/Text to be displayed after each link"
|
1445 |
msgstr ""
|
1446 |
|
1447 |
-
#: link-library-admin.php:
|
1448 |
msgid "No Tooltip"
|
1449 |
msgstr ""
|
1450 |
|
1451 |
-
#: link-library-admin.php:
|
|
|
1452 |
msgid "Description"
|
1453 |
msgstr ""
|
1454 |
|
1455 |
-
#: link-library-admin.php:
|
|
|
|
|
|
|
|
|
1456 |
msgid ""
|
1457 |
"This column allows for the output of text/code before and after each link "
|
1458 |
"date stamp"
|
1459 |
msgstr ""
|
1460 |
|
1461 |
-
#: link-library-admin.php:
|
1462 |
msgid "Link Date"
|
1463 |
msgstr ""
|
1464 |
|
1465 |
-
#: link-library-admin.php:
|
1466 |
msgid "Check to display link date"
|
1467 |
msgstr ""
|
1468 |
|
1469 |
-
#: link-library-admin.php:
|
1470 |
msgid "Code/Text to be displayed before each date"
|
1471 |
msgstr ""
|
1472 |
|
1473 |
-
#: link-library-admin.php:
|
1474 |
msgid "Code/Text to be displayed after each date"
|
1475 |
msgstr ""
|
1476 |
|
1477 |
-
#: link-library-admin.php:
|
1478 |
msgid ""
|
1479 |
"This column allows for the output of text/code before and after each link "
|
1480 |
"description"
|
1481 |
msgstr ""
|
1482 |
|
1483 |
-
#: link-library-admin.php:
|
1484 |
msgid "Check to display link descriptions"
|
1485 |
msgstr ""
|
1486 |
|
1487 |
-
#: link-library-admin.php:
|
1488 |
msgid "Code/Text to be displayed before each description"
|
1489 |
msgstr ""
|
1490 |
|
1491 |
-
#: link-library-admin.php:
|
1492 |
msgid "Code/Text to be displayed after each description"
|
1493 |
msgstr ""
|
1494 |
|
1495 |
-
#: link-library-admin.php:
|
1496 |
msgid ""
|
1497 |
"This column allows for the output of text/code before and after each link "
|
1498 |
"notes"
|
1499 |
msgstr ""
|
1500 |
|
1501 |
-
#: link-library-admin.php:
|
1502 |
-
#: link-library-defaults.php:
|
|
|
1503 |
msgid "Link Notes"
|
1504 |
msgstr ""
|
1505 |
|
1506 |
-
#: link-library-admin.php:
|
1507 |
msgid "Check to display link notes"
|
1508 |
msgstr ""
|
1509 |
|
1510 |
-
#: link-library-admin.php:
|
1511 |
msgid "Code/Text to be displayed before each note"
|
1512 |
msgstr ""
|
1513 |
|
1514 |
-
#: link-library-admin.php:
|
1515 |
msgid "Code/Text to be displayed after each note"
|
1516 |
msgstr ""
|
1517 |
|
1518 |
-
#: link-library-admin.php:
|
1519 |
msgid ""
|
1520 |
"This column allows for the output of text/code before and after the RSS icons"
|
1521 |
msgstr ""
|
1522 |
|
1523 |
-
#: link-library-admin.php:
|
1524 |
msgid "RSS Icons"
|
1525 |
msgstr ""
|
1526 |
|
1527 |
-
#: link-library-admin.php:
|
1528 |
msgid "See below"
|
1529 |
msgstr ""
|
1530 |
|
1531 |
-
#: link-library-admin.php:
|
1532 |
msgid "Code/Text to be displayed before RSS Icons"
|
1533 |
msgstr ""
|
1534 |
|
1535 |
-
#: link-library-admin.php:
|
1536 |
msgid "Code/Text to be displayed after RSS Icons"
|
1537 |
msgstr ""
|
1538 |
|
1539 |
-
#: link-library-admin.php:
|
1540 |
msgid ""
|
1541 |
"This column allows for the output of text/code before and after the Web Link"
|
1542 |
msgstr ""
|
1543 |
|
1544 |
-
#: link-library-admin.php:
|
1545 |
-
|
1546 |
-
msgstr ""
|
1547 |
-
|
1548 |
-
#: link-library-admin.php:3429 link-library-admin.php:3464
|
1549 |
-
#: link-library-admin.php:3505
|
1550 |
msgid "False"
|
1551 |
msgstr ""
|
1552 |
|
1553 |
-
#: link-library-admin.php:
|
1554 |
msgid "Web Address"
|
1555 |
msgstr ""
|
1556 |
|
1557 |
-
#: link-library-admin.php:
|
1558 |
-
msgid "Web Address Only"
|
1559 |
-
msgstr ""
|
1560 |
-
|
1561 |
-
#: link-library-admin.php:3432 link-library-admin.php:3473
|
1562 |
msgid "Label"
|
1563 |
msgstr ""
|
1564 |
|
1565 |
-
#: link-library-admin.php:
|
1566 |
msgid "Code/Text to be displayed before Web Link"
|
1567 |
msgstr ""
|
1568 |
|
1569 |
-
#: link-library-admin.php:
|
1570 |
msgid "Code/Text to be displayed after Web Link"
|
1571 |
msgstr ""
|
1572 |
|
1573 |
-
#: link-library-admin.php:
|
1574 |
msgid "Text Label that the web link will be assigned to."
|
1575 |
msgstr ""
|
1576 |
|
1577 |
-
#: link-library-admin.php:
|
1578 |
msgid "Select which link address will be displayed / used for link"
|
1579 |
msgstr ""
|
1580 |
|
1581 |
-
#: link-library-admin.php:
|
1582 |
msgid ""
|
1583 |
"This column allows for the output of text/code before and after the "
|
1584 |
"Telephone Number"
|
1585 |
msgstr ""
|
1586 |
|
1587 |
-
#: link-library-admin.php:
|
1588 |
-
#: link-library-admin.php:
|
1589 |
-
#: render-link-library-addlink-sc.php:
|
1590 |
msgid "Telephone"
|
1591 |
msgstr ""
|
1592 |
|
1593 |
-
#: link-library-admin.php:
|
1594 |
msgid "Plain Text"
|
1595 |
msgstr ""
|
1596 |
|
1597 |
-
#: link-library-admin.php:
|
|
|
|
|
|
|
|
|
1598 |
msgid "Code/Text to be displayed before Telephone Number"
|
1599 |
msgstr ""
|
1600 |
|
1601 |
-
#: link-library-admin.php:
|
1602 |
msgid "Code/Text to be displayed after Telephone Number"
|
1603 |
msgstr ""
|
1604 |
|
1605 |
-
#: link-library-admin.php:
|
1606 |
msgid "Text Label that the telephone will be assigned to."
|
1607 |
msgstr ""
|
1608 |
|
1609 |
-
#: link-library-admin.php:
|
1610 |
msgid ""
|
1611 |
"This column allows for the output of text/code before and after the E-mail"
|
1612 |
msgstr ""
|
1613 |
|
1614 |
-
#: link-library-admin.php:
|
1615 |
msgid "MailTo Link"
|
1616 |
msgstr ""
|
1617 |
|
1618 |
-
#: link-library-admin.php:
|
1619 |
msgid "MailTo Link with Label"
|
1620 |
msgstr ""
|
1621 |
|
1622 |
-
#: link-library-admin.php:
|
1623 |
msgid "Formatted Command"
|
1624 |
msgstr ""
|
1625 |
|
1626 |
-
#: link-library-admin.php:
|
1627 |
msgid "Formatted Command with Labels"
|
1628 |
msgstr ""
|
1629 |
|
1630 |
-
#: link-library-admin.php:
|
1631 |
msgid "Code/Text to be displayed before E-mail"
|
1632 |
msgstr ""
|
1633 |
|
1634 |
-
#: link-library-admin.php:
|
1635 |
msgid "Code/Text to be displayed after E-mail"
|
1636 |
msgstr ""
|
1637 |
|
1638 |
-
#: link-library-admin.php:
|
1639 |
msgid ""
|
1640 |
"Text Label that the e-mail will be assigned to represent the e-mail link."
|
1641 |
msgstr ""
|
1642 |
|
1643 |
-
#: link-library-admin.php:
|
1644 |
msgid ""
|
1645 |
"Command that the e-mail will be embedded in. In the case of a command, use "
|
1646 |
"the symbols #email and #company to indicate the position where these "
|
1647 |
"elements should be inserted."
|
1648 |
msgstr ""
|
1649 |
|
1650 |
-
#: link-library-admin.php:
|
1651 |
msgid ""
|
1652 |
"This column allows for the output of text/code before and after Link Hits"
|
1653 |
msgstr ""
|
1654 |
|
1655 |
-
#: link-library-admin.php:
|
1656 |
msgid "Link Hits"
|
1657 |
msgstr ""
|
1658 |
|
1659 |
-
#: link-library-admin.php:
|
1660 |
msgid "Code/Text to be displayed before Link Hits"
|
1661 |
msgstr ""
|
1662 |
|
1663 |
-
#: link-library-admin.php:
|
1664 |
msgid "Code/Text to be displayed after Link Hits"
|
1665 |
msgstr ""
|
1666 |
|
1667 |
-
#: link-library-admin.php:
|
1668 |
msgid ""
|
1669 |
"This column allows for the output of text/code before and after the Link "
|
1670 |
"Rating"
|
1671 |
msgstr ""
|
1672 |
|
1673 |
-
#: link-library-admin.php:
|
1674 |
msgid "Link Rating"
|
1675 |
msgstr ""
|
1676 |
|
1677 |
-
#: link-library-admin.php:
|
1678 |
msgid "Code/Text to be displayed before Link Rating"
|
1679 |
msgstr ""
|
1680 |
|
1681 |
-
#: link-library-admin.php:
|
1682 |
msgid "Code/Text to be displayed after Link Rating"
|
1683 |
msgstr ""
|
1684 |
|
1685 |
-
#: link-library-admin.php:
|
1686 |
-
#: link-library-admin.php:
|
1687 |
msgid ""
|
1688 |
"This column allows for the output of text/code before and after the Link "
|
1689 |
"Large Description"
|
1690 |
msgstr ""
|
1691 |
|
1692 |
-
#: link-library-admin.php:
|
1693 |
-
#: usersubmission.php:
|
1694 |
msgid "Link Large Description"
|
1695 |
msgstr ""
|
1696 |
|
1697 |
-
#: link-library-admin.php:
|
1698 |
-
#: link-library-admin.php:
|
1699 |
msgid "Code/Text to be displayed before Link Large Description"
|
1700 |
msgstr ""
|
1701 |
|
1702 |
-
#: link-library-admin.php:
|
1703 |
-
#: link-library-admin.php:
|
1704 |
msgid "Code/Text to be displayed after Link Large Description"
|
1705 |
msgstr ""
|
1706 |
|
1707 |
-
#: link-library-admin.php:
|
1708 |
msgid "Category Description"
|
1709 |
msgstr ""
|
1710 |
|
1711 |
-
#: link-library-admin.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1712 |
msgid "This column allows for the output of text/code after each link"
|
1713 |
msgstr ""
|
1714 |
|
1715 |
-
#: link-library-admin.php:
|
1716 |
msgid "After Link Block"
|
1717 |
msgstr ""
|
1718 |
|
1719 |
-
#: link-library-admin.php:
|
1720 |
msgid "Output after complete link group (link, notes, desc, etc...)"
|
1721 |
msgstr ""
|
1722 |
|
1723 |
-
#: link-library-admin.php:
|
1724 |
msgid ""
|
1725 |
"This column allows for the output of text/code after a number of links "
|
1726 |
"determined in the first column"
|
1727 |
msgstr ""
|
1728 |
|
1729 |
-
#: link-library-admin.php:
|
1730 |
msgid "Intermittent After Link"
|
1731 |
msgstr ""
|
1732 |
|
1733 |
-
#: link-library-admin.php:
|
1734 |
msgid ""
|
1735 |
"This column allows for the output of text/code after the last link in each "
|
1736 |
"category"
|
1737 |
msgstr ""
|
1738 |
|
1739 |
-
#: link-library-admin.php:
|
1740 |
msgid "After last link"
|
1741 |
msgstr ""
|
1742 |
|
1743 |
-
#: link-library-admin.php:
|
1744 |
msgid "Show Link Updated Flag"
|
1745 |
msgstr ""
|
1746 |
|
1747 |
-
#: link-library-admin.php:
|
1748 |
msgid "Convert [] to <> in Link Description and Notes"
|
1749 |
msgstr ""
|
1750 |
|
1751 |
-
#: link-library-admin.php:
|
1752 |
msgid "Add nofollow tag to outgoing links"
|
1753 |
msgstr ""
|
1754 |
|
1755 |
-
#: link-library-admin.php:
|
1756 |
msgid "Show edit links when logged in as editor or administrator"
|
1757 |
msgstr ""
|
1758 |
|
1759 |
-
#: link-library-admin.php:
|
1760 |
msgid "Show link name when no image is assigned"
|
1761 |
msgstr ""
|
1762 |
|
1763 |
-
#: link-library-admin.php:
|
1764 |
msgid "Do not output fields with no value"
|
1765 |
msgstr ""
|
1766 |
|
1767 |
-
#: link-library-admin.php:
|
1768 |
msgid "Enable link Pop-Ups"
|
1769 |
msgstr ""
|
1770 |
|
1771 |
-
#: link-library-admin.php:
|
1772 |
msgid "Pop-Up Width"
|
1773 |
msgstr ""
|
1774 |
|
1775 |
-
#: link-library-admin.php:
|
1776 |
msgid "Pop-Up Height"
|
1777 |
msgstr ""
|
1778 |
|
1779 |
-
#: link-library-admin.php:
|
1780 |
msgid "Dialog contents"
|
1781 |
msgstr ""
|
1782 |
|
1783 |
-
#: link-library-admin.php:
|
1784 |
msgid "Show RSS Link using Text"
|
1785 |
msgstr ""
|
1786 |
|
1787 |
-
#: link-library-admin.php:
|
1788 |
msgid "Show RSS Link using Standard Icon"
|
1789 |
msgstr ""
|
1790 |
|
1791 |
-
#: link-library-admin.php:
|
1792 |
msgid "Show RSS Preview Link"
|
1793 |
msgstr ""
|
1794 |
|
1795 |
-
#: link-library-admin.php:
|
1796 |
msgid "Number of articles shown in RSS Preview"
|
1797 |
msgstr ""
|
1798 |
|
1799 |
-
#: link-library-admin.php:
|
1800 |
msgid "Show RSS Feed Headers in Link Library output"
|
1801 |
msgstr ""
|
1802 |
|
1803 |
-
#: link-library-admin.php:
|
1804 |
msgid "Show RSS Feed Content in Link Library output"
|
1805 |
msgstr ""
|
1806 |
|
1807 |
-
#: link-library-admin.php:
|
1808 |
msgid "Number of RSS articles shown in Link Library Output"
|
1809 |
msgstr ""
|
1810 |
|
1811 |
-
#: link-library-admin.php:
|
1812 |
msgid "Max number of days since published"
|
1813 |
msgstr ""
|
1814 |
|
1815 |
-
#: link-library-admin.php:
|
1816 |
msgid "RSS Preview Width"
|
1817 |
msgstr ""
|
1818 |
|
1819 |
-
#: link-library-admin.php:
|
1820 |
msgid "RSS Preview Height"
|
1821 |
msgstr ""
|
1822 |
|
1823 |
-
#: link-library-admin.php:
|
1824 |
msgid "Skip links with no RSS inline items"
|
1825 |
msgstr ""
|
1826 |
|
1827 |
-
#: link-library-admin.php:
|
1828 |
msgid ""
|
1829 |
"Checking this option will get images from the Robothumb web site every time"
|
1830 |
msgstr ""
|
1831 |
|
1832 |
-
#: link-library-admin.php:
|
1833 |
msgid "Use thumbnail service for dynamic link images"
|
1834 |
msgstr ""
|
1835 |
|
1836 |
-
#: link-library-admin.php:
|
1837 |
msgid ""
|
1838 |
"Checking this option will get images from the thumbshots web site every time"
|
1839 |
msgstr ""
|
1840 |
|
1841 |
-
#: link-library-admin.php:
|
1842 |
msgid "Give priority to images assigned to links if present"
|
1843 |
msgstr ""
|
1844 |
|
1845 |
-
#: link-library-admin.php:
|
1846 |
msgid "Generate Images / Favorite Icons"
|
1847 |
msgstr ""
|
1848 |
|
1849 |
-
#: link-library-admin.php:
|
1850 |
msgid ""
|
1851 |
"This button is only available when a valid API key is entered under the Link "
|
1852 |
"Library General Settings."
|
1853 |
msgstr ""
|
1854 |
|
1855 |
-
#: link-library-admin.php:
|
1856 |
msgid "Generate Thumbnails and Store locally"
|
1857 |
msgstr ""
|
1858 |
|
1859 |
-
#: link-library-admin.php:
|
1860 |
msgid "Generate Favorite Icons and Store locally"
|
1861 |
msgstr ""
|
1862 |
|
1863 |
-
#: link-library-admin.php:
|
1864 |
msgid "Delete all local thumbnails and icons"
|
1865 |
msgstr ""
|
1866 |
|
1867 |
-
#: link-library-admin.php:
|
1868 |
msgid "Delete all local thumbnails"
|
1869 |
msgstr ""
|
1870 |
|
1871 |
-
#: link-library-admin.php:
|
1872 |
msgid "Delete all local icons"
|
1873 |
msgstr ""
|
1874 |
|
1875 |
-
#: link-library-admin.php:
|
1876 |
msgid "Publish RSS Feed"
|
1877 |
msgstr ""
|
1878 |
|
1879 |
-
#: link-library-admin.php:
|
1880 |
msgid "Number of items in RSS feed"
|
1881 |
msgstr ""
|
1882 |
|
1883 |
-
#: link-library-admin.php:
|
1884 |
msgid "RSS Feed Title"
|
1885 |
msgstr ""
|
1886 |
|
1887 |
-
#: link-library-admin.php:
|
1888 |
msgid "RSS Feed Description"
|
1889 |
msgstr ""
|
1890 |
|
1891 |
-
#: link-library-admin.php:
|
1892 |
msgid ""
|
1893 |
"RSS Feed Web Address (default yoursite.com?"
|
1894 |
"link_library_rss_feed=1&settingset=1 )"
|
1895 |
msgstr ""
|
1896 |
|
1897 |
-
#: link-library-admin.php:
|
1898 |
msgid "Search Label"
|
1899 |
msgstr ""
|
1900 |
|
1901 |
-
#: link-library-admin.php:
|
1902 |
msgid "Search Field Initial Text"
|
1903 |
msgstr ""
|
1904 |
|
1905 |
-
#: link-library-admin.php:
|
1906 |
msgid "Search No Results Text"
|
1907 |
msgstr ""
|
1908 |
|
1909 |
-
#: link-library-admin.php:
|
1910 |
msgid "No links found matching your search criteria"
|
1911 |
msgstr ""
|
1912 |
|
1913 |
-
#: link-library-admin.php:
|
1914 |
msgid "Leave empty when links are to be displayed on same page as search box"
|
1915 |
msgstr ""
|
1916 |
|
1917 |
-
#: link-library-admin.php:
|
1918 |
msgid "Results Page Address"
|
1919 |
msgstr ""
|
1920 |
|
1921 |
-
#: link-library-admin.php:
|
1922 |
msgid "Following this link shows a list of all links awaiting moderation"
|
1923 |
msgstr ""
|
1924 |
|
1925 |
-
#: link-library-admin.php:
|
1926 |
msgid "View list of links awaiting moderation"
|
1927 |
msgstr ""
|
1928 |
|
1929 |
-
#: link-library-admin.php:
|
1930 |
msgid "Show user links immediately"
|
1931 |
msgstr ""
|
1932 |
|
1933 |
-
#: link-library-admin.php:
|
1934 |
msgid "E-mail admin on link submission"
|
1935 |
msgstr ""
|
1936 |
|
1937 |
-
#: link-library-admin.php:
|
1938 |
msgid "Validate links with Akismet"
|
1939 |
msgstr ""
|
1940 |
|
1941 |
-
#: link-library-admin.php:
|
1942 |
msgid "E-mail submitter"
|
1943 |
msgstr ""
|
1944 |
|
1945 |
-
#: link-library-admin.php:
|
|
|
|
|
|
|
|
|
1946 |
msgid "Require login to display form"
|
1947 |
msgstr ""
|
1948 |
|
1949 |
-
#: link-library-admin.php:
|
1950 |
msgid "Allow link submission with empty link"
|
1951 |
msgstr ""
|
1952 |
|
1953 |
-
#: link-library-admin.php:
|
1954 |
msgid "Display captcha"
|
1955 |
msgstr ""
|
1956 |
|
1957 |
-
#: link-library-admin.php:
|
1958 |
msgid ""
|
1959 |
"This function will only store data when users are logged in to Wordpress"
|
1960 |
msgstr ""
|
1961 |
|
1962 |
-
#: link-library-admin.php:
|
1963 |
msgid "Store login name on link submission"
|
1964 |
msgstr ""
|
1965 |
|
1966 |
-
#: link-library-admin.php:
|
1967 |
msgid "Add new link label"
|
1968 |
msgstr ""
|
1969 |
|
1970 |
-
#: link-library-admin.php:
|
1971 |
-
#: render-link-library-addlink-sc.php:206
|
1972 |
msgid "Add new link"
|
1973 |
msgstr ""
|
1974 |
|
1975 |
-
#: link-library-admin.php:
|
1976 |
msgid "Link name label"
|
1977 |
msgstr ""
|
1978 |
|
1979 |
-
#: link-library-admin.php:
|
1980 |
msgid "Link address label"
|
1981 |
msgstr ""
|
1982 |
|
1983 |
-
#: link-library-admin.php:
|
|
|
1984 |
msgid "Link Address"
|
1985 |
msgstr ""
|
1986 |
|
1987 |
-
#: link-library-admin.php:
|
1988 |
msgid "Link RSS label"
|
1989 |
msgstr ""
|
1990 |
|
1991 |
-
#: link-library-admin.php:
|
1992 |
-
#: render-link-library-addlink-sc.php:
|
1993 |
-
#: usersubmission.php:
|
1994 |
msgid "Link RSS"
|
1995 |
msgstr ""
|
1996 |
|
1997 |
-
#: link-library-admin.php:
|
1998 |
-
#: link-library-admin.php:
|
1999 |
-
#: link-library-admin.php:
|
2000 |
-
#: link-library-admin.php:
|
2001 |
-
#: link-library-admin.php:
|
2002 |
-
#: link-library-admin.php:
|
2003 |
-
#: link-library-admin.php:
|
2004 |
msgid "Hide"
|
2005 |
msgstr ""
|
2006 |
|
2007 |
-
#: link-library-admin.php:
|
2008 |
-
#: link-library-admin.php:
|
2009 |
-
#: link-library-admin.php:
|
2010 |
-
#: link-library-admin.php:
|
2011 |
-
#: link-library-admin.php:
|
2012 |
-
#: link-library-admin.php:
|
2013 |
-
#: link-library-admin.php:
|
2014 |
msgid "Show"
|
2015 |
msgstr ""
|
2016 |
|
2017 |
-
#: link-library-admin.php:
|
2018 |
-
#: link-library-admin.php:
|
2019 |
-
#: link-library-admin.php:
|
2020 |
-
#: link-library-admin.php:
|
2021 |
-
#: link-library-admin.php:
|
2022 |
-
#: link-library-admin.php:
|
2023 |
msgid "Required"
|
2024 |
msgstr ""
|
2025 |
|
2026 |
-
#: link-library-admin.php:
|
2027 |
msgid "Link category label"
|
2028 |
msgstr ""
|
2029 |
|
2030 |
-
#: link-library-admin.php:
|
2031 |
msgid ""
|
2032 |
"Comma-seperated list of categories to be displayed in category selection box "
|
2033 |
"(e.g. 1,5,4) instead of displaying the set of categories specified by the "
|
2034 |
"library."
|
2035 |
msgstr ""
|
2036 |
|
2037 |
-
#: link-library-admin.php:
|
2038 |
msgid "Link category override selection list"
|
2039 |
msgstr ""
|
2040 |
|
2041 |
-
#: link-library-admin.php:
|
2042 |
msgid ""
|
2043 |
"Comma-seperated list of categories to be displayed in category selection box "
|
2044 |
"(e.g. 1,5,4)"
|
2045 |
msgstr ""
|
2046 |
|
2047 |
-
#: link-library-admin.php:
|
2048 |
msgid "Default category"
|
2049 |
msgstr ""
|
2050 |
|
2051 |
-
#: link-library-admin.php:
|
2052 |
-
#: link-library-defaults.php:
|
2053 |
msgid "User-submitted category"
|
2054 |
msgstr ""
|
2055 |
|
2056 |
-
#: link-library-admin.php:
|
2057 |
msgid "No"
|
2058 |
msgstr ""
|
2059 |
|
2060 |
-
#: link-library-admin.php:
|
2061 |
msgid "Allow"
|
2062 |
msgstr ""
|
2063 |
|
2064 |
-
#: link-library-admin.php:
|
2065 |
msgid "User-submitted category prompt"
|
2066 |
msgstr ""
|
2067 |
|
2068 |
-
#: link-library-admin.php:
|
2069 |
-
#: render-link-library-addlink-sc.php:
|
2070 |
msgid "User-submitted category (define below)"
|
2071 |
msgstr ""
|
2072 |
|
2073 |
-
#: link-library-admin.php:
|
2074 |
msgid "Link description label"
|
2075 |
msgstr ""
|
2076 |
|
2077 |
-
#: link-library-admin.php:
|
2078 |
msgid "Link notes label"
|
2079 |
msgstr ""
|
2080 |
|
2081 |
-
#: link-library-admin.php:
|
2082 |
msgid "Reciprocal link must be configured for this option to work correctly"
|
2083 |
msgstr ""
|
2084 |
|
2085 |
-
#: link-library-admin.php:
|
2086 |
msgid "Show immediately if reciprocal link valid"
|
2087 |
msgstr ""
|
2088 |
|
2089 |
-
#: link-library-admin.php:
|
2090 |
msgid "Use Text Area for Notes"
|
2091 |
msgstr ""
|
2092 |
|
2093 |
-
#: link-library-admin.php:
|
2094 |
msgid "Only allow one reciprocal link per domain"
|
2095 |
msgstr ""
|
2096 |
|
2097 |
-
#: link-library-admin.php:
|
2098 |
msgid "Reciprocal Link label"
|
2099 |
msgstr ""
|
2100 |
|
2101 |
-
#: link-library-admin.php:
|
2102 |
-
#: link-library-defaults.php:
|
2103 |
-
#: usersubmission.php:
|
2104 |
msgid "Reciprocal Link"
|
2105 |
msgstr ""
|
2106 |
|
2107 |
-
#: link-library-admin.php:
|
2108 |
msgid "Secondary Address label"
|
2109 |
msgstr ""
|
2110 |
|
2111 |
-
#: link-library-admin.php:
|
2112 |
-
#: render-link-library-addlink-sc.php:
|
2113 |
msgid "Secondary Address"
|
2114 |
msgstr ""
|
2115 |
|
2116 |
-
#: link-library-admin.php:
|
2117 |
msgid "Link Telephone label"
|
2118 |
msgstr ""
|
2119 |
|
2120 |
-
#: link-library-admin.php:
|
2121 |
msgid "Link E-mail label"
|
2122 |
msgstr ""
|
2123 |
|
2124 |
-
#: link-library-admin.php:
|
2125 |
msgid "Link Submitter Name label"
|
2126 |
msgstr ""
|
2127 |
|
2128 |
-
#: link-library-admin.php:
|
2129 |
msgid "Link Submitter E-mail label"
|
2130 |
msgstr ""
|
2131 |
|
2132 |
-
#: link-library-admin.php:
|
2133 |
-
#: render-link-library-addlink-sc.php:
|
2134 |
msgid "Submitter E-mail"
|
2135 |
msgstr ""
|
2136 |
|
2137 |
-
#: link-library-admin.php:
|
2138 |
msgid "Link Submitter Comment Label"
|
2139 |
msgstr ""
|
2140 |
|
2141 |
-
#: link-library-admin.php:
|
2142 |
-
#: render-link-library-addlink-sc.php:
|
2143 |
msgid "Submitter Comment"
|
2144 |
msgstr ""
|
2145 |
|
2146 |
-
#: link-library-admin.php:
|
2147 |
msgid "Large Description Label"
|
2148 |
msgstr ""
|
2149 |
|
2150 |
-
#: link-library-admin.php:
|
|
|
2151 |
msgid "Large Description"
|
2152 |
msgstr ""
|
2153 |
|
2154 |
-
#: link-library-admin.php:
|
2155 |
msgid "Custom Captcha Question"
|
2156 |
msgstr ""
|
2157 |
|
2158 |
-
#: link-library-admin.php:
|
2159 |
-
#: render-link-library-addlink-sc.php:
|
2160 |
msgid "Is boiling water hot or cold?"
|
2161 |
msgstr ""
|
2162 |
|
2163 |
-
#: link-library-admin.php:
|
2164 |
msgid "Custom Captcha Answer"
|
2165 |
msgstr ""
|
2166 |
|
2167 |
-
#: link-library-admin.php:
|
2168 |
msgid "hot"
|
2169 |
msgstr ""
|
2170 |
|
2171 |
-
#: link-library-admin.php:
|
2172 |
msgid "Add Link button label"
|
2173 |
msgstr ""
|
2174 |
|
2175 |
-
#: link-library-admin.php:
|
2176 |
msgid "Add Link"
|
2177 |
msgstr ""
|
2178 |
|
2179 |
-
#: link-library-admin.php:
|
2180 |
msgid "New Link Message"
|
2181 |
msgstr ""
|
2182 |
|
2183 |
-
#: link-library-admin.php:
|
2184 |
msgid "New link submitted"
|
2185 |
msgstr ""
|
2186 |
|
2187 |
-
#: link-library-admin.php:
|
2188 |
msgid "New Link Moderation Label"
|
2189 |
msgstr ""
|
2190 |
|
2191 |
-
#: link-library-admin.php:
|
2192 |
msgid "it will appear in the list once moderated. Thank you."
|
2193 |
msgstr ""
|
2194 |
|
2195 |
-
#: link-library-admin.php:
|
2196 |
-
msgid ""
|
2197 |
-
"Allows for links to be added in batch to the Wordpress links database. CSV "
|
2198 |
-
"file needs to follow template for column layout."
|
2199 |
msgstr ""
|
2200 |
|
2201 |
-
#: link-library-admin.php:
|
2202 |
-
msgid "CSV file to
|
2203 |
msgstr ""
|
2204 |
|
2205 |
-
#: link-library-admin.php:
|
2206 |
-
msgid "
|
2207 |
msgstr ""
|
2208 |
|
2209 |
-
#: link-library-admin.php:
|
2210 |
-
msgid "
|
2211 |
msgstr ""
|
2212 |
|
2213 |
-
#: link-library-admin.php:
|
2214 |
-
msgid "
|
2215 |
msgstr ""
|
2216 |
|
2217 |
-
#: link-library-admin.php:
|
2218 |
-
msgid "
|
2219 |
msgstr ""
|
2220 |
|
2221 |
-
#: link-library-admin.php:
|
2222 |
-
msgid "
|
2223 |
msgstr ""
|
2224 |
|
2225 |
-
#: link-library-admin.php:
|
2226 |
-
msgid "
|
2227 |
msgstr ""
|
2228 |
|
2229 |
-
#: link-library-admin.php:
|
2230 |
-
msgid "
|
2231 |
msgstr ""
|
2232 |
|
2233 |
-
#: link-library-admin.php:
|
2234 |
-
msgid "
|
2235 |
msgstr ""
|
2236 |
|
2237 |
-
#: link-library-admin.php:
|
2238 |
-
msgid "
|
2239 |
msgstr ""
|
2240 |
|
2241 |
-
#: link-library-admin.php:
|
2242 |
-
msgid "
|
2243 |
msgstr ""
|
2244 |
|
2245 |
-
#: link-library-admin.php:
|
2246 |
-
msgid "
|
2247 |
msgstr ""
|
2248 |
|
2249 |
-
#: link-library-admin.php:
|
2250 |
-
msgid "
|
2251 |
msgstr ""
|
2252 |
|
2253 |
-
#: link-library-admin.php:
|
2254 |
-
msgid "
|
2255 |
msgstr ""
|
2256 |
|
2257 |
-
#: link-library-admin.php:
|
2258 |
-
msgid "
|
2259 |
msgstr ""
|
2260 |
|
2261 |
-
#: link-library-admin.php:
|
2262 |
-
msgid "
|
2263 |
msgstr ""
|
2264 |
|
2265 |
-
#: link-library-admin.php:
|
2266 |
-
msgid "
|
2267 |
msgstr ""
|
2268 |
|
2269 |
-
#: link-library-admin.php:
|
2270 |
-
msgid "
|
2271 |
msgstr ""
|
2272 |
|
2273 |
-
#: link-library-admin.php:
|
2274 |
-
msgid "
|
2275 |
msgstr ""
|
2276 |
|
2277 |
-
#: link-library-admin.php:
|
2278 |
-
msgid "
|
2279 |
msgstr ""
|
2280 |
|
2281 |
-
#: link-library-admin.php:
|
2282 |
-
msgid "
|
2283 |
msgstr ""
|
2284 |
|
2285 |
-
#: link-library-admin.php:
|
2286 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
2287 |
msgstr ""
|
2288 |
|
2289 |
-
#: link-library-admin.php:
|
2290 |
-
msgid "Featured
|
2291 |
msgstr ""
|
2292 |
|
2293 |
-
#: link-library-admin.php:
|
2294 |
msgid "No Follow"
|
2295 |
msgstr ""
|
2296 |
|
2297 |
-
#: link-library-admin.php:
|
2298 |
msgid "Updated Date"
|
2299 |
msgstr ""
|
2300 |
|
2301 |
-
#: link-library-admin.php:
|
2302 |
msgid "Secondary Web Address"
|
2303 |
msgstr ""
|
2304 |
|
2305 |
-
#: link-library-admin.php:
|
2306 |
msgid "Visit"
|
2307 |
msgstr ""
|
2308 |
|
2309 |
-
#: link-library-admin.php:
|
2310 |
-
msgid "Number of
|
2311 |
msgstr ""
|
2312 |
|
2313 |
-
#: link-library-admin.php:
|
2314 |
-
msgid "
|
2315 |
-
msgstr ""
|
2316 |
-
|
2317 |
-
#: link-library-admin.php:4688 usersubmission.php:333 usersubmission.php:415
|
2318 |
-
msgid "Link Submitter Name"
|
2319 |
msgstr ""
|
2320 |
|
2321 |
-
#: link-library-admin.php:
|
2322 |
-
msgid "Link
|
2323 |
msgstr ""
|
2324 |
|
2325 |
-
#: link-library-admin.php:
|
2326 |
-
msgid "
|
2327 |
msgstr ""
|
2328 |
|
2329 |
-
#: link-library-admin.php:
|
2330 |
-
msgid "
|
2331 |
msgstr ""
|
2332 |
|
2333 |
-
#: link-library-admin.php:
|
2334 |
-
msgid "
|
2335 |
msgstr ""
|
2336 |
|
2337 |
-
#: link-library-admin.php:
|
2338 |
-
msgid "
|
2339 |
msgstr ""
|
2340 |
|
2341 |
-
#: link-library-admin.php:
|
2342 |
-
msgid "
|
2343 |
msgstr ""
|
2344 |
|
2345 |
-
#: link-library-admin.php:
|
2346 |
-
msgid "
|
2347 |
msgstr ""
|
2348 |
|
2349 |
-
#: link-library-admin.php:
|
2350 |
-
msgid "
|
2351 |
msgstr ""
|
2352 |
|
2353 |
-
#: link-library-admin.php:
|
2354 |
-
msgid "
|
2355 |
msgstr ""
|
2356 |
|
2357 |
-
#: link-library-admin.php:
|
2358 |
-
msgid ""
|
2359 |
-
"Manual upload requires a wp-content\\uploads directory to be present with "
|
2360 |
-
"write permissions"
|
2361 |
msgstr ""
|
2362 |
|
2363 |
-
#: link-library-admin.php:
|
2364 |
-
msgid ""
|
2365 |
-
"Cannot generate thumbnail when no name and no web address are specified."
|
2366 |
msgstr ""
|
2367 |
|
2368 |
-
#: link-library-admin.php:
|
2369 |
-
msgid ""
|
2370 |
-
"Cannot generate favorite icon when no name and no web address are specified."
|
2371 |
msgstr ""
|
2372 |
|
2373 |
-
#: link-library-admin.php:
|
2374 |
msgid "Add Link Library Shortcode"
|
2375 |
msgstr ""
|
2376 |
|
2377 |
-
#: link-library-defaults.php:
|
2378 |
msgid "Link name"
|
2379 |
msgstr ""
|
2380 |
|
2381 |
-
#: link-library-defaults.php:
|
2382 |
msgid "Link address"
|
2383 |
msgstr ""
|
2384 |
|
2385 |
-
#: link-library-defaults.php:
|
2386 |
msgid "New link submitted."
|
2387 |
msgstr ""
|
2388 |
|
2389 |
-
#: link-library-defaults.php:
|
2390 |
msgid "It will appear in the list once moderated. Thank you."
|
2391 |
msgstr ""
|
2392 |
|
2393 |
-
#: link-library-defaults.php:
|
2394 |
msgid "Link Library-Generated RSS Feed"
|
2395 |
msgstr ""
|
2396 |
|
2397 |
-
#: link-library-defaults.php:
|
2398 |
msgid "Description of Link Library-Generated Feed"
|
2399 |
msgstr ""
|
2400 |
|
2401 |
-
#: link-library-defaults.php:
|
2402 |
msgid "%link_image%<br />Click through to visit %link_name%."
|
2403 |
msgstr ""
|
2404 |
|
2405 |
-
#: link-library-defaults.php:
|
2406 |
msgid "Search..."
|
2407 |
msgstr ""
|
2408 |
|
2409 |
-
#: link-library-defaults.php:
|
2410 |
msgid "Category Filter"
|
2411 |
msgstr ""
|
2412 |
|
2413 |
-
#: link-library.php:
|
2414 |
msgid "Link Library Generated Feed"
|
2415 |
msgstr ""
|
2416 |
|
2417 |
-
#: link-library.php:
|
2418 |
msgid "Could not update link in the database"
|
2419 |
msgstr ""
|
2420 |
|
2421 |
-
#: link-library.php:
|
2422 |
msgid "Could not insert link into the database"
|
2423 |
msgstr ""
|
2424 |
|
2425 |
-
#: link-library.php:
|
2426 |
msgid ""
|
2427 |
"Link Library no longer supports calling this function with individual "
|
2428 |
"arguments. Please use the admin panel to configure Link Library and the "
|
2429 |
"do_shortcode function to use Link Library output in your code."
|
2430 |
msgstr ""
|
2431 |
|
2432 |
-
#:
|
|
|
|
|
|
|
|
|
2433 |
msgid "Confirm code not given"
|
2434 |
msgstr ""
|
2435 |
|
2436 |
-
#: render-link-library-addlink-sc.php:136
|
2437 |
msgid "Captcha code is wrong"
|
2438 |
msgstr ""
|
2439 |
|
2440 |
-
#: render-link-library-addlink-sc.php:138
|
2441 |
msgid "Captcha code is only valid for 5 minutes"
|
2442 |
msgstr ""
|
2443 |
|
2444 |
-
#: render-link-library-addlink-sc.php:140
|
2445 |
msgid "No captcha cookie given. Make sure cookies are enabled"
|
2446 |
msgstr ""
|
2447 |
|
2448 |
-
#: render-link-library-addlink-sc.php:142
|
2449 |
msgid "Captcha answer was not provided."
|
2450 |
msgstr ""
|
2451 |
|
2452 |
-
#: render-link-library-addlink-sc.php:144
|
2453 |
msgid "Captcha answer is incorrect"
|
2454 |
msgstr ""
|
2455 |
|
2456 |
-
#: render-link-library-addlink-sc.php:146
|
2457 |
msgid "User Category was not provided correctly. Link insertion failed."
|
2458 |
msgstr ""
|
2459 |
|
2460 |
-
#: render-link-library-addlink-sc.php:154
|
2461 |
msgid "Error: Link does not have an address."
|
2462 |
msgstr ""
|
2463 |
|
2464 |
-
#: render-link-library-addlink-sc.php:156
|
2465 |
msgid "Error: Link already exists."
|
2466 |
msgstr ""
|
2467 |
|
2468 |
-
#: render-link-library-addlink-sc.php:158
|
2469 |
-
#: render-link-library-addlink-sc.php:160
|
2470 |
-
#: render-link-library-addlink-sc.php:162
|
2471 |
-
#: render-link-library-addlink-sc.php:164
|
2472 |
-
#: render-link-library-addlink-sc.php:166
|
2473 |
-
#: render-link-library-addlink-sc.php:168
|
2474 |
-
#: render-link-library-addlink-sc.php:170
|
2475 |
-
#: render-link-library-addlink-sc.php:172
|
2476 |
-
#: render-link-library-addlink-sc.php:174
|
2477 |
-
#: render-link-library-addlink-sc.php:176
|
2478 |
-
#: render-link-library-addlink-sc.php:178
|
2479 |
msgid " is a required field"
|
2480 |
msgstr ""
|
2481 |
|
2482 |
-
#: render-link-library-addlink-sc.php:180
|
2483 |
msgid "Link submission error"
|
2484 |
msgstr ""
|
2485 |
|
2486 |
-
#: render-link-library-addlink-sc.php:182
|
2487 |
msgid "Link rejected. There is already a site with this reciprocal link."
|
2488 |
msgstr ""
|
2489 |
|
2490 |
-
#: render-link-library-addlink-sc.php:217
|
2491 |
-
#: render-link-library-addlink-sc.php:
|
2492 |
-
#: render-link-library-addlink-sc.php:
|
2493 |
-
#: render-link-library-addlink-sc.php:
|
2494 |
-
#: render-link-library-addlink-sc.php:
|
2495 |
-
#: render-link-library-addlink-sc.php:
|
2496 |
-
#: render-link-library-addlink-sc.php:
|
2497 |
-
#: render-link-library-addlink-sc.php:
|
2498 |
-
#: render-link-library-addlink-sc.php:
|
2499 |
msgid "Required field"
|
2500 |
msgstr ""
|
2501 |
|
2502 |
-
#: render-link-library-addlink-sc.php:225
|
2503 |
msgid "Required field, URL"
|
2504 |
msgstr ""
|
2505 |
|
2506 |
-
#: render-link-library-addlink-sc.php:
|
2507 |
-
#: render-link-library-addlink-sc.php:
|
2508 |
-
#: render-link-library-addlink-sc.php:
|
2509 |
msgid "Required field, 1-255 chars"
|
2510 |
msgstr ""
|
2511 |
|
2512 |
-
#: render-link-library-addlink-sc.php:
|
2513 |
msgid "Link category"
|
2514 |
msgstr ""
|
2515 |
|
2516 |
-
#: render-link-library-addlink-sc.php:
|
2517 |
msgid "Select a category"
|
2518 |
msgstr ""
|
2519 |
|
2520 |
-
#: render-link-library-addlink-sc.php:
|
2521 |
msgid "Link description"
|
2522 |
msgstr ""
|
2523 |
|
2524 |
-
#: render-link-library-addlink-sc.php:
|
2525 |
msgid "Large description"
|
2526 |
msgstr ""
|
2527 |
|
2528 |
-
#: render-link-library-addlink-sc.php:
|
2529 |
msgid "Link notes"
|
2530 |
msgstr ""
|
2531 |
|
2532 |
-
#: render-link-library-addlink-sc.php:
|
2533 |
msgid "Required field, proper e-mail, 1-128 chars"
|
2534 |
msgstr ""
|
2535 |
|
2536 |
-
#: render-link-library-addlink-sc.php:
|
2537 |
-
#: render-link-library-addlink-sc.php:
|
2538 |
msgid "Required field, 1-128 chars"
|
2539 |
msgstr ""
|
2540 |
|
2541 |
-
#: render-link-library-addlink-sc.php:
|
2542 |
msgid "Add link"
|
2543 |
msgstr ""
|
2544 |
|
2545 |
-
#: render-link-library-addlink-sc.php:
|
2546 |
msgid "Form submission failed!"
|
2547 |
msgstr ""
|
2548 |
|
2549 |
-
#: render-link-library-addlink-sc.php:
|
2550 |
msgid "You have not answered all required fields"
|
2551 |
msgstr ""
|
2552 |
|
2553 |
-
#: render-link-library-addlink-sc.php:
|
2554 |
msgid "You have not given a correct time"
|
2555 |
msgstr ""
|
2556 |
|
2557 |
-
#: render-link-library-addlink-sc.php:
|
2558 |
msgid "You have not given a correct e-mail address"
|
2559 |
msgstr ""
|
2560 |
|
2561 |
-
#: render-link-library-addlink-sc.php:
|
2562 |
msgid "You have not given a correct phone number"
|
2563 |
msgstr ""
|
2564 |
|
2565 |
-
#: render-link-library-addlink-sc.php:
|
2566 |
msgid "You have not given a correct answer to the security question"
|
2567 |
msgstr ""
|
2568 |
|
2569 |
-
#: render-link-library-addlink-sc.php:
|
2570 |
msgid "You have not given a correct date"
|
2571 |
msgstr ""
|
2572 |
|
2573 |
-
#: render-link-library-addlink-sc.php:
|
2574 |
msgid "The input value must be between "
|
2575 |
msgstr ""
|
2576 |
|
2577 |
-
#: render-link-library-addlink-sc.php:
|
2578 |
msgid "characters"
|
2579 |
msgstr ""
|
2580 |
|
2581 |
-
#: render-link-library-addlink-sc.php:
|
2582 |
msgid "The input value is longer than "
|
2583 |
msgstr ""
|
2584 |
|
2585 |
-
#: render-link-library-addlink-sc.php:
|
2586 |
msgid "The input value is shorter than "
|
2587 |
msgstr ""
|
2588 |
|
2589 |
-
#: render-link-library-addlink-sc.php:
|
2590 |
msgid "Input values could not be confirmed"
|
2591 |
msgstr ""
|
2592 |
|
2593 |
-
#: render-link-library-addlink-sc.php:
|
2594 |
msgid "Incorrect domain value"
|
2595 |
msgstr ""
|
2596 |
|
2597 |
-
#: render-link-library-addlink-sc.php:
|
2598 |
-
msgid "The input value is not a correct URL"
|
2599 |
msgstr ""
|
2600 |
|
2601 |
-
#: render-link-library-addlink-sc.php:
|
2602 |
msgid "The input value is incorrect"
|
2603 |
msgstr ""
|
2604 |
|
2605 |
-
#: render-link-library-addlink-sc.php:
|
2606 |
msgid " and spaces "
|
2607 |
msgstr ""
|
2608 |
|
2609 |
-
#: render-link-library-addlink-sc.php:
|
2610 |
msgid "The input value was not a correct number"
|
2611 |
msgstr ""
|
2612 |
|
2613 |
-
#: render-link-library-addlink-sc.php:
|
2614 |
msgid "Your social security number was incorrect"
|
2615 |
msgstr ""
|
2616 |
|
2617 |
-
#: render-link-library-addlink-sc.php:
|
2618 |
msgid "Incorrect UK VAT Number"
|
2619 |
msgstr ""
|
2620 |
|
2621 |
-
#: render-link-library-addlink-sc.php:
|
2622 |
msgid "The password is not strong enough"
|
2623 |
msgstr ""
|
2624 |
|
2625 |
-
#: render-link-library-addlink-sc.php:
|
2626 |
msgid "You have to choose at least "
|
2627 |
msgstr ""
|
2628 |
|
2629 |
-
#: render-link-library-addlink-sc.php:
|
2630 |
msgid " answers"
|
2631 |
msgstr ""
|
2632 |
|
2633 |
-
#: render-link-library-addlink-sc.php:
|
2634 |
msgid "The input value can only contain alphanumeric characters "
|
2635 |
msgstr ""
|
2636 |
|
2637 |
-
#: render-link-library-addlink-sc.php:
|
2638 |
msgid " and "
|
2639 |
msgstr ""
|
2640 |
|
2641 |
-
#: render-link-library-addlink-sc.php:
|
2642 |
#, php-format
|
2643 |
msgid "The file you are trying to upload is too large (max %s)"
|
2644 |
msgstr ""
|
2645 |
|
2646 |
-
#: render-link-library-addlink-sc.php:
|
2647 |
#, php-format
|
2648 |
msgid "Only files of type %s is allowed"
|
2649 |
msgstr ""
|
2650 |
|
2651 |
-
#: render-link-library-addlink-sc.php:
|
2652 |
msgid "Please choose between "
|
2653 |
msgstr ""
|
2654 |
|
2655 |
-
#: render-link-library-addlink-sc.php:
|
2656 |
msgid "Please choose at least "
|
2657 |
msgstr ""
|
2658 |
|
2659 |
-
#: render-link-library-addlink-sc.php:
|
2660 |
msgid "Please choose a maximum of "
|
2661 |
msgstr ""
|
2662 |
|
2663 |
-
#: render-link-library-addlink-sc.php:
|
2664 |
msgid " item(s)"
|
2665 |
msgstr ""
|
2666 |
|
2667 |
-
#: render-link-library-addlink-sc.php:
|
2668 |
msgid "The credit card number is not correct"
|
2669 |
msgstr ""
|
2670 |
|
2671 |
-
#: render-link-library-addlink-sc.php:
|
2672 |
msgid "The CVV number was not correct"
|
2673 |
msgstr ""
|
2674 |
|
2675 |
-
#: render-link-library-addlink-sc.php:
|
2676 |
msgid "Incorrect image dimensions,"
|
2677 |
msgstr ""
|
2678 |
|
2679 |
-
#: render-link-library-addlink-sc.php:
|
2680 |
msgid "the image can not be taller than"
|
2681 |
msgstr ""
|
2682 |
|
2683 |
-
#: render-link-library-addlink-sc.php:
|
2684 |
msgid "the image can not be wider than"
|
2685 |
msgstr ""
|
2686 |
|
2687 |
-
#: render-link-library-addlink-sc.php:
|
2688 |
msgid "the image was too small"
|
2689 |
msgstr ""
|
2690 |
|
2691 |
-
#: render-link-library-addlink-sc.php:
|
2692 |
msgid "min"
|
2693 |
msgstr ""
|
2694 |
|
2695 |
-
#: render-link-library-addlink-sc.php:
|
2696 |
msgid "max"
|
2697 |
msgstr ""
|
2698 |
|
2699 |
-
#: render-link-library-addlink-sc.php:
|
2700 |
msgid "Image ratio is not accepted"
|
2701 |
msgstr ""
|
2702 |
|
2703 |
-
#: render-link-library-addlink-sc.php:
|
2704 |
msgid "Enter code from above image"
|
2705 |
msgstr ""
|
2706 |
|
2707 |
-
#: render-link-library-cats-sc.php:
|
2708 |
msgid "Go!"
|
2709 |
msgstr ""
|
2710 |
|
2711 |
-
#: render-link-library-cats-sc.php:
|
2712 |
msgid "No categories found"
|
2713 |
msgstr ""
|
2714 |
|
2715 |
-
#: render-link-library-sc.php:
|
2716 |
-
#: render-link-library-sc.php:
|
2717 |
msgid "Previous"
|
2718 |
msgstr ""
|
2719 |
|
2720 |
-
#: render-link-library-sc.php:
|
2721 |
-
#: render-link-library-sc.php:
|
2722 |
msgid "Next"
|
2723 |
msgstr ""
|
2724 |
|
2725 |
-
#: render-link-library-sc.php:
|
2726 |
msgid "Search Results for"
|
2727 |
msgstr ""
|
2728 |
|
2729 |
-
#: render-link-library-sc.php:
|
|
|
|
|
|
|
|
|
2730 |
msgid "Last updated"
|
2731 |
msgstr ""
|
2732 |
|
2733 |
-
#: render-link-library-sc.php:
|
2734 |
msgid "Edit"
|
2735 |
msgstr ""
|
2736 |
|
2737 |
-
#: render-link-library-sc.php:
|
2738 |
msgid "Preview of RSS feed for"
|
2739 |
msgstr ""
|
2740 |
|
2741 |
-
#: render-link-library-sc.php:
|
2742 |
-
msgid "
|
|
|
|
|
|
|
|
|
2743 |
msgstr ""
|
2744 |
|
2745 |
-
#: usersubmission.php:294
|
2746 |
msgid "A user submitted a new link to your Wordpress Link database."
|
2747 |
msgstr ""
|
2748 |
|
2749 |
-
#: usersubmission.php:
|
2750 |
msgid "Link Secondary Address"
|
2751 |
msgstr ""
|
2752 |
|
2753 |
-
#: usersubmission.php:
|
2754 |
msgid "Link Telephone"
|
2755 |
msgstr ""
|
2756 |
|
2757 |
-
#: usersubmission.php:
|
2758 |
msgid "Link E-mail"
|
2759 |
msgstr ""
|
2760 |
|
2761 |
-
#: usersubmission.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2762 |
msgid "Link Comment"
|
2763 |
msgstr ""
|
2764 |
|
2765 |
-
#: usersubmission.php:
|
2766 |
msgid "New link added"
|
2767 |
msgstr ""
|
2768 |
|
2769 |
-
#: usersubmission.php:
|
2770 |
msgid "Link Submission Confirmation"
|
2771 |
msgstr ""
|
2772 |
|
2773 |
-
#: usersubmission.php:
|
2774 |
msgid "Thank you for your link submission on "
|
2775 |
msgstr ""
|
2776 |
|
2777 |
-
#: usersubmission.php:
|
2778 |
msgid "Your link will appear once approved by the site administrator."
|
2779 |
msgstr ""
|
2780 |
|
2781 |
-
#: usersubmission.php:
|
2782 |
msgid "Your link will immediately be added to the site."
|
2783 |
msgstr ""
|
2784 |
|
2785 |
-
#: wp_dropdown_posts.php:121
|
2786 |
#, php-format
|
2787 |
msgid "#%d (no title)"
|
2788 |
msgstr ""
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
+
"Project-Id-Version: Link Library\n"
|
4 |
+
"POT-Creation-Date: 2017-03-30 13:55-0500\n"
|
5 |
+
"PO-Revision-Date: 2017-03-30 13:55-0500\n"
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: \n"
|
8 |
"Language: en\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 1.6.9\n"
|
13 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
14 |
"X-Poedit-KeywordsList: __;_e\n"
|
15 |
+
"X-Poedit-Basepath: .\n"
|
16 |
"X-Poedit-SearchPath-0: .\n"
|
17 |
+
"X-Poedit-SearchPath-1: ..\n"
|
18 |
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
19 |
|
20 |
+
#: ../link-library-admin.php:109
|
21 |
msgid "Insert a Link Library shortcode"
|
22 |
msgstr ""
|
23 |
|
24 |
+
#: ../link-library-admin.php:112
|
25 |
msgid "Link List"
|
26 |
msgstr ""
|
27 |
|
28 |
+
#: ../link-library-admin.php:113
|
29 |
msgid "Link Category List"
|
30 |
msgstr ""
|
31 |
|
32 |
+
#: ../link-library-admin.php:114
|
33 |
msgid "Link Search"
|
34 |
msgstr ""
|
35 |
|
36 |
+
#: ../link-library-admin.php:115
|
37 |
msgid "Add Link Form"
|
38 |
msgstr ""
|
39 |
|
40 |
+
#: ../link-library-admin.php:123
|
41 |
msgid "Render a list of links."
|
42 |
msgstr ""
|
43 |
|
44 |
+
#: ../link-library-admin.php:125 ../link-library-admin.php:180
|
45 |
+
#: ../link-library-admin.php:215
|
46 |
msgid "Library ID"
|
47 |
msgstr ""
|
48 |
|
49 |
+
#: ../link-library-admin.php:136 ../link-library-admin.php:191
|
50 |
+
#: ../link-library-admin.php:226 ../link-library-admin.php:769
|
51 |
+
#: ../link-library-admin.php:2624 ../link-library-admin.php:2639
|
52 |
msgid "Library"
|
53 |
msgstr ""
|
54 |
|
55 |
+
#: ../link-library-admin.php:142
|
56 |
msgid "Single Link ID"
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: ../link-library-admin.php:145
|
60 |
msgid "Specify ID of single link to be displayed"
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: ../link-library-admin.php:147 ../link-library-admin.php:197
|
64 |
+
#: ../link-library-admin.php:232
|
65 |
msgid "Category Override"
|
66 |
msgstr ""
|
67 |
|
68 |
+
#: ../link-library-admin.php:150 ../link-library-admin.php:200
|
69 |
+
#: ../link-library-admin.php:235
|
70 |
msgid ""
|
71 |
"Single, or comma-separated list of categories IDs to be displayed in the "
|
72 |
"link list"
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: ../link-library-admin.php:152 ../link-library-admin.php:202
|
76 |
+
#: ../link-library-admin.php:237
|
77 |
msgid "Excluded Category Override"
|
78 |
msgstr ""
|
79 |
|
80 |
+
#: ../link-library-admin.php:155 ../link-library-admin.php:205
|
81 |
+
#: ../link-library-admin.php:240
|
82 |
msgid ""
|
83 |
"Single, or comma-separated list of categories IDs to be excluded from the "
|
84 |
"link list"
|
85 |
msgstr ""
|
86 |
|
87 |
+
#: ../link-library-admin.php:157 ../link-library-admin.php:162
|
88 |
+
#: ../link-library-admin.php:167 ../link-library-admin.php:172
|
89 |
msgid "Notes Override"
|
90 |
msgstr ""
|
91 |
|
92 |
+
#: ../link-library-admin.php:160
|
93 |
msgid "Set to 0 or 1 to display or not display link notes"
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: ../link-library-admin.php:165
|
97 |
msgid "Set to 0 or 1 to display or not display link descriptions"
|
98 |
msgstr ""
|
99 |
|
100 |
+
#: ../link-library-admin.php:170
|
101 |
msgid "Set to 0 or 1 to display or not display rss information"
|
102 |
msgstr ""
|
103 |
|
104 |
+
#: ../link-library-admin.php:175
|
105 |
msgid "Set to 0 or 1 to display links in an unordered list or a table"
|
106 |
msgstr ""
|
107 |
|
108 |
+
#: ../link-library-admin.php:178
|
109 |
msgid "Render a list of link categories."
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: ../link-library-admin.php:208
|
113 |
msgid "Render a search box to search through links."
|
114 |
msgstr ""
|
115 |
|
116 |
+
#: ../link-library-admin.php:210
|
117 |
msgid "There are no options for this shortcode."
|
118 |
msgstr ""
|
119 |
|
120 |
+
#: ../link-library-admin.php:213
|
121 |
msgid "Render a form for visitors to submit new links."
|
122 |
msgstr ""
|
123 |
|
124 |
+
#: ../link-library-admin.php:273
|
125 |
msgid "Category Link"
|
126 |
msgstr ""
|
127 |
|
128 |
+
#: ../link-library-admin.php:372 ../link-library-admin.php:644
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
msgid ""
|
130 |
"Please create a folder called uploads under your Wordpress /wp-content/ "
|
131 |
"directory with write permissions to use this functionality."
|
132 |
msgstr ""
|
133 |
|
134 |
+
#: ../link-library-admin.php:374 ../link-library-admin.php:646
|
135 |
msgid ""
|
136 |
"Please make sure that the /wp-content/uploads/ directory has write "
|
137 |
"permissions to use this functionality."
|
138 |
msgstr ""
|
139 |
|
140 |
+
#: ../link-library-admin.php:464
|
141 |
+
msgid "Basic Details"
|
142 |
msgstr ""
|
143 |
|
144 |
+
#: ../link-library-admin.php:466 ../link-library-admin.php:3342
|
145 |
+
#: ../link-library-admin.php:3471 ../render-link-library-sc.php:986
|
146 |
+
msgid "Image"
|
147 |
+
msgstr ""
|
148 |
+
|
149 |
+
#: ../link-library-admin.php:471
|
150 |
+
msgid "Full-Page Content"
|
151 |
+
msgstr ""
|
152 |
+
|
153 |
+
#: ../link-library-admin.php:474
|
154 |
+
msgid "Additional Parameters"
|
155 |
+
msgstr ""
|
156 |
+
|
157 |
+
#: ../link-library-admin.php:484
|
158 |
msgid "Link Library: Missing Thumbshots API Key"
|
159 |
msgstr ""
|
160 |
|
161 |
+
#: ../link-library-admin.php:484
|
162 |
msgid ""
|
163 |
"One of your link libraries is configured to use Thumbshots for link "
|
164 |
"thumbails, but you have not entered your Thumbshots.com API Key. Please "
|
166 |
"in the Link Library admin panel."
|
167 |
msgstr ""
|
168 |
|
169 |
+
#: ../link-library-admin.php:484
|
170 |
msgid "Jump to Link Library admin"
|
171 |
msgstr ""
|
172 |
|
173 |
+
#: ../link-library-admin.php:489
|
174 |
msgid "Link Library: No Link Categories on your site"
|
175 |
msgstr ""
|
176 |
|
177 |
+
#: ../link-library-admin.php:489
|
178 |
msgid ""
|
179 |
"There are currently no link categories defined in your WordPress site. Link "
|
180 |
"Library will not work correctly without categories. Please create at least "
|
182 |
"category."
|
183 |
msgstr ""
|
184 |
|
185 |
+
#: ../link-library-admin.php:544
|
186 |
msgid "Links to moderate"
|
187 |
msgstr ""
|
188 |
|
189 |
+
#: ../link-library-admin.php:562
|
190 |
+
msgid "Global Options"
|
|
|
191 |
msgstr ""
|
192 |
|
193 |
+
#: ../link-library-admin.php:564
|
194 |
+
msgid "Configurations"
|
195 |
msgstr ""
|
196 |
|
197 |
+
#: ../link-library-admin.php:564
|
198 |
+
msgid "Library Configurations"
|
199 |
msgstr ""
|
200 |
|
201 |
+
#: ../link-library-admin.php:567 ../link-library-admin.php:569
|
202 |
+
#: ../link-library-admin.php:890
|
203 |
msgid "Moderate"
|
204 |
msgstr ""
|
205 |
|
206 |
+
#: ../link-library-admin.php:572 ../link-library-admin.php:895
|
207 |
+
#: ../link-library-admin.php:2140
|
208 |
msgid "Stylesheet"
|
209 |
msgstr ""
|
210 |
|
211 |
+
#: ../link-library-admin.php:574 ../link-library-admin.php:604
|
212 |
+
msgid "Link checking tools"
|
213 |
msgstr ""
|
214 |
|
215 |
+
#: ../link-library-admin.php:576 ../link-library-admin.php:903
|
216 |
msgid "FAQ"
|
217 |
msgstr ""
|
218 |
|
219 |
+
#: ../link-library-admin.php:602
|
|
|
|
|
|
|
|
|
220 |
msgid "Links awaiting moderation"
|
221 |
msgstr ""
|
222 |
|
223 |
+
#: ../link-library-admin.php:603 ../link-library-admin.php:2142
|
224 |
msgid "Editor"
|
225 |
msgstr ""
|
226 |
|
227 |
+
#: ../link-library-admin.php:605
|
228 |
+
msgid "Save"
|
229 |
msgstr ""
|
230 |
|
231 |
+
#: ../link-library-admin.php:690
|
232 |
msgid "Thumbnails successfully generated!"
|
233 |
msgstr ""
|
234 |
|
235 |
+
#: ../link-library-admin.php:692
|
236 |
msgid "Favicons successfully generated!"
|
237 |
msgstr ""
|
238 |
|
239 |
+
#: ../link-library-admin.php:694 ../link-library-admin.php:4871
|
240 |
msgid "Thumbnail successfully generated for"
|
241 |
msgstr ""
|
242 |
|
243 |
+
#: ../link-library-admin.php:696 ../link-library-admin.php:4907
|
244 |
msgid "Favicon successfully generated for"
|
245 |
msgstr ""
|
246 |
|
247 |
+
#: ../link-library-admin.php:727
|
248 |
msgid "General Settings Saved"
|
249 |
msgstr ""
|
250 |
|
251 |
+
#: ../link-library-admin.php:729 ../link-library-admin.php:795
|
|
|
|
|
|
|
|
|
252 |
msgid ""
|
253 |
"Link Library plugin directory needs to be writable to perform this action"
|
254 |
msgstr ""
|
255 |
|
256 |
+
#: ../link-library-admin.php:731
|
257 |
+
msgid "row(s) found"
|
258 |
+
msgstr ""
|
259 |
+
|
260 |
+
#: ../link-library-admin.php:731 ../link-library-admin.php:807
|
261 |
+
msgid "link(s) imported"
|
262 |
+
msgstr ""
|
263 |
+
|
264 |
+
#: ../link-library-admin.php:731 ../link-library-admin.php:807
|
265 |
+
msgid "link(s) updated"
|
266 |
+
msgstr ""
|
267 |
+
|
268 |
+
#: ../link-library-admin.php:779 ../link-library-admin.php:2662
|
269 |
msgid "Library #"
|
270 |
msgstr ""
|
271 |
|
272 |
+
#: ../link-library-admin.php:779
|
273 |
msgid "Updated"
|
274 |
msgstr ""
|
275 |
|
276 |
+
#: ../link-library-admin.php:783
|
277 |
msgid "Included Category ID"
|
278 |
msgstr ""
|
279 |
|
280 |
+
#: ../link-library-admin.php:783 ../link-library-admin.php:787
|
281 |
msgid "is invalid. Please check the ID in the Link Category editor."
|
282 |
msgstr ""
|
283 |
|
284 |
+
#: ../link-library-admin.php:787
|
285 |
msgid "Excluded Category ID"
|
286 |
msgstr ""
|
287 |
|
288 |
+
#: ../link-library-admin.php:791
|
289 |
msgid "Invalid column count for link on row. Compare against template."
|
290 |
msgstr ""
|
291 |
|
292 |
+
#: ../link-library-admin.php:799
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
293 |
msgid "Library Settings imported successfully"
|
294 |
msgstr ""
|
295 |
|
296 |
+
#: ../link-library-admin.php:803
|
297 |
msgid "Library Settings Upload Failed"
|
298 |
msgstr ""
|
299 |
|
300 |
+
#: ../link-library-admin.php:811
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
301 |
msgid "Links are missing categories"
|
302 |
msgstr ""
|
303 |
|
304 |
+
#: ../link-library-admin.php:824
|
305 |
msgid "Link(s) Approved"
|
306 |
msgstr ""
|
307 |
|
308 |
+
#: ../link-library-admin.php:826
|
309 |
msgid "Link(s) Deleted"
|
310 |
msgstr ""
|
311 |
|
312 |
+
#: ../link-library-admin.php:837
|
313 |
msgid "Stylesheet updated"
|
314 |
msgstr ""
|
315 |
|
316 |
+
#: ../link-library-admin.php:839
|
317 |
msgid "Stylesheet reset to original state"
|
318 |
msgstr ""
|
319 |
|
320 |
+
#: ../link-library-admin.php:846
|
321 |
msgid "Settings updated"
|
322 |
msgstr ""
|
323 |
|
324 |
+
#: ../link-library-admin.php:880
|
325 |
+
msgid "General Options"
|
326 |
+
msgstr ""
|
327 |
+
|
328 |
+
#: ../link-library-admin.php:885
|
329 |
+
msgid "Library Settings"
|
330 |
+
msgstr ""
|
331 |
+
|
332 |
+
#: ../link-library-admin.php:900
|
333 |
msgid "Reciprocal Check"
|
334 |
msgstr ""
|
335 |
|
336 |
+
#: ../link-library-admin.php:1058
|
337 |
msgid "General"
|
338 |
msgstr ""
|
339 |
|
340 |
+
#: ../link-library-admin.php:1059
|
341 |
+
msgid "Single Item Layout"
|
342 |
+
msgstr ""
|
343 |
+
|
344 |
+
#: ../link-library-admin.php:1060
|
345 |
msgid "Images"
|
346 |
msgstr ""
|
347 |
|
348 |
+
#: ../link-library-admin.php:1061
|
349 |
msgid "Bookmarklet"
|
350 |
msgstr ""
|
351 |
|
352 |
+
#: ../link-library-admin.php:1062
|
353 |
msgid "Moderation"
|
354 |
msgstr ""
|
355 |
|
356 |
+
#: ../link-library-admin.php:1063
|
357 |
msgid "Hide Donation"
|
358 |
msgstr ""
|
359 |
|
360 |
+
#: ../link-library-admin.php:1064
|
361 |
+
msgid "Import/Export Links"
|
362 |
+
msgstr ""
|
363 |
+
|
364 |
+
#: ../link-library-admin.php:1071
|
365 |
msgid "Usage"
|
366 |
msgstr ""
|
367 |
|
368 |
+
#: ../link-library-admin.php:1072
|
369 |
msgid "Common"
|
370 |
msgstr ""
|
371 |
|
372 |
+
#: ../link-library-admin.php:1073
|
373 |
msgid "Categories"
|
374 |
msgstr ""
|
375 |
|
376 |
+
#: ../link-library-admin.php:1074
|
377 |
msgid "Links"
|
378 |
msgstr ""
|
379 |
|
380 |
+
#: ../link-library-admin.php:1075
|
381 |
msgid "Advanced"
|
382 |
msgstr ""
|
383 |
|
384 |
+
#: ../link-library-admin.php:1076
|
385 |
msgid "Pop-Ups"
|
386 |
msgstr ""
|
387 |
|
388 |
+
#: ../link-library-admin.php:1077
|
389 |
msgid "RSS Display"
|
390 |
msgstr ""
|
391 |
|
392 |
+
#: ../link-library-admin.php:1078
|
393 |
msgid "Thumbnails"
|
394 |
msgstr ""
|
395 |
|
396 |
+
#: ../link-library-admin.php:1079
|
397 |
msgid "RSS Feed"
|
398 |
msgstr ""
|
399 |
|
400 |
+
#: ../link-library-admin.php:1080 ../link-library-admin.php:4093
|
401 |
+
#: ../link-library-admin.php:4102
|
402 |
msgid "Search"
|
403 |
msgstr ""
|
404 |
|
405 |
+
#: ../link-library-admin.php:1081
|
406 |
msgid "User Submission"
|
407 |
msgstr ""
|
408 |
|
409 |
+
#: ../link-library-admin.php:1082
|
410 |
+
msgid "Import/Export Settings"
|
411 |
msgstr ""
|
412 |
|
413 |
+
#: ../link-library-admin.php:1139 ../link-library-admin.php:1670
|
414 |
+
#: ../link-library-admin.php:1934 ../link-library-admin.php:2051
|
415 |
+
#: ../link-library-admin.php:2087
|
416 |
msgid "Not allowed"
|
417 |
msgstr ""
|
418 |
|
419 |
+
#: ../link-library-admin.php:1981 ../link-library-admin.php:2024
|
420 |
+
#: ../usersubmission.php:317
|
421 |
msgid "Message generated by"
|
422 |
msgstr ""
|
423 |
|
424 |
+
#: ../link-library-admin.php:2132 ../link-library-admin.php:5381
|
425 |
msgid "Update channel"
|
426 |
msgstr ""
|
427 |
|
428 |
+
#: ../link-library-admin.php:2134 ../link-library-admin.php:5383
|
429 |
msgid "Standard channel - Updates as they are released"
|
430 |
msgstr ""
|
431 |
|
432 |
+
#: ../link-library-admin.php:2135 ../link-library-admin.php:5384
|
433 |
msgid "Monthly Channel - Updates once per month"
|
434 |
msgstr ""
|
435 |
|
436 |
+
#: ../link-library-admin.php:2140 ../link-library-admin.php:2141
|
437 |
msgid ""
|
438 |
"The stylesheet is now defined and stored using the Link Library admin "
|
439 |
"interface. This avoids problems with updates from one version to the next."
|
440 |
msgstr ""
|
441 |
|
442 |
+
#: ../link-library-admin.php:2146
|
443 |
msgid "Number of Libraries"
|
444 |
msgstr ""
|
445 |
|
446 |
+
#: ../link-library-admin.php:2154
|
447 |
msgid "Category selection method"
|
448 |
msgstr ""
|
449 |
|
450 |
+
#: ../link-library-admin.php:2156
|
451 |
msgid "Comma-separated ID list"
|
452 |
msgstr ""
|
453 |
|
454 |
+
#: ../link-library-admin.php:2157
|
455 |
msgid "Multi-select List"
|
456 |
msgstr ""
|
457 |
|
458 |
+
#: ../link-library-admin.php:2161 ../link-library-admin.php:2162
|
459 |
msgid ""
|
460 |
"Enter comma-separate list of pages on which the Link Library stylesheet and "
|
461 |
"scripts should be loaded. Primarily used if you display Link Library using "
|
462 |
"the API"
|
463 |
msgstr ""
|
464 |
|
465 |
+
#: ../link-library-admin.php:2161
|
466 |
msgid "Additional pages to load styles and scripts"
|
467 |
msgstr ""
|
468 |
|
469 |
+
#: ../link-library-admin.php:2167
|
470 |
msgid "Debug Mode"
|
471 |
msgstr ""
|
472 |
|
473 |
+
#: ../link-library-admin.php:2172 ../link-library-admin.php:2173
|
474 |
+
#: ../link-library-admin.php:2178 ../link-library-admin.php:2179
|
475 |
msgid ""
|
476 |
"This function is only possible when showing one category at a time and while "
|
477 |
"the default category is not shown."
|
478 |
msgstr ""
|
479 |
|
480 |
+
#: ../link-library-admin.php:2172
|
481 |
msgid "Page Title Prefix"
|
482 |
msgstr ""
|
483 |
|
484 |
+
#: ../link-library-admin.php:2178
|
485 |
msgid "Page Title Suffix"
|
486 |
msgstr ""
|
487 |
|
488 |
+
#: ../link-library-admin.php:2184 ../link-library-admin.php:2185
|
489 |
msgid ""
|
490 |
"Path for images files that are uploaded manually or generated through "
|
491 |
"thumbnail generation service"
|
492 |
msgstr ""
|
493 |
|
494 |
+
#: ../link-library-admin.php:2184
|
495 |
msgid "Link Image File Path"
|
496 |
msgstr ""
|
497 |
|
498 |
+
#: ../link-library-admin.php:2187
|
499 |
msgid "Absolute"
|
500 |
msgstr ""
|
501 |
|
502 |
+
#: ../link-library-admin.php:2188
|
503 |
msgid "Relative"
|
504 |
msgstr ""
|
505 |
|
506 |
+
#: ../link-library-admin.php:2192
|
507 |
msgid "Thumbnail Generator"
|
508 |
msgstr ""
|
509 |
|
510 |
+
#: ../link-library-admin.php:2203 ../link-library-admin.php:2204
|
511 |
msgid "API Key for Thumbshots.com thumbnail generation accounts"
|
512 |
msgstr ""
|
513 |
|
514 |
+
#: ../link-library-admin.php:2203
|
515 |
msgid "Thumbshots API Key"
|
516 |
msgstr ""
|
517 |
|
518 |
+
#: ../link-library-admin.php:2211
|
519 |
msgid "Robothumb Thumbnail size"
|
520 |
msgstr ""
|
521 |
|
522 |
+
#: ../link-library-admin.php:2224
|
523 |
msgid "Links Date Format"
|
524 |
msgstr ""
|
525 |
|
526 |
+
#: ../link-library-admin.php:2224
|
527 |
msgid "Help"
|
528 |
msgstr ""
|
529 |
|
530 |
+
#: ../link-library-admin.php:2231 ../link-library-admin.php:2232
|
531 |
msgid "Enter list of additional link protocols, seperated by commas"
|
532 |
msgstr ""
|
533 |
|
534 |
+
#: ../link-library-admin.php:2231
|
535 |
msgid "Additional protocols"
|
536 |
msgstr ""
|
537 |
|
538 |
+
#: ../link-library-admin.php:2235
|
539 |
msgid "Time before clearing RSS display cache (in seconds)"
|
540 |
msgstr ""
|
541 |
|
542 |
+
#: ../link-library-admin.php:2291 ../link-library-admin.php:2292
|
|
|
|
|
|
|
|
|
543 |
msgid "Custom full URL for expand icon. Uses default image if left empty."
|
544 |
msgstr ""
|
545 |
|
546 |
+
#: ../link-library-admin.php:2291
|
547 |
msgid "Expand Icon Image"
|
548 |
msgstr ""
|
549 |
|
550 |
+
#: ../link-library-admin.php:2298 ../link-library-admin.php:2299
|
551 |
msgid "Custom full URL for collapse icon. Uses default image if left empty."
|
552 |
msgstr ""
|
553 |
|
554 |
+
#: ../link-library-admin.php:2298
|
555 |
msgid "Collapse Icon Image"
|
556 |
msgstr ""
|
557 |
|
558 |
+
#: ../link-library-admin.php:2313
|
559 |
msgid "Add new links to your site with this bookmarklet."
|
560 |
msgstr ""
|
561 |
|
562 |
+
#: ../link-library-admin.php:2314
|
563 |
msgid ""
|
564 |
"To use this feature, drag-and-drop the button below to your favorite / "
|
565 |
"bookmark toolbar."
|
566 |
msgstr ""
|
567 |
|
568 |
+
#: ../link-library-admin.php:2315
|
569 |
msgid "Add to Links"
|
570 |
msgstr ""
|
571 |
|
572 |
+
#: ../link-library-admin.php:2328
|
573 |
msgid ""
|
574 |
"Approval and rejection e-mail functionality will only work correctly if the "
|
575 |
"submitter e-mail field is displayed on the user link submission form"
|
576 |
msgstr ""
|
577 |
|
578 |
+
#: ../link-library-admin.php:2332 ../link-library-admin.php:2333
|
|
|
|
|
|
|
|
|
579 |
msgid ""
|
580 |
"URL that user will be redirected to after submitting new link. When used, "
|
581 |
"the short code [link-library-addlinkcustommsg] should be placed on the "
|
582 |
"destination page."
|
583 |
msgstr ""
|
584 |
|
585 |
+
#: ../link-library-admin.php:2332
|
586 |
msgid "Link Acknowledgement URL"
|
587 |
msgstr ""
|
588 |
|
589 |
+
#: ../link-library-admin.php:2338
|
590 |
msgid ""
|
591 |
"Title of e-mail sent to site admin when new links are submitted. Use "
|
592 |
"%linkname% as a variable to be replaced by the actual link name"
|
593 |
msgstr ""
|
594 |
|
595 |
+
#: ../link-library-admin.php:2338
|
596 |
msgid "Moderation Notification Title"
|
597 |
msgstr ""
|
598 |
|
599 |
+
#: ../link-library-admin.php:2344
|
600 |
msgid ""
|
601 |
"Will send a confirmation e-mail to link submitter if they provided their "
|
602 |
"contact information"
|
603 |
msgstr ""
|
604 |
|
605 |
+
#: ../link-library-admin.php:2344
|
606 |
msgid "E-mail submitter on link approval or rejection"
|
607 |
msgstr ""
|
608 |
|
609 |
+
#: ../link-library-admin.php:2349
|
610 |
msgid "Suppress Link Library message in e-mail footer"
|
611 |
msgstr ""
|
612 |
|
613 |
+
#: ../link-library-admin.php:2354
|
614 |
msgid "Only use first part of submitter name"
|
615 |
msgstr ""
|
616 |
|
617 |
+
#: ../link-library-admin.php:2359
|
618 |
msgid ""
|
619 |
"The name of the e-mail account that the approval e-mail will be sent from"
|
620 |
msgstr ""
|
621 |
|
622 |
+
#: ../link-library-admin.php:2359
|
623 |
msgid "Moderator Name"
|
624 |
msgstr ""
|
625 |
|
626 |
+
#: ../link-library-admin.php:2365
|
627 |
msgid "The e-mail address that the approval e-mail will be sent from"
|
628 |
msgstr ""
|
629 |
|
630 |
+
#: ../link-library-admin.php:2365
|
631 |
msgid "Moderator E-mail"
|
632 |
msgstr ""
|
633 |
|
634 |
+
#: ../link-library-admin.php:2371
|
635 |
msgid ""
|
636 |
"Title of approval e-mail. Use %linkname% as a variable to be replaced by the "
|
637 |
"actual link name"
|
638 |
msgstr ""
|
639 |
|
640 |
+
#: ../link-library-admin.php:2371
|
641 |
msgid "Approval e-mail title"
|
642 |
msgstr ""
|
643 |
|
644 |
+
#: ../link-library-admin.php:2377
|
645 |
msgid ""
|
646 |
"Body of approval e-mail. Use %linkname% as a variable to be replaced by the "
|
647 |
"actual link name, %submittername% for the submitter name and %linkurl% for "
|
648 |
"the link address"
|
649 |
msgstr ""
|
650 |
|
651 |
+
#: ../link-library-admin.php:2377
|
652 |
msgid "Approval e-mail body"
|
653 |
msgstr ""
|
654 |
|
655 |
+
#: ../link-library-admin.php:2383
|
656 |
msgid ""
|
657 |
"Title of rejection e-mail. Use %linkname% as a variable to be replaced by "
|
658 |
"the actual link name"
|
659 |
msgstr ""
|
660 |
|
661 |
+
#: ../link-library-admin.php:2383
|
662 |
msgid "Rejection e-mail title"
|
663 |
msgstr ""
|
664 |
|
665 |
+
#: ../link-library-admin.php:2389
|
666 |
msgid ""
|
667 |
"Body of rejection e-mail. Use %linkname% as a variable to be replaced by the "
|
668 |
"actual link name, %submittername% for the submitter name and %linkurl% for "
|
669 |
"the link address"
|
670 |
msgstr ""
|
671 |
|
672 |
+
#: ../link-library-admin.php:2389
|
673 |
msgid "Rejection e-mail body"
|
674 |
msgstr ""
|
675 |
|
676 |
+
#: ../link-library-admin.php:2402
|
677 |
msgid ""
|
678 |
"The following option allows you to hide the Donate button and Support the "
|
679 |
"Author section in the Link Library Admin pages. If you enjoy this plugin and "
|
682 |
"other elements."
|
683 |
msgstr ""
|
684 |
|
685 |
+
#: ../link-library-admin.php:2405
|
686 |
msgid "Hide Donation and Support Links"
|
687 |
msgstr ""
|
688 |
|
689 |
+
#: ../link-library-admin.php:2420
|
690 |
+
msgid "Export all links to a CSV file"
|
691 |
+
msgstr ""
|
692 |
+
|
693 |
+
#: ../link-library-admin.php:2422
|
694 |
+
msgid "Export All Links"
|
695 |
+
msgstr ""
|
696 |
+
|
697 |
+
#: ../link-library-admin.php:2429
|
698 |
+
msgid ""
|
699 |
+
"Allows for links to be added in batch to the Wordpress links database. CSV "
|
700 |
+
"file needs to follow template for column layout."
|
701 |
+
msgstr ""
|
702 |
+
|
703 |
+
#: ../link-library-admin.php:2429
|
704 |
+
msgid "CSV file to upload to import links"
|
705 |
+
msgstr ""
|
706 |
+
|
707 |
+
#: ../link-library-admin.php:2429
|
708 |
+
msgid "file template"
|
709 |
+
msgstr ""
|
710 |
+
|
711 |
+
#: ../link-library-admin.php:2432
|
712 |
+
msgid "Import Links from CSV"
|
713 |
+
msgstr ""
|
714 |
+
|
715 |
+
#: ../link-library-admin.php:2436
|
716 |
+
msgid "First row contains column headers"
|
717 |
+
msgstr ""
|
718 |
+
|
719 |
+
#: ../link-library-admin.php:2440 ../link-library-admin.php:2470
|
720 |
+
msgid "Update items when URL is identical"
|
721 |
+
msgstr ""
|
722 |
+
|
723 |
+
#: ../link-library-admin.php:2448
|
724 |
+
msgid "Import links from site pages"
|
725 |
+
msgstr ""
|
726 |
+
|
727 |
+
#: ../link-library-admin.php:2449
|
728 |
+
msgid "All Pages and Posts"
|
729 |
+
msgstr ""
|
730 |
+
|
731 |
+
#: ../link-library-admin.php:2450
|
732 |
+
msgid "All Pages, Posts and Custom Post Types"
|
733 |
+
msgstr ""
|
734 |
+
|
735 |
+
#: ../link-library-admin.php:2451
|
736 |
+
msgid "Specific Page"
|
737 |
+
msgstr ""
|
738 |
+
|
739 |
+
#: ../link-library-admin.php:2455
|
740 |
+
msgid "Specific Post"
|
741 |
+
msgstr ""
|
742 |
+
|
743 |
+
#: ../link-library-admin.php:2465
|
744 |
+
msgid "Specific "
|
745 |
+
msgstr ""
|
746 |
+
|
747 |
+
#: ../link-library-admin.php:2484
|
748 |
+
msgid "Import Links from Site"
|
749 |
+
msgstr ""
|
750 |
+
|
751 |
+
#: ../link-library-admin.php:2494
|
752 |
msgid "Save Settings"
|
753 |
msgstr ""
|
754 |
|
755 |
+
#: ../link-library-admin.php:2503
|
756 |
msgid "Update Settings"
|
757 |
msgstr ""
|
758 |
|
759 |
+
#: ../link-library-admin.php:2514 ../link-library-admin.php:3183
|
760 |
+
#: ../link-library-admin.php:3495 ../link-library-admin.php:4286
|
761 |
+
#: ../usersubmission.php:295 ../usersubmission.php:352
|
762 |
msgid "Link Name"
|
763 |
msgstr ""
|
764 |
|
765 |
+
#: ../link-library-admin.php:2515 ../link-library-admin.php:4321
|
766 |
+
#: ../link-library-defaults.php:123 ../usersubmission.php:301
|
767 |
+
#: ../usersubmission.php:371
|
768 |
msgid "Link Category"
|
769 |
msgstr ""
|
770 |
|
771 |
+
#: ../link-library-admin.php:2516
|
772 |
msgid "Link URL"
|
773 |
msgstr ""
|
774 |
|
775 |
+
#: ../link-library-admin.php:2517 ../link-library-admin.php:3183
|
776 |
+
#: ../link-library-admin.php:3540 ../link-library-admin.php:4400
|
777 |
+
#: ../link-library-defaults.php:124 ../usersubmission.php:298
|
778 |
+
#: ../usersubmission.php:360
|
779 |
msgid "Link Description"
|
780 |
msgstr ""
|
781 |
|
782 |
+
#: ../link-library-admin.php:2560
|
783 |
msgid "No Links Found to Moderate"
|
784 |
msgstr ""
|
785 |
|
786 |
+
#: ../link-library-admin.php:2567
|
787 |
msgid "Check All"
|
788 |
msgstr ""
|
789 |
|
790 |
+
#: ../link-library-admin.php:2568
|
791 |
msgid "Uncheck All"
|
792 |
msgstr ""
|
793 |
|
794 |
+
#: ../link-library-admin.php:2570
|
795 |
msgid "Approve Selected Items"
|
796 |
msgstr ""
|
797 |
|
798 |
+
#: ../link-library-admin.php:2571
|
799 |
msgid "Delete Selected Items"
|
800 |
msgstr ""
|
801 |
|
802 |
+
#: ../link-library-admin.php:2594
|
803 |
msgid ""
|
804 |
"If the stylesheet editor is empty after upgrading, reset to the default "
|
805 |
"stylesheet using the button below or copy/paste your backup stylesheet into "
|
806 |
"the editor."
|
807 |
msgstr ""
|
808 |
|
809 |
+
#: ../link-library-admin.php:2601
|
810 |
msgid "Submit"
|
811 |
msgstr ""
|
812 |
|
813 |
+
#: ../link-library-admin.php:2601
|
814 |
msgid "Reset to default"
|
815 |
msgstr ""
|
816 |
|
817 |
+
#: ../link-library-admin.php:2612
|
818 |
msgid "Select Current Library Settings"
|
819 |
msgstr ""
|
820 |
|
821 |
+
#: ../link-library-admin.php:2629
|
822 |
msgid "Go"
|
823 |
msgstr ""
|
824 |
|
825 |
+
#: ../link-library-admin.php:2631
|
826 |
msgid "Copy from:"
|
827 |
msgstr ""
|
828 |
|
829 |
+
#: ../link-library-admin.php:2647
|
830 |
msgid "Copy"
|
831 |
msgstr ""
|
832 |
|
833 |
+
#: ../link-library-admin.php:2661 ../link-library-admin.php:2664
|
834 |
+
#: ../link-library-admin.php:2668
|
835 |
msgid ""
|
836 |
"Link Library Supports the Creation of an unlimited number of configurations "
|
837 |
"to display link lists on your site"
|
838 |
msgstr ""
|
839 |
|
840 |
+
#: ../link-library-admin.php:2665
|
841 |
msgid "Library Name"
|
842 |
msgstr ""
|
843 |
|
844 |
+
#: ../link-library-admin.php:2667
|
845 |
msgid "Feature"
|
846 |
msgstr ""
|
847 |
|
848 |
+
#: ../link-library-admin.php:2669
|
849 |
msgid "Code to insert on a Wordpress page"
|
850 |
msgstr ""
|
851 |
|
852 |
+
#: ../link-library-admin.php:2676
|
853 |
msgid "Display basic link library"
|
854 |
msgstr ""
|
855 |
|
856 |
+
#: ../link-library-admin.php:2682
|
857 |
msgid "Display list of link categories"
|
858 |
msgstr ""
|
859 |
|
860 |
+
#: ../link-library-admin.php:2688
|
861 |
msgid "Display search box"
|
862 |
msgstr ""
|
863 |
|
864 |
+
#: ../link-library-admin.php:2694
|
865 |
msgid "Display link submission form"
|
866 |
msgstr ""
|
867 |
|
868 |
+
#: ../link-library-admin.php:2701
|
869 |
#, php-format
|
870 |
msgid ""
|
871 |
"You are about to Delete Library #'%s'\n"
|
872 |
" 'Cancel' to stop, 'OK' to delete."
|
873 |
msgstr ""
|
874 |
|
875 |
+
#: ../link-library-admin.php:2701
|
876 |
msgid "Delete Library"
|
877 |
msgstr ""
|
878 |
|
879 |
+
#: ../link-library-admin.php:2702
|
880 |
#, php-format
|
881 |
msgid ""
|
882 |
"You are about to reset Library '%s'\n"
|
883 |
" 'Cancel' to stop, 'OK' to reset."
|
884 |
msgstr ""
|
885 |
|
886 |
+
#: ../link-library-admin.php:2702
|
887 |
msgid "Reset current Library"
|
888 |
msgstr ""
|
889 |
|
890 |
+
#: ../link-library-admin.php:2703
|
891 |
#, php-format
|
892 |
msgid ""
|
893 |
"You are about to reset Library '%s' for a table layout\n"
|
894 |
" 'Cancel' to stop, 'OK' to reset."
|
895 |
msgstr ""
|
896 |
|
897 |
+
#: ../link-library-admin.php:2703
|
898 |
msgid "Reset current Library for table layout"
|
899 |
msgstr ""
|
900 |
|
901 |
+
#: ../link-library-admin.php:2734
|
902 |
+
msgid "No link categories! Create some!"
|
903 |
+
msgstr ""
|
904 |
+
|
905 |
+
#: ../link-library-admin.php:2751
|
906 |
msgid "Current Library Name"
|
907 |
msgstr ""
|
908 |
|
909 |
+
#: ../link-library-admin.php:2758 ../link-library-admin.php:2766
|
910 |
msgid "Leave Empty to see all categories"
|
911 |
msgstr ""
|
912 |
|
913 |
+
#: ../link-library-admin.php:2758 ../link-library-admin.php:2766
|
914 |
+
#: ../link-library-admin.php:2786 ../link-library-admin.php:2790
|
915 |
msgid "Enter list of comma-separated"
|
916 |
msgstr ""
|
917 |
|
918 |
+
#: ../link-library-admin.php:2758 ../link-library-admin.php:2766
|
919 |
msgid "numeric category IDs"
|
920 |
msgstr ""
|
921 |
|
922 |
+
#: ../link-library-admin.php:2758
|
923 |
msgid ""
|
924 |
"To find the IDs, go to the Link Categories admin page, place the mouse above "
|
925 |
"a category name and look for its ID in the address shown in your browsers "
|
926 |
"status bar. For example"
|
927 |
msgstr ""
|
928 |
|
929 |
+
#: ../link-library-admin.php:2760
|
930 |
msgid "Categories to be displayed (Empty=All)"
|
931 |
msgstr ""
|
932 |
|
933 |
+
#: ../link-library-admin.php:2762
|
934 |
msgid "Categories to be displayed"
|
935 |
msgstr ""
|
936 |
|
937 |
+
#: ../link-library-admin.php:2766 ../link-library-admin.php:2786
|
938 |
+
#: ../link-library-admin.php:2790
|
939 |
msgid "For example"
|
940 |
msgstr ""
|
941 |
|
942 |
+
#: ../link-library-admin.php:2779
|
|
|
|
|
|
|
|
|
943 |
msgid "Show all categories"
|
944 |
msgstr ""
|
945 |
|
946 |
+
#: ../link-library-admin.php:2786 ../link-library-admin.php:2790
|
947 |
msgid "numeric category IDs that should not be shown"
|
948 |
msgstr ""
|
949 |
|
950 |
+
#: ../link-library-admin.php:2787
|
951 |
msgid "Categories to be excluded"
|
952 |
msgstr ""
|
953 |
|
954 |
+
#: ../link-library-admin.php:2799
|
955 |
msgid "No Exclusions"
|
956 |
msgstr ""
|
957 |
|
958 |
+
#: ../link-library-admin.php:2806 ../link-library-admin.php:2809
|
959 |
msgid "Only show one category of links at a time"
|
960 |
msgstr ""
|
961 |
|
962 |
+
#: ../link-library-admin.php:2807
|
963 |
msgid "Only show one category at a time"
|
964 |
msgstr ""
|
965 |
|
966 |
+
#: ../link-library-admin.php:2812
|
967 |
msgid ""
|
968 |
"Select if AJAX should be used to only reload the list of links without "
|
969 |
"reloading the whole page or HTML GET to reload entire page with a new link. "
|
971 |
"correctly."
|
972 |
msgstr ""
|
973 |
|
974 |
+
#: ../link-library-admin.php:2812
|
975 |
msgid "Switching Method"
|
976 |
msgstr ""
|
977 |
|
978 |
+
#: ../link-library-admin.php:2830
|
979 |
msgid ""
|
980 |
"Default category to be shown when only showing one at a time (numeric ID)"
|
981 |
msgstr ""
|
982 |
|
983 |
+
#: ../link-library-admin.php:2835
|
984 |
+
msgid "Hide category on start in single cat mode"
|
985 |
msgstr ""
|
986 |
|
987 |
+
#: ../link-library-admin.php:2840 ../link-library-admin.php:2843
|
988 |
msgid "File path is relative to Link Library plugin directory"
|
989 |
msgstr ""
|
990 |
|
991 |
+
#: ../link-library-admin.php:2841
|
992 |
msgid "Icon to display when performing AJAX queries"
|
993 |
msgstr ""
|
994 |
|
995 |
+
#: ../link-library-admin.php:2852 ../link-library-admin.php:2855
|
996 |
msgid "Only show a limited number of links and add page navigation links"
|
997 |
msgstr ""
|
998 |
|
999 |
+
#: ../link-library-admin.php:2853
|
1000 |
msgid "Paginate Results"
|
1001 |
msgstr ""
|
1002 |
|
1003 |
+
#: ../link-library-admin.php:2858 ../link-library-admin.php:2861
|
1004 |
msgid "Number of Links to be Displayed per Page in Pagination Mode"
|
1005 |
msgstr ""
|
1006 |
|
1007 |
+
#: ../link-library-admin.php:2859
|
1008 |
msgid "Links per Page"
|
1009 |
msgstr ""
|
1010 |
|
1011 |
+
#: ../link-library-admin.php:2867
|
1012 |
msgid "Pagination Position"
|
1013 |
msgstr ""
|
1014 |
|
1015 |
+
#: ../link-library-admin.php:2871
|
1016 |
msgid "After Links"
|
1017 |
msgstr ""
|
1018 |
|
1019 |
+
#: ../link-library-admin.php:2872 ../link-library-admin.php:2926
|
1020 |
msgid "Before Links"
|
1021 |
msgstr ""
|
1022 |
|
1023 |
+
#: ../link-library-admin.php:2876
|
1024 |
msgid "Hide Results if Empty"
|
1025 |
msgstr ""
|
1026 |
|
1027 |
+
#: ../link-library-admin.php:2887
|
1028 |
msgid "Enable Permalinks"
|
1029 |
msgstr ""
|
1030 |
|
1031 |
+
#: ../link-library-admin.php:2893
|
1032 |
msgid "Permalinks Page"
|
1033 |
msgstr ""
|
1034 |
|
1035 |
+
#: ../link-library-admin.php:2901
|
1036 |
+
msgid "Permalink Top Page Text"
|
1037 |
+
msgstr ""
|
1038 |
+
|
1039 |
+
#: ../link-library-admin.php:2909
|
1040 |
+
msgid "Category links in permalinks mode"
|
1041 |
+
msgstr ""
|
1042 |
+
|
1043 |
+
#: ../link-library-admin.php:2915
|
1044 |
+
msgid "Show breadcrumbs in permalinks mode"
|
1045 |
+
msgstr ""
|
1046 |
+
|
1047 |
+
#: ../link-library-admin.php:2925
|
1048 |
msgid "Display alphabetic cat filter"
|
1049 |
msgstr ""
|
1050 |
|
1051 |
+
#: ../link-library-admin.php:2926
|
1052 |
msgid "Do not display"
|
1053 |
msgstr ""
|
1054 |
|
1055 |
+
#: ../link-library-admin.php:2926
|
1056 |
msgid "Before Categories"
|
1057 |
msgstr ""
|
1058 |
|
1059 |
+
#: ../link-library-admin.php:2926
|
1060 |
msgid "Before Categories and Links"
|
1061 |
msgstr ""
|
1062 |
|
1063 |
+
#: ../link-library-admin.php:2933
|
1064 |
msgid "Auto-select first alphabetic cat item"
|
1065 |
msgstr ""
|
1066 |
|
1067 |
+
#: ../link-library-admin.php:2937
|
1068 |
msgid "Display ALL box in alphabetic cat filter"
|
1069 |
msgstr ""
|
1070 |
|
1071 |
+
#: ../link-library-admin.php:2939
|
1072 |
msgid "Cat filter label"
|
1073 |
msgstr ""
|
1074 |
|
1075 |
+
#: ../link-library-admin.php:2943
|
1076 |
msgid "Only display links submitted by current user"
|
1077 |
msgstr ""
|
1078 |
|
1079 |
+
#: ../link-library-admin.php:2988
|
1080 |
msgid "Results Order"
|
1081 |
msgstr ""
|
1082 |
|
1083 |
+
#: ../link-library-admin.php:2992 ../link-library-admin.php:3143
|
1084 |
msgid "Order by Name"
|
1085 |
msgstr ""
|
1086 |
|
1087 |
+
#: ../link-library-admin.php:2993 ../link-library-admin.php:3144
|
1088 |
msgid "Order by ID"
|
1089 |
msgstr ""
|
1090 |
|
1091 |
+
#: ../link-library-admin.php:2995
|
1092 |
msgid "Order of categories based on included category list"
|
1093 |
msgstr ""
|
1094 |
|
1095 |
+
#: ../link-library-admin.php:2997
|
1096 |
msgid "Order by"
|
1097 |
msgstr ""
|
1098 |
|
1099 |
+
#: ../link-library-admin.php:2997 ../link-library-admin.php:3145
|
1100 |
msgid "Wordpress Plugin"
|
1101 |
msgstr ""
|
1102 |
|
1103 |
+
#: ../link-library-admin.php:3002
|
1104 |
msgid "Link Categories Display Format"
|
1105 |
msgstr ""
|
1106 |
|
1107 |
+
#: ../link-library-admin.php:3006 ../link-library-admin.php:3226
|
1108 |
msgid "Table"
|
1109 |
msgstr ""
|
1110 |
|
1111 |
+
#: ../link-library-admin.php:3007 ../link-library-admin.php:3227
|
1112 |
msgid "Unordered List"
|
1113 |
msgstr ""
|
1114 |
|
1115 |
+
#: ../link-library-admin.php:3008
|
1116 |
msgid "Drop-Down List"
|
1117 |
msgstr ""
|
1118 |
|
1119 |
+
#: ../link-library-admin.php:3009
|
1120 |
msgid "Drop-Down List Direct Access"
|
1121 |
msgstr ""
|
1122 |
|
1123 |
+
#: ../link-library-admin.php:3015
|
1124 |
msgid "Display link counts"
|
1125 |
msgstr ""
|
1126 |
|
1127 |
+
#: ../link-library-admin.php:3021
|
1128 |
msgid "Display categories with search results"
|
1129 |
msgstr ""
|
1130 |
|
1131 |
+
#: ../link-library-admin.php:3026 ../link-library-admin.php:3029
|
1132 |
msgid "This setting does not apply when selecting My Link Order for the order"
|
1133 |
msgstr ""
|
1134 |
|
1135 |
+
#: ../link-library-admin.php:3027 ../link-library-admin.php:3197
|
1136 |
msgid "Direction"
|
1137 |
msgstr ""
|
1138 |
|
1139 |
+
#: ../link-library-admin.php:3031 ../link-library-admin.php:3201
|
1140 |
msgid "Ascending"
|
1141 |
msgstr ""
|
1142 |
|
1143 |
+
#: ../link-library-admin.php:3032 ../link-library-admin.php:3202
|
1144 |
msgid "Descending"
|
1145 |
msgstr ""
|
1146 |
|
1147 |
+
#: ../link-library-admin.php:3036 ../link-library-admin.php:3039
|
1148 |
+
#: ../link-library-admin.php:3151 ../link-library-admin.php:3154
|
1149 |
msgid ""
|
1150 |
"Use [ and ] in the description to perform special actions using HTML such as "
|
1151 |
"inserting images instead of < and >"
|
1152 |
msgstr ""
|
1153 |
|
1154 |
+
#: ../link-library-admin.php:3037 ../link-library-admin.php:3152
|
1155 |
msgid "Show Category Description"
|
1156 |
msgstr ""
|
1157 |
|
1158 |
+
#: ../link-library-admin.php:3041 ../link-library-admin.php:3156
|
1159 |
msgid "Position"
|
1160 |
msgstr ""
|
1161 |
|
1162 |
+
#: ../link-library-admin.php:3043 ../link-library-admin.php:3158
|
1163 |
msgid "Right"
|
1164 |
msgstr ""
|
1165 |
|
1166 |
+
#: ../link-library-admin.php:3044 ../link-library-admin.php:3159
|
1167 |
msgid "Left"
|
1168 |
msgstr ""
|
1169 |
|
1170 |
+
#: ../link-library-admin.php:3050
|
1171 |
msgid "Width of Categories Table in Percents"
|
1172 |
msgstr ""
|
1173 |
|
1174 |
+
#: ../link-library-admin.php:3056 ../link-library-admin.php:3059
|
1175 |
msgid ""
|
1176 |
"Determines the number of alternating div tags that will be placed before and "
|
1177 |
"after each link category"
|
1178 |
msgstr ""
|
1179 |
|
1180 |
+
#: ../link-library-admin.php:3056 ../link-library-admin.php:3059
|
1181 |
msgid ""
|
1182 |
"These div tags can be used to style of position link categories on the link "
|
1183 |
"page"
|
1184 |
msgstr ""
|
1185 |
|
1186 |
+
#: ../link-library-admin.php:3057
|
1187 |
msgid "Number of alternating div classes"
|
1188 |
msgstr ""
|
1189 |
|
1190 |
+
#: ../link-library-admin.php:3072
|
1191 |
msgid "Number of columns in Categories Table"
|
1192 |
msgstr ""
|
1193 |
|
1194 |
+
#: ../link-library-admin.php:3079
|
1195 |
msgid "First div class name"
|
1196 |
msgstr ""
|
1197 |
|
1198 |
+
#: ../link-library-admin.php:3087
|
1199 |
msgid "Use Div Class or Heading tag around Category Names"
|
1200 |
msgstr ""
|
1201 |
|
1202 |
+
#: ../link-library-admin.php:3091
|
1203 |
msgid "Div Class"
|
1204 |
msgstr ""
|
1205 |
|
1206 |
+
#: ../link-library-admin.php:3092
|
1207 |
msgid "Heading Tag"
|
1208 |
msgstr ""
|
1209 |
|
1210 |
+
#: ../link-library-admin.php:3097
|
1211 |
msgid "Second div class name"
|
1212 |
msgstr ""
|
1213 |
|
1214 |
+
#: ../link-library-admin.php:3104 ../link-library-admin.php:3107
|
1215 |
msgid "Example div class name: linklistcatname, Example Heading Label: h3"
|
1216 |
msgstr ""
|
1217 |
|
1218 |
+
#: ../link-library-admin.php:3105
|
1219 |
msgid "Div Class Name or Heading label"
|
1220 |
msgstr ""
|
1221 |
|
1222 |
+
#: ../link-library-admin.php:3112
|
1223 |
msgid "Third div class name"
|
1224 |
msgstr ""
|
1225 |
|
1226 |
+
#: ../link-library-admin.php:3119 ../link-library-admin.php:3122
|
1227 |
msgid ""
|
1228 |
"Set this address to a page running Link Library to place categories on a "
|
1229 |
"different page. Should always be used with the Show One Category at a Time "
|
1230 |
"and HTMLGET fetch method."
|
1231 |
msgstr ""
|
1232 |
|
1233 |
+
#: ../link-library-admin.php:3120
|
1234 |
msgid "Category Target Address"
|
1235 |
msgstr ""
|
1236 |
|
1237 |
+
#: ../link-library-admin.php:3139
|
1238 |
msgid "Link Results Order"
|
1239 |
msgstr ""
|
1240 |
|
1241 |
+
#: ../link-library-admin.php:3145
|
1242 |
msgid "Order set by "
|
1243 |
msgstr ""
|
1244 |
|
1245 |
+
#: ../link-library-admin.php:3146
|
1246 |
msgid "Order randomly"
|
1247 |
msgstr ""
|
1248 |
|
1249 |
+
#: ../link-library-admin.php:3147
|
1250 |
msgid "Order by updated date"
|
1251 |
msgstr ""
|
1252 |
|
1253 |
+
#: ../link-library-admin.php:3160
|
1254 |
+
msgid "After Category Name"
|
1255 |
+
msgstr ""
|
1256 |
+
|
1257 |
+
#: ../link-library-admin.php:3161
|
1258 |
+
msgid "After Top-Level Category Name"
|
1259 |
+
msgstr ""
|
1260 |
+
|
1261 |
+
#: ../link-library-admin.php:3166
|
1262 |
msgid "List Featured Links ahead of Regular Links"
|
1263 |
msgstr ""
|
1264 |
|
1265 |
+
#: ../link-library-admin.php:3170
|
1266 |
msgid "Show Expand Link button and hide links"
|
1267 |
msgstr ""
|
1268 |
|
1269 |
+
#: ../link-library-admin.php:3175
|
1270 |
msgid "Combine all results without categories"
|
1271 |
msgstr ""
|
1272 |
|
1273 |
+
#: ../link-library-admin.php:3179
|
1274 |
msgid "Link Title Content"
|
1275 |
msgstr ""
|
1276 |
|
1277 |
+
#: ../link-library-admin.php:3196 ../link-library-admin.php:3199
|
1278 |
msgid "Except for My Link Order mode"
|
1279 |
msgstr ""
|
1280 |
|
1281 |
+
#: ../link-library-admin.php:3206 ../link-library-admin.php:3209
|
1282 |
msgid "Leave empty to show all results"
|
1283 |
msgstr ""
|
1284 |
|
1285 |
+
#: ../link-library-admin.php:3207
|
1286 |
msgid "Max number of links to display"
|
1287 |
msgstr ""
|
1288 |
|
1289 |
+
#: ../link-library-admin.php:3214 ../link-library-admin.php:3217
|
1290 |
msgid ""
|
1291 |
"Sets default link target window, does not override specific targets set in "
|
1292 |
"links"
|
1293 |
msgstr ""
|
1294 |
|
1295 |
+
#: ../link-library-admin.php:3215
|
1296 |
msgid "Link Target"
|
1297 |
msgstr ""
|
1298 |
|
1299 |
+
#: ../link-library-admin.php:3222
|
1300 |
msgid "Link Display Format"
|
1301 |
msgstr ""
|
1302 |
|
1303 |
+
#: ../link-library-admin.php:3233
|
1304 |
msgid "Show Column Headers"
|
1305 |
msgstr ""
|
1306 |
|
1307 |
+
#: ../link-library-admin.php:3240
|
1308 |
+
msgid "Column Headers Override"
|
1309 |
msgstr ""
|
1310 |
|
1311 |
+
#: ../link-library-admin.php:3243
|
1312 |
+
msgid "Comma-separated list of column header labels"
|
1313 |
msgstr ""
|
1314 |
|
1315 |
+
#: ../link-library-admin.php:3249
|
1316 |
+
msgid "Allow sorting through column headers"
|
1317 |
msgstr ""
|
1318 |
|
1319 |
+
#: ../link-library-admin.php:3257
|
1320 |
msgid "Hide Category Names"
|
1321 |
msgstr ""
|
1322 |
|
1323 |
+
#: ../link-library-admin.php:3264
|
1324 |
msgid "Show Hidden Links"
|
1325 |
msgstr ""
|
1326 |
|
1327 |
+
#: ../link-library-admin.php:3272
|
1328 |
+
msgid "Hide links of children categories"
|
1329 |
+
msgstr ""
|
1330 |
+
|
1331 |
+
#: ../link-library-admin.php:3279
|
1332 |
+
msgid "Child category depth limit"
|
1333 |
+
msgstr ""
|
1334 |
+
|
1335 |
+
#: ../link-library-admin.php:3287
|
1336 |
+
msgid "Hide children categories on top page"
|
1337 |
+
msgstr ""
|
1338 |
+
|
1339 |
+
#: ../link-library-admin.php:3294 ../link-library-admin.php:3297
|
1340 |
msgid "Need to be active for Link Categories to work"
|
1341 |
msgstr ""
|
1342 |
|
1343 |
+
#: ../link-library-admin.php:3295
|
1344 |
msgid "Embed HTML anchors"
|
1345 |
msgstr ""
|
1346 |
|
1347 |
+
#: ../link-library-admin.php:3302
|
1348 |
msgid "Show Hidden Links to Admins/Editors"
|
1349 |
msgstr ""
|
1350 |
|
1351 |
+
#: ../link-library-admin.php:3319
|
1352 |
msgid ""
|
1353 |
"Arrange the items below via drag-and-drop to order the various Link Library "
|
1354 |
"elements."
|
1355 |
msgstr ""
|
1356 |
|
1357 |
+
#: ../link-library-admin.php:3346 ../render-link-library-sc.php:986
|
|
|
|
|
|
|
|
|
1358 |
msgid "Name"
|
1359 |
msgstr ""
|
1360 |
|
1361 |
+
#: ../link-library-admin.php:3350 ../render-link-library-sc.php:987
|
1362 |
msgid "Date"
|
1363 |
msgstr ""
|
1364 |
|
1365 |
+
#: ../link-library-admin.php:3354
|
1366 |
msgid "Desc"
|
1367 |
msgstr ""
|
1368 |
|
1369 |
+
#: ../link-library-admin.php:3358 ../link-library-admin.php:4706
|
1370 |
+
#: ../render-link-library-sc.php:988
|
1371 |
msgid "Notes"
|
1372 |
msgstr ""
|
1373 |
|
1374 |
+
#: ../link-library-admin.php:3362 ../render-link-library-sc.php:988
|
1375 |
msgid "RSS"
|
1376 |
msgstr ""
|
1377 |
|
1378 |
+
#: ../link-library-admin.php:3366 ../link-library-admin.php:3591
|
1379 |
+
#: ../render-link-library-sc.php:989
|
1380 |
+
msgid "Web Link"
|
1381 |
msgstr ""
|
1382 |
|
1383 |
+
#: ../link-library-admin.php:3370
|
1384 |
msgid "Phone"
|
1385 |
msgstr ""
|
1386 |
|
1387 |
+
#: ../link-library-admin.php:3374 ../link-library-admin.php:3648
|
1388 |
+
#: ../link-library-admin.php:4492 ../link-library-admin.php:5002
|
1389 |
+
#: ../link-library-defaults.php:172 ../render-link-library-addlink-sc.php:442
|
1390 |
+
#: ../render-link-library-sc.php:990
|
1391 |
msgid "E-mail"
|
1392 |
msgstr ""
|
1393 |
|
1394 |
+
#: ../link-library-admin.php:3378 ../render-link-library-sc.php:990
|
1395 |
msgid "Hits"
|
1396 |
msgstr ""
|
1397 |
|
1398 |
+
#: ../link-library-admin.php:3382 ../link-library-admin.php:4970
|
1399 |
+
#: ../render-link-library-sc.php:991
|
1400 |
msgid "Rating"
|
1401 |
msgstr ""
|
1402 |
|
1403 |
+
#: ../link-library-admin.php:3386
|
1404 |
msgid "Large Desc"
|
1405 |
msgstr ""
|
1406 |
|
1407 |
+
#: ../link-library-admin.php:3390 ../link-library-admin.php:3727
|
1408 |
+
#: ../link-library-admin.php:4508 ../link-library-admin.php:5027
|
1409 |
+
#: ../link-library-defaults.php:184 ../render-link-library-addlink-sc.php:460
|
1410 |
+
#: ../render-link-library-sc.php:992
|
1411 |
msgid "Submitter Name"
|
1412 |
msgstr ""
|
1413 |
|
1414 |
+
#: ../link-library-admin.php:3394
|
1415 |
msgid "Cat Desc"
|
1416 |
msgstr ""
|
1417 |
|
1418 |
+
#: ../link-library-admin.php:3398 ../render-link-library-sc.php:993
|
1419 |
+
msgid "Tags"
|
1420 |
+
msgstr ""
|
1421 |
+
|
1422 |
+
#: ../link-library-admin.php:3402 ../link-library-admin.php:5039
|
1423 |
+
#: ../link-library.php:894 ../render-link-library-sc.php:993
|
1424 |
+
msgid "Price"
|
1425 |
+
msgstr ""
|
1426 |
+
|
1427 |
+
#: ../link-library-admin.php:3414
|
1428 |
msgid "Display"
|
1429 |
msgstr ""
|
1430 |
|
1431 |
+
#: ../link-library-admin.php:3415
|
1432 |
msgid "Before"
|
1433 |
msgstr ""
|
1434 |
|
1435 |
+
#: ../link-library-admin.php:3416
|
1436 |
msgid "After"
|
1437 |
msgstr ""
|
1438 |
|
1439 |
+
#: ../link-library-admin.php:3417
|
1440 |
msgid "Additional Details"
|
1441 |
msgstr ""
|
1442 |
|
1443 |
+
#: ../link-library-admin.php:3418
|
1444 |
msgid "Link Source"
|
1445 |
msgstr ""
|
1446 |
|
1447 |
+
#: ../link-library-admin.php:3421
|
1448 |
msgid ""
|
1449 |
"This column allows for the output of text/code before the first link in each "
|
1450 |
"category"
|
1451 |
msgstr ""
|
1452 |
|
1453 |
+
#: ../link-library-admin.php:3421
|
1454 |
msgid "Before first link"
|
1455 |
msgstr ""
|
1456 |
|
1457 |
+
#: ../link-library-admin.php:3423
|
1458 |
msgid "Output of text/code before the first link in each category"
|
1459 |
msgstr ""
|
1460 |
|
1461 |
+
#: ../link-library-admin.php:3429
|
1462 |
msgid ""
|
1463 |
"This column allows for the output of text/code before a number of links "
|
1464 |
"determined by the Display field"
|
1465 |
msgstr ""
|
1466 |
|
1467 |
+
#: ../link-library-admin.php:3429
|
1468 |
msgid "Intermittent Before Link"
|
1469 |
msgstr ""
|
1470 |
|
1471 |
+
#: ../link-library-admin.php:3430
|
1472 |
msgid "Frequency of additional output before and after complete link group"
|
1473 |
msgstr ""
|
1474 |
|
1475 |
+
#: ../link-library-admin.php:3433 ../link-library-admin.php:3443
|
1476 |
msgid "Output before complete link group (link, notes, desc, etc...)"
|
1477 |
msgstr ""
|
1478 |
|
1479 |
+
#: ../link-library-admin.php:3441
|
1480 |
msgid "This column allows for the output of text/code before each link"
|
1481 |
msgstr ""
|
1482 |
|
1483 |
+
#: ../link-library-admin.php:3441
|
1484 |
msgid "Before Link"
|
1485 |
msgstr ""
|
1486 |
|
1487 |
+
#: ../link-library-admin.php:3471
|
1488 |
msgid "This column allows for the output of text/code before each link image"
|
1489 |
msgstr ""
|
1490 |
|
1491 |
+
#: ../link-library-admin.php:3475
|
1492 |
msgid "Code/Text to be displayed before each link image"
|
1493 |
msgstr ""
|
1494 |
|
1495 |
+
#: ../link-library-admin.php:3478
|
1496 |
msgid "Code/Text to be displayed after each link image"
|
1497 |
msgstr ""
|
1498 |
|
1499 |
+
#: ../link-library-admin.php:3481
|
1500 |
msgid "CSS Class to be assigned to link image"
|
1501 |
msgstr ""
|
1502 |
|
1503 |
+
#: ../link-library-admin.php:3486 ../link-library-admin.php:3513
|
1504 |
+
#: ../link-library-admin.php:3610 ../link-library-admin.php:3639
|
1505 |
msgid "Primary"
|
1506 |
msgstr ""
|
1507 |
|
1508 |
+
#: ../link-library-admin.php:3487 ../link-library-admin.php:3514
|
1509 |
+
#: ../link-library-admin.php:3611 ../link-library-admin.php:3640
|
1510 |
msgid "Secondary"
|
1511 |
msgstr ""
|
1512 |
|
1513 |
+
#: ../link-library-admin.php:3495
|
1514 |
msgid ""
|
1515 |
"This column allows for the output of text/code before and after each link "
|
1516 |
"name"
|
1517 |
msgstr ""
|
1518 |
|
1519 |
+
#: ../link-library-admin.php:3499
|
1520 |
msgid "Code/Text to be displayed before each link"
|
1521 |
msgstr ""
|
1522 |
|
1523 |
+
#: ../link-library-admin.php:3502
|
1524 |
msgid "Code/Text to be displayed after each link"
|
1525 |
msgstr ""
|
1526 |
|
1527 |
+
#: ../link-library-admin.php:3507
|
1528 |
msgid "No Tooltip"
|
1529 |
msgstr ""
|
1530 |
|
1531 |
+
#: ../link-library-admin.php:3508 ../link-library-admin.php:4702
|
1532 |
+
#: ../render-link-library-sc.php:987
|
1533 |
msgid "Description"
|
1534 |
msgstr ""
|
1535 |
|
1536 |
+
#: ../link-library-admin.php:3515
|
1537 |
+
msgid "Dedicated page"
|
1538 |
+
msgstr ""
|
1539 |
+
|
1540 |
+
#: ../link-library-admin.php:3523
|
1541 |
msgid ""
|
1542 |
"This column allows for the output of text/code before and after each link "
|
1543 |
"date stamp"
|
1544 |
msgstr ""
|
1545 |
|
1546 |
+
#: ../link-library-admin.php:3523
|
1547 |
msgid "Link Date"
|
1548 |
msgstr ""
|
1549 |
|
1550 |
+
#: ../link-library-admin.php:3524
|
1551 |
msgid "Check to display link date"
|
1552 |
msgstr ""
|
1553 |
|
1554 |
+
#: ../link-library-admin.php:3527
|
1555 |
msgid "Code/Text to be displayed before each date"
|
1556 |
msgstr ""
|
1557 |
|
1558 |
+
#: ../link-library-admin.php:3530
|
1559 |
msgid "Code/Text to be displayed after each date"
|
1560 |
msgstr ""
|
1561 |
|
1562 |
+
#: ../link-library-admin.php:3540
|
1563 |
msgid ""
|
1564 |
"This column allows for the output of text/code before and after each link "
|
1565 |
"description"
|
1566 |
msgstr ""
|
1567 |
|
1568 |
+
#: ../link-library-admin.php:3541
|
1569 |
msgid "Check to display link descriptions"
|
1570 |
msgstr ""
|
1571 |
|
1572 |
+
#: ../link-library-admin.php:3544
|
1573 |
msgid "Code/Text to be displayed before each description"
|
1574 |
msgstr ""
|
1575 |
|
1576 |
+
#: ../link-library-admin.php:3547
|
1577 |
msgid "Code/Text to be displayed after each description"
|
1578 |
msgstr ""
|
1579 |
|
1580 |
+
#: ../link-library-admin.php:3557
|
1581 |
msgid ""
|
1582 |
"This column allows for the output of text/code before and after each link "
|
1583 |
"notes"
|
1584 |
msgstr ""
|
1585 |
|
1586 |
+
#: ../link-library-admin.php:3557 ../link-library-admin.php:4415
|
1587 |
+
#: ../link-library-defaults.php:125 ../usersubmission.php:300
|
1588 |
+
#: ../usersubmission.php:368
|
1589 |
msgid "Link Notes"
|
1590 |
msgstr ""
|
1591 |
|
1592 |
+
#: ../link-library-admin.php:3558
|
1593 |
msgid "Check to display link notes"
|
1594 |
msgstr ""
|
1595 |
|
1596 |
+
#: ../link-library-admin.php:3561
|
1597 |
msgid "Code/Text to be displayed before each note"
|
1598 |
msgstr ""
|
1599 |
|
1600 |
+
#: ../link-library-admin.php:3564
|
1601 |
msgid "Code/Text to be displayed after each note"
|
1602 |
msgstr ""
|
1603 |
|
1604 |
+
#: ../link-library-admin.php:3574
|
1605 |
msgid ""
|
1606 |
"This column allows for the output of text/code before and after the RSS icons"
|
1607 |
msgstr ""
|
1608 |
|
1609 |
+
#: ../link-library-admin.php:3574
|
1610 |
msgid "RSS Icons"
|
1611 |
msgstr ""
|
1612 |
|
1613 |
+
#: ../link-library-admin.php:3576
|
1614 |
msgid "See below"
|
1615 |
msgstr ""
|
1616 |
|
1617 |
+
#: ../link-library-admin.php:3578
|
1618 |
msgid "Code/Text to be displayed before RSS Icons"
|
1619 |
msgstr ""
|
1620 |
|
1621 |
+
#: ../link-library-admin.php:3581
|
1622 |
msgid "Code/Text to be displayed after RSS Icons"
|
1623 |
msgstr ""
|
1624 |
|
1625 |
+
#: ../link-library-admin.php:3591
|
1626 |
msgid ""
|
1627 |
"This column allows for the output of text/code before and after the Web Link"
|
1628 |
msgstr ""
|
1629 |
|
1630 |
+
#: ../link-library-admin.php:3594 ../link-library-admin.php:3622
|
1631 |
+
#: ../link-library-admin.php:3651
|
|
|
|
|
|
|
|
|
1632 |
msgid "False"
|
1633 |
msgstr ""
|
1634 |
|
1635 |
+
#: ../link-library-admin.php:3595 ../link-library-admin.php:4698
|
1636 |
msgid "Web Address"
|
1637 |
msgstr ""
|
1638 |
|
1639 |
+
#: ../link-library-admin.php:3596 ../link-library-admin.php:3625
|
|
|
|
|
|
|
|
|
1640 |
msgid "Label"
|
1641 |
msgstr ""
|
1642 |
|
1643 |
+
#: ../link-library-admin.php:3599
|
1644 |
msgid "Code/Text to be displayed before Web Link"
|
1645 |
msgstr ""
|
1646 |
|
1647 |
+
#: ../link-library-admin.php:3602
|
1648 |
msgid "Code/Text to be displayed after Web Link"
|
1649 |
msgstr ""
|
1650 |
|
1651 |
+
#: ../link-library-admin.php:3605
|
1652 |
msgid "Text Label that the web link will be assigned to."
|
1653 |
msgstr ""
|
1654 |
|
1655 |
+
#: ../link-library-admin.php:3608 ../link-library-admin.php:3637
|
1656 |
msgid "Select which link address will be displayed / used for link"
|
1657 |
msgstr ""
|
1658 |
|
1659 |
+
#: ../link-library-admin.php:3619
|
1660 |
msgid ""
|
1661 |
"This column allows for the output of text/code before and after the "
|
1662 |
"Telephone Number"
|
1663 |
msgstr ""
|
1664 |
|
1665 |
+
#: ../link-library-admin.php:3619 ../link-library-admin.php:4477
|
1666 |
+
#: ../link-library-admin.php:4996 ../link-library-defaults.php:170
|
1667 |
+
#: ../render-link-library-addlink-sc.php:424 ../render-link-library-sc.php:989
|
1668 |
msgid "Telephone"
|
1669 |
msgstr ""
|
1670 |
|
1671 |
+
#: ../link-library-admin.php:3623 ../link-library-admin.php:3652
|
1672 |
msgid "Plain Text"
|
1673 |
msgstr ""
|
1674 |
|
1675 |
+
#: ../link-library-admin.php:3624
|
1676 |
+
msgid "Link"
|
1677 |
+
msgstr ""
|
1678 |
+
|
1679 |
+
#: ../link-library-admin.php:3628
|
1680 |
msgid "Code/Text to be displayed before Telephone Number"
|
1681 |
msgstr ""
|
1682 |
|
1683 |
+
#: ../link-library-admin.php:3631
|
1684 |
msgid "Code/Text to be displayed after Telephone Number"
|
1685 |
msgstr ""
|
1686 |
|
1687 |
+
#: ../link-library-admin.php:3634
|
1688 |
msgid "Text Label that the telephone will be assigned to."
|
1689 |
msgstr ""
|
1690 |
|
1691 |
+
#: ../link-library-admin.php:3648
|
1692 |
msgid ""
|
1693 |
"This column allows for the output of text/code before and after the E-mail"
|
1694 |
msgstr ""
|
1695 |
|
1696 |
+
#: ../link-library-admin.php:3653
|
1697 |
msgid "MailTo Link"
|
1698 |
msgstr ""
|
1699 |
|
1700 |
+
#: ../link-library-admin.php:3654
|
1701 |
msgid "MailTo Link with Label"
|
1702 |
msgstr ""
|
1703 |
|
1704 |
+
#: ../link-library-admin.php:3655
|
1705 |
msgid "Formatted Command"
|
1706 |
msgstr ""
|
1707 |
|
1708 |
+
#: ../link-library-admin.php:3656
|
1709 |
msgid "Formatted Command with Labels"
|
1710 |
msgstr ""
|
1711 |
|
1712 |
+
#: ../link-library-admin.php:3659
|
1713 |
msgid "Code/Text to be displayed before E-mail"
|
1714 |
msgstr ""
|
1715 |
|
1716 |
+
#: ../link-library-admin.php:3662
|
1717 |
msgid "Code/Text to be displayed after E-mail"
|
1718 |
msgstr ""
|
1719 |
|
1720 |
+
#: ../link-library-admin.php:3665
|
1721 |
msgid ""
|
1722 |
"Text Label that the e-mail will be assigned to represent the e-mail link."
|
1723 |
msgstr ""
|
1724 |
|
1725 |
+
#: ../link-library-admin.php:3668
|
1726 |
msgid ""
|
1727 |
"Command that the e-mail will be embedded in. In the case of a command, use "
|
1728 |
"the symbols #email and #company to indicate the position where these "
|
1729 |
"elements should be inserted."
|
1730 |
msgstr ""
|
1731 |
|
1732 |
+
#: ../link-library-admin.php:3676
|
1733 |
msgid ""
|
1734 |
"This column allows for the output of text/code before and after Link Hits"
|
1735 |
msgstr ""
|
1736 |
|
1737 |
+
#: ../link-library-admin.php:3676
|
1738 |
msgid "Link Hits"
|
1739 |
msgstr ""
|
1740 |
|
1741 |
+
#: ../link-library-admin.php:3680
|
1742 |
msgid "Code/Text to be displayed before Link Hits"
|
1743 |
msgstr ""
|
1744 |
|
1745 |
+
#: ../link-library-admin.php:3683
|
1746 |
msgid "Code/Text to be displayed after Link Hits"
|
1747 |
msgstr ""
|
1748 |
|
1749 |
+
#: ../link-library-admin.php:3693
|
1750 |
msgid ""
|
1751 |
"This column allows for the output of text/code before and after the Link "
|
1752 |
"Rating"
|
1753 |
msgstr ""
|
1754 |
|
1755 |
+
#: ../link-library-admin.php:3693
|
1756 |
msgid "Link Rating"
|
1757 |
msgstr ""
|
1758 |
|
1759 |
+
#: ../link-library-admin.php:3697
|
1760 |
msgid "Code/Text to be displayed before Link Rating"
|
1761 |
msgstr ""
|
1762 |
|
1763 |
+
#: ../link-library-admin.php:3700
|
1764 |
msgid "Code/Text to be displayed after Link Rating"
|
1765 |
msgstr ""
|
1766 |
|
1767 |
+
#: ../link-library-admin.php:3710 ../link-library-admin.php:3727
|
1768 |
+
#: ../link-library-admin.php:3744
|
1769 |
msgid ""
|
1770 |
"This column allows for the output of text/code before and after the Link "
|
1771 |
"Large Description"
|
1772 |
msgstr ""
|
1773 |
|
1774 |
+
#: ../link-library-admin.php:3710 ../usersubmission.php:299
|
1775 |
+
#: ../usersubmission.php:364
|
1776 |
msgid "Link Large Description"
|
1777 |
msgstr ""
|
1778 |
|
1779 |
+
#: ../link-library-admin.php:3714 ../link-library-admin.php:3731
|
1780 |
+
#: ../link-library-admin.php:3748
|
1781 |
msgid "Code/Text to be displayed before Link Large Description"
|
1782 |
msgstr ""
|
1783 |
|
1784 |
+
#: ../link-library-admin.php:3717 ../link-library-admin.php:3734
|
1785 |
+
#: ../link-library-admin.php:3751
|
1786 |
msgid "Code/Text to be displayed after Link Large Description"
|
1787 |
msgstr ""
|
1788 |
|
1789 |
+
#: ../link-library-admin.php:3744 ../render-link-library-sc.php:992
|
1790 |
msgid "Category Description"
|
1791 |
msgstr ""
|
1792 |
|
1793 |
+
#: ../link-library-admin.php:3761
|
1794 |
+
msgid "This column allows for the output of tags associated with the link"
|
1795 |
+
msgstr ""
|
1796 |
+
|
1797 |
+
#: ../link-library-admin.php:3761
|
1798 |
+
msgid "Link Tags"
|
1799 |
+
msgstr ""
|
1800 |
+
|
1801 |
+
#: ../link-library-admin.php:3765
|
1802 |
+
msgid "Code/Text to be displayed before Link Tags"
|
1803 |
+
msgstr ""
|
1804 |
+
|
1805 |
+
#: ../link-library-admin.php:3768
|
1806 |
+
msgid "Code/Text to be displayed after Link Tags"
|
1807 |
+
msgstr ""
|
1808 |
+
|
1809 |
+
#: ../link-library-admin.php:3778
|
1810 |
+
msgid ""
|
1811 |
+
"This column allows for the output of the price field associated with the link"
|
1812 |
+
msgstr ""
|
1813 |
+
|
1814 |
+
#: ../link-library-admin.php:3778
|
1815 |
+
msgid "Link Price"
|
1816 |
+
msgstr ""
|
1817 |
+
|
1818 |
+
#: ../link-library-admin.php:3782
|
1819 |
+
msgid "Code/Text to be displayed before Link Price"
|
1820 |
+
msgstr ""
|
1821 |
+
|
1822 |
+
#: ../link-library-admin.php:3785
|
1823 |
+
msgid "Code/Text to be displayed after Link Price"
|
1824 |
+
msgstr ""
|
1825 |
+
|
1826 |
+
#: ../link-library-admin.php:3789
|
1827 |
+
msgid "Currency symbol to be displayed next to price"
|
1828 |
+
msgstr ""
|
1829 |
+
|
1830 |
+
#: ../link-library-admin.php:3794
|
1831 |
+
msgid "Before Price"
|
1832 |
+
msgstr ""
|
1833 |
+
|
1834 |
+
#: ../link-library-admin.php:3795
|
1835 |
+
msgid "After Price"
|
1836 |
+
msgstr ""
|
1837 |
+
|
1838 |
+
#: ../link-library-admin.php:3805
|
1839 |
msgid "This column allows for the output of text/code after each link"
|
1840 |
msgstr ""
|
1841 |
|
1842 |
+
#: ../link-library-admin.php:3805
|
1843 |
msgid "After Link Block"
|
1844 |
msgstr ""
|
1845 |
|
1846 |
+
#: ../link-library-admin.php:3808
|
1847 |
msgid "Output after complete link group (link, notes, desc, etc...)"
|
1848 |
msgstr ""
|
1849 |
|
1850 |
+
#: ../link-library-admin.php:3815
|
1851 |
msgid ""
|
1852 |
"This column allows for the output of text/code after a number of links "
|
1853 |
"determined in the first column"
|
1854 |
msgstr ""
|
1855 |
|
1856 |
+
#: ../link-library-admin.php:3815
|
1857 |
msgid "Intermittent After Link"
|
1858 |
msgstr ""
|
1859 |
|
1860 |
+
#: ../link-library-admin.php:3825
|
1861 |
msgid ""
|
1862 |
"This column allows for the output of text/code after the last link in each "
|
1863 |
"category"
|
1864 |
msgstr ""
|
1865 |
|
1866 |
+
#: ../link-library-admin.php:3825
|
1867 |
msgid "After last link"
|
1868 |
msgstr ""
|
1869 |
|
1870 |
+
#: ../link-library-admin.php:3838
|
1871 |
msgid "Show Link Updated Flag"
|
1872 |
msgstr ""
|
1873 |
|
1874 |
+
#: ../link-library-admin.php:3846
|
1875 |
msgid "Convert [] to <> in Link Description and Notes"
|
1876 |
msgstr ""
|
1877 |
|
1878 |
+
#: ../link-library-admin.php:3854
|
1879 |
msgid "Add nofollow tag to outgoing links"
|
1880 |
msgstr ""
|
1881 |
|
1882 |
+
#: ../link-library-admin.php:3861
|
1883 |
msgid "Show edit links when logged in as editor or administrator"
|
1884 |
msgstr ""
|
1885 |
|
1886 |
+
#: ../link-library-admin.php:3869
|
1887 |
msgid "Show link name when no image is assigned"
|
1888 |
msgstr ""
|
1889 |
|
1890 |
+
#: ../link-library-admin.php:3876
|
1891 |
msgid "Do not output fields with no value"
|
1892 |
msgstr ""
|
1893 |
|
1894 |
+
#: ../link-library-admin.php:3894
|
1895 |
msgid "Enable link Pop-Ups"
|
1896 |
msgstr ""
|
1897 |
|
1898 |
+
#: ../link-library-admin.php:3898
|
1899 |
msgid "Pop-Up Width"
|
1900 |
msgstr ""
|
1901 |
|
1902 |
+
#: ../link-library-admin.php:3905
|
1903 |
msgid "Pop-Up Height"
|
1904 |
msgstr ""
|
1905 |
|
1906 |
+
#: ../link-library-admin.php:3914
|
1907 |
msgid "Dialog contents"
|
1908 |
msgstr ""
|
1909 |
|
1910 |
+
#: ../link-library-admin.php:3932
|
1911 |
msgid "Show RSS Link using Text"
|
1912 |
msgstr ""
|
1913 |
|
1914 |
+
#: ../link-library-admin.php:3938
|
1915 |
msgid "Show RSS Link using Standard Icon"
|
1916 |
msgstr ""
|
1917 |
|
1918 |
+
#: ../link-library-admin.php:3948
|
1919 |
msgid "Show RSS Preview Link"
|
1920 |
msgstr ""
|
1921 |
|
1922 |
+
#: ../link-library-admin.php:3954
|
1923 |
msgid "Number of articles shown in RSS Preview"
|
1924 |
msgstr ""
|
1925 |
|
1926 |
+
#: ../link-library-admin.php:3960
|
1927 |
msgid "Show RSS Feed Headers in Link Library output"
|
1928 |
msgstr ""
|
1929 |
|
1930 |
+
#: ../link-library-admin.php:3968
|
1931 |
msgid "Show RSS Feed Content in Link Library output"
|
1932 |
msgstr ""
|
1933 |
|
1934 |
+
#: ../link-library-admin.php:3974
|
1935 |
msgid "Number of RSS articles shown in Link Library Output"
|
1936 |
msgstr ""
|
1937 |
|
1938 |
+
#: ../link-library-admin.php:3979
|
1939 |
msgid "Max number of days since published"
|
1940 |
msgstr ""
|
1941 |
|
1942 |
+
#: ../link-library-admin.php:3983
|
1943 |
msgid "RSS Preview Width"
|
1944 |
msgstr ""
|
1945 |
|
1946 |
+
#: ../link-library-admin.php:3986
|
1947 |
msgid "RSS Preview Height"
|
1948 |
msgstr ""
|
1949 |
|
1950 |
+
#: ../link-library-admin.php:3988
|
1951 |
msgid "Skip links with no RSS inline items"
|
1952 |
msgstr ""
|
1953 |
|
1954 |
+
#: ../link-library-admin.php:4005
|
1955 |
msgid ""
|
1956 |
"Checking this option will get images from the Robothumb web site every time"
|
1957 |
msgstr ""
|
1958 |
|
1959 |
+
#: ../link-library-admin.php:4006
|
1960 |
msgid "Use thumbnail service for dynamic link images"
|
1961 |
msgstr ""
|
1962 |
|
1963 |
+
#: ../link-library-admin.php:4008
|
1964 |
msgid ""
|
1965 |
"Checking this option will get images from the thumbshots web site every time"
|
1966 |
msgstr ""
|
1967 |
|
1968 |
+
#: ../link-library-admin.php:4014
|
1969 |
msgid "Give priority to images assigned to links if present"
|
1970 |
msgstr ""
|
1971 |
|
1972 |
+
#: ../link-library-admin.php:4020
|
1973 |
msgid "Generate Images / Favorite Icons"
|
1974 |
msgstr ""
|
1975 |
|
1976 |
+
#: ../link-library-admin.php:4022 ../link-library-admin.php:4764
|
1977 |
msgid ""
|
1978 |
"This button is only available when a valid API key is entered under the Link "
|
1979 |
"Library General Settings."
|
1980 |
msgstr ""
|
1981 |
|
1982 |
+
#: ../link-library-admin.php:4023
|
1983 |
msgid "Generate Thumbnails and Store locally"
|
1984 |
msgstr ""
|
1985 |
|
1986 |
+
#: ../link-library-admin.php:4026
|
1987 |
msgid "Generate Favorite Icons and Store locally"
|
1988 |
msgstr ""
|
1989 |
|
1990 |
+
#: ../link-library-admin.php:4030
|
1991 |
msgid "Delete all local thumbnails and icons"
|
1992 |
msgstr ""
|
1993 |
|
1994 |
+
#: ../link-library-admin.php:4031
|
1995 |
msgid "Delete all local thumbnails"
|
1996 |
msgstr ""
|
1997 |
|
1998 |
+
#: ../link-library-admin.php:4032
|
1999 |
msgid "Delete all local icons"
|
2000 |
msgstr ""
|
2001 |
|
2002 |
+
#: ../link-library-admin.php:4048
|
2003 |
msgid "Publish RSS Feed"
|
2004 |
msgstr ""
|
2005 |
|
2006 |
+
#: ../link-library-admin.php:4053
|
2007 |
msgid "Number of items in RSS feed"
|
2008 |
msgstr ""
|
2009 |
|
2010 |
+
#: ../link-library-admin.php:4062
|
2011 |
msgid "RSS Feed Title"
|
2012 |
msgstr ""
|
2013 |
|
2014 |
+
#: ../link-library-admin.php:4068
|
2015 |
msgid "RSS Feed Description"
|
2016 |
msgstr ""
|
2017 |
|
2018 |
+
#: ../link-library-admin.php:4074
|
2019 |
msgid ""
|
2020 |
"RSS Feed Web Address (default yoursite.com?"
|
2021 |
"link_library_rss_feed=1&settingset=1 )"
|
2022 |
msgstr ""
|
2023 |
|
2024 |
+
#: ../link-library-admin.php:4091
|
2025 |
msgid "Search Label"
|
2026 |
msgstr ""
|
2027 |
|
2028 |
+
#: ../link-library-admin.php:4100
|
2029 |
msgid "Search Field Initial Text"
|
2030 |
msgstr ""
|
2031 |
|
2032 |
+
#: ../link-library-admin.php:4109
|
2033 |
msgid "Search No Results Text"
|
2034 |
msgstr ""
|
2035 |
|
2036 |
+
#: ../link-library-admin.php:4111 ../link-library-defaults.php:222
|
2037 |
msgid "No links found matching your search criteria"
|
2038 |
msgstr ""
|
2039 |
|
2040 |
+
#: ../link-library-admin.php:4118 ../link-library-admin.php:4119
|
2041 |
msgid "Leave empty when links are to be displayed on same page as search box"
|
2042 |
msgstr ""
|
2043 |
|
2044 |
+
#: ../link-library-admin.php:4118
|
2045 |
msgid "Results Page Address"
|
2046 |
msgstr ""
|
2047 |
|
2048 |
+
#: ../link-library-admin.php:4219
|
2049 |
msgid "Following this link shows a list of all links awaiting moderation"
|
2050 |
msgstr ""
|
2051 |
|
2052 |
+
#: ../link-library-admin.php:4220
|
2053 |
msgid "View list of links awaiting moderation"
|
2054 |
msgstr ""
|
2055 |
|
2056 |
+
#: ../link-library-admin.php:4224
|
2057 |
msgid "Show user links immediately"
|
2058 |
msgstr ""
|
2059 |
|
2060 |
+
#: ../link-library-admin.php:4229
|
2061 |
msgid "E-mail admin on link submission"
|
2062 |
msgstr ""
|
2063 |
|
2064 |
+
#: ../link-library-admin.php:4235
|
2065 |
msgid "Validate links with Akismet"
|
2066 |
msgstr ""
|
2067 |
|
2068 |
+
#: ../link-library-admin.php:4239
|
2069 |
msgid "E-mail submitter"
|
2070 |
msgstr ""
|
2071 |
|
2072 |
+
#: ../link-library-admin.php:4246
|
2073 |
+
msgid "Additional text for link submitter e-mail"
|
2074 |
+
msgstr ""
|
2075 |
+
|
2076 |
+
#: ../link-library-admin.php:4253
|
2077 |
msgid "Require login to display form"
|
2078 |
msgstr ""
|
2079 |
|
2080 |
+
#: ../link-library-admin.php:4258
|
2081 |
msgid "Allow link submission with empty link"
|
2082 |
msgstr ""
|
2083 |
|
2084 |
+
#: ../link-library-admin.php:4264
|
2085 |
msgid "Display captcha"
|
2086 |
msgstr ""
|
2087 |
|
2088 |
+
#: ../link-library-admin.php:4269
|
2089 |
msgid ""
|
2090 |
"This function will only store data when users are logged in to Wordpress"
|
2091 |
msgstr ""
|
2092 |
|
2093 |
+
#: ../link-library-admin.php:4269
|
2094 |
msgid "Store login name on link submission"
|
2095 |
msgstr ""
|
2096 |
|
2097 |
+
#: ../link-library-admin.php:4275
|
2098 |
msgid "Add new link label"
|
2099 |
msgstr ""
|
2100 |
|
2101 |
+
#: ../link-library-admin.php:4277 ../link-library-defaults.php:119
|
2102 |
+
#: ../render-link-library-addlink-sc.php:206
|
2103 |
msgid "Add new link"
|
2104 |
msgstr ""
|
2105 |
|
2106 |
+
#: ../link-library-admin.php:4284
|
2107 |
msgid "Link name label"
|
2108 |
msgstr ""
|
2109 |
|
2110 |
+
#: ../link-library-admin.php:4294
|
2111 |
msgid "Link address label"
|
2112 |
msgstr ""
|
2113 |
|
2114 |
+
#: ../link-library-admin.php:4296 ../usersubmission.php:296
|
2115 |
+
#: ../usersubmission.php:353
|
2116 |
msgid "Link Address"
|
2117 |
msgstr ""
|
2118 |
|
2119 |
+
#: ../link-library-admin.php:4303
|
2120 |
msgid "Link RSS label"
|
2121 |
msgstr ""
|
2122 |
|
2123 |
+
#: ../link-library-admin.php:4305 ../link-library-defaults.php:122
|
2124 |
+
#: ../render-link-library-addlink-sc.php:231 ../usersubmission.php:297
|
2125 |
+
#: ../usersubmission.php:356
|
2126 |
msgid "Link RSS"
|
2127 |
msgstr ""
|
2128 |
|
2129 |
+
#: ../link-library-admin.php:4312 ../link-library-admin.php:4328
|
2130 |
+
#: ../link-library-admin.php:4407 ../link-library-admin.php:4422
|
2131 |
+
#: ../link-library-admin.php:4453 ../link-library-admin.php:4468
|
2132 |
+
#: ../link-library-admin.php:4484 ../link-library-admin.php:4499
|
2133 |
+
#: ../link-library-admin.php:4515 ../link-library-admin.php:4530
|
2134 |
+
#: ../link-library-admin.php:4546 ../link-library-admin.php:4561
|
2135 |
+
#: ../link-library-admin.php:4577
|
2136 |
msgid "Hide"
|
2137 |
msgstr ""
|
2138 |
|
2139 |
+
#: ../link-library-admin.php:4313 ../link-library-admin.php:4329
|
2140 |
+
#: ../link-library-admin.php:4408 ../link-library-admin.php:4423
|
2141 |
+
#: ../link-library-admin.php:4454 ../link-library-admin.php:4469
|
2142 |
+
#: ../link-library-admin.php:4485 ../link-library-admin.php:4500
|
2143 |
+
#: ../link-library-admin.php:4516 ../link-library-admin.php:4531
|
2144 |
+
#: ../link-library-admin.php:4547 ../link-library-admin.php:4562
|
2145 |
+
#: ../link-library-admin.php:4578
|
2146 |
msgid "Show"
|
2147 |
msgstr ""
|
2148 |
|
2149 |
+
#: ../link-library-admin.php:4314 ../link-library-admin.php:4409
|
2150 |
+
#: ../link-library-admin.php:4424 ../link-library-admin.php:4455
|
2151 |
+
#: ../link-library-admin.php:4470 ../link-library-admin.php:4486
|
2152 |
+
#: ../link-library-admin.php:4501 ../link-library-admin.php:4517
|
2153 |
+
#: ../link-library-admin.php:4532 ../link-library-admin.php:4548
|
2154 |
+
#: ../link-library-admin.php:4563
|
2155 |
msgid "Required"
|
2156 |
msgstr ""
|
2157 |
|
2158 |
+
#: ../link-library-admin.php:4319
|
2159 |
msgid "Link category label"
|
2160 |
msgstr ""
|
2161 |
|
2162 |
+
#: ../link-library-admin.php:4333
|
2163 |
msgid ""
|
2164 |
"Comma-seperated list of categories to be displayed in category selection box "
|
2165 |
"(e.g. 1,5,4) instead of displaying the set of categories specified by the "
|
2166 |
"library."
|
2167 |
msgstr ""
|
2168 |
|
2169 |
+
#: ../link-library-admin.php:4333
|
2170 |
msgid "Link category override selection list"
|
2171 |
msgstr ""
|
2172 |
|
2173 |
+
#: ../link-library-admin.php:4334
|
2174 |
msgid ""
|
2175 |
"Comma-seperated list of categories to be displayed in category selection box "
|
2176 |
"(e.g. 1,5,4)"
|
2177 |
msgstr ""
|
2178 |
|
2179 |
+
#: ../link-library-admin.php:4339
|
2180 |
msgid "Default category"
|
2181 |
msgstr ""
|
2182 |
|
2183 |
+
#: ../link-library-admin.php:4374 ../link-library-admin.php:4376
|
2184 |
+
#: ../link-library-defaults.php:150
|
2185 |
msgid "User-submitted category"
|
2186 |
msgstr ""
|
2187 |
|
2188 |
+
#: ../link-library-admin.php:4383
|
2189 |
msgid "No"
|
2190 |
msgstr ""
|
2191 |
|
2192 |
+
#: ../link-library-admin.php:4384
|
2193 |
msgid "Allow"
|
2194 |
msgstr ""
|
2195 |
|
2196 |
+
#: ../link-library-admin.php:4388
|
2197 |
msgid "User-submitted category prompt"
|
2198 |
msgstr ""
|
2199 |
|
2200 |
+
#: ../link-library-admin.php:4390 ../link-library-defaults.php:151
|
2201 |
+
#: ../render-link-library-addlink-sc.php:285
|
2202 |
msgid "User-submitted category (define below)"
|
2203 |
msgstr ""
|
2204 |
|
2205 |
+
#: ../link-library-admin.php:4398
|
2206 |
msgid "Link description label"
|
2207 |
msgstr ""
|
2208 |
|
2209 |
+
#: ../link-library-admin.php:4413
|
2210 |
msgid "Link notes label"
|
2211 |
msgstr ""
|
2212 |
|
2213 |
+
#: ../link-library-admin.php:4429 ../link-library-admin.php:4430
|
2214 |
msgid "Reciprocal link must be configured for this option to work correctly"
|
2215 |
msgstr ""
|
2216 |
|
2217 |
+
#: ../link-library-admin.php:4429
|
2218 |
msgid "Show immediately if reciprocal link valid"
|
2219 |
msgstr ""
|
2220 |
|
2221 |
+
#: ../link-library-admin.php:4433
|
2222 |
msgid "Use Text Area for Notes"
|
2223 |
msgstr ""
|
2224 |
|
2225 |
+
#: ../link-library-admin.php:4438
|
2226 |
msgid "Only allow one reciprocal link per domain"
|
2227 |
msgstr ""
|
2228 |
|
2229 |
+
#: ../link-library-admin.php:4444
|
2230 |
msgid "Reciprocal Link label"
|
2231 |
msgstr ""
|
2232 |
|
2233 |
+
#: ../link-library-admin.php:4446 ../link-library-admin.php:5008
|
2234 |
+
#: ../link-library-defaults.php:166 ../render-link-library-addlink-sc.php:388
|
2235 |
+
#: ../usersubmission.php:302 ../usersubmission.php:374
|
2236 |
msgid "Reciprocal Link"
|
2237 |
msgstr ""
|
2238 |
|
2239 |
+
#: ../link-library-admin.php:4459
|
2240 |
msgid "Secondary Address label"
|
2241 |
msgstr ""
|
2242 |
|
2243 |
+
#: ../link-library-admin.php:4461 ../link-library-defaults.php:168
|
2244 |
+
#: ../render-link-library-addlink-sc.php:406
|
2245 |
msgid "Secondary Address"
|
2246 |
msgstr ""
|
2247 |
|
2248 |
+
#: ../link-library-admin.php:4475
|
2249 |
msgid "Link Telephone label"
|
2250 |
msgstr ""
|
2251 |
|
2252 |
+
#: ../link-library-admin.php:4490
|
2253 |
msgid "Link E-mail label"
|
2254 |
msgstr ""
|
2255 |
|
2256 |
+
#: ../link-library-admin.php:4506
|
2257 |
msgid "Link Submitter Name label"
|
2258 |
msgstr ""
|
2259 |
|
2260 |
+
#: ../link-library-admin.php:4521
|
2261 |
msgid "Link Submitter E-mail label"
|
2262 |
msgstr ""
|
2263 |
|
2264 |
+
#: ../link-library-admin.php:4523 ../link-library-admin.php:5033
|
2265 |
+
#: ../link-library-defaults.php:186 ../render-link-library-addlink-sc.php:491
|
2266 |
msgid "Submitter E-mail"
|
2267 |
msgstr ""
|
2268 |
|
2269 |
+
#: ../link-library-admin.php:4537
|
2270 |
msgid "Link Submitter Comment Label"
|
2271 |
msgstr ""
|
2272 |
|
2273 |
+
#: ../link-library-admin.php:4539 ../link-library-defaults.php:188
|
2274 |
+
#: ../render-link-library-addlink-sc.php:522
|
2275 |
msgid "Submitter Comment"
|
2276 |
msgstr ""
|
2277 |
|
2278 |
+
#: ../link-library-admin.php:4552
|
2279 |
msgid "Large Description Label"
|
2280 |
msgstr ""
|
2281 |
|
2282 |
+
#: ../link-library-admin.php:4554 ../link-library-admin.php:4710
|
2283 |
+
#: ../link-library-defaults.php:201 ../render-link-library-sc.php:991
|
2284 |
msgid "Large Description"
|
2285 |
msgstr ""
|
2286 |
|
2287 |
+
#: ../link-library-admin.php:4568
|
2288 |
msgid "Custom Captcha Question"
|
2289 |
msgstr ""
|
2290 |
|
2291 |
+
#: ../link-library-admin.php:4570 ../link-library-defaults.php:195
|
2292 |
+
#: ../render-link-library-addlink-sc.php:540
|
2293 |
msgid "Is boiling water hot or cold?"
|
2294 |
msgstr ""
|
2295 |
|
2296 |
+
#: ../link-library-admin.php:4582
|
2297 |
msgid "Custom Captcha Answer"
|
2298 |
msgstr ""
|
2299 |
|
2300 |
+
#: ../link-library-admin.php:4584 ../link-library-defaults.php:196
|
2301 |
msgid "hot"
|
2302 |
msgstr ""
|
2303 |
|
2304 |
+
#: ../link-library-admin.php:4591
|
2305 |
msgid "Add Link button label"
|
2306 |
msgstr ""
|
2307 |
|
2308 |
+
#: ../link-library-admin.php:4593 ../link-library-defaults.php:126
|
2309 |
msgid "Add Link"
|
2310 |
msgstr ""
|
2311 |
|
2312 |
+
#: ../link-library-admin.php:4600
|
2313 |
msgid "New Link Message"
|
2314 |
msgstr ""
|
2315 |
|
2316 |
+
#: ../link-library-admin.php:4602
|
2317 |
msgid "New link submitted"
|
2318 |
msgstr ""
|
2319 |
|
2320 |
+
#: ../link-library-admin.php:4609
|
2321 |
msgid "New Link Moderation Label"
|
2322 |
msgstr ""
|
2323 |
|
2324 |
+
#: ../link-library-admin.php:4611
|
2325 |
msgid "it will appear in the list once moderated. Thank you."
|
2326 |
msgstr ""
|
2327 |
|
2328 |
+
#: ../link-library-admin.php:4632
|
2329 |
+
msgid "Overwrites current library settings with contents of CSV file"
|
|
|
|
|
2330 |
msgstr ""
|
2331 |
|
2332 |
+
#: ../link-library-admin.php:4632
|
2333 |
+
msgid "Library Settings CSV file to import"
|
2334 |
msgstr ""
|
2335 |
|
2336 |
+
#: ../link-library-admin.php:4635
|
2337 |
+
msgid "Import Library Settings"
|
2338 |
msgstr ""
|
2339 |
|
2340 |
+
#: ../link-library-admin.php:4639
|
2341 |
+
msgid "Generates CSV file with current library configuration for download"
|
2342 |
msgstr ""
|
2343 |
|
2344 |
+
#: ../link-library-admin.php:4639
|
2345 |
+
msgid "Export current library settings"
|
2346 |
msgstr ""
|
2347 |
|
2348 |
+
#: ../link-library-admin.php:4641
|
2349 |
+
msgid "Export Library Settings"
|
2350 |
msgstr ""
|
2351 |
|
2352 |
+
#: ../link-library-admin.php:4654
|
2353 |
+
msgid "Search string"
|
2354 |
msgstr ""
|
2355 |
|
2356 |
+
#: ../link-library-admin.php:4660
|
2357 |
+
msgid "Delete links that return a 403 error"
|
2358 |
msgstr ""
|
2359 |
|
2360 |
+
#: ../link-library-admin.php:4666
|
2361 |
+
msgid "Check Reciprocal Links"
|
2362 |
msgstr ""
|
2363 |
|
2364 |
+
#: ../link-library-admin.php:4672
|
2365 |
+
msgid "Check Broken Links"
|
2366 |
msgstr ""
|
2367 |
|
2368 |
+
#: ../link-library-admin.php:4677
|
2369 |
+
msgid "Check Duplicate Links"
|
2370 |
msgstr ""
|
2371 |
|
2372 |
+
#: ../link-library-admin.php:4722
|
2373 |
+
msgid "RSS Address"
|
2374 |
msgstr ""
|
2375 |
|
2376 |
+
#: ../link-library-admin.php:4726
|
2377 |
+
msgid "Target"
|
2378 |
msgstr ""
|
2379 |
|
2380 |
+
#: ../link-library-admin.php:4745
|
2381 |
+
msgid "Current Image"
|
2382 |
msgstr ""
|
2383 |
|
2384 |
+
#: ../link-library-admin.php:4751
|
2385 |
+
msgid "None Assigned"
|
2386 |
msgstr ""
|
2387 |
|
2388 |
+
#: ../link-library-admin.php:4757
|
2389 |
+
msgid "Image URL"
|
2390 |
msgstr ""
|
2391 |
|
2392 |
+
#: ../link-library-admin.php:4762 ../link-library-admin.php:4772
|
2393 |
+
msgid "Automatic Image Generation"
|
2394 |
msgstr ""
|
2395 |
|
2396 |
+
#: ../link-library-admin.php:4766
|
2397 |
+
msgid "Generate Thumbnail and Store locally"
|
2398 |
msgstr ""
|
2399 |
|
2400 |
+
#: ../link-library-admin.php:4767
|
2401 |
+
msgid "Generate Favorite Icon and Store locally"
|
2402 |
msgstr ""
|
2403 |
|
2404 |
+
#: ../link-library-admin.php:4773
|
2405 |
+
msgid "Only available once link is saved"
|
2406 |
msgstr ""
|
2407 |
|
2408 |
+
#: ../link-library-admin.php:4778
|
2409 |
+
msgid "Image Upload"
|
2410 |
msgstr ""
|
2411 |
|
2412 |
+
#: ../link-library-admin.php:4780
|
2413 |
+
msgid "Launch Media Uploader"
|
2414 |
msgstr ""
|
2415 |
|
2416 |
+
#: ../link-library-admin.php:4877
|
2417 |
+
msgid ""
|
2418 |
+
"Cannot generate thumbnail when no name and no web address are specified."
|
2419 |
+
msgstr ""
|
2420 |
+
|
2421 |
+
#: ../link-library-admin.php:4913
|
2422 |
+
msgid ""
|
2423 |
+
"Cannot generate favorite icon when no name and no web address are specified."
|
2424 |
msgstr ""
|
2425 |
|
2426 |
+
#: ../link-library-admin.php:4958
|
2427 |
+
msgid "Featured Item"
|
2428 |
msgstr ""
|
2429 |
|
2430 |
+
#: ../link-library-admin.php:4964
|
2431 |
msgid "No Follow"
|
2432 |
msgstr ""
|
2433 |
|
2434 |
+
#: ../link-library-admin.php:4980
|
2435 |
msgid "Updated Date"
|
2436 |
msgstr ""
|
2437 |
|
2438 |
+
#: ../link-library-admin.php:4989
|
2439 |
msgid "Secondary Web Address"
|
2440 |
msgstr ""
|
2441 |
|
2442 |
+
#: ../link-library-admin.php:4992 ../link-library-admin.php:5011
|
2443 |
msgid "Visit"
|
2444 |
msgstr ""
|
2445 |
|
2446 |
+
#: ../link-library-admin.php:5015
|
2447 |
+
msgid "Number of views"
|
2448 |
msgstr ""
|
2449 |
|
2450 |
+
#: ../link-library-admin.php:5021
|
2451 |
+
msgid "Submitter"
|
|
|
|
|
|
|
|
|
2452 |
msgstr ""
|
2453 |
|
2454 |
+
#: ../link-library-admin.php:5561
|
2455 |
+
msgid "Duplicate Link Checker Report"
|
2456 |
msgstr ""
|
2457 |
|
2458 |
+
#: ../link-library-admin.php:5563
|
2459 |
+
msgid "Duplicate URLs"
|
2460 |
msgstr ""
|
2461 |
|
2462 |
+
#: ../link-library-admin.php:5579
|
2463 |
+
msgid "Duplicate Names"
|
2464 |
msgstr ""
|
2465 |
|
2466 |
+
#: ../link-library-admin.php:5622
|
2467 |
+
msgid "Reciprocal Link Checker Report"
|
2468 |
msgstr ""
|
2469 |
|
2470 |
+
#: ../link-library-admin.php:5624
|
2471 |
+
msgid "Broken Link Checker Report"
|
2472 |
msgstr ""
|
2473 |
|
2474 |
+
#: ../link-library-admin.php:5640
|
2475 |
+
msgid "Not Found"
|
2476 |
msgstr ""
|
2477 |
|
2478 |
+
#: ../link-library-admin.php:5642
|
2479 |
+
msgid "OK"
|
2480 |
msgstr ""
|
2481 |
|
2482 |
+
#: ../link-library-admin.php:5644
|
2483 |
+
msgid "Link valid"
|
2484 |
msgstr ""
|
2485 |
|
2486 |
+
#: ../link-library-admin.php:5647
|
2487 |
+
msgid "Error 403: Link Deleted"
|
2488 |
msgstr ""
|
2489 |
|
2490 |
+
#: ../link-library-admin.php:5649
|
2491 |
+
msgid "Error 403"
|
|
|
|
|
2492 |
msgstr ""
|
2493 |
|
2494 |
+
#: ../link-library-admin.php:5651
|
2495 |
+
msgid "Website Unreachable"
|
|
|
2496 |
msgstr ""
|
2497 |
|
2498 |
+
#: ../link-library-admin.php:5655
|
2499 |
+
msgid "There are no links with reciprocal links associated with them"
|
|
|
2500 |
msgstr ""
|
2501 |
|
2502 |
+
#: ../link-library-admin.php:5661
|
2503 |
msgid "Add Link Library Shortcode"
|
2504 |
msgstr ""
|
2505 |
|
2506 |
+
#: ../link-library-defaults.php:120 ../render-link-library-addlink-sc.php:214
|
2507 |
msgid "Link name"
|
2508 |
msgstr ""
|
2509 |
|
2510 |
+
#: ../link-library-defaults.php:121 ../render-link-library-addlink-sc.php:220
|
2511 |
msgid "Link address"
|
2512 |
msgstr ""
|
2513 |
|
2514 |
+
#: ../link-library-defaults.php:127
|
2515 |
msgid "New link submitted."
|
2516 |
msgstr ""
|
2517 |
|
2518 |
+
#: ../link-library-defaults.php:128
|
2519 |
msgid "It will appear in the list once moderated. Thank you."
|
2520 |
msgstr ""
|
2521 |
|
2522 |
+
#: ../link-library-defaults.php:145
|
2523 |
msgid "Link Library-Generated RSS Feed"
|
2524 |
msgstr ""
|
2525 |
|
2526 |
+
#: ../link-library-defaults.php:146
|
2527 |
msgid "Description of Link Library-Generated Feed"
|
2528 |
msgstr ""
|
2529 |
|
2530 |
+
#: ../link-library-defaults.php:208 ../linkpopup.php:66
|
2531 |
msgid "%link_image%<br />Click through to visit %link_name%."
|
2532 |
msgstr ""
|
2533 |
|
2534 |
+
#: ../link-library-defaults.php:221
|
2535 |
msgid "Search..."
|
2536 |
msgstr ""
|
2537 |
|
2538 |
+
#: ../link-library-defaults.php:223
|
2539 |
msgid "Category Filter"
|
2540 |
msgstr ""
|
2541 |
|
2542 |
+
#: ../link-library.php:532
|
2543 |
msgid "Link Library Generated Feed"
|
2544 |
msgstr ""
|
2545 |
|
2546 |
+
#: ../link-library.php:720
|
2547 |
msgid "Could not update link in the database"
|
2548 |
msgstr ""
|
2549 |
|
2550 |
+
#: ../link-library.php:727
|
2551 |
msgid "Could not insert link into the database"
|
2552 |
msgstr ""
|
2553 |
|
2554 |
+
#: ../link-library.php:749 ../link-library.php:753
|
2555 |
msgid ""
|
2556 |
"Link Library no longer supports calling this function with individual "
|
2557 |
"arguments. Please use the admin panel to configure Link Library and the "
|
2558 |
"do_shortcode function to use Link Library output in your code."
|
2559 |
msgstr ""
|
2560 |
|
2561 |
+
#: ../link-library.php:892
|
2562 |
+
msgid "Tag"
|
2563 |
+
msgstr ""
|
2564 |
+
|
2565 |
+
#: ../render-link-library-addlink-sc.php:134
|
2566 |
msgid "Confirm code not given"
|
2567 |
msgstr ""
|
2568 |
|
2569 |
+
#: ../render-link-library-addlink-sc.php:136
|
2570 |
msgid "Captcha code is wrong"
|
2571 |
msgstr ""
|
2572 |
|
2573 |
+
#: ../render-link-library-addlink-sc.php:138
|
2574 |
msgid "Captcha code is only valid for 5 minutes"
|
2575 |
msgstr ""
|
2576 |
|
2577 |
+
#: ../render-link-library-addlink-sc.php:140
|
2578 |
msgid "No captcha cookie given. Make sure cookies are enabled"
|
2579 |
msgstr ""
|
2580 |
|
2581 |
+
#: ../render-link-library-addlink-sc.php:142
|
2582 |
msgid "Captcha answer was not provided."
|
2583 |
msgstr ""
|
2584 |
|
2585 |
+
#: ../render-link-library-addlink-sc.php:144
|
2586 |
msgid "Captcha answer is incorrect"
|
2587 |
msgstr ""
|
2588 |
|
2589 |
+
#: ../render-link-library-addlink-sc.php:146
|
2590 |
msgid "User Category was not provided correctly. Link insertion failed."
|
2591 |
msgstr ""
|
2592 |
|
2593 |
+
#: ../render-link-library-addlink-sc.php:154
|
2594 |
msgid "Error: Link does not have an address."
|
2595 |
msgstr ""
|
2596 |
|
2597 |
+
#: ../render-link-library-addlink-sc.php:156
|
2598 |
msgid "Error: Link already exists."
|
2599 |
msgstr ""
|
2600 |
|
2601 |
+
#: ../render-link-library-addlink-sc.php:158
|
2602 |
+
#: ../render-link-library-addlink-sc.php:160
|
2603 |
+
#: ../render-link-library-addlink-sc.php:162
|
2604 |
+
#: ../render-link-library-addlink-sc.php:164
|
2605 |
+
#: ../render-link-library-addlink-sc.php:166
|
2606 |
+
#: ../render-link-library-addlink-sc.php:168
|
2607 |
+
#: ../render-link-library-addlink-sc.php:170
|
2608 |
+
#: ../render-link-library-addlink-sc.php:172
|
2609 |
+
#: ../render-link-library-addlink-sc.php:174
|
2610 |
+
#: ../render-link-library-addlink-sc.php:176
|
2611 |
+
#: ../render-link-library-addlink-sc.php:178
|
2612 |
msgid " is a required field"
|
2613 |
msgstr ""
|
2614 |
|
2615 |
+
#: ../render-link-library-addlink-sc.php:180
|
2616 |
msgid "Link submission error"
|
2617 |
msgstr ""
|
2618 |
|
2619 |
+
#: ../render-link-library-addlink-sc.php:182
|
2620 |
msgid "Link rejected. There is already a site with this reciprocal link."
|
2621 |
msgstr ""
|
2622 |
|
2623 |
+
#: ../render-link-library-addlink-sc.php:217
|
2624 |
+
#: ../render-link-library-addlink-sc.php:278
|
2625 |
+
#: ../render-link-library-addlink-sc.php:344
|
2626 |
+
#: ../render-link-library-addlink-sc.php:361
|
2627 |
+
#: ../render-link-library-addlink-sc.php:369
|
2628 |
+
#: ../render-link-library-addlink-sc.php:417
|
2629 |
+
#: ../render-link-library-addlink-sc.php:435
|
2630 |
+
#: ../render-link-library-addlink-sc.php:528
|
2631 |
+
#: ../render-link-library-addlink-sc.php:543
|
2632 |
msgid "Required field"
|
2633 |
msgstr ""
|
2634 |
|
2635 |
+
#: ../render-link-library-addlink-sc.php:225
|
2636 |
msgid "Required field, URL"
|
2637 |
msgstr ""
|
2638 |
|
2639 |
+
#: ../render-link-library-addlink-sc.php:242
|
2640 |
+
#: ../render-link-library-addlink-sc.php:331
|
2641 |
+
#: ../render-link-library-addlink-sc.php:399
|
2642 |
msgid "Required field, 1-255 chars"
|
2643 |
msgstr ""
|
2644 |
|
2645 |
+
#: ../render-link-library-addlink-sc.php:274
|
2646 |
msgid "Link category"
|
2647 |
msgstr ""
|
2648 |
|
2649 |
+
#: ../render-link-library-addlink-sc.php:281
|
2650 |
msgid "Select a category"
|
2651 |
msgstr ""
|
2652 |
|
2653 |
+
#: ../render-link-library-addlink-sc.php:320
|
2654 |
msgid "Link description"
|
2655 |
msgstr ""
|
2656 |
|
2657 |
+
#: ../render-link-library-addlink-sc.php:338
|
2658 |
msgid "Large description"
|
2659 |
msgstr ""
|
2660 |
|
2661 |
+
#: ../render-link-library-addlink-sc.php:352
|
2662 |
msgid "Link notes"
|
2663 |
msgstr ""
|
2664 |
|
2665 |
+
#: ../render-link-library-addlink-sc.php:453
|
2666 |
msgid "Required field, proper e-mail, 1-128 chars"
|
2667 |
msgstr ""
|
2668 |
|
2669 |
+
#: ../render-link-library-addlink-sc.php:484
|
2670 |
+
#: ../render-link-library-addlink-sc.php:515
|
2671 |
msgid "Required field, 1-128 chars"
|
2672 |
msgstr ""
|
2673 |
|
2674 |
+
#: ../render-link-library-addlink-sc.php:549
|
2675 |
msgid "Add link"
|
2676 |
msgstr ""
|
2677 |
|
2678 |
+
#: ../render-link-library-addlink-sc.php:561
|
2679 |
msgid "Form submission failed!"
|
2680 |
msgstr ""
|
2681 |
|
2682 |
+
#: ../render-link-library-addlink-sc.php:562
|
2683 |
msgid "You have not answered all required fields"
|
2684 |
msgstr ""
|
2685 |
|
2686 |
+
#: ../render-link-library-addlink-sc.php:563
|
2687 |
msgid "You have not given a correct time"
|
2688 |
msgstr ""
|
2689 |
|
2690 |
+
#: ../render-link-library-addlink-sc.php:564
|
2691 |
msgid "You have not given a correct e-mail address"
|
2692 |
msgstr ""
|
2693 |
|
2694 |
+
#: ../render-link-library-addlink-sc.php:565
|
2695 |
msgid "You have not given a correct phone number"
|
2696 |
msgstr ""
|
2697 |
|
2698 |
+
#: ../render-link-library-addlink-sc.php:566
|
2699 |
msgid "You have not given a correct answer to the security question"
|
2700 |
msgstr ""
|
2701 |
|
2702 |
+
#: ../render-link-library-addlink-sc.php:567
|
2703 |
msgid "You have not given a correct date"
|
2704 |
msgstr ""
|
2705 |
|
2706 |
+
#: ../render-link-library-addlink-sc.php:568
|
2707 |
msgid "The input value must be between "
|
2708 |
msgstr ""
|
2709 |
|
2710 |
+
#: ../render-link-library-addlink-sc.php:569
|
2711 |
msgid "characters"
|
2712 |
msgstr ""
|
2713 |
|
2714 |
+
#: ../render-link-library-addlink-sc.php:570
|
2715 |
msgid "The input value is longer than "
|
2716 |
msgstr ""
|
2717 |
|
2718 |
+
#: ../render-link-library-addlink-sc.php:571
|
2719 |
msgid "The input value is shorter than "
|
2720 |
msgstr ""
|
2721 |
|
2722 |
+
#: ../render-link-library-addlink-sc.php:572
|
2723 |
msgid "Input values could not be confirmed"
|
2724 |
msgstr ""
|
2725 |
|
2726 |
+
#: ../render-link-library-addlink-sc.php:573
|
2727 |
msgid "Incorrect domain value"
|
2728 |
msgstr ""
|
2729 |
|
2730 |
+
#: ../render-link-library-addlink-sc.php:574
|
2731 |
+
msgid "The input value is not a correct URL. Requires http://."
|
2732 |
msgstr ""
|
2733 |
|
2734 |
+
#: ../render-link-library-addlink-sc.php:575
|
2735 |
msgid "The input value is incorrect"
|
2736 |
msgstr ""
|
2737 |
|
2738 |
+
#: ../render-link-library-addlink-sc.php:576
|
2739 |
msgid " and spaces "
|
2740 |
msgstr ""
|
2741 |
|
2742 |
+
#: ../render-link-library-addlink-sc.php:577
|
2743 |
msgid "The input value was not a correct number"
|
2744 |
msgstr ""
|
2745 |
|
2746 |
+
#: ../render-link-library-addlink-sc.php:578
|
2747 |
msgid "Your social security number was incorrect"
|
2748 |
msgstr ""
|
2749 |
|
2750 |
+
#: ../render-link-library-addlink-sc.php:579
|
2751 |
msgid "Incorrect UK VAT Number"
|
2752 |
msgstr ""
|
2753 |
|
2754 |
+
#: ../render-link-library-addlink-sc.php:580
|
2755 |
msgid "The password is not strong enough"
|
2756 |
msgstr ""
|
2757 |
|
2758 |
+
#: ../render-link-library-addlink-sc.php:581
|
2759 |
msgid "You have to choose at least "
|
2760 |
msgstr ""
|
2761 |
|
2762 |
+
#: ../render-link-library-addlink-sc.php:582
|
2763 |
msgid " answers"
|
2764 |
msgstr ""
|
2765 |
|
2766 |
+
#: ../render-link-library-addlink-sc.php:583
|
2767 |
msgid "The input value can only contain alphanumeric characters "
|
2768 |
msgstr ""
|
2769 |
|
2770 |
+
#: ../render-link-library-addlink-sc.php:584
|
2771 |
msgid " and "
|
2772 |
msgstr ""
|
2773 |
|
2774 |
+
#: ../render-link-library-addlink-sc.php:585
|
2775 |
#, php-format
|
2776 |
msgid "The file you are trying to upload is too large (max %s)"
|
2777 |
msgstr ""
|
2778 |
|
2779 |
+
#: ../render-link-library-addlink-sc.php:586
|
2780 |
#, php-format
|
2781 |
msgid "Only files of type %s is allowed"
|
2782 |
msgstr ""
|
2783 |
|
2784 |
+
#: ../render-link-library-addlink-sc.php:587
|
2785 |
msgid "Please choose between "
|
2786 |
msgstr ""
|
2787 |
|
2788 |
+
#: ../render-link-library-addlink-sc.php:588
|
2789 |
msgid "Please choose at least "
|
2790 |
msgstr ""
|
2791 |
|
2792 |
+
#: ../render-link-library-addlink-sc.php:589
|
2793 |
msgid "Please choose a maximum of "
|
2794 |
msgstr ""
|
2795 |
|
2796 |
+
#: ../render-link-library-addlink-sc.php:590
|
2797 |
msgid " item(s)"
|
2798 |
msgstr ""
|
2799 |
|
2800 |
+
#: ../render-link-library-addlink-sc.php:591
|
2801 |
msgid "The credit card number is not correct"
|
2802 |
msgstr ""
|
2803 |
|
2804 |
+
#: ../render-link-library-addlink-sc.php:592
|
2805 |
msgid "The CVV number was not correct"
|
2806 |
msgstr ""
|
2807 |
|
2808 |
+
#: ../render-link-library-addlink-sc.php:593
|
2809 |
msgid "Incorrect image dimensions,"
|
2810 |
msgstr ""
|
2811 |
|
2812 |
+
#: ../render-link-library-addlink-sc.php:594
|
2813 |
msgid "the image can not be taller than"
|
2814 |
msgstr ""
|
2815 |
|
2816 |
+
#: ../render-link-library-addlink-sc.php:595
|
2817 |
msgid "the image can not be wider than"
|
2818 |
msgstr ""
|
2819 |
|
2820 |
+
#: ../render-link-library-addlink-sc.php:596
|
2821 |
msgid "the image was too small"
|
2822 |
msgstr ""
|
2823 |
|
2824 |
+
#: ../render-link-library-addlink-sc.php:597
|
2825 |
msgid "min"
|
2826 |
msgstr ""
|
2827 |
|
2828 |
+
#: ../render-link-library-addlink-sc.php:598
|
2829 |
msgid "max"
|
2830 |
msgstr ""
|
2831 |
|
2832 |
+
#: ../render-link-library-addlink-sc.php:599
|
2833 |
msgid "Image ratio is not accepted"
|
2834 |
msgstr ""
|
2835 |
|
2836 |
+
#: ../render-link-library-addlink-sc.php:622
|
2837 |
msgid "Enter code from above image"
|
2838 |
msgstr ""
|
2839 |
|
2840 |
+
#: ../render-link-library-cats-sc.php:409
|
2841 |
msgid "Go!"
|
2842 |
msgstr ""
|
2843 |
|
2844 |
+
#: ../render-link-library-cats-sc.php:438
|
2845 |
msgid "No categories found"
|
2846 |
msgstr ""
|
2847 |
|
2848 |
+
#: ../render-link-library-sc.php:115 ../render-link-library-sc.php:118
|
2849 |
+
#: ../render-link-library-sc.php:131 ../render-link-library-sc.php:137
|
2850 |
msgid "Previous"
|
2851 |
msgstr ""
|
2852 |
|
2853 |
+
#: ../render-link-library-sc.php:206 ../render-link-library-sc.php:209
|
2854 |
+
#: ../render-link-library-sc.php:215 ../render-link-library-sc.php:222
|
2855 |
msgid "Next"
|
2856 |
msgstr ""
|
2857 |
|
2858 |
+
#: ../render-link-library-sc.php:572
|
2859 |
msgid "Search Results for"
|
2860 |
msgstr ""
|
2861 |
|
2862 |
+
#: ../render-link-library-sc.php:1080
|
2863 |
+
msgid "No links found"
|
2864 |
+
msgstr ""
|
2865 |
+
|
2866 |
+
#: ../render-link-library-sc.php:1248
|
2867 |
msgid "Last updated"
|
2868 |
msgstr ""
|
2869 |
|
2870 |
+
#: ../render-link-library-sc.php:1396
|
2871 |
msgid "Edit"
|
2872 |
msgstr ""
|
2873 |
|
2874 |
+
#: ../render-link-library-sc.php:1480
|
2875 |
msgid "Preview of RSS feed for"
|
2876 |
msgstr ""
|
2877 |
|
2878 |
+
#: ../render-link-library-sc.php:1784
|
2879 |
+
msgid "Free"
|
2880 |
+
msgstr ""
|
2881 |
+
|
2882 |
+
#: ../render-link-library-tag-filter-sc.php:87
|
2883 |
+
msgid "Apply filter"
|
2884 |
msgstr ""
|
2885 |
|
2886 |
+
#: ../usersubmission.php:294
|
2887 |
msgid "A user submitted a new link to your Wordpress Link database."
|
2888 |
msgstr ""
|
2889 |
|
2890 |
+
#: ../usersubmission.php:303 ../usersubmission.php:378
|
2891 |
msgid "Link Secondary Address"
|
2892 |
msgstr ""
|
2893 |
|
2894 |
+
#: ../usersubmission.php:304 ../usersubmission.php:382
|
2895 |
msgid "Link Telephone"
|
2896 |
msgstr ""
|
2897 |
|
2898 |
+
#: ../usersubmission.php:305 ../usersubmission.php:386
|
2899 |
msgid "Link E-mail"
|
2900 |
msgstr ""
|
2901 |
|
2902 |
+
#: ../usersubmission.php:306
|
2903 |
+
msgid "Link Submitter"
|
2904 |
+
msgstr ""
|
2905 |
+
|
2906 |
+
#: ../usersubmission.php:307 ../usersubmission.php:390
|
2907 |
+
msgid "Link Submitter Name"
|
2908 |
+
msgstr ""
|
2909 |
+
|
2910 |
+
#: ../usersubmission.php:308 ../usersubmission.php:394
|
2911 |
+
msgid "Link Submitter E-mail"
|
2912 |
+
msgstr ""
|
2913 |
+
|
2914 |
+
#: ../usersubmission.php:309 ../usersubmission.php:398
|
2915 |
msgid "Link Comment"
|
2916 |
msgstr ""
|
2917 |
|
2918 |
+
#: ../usersubmission.php:323
|
2919 |
msgid "New link added"
|
2920 |
msgstr ""
|
2921 |
|
2922 |
+
#: ../usersubmission.php:337
|
2923 |
msgid "Link Submission Confirmation"
|
2924 |
msgstr ""
|
2925 |
|
2926 |
+
#: ../usersubmission.php:339
|
2927 |
msgid "Thank you for your link submission on "
|
2928 |
msgstr ""
|
2929 |
|
2930 |
+
#: ../usersubmission.php:343
|
2931 |
msgid "Your link will appear once approved by the site administrator."
|
2932 |
msgstr ""
|
2933 |
|
2934 |
+
#: ../usersubmission.php:345
|
2935 |
msgid "Your link will immediately be added to the site."
|
2936 |
msgstr ""
|
2937 |
|
2938 |
+
#: ../wp_dropdown_posts.php:121
|
2939 |
#, php-format
|
2940 |
msgid "#%d (no title)"
|
2941 |
msgstr ""
|
link-library-admin.php
CHANGED
@@ -4,13 +4,12 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
4 |
exit;
|
5 |
} // Exit if accessed directly
|
6 |
|
7 |
-
define( 'LINK_LIBRARY_ADMIN_PAGE_NAME', '
|
8 |
|
9 |
require_once( ABSPATH . '/wp-admin/includes/bookmark.php' );
|
10 |
require_once( ABSPATH . '/wp-admin/includes/taxonomy.php' );
|
11 |
|
12 |
$rss_settings = '';
|
13 |
-
$pagehooktop = '';
|
14 |
$pagehookmoderate = '';
|
15 |
$pagehooksettingssets = '';
|
16 |
$pagehookstylesheet = '';
|
@@ -30,11 +29,6 @@ class link_library_plugin_admin {
|
|
30 |
add_action( 'network_admin_menu', array( $this, 'network_settings_menu' ) );
|
31 |
}
|
32 |
|
33 |
-
// Capture and process user submissions for custom fields in Link Edition page
|
34 |
-
add_action( 'add_link', array( $this, 'add_link_field' ) );
|
35 |
-
add_action( 'edit_link', array( $this, 'add_link_field' ) );
|
36 |
-
add_action( 'delete_link', array( $this, 'delete_link_field' ) );
|
37 |
-
|
38 |
add_action( 'wp_dashboard_setup', array( $this, 'dashboard_widget' ) );
|
39 |
|
40 |
add_filter( 'plugin_row_meta', array( $this, 'set_plugin_row_meta' ), 1, 2 );
|
@@ -43,32 +37,36 @@ class link_library_plugin_admin {
|
|
43 |
|
44 |
add_action( 'admin_head', array( $this, 'admin_header' ) );
|
45 |
|
46 |
-
add_action( '
|
47 |
-
add_action( '
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
|
49 |
-
add_action( '
|
50 |
-
add_action( '
|
51 |
|
52 |
-
|
53 |
-
$
|
54 |
-
$linkcatquery .= "t.name, t.term_id ";
|
55 |
-
$linkcatquery .= "FROM " . $this->db_prefix() . "terms t LEFT JOIN " . $this->db_prefix() . "term_taxonomy tt ON (t.term_id = tt.term_id)";
|
56 |
-
$linkcatquery .= " LEFT JOIN " . $this->db_prefix() . "term_relationships tr ON (tt.term_taxonomy_id = tr.term_taxonomy_id) ";
|
57 |
-
$linkcatquery .= "WHERE tt.taxonomy = 'link_category'";
|
58 |
|
59 |
-
|
60 |
|
61 |
-
|
62 |
-
|
63 |
-
|
|
|
|
|
|
|
64 |
|
65 |
if ( $this->is_edit_page() ) {
|
66 |
-
add_action( 'admin_enqueue_scripts', array( $this, 'admin_scripts' ), 99 );
|
67 |
add_action( 'media_buttons', 'link_library_render_editor_button', 20 );
|
68 |
add_action( 'admin_footer', array( $this, 'render_modal' ) );
|
69 |
}
|
70 |
-
|
71 |
-
add_action( '
|
72 |
}
|
73 |
|
74 |
function is_edit_page( $new_edit = null ) {
|
@@ -83,12 +81,21 @@ class link_library_plugin_admin {
|
|
83 |
} elseif ( 'new' == $new_edit ) { //check for new post page
|
84 |
return in_array( $pagenow, array( 'post-new.php' ) );
|
85 |
} else { //check for either new or edit
|
86 |
-
|
|
|
|
|
|
|
|
|
87 |
}
|
88 |
}
|
89 |
|
90 |
-
public function admin_scripts() {
|
91 |
wp_enqueue_script( 'linklibrary-shortcodes-embed', plugins_url( "js/linklibrary-shortcode-embed.js", __FILE__ ), array( 'jquery' ), '', true );
|
|
|
|
|
|
|
|
|
|
|
92 |
}
|
93 |
|
94 |
public function render_modal() {
|
@@ -115,7 +122,7 @@ class link_library_plugin_admin {
|
|
115 |
<label for="linklibrary_link-library_libraryid"><?php _e( 'Library ID', 'link-library' ); ?></label>
|
116 |
<br/>
|
117 |
<select class="linklibrary_settings select" id="linklibrary_settings" name="settings" data-slug="settings" data-shortcode="settings" />
|
118 |
-
<?php if ( $genoptions['numberstylesets']
|
119 |
$numberofsets = 1;
|
120 |
} else {
|
121 |
$numberofsets = $genoptions['numberstylesets'];
|
@@ -170,7 +177,7 @@ class link_library_plugin_admin {
|
|
170 |
<label for="linklibrary_link-library_libraryid"><?php _e( 'Library ID', 'link-library' ); ?></label>
|
171 |
<br/>
|
172 |
<select class="linklibrary_settings select" id="linklibrary_settings" name="settings" data-slug="settings" data-shortcode="settings" />
|
173 |
-
<?php if ( $genoptions['numberstylesets']
|
174 |
$numberofsets = 1;
|
175 |
} else {
|
176 |
$numberofsets = $genoptions['numberstylesets'];
|
@@ -205,7 +212,7 @@ class link_library_plugin_admin {
|
|
205 |
<label for="linklibrary_link-library_libraryid"><?php _e( 'Library ID', 'link-library' ); ?></label>
|
206 |
<br/>
|
207 |
<select class="linklibrary_settings select" id="linklibrary_settings" name="settings" data-slug="settings" data-shortcode="settings" />
|
208 |
-
<?php if ( $genoptions['numberstylesets']
|
209 |
$numberofsets = 1;
|
210 |
} else {
|
211 |
$numberofsets = $genoptions['numberstylesets'];
|
@@ -237,15 +244,15 @@ class link_library_plugin_admin {
|
|
237 |
<?php
|
238 |
}
|
239 |
|
240 |
-
function
|
241 |
|
242 |
$caturl = '';
|
243 |
$cat_extra_query_string = '';
|
244 |
|
245 |
if ( is_object( $tag ) ) {
|
246 |
$mode = "edit";
|
247 |
-
$caturl =
|
248 |
-
$cat_extra_query_string =
|
249 |
} else {
|
250 |
$mode = 'new';
|
251 |
}
|
@@ -311,18 +318,18 @@ class link_library_plugin_admin {
|
|
311 |
}
|
312 |
}
|
313 |
|
314 |
-
function
|
315 |
|
316 |
if ( !$term_id ) {
|
317 |
return;
|
318 |
}
|
319 |
|
320 |
if ( isset( $_POST['ll_category_url'] ) ) {
|
321 |
-
|
322 |
}
|
323 |
|
324 |
if ( isset( $_POST['cat_extra_query_string'] ) ) {
|
325 |
-
|
326 |
}
|
327 |
}
|
328 |
|
@@ -334,7 +341,7 @@ class link_library_plugin_admin {
|
|
334 |
}
|
335 |
}
|
336 |
|
337 |
-
if ( isset( $_GET['page'] ) && ( ( $_GET['page'] == 'link-library' ) || $_GET['page'] == 'link-library-settingssets' || $_GET['page'] == 'link-library-moderate' || $_GET['page'] == 'link-library-stylesheet' || $_GET['page'] == 'link-library-reciprocal' ) ) {
|
338 |
wp_enqueue_style( 'LibraryLibraryAdminStyle', plugins_url( 'link-library-admin.css', __FILE__ ) );
|
339 |
}
|
340 |
}
|
@@ -350,7 +357,7 @@ class link_library_plugin_admin {
|
|
350 |
}
|
351 |
|
352 |
function db_prefix() {
|
353 |
-
global $wpdb;
|
354 |
if ( method_exists( $wpdb, "get_blog_prefix" ) ) {
|
355 |
return $wpdb->get_blog_prefix();
|
356 |
} else {
|
@@ -408,17 +415,17 @@ class link_library_plugin_admin {
|
|
408 |
|
409 |
if ( $status !== false ) {
|
410 |
if ( $filepathtype == 'absolute' || empty( $filepathtype ) ) {
|
411 |
-
$newimagedata =
|
412 |
} elseif ( $filepathtype == 'relative' ) {
|
413 |
$parsedaddress = parse_url( $uploads['baseurl'] );
|
414 |
-
$newimagedata =
|
415 |
}
|
416 |
|
417 |
if ( $mode == 'thumb' || $mode == 'favicon' ) {
|
418 |
-
|
419 |
}
|
420 |
|
421 |
-
return $newimagedata
|
422 |
} else {
|
423 |
return "";
|
424 |
}
|
@@ -444,9 +451,6 @@ class link_library_plugin_admin {
|
|
444 |
exit();
|
445 |
}
|
446 |
|
447 |
-
// Add addition section to Link Edition page
|
448 |
-
add_meta_box( 'linklibrary_meta_box', __( 'Link Library - Additional Link Parameters', 'link-library' ), array( $this, 'll_link_edit_extra' ), 'link', 'normal', 'high' );
|
449 |
-
|
450 |
//register the callback been used if options of page been submitted and needs to be processed
|
451 |
add_action( 'admin_post_save_link_library_general', array( $this, 'on_save_changes_general' ) );
|
452 |
add_action( 'admin_post_save_link_library_settingssets', array( $this, 'on_save_changes_settingssets' ) );
|
@@ -454,23 +458,16 @@ class link_library_plugin_admin {
|
|
454 |
add_action( 'admin_post_save_link_library_stylesheet', array( $this, 'on_save_changes_stylesheet' ) );
|
455 |
add_action( 'admin_post_save_link_library_reciprocal', array( $this, 'on_save_changes_reciprocal' ) );
|
456 |
|
457 |
-
|
458 |
-
add_filter( 'manage_link-manager_columns', array( $this, 'll_linkmanager_addcolumn' ) );
|
459 |
-
add_action( 'manage_link_custom_column', array( $this, 'll_linkmanager_populatecolumn' ), 10, 2 );
|
460 |
-
add_filter( 'get_bookmarks', array( $this, 'll_bookmarks_filter' ) );
|
461 |
|
462 |
-
|
463 |
-
|
|
|
464 |
|
465 |
$genoptions = get_option( 'LinkLibraryGeneral' );
|
466 |
$genoptions = wp_parse_args( $genoptions, ll_reset_gen_settings( 'return' ) );
|
467 |
extract( $genoptions );
|
468 |
|
469 |
-
if ( floatval( $genoptions['schemaversion'] ) < '5.1' ) {
|
470 |
-
global $my_link_library_plugin;
|
471 |
-
$my_link_library_plugin->ll_install();
|
472 |
-
}
|
473 |
-
|
474 |
if ( !empty( $genoptions ) ) {
|
475 |
if ( empty( $numberstylesets ) ) {
|
476 |
$numberofsets = 1;
|
@@ -489,58 +486,65 @@ class link_library_plugin_admin {
|
|
489 |
}
|
490 |
}
|
491 |
|
492 |
-
if ( $thumbshotsactive && empty( $thumbshotscid ) && $genoptions['thumbnailgenerator'] == 'thumbshots' ) {
|
493 |
add_action( 'admin_notices', array( $this, 'll_thumbshots_warning' ) );
|
494 |
}
|
495 |
|
496 |
-
if ( ( !isset( $genoptions['
|
497 |
-
add_action( 'admin_notices', array( $this, '
|
498 |
-
} elseif ( ( !isset( $genoptions['
|
499 |
-
$genoptions['
|
500 |
update_option( 'LinkLibraryGeneral', $genoptions );
|
501 |
}
|
502 |
}
|
503 |
-
}
|
504 |
|
505 |
-
|
506 |
|
507 |
-
$
|
508 |
-
'
|
509 |
-
|
510 |
-
|
511 |
-
);
|
512 |
|
513 |
-
|
|
|
|
|
514 |
}
|
515 |
|
516 |
-
function
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
}
|
522 |
}
|
523 |
|
524 |
-
function save_custom_media_fields( $post, $attachment ) {
|
525 |
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
|
|
|
|
|
|
|
|
|
|
530 |
}
|
531 |
|
532 |
-
|
533 |
}
|
534 |
|
|
|
|
|
|
|
|
|
535 |
|
536 |
function ll_thumbshots_warning() {
|
537 |
echo "
|
538 |
<div id='ll-warning' class='updated fade'><p><strong>" . __( 'Link Library: Missing Thumbshots API Key', 'link-library' ) . "</strong></p> <p>" . __( 'One of your link libraries is configured to use Thumbshots for link thumbails, but you have not entered your Thumbshots.com API Key. Please visit Thumbshots.com to apply for a free or paid account and enter your API in the Link Library admin panel.', 'link-library' ) . " <a href='" . esc_url( add_query_arg( array( 'page' => 'link-library' ), admin_url( 'admin.php' ) ) ) . "'>" . __( 'Jump to Link Library admin', 'link-library' ) . "</a></p></div>";
|
539 |
}
|
540 |
|
541 |
-
function
|
542 |
echo "
|
543 |
-
<div id='ll-warning' class='updated fade'><p><strong>" . __( 'Link Library 6.0
|
544 |
}
|
545 |
|
546 |
function ll_missing_categories() {
|
@@ -589,16 +593,14 @@ class link_library_plugin_admin {
|
|
589 |
}
|
590 |
|
591 |
function render_dashboard_widget() {
|
592 |
-
global $wpdb;
|
593 |
-
|
594 |
$linkmoderatecount = 0;
|
|
|
|
|
595 |
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
$linkmoderatecount = $wpdb->get_var( $linkmoderatequery );
|
602 |
|
603 |
echo '<strong>' . $linkmoderatecount . '</strong> ';
|
604 |
_e( 'Links to moderate', 'link-library' );
|
@@ -608,7 +610,7 @@ class link_library_plugin_admin {
|
|
608 |
//extend the admin menu
|
609 |
function on_admin_menu() {
|
610 |
//add our own option page, you can also add it to different sections or use your own one
|
611 |
-
global $
|
612 |
|
613 |
$genoptions = get_option( 'LinkLibraryGeneral' );
|
614 |
$genoptions = wp_parse_args( $genoptions, ll_reset_gen_settings( 'return' ) );
|
@@ -641,22 +643,16 @@ class link_library_plugin_admin {
|
|
641 |
|
642 |
$linkmoderatecount = 0;
|
643 |
|
644 |
-
$
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
$linkmoderatecount =
|
650 |
-
|
651 |
-
if ( $linkmoderatecount == 0 ) {
|
652 |
-
$pagehooktop = add_menu_page( 'Link Library - ' . __( 'General Options', 'link-library' ), 'Link Library', $admin_capability, LINK_LIBRARY_ADMIN_PAGE_NAME, array( $this, 'on_show_page' ), plugins_url( 'icons/folder-beige-internet-icon.png', __FILE__ ) );
|
653 |
-
} else {
|
654 |
-
$pagehooktop = add_menu_page( 'Link Library - ' . __( 'General Options', 'link-library' ), 'Link Library ' . '<span class="update-plugins count-' . $linkmoderatecount . '"><span class="plugin-count">' . number_format_i18n( $linkmoderatecount ) . '</span></span>', $admin_capability, LINK_LIBRARY_ADMIN_PAGE_NAME, array( $this, 'on_show_page' ), plugins_url( 'icons/folder-beige-internet-icon.png', __FILE__ ) );
|
655 |
-
}
|
656 |
|
657 |
-
$pagehookgeneraloptions = add_submenu_page( LINK_LIBRARY_ADMIN_PAGE_NAME, 'Link Library - ' . __( '
|
658 |
|
659 |
-
$pagehooksettingssets = add_submenu_page( LINK_LIBRARY_ADMIN_PAGE_NAME, 'Link Library - ' . __( '
|
660 |
|
661 |
if ( $linkmoderatecount == 0 ) {
|
662 |
$pagehookmoderate = add_submenu_page( LINK_LIBRARY_ADMIN_PAGE_NAME, 'Link Library - ' . __( 'Moderate', 'link-library' ), __( 'Moderate', 'link-library' ), $admin_capability, 'link-library-moderate', array( $this, 'on_show_page' ) );
|
@@ -668,10 +664,9 @@ class link_library_plugin_admin {
|
|
668 |
|
669 |
$pagehookreciprocal = add_submenu_page( LINK_LIBRARY_ADMIN_PAGE_NAME, 'Link Library - ' . __( 'Link checking tools', 'link-library' ), __( 'Link checking tools', 'link-library' ), $admin_capability, 'link-library-reciprocal', array( $this, 'on_show_page' ) );
|
670 |
|
671 |
-
|
672 |
|
673 |
//register callback gets call prior your own page gets rendered
|
674 |
-
add_action( 'load-' . $pagehooktop, array( $this, 'on_load_page' ) );
|
675 |
add_action( 'load-' . $pagehooksettingssets, array( $this, 'on_load_page' ) );
|
676 |
add_action( 'load-' . $pagehookmoderate, array( $this, 'on_load_page' ) );
|
677 |
add_action( 'load-' . $pagehookstylesheet, array( $this, 'on_load_page' ) );
|
@@ -681,7 +676,7 @@ class link_library_plugin_admin {
|
|
681 |
//will be executed if wordpress core detects this page has to be rendered
|
682 |
function on_load_page() {
|
683 |
|
684 |
-
global $
|
685 |
|
686 |
//ensure, that the needed javascripts been loaded to allow drag/drop, expand/collapse and hide/show of boxes
|
687 |
wp_enqueue_script( 'tiptip', plugins_url( '/tiptip/jquery.tipTip.minified.js', __FILE__ ), "jQuery", "1.0rc3" );
|
@@ -695,7 +690,6 @@ class link_library_plugin_admin {
|
|
695 |
$genoptions = get_option( 'LinkLibraryGeneral' );
|
696 |
|
697 |
//add several metaboxes now, all metaboxes registered during load page can be switched off/on at "Screen Options" automatically, nothing special to do therefore
|
698 |
-
add_meta_box( 'linklibrary_general_save_meta_box', __( 'Save', 'link-library' ), array( $this, 'general_save_meta_box' ), $pagehooktop, 'normal', 'high' );
|
699 |
add_meta_box( 'linklibrary_moderation_meta_box', __( 'Links awaiting moderation', 'link-library' ), array( $this, 'moderate_meta_box' ), $pagehookmoderate, 'normal', 'high' );
|
700 |
add_meta_box( 'linklibrary_stylesheet_meta_box', __( 'Editor', 'link-library' ), array( $this, 'stylesheet_meta_box' ), $pagehookstylesheet, 'normal', 'high' );
|
701 |
add_meta_box( 'linklibrary_reciprocal_meta_box', __( 'Link checking tools', 'link-library' ), array( $this, 'reciprocal_meta_box' ), $pagehookreciprocal, 'normal', 'high' );
|
@@ -733,12 +727,11 @@ class link_library_plugin_admin {
|
|
733 |
|
734 |
// Retrieve general options
|
735 |
$genoptions = get_option( 'LinkLibraryGeneral' );
|
|
|
736 |
|
737 |
// If general options don't exist, create them
|
738 |
if ( $genoptions == false ) {
|
739 |
$genoptions = ll_reset_gen_settings( 'return_and_set' );
|
740 |
-
} else {
|
741 |
-
$genoptions = wp_parse_args( $genoptions, ll_reset_gen_settings( 'return' ) );
|
742 |
}
|
743 |
|
744 |
$settingsname = 'LinkLibraryPP' . $settings;
|
@@ -750,8 +743,6 @@ class link_library_plugin_admin {
|
|
750 |
}
|
751 |
|
752 |
if ( isset( $_GET['genthumbs'] ) || isset( $_GET['genfavicons'] ) || isset( $_GET['genthumbsingle'] ) || isset( $_GET['genfaviconsingle'] ) ) {
|
753 |
-
global $wpdb;
|
754 |
-
|
755 |
if ( isset( $_GET['genthumbs'] ) || isset( $_GET['genthumbsingle'] ) ) {
|
756 |
$filepath = "link-library-images";
|
757 |
} elseif ( isset( $_GET['genfavicons'] ) || isset( $_GET['genfaviconsingle'] ) ) {
|
@@ -775,33 +766,39 @@ class link_library_plugin_admin {
|
|
775 |
$genmode = 'favicon';
|
776 |
}
|
777 |
|
778 |
-
$
|
779 |
-
|
780 |
-
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
|
785 |
-
|
786 |
-
|
787 |
-
}
|
788 |
-
|
789 |
-
if ( isset( $_GET['genthumbsingle'] ) || isset( $_GET['genfaviconsingle'] ) ) {
|
790 |
-
$linkquery .= " AND l.link_id = " . intval( $_GET['linkid'] );
|
791 |
}
|
792 |
|
793 |
-
$
|
794 |
|
795 |
-
if ( $
|
796 |
$filescreated = 0;
|
797 |
-
$totallinks =
|
798 |
-
|
799 |
-
|
800 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
801 |
}
|
802 |
-
$linkname =
|
803 |
}
|
804 |
|
|
|
|
|
805 |
if ( isset( $_GET['genthumbs'] ) ) {
|
806 |
echo "<div id='message' class='updated fade'><p><strong>" . __( 'Thumbnails successfully generated!', 'link-library' ) . "</strong></p></div>";
|
807 |
} elseif ( isset( $_GET['genfavicons'] ) ) {
|
@@ -838,16 +835,15 @@ class link_library_plugin_admin {
|
|
838 |
}
|
839 |
|
840 |
// Check for current page to set some page=specific variables
|
841 |
-
if ( $_GET['page'] == 'link-library' ) {
|
842 |
if ( isset( $_GET['message'] ) && $_GET['message'] == '1' ) {
|
843 |
echo "<div id='message' class='updated fade'><p><strong>" . __( 'General Settings Saved', 'link-library' ) . ".</strong></p></div>";
|
844 |
-
} else if ( isset( $_GET['message'] ) && $_GET['message'] == '2' ) {
|
845 |
-
$linksexportdir = wp_upload_dir();
|
846 |
-
echo "<div id='message' class='updated fade'><p><strong><a href='" . $linksexportdir['url'] . '/LinksExport.csv' . "'>" . __( 'Download exported links', 'link-library' ) . "</a></strong></p></div>";
|
847 |
} else if ( isset( $_GET['message'] ) && $_GET['message'] == '3' ) {
|
848 |
echo "<div id='message' class='updated fade'><p><strong>" . __( 'Link Library plugin directory needs to be writable to perform this action', 'link-library' ) . "</strong></p></div>";
|
849 |
} else if ( isset( $_GET['message'] ) && $_GET['message'] == '4' ) {
|
850 |
echo "<div id='message' class='updated fade'><p><strong>" . __( 'You must set the Google reCAPTCHA Site and Secret Keys to be able to set the captcha generator to Google reCAPTCHA.', 'link-library' ) . "</strong></p></div>";
|
|
|
|
|
851 |
}
|
852 |
|
853 |
$formvalue = 'save_link_library_general';
|
@@ -888,11 +884,6 @@ class link_library_plugin_admin {
|
|
888 |
echo "<div id='message' class='updated fade'><p><strong>" . __( 'Invalid column count for link on row. Compare against template.', 'link-library' ) . "</strong></p></div>";
|
889 |
break;
|
890 |
|
891 |
-
case '5':
|
892 |
-
$upload_dir = wp_upload_dir();
|
893 |
-
echo "<div id='message' class='updated fade'><p><strong>" . __( 'Library Settings Exported', 'link-library' ) . ". <a href='" . $upload_dir['url'] . '/SettingSet' . $settings . 'Export.csv' . "'>" . __( 'Download here', 'link-library' ) . "</a>.</strong></p></div>";
|
894 |
-
break;
|
895 |
-
|
896 |
case '6':
|
897 |
echo "<div id='message' class='updated fade'><p><strong>" . __( 'Link Library plugin directory needs to be writable to perform this action', 'link-library' ) . ".</strong></p></div>";
|
898 |
break;
|
@@ -912,6 +903,7 @@ class link_library_plugin_admin {
|
|
912 |
case '10':
|
913 |
echo "<div id='message' class='updated fade'><p><strong>" . __( 'Links are missing categories', 'link-library' ) . "</strong></p></div>";
|
914 |
break;
|
|
|
915 |
}
|
916 |
|
917 |
}
|
@@ -945,15 +937,52 @@ class link_library_plugin_admin {
|
|
945 |
|
946 |
if ( isset( $_GET['message'] ) && $_GET['message'] == '1' ) {
|
947 |
echo "<div id='message' class='updated fade'><p><strong>" . __( 'Settings updated', 'link-library' ) . ".</strong></p></div>";
|
948 |
-
} elseif ( isset( $_GET['message'] ) && $_GET['message'] == '2' ) {
|
949 |
-
|
950 |
-
|
951 |
-
|
952 |
-
|
953 |
-
|
954 |
-
|
955 |
-
|
956 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
957 |
echo "<div id='message' class='updated fade'><p>";
|
958 |
$this->link_library_duplicate_link_checker( $this );
|
959 |
echo "</p></div>";
|
@@ -964,7 +993,7 @@ class link_library_plugin_admin {
|
|
964 |
$data['settings'] = $settings;
|
965 |
$data['options'] = isset( $options ) ? $options : '';
|
966 |
$data['genoptions'] = $genoptions;
|
967 |
-
global $
|
968 |
?>
|
969 |
<div class="ll-content">
|
970 |
<div class="ll-frame">
|
@@ -976,7 +1005,7 @@ class link_library_plugin_admin {
|
|
976 |
<img src="<?php echo plugins_url( 'icons/folder-beige-internet-icon32.png', __FILE__ ); ?>" /><span>Link Library</span>
|
977 |
</li>
|
978 |
<li class="link-library-page">
|
979 |
-
<a href="<?php echo esc_url( add_query_arg( array( 'page' => 'link-library' ), admin_url( 'admin.php' ) ) ); ?>" <?php if ( isset( $_GET['page'] ) && $_GET['page'] == 'link-library' ) {
|
980 |
echo 'class="current"';
|
981 |
} ?>><?php _e( 'General Options', 'link-library' ); ?></a>
|
982 |
</li>
|
@@ -1001,13 +1030,14 @@ class link_library_plugin_admin {
|
|
1001 |
} ?>><?php _e( 'Reciprocal Check', 'link-library' ); ?></a>
|
1002 |
</li>
|
1003 |
<li class="link-library-page">
|
1004 |
-
<a href="http://ylefebvre.ca/wppluginsdoc/index.php?title=Link_Library"
|
1005 |
</li>
|
1006 |
<?php if ( isset( $genoptions['hidedonation'] ) && !$genoptions['hidedonation'] ) { ?>
|
1007 |
<li class="link-library-page">
|
1008 |
<a href="http://ylefebvre.ca/wordpress-plugins/link-library/"><img src="<?php echo plugins_url( '/icons/btn_donate_LG.gif', __FILE__ ); ?>" /></a>
|
1009 |
</li>
|
1010 |
<?php } ?>
|
|
|
1011 |
</ul>
|
1012 |
|
1013 |
</nav>
|
@@ -1044,8 +1074,8 @@ class link_library_plugin_admin {
|
|
1044 |
|
1045 |
#sortable li {
|
1046 |
list-style: none;
|
1047 |
-
margin: 0
|
1048 |
-
padding:
|
1049 |
border: #CCCCCC solid 1px;
|
1050 |
color: #fff;
|
1051 |
display: inline;
|
@@ -1064,15 +1094,17 @@ class link_library_plugin_admin {
|
|
1064 |
<div id="post-body" class="has-sidebar">
|
1065 |
<div id="post-body-content" class="has-sidebar-content">
|
1066 |
<?php
|
1067 |
-
if ( $_GET['page'] == 'link-library' ) {
|
1068 |
$this->display_menu( 'general', $genoptions );
|
1069 |
$this->general_meta_box( $data );
|
|
|
1070 |
$this->general_image_meta_box( $data );
|
1071 |
$this->general_meta_bookmarklet_box( $data );
|
1072 |
$this->general_moderation_meta_box( $data );
|
1073 |
if ( isset( $genoptions['hidedonation'] ) && !$genoptions['hidedonation'] ) {
|
1074 |
$this->general_hide_donation_meta_box( $data );
|
1075 |
}
|
|
|
1076 |
|
1077 |
$this->general_save_meta_box();
|
1078 |
|
@@ -1117,9 +1149,7 @@ class link_library_plugin_admin {
|
|
1117 |
$('.if-js-closed').removeClass('if-js-closed').addClass('closed');
|
1118 |
// postboxes setup
|
1119 |
postboxes.add_postbox_toggles('<?php
|
1120 |
-
if ($_GET['page'] == 'link-library')
|
1121 |
-
{echo $pagehooktop;}
|
1122 |
-
elseif ($_GET['page'] == 'link-library-settingssets')
|
1123 |
{echo $pagehooksettingssets;}
|
1124 |
elseif ($_GET['page'] == 'link-library-moderate')
|
1125 |
{echo $pagehookmoderate;}
|
@@ -1131,6 +1161,16 @@ class link_library_plugin_admin {
|
|
1131 |
});
|
1132 |
//]]>
|
1133 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1134 |
// Create the tooltips only on document load
|
1135 |
jQuery(document).ready(function () {
|
1136 |
jQuery('.lltooltip').each(function () {
|
@@ -1141,7 +1181,8 @@ class link_library_plugin_admin {
|
|
1141 |
jQuery("#sortable").sortable({
|
1142 |
opacity: 0.6, cursor: 'move', update: function () {
|
1143 |
var order = jQuery("#sortable").sortable('toArray');
|
1144 |
-
|
|
|
1145 |
document.getElementById('dragndroporder').value = stringorder;
|
1146 |
}
|
1147 |
});
|
@@ -1154,17 +1195,18 @@ class link_library_plugin_admin {
|
|
1154 |
}
|
1155 |
|
1156 |
function display_menu( $menu_name = 'settingsset', $genoptions = '' ) {
|
1157 |
-
|
1158 |
if ( $menu_name == 'general' ) {
|
1159 |
$tabitems = array ( 'll-general' => __( 'General', 'link-library' ),
|
|
|
1160 |
'll-images' => __( 'Images', 'link-library' ),
|
1161 |
'll-bookmarklet' => __( 'Bookmarklet', 'link-library' ),
|
1162 |
'll-moderation' => __( 'Moderation', 'link-library' ),
|
1163 |
'll-hidedonation' => __( 'Hide Donation', 'link-library' ),
|
|
|
1164 |
);
|
1165 |
|
1166 |
-
if ( isset( $genoptions['hidedonation'] ) && $genoptions['hidedonation'] ) {
|
1167 |
-
unset ( $tabitems['
|
1168 |
}
|
1169 |
} elseif ( $menu_name == 'settingsset' ) {
|
1170 |
$tabitems = array ( 'll-usage' => __( 'Usage', 'link-library' ),
|
@@ -1178,7 +1220,7 @@ class link_library_plugin_admin {
|
|
1178 |
'll-rssfeed' => __( 'RSS Feed', 'link-library' ),
|
1179 |
'll-searchfield' => __( 'Search', 'link-library' ),
|
1180 |
'll-userform' => __( 'User Submission', 'link-library' ),
|
1181 |
-
'll-importexport' => __( 'Import/Export', 'link-library' ),
|
1182 |
);
|
1183 |
}
|
1184 |
|
@@ -1240,267 +1282,294 @@ class link_library_plugin_admin {
|
|
1240 |
//cross check the given referer
|
1241 |
check_admin_referer( 'link-library' );
|
1242 |
|
1243 |
-
$
|
1244 |
-
|
1245 |
-
$message = 1;
|
1246 |
-
|
1247 |
-
foreach (
|
1248 |
-
array(
|
1249 |
-
'numberstylesets', 'includescriptcss', 'pagetitleprefix', 'pagetitlesuffix', 'schemaversion', 'thumbshotscid', 'approvalemailtitle',
|
1250 |
-
'moderatorname', 'moderatoremail', 'rejectedemailtitle', 'approvalemailbody', 'rejectedemailbody', 'moderationnotificationtitle',
|
1251 |
-
'linksubmissionthankyouurl', 'recipcheckaddress', 'imagefilepath', 'catselectmethod', 'expandiconpath', 'collapseiconpath', 'updatechannel',
|
1252 |
-
'extraprotocols', 'thumbnailsize', 'thumbnailgenerator', 'rsscachedelay', 'rolelevel', 'editlevel'
|
1253 |
-
) as $option_name
|
1254 |
-
) {
|
1255 |
-
if ( isset( $_POST[$option_name] ) ) {
|
1256 |
-
$genoptions[$option_name] = $_POST[$option_name];
|
1257 |
-
}
|
1258 |
-
}
|
1259 |
-
|
1260 |
-
if ( isset( $_POST['captchagenerator'] ) && 'recaptcha' == $_POST['captchagenerator'] ) {
|
1261 |
-
if ( empty( $_POST['recaptchasitekey'] ) || empty( $_POST['recaptchasecretkey'] ) ) {
|
1262 |
-
$genoptions['captchagenerator'] = 'easycaptcha';
|
1263 |
-
$message = 4;
|
1264 |
-
} else {
|
1265 |
-
$genoptions['captchagenerator'] = 'recaptcha';
|
1266 |
-
$genoptions['recaptchasitekey'] = sanitize_text_field( $_POST['recaptchasitekey'] );
|
1267 |
-
$genoptions['recaptchasecretkey'] = sanitize_text_field( $_POST['recaptchasecretkey'] );
|
1268 |
-
}
|
1269 |
-
} elseif ( isset( $_POST['captchagenerator'] ) && 'easycaptcha' == $_POST['captchagenerator'] ) {
|
1270 |
-
$genoptions['captchagenerator'] = 'easycaptcha';
|
1271 |
-
$genoptions['recaptchasitekey'] = '';
|
1272 |
-
$genoptions['recaptchasecretkey'] = '';
|
1273 |
-
}
|
1274 |
-
|
1275 |
-
foreach ( array( 'debugmode', 'emaillinksubmitter', 'suppressemailfooter', 'usefirstpartsubmittername', 'hidedonation', 'addlinkakismet' ) as $option_name ) {
|
1276 |
-
if ( isset( $_POST[$option_name] ) ) {
|
1277 |
-
$genoptions[$option_name] = true;
|
1278 |
-
} else {
|
1279 |
-
if ( $option_name != 'hidedonation' ) {
|
1280 |
-
$genoptions[$option_name] = false;
|
1281 |
-
}
|
1282 |
-
}
|
1283 |
-
}
|
1284 |
-
|
1285 |
-
update_option( 'LinkLibraryGeneral', $genoptions );
|
1286 |
-
update_option( 'links_updated_date_format', $_POST['links_updated_date_format'] );
|
1287 |
-
|
1288 |
-
if ( isset( $_POST['exportalllinks'] ) ) {
|
1289 |
-
$upload_dir = wp_upload_dir();
|
1290 |
-
|
1291 |
-
if ( is_writable( $upload_dir['path'] ) ) {
|
1292 |
-
$myFile = $upload_dir['path'] . "/LinksExport.csv";
|
1293 |
-
$fh = fopen( $myFile, 'w' ) or die( "can't open file" );
|
1294 |
-
|
1295 |
-
global $wpdb;
|
1296 |
-
|
1297 |
-
$linkquery = "SELECT distinct l.link_name, l.link_url, l.link_rss, l.link_description, l.link_notes, ";
|
1298 |
-
$linkquery .= "GROUP_CONCAT( t.name ) as cat_name, l.link_visible, le.link_second_url, le.link_telephone, le.link_email, le.link_reciprocal, ";
|
1299 |
-
$linkquery .= "l.link_image, le.link_textfield, le.link_no_follow, l.link_rating, l.link_target, l.link_updated ";
|
1300 |
-
$linkquery .= "FROM " . $this->db_prefix() . "terms t ";
|
1301 |
-
$linkquery .= "LEFT JOIN " . $this->db_prefix() . "term_taxonomy tt ON (t.term_id = tt.term_id) ";
|
1302 |
-
$linkquery .= "LEFT JOIN " . $this->db_prefix() . "term_relationships tr ON (tt.term_taxonomy_id = tr.term_taxonomy_id) ";
|
1303 |
-
$linkquery .= "LEFT JOIN " . $this->db_prefix() . "links l ON (tr.object_id = l.link_id) ";
|
1304 |
-
$linkquery .= "LEFT JOIN " . $this->db_prefix() . "links_extrainfo le ON (l.link_id = le.link_id) ";
|
1305 |
-
$linkquery .= "WHERE tt.taxonomy = 'link_category' ";
|
1306 |
-
$linkquery .= "GROUP BY l.link_name, l.link_url ";
|
1307 |
-
|
1308 |
-
$linkitems = $wpdb->get_results( $linkquery, ARRAY_A );
|
1309 |
-
|
1310 |
-
|
1311 |
-
|
1312 |
-
if ( $linkitems ) {
|
1313 |
-
$headerrow = array();
|
1314 |
-
|
1315 |
-
foreach ( $linkitems[0] as $key => $option ) {
|
1316 |
-
$headerrow[] = '"' . $key . '"';
|
1317 |
-
}
|
1318 |
-
|
1319 |
-
$headerdata = join( ',', $headerrow ) . "\n";
|
1320 |
-
fwrite( $fh, $headerdata );
|
1321 |
-
|
1322 |
-
foreach ( $linkitems as $linkitem ) {
|
1323 |
-
$datarow = array();
|
1324 |
-
foreach ( $linkitem as $key => $value ) {
|
1325 |
-
$datarow[] = '"' . $value . '"';
|
1326 |
-
}
|
1327 |
-
$data = join( ',', $datarow ) . "\n";
|
1328 |
-
fwrite( $fh, $data );
|
1329 |
-
}
|
1330 |
-
|
1331 |
-
fclose( $fh );
|
1332 |
-
|
1333 |
-
if (file_exists($myFile)) {
|
1334 |
-
header('Content-Description: File Transfer');
|
1335 |
-
header('Content-Type: application/octet-stream');
|
1336 |
-
header('Content-Disposition: attachment; filename='.basename($myFile));
|
1337 |
-
header('Expires: 0');
|
1338 |
-
header('Cache-Control: must-revalidate');
|
1339 |
-
header('Pragma: public');
|
1340 |
-
header('Content-Length: ' . filesize($myFile));
|
1341 |
-
readfile($myFile);
|
1342 |
-
exit;
|
1343 |
-
}
|
1344 |
-
}
|
1345 |
-
} else {
|
1346 |
-
$message = "3";
|
1347 |
-
}
|
1348 |
-
}
|
1349 |
-
|
1350 |
-
$redirecturl = add_query_arg( array( 'currenttab' => $_POST['currenttab'], 'page' => 'link-library' ), admin_url() );
|
1351 |
-
if ( !empty( $message ) ) {
|
1352 |
-
$redirecturl = add_query_arg( array( 'message' => $message ), $redirecturl );
|
1353 |
-
}
|
1354 |
-
|
1355 |
-
wp_redirect( $redirecturl );
|
1356 |
-
}
|
1357 |
-
|
1358 |
-
//executed if the post arrives initiated by pressing the submit button of form
|
1359 |
-
function on_save_changes_settingssets() {
|
1360 |
-
//user permission check
|
1361 |
-
if ( !current_user_can( 'manage_options' ) ) {
|
1362 |
-
wp_die( __( 'Not allowed', 'link-library' ) );
|
1363 |
-
}
|
1364 |
-
//cross check the given referer
|
1365 |
-
check_admin_referer( 'link-library' );
|
1366 |
-
|
1367 |
-
$messages = array();
|
1368 |
$row = 0;
|
1369 |
$successfulimport = 0;
|
1370 |
$successfulupdate = 0;
|
1371 |
-
|
1372 |
if ( isset( $_POST['importlinks'] ) ) {
|
|
|
|
|
1373 |
wp_suspend_cache_addition( true );
|
1374 |
-
|
1375 |
-
|
1376 |
-
global $wpdb;
|
1377 |
|
1378 |
$handle = fopen( $_FILES['linksfile']['tmp_name'], "r" );
|
1379 |
|
1380 |
if ( $handle ) {
|
1381 |
$skiprow = 1;
|
|
|
1382 |
|
1383 |
while ( ( $data = fgetcsv( $handle, 5000, "," ) ) !== false ) {
|
1384 |
$row += 1;
|
1385 |
-
|
1386 |
-
if ( $skiprow == 1 && isset( $_POST['firstrowheaders'] ) && $row >= 2 ) {
|
1387 |
-
$skiprow = 0;
|
1388 |
-
} elseif ( !isset( $_POST['firstrowheaders'] ) ) {
|
1389 |
$skiprow = 0;
|
1390 |
}
|
1391 |
|
1392 |
-
if (
|
1393 |
-
|
1394 |
-
|
1395 |
-
|
1396 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1397 |
|
1398 |
-
|
1399 |
-
|
1400 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1401 |
|
1402 |
-
|
|
|
|
|
|
|
|
|
1403 |
|
1404 |
-
|
1405 |
|
1406 |
-
|
1407 |
-
|
1408 |
-
|
|
|
1409 |
|
1410 |
-
|
|
|
1411 |
|
1412 |
-
|
|
|
|
|
|
|
|
|
|
|
1413 |
|
1414 |
-
|
|
|
|
|
|
|
|
|
1415 |
|
1416 |
-
|
1417 |
-
|
1418 |
-
|
1419 |
-
|
|
|
|
|
1420 |
}
|
1421 |
-
|
1422 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1423 |
if ( $newrating < 0 ) {
|
1424 |
$newrating = 0;
|
1425 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1426 |
|
1427 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1428 |
|
1429 |
-
|
1430 |
-
|
1431 |
-
|
|
|
|
|
|
|
|
|
|
|
1432 |
|
1433 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1434 |
|
1435 |
-
|
1436 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1437 |
|
1438 |
-
|
1439 |
-
|
1440 |
-
|
1441 |
-
|
1442 |
-
|
1443 |
-
|
1444 |
-
|
1445 |
-
|
1446 |
-
"link_image" => $data[11],
|
1447 |
-
"link_rating" => $newrating,
|
1448 |
-
"link_target" => $data[15]
|
1449 |
-
);
|
1450 |
-
|
1451 |
-
if ( empty( $newlinkid ) ) {
|
1452 |
-
$newlinkid = wp_insert_link( $newlink );
|
1453 |
-
$successfulimport += 1;
|
1454 |
-
} elseif ( !empty( $newlinkid ) ) {
|
1455 |
-
unset ( $newlink['link_url'] );
|
1456 |
-
$newlink['link_id'] = $newlinkid;
|
1457 |
-
wp_update_link( $newlink );
|
1458 |
-
$successfulupdate += 1;
|
1459 |
-
}
|
1460 |
|
1461 |
-
|
1462 |
-
|
1463 |
-
|
1464 |
-
}
|
1465 |
|
1466 |
-
|
1467 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1468 |
|
1469 |
-
|
1470 |
-
|
1471 |
-
|
|
|
|
|
|
|
|
|
|
|
1472 |
|
1473 |
-
|
1474 |
-
|
1475 |
-
|
1476 |
-
|
1477 |
-
|
1478 |
-
|
1479 |
-
|
1480 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1481 |
}
|
|
|
|
|
|
|
|
|
1482 |
} else {
|
1483 |
-
$
|
1484 |
}
|
1485 |
}
|
1486 |
}
|
1487 |
}
|
1488 |
|
1489 |
-
|
1490 |
-
$row -= 1;
|
1491 |
-
}
|
1492 |
|
1493 |
-
$
|
1494 |
|
1495 |
wp_suspend_cache_addition( false );
|
|
|
|
|
1496 |
} elseif ( isset( $_POST['siteimport'] ) ) {
|
1497 |
wp_suspend_cache_addition( true );
|
1498 |
-
|
1499 |
-
|
1500 |
-
|
1501 |
|
1502 |
-
|
1503 |
-
$successfulupdate = 0;
|
1504 |
|
1505 |
$all_content = array();
|
1506 |
|
@@ -1531,7 +1600,7 @@ class link_library_plugin_admin {
|
|
1531 |
|
1532 |
if ( 'allpagesposts' == $_POST['siteimportlinksscope']
|
1533 |
|| 'allpagespostscpt' == $_POST['siteimportlinksscope'] ) {
|
1534 |
-
|
1535 |
$post_args = array();
|
1536 |
|
1537 |
if ( 'allpagesposts' == $_POST['siteimportlinksscope'] ) {
|
@@ -1548,7 +1617,7 @@ class link_library_plugin_admin {
|
|
1548 |
}
|
1549 |
}
|
1550 |
}
|
1551 |
-
|
1552 |
foreach ( $post_types as $post_type ) {
|
1553 |
if ( 'specific' . $post_type == $_POST['siteimportlinksscope'] ) {
|
1554 |
$post_args = array();
|
@@ -1563,60 +1632,345 @@ class link_library_plugin_admin {
|
|
1563 |
}
|
1564 |
|
1565 |
foreach ( $all_content as $content_item ) {
|
|
|
1566 |
$dom = new DOMDocument;
|
1567 |
$dom->loadHTML( $content_item );
|
1568 |
foreach ( $dom->getElementsByTagName( 'a' ) as $node ) {
|
1569 |
$incomingcatdata = $_POST['siteimportcat'];
|
1570 |
|
1571 |
if ( isset( $_POST['siteimportupdatesameurl'] ) ) {
|
1572 |
-
$
|
1573 |
-
|
|
|
|
|
1574 |
|
1575 |
-
$
|
1576 |
|
1577 |
-
|
|
|
|
|
|
|
1578 |
|
1579 |
-
|
1580 |
-
|
1581 |
-
|
1582 |
-
|
1583 |
-
|
1584 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1585 |
|
1586 |
-
|
1587 |
-
|
1588 |
-
|
1589 |
-
|
1590 |
-
|
1591 |
-
|
1592 |
-
|
1593 |
-
|
1594 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1595 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1596 |
}
|
1597 |
}
|
1598 |
-
$
|
1599 |
|
1600 |
wp_suspend_cache_addition( false );
|
1601 |
-
|
|
|
|
|
1602 |
$upload_dir = wp_upload_dir();
|
|
|
1603 |
if ( is_writable( $upload_dir['path'] ) ) {
|
1604 |
-
$myFile = $upload_dir['path'] . "/
|
1605 |
$fh = fopen( $myFile, 'w' ) or die( "can't open file" );
|
1606 |
|
1607 |
-
$
|
1608 |
-
$sourceoptions = get_option( $sourcesettingsname );
|
1609 |
-
|
1610 |
-
$headerrow = array();
|
1611 |
|
1612 |
-
|
1613 |
-
$headerrow[] = '"' . $key . '"';
|
1614 |
-
}
|
1615 |
|
1616 |
-
|
1617 |
-
|
|
|
|
|
|
|
1618 |
|
1619 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1620 |
|
1621 |
foreach ( $sourceoptions as $key => $option ) {
|
1622 |
$datarow[] = '"' . $option . '"';
|
@@ -1642,8 +1996,6 @@ class link_library_plugin_admin {
|
|
1642 |
$messages[] = '6';
|
1643 |
}
|
1644 |
} elseif ( isset( $_POST['importsettings'] ) ) {
|
1645 |
-
global $wpdb;
|
1646 |
-
|
1647 |
if ( $_FILES['settingsfile']['tmp_name'] != "" ) {
|
1648 |
$handle = fopen( $_FILES['settingsfile']['tmp_name'], "r" );
|
1649 |
|
@@ -1689,9 +2041,9 @@ class link_library_plugin_admin {
|
|
1689 |
array(
|
1690 |
'order', 'table_width', 'num_columns', 'position',
|
1691 |
'beforecatlist1', 'beforecatlist2', 'beforecatlist3', 'catnameoutput', 'linkaddfrequency',
|
1692 |
-
'
|
1693 |
'catlistdescpos', 'rsspreviewwidth', 'rsspreviewheight', 'numberofrssitems',
|
1694 |
-
'displayweblink', 'sourceweblink', 'showtelephone', 'sourcetelephone', 'showemail', 'sourceimage', 'sourcename', 'popup_width', 'popup_height', 'rssfeedinlinedayspublished', 'tooltipname', 'showupdatedpos'
|
1695 |
)
|
1696 |
as $option_name
|
1697 |
) {
|
@@ -1700,7 +2052,7 @@ class link_library_plugin_admin {
|
|
1700 |
}
|
1701 |
}
|
1702 |
|
1703 |
-
foreach ( array( '
|
1704 |
if ( isset( $_POST[$option_name] ) ) {
|
1705 |
if ( $genoptions['catselectmethod'] == 'commalist' || empty( $genoptions['catselectmethod'] ) ) {
|
1706 |
$options[$option_name] = str_replace( "\"", "'", strtolower( $_POST[$option_name] ) );
|
@@ -1714,7 +2066,7 @@ class link_library_plugin_admin {
|
|
1714 |
|
1715 |
foreach (
|
1716 |
array(
|
1717 |
-
'
|
1718 |
'direction', 'linkdirection', 'linkorder', 'addnewlinkmsg', 'linknamelabel', 'linkaddrlabel', 'linkrsslabel',
|
1719 |
'linkcatlabel', 'linkdesclabel', 'linknoteslabel', 'addlinkbtnlabel', 'newlinkmsg', 'moderatemsg', 'imagepos',
|
1720 |
'imageclass', 'rssfeedtitle', 'rssfeeddescription', 'showonecatmode', 'linkcustomcatlabel', 'linkcustomcatlistentry',
|
@@ -1730,7 +2082,9 @@ class link_library_plugin_admin {
|
|
1730 |
'showaddlinkreciprocal', 'showaddlinksecondurl', 'showaddlinktelephone', 'showaddlinkemail', 'showcustomcaptcha', 'showlinksubmittername',
|
1731 |
'showaddlinksubmitteremail', 'showlinksubmittercomment', 'showuserlargedescription', 'cat_letter_filter', 'beforefirstlink', 'afterlastlink',
|
1732 |
'searchfieldtext', 'catfilterlabel', 'searchnoresultstext', 'addlinkdefaultcat', 'beforesubmittername', 'aftersubmittername',
|
1733 |
-
'beforecatdesc', 'aftercatdesc', 'emailextracontent', '
|
|
|
|
|
1734 |
) as $option_name
|
1735 |
) {
|
1736 |
if ( isset( $_POST[$option_name] ) ) {
|
@@ -1748,7 +2102,9 @@ class link_library_plugin_admin {
|
|
1748 |
'showlargedescription', 'addlinknoaddress', 'featuredfirst', 'usetextareaforusersubmitnotes', 'showcatonsearchresults', 'shownameifnoimage',
|
1749 |
'enable_link_popup', 'nocatonstartup', 'showlinksonclick', 'showinvisibleadmin', 'combineresults', 'showifreciprocalvalid',
|
1750 |
'cat_letter_filter_autoselect', 'cat_letter_filter_showalloption', 'emailsubmitter', 'addlinkakismet', 'rssfeedinlineskipempty',
|
1751 |
-
'current_user_links', 'showsubmittername', 'onereciprocaldomain', 'nooutputempty', 'showcatdesc', '
|
|
|
|
|
1752 |
)
|
1753 |
as $option_name
|
1754 |
) {
|
@@ -1780,24 +2136,14 @@ class link_library_plugin_admin {
|
|
1780 |
update_option( $settingsname, $options );
|
1781 |
$messages[] = "1";
|
1782 |
|
1783 |
-
|
1784 |
-
|
1785 |
-
if ( $options['categorylist'] != '' ) {
|
1786 |
-
$categoryids = explode( ',', $options['categorylist'] );
|
1787 |
|
1788 |
foreach ( $categoryids as $categoryid ) {
|
1789 |
-
$
|
1790 |
-
$linkcatquery .= "FROM " . $this->db_prefix() . "terms t, " . $this->db_prefix() . "term_taxonomy tt ";
|
1791 |
-
|
1792 |
-
if ( isset( $_POST['hide_if_empty'] ) ) {
|
1793 |
-
$linkcatquery .= ", " . $this->db_prefix() . "term_relationships tr, " . $this->db_prefix() . "links l ";
|
1794 |
-
}
|
1795 |
|
1796 |
-
$
|
1797 |
-
|
1798 |
-
$linkcatquery .= " AND t.term_id = " . $categoryid;
|
1799 |
-
|
1800 |
-
$catnames = $wpdb->get_results( $linkcatquery );
|
1801 |
|
1802 |
if ( !$catnames ) {
|
1803 |
$messages[] = '2';
|
@@ -1805,22 +2151,14 @@ class link_library_plugin_admin {
|
|
1805 |
}
|
1806 |
}
|
1807 |
|
1808 |
-
if ( $options['
|
1809 |
-
$categoryids = explode( ',', $options['
|
1810 |
|
1811 |
foreach ( $categoryids as $categoryid ) {
|
1812 |
-
$
|
1813 |
-
$linkcatquery .= "FROM " . $this->db_prefix() . "terms t, " . $this->db_prefix() . "term_taxonomy tt ";
|
1814 |
-
|
1815 |
-
if ( isset( $_POST['hide_if_empty'] ) ) {
|
1816 |
-
$linkcatquery .= ", " . $this->db_prefix() . "term_relationships tr, " . $this->db_prefix() . "links l ";
|
1817 |
-
}
|
1818 |
|
1819 |
-
$
|
1820 |
-
|
1821 |
-
$linkcatquery .= " AND t.term_id = " . $categoryid;
|
1822 |
-
|
1823 |
-
$catnames = $wpdb->get_results( $linkcatquery );
|
1824 |
|
1825 |
if ( !$catnames ) {
|
1826 |
$messages[] = '3';
|
@@ -1833,37 +2171,31 @@ class link_library_plugin_admin {
|
|
1833 |
|
1834 |
//lets redirect the post request into get request (you may add additional params at the url, if you need to show save results
|
1835 |
$messagelist = implode( ",", $messages );
|
1836 |
-
|
1837 |
-
$
|
1838 |
-
|
1839 |
-
|
1840 |
-
|
1841 |
-
$cleanredirecturl = $this->remove_querystring_var( $cleanredirecturl, 'reset' );
|
1842 |
-
$cleanredirecturl = $this->remove_querystring_var( $cleanredirecturl, 'resettable' );
|
1843 |
-
$cleanredirecturl = $this->remove_querystring_var( $cleanredirecturl, 'source' );
|
1844 |
-
$redirecturl = $cleanredirecturl;
|
1845 |
-
|
1846 |
-
if ( !empty( $messages ) ) {
|
1847 |
-
$redirecturl = $cleanredirecturl . "&messages=" . $messagelist;
|
1848 |
}
|
1849 |
|
1850 |
-
if ( $row != 0 ) {
|
1851 |
-
$redirecturl
|
1852 |
}
|
1853 |
|
1854 |
-
if ( $successfulimport != 0 ) {
|
1855 |
-
$redirecturl
|
1856 |
}
|
1857 |
|
1858 |
-
if ( $successfulupdate != 0 ) {
|
1859 |
-
$redirecturl
|
1860 |
}
|
1861 |
|
1862 |
-
if (
|
1863 |
-
$redirecturl
|
1864 |
}
|
1865 |
|
1866 |
wp_redirect( $redirecturl );
|
|
|
1867 |
}
|
1868 |
|
1869 |
//executed if the post arrives initiated by pressing the submit button of form
|
@@ -1880,50 +2212,37 @@ class link_library_plugin_admin {
|
|
1880 |
$genoptions = get_option( 'LinkLibraryGeneral' );
|
1881 |
|
1882 |
if ( isset( $_POST['approvelinks'] ) && ( isset( $_POST['links'] ) && count( $_POST['links'] ) > 0 ) ) {
|
1883 |
-
global $wpdb;
|
1884 |
-
|
1885 |
$section = 'moderate';
|
1886 |
|
1887 |
foreach ( $_POST['links'] as $approved_link ) {
|
1888 |
-
$
|
1889 |
-
$linkdescquery .= "FROM " . $this->db_prefix() . "links l ";
|
1890 |
-
$linkdescquery .= "WHERE link_id = " . $approved_link;
|
1891 |
-
|
1892 |
-
$linkdata = $wpdb->get_row( $linkdescquery, ARRAY_A );
|
1893 |
-
|
1894 |
-
$modpos = strpos( $linkdata['link_description'], "LinkLibrary:AwaitingModeration:RemoveTextToApprove" );
|
1895 |
-
|
1896 |
-
if ( $modpos ) {
|
1897 |
-
$startpos = $modpos + 51;
|
1898 |
-
$newlinkdesc = substr( $linkdata['link_description'], $startpos );
|
1899 |
|
1900 |
-
|
1901 |
-
|
1902 |
-
|
1903 |
-
$tablename = $this->db_prefix() . "links";
|
1904 |
-
$wpdb->update( $tablename, array( 'link_description' => $newlinkdesc, 'link_visible' => 'Y' ), array( 'link_id' => $approved_link ) );
|
1905 |
}
|
1906 |
|
1907 |
-
$
|
|
|
|
|
1908 |
|
1909 |
-
if ( $genoptions['emaillinksubmitter'] == true && $
|
1910 |
if ( $genoptions['usefirstpartsubmittername'] == true ) {
|
1911 |
-
$spacepos = strpos( $
|
1912 |
if ( $spacepos !== false ) {
|
1913 |
-
$
|
1914 |
}
|
1915 |
}
|
1916 |
|
1917 |
-
$emailtitle = str_replace( '%linkname%', $
|
1918 |
$emailbody = nl2br( $genoptions['approvalemailbody'] );
|
1919 |
-
$emailbody = str_replace( '%submittername%', stripslashes( $
|
1920 |
-
$emailbody = str_replace( '%linkname%', $
|
1921 |
-
$emailbody = str_replace( '%linkurl%', $
|
1922 |
|
1923 |
$headers = "MIME-Version: 1.0\r\n";
|
1924 |
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
|
1925 |
|
1926 |
-
if ( $genoptions['moderatorname']
|
1927 |
$headers .= "From: \"" . $genoptions['moderatorname'] . "\" <" . $genoptions['moderatoremail'] . ">\n";
|
1928 |
}
|
1929 |
|
@@ -1933,68 +2252,68 @@ class link_library_plugin_admin {
|
|
1933 |
$message .= "<br /><br />" . __( 'Message generated by', 'link-library' ) . " <a href='http://ylefebvre.ca/wordpress-plugins/link-library/'>Link Library</a> for Wordpress";
|
1934 |
}
|
1935 |
|
1936 |
-
wp_mail( $
|
1937 |
|
1938 |
-
do_action( 'link_library_approval_email', $
|
1939 |
}
|
1940 |
}
|
1941 |
|
1942 |
$message = '1';
|
1943 |
} elseif ( isset( $_POST['deletelinks'] ) && ( isset( $_POST['links'] ) && count( $_POST['links'] ) > 0 ) ) {
|
1944 |
-
global $wpdb;
|
1945 |
-
|
1946 |
$section = 'moderate';
|
1947 |
|
1948 |
foreach ( $_POST['links'] as $approved_link ) {
|
1949 |
-
$
|
1950 |
-
$linkdescquery .= "FROM " . $this->db_prefix() . "links l ";
|
1951 |
-
$linkdescquery .= "WHERE link_id = " . $approved_link;
|
1952 |
|
1953 |
-
$
|
|
|
|
|
1954 |
|
1955 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1956 |
|
1957 |
-
|
1958 |
-
$emailtitle = str_replace( '%linkname%', $linkdata['link_name'], $genoptions['rejectedemailtitle'] );
|
1959 |
$emailbody = nl2br( $genoptions['rejectedemailbody'] );
|
1960 |
-
$emailbody = str_replace( '%submittername%', stripslashes( $
|
1961 |
-
$emailbody = str_replace( '%linkname%', $
|
1962 |
-
$emailbody = str_replace( '%linkurl%', $
|
1963 |
|
1964 |
$headers = "MIME-Version: 1.0\r\n";
|
1965 |
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
|
1966 |
|
1967 |
-
if ( $genoptions['moderatorname']
|
1968 |
$headers .= "From: \"" . $genoptions['moderatorname'] . "\" <" . $genoptions['moderatoremail'] . ">\n";
|
1969 |
}
|
1970 |
|
1971 |
$message = $emailbody;
|
1972 |
-
|
1973 |
-
if ( !$genoptions['suppressemailfooter'] ) {
|
1974 |
-
$message .= "<br /><br />" . __( 'Message generated by', 'link-library' ) . " <a href='http://ylefebvre.ca/wordpress-plugins/link-library/'>Link Library</a> for Wordpress";
|
1975 |
-
}
|
1976 |
|
1977 |
-
|
1978 |
|
1979 |
-
|
|
|
|
|
1980 |
}
|
1981 |
|
1982 |
-
|
1983 |
}
|
1984 |
|
1985 |
$message = '2';
|
1986 |
}
|
1987 |
|
1988 |
-
$
|
1989 |
|
1990 |
-
if ( $message
|
1991 |
-
$redirecturl =
|
1992 |
-
} else {
|
1993 |
-
$redirecturl = $cleanredirecturl;
|
1994 |
}
|
1995 |
|
1996 |
//lets redirect the post request into get request (you may add additional params at the url, if you need to show save results
|
1997 |
wp_redirect( $redirecturl );
|
|
|
1998 |
}
|
1999 |
|
2000 |
function on_save_changes_stylesheet() {
|
@@ -2027,7 +2346,10 @@ class link_library_plugin_admin {
|
|
2027 |
}
|
2028 |
|
2029 |
//lets redirect the post request into get request (you may add additional params at the url, if you need to show save results
|
2030 |
-
|
|
|
|
|
|
|
2031 |
}
|
2032 |
|
2033 |
function on_save_changes_reciprocal() {
|
@@ -2057,14 +2379,11 @@ class link_library_plugin_admin {
|
|
2057 |
$message = 4;
|
2058 |
}
|
2059 |
|
2060 |
-
if ( $message != - 1 ) {
|
2061 |
-
$messageend = "&message=" . $message;
|
2062 |
-
} else {
|
2063 |
-
$messageend = '';
|
2064 |
-
}
|
2065 |
-
|
2066 |
//lets redirect the post request into get request (you may add additional params at the url, if you need to show save results
|
2067 |
-
|
|
|
|
|
|
|
2068 |
}
|
2069 |
|
2070 |
function general_meta_box( $data ) {
|
@@ -2079,6 +2398,24 @@ class link_library_plugin_admin {
|
|
2079 |
<td>
|
2080 |
<input type='hidden' value='<?php echo $genoptions['schemaversion']; ?>' name='schemaversion' id='schemaversion' />
|
2081 |
<table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2082 |
<?php if ( !is_multisite() ) { ?>
|
2083 |
<tr>
|
2084 |
<td><?php _e( 'Update channel', 'link-library' ); ?></td>
|
@@ -2097,10 +2434,14 @@ class link_library_plugin_admin {
|
|
2097 |
<tr>
|
2098 |
<td><?php _e( 'Number of Libraries', 'link-library' ); ?></td>
|
2099 |
<td>
|
2100 |
-
<input type="text" id="numberstylesets" name="numberstylesets" size="5" value="<?php
|
2101 |
-
|
2102 |
-
|
2103 |
-
|
|
|
|
|
|
|
|
|
2104 |
</tr>
|
2105 |
<tr>
|
2106 |
<td>Minimum role for Link Library configuration</td>
|
@@ -2150,9 +2491,7 @@ class link_library_plugin_admin {
|
|
2150 |
<tr>
|
2151 |
<td><?php _e( 'Debug Mode', 'link-library' ); ?></td>
|
2152 |
<td>
|
2153 |
-
<input type="checkbox" id="debugmode" name="debugmode" <?php
|
2154 |
-
echo ' checked="checked" ';
|
2155 |
-
} ?>/></td>
|
2156 |
</tr>
|
2157 |
<tr>
|
2158 |
<td class="lltooltip" title="<?php _e( 'This function is only possible when showing one category at a time and while the default category is not shown.', 'link-library' ); ?>"><?php _e( 'Page Title Prefix', 'link-library' ); ?></td>
|
@@ -2258,23 +2597,17 @@ class link_library_plugin_admin {
|
|
2258 |
<td>
|
2259 |
<input type="text" id="rsscachedelay" name="rsscachedelay" size="5" value="<?php echo intval( $genoptions['rsscachedelay'] ); ?>" /></td>
|
2260 |
</tr>
|
2261 |
-
|
2262 |
-
<tr>
|
2263 |
-
<td>
|
2264 |
-
<input type="submit" id="exportalllinks" name="exportalllinks" value="<?php _e( 'Export All Links', 'link-library' ); ?>" />
|
2265 |
-
</td>
|
2266 |
-
</tr>
|
2267 |
</table>
|
2268 |
</td>
|
2269 |
<?php if ( isset( $genoptions['hidedonation'] ) && !$genoptions['hidedonation'] ) { ?>
|
2270 |
-
<td style='padding: 8px; border: 1px solid #cccccc;'>
|
2271 |
-
<div style="width: 400px"><h3>Support the author</h3><br />
|
2272 |
<table>
|
2273 |
<tr>
|
2274 |
<td>
|
2275 |
<a href="http://www.packtpub.com/wordpress-plugin-development-cookbook/book"><img src='<?php echo plugins_url( 'icons/7683os_cover_small.jpg', __FILE__ ); ?>'>
|
2276 |
</td>
|
2277 |
-
<td></a>Learn how to create your own plugins with my book.<br /><br />Order now!<br /><br /><a href="
|
2278 |
</td>
|
2279 |
</tr>
|
2280 |
</table>
|
@@ -2300,6 +2633,69 @@ class link_library_plugin_admin {
|
|
2300 |
<?php
|
2301 |
}
|
2302 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2303 |
function general_image_meta_box( $data ) {
|
2304 |
$genoptions = $data['genoptions'];
|
2305 |
?>
|
@@ -2325,7 +2721,7 @@ class link_library_plugin_admin {
|
|
2325 |
}
|
2326 |
|
2327 |
function general_meta_bookmarklet_box( $data ) {
|
2328 |
-
$bookmarkletcode = 'javascript:void(linkmanpopup=window.open(\'' . get_bloginfo( 'wpurl' ) . '/wp-admin/
|
2329 |
?>
|
2330 |
<div style='padding-top:15px' id="ll-bookmarklet" class="content-section">
|
2331 |
<p><?php _e( 'Add new links to your site with this bookmarklet.', 'link-library' ); ?></p>
|
@@ -2346,12 +2742,6 @@ class link_library_plugin_admin {
|
|
2346 |
<strong><?php _e( 'Approval and rejection e-mail functionality will only work correctly if the submitter e-mail field is displayed on the user link submission form', 'link-library' ); ?></strong>
|
2347 |
</td>
|
2348 |
</tr>
|
2349 |
-
<tr>
|
2350 |
-
<td class='lltooltip' style='width:250px'><?php _e( 'Validate all submitted links with Akismet', 'link-library' ); ?></td>
|
2351 |
-
<td class='lltooltip' style='width:75px;padding-right:20px'>
|
2352 |
-
<input type="checkbox" id="addlinkakismet" name="addlinkakismet" <?php checked( $genoptions['addlinkakismet'] ); ?> />
|
2353 |
-
</td>
|
2354 |
-
</tr>
|
2355 |
<tr>
|
2356 |
<td class='lltooltip' title='<?php _e( 'URL that user will be redirected to after submitting new link. When used, the short code [link-library-addlinkcustommsg] should be placed on the destination page.', 'link-library' ); ?>.' style='width:250px'><?php _e( 'Link Acknowledgement URL', 'link-library' ); ?></td>
|
2357 |
<td class='lltooltip' style='width:75px;padding-right:20px' title='<?php _e( 'URL that user will be redirected to after submitting new link. When used, the short code [link-library-addlinkcustommsg] should be placed on the destination page.', 'link-library' ); ?>.'>
|
@@ -2367,23 +2757,17 @@ class link_library_plugin_admin {
|
|
2367 |
<tr>
|
2368 |
<td class='lltooltip' title='<?php _e( 'Will send a confirmation e-mail to link submitter if they provided their contact information', 'link-library' ); ?>.' style='width:250px'><?php _e( 'E-mail submitter on link approval or rejection', 'link-library' ); ?></td>
|
2369 |
<td style='width:75px;padding-right:20px'>
|
2370 |
-
<input type="checkbox" id="emaillinksubmitter" name="emaillinksubmitter" <?php
|
2371 |
-
echo ' checked="checked" ';
|
2372 |
-
} ?>/></td>
|
2373 |
</tr>
|
2374 |
<tr>
|
2375 |
<td class='lltooltip' style='width:250px'><?php _e( 'Suppress Link Library message in e-mail footer', 'link-library' ); ?></td>
|
2376 |
<td style='width:75px;padding-right:20px'>
|
2377 |
-
<input type="checkbox" id="suppressemailfooter" name="suppressemailfooter" <?php
|
2378 |
-
echo ' checked="checked" ';
|
2379 |
-
} ?>/></td>
|
2380 |
</tr>
|
2381 |
<tr>
|
2382 |
<td style='width:250px'><?php _e( 'Only use first part of submitter name', 'link-library' ); ?></td>
|
2383 |
<td style='width:75px;padding-right:20px'>
|
2384 |
-
<input type="checkbox" id="usefirstpartsubmittername" name="usefirstpartsubmittername" <?php
|
2385 |
-
echo ' checked="checked" ';
|
2386 |
-
} ?>/></td>
|
2387 |
</tr>
|
2388 |
<tr>
|
2389 |
<td class='lltooltip' title='<?php _e( 'The name of the e-mail account that the approval e-mail will be sent from', 'link-library' ); ?>'><?php _e( 'Moderator Name', 'link-library' ); ?></td>
|
@@ -2427,92 +2811,173 @@ class link_library_plugin_admin {
|
|
2427 |
}
|
2428 |
|
2429 |
function general_hide_donation_meta_box() {
|
2430 |
-
|
2431 |
-
|
2432 |
<p><?php _e( 'The following option allows you to hide the Donate button and Support the Author section in the Link Library Admin pages. If you enjoy this plugin and use it regularly, please consider making a donation to the author before turning off these messages. This menu section will disappear along with the other elements.', 'link-library' ); ?></p>
|
2433 |
<table>
|
2434 |
<tr>
|
2435 |
<td class='lltooltip'><?php _e( 'Hide Donation and Support Links', 'link-library' ); ?></td>
|
2436 |
<td>
|
2437 |
-
<input type="checkbox" id="hidedonation" name="hidedonation" <?php
|
2438 |
-
echo ' checked="checked" ';
|
2439 |
-
} ?>/></td>
|
2440 |
</tr>
|
2441 |
</table>
|
2442 |
-
|
2443 |
-
<?php
|
2444 |
-
}
|
2445 |
-
|
2446 |
-
function general_save_meta_box() {
|
2447 |
-
?>
|
2448 |
-
<div class="submitbox" style="padding-top: 15px">
|
2449 |
-
<input type="submit" name="submit" class="button-primary" value="<?php _e( 'Save Settings', 'link-library' ); ?>" />
|
2450 |
-
</div>
|
2451 |
<?php
|
2452 |
}
|
2453 |
|
2454 |
-
function
|
|
|
2455 |
?>
|
2456 |
-
|
2457 |
-
|
2458 |
-
|
2459 |
-
|
2460 |
-
|
2461 |
-
|
2462 |
-
|
2463 |
-
|
2464 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2465 |
?>
|
2466 |
<table class='widefat' style='clear:none;width:100%;background-color:#F1F1F1;background-image: linear-gradient(to top, #ECECEC, #F9F9F9);background-position:initial initial;background-repeat: initial initial'>
|
2467 |
<tr>
|
2468 |
<th style='width: 30px'></th>
|
2469 |
<th style='width: 200px'><?php _e( 'Link Name', 'link-library' ); ?></th>
|
2470 |
<th style='width: 200px'><?php _e( 'Link Category', 'link-library' ); ?></th>
|
|
|
2471 |
<th style='width: 300px'><?php _e( 'Link URL', 'link-library' ); ?></th>
|
2472 |
<th><?php _e( 'Link Description', 'link-library' ); ?></th>
|
2473 |
</tr>
|
2474 |
-
<?php
|
2475 |
-
|
2476 |
-
|
2477 |
-
$
|
2478 |
-
|
2479 |
-
|
2480 |
-
|
2481 |
-
|
2482 |
-
|
2483 |
-
|
2484 |
-
|
2485 |
-
|
2486 |
-
|
2487 |
-
|
2488 |
-
|
2489 |
-
|
2490 |
-
|
2491 |
-
|
2492 |
-
|
2493 |
-
|
2494 |
-
|
2495 |
-
|
2496 |
-
|
2497 |
-
|
2498 |
-
if ( $linkitems ) {
|
2499 |
-
foreach ( $linkitems as $linkitem ) {
|
2500 |
-
|
2501 |
-
$modpos = strpos( $linkitem->link_description, "LinkLibrary:AwaitingModeration:RemoveTextToApprove" );
|
2502 |
|
2503 |
-
|
2504 |
-
|
2505 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2506 |
}
|
|
|
2507 |
?>
|
2508 |
<tr style='background: #FFF'>
|
2509 |
-
<td><input type="checkbox" name="links[]" value="<?php echo
|
2510 |
-
<td><?php echo "<a title='Edit Link: " .
|
2511 |
-
<td><?php echo $
|
2512 |
-
<td><?php echo
|
2513 |
-
<td><?php echo $
|
|
|
2514 |
</tr>
|
2515 |
-
|
2516 |
}
|
2517 |
} else {
|
2518 |
?>
|
@@ -2522,7 +2987,10 @@ class link_library_plugin_admin {
|
|
2522 |
<td></td>
|
2523 |
<td></td>
|
2524 |
</tr>
|
2525 |
-
<?php }
|
|
|
|
|
|
|
2526 |
|
2527 |
</table><br />
|
2528 |
<input type="button" id="CheckAll" value="<?php _e( 'Check All', 'link-library' ); ?>">
|
@@ -2572,7 +3040,7 @@ class link_library_plugin_admin {
|
|
2572 |
<div>
|
2573 |
<?php _e( 'Select Current Library Settings', 'link-library' ); ?> :
|
2574 |
<SELECT id="settingsetlist" name="settingsetlist" style='width: 300px'>
|
2575 |
-
<?php if ( $genoptions['numberstylesets']
|
2576 |
$numberofsets = 1;
|
2577 |
} else {
|
2578 |
$numberofsets = $genoptions['numberstylesets'];
|
@@ -2593,7 +3061,7 @@ class link_library_plugin_admin {
|
|
2593 |
<?php $tempoptionname = "LinkLibraryPP" . $counter;
|
2594 |
$tempoptions = get_option( $tempoptionname );
|
2595 |
if ( $counter != $settings ):?>
|
2596 |
-
<option value="<?php echo $counter ?>" <?php
|
2597 |
echo " (" . stripslashes( $tempoptions['settingssetname'] ) . ")";
|
2598 |
} ?></option>
|
2599 |
<?php endif;
|
@@ -2625,6 +3093,7 @@ class link_library_plugin_admin {
|
|
2625 |
<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' ); ?>'>
|
2626 |
<?php _e( 'Code to insert on a Wordpress page', 'link-library' ); ?>
|
2627 |
</th>
|
|
|
2628 |
</tr>
|
2629 |
</thead>
|
2630 |
<tr>
|
@@ -2632,24 +3101,77 @@ class link_library_plugin_admin {
|
|
2632 |
<td style='background: #FFF'><?php echo stripslashes( $options['settingssetname'] ); ?></a></td>
|
2633 |
<td style='background: #FFF'><?php _e( 'Display basic link library', 'link-library' ); ?></td>
|
2634 |
<td style='background: #FFF'><?php echo "[link-library settings=" . $settings . "]"; ?></td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2635 |
</tr>
|
2636 |
<tr>
|
2637 |
<td style='background: #FFF'></td>
|
2638 |
<td style='background: #FFF'></td>
|
2639 |
<td style='background: #FFF'><?php _e( 'Display list of link categories', 'link-library' ); ?></td>
|
2640 |
<td style='background: #FFF'><?php echo "[link-library-cats settings=" . $settings . "]"; ?></td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2641 |
</tr>
|
2642 |
<tr>
|
2643 |
<td style='background: #FFF'></td>
|
2644 |
<td style='background: #FFF'></td>
|
2645 |
<td style='background: #FFF'><?php _e( 'Display search box', 'link-library' ); ?></td>
|
2646 |
<td style='background: #FFF'><?php echo "[link-library-search settings=" . $settings . "]"; ?></td>
|
|
|
2647 |
</tr>
|
2648 |
<tr>
|
2649 |
<td style='background: #FFF'></td>
|
2650 |
<td style='background: #FFF'></td>
|
2651 |
<td style='background: #FFF'><?php _e( 'Display link submission form', 'link-library' ); ?></td>
|
2652 |
<td style='background: #FFF'><?php echo "[link-library-addlink settings=" . $settings . "]"; ?></td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2653 |
</tr>
|
2654 |
</table>
|
2655 |
<table>
|
@@ -2665,6 +3187,38 @@ class link_library_plugin_admin {
|
|
2665 |
<?php
|
2666 |
}
|
2667 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2668 |
function settingssets_common_meta_box( $data ) {
|
2669 |
$options = $data['options'];
|
2670 |
$settings = $data['settings'];
|
@@ -2692,38 +3246,18 @@ class link_library_plugin_admin {
|
|
2692 |
</td>
|
2693 |
<?php if ( $genoptions['catselectmethod'] == 'commalist' || empty( $genoptions['catselectmethod'] ) ) { ?>
|
2694 |
<td class="lltooltip" title="<?php _e( 'Leave Empty to see all categories', 'link-library' ); ?><br /><br /><?php _e( 'Enter list of comma-separated', 'link-library' ); ?><br /><?php _e( 'numeric category IDs', 'link-library' ); ?><br /><br /><?php _e( 'For example', 'link-library' ); ?>: 2,4,56">
|
2695 |
-
<input type="text" id="
|
2696 |
</td>
|
2697 |
<?php
|
2698 |
} else {
|
2699 |
-
|
2700 |
-
$linkcatquery = "SELECT distinct ";
|
2701 |
-
$linkcatquery .= "t.name, t.term_id ";
|
2702 |
-
$linkcatquery .= "FROM " . $this->db_prefix() . "terms t LEFT JOIN " . $this->db_prefix() . "term_taxonomy tt ON (t.term_id = tt.term_id)";
|
2703 |
-
$linkcatquery .= " LEFT JOIN " . $this->db_prefix() . "term_relationships tr ON (tt.term_taxonomy_id = tr.term_taxonomy_id) ";
|
2704 |
-
$linkcatquery .= "WHERE tt.taxonomy = 'link_category'";
|
2705 |
-
|
2706 |
-
$linkcatquery .= " ORDER by t.name " . $options['direction'];
|
2707 |
|
2708 |
-
$
|
2709 |
-
|
2710 |
-
$categorylistarray = explode( ',', $options['categorylist'] );
|
2711 |
?>
|
2712 |
<td>
|
2713 |
-
<?php
|
2714 |
-
<select style="width:100%" id="categorylist" name="categorylist[]" multiple <?php disabled( empty( $options['categorylist'] ), true, true ); ?>>
|
2715 |
-
<?php foreach ( $catnames as $catname ) { ?>
|
2716 |
-
<option value="<?php echo $catname->term_id; ?>" <?php selected( in_array( $catname->term_id, $categorylistarray ), true, true ); ?> ><?php echo $catname->name; ?></option>
|
2717 |
-
|
2718 |
-
<?php } ?>
|
2719 |
-
</select>
|
2720 |
-
<?php } else { ?>
|
2721 |
-
<?php _e( 'No link categories! Create some!', 'link-library' ); ?>
|
2722 |
-
<?php } ?>
|
2723 |
<?php _e( 'Show all categories', 'link-library' ); ?>
|
2724 |
-
<input type="checkbox" id="nospecificcats" name="nospecificcats" <?php
|
2725 |
-
echo ' checked="checked" ';
|
2726 |
-
} ?>/>
|
2727 |
|
2728 |
</td>
|
2729 |
<?php } ?>
|
@@ -2734,27 +3268,16 @@ class link_library_plugin_admin {
|
|
2734 |
</td>
|
2735 |
<?php if ( $genoptions['catselectmethod'] == 'commalist' || empty( $genoptions['catselectmethod'] ) ) { ?>
|
2736 |
<td class="lltooltip" title="<?php _e( 'Enter list of comma-separated', 'link-library' ); ?><br /><?php _e( 'numeric category IDs that should not be shown', 'link-library' ); ?><br /><br /><?php _e( 'For example', 'link-library' ); ?>: 5,34,43">
|
2737 |
-
<input type="text" id="
|
2738 |
</td>
|
2739 |
<?php
|
2740 |
} else {
|
2741 |
-
$excludecategorylistarray = explode( ',', $options['
|
2742 |
?>
|
2743 |
<td>
|
2744 |
-
<?php
|
2745 |
-
<select style="width:100%" id="excludecategorylist" name="excludecategorylist[]" multiple <?php disabled( empty( $options['excludecategorylist'] ), true, true ); ?>>
|
2746 |
-
<?php foreach ( $catnames as $catname ) { ?>
|
2747 |
-
<option value="<?php echo $catname->term_id; ?>" <?php selected( in_array( $catname->term_id, $excludecategorylistarray ), true, true ); ?> ><?php echo $catname->name; ?></option>
|
2748 |
-
|
2749 |
-
<?php } ?>
|
2750 |
-
</select>
|
2751 |
-
<?php } else { ?>
|
2752 |
-
<?php _e( 'No link categories! Create some!', 'link-library' ); ?>
|
2753 |
-
<?php } ?>
|
2754 |
<?php _e( 'No Exclusions', 'link-library' ); ?>
|
2755 |
-
<input type="checkbox" id="noexclusions" name="noexclusions" <?php
|
2756 |
-
echo ' checked="checked" ';
|
2757 |
-
} ?>/>
|
2758 |
|
2759 |
</td>
|
2760 |
<?php } ?>
|
@@ -2764,32 +3287,20 @@ class link_library_plugin_admin {
|
|
2764 |
<?php _e( 'Only show one category at a time', 'link-library' ); ?>
|
2765 |
</td>
|
2766 |
<td class="lltooltip" title="<?php _e( 'Only show one category of links at a time', 'link-library' ); ?>">
|
2767 |
-
<input type="checkbox" id="showonecatonly" name="showonecatonly" <?php
|
2768 |
-
echo ' checked="checked" ';
|
2769 |
-
} ?>/>
|
2770 |
</td>
|
2771 |
<td style='width: 200px' class="lltooltip" title="<?php _e( 'Select if AJAX should be used to only reload the list of links without reloading the whole page or HTML GET to reload entire page with a new link. The Permalinks option must be enabled for HTML GET + Permalink to work correctly.', 'link-library' ); ?>"><?php _e( 'Switching Method', 'link-library' ); ?></td>
|
2772 |
<td>
|
2773 |
<select name="showonecatmode" id="showonecatmode" style="width:200px;">
|
2774 |
-
<option value="AJAX"<?php
|
2775 |
-
echo ' selected="selected"';
|
2776 |
-
} ?>>AJAX
|
2777 |
</option>
|
2778 |
-
<option value="HTMLGET"<?php
|
2779 |
-
echo ' selected="selected"';
|
2780 |
-
} ?>>HTML GET
|
2781 |
</option>
|
2782 |
-
<option value="HTMLGETSLUG"<?php
|
2783 |
-
echo ' selected="selected"';
|
2784 |
-
} ?>>HTML GET Using Slugs
|
2785 |
</option>
|
2786 |
-
<option value="HTMLGETCATNAME"<?php
|
2787 |
-
echo ' selected="selected"';
|
2788 |
-
} ?>>HTML GET Using Category Name
|
2789 |
</option>
|
2790 |
-
<option value="HTMLGETPERM"<?php
|
2791 |
-
echo ' selected="selected"';
|
2792 |
-
} ?>>HTML GET + Permalink
|
2793 |
</option>
|
2794 |
</select>
|
2795 |
</td>
|
@@ -2799,20 +3310,18 @@ class link_library_plugin_admin {
|
|
2799 |
<?php _e( 'Default category to be shown when only showing one at a time (numeric ID)', 'link-library' ); ?>
|
2800 |
</td>
|
2801 |
<td>
|
2802 |
-
<input type="text" id="
|
2803 |
</td>
|
2804 |
-
<td><?php _e( 'Hide category on start in single cat
|
2805 |
<td>
|
2806 |
-
<input type="checkbox" id="nocatonstartup" name="nocatonstartup" <?php
|
2807 |
-
echo ' checked="checked" ';
|
2808 |
-
} ?>/></td>
|
2809 |
</tr>
|
2810 |
<tr>
|
2811 |
<td class="lltooltip" title="<?php _e( 'File path is relative to Link Library plugin directory', 'link-library' ); ?>">
|
2812 |
<?php _e( 'Icon to display when performing AJAX queries', 'link-library' ); ?>
|
2813 |
</td>
|
2814 |
<td class="lltooltip" title="<?php _e( 'File path is relative to Link Library plugin directory', 'link-library' ); ?>">
|
2815 |
-
<input type="text" id="loadingicon" name="loadingicon" size="40" value="<?php if ( $options['loadingicon']
|
2816 |
echo '/icons/Ajax-loader.gif';
|
2817 |
} else {
|
2818 |
echo strval( $options['loadingicon'] );
|
@@ -2824,9 +3333,7 @@ class link_library_plugin_admin {
|
|
2824 |
<?php _e( 'Paginate Results', 'link-library' ); ?>
|
2825 |
</td>
|
2826 |
<td class="lltooltip" title='<?php _e( 'Only show a limited number of links and add page navigation links', 'link-library' ); ?>'>
|
2827 |
-
<input type="checkbox" id="pagination" name="pagination" <?php
|
2828 |
-
echo ' checked="checked" ';
|
2829 |
-
} ?>/>
|
2830 |
</td>
|
2831 |
<td class="lltooltip" title="<?php _e( 'Number of Links to be Displayed per Page in Pagination Mode', 'link-library' ); ?>">
|
2832 |
<?php _e( 'Links per Page', 'link-library' ); ?>
|
@@ -2841,31 +3348,26 @@ class link_library_plugin_admin {
|
|
2841 |
</td>
|
2842 |
<td>
|
2843 |
<select name="paginationposition" id="paginationposition" style="width:200px;">
|
2844 |
-
<option value="AFTER"<?php
|
2845 |
-
|
2846 |
-
} ?>><?php _e( 'After Links', 'link-library' ); ?></option>
|
2847 |
-
<option value="BEFORE"<?php if ( $options['paginationposition'] == 'BEFORE' ) {
|
2848 |
-
echo ' selected="selected"';
|
2849 |
-
} ?>><?php _e( 'Before Links', 'link-library' ); ?></option>
|
2850 |
</select>
|
2851 |
</td>
|
2852 |
<td>
|
2853 |
<?php _e( 'Hide Results if Empty', 'link-library' ); ?>
|
2854 |
</td>
|
2855 |
<td>
|
2856 |
-
<input type="checkbox" id="hide_if_empty" name="hide_if_empty" <?php
|
2857 |
-
echo ' checked="checked" ';
|
2858 |
-
} ?>/>
|
2859 |
</td>
|
2860 |
</tr>
|
|
|
|
|
|
|
2861 |
<tr>
|
2862 |
<td>
|
2863 |
<?php _e( 'Enable Permalinks', 'link-library' ); ?>
|
2864 |
</td>
|
2865 |
<td>
|
2866 |
-
<input type="checkbox" id="enablerewrite" name="enablerewrite" <?php
|
2867 |
-
echo ' checked="checked" ';
|
2868 |
-
} ?>/>
|
2869 |
</td>
|
2870 |
<td>
|
2871 |
<?php _e( 'Permalinks Page', 'link-library' ); ?>
|
@@ -2874,6 +3376,31 @@ class link_library_plugin_admin {
|
|
2874 |
<input type="text" id="rewritepage" name="rewritepage" size="40" value="<?php echo $options['rewritepage']; ?>" />
|
2875 |
</td>
|
2876 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2877 |
<tr>
|
2878 |
<td><?php _e( 'Display alphabetic cat filter', 'link-library' ); ?></td>
|
2879 |
<td><?php $letterfilteroptions = array( 'no' => __( 'Do not display', 'link-library' ), 'beforecats' => __( 'Before Categories', 'link-library' ), 'beforelinks' => __( 'Before Links', 'link-library' ), 'beforecatsandlinks' => __( 'Before Categories and Links', 'link-library' ) ); ?>
|
@@ -2904,11 +3431,11 @@ class link_library_plugin_admin {
|
|
2904 |
jQuery(document).ready(function () {
|
2905 |
jQuery('#nospecificcats').click(function () {
|
2906 |
if (jQuery("#nospecificcats").is(":checked")) {
|
2907 |
-
jQuery('#
|
2908 |
-
jQuery("#
|
2909 |
}
|
2910 |
else {
|
2911 |
-
jQuery('#
|
2912 |
}
|
2913 |
});
|
2914 |
});
|
@@ -2916,11 +3443,11 @@ class link_library_plugin_admin {
|
|
2916 |
jQuery(document).ready(function () {
|
2917 |
jQuery('#noexclusions').click(function () {
|
2918 |
if (jQuery("#noexclusions").is(":checked")) {
|
2919 |
-
jQuery('#
|
2920 |
-
jQuery("#
|
2921 |
}
|
2922 |
else {
|
2923 |
-
jQuery('#
|
2924 |
}
|
2925 |
});
|
2926 |
});
|
@@ -2942,20 +3469,11 @@ class link_library_plugin_admin {
|
|
2942 |
</td>
|
2943 |
<td>
|
2944 |
<select name="order" id="order" style="width:200px;">
|
2945 |
-
<option value="name"<?php
|
2946 |
-
|
2947 |
-
} ?>><?php _e( 'Order by Name', 'link-library' ); ?></option>
|
2948 |
-
<option value="id"<?php if ( $options['order'] == 'id' ) {
|
2949 |
-
echo ' selected="selected"';
|
2950 |
-
} ?>><?php _e( 'Order by ID', 'link-library' ); ?></option>
|
2951 |
<?php if ( $genoptions['catselectmethod'] == 'commalist' || empty( $genoptions['catselectmethod'] ) ) { ?>
|
2952 |
-
<option value="catlist"<?php
|
2953 |
-
echo ' selected="selected"';
|
2954 |
-
} ?>><?php _e( 'Order of categories based on included category list', 'link-library' ); ?></option>
|
2955 |
<?php } ?>
|
2956 |
-
<option value="order"<?php if ( $options['order'] == 'order' ) {
|
2957 |
-
echo ' selected="selected"';
|
2958 |
-
} ?>><?php _e( 'Order by', 'link-library' ); ?> 'My Link Order' <?php _e( 'Wordpress Plugin', 'link-library' ); ?></option>
|
2959 |
</select>
|
2960 |
</td>
|
2961 |
<td style='width:100px'></td>
|
@@ -2984,10 +3502,10 @@ class link_library_plugin_admin {
|
|
2984 |
<input type="checkbox" id="showcatonsearchresults" name="showcatonsearchresults" <?php checked( $options['showcatonsearchresults'] ); ?>/></td>
|
2985 |
</tr>
|
2986 |
<tr>
|
2987 |
-
<td class="lltooltip"
|
2988 |
<?php _e( 'Direction', 'link-library' ); ?>
|
2989 |
</td>
|
2990 |
-
<td class="lltooltip"
|
2991 |
<select name="direction" id="direction" style="width:100px;">
|
2992 |
<option value="ASC"<?php selected( $options['direction'] == 'ASC' ); ?>><?php _e( 'Ascending', 'link-library' ); ?></option>
|
2993 |
<option value="DESC"<?php selected( $options['direction'] == 'DESC' ); ?>><?php _e( 'Descending', 'link-library' ); ?></option>
|
@@ -3103,7 +3621,6 @@ class link_library_plugin_admin {
|
|
3103 |
<select name="linkorder" id="linkorder" style="width:250px;">
|
3104 |
<option value="name"<?php selected( $options['linkorder'] == 'name' ); ?>><?php _e( 'Order by Name', 'link-library' ); ?></option>
|
3105 |
<option value="id"<?php selected ( $options['linkorder'] == 'id' ); ?>><?php _e( 'Order by ID', 'link-library' ); ?></option>
|
3106 |
-
<option value="order"<?php selected ( $options['linkorder'] == 'order' ); ?>><?php _e( 'Order set by ', 'link-library' ); ?>'My Link Order' <?php _e( 'Wordpress Plugin', 'link-library' ); ?></option>
|
3107 |
<option value="random"<?php selected( $options['linkorder'] == 'random' ); ?>><?php _e( 'Order randomly', 'link-library' ); ?></option>
|
3108 |
<option value="date"<?php selected( $options['linkorder'] == 'date' ); ?>><?php _e( 'Order by updated date', 'link-library' ); ?></option>
|
3109 |
<option value="hits"<?php selected( $options['linkorder'] == 'hits' ); ?>><?php _e( 'Order by number of link visits', 'link-library' ); ?></option>
|
@@ -3114,13 +3631,13 @@ class link_library_plugin_admin {
|
|
3114 |
<?php _e( 'Show Category Description', 'link-library' ); ?>
|
3115 |
</td>
|
3116 |
<td class="lltooltip" title="<?php _e( 'Use [ and ] in the description to perform special actions using HTML such as inserting images instead of < and >', 'link-library' ); ?>">
|
3117 |
-
<input type="checkbox" id="showcategorydesclinks" name="showcategorydesclinks" <?php
|
3118 |
-
echo ' checked="checked" ';
|
3119 |
-
} ?>/>
|
3120 |
<span style='margin-left: 17px'><?php _e( 'Position', 'link-library' ); ?>:</span>
|
3121 |
<select name="catdescpos" id="catdescpos" style="width:100px;">
|
3122 |
<option value="right"<?php selected( $options['catdescpos'] == 'right' ); ?>><?php _e( 'Right', 'link-library' ); ?></option>
|
3123 |
<option value="left"<?php selected( $options['catdescpos'] == 'left' ); ?>><?php _e( 'Left', 'link-library' ); ?></option>
|
|
|
|
|
3124 |
</select>
|
3125 |
</td>
|
3126 |
</tr>
|
@@ -3155,10 +3672,10 @@ class link_library_plugin_admin {
|
|
3155 |
</td>
|
3156 |
</tr>
|
3157 |
<tr>
|
3158 |
-
<td class="lltooltip"
|
3159 |
<?php _e( 'Direction', 'link-library' ); ?>
|
3160 |
</td>
|
3161 |
-
<td class="lltooltip"
|
3162 |
<select name="linkdirection" id="linkdirection" style="width:200px;">
|
3163 |
<option value="ASC"<?php selected( $options['linkdirection'] == 'ASC' ); ?>><?php _e( 'Ascending', 'link-library' ); ?></option>
|
3164 |
<option value="DESC"<?php selected( $options['linkdirection'] == 'DESC' ); ?>><?php _e( 'Descending', 'link-library' ); ?></option>
|
@@ -3181,13 +3698,25 @@ class link_library_plugin_admin {
|
|
3181 |
</td>
|
3182 |
<td></td>
|
3183 |
<td>
|
3184 |
-
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3185 |
</td>
|
3186 |
<td>
|
3187 |
<select name="displayastable" id="displayastable" style="width:200px;">
|
3188 |
-
<option value="true"<?php selected( $
|
3189 |
-
<option value="false"<?php selected( $
|
3190 |
-
<option value="nosurroundingtags"<?php selected( $
|
3191 |
</select>
|
3192 |
</td>
|
3193 |
</tr>
|
@@ -3198,6 +3727,13 @@ class link_library_plugin_admin {
|
|
3198 |
<td class="lltooltip" title="<?php _e( 'Allows extra query string to be added to all links in library', 'link-library' ); ?>">
|
3199 |
<input type="text" id="extraquerystring" name="extraquerystring" size="40" value="<?php echo $options['extraquerystring']; ?>" />
|
3200 |
</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3201 |
</tr>
|
3202 |
<tr>
|
3203 |
<td>
|
@@ -3208,40 +3744,57 @@ class link_library_plugin_admin {
|
|
3208 |
</td>
|
3209 |
<td></td>
|
3210 |
<td>
|
3211 |
-
<?php _e( '
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3212 |
</td>
|
3213 |
<td>
|
3214 |
-
<input type="
|
3215 |
</td>
|
3216 |
</tr>
|
3217 |
<tr>
|
3218 |
<td>
|
3219 |
-
<?php _e( '
|
3220 |
</td>
|
3221 |
<td>
|
3222 |
-
<input type="
|
3223 |
</td>
|
3224 |
<td></td>
|
3225 |
<td>
|
3226 |
-
<?php _e( '
|
3227 |
</td>
|
3228 |
<td>
|
3229 |
-
<input type="
|
3230 |
</td>
|
3231 |
</tr>
|
3232 |
<tr>
|
3233 |
<td>
|
3234 |
-
<?php _e( 'Hide
|
3235 |
</td>
|
3236 |
<td>
|
3237 |
-
<input type="checkbox" id="
|
3238 |
</td>
|
3239 |
<td></td>
|
3240 |
<td>
|
3241 |
-
<?php _e( '
|
3242 |
</td>
|
3243 |
<td>
|
3244 |
-
<input type="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3245 |
</td>
|
3246 |
</tr>
|
3247 |
<tr>
|
@@ -3273,19 +3826,20 @@ class link_library_plugin_admin {
|
|
3273 |
<?php _e( 'Arrange the items below via drag-and-drop to order the various Link Library elements.', 'link-library' ); ?>
|
3274 |
<br /><br />
|
3275 |
<ul id="sortable">
|
3276 |
-
<?php if ( $options['dragndroporder']
|
3277 |
-
$dragndroporder = '1,2,3,4,5,6,7,8,9,10,11,12,13,14';
|
3278 |
} else {
|
3279 |
$dragndroporder = $options['dragndroporder'];
|
3280 |
}
|
|
|
3281 |
$dragndroparray = explode( ',', $dragndroporder );
|
3282 |
|
3283 |
-
|
3284 |
-
$dragndroparray[] = '13';
|
3285 |
-
}
|
3286 |
|
3287 |
-
|
3288 |
-
$dragndroparray
|
|
|
|
|
3289 |
}
|
3290 |
|
3291 |
if ( $dragndroparray ) {
|
@@ -3317,7 +3871,7 @@ class link_library_plugin_admin {
|
|
3317 |
<?php break;
|
3318 |
case 7:
|
3319 |
?>
|
3320 |
-
<li id="7" style='background-color: #5ccccc'><?php _e( 'Link', 'link-library' ); ?></li>
|
3321 |
<?php break;
|
3322 |
case 8:
|
3323 |
?>
|
@@ -3347,6 +3901,14 @@ class link_library_plugin_admin {
|
|
3347 |
?>
|
3348 |
<li id="14" style='background-color: #33eeff'><?php _e( 'Cat Desc', 'link-library' ); ?></li>
|
3349 |
<?php break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3350 |
}
|
3351 |
}
|
3352 |
}
|
@@ -3393,20 +3955,19 @@ class link_library_plugin_admin {
|
|
3393 |
<td style='background: #FFF'></td>
|
3394 |
<td style='background: #FFF'></td>
|
3395 |
</tr>
|
3396 |
-
<?php if ( $options['dragndroporder']
|
3397 |
-
$dragndroporder = '1,2,3,4,5,6,7,8,9,10,11,12,13,14';
|
3398 |
} else {
|
3399 |
$dragndroporder = $options['dragndroporder'];
|
3400 |
}
|
3401 |
-
|
3402 |
$dragndroparray = explode( ',', $dragndroporder );
|
3403 |
|
3404 |
-
|
3405 |
-
$dragndroparray[] = '13';
|
3406 |
-
}
|
3407 |
|
3408 |
-
|
3409 |
-
$dragndroparray
|
|
|
|
|
3410 |
}
|
3411 |
|
3412 |
if ( $dragndroparray ) {
|
@@ -3417,9 +3978,7 @@ class link_library_plugin_admin {
|
|
3417 |
<tr>
|
3418 |
<td style='background-color: #1240ab; color: #fff' class="lltooltip" title='<?php _e( 'This column allows for the output of text/code before each link image', 'link-library' ); ?>'><?php _e( 'Image', 'link-library' ); ?></td>
|
3419 |
<td style='text-align:center;background: #FFF'>
|
3420 |
-
<input type="checkbox" id="show_images" name="show_images" <?php
|
3421 |
-
echo ' checked="checked" ';
|
3422 |
-
} ?>/>
|
3423 |
</td>
|
3424 |
<td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before each link image', 'link-library' ); ?>'>
|
3425 |
<input type="text" id="beforeimage" name="beforeimage" size="22" value="<?php echo stripslashes( $options['beforeimage'] ); ?>" />
|
@@ -3432,12 +3991,8 @@ class link_library_plugin_admin {
|
|
3432 |
</td>
|
3433 |
<td style='background: #FFF'>
|
3434 |
<select name="sourceimage" id="sourceimage" style="width:200px;">
|
3435 |
-
<option value="primary"<?php
|
3436 |
-
|
3437 |
-
} ?>><?php _e( 'Primary', 'link-library' ); ?></option>
|
3438 |
-
<option value="secondary"<?php if ( $options['sourceimage'] == "secondary" ) {
|
3439 |
-
echo ' selected="selected"';
|
3440 |
-
} ?>><?php _e( 'Secondary', 'link-library' ); ?></option>
|
3441 |
</select>
|
3442 |
</td>
|
3443 |
</tr>
|
@@ -3447,9 +4002,7 @@ class link_library_plugin_admin {
|
|
3447 |
<tr>
|
3448 |
<td style='background-color: #4671d5; color: #fff' class="lltooltip" title='<?php _e( 'This column allows for the output of text/code before and after each link name', 'link-library' ); ?>'><?php _e( 'Link Name', 'link-library' ); ?></td>
|
3449 |
<td style='text-align:center;background: #FFF'>
|
3450 |
-
<input type="checkbox" id="showname" name="showname" <?php
|
3451 |
-
echo ' checked="checked" ';
|
3452 |
-
} ?>/>
|
3453 |
</td>
|
3454 |
<td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before each link', 'link-library' ); ?>'>
|
3455 |
<input type="text" id="beforelink" name="beforelink" size="22" value="<?php echo stripslashes( $options['beforelink'] ); ?>" />
|
@@ -3465,8 +4018,9 @@ class link_library_plugin_admin {
|
|
3465 |
</td>
|
3466 |
<td style='background: #FFF'>
|
3467 |
<select name="sourcename" id="sourcename" style="width:200px;">
|
3468 |
-
<option value="primary"<?php selected( $options['sourcename']
|
3469 |
-
<option value="secondary"<?php selected( $options['sourcename']
|
|
|
3470 |
</select>
|
3471 |
</td>
|
3472 |
</tr>
|
@@ -3476,9 +4030,7 @@ class link_library_plugin_admin {
|
|
3476 |
<tr>
|
3477 |
<td style='background-color: #39e639; color:#fff' class="lltooltip" title='<?php _e( 'This column allows for the output of text/code before and after each link date stamp', 'link-library' ); ?>'><?php _e( 'Link Date', 'link-library' ); ?></td>
|
3478 |
<td style='background: #FFF;text-align:center' class="lltooltip" title='<?php _e( 'Check to display link date', 'link-library' ); ?>'>
|
3479 |
-
<input type="checkbox" id="showdate" name="showdate" <?php
|
3480 |
-
echo ' checked="checked" ';
|
3481 |
-
} ?>/>
|
3482 |
</td>
|
3483 |
<td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before each date', 'link-library' ); ?>'>
|
3484 |
<input type="text" id="beforedate" name="beforedate" size="22" value="<?php echo stripslashes( $options['beforedate'] ); ?>" />
|
@@ -3495,9 +4047,7 @@ class link_library_plugin_admin {
|
|
3495 |
<tr>
|
3496 |
<td style='background-color: #009999;color:#fff' class="lltooltip" title='<?php _e( 'This column allows for the output of text/code before and after each link description', 'link-library' ); ?>'><?php _e( 'Link Description', 'link-library' ); ?></td>
|
3497 |
<td style='background: #FFF;text-align: center' class="lltooltip" title='<?php _e( 'Check to display link descriptions', 'link-library' ); ?>'>
|
3498 |
-
<input type="checkbox" id="showdescription" name="showdescription" <?php
|
3499 |
-
echo ' checked="checked" ';
|
3500 |
-
} ?>/>
|
3501 |
</td>
|
3502 |
<td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before each description', 'link-library' ); ?>'>
|
3503 |
<input type="text" id="beforedesc" name="beforedesc" size="22" value="<?php echo stripslashes( $options['beforedesc'] ); ?>" />
|
@@ -3514,9 +4064,7 @@ class link_library_plugin_admin {
|
|
3514 |
<tr>
|
3515 |
<td style='background-color: #00cc00;color:#fff' class="lltooltip" title='<?php _e( 'This column allows for the output of text/code before and after each link notes', 'link-library' ); ?>'><?php _e( 'Link Notes', 'link-library' ); ?></td>
|
3516 |
<td style='background: #FFF;text-align: center' class="lltooltip" title='<?php _e( 'Check to display link notes', 'link-library' ); ?>'>
|
3517 |
-
<input type="checkbox" id="shownotes" name="shownotes" <?php
|
3518 |
-
echo ' checked="checked" ';
|
3519 |
-
} ?>/>
|
3520 |
</td>
|
3521 |
<td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before each note', 'link-library' ); ?>'>
|
3522 |
<input type="text" id="beforenote" name="beforenote" size="22" value="<?php echo stripslashes( $options['beforenote'] ); ?>" />
|
@@ -3553,7 +4101,6 @@ class link_library_plugin_admin {
|
|
3553 |
<select name="displayweblink" id="displayweblink" style="width:80px;">
|
3554 |
<option value="false"<?php selected( $options['displayweblink'] == "false" ); ?>><?php _e( 'False', 'link-library' ); ?></option>
|
3555 |
<option value="address"<?php selected( $options['displayweblink'] == "address" ); ?>><?php _e( 'Web Address', 'link-library' ); ?></option>
|
3556 |
-
<option value="addressonly"<?php selected( $options['displayweblink'] == "addressonly" ); ?>><?php _e( 'Web Address Only', 'link-library' ); ?></option>
|
3557 |
<option value="label"<?php selected( $options['displayweblink'] == "label" ); ?>><?php _e( 'Label', 'link-library' ); ?></option>
|
3558 |
</select>
|
3559 |
</td>
|
@@ -3563,17 +4110,14 @@ class link_library_plugin_admin {
|
|
3563 |
<td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed after Web Link', 'link-library' ); ?>'>
|
3564 |
<input type="text" id="afterweblink" name="afterweblink" size="22" value="<?php echo stripslashes( $options['afterweblink'] ); ?>" />
|
3565 |
</td>
|
3566 |
-
<td style='background: #FFF'
|
3567 |
-
<input type="text" id="weblinklabel" name="weblinklabel" size="
|
|
|
3568 |
</td>
|
3569 |
<td style='background: #FFF' class="lltooltip" title='<?php _e( 'Select which link address will be displayed / used for link', 'link-library' ); ?>'>
|
3570 |
<select name="sourceweblink" id="sourceweblink" style="width:200px;">
|
3571 |
-
<option value="primary"<?php
|
3572 |
-
|
3573 |
-
} ?>><?php _e( 'Primary', 'link-library' ); ?></option>
|
3574 |
-
<option value="secondary"<?php if ( $options['sourceweblink'] == "secondary" ) {
|
3575 |
-
echo ' selected="selected"';
|
3576 |
-
} ?>><?php _e( 'Secondary', 'link-library' ); ?></option>
|
3577 |
</select>
|
3578 |
</td>
|
3579 |
</tr>
|
@@ -3584,18 +4128,10 @@ class link_library_plugin_admin {
|
|
3584 |
<td style='background-color: #6c8cd5;color:#fff' class="lltooltip" title='<?php _e( 'This column allows for the output of text/code before and after the Telephone Number', 'link-library' ); ?>'><?php _e( 'Telephone', 'link-library' ); ?></td>
|
3585 |
<td style='text-align:center;background: #FFF'>
|
3586 |
<select name="showtelephone" id="showtelephone" style="width:80px;">
|
3587 |
-
<option value="false"<?php
|
3588 |
-
|
3589 |
-
|
3590 |
-
<option value="
|
3591 |
-
echo ' selected="selected"';
|
3592 |
-
} ?>><?php _e( 'Plain Text', 'link-library' ); ?></option>
|
3593 |
-
<option value="link"<?php if ( $options['showtelephone'] == "link" ) {
|
3594 |
-
echo ' selected="selected"';
|
3595 |
-
} ?>><?php _e( 'Link', 'link-library' ); ?></option>
|
3596 |
-
<option value="label"<?php if ( $options['showtelephone'] == "label" ) {
|
3597 |
-
echo ' selected="selected"';
|
3598 |
-
} ?>><?php _e( 'Label', 'link-library' ); ?></option>
|
3599 |
</select>
|
3600 |
</td>
|
3601 |
<td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before Telephone Number', 'link-library' ); ?>'>
|
@@ -3609,12 +4145,8 @@ class link_library_plugin_admin {
|
|
3609 |
</td>
|
3610 |
<td style='background: #FFF' class="lltooltip" title='<?php _e( 'Select which link address will be displayed / used for link', 'link-library' ); ?>'>
|
3611 |
<select name="sourcetelephone" id="sourcetelephone" style="width:200px;">
|
3612 |
-
<option value="primary"<?php
|
3613 |
-
|
3614 |
-
} ?>><?php _e( 'Primary', 'link-library' ); ?></option>
|
3615 |
-
<option value="secondary"<?php if ( $options['sourcetelephone'] == "secondary" ) {
|
3616 |
-
echo ' selected="selected"';
|
3617 |
-
} ?>><?php _e( 'Secondary', 'link-library' ); ?></option>
|
3618 |
</select>
|
3619 |
</td>
|
3620 |
</tr>
|
@@ -3625,24 +4157,12 @@ class link_library_plugin_admin {
|
|
3625 |
<td style='background-color: #67e667;color:#fff' class="lltooltip" title='<?php _e( 'This column allows for the output of text/code before and after the E-mail', 'link-library' ); ?>'><?php _e( 'E-mail', 'link-library' ); ?></td>
|
3626 |
<td style='text-align:center;background: #FFF'>
|
3627 |
<select name="showemail" id="showemail" style="width:80px;">
|
3628 |
-
<option value="false"<?php
|
3629 |
-
|
3630 |
-
|
3631 |
-
<option value="
|
3632 |
-
|
3633 |
-
|
3634 |
-
<option value="mailto"<?php if ( $options['showemail'] == "mailto" ) {
|
3635 |
-
echo ' selected="selected"';
|
3636 |
-
} ?>><?php _e( 'MailTo Link', 'link-library' ); ?></option>
|
3637 |
-
<option value="mailtolabel"<?php if ( $options['showemail'] == "mailtolabel" ) {
|
3638 |
-
echo ' selected="selected"';
|
3639 |
-
} ?>><?php _e( 'MailTo Link with Label', 'link-library' ); ?></option>
|
3640 |
-
<option value="command"<?php if ( $options['showemail'] == "command" ) {
|
3641 |
-
echo ' selected="selected"';
|
3642 |
-
} ?>><?php _e( 'Formatted Command', 'link-library' ); ?></option>
|
3643 |
-
<option value="commandlabel"<?php if ( $options['showemail'] == "commandlabel" ) {
|
3644 |
-
echo ' selected="selected"';
|
3645 |
-
} ?>><?php _e( 'Formatted Command with Labels', 'link-library' ); ?></option>
|
3646 |
</select>
|
3647 |
</td>
|
3648 |
<td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before E-mail', 'link-library' ); ?>'>
|
@@ -3664,9 +4184,7 @@ class link_library_plugin_admin {
|
|
3664 |
<tr>
|
3665 |
<td style='background-color: #33cccc;color:#fff' class="lltooltip" title='<?php _e( 'This column allows for the output of text/code before and after Link Hits', 'link-library' ); ?>'><?php _e( 'Link Hits', 'link-library' ); ?></td>
|
3666 |
<td style='text-align:center;background: #FFF'>
|
3667 |
-
<input type="checkbox" id="showlinkhits" name="showlinkhits" <?php
|
3668 |
-
echo ' checked="checked" ';
|
3669 |
-
} ?>/>
|
3670 |
</td>
|
3671 |
<td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before Link Hits', 'link-library' ); ?>'>
|
3672 |
<input type="text" id="beforelinkhits" name="beforelinkhits" size="22" value="<?php echo stripslashes( $options['beforelinkhits'] ); ?>" />
|
@@ -3683,9 +4201,7 @@ class link_library_plugin_admin {
|
|
3683 |
<tr>
|
3684 |
<td style='background-color: #33cc00;color:#fff' class="lltooltip" title='<?php _e( 'This column allows for the output of text/code before and after the Link Rating', 'link-library' ); ?>'><?php _e( 'Link Rating', 'link-library' ); ?></td>
|
3685 |
<td style='text-align:center;background: #FFF'>
|
3686 |
-
<input type="checkbox" id="showrating" name="showrating" <?php
|
3687 |
-
echo ' checked="checked" ';
|
3688 |
-
} ?>/>
|
3689 |
</td>
|
3690 |
<td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before Link Rating', 'link-library' ); ?>'>
|
3691 |
<input type="text" id="beforelinkrating" name="beforelinkrating" size="22" value="<?php echo stripslashes( $options['beforelinkrating'] ); ?>" />
|
@@ -3702,9 +4218,7 @@ class link_library_plugin_admin {
|
|
3702 |
<tr>
|
3703 |
<td style='background-color: #33ccff;color:#fff' class="lltooltip" title='<?php _e( 'This column allows for the output of text/code before and after the Link Large Description', 'link-library' ); ?>'><?php _e( 'Link Large Description', 'link-library' ); ?></td>
|
3704 |
<td style='text-align:center;background: #FFF'>
|
3705 |
-
<input type="checkbox" id="showlargedescription" name="showlargedescription" <?php
|
3706 |
-
echo ' checked="checked" ';
|
3707 |
-
} ?>/>
|
3708 |
</td>
|
3709 |
<td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before Link Large Description', 'link-library' ); ?>'>
|
3710 |
<input type="text" id="beforelargedescription" name="beforelargedescription" size="22" value="<?php echo stripslashes( $options['beforelargedescription'] ); ?>" />
|
@@ -3750,6 +4264,48 @@ class link_library_plugin_admin {
|
|
3750 |
<td style='background: #FFF'></td>
|
3751 |
</tr>
|
3752 |
<?php break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3753 |
}
|
3754 |
}
|
3755 |
}
|
@@ -3791,9 +4347,7 @@ class link_library_plugin_admin {
|
|
3791 |
<?php _e( 'Show Link Updated Flag', 'link-library' ); ?>
|
3792 |
</td>
|
3793 |
<td style='width:75px;padding:0px 20px 0px 20px'>
|
3794 |
-
<input type="checkbox" id="showupdated" name="showupdated" <?php
|
3795 |
-
echo ' checked="checked" ';
|
3796 |
-
} ?>/>
|
3797 |
</td>
|
3798 |
<td style='width:20px'>
|
3799 |
</td>
|
@@ -3801,9 +4355,7 @@ class link_library_plugin_admin {
|
|
3801 |
<?php _e( 'Convert [] to <> in Link Description and Notes', 'link-library' ); ?>
|
3802 |
</td>
|
3803 |
<td style='width:75px;padding:0px 20px 0px 20px'>
|
3804 |
-
<input type="checkbox" id="use_html_tags" name="use_html_tags" <?php
|
3805 |
-
echo ' checked="checked" ';
|
3806 |
-
} ?>/>
|
3807 |
</td>
|
3808 |
</tr>
|
3809 |
<tr>
|
@@ -3813,11 +4365,11 @@ class link_library_plugin_admin {
|
|
3813 |
<td style='width:75px;padding:0px 20px 0px 20px'>
|
3814 |
<select id="showupdatedpos" name="showupdatedpos">
|
3815 |
<?php
|
3816 |
-
|
3817 |
|
3818 |
-
|
3819 |
-
|
3820 |
-
|
3821 |
?>
|
3822 |
</select>
|
3823 |
</td>
|
@@ -3878,14 +4430,14 @@ class link_library_plugin_admin {
|
|
3878 |
</td>
|
3879 |
<td><?php _e( 'Pop-Up Width', 'link-library' ); ?></td>
|
3880 |
<td>
|
3881 |
-
<input type="text" id="popup_width" name="popup_width" size="4" value="<?php if ( !isset( $options['popup_width'] ) || $options['popup_width']
|
3882 |
echo '300';
|
3883 |
} else {
|
3884 |
echo strval( $options['popup_width'] );
|
3885 |
} ?>" /></td>
|
3886 |
<td><?php _e( 'Pop-Up Height', 'link-library' ); ?></td>
|
3887 |
<td>
|
3888 |
-
<input type="text" id="popup_height" name="popup_height" size="4" value="<?php if ( !isset( $options['popup_height'] ) || $options['popup_height']
|
3889 |
echo '400';
|
3890 |
} else {
|
3891 |
echo strval( $options['popup_height'] );
|
@@ -3913,17 +4465,13 @@ class link_library_plugin_admin {
|
|
3913 |
<?php _e( 'Show RSS Link using Text', 'link-library' ); ?>
|
3914 |
</td>
|
3915 |
<td style='width:75px;padding-right:20px'>
|
3916 |
-
<input type="checkbox" id="show_rss" name="show_rss" <?php
|
3917 |
-
echo ' checked="checked" ';
|
3918 |
-
} ?>/>
|
3919 |
</td>
|
3920 |
<td>
|
3921 |
<?php _e( 'Show RSS Link using Standard Icon', 'link-library' ); ?>
|
3922 |
</td>
|
3923 |
<td style='width:75px;padding-right:20px'>
|
3924 |
-
<input type="checkbox" id="show_rss_icon" name="show_rss_icon" <?php
|
3925 |
-
echo ' checked="checked" ';
|
3926 |
-
} ?>/>
|
3927 |
</td>
|
3928 |
<td></td>
|
3929 |
<td style='width:75px;padding-right:20px'></td>
|
@@ -3967,10 +4515,9 @@ class link_library_plugin_admin {
|
|
3967 |
<tr>
|
3968 |
<td><?php _e( 'RSS Preview Width', 'link-library' ); ?></td>
|
3969 |
<td>
|
3970 |
-
<input type="text" id="rsspreviewwidth" name="rsspreviewwidth" size="5" value="<?php echo strval( $options['rsspreviewwidth'] ); ?>" /></td>
|
3971 |
<td><?php _e( 'RSS Preview Height', 'link-library' ); ?></td>
|
3972 |
-
<td>
|
3973 |
-
<input type="text" id="rsspreviewheight" name="rsspreviewheight" size="5" value="<?php echo strval( $options['rsspreviewheight'] ); ?>" /></td>
|
3974 |
<td><?php _e( 'Skip links with no RSS inline items', 'link-library' ); ?></td>
|
3975 |
<td><input type="checkbox" id="rssfeedinlineskipempty" name="rssfeedinlineskipempty" <?php checked( $options['rssfeedinlineskipempty'] ); ?>/></td>
|
3976 |
</tr>
|
@@ -3992,9 +4539,7 @@ class link_library_plugin_admin {
|
|
3992 |
<?php _e( 'Use thumbnail service for dynamic link images', 'link-library' ); ?>
|
3993 |
</td>
|
3994 |
<td class='lltooltip' title='<?php _e( 'Checking this option will get images from the thumbshots web site every time', 'link-library' ); ?>.' style='width:75px;padding-right:20px'>
|
3995 |
-
<input type="checkbox" id="usethumbshotsforimages" name="usethumbshotsforimages" <?php
|
3996 |
-
echo ' checked="checked" ';
|
3997 |
-
} ?>/>
|
3998 |
</td>
|
3999 |
</tr>
|
4000 |
<tr>
|
@@ -4002,9 +4547,7 @@ class link_library_plugin_admin {
|
|
4002 |
<?php _e( 'Give priority to images assigned to links if present', 'link-library' ); ?>
|
4003 |
</td>
|
4004 |
<td>
|
4005 |
-
<input type="checkbox" id="uselocalimagesoverthumbshots" name="uselocalimagesoverthumbshots" <?php
|
4006 |
-
echo ' checked="checked" ';
|
4007 |
-
} ?>/></td>
|
4008 |
</tr>
|
4009 |
<tr>
|
4010 |
<td><?php _e( 'Generate Images / Favorite Icons', 'link-library' ); ?></td>
|
@@ -4042,7 +4585,7 @@ class link_library_plugin_admin {
|
|
4042 |
</td>
|
4043 |
<td><?php _e( 'Number of items in RSS feed', 'link-library' ); ?></td>
|
4044 |
<td style='width:75px;padding-right:20px'>
|
4045 |
-
<input type="text" id="numberofrssitems" name="numberofrssitems" size="3" value="<?php if ( $options['numberofrssitems']
|
4046 |
echo '10';
|
4047 |
} else {
|
4048 |
echo strval( $options['numberofrssitems'] );
|
@@ -4061,7 +4604,7 @@ class link_library_plugin_admin {
|
|
4061 |
</td>
|
4062 |
</tr>
|
4063 |
<tr>
|
4064 |
-
<td><?php _e( 'RSS Feed Web Address (default yoursite.com?
|
4065 |
<td colspan=3>
|
4066 |
<input type="text" id="rssfeedaddress" name="rssfeedaddress" size="80" value="<?php echo strval( esc_html( stripslashes( $options['rssfeedaddress'] ) ) ); ?>" />
|
4067 |
</td>
|
@@ -4322,9 +4865,10 @@ class link_library_plugin_admin {
|
|
4322 |
<input type="text" id="linkcatlabel" name="linkcatlabel" size="30" value="<?php echo $options['linkcatlabel']; ?>" />
|
4323 |
</td>
|
4324 |
<td>
|
4325 |
-
<select name="showaddlinkcat" id="showaddlinkcat" style="width:
|
4326 |
<option value="hide"<?php selected( $options['showaddlinkcat'] == 'hide' ); ?>><?php _e( 'Hide', 'link-library' ); ?></option>
|
4327 |
-
<option value="show"<?php selected( $options['showaddlinkcat'] == 'show' ); ?>><?php _e( '
|
|
|
4328 |
</select>
|
4329 |
</td>
|
4330 |
<td style='width: 20px'></td>
|
@@ -4338,29 +4882,16 @@ class link_library_plugin_admin {
|
|
4338 |
<td>
|
4339 |
<?php
|
4340 |
|
4341 |
-
|
4342 |
-
$
|
4343 |
-
$
|
4344 |
-
$
|
4345 |
-
$
|
4346 |
-
|
4347 |
-
$linkcatquery .= 'WHERE tt.taxonomy = "link_category" ';
|
4348 |
-
|
4349 |
-
if ( !empty( $categorylist ) ) {
|
4350 |
-
$linkcatquery .= ' AND t.term_id in (' . $categorylist. ')';
|
4351 |
-
}
|
4352 |
-
|
4353 |
-
if ( !empty( $excludecategorylist ) ) {
|
4354 |
-
$linkcatquery .= ' AND t.term_id not in (' . $excludecategorylist . ')';
|
4355 |
-
}
|
4356 |
-
|
4357 |
-
$linkcatquery .= ' ORDER by t.name ASC';
|
4358 |
-
|
4359 |
-
$linkcats = $wpdb->get_results( $linkcatquery );
|
4360 |
|
4361 |
if ( $linkcats ) { ?>
|
4362 |
<select name="addlinkdefaultcat" id="addlinkdefaultcat" value="<?php echo $options['addlinkdefaultcat']; ?>">
|
4363 |
-
|
4364 |
<?php foreach ( $linkcats as $linkcat ) { ?>
|
4365 |
<option value="<?php echo $linkcat->term_id; ?>" <?php selected( $linkcat->term_id, $options['addlinkdefaultcat'] ); ?>><?php echo $linkcat->name; ?></option>
|
4366 |
<?php } ?>
|
@@ -4392,6 +4923,50 @@ class link_library_plugin_admin {
|
|
4392 |
</td>
|
4393 |
<td style='width:200px'></td>
|
4394 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4395 |
<tr>
|
4396 |
<td style='width:200px'><?php _e( 'Link description label', 'link-library' ); ?></td>
|
4397 |
<?php if ( $options['linkdesclabel'] == "" ) {
|
@@ -4621,89 +5196,9 @@ class link_library_plugin_admin {
|
|
4621 |
function settingssets_importexport_meta_box( $data ) {
|
4622 |
$options = $data['options'];
|
4623 |
$settings = $data['settings'];
|
4624 |
-
require_once plugin_dir_path( __FILE__ ) . 'wp_dropdown_posts.php';
|
4625 |
?>
|
4626 |
|
4627 |
<div style='padding-top:15px' id="ll-importexport" class="content-section">
|
4628 |
-
<table>
|
4629 |
-
<tr>
|
4630 |
-
<td class='lltooltip' title='<?php _e( 'Allows for links to be added in batch to the Wordpress links database. CSV file needs to follow template for column layout.', 'link-library' ); ?>' style='width: 330px'><?php _e( 'CSV file to upload to import links', 'link-library' ); ?> (<a href="<?php echo plugins_url( 'importtemplate.csv', __FILE__ ); ?>"><?php _e( 'file template', 'link-library' ); ?></a>)
|
4631 |
-
</td>
|
4632 |
-
<td><input size="80" name="linksfile" type="file" /></td>
|
4633 |
-
<td><input type="submit" name="importlinks" value="<?php _e( 'Import Links from CSV', 'link-library' ); ?>" />
|
4634 |
-
</td>
|
4635 |
-
</tr>
|
4636 |
-
<tr>
|
4637 |
-
<td><?php _e( 'First row contains column headers', 'link-library' ); ?></td>
|
4638 |
-
<td><input type="checkbox" id="firstrowheaders" name="firstrowheaders" checked="checked" /></td>
|
4639 |
-
</tr>
|
4640 |
-
<tr>
|
4641 |
-
<td><?php _e( 'Update items when URL is identical', 'link-library' ); ?></td>
|
4642 |
-
<td><input type="checkbox" id="updatesameurl" name="updatesameurl" checked="checked" /></td>
|
4643 |
-
</tr>
|
4644 |
-
</table>
|
4645 |
-
<hr style='color: #CCC; ' />
|
4646 |
-
|
4647 |
-
<table>
|
4648 |
-
<tr>
|
4649 |
-
<td style='width: 230px'><?php _e( 'Import links from site pages', 'link-library' ); ?></td>
|
4650 |
-
<td style='width: 350px'><input type="radio" name="siteimportlinksscope" value="allpagesposts" checked> <?php _e( 'All Pages and Posts', 'link-library' ); ?><br />
|
4651 |
-
<input type="radio" name="siteimportlinksscope" value="allpagespostscpt"> <?php _e( 'All Pages, Posts and Custom Post Types', 'link-library' ); ?><br />
|
4652 |
-
<input type="radio" name="siteimportlinksscope" value="specificpage"> <?php _e( 'Specific Page', 'link-library' ); ?>
|
4653 |
-
<?php wp_dropdown_pages(); ?><br />
|
4654 |
-
<?php $post_count = wp_count_posts();
|
4655 |
-
if ( $post_count->publish < 200 ) { ?>
|
4656 |
-
<input type="radio" name="siteimportlinksscope" value="specificpost"> <?php _e( 'Specific Post', 'link-library' );
|
4657 |
-
wp_dropdown_posts(); ?><br />
|
4658 |
-
<?php }
|
4659 |
-
$site_post_types = get_post_types( array( '_builtin' => false ) );
|
4660 |
-
if ( !empty( $site_post_types ) ) {
|
4661 |
-
foreach( $site_post_types as $site_post_type ) {
|
4662 |
-
$any_posts = get_posts( array( 'post_type' => $site_post_type ) );
|
4663 |
-
if ( !empty( $any_posts ) && count( $any_posts ) < 200 ) {
|
4664 |
-
$post_type_data = get_post_type_object( $site_post_type ); ?>
|
4665 |
-
|
4666 |
-
<input type="radio" name="siteimportlinksscope" value="specific<?php echo $site_post_type; ?>"> <?php _e( 'Specific ' . $post_type_data->labels->singular_name, 'link-library' ); ?>
|
4667 |
-
<?php wp_dropdown_posts( array( 'post_type' => $site_post_type, 'select_name' => $site_post_type . '_id' ) ); ?><br /><br />
|
4668 |
-
<?php }
|
4669 |
-
}
|
4670 |
-
}
|
4671 |
-
?>
|
4672 |
-
<input type="checkbox" id="siteimportupdatesameurl" name="siteimportupdatesameurl" checked="checked" /> <?php _e( 'Update items when URL is identical', 'link-library' ); ?><br />
|
4673 |
-
|
4674 |
-
<?php global $wpdb;
|
4675 |
-
$linkcatquery = 'SELECT distinct t.name, t.term_id, t.slug as category_nicename, tt.description as category_description ';
|
4676 |
-
$linkcatquery .= 'FROM ' . $this->db_prefix() . 'terms t ';
|
4677 |
-
$linkcatquery .= 'LEFT JOIN ' . $this->db_prefix() . 'term_taxonomy tt ON (t.term_id = tt.term_id) ';
|
4678 |
-
$linkcatquery .= 'LEFT JOIN ' . $this->db_prefix() . 'term_relationships tr ON (tt.term_taxonomy_id = tr.term_taxonomy_id) ';
|
4679 |
-
|
4680 |
-
$linkcatquery .= 'WHERE tt.taxonomy = "link_category" ';
|
4681 |
-
|
4682 |
-
if ( !empty( $categorylist ) ) {
|
4683 |
-
$linkcatquery .= ' AND t.term_id in (' . $categorylist. ')';
|
4684 |
-
}
|
4685 |
-
|
4686 |
-
if ( !empty( $excludecategorylist ) ) {
|
4687 |
-
$linkcatquery .= ' AND t.term_id not in (' . $excludecategorylist . ')';
|
4688 |
-
}
|
4689 |
-
|
4690 |
-
$linkcatquery .= ' ORDER by t.name ASC';
|
4691 |
-
|
4692 |
-
$linkcats = $wpdb->get_results( $linkcatquery );
|
4693 |
-
|
4694 |
-
if ( $linkcats ) { ?>
|
4695 |
-
Category for new links <select name="siteimportcat" id="siteimportcat">
|
4696 |
-
<?php foreach ( $linkcats as $linkcat ) { ?>
|
4697 |
-
<option value="<?php echo $linkcat->term_id; ?>"><?php echo $linkcat->name; ?></option>
|
4698 |
-
<?php } ?>
|
4699 |
-
</select>
|
4700 |
-
<?php } ?>
|
4701 |
-
</td>
|
4702 |
-
<td><input type="submit" name="siteimport" value="<?php _e( 'Import Links from Site', 'link-library' ); ?>" /></td>
|
4703 |
-
</tr>
|
4704 |
-
</table>
|
4705 |
-
|
4706 |
-
<hr style='color: #CCC; ' />
|
4707 |
<input type='hidden' value='<?php echo $settings; ?>' name='settingsetid' id='settingsetid' />
|
4708 |
<table>
|
4709 |
<tr>
|
@@ -4737,9 +5232,7 @@ class link_library_plugin_admin {
|
|
4737 |
<tr>
|
4738 |
<td><?php _e( 'Delete links that return a 403 error', 'link-library' ); ?></td>
|
4739 |
<td>
|
4740 |
-
<input type="checkbox" id="recipcheckdelete403" name="recipcheckdelete403" <?php
|
4741 |
-
echo ' checked="checked" ';
|
4742 |
-
} ?>/></td>
|
4743 |
</tr>
|
4744 |
<tr>
|
4745 |
<td>
|
@@ -4764,116 +5257,37 @@ class link_library_plugin_admin {
|
|
4764 |
|
4765 |
|
4766 |
/************************************************ Render Custom Meta Box in Link Editor *******************************************/
|
4767 |
-
function ll_link_edit_extra( $link ) {
|
4768 |
-
global $wpdb;
|
4769 |
|
4770 |
-
|
4771 |
-
|
4772 |
-
if ( isset( $link->link_id ) && $link->link_id != '' ) {
|
4773 |
-
$link_updated_query = "select link_updated from " . $this->db_prefix() . "links where link_id = " . $link->link_id;
|
4774 |
-
$link_updated = $wpdb->get_var( $link_updated_query );
|
4775 |
-
|
4776 |
-
$linkextradataquery = "select * from " . $this->db_prefix() . "links_extrainfo where link_id = " . $link->link_id;
|
4777 |
-
$extradata = $wpdb->get_row( $linkextradataquery, ARRAY_A );
|
4778 |
-
|
4779 |
-
$extradata['link_second_url'] = stripslashes( $extradata['link_second_url'] );
|
4780 |
-
|
4781 |
-
if ( !isset( $extradata['link_visits'] ) || empty( $extradata['link_visits'] ) ) {
|
4782 |
-
$extradata['link_visits'] = 0;
|
4783 |
-
}
|
4784 |
|
4785 |
-
|
4786 |
-
$
|
4787 |
-
} else {
|
4788 |
-
$link_updated = current_time( 'mysql' );
|
4789 |
-
$extradata = array();
|
4790 |
-
$originaldata = array();
|
4791 |
}
|
4792 |
-
?>
|
4793 |
|
4794 |
-
|
4795 |
-
|
4796 |
-
|
4797 |
-
|
4798 |
-
|
4799 |
-
|
4800 |
-
|
4801 |
-
|
4802 |
-
|
4803 |
-
<td style='width: 200px'><?php _e( 'No Follow', 'link-library' ); ?></td>
|
4804 |
-
<td>
|
4805 |
-
<input type="checkbox" id="link_no_follow" name="link_no_follow" <?php ( isset( $extradata['link_no_follow'] ) ? checked( $extradata['link_no_follow'] ) : '' ); ?>/>
|
4806 |
-
</td>
|
4807 |
-
</tr>
|
4808 |
-
<tr>
|
4809 |
-
<td style='width: 200px'><?php _e( 'Updated Date', 'link-library' ); ?></td>
|
4810 |
-
<td>Set Manually
|
4811 |
-
<input type="checkbox" id="ll_updated_manual" name="ll_updated_manual" <?php if ( isset( $extradata['link_manual_updated'] ) && $extradata['link_manual_updated'] == 'Y' ) {
|
4812 |
-
echo ' checked="checked" ';
|
4813 |
-
} ?>/>
|
4814 |
-
<input type="text" <?php if ( !isset( $extradata['link_manual_updated'] ) || ( isset( $extradata['link_manual_updated'] ) && ( $extradata['link_manual_updated'] == 'N' || $extradata['link_manual_updated'] == '' ) ) ) {
|
4815 |
-
echo 'disabled="disabled"';
|
4816 |
-
} ?> id="ll_link_updated" name="ll_link_updated" size="80" value="<?php echo $link_updated; ?>" />
|
4817 |
-
</td>
|
4818 |
-
</tr>
|
4819 |
-
<tr>
|
4820 |
-
<td style='width: 200px'><?php _e( 'Secondary Web Address', 'link-library' ); ?></td>
|
4821 |
-
<td>
|
4822 |
-
<input type="text" id="ll_secondwebaddr" name="ll_secondwebaddr" size="80" value="<?php echo( isset( $extradata['link_second_url'] ) ? $extradata['link_second_url'] : '' ); ?>" /> <?php if ( isset( $extradata['link_second_url'] ) && $extradata['link_second_url'] != "" ) {
|
4823 |
-
echo " <a href=" . esc_html( $extradata['link_second_url'] ) . ">" . __( 'Visit', 'link-library' ) . "</a>";
|
4824 |
-
} ?></td>
|
4825 |
-
</tr>
|
4826 |
-
<tr>
|
4827 |
-
<td><?php _e( 'Telephone', 'link-library' ); ?></td>
|
4828 |
-
<td>
|
4829 |
-
<input type="text" id="ll_telephone" name="ll_telephone" size="80" value="<?php echo( isset( $extradata['link_telephone'] ) ? esc_attr( stripslashes( $extradata['link_telephone'] ) ) : '' ); ?>" />
|
4830 |
-
</td>
|
4831 |
-
</tr>
|
4832 |
-
<tr>
|
4833 |
-
<td><?php _e( 'E-mail', 'link-library' ); ?></td>
|
4834 |
-
<td>
|
4835 |
-
<input type="text" id="ll_email" name="ll_email" size="80" value="<?php echo( isset( $extradata['link_email'] ) ? esc_attr( stripslashes( $extradata['link_email'] ) ) : '' ); ?>" />
|
4836 |
-
</td>
|
4837 |
-
</tr>
|
4838 |
-
<tr>
|
4839 |
-
<td><?php _e( 'Reciprocal Link', 'link-library' ); ?></td>
|
4840 |
-
<td>
|
4841 |
-
<input type="text" id="ll_reciprocal" name="ll_reciprocal" size="80" value="<?php echo( isset( $extradata['link_reciprocal'] ) ? $extradata['link_reciprocal'] : '' ); ?>" /> <?php if ( isset( $extradata['link_reciprocal'] ) && $extradata['link_reciprocal'] != "" ) {
|
4842 |
-
echo " <a href=" . esc_url( stripslashes( $extradata['link_reciprocal'] ) ) . ">" . __( 'Visit', 'link-library' ) . "</a>";
|
4843 |
-
} ?></td>
|
4844 |
-
</tr>
|
4845 |
-
<tr>
|
4846 |
-
<td><?php _e( 'Number of link views', 'link-library' ); ?></td>
|
4847 |
-
<td>
|
4848 |
-
<input disabled type="text" id="ll_hits" name="ll_hits" size="80" value="<?php echo( isset( $extradata['link_visits'] ) ? esc_attr( $extradata['link_visits'] ) : '' ); ?>" />
|
4849 |
-
</td>
|
4850 |
-
</tr>
|
4851 |
-
<tr>
|
4852 |
-
<td><?php _e( 'Link Submitter', 'link-library' ); ?></td>
|
4853 |
-
<td>
|
4854 |
-
<input type="text" id="ll_submitter" name="ll_submitter" size="80" value="<?php echo( isset( $extradata['link_submitter'] ) ? esc_attr( stripslashes( $extradata['link_submitter'] ) ) : '' ); ?>" />
|
4855 |
-
</td>
|
4856 |
-
</tr>
|
4857 |
<tr>
|
4858 |
-
<td><?php _e( '
|
4859 |
-
<td>
|
4860 |
-
<input type="text" id="link_submitter_name" name="link_submitter_name" size="80" value="<?php echo( isset( $extradata['link_submitter_name'] ) ? esc_attr( stripslashes( $extradata['link_submitter_name'] ) ) : '' ); ?>" />
|
4861 |
-
</td>
|
4862 |
</tr>
|
4863 |
<tr>
|
4864 |
-
<td><?php _e( '
|
4865 |
-
<td>
|
4866 |
-
<input type="text" id="link_submitter_email" name="link_submitter_email" size="80" value="<?php echo( isset( $extradata['link_submitter_email'] ) ? esc_attr( stripslashes( $extradata['link_submitter_email'] ) ) : '' ); ?>" />
|
4867 |
-
</td>
|
4868 |
</tr>
|
4869 |
<tr>
|
4870 |
-
<td><?php _e( '
|
4871 |
-
<td>
|
4872 |
-
<input type="text" id="link_addl_rel" name="link_addl_rel" size="80" value="<?php echo( isset( $extradata['link_addl_rel'] ) ? esc_attr( stripslashes( $extradata['link_addl_rel'] ) ) : '' ); ?>" />
|
4873 |
-
</td>
|
4874 |
</tr>
|
4875 |
<tr>
|
4876 |
-
<td><?php _e( '
|
4877 |
<td>
|
4878 |
<?php
|
4879 |
$editorsettings = array( 'media_buttons' => false,
|
@@ -4881,22 +5295,49 @@ class link_library_plugin_admin {
|
|
4881 |
'textarea_name' => 'link_textfield',
|
4882 |
'wpautop' => false );
|
4883 |
|
4884 |
-
wp_editor( isset( $
|
4885 |
</td>
|
4886 |
</tr>
|
4887 |
<tr>
|
4888 |
-
<td><?php _e( '
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4889 |
<td>
|
4890 |
<div id='current_link_image'>
|
4891 |
-
<?php if ( isset( $
|
4892 |
-
<img id="actual_link_image" src="<?php echo $
|
4893 |
<?php else: ?>
|
4894 |
<span id="noimage"><?php _e( 'None Assigned', 'link-library' ); ?></span>
|
4895 |
<?php endif; ?>
|
4896 |
</div>
|
4897 |
</td>
|
4898 |
</tr>
|
4899 |
-
|
|
|
|
|
|
|
|
|
4900 |
<tr>
|
4901 |
<td><?php _e( 'Automatic Image Generation', 'link-library' ); ?></td>
|
4902 |
<td title="<?php if ( $genoptions['thumbnailgenerator'] == 'thumbshots' && empty( $genoptions['thumbshotscid'] ) ) {
|
@@ -4914,20 +5355,13 @@ class link_library_plugin_admin {
|
|
4914 |
<?php endif; ?>
|
4915 |
<?php if ( function_exists( 'wp_enqueue_media' ) ) { ?>
|
4916 |
<tr>
|
4917 |
-
<td><?php _e( '
|
4918 |
<td>
|
4919 |
<input type="button" class="upload_image_button" value="<?php _e( 'Launch Media Uploader', 'link-library' ); ?>">
|
4920 |
</td>
|
4921 |
</tr>
|
4922 |
-
|
4923 |
-
<td colspan='2'>
|
4924 |
-
<p><?php _e( 'Manual upload requires a wp-content\uploads directory to be present with write permissions', 'link-library' ); ?>.</p>
|
4925 |
-
</td>
|
4926 |
-
</tr>
|
4927 |
<?php } ?>
|
4928 |
-
</table>
|
4929 |
-
|
4930 |
-
<?php $genoptions = get_option( 'LinkLibraryGeneral' ); ?>
|
4931 |
|
4932 |
<script type="text/javascript">
|
4933 |
jQuery(document).ready(function () {
|
@@ -4969,7 +5403,6 @@ class link_library_plugin_admin {
|
|
4969 |
file_frame.open();
|
4970 |
});
|
4971 |
|
4972 |
-
|
4973 |
jQuery("#ll_updated_manual").click(function () {
|
4974 |
if (jQuery('#ll_updated_manual').is(':checked')) {
|
4975 |
jQuery('#ll_link_updated').attr('disabled', false);
|
@@ -4989,12 +5422,11 @@ class link_library_plugin_admin {
|
|
4989 |
.attr("encoding", "multipart/form-data")
|
4990 |
.attr( "accept-charset", "UTF-8" )
|
4991 |
;
|
4992 |
-
|
4993 |
jQuery('#genthumbs').click(function () {
|
4994 |
-
var linkname = jQuery('#
|
4995 |
var linkurl = jQuery('#link_url').val();
|
4996 |
|
4997 |
-
if (linkname != '' && linkurl != '') {
|
4998 |
jQuery('#current_link_image').fadeOut('fast');
|
4999 |
|
5000 |
jQuery.ajax({
|
@@ -5009,7 +5441,7 @@ class link_library_plugin_admin {
|
|
5009 |
cid : '<?php echo $genoptions['thumbshotscid']; ?>',
|
5010 |
filepath : 'link-library-images',
|
5011 |
filepathtype: 'absolute',
|
5012 |
-
linkid : <?php if( isset( $link->
|
5013 |
},
|
5014 |
success: function (data) {
|
5015 |
if (data != '') {
|
@@ -5027,7 +5459,7 @@ class link_library_plugin_admin {
|
|
5027 |
});
|
5028 |
|
5029 |
jQuery('#genfavicons').click(function () {
|
5030 |
-
var linkname = jQuery('#
|
5031 |
var linkurl = jQuery('#link_url').val();
|
5032 |
|
5033 |
if (linkname != '' && linkurl != '') {
|
@@ -5043,7 +5475,7 @@ class link_library_plugin_admin {
|
|
5043 |
mode : 'favicononly',
|
5044 |
filepath : 'link-library-favicons',
|
5045 |
filepathtype: 'absolute',
|
5046 |
-
linkid : <?php if( isset( $link->
|
5047 |
|
5048 |
|
5049 |
},
|
@@ -5064,242 +5496,474 @@ class link_library_plugin_admin {
|
|
5064 |
|
5065 |
});
|
5066 |
</script>
|
|
|
5067 |
|
5068 |
-
|
5069 |
-
|
5070 |
-
|
5071 |
-
|
5072 |
-
|
5073 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5074 |
|
5075 |
-
|
5076 |
|
5077 |
-
if (
|
|
|
|
|
|
|
5078 |
|
5079 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5080 |
|
5081 |
-
|
5082 |
-
|
5083 |
-
|
|
|
|
|
|
|
|
|
5084 |
}
|
5085 |
-
}
|
5086 |
-
|
5087 |
-
|
5088 |
|
5089 |
-
|
5090 |
-
|
5091 |
|
5092 |
-
|
|
|
5093 |
|
5094 |
-
if (
|
5095 |
-
$networkoptions['updatechannel'] = 'standard';
|
5096 |
-
}
|
5097 |
-
?>
|
5098 |
|
5099 |
-
|
5100 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
5101 |
|
5102 |
-
|
5103 |
-
|
5104 |
-
|
5105 |
-
|
5106 |
-
|
5107 |
-
|
5108 |
-
<td><select id="updatechannel" name="updatechannel">
|
5109 |
-
<option value="standard" <?php selected( $networkoptions['updatechannel'], 'standard' ); ?>><?php _e( 'Standard channel - Updates as they are released', 'link-library' ); ?>
|
5110 |
-
<option value="monthly" <?php selected( $networkoptions['updatechannel'], 'monthly' ); ?>><?php _e( 'Monthly Channel - Updates once per month', 'link-library' ); ?>
|
5111 |
-
</select></td>
|
5112 |
-
</tr>
|
5113 |
-
</table><br />
|
5114 |
-
<input type="submit" value="Submit" class="button-primary" />
|
5115 |
-
</form>
|
5116 |
-
</div>
|
5117 |
|
5118 |
-
|
|
|
|
|
|
|
|
|
|
|
5119 |
|
5120 |
-
|
5121 |
-
|
|
|
|
|
|
|
5122 |
|
5123 |
-
|
5124 |
-
|
|
|
|
|
|
|
|
|
5125 |
|
5126 |
-
$
|
|
|
|
|
|
|
|
|
|
|
5127 |
|
5128 |
-
$
|
|
|
|
|
|
|
|
|
|
|
5129 |
|
5130 |
-
|
5131 |
-
|
5132 |
-
|
|
|
5133 |
}
|
5134 |
-
|
5135 |
|
5136 |
-
|
5137 |
-
|
5138 |
-
|
5139 |
-
$
|
5140 |
-
$file_path = $parseaddress['path'] . "/link-library-images/" . $link_id . ".png";
|
5141 |
}
|
|
|
5142 |
|
5143 |
-
|
5144 |
-
|
|
|
|
|
5145 |
} else {
|
5146 |
-
$
|
5147 |
}
|
|
|
|
|
|
|
|
|
5148 |
} else {
|
5149 |
-
$
|
5150 |
}
|
5151 |
|
5152 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5153 |
|
5154 |
-
if (
|
5155 |
-
|
5156 |
-
} elseif ( !isset( $_POST['ll_link_updated'] ) ) {
|
5157 |
-
$link_updated = current_time( 'mysql' );
|
5158 |
}
|
5159 |
|
5160 |
-
|
5161 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5162 |
} else {
|
5163 |
-
|
5164 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5165 |
|
5166 |
-
|
|
|
|
|
5167 |
|
5168 |
-
|
5169 |
-
|
5170 |
-
|
5171 |
-
$current_user = wp_get_current_user();
|
5172 |
|
5173 |
-
|
|
|
|
|
|
|
5174 |
|
5175 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5176 |
|
5177 |
-
|
5178 |
-
|
5179 |
-
} else {
|
5180 |
-
$updatearray['link_manual_updated'] = 'N';
|
5181 |
-
}
|
5182 |
|
5183 |
-
|
5184 |
-
|
5185 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5186 |
|
5187 |
-
|
5188 |
-
|
5189 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5190 |
|
5191 |
-
if ( isset( $_POST['ll_email'] ) ) {
|
5192 |
-
$updatearray['link_email'] = $_POST['ll_email'];
|
5193 |
-
}
|
5194 |
|
5195 |
-
if ( isset( $_POST['ll_reciprocal'] ) ) {
|
5196 |
-
$updatearray['link_reciprocal'] = $_POST['ll_reciprocal'];
|
5197 |
-
}
|
5198 |
|
5199 |
-
|
5200 |
-
|
5201 |
-
|
5202 |
|
5203 |
-
|
5204 |
-
$updatearray['link_submitter'] = $_POST['ll_submitter'];
|
5205 |
-
}
|
5206 |
|
5207 |
-
|
5208 |
-
$updatearray['link_submitter_name'] = $_POST['link_submitter_name'];
|
5209 |
-
}
|
5210 |
|
5211 |
-
|
5212 |
-
$updatearray['link_submitter_email'] = $_POST['link_submitter_email'];
|
5213 |
-
}
|
5214 |
|
5215 |
-
|
5216 |
-
$
|
|
|
|
|
5217 |
}
|
5218 |
|
5219 |
-
|
5220 |
-
$updatearray['link_no_follow'] = true;
|
5221 |
-
} else {
|
5222 |
-
$updatearray['link_no_follow'] = false;
|
5223 |
-
}
|
5224 |
|
5225 |
-
|
5226 |
-
|
5227 |
-
} else {
|
5228 |
-
$updatearray['link_featured'] = false;
|
5229 |
-
}
|
5230 |
|
5231 |
-
|
5232 |
-
|
5233 |
-
|
5234 |
-
|
5235 |
-
$updatearray['link_submitter'] = $username;
|
5236 |
-
$wpdb->insert( $extradatatable, $updatearray );
|
5237 |
-
}
|
5238 |
}
|
5239 |
-
|
5240 |
|
5241 |
-
|
5242 |
-
|
5243 |
-
global $wpdb;
|
5244 |
|
5245 |
-
|
5246 |
-
|
5247 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5248 |
|
5249 |
-
|
5250 |
-
function ll_linkmanager_addcolumn( $columns ) {
|
5251 |
-
$columns['hits'] = 'Hits';
|
5252 |
|
5253 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5254 |
}
|
5255 |
|
5256 |
-
function
|
5257 |
-
|
5258 |
|
5259 |
-
|
5260 |
-
|
5261 |
-
|
5262 |
-
$extradata = $wpdb->get_row( $linkextradataquery, ARRAY_A );
|
5263 |
-
$hits = $extradata['link_visits'];
|
5264 |
-
if ( $hits == '' ) {
|
5265 |
-
$hits = 0;
|
5266 |
-
}
|
5267 |
-
echo $hits;
|
5268 |
-
break;
|
5269 |
}
|
5270 |
}
|
5271 |
|
5272 |
function link_library_duplicate_link_checker( $ll_admin_class ) {
|
5273 |
-
global $wpdb;
|
5274 |
echo "<strong>" . __( 'Duplicate Link Checker Report', 'link-library' ) . "</strong><br /><br />";
|
5275 |
|
5276 |
echo "<strong>" . __( 'Duplicate URLs', 'link-library' ) . "</strong><br /><br />";
|
5277 |
-
$linkquery = "SELECT
|
5278 |
-
$linkquery .= "(SELECT trim( TRAILING '/' FROM
|
5279 |
-
$linkquery .= "FROM
|
5280 |
-
$linkquery .= "ON
|
|
|
5281 |
|
5282 |
$links = $wpdb->get_results( $linkquery );
|
5283 |
|
5284 |
if ( $links ) {
|
5285 |
foreach ( $links as $link ) {
|
5286 |
-
echo $link->
|
5287 |
}
|
5288 |
} else {
|
5289 |
echo 'No duplicate URL links found';
|
5290 |
}
|
5291 |
|
5292 |
echo "<br /><br /><strong>" . __( 'Duplicate Names', 'link-library' ) . "</strong><br /><br />";
|
5293 |
-
|
5294 |
-
$linkquery
|
5295 |
-
$linkquery .= "
|
5296 |
-
$linkquery .= "
|
|
|
|
|
5297 |
|
5298 |
$links = $wpdb->get_results( $linkquery );
|
5299 |
|
5300 |
if ( $links ) {
|
5301 |
foreach ( $links as $link ) {
|
5302 |
-
echo $link->
|
5303 |
}
|
5304 |
} else {
|
5305 |
echo 'No duplicate name links found';
|
@@ -5309,45 +5973,48 @@ class link_library_plugin_admin {
|
|
5309 |
}
|
5310 |
}
|
5311 |
|
5312 |
-
function link_library_reciprocal_link_checker(
|
5313 |
-
|
5314 |
-
|
|
|
|
|
5315 |
|
5316 |
if ( ! empty( $RecipCheckAddress ) || ( empty( $RecipCheckAddress ) && 'reciprocal' != $check_type ) ) {
|
5317 |
-
$
|
5318 |
-
|
5319 |
-
|
5320 |
-
|
5321 |
-
|
5322 |
-
|
5323 |
-
|
|
|
|
|
|
|
5324 |
|
5325 |
if ( 'reciprocal' == $check_type ) {
|
5326 |
-
$
|
|
|
5327 |
} elseif ( 'broken' == $check_type ) {
|
5328 |
-
$
|
5329 |
}
|
5330 |
|
5331 |
-
$
|
5332 |
|
5333 |
-
|
5334 |
-
|
5335 |
-
|
5336 |
-
} elseif ( 'broken' == $check_type ) {
|
5337 |
-
echo "<strong>" . __( 'Broken Link Checker Report', 'link-library' ) . "</strong><br /><br />";
|
5338 |
-
}
|
5339 |
|
5340 |
-
if ( $links ) {
|
5341 |
-
foreach ( $links as $link ) {
|
5342 |
global $my_link_library_plugin;
|
|
|
5343 |
|
5344 |
if ( 'reciprocal' == $check_type ) {
|
5345 |
-
$
|
|
|
5346 |
} elseif ( 'broken' == $check_type ) {
|
5347 |
-
$reciprocal_result = $my_link_library_plugin->CheckReciprocalLink( $RecipCheckAddress, $
|
5348 |
}
|
5349 |
|
5350 |
-
echo '<a href="' . $
|
5351 |
|
5352 |
if ( 'reciprocal' == $check_type && $reciprocal_result == 'exists_notfound' ) {
|
5353 |
echo '<span style="color: #FF0000">' . __( 'Not Found', 'link-library' ) . '</span><br />';
|
@@ -5356,7 +6023,7 @@ function link_library_reciprocal_link_checker( $ll_admin_class, $RecipCheckAddre
|
|
5356 |
} elseif ( 'broken' == $check_type && strpos( $reciprocal_result, 'exists' ) !== false ) {
|
5357 |
echo '<span style="color: #00FF00">' . __( 'Link valid', 'link-library' ) . '</span><br />';
|
5358 |
} elseif ( $reciprocal_result == 'error_403' && $recipcheckdelete403 == true ) {
|
5359 |
-
|
5360 |
echo '<span style="color: #FF0000">' . __( 'Error 403: Link Deleted', 'link-library' ) . '</span><br />';
|
5361 |
} elseif ( $reciprocal_result == 'error_403' && $recipcheckdelete403 == false ) {
|
5362 |
echo '<span style="color: #FF0000">' . __( 'Error 403', 'link-library' ) . '</span><br />';
|
@@ -5364,11 +6031,20 @@ function link_library_reciprocal_link_checker( $ll_admin_class, $RecipCheckAddre
|
|
5364 |
echo '<span style="color: #FF0000">' . __( 'Website Unreachable', 'link-library' ) . '</span><br />';
|
5365 |
}
|
5366 |
}
|
|
|
|
|
5367 |
} else {
|
5368 |
-
|
|
|
|
|
|
|
|
|
|
|
5369 |
}
|
5370 |
-
}
|
5371 |
|
|
|
|
|
|
|
5372 |
}
|
5373 |
|
5374 |
function link_library_render_editor_button() {
|
4 |
exit;
|
5 |
} // Exit if accessed directly
|
6 |
|
7 |
+
define( 'LINK_LIBRARY_ADMIN_PAGE_NAME', 'edit.php?post_type=link_library_links' );
|
8 |
|
9 |
require_once( ABSPATH . '/wp-admin/includes/bookmark.php' );
|
10 |
require_once( ABSPATH . '/wp-admin/includes/taxonomy.php' );
|
11 |
|
12 |
$rss_settings = '';
|
|
|
13 |
$pagehookmoderate = '';
|
14 |
$pagehooksettingssets = '';
|
15 |
$pagehookstylesheet = '';
|
29 |
add_action( 'network_admin_menu', array( $this, 'network_settings_menu' ) );
|
30 |
}
|
31 |
|
|
|
|
|
|
|
|
|
|
|
32 |
add_action( 'wp_dashboard_setup', array( $this, 'dashboard_widget' ) );
|
33 |
|
34 |
add_filter( 'plugin_row_meta', array( $this, 'set_plugin_row_meta' ), 1, 2 );
|
37 |
|
38 |
add_action( 'admin_head', array( $this, 'admin_header' ) );
|
39 |
|
40 |
+
add_action( 'add_meta_boxes', array( $this, 'll_make_wp_editor_movable' ), 0 );
|
41 |
+
add_action( 'save_post', array( $this, 'll_save_link_fields' ), 10, 2 );
|
42 |
+
add_filter( 'manage_edit-link_library_links_columns', array( $this, 'll_add_columns' ) );
|
43 |
+
add_action( 'manage_posts_custom_column', array( $this, 'll_populate_columns' ) );
|
44 |
+
add_filter( 'manage_edit-link_library_links_sortable_columns', array( $this, 'll_column_sortable' ) );
|
45 |
+
add_filter( 'request', array( $this, 'll_column_ordering' ) );
|
46 |
+
add_action( 'pre_get_posts', array( $this, 'll_custom_post_order' ) );
|
47 |
+
add_action( 'quick_edit_custom_box', array( $this, 'll_display_custom_quickedit_link' ), 10, 2 );
|
48 |
|
49 |
+
add_action( 'link_library_category_edit_form_fields', array( $this, 'll_link_library_category_new_fields' ), 10, 2 );
|
50 |
+
add_action( 'link_library_category_add_form_fields', array( $this, 'll_link_library_category_new_fields' ), 10, 2 );
|
51 |
|
52 |
+
add_action( 'edited_link_library_category', array( $this, 'll_save_link_library_category_new_fields' ), 10, 2 );
|
53 |
+
add_action( 'created_link_library_category', array( $this, 'll_save_link_library_category_new_fields' ), 10, 2 );
|
|
|
|
|
|
|
|
|
54 |
|
55 |
+
add_action( 'admin_enqueue_scripts', array( $this, 'admin_scripts' ), 99 );
|
56 |
|
57 |
+
add_action( 'restrict_manage_posts', array( $this, 'll_link_cat_filter_list' ) );
|
58 |
+
|
59 |
+
add_filter( 'parse_query', array( $this, 'll_perform_link_cat_filtering' ) );
|
60 |
+
|
61 |
+
add_filter( 'manage_edit-link_library_category_columns', array( $this, 'll_category_custom_column_header' ), 10);
|
62 |
+
add_filter( 'manage_link_library_category_custom_column', array( $this, 'll_add_category_id' ), 10, 3 );
|
63 |
|
64 |
if ( $this->is_edit_page() ) {
|
|
|
65 |
add_action( 'media_buttons', 'link_library_render_editor_button', 20 );
|
66 |
add_action( 'admin_footer', array( $this, 'render_modal' ) );
|
67 |
}
|
68 |
+
|
69 |
+
add_action( 'wp_ajax_link_library_recipbrokencheck', 'link_library_reciprocal_link_checker' );
|
70 |
}
|
71 |
|
72 |
function is_edit_page( $new_edit = null ) {
|
81 |
} elseif ( 'new' == $new_edit ) { //check for new post page
|
82 |
return in_array( $pagenow, array( 'post-new.php' ) );
|
83 |
} else { //check for either new or edit
|
84 |
+
if ( isset( $_GET['post_type'] ) && 'link_library_links' != $_GET['post_type'] ) {
|
85 |
+
return in_array( $pagenow, array( 'post.php', 'post-new.php' ) );
|
86 |
+
} else {
|
87 |
+
return false;
|
88 |
+
}
|
89 |
}
|
90 |
}
|
91 |
|
92 |
+
public function admin_scripts( $hook ) {
|
93 |
wp_enqueue_script( 'linklibrary-shortcodes-embed', plugins_url( "js/linklibrary-shortcode-embed.js", __FILE__ ), array( 'jquery' ), '', true );
|
94 |
+
wp_enqueue_style( 'linklibraryadminstyle', plugins_url( 'adminstyle.css', __FILE__ ) );
|
95 |
+
|
96 |
+
if ( 'edit.php' === $hook && isset( $_GET['post_type'] ) && 'link_library_links' === $_GET['post_type'] ) {
|
97 |
+
wp_enqueue_script( 'll_quick_edit', plugins_url('js/ll_admin_edit.js', __FILE__), false, null, true );
|
98 |
+
}
|
99 |
}
|
100 |
|
101 |
public function render_modal() {
|
122 |
<label for="linklibrary_link-library_libraryid"><?php _e( 'Library ID', 'link-library' ); ?></label>
|
123 |
<br/>
|
124 |
<select class="linklibrary_settings select" id="linklibrary_settings" name="settings" data-slug="settings" data-shortcode="settings" />
|
125 |
+
<?php if ( empty( $genoptions['numberstylesets'] ) ) {
|
126 |
$numberofsets = 1;
|
127 |
} else {
|
128 |
$numberofsets = $genoptions['numberstylesets'];
|
177 |
<label for="linklibrary_link-library_libraryid"><?php _e( 'Library ID', 'link-library' ); ?></label>
|
178 |
<br/>
|
179 |
<select class="linklibrary_settings select" id="linklibrary_settings" name="settings" data-slug="settings" data-shortcode="settings" />
|
180 |
+
<?php if ( empty( $genoptions['numberstylesets'] ) ) {
|
181 |
$numberofsets = 1;
|
182 |
} else {
|
183 |
$numberofsets = $genoptions['numberstylesets'];
|
212 |
<label for="linklibrary_link-library_libraryid"><?php _e( 'Library ID', 'link-library' ); ?></label>
|
213 |
<br/>
|
214 |
<select class="linklibrary_settings select" id="linklibrary_settings" name="settings" data-slug="settings" data-shortcode="settings" />
|
215 |
+
<?php if ( empty( $genoptions['numberstylesets'] ) ) {
|
216 |
$numberofsets = 1;
|
217 |
} else {
|
218 |
$numberofsets = $genoptions['numberstylesets'];
|
244 |
<?php
|
245 |
}
|
246 |
|
247 |
+
function ll_link_library_category_new_fields( $tag ) {
|
248 |
|
249 |
$caturl = '';
|
250 |
$cat_extra_query_string = '';
|
251 |
|
252 |
if ( is_object( $tag ) ) {
|
253 |
$mode = "edit";
|
254 |
+
$caturl = get_term_meta( $tag->term_id, 'linkcaturl', true );
|
255 |
+
$cat_extra_query_string = get_term_meta( $tag->term_id, 'linkextraquerystring', true );
|
256 |
} else {
|
257 |
$mode = 'new';
|
258 |
}
|
318 |
}
|
319 |
}
|
320 |
|
321 |
+
function ll_save_link_library_category_new_fields( $term_id, $tt_id ) {
|
322 |
|
323 |
if ( !$term_id ) {
|
324 |
return;
|
325 |
}
|
326 |
|
327 |
if ( isset( $_POST['ll_category_url'] ) ) {
|
328 |
+
update_term_meta( $term_id, 'linkcaturl', $_POST['ll_category_url'] );
|
329 |
}
|
330 |
|
331 |
if ( isset( $_POST['cat_extra_query_string'] ) ) {
|
332 |
+
update_term_meta( $term_id, 'linkextraquerystring', $_POST['cat_extra_query_string'] );
|
333 |
}
|
334 |
}
|
335 |
|
341 |
}
|
342 |
}
|
343 |
|
344 |
+
if ( isset( $_GET['page'] ) && ( ( $_GET['page'] == 'link-library-general-options' ) || $_GET['page'] == 'link-library-settingssets' || $_GET['page'] == 'link-library-moderate' || $_GET['page'] == 'link-library-stylesheet' || $_GET['page'] == 'link-library-reciprocal' ) ) {
|
345 |
wp_enqueue_style( 'LibraryLibraryAdminStyle', plugins_url( 'link-library-admin.css', __FILE__ ) );
|
346 |
}
|
347 |
}
|
357 |
}
|
358 |
|
359 |
function db_prefix() {
|
360 |
+
global $wpdb; // Kept with CPT update
|
361 |
if ( method_exists( $wpdb, "get_blog_prefix" ) ) {
|
362 |
return $wpdb->get_blog_prefix();
|
363 |
} else {
|
415 |
|
416 |
if ( $status !== false ) {
|
417 |
if ( $filepathtype == 'absolute' || empty( $filepathtype ) ) {
|
418 |
+
$newimagedata = $uploads['baseurl'] . "/" . $filepath . "/" . $linkid . ".png";
|
419 |
} elseif ( $filepathtype == 'relative' ) {
|
420 |
$parsedaddress = parse_url( $uploads['baseurl'] );
|
421 |
+
$newimagedata = $parsedaddress['path'] . "/" . $filepath . "/" . $linkid . ".png";
|
422 |
}
|
423 |
|
424 |
if ( $mode == 'thumb' || $mode == 'favicon' ) {
|
425 |
+
update_post_meta( $linkid, 'link_image', $newimagedata );
|
426 |
}
|
427 |
|
428 |
+
return $newimagedata;
|
429 |
} else {
|
430 |
return "";
|
431 |
}
|
451 |
exit();
|
452 |
}
|
453 |
|
|
|
|
|
|
|
454 |
//register the callback been used if options of page been submitted and needs to be processed
|
455 |
add_action( 'admin_post_save_link_library_general', array( $this, 'on_save_changes_general' ) );
|
456 |
add_action( 'admin_post_save_link_library_settingssets', array( $this, 'on_save_changes_settingssets' ) );
|
458 |
add_action( 'admin_post_save_link_library_stylesheet', array( $this, 'on_save_changes_stylesheet' ) );
|
459 |
add_action( 'admin_post_save_link_library_reciprocal', array( $this, 'on_save_changes_reciprocal' ) );
|
460 |
|
461 |
+
$catnames = get_terms( 'link_library_category', array( 'hide_empty' => false ) );
|
|
|
|
|
|
|
462 |
|
463 |
+
if ( empty( $catnames ) ) {
|
464 |
+
add_action( 'admin_notices', array( $this, 'll_missing_categories' ) );
|
465 |
+
}
|
466 |
|
467 |
$genoptions = get_option( 'LinkLibraryGeneral' );
|
468 |
$genoptions = wp_parse_args( $genoptions, ll_reset_gen_settings( 'return' ) );
|
469 |
extract( $genoptions );
|
470 |
|
|
|
|
|
|
|
|
|
|
|
471 |
if ( !empty( $genoptions ) ) {
|
472 |
if ( empty( $numberstylesets ) ) {
|
473 |
$numberofsets = 1;
|
486 |
}
|
487 |
}
|
488 |
|
489 |
+
if ( $thumbshotsactive && empty( $genoptions['thumbshotscid'] ) && $genoptions['thumbnailgenerator'] == 'thumbshots' ) {
|
490 |
add_action( 'admin_notices', array( $this, 'll_thumbshots_warning' ) );
|
491 |
}
|
492 |
|
493 |
+
if ( ( !isset( $genoptions['ll_60_welcome'] ) || !$genoptions['ll_60_welcome'] ) && !isset( $_GET['dismiss_ll_60_welcome'] ) ) {
|
494 |
+
add_action( 'admin_notices', array( $this, 'll_60_welcome' ) );
|
495 |
+
} elseif ( ( !isset( $genoptions['ll_60_welcome'] ) || !$genoptions['ll_60_welcome'] ) && isset( $_GET['dismiss_ll_60_welcome'] ) ) {
|
496 |
+
$genoptions['ll_60_welcome'] = true;
|
497 |
update_option( 'LinkLibraryGeneral', $genoptions );
|
498 |
}
|
499 |
}
|
|
|
500 |
|
501 |
+
global $typenow;
|
502 |
|
503 |
+
if ($typenow === 'link_library_links') {
|
504 |
+
add_filter('posts_search', 'll_expand_posts_search', 10, 2);
|
505 |
+
}
|
506 |
+
}
|
|
|
507 |
|
508 |
+
function ll_add_category_id( $content, $column_name, $term_id ){
|
509 |
+
$content = $term_id;
|
510 |
+
return $content;
|
511 |
}
|
512 |
|
513 |
+
function ll_category_custom_column_header( $columns ){
|
514 |
+
$columns = array_merge( array_slice( $columns, 0, 2 ),
|
515 |
+
array( 'taxonomy_id' => 'Category ID' ),
|
516 |
+
array_slice( $columns, 2 ) );
|
517 |
+
return $columns;
|
|
|
518 |
}
|
519 |
|
|
|
520 |
|
521 |
+
function ll_make_wp_editor_movable() {
|
522 |
+
add_meta_box( 'linklibrary_basic_meta_box', __( 'Basic Details', 'link-library' ), array( $this, 'll_link_basic_info' ), 'link_library_links', 'normal', 'high' );
|
523 |
+
|
524 |
+
add_meta_box( 'linklibrary_image_meta_box', __( 'Image', 'link-library' ), array( $this, 'll_link_image_info' ), 'link_library_links', 'normal', 'high' );
|
525 |
+
|
526 |
+
global $_wp_post_type_features;
|
527 |
+
if ( isset( $_wp_post_type_features['link_library_links']['editor'] ) && $_wp_post_type_features['link_library_links']['editor'] ) {
|
528 |
+
unset( $_wp_post_type_features['link_library_links']['editor'] );
|
529 |
+
add_meta_box( 'link_library_fullpage_editor', __( 'Full-Page Content', 'link-library' ), array( $this, 'll_inner_custom_box' ), 'link_library_links', 'normal', 'high' );
|
530 |
}
|
531 |
|
532 |
+
add_meta_box( 'linklibrary_meta_box', __( 'Additional Parameters', 'link-library' ), array( $this, 'll_link_edit_extra' ), 'link_library_links', 'normal', 'high' );
|
533 |
}
|
534 |
|
535 |
+
function ll_inner_custom_box( $post ) {
|
536 |
+
$editor_config = array( 'textarea_rows' => 8 );
|
537 |
+
wp_editor( $post->post_content, 'content', $editor_config );
|
538 |
+
}
|
539 |
|
540 |
function ll_thumbshots_warning() {
|
541 |
echo "
|
542 |
<div id='ll-warning' class='updated fade'><p><strong>" . __( 'Link Library: Missing Thumbshots API Key', 'link-library' ) . "</strong></p> <p>" . __( 'One of your link libraries is configured to use Thumbshots for link thumbails, but you have not entered your Thumbshots.com API Key. Please visit Thumbshots.com to apply for a free or paid account and enter your API in the Link Library admin panel.', 'link-library' ) . " <a href='" . esc_url( add_query_arg( array( 'page' => 'link-library' ), admin_url( 'admin.php' ) ) ) . "'>" . __( 'Jump to Link Library admin', 'link-library' ) . "</a></p></div>";
|
543 |
}
|
544 |
|
545 |
+
function ll_60_welcome() {
|
546 |
echo "
|
547 |
+
<div id='ll-warning' class='updated fade'><p><strong>" . __( 'Welcome to Link Library 6.0', 'link-library' ) . "</strong></p> <p>" . __( 'After many months of beta testing, Link Library 6.0 has finally been released. I hope you will appreciate the new version. If you run into any issues, please use the official plugin forum to ask questions. If you have major issues that prevents your site from working correctly, you can revert back to the previous version until a solution for your issue is available. A link to the previous version is provided below. Here are some of the most commonly asked questions after the upgrade:<br /><br /><strong>FAQ</strong><br /><br />Q: My links have been duplicated one or more times. My links no longer have categories assigned to them.<br />A: Go to the <strong>General Options</strong> section of Link Library and press the <strong>Re-import links</strong> button<br /><br />Q: I can see my links in admin, but they no longer appear on site.<br />A: You are probably using some options with your <strong>[link-library]</strong> shortcode to determine which categories will be displayed. The category IDs have changed when your links were imported into the new version of Link Library. You will need to get the new IDs from the <strong>Categories</strong> page and update your shortcodes.<br /><br />Q: Where did my Links widget go?!?<br />A: The Links widget that you were using was actually not part of Link Library, but part of the core WordPress Link Manager, which Link Library was previously based on. As such, Link Library is no longer compatible with that widget. To create a widget displaying links, you can use the new Link Library widget and select one of your library configurations. If you need your links in the widget to look different from your main list of links, go to General Options to increase your number of libraries, then configure your new library and select it in the widget configuration.', 'link-library' ) . "<br /><br /><a target='_blank' href='https://wordpress.org/support/plugin/link-library'>" . __( 'Link Library Support Forum', 'link-library' ) . "</a><br /><a target='_blank' href='https://downloads.wordpress.org/plugin/link-library.LinkLibrary_5.9.15.8.zip'>" . __( 'Download previous version of Link Library', 'link-library' ) . "</a><br /><br /><a class='button' href='" . esc_url( add_query_arg( array( 'post_type' => 'link_library_links', 'dismiss_ll_60_welcome' => 1 ), admin_url( 'edit.php' ) ) ) . "'>Dismiss this message</a></p></div>";
|
548 |
}
|
549 |
|
550 |
function ll_missing_categories() {
|
593 |
}
|
594 |
|
595 |
function render_dashboard_widget() {
|
|
|
|
|
596 |
$linkmoderatecount = 0;
|
597 |
+
$pendinglinksargs = array( 'post_type' => 'link_library_links', 'post_status' => 'pending' );
|
598 |
+
$pending_links_query = new WP_Query( $pendinglinksargs );
|
599 |
|
600 |
+
if ( !empty( $pending_links_query ) ) {
|
601 |
+
$linkmoderatecount = $pending_links_query->found_posts;
|
602 |
+
}
|
603 |
+
wp_reset_postdata();
|
|
|
|
|
604 |
|
605 |
echo '<strong>' . $linkmoderatecount . '</strong> ';
|
606 |
_e( 'Links to moderate', 'link-library' );
|
610 |
//extend the admin menu
|
611 |
function on_admin_menu() {
|
612 |
//add our own option page, you can also add it to different sections or use your own one
|
613 |
+
global $pagehookmoderate, $pagehooksettingssets, $pagehookstylesheet, $pagehookreciprocal;
|
614 |
|
615 |
$genoptions = get_option( 'LinkLibraryGeneral' );
|
616 |
$genoptions = wp_parse_args( $genoptions, ll_reset_gen_settings( 'return' ) );
|
643 |
|
644 |
$linkmoderatecount = 0;
|
645 |
|
646 |
+
$args = array(
|
647 |
+
'numberposts' => -1,
|
648 |
+
'post_type' => 'link_library_links',
|
649 |
+
'post_status' => array( 'pending' )
|
650 |
+
);
|
651 |
+
$linkmoderatecount = count( get_posts( $args ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
652 |
|
653 |
+
$pagehookgeneraloptions = add_submenu_page( LINK_LIBRARY_ADMIN_PAGE_NAME, 'Link Library - ' . __( 'Global Options', 'link-library' ), __( 'Global Options', 'link-library' ), $admin_capability, 'link-library-general-options', array( $this, 'on_show_page' ) );
|
654 |
|
655 |
+
$pagehooksettingssets = add_submenu_page( LINK_LIBRARY_ADMIN_PAGE_NAME, 'Link Library - ' . __( 'Configurations', 'link-library' ), __( 'Library Configurations', 'link-library' ), $admin_capability, 'link-library-settingssets', array( $this, 'on_show_page' ) );
|
656 |
|
657 |
if ( $linkmoderatecount == 0 ) {
|
658 |
$pagehookmoderate = add_submenu_page( LINK_LIBRARY_ADMIN_PAGE_NAME, 'Link Library - ' . __( 'Moderate', 'link-library' ), __( 'Moderate', 'link-library' ), $admin_capability, 'link-library-moderate', array( $this, 'on_show_page' ) );
|
664 |
|
665 |
$pagehookreciprocal = add_submenu_page( LINK_LIBRARY_ADMIN_PAGE_NAME, 'Link Library - ' . __( 'Link checking tools', 'link-library' ), __( 'Link checking tools', 'link-library' ), $admin_capability, 'link-library-reciprocal', array( $this, 'on_show_page' ) );
|
666 |
|
667 |
+
add_submenu_page( LINK_LIBRARY_ADMIN_PAGE_NAME, 'Link Library - ' . __( 'FAQ', 'link-library' ), __( 'FAQ', 'link-library' ), $admin_capability, 'link-library-faq', array( $this, 'on_show_page' ) );
|
668 |
|
669 |
//register callback gets call prior your own page gets rendered
|
|
|
670 |
add_action( 'load-' . $pagehooksettingssets, array( $this, 'on_load_page' ) );
|
671 |
add_action( 'load-' . $pagehookmoderate, array( $this, 'on_load_page' ) );
|
672 |
add_action( 'load-' . $pagehookstylesheet, array( $this, 'on_load_page' ) );
|
676 |
//will be executed if wordpress core detects this page has to be rendered
|
677 |
function on_load_page() {
|
678 |
|
679 |
+
global $pagehookmoderate, $pagehooksettingssets, $pagehookstylesheet, $pagehookreciprocal;
|
680 |
|
681 |
//ensure, that the needed javascripts been loaded to allow drag/drop, expand/collapse and hide/show of boxes
|
682 |
wp_enqueue_script( 'tiptip', plugins_url( '/tiptip/jquery.tipTip.minified.js', __FILE__ ), "jQuery", "1.0rc3" );
|
690 |
$genoptions = get_option( 'LinkLibraryGeneral' );
|
691 |
|
692 |
//add several metaboxes now, all metaboxes registered during load page can be switched off/on at "Screen Options" automatically, nothing special to do therefore
|
|
|
693 |
add_meta_box( 'linklibrary_moderation_meta_box', __( 'Links awaiting moderation', 'link-library' ), array( $this, 'moderate_meta_box' ), $pagehookmoderate, 'normal', 'high' );
|
694 |
add_meta_box( 'linklibrary_stylesheet_meta_box', __( 'Editor', 'link-library' ), array( $this, 'stylesheet_meta_box' ), $pagehookstylesheet, 'normal', 'high' );
|
695 |
add_meta_box( 'linklibrary_reciprocal_meta_box', __( 'Link checking tools', 'link-library' ), array( $this, 'reciprocal_meta_box' ), $pagehookreciprocal, 'normal', 'high' );
|
727 |
|
728 |
// Retrieve general options
|
729 |
$genoptions = get_option( 'LinkLibraryGeneral' );
|
730 |
+
$genoptions = wp_parse_args( $genoptions, ll_reset_gen_settings( 'return' ) );
|
731 |
|
732 |
// If general options don't exist, create them
|
733 |
if ( $genoptions == false ) {
|
734 |
$genoptions = ll_reset_gen_settings( 'return_and_set' );
|
|
|
|
|
735 |
}
|
736 |
|
737 |
$settingsname = 'LinkLibraryPP' . $settings;
|
743 |
}
|
744 |
|
745 |
if ( isset( $_GET['genthumbs'] ) || isset( $_GET['genfavicons'] ) || isset( $_GET['genthumbsingle'] ) || isset( $_GET['genfaviconsingle'] ) ) {
|
|
|
|
|
746 |
if ( isset( $_GET['genthumbs'] ) || isset( $_GET['genthumbsingle'] ) ) {
|
747 |
$filepath = "link-library-images";
|
748 |
} elseif ( isset( $_GET['genfavicons'] ) || isset( $_GET['genfaviconsingle'] ) ) {
|
766 |
$genmode = 'favicon';
|
767 |
}
|
768 |
|
769 |
+
$link_query_args = array( 'post_type' => 'link_library_links', 'posts_per_page' => -1, 'post_status' => array( 'publish', 'pending', 'draft', 'future', 'private' ) );
|
770 |
+
|
771 |
+
if ( $options['categorylist_cpt'] != "" && !isset( $_GET['genthumbsingle'] ) && !isset( $_GET['genfaviconsingle'] ) ) {
|
772 |
+
$link_query_args['tax_query'] = array(
|
773 |
+
array( 'taxonomy' => 'link_library_category',
|
774 |
+
'field' => 'term-id',
|
775 |
+
'terms' => $options['categorylist_cpt'],
|
776 |
+
'operator' => 'IN' )
|
777 |
+
);
|
778 |
+
} else if ( isset( $_GET['genthumbsingle'] ) || isset( $_GET['genfaviconsingle'] ) ) {
|
779 |
+
$link_query_args['p'] = intval( $_GET['linkid'] );
|
|
|
|
|
780 |
}
|
781 |
|
782 |
+
$the_link_query = new WP_Query( $link_query_args );
|
783 |
|
784 |
+
if ( $the_link_query->have_posts() ) {
|
785 |
$filescreated = 0;
|
786 |
+
$totallinks = $the_link_query->found_posts;
|
787 |
+
|
788 |
+
while ( $the_link_query->have_posts() ) {
|
789 |
+
$the_link_query->the_post();
|
790 |
+
|
791 |
+
$link_url = get_post_meta( get_the_ID(), 'link_url', true );
|
792 |
+
$link_image = get_post_meta( get_the_ID(), 'link_image', true );
|
793 |
+
|
794 |
+
if ( !$options['uselocalimagesoverthumbshots'] || ( $options['uselocalimagesoverthumbshots'] && empty( $link_image ) ) ) {
|
795 |
+
$this->ll_get_link_image( $link_url, get_the_title(), $genmode, get_the_ID(), $genoptions['thumbshotscid'], $filepath, $genoptions['imagefilepath'], $genoptions['thumbnailsize'], $genoptions['thumbnailgenerator'] );
|
796 |
}
|
797 |
+
$linkname = get_the_title();
|
798 |
}
|
799 |
|
800 |
+
wp_reset_postdata();
|
801 |
+
|
802 |
if ( isset( $_GET['genthumbs'] ) ) {
|
803 |
echo "<div id='message' class='updated fade'><p><strong>" . __( 'Thumbnails successfully generated!', 'link-library' ) . "</strong></p></div>";
|
804 |
} elseif ( isset( $_GET['genfavicons'] ) ) {
|
835 |
}
|
836 |
|
837 |
// Check for current page to set some page=specific variables
|
838 |
+
if ( $_GET['page'] == 'link-library-general-options' ) {
|
839 |
if ( isset( $_GET['message'] ) && $_GET['message'] == '1' ) {
|
840 |
echo "<div id='message' class='updated fade'><p><strong>" . __( 'General Settings Saved', 'link-library' ) . ".</strong></p></div>";
|
|
|
|
|
|
|
841 |
} else if ( isset( $_GET['message'] ) && $_GET['message'] == '3' ) {
|
842 |
echo "<div id='message' class='updated fade'><p><strong>" . __( 'Link Library plugin directory needs to be writable to perform this action', 'link-library' ) . "</strong></p></div>";
|
843 |
} else if ( isset( $_GET['message'] ) && $_GET['message'] == '4' ) {
|
844 |
echo "<div id='message' class='updated fade'><p><strong>" . __( 'You must set the Google reCAPTCHA Site and Secret Keys to be able to set the captcha generator to Google reCAPTCHA.', 'link-library' ) . "</strong></p></div>";
|
845 |
+
} else if ( isset( $_GET['message'] ) && $_GET['message'] == '9' ) {
|
846 |
+
echo "<div id='message' class='updated fade'><p><strong>" . $_GET['importrowscount'] . " " . __( 'row(s) found', 'link-library' ) . ". " . ( isset( $_GET['successimportcount'] ) ? intval( $_GET['successimportcount'] ) : '0' ) . " " . __( 'link(s) imported', 'link-library' ) . ", " . ( isset( $_GET['successupdatecount'] ) ? intval( $_GET['successupdatecount'] ): '0' ) . " " . __( 'link(s) updated', 'link-library' ) . ".</strong></p></div>";
|
847 |
}
|
848 |
|
849 |
$formvalue = 'save_link_library_general';
|
884 |
echo "<div id='message' class='updated fade'><p><strong>" . __( 'Invalid column count for link on row. Compare against template.', 'link-library' ) . "</strong></p></div>";
|
885 |
break;
|
886 |
|
|
|
|
|
|
|
|
|
|
|
887 |
case '6':
|
888 |
echo "<div id='message' class='updated fade'><p><strong>" . __( 'Link Library plugin directory needs to be writable to perform this action', 'link-library' ) . ".</strong></p></div>";
|
889 |
break;
|
903 |
case '10':
|
904 |
echo "<div id='message' class='updated fade'><p><strong>" . __( 'Links are missing categories', 'link-library' ) . "</strong></p></div>";
|
905 |
break;
|
906 |
+
|
907 |
}
|
908 |
|
909 |
}
|
937 |
|
938 |
if ( isset( $_GET['message'] ) && $_GET['message'] == '1' ) {
|
939 |
echo "<div id='message' class='updated fade'><p><strong>" . __( 'Settings updated', 'link-library' ) . ".</strong></p></div>";
|
940 |
+
} elseif ( isset( $_GET['message'] ) && ( $_GET['message'] == '2' || $_GET['message'] == '3' ) ) { ?>
|
941 |
+
<div id='message' class='updated fade'><p>
|
942 |
+
<strong>
|
943 |
+
<?php
|
944 |
+
if ( $_GET['message'] == '2' ) {
|
945 |
+
_e( 'Reciprocal Link Checker Report', 'link-library' );
|
946 |
+
} else {
|
947 |
+
_e( 'Broken Link Checker Report', 'link-library' );
|
948 |
+
}
|
949 |
+
?></strong><br /><br />
|
950 |
+
<div class="nextcheckitem"></div>
|
951 |
+
<script type="text/javascript">
|
952 |
+
var currentlinkindex = 1;
|
953 |
+
function testlink() {
|
954 |
+
jQuery.ajax({
|
955 |
+
type : 'POST',
|
956 |
+
url : '<?php echo admin_url( 'admin-ajax.php' ); ?>',
|
957 |
+
data : {
|
958 |
+
action : 'link_library_recipbrokencheck',
|
959 |
+
_ajax_nonce : '<?php echo wp_create_nonce( 'link_library_recipbrokencheck' ); ?>',
|
960 |
+
mode : '<?php if ( $_GET['message'] == '2' ) { echo 'reciprocal'; } elseif ( $_GET['message'] == 3 ) { echo 'broken'; } ?>',
|
961 |
+
index : currentlinkindex,
|
962 |
+
RecipCheckAddress: jQuery('#recipcheckaddress').val(),
|
963 |
+
recipcheckdelete403 : jQuery('#recipcheckdelete403').is(':checked')
|
964 |
+
},
|
965 |
+
success: function (data) {
|
966 |
+
if (data != '' ) {
|
967 |
+
if ( ( data != 'There are no links with reciprocal links associated with them.<br />' && data != 'There are no links to check.<br />' ) || currentlinkindex == 1 ) {
|
968 |
+
jQuery('.nextcheckitem').replaceWith(data);
|
969 |
+
}
|
970 |
+
|
971 |
+
if ( data != 'There are no links with reciprocal links associated with them.<br />' && data != 'There are no links to check.<br />' ) {
|
972 |
+
currentlinkindex++;
|
973 |
+
testlink();
|
974 |
+
}
|
975 |
+
}
|
976 |
+
}
|
977 |
+
});
|
978 |
+
}
|
979 |
+
|
980 |
+
jQuery( document ).ready(function() {
|
981 |
+
testlink();
|
982 |
+
});
|
983 |
+
</script>
|
984 |
+
</p></div>
|
985 |
+
<?php } elseif ( isset( $_GET['message'] ) && $_GET['message'] == '4' ) {
|
986 |
echo "<div id='message' class='updated fade'><p>";
|
987 |
$this->link_library_duplicate_link_checker( $this );
|
988 |
echo "</p></div>";
|
993 |
$data['settings'] = $settings;
|
994 |
$data['options'] = isset( $options ) ? $options : '';
|
995 |
$data['genoptions'] = $genoptions;
|
996 |
+
global $pagehookmoderate, $pagehookstylesheet, $pagehooksettingssets, $pagehookreciprocal;
|
997 |
?>
|
998 |
<div class="ll-content">
|
999 |
<div class="ll-frame">
|
1005 |
<img src="<?php echo plugins_url( 'icons/folder-beige-internet-icon32.png', __FILE__ ); ?>" /><span>Link Library</span>
|
1006 |
</li>
|
1007 |
<li class="link-library-page">
|
1008 |
+
<a href="<?php echo esc_url( add_query_arg( array( 'page' => 'link-library-general-options' ), admin_url( 'admin.php' ) ) ); ?>" <?php if ( isset( $_GET['page'] ) && $_GET['page'] == 'link-library' ) {
|
1009 |
echo 'class="current"';
|
1010 |
} ?>><?php _e( 'General Options', 'link-library' ); ?></a>
|
1011 |
</li>
|
1030 |
} ?>><?php _e( 'Reciprocal Check', 'link-library' ); ?></a>
|
1031 |
</li>
|
1032 |
<li class="link-library-page">
|
1033 |
+
<a href="http://ylefebvre.ca/wppluginsdoc/index.php?title=Link_Library"><?php _e( 'FAQ', 'link-library' ); ?></a>
|
1034 |
</li>
|
1035 |
<?php if ( isset( $genoptions['hidedonation'] ) && !$genoptions['hidedonation'] ) { ?>
|
1036 |
<li class="link-library-page">
|
1037 |
<a href="http://ylefebvre.ca/wordpress-plugins/link-library/"><img src="<?php echo plugins_url( '/icons/btn_donate_LG.gif', __FILE__ ); ?>" /></a>
|
1038 |
</li>
|
1039 |
<?php } ?>
|
1040 |
+
|
1041 |
</ul>
|
1042 |
|
1043 |
</nav>
|
1074 |
|
1075 |
#sortable li {
|
1076 |
list-style: none;
|
1077 |
+
margin: 0 3px 3px 3px;
|
1078 |
+
padding: 7px 7px 7px 7px;
|
1079 |
border: #CCCCCC solid 1px;
|
1080 |
color: #fff;
|
1081 |
display: inline;
|
1094 |
<div id="post-body" class="has-sidebar">
|
1095 |
<div id="post-body-content" class="has-sidebar-content">
|
1096 |
<?php
|
1097 |
+
if ( $_GET['page'] == 'link-library-general-options' ) {
|
1098 |
$this->display_menu( 'general', $genoptions );
|
1099 |
$this->general_meta_box( $data );
|
1100 |
+
$this->general_singleitemlayout_meta_box( $data );
|
1101 |
$this->general_image_meta_box( $data );
|
1102 |
$this->general_meta_bookmarklet_box( $data );
|
1103 |
$this->general_moderation_meta_box( $data );
|
1104 |
if ( isset( $genoptions['hidedonation'] ) && !$genoptions['hidedonation'] ) {
|
1105 |
$this->general_hide_donation_meta_box( $data );
|
1106 |
}
|
1107 |
+
$this->general_importexport_meta_box( $data );
|
1108 |
|
1109 |
$this->general_save_meta_box();
|
1110 |
|
1149 |
$('.if-js-closed').removeClass('if-js-closed').addClass('closed');
|
1150 |
// postboxes setup
|
1151 |
postboxes.add_postbox_toggles('<?php
|
1152 |
+
if ($_GET['page'] == 'link-library-settingssets')
|
|
|
|
|
1153 |
{echo $pagehooksettingssets;}
|
1154 |
elseif ($_GET['page'] == 'link-library-moderate')
|
1155 |
{echo $pagehookmoderate;}
|
1161 |
});
|
1162 |
//]]>
|
1163 |
|
1164 |
+
Array.prototype.clean = function(deleteValue) {
|
1165 |
+
for (var i = 0; i < this.length; i++) {
|
1166 |
+
if (this[i] == deleteValue) {
|
1167 |
+
this.splice(i, 1);
|
1168 |
+
i--;
|
1169 |
+
}
|
1170 |
+
}
|
1171 |
+
return this;
|
1172 |
+
};
|
1173 |
+
|
1174 |
// Create the tooltips only on document load
|
1175 |
jQuery(document).ready(function () {
|
1176 |
jQuery('.lltooltip').each(function () {
|
1181 |
jQuery("#sortable").sortable({
|
1182 |
opacity: 0.6, cursor: 'move', update: function () {
|
1183 |
var order = jQuery("#sortable").sortable('toArray');
|
1184 |
+
order.clean("");
|
1185 |
+
stringorder = order.join(',');
|
1186 |
document.getElementById('dragndroporder').value = stringorder;
|
1187 |
}
|
1188 |
});
|
1195 |
}
|
1196 |
|
1197 |
function display_menu( $menu_name = 'settingsset', $genoptions = '' ) {
|
|
|
1198 |
if ( $menu_name == 'general' ) {
|
1199 |
$tabitems = array ( 'll-general' => __( 'General', 'link-library' ),
|
1200 |
+
'll-singleitem' => __( 'Single Item Layout', 'link-library' ),
|
1201 |
'll-images' => __( 'Images', 'link-library' ),
|
1202 |
'll-bookmarklet' => __( 'Bookmarklet', 'link-library' ),
|
1203 |
'll-moderation' => __( 'Moderation', 'link-library' ),
|
1204 |
'll-hidedonation' => __( 'Hide Donation', 'link-library' ),
|
1205 |
+
'll-importexport' => __( 'Import/Export Links', 'link-library' ),
|
1206 |
);
|
1207 |
|
1208 |
+
if ( isset( $genoptions['ll-hidedonation'] ) && $genoptions['ll-hidedonation'] ) {
|
1209 |
+
unset ( $tabitems['hidedonation'] );
|
1210 |
}
|
1211 |
} elseif ( $menu_name == 'settingsset' ) {
|
1212 |
$tabitems = array ( 'll-usage' => __( 'Usage', 'link-library' ),
|
1220 |
'll-rssfeed' => __( 'RSS Feed', 'link-library' ),
|
1221 |
'll-searchfield' => __( 'Search', 'link-library' ),
|
1222 |
'll-userform' => __( 'User Submission', 'link-library' ),
|
1223 |
+
'll-importexport' => __( 'Import/Export Settings', 'link-library' ),
|
1224 |
);
|
1225 |
}
|
1226 |
|
1282 |
//cross check the given referer
|
1283 |
check_admin_referer( 'link-library' );
|
1284 |
|
1285 |
+
$message = 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1286 |
$row = 0;
|
1287 |
$successfulimport = 0;
|
1288 |
$successfulupdate = 0;
|
1289 |
+
|
1290 |
if ( isset( $_POST['importlinks'] ) ) {
|
1291 |
+
wp_defer_term_counting( true );
|
1292 |
+
wp_defer_comment_counting( true );
|
1293 |
wp_suspend_cache_addition( true );
|
1294 |
+
define( 'WP_IMPORTING', true );
|
1295 |
+
set_time_limit( 1800 );
|
|
|
1296 |
|
1297 |
$handle = fopen( $_FILES['linksfile']['tmp_name'], "r" );
|
1298 |
|
1299 |
if ( $handle ) {
|
1300 |
$skiprow = 1;
|
1301 |
+
$import_columns = array();
|
1302 |
|
1303 |
while ( ( $data = fgetcsv( $handle, 5000, "," ) ) !== false ) {
|
1304 |
$row += 1;
|
1305 |
+
if ( $skiprow == 1 && $row >= 2 ) {
|
|
|
|
|
|
|
1306 |
$skiprow = 0;
|
1307 |
}
|
1308 |
|
1309 |
+
if ( 1 == $row ) {
|
1310 |
+
foreach ( $data as $index => $column_name ) {
|
1311 |
+
$import_columns[$column_name] = $index;
|
1312 |
+
}
|
1313 |
+
} else {
|
1314 |
+
$existing_link_post_id = '';
|
1315 |
+
$matched_link_cats = array();
|
1316 |
+
|
1317 |
+
if ( ( isset( $import_columns['Category'] ) && !empty( $data[$import_columns['Category']] ) ) || ( isset( $import_columns['cat_name'] ) && !empty( $data[$import_columns['cat_name']] ) )) {
|
1318 |
+
$new_link_cats_array = array();
|
1319 |
+
if ( isset( $import_columns['Category'] ) ) {
|
1320 |
+
$new_link_cats_array = explode( ',', $data[$import_columns['Category']] );
|
1321 |
+
} elseif( isset( $import_columns['cat_name'] ) ) {
|
1322 |
+
$new_link_cats_array = explode( ',', $data[$import_columns['cat_name']] );
|
1323 |
+
}
|
1324 |
+
|
1325 |
+
foreach ( $new_link_cats_array as $new_link_cat ) {
|
1326 |
+
$cat_matched_term = get_term_by( 'name', $new_link_cat, 'link_library_category' );
|
1327 |
+
|
1328 |
+
if ( false !== $cat_matched_term ) {
|
1329 |
+
$matched_link_cats[] = $cat_matched_term->term_id;
|
1330 |
+
} else {
|
1331 |
+
$new_cat_term_data = wp_insert_term( $new_link_cat, 'link_library_category' );
|
1332 |
+
if ( is_wp_error( $new_cat_term_data ) ) {
|
1333 |
+
print_r( 'Failed creating category ' . $new_link_cat );
|
1334 |
+
} else {
|
1335 |
+
$matched_link_cats[] = $new_cat_term_data['term_id'];
|
1336 |
+
}
|
1337 |
+
}
|
1338 |
+
}
|
1339 |
+
}
|
1340 |
|
1341 |
+
$link_url = '';
|
1342 |
+
$url_labels = array( 'Address', 'link_url' );
|
1343 |
+
foreach( $url_labels as $url_label ) {
|
1344 |
+
if ( isset( $import_columns[$url_label] ) ) {
|
1345 |
+
if ( !empty( $data[$import_columns[$url_label]] ) ) {
|
1346 |
+
$link_url = esc_url( $data[$import_columns[$url_label]] );
|
1347 |
+
}
|
1348 |
+
}
|
1349 |
+
}
|
1350 |
|
1351 |
+
if ( isset( $_POST['updatesameurl'] ) ) {
|
1352 |
+
$find_post_args = array( 'post_type' => 'link_library_links',
|
1353 |
+
'meta_key' => 'link_url',
|
1354 |
+
'meta_value' => $link_url,
|
1355 |
+
'numberposts' => 1 );
|
1356 |
|
1357 |
+
$posts_same_url_array = get_posts( $find_post_args );
|
1358 |
|
1359 |
+
if ( !empty( $posts_same_url_array ) ) {
|
1360 |
+
$existing_link_post_id = $posts_same_url_array[0]->ID;
|
1361 |
+
}
|
1362 |
+
}
|
1363 |
|
1364 |
+
$post_status = 'publish';
|
1365 |
+
$post_status_import_value = '';
|
1366 |
|
1367 |
+
$visible_labels = array( 'Status', 'Visible', 'link_visible' );
|
1368 |
+
foreach( $visible_labels as $visible_label ) {
|
1369 |
+
if ( isset( $import_columns[$visible_label] ) ) {
|
1370 |
+
$post_status_import_value = $data[$import_columns[$visible_label]];
|
1371 |
+
}
|
1372 |
+
}
|
1373 |
|
1374 |
+
if ( in_array( $post_status_import_value, array( 'publish', 'draft', 'private' ) ) ) {
|
1375 |
+
$post_status = $post_status_import_value;
|
1376 |
+
} elseif ( 'N' == $post_status_import_value ) {
|
1377 |
+
$post_status = 'private';
|
1378 |
+
}
|
1379 |
|
1380 |
+
$post_title = '';
|
1381 |
+
$title_labels = array( 'Link Name', 'link_name', 'Name' );
|
1382 |
+
foreach( $title_labels as $title_label ) {
|
1383 |
+
if ( isset( $import_columns[$title_label] ) ) {
|
1384 |
+
if ( ! empty( $data[ $import_columns[$title_label] ] ) ) {
|
1385 |
+
$post_title = sanitize_text_field( $data[ $import_columns[$title_label] ] );
|
1386 |
}
|
1387 |
+
}
|
1388 |
+
}
|
1389 |
+
|
1390 |
+
$new_link_data = array(
|
1391 |
+
'post_type' => 'link_library_links',
|
1392 |
+
'post_content' => '',
|
1393 |
+
'post_title' => $post_title,
|
1394 |
+
'tax_input' => array( 'link_library_category' => $matched_link_cats ),
|
1395 |
+
'post_status' => $post_status
|
1396 |
+
);
|
1397 |
+
|
1398 |
+
if ( !empty( $existing_link_post_id ) ) {
|
1399 |
+
$new_link_data['ID'] = $existing_link_post_id;
|
1400 |
+
$new_link_ID = wp_insert_post( $new_link_data );
|
1401 |
+
$successfulupdate++;
|
1402 |
+
} else {
|
1403 |
+
$new_link_ID = wp_insert_post( $new_link_data );
|
1404 |
+
$successfulimport++;
|
1405 |
+
}
|
1406 |
+
|
1407 |
+
update_post_meta( $new_link_ID, 'link_url', $link_url );
|
1408 |
+
|
1409 |
+
$link_image = '';
|
1410 |
+
$image_labels = array( 'Image Address', 'link_image' );
|
1411 |
+
foreach( $image_labels as $image_label ) {
|
1412 |
+
if ( isset( $import_columns[$image_label] ) ) {
|
1413 |
+
$link_image = esc_url( $data[$import_columns[$image_label]] );
|
1414 |
+
}
|
1415 |
+
}
|
1416 |
+
update_post_meta( $new_link_ID, 'link_image', $link_image );
|
1417 |
+
|
1418 |
+
$link_target = '';
|
1419 |
+
$target_labels = array( 'Link Target', 'link_target' );
|
1420 |
+
foreach( $target_labels as $target_label ) {
|
1421 |
+
if ( isset( $import_columns[$target_label] ) ) {
|
1422 |
+
$link_target = sanitize_text_field( $data[$import_columns[$target_label]] );
|
1423 |
+
}
|
1424 |
+
}
|
1425 |
+
update_post_meta( $new_link_ID, 'link_target', $link_target );
|
1426 |
+
|
1427 |
+
$link_description = '';
|
1428 |
+
$description_labels = array( 'Description', 'link_description' );
|
1429 |
+
foreach( $description_labels as $description_label ) {
|
1430 |
+
if ( isset( $import_columns[$description_label] ) ) {
|
1431 |
+
$link_description = sanitize_text_field( $data[$import_columns[$description_label]] );
|
1432 |
+
$link_description = str_replace( '(LinkLibrary:AwaitingModeration:RemoveTextToApprove)', '', $link_description );
|
1433 |
+
}
|
1434 |
+
}
|
1435 |
+
update_post_meta( $new_link_ID, 'link_description', $link_description );
|
1436 |
+
|
1437 |
+
$link_rating = '';
|
1438 |
+
$rating_labels = array( 'Description', 'link_description' );
|
1439 |
+
foreach( $rating_labels as $rating_label ) {
|
1440 |
+
if ( isset( $import_columns[$rating_label] ) ) {
|
1441 |
+
$newrating = intval( $data[$import_columns[$rating_label]] );
|
1442 |
if ( $newrating < 0 ) {
|
1443 |
$newrating = 0;
|
1444 |
}
|
1445 |
+
$link_rating = $newrating;
|
1446 |
+
}
|
1447 |
+
}
|
1448 |
+
update_post_meta( $new_link_ID, 'link_rating', $link_rating );
|
1449 |
+
|
1450 |
+
$link_updated = current_time( 'timestamp' );
|
1451 |
+
$updated_labels = array( 'Updated Date - Empty for none', 'link_updated' );
|
1452 |
+
foreach( $updated_labels as $updated_label ) {
|
1453 |
+
if ( isset( $import_columns[$updated_label] ) ) {
|
1454 |
+
if ( !empty( $import_columns[$updated_label] ) ) {
|
1455 |
+
$link_updated = strtotime( $data[ $import_columns[$updated_label] ] );
|
1456 |
+
}
|
1457 |
+
}
|
1458 |
+
}
|
1459 |
+
update_post_meta( $new_link_ID, 'link_updated', $link_updated );
|
1460 |
|
1461 |
+
$link_notes = '';
|
1462 |
+
$notes_labels = array( 'Notes', 'link_notes' );
|
1463 |
+
foreach( $notes_labels as $notes_label ) {
|
1464 |
+
if ( isset( $import_columns[$notes_label] ) ) {
|
1465 |
+
$link_notes = sanitize_text_field( $data[$import_columns[$notes_label]] );
|
1466 |
+
}
|
1467 |
+
}
|
1468 |
+
update_post_meta( $new_link_ID, 'link_notes', $link_notes );
|
1469 |
|
1470 |
+
$link_rss = '';
|
1471 |
+
$rss_labels = array( 'RSS', 'link_rss' );
|
1472 |
+
foreach( $rss_labels as $rss_label ) {
|
1473 |
+
if ( isset( $import_columns[$rss_label] ) ) {
|
1474 |
+
$link_rss = esc_url( $data[$import_columns[$rss_label]] );
|
1475 |
+
}
|
1476 |
+
}
|
1477 |
+
update_post_meta( $new_link_ID, 'link_rss', $link_rss );
|
1478 |
|
1479 |
+
$link_second_url = '';
|
1480 |
+
$second_url_labels = array( 'Secondary URL', 'link_second_url' );
|
1481 |
+
foreach( $second_url_labels as $second_url_label ) {
|
1482 |
+
if ( isset( $import_columns[$second_url_label] ) ) {
|
1483 |
+
$link_second_url = esc_url( $data[$import_columns[$second_url_label]] );
|
1484 |
+
}
|
1485 |
+
}
|
1486 |
+
update_post_meta( $new_link_ID, 'link_second_url', $link_second_url );
|
1487 |
|
1488 |
+
$link_telephone = '';
|
1489 |
+
$telephone_labels = array( 'Telephone', 'link_telephone' );
|
1490 |
+
foreach( $telephone_labels as $telephone_label ) {
|
1491 |
+
if ( isset( $import_columns[$telephone_label] ) ) {
|
1492 |
+
$link_telephone = sanitize_text_field( $data[$import_columns[$telephone_label]] );
|
1493 |
+
}
|
1494 |
+
}
|
1495 |
+
update_post_meta( $new_link_ID, 'link_telephone', $link_telephone );
|
1496 |
|
1497 |
+
$link_email = '';
|
1498 |
+
$email_labels = array( 'E-mail', 'link_email' );
|
1499 |
+
foreach( $email_labels as $email_label ) {
|
1500 |
+
if ( isset( $import_columns[$email_label] ) ) {
|
1501 |
+
$link_email = sanitize_email( $data[$import_columns[$email_label]] );
|
1502 |
+
}
|
1503 |
+
}
|
1504 |
+
update_post_meta( $new_link_ID, 'link_email', $link_email );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1505 |
|
1506 |
+
if ( empty( $existing_link_post_id ) ) {
|
1507 |
+
update_post_meta( $new_link_ID, 'link_visits', 0 );
|
1508 |
+
}
|
|
|
1509 |
|
1510 |
+
$link_reciprocal = '';
|
1511 |
+
$reciprocal_labels = array( 'Reciprocal Link', 'link_reciprocal' );
|
1512 |
+
foreach( $reciprocal_labels as $reciprocal_label ) {
|
1513 |
+
if ( isset( $import_columns[$reciprocal_label] ) ) {
|
1514 |
+
$link_reciprocal = esc_url( $data[$import_columns[$reciprocal_label]] );
|
1515 |
+
}
|
1516 |
+
}
|
1517 |
+
update_post_meta( $new_link_ID, 'link_reciprocal', $link_reciprocal );
|
1518 |
|
1519 |
+
$link_large_description = '';
|
1520 |
+
$large_description_labels = array( 'Large Description', 'link_textfield' );
|
1521 |
+
foreach( $large_description_labels as $large_description_label ) {
|
1522 |
+
if ( isset( $import_columns[$large_description_label] ) ) {
|
1523 |
+
$link_large_description = sanitize_text_field( $data[$import_columns[$large_description_label]] );
|
1524 |
+
}
|
1525 |
+
}
|
1526 |
+
update_post_meta( $new_link_ID, 'link_textfield', $link_large_description );
|
1527 |
|
1528 |
+
$link_no_follow = 0;
|
1529 |
+
$no_follow_labels = array( 'No Follow', 'link_no_follow' );
|
1530 |
+
foreach( $no_follow_labels as $no_follow_labels ) {
|
1531 |
+
if ( isset( $import_columns[$no_follow_labels] ) ) {
|
1532 |
+
$link_no_follow = $data[$import_columns[$no_follow_labels]];
|
1533 |
+
}
|
1534 |
+
}
|
1535 |
+
|
1536 |
+
if ( '1' == $link_no_follow || 'Y' == $link_no_follow ) {
|
1537 |
+
update_post_meta( $new_link_ID, 'link_no_follow', true );
|
1538 |
+
} else {
|
1539 |
+
update_post_meta( $new_link_ID, 'link_no_follow', false );
|
1540 |
+
}
|
1541 |
+
|
1542 |
+
$link_featured = 0;
|
1543 |
+
$featured_labels = array( 'Link Featured' );
|
1544 |
+
foreach( $featured_labels as $featured_label ) {
|
1545 |
+
if ( isset( $import_columns[$featured_label] ) ) {
|
1546 |
+
$link_featured = $data[$import_columns[$featured_label]];
|
1547 |
}
|
1548 |
+
}
|
1549 |
+
|
1550 |
+
if ( '1' == $link_featured || 'Y' == $link_featured ) {
|
1551 |
+
update_post_meta( $new_link_ID, 'link_featured', true );
|
1552 |
} else {
|
1553 |
+
update_post_meta( $new_link_ID, 'link_featured', false );
|
1554 |
}
|
1555 |
}
|
1556 |
}
|
1557 |
}
|
1558 |
|
1559 |
+
$row -= 1;
|
|
|
|
|
1560 |
|
1561 |
+
$message = '9';
|
1562 |
|
1563 |
wp_suspend_cache_addition( false );
|
1564 |
+
wp_defer_term_counting( false );
|
1565 |
+
wp_defer_comment_counting( false );
|
1566 |
} elseif ( isset( $_POST['siteimport'] ) ) {
|
1567 |
wp_suspend_cache_addition( true );
|
1568 |
+
wp_defer_term_counting( true );
|
1569 |
+
wp_defer_comment_counting( true );
|
1570 |
+
define( 'WP_IMPORTING', true );
|
1571 |
|
1572 |
+
set_time_limit( 600 );
|
|
|
1573 |
|
1574 |
$all_content = array();
|
1575 |
|
1600 |
|
1601 |
if ( 'allpagesposts' == $_POST['siteimportlinksscope']
|
1602 |
|| 'allpagespostscpt' == $_POST['siteimportlinksscope'] ) {
|
1603 |
+
|
1604 |
$post_args = array();
|
1605 |
|
1606 |
if ( 'allpagesposts' == $_POST['siteimportlinksscope'] ) {
|
1617 |
}
|
1618 |
}
|
1619 |
}
|
1620 |
+
|
1621 |
foreach ( $post_types as $post_type ) {
|
1622 |
if ( 'specific' . $post_type == $_POST['siteimportlinksscope'] ) {
|
1623 |
$post_args = array();
|
1632 |
}
|
1633 |
|
1634 |
foreach ( $all_content as $content_item ) {
|
1635 |
+
$row++;
|
1636 |
$dom = new DOMDocument;
|
1637 |
$dom->loadHTML( $content_item );
|
1638 |
foreach ( $dom->getElementsByTagName( 'a' ) as $node ) {
|
1639 |
$incomingcatdata = $_POST['siteimportcat'];
|
1640 |
|
1641 |
if ( isset( $_POST['siteimportupdatesameurl'] ) ) {
|
1642 |
+
$find_post_args = array( 'post_type' => 'link_library_links',
|
1643 |
+
'meta_key' => 'link_url',
|
1644 |
+
'meta_value' => esc_url( $node->getAttribute( "href" ) ),
|
1645 |
+
'numberposts' => 1 );
|
1646 |
|
1647 |
+
$posts_same_url_array = get_posts( $find_post_args );
|
1648 |
|
1649 |
+
if ( !empty( $posts_same_url_array ) ) {
|
1650 |
+
$existing_link_post_id = $posts_same_url_array[0]->ID;
|
1651 |
+
}
|
1652 |
+
}
|
1653 |
|
1654 |
+
$new_link_data = array(
|
1655 |
+
'post_type' => 'link_library_links',
|
1656 |
+
'post_content' => '',
|
1657 |
+
'post_title' => esc_html( $node->nodeValue ),
|
1658 |
+
'tax_input' => array( 'link_library_category' => $incomingcatdata ),
|
1659 |
+
'post_status' => 'publish'
|
1660 |
+
);
|
1661 |
+
|
1662 |
+
if ( !empty( $existing_link_post_id ) ) {
|
1663 |
+
$new_link_data['ID'] = $existing_link_post_id;
|
1664 |
+
$new_link_ID = wp_insert_post( $new_link_data );
|
1665 |
+
$successfulupdate++;
|
1666 |
+
} else {
|
1667 |
+
$new_link_ID = wp_insert_post( $new_link_data );
|
1668 |
+
$successfulimport++;
|
1669 |
+
}
|
1670 |
|
1671 |
+
update_post_meta( $new_link_ID, 'link_url', esc_url( $node->getAttribute( "href" ) ) );
|
1672 |
+
update_post_meta( $new_link_ID, 'link_image', '' );
|
1673 |
+
update_post_meta( $new_link_ID, 'link_target', '' );
|
1674 |
+
update_post_meta( $new_link_ID, 'link_description', '' );
|
1675 |
+
update_post_meta( $new_link_ID, 'link_rating', 0 );
|
1676 |
+
|
1677 |
+
update_post_meta( $new_link_ID, 'link_updated', current_time( 'timestamp' ) );
|
1678 |
+
|
1679 |
+
update_post_meta( $new_link_ID, 'link_notes', '' );
|
1680 |
+
update_post_meta( $new_link_ID, 'link_rss', '' );
|
1681 |
+
update_post_meta( $new_link_ID, 'link_second_url', '' );
|
1682 |
+
update_post_meta( $new_link_ID, 'link_telephone', '' );
|
1683 |
+
update_post_meta( $new_link_ID, 'link_email', '' );
|
1684 |
+
|
1685 |
+
if ( empty( $existing_link_post_id ) ) {
|
1686 |
+
update_post_meta( $new_link_ID, 'link_visits', 0 );
|
1687 |
}
|
1688 |
+
|
1689 |
+
update_post_meta( $new_link_ID, 'link_reciprocal', '' );
|
1690 |
+
update_post_meta( $new_link_ID, 'link_textfield', '' );
|
1691 |
+
update_post_meta( $new_link_ID, 'link_no_follow', false );
|
1692 |
+
update_post_meta( $new_link_ID, 'link_featured', false );
|
1693 |
+
|
1694 |
+
update_post_meta( $new_link_ID, 'legacy_link_id', $newlinkid );
|
1695 |
}
|
1696 |
}
|
1697 |
+
$message = '9';
|
1698 |
|
1699 |
wp_suspend_cache_addition( false );
|
1700 |
+
wp_defer_term_counting( false );
|
1701 |
+
wp_defer_comment_counting( false );
|
1702 |
+
} elseif ( isset( $_POST['exportalllinks'] ) ) {
|
1703 |
$upload_dir = wp_upload_dir();
|
1704 |
+
|
1705 |
if ( is_writable( $upload_dir['path'] ) ) {
|
1706 |
+
$myFile = $upload_dir['path'] . "/LinksExport.csv";
|
1707 |
$fh = fopen( $myFile, 'w' ) or die( "can't open file" );
|
1708 |
|
1709 |
+
$links_query_args = array( 'post_type' => 'link_library_links', 'posts_per_page' => -1, 'post_status' => array( 'publish', 'pending', 'draft', 'future', 'private' ) );
|
|
|
|
|
|
|
1710 |
|
1711 |
+
$links_to_export = new WP_Query( $links_query_args );
|
|
|
|
|
1712 |
|
1713 |
+
if ( $links_to_export->have_posts() ) {
|
1714 |
+
$link_items = array();
|
1715 |
+
while ( $links_to_export->have_posts() ) {
|
1716 |
+
$link_object = array();
|
1717 |
+
$links_to_export->the_post();
|
1718 |
|
1719 |
+
$link_cats = '';
|
1720 |
+
$link_categories = wp_get_post_terms( get_the_ID(), 'link_library_category' );
|
1721 |
+
if ( $link_categories ) {
|
1722 |
+
$countcats = 0;
|
1723 |
+
foreach ( $link_categories as $link_category ) {
|
1724 |
+
if ( $countcats >= 1 ) {
|
1725 |
+
$link_cats .= ', ';
|
1726 |
+
}
|
1727 |
+
$link_cats .= $link_category->name;
|
1728 |
+
$countcats++;
|
1729 |
+
}
|
1730 |
+
}
|
1731 |
+
|
1732 |
+
$link_object['Name'] = get_the_title();
|
1733 |
+
$link_object['Address'] = get_post_meta( get_the_ID(), 'link_url', true );
|
1734 |
+
$link_object['RSS'] = get_post_meta( get_the_ID(), 'link_rss', true );
|
1735 |
+
$link_object['Description'] = get_post_meta( get_the_ID(), 'link_description', true );
|
1736 |
+
$link_object['Notes'] = get_post_meta( get_the_ID(), 'link_notes', true );
|
1737 |
+
$link_object['Category'] = $link_cats;
|
1738 |
+
$link_object['Status'] = get_post_status();
|
1739 |
+
$link_object['Secondary URL'] = get_post_meta( get_the_ID(), 'link_second_url', true );
|
1740 |
+
$link_object['Telephone'] = get_post_meta( get_the_ID(), 'link_telephone', true );
|
1741 |
+
$link_object['E-mail'] = get_post_meta( get_the_ID(), 'link_email', true );
|
1742 |
+
$link_object['Reciprocal Link'] = get_post_meta( get_the_ID(), 'link_reciprocal', true );
|
1743 |
+
$link_object['Image Address'] = get_post_meta( get_the_ID(), 'link_image', true );
|
1744 |
+
$link_object['Large Description'] = get_post_meta( get_the_ID(), 'link_textfield', true );
|
1745 |
+
$link_object['No Follow'] = get_post_meta( get_the_ID(), 'link_no_follow', true );
|
1746 |
+
$link_object['Rating'] = get_post_meta( get_the_ID(), 'link_rating', true );
|
1747 |
+
$link_object['Link Target'] = get_post_meta( get_the_ID(), 'link_target', true );
|
1748 |
+
$link_object['Updated Date - Empty for none'] = date( 'Y-m-d', intval( get_post_meta( get_the_ID(), 'link_updated', true ) ) );
|
1749 |
+
$link_object['Link Featured'] = get_post_meta( get_the_ID(), 'link_featured', true );
|
1750 |
+
$link_items[] = $link_object;
|
1751 |
+
}
|
1752 |
+
}
|
1753 |
+
|
1754 |
+
wp_reset_postdata();
|
1755 |
+
|
1756 |
+
if ( $link_items ) {
|
1757 |
+
$headerrow = array();
|
1758 |
+
|
1759 |
+
foreach ( $link_items[0] as $key => $option ) {
|
1760 |
+
$headerrow[] = '"' . $key . '"';
|
1761 |
+
}
|
1762 |
+
|
1763 |
+
$headerdata = join( ',', $headerrow ) . "\n";
|
1764 |
+
fwrite( $fh, $headerdata );
|
1765 |
+
|
1766 |
+
foreach ( $link_items as $link_item ) {
|
1767 |
+
$datarow = array();
|
1768 |
+
foreach ( $link_item as $key => $value ) {
|
1769 |
+
$datarow[] = '"' . $value . '"';
|
1770 |
+
}
|
1771 |
+
$data = join( ',', $datarow ) . "\n";
|
1772 |
+
fwrite( $fh, $data );
|
1773 |
+
}
|
1774 |
+
|
1775 |
+
fclose( $fh );
|
1776 |
+
|
1777 |
+
if ( file_exists( $myFile ) ) {
|
1778 |
+
header( 'Content-Description: File Transfer' );
|
1779 |
+
header( 'Content-Type: application/octet-stream' );
|
1780 |
+
header( 'Content-Disposition: attachment; filename=' . basename( $myFile ) );
|
1781 |
+
header( 'Expires: 0' );
|
1782 |
+
header( 'Cache-Control: must-revalidate' );
|
1783 |
+
header( 'Pragma: public' );
|
1784 |
+
header( 'Content-Length: ' . filesize( $myFile ) );
|
1785 |
+
readfile( $myFile );
|
1786 |
+
exit;
|
1787 |
+
}
|
1788 |
+
}
|
1789 |
+
} else {
|
1790 |
+
$message = '3';
|
1791 |
+
}
|
1792 |
+
} elseif ( isset( $_POST['ll60catmapping'] ) ) {
|
1793 |
+
$upload_dir = wp_upload_dir();
|
1794 |
+
|
1795 |
+
if ( is_writable( $upload_dir['path'] ) ) {
|
1796 |
+
$myFile = $upload_dir['path'] . "/LinkLibraryCatMapping.csv";
|
1797 |
+
$fh = fopen( $myFile, 'w' ) or die( "can't open file" );
|
1798 |
+
|
1799 |
+
global $wpdb;
|
1800 |
+
|
1801 |
+
$all_link_cats_query = 'SELECT distinct t.name, t.term_id, tt.description ';
|
1802 |
+
$all_link_cats_query .= 'FROM ' . $this->db_prefix() . 'terms t ';
|
1803 |
+
$all_link_cats_query .= 'LEFT JOIN ' . $this->db_prefix() . 'term_taxonomy tt ON (t.term_id = tt.term_id) ';
|
1804 |
+
$all_link_cats_query .= 'LEFT JOIN ' . $this->db_prefix() . 'term_relationships tr ON (tt.term_taxonomy_id = tr.term_taxonomy_id) ';
|
1805 |
+
$all_link_cats_query .= 'WHERE tt.taxonomy = "link_category" ';
|
1806 |
+
$all_link_cats_query .= 'ORDER by t.term_id ASC ';
|
1807 |
+
|
1808 |
+
$all_link_cats = $wpdb->get_results( $all_link_cats_query );
|
1809 |
+
|
1810 |
+
if ( !empty( $all_link_cats ) ) {
|
1811 |
+
$link_cat_items = array();
|
1812 |
+
foreach ( $all_link_cats as $link_cat ) {
|
1813 |
+
$link_cat_object = array();
|
1814 |
+
$link_cat_object['Category Name'] = $link_cat->name;
|
1815 |
+
$link_cat_object['Version 5.9 Category ID'] = $link_cat->term_id;
|
1816 |
+
|
1817 |
+
$cat_string = $link_cat->name;
|
1818 |
+
$cat_matched_term = get_term_by( 'name', $cat_string, 'link_library_category' );
|
1819 |
+
|
1820 |
+
if ( false !== $cat_matched_term ) {
|
1821 |
+
$link_cat_object['Version 6.0 Category ID'] = $cat_matched_term->term_id;
|
1822 |
+
}
|
1823 |
+
|
1824 |
+
$link_cat_items[] = $link_cat_object;
|
1825 |
+
}
|
1826 |
+
}
|
1827 |
+
|
1828 |
+
if ( $link_cat_items ) {
|
1829 |
+
$headerrow = array();
|
1830 |
+
|
1831 |
+
foreach ( $link_cat_items[0] as $key => $option ) {
|
1832 |
+
$headerrow[] = '"' . $key . '"';
|
1833 |
+
}
|
1834 |
+
|
1835 |
+
$headerdata = join( ',', $headerrow ) . "\n";
|
1836 |
+
fwrite( $fh, $headerdata );
|
1837 |
+
|
1838 |
+
foreach ( $link_cat_items as $link_cat_item ) {
|
1839 |
+
$datarow = array();
|
1840 |
+
foreach ( $link_cat_item as $key => $value ) {
|
1841 |
+
$datarow[] = '"' . $value . '"';
|
1842 |
+
}
|
1843 |
+
$data = join( ',', $datarow ) . "\n";
|
1844 |
+
fwrite( $fh, $data );
|
1845 |
+
}
|
1846 |
+
|
1847 |
+
fclose( $fh );
|
1848 |
+
|
1849 |
+
if ( file_exists( $myFile ) ) {
|
1850 |
+
header( 'Content-Description: File Transfer' );
|
1851 |
+
header( 'Content-Type: application/octet-stream' );
|
1852 |
+
header( 'Content-Disposition: attachment; filename=' . basename( $myFile ) );
|
1853 |
+
header( 'Expires: 0' );
|
1854 |
+
header( 'Cache-Control: must-revalidate' );
|
1855 |
+
header( 'Pragma: public' );
|
1856 |
+
header( 'Content-Length: ' . filesize( $myFile ) );
|
1857 |
+
readfile( $myFile );
|
1858 |
+
exit;
|
1859 |
+
}
|
1860 |
+
}
|
1861 |
+
} else {
|
1862 |
+
$message = '3';
|
1863 |
+
}
|
1864 |
+
} elseif ( isset( $_POST['deletell59links'] ) ) {
|
1865 |
+
global $wpdb;
|
1866 |
+
|
1867 |
+
$delete_links_query = 'DELETE FROM ' . $this->db_prefix() . 'links ';
|
1868 |
+
$wpdb->get_results( $delete_links_query );
|
1869 |
+
} else {
|
1870 |
+
$genoptions = get_option( 'LinkLibraryGeneral' );
|
1871 |
+
|
1872 |
+
foreach (
|
1873 |
+
array(
|
1874 |
+
'numberstylesets', 'includescriptcss', 'pagetitleprefix', 'pagetitlesuffix', 'schemaversion', 'thumbshotscid', 'approvalemailtitle',
|
1875 |
+
'moderatorname', 'moderatoremail', 'rejectedemailtitle', 'approvalemailbody', 'rejectedemailbody', 'moderationnotificationtitle',
|
1876 |
+
'linksubmissionthankyouurl', 'recipcheckaddress', 'imagefilepath', 'catselectmethod', 'expandiconpath', 'collapseiconpath', 'updatechannel',
|
1877 |
+
'extraprotocols', 'thumbnailsize', 'thumbnailgenerator', 'rsscachedelay', 'single_link_layout', 'rolelevel', 'editlevel', 'cptslug'
|
1878 |
+
) as $option_name
|
1879 |
+
) {
|
1880 |
+
if ( isset( $_POST[$option_name] ) ) {
|
1881 |
+
$genoptions[$option_name] = $_POST[$option_name];
|
1882 |
+
}
|
1883 |
+
}
|
1884 |
+
|
1885 |
+
if ( isset( $_POST['captchagenerator'] ) && 'recaptcha' == $_POST['captchagenerator'] ) {
|
1886 |
+
if ( empty( $_POST['recaptchasitekey'] ) || empty( $_POST['recaptchasecretkey'] ) ) {
|
1887 |
+
$genoptions['captchagenerator'] = 'easycaptcha';
|
1888 |
+
$message = 4;
|
1889 |
+
} else {
|
1890 |
+
$genoptions['captchagenerator'] = 'recaptcha';
|
1891 |
+
$genoptions['recaptchasitekey'] = sanitize_text_field( $_POST['recaptchasitekey'] );
|
1892 |
+
$genoptions['recaptchasecretkey'] = sanitize_text_field( $_POST['recaptchasecretkey'] );
|
1893 |
+
}
|
1894 |
+
} elseif ( isset( $_POST['captchagenerator'] ) && 'easycaptcha' == $_POST['captchagenerator'] ) {
|
1895 |
+
$genoptions['captchagenerator'] = 'easycaptcha';
|
1896 |
+
$genoptions['recaptchasitekey'] = '';
|
1897 |
+
$genoptions['recaptchasecretkey'] = '';
|
1898 |
+
}
|
1899 |
+
|
1900 |
+
foreach ( array( 'debugmode', 'emaillinksubmitter', 'suppressemailfooter', 'usefirstpartsubmittername', 'hidedonation' ) as $option_name ) {
|
1901 |
+
if ( isset( $_POST[$option_name] ) ) {
|
1902 |
+
$genoptions[$option_name] = true;
|
1903 |
+
} else {
|
1904 |
+
if ( $option_name != 'hidedonation' ) {
|
1905 |
+
$genoptions[$option_name] = false;
|
1906 |
+
}
|
1907 |
+
}
|
1908 |
+
}
|
1909 |
+
|
1910 |
+
update_option( 'LinkLibraryGeneral', $genoptions );
|
1911 |
+
|
1912 |
+
update_option( 'links_updated_date_format', $_POST['links_updated_date_format'] );
|
1913 |
+
}
|
1914 |
+
|
1915 |
+
//lets redirect the post request into get request (you may add additional params at the url, if you need to show save results
|
1916 |
+
$redirecturl = remove_query_arg( array( 'message', 'importrowscount', 'successimportcount' ), $_POST['_wp_http_referer'] );
|
1917 |
+
|
1918 |
+
if ( !empty( $message ) ) {
|
1919 |
+
$redirecturl = add_query_arg( 'message', $message, $redirecturl );
|
1920 |
+
}
|
1921 |
+
|
1922 |
+
if ( isset( $_POST['currenttab'] ) ) {
|
1923 |
+
$redirecturl = add_query_arg( 'currenttab', $_POST['currenttab'], $redirecturl );
|
1924 |
+
}
|
1925 |
+
|
1926 |
+
if ( isset( $row ) && $row != 0 ) {
|
1927 |
+
$redirecturl = add_query_arg( 'importrowscount', $row, $redirecturl );
|
1928 |
+
}
|
1929 |
+
|
1930 |
+
if ( isset( $successfulimport ) && $successfulimport != 0 ) {
|
1931 |
+
$redirecturl = add_query_arg( 'successimportcount', $successfulimport, $redirecturl );
|
1932 |
+
}
|
1933 |
+
|
1934 |
+
if ( isset( $successfulupdate ) && $successfulupdate != 0 ) {
|
1935 |
+
$redirecturl = add_query_arg( 'successupdatecount', $successfulupdate, $redirecturl );
|
1936 |
+
}
|
1937 |
+
|
1938 |
+
wp_redirect( $redirecturl );
|
1939 |
+
exit;
|
1940 |
+
}
|
1941 |
+
|
1942 |
+
function ll_post_exists( $id ) {
|
1943 |
+
return is_string( get_post_status( $id ) );
|
1944 |
+
}
|
1945 |
+
|
1946 |
+
//executed if the post arrives initiated by pressing the submit button of form
|
1947 |
+
function on_save_changes_settingssets() {
|
1948 |
+
//user permission check
|
1949 |
+
if ( !current_user_can( 'manage_options' ) ) {
|
1950 |
+
wp_die( __( 'Not allowed', 'link-library' ) );
|
1951 |
+
}
|
1952 |
+
//cross check the given referer
|
1953 |
+
check_admin_referer( 'link-library' );
|
1954 |
+
|
1955 |
+
if ( isset( $_POST['exportsettings'] ) ) {
|
1956 |
+
$upload_dir = wp_upload_dir();
|
1957 |
+
if ( is_writable( $upload_dir['path'] ) ) {
|
1958 |
+
$myFile = $upload_dir['path'] . "/SettingSet" . $_POST['settingsetid'] . "Export.csv";
|
1959 |
+
$fh = fopen( $myFile, 'w' ) or die( "can't open file" );
|
1960 |
+
|
1961 |
+
$sourcesettingsname = 'LinkLibraryPP' . $_POST['settingsetid'];
|
1962 |
+
$sourceoptions = get_option( $sourcesettingsname );
|
1963 |
+
|
1964 |
+
$headerrow = array();
|
1965 |
+
|
1966 |
+
foreach ( $sourceoptions as $key => $option ) {
|
1967 |
+
$headerrow[] = '"' . $key . '"';
|
1968 |
+
}
|
1969 |
+
|
1970 |
+
$headerdata = join( ',', $headerrow ) . "\n";
|
1971 |
+
fwrite( $fh, $headerdata );
|
1972 |
+
|
1973 |
+
$datarow = array();
|
1974 |
|
1975 |
foreach ( $sourceoptions as $key => $option ) {
|
1976 |
$datarow[] = '"' . $option . '"';
|
1996 |
$messages[] = '6';
|
1997 |
}
|
1998 |
} elseif ( isset( $_POST['importsettings'] ) ) {
|
|
|
|
|
1999 |
if ( $_FILES['settingsfile']['tmp_name'] != "" ) {
|
2000 |
$handle = fopen( $_FILES['settingsfile']['tmp_name'], "r" );
|
2001 |
|
2041 |
array(
|
2042 |
'order', 'table_width', 'num_columns', 'position',
|
2043 |
'beforecatlist1', 'beforecatlist2', 'beforecatlist3', 'catnameoutput', 'linkaddfrequency',
|
2044 |
+
'defaultsinglecat_cpt', 'rsspreviewcount', 'rssfeedinlinecount', 'linksperpage', 'catdescpos',
|
2045 |
'catlistdescpos', 'rsspreviewwidth', 'rsspreviewheight', 'numberofrssitems',
|
2046 |
+
'displayweblink', 'sourceweblink', 'showtelephone', 'sourcetelephone', 'showemail', 'sourceimage', 'sourcename', 'popup_width', 'popup_height', 'rssfeedinlinedayspublished', 'tooltipname', 'childcatdepthlimit', 'showcurrencyplacement', 'tooltipname', 'showupdatedpos'
|
2047 |
)
|
2048 |
as $option_name
|
2049 |
) {
|
2052 |
}
|
2053 |
}
|
2054 |
|
2055 |
+
foreach ( array( 'categorylist_cpt', 'excludecategorylist_cpt' ) as $option_name ) {
|
2056 |
if ( isset( $_POST[$option_name] ) ) {
|
2057 |
if ( $genoptions['catselectmethod'] == 'commalist' || empty( $genoptions['catselectmethod'] ) ) {
|
2058 |
$options[$option_name] = str_replace( "\"", "'", strtolower( $_POST[$option_name] ) );
|
2066 |
|
2067 |
foreach (
|
2068 |
array(
|
2069 |
+
'columnheaderoverride','linktarget', 'settingssetname', 'loadingicon',
|
2070 |
'direction', 'linkdirection', 'linkorder', 'addnewlinkmsg', 'linknamelabel', 'linkaddrlabel', 'linkrsslabel',
|
2071 |
'linkcatlabel', 'linkdesclabel', 'linknoteslabel', 'addlinkbtnlabel', 'newlinkmsg', 'moderatemsg', 'imagepos',
|
2072 |
'imageclass', 'rssfeedtitle', 'rssfeeddescription', 'showonecatmode', 'linkcustomcatlabel', 'linkcustomcatlistentry',
|
2082 |
'showaddlinkreciprocal', 'showaddlinksecondurl', 'showaddlinktelephone', 'showaddlinkemail', 'showcustomcaptcha', 'showlinksubmittername',
|
2083 |
'showaddlinksubmitteremail', 'showlinksubmittercomment', 'showuserlargedescription', 'cat_letter_filter', 'beforefirstlink', 'afterlastlink',
|
2084 |
'searchfieldtext', 'catfilterlabel', 'searchnoresultstext', 'addlinkdefaultcat', 'beforesubmittername', 'aftersubmittername',
|
2085 |
+
'beforecatdesc', 'aftercatdesc', 'displayastable', 'extraquerystring', 'emailextracontent', 'beforelinktags', 'afterlinktags', 'beforelinkprice', 'afterlinkprice', 'linkcurrency',
|
2086 |
+
'toppagetext', 'updatedlabel', 'weblinktarget', 'linktagslabel', 'showaddlinktags', 'addlinktaglistoverride', 'linkcustomtaglabel',
|
2087 |
+
'addlinkcustomtag', 'linkcustomtaglistentry'
|
2088 |
) as $option_name
|
2089 |
) {
|
2090 |
if ( isset( $_POST[$option_name] ) ) {
|
2102 |
'showlargedescription', 'addlinknoaddress', 'featuredfirst', 'usetextareaforusersubmitnotes', 'showcatonsearchresults', 'shownameifnoimage',
|
2103 |
'enable_link_popup', 'nocatonstartup', 'showlinksonclick', 'showinvisibleadmin', 'combineresults', 'showifreciprocalvalid',
|
2104 |
'cat_letter_filter_autoselect', 'cat_letter_filter_showalloption', 'emailsubmitter', 'addlinkakismet', 'rssfeedinlineskipempty',
|
2105 |
+
'current_user_links', 'showsubmittername', 'onereciprocaldomain', 'nooutputempty', 'showcatdesc', 'hidechildcatlinks',
|
2106 |
+
'hidechildcattop', 'catlinkspermalinksmode', 'showbreadcrumbspermalinks', 'showlinktags', 'showlinkprice', 'show0asfree',
|
2107 |
+
'allowcolumnsorting', 'showsearchreset', 'showscheduledlinks'
|
2108 |
)
|
2109 |
as $option_name
|
2110 |
) {
|
2136 |
update_option( $settingsname, $options );
|
2137 |
$messages[] = "1";
|
2138 |
|
2139 |
+
if ( !empty( $options['categorylist_cpt'] ) ) {
|
2140 |
+
$categoryids = explode( ',', $options['categorylist_cpt'] );
|
|
|
|
|
2141 |
|
2142 |
foreach ( $categoryids as $categoryid ) {
|
2143 |
+
$link_categories_query_args = array( 'hide_empty' => false );
|
|
|
|
|
|
|
|
|
|
|
2144 |
|
2145 |
+
$link_categories_query_args['include'] = array( $categoryid );
|
2146 |
+
$catnames = get_terms( 'link_library_category', $link_categories_query_args );
|
|
|
|
|
|
|
2147 |
|
2148 |
if ( !$catnames ) {
|
2149 |
$messages[] = '2';
|
2151 |
}
|
2152 |
}
|
2153 |
|
2154 |
+
if ( !empty( $options['excludecategorylist_cpt'] ) ) {
|
2155 |
+
$categoryids = explode( ',', $options['excludecategorylist_cpt'] );
|
2156 |
|
2157 |
foreach ( $categoryids as $categoryid ) {
|
2158 |
+
$link_categories_query_args = array( 'hide_empty' => false );
|
|
|
|
|
|
|
|
|
|
|
2159 |
|
2160 |
+
$link_categories_query_args['include'] = array( $categoryid );
|
2161 |
+
$catnames = get_terms( 'link_library_category', $link_categories_query_args );
|
|
|
|
|
|
|
2162 |
|
2163 |
if ( !$catnames ) {
|
2164 |
$messages[] = '3';
|
2171 |
|
2172 |
//lets redirect the post request into get request (you may add additional params at the url, if you need to show save results
|
2173 |
$messagelist = implode( ",", $messages );
|
2174 |
+
|
2175 |
+
$redirecturl = add_query_arg( array( 'post_type' => 'link_library_links', 'currenttab' => $_POST['currenttab'], 'page' => 'link-library-settingssets' ), admin_url( 'edit.php' ) );
|
2176 |
+
|
2177 |
+
if ( $settingsetid > 1 ) {
|
2178 |
+
$redirecturl = add_query_arg( 'settings', $settingsetid, $redirecturl );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2179 |
}
|
2180 |
|
2181 |
+
if ( isset( $row ) && $row != 0 ) {
|
2182 |
+
$redirecturl = add_query_arg( 'importrowscount', $row, $redirecturl );
|
2183 |
}
|
2184 |
|
2185 |
+
if ( isset( $successfulimport ) && $successfulimport != 0 ) {
|
2186 |
+
$redirecturl = add_query_arg( 'successimportcount', $successfulimport, $redirecturl );
|
2187 |
}
|
2188 |
|
2189 |
+
if ( isset( $successfulupdate ) && $successfulupdate != 0 ) {
|
2190 |
+
$redirecturl = add_query_arg( 'successupdatecount', $successfulupdate, $redirecturl );
|
2191 |
}
|
2192 |
|
2193 |
+
if ( !empty( $message ) ) {
|
2194 |
+
$redirecturl = add_query_arg( array( 'message' => $message ), $redirecturl );
|
2195 |
}
|
2196 |
|
2197 |
wp_redirect( $redirecturl );
|
2198 |
+
exit;
|
2199 |
}
|
2200 |
|
2201 |
//executed if the post arrives initiated by pressing the submit button of form
|
2212 |
$genoptions = get_option( 'LinkLibraryGeneral' );
|
2213 |
|
2214 |
if ( isset( $_POST['approvelinks'] ) && ( isset( $_POST['links'] ) && count( $_POST['links'] ) > 0 ) ) {
|
|
|
|
|
2215 |
$section = 'moderate';
|
2216 |
|
2217 |
foreach ( $_POST['links'] as $approved_link ) {
|
2218 |
+
$link_data = get_post( $approved_link );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2219 |
|
2220 |
+
if ( !empty( $link_data ) ) {
|
2221 |
+
wp_update_post( array( 'ID' => $approved_link, 'post_status' => 'publish' ) );
|
|
|
|
|
|
|
2222 |
}
|
2223 |
|
2224 |
+
$submitter_email = get_post_meta( $approved_link, 'link_submitter_email', true );
|
2225 |
+
$submitter_name = get_post_meta( $approved_link, 'link_submitter_name', true );
|
2226 |
+
$link_url = get_post_meta( $approved_link, 'link_url', true );
|
2227 |
|
2228 |
+
if ( $genoptions['emaillinksubmitter'] == true && !empty( $submitter_email ) ) {
|
2229 |
if ( $genoptions['usefirstpartsubmittername'] == true ) {
|
2230 |
+
$spacepos = strpos( $submitter_name, ' ' );
|
2231 |
if ( $spacepos !== false ) {
|
2232 |
+
$submitter_name = substr( $submitter_name, 0, $spacepos );
|
2233 |
}
|
2234 |
}
|
2235 |
|
2236 |
+
$emailtitle = str_replace( '%linkname%', get_the_title( $approved_link ), $genoptions['approvalemailtitle'] );
|
2237 |
$emailbody = nl2br( $genoptions['approvalemailbody'] );
|
2238 |
+
$emailbody = str_replace( '%submittername%', stripslashes( $submitter_name ), stripslashes( $emailbody ) );
|
2239 |
+
$emailbody = str_replace( '%linkname%', get_the_title( $approved_link ), $emailbody );
|
2240 |
+
$emailbody = str_replace( '%linkurl%', $link_url, $emailbody );
|
2241 |
|
2242 |
$headers = "MIME-Version: 1.0\r\n";
|
2243 |
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
|
2244 |
|
2245 |
+
if ( !empty( $genoptions['moderatorname'] ) && !empty( $genoptions['moderatoremail'] ) ) {
|
2246 |
$headers .= "From: \"" . $genoptions['moderatorname'] . "\" <" . $genoptions['moderatoremail'] . ">\n";
|
2247 |
}
|
2248 |
|
2252 |
$message .= "<br /><br />" . __( 'Message generated by', 'link-library' ) . " <a href='http://ylefebvre.ca/wordpress-plugins/link-library/'>Link Library</a> for Wordpress";
|
2253 |
}
|
2254 |
|
2255 |
+
wp_mail( $submitter_email, $emailtitle, $message, $headers );
|
2256 |
|
2257 |
+
do_action( 'link_library_approval_email', $approved_link );
|
2258 |
}
|
2259 |
}
|
2260 |
|
2261 |
$message = '1';
|
2262 |
} elseif ( isset( $_POST['deletelinks'] ) && ( isset( $_POST['links'] ) && count( $_POST['links'] ) > 0 ) ) {
|
|
|
|
|
2263 |
$section = 'moderate';
|
2264 |
|
2265 |
foreach ( $_POST['links'] as $approved_link ) {
|
2266 |
+
$link_data = get_post( $approved_link );
|
|
|
|
|
2267 |
|
2268 |
+
$submitter_email = get_post_meta( $approved_link, 'link_submitter_email', true );
|
2269 |
+
$submitter_name = get_post_meta( $approved_link, 'link_submitter_name', true );
|
2270 |
+
$link_url = get_post_meta( $approved_link, 'link_url', true );
|
2271 |
|
2272 |
+
if ( $genoptions['emaillinksubmitter'] == true && !empty( $submitter_email ) ) {
|
2273 |
+
if ( $genoptions['usefirstpartsubmittername'] == true ) {
|
2274 |
+
$spacepos = strpos( $submitter_name, ' ' );
|
2275 |
+
if ( $spacepos !== false ) {
|
2276 |
+
$submitter_name = substr( $submitter_name, 0, $spacepos );
|
2277 |
+
}
|
2278 |
+
}
|
2279 |
|
2280 |
+
$emailtitle = str_replace( '%linkname%', get_the_title( $approved_link ), $genoptions['rejectedemailtitle'] );
|
|
|
2281 |
$emailbody = nl2br( $genoptions['rejectedemailbody'] );
|
2282 |
+
$emailbody = str_replace( '%submittername%', stripslashes( $submitter_name ), stripslashes( $emailbody ) );
|
2283 |
+
$emailbody = str_replace( '%linkname%', get_the_title( $approved_link ), $emailbody );
|
2284 |
+
$emailbody = str_replace( '%linkurl%', $link_url, $emailbody );
|
2285 |
|
2286 |
$headers = "MIME-Version: 1.0\r\n";
|
2287 |
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
|
2288 |
|
2289 |
+
if ( !empty( $genoptions['moderatorname'] ) && !empty( $genoptions['moderatoremail'] ) ) {
|
2290 |
$headers .= "From: \"" . $genoptions['moderatorname'] . "\" <" . $genoptions['moderatoremail'] . ">\n";
|
2291 |
}
|
2292 |
|
2293 |
$message = $emailbody;
|
|
|
|
|
|
|
|
|
2294 |
|
2295 |
+
$message .= "<br /><br />" . __( 'Message generated by', 'link-library' ) . " <a href='http://ylefebvre.ca/wordpress-plugins/link-library/'>Link Library</a> for Wordpress";
|
2296 |
|
2297 |
+
wp_mail( $submitter_email, $emailtitle, $message, $headers );
|
2298 |
+
|
2299 |
+
do_action( 'link_library_rejection_email', $approved_link );
|
2300 |
}
|
2301 |
|
2302 |
+
wp_delete_post( $approved_link );
|
2303 |
}
|
2304 |
|
2305 |
$message = '2';
|
2306 |
}
|
2307 |
|
2308 |
+
$redirecturl = remove_query_arg( array( 'message' ), $_POST['_wp_http_referer'] );
|
2309 |
|
2310 |
+
if ( !empty( $message ) ) {
|
2311 |
+
$redirecturl = add_query_arg( 'message', $message, $redirecturl );
|
|
|
|
|
2312 |
}
|
2313 |
|
2314 |
//lets redirect the post request into get request (you may add additional params at the url, if you need to show save results
|
2315 |
wp_redirect( $redirecturl );
|
2316 |
+
exit;
|
2317 |
}
|
2318 |
|
2319 |
function on_save_changes_stylesheet() {
|
2346 |
}
|
2347 |
|
2348 |
//lets redirect the post request into get request (you may add additional params at the url, if you need to show save results
|
2349 |
+
$redirect_url = remove_query_arg( array( 'message' ), $_POST['_wp_http_referer'] );
|
2350 |
+
$redirect_url = add_query_arg( 'message', $message, $redirect_url );
|
2351 |
+
wp_redirect( $redirect_url );
|
2352 |
+
exit;
|
2353 |
}
|
2354 |
|
2355 |
function on_save_changes_reciprocal() {
|
2379 |
$message = 4;
|
2380 |
}
|
2381 |
|
|
|
|
|
|
|
|
|
|
|
|
|
2382 |
//lets redirect the post request into get request (you may add additional params at the url, if you need to show save results
|
2383 |
+
$redirect_url = remove_query_arg( array( 'message' ), $_POST['_wp_http_referer'] );
|
2384 |
+
$redirect_url = add_query_arg( 'message', $message, $redirect_url );
|
2385 |
+
wp_redirect( $redirect_url );
|
2386 |
+
exit;
|
2387 |
}
|
2388 |
|
2389 |
function general_meta_box( $data ) {
|
2398 |
<td>
|
2399 |
<input type='hidden' value='<?php echo $genoptions['schemaversion']; ?>' name='schemaversion' id='schemaversion' />
|
2400 |
<table>
|
2401 |
+
<tr>
|
2402 |
+
<td colspan="2"><h4>Link Library 6.0 Upgrade Tools</h4></td>
|
2403 |
+
</tr>
|
2404 |
+
<tr>
|
2405 |
+
<td><?php _e( 'Re-import', 'link-library' ); ?></td>
|
2406 |
+
<td><input type="submit" id="ll60reupdate" name="ll60reupdate" value="<?php _e( 'Re-import links', 'link-library' ); ?>" /></td>
|
2407 |
+
</tr>
|
2408 |
+
<tr>
|
2409 |
+
<td><?php _e( 'Category mapping table', 'link-library' ); ?></td>
|
2410 |
+
<td><input type="submit" id="ll60catmapping" name="ll60catmapping" value="<?php _e( 'Export category mapping', 'link-library' ); ?>" /></td>
|
2411 |
+
</tr>
|
2412 |
+
<tr>
|
2413 |
+
<td><?php _e( 'Delete old Link Library 5.9 Links', 'link-library' ); ?></td>
|
2414 |
+
<td><input type="submit" id="deletell59links" name="deletell59links" value="<?php _e( 'Delete old links', 'link-library' ); ?>" /></td>
|
2415 |
+
</tr>
|
2416 |
+
<tr>
|
2417 |
+
<td colspan="2"><h4>General Options</h4></td>
|
2418 |
+
</tr>
|
2419 |
<?php if ( !is_multisite() ) { ?>
|
2420 |
<tr>
|
2421 |
<td><?php _e( 'Update channel', 'link-library' ); ?></td>
|
2434 |
<tr>
|
2435 |
<td><?php _e( 'Number of Libraries', 'link-library' ); ?></td>
|
2436 |
<td>
|
2437 |
+
<input type="text" id="numberstylesets" name="numberstylesets" size="5" value="<?php echo $genoptions['numberstylesets']; ?>" />
|
2438 |
+
</td>
|
2439 |
+
</tr>
|
2440 |
+
<tr>
|
2441 |
+
<td><?php _e( 'Link Library Post Slug', 'link-library' ); ?></td>
|
2442 |
+
<td>
|
2443 |
+
<input type="text" id="cptslug" name="cptslug" size="20" value="<?php echo $genoptions['cptslug']; ?>" />
|
2444 |
+
</td>
|
2445 |
</tr>
|
2446 |
<tr>
|
2447 |
<td>Minimum role for Link Library configuration</td>
|
2491 |
<tr>
|
2492 |
<td><?php _e( 'Debug Mode', 'link-library' ); ?></td>
|
2493 |
<td>
|
2494 |
+
<input type="checkbox" id="debugmode" name="debugmode" <?php checked( $genoptions['debugmode'] ); ?>/></td>
|
|
|
|
|
2495 |
</tr>
|
2496 |
<tr>
|
2497 |
<td class="lltooltip" title="<?php _e( 'This function is only possible when showing one category at a time and while the default category is not shown.', 'link-library' ); ?>"><?php _e( 'Page Title Prefix', 'link-library' ); ?></td>
|
2597 |
<td>
|
2598 |
<input type="text" id="rsscachedelay" name="rsscachedelay" size="5" value="<?php echo intval( $genoptions['rsscachedelay'] ); ?>" /></td>
|
2599 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
2600 |
</table>
|
2601 |
</td>
|
2602 |
<?php if ( isset( $genoptions['hidedonation'] ) && !$genoptions['hidedonation'] ) { ?>
|
2603 |
+
<td style='padding: 8px; border: 1px solid #cccccc;vertical-align:top !important;'>
|
2604 |
+
<div style="width: 400px"><h3>Support the author - Second Edition</h3><br />
|
2605 |
<table>
|
2606 |
<tr>
|
2607 |
<td>
|
2608 |
<a href="http://www.packtpub.com/wordpress-plugin-development-cookbook/book"><img src='<?php echo plugins_url( 'icons/7683os_cover_small.jpg', __FILE__ ); ?>'>
|
2609 |
</td>
|
2610 |
+
<td></a>The second edition of my plugin development cookbook is now available. Learn how to create your own plugins with my book.<br /><br />Order now!<br /><br /><a href="https://www.packtpub.com/web-development/wordpress-plugin-development-cookbook-second-edition">Packt Publishing</a><br /><a href="https://amzn.to/2s1U7GP">Amazon.com</a><br /><a href="https://www.amazon.ca/WordPress-Plugin-Development-Cookbook-powerful-ebook/dp/B073V39F6X/ref=sr_1_2?ie=UTF8&qid=1526738915&sr=8-2&keywords=wordpress+plugin+development+cookbook">Amazon.ca</a>
|
2611 |
</td>
|
2612 |
</tr>
|
2613 |
</table>
|
2633 |
<?php
|
2634 |
}
|
2635 |
|
2636 |
+
function general_singleitemlayout_meta_box( $data ) {
|
2637 |
+
$genoptions = $data['genoptions'];
|
2638 |
+
?>
|
2639 |
+
<div style='padding-top:15px' id="ll-singleitem" class="content-section">
|
2640 |
+
<p>This section allows you to specify a template for individual link pages. These individual pages will be shown to visitors if you set the Link Source to Dedicated Page under the Advanced settings of Library Configurations and allow users to create a more complete internal page describing an external link, before visitors go to this external page.</p>
|
2641 |
+
<?php
|
2642 |
+
$editorsettings = array( 'media_buttons' => false,
|
2643 |
+
'textarea_rows' => 15,
|
2644 |
+
'textarea_name' => 'single_link_layout',
|
2645 |
+
'wpautop' => false );
|
2646 |
+
|
2647 |
+
wp_editor( isset( $genoptions['single_link_layout'] ) ? stripslashes( $genoptions['single_link_layout'] ) : '', 'single_link_layout', $editorsettings ); ?>
|
2648 |
+
<p>The codes that are available to put in this layout template are:</p>
|
2649 |
+
<table>
|
2650 |
+
<tr>
|
2651 |
+
<th>Tag Name</th>
|
2652 |
+
<th>Description</th>
|
2653 |
+
</tr>
|
2654 |
+
<tr>
|
2655 |
+
<td>[link_content]</td>
|
2656 |
+
<td>Text added in the new full-page content field of the link editor</td>
|
2657 |
+
</tr>
|
2658 |
+
<tr>
|
2659 |
+
<td>[link_title]</td>
|
2660 |
+
<td>The name of the link, text only</td>
|
2661 |
+
</tr>
|
2662 |
+
<tr>
|
2663 |
+
<td>[link]</td>
|
2664 |
+
<td>Link title, with link tag and link url</td>
|
2665 |
+
</tr>
|
2666 |
+
<tr>
|
2667 |
+
<td>[link_address]</td>
|
2668 |
+
<td>Link URL only, without link tag</td>
|
2669 |
+
</tr>
|
2670 |
+
<tr>
|
2671 |
+
<td>[link_description]</td>
|
2672 |
+
<td>The link description</td>
|
2673 |
+
</tr>
|
2674 |
+
<tr>
|
2675 |
+
<td>[link_large_description]</td>
|
2676 |
+
<td>The link large description</td>
|
2677 |
+
</tr>
|
2678 |
+
<tr>
|
2679 |
+
<td>[link_category]</td>
|
2680 |
+
<td>Category or categories that are assigned to link, listed in alphabetical order and separated with commas</td>
|
2681 |
+
</tr>
|
2682 |
+
<tr>
|
2683 |
+
<td>[link_image]</td>
|
2684 |
+
<td>Link image URL. You need to add img src tag or other code to display image.</td>
|
2685 |
+
</tr>
|
2686 |
+
<tr>
|
2687 |
+
<td>[link_price]</td>
|
2688 |
+
<td>Link item price</td>
|
2689 |
+
</tr>
|
2690 |
+
<tr>
|
2691 |
+
<td>[link_price_or_free]</td>
|
2692 |
+
<td>Display link price, or the word Free if the price is 0</td>
|
2693 |
+
</tr>
|
2694 |
+
</table>
|
2695 |
+
</div>
|
2696 |
+
<?php
|
2697 |
+
}
|
2698 |
+
|
2699 |
function general_image_meta_box( $data ) {
|
2700 |
$genoptions = $data['genoptions'];
|
2701 |
?>
|
2721 |
}
|
2722 |
|
2723 |
function general_meta_bookmarklet_box( $data ) {
|
2724 |
+
$bookmarkletcode = 'javascript:void(linkmanpopup=window.open(\'' . get_bloginfo( 'wpurl' ) . '/wp-admin/post-new.php?post_type=link_library_links&action=popup&linkurl=\'+escape(location.href)+\'&post_title=\'+(document.title),\'LinkManager\',\'scrollbars=yes,width=900px,height=600px,left=15,top=15,status=yes,resizable=yes\'));linkmanpopup.focus();window.focus();linkmanpopup.focus();';
|
2725 |
?>
|
2726 |
<div style='padding-top:15px' id="ll-bookmarklet" class="content-section">
|
2727 |
<p><?php _e( 'Add new links to your site with this bookmarklet.', 'link-library' ); ?></p>
|
2742 |
<strong><?php _e( 'Approval and rejection e-mail functionality will only work correctly if the submitter e-mail field is displayed on the user link submission form', 'link-library' ); ?></strong>
|
2743 |
</td>
|
2744 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
2745 |
<tr>
|
2746 |
<td class='lltooltip' title='<?php _e( 'URL that user will be redirected to after submitting new link. When used, the short code [link-library-addlinkcustommsg] should be placed on the destination page.', 'link-library' ); ?>.' style='width:250px'><?php _e( 'Link Acknowledgement URL', 'link-library' ); ?></td>
|
2747 |
<td class='lltooltip' style='width:75px;padding-right:20px' title='<?php _e( 'URL that user will be redirected to after submitting new link. When used, the short code [link-library-addlinkcustommsg] should be placed on the destination page.', 'link-library' ); ?>.'>
|
2757 |
<tr>
|
2758 |
<td class='lltooltip' title='<?php _e( 'Will send a confirmation e-mail to link submitter if they provided their contact information', 'link-library' ); ?>.' style='width:250px'><?php _e( 'E-mail submitter on link approval or rejection', 'link-library' ); ?></td>
|
2759 |
<td style='width:75px;padding-right:20px'>
|
2760 |
+
<input type="checkbox" id="emaillinksubmitter" name="emaillinksubmitter" <?php checked( $genoptions['emaillinksubmitter'] ); ?>/></td>
|
|
|
|
|
2761 |
</tr>
|
2762 |
<tr>
|
2763 |
<td class='lltooltip' style='width:250px'><?php _e( 'Suppress Link Library message in e-mail footer', 'link-library' ); ?></td>
|
2764 |
<td style='width:75px;padding-right:20px'>
|
2765 |
+
<input type="checkbox" id="suppressemailfooter" name="suppressemailfooter" <?php checked( $genoptions['suppressemailfooter'] ); ?>/></td>
|
|
|
|
|
2766 |
</tr>
|
2767 |
<tr>
|
2768 |
<td style='width:250px'><?php _e( 'Only use first part of submitter name', 'link-library' ); ?></td>
|
2769 |
<td style='width:75px;padding-right:20px'>
|
2770 |
+
<input type="checkbox" id="usefirstpartsubmittername" name="usefirstpartsubmittername" <?php checked( $genoptions['usefirstpartsubmittername'] ); ?>/></td>
|
|
|
|
|
2771 |
</tr>
|
2772 |
<tr>
|
2773 |
<td class='lltooltip' title='<?php _e( 'The name of the e-mail account that the approval e-mail will be sent from', 'link-library' ); ?>'><?php _e( 'Moderator Name', 'link-library' ); ?></td>
|
2811 |
}
|
2812 |
|
2813 |
function general_hide_donation_meta_box() {
|
2814 |
+
?>
|
2815 |
+
<div style='padding-top:15px' id="ll-hidedonation" class="content-section">
|
2816 |
<p><?php _e( 'The following option allows you to hide the Donate button and Support the Author section in the Link Library Admin pages. If you enjoy this plugin and use it regularly, please consider making a donation to the author before turning off these messages. This menu section will disappear along with the other elements.', 'link-library' ); ?></p>
|
2817 |
<table>
|
2818 |
<tr>
|
2819 |
<td class='lltooltip'><?php _e( 'Hide Donation and Support Links', 'link-library' ); ?></td>
|
2820 |
<td>
|
2821 |
+
<input type="checkbox" id="hidedonation" name="hidedonation" <?php checked( isset( $genoptions['hidedonation'] ) && $genoptions['hidedonation'] ); ?>/></td>
|
|
|
|
|
2822 |
</tr>
|
2823 |
</table>
|
2824 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2825 |
<?php
|
2826 |
}
|
2827 |
|
2828 |
+
function general_importexport_meta_box() {
|
2829 |
+
require_once plugin_dir_path( __FILE__ ) . 'wp_dropdown_posts.php';
|
2830 |
?>
|
2831 |
+
<div style='padding-top:15px' id="ll-importexport" class="content-section">
|
2832 |
+
<table>
|
2833 |
+
<tr>
|
2834 |
+
<td><?php _e( 'Export all links to a CSV file', 'link-library' ); ?></td>
|
2835 |
+
<td>
|
2836 |
+
<input type="submit" id="exportalllinks" name="exportalllinks" value="<?php _e( 'Export All Links', 'link-library' ); ?>" />
|
2837 |
+
</td>
|
2838 |
+
</tr>
|
2839 |
+
</table>
|
2840 |
+
<hr />
|
2841 |
+
<table>
|
2842 |
+
<tr>
|
2843 |
+
<td class='lltooltip' title='<?php _e( 'Allows for links to be added in batch to the Wordpress links database. CSV file needs to follow template for column layout.', 'link-library' ); ?>' style='width: 330px'><?php _e( 'CSV file to upload to import links', 'link-library' ); ?> (<a href="<?php echo plugins_url( 'importtemplate.csv', __FILE__ ); ?>"><?php _e( 'file template', 'link-library' ); ?></a>)
|
2844 |
+
</td>
|
2845 |
+
<td><input size="80" name="linksfile" type="file" /></td>
|
2846 |
+
<td><input type="submit" name="importlinks" value="<?php _e( 'Import Links from CSV', 'link-library' ); ?>" />
|
2847 |
+
</td>
|
2848 |
+
</tr>
|
2849 |
+
<tr>
|
2850 |
+
<td><?php _e( 'Update items when URL is identical', 'link-library' ); ?></td>
|
2851 |
+
<td><input type="checkbox" id="updatesameurl" name="updatesameurl" checked="checked" /></td>
|
2852 |
+
</tr>
|
2853 |
+
</table>
|
2854 |
+
<hr />
|
2855 |
+
|
2856 |
+
<table>
|
2857 |
+
<tr>
|
2858 |
+
<td style='width: 230px'><?php _e( 'Import links from site pages', 'link-library' ); ?></td>
|
2859 |
+
<td style='width: 350px'><input type="radio" name="siteimportlinksscope" value="allpagesposts" checked> <?php _e( 'All Pages and Posts', 'link-library' ); ?><br />
|
2860 |
+
<input type="radio" name="siteimportlinksscope" value="allpagespostscpt"> <?php _e( 'All Pages, Posts and Custom Post Types', 'link-library' ); ?><br />
|
2861 |
+
<input type="radio" name="siteimportlinksscope" value="specificpage"> <?php _e( 'Specific Page', 'link-library' ); ?>
|
2862 |
+
<?php wp_dropdown_pages(); ?><br />
|
2863 |
+
<?php $post_count = wp_count_posts();
|
2864 |
+
if ( $post_count->publish < 200 ) { ?>
|
2865 |
+
<input type="radio" name="siteimportlinksscope" value="specificpost"> <?php _e( 'Specific Post', 'link-library' ); ?>
|
2866 |
+
<?php wp_dropdown_posts(); ?><br />
|
2867 |
+
<?php }
|
2868 |
+
$site_post_types = get_post_types( array( '_builtin' => false ) );
|
2869 |
+
if ( !empty( $site_post_types ) ) {
|
2870 |
+
foreach( $site_post_types as $site_post_type ) {
|
2871 |
+
$any_posts = get_posts( array( 'post_type' => $site_post_type ) );
|
2872 |
+
if ( !empty( $any_posts ) && count( $any_posts ) < 200 ) {
|
2873 |
+
if ( !empty( $any_posts ) ) {
|
2874 |
+
$post_type_data = get_post_type_object( $site_post_type ); ?>
|
2875 |
+
|
2876 |
+
<input type="radio" name="siteimportlinksscope" value="specific<?php echo $site_post_type; ?>"> <?php _e( 'Specific ' . $post_type_data->labels->singular_name, 'link-library' ); ?>
|
2877 |
+
<?php wp_dropdown_posts( array( 'post_type' => $site_post_type, 'select_name' => $site_post_type . '_id' ) ); ?><br /><br />
|
2878 |
+
<?php } }
|
2879 |
+
}
|
2880 |
+
}
|
2881 |
+
?>
|
2882 |
+
<input type="checkbox" id="siteimportupdatesameurl" name="siteimportupdatesameurl" checked="checked" /> <?php _e( 'Update items when URL is identical', 'link-library' ); ?><br />
|
2883 |
+
|
2884 |
+
<?php
|
2885 |
+
|
2886 |
+
$linkcats = get_terms( 'link_library_category', array( 'hide_empty' => false ) );
|
2887 |
+
|
2888 |
+
if ( $linkcats ) { ?>
|
2889 |
+
Category for new links <select name="siteimportcat" id="siteimportcat">
|
2890 |
+
<?php foreach ( $linkcats as $linkcat ) { ?>
|
2891 |
+
<option value="<?php echo $linkcat->term_id; ?>"><?php echo $linkcat->name; ?></option>
|
2892 |
+
<?php } ?>
|
2893 |
+
</select>
|
2894 |
+
<?php } ?>
|
2895 |
+
</td>
|
2896 |
+
<td><input type="submit" name="siteimport" value="<?php _e( 'Import Links from Site', 'link-library' ); ?>" /></td>
|
2897 |
+
</tr>
|
2898 |
+
</table>
|
2899 |
+
</div>
|
2900 |
+
<?php
|
2901 |
+
}
|
2902 |
+
|
2903 |
+
function general_save_meta_box() {
|
2904 |
+
?>
|
2905 |
+
<div class="submitbox" style="padding-top: 15px">
|
2906 |
+
<input type="submit" name="submit" class="button-primary" value="<?php _e( 'Save Settings', 'link-library' ); ?>" />
|
2907 |
+
</div>
|
2908 |
+
<?php
|
2909 |
+
}
|
2910 |
+
|
2911 |
+
function settingssets_save_meta_box() {
|
2912 |
+
?>
|
2913 |
+
|
2914 |
+
<div class="submitbox">
|
2915 |
+
<input type="submit" name="submit" class="button-primary" value="<?php _e( 'Update Settings', 'link-library' ); ?>" />
|
2916 |
+
</div>
|
2917 |
+
<?php
|
2918 |
+
}
|
2919 |
+
|
2920 |
+
function moderate_meta_box() {
|
2921 |
+
$genoptions = get_option( 'LinkLibraryGeneral' );
|
2922 |
?>
|
2923 |
<table class='widefat' style='clear:none;width:100%;background-color:#F1F1F1;background-image: linear-gradient(to top, #ECECEC, #F9F9F9);background-position:initial initial;background-repeat: initial initial'>
|
2924 |
<tr>
|
2925 |
<th style='width: 30px'></th>
|
2926 |
<th style='width: 200px'><?php _e( 'Link Name', 'link-library' ); ?></th>
|
2927 |
<th style='width: 200px'><?php _e( 'Link Category', 'link-library' ); ?></th>
|
2928 |
+
<th style='width: 200px'><?php _e( 'Link Tags', 'link-library' ); ?></th>
|
2929 |
<th style='width: 300px'><?php _e( 'Link URL', 'link-library' ); ?></th>
|
2930 |
<th><?php _e( 'Link Description', 'link-library' ); ?></th>
|
2931 |
</tr>
|
2932 |
+
<?php
|
2933 |
+
$links_query_args = array( 'post_type' => 'link_library_links', 'posts_per_page' => -1, 'post_status' => 'pending' );
|
2934 |
+
|
2935 |
+
$links_to_export = new WP_Query( $links_query_args );
|
2936 |
+
|
2937 |
+
if ( $links_to_export->have_posts() ) {
|
2938 |
+
while ( $links_to_export->have_posts() ) {
|
2939 |
+
$links_to_export->the_post();
|
2940 |
+
|
2941 |
+
$link_url = esc_url( get_post_meta( get_the_ID(), 'link_url', true ) );
|
2942 |
+
$link_description = esc_html( get_post_meta( get_the_ID(), 'link_description', true ) );
|
2943 |
+
$link_categories = wp_get_post_terms( get_the_ID(), 'link_library_category' );
|
2944 |
+
$link_cat_string = '';
|
2945 |
+
if ( !empty( $link_categories ) ) {
|
2946 |
+
$link_cat_array = array();
|
2947 |
+
foreach ( $link_categories as $link_category ) {
|
2948 |
+
$link_cat_array[] = $link_category->name;
|
2949 |
+
}
|
2950 |
+
if ( !empty( $link_cat_array ) ) {
|
2951 |
+
$link_cat_string = implode( ', ', $link_cat_array );
|
2952 |
+
}
|
2953 |
+
} else {
|
2954 |
+
$link_cat_string = 'None Assigned';
|
2955 |
+
}
|
|
|
|
|
|
|
|
|
2956 |
|
2957 |
+
$link_tags = wp_get_post_terms( get_the_ID(), 'link_library_tags' );
|
2958 |
+
$link_tags_string = '';
|
2959 |
+
if ( !empty( $link_tags ) ) {
|
2960 |
+
$link_tags_array = array();
|
2961 |
+
foreach ( $link_tags as $link_tag ) {
|
2962 |
+
$link_tags_array[] = $link_tag->name;
|
2963 |
+
}
|
2964 |
+
if ( !empty( $link_tags_array ) ) {
|
2965 |
+
$link_tags_string = implode( ', ', $link_tags_array );
|
2966 |
+
}
|
2967 |
+
} else {
|
2968 |
+
$link_tags_string = 'None Assigned';
|
2969 |
}
|
2970 |
+
|
2971 |
?>
|
2972 |
<tr style='background: #FFF'>
|
2973 |
+
<td><input type="checkbox" name="links[]" value="<?php echo get_the_ID(); ?>" /></td>
|
2974 |
+
<td><?php echo "<a title='Edit Link: " . get_the_title() . "' href='" . esc_url( add_query_arg( array( 'action' => 'edit', 'post' => get_the_ID() ), admin_url( 'post.php' ) ) ) . "'>" . get_the_title() . "</a>"; ?></td>
|
2975 |
+
<td><?php echo $link_cat_string; ?></td>
|
2976 |
+
<td><?php echo $link_tags_string; ?></td>
|
2977 |
+
<td><?php echo "<a href='" . $link_url . "'>" . $link_url . "</a>"; ?></td>
|
2978 |
+
<td><?php echo $link_description; ?></td>
|
2979 |
</tr>
|
2980 |
+
<?php
|
2981 |
}
|
2982 |
} else {
|
2983 |
?>
|
2987 |
<td></td>
|
2988 |
<td></td>
|
2989 |
</tr>
|
2990 |
+
<?php }
|
2991 |
+
|
2992 |
+
wp_reset_postdata();
|
2993 |
+
?>
|
2994 |
|
2995 |
</table><br />
|
2996 |
<input type="button" id="CheckAll" value="<?php _e( 'Check All', 'link-library' ); ?>">
|
3040 |
<div>
|
3041 |
<?php _e( 'Select Current Library Settings', 'link-library' ); ?> :
|
3042 |
<SELECT id="settingsetlist" name="settingsetlist" style='width: 300px'>
|
3043 |
+
<?php if ( empty( $genoptions['numberstylesets'] ) ) {
|
3044 |
$numberofsets = 1;
|
3045 |
} else {
|
3046 |
$numberofsets = $genoptions['numberstylesets'];
|
3061 |
<?php $tempoptionname = "LinkLibraryPP" . $counter;
|
3062 |
$tempoptions = get_option( $tempoptionname );
|
3063 |
if ( $counter != $settings ):?>
|
3064 |
+
<option value="<?php echo $counter ?>" <?php selected( $settings == $counter ); ?>><?php _e( 'Library', 'link-library' ); ?> <?php echo $counter ?><?php if ( $tempoptions != "" ) {
|
3065 |
echo " (" . stripslashes( $tempoptions['settingssetname'] ) . ")";
|
3066 |
} ?></option>
|
3067 |
<?php endif;
|
3093 |
<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' ); ?>'>
|
3094 |
<?php _e( 'Code to insert on a Wordpress page', 'link-library' ); ?>
|
3095 |
</th>
|
3096 |
+
<th>Optional Parameters</th>
|
3097 |
</tr>
|
3098 |
</thead>
|
3099 |
<tr>
|
3101 |
<td style='background: #FFF'><?php echo stripslashes( $options['settingssetname'] ); ?></a></td>
|
3102 |
<td style='background: #FFF'><?php _e( 'Display basic link library', 'link-library' ); ?></td>
|
3103 |
<td style='background: #FFF'><?php echo "[link-library settings=" . $settings . "]"; ?></td>
|
3104 |
+
<td style='background: #FFF'><table style="padding-left:16px;">
|
3105 |
+
<tr>
|
3106 |
+
<td><strong>Parameter</strong></td><td><strong>Description</strong></td>
|
3107 |
+
</tr>
|
3108 |
+
<tr>
|
3109 |
+
<td>[link-library settings="<?php echo $settings; ?>" categorylistoverride="28"]</td>
|
3110 |
+
<td>Overrides the list of categories to be displayed in the link list, comma-separated list of category IDs</td>
|
3111 |
+
</tr>
|
3112 |
+
<tr>
|
3113 |
+
<td>[link-library settings="<?php echo $settings; ?>" excludecategoryoverride="28"]</td>
|
3114 |
+
<td>Overrides the list of categories to be excluded in the link list, comma-separated list of category IDs</td>
|
3115 |
+
</tr>
|
3116 |
+
<tr>
|
3117 |
+
<td>[link-library settings="<?php echo $settings; ?>" notesoverride=0]</td>
|
3118 |
+
<td>Set to 0 or 1 to display or not display link notes</td>
|
3119 |
+
</tr>
|
3120 |
+
<tr>
|
3121 |
+
<td>[link-library settings="<?php echo $settings; ?>" descoverride=0]</td>
|
3122 |
+
<td>Set to 0 or 1 to display or not display link descriptions</td>
|
3123 |
+
</tr>
|
3124 |
+
<tr>
|
3125 |
+
<td>[link-library settings="<?php echo $settings; ?>" rssoverride=0]</td>
|
3126 |
+
<td>Set to 0 or 1 to display or not display rss information</td>
|
3127 |
+
</tr>
|
3128 |
+
<tr>
|
3129 |
+
<td>[link-library settings="<?php echo $settings; ?>" tableoverride=0]</td>
|
3130 |
+
<td>Set to 0 or 1 to display links in an unordered list or a table</td>
|
3131 |
+
</tr>
|
3132 |
+
</table></td>
|
3133 |
</tr>
|
3134 |
<tr>
|
3135 |
<td style='background: #FFF'></td>
|
3136 |
<td style='background: #FFF'></td>
|
3137 |
<td style='background: #FFF'><?php _e( 'Display list of link categories', 'link-library' ); ?></td>
|
3138 |
<td style='background: #FFF'><?php echo "[link-library-cats settings=" . $settings . "]"; ?></td>
|
3139 |
+
<td style='background: #FFF'>
|
3140 |
+
<table style="padding-left:16px;">
|
3141 |
+
<tr>
|
3142 |
+
<td><strong>Parameter</strong></td><td><strong>Description</strong></td>
|
3143 |
+
</tr>
|
3144 |
+
<tr>
|
3145 |
+
<td>[link-library-cats settings="<?php echo $settings; ?>" categorylistoverride="28"]</td>
|
3146 |
+
<td>Overrides the list of categories to be displayed in the category list, comma-separated list of category IDs</td>
|
3147 |
+
</tr>
|
3148 |
+
<tr>
|
3149 |
+
<td>[link-library-cats settings="<?php echo $settings; ?>" excludecategoryoverride="28"]</td>
|
3150 |
+
<td>Overrides the list of categories to be excluded in the category list, comma-separated list of category IDs</td>
|
3151 |
+
</tr>
|
3152 |
+
</table>
|
3153 |
+
</td>
|
3154 |
</tr>
|
3155 |
<tr>
|
3156 |
<td style='background: #FFF'></td>
|
3157 |
<td style='background: #FFF'></td>
|
3158 |
<td style='background: #FFF'><?php _e( 'Display search box', 'link-library' ); ?></td>
|
3159 |
<td style='background: #FFF'><?php echo "[link-library-search settings=" . $settings . "]"; ?></td>
|
3160 |
+
<td style='background: #FFF'></td>
|
3161 |
</tr>
|
3162 |
<tr>
|
3163 |
<td style='background: #FFF'></td>
|
3164 |
<td style='background: #FFF'></td>
|
3165 |
<td style='background: #FFF'><?php _e( 'Display link submission form', 'link-library' ); ?></td>
|
3166 |
<td style='background: #FFF'><?php echo "[link-library-addlink settings=" . $settings . "]"; ?></td>
|
3167 |
+
<td style='background: #FFF'></td>
|
3168 |
+
</tr>
|
3169 |
+
<tr>
|
3170 |
+
<td style='background: #FFF'></td>
|
3171 |
+
<td style='background: #FFF'></td>
|
3172 |
+
<td style='background: #FFF'><?php _e( 'Display count of links in a library', 'link-library' ); ?></td>
|
3173 |
+
<td style='background: #FFF'><?php echo "[link-library-count settings=" . $settings . "]"; ?></td>
|
3174 |
+
<td style='background: #FFF'></td>
|
3175 |
</tr>
|
3176 |
</table>
|
3177 |
<table>
|
3187 |
<?php
|
3188 |
}
|
3189 |
|
3190 |
+
function render_category_list( $categories, $select_name, $depth, $selected_items, $order ) {
|
3191 |
+
|
3192 |
+
$output = '';
|
3193 |
+
if ( !empty( $categories ) ) {
|
3194 |
+
if ( 0 == $depth ) {
|
3195 |
+
$output .= '<select style="width:100%" id="' . $select_name . '" name="' . $select_name . '[]" multiple ';
|
3196 |
+
if ( 1 == count( $selected_items ) && empty( $selected_items[0] ) ) {
|
3197 |
+
$output .= 'disabled';
|
3198 |
+
}
|
3199 |
+
$output .= '>';
|
3200 |
+
}
|
3201 |
+
|
3202 |
+
foreach ( $categories as $category ) {
|
3203 |
+
$output .= '<option value="' . $category->term_id . '" ' . selected( in_array( $category->term_id, $selected_items ), true, false ) . ' >' . str_repeat( ' ', 4 * $depth ) . $category->name . '</option>';
|
3204 |
+
$child_categories = get_terms( 'link_library_category', array( 'orderby' => 'name', 'parent' => $category->term_id, 'order' => $order, 'hide_empty' => false ) );
|
3205 |
+
|
3206 |
+
if ( !empty( $child_categories ) ) {
|
3207 |
+
$output .= $this->render_category_list( $child_categories, $select_name, $depth + 1, $selected_items, $order );
|
3208 |
+
}
|
3209 |
+
}
|
3210 |
+
|
3211 |
+
if ( 0 == $depth ) {
|
3212 |
+
$output .= '</select>';
|
3213 |
+
}
|
3214 |
+
|
3215 |
+
} else {
|
3216 |
+
$output .= _e( 'No link categories! Create some!', 'link-library' );
|
3217 |
+
}
|
3218 |
+
|
3219 |
+
return $output;
|
3220 |
+
}
|
3221 |
+
|
3222 |
function settingssets_common_meta_box( $data ) {
|
3223 |
$options = $data['options'];
|
3224 |
$settings = $data['settings'];
|
3246 |
</td>
|
3247 |
<?php if ( $genoptions['catselectmethod'] == 'commalist' || empty( $genoptions['catselectmethod'] ) ) { ?>
|
3248 |
<td class="lltooltip" title="<?php _e( 'Leave Empty to see all categories', 'link-library' ); ?><br /><br /><?php _e( 'Enter list of comma-separated', 'link-library' ); ?><br /><?php _e( 'numeric category IDs', 'link-library' ); ?><br /><br /><?php _e( 'For example', 'link-library' ); ?>: 2,4,56">
|
3249 |
+
<input type="text" id="categorylist_cpt" name="categorylist_cpt" size="40" value="<?php echo $options['categorylist_cpt']; ?>" />
|
3250 |
</td>
|
3251 |
<?php
|
3252 |
} else {
|
3253 |
+
$top_categories = get_terms( 'link_library_category', array( 'orderby' => 'name', 'order' => $options['direction'], 'parent' => 0, 'hide_empty' => false ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3254 |
|
3255 |
+
$categorylistarray = explode( ',', $options['categorylist_cpt'] );
|
|
|
|
|
3256 |
?>
|
3257 |
<td>
|
3258 |
+
<?php echo $this->render_category_list( $top_categories, 'categorylist_cpt', 0, $categorylistarray, $options['direction'] ); ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3259 |
<?php _e( 'Show all categories', 'link-library' ); ?>
|
3260 |
+
<input type="checkbox" id="nospecificcats" name="nospecificcats" <?php checked( empty( $options['categorylist_cpt'] ) ); ?>/>
|
|
|
|
|
3261 |
|
3262 |
</td>
|
3263 |
<?php } ?>
|
3268 |
</td>
|
3269 |
<?php if ( $genoptions['catselectmethod'] == 'commalist' || empty( $genoptions['catselectmethod'] ) ) { ?>
|
3270 |
<td class="lltooltip" title="<?php _e( 'Enter list of comma-separated', 'link-library' ); ?><br /><?php _e( 'numeric category IDs that should not be shown', 'link-library' ); ?><br /><br /><?php _e( 'For example', 'link-library' ); ?>: 5,34,43">
|
3271 |
+
<input type="text" id="excludecategorylist_cpt" name="excludecategorylist_cpt" size="40" value="<?php echo $options['excludecategorylist_cpt']; ?>" />
|
3272 |
</td>
|
3273 |
<?php
|
3274 |
} else {
|
3275 |
+
$excludecategorylistarray = explode( ',', $options['excludecategorylist_cpt'] );
|
3276 |
?>
|
3277 |
<td>
|
3278 |
+
<?php echo $this->render_category_list( $top_categories, 'excludecategorylist_cpt', 0, $excludecategorylistarray, $options['direction'] ); ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3279 |
<?php _e( 'No Exclusions', 'link-library' ); ?>
|
3280 |
+
<input type="checkbox" id="noexclusions" name="noexclusions" <?php checked( empty( $options['excludecategorylist_cpt'] ) ); ?>/>
|
|
|
|
|
3281 |
|
3282 |
</td>
|
3283 |
<?php } ?>
|
3287 |
<?php _e( 'Only show one category at a time', 'link-library' ); ?>
|
3288 |
</td>
|
3289 |
<td class="lltooltip" title="<?php _e( 'Only show one category of links at a time', 'link-library' ); ?>">
|
3290 |
+
<input type="checkbox" id="showonecatonly" name="showonecatonly" <?php checked( $options['showonecatonly'] ); ?>/>
|
|
|
|
|
3291 |
</td>
|
3292 |
<td style='width: 200px' class="lltooltip" title="<?php _e( 'Select if AJAX should be used to only reload the list of links without reloading the whole page or HTML GET to reload entire page with a new link. The Permalinks option must be enabled for HTML GET + Permalink to work correctly.', 'link-library' ); ?>"><?php _e( 'Switching Method', 'link-library' ); ?></td>
|
3293 |
<td>
|
3294 |
<select name="showonecatmode" id="showonecatmode" style="width:200px;">
|
3295 |
+
<option value="AJAX"<?php selected( $options['showonecatmode'] == 'AJAX' || empty( $options['showonecatmode'] ) ); ?>>AJAX
|
|
|
|
|
3296 |
</option>
|
3297 |
+
<option value="HTMLGET"<?php selected( $options['showonecatmode'] == 'HTMLGET' ); ?>>HTML GET
|
|
|
|
|
3298 |
</option>
|
3299 |
+
<option value="HTMLGETSLUG"<?php selected( $options['showonecatmode'] == 'HTMLGETSLUG' ); ?>>HTML GET Using Slugs
|
|
|
|
|
3300 |
</option>
|
3301 |
+
<option value="HTMLGETCATNAME"<?php selected( $options['showonecatmode'] == 'HTMLGETCATNAME' ); ?>>HTML GET Using Category Name
|
|
|
|
|
3302 |
</option>
|
3303 |
+
<option value="HTMLGETPERM"<?php selected( $options['showonecatmode'] == 'HTMLGETPERM' ); ?>>HTML GET + Permalink
|
|
|
|
|
3304 |
</option>
|
3305 |
</select>
|
3306 |
</td>
|
3310 |
<?php _e( 'Default category to be shown when only showing one at a time (numeric ID)', 'link-library' ); ?>
|
3311 |
</td>
|
3312 |
<td>
|
3313 |
+
<input type="text" id="defaultsinglecat_cpt" name="defaultsinglecat_cpt" size="4" value="<?php echo $options['defaultsinglecat_cpt']; ?>" />
|
3314 |
</td>
|
3315 |
+
<td><?php _e( 'Hide category on start in single cat mode', 'link-library' ); ?></td>
|
3316 |
<td>
|
3317 |
+
<input type="checkbox" id="nocatonstartup" name="nocatonstartup" <?php checked( $options['nocatonstartup'] ); ?>/></td>
|
|
|
|
|
3318 |
</tr>
|
3319 |
<tr>
|
3320 |
<td class="lltooltip" title="<?php _e( 'File path is relative to Link Library plugin directory', 'link-library' ); ?>">
|
3321 |
<?php _e( 'Icon to display when performing AJAX queries', 'link-library' ); ?>
|
3322 |
</td>
|
3323 |
<td class="lltooltip" title="<?php _e( 'File path is relative to Link Library plugin directory', 'link-library' ); ?>">
|
3324 |
+
<input type="text" id="loadingicon" name="loadingicon" size="40" value="<?php if ( empty( $options['loadingicon'] ) ) {
|
3325 |
echo '/icons/Ajax-loader.gif';
|
3326 |
} else {
|
3327 |
echo strval( $options['loadingicon'] );
|
3333 |
<?php _e( 'Paginate Results', 'link-library' ); ?>
|
3334 |
</td>
|
3335 |
<td class="lltooltip" title='<?php _e( 'Only show a limited number of links and add page navigation links', 'link-library' ); ?>'>
|
3336 |
+
<input type="checkbox" id="pagination" name="pagination" <?php checked( $options['pagination'] ); ?>/>
|
|
|
|
|
3337 |
</td>
|
3338 |
<td class="lltooltip" title="<?php _e( 'Number of Links to be Displayed per Page in Pagination Mode', 'link-library' ); ?>">
|
3339 |
<?php _e( 'Links per Page', 'link-library' ); ?>
|
3348 |
</td>
|
3349 |
<td>
|
3350 |
<select name="paginationposition" id="paginationposition" style="width:200px;">
|
3351 |
+
<option value="AFTER"<?php selected( $options['paginationposition'] == 'AFTER' || empty( $options['paginationposition'] ) ); ?>><?php _e( 'After Links', 'link-library' ); ?></option>
|
3352 |
+
<option value="BEFORE"<?php selected( $options['paginationposition'] == 'BEFORE' ); ?>><?php _e( 'Before Links', 'link-library' ); ?></option>
|
|
|
|
|
|
|
|
|
3353 |
</select>
|
3354 |
</td>
|
3355 |
<td>
|
3356 |
<?php _e( 'Hide Results if Empty', 'link-library' ); ?>
|
3357 |
</td>
|
3358 |
<td>
|
3359 |
+
<input type="checkbox" id="hide_if_empty" name="hide_if_empty" <?php checked( $options['hide_if_empty'] ); ?>/>
|
|
|
|
|
3360 |
</td>
|
3361 |
</tr>
|
3362 |
+
<tr>
|
3363 |
+
<td colspan="4"><hr /></td>
|
3364 |
+
</tr>
|
3365 |
<tr>
|
3366 |
<td>
|
3367 |
<?php _e( 'Enable Permalinks', 'link-library' ); ?>
|
3368 |
</td>
|
3369 |
<td>
|
3370 |
+
<input type="checkbox" id="enablerewrite" name="enablerewrite" <?php checked( $options['enablerewrite'] ); ?>/>
|
|
|
|
|
3371 |
</td>
|
3372 |
<td>
|
3373 |
<?php _e( 'Permalinks Page', 'link-library' ); ?>
|
3376 |
<input type="text" id="rewritepage" name="rewritepage" size="40" value="<?php echo $options['rewritepage']; ?>" />
|
3377 |
</td>
|
3378 |
</tr>
|
3379 |
+
<tr>
|
3380 |
+
<td>
|
3381 |
+
<?php _e( 'Permalink Top Page Text', 'link-library' ); ?>
|
3382 |
+
</td>
|
3383 |
+
<td colspan="3" rows="8" cols="50">
|
3384 |
+
<textarea name="toppagetext" style="width:90%"><?php echo $options['toppagetext']; ?></textarea>
|
3385 |
+
</td>
|
3386 |
+
</tr>
|
3387 |
+
<tr>
|
3388 |
+
<td>
|
3389 |
+
<?php _e( 'Category links in permalinks mode', 'link-library' ); ?>
|
3390 |
+
</td>
|
3391 |
+
<td>
|
3392 |
+
<input type="checkbox" id="catlinkspermalinksmode" name="catlinkspermalinksmode" <?php checked( $options['catlinkspermalinksmode'] ); ?>/>
|
3393 |
+
</td>
|
3394 |
+
<td>
|
3395 |
+
<?php _e( 'Show breadcrumbs in permalinks mode', 'link-library' ); ?>
|
3396 |
+
</td>
|
3397 |
+
<td>
|
3398 |
+
<input type="checkbox" id="showbreadcrumbspermalinks" name="showbreadcrumbspermalinks" <?php checked( $options['showbreadcrumbspermalinks'] ); ?>/>
|
3399 |
+
</td>
|
3400 |
+
</tr>
|
3401 |
+
<tr>
|
3402 |
+
<td colspan="4"><hr /></td>
|
3403 |
+
</tr>
|
3404 |
<tr>
|
3405 |
<td><?php _e( 'Display alphabetic cat filter', 'link-library' ); ?></td>
|
3406 |
<td><?php $letterfilteroptions = array( 'no' => __( 'Do not display', 'link-library' ), 'beforecats' => __( 'Before Categories', 'link-library' ), 'beforelinks' => __( 'Before Links', 'link-library' ), 'beforecatsandlinks' => __( 'Before Categories and Links', 'link-library' ) ); ?>
|
3431 |
jQuery(document).ready(function () {
|
3432 |
jQuery('#nospecificcats').click(function () {
|
3433 |
if (jQuery("#nospecificcats").is(":checked")) {
|
3434 |
+
jQuery('#categorylist_cpt').prop('disabled', 'disabled');
|
3435 |
+
jQuery("#categorylist_cpt").val([]);
|
3436 |
}
|
3437 |
else {
|
3438 |
+
jQuery('#categorylist_cpt').prop('disabled', false);
|
3439 |
}
|
3440 |
});
|
3441 |
});
|
3443 |
jQuery(document).ready(function () {
|
3444 |
jQuery('#noexclusions').click(function () {
|
3445 |
if (jQuery("#noexclusions").is(":checked")) {
|
3446 |
+
jQuery('#excludecategorylist_cpt').prop('disabled', 'disabled');
|
3447 |
+
jQuery("#excludecategorylist_cpt").val([]);
|
3448 |
}
|
3449 |
else {
|
3450 |
+
jQuery('#excludecategorylist_cpt').prop('disabled', false);
|
3451 |
}
|
3452 |
});
|
3453 |
});
|
3469 |
</td>
|
3470 |
<td>
|
3471 |
<select name="order" id="order" style="width:200px;">
|
3472 |
+
<option value="name"<?php selected( $options['order'] == 'name' ); ?>><?php _e( 'Order by Name', 'link-library' ); ?></option>
|
3473 |
+
<option value="id"<?php selected( $options['order'] == 'id' ); ?>><?php _e( 'Order by ID', 'link-library' ); ?></option>
|
|
|
|
|
|
|
|
|
3474 |
<?php if ( $genoptions['catselectmethod'] == 'commalist' || empty( $genoptions['catselectmethod'] ) ) { ?>
|
3475 |
+
<option value="catlist"<?php selected( $options['order'] == 'catlist' ); ?>><?php _e( 'Order of categories based on included category list', 'link-library' ); ?></option>
|
|
|
|
|
3476 |
<?php } ?>
|
|
|
|
|
|
|
3477 |
</select>
|
3478 |
</td>
|
3479 |
<td style='width:100px'></td>
|
3502 |
<input type="checkbox" id="showcatonsearchresults" name="showcatonsearchresults" <?php checked( $options['showcatonsearchresults'] ); ?>/></td>
|
3503 |
</tr>
|
3504 |
<tr>
|
3505 |
+
<td class="lltooltip">
|
3506 |
<?php _e( 'Direction', 'link-library' ); ?>
|
3507 |
</td>
|
3508 |
+
<td class="lltooltip">
|
3509 |
<select name="direction" id="direction" style="width:100px;">
|
3510 |
<option value="ASC"<?php selected( $options['direction'] == 'ASC' ); ?>><?php _e( 'Ascending', 'link-library' ); ?></option>
|
3511 |
<option value="DESC"<?php selected( $options['direction'] == 'DESC' ); ?>><?php _e( 'Descending', 'link-library' ); ?></option>
|
3621 |
<select name="linkorder" id="linkorder" style="width:250px;">
|
3622 |
<option value="name"<?php selected( $options['linkorder'] == 'name' ); ?>><?php _e( 'Order by Name', 'link-library' ); ?></option>
|
3623 |
<option value="id"<?php selected ( $options['linkorder'] == 'id' ); ?>><?php _e( 'Order by ID', 'link-library' ); ?></option>
|
|
|
3624 |
<option value="random"<?php selected( $options['linkorder'] == 'random' ); ?>><?php _e( 'Order randomly', 'link-library' ); ?></option>
|
3625 |
<option value="date"<?php selected( $options['linkorder'] == 'date' ); ?>><?php _e( 'Order by updated date', 'link-library' ); ?></option>
|
3626 |
<option value="hits"<?php selected( $options['linkorder'] == 'hits' ); ?>><?php _e( 'Order by number of link visits', 'link-library' ); ?></option>
|
3631 |
<?php _e( 'Show Category Description', 'link-library' ); ?>
|
3632 |
</td>
|
3633 |
<td class="lltooltip" title="<?php _e( 'Use [ and ] in the description to perform special actions using HTML such as inserting images instead of < and >', 'link-library' ); ?>">
|
3634 |
+
<input type="checkbox" id="showcategorydesclinks" name="showcategorydesclinks" <?php checked( $options['showcategorydesclinks'] ); ?>/>
|
|
|
|
|
3635 |
<span style='margin-left: 17px'><?php _e( 'Position', 'link-library' ); ?>:</span>
|
3636 |
<select name="catdescpos" id="catdescpos" style="width:100px;">
|
3637 |
<option value="right"<?php selected( $options['catdescpos'] == 'right' ); ?>><?php _e( 'Right', 'link-library' ); ?></option>
|
3638 |
<option value="left"<?php selected( $options['catdescpos'] == 'left' ); ?>><?php _e( 'Left', 'link-library' ); ?></option>
|
3639 |
+
<option value="aftercatname"<?php selected( $options['catdescpos'] == 'aftercatname' ); ?>><?php _e( 'After Category Name', 'link-library' ); ?></option>
|
3640 |
+
<option value="aftertoplevelcatname"<?php selected( $options['catdescpos'] == 'aftertoplevelcatname' ); ?>><?php _e( 'After Top-Level Category Name', 'link-library' ); ?></option>
|
3641 |
</select>
|
3642 |
</td>
|
3643 |
</tr>
|
3672 |
</td>
|
3673 |
</tr>
|
3674 |
<tr>
|
3675 |
+
<td class="lltooltip">
|
3676 |
<?php _e( 'Direction', 'link-library' ); ?>
|
3677 |
</td>
|
3678 |
+
<td class="lltooltip">
|
3679 |
<select name="linkdirection" id="linkdirection" style="width:200px;">
|
3680 |
<option value="ASC"<?php selected( $options['linkdirection'] == 'ASC' ); ?>><?php _e( 'Ascending', 'link-library' ); ?></option>
|
3681 |
<option value="DESC"<?php selected( $options['linkdirection'] == 'DESC' ); ?>><?php _e( 'Descending', 'link-library' ); ?></option>
|
3698 |
</td>
|
3699 |
<td></td>
|
3700 |
<td>
|
3701 |
+
<?php
|
3702 |
+
_e( 'Link Display Format', 'link-library' );
|
3703 |
+
|
3704 |
+
$display_as_table = 'false';
|
3705 |
+
|
3706 |
+
if ( is_bool( $options['displayastable'] ) && $options['displayastable'] ) {
|
3707 |
+
$display_as_table = 'true';
|
3708 |
+
} elseif( is_bool( $options['displayastable'] ) && !$options['displayastable'] ) {
|
3709 |
+
$display_as_table = 'false';
|
3710 |
+
} elseif ( in_array( $options['displayastable'], array( 'true', 'false', 'nosurroundingtags' ) ) ) {
|
3711 |
+
$display_as_table = $options['displayastable'];
|
3712 |
+
}
|
3713 |
+
?>
|
3714 |
</td>
|
3715 |
<td>
|
3716 |
<select name="displayastable" id="displayastable" style="width:200px;">
|
3717 |
+
<option value="true"<?php selected( $display_as_table === 'true' ); ?>><?php _e( 'Table', 'link-library' ); ?></option>
|
3718 |
+
<option value="false"<?php selected( $display_as_table === 'false' ); ?>><?php _e( 'Unordered List', 'link-library' ); ?></option>
|
3719 |
+
<option value="nosurroundingtags"<?php selected( $display_as_table, 'nosurroundingtags' ); ?>><?php _e( 'No surrounding tags', 'link-library' ); ?></option>
|
3720 |
</select>
|
3721 |
</td>
|
3722 |
</tr>
|
3727 |
<td class="lltooltip" title="<?php _e( 'Allows extra query string to be added to all links in library', 'link-library' ); ?>">
|
3728 |
<input type="text" id="extraquerystring" name="extraquerystring" size="40" value="<?php echo $options['extraquerystring']; ?>" />
|
3729 |
</td>
|
3730 |
+
<td></td>
|
3731 |
+
<td>
|
3732 |
+
<?php _e( 'Show Scheduled Links (published with future date)', 'link-library' ); ?>
|
3733 |
+
</td>
|
3734 |
+
<td>
|
3735 |
+
<input type="checkbox" id="showscheduledlinks" name="showscheduledlinks" <?php checked( $options['showscheduledlinks'] ); ?>/>
|
3736 |
+
</td>
|
3737 |
</tr>
|
3738 |
<tr>
|
3739 |
<td>
|
3744 |
</td>
|
3745 |
<td></td>
|
3746 |
<td>
|
3747 |
+
<?php _e( 'Column Headers Override', 'link-library' ); ?>
|
3748 |
+
</td>
|
3749 |
+
<td>
|
3750 |
+
<input class="lltooltip" title="<?php _e( 'Comma-separated list of column header labels', 'link-library' ); ?>" type="text" id="columnheaderoverride" name="columnheaderoverride" size="40" value="<?php echo $options['columnheaderoverride']; ?>" />
|
3751 |
+
</td>
|
3752 |
+
</td>
|
3753 |
+
</tr>
|
3754 |
+
<tr>
|
3755 |
+
<td>
|
3756 |
+
<?php _e( 'Allow sorting through column headers', 'link-library' ); ?>
|
3757 |
</td>
|
3758 |
<td>
|
3759 |
+
<input type="checkbox" id="allowcolumnsorting" name="allowcolumnsorting" <?php checked( $options['allowcolumnsorting'] ); ?>/>
|
3760 |
</td>
|
3761 |
</tr>
|
3762 |
<tr>
|
3763 |
<td>
|
3764 |
+
<?php _e( 'Hide Category Names', 'link-library' ); ?>
|
3765 |
</td>
|
3766 |
<td>
|
3767 |
+
<input type="checkbox" id="hidecategorynames" name="hidecategorynames" <?php checked( $options['hidecategorynames'] ); ?>/>
|
3768 |
</td>
|
3769 |
<td></td>
|
3770 |
<td>
|
3771 |
+
<?php _e( 'Show Hidden Links', 'link-library' ); ?>
|
3772 |
</td>
|
3773 |
<td>
|
3774 |
+
<input type="checkbox" id="showinvisible" name="showinvisible" <?php checked( $options['showinvisible'] ); ?>/>
|
3775 |
</td>
|
3776 |
</tr>
|
3777 |
<tr>
|
3778 |
<td>
|
3779 |
+
<?php _e( 'Hide links of children categories', 'link-library' ); ?>
|
3780 |
</td>
|
3781 |
<td>
|
3782 |
+
<input type="checkbox" id="hidechildcatlinks" name="hidechildcatlinks" <?php checked( $options['hidechildcatlinks'] ); ?>/>
|
3783 |
</td>
|
3784 |
<td></td>
|
3785 |
<td>
|
3786 |
+
<?php _e( 'Child category depth limit', 'link-library' ); ?>
|
3787 |
</td>
|
3788 |
<td>
|
3789 |
+
<input type="text" id="childcatdepthlimit" name="childcatdepthlimit" size="2" value="<?php echo $options['childcatdepthlimit']; ?>" />
|
3790 |
+
</td>
|
3791 |
+
</tr>
|
3792 |
+
<tr>
|
3793 |
+
<td>
|
3794 |
+
<?php _e( 'Hide children categories on top page', 'link-library' ); ?>
|
3795 |
+
</td>
|
3796 |
+
<td>
|
3797 |
+
<input type="checkbox" id="hidechildcattop" name="hidechildcattop" <?php checked( $options['hidechildcattop'] ); ?>/>
|
3798 |
</td>
|
3799 |
</tr>
|
3800 |
<tr>
|
3826 |
<?php _e( 'Arrange the items below via drag-and-drop to order the various Link Library elements.', 'link-library' ); ?>
|
3827 |
<br /><br />
|
3828 |
<ul id="sortable">
|
3829 |
+
<?php if ( empty( $options['dragndroporder'] ) ) {
|
3830 |
+
$dragndroporder = '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16';
|
3831 |
} else {
|
3832 |
$dragndroporder = $options['dragndroporder'];
|
3833 |
}
|
3834 |
+
|
3835 |
$dragndroparray = explode( ',', $dragndroporder );
|
3836 |
|
3837 |
+
$new_entries = array( '13', '14', '15', '16' );
|
|
|
|
|
3838 |
|
3839 |
+
foreach ( $new_entries as $new_entry ) {
|
3840 |
+
if ( !in_array( $new_entry, $dragndroparray ) ) {
|
3841 |
+
$dragndroparray[] = $new_entry;
|
3842 |
+
}
|
3843 |
}
|
3844 |
|
3845 |
if ( $dragndroparray ) {
|
3871 |
<?php break;
|
3872 |
case 7:
|
3873 |
?>
|
3874 |
+
<li id="7" style='background-color: #5ccccc'><?php _e( 'Web Link', 'link-library' ); ?></li>
|
3875 |
<?php break;
|
3876 |
case 8:
|
3877 |
?>
|
3901 |
?>
|
3902 |
<li id="14" style='background-color: #33eeff'><?php _e( 'Cat Desc', 'link-library' ); ?></li>
|
3903 |
<?php break;
|
3904 |
+
case 15:
|
3905 |
+
?>
|
3906 |
+
<li id="15" style='background-color: #c4d1ee'><?php _e( 'Tags', 'link-library' ); ?></li>
|
3907 |
+
<?php break;
|
3908 |
+
case 16:
|
3909 |
+
?>
|
3910 |
+
<li id="16" style='background-color: #238e00'><?php _e( 'Price', 'link-library' ); ?></li>
|
3911 |
+
<?php break;
|
3912 |
}
|
3913 |
}
|
3914 |
}
|
3955 |
<td style='background: #FFF'></td>
|
3956 |
<td style='background: #FFF'></td>
|
3957 |
</tr>
|
3958 |
+
<?php if ( empty( $options['dragndroporder'] ) ) {
|
3959 |
+
$dragndroporder = '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16';
|
3960 |
} else {
|
3961 |
$dragndroporder = $options['dragndroporder'];
|
3962 |
}
|
|
|
3963 |
$dragndroparray = explode( ',', $dragndroporder );
|
3964 |
|
3965 |
+
$new_entries = array( '13', '14', '15', '16' );
|
|
|
|
|
3966 |
|
3967 |
+
foreach ( $new_entries as $new_entry ) {
|
3968 |
+
if ( !in_array( $new_entry, $dragndroparray ) ) {
|
3969 |
+
$dragndroparray[] = $new_entry;
|
3970 |
+
}
|
3971 |
}
|
3972 |
|
3973 |
if ( $dragndroparray ) {
|
3978 |
<tr>
|
3979 |
<td style='background-color: #1240ab; color: #fff' class="lltooltip" title='<?php _e( 'This column allows for the output of text/code before each link image', 'link-library' ); ?>'><?php _e( 'Image', 'link-library' ); ?></td>
|
3980 |
<td style='text-align:center;background: #FFF'>
|
3981 |
+
<input type="checkbox" id="show_images" name="show_images" <?php checked( $options['show_images'] );?>/>
|
|
|
|
|
3982 |
</td>
|
3983 |
<td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before each link image', 'link-library' ); ?>'>
|
3984 |
<input type="text" id="beforeimage" name="beforeimage" size="22" value="<?php echo stripslashes( $options['beforeimage'] ); ?>" />
|
3991 |
</td>
|
3992 |
<td style='background: #FFF'>
|
3993 |
<select name="sourceimage" id="sourceimage" style="width:200px;">
|
3994 |
+
<option value="primary"<?php selected( $options['sourceimage'] == "primary" ); ?>><?php _e( 'Primary', 'link-library' ); ?></option>
|
3995 |
+
<option value="secondary"<?php selected( $options['sourceimage'] == "secondary" ); ?>><?php _e( 'Secondary', 'link-library' ); ?></option>
|
|
|
|
|
|
|
|
|
3996 |
</select>
|
3997 |
</td>
|
3998 |
</tr>
|
4002 |
<tr>
|
4003 |
<td style='background-color: #4671d5; color: #fff' class="lltooltip" title='<?php _e( 'This column allows for the output of text/code before and after each link name', 'link-library' ); ?>'><?php _e( 'Link Name', 'link-library' ); ?></td>
|
4004 |
<td style='text-align:center;background: #FFF'>
|
4005 |
+
<input type="checkbox" id="showname" name="showname" <?php checked( $options['showname'] == true ); ?>/>
|
|
|
|
|
4006 |
</td>
|
4007 |
<td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before each link', 'link-library' ); ?>'>
|
4008 |
<input type="text" id="beforelink" name="beforelink" size="22" value="<?php echo stripslashes( $options['beforelink'] ); ?>" />
|
4018 |
</td>
|
4019 |
<td style='background: #FFF'>
|
4020 |
<select name="sourcename" id="sourcename" style="width:200px;">
|
4021 |
+
<option value="primary"<?php selected( $options['sourcename'] == "primary" ); ?>><?php _e( 'Primary', 'link-library' ); ?></option>
|
4022 |
+
<option value="secondary"<?php selected( $options['sourcename'] == "secondary" ); ?>><?php _e( 'Secondary', 'link-library' ); ?></option>
|
4023 |
+
<option value="permalink"<?php selected( $options['sourcename'] == "permalink" ); ?>><?php _e( 'Dedicated page', 'link-library' ); ?></option>
|
4024 |
</select>
|
4025 |
</td>
|
4026 |
</tr>
|
4030 |
<tr>
|
4031 |
<td style='background-color: #39e639; color:#fff' class="lltooltip" title='<?php _e( 'This column allows for the output of text/code before and after each link date stamp', 'link-library' ); ?>'><?php _e( 'Link Date', 'link-library' ); ?></td>
|
4032 |
<td style='background: #FFF;text-align:center' class="lltooltip" title='<?php _e( 'Check to display link date', 'link-library' ); ?>'>
|
4033 |
+
<input type="checkbox" id="showdate" name="showdate" <?php checked( $options['showdate'] ); ?>/>
|
|
|
|
|
4034 |
</td>
|
4035 |
<td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before each date', 'link-library' ); ?>'>
|
4036 |
<input type="text" id="beforedate" name="beforedate" size="22" value="<?php echo stripslashes( $options['beforedate'] ); ?>" />
|
4047 |
<tr>
|
4048 |
<td style='background-color: #009999;color:#fff' class="lltooltip" title='<?php _e( 'This column allows for the output of text/code before and after each link description', 'link-library' ); ?>'><?php _e( 'Link Description', 'link-library' ); ?></td>
|
4049 |
<td style='background: #FFF;text-align: center' class="lltooltip" title='<?php _e( 'Check to display link descriptions', 'link-library' ); ?>'>
|
4050 |
+
<input type="checkbox" id="showdescription" name="showdescription" <?php checked( $options['showdescription'] ); ?>/>
|
|
|
|
|
4051 |
</td>
|
4052 |
<td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before each description', 'link-library' ); ?>'>
|
4053 |
<input type="text" id="beforedesc" name="beforedesc" size="22" value="<?php echo stripslashes( $options['beforedesc'] ); ?>" />
|
4064 |
<tr>
|
4065 |
<td style='background-color: #00cc00;color:#fff' class="lltooltip" title='<?php _e( 'This column allows for the output of text/code before and after each link notes', 'link-library' ); ?>'><?php _e( 'Link Notes', 'link-library' ); ?></td>
|
4066 |
<td style='background: #FFF;text-align: center' class="lltooltip" title='<?php _e( 'Check to display link notes', 'link-library' ); ?>'>
|
4067 |
+
<input type="checkbox" id="shownotes" name="shownotes" <?php checked( $options['shownotes'] ); ?>/>
|
|
|
|
|
4068 |
</td>
|
4069 |
<td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before each note', 'link-library' ); ?>'>
|
4070 |
<input type="text" id="beforenote" name="beforenote" size="22" value="<?php echo stripslashes( $options['beforenote'] ); ?>" />
|
4101 |
<select name="displayweblink" id="displayweblink" style="width:80px;">
|
4102 |
<option value="false"<?php selected( $options['displayweblink'] == "false" ); ?>><?php _e( 'False', 'link-library' ); ?></option>
|
4103 |
<option value="address"<?php selected( $options['displayweblink'] == "address" ); ?>><?php _e( 'Web Address', 'link-library' ); ?></option>
|
|
|
4104 |
<option value="label"<?php selected( $options['displayweblink'] == "label" ); ?>><?php _e( 'Label', 'link-library' ); ?></option>
|
4105 |
</select>
|
4106 |
</td>
|
4110 |
<td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed after Web Link', 'link-library' ); ?>'>
|
4111 |
<input type="text" id="afterweblink" name="afterweblink" size="22" value="<?php echo stripslashes( $options['afterweblink'] ); ?>" />
|
4112 |
</td>
|
4113 |
+
<td style='background: #FFF'>
|
4114 |
+
<input class="lltooltip" title='<?php _e( 'Text Label that the web link will be assigned to.', 'link-library' ); ?>' type="text" id="weblinklabel" name="weblinklabel" size="9" value="<?php echo stripslashes( $options['weblinklabel'] ); ?>" />
|
4115 |
+
<input class="lltooltip" title='<?php _e( 'Target that will be assigned to web links.', 'link-library' ); ?>' type="text" id="weblinktarget" name="weblinktarget" size="9" value="<?php echo stripslashes( $options['weblinktarget'] ); ?>" />
|
4116 |
</td>
|
4117 |
<td style='background: #FFF' class="lltooltip" title='<?php _e( 'Select which link address will be displayed / used for link', 'link-library' ); ?>'>
|
4118 |
<select name="sourceweblink" id="sourceweblink" style="width:200px;">
|
4119 |
+
<option value="primary"<?php selected( $options['sourceweblink'] == "primary" ); ?>><?php _e( 'Primary', 'link-library' ); ?></option>
|
4120 |
+
<option value="secondary"<?php selected( $options['sourceweblink'] == "secondary" ); ?>><?php _e( 'Secondary', 'link-library' ); ?></option>
|
|
|
|
|
|
|
|
|
4121 |
</select>
|
4122 |
</td>
|
4123 |
</tr>
|
4128 |
<td style='background-color: #6c8cd5;color:#fff' class="lltooltip" title='<?php _e( 'This column allows for the output of text/code before and after the Telephone Number', 'link-library' ); ?>'><?php _e( 'Telephone', 'link-library' ); ?></td>
|
4129 |
<td style='text-align:center;background: #FFF'>
|
4130 |
<select name="showtelephone" id="showtelephone" style="width:80px;">
|
4131 |
+
<option value="false"<?php selected( $options['showtelephone'] == "false" ); ?>><?php _e( 'False', 'link-library' ); ?></option>
|
4132 |
+
<option value="plain"<?php selected( $options['showtelephone'] == "plain" ); ?>><?php _e( 'Plain Text', 'link-library' ); ?></option>
|
4133 |
+
<option value="link"<?php selected( $options['showtelephone'] == "link" ); ?>><?php _e( 'Link', 'link-library' ); ?></option>
|
4134 |
+
<option value="label"<?php selected( $options['showtelephone'] == "label" ); ?>><?php _e( 'Label', 'link-library' ); ?></option>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4135 |
</select>
|
4136 |
</td>
|
4137 |
<td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before Telephone Number', 'link-library' ); ?>'>
|
4145 |
</td>
|
4146 |
<td style='background: #FFF' class="lltooltip" title='<?php _e( 'Select which link address will be displayed / used for link', 'link-library' ); ?>'>
|
4147 |
<select name="sourcetelephone" id="sourcetelephone" style="width:200px;">
|
4148 |
+
<option value="primary"<?php selected( $options['sourcetelephone'] == "primary" ); ?>><?php _e( 'Primary', 'link-library' ); ?></option>
|
4149 |
+
<option value="secondary"<?php selected( $options['sourcetelephone'] == "secondary" ); ?>><?php _e( 'Secondary', 'link-library' ); ?></option>
|
|
|
|
|
|
|
|
|
4150 |
</select>
|
4151 |
</td>
|
4152 |
</tr>
|
4157 |
<td style='background-color: #67e667;color:#fff' class="lltooltip" title='<?php _e( 'This column allows for the output of text/code before and after the E-mail', 'link-library' ); ?>'><?php _e( 'E-mail', 'link-library' ); ?></td>
|
4158 |
<td style='text-align:center;background: #FFF'>
|
4159 |
<select name="showemail" id="showemail" style="width:80px;">
|
4160 |
+
<option value="false"<?php selected( $options['showemail'] == "false" ); ?>><?php _e( 'False', 'link-library' ); ?></option>
|
4161 |
+
<option value="plain"<?php selected( $options['showemail'] == "plain" ); ?>><?php _e( 'Plain Text', 'link-library' ); ?></option>
|
4162 |
+
<option value="mailto"<?php selected( $options['showemail'] == "mailto" ); ?>><?php _e( 'MailTo Link', 'link-library' ); ?></option>
|
4163 |
+
<option value="mailtolabel"<?php selected( $options['showemail'] == "mailtolabel" ); ?>><?php _e( 'MailTo Link with Label', 'link-library' ); ?></option>
|
4164 |
+
<option value="command"<?php selected( $options['showemail'] == "command" ); ?>><?php _e( 'Formatted Command', 'link-library' ); ?></option>
|
4165 |
+
<option value="commandlabel"<?php selected( $options['showemail'] == "commandlabel" ); ?>><?php _e( 'Formatted Command with Labels', 'link-library' ); ?></option>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4166 |
</select>
|
4167 |
</td>
|
4168 |
<td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before E-mail', 'link-library' ); ?>'>
|
4184 |
<tr>
|
4185 |
<td style='background-color: #33cccc;color:#fff' class="lltooltip" title='<?php _e( 'This column allows for the output of text/code before and after Link Hits', 'link-library' ); ?>'><?php _e( 'Link Hits', 'link-library' ); ?></td>
|
4186 |
<td style='text-align:center;background: #FFF'>
|
4187 |
+
<input type="checkbox" id="showlinkhits" name="showlinkhits" <?php checked( $options['showlinkhits'] ); ?>/>
|
|
|
|
|
4188 |
</td>
|
4189 |
<td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before Link Hits', 'link-library' ); ?>'>
|
4190 |
<input type="text" id="beforelinkhits" name="beforelinkhits" size="22" value="<?php echo stripslashes( $options['beforelinkhits'] ); ?>" />
|
4201 |
<tr>
|
4202 |
<td style='background-color: #33cc00;color:#fff' class="lltooltip" title='<?php _e( 'This column allows for the output of text/code before and after the Link Rating', 'link-library' ); ?>'><?php _e( 'Link Rating', 'link-library' ); ?></td>
|
4203 |
<td style='text-align:center;background: #FFF'>
|
4204 |
+
<input type="checkbox" id="showrating" name="showrating" <?php checked( $options['showrating'] ); ?>/>
|
|
|
|
|
4205 |
</td>
|
4206 |
<td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before Link Rating', 'link-library' ); ?>'>
|
4207 |
<input type="text" id="beforelinkrating" name="beforelinkrating" size="22" value="<?php echo stripslashes( $options['beforelinkrating'] ); ?>" />
|
4218 |
<tr>
|
4219 |
<td style='background-color: #33ccff;color:#fff' class="lltooltip" title='<?php _e( 'This column allows for the output of text/code before and after the Link Large Description', 'link-library' ); ?>'><?php _e( 'Link Large Description', 'link-library' ); ?></td>
|
4220 |
<td style='text-align:center;background: #FFF'>
|
4221 |
+
<input type="checkbox" id="showlargedescription" name="showlargedescription" <?php checked( $options['showlargedescription'] ); ?>/>
|
|
|
|
|
4222 |
</td>
|
4223 |
<td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before Link Large Description', 'link-library' ); ?>'>
|
4224 |
<input type="text" id="beforelargedescription" name="beforelargedescription" size="22" value="<?php echo stripslashes( $options['beforelargedescription'] ); ?>" />
|
4264 |
<td style='background: #FFF'></td>
|
4265 |
</tr>
|
4266 |
<?php break;
|
4267 |
+
case 15: /* -------------------------------- Link Tags -------------------------------------------*/
|
4268 |
+
?>
|
4269 |
+
<tr>
|
4270 |
+
<td style='background-color: #c4d1ee;color:#fff' class="lltooltip" title='<?php _e( 'This column allows for the output of tags associated with the link', 'link-library' ); ?>'><?php _e( 'Link Tags', 'link-library' ); ?></td>
|
4271 |
+
<td style='text-align:center;background: #FFF'>
|
4272 |
+
<input type="checkbox" id="showlinktags" name="showlinktags" <?php checked( $options['showlinktags'] ); ?>/>
|
4273 |
+
</td>
|
4274 |
+
<td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before Link Tags', 'link-library' ); ?>'>
|
4275 |
+
<input type="text" id="beforelinktags" name="beforelinktags" size="22" value="<?php echo stripslashes( $options['beforelinktags'] ); ?>" />
|
4276 |
+
</td>
|
4277 |
+
<td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed after Link Tags', 'link-library' ); ?>'>
|
4278 |
+
<input type="text" id="afterlinktags" name="afterlinktags" size="22" value="<?php echo stripslashes( $options['afterlinktags'] ); ?>" />
|
4279 |
+
</td>
|
4280 |
+
<td style='background: #FFF'></td>
|
4281 |
+
<td style='background: #FFF'></td>
|
4282 |
+
</tr>
|
4283 |
+
<?php break;
|
4284 |
+
case 16: /* -------------------------------- Link Price -------------------------------------------*/
|
4285 |
+
?>
|
4286 |
+
<tr>
|
4287 |
+
<td style='background-color: #238e00;color:#fff' class="lltooltip" title='<?php _e( 'This column allows for the output of the price field associated with the link', 'link-library' ); ?>'><?php _e( 'Link Price', 'link-library' ); ?></td>
|
4288 |
+
<td style='text-align:center;background: #FFF'>
|
4289 |
+
<input type="checkbox" id="showlinkprice" name="showlinkprice" <?php checked( $options['showlinkprice'] ); ?>/>
|
4290 |
+
</td>
|
4291 |
+
<td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before Link Price', 'link-library' ); ?>'>
|
4292 |
+
<input type="text" id="beforelinkprice" name="beforelinkprice" size="22" value="<?php echo stripslashes( $options['beforelinkprice'] ); ?>" />
|
4293 |
+
</td>
|
4294 |
+
<td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed after Link Price', 'link-library' ); ?>'>
|
4295 |
+
<input type="text" id="afterlinkprice" name="afterlinkprice" size="22" value="<?php echo stripslashes( $options['afterlinkprice'] ); ?>" />
|
4296 |
+
</td>
|
4297 |
+
<td style='background: #FFF'>
|
4298 |
+
<input type="text" id="linkcurrency" name="linkcurrency" size="3" value="<?php echo stripslashes( $options['linkcurrency'] ); ?>" class="lltooltip" title='<?php _e( 'Currency symbol to be displayed next to price', 'link-library' ); ?>' />
|
4299 |
+
Show 0.00 as free <input type="checkbox" id="show0asfree" name="show0asfree" <?php checked( $options['show0asfree'] ); ?>/>
|
4300 |
+
</td>
|
4301 |
+
<td style='background: #FFF'>
|
4302 |
+
<select name="linkcurrencyplacement" id="linkcurrencyplacement" style="width:200px;">
|
4303 |
+
<option value="before"<?php selected( $options['linkcurrencyplacement'] == 'before' ); ?>><?php _e( 'Before Price', 'link-library' ); ?></option>
|
4304 |
+
<option value="after"<?php selected( $options['linkcurrencyplacement'] == 'after' ); ?>><?php _e( 'After Price', 'link-library' ); ?></option>
|
4305 |
+
</select>
|
4306 |
+
</td>
|
4307 |
+
</tr>
|
4308 |
+
<?php break;
|
4309 |
}
|
4310 |
}
|
4311 |
}
|
4347 |
<?php _e( 'Show Link Updated Flag', 'link-library' ); ?>
|
4348 |
</td>
|
4349 |
<td style='width:75px;padding:0px 20px 0px 20px'>
|
4350 |
+
<input type="checkbox" id="showupdated" name="showupdated" <?php checked( $options['showupdated'] ); ?>/>
|
|
|
|
|
4351 |
</td>
|
4352 |
<td style='width:20px'>
|
4353 |
</td>
|
4355 |
<?php _e( 'Convert [] to <> in Link Description and Notes', 'link-library' ); ?>
|
4356 |
</td>
|
4357 |
<td style='width:75px;padding:0px 20px 0px 20px'>
|
4358 |
+
<input type="checkbox" id="use_html_tags" name="use_html_tags" <?php checked( $options['use_html_tags'] ); ?>/>
|
|
|
|
|
4359 |
</td>
|
4360 |
</tr>
|
4361 |
<tr>
|
4365 |
<td style='width:75px;padding:0px 20px 0px 20px'>
|
4366 |
<select id="showupdatedpos" name="showupdatedpos">
|
4367 |
<?php
|
4368 |
+
$show_updated_pos_options = array( 'before' => 'Before Link Fields', 'after' => 'After Link Fields' );
|
4369 |
|
4370 |
+
foreach( $show_updated_pos_options as $show_updated_pos_option_key => $show_updated_pos_option ) { ?>
|
4371 |
+
<option value="<?php echo $show_updated_pos_option_key; ?>" <?php selected( $options['showupdatedpos'], $show_updated_pos_option_key ); ?>><?php echo $show_updated_pos_option; ?></option>
|
4372 |
+
<?php }
|
4373 |
?>
|
4374 |
</select>
|
4375 |
</td>
|
4430 |
</td>
|
4431 |
<td><?php _e( 'Pop-Up Width', 'link-library' ); ?></td>
|
4432 |
<td>
|
4433 |
+
<input type="text" id="popup_width" name="popup_width" size="4" value="<?php if ( !isset( $options['popup_width'] ) || empty( $options['popup_width'] ) ) {
|
4434 |
echo '300';
|
4435 |
} else {
|
4436 |
echo strval( $options['popup_width'] );
|
4437 |
} ?>" /></td>
|
4438 |
<td><?php _e( 'Pop-Up Height', 'link-library' ); ?></td>
|
4439 |
<td>
|
4440 |
+
<input type="text" id="popup_height" name="popup_height" size="4" value="<?php if ( !isset( $options['popup_height'] ) || empty( $options['popup_height'] ) ) {
|
4441 |
echo '400';
|
4442 |
} else {
|
4443 |
echo strval( $options['popup_height'] );
|
4465 |
<?php _e( 'Show RSS Link using Text', 'link-library' ); ?>
|
4466 |
</td>
|
4467 |
<td style='width:75px;padding-right:20px'>
|
4468 |
+
<input type="checkbox" id="show_rss" name="show_rss" <?php checked( $options['show_rss'] ); ?>/>
|
|
|
|
|
4469 |
</td>
|
4470 |
<td>
|
4471 |
<?php _e( 'Show RSS Link using Standard Icon', 'link-library' ); ?>
|
4472 |
</td>
|
4473 |
<td style='width:75px;padding-right:20px'>
|
4474 |
+
<input type="checkbox" id="show_rss_icon" name="show_rss_icon" <?php checked( $options['show_rss_icon'] ); ?>/>
|
|
|
|
|
4475 |
</td>
|
4476 |
<td></td>
|
4477 |
<td style='width:75px;padding-right:20px'></td>
|
4515 |
<tr>
|
4516 |
<td><?php _e( 'RSS Preview Width', 'link-library' ); ?></td>
|
4517 |
<td>
|
4518 |
+
<input type="text" id="rsspreviewwidth" name="rsspreviewwidth" size="5" value="<?php echo strval( $options['rsspreviewwidth'] ); ?>" /></td></td>
|
4519 |
<td><?php _e( 'RSS Preview Height', 'link-library' ); ?></td>
|
4520 |
+
<td><input type="text" id="rsspreviewheight" name="rsspreviewheight" size="5" value="<?php echo strval( $options['rsspreviewheight'] ); ?>" /></td>
|
|
|
4521 |
<td><?php _e( 'Skip links with no RSS inline items', 'link-library' ); ?></td>
|
4522 |
<td><input type="checkbox" id="rssfeedinlineskipempty" name="rssfeedinlineskipempty" <?php checked( $options['rssfeedinlineskipempty'] ); ?>/></td>
|
4523 |
</tr>
|
4539 |
<?php _e( 'Use thumbnail service for dynamic link images', 'link-library' ); ?>
|
4540 |
</td>
|
4541 |
<td class='lltooltip' title='<?php _e( 'Checking this option will get images from the thumbshots web site every time', 'link-library' ); ?>.' style='width:75px;padding-right:20px'>
|
4542 |
+
<input type="checkbox" id="usethumbshotsforimages" name="usethumbshotsforimages" <?php checked( $options['usethumbshotsforimages'] ); ?>/>
|
|
|
|
|
4543 |
</td>
|
4544 |
</tr>
|
4545 |
<tr>
|
4547 |
<?php _e( 'Give priority to images assigned to links if present', 'link-library' ); ?>
|
4548 |
</td>
|
4549 |
<td>
|
4550 |
+
<input type="checkbox" id="uselocalimagesoverthumbshots" name="uselocalimagesoverthumbshots" <?php checked( $options['uselocalimagesoverthumbshots'] ); ?>/></td>
|
|
|
|
|
4551 |
</tr>
|
4552 |
<tr>
|
4553 |
<td><?php _e( 'Generate Images / Favorite Icons', 'link-library' ); ?></td>
|
4585 |
</td>
|
4586 |
<td><?php _e( 'Number of items in RSS feed', 'link-library' ); ?></td>
|
4587 |
<td style='width:75px;padding-right:20px'>
|
4588 |
+
<input type="text" id="numberofrssitems" name="numberofrssitems" size="3" value="<?php if ( empty( $options['numberofrssitems'] ) ) {
|
4589 |
echo '10';
|
4590 |
} else {
|
4591 |
echo strval( $options['numberofrssitems'] );
|
4604 |
</td>
|
4605 |
</tr>
|
4606 |
<tr>
|
4607 |
+
<td><?php _e( 'RSS Feed Web Address (default yoursite.com/feed/linklibraryfeed?settingsset=1 )', 'link-library' ); ?></td>
|
4608 |
<td colspan=3>
|
4609 |
<input type="text" id="rssfeedaddress" name="rssfeedaddress" size="80" value="<?php echo strval( esc_html( stripslashes( $options['rssfeedaddress'] ) ) ); ?>" />
|
4610 |
</td>
|
4865 |
<input type="text" id="linkcatlabel" name="linkcatlabel" size="30" value="<?php echo $options['linkcatlabel']; ?>" />
|
4866 |
</td>
|
4867 |
<td>
|
4868 |
+
<select name="showaddlinkcat" id="showaddlinkcat" style="width:120px;">
|
4869 |
<option value="hide"<?php selected( $options['showaddlinkcat'] == 'hide' ); ?>><?php _e( 'Hide', 'link-library' ); ?></option>
|
4870 |
+
<option value="show"<?php selected( $options['showaddlinkcat'] == 'show' ); ?>><?php _e( 'Drop-down list', 'link-library' ); ?></option>
|
4871 |
+
<option value="selectmultiple"<?php selected( $options['showaddlinkcat'] == 'selectmultiple' ); ?>><?php _e( 'Multi-select list', 'link-library' ); ?></option>
|
4872 |
</select>
|
4873 |
</td>
|
4874 |
<td style='width: 20px'></td>
|
4882 |
<td>
|
4883 |
<?php
|
4884 |
|
4885 |
+
$include_links_array = explode( ',', $options['categorylist_cpt'] );
|
4886 |
+
$excluded_links_array = explode( ',', $options['excludecategorylist_cpt'] );
|
4887 |
+
$link_categories_query_args = array( 'hide_empty' => false );
|
4888 |
+
$link_categories_query_args['include'] = $include_links_array;
|
4889 |
+
$link_categories_query_args['exclude'] = $excluded_links_array;
|
4890 |
+
$linkcats = get_terms( 'link_library_category', $link_categories_query_args );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4891 |
|
4892 |
if ( $linkcats ) { ?>
|
4893 |
<select name="addlinkdefaultcat" id="addlinkdefaultcat" value="<?php echo $options['addlinkdefaultcat']; ?>">
|
4894 |
+
<option value="nodefaultcat">No default category</option>
|
4895 |
<?php foreach ( $linkcats as $linkcat ) { ?>
|
4896 |
<option value="<?php echo $linkcat->term_id; ?>" <?php selected( $linkcat->term_id, $options['addlinkdefaultcat'] ); ?>><?php echo $linkcat->name; ?></option>
|
4897 |
<?php } ?>
|
4923 |
</td>
|
4924 |
<td style='width:200px'></td>
|
4925 |
</tr>
|
4926 |
+
<tr>
|
4927 |
+
<td style='width:200px'><?php _e( 'Tags label', 'link-library' ); ?></td>
|
4928 |
+
<?php if ( empty( $options['linktagslabel'] ) ) {
|
4929 |
+
$options['linktagslabel'] = __( 'Link Tags', 'link-library' );
|
4930 |
+
} ?>
|
4931 |
+
<td>
|
4932 |
+
<input type="text" id="linktagslabel" name="linktagslabel" size="30" value="<?php echo $options['linktagslabel']; ?>" />
|
4933 |
+
</td>
|
4934 |
+
<td>
|
4935 |
+
<select name="showaddlinktags" id="showaddlinktags" style="width:60px;">
|
4936 |
+
<option value="hide"<?php selected( $options['showaddlinktags'] == 'hide' ); ?>><?php _e( 'Hide', 'link-library' ); ?></option>
|
4937 |
+
<option value="show"<?php selected( $options['showaddlinktags'] == 'show' ); ?>><?php _e( 'Show', 'link-library' ); ?></option>
|
4938 |
+
</select>
|
4939 |
+
</td>
|
4940 |
+
<td style='width: 20px'></td>
|
4941 |
+
<td style='width:200px' class='lltooltip' title='<?php _e( 'Comma-seperated list of tag IDs to be displayed in category selection box (e.g. 1,5,4) instead of displaying all tags', 'link-library' ); ?>'><?php _e( 'Link tags override selection list', 'link-library' ); ?></td>
|
4942 |
+
<td colspan=3 class='lltooltip' title='<?php _e( 'Comma-seperated list of tag IDs to be displayed in category selection box (e.g. 1,5,4)', 'link-library' ); ?>'>
|
4943 |
+
<input type="text" id="addlinktaglistoverride" name="addlinktaglistoverride" size="50" value="<?php echo $options['addlinktaglistoverride']; ?>" />
|
4944 |
+
<td style='width:200px'></td>
|
4945 |
+
</tr>
|
4946 |
+
<tr>
|
4947 |
+
<td style='width:200px'><?php _e( 'User-submitted tags label', 'link-library' ); ?></td>
|
4948 |
+
<?php if ( $options['linkcustomtaglabel'] == "" ) {
|
4949 |
+
$options['linkcustomtaglabel'] = __( 'User-submitted tags', 'link-library' );
|
4950 |
+
} ?>
|
4951 |
+
<td>
|
4952 |
+
<input type="text" id="linkcustomtaglabel" name="linkcustomtaglabel" size="30" value="<?php echo $options['linkcustomtaglabel']; ?>" />
|
4953 |
+
</td>
|
4954 |
+
<td>
|
4955 |
+
<select name="addlinkcustomtag" id="addlinkcustomtag" style="width:60px;">
|
4956 |
+
<option value="hide"<?php selected( $options['addlinkcustomtag'] == 'hide' ); ?>><?php _e( 'No', 'link-library' ); ?></option>
|
4957 |
+
<option value="show"<?php selected( $options['addlinkcustomtag'] == 'show' ); ?>><?php _e( 'Allow', 'link-library' ); ?></option>
|
4958 |
+
</select>
|
4959 |
+
</td>
|
4960 |
+
<td></td>
|
4961 |
+
<td style='width:200px'><?php _e( 'User-submitted tags prompt', 'link-library' ); ?></td>
|
4962 |
+
<?php if ( $options['linkcustomtaglistentry'] == "" ) {
|
4963 |
+
$options['linkcustomtaglistentry'] = __( 'User-submitted tag (define below)', 'link-library' );
|
4964 |
+
} ?>
|
4965 |
+
<td colspan=3>
|
4966 |
+
<input type="text" id="linkcustomtaglistentry" name="linkcustomtaglistentry" size="50" value="<?php echo $options['linkcustomtaglistentry']; ?>" />
|
4967 |
+
</td>
|
4968 |
+
<td style='width:200px'></td>
|
4969 |
+
</tr>
|
4970 |
<tr>
|
4971 |
<td style='width:200px'><?php _e( 'Link description label', 'link-library' ); ?></td>
|
4972 |
<?php if ( $options['linkdesclabel'] == "" ) {
|
5196 |
function settingssets_importexport_meta_box( $data ) {
|
5197 |
$options = $data['options'];
|
5198 |
$settings = $data['settings'];
|
|
|
5199 |
?>
|
5200 |
|
5201 |
<div style='padding-top:15px' id="ll-importexport" class="content-section">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5202 |
<input type='hidden' value='<?php echo $settings; ?>' name='settingsetid' id='settingsetid' />
|
5203 |
<table>
|
5204 |
<tr>
|
5232 |
<tr>
|
5233 |
<td><?php _e( 'Delete links that return a 403 error', 'link-library' ); ?></td>
|
5234 |
<td>
|
5235 |
+
<input type="checkbox" id="recipcheckdelete403" name="recipcheckdelete403" <?php checked( $genoptions['recipcheckdelete403'] ); ?>/></td>
|
|
|
|
|
5236 |
</tr>
|
5237 |
<tr>
|
5238 |
<td>
|
5257 |
|
5258 |
|
5259 |
/************************************************ Render Custom Meta Box in Link Editor *******************************************/
|
|
|
|
|
5260 |
|
5261 |
+
function ll_link_basic_info( $link ) {
|
5262 |
+
$link_url = get_post_meta( $link->ID, 'link_url', true );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5263 |
|
5264 |
+
if ( empty( $link_url ) && isset( $_GET['linkurl'] ) ) {
|
5265 |
+
$link_url = esc_url( urldecode( $_GET['linkurl'] ) );
|
|
|
|
|
|
|
|
|
5266 |
}
|
|
|
5267 |
|
5268 |
+
$link_description = get_post_meta( $link->ID, 'link_description', true );
|
5269 |
+
$link_description = htmlentities( $link_description );
|
5270 |
+
$link_textfield = get_post_meta( $link->ID, 'link_textfield', true );
|
5271 |
+
$link_target = get_post_meta( $link->ID, 'link_target', true );
|
5272 |
+
$link_rss = get_post_meta( $link->ID, 'link_rss', true );
|
5273 |
+
$link_notes = get_post_meta( $link->ID, 'link_notes', true );
|
5274 |
+
$link_notes = htmlentities( $link_notes );
|
5275 |
+
?>
|
5276 |
+
<table style="width:100%">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5277 |
<tr>
|
5278 |
+
<td style="width:20%"><?php _e( 'Web Address', 'link-library' ); ?></td>
|
5279 |
+
<td><input type="text" style="width:100%" id="link_url" type="link_url" name="link_url" value="<?php echo $link_url; ?>" tabindex="1"></td>
|
|
|
|
|
5280 |
</tr>
|
5281 |
<tr>
|
5282 |
+
<td style="width:20%"><?php _e( 'Description', 'link-library' ); ?></td>
|
5283 |
+
<td><input type="text" style="width:100%" id="link_description" type="link_description" name="link_description" value="<?php echo $link_description; ?>" tabindex="2"></td>
|
|
|
|
|
5284 |
</tr>
|
5285 |
<tr>
|
5286 |
+
<td><?php _e( 'Notes', 'link-library' ); ?></td>
|
5287 |
+
<td><textarea style="width:100%" name="link_notes" id="link_notes" rows="5"><?php echo $link_notes; ?></textarea></td>
|
|
|
|
|
5288 |
</tr>
|
5289 |
<tr>
|
5290 |
+
<td><?php _e( 'Large Description', 'link-library' ); ?></td>
|
5291 |
<td>
|
5292 |
<?php
|
5293 |
$editorsettings = array( 'media_buttons' => false,
|
5295 |
'textarea_name' => 'link_textfield',
|
5296 |
'wpautop' => false );
|
5297 |
|
5298 |
+
wp_editor( isset( $link_textfield ) ? stripslashes( $link_textfield ) : '', 'link_textfield', $editorsettings ); ?>
|
5299 |
</td>
|
5300 |
</tr>
|
5301 |
<tr>
|
5302 |
+
<td><?php _e( 'RSS Address', 'link-library' ); ?></td>
|
5303 |
+
<td><input type="text" style="width:100%" id="link_rss" type="link_rss" name="link_rss" value="<?php echo $link_rss; ?>"></td>
|
5304 |
+
</tr>
|
5305 |
+
<tr>
|
5306 |
+
<td><?php _e( 'Target', 'link-library' ); ?></td>
|
5307 |
+
<td><?php
|
5308 |
+
$target_array = array( '' => '_none (same window or tab)', '_blank' => '_blank (new window or tab)', '_top' => '_top (current window or tab, with no frames)' );
|
5309 |
+
echo '<select name="link_target" id="link_target">';
|
5310 |
+
foreach ( $target_array as $target_value => $target_item ) {
|
5311 |
+
echo '<option value="' . $target_value . '" ' . selected( $target_value, $link_target ) . '>' . $target_item . '</option>';
|
5312 |
+
}
|
5313 |
+
echo '</select>';
|
5314 |
+
?></td>
|
5315 |
+
</tr>
|
5316 |
+
</table>
|
5317 |
+
<?php }
|
5318 |
+
|
5319 |
+
function ll_link_image_info( $link ) {
|
5320 |
+
$genoptions = get_option( 'LinkLibraryGeneral' );
|
5321 |
+
$link_image = get_post_meta( $link->ID, 'link_image', true );
|
5322 |
+
?>
|
5323 |
+
<table>
|
5324 |
+
<tr>
|
5325 |
+
<td><?php _e( 'Current Image', 'link-library' ); ?></td>
|
5326 |
<td>
|
5327 |
<div id='current_link_image'>
|
5328 |
+
<?php if ( isset( $link_image ) && !empty( $link_image ) ): ?>
|
5329 |
+
<img id="actual_link_image" src="<?php echo $link_image ?>" />
|
5330 |
<?php else: ?>
|
5331 |
<span id="noimage"><?php _e( 'None Assigned', 'link-library' ); ?></span>
|
5332 |
<?php endif; ?>
|
5333 |
</div>
|
5334 |
</td>
|
5335 |
</tr>
|
5336 |
+
<tr>
|
5337 |
+
<td><?php _e( 'Image URL', 'link-library' ); ?></td>
|
5338 |
+
<td><input type="text" style="width:100%" id="link_image" type="link_image" name="link_image" value="<?php echo $link_image; ?>"></td>
|
5339 |
+
</tr>
|
5340 |
+
<?php if ( isset( $link->ID ) && !empty( $link->ID ) ): ?>
|
5341 |
<tr>
|
5342 |
<td><?php _e( 'Automatic Image Generation', 'link-library' ); ?></td>
|
5343 |
<td title="<?php if ( $genoptions['thumbnailgenerator'] == 'thumbshots' && empty( $genoptions['thumbshotscid'] ) ) {
|
5355 |
<?php endif; ?>
|
5356 |
<?php if ( function_exists( 'wp_enqueue_media' ) ) { ?>
|
5357 |
<tr>
|
5358 |
+
<td><?php _e( 'Image Upload', 'link-library' ); ?></td>
|
5359 |
<td>
|
5360 |
<input type="button" class="upload_image_button" value="<?php _e( 'Launch Media Uploader', 'link-library' ); ?>">
|
5361 |
</td>
|
5362 |
</tr>
|
5363 |
+
</table>
|
|
|
|
|
|
|
|
|
5364 |
<?php } ?>
|
|
|
|
|
|
|
5365 |
|
5366 |
<script type="text/javascript">
|
5367 |
jQuery(document).ready(function () {
|
5403 |
file_frame.open();
|
5404 |
});
|
5405 |
|
|
|
5406 |
jQuery("#ll_updated_manual").click(function () {
|
5407 |
if (jQuery('#ll_updated_manual').is(':checked')) {
|
5408 |
jQuery('#ll_link_updated').attr('disabled', false);
|
5422 |
.attr("encoding", "multipart/form-data")
|
5423 |
.attr( "accept-charset", "UTF-8" )
|
5424 |
;
|
|
|
5425 |
jQuery('#genthumbs').click(function () {
|
5426 |
+
var linkname = jQuery('#title').val();
|
5427 |
var linkurl = jQuery('#link_url').val();
|
5428 |
|
5429 |
+
if ( linkname != '' && linkurl != '' ) {
|
5430 |
jQuery('#current_link_image').fadeOut('fast');
|
5431 |
|
5432 |
jQuery.ajax({
|
5441 |
cid : '<?php echo $genoptions['thumbshotscid']; ?>',
|
5442 |
filepath : 'link-library-images',
|
5443 |
filepathtype: 'absolute',
|
5444 |
+
linkid : <?php if( isset( $link->ID ) ) { echo $link->ID; } else { echo "''"; } ?>
|
5445 |
},
|
5446 |
success: function (data) {
|
5447 |
if (data != '') {
|
5459 |
});
|
5460 |
|
5461 |
jQuery('#genfavicons').click(function () {
|
5462 |
+
var linkname = jQuery('#title').val();
|
5463 |
var linkurl = jQuery('#link_url').val();
|
5464 |
|
5465 |
if (linkname != '' && linkurl != '') {
|
5475 |
mode : 'favicononly',
|
5476 |
filepath : 'link-library-favicons',
|
5477 |
filepathtype: 'absolute',
|
5478 |
+
linkid : <?php if( isset( $link->ID ) ) { echo $link->ID; } else { echo "''"; }?>
|
5479 |
|
5480 |
|
5481 |
},
|
5496 |
|
5497 |
});
|
5498 |
</script>
|
5499 |
+
<?php }
|
5500 |
|
5501 |
+
function ll_link_edit_extra( $link ) {
|
5502 |
+
$link_featured = get_post_meta( $link->ID, 'link_featured', true );
|
5503 |
+
$link_no_follow = get_post_meta( $link->ID, 'link_no_follow', true );
|
5504 |
+
$link_rating = get_post_meta( $link->ID, 'link_rating', true );
|
5505 |
+
$link_second_url = get_post_meta( $link->ID, 'link_second_url', true );
|
5506 |
+
$link_telephone = get_post_meta( $link->ID, 'link_telephone', true );
|
5507 |
+
$link_email = get_post_meta( $link->ID, 'link_email', true );
|
5508 |
+
$link_submitter = get_post_meta( $link->ID, 'link_submitter', true );
|
5509 |
+
$link_submitter_name = get_post_meta( $link->ID, 'link_submitter_name', true );
|
5510 |
+
$link_submitter_email = get_post_meta( $link->ID, 'link_submitter_email', true );
|
5511 |
+
$link_price = get_post_meta( $link->ID, 'link_price', true );
|
5512 |
+
$link_reciprocal = get_post_meta( $link->ID, 'link_reciprocal', true );
|
5513 |
+
$link_rel = get_post_meta( $link->ID, 'link_rel', true );
|
5514 |
+
|
5515 |
+
$link_updated = get_post_meta( $link->ID, 'link_updated', true );
|
5516 |
+
|
5517 |
+
$link_updated_manual = get_post_meta( $link->ID, 'link_updated_manual', true );
|
5518 |
+
|
5519 |
+
if ( empty( $link_updated ) ) {
|
5520 |
+
$link_updated = current_time( 'mysql' );
|
5521 |
+
} else {
|
5522 |
+
$link_updated = date( "Y-m-d H:i", $link_updated );
|
5523 |
+
}
|
5524 |
|
5525 |
+
$link_visits = get_post_meta( $link->ID, 'link_visits', true );
|
5526 |
|
5527 |
+
if ( empty( $link_visits ) ) {
|
5528 |
+
$link_visits = 0;
|
5529 |
+
}
|
5530 |
+
?>
|
5531 |
|
5532 |
+
<input type="hidden" name="form_submitted" value="true">
|
5533 |
+
<table>
|
5534 |
+
<tr>
|
5535 |
+
<td style='width: 200px'><?php _e( 'Featured Item', 'link-library' ); ?></td>
|
5536 |
+
<td>
|
5537 |
+
<input type="checkbox" id="link_featured" name="link_featured" <?php checked( $link_featured ); ?>/>
|
5538 |
+
</td>
|
5539 |
+
</tr>
|
5540 |
+
<tr>
|
5541 |
+
<td style='width: 200px'><?php _e( 'No Follow', 'link-library' ); ?></td>
|
5542 |
+
<td>
|
5543 |
+
<input type="checkbox" id="link_no_follow" name="link_no_follow" <?php checked( $link_no_follow ); ?>/>
|
5544 |
+
</td>
|
5545 |
+
</tr>
|
5546 |
+
<tr>
|
5547 |
+
<td style='width: 200px'><?php _e( 'Rating', 'link-library' ); ?></td>
|
5548 |
+
<td>
|
5549 |
+
<select name="link_rating" id="link_rating">
|
5550 |
+
<?php for( $counter = 0; $counter <= 10; $counter++ ) {
|
5551 |
+
echo '<option value="' . $counter . '" ' . selected( $counter, $link_rating, false ). '>' . $counter . '</option>';
|
5552 |
+
} ?>
|
5553 |
+
</select>
|
5554 |
+
</td>
|
5555 |
+
</tr>
|
5556 |
+
<tr>
|
5557 |
+
<td style='width: 200px'><?php _e( 'Updated Date', 'link-library' ); ?></td>
|
5558 |
+
<td><span style="float:left;padding-top:6px">Set Manually
|
5559 |
+
<input type="checkbox" id="link_updated_manual" name="link_updated_manual" <?php checked( $link_updated_manual ); ?>/></span>
|
5560 |
+
<input type="text" <?php if ( !$link_updated_manual || empty( $link_updated_manual ) ) {
|
5561 |
+
echo 'disabled="disabled"';
|
5562 |
+
} ?> id="link_updated" name="link_updated" size="50%" value="<?php echo $link_updated; ?>" />
|
5563 |
+
</td>
|
5564 |
+
</tr>
|
5565 |
+
<tr>
|
5566 |
+
<td style='width: 200px'><?php _e( 'Secondary Web Address', 'link-library' ); ?></td>
|
5567 |
+
<td>
|
5568 |
+
<input type="text" id="link_second_url" name="link_second_url" style="width:100%" value="<?php echo $link_second_url; ?>" /> <?php if ( !empty( $link_second_url ) ) {
|
5569 |
+
echo " <a href=" . esc_html( $link_second_url ) . ">" . __( 'Visit', 'link-library' ) . "</a>";
|
5570 |
+
} ?></td>
|
5571 |
+
</tr>
|
5572 |
+
<tr>
|
5573 |
+
<td><?php _e( 'Telephone', 'link-library' ); ?></td>
|
5574 |
+
<td>
|
5575 |
+
<input type="text" id="link_telephone" name="link_telephone" style="width:100%" value="<?php echo $link_telephone; ?>" />
|
5576 |
+
</td>
|
5577 |
+
</tr>
|
5578 |
+
<tr>
|
5579 |
+
<td><?php _e( 'E-mail', 'link-library' ); ?></td>
|
5580 |
+
<td>
|
5581 |
+
<input type="text" id="link_email" name="link_email" style="width:100%" value="<?php echo $link_email; ?>" />
|
5582 |
+
</td>
|
5583 |
+
</tr>
|
5584 |
+
<tr>
|
5585 |
+
<td><?php _e( 'Reciprocal Link', 'link-library' ); ?></td>
|
5586 |
+
<td>
|
5587 |
+
<input type="text" id="link_reciprocal" name="link_reciprocal" style="width:100%" value="<?php echo $link_reciprocal; ?>" /> <?php if ( !empty( $link_reciprocal ) ) {
|
5588 |
+
echo " <a href=" . esc_url( stripslashes( $link_reciprocal ) ) . ">" . __( 'Visit', 'link-library' ) . "</a>";
|
5589 |
+
} ?></td>
|
5590 |
+
</tr>
|
5591 |
+
<tr>
|
5592 |
+
<td><?php _e( 'Number of views', 'link-library' ); ?></td>
|
5593 |
+
<td>
|
5594 |
+
<input type="text" id="link_visits" name="link_visits" style="width:100%" value="<?php echo $link_visits; ?>" />
|
5595 |
+
</td>
|
5596 |
+
</tr>
|
5597 |
+
<tr>
|
5598 |
+
<td><?php _e( 'Submitter', 'link-library' ); ?></td>
|
5599 |
+
<td>
|
5600 |
+
<input type="text" id="link_submitter" name="link_submitter" style="width:100%" value="<?php echo $link_submitter; ?>" />
|
5601 |
+
</td>
|
5602 |
+
</tr>
|
5603 |
+
<tr>
|
5604 |
+
<td><?php _e( 'Submitter Name', 'link-library' ); ?></td>
|
5605 |
+
<td>
|
5606 |
+
<input type="text" id="link_submitter_name" name="link_submitter_name" style="width:100%" value="<?php echo $link_submitter_name; ?>" />
|
5607 |
+
</td>
|
5608 |
+
</tr>
|
5609 |
+
<tr>
|
5610 |
+
<td><?php _e( 'Submitter E-mail', 'link-library' ); ?></td>
|
5611 |
+
<td>
|
5612 |
+
<input type="text" id="link_submitter_email" name="link_submitter_email" style="width:100%" value="<?php echo $link_submitter_email; ?>" />
|
5613 |
+
</td>
|
5614 |
+
</tr>
|
5615 |
+
<tr>
|
5616 |
+
<td><?php _e( 'Rel Tags', 'link-library' ); ?></td>
|
5617 |
+
<td>
|
5618 |
+
<input type="text" id="link_rel" name="link_rel" size="80" value="<?php echo $link_rel; ?>" />
|
5619 |
+
</td>
|
5620 |
+
</tr>
|
5621 |
+
<tr>
|
5622 |
+
<td><?php _e( 'Price', 'link-library' ); ?></td>
|
5623 |
+
<td>
|
5624 |
+
<input type="text" id="link_price" name="link_price" size="10" value="<?php echo $link_price; ?>" />
|
5625 |
+
</td>
|
5626 |
+
</tr>
|
5627 |
+
</table>
|
5628 |
|
5629 |
+
<script type="text/javascript">
|
5630 |
+
jQuery( document ).ready(function() {
|
5631 |
+
jQuery("#link_updated_manual").click(function () {
|
5632 |
+
if (jQuery('#link_updated_manual').is(':checked')) {
|
5633 |
+
jQuery('#link_updated').attr('disabled', false);
|
5634 |
+
} else {
|
5635 |
+
jQuery('#link_updated').attr('disabled', true);
|
5636 |
}
|
5637 |
+
});
|
5638 |
+
});
|
5639 |
+
</script>
|
5640 |
|
5641 |
+
<?php
|
5642 |
+
}
|
5643 |
|
5644 |
+
function ll_save_link_fields( $link_id, $link ) {
|
5645 |
+
// Check post type for book reviews
|
5646 |
|
5647 |
+
if ( $link->post_type == 'link_library_links' && isset( $_POST['action'] ) && 'editpost' == $_POST['action'] ) {
|
|
|
|
|
|
|
5648 |
|
5649 |
+
$array_urls_nonce = array( 'link_url' );
|
5650 |
+
foreach ( $array_urls_nonce as $array_url_nonce ) {
|
5651 |
+
if ( isset( $_POST[$array_url_nonce] ) && !empty( $_POST[$array_url_nonce] ) ) {
|
5652 |
+
if ( !isset( $_POST['link_edit_nonce'] ) || wp_verify_nonce( $_POST['link_edit_nonce'], plugin_basename( __FILE__ ) ) ) {
|
5653 |
+
update_post_meta( $link_id, $array_url_nonce, esc_url( $_POST[$array_url_nonce] ) );
|
5654 |
+
}
|
5655 |
+
}
|
5656 |
+
}
|
5657 |
|
5658 |
+
$array_urls = array( 'link_rss', 'link_second_url', 'link_reciprocal', 'link_image' );
|
5659 |
+
foreach ( $array_urls as $array_url ) {
|
5660 |
+
if ( isset( $_POST[$array_url] ) ) {
|
5661 |
+
update_post_meta( $link_id, $array_url, esc_url( $_POST[$array_url] ) );
|
5662 |
+
}
|
5663 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5664 |
|
5665 |
+
$array_escape_items = array( 'link_description', 'link_notes', 'link_telephone', 'link_reciprocal', 'link_submitter', 'link_submitter_name', 'link_rel' );
|
5666 |
+
foreach ( $array_escape_items as $array_escape_item ) {
|
5667 |
+
if ( isset( $_POST[$array_escape_item] ) ) {
|
5668 |
+
update_post_meta( $link_id, $array_escape_item, sanitize_text_field( $_POST[$array_escape_item] ) );
|
5669 |
+
}
|
5670 |
+
}
|
5671 |
|
5672 |
+
if ( isset( $_POST['link_updated'] ) && !empty( $_POST['link_updated'] ) ) {
|
5673 |
+
update_post_meta( $link_id, 'link_updated', strtotime( $_POST['link_updated'] ) );
|
5674 |
+
} else {
|
5675 |
+
update_post_meta( $link_id, 'link_updated', current_time( 'timestamp' ) );
|
5676 |
+
}
|
5677 |
|
5678 |
+
$array_kses_items = array( 'link_textfield' );
|
5679 |
+
foreach ( $array_kses_items as $array_kses_item ) {
|
5680 |
+
if ( isset( $_POST[$array_kses_item] ) ) {
|
5681 |
+
update_post_meta( $link_id, $array_kses_item, wp_kses_post( $_POST[$array_kses_item] ) );
|
5682 |
+
}
|
5683 |
+
}
|
5684 |
|
5685 |
+
$array_email_items = array( 'link_email', 'link_submitter_email' );
|
5686 |
+
foreach ( $array_email_items as $array_email_item ) {
|
5687 |
+
if ( isset( $_POST[$array_email_item] ) ) {
|
5688 |
+
update_post_meta( $link_id, $array_email_item, sanitize_email( $_POST[$array_email_item] ) );
|
5689 |
+
}
|
5690 |
+
}
|
5691 |
|
5692 |
+
$array_price_items = array( 'link_price' );
|
5693 |
+
foreach ( $array_price_items as $array_price_item ) {
|
5694 |
+
if ( isset( $_POST[$array_price_item] ) ) {
|
5695 |
+
update_post_meta( $link_id, $array_price_item, floatval( $_POST[$array_price_item] ) );
|
5696 |
+
}
|
5697 |
+
}
|
5698 |
|
5699 |
+
$array_num_items = array( 'link_rating', 'link_visits' );
|
5700 |
+
foreach ( $array_num_items as $array_num_item ) {
|
5701 |
+
if ( isset( $_POST[$array_num_item] ) ) {
|
5702 |
+
update_post_meta( $link_id, $array_num_item, intval( $_POST[$array_num_item] ) );
|
5703 |
}
|
5704 |
+
}
|
5705 |
|
5706 |
+
$array_direct_items = array( 'link_target' );
|
5707 |
+
foreach ( $array_direct_items as $array_direct_item ) {
|
5708 |
+
if ( isset( $_POST[$array_direct_item] ) ) {
|
5709 |
+
update_post_meta( $link_id, $array_direct_item, $_POST[$array_direct_item] );
|
|
|
5710 |
}
|
5711 |
+
}
|
5712 |
|
5713 |
+
$array_boolean_items = array( 'link_featured', 'link_no_follow', 'link_updated_manual' );
|
5714 |
+
foreach ( $array_boolean_items as $array_boolean_item ) {
|
5715 |
+
if ( isset( $_POST[$array_boolean_item] ) ) {
|
5716 |
+
update_post_meta( $link_id, $array_boolean_item, true );
|
5717 |
} else {
|
5718 |
+
update_post_meta( $link_id, $array_boolean_item, false );
|
5719 |
}
|
5720 |
+
}
|
5721 |
+
|
5722 |
+
if ( isset( $_POST['link_featured'] ) ) {
|
5723 |
+
update_post_meta( $link_id, 'link_featured', 1 );
|
5724 |
} else {
|
5725 |
+
update_post_meta( $link_id, 'link_featured', 0 );
|
5726 |
}
|
5727 |
|
5728 |
+
$newrating = intval( $_POST['link_rating'] );
|
5729 |
+
if ( $newrating < 0 ) {
|
5730 |
+
$newrating = 0;
|
5731 |
+
} elseif ( $newrating > 10 ) {
|
5732 |
+
$newrating = 10;
|
5733 |
+
}
|
5734 |
+
}
|
5735 |
+
}
|
5736 |
+
|
5737 |
+
function ll_add_columns( $columns ) {
|
5738 |
+
$columns['link_library_updated'] = 'Updated';
|
5739 |
+
$columns['link_library_url'] = 'URL';
|
5740 |
+
$columns['link_library_categories'] = 'Categories';
|
5741 |
+
$columns['link_library_rating'] = 'Rating';
|
5742 |
+
$columns['link_library_visits'] = 'Hits';
|
5743 |
+
unset( $columns['comments'] );
|
5744 |
+
unset( $columns['date'] );
|
5745 |
+
return $columns;
|
5746 |
+
}
|
5747 |
+
|
5748 |
+
function ll_populate_columns( $column ) {
|
5749 |
+
if ( 'link_library_updated' == $column ) {
|
5750 |
+
$link_updated = get_post_meta( get_the_ID(), 'link_updated', true );
|
5751 |
+
|
5752 |
+
$date_diff = time() - intval( $link_updated );
|
5753 |
|
5754 |
+
if ( $date_diff < 604800 ) {
|
5755 |
+
echo '<strong>** RECENTLY UPDATED **</strong><br />';
|
|
|
|
|
5756 |
}
|
5757 |
|
5758 |
+
echo date( "Y-m-d H:i", $link_updated );
|
5759 |
+
} elseif ( 'link_library_url' == $column ) {
|
5760 |
+
$link_url = esc_url( get_post_meta( get_the_ID(), 'link_url', true ) );
|
5761 |
+
echo '<a href="' . $link_url . '">' . $link_url . '</a>';
|
5762 |
+
} elseif ( 'link_library_categories' == $column ) {
|
5763 |
+
$link_categories = wp_get_post_terms( get_the_ID(), 'link_library_category' );
|
5764 |
+
if ( $link_categories ) {
|
5765 |
+
$countcats = 0;
|
5766 |
+
foreach ( $link_categories as $link_category ) {
|
5767 |
+
if ( $countcats >= 1 ) {
|
5768 |
+
echo ', ';
|
5769 |
+
}
|
5770 |
+
echo $link_category->name;
|
5771 |
+
$countcats++;
|
5772 |
+
}
|
5773 |
} else {
|
5774 |
+
echo 'None Assigned';
|
5775 |
}
|
5776 |
+
} elseif ( 'link_library_rating' == $column ) {
|
5777 |
+
$link_rating = esc_html( get_post_meta( get_the_ID(), 'link_rating', true ) );
|
5778 |
+
echo $link_rating;
|
5779 |
+
} elseif ( 'link_library_visits' == $column ) {
|
5780 |
+
$link_visits = esc_html( get_post_meta( get_the_ID(), 'link_visits', true ) );
|
5781 |
+
echo $link_visits;
|
5782 |
+
}
|
5783 |
+
}
|
5784 |
|
5785 |
+
function ll_column_sortable( $columns ) {
|
5786 |
+
$columns['link_library_url'] = 'link_library_url';
|
5787 |
+
$columns['link_library_rating'] = 'link_library_rating';
|
5788 |
|
5789 |
+
return $columns;
|
5790 |
+
}
|
|
|
|
|
5791 |
|
5792 |
+
function ll_column_ordering( $vars ) {
|
5793 |
+
if ( !is_admin() ) {
|
5794 |
+
return $vars;
|
5795 |
+
}
|
5796 |
|
5797 |
+
if ( isset( $vars['orderby'] ) && 'link_library_url' == $vars['orderby'] ) {
|
5798 |
+
$vars = array_merge( $vars, array(
|
5799 |
+
'meta_key' => 'link_url',
|
5800 |
+
'orderby' => 'meta_value' ) );
|
5801 |
+
} elseif ( isset( $vars['orderby'] ) && 'link_library_rating' == $vars['orderby'] ) {
|
5802 |
+
$vars = array_merge( $vars, array(
|
5803 |
+
'meta_key' => 'link_rating',
|
5804 |
+
'orderby' => 'meta_value_num' ) );
|
5805 |
+
}
|
5806 |
|
5807 |
+
return $vars;
|
5808 |
+
}
|
|
|
|
|
|
|
5809 |
|
5810 |
+
function ll_custom_post_order( $query ) {
|
5811 |
+
/* The current post type. */
|
5812 |
+
$post_type = $query->get('post_type');
|
5813 |
+
/* Check post types. */
|
5814 |
+
if ( $post_type == 'link_library_links' ) {
|
5815 |
+
/* Post Column: e.g. title */
|
5816 |
+
if ( $query->get('orderby') == '' ) {
|
5817 |
+
$query->set('orderby', 'title');
|
5818 |
+
}
|
5819 |
+
/* Post Order: ASC / DESC */
|
5820 |
+
if ( $query->get('order') == '' ) {
|
5821 |
+
$query->set( 'order', 'ASC' );
|
5822 |
+
}
|
5823 |
+
}
|
5824 |
+
}
|
5825 |
|
5826 |
+
function ll_display_custom_quickedit_link( $column_name, $post_type ) {
|
5827 |
+
static $printNonce = TRUE;
|
5828 |
+
if ( $printNonce ) {
|
5829 |
+
$printNonce = FALSE;
|
5830 |
+
wp_nonce_field( plugin_basename( __FILE__ ), 'link_edit_nonce' );
|
5831 |
+
}
|
5832 |
+
|
5833 |
+
?>
|
5834 |
+
<fieldset class="inline-edit-col-right inline-edit-link">
|
5835 |
+
<div class="inline-edit-col column-<?php echo $column_name; ?>">
|
5836 |
+
<label class="inline-edit-group">
|
5837 |
+
<?php
|
5838 |
+
switch ( $column_name ) {
|
5839 |
+
case 'link_library_url':
|
5840 |
+
?><span class="title">URL</span><input type="text" name="link_url" id="link_url" /><?php
|
5841 |
+
break;
|
5842 |
+
}
|
5843 |
+
?>
|
5844 |
+
</label>
|
5845 |
+
</div>
|
5846 |
+
</fieldset>
|
5847 |
+
<?php
|
5848 |
+
}
|
5849 |
|
|
|
|
|
|
|
5850 |
|
|
|
|
|
|
|
5851 |
|
5852 |
+
function network_settings_menu() {
|
5853 |
+
add_submenu_page( 'settings.php', 'Link Library Network Config', 'Link Library Network Config', 'manage_options', 'link_library_network_admin_page', array( $this, 'link_library_network_admin_page' ) );
|
5854 |
+
}
|
5855 |
|
5856 |
+
function link_library_network_admin_page() {
|
|
|
|
|
5857 |
|
5858 |
+
if ( isset( $_POST['link-library-submit-settings'] ) && check_admin_referer( 'link-library-network' ) ) {
|
|
|
|
|
5859 |
|
5860 |
+
$optionnames = array( 'updatechannel' );
|
|
|
|
|
5861 |
|
5862 |
+
foreach ( $optionnames as $optionname ) {
|
5863 |
+
if ( isset( $_POST[$optionname] ) && !empty( $_POST[$optionname] ) ) {
|
5864 |
+
$networkoptions[$optionname] = $_POST[$optionname];
|
5865 |
+
}
|
5866 |
}
|
5867 |
|
5868 |
+
update_site_option( 'LinkLibraryNetworkOptions', $networkoptions );
|
|
|
|
|
|
|
|
|
5869 |
|
5870 |
+
echo '<div id="message" class="updated fade"><p><strong>Network Settings Saved</strong></p></div>';
|
5871 |
+
}
|
|
|
|
|
|
|
5872 |
|
5873 |
+
$networkoptions = get_site_option( 'LinkLibraryNetworkOptions' );
|
5874 |
+
|
5875 |
+
if ( empty( $networkoptions ) ) {
|
5876 |
+
$networkoptions['updatechannel'] = 'standard';
|
|
|
|
|
|
|
5877 |
}
|
5878 |
+
?>
|
5879 |
|
5880 |
+
<div id="link_library_network_options" class="wrap">
|
5881 |
+
<h2>Link Library Network Options</h2>
|
|
|
5882 |
|
5883 |
+
<form name="link_library_network_options_form" method="post">
|
5884 |
+
<input type="hidden" name="link-library-submit-settings" value="1">
|
5885 |
+
<?php wp_nonce_field( 'link-library-network' ); ?>
|
5886 |
+
<table>
|
5887 |
+
<tr>
|
5888 |
+
<td><?php _e( 'Update channel', 'link-library' ); ?></td>
|
5889 |
+
<td><select id="updatechannel" name="updatechannel">
|
5890 |
+
<option value="standard" <?php selected( $networkoptions['updatechannel'], 'standard' ); ?>><?php _e( 'Standard channel - Updates as they are released', 'link-library' ); ?>
|
5891 |
+
<option value="monthly" <?php selected( $networkoptions['updatechannel'], 'monthly' ); ?>><?php _e( 'Monthly Channel - Updates once per month', 'link-library' ); ?>
|
5892 |
+
</select></td>
|
5893 |
+
</tr>
|
5894 |
+
</table><br />
|
5895 |
+
<input type="submit" value="Submit" class="button-primary" />
|
5896 |
+
</form>
|
5897 |
+
</div>
|
5898 |
|
5899 |
+
<?php }
|
|
|
|
|
5900 |
|
5901 |
+
/************************************************ Delete extra field data when link is deleted ***********************************/
|
5902 |
+
function ll_link_cat_filter_list() {
|
5903 |
+
$screen = get_current_screen();
|
5904 |
+
global $wp_query;
|
5905 |
+
|
5906 |
+
if ( $screen->post_type == 'link_library_links' ) {
|
5907 |
+
wp_dropdown_categories(array(
|
5908 |
+
'show_option_all' => 'All Link Categories',
|
5909 |
+
'taxonomy' => 'link_library_category',
|
5910 |
+
'name' => 'link_library_category',
|
5911 |
+
'orderby' => 'name',
|
5912 |
+
'selected' =>
|
5913 |
+
( isset( $wp_query->query['link_library_category'] ) ?
|
5914 |
+
$wp_query->query['link_library_category'] : '' ),
|
5915 |
+
'hierarchical' => true,
|
5916 |
+
'depth' => 3,
|
5917 |
+
'show_count' => false,
|
5918 |
+
'hide_empty' => false,
|
5919 |
+
)
|
5920 |
+
);
|
5921 |
+
}
|
5922 |
}
|
5923 |
|
5924 |
+
function ll_perform_link_cat_filtering( $query ) {
|
5925 |
+
$qv = &$query->query_vars;
|
5926 |
|
5927 |
+
if ( !empty( $qv['link_library_category'] ) && is_numeric( $qv['link_library_category'] ) ) {
|
5928 |
+
$term = get_term_by( 'id', $qv['link_library_category'], 'link_library_category' );
|
5929 |
+
$qv['link_library_category'] = $term->slug;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5930 |
}
|
5931 |
}
|
5932 |
|
5933 |
function link_library_duplicate_link_checker( $ll_admin_class ) {
|
5934 |
+
global $wpdb; // Kept with CPT update
|
5935 |
echo "<strong>" . __( 'Duplicate Link Checker Report', 'link-library' ) . "</strong><br /><br />";
|
5936 |
|
5937 |
echo "<strong>" . __( 'Duplicate URLs', 'link-library' ) . "</strong><br /><br />";
|
5938 |
+
$linkquery = "SELECT p.ID, p.post_title, pm.meta_value FROM " . $ll_admin_class->db_prefix() . "posts p, " . $ll_admin_class->db_prefix() . "postmeta pm INNER JOIN";
|
5939 |
+
$linkquery .= "(SELECT trim( TRAILING '/' FROM meta_value ) as trim_link_url ";
|
5940 |
+
$linkquery .= "FROM " . $ll_admin_class->db_prefix() . "posts p, " . $ll_admin_class->db_prefix() . "postmeta pm where pm.post_id = p.ID and pm.meta_key = 'link_url' and p.post_type = 'link_library_links' and p.post_status in ( 'publish', 'pending', 'draft', 'future', 'private' ) GROUP BY meta_value HAVING count(p.ID) > 1) dup ";
|
5941 |
+
$linkquery .= "ON pm.meta_value = dup.trim_link_url ";
|
5942 |
+
$linkquery .= "WHERE p.ID = pm.post_id and p.post_type = 'link_library_links' and pm.meta_key = 'link_url' and p.post_status in ( 'publish', 'pending', 'draft', 'future', 'private' )";
|
5943 |
|
5944 |
$links = $wpdb->get_results( $linkquery );
|
5945 |
|
5946 |
if ( $links ) {
|
5947 |
foreach ( $links as $link ) {
|
5948 |
+
echo $link->ID . ' - ' . $link->post_title . ': ' . $link->meta_value . '<br /><br />';
|
5949 |
}
|
5950 |
} else {
|
5951 |
echo 'No duplicate URL links found';
|
5952 |
}
|
5953 |
|
5954 |
echo "<br /><br /><strong>" . __( 'Duplicate Names', 'link-library' ) . "</strong><br /><br />";
|
5955 |
+
|
5956 |
+
$linkquery = "SELECT p.ID, p.post_title FROM " . $ll_admin_class->db_prefix() . "posts p INNER JOIN";
|
5957 |
+
$linkquery .= "(SELECT trim( TRAILING '/' FROM post_title ) as trim_post_title ";
|
5958 |
+
$linkquery .= "FROM " . $ll_admin_class->db_prefix() . "posts p WHERE p.post_status in ( 'publish', 'pending', 'draft', 'future', 'private' ) GROUP BY post_title HAVING count(p.ID) > 1) dup ";
|
5959 |
+
$linkquery .= "ON p.post_title = dup.trim_post_title ";
|
5960 |
+
$linkquery .= "WHERE p.post_type = 'link_library_links' AND p.post_status in ( 'publish', 'pending', 'draft', 'future', 'private' ) ";
|
5961 |
|
5962 |
$links = $wpdb->get_results( $linkquery );
|
5963 |
|
5964 |
if ( $links ) {
|
5965 |
foreach ( $links as $link ) {
|
5966 |
+
echo $link->ID . ' - ' . $link->post_title . '<br /><br />';
|
5967 |
}
|
5968 |
} else {
|
5969 |
echo 'No duplicate name links found';
|
5973 |
}
|
5974 |
}
|
5975 |
|
5976 |
+
function link_library_reciprocal_link_checker() {
|
5977 |
+
|
5978 |
+
$RecipCheckAddress = ( isset( $_POST['RecipCheckAddress'] ) && !empty( $_POST['RecipCheckAddress'] ) ? $_POST['RecipCheckAddress'] : '' );
|
5979 |
+
$recipcheckdelete403 = ( isset( $_POST['recipcheckdelete403'] ) && !empty( $_POST['recipcheckdelete403'] ) && 'true' == $_POST['recipcheckdelete403'] ? true : false );
|
5980 |
+
$check_type = ( isset( $_POST['mode'] ) && !empty( $_POST['mode'] ) ? $_POST['mode'] : 'reciprocal' );
|
5981 |
|
5982 |
if ( ! empty( $RecipCheckAddress ) || ( empty( $RecipCheckAddress ) && 'reciprocal' != $check_type ) ) {
|
5983 |
+
$args = array(
|
5984 |
+
'post_type' => 'link_library_links',
|
5985 |
+
'post_status' => array( 'publish', 'pending', 'draft', 'future', 'private' ),
|
5986 |
+
'orderby' => 'post_title',
|
5987 |
+
'order' => 'ASC',
|
5988 |
+
'meta_value' => ' ',
|
5989 |
+
'meta_compare' => '!=',
|
5990 |
+
'posts_per_page' => 1,
|
5991 |
+
'paged' => ( isset( $_POST['index'] ) ? $_POST['index'] : 1 )
|
5992 |
+
);
|
5993 |
|
5994 |
if ( 'reciprocal' == $check_type ) {
|
5995 |
+
$args['meta_key'] = 'link_reciprocal';
|
5996 |
+
|
5997 |
} elseif ( 'broken' == $check_type ) {
|
5998 |
+
$args['meta_key'] = 'link_url';
|
5999 |
}
|
6000 |
|
6001 |
+
$the_link_query = new WP_Query( $args );
|
6002 |
|
6003 |
+
if ( $the_link_query->have_posts() ) {
|
6004 |
+
while ( $the_link_query->have_posts() ) {
|
6005 |
+
$the_link_query->the_post();
|
|
|
|
|
|
|
6006 |
|
|
|
|
|
6007 |
global $my_link_library_plugin;
|
6008 |
+
$link_url = get_post_meta( get_the_ID(), 'link_url', true );
|
6009 |
|
6010 |
if ( 'reciprocal' == $check_type ) {
|
6011 |
+
$link_reciprocal = get_post_meta( get_the_ID(), 'link_reciprocal', true );
|
6012 |
+
$reciprocal_result = $my_link_library_plugin->CheckReciprocalLink( $RecipCheckAddress, $link_reciprocal );
|
6013 |
} elseif ( 'broken' == $check_type ) {
|
6014 |
+
$reciprocal_result = $my_link_library_plugin->CheckReciprocalLink( $RecipCheckAddress, $link_url );
|
6015 |
}
|
6016 |
|
6017 |
+
echo '<a href="' . $link_url . '">' . get_the_title() . '</a>: ';
|
6018 |
|
6019 |
if ( 'reciprocal' == $check_type && $reciprocal_result == 'exists_notfound' ) {
|
6020 |
echo '<span style="color: #FF0000">' . __( 'Not Found', 'link-library' ) . '</span><br />';
|
6023 |
} elseif ( 'broken' == $check_type && strpos( $reciprocal_result, 'exists' ) !== false ) {
|
6024 |
echo '<span style="color: #00FF00">' . __( 'Link valid', 'link-library' ) . '</span><br />';
|
6025 |
} elseif ( $reciprocal_result == 'error_403' && $recipcheckdelete403 == true ) {
|
6026 |
+
wp_delete_post( get_the_ID() );
|
6027 |
echo '<span style="color: #FF0000">' . __( 'Error 403: Link Deleted', 'link-library' ) . '</span><br />';
|
6028 |
} elseif ( $reciprocal_result == 'error_403' && $recipcheckdelete403 == false ) {
|
6029 |
echo '<span style="color: #FF0000">' . __( 'Error 403', 'link-library' ) . '</span><br />';
|
6031 |
echo '<span style="color: #FF0000">' . __( 'Website Unreachable', 'link-library' ) . '</span><br />';
|
6032 |
}
|
6033 |
}
|
6034 |
+
|
6035 |
+
echo '<div class="nextcheckitem"></div>';
|
6036 |
} else {
|
6037 |
+
if ( 'reciprocal' == $check_type ) {
|
6038 |
+
echo __( 'There are no links with reciprocal links associated with them', 'link-library' ) . ".<br />";
|
6039 |
+
} elseif ( 'broken' == $check_type ) {
|
6040 |
+
echo __( 'There are no links to check', 'link-library' ) . ".<br />";
|
6041 |
+
}
|
6042 |
+
|
6043 |
}
|
|
|
6044 |
|
6045 |
+
wp_reset_postdata();
|
6046 |
+
}
|
6047 |
+
die();
|
6048 |
}
|
6049 |
|
6050 |
function link_library_render_editor_button() {
|
link-library-defaults.php
CHANGED
@@ -16,13 +16,10 @@ function ll_reset_options( $settings = 1, $layout = 'list', $setoptions = 'retur
|
|
16 |
$options['afteritem'] = '</li>';
|
17 |
$options['beforedesc'] = '';
|
18 |
$options['afterdesc'] = '';
|
19 |
-
$options['displayastable'] = false;
|
20 |
$options['beforelink'] = '';
|
21 |
$options['afterlink'] = '';
|
22 |
$options['showcolumnheaders'] = false;
|
23 |
-
$options['linkheader'] = '';
|
24 |
-
$options['descheader'] = '';
|
25 |
-
$options['notesheader'] = '';
|
26 |
$options['beforerss'] = '';
|
27 |
$options['afterrss'] = '';
|
28 |
$options['beforedate'] = '';
|
@@ -37,6 +34,7 @@ function ll_reset_options( $settings = 1, $layout = 'list', $setoptions = 'retur
|
|
37 |
$options['afteremail'] = '';
|
38 |
$options['beforelinkhits'] = '';
|
39 |
$options['afterlinkhits'] = '';
|
|
|
40 |
} elseif ( $layout == "table" ) {
|
41 |
$options['num_columns'] = 3;
|
42 |
$options['showdescription'] = true;
|
@@ -47,13 +45,10 @@ function ll_reset_options( $settings = 1, $layout = 'list', $setoptions = 'retur
|
|
47 |
$options['afteritem'] = '</tr>';
|
48 |
$options['beforedesc'] = '<td>';
|
49 |
$options['afterdesc'] = '</td>';
|
50 |
-
$options['displayastable'] = true;
|
51 |
$options['beforelink'] = '<td>';
|
52 |
$options['afterlink'] = '</td>';
|
53 |
$options['showcolumnheaders'] = true;
|
54 |
-
$options['linkheader'] = 'Application';
|
55 |
-
$options['descheader'] = 'Description';
|
56 |
-
$options['notesheader'] = 'Similar to';
|
57 |
$options['beforerss'] = '<td>';
|
58 |
$options['afterrss'] = '</td>';
|
59 |
$options['beforedate'] = '<td>';
|
@@ -68,6 +63,7 @@ function ll_reset_options( $settings = 1, $layout = 'list', $setoptions = 'retur
|
|
68 |
$options['afteremail'] = '</td>';
|
69 |
$options['beforelinkhits'] = '<td>';
|
70 |
$options['afterlinkhits'] = '</td>';
|
|
|
71 |
}
|
72 |
|
73 |
$options['order'] = 'name';
|
@@ -75,8 +71,8 @@ function ll_reset_options( $settings = 1, $layout = 'list', $setoptions = 'retur
|
|
75 |
$options['table_width'] = 100;
|
76 |
$options['catanchor'] = true;
|
77 |
$options['flatlist'] = 'table';
|
78 |
-
$options['
|
79 |
-
$options['
|
80 |
$options['showrating'] = false;
|
81 |
$options['showupdated'] = false;
|
82 |
$options['show_images'] = false;
|
@@ -100,7 +96,7 @@ function ll_reset_options( $settings = 1, $layout = 'list', $setoptions = 'retur
|
|
100 |
$options['showadmineditlinks'] = true;
|
101 |
$options['showonecatonly'] = false;
|
102 |
$options['loadingicon'] = '/icons/Ajax-loader.gif';
|
103 |
-
$options['
|
104 |
$options['rsspreview'] = false;
|
105 |
$options['rsspreviewcount'] = 3;
|
106 |
$options['rssfeedinline'] = false;
|
@@ -154,7 +150,7 @@ function ll_reset_options( $settings = 1, $layout = 'list', $setoptions = 'retur
|
|
154 |
$options['linkcustomcatlabel'] = __( 'User-submitted category', 'link-library' );
|
155 |
$options['linkcustomcatlistentry'] = __( 'User-submitted category (define below)', 'link-library' );
|
156 |
$options['searchlabel'] = 'Search';
|
157 |
-
$options['dragndroporder'] = '1,2,3,4,5,6,7,8,9,10,11,12,13,14';
|
158 |
$options['showname'] = true;
|
159 |
$options['cattargetaddress'] = '';
|
160 |
$options['displayweblink'] = 'false';
|
@@ -237,10 +233,36 @@ function ll_reset_options( $settings = 1, $layout = 'list', $setoptions = 'retur
|
|
237 |
$options['beforecatdesc'] = '';
|
238 |
$options['aftercatdesc'] = '';
|
239 |
$options['emailextracontent'] = '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
240 |
$options['extraquerystring'] = '';
|
241 |
$options['updatedlabel'] = __( 'New', 'link-library' );
|
242 |
$options['showupdatedpos'] = 'before';
|
243 |
$options['showsearchreset'] = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
244 |
|
245 |
if ( 'return_and_set' == $setoptions ) {
|
246 |
$settingsname = 'LinkLibraryPP' . $settings;
|
@@ -252,42 +274,44 @@ function ll_reset_options( $settings = 1, $layout = 'list', $setoptions = 'retur
|
|
252 |
|
253 |
// Function used to set general initial settings or reset them on user request
|
254 |
function ll_reset_gen_settings( $setoptions = 'return' ) {
|
255 |
-
$genoptions['numberstylesets']
|
256 |
-
$genoptions['includescriptcss']
|
257 |
-
$genoptions['debugmode']
|
258 |
-
$genoptions['schemaversion']
|
259 |
-
$genoptions['pagetitleprefix']
|
260 |
-
$genoptions['pagetitlesuffix']
|
261 |
-
$genoptions['thumbshotscid']
|
262 |
-
$genoptions['emaillinksubmitter']
|
263 |
-
$genoptions['suppressemailfooter']
|
264 |
-
$genoptions['moderatorname']
|
265 |
-
$genoptions['moderatoremail']
|
266 |
-
$genoptions['approvalemailtitle']
|
267 |
-
$genoptions['approvalemailbody']
|
268 |
-
$genoptions['rejectedemailtitle']
|
269 |
-
$genoptions['rejectedemailbody']
|
270 |
-
$genoptions['moderationnotificationtitle']
|
271 |
-
$genoptions['linksubmissionthankyouurl']
|
272 |
-
$genoptions['usefirstpartsubmittername']
|
273 |
-
$genoptions['recipcheckaddress']
|
274 |
-
$genoptions['recipcheckdelete403']
|
275 |
-
$genoptions['imagefilepath']
|
276 |
-
$genoptions['catselectmethod']
|
277 |
-
$genoptions['hidedonation']
|
278 |
-
$genoptions['updatechannel']
|
279 |
-
$genoptions['extraprotocols']
|
280 |
-
$genoptions['fullstylesheet']
|
281 |
-
$genoptions['thumbnailsize']
|
282 |
-
$genoptions['thumbnailgenerator']
|
283 |
-
$genoptions['survey2015']
|
284 |
-
$genoptions['addlinkakismet']
|
285 |
-
$genoptions['rsscachedelay']
|
|
|
286 |
$genoptions['captchagenerator'] = 'easycaptcha';
|
287 |
$genoptions['recaptchasitekey'] = '';
|
288 |
$genoptions['recaptchasecretkey'] = '';
|
289 |
$genoptions['rolelevel'] = 'Administrator';
|
290 |
$genoptions['editlevel'] = 'Administrator';
|
|
|
291 |
|
292 |
if ( 'return_and_set' == $setoptions ) {
|
293 |
$stylesheetlocation = plugins_url( 'stylesheettemplate.css', __FILE__ );
|
16 |
$options['afteritem'] = '</li>';
|
17 |
$options['beforedesc'] = '';
|
18 |
$options['afterdesc'] = '';
|
19 |
+
$options['displayastable'] = 'false';
|
20 |
$options['beforelink'] = '';
|
21 |
$options['afterlink'] = '';
|
22 |
$options['showcolumnheaders'] = false;
|
|
|
|
|
|
|
23 |
$options['beforerss'] = '';
|
24 |
$options['afterrss'] = '';
|
25 |
$options['beforedate'] = '';
|
34 |
$options['afteremail'] = '';
|
35 |
$options['beforelinkhits'] = '';
|
36 |
$options['afterlinkhits'] = '';
|
37 |
+
$options['columnheaderoverride'] = '';
|
38 |
} elseif ( $layout == "table" ) {
|
39 |
$options['num_columns'] = 3;
|
40 |
$options['showdescription'] = true;
|
45 |
$options['afteritem'] = '</tr>';
|
46 |
$options['beforedesc'] = '<td>';
|
47 |
$options['afterdesc'] = '</td>';
|
48 |
+
$options['displayastable'] = 'true';
|
49 |
$options['beforelink'] = '<td>';
|
50 |
$options['afterlink'] = '</td>';
|
51 |
$options['showcolumnheaders'] = true;
|
|
|
|
|
|
|
52 |
$options['beforerss'] = '<td>';
|
53 |
$options['afterrss'] = '</td>';
|
54 |
$options['beforedate'] = '<td>';
|
63 |
$options['afteremail'] = '</td>';
|
64 |
$options['beforelinkhits'] = '<td>';
|
65 |
$options['afterlinkhits'] = '</td>';
|
66 |
+
$options['columnheaderoverride'] = 'Application,Description,Similar to';
|
67 |
}
|
68 |
|
69 |
$options['order'] = 'name';
|
71 |
$options['table_width'] = 100;
|
72 |
$options['catanchor'] = true;
|
73 |
$options['flatlist'] = 'table';
|
74 |
+
$options['categorylist_cpt'] = null;
|
75 |
+
$options['excludecategorylist_cpt'] = null;
|
76 |
$options['showrating'] = false;
|
77 |
$options['showupdated'] = false;
|
78 |
$options['show_images'] = false;
|
96 |
$options['showadmineditlinks'] = true;
|
97 |
$options['showonecatonly'] = false;
|
98 |
$options['loadingicon'] = '/icons/Ajax-loader.gif';
|
99 |
+
$options['defaultsinglecat_cpt'] = '';
|
100 |
$options['rsspreview'] = false;
|
101 |
$options['rsspreviewcount'] = 3;
|
102 |
$options['rssfeedinline'] = false;
|
150 |
$options['linkcustomcatlabel'] = __( 'User-submitted category', 'link-library' );
|
151 |
$options['linkcustomcatlistentry'] = __( 'User-submitted category (define below)', 'link-library' );
|
152 |
$options['searchlabel'] = 'Search';
|
153 |
+
$options['dragndroporder'] = '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16';
|
154 |
$options['showname'] = true;
|
155 |
$options['cattargetaddress'] = '';
|
156 |
$options['displayweblink'] = 'false';
|
233 |
$options['beforecatdesc'] = '';
|
234 |
$options['aftercatdesc'] = '';
|
235 |
$options['emailextracontent'] = '';
|
236 |
+
$options['showparentcatname'] = false;
|
237 |
+
$options['showparentcatdesc'] = false;
|
238 |
+
$options['hidechildcatlinks'] = false;
|
239 |
+
$options['childcatdepthlimit'] = 0;
|
240 |
+
$options['hidechildcattop'] = false;
|
241 |
+
$options['catlinkspermalinksmode'] = false;
|
242 |
+
$options['toppagetext'] = '';
|
243 |
+
$options['showbreadcrumbspermalinks'] = false;
|
244 |
+
$options['showlinktags'] = false;
|
245 |
+
$options['beforelinktags'] = '';
|
246 |
+
$options['afterlinktags'] = '';
|
247 |
+
$options['showlinkprice'] = false;
|
248 |
+
$options['beforelinkprice'] = '';
|
249 |
+
$options['afterlinkprice'] = '';
|
250 |
+
$options['linkcurrency'] = '$';
|
251 |
+
$options['linkcurrencyplacement'] = 'before';
|
252 |
+
$options['show0asfree'] = true;
|
253 |
+
$options['allowcolumnsorting'] = false;
|
254 |
$options['extraquerystring'] = '';
|
255 |
$options['updatedlabel'] = __( 'New', 'link-library' );
|
256 |
$options['showupdatedpos'] = 'before';
|
257 |
$options['showsearchreset'] = false;
|
258 |
+
$options['weblinktarget'] = '';
|
259 |
+
$options['linktagslabel'] = __( 'Link Tags', 'link-library' );
|
260 |
+
$options['showaddlinktags'] = 'hide';
|
261 |
+
$options['addlinktaglistoverride'] = '';
|
262 |
+
$options['linkcustomtaglabel'] = '';
|
263 |
+
$options['addlinkcustomtag'] = 'hide';
|
264 |
+
$options['linkcustomtaglistentry'] = 'User-submitted tag (define below)';
|
265 |
+
$options['showscheduledlinks'] = false;
|
266 |
|
267 |
if ( 'return_and_set' == $setoptions ) {
|
268 |
$settingsname = 'LinkLibraryPP' . $settings;
|
274 |
|
275 |
// Function used to set general initial settings or reset them on user request
|
276 |
function ll_reset_gen_settings( $setoptions = 'return' ) {
|
277 |
+
$genoptions['numberstylesets'] = 1;
|
278 |
+
$genoptions['includescriptcss'] = '';
|
279 |
+
$genoptions['debugmode'] = false;
|
280 |
+
$genoptions['schemaversion'] = '5.0';
|
281 |
+
$genoptions['pagetitleprefix'] = '';
|
282 |
+
$genoptions['pagetitlesuffix'] = '';
|
283 |
+
$genoptions['thumbshotscid'] = '';
|
284 |
+
$genoptions['emaillinksubmitter'] = false;
|
285 |
+
$genoptions['suppressemailfooter'] = false;
|
286 |
+
$genoptions['moderatorname'] = '';
|
287 |
+
$genoptions['moderatoremail'] = '';
|
288 |
+
$genoptions['approvalemailtitle'] = '';
|
289 |
+
$genoptions['approvalemailbody'] = '';
|
290 |
+
$genoptions['rejectedemailtitle'] = '';
|
291 |
+
$genoptions['rejectedemailbody'] = '';
|
292 |
+
$genoptions['moderationnotificationtitle'] = '';
|
293 |
+
$genoptions['linksubmissionthankyouurl'] = '';
|
294 |
+
$genoptions['usefirstpartsubmittername'] = '';
|
295 |
+
$genoptions['recipcheckaddress'] = get_bloginfo( 'wpurl' );
|
296 |
+
$genoptions['recipcheckdelete403'] = false;
|
297 |
+
$genoptions['imagefilepath'] = 'absolute';
|
298 |
+
$genoptions['catselectmethod'] = 'multiselectlist';
|
299 |
+
$genoptions['hidedonation'] = false;
|
300 |
+
$genoptions['updatechannel'] = 'standard';
|
301 |
+
$genoptions['extraprotocols'] = '';
|
302 |
+
$genoptions['fullstylesheet'] = '';
|
303 |
+
$genoptions['thumbnailsize'] = '120x90';
|
304 |
+
$genoptions['thumbnailgenerator'] = 'robothumb';
|
305 |
+
$genoptions['survey2015'] = false;
|
306 |
+
$genoptions['addlinkakismet'] = false;
|
307 |
+
$genoptions['rsscachedelay'] = 43200;
|
308 |
+
$genoptions['single_link_layout'] = '[link_content]';
|
309 |
$genoptions['captchagenerator'] = 'easycaptcha';
|
310 |
$genoptions['recaptchasitekey'] = '';
|
311 |
$genoptions['recaptchasecretkey'] = '';
|
312 |
$genoptions['rolelevel'] = 'Administrator';
|
313 |
$genoptions['editlevel'] = 'Administrator';
|
314 |
+
$genoptions['cptslug'] = 'links';
|
315 |
|
316 |
if ( 'return_and_set' == $setoptions ) {
|
317 |
$stylesheetlocation = plugins_url( 'stylesheettemplate.css', __FILE__ );
|
link-library-image-generator.php
CHANGED
@@ -6,20 +6,20 @@ require_once plugin_dir_path( __FILE__ ) . 'link-library-defaults.php';
|
|
6 |
|
7 |
function link_library_ajax_image_generator ( $my_link_library_plugin_admin ) {
|
8 |
|
9 |
-
|
10 |
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
|
23 |
-
|
24 |
-
|
25 |
}
|
6 |
|
7 |
function link_library_ajax_image_generator ( $my_link_library_plugin_admin ) {
|
8 |
|
9 |
+
check_ajax_referer( 'link_library_generate_image' );
|
10 |
|
11 |
+
$generaloptions = get_option( 'LinkLibraryGeneral' );
|
12 |
+
$generaloptions = wp_parse_args( $generaloptions, ll_reset_gen_settings( 'return' ) );
|
13 |
+
extract( $generaloptions );
|
14 |
|
15 |
+
$name = $_POST['name'];
|
16 |
+
$url = $_POST['url'];
|
17 |
+
$mode = $_POST['mode'];
|
18 |
+
$cid = $_POST['cid'];
|
19 |
+
$filepath = $_POST['filepath'];
|
20 |
+
$filepathtype = $_POST['filepathtype'];
|
21 |
+
$linkid = intval($_POST['linkid']);
|
22 |
|
23 |
+
echo $my_link_library_plugin_admin->ll_get_link_image($url, $name, $mode, $linkid, $cid, $filepath, $filepathtype, $generaloptions['thumbnailsize'], $generaloptions['thumbnailgenerator'] );
|
24 |
+
exit;
|
25 |
}
|
link-library-update-60.php
ADDED
@@ -0,0 +1,251 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
function link_library_60_update( $plugin_class, $continue = false ) {
|
4 |
+
update_option( 'LinkLibrary60Update', true );
|
5 |
+
|
6 |
+
global $wpdb;
|
7 |
+
|
8 |
+
$link_query = 'select count(*) from ' . $plugin_class->db_prefix() . 'links';
|
9 |
+
$link_count = $wpdb->get_var( $link_query );
|
10 |
+
|
11 |
+
if ( $link_count > 0 ) {
|
12 |
+
$all_link_cats_query = 'SELECT t.name, t.term_id, tt.description ';
|
13 |
+
$all_link_cats_query .= 'FROM ' . $plugin_class->db_prefix() . 'terms t ';
|
14 |
+
$all_link_cats_query .= 'LEFT JOIN ' . $plugin_class->db_prefix() . 'term_taxonomy tt ON (t.term_id = tt.term_id) ';
|
15 |
+
$all_link_cats_query .= 'LEFT JOIN ' . $plugin_class->db_prefix() . 'term_relationships tr ON (tt.term_taxonomy_id = tr.term_taxonomy_id) ';
|
16 |
+
$all_link_cats_query .= 'WHERE tt.taxonomy = "link_category" ';
|
17 |
+
|
18 |
+
$all_link_cats = $wpdb->get_results( $all_link_cats_query );
|
19 |
+
|
20 |
+
foreach ( $all_link_cats as $link_cat ) {
|
21 |
+
$cat_string = $link_cat->name;
|
22 |
+
|
23 |
+
$cat_matched_term = get_term_by( 'name', $cat_string, 'link_library_category' );
|
24 |
+
|
25 |
+
if ( false === $cat_matched_term ) {
|
26 |
+
$new_cat_term_data = wp_insert_term( $cat_string, 'link_library_category', array( 'description' => $link_cat->description ) );
|
27 |
+
if ( is_wp_error( $new_cat_term_data ) ) {
|
28 |
+
print_r( 'Failed creating category ' . $cat_string );
|
29 |
+
} else {
|
30 |
+
$linkcaturl = get_metadata( 'linkcategory', $link_cat->term_id, 'linkcaturl', true );
|
31 |
+
|
32 |
+
if ( !empty( $linkcaturl ) ) {
|
33 |
+
update_term_meta( $new_cat_term_data['term_id'], 'linkcaturl', $linkcaturl );
|
34 |
+
}
|
35 |
+
}
|
36 |
+
}
|
37 |
+
}
|
38 |
+
|
39 |
+
$table_name = $plugin_class->db_prefix() . 'links_extrainfo';
|
40 |
+
if ( $wpdb->get_var( "SHOW TABLES LIKE '$table_name'" ) == $table_name ) {
|
41 |
+
|
42 |
+
$wpdb->links_extrainfo = $plugin_class->db_prefix() . 'links_extrainfo';
|
43 |
+
|
44 |
+
$creationquery = "CREATE TABLE " . $wpdb->links_extrainfo . " (
|
45 |
+
link_id bigint(20) NOT NULL DEFAULT '0',
|
46 |
+
link_second_url varchar(255) CHARACTER SET utf8 DEFAULT NULL,
|
47 |
+
link_telephone varchar(128) CHARACTER SET utf8 DEFAULT NULL,
|
48 |
+
link_email varchar(128) CHARACTER SET utf8 DEFAULT NULL,
|
49 |
+
link_visits bigint(20) DEFAULT '0',
|
50 |
+
link_reciprocal varchar(255) DEFAULT NULL,
|
51 |
+
link_submitter varchar(255) DEFAULT NULL,
|
52 |
+
link_submitter_name VARCHAR(128) CHARACTER SET utf8 NULL,
|
53 |
+
link_submitter_email VARCHAR(128) NULL,
|
54 |
+
link_textfield TEXT CHARACTER SET utf8 NULL,
|
55 |
+
link_no_follow VARCHAR(1) NULL,
|
56 |
+
link_featured VARCHAR(1) NULL,
|
57 |
+
link_manual_updated VARCHAR(1) NULL,
|
58 |
+
link_addl_rel VARCHAR(256) NULL,
|
59 |
+
PRIMARY KEY (link_id)
|
60 |
+
)";
|
61 |
+
|
62 |
+
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
|
63 |
+
dbDelta( $creationquery );
|
64 |
+
|
65 |
+
$wpdb->linkcategorymeta = $plugin_class->db_prefix() . 'linkcategorymeta';
|
66 |
+
|
67 |
+
$meta_creation_query =
|
68 |
+
'CREATE TABLE ' . $wpdb->linkcategorymeta . ' (
|
69 |
+
meta_id bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
70 |
+
linkcategory_id bigint(20) unsigned NOT NULL DEFAULT "0",
|
71 |
+
meta_key varchar(255) DEFAULT NULL,
|
72 |
+
meta_value longtext,
|
73 |
+
PRIMARY KEY (meta_id)
|
74 |
+
);';
|
75 |
+
|
76 |
+
dbDelta ( $meta_creation_query );
|
77 |
+
|
78 |
+
$links_import_query = "SELECT distinct l.link_id as import_link_id, l.link_name, l.link_url, l.link_rss, l.link_description, l.link_notes, ";
|
79 |
+
$links_import_query .= "GROUP_CONCAT( t.name ) as cat_name, l.link_visible, le.link_second_url, le.link_telephone, le.link_email, le.link_reciprocal, ";
|
80 |
+
$links_import_query .= "l.link_image, le.link_textfield, le.link_no_follow, l.link_rating, l.link_target, l.link_updated, le.link_visits, ";
|
81 |
+
$links_import_query .= "le.link_submitter, le.link_submitter_name, le.link_submitter_email, le.link_addl_rel, le.link_featured, le.link_manual_updated, l.link_owner ";
|
82 |
+
$links_import_query .= "FROM " . $plugin_class->db_prefix() . "terms t ";
|
83 |
+
$links_import_query .= "LEFT JOIN " . $plugin_class->db_prefix() . "term_taxonomy tt ON (t.term_id = tt.term_id) ";
|
84 |
+
$links_import_query .= "LEFT JOIN " . $plugin_class->db_prefix() . "term_relationships tr ON (tt.term_taxonomy_id = tr.term_taxonomy_id) ";
|
85 |
+
$links_import_query .= "LEFT JOIN " . $plugin_class->db_prefix() . "links l ON (tr.object_id = l.link_id) ";
|
86 |
+
$links_import_query .= "LEFT JOIN " . $plugin_class->db_prefix() . "links_extrainfo le ON (l.link_id = le.link_id) ";
|
87 |
+
$links_import_query .= "WHERE tt.taxonomy = 'link_category' ";
|
88 |
+
$links_import_query .= "GROUP BY l.link_id ";
|
89 |
+
|
90 |
+
$links_to_import = $wpdb->get_results( $links_import_query );
|
91 |
+
|
92 |
+
foreach ( $links_to_import as $link_to_import ) {
|
93 |
+
|
94 |
+
global $wpdb;
|
95 |
+
|
96 |
+
if ( $continue ) {
|
97 |
+
$query = 'SELECT ID FROM ' . $wpdb->posts . ' p, ' . $wpdb->postmeta . ' pm WHERE post_title = "' . $link_to_import->link_name. '" AND post_type = \'link_library_links\' AND p.ID = pm.post_ID and pm.meta_key = "link_url" and pm.meta_value = "' . $link_to_import->link_url . '"';
|
98 |
+
$wpdb->query( $query );
|
99 |
+
|
100 |
+
if ( $wpdb->num_rows ) {
|
101 |
+
continue;
|
102 |
+
}
|
103 |
+
}
|
104 |
+
|
105 |
+
if ( !empty( $link_to_import->link_name ) ) {
|
106 |
+
$matched_link_cats = array();
|
107 |
+
if ( !empty( $link_to_import->cat_name ) ) {
|
108 |
+
$link_cats = explode( ',', $link_to_import->cat_name );
|
109 |
+
|
110 |
+
foreach ( $link_cats as $link_cat ) {
|
111 |
+
$cat_string = $link_cat;
|
112 |
+
|
113 |
+
$cat_matched_term = get_term_by( 'name', $cat_string, 'link_library_category' );
|
114 |
+
|
115 |
+
if ( false !== $cat_matched_term ) {
|
116 |
+
$matched_link_cats[] = $cat_matched_term->term_id;
|
117 |
+
}
|
118 |
+
}
|
119 |
+
}
|
120 |
+
|
121 |
+
$new_link_data = array(
|
122 |
+
'post_type' => 'link_library_links',
|
123 |
+
'post_content' => '',
|
124 |
+
'post_title' => $link_to_import->link_name,
|
125 |
+
'post_author' => $link_to_import->link_owner,
|
126 |
+
);
|
127 |
+
|
128 |
+
if ( 'N' == $link_to_import->link_visible ) {
|
129 |
+
if ( false !== strpos( $link_to_import->link_description, '(LinkLibrary:AwaitingModeration:RemoveTextToApprove)' ) ) {
|
130 |
+
$new_link_data['post_status'] = 'pending';
|
131 |
+
$link_to_import->link_description = str_replace( '(LinkLibrary:AwaitingModeration:RemoveTextToApprove)', '', $link_to_import->link_description );
|
132 |
+
} else {
|
133 |
+
$new_link_data['post_status'] = 'private';
|
134 |
+
}
|
135 |
+
} elseif ( 'Y' == $link_to_import->link_visible ) {
|
136 |
+
$new_link_data['post_status'] = 'publish';
|
137 |
+
}
|
138 |
+
|
139 |
+
if ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ){
|
140 |
+
$new_link_ID = wp_insert_post( $new_link_data );
|
141 |
+
}
|
142 |
+
|
143 |
+
if ( !empty( $new_link_ID ) ) {
|
144 |
+
wp_set_post_terms( $new_link_ID, $matched_link_cats, 'link_library_category', false );
|
145 |
+
|
146 |
+
update_post_meta( $new_link_ID, 'legacy_link_id', $link_to_import->import_link_id );
|
147 |
+
update_post_meta( $new_link_ID, 'link_url', $link_to_import->link_url );
|
148 |
+
update_post_meta( $new_link_ID, 'link_image', $link_to_import->link_image );
|
149 |
+
update_post_meta( $new_link_ID, 'link_target', $link_to_import->link_target );
|
150 |
+
update_post_meta( $new_link_ID, 'link_description', $link_to_import->link_description );
|
151 |
+
update_post_meta( $new_link_ID, 'link_rating', $link_to_import->link_rating );
|
152 |
+
|
153 |
+
if ( '0000-00-00 00:00:00' == $link_to_import->link_updated ) {
|
154 |
+
update_post_meta( $new_link_ID, 'link_updated', current_time( 'timestamp' ) );
|
155 |
+
} else {
|
156 |
+
update_post_meta( $new_link_ID, 'link_updated', strtotime( $link_to_import->link_updated ) );
|
157 |
+
}
|
158 |
+
|
159 |
+
update_post_meta( $new_link_ID, 'link_notes', $link_to_import->link_notes );
|
160 |
+
update_post_meta( $new_link_ID, 'link_rss', $link_to_import->link_rss );
|
161 |
+
update_post_meta( $new_link_ID, 'link_second_url', $link_to_import->link_second_url );
|
162 |
+
update_post_meta( $new_link_ID, 'link_telephone', $link_to_import->link_telephone );
|
163 |
+
update_post_meta( $new_link_ID, 'link_email', $link_to_import->link_email );
|
164 |
+
|
165 |
+
if ( empty( $link_to_import->link_visits ) ) {
|
166 |
+
update_post_meta( $new_link_ID, 'link_visits', 0 );
|
167 |
+
} else {
|
168 |
+
update_post_meta( $new_link_ID, 'link_visits', $link_to_import->link_visits );
|
169 |
+
}
|
170 |
+
|
171 |
+
update_post_meta( $new_link_ID, 'link_reciprocal', $link_to_import->link_reciprocal );
|
172 |
+
update_post_meta( $new_link_ID, 'link_submitter', $link_to_import->link_submitter );
|
173 |
+
update_post_meta( $new_link_ID, 'link_submitter_name', $link_to_import->link_submitter_name );
|
174 |
+
update_post_meta( $new_link_ID, 'link_submitter_email', $link_to_import->link_submitter_email );
|
175 |
+
update_post_meta( $new_link_ID, 'link_textfield', $link_to_import->link_textfield );
|
176 |
+
update_post_meta( $new_link_ID, 'link_rel', $link_to_import->link_addl_rel );
|
177 |
+
|
178 |
+
if ( '1' == $link_to_import->link_no_follow ) {
|
179 |
+
update_post_meta( $new_link_ID, 'link_no_follow', true );
|
180 |
+
} else {
|
181 |
+
update_post_meta( $new_link_ID, 'link_no_follow', false );
|
182 |
+
}
|
183 |
+
|
184 |
+
if ( '1' == $link_to_import->link_featured ) {
|
185 |
+
update_post_meta( $new_link_ID, 'link_featured', 1 );
|
186 |
+
} else {
|
187 |
+
update_post_meta( $new_link_ID, 'link_featured', 0 );
|
188 |
+
}
|
189 |
+
|
190 |
+
if ( 'Y' == $link_to_import->link_manual_updated ) {
|
191 |
+
update_post_meta( $new_link_ID, 'link_updated_manual', true );
|
192 |
+
} elseif ( 'N' == $link_to_import->link_manual_updated ) {
|
193 |
+
update_post_meta( $new_link_ID, 'link_updated_manual', false );
|
194 |
+
}
|
195 |
+
}
|
196 |
+
}
|
197 |
+
}
|
198 |
+
}
|
199 |
+
}
|
200 |
+
|
201 |
+
$genoptions = get_option( 'LinkLibraryGeneral' );
|
202 |
+
if ( !empty( $genoptions ) ) {
|
203 |
+
for ( $i = 1; $i <= $genoptions['numberstylesets']; $i++ ) {
|
204 |
+
$settingsname = 'LinkLibraryPP' . $i;
|
205 |
+
$options = get_option( $settingsname );
|
206 |
+
|
207 |
+
if ( !empty( $options ) ) {
|
208 |
+
$lists_of_cats = array( 'categorylist', 'excludecategorylist', 'defaultsinglecat' );
|
209 |
+
|
210 |
+
foreach ( $lists_of_cats as $list_of_cats ) {
|
211 |
+
if ( !empty( $options[$list_of_cats] ) ) {
|
212 |
+
$category_list_array = explode( ',', $options[$list_of_cats] );
|
213 |
+
$new_category_list_array = array();
|
214 |
+
|
215 |
+
foreach ( $category_list_array as $category_list_item ) {
|
216 |
+
$original_term = get_term( $category_list_item, 'link_category' );
|
217 |
+
if ( !empty( $original_term ) ) {
|
218 |
+
$corresponding_term = get_term_by( 'name', $original_term->name, 'link_library_category' );
|
219 |
+
if ( !empty( $corresponding_term ) ) {
|
220 |
+
$new_category_list_array[] = $corresponding_term->term_id;
|
221 |
+
}
|
222 |
+
}
|
223 |
+
}
|
224 |
+
|
225 |
+
$new_category_list = implode( ',', $new_category_list_array );
|
226 |
+
$options[$list_of_cats . '_cpt'] = $new_category_list;
|
227 |
+
} else {
|
228 |
+
$options[$list_of_cats . '_cpt'] = '';
|
229 |
+
}
|
230 |
+
}
|
231 |
+
|
232 |
+
$newcolumnoptions = array();
|
233 |
+
if ( isset( $options['linkheader'] ) ) {
|
234 |
+
$newcolumnoptions[] = $options['linkheader'];
|
235 |
+
}
|
236 |
+
|
237 |
+
if ( isset( $options['descheader'] ) ) {
|
238 |
+
$newcolumnoptions[] = $options['descheader'];
|
239 |
+
}
|
240 |
+
|
241 |
+
if ( isset( $options['notesheader'] ) ) {
|
242 |
+
$newcolumnoptions[] = $options['notesheader'];
|
243 |
+
}
|
244 |
+
|
245 |
+
$options['columnheaderoverride'] = implode( ',', $newcolumnoptions );
|
246 |
+
|
247 |
+
update_option( $settingsname, $options );
|
248 |
+
}
|
249 |
+
}
|
250 |
+
}
|
251 |
+
}
|
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 |
Author: Yannick Lefebvre
|
8 |
Author URI: http://ylefebvre.ca/
|
9 |
Text Domain: link-library
|
@@ -37,16 +37,19 @@ License at http://www.gnu.org/copyleft/gpl.html
|
|
37 |
I, Yannick Lefebvre, can be contacted via e-mail at ylefebvre@gmail.com
|
38 |
*/
|
39 |
|
|
|
|
|
40 |
require_once(ABSPATH . '/wp-admin/includes/bookmark.php');
|
41 |
require_once plugin_dir_path( __FILE__ ) . 'link-library-defaults.php';
|
42 |
require_once plugin_dir_path( __FILE__ ) . 'rssfeed.php';
|
|
|
43 |
|
44 |
global $my_link_library_plugin;
|
45 |
global $my_link_library_plugin_admin;
|
46 |
|
47 |
-
if ( !get_option( 'link_manager_enabled' ) ) {
|
48 |
add_filter( 'pre_option_link_manager_enabled', '__return_true' );
|
49 |
-
}
|
50 |
|
51 |
function link_library_tweak_plugins_http_filter( $response, $r, $url ) {
|
52 |
if ( stristr( $url, 'api.wordpress.org/plugins/update-check/1.1' ) ) {
|
@@ -58,6 +61,87 @@ function link_library_tweak_plugins_http_filter( $response, $r, $url ) {
|
|
58 |
return $response;
|
59 |
}
|
60 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
function link_library_strposX( $haystack, $needle, $number ) {
|
62 |
if( $number == '1' ){
|
63 |
return strpos($haystack, $needle);
|
@@ -100,18 +184,39 @@ function link_library_modify_http_response( $plugins_response ) {
|
|
100 |
return $plugins_response;
|
101 |
}
|
102 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
/*********************************** Link Library Class *****************************************************************************/
|
104 |
class link_library_plugin {
|
105 |
|
106 |
//constructor of class, PHP4 compatible construction for backward compatibility
|
107 |
function __construct() {
|
108 |
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
|
|
|
|
|
|
113 |
$newoptions = get_option( 'LinkLibraryPP1', '' );
|
114 |
-
$genoptions = get_option( 'LinkLibraryGeneral', '' );
|
115 |
|
116 |
if ( empty( $newoptions ) ) {
|
117 |
global $my_link_library_plugin_admin;
|
@@ -122,10 +227,7 @@ class link_library_plugin {
|
|
122 |
}
|
123 |
|
124 |
ll_reset_options( 1, 'list', 'return_and_set' );
|
125 |
-
|
126 |
-
if ( empty( $genoptions ) ) {
|
127 |
-
ll_reset_gen_settings( 'return_and_set' );
|
128 |
-
}
|
129 |
}
|
130 |
|
131 |
// Add short codes
|
@@ -139,6 +241,7 @@ class link_library_plugin {
|
|
139 |
add_shortcode( 'link-library-addlinkcustommsg', array( $this, 'link_library_addlink_func' ) );
|
140 |
add_shortcode( 'addlinkcustommsg-link-library', array( $this, 'link_library_addlink_func' ) );
|
141 |
add_shortcode( 'link-library-count', array( $this, 'link_library_count_func' ) );
|
|
|
142 |
|
143 |
// Function to determine if Link Library is used on a page before printing headers
|
144 |
// the_posts gets triggered before wp_head
|
@@ -149,13 +252,12 @@ class link_library_plugin {
|
|
149 |
|
150 |
add_filter( 'wp_title', array( $this, 'll_title_creator' ) );
|
151 |
|
152 |
-
add_action( 'init', array( $this, 'links_rss' ) );
|
153 |
-
|
154 |
// Re-write rules filters to allow for custom permalinks
|
155 |
add_filter( 'rewrite_rules_array', array( $this, 'll_insertMyRewriteRules' ) );
|
156 |
add_filter( 'query_vars', array( $this, 'll_insertMyRewriteQueryVars' ) );
|
157 |
|
158 |
add_action( 'template_redirect', array( $this, 'll_template_redirect' ) );
|
|
|
159 |
add_action( 'wp_ajax_link_library_tracker', array( $this, 'link_library_ajax_tracker' ) );
|
160 |
add_action( 'wp_ajax_nopriv_link_library_tracker', array( $this, 'link_library_ajax_tracker' ) );
|
161 |
add_action( 'wp_ajax_link_library_ajax_update', array( $this, 'link_library_func') );
|
@@ -174,9 +276,42 @@ class link_library_plugin {
|
|
174 |
|
175 |
add_filter( 'wp_feed_cache_transient_lifetime' , array( $this, 'feed_cache_filter_handler' ) );
|
176 |
|
177 |
-
|
178 |
|
179 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
180 |
}
|
181 |
|
182 |
function feed_cache_filter_handler( $seconds ) {
|
@@ -186,9 +321,116 @@ class link_library_plugin {
|
|
186 |
return $genoptions['rsscachedelay'];
|
187 |
}
|
188 |
|
189 |
-
function
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
190 |
add_feed( 'linklibraryfeed', 'link_library_generate_rss_feed' );
|
191 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
192 |
|
193 |
/************************** Link Library Installation Function **************************/
|
194 |
function ll_install() {
|
@@ -227,67 +469,24 @@ class link_library_plugin {
|
|
227 |
function create_table_and_settings() {
|
228 |
global $wpdb;
|
229 |
|
230 |
-
$wpdb->links_extrainfo = $this->db_prefix() . 'links_extrainfo';
|
231 |
-
|
232 |
-
$creationquery = "CREATE TABLE " . $wpdb->links_extrainfo . " (
|
233 |
-
link_id bigint(20) NOT NULL DEFAULT '0',
|
234 |
-
link_second_url varchar(255) CHARACTER SET utf8 DEFAULT NULL,
|
235 |
-
link_telephone varchar(128) CHARACTER SET utf8 DEFAULT NULL,
|
236 |
-
link_email varchar(128) CHARACTER SET utf8 DEFAULT NULL,
|
237 |
-
link_visits bigint(20) DEFAULT '0',
|
238 |
-
link_reciprocal varchar(255) DEFAULT NULL,
|
239 |
-
link_submitter varchar(255) DEFAULT NULL,
|
240 |
-
link_submitter_name VARCHAR(128) CHARACTER SET utf8 NULL,
|
241 |
-
link_submitter_email VARCHAR(128) NULL,
|
242 |
-
link_textfield TEXT CHARACTER SET utf8 NULL,
|
243 |
-
link_no_follow VARCHAR(1) NULL,
|
244 |
-
link_featured VARCHAR(1) NULL,
|
245 |
-
link_manual_updated VARCHAR(1) NULL,
|
246 |
-
link_addl_rel VARCHAR(256) NULL,
|
247 |
-
PRIMARY KEY (link_id)
|
248 |
-
)";
|
249 |
-
|
250 |
-
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
|
251 |
-
dbDelta( $creationquery );
|
252 |
-
|
253 |
-
$wpdb->linkcategorymeta = $this->db_prefix() . 'linkcategorymeta';
|
254 |
-
|
255 |
-
$meta_creation_query =
|
256 |
-
'CREATE TABLE ' . $wpdb->linkcategorymeta . ' (
|
257 |
-
meta_id bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
258 |
-
linkcategory_id bigint(20) unsigned NOT NULL DEFAULT "0",
|
259 |
-
meta_key varchar(255) DEFAULT NULL,
|
260 |
-
meta_value longtext,
|
261 |
-
PRIMARY KEY (meta_id)
|
262 |
-
);';
|
263 |
-
|
264 |
-
dbDelta ( $meta_creation_query );
|
265 |
-
|
266 |
$genoptions = get_option( 'LinkLibraryGeneral' );
|
267 |
|
268 |
if ( !empty( $genoptions ) ) {
|
269 |
-
|
270 |
if ( empty( $genoptions['schemaversion'] ) || floatval( $genoptions['schemaversion'] ) < 3.5 ) {
|
271 |
$genoptions['schemaversion'] = '3.5';
|
272 |
update_option( 'LinkLibraryGeneral', $genoptions );
|
273 |
} elseif ( floatval( $genoptions['schemaversion'] ) < '4.6' ) {
|
274 |
$genoptions['schemaversion'] = '4.6';
|
275 |
-
$wpdb->get_results( 'ALTER TABLE ' . $this->db_prefix() . 'links_extrainfo ADD link_submitter_name VARCHAR( 128 ) NULL, ADD link_submitter_email VARCHAR( 128 ) NULL , ADD link_textfield TEXT NULL ;' );
|
276 |
-
|
277 |
update_option( 'LinkLibraryGeneral', $genoptions );
|
278 |
} elseif ( floatval( $genoptions['schemaversion'] ) < '4.7' ) {
|
279 |
$genoptions['schemaversion'] = '4.7';
|
280 |
-
$wpdb->get_results( 'ALTER TABLE ' . $this->db_prefix() . 'links_extrainfo ADD link_no_follow VARCHAR( 1 ) NULL;' );
|
281 |
-
|
282 |
update_option( 'LinkLibraryGeneral', $genoptions );
|
283 |
} elseif ( floatval( $genoptions['schemaversion'] ) < '4.9' ) {
|
284 |
$genoptions['schemaversion'] = '4.9';
|
285 |
-
$wpdb->get_results( 'ALTER TABLE ' . $this->db_prefix() . 'links_extrainfo ADD link_featured VARCHAR( 1 ) NULL;' );
|
286 |
-
|
287 |
update_option( 'LinkLibraryGeneral', $genoptions );
|
288 |
}
|
289 |
|
290 |
-
|
291 |
$settingsname = 'LinkLibraryPP' . $i;
|
292 |
$options = get_option( $settingsname );
|
293 |
|
@@ -338,9 +537,11 @@ class link_library_plugin {
|
|
338 |
|
339 |
update_option( $settingsname, $options );
|
340 |
}
|
|
|
|
|
341 |
}
|
342 |
|
343 |
-
$genoptions['schemaversion'] = '5.
|
344 |
update_option( 'LinkLibraryGeneral', $genoptions );
|
345 |
}
|
346 |
|
@@ -463,8 +664,7 @@ class link_library_plugin {
|
|
463 |
}
|
464 |
|
465 |
/************************************* Function to add to rewrite rules for permalink support **********************************/
|
466 |
-
function ll_insertMyRewriteRules($rules)
|
467 |
-
{
|
468 |
$newrules = array();
|
469 |
|
470 |
$genoptions = get_option('LinkLibraryGeneral');
|
@@ -475,12 +675,11 @@ class link_library_plugin {
|
|
475 |
$options = get_option( $settingsname );
|
476 |
|
477 |
if ( $options['enablerewrite'] && !empty( $options['rewritepage'] ) ) {
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
}
|
485 |
|
486 |
if ( $options['publishrssfeed'] ) {
|
@@ -493,7 +692,7 @@ class link_library_plugin {
|
|
493 |
}
|
494 |
}
|
495 |
}
|
496 |
-
|
497 |
return $newrules + $rules;
|
498 |
}
|
499 |
|
@@ -521,7 +720,7 @@ class link_library_plugin {
|
|
521 |
}
|
522 |
|
523 |
function CheckReciprocalLink( $RecipCheckAddress = '', $external_link = '' ) {
|
524 |
-
$response = wp_remote_get( $external_link, array( 'user-agent' => 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36' ) );
|
525 |
|
526 |
if( is_wp_error( $response ) ) {
|
527 |
$response_code = $response->get_error_code();
|
@@ -529,7 +728,7 @@ class link_library_plugin {
|
|
529 |
return 'error_403';
|
530 |
}
|
531 |
} elseif ( $response['response']['code'] == '200' ) {
|
532 |
-
|
533 |
return 'exists_notfound';
|
534 |
} elseif ( strpos( $response['body'], $RecipCheckAddress ) === false ) {
|
535 |
return 'exists_notfound';
|
@@ -541,99 +740,6 @@ class link_library_plugin {
|
|
541 |
return 'unreachable';
|
542 |
}
|
543 |
|
544 |
-
function link_library_insert_link( $linkdata, $wp_error = false, $addlinknoaddress = false) {
|
545 |
-
global $wpdb;
|
546 |
-
|
547 |
-
$defaults = array( 'link_id' => 0, 'link_name' => '', 'link_url' => '', 'link_rating' => 0 );
|
548 |
-
|
549 |
-
$linkdata = wp_parse_args( $linkdata, $defaults );
|
550 |
-
$linkdata = sanitize_bookmark( $linkdata, 'db' );
|
551 |
-
|
552 |
-
extract( stripslashes_deep( $linkdata ), EXTR_SKIP );
|
553 |
-
|
554 |
-
$update = false;
|
555 |
-
|
556 |
-
if ( !empty( $link_id ) )
|
557 |
-
$update = true;
|
558 |
-
|
559 |
-
if ( isset( $link_name ) && trim( $link_name ) == '' ) {
|
560 |
-
if ( isset( $link_url ) && trim( $link_url ) != '' ) {
|
561 |
-
$link_name = $link_url;
|
562 |
-
} else {
|
563 |
-
return 0;
|
564 |
-
}
|
565 |
-
}
|
566 |
-
|
567 |
-
if ($addlinknoaddress == false)
|
568 |
-
{
|
569 |
-
if ( trim( $link_url ) == '' )
|
570 |
-
return 0;
|
571 |
-
}
|
572 |
-
|
573 |
-
if ( empty( $link_rating ) )
|
574 |
-
$link_rating = 0;
|
575 |
-
|
576 |
-
if ( empty( $link_image ) )
|
577 |
-
$link_image = '';
|
578 |
-
|
579 |
-
if ( empty( $link_target ) )
|
580 |
-
$link_target = '';
|
581 |
-
|
582 |
-
if ( empty( $link_visible ) )
|
583 |
-
$link_visible = 'Y';
|
584 |
-
|
585 |
-
if ( empty( $link_owner ) )
|
586 |
-
$link_owner = get_current_user_id();
|
587 |
-
|
588 |
-
if ( empty( $link_notes ) )
|
589 |
-
$link_notes = '';
|
590 |
-
|
591 |
-
if ( empty( $link_description ) )
|
592 |
-
$link_description = '';
|
593 |
-
|
594 |
-
if ( empty( $link_rss ) )
|
595 |
-
$link_rss = '';
|
596 |
-
|
597 |
-
if ( empty( $link_rel ) )
|
598 |
-
$link_rel = '';
|
599 |
-
|
600 |
-
if ( empty( $link_updated ) )
|
601 |
-
$link_updated = '';
|
602 |
-
|
603 |
-
// Make sure we set a valid category
|
604 |
-
if ( ! isset( $link_category ) || 0 == count( $link_category ) || !is_array( $link_category ) ) {
|
605 |
-
$link_category = array( get_option( 'default_link_category' ) );
|
606 |
-
}
|
607 |
-
|
608 |
-
if ( $update ) {
|
609 |
-
if ( false === $wpdb->update( $wpdb->links, compact('link_url', 'link_name', 'link_image', 'link_target', 'link_description', 'link_visible', 'link_rating', 'link_rel', 'link_notes', 'link_rss', 'link_updated' ), compact('link_id') ) ) {
|
610 |
-
if ( $wp_error )
|
611 |
-
return new WP_Error( 'db_update_error', __( 'Could not update link in the database', 'link-library' ), $wpdb->last_error );
|
612 |
-
else
|
613 |
-
return 0;
|
614 |
-
}
|
615 |
-
} else {
|
616 |
-
if ( false === $wpdb->insert( $wpdb->links, compact('link_url', 'link_name', 'link_image', 'link_target', 'link_description', 'link_visible', 'link_owner', 'link_rating', 'link_rel', 'link_notes', 'link_rss', 'link_updated' ) ) ) {
|
617 |
-
if ( $wp_error )
|
618 |
-
return new WP_Error( 'db_insert_error', __( 'Could not insert link into the database', 'link-library' ), $wpdb->last_error );
|
619 |
-
else
|
620 |
-
return 0;
|
621 |
-
}
|
622 |
-
$link_id = (int) $wpdb->insert_id;
|
623 |
-
}
|
624 |
-
|
625 |
-
wp_set_link_cats( $link_id, $link_category );
|
626 |
-
|
627 |
-
if ( $update )
|
628 |
-
do_action( 'edit_link', $link_id );
|
629 |
-
else
|
630 |
-
do_action( 'add_link', $link_id );
|
631 |
-
|
632 |
-
clean_bookmark_cache( $link_id );
|
633 |
-
|
634 |
-
return $link_id;
|
635 |
-
}
|
636 |
-
|
637 |
/* Output for users trying to directly call Link Library function, as was possible in pre-1.0 versions */
|
638 |
|
639 |
function LinkLibraryCategories() {
|
@@ -665,11 +771,11 @@ class link_library_plugin {
|
|
665 |
$options = get_option( $settingsname );
|
666 |
|
667 |
if ( !empty( $categorylistoverride ) ) {
|
668 |
-
$options['
|
669 |
}
|
670 |
|
671 |
if ( !empty( $excludecategoryoverride ) ) {
|
672 |
-
$options['
|
673 |
}
|
674 |
|
675 |
$genoptions = get_option( 'LinkLibraryGeneral' );
|
@@ -731,13 +837,13 @@ class link_library_plugin {
|
|
731 |
$genoptions = get_option('LinkLibraryGeneral');
|
732 |
|
733 |
if ( !empty( $categorylistoverride ) ) {
|
734 |
-
$options['
|
735 |
} elseif ( !empty( $options['addlinkcatlistoverride'] ) ) {
|
736 |
-
$options['
|
737 |
}
|
738 |
|
739 |
if ( !empty( $excludecategoryoverride ) ) {
|
740 |
-
$options['
|
741 |
}
|
742 |
|
743 |
require_once plugin_dir_path( __FILE__ ) . 'render-link-library-addlink-sc.php';
|
@@ -762,21 +868,46 @@ class link_library_plugin {
|
|
762 |
$genoptions = get_option( 'LinkLibraryGeneral' );
|
763 |
|
764 |
if ( !empty( $categorylistoverride ) ) {
|
765 |
-
$options['
|
766 |
}
|
767 |
|
768 |
if ( !empty( $excludecategoryoverride ) ) {
|
769 |
-
$options['
|
770 |
}
|
771 |
|
772 |
require_once plugin_dir_path( __FILE__ ) . 'render-link-library-sc.php';
|
773 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
774 |
}
|
775 |
|
776 |
/********************************************** Function to Process [link-library] shortcode *********************************************/
|
777 |
|
778 |
-
function link_library_func( $atts ) {
|
779 |
-
|
780 |
if ( isset( $_POST['ajaxupdate'] ) ) {
|
781 |
check_ajax_referer( 'link_library_ajax_refresh' );
|
782 |
}
|
@@ -827,11 +958,11 @@ class link_library_plugin {
|
|
827 |
}
|
828 |
|
829 |
if ( !empty( $categorylistoverride ) ) {
|
830 |
-
$options['
|
831 |
}
|
832 |
|
833 |
if ( !empty( $excludecategoryoverride ) ) {
|
834 |
-
$options['
|
835 |
}
|
836 |
|
837 |
if ( !empty( $singlelinkid ) ) {
|
@@ -839,11 +970,11 @@ class link_library_plugin {
|
|
839 |
}
|
840 |
|
841 |
if ( $showonecatonlyoverride == 'false' || $showonecatonlyoverride == 'true' ) {
|
842 |
-
|
843 |
-
|
844 |
-
|
845 |
-
|
846 |
-
|
847 |
}
|
848 |
|
849 |
if ( !empty( $tableoverride ) ) {
|
@@ -864,7 +995,7 @@ class link_library_plugin {
|
|
864 |
|
865 |
$genoptions = get_option( 'LinkLibraryGeneral' );
|
866 |
|
867 |
-
if ( floatval( $genoptions['schemaversion'] ) < '5.
|
868 |
$this->ll_install();
|
869 |
$genoptions = get_option( 'LinkLibraryGeneral' );
|
870 |
|
@@ -885,7 +1016,8 @@ class link_library_plugin {
|
|
885 |
}
|
886 |
|
887 |
require_once plugin_dir_path( __FILE__ ) . 'render-link-library-sc.php';
|
888 |
-
$
|
|
|
889 |
|
890 |
if ( isset( $_POST['ajaxupdate'] ) ) {
|
891 |
echo $linklibraryoutput;
|
@@ -906,18 +1038,18 @@ class link_library_plugin {
|
|
906 |
if ( empty( $posts ) ) {
|
907 |
return $posts;
|
908 |
}
|
909 |
-
|
910 |
global $llstylesheet;
|
911 |
$load_jquery = false;
|
912 |
$load_thickbox = false;
|
913 |
$load_recaptcha = false;
|
914 |
-
|
915 |
if ( $llstylesheet ) {
|
916 |
$load_style = true;
|
917 |
} else {
|
918 |
$load_style = false;
|
919 |
}
|
920 |
-
|
921 |
$genoptions = get_option( 'LinkLibraryGeneral' );
|
922 |
$genoptions = wp_parse_args( $genoptions, ll_reset_gen_settings( 'return' ) );
|
923 |
|
@@ -938,9 +1070,9 @@ class link_library_plugin {
|
|
938 |
if ( !$linklibrarypos ) {
|
939 |
if ( stripos( $post->post_content, 'link-library-cats' ) || stripos( $post->post_content, 'link-library-addlink' ) ) {
|
940 |
$load_style = true;
|
941 |
-
|
942 |
-
|
943 |
-
|
944 |
}
|
945 |
}
|
946 |
}
|
@@ -1007,7 +1139,7 @@ class link_library_plugin {
|
|
1007 |
}
|
1008 |
}
|
1009 |
|
1010 |
-
if ( $load_style ) {
|
1011 |
$llstylesheet = true;
|
1012 |
} else {
|
1013 |
$llstylesheet = false;
|
@@ -1048,6 +1180,97 @@ class link_library_plugin {
|
|
1048 |
}
|
1049 |
}
|
1050 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1051 |
function link_library_ajax_tracker() {
|
1052 |
require_once plugin_dir_path( __FILE__ ) . 'tracker.php';
|
1053 |
link_library_process_ajax_tracker( $this );
|
@@ -1099,4 +1322,76 @@ if ( is_admin() ) {
|
|
1099 |
require plugin_dir_path( __FILE__ ) . 'link-library-admin.php';
|
1100 |
$my_link_library_plugin_admin = new link_library_plugin_admin();
|
1101 |
}
|
1102 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.46
|
7 |
Author: Yannick Lefebvre
|
8 |
Author URI: http://ylefebvre.ca/
|
9 |
Text Domain: link-library
|
37 |
I, Yannick Lefebvre, can be contacted via e-mail at ylefebvre@gmail.com
|
38 |
*/
|
39 |
|
40 |
+
update_option( 'link_manager_enabled', 0 );
|
41 |
+
|
42 |
require_once(ABSPATH . '/wp-admin/includes/bookmark.php');
|
43 |
require_once plugin_dir_path( __FILE__ ) . 'link-library-defaults.php';
|
44 |
require_once plugin_dir_path( __FILE__ ) . 'rssfeed.php';
|
45 |
+
//require_once plugin_dir_path( __FILE__ ) . 'blocks/link-library-main.php';
|
46 |
|
47 |
global $my_link_library_plugin;
|
48 |
global $my_link_library_plugin_admin;
|
49 |
|
50 |
+
/* if ( !get_option( 'link_manager_enabled' ) ) {
|
51 |
add_filter( 'pre_option_link_manager_enabled', '__return_true' );
|
52 |
+
} */
|
53 |
|
54 |
function link_library_tweak_plugins_http_filter( $response, $r, $url ) {
|
55 |
if ( stristr( $url, 'api.wordpress.org/plugins/update-check/1.1' ) ) {
|
61 |
return $response;
|
62 |
}
|
63 |
|
64 |
+
function link_library_get_terms_filter_only_publish( $terms, $taxonomies, $args ) {
|
65 |
+
global $wpdb;
|
66 |
+
global $hide_if_empty_filter;
|
67 |
+
|
68 |
+
$taxonomy = $taxonomies[0];
|
69 |
+
if ( ! is_array( $terms ) && count( $terms ) < 1 ) {
|
70 |
+
return $terms;
|
71 |
+
}
|
72 |
+
|
73 |
+
$filtered_terms = array();
|
74 |
+
|
75 |
+
foreach ( $terms as $term ) {
|
76 |
+
$result = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts p JOIN $wpdb->term_relationships rl ON p.ID = rl.object_id WHERE rl.term_taxonomy_id = $term->term_id AND p.post_status = 'publish' LIMIT 1" );
|
77 |
+
|
78 |
+
if ( intval( $result ) > 0 || ( !$hide_if_empty_filter && 0 == intval( $result ) ) ) {
|
79 |
+
$filtered_terms[] = $term;
|
80 |
+
}
|
81 |
+
}
|
82 |
+
return $filtered_terms;
|
83 |
+
}
|
84 |
+
|
85 |
+
function link_library_get_terms_filter_publish_pending( $terms, $taxonomies, $args ) {
|
86 |
+
global $wpdb;
|
87 |
+
global $hide_if_empty_filter;
|
88 |
+
|
89 |
+
$taxonomy = $taxonomies[0];
|
90 |
+
if ( ! is_array( $terms ) && count( $terms ) < 1 ) {
|
91 |
+
return $terms;
|
92 |
+
}
|
93 |
+
|
94 |
+
$filtered_terms = array();
|
95 |
+
|
96 |
+
foreach ( $terms as $term ) {
|
97 |
+
$result = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts p JOIN $wpdb->term_relationships rl ON p.ID = rl.object_id WHERE rl.term_taxonomy_id = $term->term_id AND ( p.post_status = 'publish' or p.post_status = 'pending' ) LIMIT 1" );
|
98 |
+
if ( intval( $result ) > 0 || ( !$hide_if_empty_filter && 0 == intval( $result ) ) ) {
|
99 |
+
$filtered_terms[] = $term;
|
100 |
+
}
|
101 |
+
}
|
102 |
+
return $filtered_terms;
|
103 |
+
}
|
104 |
+
|
105 |
+
function link_library_get_terms_filter_publish_draft( $terms, $taxonomies, $args ) {
|
106 |
+
global $wpdb;
|
107 |
+
global $hide_if_empty_filter;
|
108 |
+
|
109 |
+
$taxonomy = $taxonomies[0];
|
110 |
+
if ( ! is_array( $terms ) && count( $terms ) < 1 ) {
|
111 |
+
return $terms;
|
112 |
+
}
|
113 |
+
|
114 |
+
$filtered_terms = array();
|
115 |
+
|
116 |
+
foreach ( $terms as $term ) {
|
117 |
+
$result = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts p JOIN $wpdb->term_relationships rl ON p.ID = rl.object_id WHERE rl.term_taxonomy_id = $term->term_id AND ( p.post_status = 'publish' or p.post_status = 'draft' ) LIMIT 1" );
|
118 |
+
if ( intval( $result ) > 0 || ( !$hide_if_empty_filter && 0 == intval( $result ) ) ) {
|
119 |
+
$filtered_terms[] = $term;
|
120 |
+
}
|
121 |
+
}
|
122 |
+
return $filtered_terms;
|
123 |
+
}
|
124 |
+
|
125 |
+
function link_library_get_terms_filter_publish_draft_pending( $terms, $taxonomies, $args ) {
|
126 |
+
global $wpdb;
|
127 |
+
global $hide_if_empty_filter;
|
128 |
+
|
129 |
+
$taxonomy = $taxonomies[0];
|
130 |
+
if ( ! is_array( $terms ) && count( $terms ) < 1 ) {
|
131 |
+
return $terms;
|
132 |
+
}
|
133 |
+
|
134 |
+
$filtered_terms = array();
|
135 |
+
|
136 |
+
foreach ( $terms as $term ) {
|
137 |
+
$result = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts p JOIN $wpdb->term_relationships rl ON p.ID = rl.object_id WHERE rl.term_taxonomy_id = $term->term_id AND ( p.post_status = 'publish' or p.post_status = 'draft' or p.post_status = 'pending' ) LIMIT 1" );
|
138 |
+
if ( intval( $result ) > 0 || ( !$hide_if_empty_filter && 0 == intval( $result ) ) ) {
|
139 |
+
$filtered_terms[] = $term;
|
140 |
+
}
|
141 |
+
}
|
142 |
+
return $filtered_terms;
|
143 |
+
}
|
144 |
+
|
145 |
function link_library_strposX( $haystack, $needle, $number ) {
|
146 |
if( $number == '1' ){
|
147 |
return strpos($haystack, $needle);
|
184 |
return $plugins_response;
|
185 |
}
|
186 |
|
187 |
+
function ll_expand_posts_search( $search, $query ) {
|
188 |
+
global $wpdb;
|
189 |
+
|
190 |
+
if ( $query->query_vars['post_type'] == 'link_library_links' && !empty( $query->query['s'] ) ) {
|
191 |
+
$sql = "
|
192 |
+
or exists (
|
193 |
+
select * from {$wpdb->postmeta} where post_id={$wpdb->posts}.ID
|
194 |
+
and meta_key in ( 'link_description', 'link_notes', 'link_textfield', 'link_url' )
|
195 |
+
and meta_value like %s
|
196 |
+
)
|
197 |
+
";
|
198 |
+
$like = '%' . $wpdb->esc_like($query->query['s']) . '%';
|
199 |
+
$search = preg_replace("#\({$wpdb->posts}.post_title LIKE [^)]+\)\K#",
|
200 |
+
$wpdb->prepare($sql, $like), $search);
|
201 |
+
}
|
202 |
+
|
203 |
+
return $search;
|
204 |
+
}
|
205 |
+
|
206 |
/*********************************** Link Library Class *****************************************************************************/
|
207 |
class link_library_plugin {
|
208 |
|
209 |
//constructor of class, PHP4 compatible construction for backward compatibility
|
210 |
function __construct() {
|
211 |
|
212 |
+
// Functions to be called when plugin is activated and deactivated
|
213 |
+
register_activation_hook( __FILE__, array( $this, 'll_install' ) );
|
214 |
+
register_deactivation_hook( __FILE__, array( $this, 'll_uninstall' ) );
|
215 |
+
|
216 |
+
add_action( 'init', array( $this, 'll_init' ) );
|
217 |
+
add_action( 'wp_loaded', array( $this, 'll_update_60' ) );
|
218 |
+
|
219 |
$newoptions = get_option( 'LinkLibraryPP1', '' );
|
|
|
220 |
|
221 |
if ( empty( $newoptions ) ) {
|
222 |
global $my_link_library_plugin_admin;
|
227 |
}
|
228 |
|
229 |
ll_reset_options( 1, 'list', 'return_and_set' );
|
230 |
+
ll_reset_gen_settings( 'return_and_set' );
|
|
|
|
|
|
|
231 |
}
|
232 |
|
233 |
// Add short codes
|
241 |
add_shortcode( 'link-library-addlinkcustommsg', array( $this, 'link_library_addlink_func' ) );
|
242 |
add_shortcode( 'addlinkcustommsg-link-library', array( $this, 'link_library_addlink_func' ) );
|
243 |
add_shortcode( 'link-library-count', array( $this, 'link_library_count_func' ) );
|
244 |
+
add_shortcode( 'link-library-filters', array( $this, 'link_library_filters' ) );
|
245 |
|
246 |
// Function to determine if Link Library is used on a page before printing headers
|
247 |
// the_posts gets triggered before wp_head
|
252 |
|
253 |
add_filter( 'wp_title', array( $this, 'll_title_creator' ) );
|
254 |
|
|
|
|
|
255 |
// Re-write rules filters to allow for custom permalinks
|
256 |
add_filter( 'rewrite_rules_array', array( $this, 'll_insertMyRewriteRules' ) );
|
257 |
add_filter( 'query_vars', array( $this, 'll_insertMyRewriteQueryVars' ) );
|
258 |
|
259 |
add_action( 'template_redirect', array( $this, 'll_template_redirect' ) );
|
260 |
+
add_filter( 'template_include', array( $this, 'll_template_include' ) );
|
261 |
add_action( 'wp_ajax_link_library_tracker', array( $this, 'link_library_ajax_tracker' ) );
|
262 |
add_action( 'wp_ajax_nopriv_link_library_tracker', array( $this, 'link_library_ajax_tracker' ) );
|
263 |
add_action( 'wp_ajax_link_library_ajax_update', array( $this, 'link_library_func') );
|
276 |
|
277 |
add_filter( 'wp_feed_cache_transient_lifetime' , array( $this, 'feed_cache_filter_handler' ) );
|
278 |
|
279 |
+
add_filter( 'post_type_link', array( $this, 'permalink_structure' ), 10, 4 );
|
280 |
|
281 |
+
add_action('auth_redirect', array( $this, 'add_pending_count_filter') ); // modify esc_attr on auth_redirect
|
282 |
+
add_action('admin_menu', array( $this, 'esc_attr_restore' ) ); // restore on admin_menu (very soon)
|
283 |
+
}
|
284 |
+
|
285 |
+
function add_pending_count_filter() {
|
286 |
+
add_filter('attribute_escape', array( $this, 'remove_esc_attr_and_count' ), 20, 2);
|
287 |
+
}
|
288 |
+
|
289 |
+
function esc_attr_restore() {
|
290 |
+
remove_filter('attribute_escape', array( $this, 'remove_esc_attr_and_count' ), 20, 2);
|
291 |
+
}
|
292 |
+
|
293 |
+
function remove_esc_attr_and_count( $safe_text = '', $text = '' ) {
|
294 |
+
if ( substr_count($text, '%%PENDING_COUNT%%') ) {
|
295 |
+
$text = trim( str_replace('%%PENDING_COUNT%%', '', $text) );
|
296 |
+
// run only once!
|
297 |
+
remove_filter('attribute_escape', 'remove_esc_attr_and_count', 20, 2);
|
298 |
+
$safe_text = esc_attr($text);
|
299 |
+
// remember to set the right cpt name below
|
300 |
+
$linkmoderatecount = 0;
|
301 |
+
|
302 |
+
$args = array(
|
303 |
+
'numberposts' => -1,
|
304 |
+
'post_type' => 'link_library_links',
|
305 |
+
'post_status' => array( 'pending' )
|
306 |
+
);
|
307 |
+
$linkmoderatecount = count( get_posts( $args ) );
|
308 |
+
if ( $linkmoderatecount > 0 ) {
|
309 |
+
// we have pending, add the count
|
310 |
+
$text = esc_attr($text) . '<span class="awaiting-mod count-' . $linkmoderatecount . '"><span class="pending-count">' . $linkmoderatecount . '</span></span>';
|
311 |
+
return $text;
|
312 |
+
}
|
313 |
+
}
|
314 |
+
return $safe_text;
|
315 |
}
|
316 |
|
317 |
function feed_cache_filter_handler( $seconds ) {
|
321 |
return $genoptions['rsscachedelay'];
|
322 |
}
|
323 |
|
324 |
+
function ll_init() {
|
325 |
+
$genoptions = get_option( 'LinkLibraryGeneral' );
|
326 |
+
$genoptions = wp_parse_args( $genoptions, ll_reset_gen_settings( 'return' ) );
|
327 |
+
|
328 |
+
register_post_type( 'link_library_links',
|
329 |
+
array(
|
330 |
+
'labels' => array(
|
331 |
+
'name' => 'Link Library',
|
332 |
+
'singular_name' => 'Link',
|
333 |
+
'add_new' => 'Add New',
|
334 |
+
'add_new_item' => 'Add New Link',
|
335 |
+
'edit' => 'Edit',
|
336 |
+
'edit_item' => 'Edit Link',
|
337 |
+
'new_item' => 'New Link',
|
338 |
+
'view' => 'View',
|
339 |
+
'view_item' => 'View Link',
|
340 |
+
'search_items' => 'Search Links',
|
341 |
+
'not_found' => 'No Links found',
|
342 |
+
'not_found_in_trash' =>
|
343 |
+
'No Links found in Trash',
|
344 |
+
'parent' => 'Parent Link',
|
345 |
+
'all_items' => 'All Links',
|
346 |
+
'menu_name' => _x('Link Library %%PENDING_COUNT%%', 'Link Library', 'link-library'),
|
347 |
+
),
|
348 |
+
'public' => true,
|
349 |
+
'menu_position' => 10,
|
350 |
+
'supports' =>
|
351 |
+
array( 'title', 'editor', 'comments' ),
|
352 |
+
'taxonomies' => array( 'link_library_category' ),
|
353 |
+
'menu_icon' =>
|
354 |
+
plugins_url( 'icons/link-icon.png', __FILE__ ),
|
355 |
+
'has_archive' => true,
|
356 |
+
'rewrite' => array( 'slug' => $genoptions['cptslug'] . '/%link_library_category%' )
|
357 |
+
)
|
358 |
+
);
|
359 |
+
|
360 |
+
register_taxonomy(
|
361 |
+
'link_library_category',
|
362 |
+
'link_library_links',
|
363 |
+
array(
|
364 |
+
'labels' => array(
|
365 |
+
'name' => 'Categories',
|
366 |
+
'add_new_item' => 'Add New Link Library Category',
|
367 |
+
'new_item_name' => 'New Link Library Category'
|
368 |
+
),
|
369 |
+
'show_ui' => true,
|
370 |
+
'show_tagcloud' => false,
|
371 |
+
'hierarchical' => true
|
372 |
+
)
|
373 |
+
);
|
374 |
+
|
375 |
+
register_taxonomy(
|
376 |
+
'link_library_tags',
|
377 |
+
'link_library_links',
|
378 |
+
array(
|
379 |
+
'hierarchical' => false,
|
380 |
+
'labels' => array( 'name' => 'Tags',
|
381 |
+
'add_new_item' => 'Add New Link Library Tag',
|
382 |
+
'new_item_name' => 'New Link Library Tag' ),
|
383 |
+
'show_ui' => true,
|
384 |
+
'rewrite' => false,
|
385 |
+
)
|
386 |
+
);
|
387 |
+
|
388 |
add_feed( 'linklibraryfeed', 'link_library_generate_rss_feed' );
|
389 |
}
|
390 |
+
|
391 |
+
function ll_update_60() {
|
392 |
+
|
393 |
+
$link_library_60_update = get_option( 'LinkLibrary60Update' );
|
394 |
+
$genoptions = get_option( 'LinkLibraryGeneral' );
|
395 |
+
|
396 |
+
if ( isset( $_POST['ll60reupdate'] ) ) {
|
397 |
+
global $wpdb;
|
398 |
+
|
399 |
+
$wpdb->get_results ( 'DELETE a,b,c
|
400 |
+
FROM wp_posts a
|
401 |
+
LEFT JOIN wp_term_relationships b
|
402 |
+
ON (a.ID = b.object_id)
|
403 |
+
LEFT JOIN wp_postmeta c
|
404 |
+
ON (a.ID = c.post_id)
|
405 |
+
WHERE a.post_type = \'link_library_links\';' );
|
406 |
+
|
407 |
+
$link_category_terms = get_terms( 'link_library_category', array( 'fields' => 'ids', 'hide_empty' => false ) );
|
408 |
+
foreach ( $link_category_terms as $value ) {
|
409 |
+
wp_delete_term( $value, 'link_library_category' );
|
410 |
+
}
|
411 |
+
|
412 |
+
require plugin_dir_path( __FILE__ ) . 'link-library-update-60.php';
|
413 |
+
link_library_60_update( $this );
|
414 |
+
} elseif ( isset( $_GET['continue60update'] ) ) {
|
415 |
+
require plugin_dir_path( __FILE__ ) . 'link-library-update-60.php';
|
416 |
+
link_library_60_update( $this, true );
|
417 |
+
} else {
|
418 |
+
if ( ( false == $link_library_60_update && !empty( $genoptions ) ) ) {
|
419 |
+
require plugin_dir_path( __FILE__ ) . 'link-library-update-60.php';
|
420 |
+
link_library_60_update( $this );
|
421 |
+
}
|
422 |
+
}
|
423 |
+
}
|
424 |
+
|
425 |
+
function permalink_structure( $post_link, $post, $leavename, $sample ) {
|
426 |
+
if ( !empty( $post_link ) && false !== strpos( $post_link, '%link_library_category%' ) ) {
|
427 |
+
$link_cat_type_term = get_the_terms( $post->ID, 'link_library_category' );
|
428 |
+
if ( !empty( $link_cat_type_term ) ) {
|
429 |
+
$post_link = str_replace( '%link_library_category%', array_pop( $link_cat_type_term )->slug, $post_link );
|
430 |
+
}
|
431 |
+
}
|
432 |
+
return $post_link;
|
433 |
+
}
|
434 |
|
435 |
/************************** Link Library Installation Function **************************/
|
436 |
function ll_install() {
|
469 |
function create_table_and_settings() {
|
470 |
global $wpdb;
|
471 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
472 |
$genoptions = get_option( 'LinkLibraryGeneral' );
|
473 |
|
474 |
if ( !empty( $genoptions ) ) {
|
|
|
475 |
if ( empty( $genoptions['schemaversion'] ) || floatval( $genoptions['schemaversion'] ) < 3.5 ) {
|
476 |
$genoptions['schemaversion'] = '3.5';
|
477 |
update_option( 'LinkLibraryGeneral', $genoptions );
|
478 |
} elseif ( floatval( $genoptions['schemaversion'] ) < '4.6' ) {
|
479 |
$genoptions['schemaversion'] = '4.6';
|
|
|
|
|
480 |
update_option( 'LinkLibraryGeneral', $genoptions );
|
481 |
} elseif ( floatval( $genoptions['schemaversion'] ) < '4.7' ) {
|
482 |
$genoptions['schemaversion'] = '4.7';
|
|
|
|
|
483 |
update_option( 'LinkLibraryGeneral', $genoptions );
|
484 |
} elseif ( floatval( $genoptions['schemaversion'] ) < '4.9' ) {
|
485 |
$genoptions['schemaversion'] = '4.9';
|
|
|
|
|
486 |
update_option( 'LinkLibraryGeneral', $genoptions );
|
487 |
}
|
488 |
|
489 |
+
for ( $i = 1; $i <= $genoptions['numberstylesets']; $i++ ) {
|
490 |
$settingsname = 'LinkLibraryPP' . $i;
|
491 |
$options = get_option( $settingsname );
|
492 |
|
537 |
|
538 |
update_option( $settingsname, $options );
|
539 |
}
|
540 |
+
} else {
|
541 |
+
update_option( 'LinkLibrary60Update', true );
|
542 |
}
|
543 |
|
544 |
+
$genoptions['schemaversion'] = '5.0';
|
545 |
update_option( 'LinkLibraryGeneral', $genoptions );
|
546 |
}
|
547 |
|
664 |
}
|
665 |
|
666 |
/************************************* Function to add to rewrite rules for permalink support **********************************/
|
667 |
+
function ll_insertMyRewriteRules( $rules ) {
|
|
|
668 |
$newrules = array();
|
669 |
|
670 |
$genoptions = get_option('LinkLibraryGeneral');
|
675 |
$options = get_option( $settingsname );
|
676 |
|
677 |
if ( $options['enablerewrite'] && !empty( $options['rewritepage'] ) ) {
|
678 |
+
if ( is_multisite() ) {
|
679 |
+
$newrules['(' . $options['rewritepage'] . ')/(.+?)$'] = 'index.php?pagename=$matches[2]&cat_name=$matches[3]';
|
680 |
+
} else {
|
681 |
+
$newrules['(' . $options['rewritepage'] . ')/(.+?)$'] = 'index.php?pagename=$matches[1]&cat_name=$matches[2]';
|
682 |
+
}
|
|
|
683 |
}
|
684 |
|
685 |
if ( $options['publishrssfeed'] ) {
|
692 |
}
|
693 |
}
|
694 |
}
|
695 |
+
|
696 |
return $newrules + $rules;
|
697 |
}
|
698 |
|
720 |
}
|
721 |
|
722 |
function CheckReciprocalLink( $RecipCheckAddress = '', $external_link = '' ) {
|
723 |
+
$response = wp_remote_get( $external_link, array( 'user-agent' => 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36', 'timeout' => 10 ) );
|
724 |
|
725 |
if( is_wp_error( $response ) ) {
|
726 |
$response_code = $response->get_error_code();
|
728 |
return 'error_403';
|
729 |
}
|
730 |
} elseif ( $response['response']['code'] == '200' ) {
|
731 |
+
if ( empty( $RecipCheckAddress ) ) {
|
732 |
return 'exists_notfound';
|
733 |
} elseif ( strpos( $response['body'], $RecipCheckAddress ) === false ) {
|
734 |
return 'exists_notfound';
|
740 |
return 'unreachable';
|
741 |
}
|
742 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
743 |
/* Output for users trying to directly call Link Library function, as was possible in pre-1.0 versions */
|
744 |
|
745 |
function LinkLibraryCategories() {
|
771 |
$options = get_option( $settingsname );
|
772 |
|
773 |
if ( !empty( $categorylistoverride ) ) {
|
774 |
+
$options['categorylist_cpt'] = $categorylistoverride;
|
775 |
}
|
776 |
|
777 |
if ( !empty( $excludecategoryoverride ) ) {
|
778 |
+
$options['excludecategorylist_cpt'] = $excludecategoryoverride;
|
779 |
}
|
780 |
|
781 |
$genoptions = get_option( 'LinkLibraryGeneral' );
|
837 |
$genoptions = get_option('LinkLibraryGeneral');
|
838 |
|
839 |
if ( !empty( $categorylistoverride ) ) {
|
840 |
+
$options['categorylist_cpt'] = $categorylistoverride;
|
841 |
} elseif ( !empty( $options['addlinkcatlistoverride'] ) ) {
|
842 |
+
$options['categorylist_cpt'] = $options['addlinkcatlistoverride'];
|
843 |
}
|
844 |
|
845 |
if ( !empty( $excludecategoryoverride ) ) {
|
846 |
+
$options['excludecategorylist_cpt'] = $excludecategoryoverride;
|
847 |
}
|
848 |
|
849 |
require_once plugin_dir_path( __FILE__ ) . 'render-link-library-addlink-sc.php';
|
868 |
$genoptions = get_option( 'LinkLibraryGeneral' );
|
869 |
|
870 |
if ( !empty( $categorylistoverride ) ) {
|
871 |
+
$options['categorylist_cpt'] = $categorylistoverride;
|
872 |
}
|
873 |
|
874 |
if ( !empty( $excludecategoryoverride ) ) {
|
875 |
+
$options['excludecategorylist_cpt'] = $excludecategoryoverride;
|
876 |
}
|
877 |
|
878 |
require_once plugin_dir_path( __FILE__ ) . 'render-link-library-sc.php';
|
879 |
+
$linkcount = 1;
|
880 |
+
return RenderLinkLibrary( $this, $genoptions, $options, $settings, true, 0, 0, true, false, $linkcount );
|
881 |
+
}
|
882 |
+
|
883 |
+
/********************************************** Function to Process [link-library-filters] shortcode ***************************************/
|
884 |
+
|
885 |
+
function link_library_filters( $atts ) {
|
886 |
+
extract( shortcode_atts( array(
|
887 |
+
'includetagsids' => '',
|
888 |
+
'excludetagsids' => '',
|
889 |
+
'showtagfilters' => true,
|
890 |
+
'taglabel' => __( 'Tag', 'link-library' ),
|
891 |
+
'showpricefilters' => true,
|
892 |
+
'pricelabel' => __( 'Price', 'link-library' ),
|
893 |
+
'settings' => ''
|
894 |
+
), $atts ) );
|
895 |
+
|
896 |
+
if ( empty( $settings ) ) {
|
897 |
+
$settings = 1;
|
898 |
+
}
|
899 |
+
|
900 |
+
$settingsname = 'LinkLibraryPP' . $settings;
|
901 |
+
$options = get_option( $settingsname );
|
902 |
+
$genoptions = get_option( 'LinkLibraryGeneral' );
|
903 |
+
|
904 |
+
require_once plugin_dir_path( __FILE__ ) . 'render-link-library-tag-filter-sc.php';
|
905 |
+
return RenderLinkLibraryFilterBox( $this, $genoptions, $options, $settings, $includetagsids, $excludetagsids, $showtagfilters, $taglabel, $showpricefilters, $pricelabel );
|
906 |
}
|
907 |
|
908 |
/********************************************** Function to Process [link-library] shortcode *********************************************/
|
909 |
|
910 |
+
function link_library_func( $atts = '' ) {
|
|
|
911 |
if ( isset( $_POST['ajaxupdate'] ) ) {
|
912 |
check_ajax_referer( 'link_library_ajax_refresh' );
|
913 |
}
|
958 |
}
|
959 |
|
960 |
if ( !empty( $categorylistoverride ) ) {
|
961 |
+
$options['categorylist_cpt'] = $categorylistoverride;
|
962 |
}
|
963 |
|
964 |
if ( !empty( $excludecategoryoverride ) ) {
|
965 |
+
$options['excludecategorylist_cpt'] = $excludecategoryoverride;
|
966 |
}
|
967 |
|
968 |
if ( !empty( $singlelinkid ) ) {
|
970 |
}
|
971 |
|
972 |
if ( $showonecatonlyoverride == 'false' || $showonecatonlyoverride == 'true' ) {
|
973 |
+
if ( $showonecatonlyoverride == 'false' ) {
|
974 |
+
$options['showonecatonly'] = false;
|
975 |
+
} elseif ( $showonecatonlyoverride == 'true' ) {
|
976 |
+
$options['showonecatonly'] = true;
|
977 |
+
}
|
978 |
}
|
979 |
|
980 |
if ( !empty( $tableoverride ) ) {
|
995 |
|
996 |
$genoptions = get_option( 'LinkLibraryGeneral' );
|
997 |
|
998 |
+
if ( floatval( $genoptions['schemaversion'] ) < '5.0' ) {
|
999 |
$this->ll_install();
|
1000 |
$genoptions = get_option( 'LinkLibraryGeneral' );
|
1001 |
|
1016 |
}
|
1017 |
|
1018 |
require_once plugin_dir_path( __FILE__ ) . 'render-link-library-sc.php';
|
1019 |
+
$linkcount = 1;
|
1020 |
+
$linklibraryoutput .= RenderLinkLibrary( $this, $genoptions, $options, $settings, false, 0, 0, true, false, $linkcount );
|
1021 |
|
1022 |
if ( isset( $_POST['ajaxupdate'] ) ) {
|
1023 |
echo $linklibraryoutput;
|
1038 |
if ( empty( $posts ) ) {
|
1039 |
return $posts;
|
1040 |
}
|
1041 |
+
|
1042 |
global $llstylesheet;
|
1043 |
$load_jquery = false;
|
1044 |
$load_thickbox = false;
|
1045 |
$load_recaptcha = false;
|
1046 |
+
|
1047 |
if ( $llstylesheet ) {
|
1048 |
$load_style = true;
|
1049 |
} else {
|
1050 |
$load_style = false;
|
1051 |
}
|
1052 |
+
|
1053 |
$genoptions = get_option( 'LinkLibraryGeneral' );
|
1054 |
$genoptions = wp_parse_args( $genoptions, ll_reset_gen_settings( 'return' ) );
|
1055 |
|
1070 |
if ( !$linklibrarypos ) {
|
1071 |
if ( stripos( $post->post_content, 'link-library-cats' ) || stripos( $post->post_content, 'link-library-addlink' ) ) {
|
1072 |
$load_style = true;
|
1073 |
+
if ( 'recaptcha' == $genoptions['captchagenerator'] ) {
|
1074 |
+
$load_recaptcha = true;
|
1075 |
+
}
|
1076 |
}
|
1077 |
}
|
1078 |
}
|
1139 |
}
|
1140 |
}
|
1141 |
|
1142 |
+
if ( $load_style ) {
|
1143 |
$llstylesheet = true;
|
1144 |
} else {
|
1145 |
$llstylesheet = false;
|
1180 |
}
|
1181 |
}
|
1182 |
|
1183 |
+
function ll_template_include( $template_path ) {
|
1184 |
+
if ( get_post_type() == 'link_library_links' && is_single() ) {
|
1185 |
+
// checks if the file exists in the theme first,
|
1186 |
+
// otherwise serve the file from the plugin
|
1187 |
+
if ( $theme_file = locate_template( array ( 'single-link_library_links.php' ) ) ) {
|
1188 |
+
$template_path = $theme_file;
|
1189 |
+
} else {
|
1190 |
+
add_filter( 'the_content', array( $this, 'll_display_single_link' ), 20 );
|
1191 |
+
}
|
1192 |
+
}
|
1193 |
+
return $template_path;
|
1194 |
+
}
|
1195 |
+
|
1196 |
+
function ll_get_string_between($string, $start, $end){
|
1197 |
+
$string = ' ' . $string;
|
1198 |
+
$ini = strpos($string, $start);
|
1199 |
+
if ($ini == 0) return '';
|
1200 |
+
$ini += strlen($start);
|
1201 |
+
$len = strpos($string, $end, $ini) - $ini;
|
1202 |
+
return substr($string, $ini, $len);
|
1203 |
+
}
|
1204 |
+
|
1205 |
+
function ll_replace_all_between( $beginning, $end, $string, $replace ) {
|
1206 |
+
$beginningPos = strpos($string, $beginning);
|
1207 |
+
$endPos = strpos($string, $end);
|
1208 |
+
if ($beginningPos === false || $endPos === false) {
|
1209 |
+
return $string;
|
1210 |
+
}
|
1211 |
+
|
1212 |
+
$textToDelete = substr($string, $beginningPos, ($endPos + strlen($end)) - $beginningPos);
|
1213 |
+
|
1214 |
+
return str_replace($textToDelete, $replace, $string);
|
1215 |
+
}
|
1216 |
+
|
1217 |
+
function ll_display_single_link( $content ) {
|
1218 |
+
|
1219 |
+
$genoptions = get_option( 'LinkLibraryGeneral' );
|
1220 |
+
$genoptions = wp_parse_args( $genoptions, ll_reset_gen_settings( 'return' ) );
|
1221 |
+
|
1222 |
+
$content = htmlspecialchars_decode( stripslashes( $genoptions['single_link_layout'] ) );
|
1223 |
+
|
1224 |
+
$item_id = get_the_ID();
|
1225 |
+
if ( !empty( $item_id ) ) {
|
1226 |
+
$link = get_post( get_the_ID() );
|
1227 |
+
if ( !empty( $link ) ) {
|
1228 |
+
$link_url = esc_url( get_post_meta( get_the_ID(), 'link_url', true ) );
|
1229 |
+
$link_description = esc_html( get_post_meta( get_the_ID(), 'link_description', true ) );
|
1230 |
+
$link_large_description = get_post_meta( get_the_ID(), 'link_textfield', true );
|
1231 |
+
$link_image = esc_url( get_post_meta( get_the_ID(), 'link_image', true ) );
|
1232 |
+
$link_price = number_format( floatval( get_post_meta( get_the_ID(), 'link_price', true ) ), 2 );
|
1233 |
+
$link_price_currency = $this->ll_get_string_between( $content, '[currency]', '[/currency]' );
|
1234 |
+
$link_price_currency_or_free = $this->ll_get_string_between( $content, '[currency_or_free]', '[/currency_or_free]' );
|
1235 |
+
$link_terms = wp_get_post_terms( get_the_ID(), 'link_library_category' );
|
1236 |
+
$link_terms_list = '';
|
1237 |
+
$link_terms_array = array();
|
1238 |
+
if ( is_array( $link_terms ) ) {
|
1239 |
+
foreach( $link_terms as $link_term ) {
|
1240 |
+
$link_terms_array[] = $link_term->name;
|
1241 |
+
}
|
1242 |
+
|
1243 |
+
if ( !empty( $link_terms_array ) ) {
|
1244 |
+
$link_terms_list = implode( ', ', $link_terms_array );
|
1245 |
+
}
|
1246 |
+
}
|
1247 |
+
|
1248 |
+
$content = str_replace( '[link_title]', $link->post_title, $content );
|
1249 |
+
$content = str_replace( '[link_content]', $link->post_content, $content );
|
1250 |
+
$content = str_replace( '[link_description]', $link_description, $content );
|
1251 |
+
$content = str_replace( '[link_large_description]', $link_large_description, $content );
|
1252 |
+
$content = str_replace( '[link_image]', $link_image, $content );
|
1253 |
+
|
1254 |
+
$content = str_replace( '[link_price]', $link_price, $content );
|
1255 |
+
$content = $this->ll_replace_all_between( '[currency]', '[/currency]', $content, $link_price_currency );
|
1256 |
+
|
1257 |
+
if ( floatval( $link_price ) > 0.0 ) {
|
1258 |
+
$content = str_replace( '[link_price_or_free]', $link_price, $content );
|
1259 |
+
$content = $this->ll_replace_all_between( '[currency_or_free]', '[/currency_or_free]', $content, $link_price_currency_or_free );
|
1260 |
+
} else {
|
1261 |
+
$content = str_replace( '[link_price_or_free]', __( 'Free', 'link-library' ), $content );
|
1262 |
+
$content = $this->ll_replace_all_between( '[currency_or_free]', '[/currency_or_free]', $content, '' );
|
1263 |
+
}
|
1264 |
+
|
1265 |
+
$content = str_replace( '[link_address]', $link_url, $content );
|
1266 |
+
$content = str_replace( '[link]', '<a href="' . $link_url . '">' . $link->post_title . '</a>', $content );
|
1267 |
+
$content = str_replace( '[link_category]', $link_terms_list, $content );
|
1268 |
+
}
|
1269 |
+
}
|
1270 |
+
|
1271 |
+
return nl2br( $content );
|
1272 |
+
}
|
1273 |
+
|
1274 |
function link_library_ajax_tracker() {
|
1275 |
require_once plugin_dir_path( __FILE__ ) . 'tracker.php';
|
1276 |
link_library_process_ajax_tracker( $this );
|
1322 |
require plugin_dir_path( __FILE__ ) . 'link-library-admin.php';
|
1323 |
$my_link_library_plugin_admin = new link_library_plugin_admin();
|
1324 |
}
|
1325 |
+
}
|
1326 |
+
|
1327 |
+
add_action( 'widgets_init', 'll_create_widgets' );
|
1328 |
+
|
1329 |
+
function ll_create_widgets() {
|
1330 |
+
register_widget( 'Link_Library_Widget' );
|
1331 |
+
}
|
1332 |
+
|
1333 |
+
class Link_Library_Widget extends WP_Widget {
|
1334 |
+
// Construction function
|
1335 |
+
function __construct () {
|
1336 |
+
parent::__construct( 'link_library', 'Link Library',
|
1337 |
+
array( 'description' =>
|
1338 |
+
'Displays links as configured under Link Library configurations' ) );
|
1339 |
+
}
|
1340 |
+
|
1341 |
+
function form( $instance ) {
|
1342 |
+
$genoptions = get_option( 'LinkLibraryGeneral' );
|
1343 |
+
$genoptions = wp_parse_args( $genoptions, ll_reset_gen_settings( 'return' ) );
|
1344 |
+
|
1345 |
+
$selected_library = ( !empty( $instance['selected_library'] ) ? $instance['selected_library'] : 1 );
|
1346 |
+
$widget_title = ( !empty( $instance['widget_title'] ) ? esc_attr( $instance['widget_title'] ) : 'Links' );
|
1347 |
+
?>
|
1348 |
+
<p>
|
1349 |
+
<label for="<?php echo $this->get_field_id( 'widget_title' ); ?>">
|
1350 |
+
<?php echo 'Widget Title:'; ?>
|
1351 |
+
<input type="text"
|
1352 |
+
id="<?php echo $this->get_field_id( 'widget_title' );?>"
|
1353 |
+
name="<?php echo $this->get_field_name( 'widget_title' ); ?>"
|
1354 |
+
value="<?php echo $widget_title; ?>" />
|
1355 |
+
</label>
|
1356 |
+
</p>
|
1357 |
+
<p>
|
1358 |
+
<label for="<?php echo $this->get_field_id( 'nb_book_reviews' ); ?>">
|
1359 |
+
<?php echo 'Select library configuration to display:'; ?>
|
1360 |
+
<select id="<?php echo $this->get_field_id( 'selected_library' ); ?>"
|
1361 |
+
name="<?php echo $this->get_field_name( 'selected_library' ); ?>">
|
1362 |
+
<?php if ( empty( $genoptions['numberstylesets'] ) ) {
|
1363 |
+
$numberofsets = 1;
|
1364 |
+
} else {
|
1365 |
+
$numberofsets = $genoptions['numberstylesets'];
|
1366 |
+
}
|
1367 |
+
|
1368 |
+
for ( $counter = 1; $counter <= $numberofsets; $counter ++ ) {
|
1369 |
+
$tempoptionname = "LinkLibraryPP" . $counter;
|
1370 |
+
$tempoptions = get_option( $tempoptionname );
|
1371 |
+
|
1372 |
+
echo '<option value="' . $counter . '" ' . selected( $selected_library, $counter ) . '>' . $tempoptions['settingssetname'] . '</option>';
|
1373 |
+
}
|
1374 |
+
?>
|
1375 |
+
</select>
|
1376 |
+
</label>
|
1377 |
+
</p>
|
1378 |
+
<?php }
|
1379 |
+
|
1380 |
+
function widget( $args, $instance ) {
|
1381 |
+
// Extract members of args array as individual variables
|
1382 |
+
extract( $args );
|
1383 |
+
// Retrieve widget configuration options
|
1384 |
+
$selected_library = ( !empty( $instance['selected_library'] ) ? $instance['selected_library'] : 1 );
|
1385 |
+
$widget_title = ( !empty( $instance['widget_title'] ) ? esc_attr( $instance['widget_title'] ) : 'Links' );
|
1386 |
+
|
1387 |
+
// Display widget title
|
1388 |
+
echo $before_widget . $before_title;
|
1389 |
+
echo apply_filters( 'widget_title', $widget_title );
|
1390 |
+
echo $after_title;
|
1391 |
+
|
1392 |
+
echo do_shortcode( '[link-library settings="' . $selected_library . '"]');
|
1393 |
+
|
1394 |
+
echo $after_widget;
|
1395 |
+
}
|
1396 |
+
}
|
1397 |
+
|
linkpopup.php
CHANGED
@@ -1,255 +1,275 @@
|
|
1 |
<?php
|
2 |
|
3 |
function link_library_popup_content( $my_link_library_plugin ) {
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
254 |
}
|
255 |
|
1 |
<?php
|
2 |
|
3 |
function link_library_popup_content( $my_link_library_plugin ) {
|
4 |
+
if ( isset( $_GET['linkid'] ) && isset( $_GET['settings'] ) ) {
|
5 |
+
$link_id = intval( $_GET['linkid'] );
|
6 |
+
$settings_id = intval( $_GET['settings'] );
|
7 |
+
} else {
|
8 |
+
wp_die();
|
9 |
+
}
|
10 |
+
|
11 |
+
$link_data = get_post( $link_id );
|
12 |
+
|
13 |
+
if ( !empty( $link_data ) ) {
|
14 |
+
$link_url = get_post_meta( $link_id, 'link_url', true );
|
15 |
+
$link_second_url = get_post_meta( $link_id, 'link_second_url', true );
|
16 |
+
$link_description = get_post_meta( $link_id, 'link_description', true );
|
17 |
+
$link_no_follow = get_post_meta( $link_id, 'link_no_follow', true );
|
18 |
+
$link_target = get_post_meta( $link_id, 'link_target', true );
|
19 |
+
$link_image = get_post_meta( $link_id, 'link_image', true );
|
20 |
+
$link_featured = get_post_meta( $link_id, 'link_featured', true );
|
21 |
+
$link_textfield = get_post_meta( $link_id, 'link_textfield', true );
|
22 |
+
$link_telephone = get_post_meta( $link_id, 'link_telephone', true );
|
23 |
+
$link_email = get_post_meta( $link_id, 'link_email', true );
|
24 |
+
$link_visits = get_post_meta( $link_id, 'link_visits', true );
|
25 |
+
$link_submitter_name = get_post_meta( $link_id, 'link_submitter_name', true );
|
26 |
+
$link_rating = get_post_meta( $link_id, 'link_rating', true );
|
27 |
+
$link_rss = get_post_meta( $link_id, 'link_rss', true );
|
28 |
+
|
29 |
+
$the_link = '#';
|
30 |
+
if ( !empty( $link_url ) ) {
|
31 |
+
$the_link = esc_html( $link_url );
|
32 |
+
}
|
33 |
+
|
34 |
+
$the_second_link = '#';
|
35 |
+
if ( !empty( $link_second_url ) ) {
|
36 |
+
$the_second_link = esc_html( $link_second_url );
|
37 |
+
}
|
38 |
+
|
39 |
+
$cleanname = esc_html( $link_data->post_name, ENT_QUOTES );
|
40 |
+
|
41 |
+
$name = $cleanname;
|
42 |
+
|
43 |
+
$alt = ' alt="' . $cleanname . '"';
|
44 |
+
|
45 |
+
$title = esc_html( $link_description, ENT_QUOTES );
|
46 |
+
|
47 |
+
if ('' != $title)
|
48 |
+
$title = ' title="' . $title . '"';
|
49 |
+
|
50 |
+
$options = get_option( 'LinkLibraryPP' . $settings_id );
|
51 |
+
|
52 |
+
$rel = '';
|
53 |
+
if ( ( $options['nofollow'] || $link_no_follow ) ) {
|
54 |
+
$rel = ' rel="nofollow"';
|
55 |
+
}
|
56 |
+
|
57 |
+
$target = $link_target;
|
58 |
+
if ( !empty( $target ) ) {
|
59 |
+
$target = ' target="' . $target . '"';
|
60 |
+
} else {
|
61 |
+
$target = $options['linktarget'];
|
62 |
+
if ( !empty( $target ) )
|
63 |
+
$target = ' target="' . $target . '"';
|
64 |
+
}
|
65 |
+
|
66 |
+
$popup_text = ( !empty( $options['link_popup_text'] ) ? stripslashes($options['link_popup_text']) : __( '%link_image%<br />Click through to visit %link_name%.', 'link-library') );
|
67 |
+
|
68 |
+
if ( ( strpos( $popup_text, '%link_image%' ) !== false ) && !empty( $link_image ) ) {
|
69 |
+
$imageoutput = '<a href="';
|
70 |
+
|
71 |
+
if ( 'primary' == $options['sourceimage'] || empty( $options['sourceimage'] ) ) {
|
72 |
+
$imageoutput .= $the_link;
|
73 |
+
} elseif ( 'secondary' == $options['sourceimage'] ) {
|
74 |
+
$imageoutput .= $the_second_link;
|
75 |
+
}
|
76 |
+
|
77 |
+
$imageoutput .= '" id="link-' . $link_data->ID . '" class="track_this_link ' . ( $link_featured ? 'featured' : '' ). '" ' . $rel . $title . $target. '>';
|
78 |
+
|
79 |
+
if ( $options['usethumbshotsforimages'] ) {
|
80 |
+
if ( empty( $options['thumbshotscid'] ) ) {
|
81 |
+
$imageoutput .= '<img src="http://open.thumbshots.org/image.aspx?url=' . $the_link . '"';
|
82 |
+
} elseif ( !empty( $options['thumbshotscid'] ) ) {
|
83 |
+
$imageoutput .= '<img src="http://images.thumbshots.com/image.aspx?cid=' . $options['thumbshotscid'] . '&v=1&w=120&h=90&url=' . $the_link . '"';
|
84 |
+
}
|
85 |
+
} elseif ( strpos( $link_image, 'http' ) !== false ) {
|
86 |
+
$imageoutput .= '<img src="' . $link_image . '"';
|
87 |
+
} else {
|
88 |
+
$imageoutput .= '<img src="' . get_option('siteurl') . $link_image . '"';
|
89 |
+
}
|
90 |
+
|
91 |
+
$imageoutput .= $alt . $title;
|
92 |
+
|
93 |
+
if ( !empty( $options['imageclass'] ) ) {
|
94 |
+
$imageoutput .= ' class="' . $options['imageclass'] . '" ';
|
95 |
+
}
|
96 |
+
|
97 |
+
$imageoutput .= "/>";
|
98 |
+
|
99 |
+
$imageoutput .= '</a>';
|
100 |
+
|
101 |
+
$popup_text = str_replace( '%link_image%', $imageoutput, $popup_text );
|
102 |
+
} elseif ( ( strpos( $popup_text, '%link_image%' ) !== false ) && empty( $link_image ) ) {
|
103 |
+
$popup_text = str_replace( '%link_image%', '', $popup_text );
|
104 |
+
}
|
105 |
+
|
106 |
+
if ( ( strpos( $popup_text, '%link_name%' ) !== false ) && !empty( $name ) ) {
|
107 |
+
if ( ( 'primary' == $options['sourcename'] && $the_link != '#' ) || ( 'secondary' == $options['sourcename'] && $the_second_link != '#' ) ) {
|
108 |
+
$nameoutput = '<a href="';
|
109 |
+
|
110 |
+
if ( isset( $options['sourcename'] ) && ( 'primary' == $options['sourcename'] || empty( $options['sourcename'] ) ) ) {
|
111 |
+
$nameoutput .= $the_link;
|
112 |
+
} elseif ( isset( $options['sourcename'] ) && 'secondary' == $options['sourcename'] ) {
|
113 |
+
$nameoutput .= $the_second_link;
|
114 |
+
}
|
115 |
+
|
116 |
+
$nameoutput .= '" id="link-' . $link_data->ID . '" class="' . ( ( isset( $enablelinkpopup ) && $enablelinkpopup ) ? 'thickbox' : 'track_this_link' ) . ( $link_featured ? ' featured' : '' ). '" ' . $rel . $title . $target. '>';
|
117 |
+
}
|
118 |
+
|
119 |
+
$nameoutput .= $name;
|
120 |
+
|
121 |
+
if ( ( 'primary' == $options['sourcename'] && $the_link != '#' ) || ( $options['sourcename'] == 'secondary' && $the_second_link != '#' ) ) {
|
122 |
+
$nameoutput .= '</a>';
|
123 |
+
}
|
124 |
+
|
125 |
+
$popup_text = str_replace( '%link_name%', $nameoutput, $popup_text );
|
126 |
+
} elseif ( ( strpos( $popup_text, '%link_name%' ) !== false ) && empty( $name ) ) {
|
127 |
+
$popup_text = str_replace( '%link_name%', '', $popup_text );
|
128 |
+
}
|
129 |
+
|
130 |
+
if ( ( strpos( $popup_text, '%link_url%' ) !== false ) && !empty( $link_url ) ) {
|
131 |
+
$popup_text = str_replace( '%link_url%', $link_url, $popup_text );
|
132 |
+
} elseif ( ( strpos( $popup_text, '%link_url%' ) !== false ) && empty( $link_url ) ) {
|
133 |
+
$popup_text = str_replace( '%link_url%', '', $popup_text );
|
134 |
+
}
|
135 |
+
|
136 |
+
$link_cat_names = '';
|
137 |
+
$link_categories = wp_get_post_terms( get_the_ID(), 'link_library_category' );
|
138 |
+
if ( $link_categories ) {
|
139 |
+
$countcats = 0;
|
140 |
+
foreach ( $link_categories as $link_category ) {
|
141 |
+
if ( $countcats >= 1 ) {
|
142 |
+
$link_cat_names .= ', ';
|
143 |
+
}
|
144 |
+
$link_cat_names .= $link_category->name;
|
145 |
+
$countcats++;
|
146 |
+
}
|
147 |
+
}
|
148 |
+
|
149 |
+
if ( ( strpos( $popup_text, '%link_cat_name%' ) !== false ) && !empty( $link_cat_names ) ) {
|
150 |
+
$popup_text = str_replace( '%link_cat_name%', $link_cat_names, $popup_text );
|
151 |
+
} elseif ( ( strpos( $popup_text, '%link_cat_name%' ) !== false ) && empty( $link_cat_names ) ) {
|
152 |
+
$popup_text = str_replace( '%link_cat_name%', '', $popup_text );
|
153 |
+
}
|
154 |
+
|
155 |
+
/* if ( ( strpos( $popup_text, '%link_cat_desc%' ) !== false ) && !empty( $link_description ) ) {
|
156 |
+
$cleandesc = str_replace('[', '<', $linkitem['description']);
|
157 |
+
$cleandesc = str_replace(']', '>', $cleandesc);
|
158 |
+
|
159 |
+
$popup_text = str_replace( '%link_cat_desc%', $cleandesc, $popup_text );
|
160 |
+
} elseif ( ( strpos( $popup_text, '%link_cat_desc%' ) !== false ) && empty( $linkitem['description'] ) ) {
|
161 |
+
$popup_text = str_replace( '%link_cat_desc%', '', $popup_text );
|
162 |
+
} */
|
163 |
+
|
164 |
+
if ( ( strpos ( $popup_text, '%link_desc%' ) !== false ) && !empty( $link_description ) ) {
|
165 |
+
$linkdesc = $link_description;
|
166 |
+
$linkdesc = str_replace('[', '<', $linkdesc);
|
167 |
+
$linkdesc = str_replace(']', '>', $linkdesc);
|
168 |
+
|
169 |
+
$popup_text = str_replace( '%link_desc%', $linkdesc, $popup_text );
|
170 |
+
} elseif ( ( strpos( $popup_text, '%link_desc%' ) !== false ) && empty( $link_description ) ) {
|
171 |
+
$popup_text = str_replace( '%link_desc%', '', $popup_text );
|
172 |
+
}
|
173 |
+
|
174 |
+
if ( ( strpos ( $popup_text, '%link_large_desc%' ) !== false ) && !empty( $link_textfield ) ) {
|
175 |
+
$linklargedesc = stripslashes( $link_textfield );
|
176 |
+
$linklargedesc = str_replace('[', '<', $linklargedesc);
|
177 |
+
$linklargedesc = str_replace(']', '>', $linklargedesc);
|
178 |
+
|
179 |
+
$popup_text = str_replace( '%link_large_desc%', $linklargedesc, $popup_text );
|
180 |
+
} elseif ( ( strpos( $popup_text, '%link_large_desc%' ) !== false ) && empty( $link_textfield ) ) {
|
181 |
+
$popup_text = str_replace( '%link_large_desc%', '', $popup_text );
|
182 |
+
}
|
183 |
+
|
184 |
+
if ( ( strpos ( $popup_text, '%link_telephone%' ) !== false ) && !empty( $link_telephone ) ) {
|
185 |
+
$linktelephone = stripslashes( $link_telephone );
|
186 |
+
|
187 |
+
$popup_text = str_replace( '%link_telephone%', $linktelephone, $popup_text );
|
188 |
+
} elseif ( ( strpos( $popup_text, '%link_telephone%' ) !== false ) && empty( $link_telephone ) ) {
|
189 |
+
$popup_text = str_replace( '%link_telephone%', '', $popup_text );
|
190 |
+
}
|
191 |
+
|
192 |
+
if ( ( strpos ( $popup_text, '%link_email%' ) !== false ) && !empty( $link_email ) ) {
|
193 |
+
$linkemail = stripslashes( $link_email );
|
194 |
+
|
195 |
+
$popup_text = str_replace( '%link_email%', $linkemail, $popup_text );
|
196 |
+
} elseif ( ( strpos( $popup_text, '%link_email%' ) !== false ) && empty( $link_email ) ) {
|
197 |
+
$popup_text = str_replace( '%link_email%', '', $popup_text );
|
198 |
+
}
|
199 |
+
|
200 |
+
if ( ( strpos ( $popup_text, '%link_email_link%' ) !== false ) && !empty( $linkitem['link_email'] ) ) {
|
201 |
+
$linkemail = stripslashes( $linkitem['link_email'] );
|
202 |
+
if ( strpos ( $linkemail, '@') !== false ) {
|
203 |
+
$linkemail = 'mailto:' . $linkemail;
|
204 |
+
}
|
205 |
+
|
206 |
+
$popup_text = str_replace( '%link_email_link%', $linkemail, $popup_text );
|
207 |
+
} elseif ( ( strpos( $popup_text, '%link_email_link%' ) !== false ) && empty( $linkitem['link_email'] ) ) {
|
208 |
+
$popup_text = str_replace( '%link_email_link%', '', $popup_text );
|
209 |
+
}
|
210 |
+
|
211 |
+
if ( ( strpos ( $popup_text, '%link_alt_web%' ) !== false ) && !empty( $link_second_url ) ) {
|
212 |
+
$linkalturl = stripslashes( esc_html( $link_second_url ) );
|
213 |
+
|
214 |
+
$popup_text = str_replace( '%link_alt_web%', $linkalturl, $popup_text );
|
215 |
+
} elseif ( ( strpos( $popup_text, '%link_alt_web%' ) !== false ) && empty( $link_second_url ) ) {
|
216 |
+
$popup_text = str_replace( '%link_alt_web%', '', $popup_text );
|
217 |
+
}
|
218 |
+
|
219 |
+
if ( ( strpos ( $popup_text, '%link_num_views%' ) !== false ) && !empty( $link_visits ) ) {
|
220 |
+
$linkvisits = stripslashes( $link_visits );
|
221 |
+
|
222 |
+
$popup_text = str_replace( '%link_num_views%', $linkvisits, $popup_text );
|
223 |
+
} elseif ( ( strpos( $popup_text, '%link_num_views%' ) !== false ) && empty( $link_visits ) ) {
|
224 |
+
$popup_text = str_replace( '%link_num_views%', '', $popup_text );
|
225 |
+
}
|
226 |
+
|
227 |
+
if ( ( strpos ( $popup_text, '%link_submitter_name%' ) !== false ) && !empty( $link_submitter_name ) ) {
|
228 |
+
$linksubmitter = stripslashes( $link_submitter_name );
|
229 |
+
|
230 |
+
$popup_text = str_replace( '%link_submitter_name%', $linksubmitter, $popup_text );
|
231 |
+
} elseif ( ( strpos( $popup_text, '%link_submitter_name%' ) !== false ) && empty( $link_submitter_name ) ) {
|
232 |
+
$popup_text = str_replace( '%link_submitter_name%', '', $popup_text );
|
233 |
+
}
|
234 |
+
|
235 |
+
if ( ( strpos ( $popup_text, '%link_rating%' ) !== false ) && !empty( $link_rating ) ) {
|
236 |
+
$linksubmitter = stripslashes( $link_rating );
|
237 |
+
|
238 |
+
$popup_text = str_replace( '%link_rating%', $linksubmitter, $popup_text );
|
239 |
+
} elseif ( ( strpos( $popup_text, '%link_rating%' ) !== false ) && empty( $link_rating ) ) {
|
240 |
+
$popup_text = str_replace( '%link_rating%', '', $popup_text );
|
241 |
+
}
|
242 |
+
|
243 |
+
if ( ( strpos ( $popup_text, '%link_rss%' ) !== false ) && !empty( $link_rss ) ) {
|
244 |
+
$linksubmitter = stripslashes( $link_rss );
|
245 |
+
|
246 |
+
$popup_text = str_replace( '%link_rss%', $linksubmitter, $popup_text );
|
247 |
+
} elseif ( ( strpos( $popup_text, '%link_rss%' ) !== false ) && empty( $link_rss ) ) {
|
248 |
+
$popup_text = str_replace( '%link_rss%', '', $popup_text );
|
249 |
+
}
|
250 |
+
|
251 |
+
$postshortcode_popup_text = apply_filters( 'the_content', $popup_text );
|
252 |
+
echo '<div class="linkpopup">' . $postshortcode_popup_text . '</div>';
|
253 |
+
|
254 |
+
$xpath = $my_link_library_plugin->relativePath( dirname( __FILE__ ), ABSPATH );
|
255 |
+
|
256 |
+
$track_code = "<script type='text/javascript'>\n";
|
257 |
+
$track_code .= "jQuery(document).ready(function()\n";
|
258 |
+
$track_code .= "{\n";
|
259 |
+
$track_code .= "jQuery('a.track_this_link').click(function() {\n";
|
260 |
+
$track_code .= "linkid = this.id;\n";
|
261 |
+
$track_code .= "linkid = linkid.substring(5);";
|
262 |
+
$track_code .= "path = '" . $xpath . "';";
|
263 |
+
$track_code .= "jQuery.post('" . WP_PLUGIN_URL . "/link-library/tracker.php', {id:linkid, xpath:path});\n";
|
264 |
+
$track_code .= "return true;\n";
|
265 |
+
$track_code .= "});\n";
|
266 |
+
$track_code .= "});\n";
|
267 |
+
$track_code .= "</script>";
|
268 |
+
|
269 |
+
echo $track_code;
|
270 |
+
}
|
271 |
+
|
272 |
+
|
273 |
+
exit;
|
274 |
}
|
275 |
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: jackdewey
|
3 |
Donate link: http://ylefebvre.ca/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:
|
6 |
-
Tested up to: 4.9.
|
7 |
-
Stable tag:
|
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 |
|
@@ -59,6 +59,219 @@ Further configuration is available under the Link Library Settings panel.
|
|
59 |
|
60 |
== Changelog ==
|
61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
= 5.9.15.8 =
|
63 |
* Fixed link exported so that links with multiple categories do not become duplicates
|
64 |
* Final version of Link Library 5.9, before 6.0 release
|
2 |
Contributors: jackdewey
|
3 |
Donate link: http://ylefebvre.ca/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: 4.9.6
|
7 |
+
Stable tag: trunk
|
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 |
|
59 |
|
60 |
== Changelog ==
|
61 |
|
62 |
+
= 6.0.46 =
|
63 |
+
* Improvements to upgrade routine to account for users who were running older version of Link Library before upgrade
|
64 |
+
* Search improvements. Brings back search in link descriptions, notes and large descriptions. Also searches through these fields when searching for links in admin
|
65 |
+
* Fixes for text after double-quotes getting cut off in link description and note fields
|
66 |
+
|
67 |
+
= 6.0.45 =
|
68 |
+
* Fix to properly order links ordered by link visits
|
69 |
+
|
70 |
+
= 6.0.44 =
|
71 |
+
* Fixed word array appearing in new link admin e-mail for categories
|
72 |
+
|
73 |
+
= 6.0.43 =
|
74 |
+
* Fixed link moderation table, showing 'None assigned' messages outside of the table for links without tags
|
75 |
+
* Fixed notification e-mail missing title
|
76 |
+
* Fixed pages with cat variable in link not displaying links properly
|
77 |
+
|
78 |
+
= 6.0.42 =
|
79 |
+
* Sub-categories now display hierarchically in User link submission form
|
80 |
+
* Increased timeout to 10 seconds for reciprocal and broken link checkers to avoid timeouts with some sites
|
81 |
+
* Fix to pagination display when using sub-categories
|
82 |
+
|
83 |
+
= 6.0.41 =
|
84 |
+
* Fix to link checking tools to properly check status of box to delete links that return a 403 error
|
85 |
+
|
86 |
+
= 6.0.40 =
|
87 |
+
* Fixes for new reciprocal and broken link checkers
|
88 |
+
|
89 |
+
= 6.0.39 =
|
90 |
+
* Re-worked reciprocal and broken link checkers so they check links using ajax one by one. This way, the checker can never time out, even with large libraries
|
91 |
+
|
92 |
+
= 6.0.38 =
|
93 |
+
* Fixed user link submission when not allowing user to select category
|
94 |
+
|
95 |
+
= 6.0.37 =
|
96 |
+
* Fixed to new date diff code implementation
|
97 |
+
|
98 |
+
= 6.0.36 =
|
99 |
+
* Empty categories now properly appear again when displaying categories in drop-down list mode when showing empties
|
100 |
+
* Replaced references to setTimestamp to be compatible with PHP 5.2
|
101 |
+
|
102 |
+
= 6.0.35 =
|
103 |
+
* Fix for "Generating cat link" debug message appearing in some configurations
|
104 |
+
|
105 |
+
= 6.0.34 =
|
106 |
+
* Adjustments for calculation of height of multi-select fields in user submission form
|
107 |
+
|
108 |
+
= 6.0.33 =
|
109 |
+
* Added option to display links that are scheduled for publication at a latter date, under links tab of library settings
|
110 |
+
|
111 |
+
= 6.0.32 =
|
112 |
+
* Fix for user submission form
|
113 |
+
|
114 |
+
= 6.0.31 =
|
115 |
+
* Add new section to user submission form to allow visitors to assign tags to the links they submit
|
116 |
+
|
117 |
+
= 6.0.30 =
|
118 |
+
* Add option to display categories as a multi-select list in user submission form
|
119 |
+
|
120 |
+
= 6.0.29 =
|
121 |
+
* Fix for PHP warning if categories are set to be displayed in list order and no included categories are specified
|
122 |
+
|
123 |
+
= 6.0.28 =
|
124 |
+
* Fix to category drop-down list so that it does not show excluded categories when showing one category at a time
|
125 |
+
|
126 |
+
= 6.0.27 =
|
127 |
+
* Fixes to tools such as duplicate checker and thumbnail generator so they no longer consider trashed links
|
128 |
+
|
129 |
+
= 6.0.26 =
|
130 |
+
* Added calls to wp_reset_post data. In some circumstances, not calling this caused some strange behaviour on some sites
|
131 |
+
|
132 |
+
= 6.0.25 =
|
133 |
+
* Added button in general option to delete all links in old format
|
134 |
+
* Converted new lines from editor to line breaks in single item layout
|
135 |
+
* Added [link-category] as tag for single item layout
|
136 |
+
|
137 |
+
= 6.0.24 =
|
138 |
+
* Fixed to RSS Feed generation to properly filter links based on category inclusion or exclusion
|
139 |
+
|
140 |
+
= 6.0.23 =
|
141 |
+
* Correction for extra UL tag displayed when Link Display Format is set to No surrounding tags
|
142 |
+
|
143 |
+
= 6.0.22 =
|
144 |
+
* Added new general option to be able to change Link Library post slug from default "links"
|
145 |
+
|
146 |
+
= 6.0.21 =
|
147 |
+
* Brought back the moderation link submission notification icon to the top-level Link Library menu
|
148 |
+
|
149 |
+
= 6.0.20 =
|
150 |
+
* Added new column in Link Library admin list to show updated date and display text when links have been recently updated
|
151 |
+
* Added information about single item layout, along with list of fields that can be used in template
|
152 |
+
* Introduced new widget. Users only need to select a display configuration
|
153 |
+
|
154 |
+
= 6.0.19 =
|
155 |
+
* Fix user-submitted links with user-submitted categories missing category
|
156 |
+
|
157 |
+
= 6.0.18 =
|
158 |
+
* Added tool in Global Options to export list of category ID mappings between version 5.9 and 6.0
|
159 |
+
|
160 |
+
= 6.0.17 =
|
161 |
+
* Updated Welcome message box for people updating to show FAQ
|
162 |
+
|
163 |
+
= 6.0.16 =
|
164 |
+
* Restored ability to specify max number of links to display
|
165 |
+
|
166 |
+
= 6.0.15 =
|
167 |
+
* Fix to prevent warning in some configurations of 6.0.14
|
168 |
+
|
169 |
+
= 6.0.14 =
|
170 |
+
* Fixes for link display format selector
|
171 |
+
* Fixes for table layout when using combined results option
|
172 |
+
* Removed references to My Link Order plugin since it is no longer supported
|
173 |
+
|
174 |
+
= 6.0.13 =
|
175 |
+
* Fixed Edit links not appearing for links since 6.0
|
176 |
+
|
177 |
+
= 6.0.12 =
|
178 |
+
* Improvements to update mechanism to avoid duplicate entries
|
179 |
+
|
180 |
+
= 6.0.11 =
|
181 |
+
* Fixed issue with user submitted links not having a category assigned to them
|
182 |
+
|
183 |
+
= 6.0.10 =
|
184 |
+
* Fixes to link ordering methods
|
185 |
+
* Fixes to bring back featured links to be displayed at top of each category
|
186 |
+
* Fix to bring back support for link category override selection list in user submission tab
|
187 |
+
* Added extra column to category list to make it easier to find category IDs
|
188 |
+
|
189 |
+
= 6.0.9 =
|
190 |
+
* Fix for number of links per category when showing list of categories as a drop-down
|
191 |
+
|
192 |
+
= 6.0.8 =
|
193 |
+
* Removed automatic re-import mechanism
|
194 |
+
|
195 |
+
= 6.0.7 =
|
196 |
+
* Fine-tune automatic re-import process
|
197 |
+
|
198 |
+
= 6.0.6 =
|
199 |
+
* Automate re-import process so that sites that automatically updated to 6.0 don't need to manually re-import links
|
200 |
+
|
201 |
+
= 6.0.5 =
|
202 |
+
* Added line to disable link manager option for legacy installations
|
203 |
+
* Additional fixes to update routine to avoid duplicate entries
|
204 |
+
|
205 |
+
= 6.0.4 =
|
206 |
+
* Additional fixed to update routine to avoid duplicate entries
|
207 |
+
|
208 |
+
= 6.0.3 =
|
209 |
+
* Fix for parse error on older versions of PHP
|
210 |
+
* Small fix to update function
|
211 |
+
|
212 |
+
= 6.0.2 =
|
213 |
+
* Correct warning with sizeof function when combining search results
|
214 |
+
* Fix for category exclusions in link submission form
|
215 |
+
|
216 |
+
= 6.0.1 =
|
217 |
+
* Re-written link importer to avoid duplicate entries
|
218 |
+
* Fix for Large Description HTML tags not being displayed correctly
|
219 |
+
|
220 |
+
= 6.0 =
|
221 |
+
* Official release of Link Library 6.0
|
222 |
+
|
223 |
+
= 6.0 Beta 12 =
|
224 |
+
* Improvements in performance of initial link import to help with websites that have large quantity of links
|
225 |
+
|
226 |
+
= 6.0 Beta 11 =
|
227 |
+
* Fix in links importer to properly read in data exported by plugin
|
228 |
+
|
229 |
+
= 6.0 Beta 10 =
|
230 |
+
* Fix to display child categories when using shortcode category override options
|
231 |
+
|
232 |
+
= 6.0 Beta 9 =
|
233 |
+
* Added shortcode parameters to the Usage tab under Library Configuration
|
234 |
+
* Modified All Links page filter to show all categories instead of only showing categories containing links. Also made category list hierarchical.
|
235 |
+
* Fix to show child categories in Common tab of Library Configurations
|
236 |
+
|
237 |
+
= 6.0 Beta 8 =
|
238 |
+
* Updated bookmarket to work with new link custom post types (need to re-create bookmarklet from General Options to work)
|
239 |
+
* Fixed problem selecting categories in Common tab of library configuration
|
240 |
+
* Fix for shortcode category overrides not working (categorylistoverride, excludecategoryoverride)
|
241 |
+
|
242 |
+
= 6.0 Beta 7 =
|
243 |
+
* Resolved undefined variable warning linkeditoruser
|
244 |
+
* Fix importer and exporter field order to accept imports from version 5.9 and be more flexible towards changes
|
245 |
+
* Saving library configuration for library other than #1 now go back to the current library edited
|
246 |
+
|
247 |
+
= 6.0 Beta 6 =
|
248 |
+
* Added new option field under Web Link item in Advanced table to specify target
|
249 |
+
* Fixed warning in user submission form
|
250 |
+
* Updated Norsk translation
|
251 |
+
* Fixed default value of single item template
|
252 |
+
* Fixed PHP warnings if link fields are left empty
|
253 |
+
|
254 |
+
= 6.0 Beta 5 =
|
255 |
+
* Fixed issue with Robothumb link appearing after each category instead of only once after all links
|
256 |
+
* Fixed issue with links being displayed as featured even if they had not been set as such
|
257 |
+
* Fixed issue with front-end Edit links not sending administrators to the right place
|
258 |
+
* Fixed issue with drag-and-drop of elements in advanced section sometimes creating duplicates
|
259 |
+
* Fixed issue with category names not displaying if Link Library configured to display with headings instead of divs
|
260 |
+
|
261 |
+
= 6.0 Beta 4 =
|
262 |
+
* Corrected warnings when activating plugin on a site that had never had old version of Link Library
|
263 |
+
* Added button under General Options to re-import links from 5.9.x to 6.0
|
264 |
+
* Removed code in plugin initialization referring to inexistent table
|
265 |
+
|
266 |
+
= 6.0 Beta 3 =
|
267 |
+
* Incorporated changes from 5.9.15.3
|
268 |
+
|
269 |
+
= 6.0 Beta 2 =
|
270 |
+
* Fixed compatibility issue with versions of PHP older than 5.5
|
271 |
+
|
272 |
+
= 6.0 Beta 1 =
|
273 |
+
* Complete re-work of Link Library to use Custom Post Types instead of the WordPress legacy link tables
|
274 |
+
|
275 |
= 5.9.15.8 =
|
276 |
* Fixed link exported so that links with multiple categories do not become duplicates
|
277 |
* Final version of Link Library 5.9, before 6.0 release
|
render-link-library-addlink-sc.php
CHANGED
@@ -14,611 +14,749 @@ require_once plugin_dir_path( __FILE__ ) . 'link-library-defaults.php';
|
|
14 |
* @param $libraryoptions Selected library settings array
|
15 |
* @param $settings Settings ID
|
16 |
* @param $code Shortcode used in text that called this function
|
17 |
-
*
|
18 |
* @return List of categories output for browser
|
19 |
*/
|
20 |
|
21 |
-
function
|
22 |
|
23 |
-
wp_enqueue_script( 'form-validator' );
|
24 |
-
global $wpdb;
|
25 |
$output = '';
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
$libraryoptions['showaddlinkrss'] = 'hide';
|
35 |
-
} elseif ( $libraryoptions['showaddlinkrss'] === true ) {
|
36 |
-
$libraryoptions['showaddlinkrss'] = 'show';
|
37 |
-
}
|
38 |
-
|
39 |
-
if ( $libraryoptions['showaddlinkdesc'] === false ) {
|
40 |
-
$libraryoptions['showaddlinkdesc'] = 'hide';
|
41 |
-
} elseif ( $libraryoptions['showaddlinkdesc'] === true ) {
|
42 |
-
$libraryoptions['showaddlinkdesc'] = 'show';
|
43 |
-
}
|
44 |
-
|
45 |
-
if ( $libraryoptions['showaddlinkcat'] === false ) {
|
46 |
-
$libraryoptions['showaddlinkcat'] = 'hide';
|
47 |
-
} elseif ( $libraryoptions['showaddlinkcat'] === true ) {
|
48 |
-
$libraryoptions['showaddlinkcat'] = 'show';
|
49 |
-
}
|
50 |
-
|
51 |
-
if ( $libraryoptions['showaddlinknotes'] === false ) {
|
52 |
-
$libraryoptions['showaddlinknotes'] = 'hide';
|
53 |
-
} elseif ( $libraryoptions['showaddlinknotes'] === true ) {
|
54 |
-
$libraryoptions['showaddlinknotes'] = 'show';
|
55 |
-
}
|
56 |
-
|
57 |
-
if ( $libraryoptions['addlinkcustomcat'] === false ) {
|
58 |
-
$libraryoptions['addlinkcustomcat'] = 'hide';
|
59 |
-
} elseif ( $libraryoptions['addlinkcustomcat'] === true ) {
|
60 |
-
$libraryoptions['addlinkcustomcat'] = 'show';
|
61 |
-
}
|
62 |
-
|
63 |
-
if ( $libraryoptions['showaddlinkreciprocal'] === false ) {
|
64 |
-
$libraryoptions['showaddlinkreciprocal'] = 'hide';
|
65 |
-
} elseif ( $libraryoptions['showaddlinkreciprocal'] === true ) {
|
66 |
-
$libraryoptions['showaddlinkreciprocal'] = 'show';
|
67 |
-
}
|
68 |
-
|
69 |
-
if ( $libraryoptions['showaddlinksecondurl'] === false ) {
|
70 |
-
$libraryoptions['showaddlinksecondurl'] = 'hide';
|
71 |
-
} elseif ( $libraryoptions['showaddlinksecondurl'] === true ) {
|
72 |
-
$libraryoptions['showaddlinksecondurl'] = 'show';
|
73 |
-
}
|
74 |
-
|
75 |
-
if ( $libraryoptions['showaddlinktelephone'] === false ) {
|
76 |
-
$libraryoptions['showaddlinktelephone'] = 'hide';
|
77 |
-
} elseif ( $libraryoptions['showaddlinktelephone'] === true ) {
|
78 |
-
$libraryoptions['showaddlinktelephone'] = 'show';
|
79 |
-
}
|
80 |
-
|
81 |
-
if ( $libraryoptions['showaddlinkemail'] === false ) {
|
82 |
-
$libraryoptions['showaddlinkemail'] = 'hide';
|
83 |
-
} elseif ( $libraryoptions['showaddlinkemail'] === true ) {
|
84 |
-
$libraryoptions['showaddlinkemail'] = 'show';
|
85 |
-
}
|
86 |
-
|
87 |
-
if ( $libraryoptions['showlinksubmittername'] === false ) {
|
88 |
-
$libraryoptions['showlinksubmittername'] = 'hide';
|
89 |
-
} elseif ( $libraryoptions['showlinksubmittername'] === true ) {
|
90 |
-
$libraryoptions['showlinksubmittername'] = 'show';
|
91 |
-
}
|
92 |
-
|
93 |
-
if ( $libraryoptions['showaddlinksubmitteremail'] === false ) {
|
94 |
-
$libraryoptions['showaddlinksubmitteremail'] = 'hide';
|
95 |
-
} elseif ( $libraryoptions['showaddlinksubmitteremail'] === true ) {
|
96 |
-
$libraryoptions['showaddlinksubmitteremail'] = 'show';
|
97 |
-
}
|
98 |
-
|
99 |
-
if ( $libraryoptions['showlinksubmittercomment'] === false ) {
|
100 |
-
$libraryoptions['showlinksubmittercomment'] = 'hide';
|
101 |
-
} elseif ( $libraryoptions['showlinksubmittercomment'] === true ) {
|
102 |
-
$libraryoptions['showlinksubmittercomment'] = 'show';
|
103 |
-
}
|
104 |
-
|
105 |
-
if ( $libraryoptions['showcustomcaptcha'] === false ) {
|
106 |
-
$libraryoptions['showcustomcaptcha'] = 'hide';
|
107 |
-
} elseif ( $libraryoptions['showcustomcaptcha'] === true ) {
|
108 |
-
$libraryoptions['showcustomcaptcha'] = 'show';
|
109 |
-
}
|
110 |
-
|
111 |
-
if ( $libraryoptions['showuserlargedescription'] === false ) {
|
112 |
-
$libraryoptions['showuserlargedescription'] = 'hide';
|
113 |
-
} elseif ( $libraryoptions['showuserlargedescription'] === true ) {
|
114 |
-
$libraryoptions['showuserlargedescription'] = 'show';
|
115 |
-
}
|
116 |
-
|
117 |
-
/* This case will only happen if the user entered bad data in the admin page or if someone is trying to inject bad data in SQL query */
|
118 |
-
if ( ! empty( $categorylist ) ) {
|
119 |
-
$categorylistarray = explode( ',', $categorylist );
|
120 |
-
|
121 |
-
if ( true === array_filter( $categorylistarray, 'is_int' ) ) {
|
122 |
-
return 'List of requested categories is invalid. Please go back to Link Library admin panel to correct.';
|
123 |
-
}
|
124 |
-
}
|
125 |
-
|
126 |
-
if ( ! empty( $excludecategorylist ) ) {
|
127 |
-
$excludecategorylistarray = explode( ',', $excludecategorylist );
|
128 |
-
|
129 |
-
if ( true === array_filter( $excludecategorylistarray, 'is_int' ) ) {
|
130 |
-
return 'List of requested excluded categories is invalid. Please go back to Link Library admin panel to correct.';
|
131 |
-
}
|
132 |
-
}
|
133 |
-
|
134 |
-
if ( 'link-library-addlink' == $code || 'addlink-link-library' == $code || 'link-library-addlinkcustommsg' == $code || 'addlinkcustommsg-link-library' == $code ) {
|
135 |
-
if ( isset( $_GET['addlinkmessage'] ) ) {
|
136 |
-
if ( 1 == $_GET['addlinkmessage'] ) {
|
137 |
-
$output .= '<div class="llmessage">' . __( 'Confirm code not given', 'link-library' ) . '.</div>';
|
138 |
-
} elseif ( 2 == $_GET['addlinkmessage'] ) {
|
139 |
-
$output .= '<div class="llmessage">' . __( 'Captcha code is wrong', 'link-library' ) . '.</div>';
|
140 |
-
} elseif ( 3 == $_GET['addlinkmessage'] ) {
|
141 |
-
$output .= '<div class="llmessage">' . __( 'Captcha code is only valid for 5 minutes', 'link-library' ) . '.</div>';
|
142 |
-
} elseif ( 4 == $_GET['addlinkmessage'] ) {
|
143 |
-
$output .= '<div class="llmessage">' . __( 'No captcha cookie given. Make sure cookies are enabled', 'link-library' ) . '.</div>';
|
144 |
-
} elseif ( 5 == $_GET['addlinkmessage'] ) {
|
145 |
-
$output .= '<div class="llmessage">' . __( 'Captcha answer was not provided.', 'link-library' ) . '</div>';
|
146 |
-
} elseif ( 6 == $_GET['addlinkmessage'] ) {
|
147 |
-
$output .= '<div class="llmessage">' . __( 'Captcha answer is incorrect', 'link-library' ) . '.</div>';
|
148 |
-
} elseif ( 7 == $_GET['addlinkmessage'] ) {
|
149 |
-
$output .= '<div class="llmessage">' . __( 'User Category was not provided correctly. Link insertion failed.', 'link-library' ) . '</div>';
|
150 |
-
} elseif ( 8 == $_GET['addlinkmessage'] ) {
|
151 |
-
$output .= '<div class="llmessage">' . $newlinkmsg;
|
152 |
-
if ( ! $showuserlinks ) {
|
153 |
-
$output .= ' ' . $moderatemsg;
|
154 |
}
|
155 |
-
$output .= '
|
156 |
-
} elseif ( 9 == $_GET['addlinkmessage'] ) {
|
157 |
-
$output .= '<div class="llmessage">' . __( 'Error: Link does not have an address.', 'link-library' ) . '</div>';
|
158 |
-
} elseif ( 10 == $_GET['addlinkmessage'] ) {
|
159 |
-
$output .= '<div class="llmessage">' . __( 'Error: Link already exists.', 'link-library' ) . '</div>';
|
160 |
-
} elseif ( 11 == $_GET['addlinkmessage'] ) {
|
161 |
-
$output .= '<div class="llmessage">' . $libraryoptions['linkrsslabel'] . __( ' is a required field', 'link-library' ) . '</div>';
|
162 |
-
} elseif ( 12 == $_GET['addlinkmessage'] ) {
|
163 |
-
$output .= '<div class="llmessage">' . $libraryoptions['linkdesclabel'] . __( ' is a required field', 'link-library' ) . '</div>';
|
164 |
-
} elseif ( 13 == $_GET['addlinkmessage'] ) {
|
165 |
-
$output .= '<div class="llmessage">' . $libraryoptions['linknoteslabel'] . __( ' is a required field', 'link-library' ) . '</div>';
|
166 |
-
} elseif ( 14 == $_GET['addlinkmessage'] ) {
|
167 |
-
$output .= '<div class="llmessage">' . $libraryoptions['linkreciprocallabel'] . __( ' is a required field', 'link-library' ) . '</div>';
|
168 |
-
} elseif ( 15 == $_GET['addlinkmessage'] ) {
|
169 |
-
$output .= '<div class="llmessage">' . $libraryoptions['linksecondurllabel'] . __( ' is a required field', 'link-library' ) . '</div>';
|
170 |
-
} elseif ( 16 == $_GET['addlinkmessage'] ) {
|
171 |
-
$output .= '<div class="llmessage">' . $libraryoptions['linktelephonelabel'] . __( ' is a required field', 'link-library' ) . '</div>';
|
172 |
-
} elseif ( 17 == $_GET['addlinkmessage'] ) {
|
173 |
-
$output .= '<div class="llmessage">' . $libraryoptions['linkemaillabel'] . __( ' is a required field', 'link-library' ) . '</div>';
|
174 |
-
} elseif ( 18 == $_GET['addlinkmessage'] ) {
|
175 |
-
$output .= '<div class="llmessage">' . $libraryoptions['linksubmitternamelabel'] . __( ' is a required field', 'link-library' ) . '</div>';
|
176 |
-
} elseif ( 19 == $_GET['addlinkmessage'] ) {
|
177 |
-
$output .= '<div class="llmessage">' . $libraryoptions['linksubmitteremaillabel'] . __( ' is a required field', 'link-library' ) . '</div>';
|
178 |
-
} elseif ( 20 == $_GET['addlinkmessage'] ) {
|
179 |
-
$output .= '<div class="llmessage">' . $libraryoptions['linksubmittercommentlabel'] . __( ' is a required field', 'link-library' ) . '</div>';
|
180 |
-
} elseif ( 21 == $_GET['addlinkmessage'] ) {
|
181 |
-
$output .= '<div class="llmessage">' . $libraryoptions['linklargedesclabel'] . __( ' is a required field', 'link-library' ) . '</div>';
|
182 |
-
} elseif ( 22 == $_GET['addlinkmessage'] ) {
|
183 |
-
$output .= '<div class="llmessage">' . __( 'Link submission error', 'link-library' ) . '</div>';
|
184 |
-
} elseif ( 23 == $_GET['addlinkmessage'] ) {
|
185 |
-
$output .= '<div class="llmessage">' . __( 'Link rejected. There is already a site with this reciprocal link.', 'link-library' ) . '</div>';
|
186 |
}
|
187 |
-
|
188 |
-
}
|
189 |
-
|
190 |
-
if ( ( 'link-library-addlink' == $code || 'addlink-link-library' == $code ) && ( ( $addlinkreqlogin && current_user_can( 'read' ) ) || ! $addlinkreqlogin ) ) {
|
191 |
-
$output .= '<form method="post" id="lladdlink" action="">';
|
192 |
-
|
193 |
-
$output .= wp_nonce_field( 'LL_ADDLINK_FORM', '_wpnonce', true, false );
|
194 |
-
$output .= '<input type="hidden" name="thankyouurl" value="' . $linksubmissionthankyouurl . '" />';
|
195 |
-
$output .= '<input type="hidden" name="link_library_user_link_submission" value="1" />';
|
196 |
-
|
197 |
-
global $wp_query;
|
198 |
-
$thePostID = $wp_query->post->ID;
|
199 |
-
$output .= '<input type="hidden" name="pageid" value="' . $thePostID . '" />';
|
200 |
-
$output .= '<input type="hidden" name="settingsid" value="' . $settings . '" />';
|
201 |
-
|
202 |
-
$xpath = $LLPluginClass->relativePath( dirname( __FILE__ ), ABSPATH );
|
203 |
-
$output .= '<input type="hidden" name="xpath" value="' . esc_attr( $xpath ) . '" />';
|
204 |
-
unset( $xpath );
|
205 |
-
|
206 |
-
$output .= "<div class='lladdlink'>\n";
|
207 |
|
208 |
-
|
209 |
-
|
210 |
-
}
|
211 |
-
|
212 |
-
$output .= '<div id="lladdlinktitle">' . $addnewlinkmsg . "</div>\n";
|
213 |
-
|
214 |
-
$output .= "<table>\n";
|
215 |
-
|
216 |
-
if ( empty( $linknamelabel ) ) {
|
217 |
-
$linknamelabel = __( 'Link name', 'link-library' );
|
218 |
-
}
|
219 |
-
|
220 |
-
$output .= '<tr><th>' . $linknamelabel . '</th><td><input data-validation="required length" data-validation-length="max255" data-validation-error-msg-required="' . __( 'Required field', 'link-library' ) . '" type="text" name="link_name" id="link_name" value="' . ( isset( $_GET['addlinkname'] ) ? esc_html( stripslashes( $_GET['addlinkname'] ), '1' ) : '' ) . "\" /></td></tr>\n";
|
221 |
-
|
222 |
-
if ( empty( $linkaddrlabel ) ) {
|
223 |
-
$linkaddrlabel = __( 'Link address', 'link-library' );
|
224 |
-
}
|
225 |
-
|
226 |
-
$output .= '<tr><th>' . $linkaddrlabel . '</th><td><input ';
|
227 |
-
if ( ! $addlinknoaddress ) {
|
228 |
-
$output .= 'data-validation="required url length" data-validation-length="max255" data-validation-error-msg-required="' . __( 'Required field, URL', 'link-library' ) . '" ';
|
229 |
-
}
|
230 |
-
|
231 |
-
$output .= 'type="text" name="link_url" id="link_url" value="' . ( isset( $_GET['addlinkurl'] ) ? esc_html( stripslashes( $_GET['addlinkurl'] ), '1' ) : 'http://' ) . "\" /></td></tr>\n";
|
232 |
-
|
233 |
-
if ( 'show' == $showaddlinkrss || 'required' == $showaddlinkrss ) {
|
234 |
-
if ( empty( $linkrsslabel ) ) {
|
235 |
-
$linkrsslabel = __( 'Link RSS', 'link-library' );
|
236 |
-
}
|
237 |
-
|
238 |
-
$output .= '<tr><th>' . $linkrsslabel . '</th><td><input ';
|
239 |
-
|
240 |
-
if ( 'required' == $showaddlinkrss ) {
|
241 |
-
$requiredtext = ' required';
|
242 |
-
} else {
|
243 |
-
$requiredtext = '';
|
244 |
}
|
245 |
|
246 |
-
$output .= 'data-validation="length' . $requiredtext . '" data-validation-length="max255" data-validation-error-msg-required="' . __( 'Required field, 1-255 chars', 'link-library' ) . '" ';
|
247 |
-
|
248 |
-
$output .= ' type="text" name="link_rss" id="link_rss" value="' . ( isset( $_GET['addlinkrss'] ) ? esc_html( stripslashes( $_GET['addlinkrss'] ), '1' ) : '' ) . "\" /></td></tr>\n";
|
249 |
}
|
250 |
|
251 |
-
|
252 |
-
|
253 |
-
$linkcatquery .= 'LEFT JOIN ' . $LLPluginClass->db_prefix() . 'term_taxonomy tt ON (t.term_id = tt.term_id) ';
|
254 |
-
$linkcatquery .= 'LEFT JOIN ' . $LLPluginClass->db_prefix() . 'term_relationships tr ON (tt.term_taxonomy_id = tr.term_taxonomy_id) ';
|
255 |
-
|
256 |
-
$linkcatquery .= 'WHERE tt.taxonomy = "link_category" ';
|
257 |
-
|
258 |
-
if ( ! empty( $categorylist ) ) {
|
259 |
-
$linkcatquery .= ' AND t.term_id in (' . $categorylist . ')';
|
260 |
-
}
|
261 |
-
|
262 |
-
if ( ! empty( $excludecategorylist ) ) {
|
263 |
-
$linkcatquery .= ' AND t.term_id not in (' . $excludecategorylist . ')';
|
264 |
-
}
|
265 |
-
|
266 |
-
$linkcatquery .= ' ORDER by t.name ASC';
|
267 |
-
|
268 |
-
$linkcats = $wpdb->get_results( $linkcatquery );
|
269 |
-
|
270 |
-
if ( $debugmode ) {
|
271 |
-
$output .= "\n<!-- Category query for add link form:" . print_r( $linkcatquery, true ) . "-->\n\n";
|
272 |
-
$output .= "\n<!-- Results of Category query for add link form:" . print_r( $linkcats, true ) . "-->\n";
|
273 |
-
}
|
274 |
-
|
275 |
-
if ( $linkcats ) {
|
276 |
-
if ( 'show' == $showaddlinkcat || 'required' == $showaddlinkcat ) {
|
277 |
-
if ( empty( $linkcatlabel ) ) {
|
278 |
-
$linkcatlabel = __( 'Link category', 'link-library' );
|
279 |
-
}
|
280 |
-
|
281 |
-
$output .= '<tr><th>' . $linkcatlabel . '</th><td>';
|
282 |
-
$output .= '<SELECT data-validation="required" data-validation-error-msg-required="' . __( 'Required field', 'link-library' ) . '" name="link_category" id="link_category">';
|
283 |
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
if ( empty( $linkcustomcatlistentry ) ) {
|
289 |
-
$linkcustomcatlistentry = __( 'User-submitted category (define below)', 'link-library' );
|
290 |
-
}
|
291 |
-
|
292 |
-
foreach ( $linkcats as $linkcat ) {
|
293 |
-
$output .= '<OPTION VALUE="' . $linkcat->term_id . '" ';
|
294 |
-
if ( isset( $_GET['addlinkcat'] ) && $_GET['addlinkcat'] == $linkcat->term_id ) {
|
295 |
-
$output .= "selected";
|
296 |
-
} elseif ( 'nodefaultcat' != $addlinkdefaultcat && $linkcat->term_id == intval( $addlinkdefaultcat ) ) {
|
297 |
-
$output .= "selected";
|
298 |
-
}
|
299 |
-
$output .= '>' . $linkcat->name;
|
300 |
-
}
|
301 |
-
|
302 |
-
if ( 'show' == $addlinkcustomcat ) {
|
303 |
-
$output .= '<OPTION VALUE="new">' . stripslashes( $linkcustomcatlistentry ) . "\n";
|
304 |
-
}
|
305 |
-
|
306 |
-
$output .= "</SELECT></td></tr>\n";
|
307 |
-
} else {
|
308 |
-
$output .= '<input type="hidden" name="link_category" id="link_category" value="';
|
309 |
-
if ( 'nodefaultcat' == $addlinkdefaultcat ) {
|
310 |
-
$output .= $linkcats[0]->term_id;
|
311 |
-
} else {
|
312 |
-
$output .= intval( $addlinkdefaultcat );
|
313 |
-
}
|
314 |
-
$output .= '">';
|
315 |
}
|
316 |
|
317 |
-
|
318 |
-
|
319 |
-
}
|
320 |
-
}
|
321 |
|
322 |
-
|
323 |
-
|
324 |
-
$linkdesclabel = __( 'Link description', 'link-library' );
|
325 |
}
|
|
|
326 |
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
$requiredtext = ' required';
|
331 |
} else {
|
332 |
-
$
|
333 |
}
|
334 |
|
335 |
-
|
336 |
-
|
337 |
-
$output .= ' type="text" name="link_description" id="link_description" value="' . ( isset( $_GET['addlinkdesc'] ) ? esc_html( stripslashes( $_GET['addlinkdesc'] ), '1' ) : '' ) . "\" /></td></tr>\n";
|
338 |
-
}
|
339 |
-
|
340 |
-
if ( 'show' == $showuserlargedescription || 'required' == $showuserlargedescription ) {
|
341 |
-
if ( empty( $linklargedesclabel ) ) {
|
342 |
-
$linklargedesclabel = __( 'Large description', 'link-library' );
|
343 |
}
|
344 |
|
345 |
-
$output .= '
|
346 |
-
|
347 |
-
if ( 'required' == $showuserlargedescription ) {
|
348 |
-
$output .= 'data-validation="required" data-validation-error-msg-required="' . __( 'Required field', 'link-library' ) . '" ';
|
349 |
-
}
|
350 |
-
|
351 |
-
$output .= ' name="link_textfield" id="link_textfield" cols="66">' . ( isset( $_GET['addlinktextfield'] ) ? esc_html( stripslashes( $_GET['addlinktextfield'] ), '1' ) : '' ) . "</textarea></td></tr>\n";
|
352 |
}
|
353 |
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
}
|
358 |
-
|
359 |
-
$output .= '<tr><th>' . $linknoteslabel . '</th><td>';
|
360 |
-
|
361 |
-
if ( ! $usetextareaforusersubmitnotes || empty( $usetextareaforusersubmitnotes ) ) {
|
362 |
-
$output .= '<input ';
|
363 |
|
364 |
-
|
365 |
-
|
366 |
-
}
|
367 |
|
368 |
-
|
369 |
-
} elseif ( $usetextareaforusersubmitnotes ) {
|
370 |
-
$output .= '<textarea ';
|
371 |
|
372 |
-
|
373 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
374 |
}
|
375 |
-
|
376 |
-
$output .= 'name="link_notes" id="link_notes">';
|
377 |
-
}
|
378 |
-
|
379 |
-
$output .= ( isset( $_GET['addlinknotes'] ) ? esc_html( stripslashes( $_GET['addlinknotes'] ), '1' ) : '' );
|
380 |
-
|
381 |
-
if ( ! $usetextareaforusersubmitnotes || empty( $usetextareaforusersubmitnotes ) ) {
|
382 |
-
$output .= '" />';
|
383 |
-
} elseif ( $usetextareaforusersubmitnotes ) {
|
384 |
-
$output .= '</textarea>';
|
385 |
-
}
|
386 |
-
|
387 |
-
$output .= "</td></tr>\n";
|
388 |
-
}
|
389 |
-
|
390 |
-
if ( 'show' == $showaddlinkreciprocal || 'required' == $showaddlinkreciprocal ) {
|
391 |
-
if ( empty( $linkreciprocallabel ) ) {
|
392 |
-
$linkreciprocallabel = __( 'Reciprocal Link', 'link-library' );
|
393 |
-
}
|
394 |
-
|
395 |
-
$output .= '<tr><th>' . $linkreciprocallabel . '</th><td><input ';
|
396 |
-
|
397 |
-
if ( 'required' == $showaddlinkrss ) {
|
398 |
-
$requiredtext = ' required';
|
399 |
-
} else {
|
400 |
-
$requiredtext = '';
|
401 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
402 |
|
403 |
-
|
404 |
|
405 |
-
|
406 |
-
|
407 |
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
|
413 |
-
|
414 |
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
$requiredtext = '';
|
419 |
-
}
|
420 |
|
421 |
-
|
|
|
422 |
|
423 |
-
|
424 |
-
|
|
|
|
|
425 |
|
426 |
-
|
427 |
-
if ( empty( $linktelephonelabel ) ) {
|
428 |
-
$linktelephonelabel = __( 'Telephone', 'link-library' );
|
429 |
-
}
|
430 |
|
431 |
-
|
|
|
432 |
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
$requiredtext = '';
|
437 |
-
}
|
438 |
|
439 |
-
|
|
|
|
|
440 |
|
441 |
-
|
442 |
-
|
|
|
443 |
|
444 |
-
|
445 |
-
|
446 |
-
$linkemaillabel = __( 'E-mail', 'link-library' );
|
447 |
-
}
|
448 |
|
449 |
-
|
450 |
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
|
457 |
-
|
|
|
458 |
|
459 |
-
|
460 |
-
|
|
|
|
|
461 |
|
462 |
-
|
463 |
-
if ( empty( $linksubmitternamelabel ) ) {
|
464 |
-
$linksubmitternamelabel = __( 'Submitter Name', 'link-library' );
|
465 |
-
}
|
466 |
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
$name_field_value = $user_data->display_name;
|
473 |
-
}
|
474 |
|
475 |
-
|
476 |
|
477 |
-
|
478 |
-
|
479 |
-
}
|
480 |
-
$output .= '><th>' . $linksubmitternamelabel . '</th><td><input ';
|
481 |
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
}
|
487 |
|
488 |
-
|
489 |
|
490 |
-
|
491 |
-
|
|
|
|
|
|
|
492 |
|
493 |
-
|
494 |
-
if ( empty( $linksubmitteremaillabel ) ) {
|
495 |
-
$linksubmitteremaillabel = __( 'Submitter E-mail', 'link-library' );
|
496 |
-
}
|
497 |
|
498 |
-
|
499 |
-
|
500 |
-
$email_field_value = esc_html( stripslashes( $_GET['ll_submitteremail'] ) );
|
501 |
-
} elseif ( is_user_logged_in() ) {
|
502 |
-
$user_data = wp_get_current_user();
|
503 |
-
$email_field_value = $user_data->user_email;
|
504 |
-
}
|
505 |
|
506 |
-
|
|
|
|
|
|
|
507 |
|
508 |
-
|
509 |
-
$output .= ' style="display:none"';
|
510 |
-
}
|
511 |
-
$output .= '><th>' . $linksubmitteremaillabel . '</th><td><input ';
|
512 |
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
|
519 |
-
|
520 |
|
521 |
-
|
522 |
-
|
523 |
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
|
529 |
-
|
530 |
|
531 |
-
|
532 |
-
|
533 |
-
|
|
|
|
|
534 |
|
535 |
-
|
536 |
-
}
|
537 |
|
538 |
-
|
539 |
-
|
540 |
-
}
|
541 |
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
|
547 |
-
|
548 |
-
|
|
|
|
|
|
|
|
|
|
|
549 |
|
550 |
-
|
551 |
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
622 |
}
|
623 |
|
624 |
function link_library_generate_captcha() {
|
@@ -632,7 +770,7 @@ function link_library_generate_captcha() {
|
|
632 |
$captcha = '<tr><td></td><td><div class="g-recaptcha" data-sitekey="' . $generaloptions['recaptchasitekey'] . '"></div></td></tr>';
|
633 |
}
|
634 |
|
635 |
-
|
636 |
}
|
637 |
|
638 |
add_filter( 'link_library_generate_captcha', 'link_library_generate_captcha' );
|
14 |
* @param $libraryoptions Selected library settings array
|
15 |
* @param $settings Settings ID
|
16 |
* @param $code Shortcode used in text that called this function
|
|
|
17 |
* @return List of categories output for browser
|
18 |
*/
|
19 |
|
20 |
+
function addlink_render_category_list( $categories, $select_name, $depth, $order, $libraryoptions ) {
|
21 |
|
|
|
|
|
22 |
$output = '';
|
23 |
+
if ( !empty( $categories ) ) {
|
24 |
+
if ( 0 == $depth ) {
|
25 |
+
$output .= '<select data-validation="required" data-validation-error-msg-required="' . __( 'Required field', 'link-library' ) . '" ';
|
26 |
+
$output .= ' id="' . $select_name . '" name="' . $select_name . '[]" ';
|
27 |
+
if ( 'selectmultiple' == $libraryoptions['showaddlinkcat'] ) {
|
28 |
+
$number_of_categories = sizeof( $categories );
|
29 |
+
if ( $libraryoptions['addlinkcustomcat'] ) {
|
30 |
+
$number_of_categories++;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
}
|
32 |
+
$output .= 'multiple size="' . ( $number_of_categories < 10 ? $number_of_categories : 10 ) . '" style="height: auto"';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
}
|
34 |
+
$output .= '>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
+
if ( 'nodefaultcat' == $libraryoptions['addlinkdefaultcat'] && 'show' == $libraryoptions['showaddlinkcat'] ) {
|
37 |
+
$output .= '<option value="">' . __( 'Select a category', 'link-category' ) . '</option>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
}
|
39 |
|
|
|
|
|
|
|
40 |
}
|
41 |
|
42 |
+
foreach ( $categories as $category ) {
|
43 |
+
$output .= '<option value="' . $category->term_id . ' ';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
+
if ( isset( $_GET['addlinkcat'] ) && in_array( $category->term_id, $_GET['addlinkcat'] ) ) {
|
46 |
+
$output .= "selected";
|
47 |
+
} elseif ( 'nodefaultcat' != $libraryoptions['addlinkdefaultcat'] && $category->term_id == intval( $libraryoptions['addlinkdefaultcat'] ) ) {
|
48 |
+
$output .= "selected";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
}
|
50 |
|
51 |
+
$output .= '">' . str_repeat( ' ', 4 * $depth ) . $category->name . '</option>';
|
52 |
+
$child_categories = get_terms( 'link_library_category', array( 'orderby' => 'name', 'parent' => $category->term_id, 'order' => $order, 'hide_empty' => false ) );
|
|
|
|
|
53 |
|
54 |
+
if ( !empty( $child_categories ) ) {
|
55 |
+
$output .= addlink_render_category_list( $child_categories, $select_name, $depth + 1, $order, $libraryoptions );
|
|
|
56 |
}
|
57 |
+
}
|
58 |
|
59 |
+
if ( 0 == $depth ) {
|
60 |
+
if ( empty( $libraryoptions['linkcustomcatlistentry'] ) ) {
|
61 |
+
$linkcustomcatlistentry = __( 'User-submitted category (define below)', 'link-library' );
|
|
|
62 |
} else {
|
63 |
+
$linkcustomcatlistentry = $libraryoptions['linkcustomcatlistentry'];
|
64 |
}
|
65 |
|
66 |
+
if ( 'show' == $libraryoptions['addlinkcustomcat'] ) {
|
67 |
+
$output .= '<OPTION VALUE="new">' . stripslashes( $linkcustomcatlistentry ) . "\n";
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
}
|
69 |
|
70 |
+
$output .= '</select>';
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
}
|
72 |
|
73 |
+
} else {
|
74 |
+
$output .= _e( 'No link categories! Create some!', 'link-library' );
|
75 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
|
77 |
+
return $output;
|
78 |
+
}
|
|
|
79 |
|
80 |
+
function RenderLinkLibraryAddLinkForm( $LLPluginClass, $generaloptions, $libraryoptions, $settings, $code ) {
|
|
|
|
|
81 |
|
82 |
+
wp_enqueue_script( 'form-validator' );
|
83 |
+
$output = '';
|
84 |
+
|
85 |
+
$generaloptions = wp_parse_args( $generaloptions, ll_reset_gen_settings( 'return' ) );
|
86 |
+
extract( $generaloptions );
|
87 |
+
|
88 |
+
$libraryoptions = wp_parse_args( $libraryoptions, ll_reset_options( 1, 'list', 'return' ) );
|
89 |
+
extract( $libraryoptions );
|
90 |
+
|
91 |
+
if ( $libraryoptions['showaddlinkrss'] === false ) {
|
92 |
+
$libraryoptions['showaddlinkrss'] = 'hide';
|
93 |
+
} elseif ( $libraryoptions['showaddlinkrss'] === true ) {
|
94 |
+
$libraryoptions['showaddlinkrss'] = 'show';
|
95 |
+
}
|
96 |
+
|
97 |
+
if ( $libraryoptions['showaddlinkdesc'] === false ) {
|
98 |
+
$libraryoptions['showaddlinkdesc'] = 'hide';
|
99 |
+
} elseif ( $libraryoptions['showaddlinkdesc'] === true ) {
|
100 |
+
$libraryoptions['showaddlinkdesc'] = 'show';
|
101 |
+
}
|
102 |
+
|
103 |
+
if ( $libraryoptions['showaddlinkcat'] === false ) {
|
104 |
+
$libraryoptions['showaddlinkcat'] = 'hide';
|
105 |
+
} elseif ( $libraryoptions['showaddlinkcat'] === true ) {
|
106 |
+
$libraryoptions['showaddlinkcat'] = 'show';
|
107 |
+
}
|
108 |
+
|
109 |
+
if ( $libraryoptions['showaddlinknotes'] === false ) {
|
110 |
+
$libraryoptions['showaddlinknotes'] = 'hide';
|
111 |
+
} elseif ( $libraryoptions['showaddlinknotes'] === true ) {
|
112 |
+
$libraryoptions['showaddlinknotes'] = 'show';
|
113 |
+
}
|
114 |
+
|
115 |
+
if ( $libraryoptions['addlinkcustomcat'] === false ) {
|
116 |
+
$libraryoptions['addlinkcustomcat'] = 'hide';
|
117 |
+
} elseif ( $libraryoptions['addlinkcustomcat'] === true ) {
|
118 |
+
$libraryoptions['addlinkcustomcat'] = 'show';
|
119 |
+
}
|
120 |
+
|
121 |
+
if ( $libraryoptions['showaddlinkreciprocal'] === false ) {
|
122 |
+
$libraryoptions['showaddlinkreciprocal'] = 'hide';
|
123 |
+
} elseif ( $libraryoptions['showaddlinkreciprocal'] === true ) {
|
124 |
+
$libraryoptions['showaddlinkreciprocal'] = 'show';
|
125 |
+
}
|
126 |
+
|
127 |
+
if ( $libraryoptions['showaddlinksecondurl'] === false ) {
|
128 |
+
$libraryoptions['showaddlinksecondurl'] = 'hide';
|
129 |
+
} elseif ( $libraryoptions['showaddlinksecondurl'] === true ) {
|
130 |
+
$libraryoptions['showaddlinksecondurl'] = 'show';
|
131 |
+
}
|
132 |
+
|
133 |
+
if ( $libraryoptions['showaddlinktelephone'] === false ) {
|
134 |
+
$libraryoptions['showaddlinktelephone'] = 'hide';
|
135 |
+
} elseif ( $libraryoptions['showaddlinktelephone'] === true ) {
|
136 |
+
$libraryoptions['showaddlinktelephone'] = 'show';
|
137 |
+
}
|
138 |
+
|
139 |
+
if ( $libraryoptions['showaddlinkemail'] === false ) {
|
140 |
+
$libraryoptions['showaddlinkemail'] = 'hide';
|
141 |
+
} elseif ( $libraryoptions['showaddlinkemail'] === true ) {
|
142 |
+
$libraryoptions['showaddlinkemail'] = 'show';
|
143 |
+
}
|
144 |
+
|
145 |
+
if ( $libraryoptions['showlinksubmittername'] === false ) {
|
146 |
+
$libraryoptions['showlinksubmittername'] = 'hide';
|
147 |
+
} elseif ( $libraryoptions['showlinksubmittername'] === true ) {
|
148 |
+
$libraryoptions['showlinksubmittername'] = 'show';
|
149 |
+
}
|
150 |
+
|
151 |
+
if ( $libraryoptions['showaddlinksubmitteremail'] === false ) {
|
152 |
+
$libraryoptions['showaddlinksubmitteremail'] = 'hide';
|
153 |
+
} elseif ( $libraryoptions['showaddlinksubmitteremail'] === true ) {
|
154 |
+
$libraryoptions['showaddlinksubmitteremail'] = 'show';
|
155 |
+
}
|
156 |
+
|
157 |
+
if ( $libraryoptions['showlinksubmittercomment'] === false ) {
|
158 |
+
$libraryoptions['showlinksubmittercomment'] = 'hide';
|
159 |
+
} elseif ( $libraryoptions['showlinksubmittercomment'] === true ) {
|
160 |
+
$libraryoptions['showlinksubmittercomment'] = 'show';
|
161 |
+
}
|
162 |
+
|
163 |
+
if ( $libraryoptions['showcustomcaptcha'] === false ) {
|
164 |
+
$libraryoptions['showcustomcaptcha'] = 'hide';
|
165 |
+
} elseif ( $libraryoptions['showcustomcaptcha'] === true ) {
|
166 |
+
$libraryoptions['showcustomcaptcha'] = 'show';
|
167 |
+
}
|
168 |
+
|
169 |
+
if ( $libraryoptions['showuserlargedescription'] === false ) {
|
170 |
+
$libraryoptions['showuserlargedescription'] = 'hide';
|
171 |
+
} elseif ( $libraryoptions['showuserlargedescription'] === true ) {
|
172 |
+
$libraryoptions['showuserlargedescription'] = 'show';
|
173 |
+
}
|
174 |
+
|
175 |
+
/* This case will only happen if the user entered bad data in the admin page or if someone is trying to inject bad data in SQL query */
|
176 |
+
if ( !empty( $categorylist ) ) {
|
177 |
+
$categorylistarray = explode( ',', $categorylist );
|
178 |
+
|
179 |
+
if ( true === array_filter( $categorylistarray, 'is_int' ) ) {
|
180 |
+
return 'List of requested categories is invalid. Please go back to Link Library admin panel to correct.';
|
181 |
+
}
|
182 |
+
}
|
183 |
+
|
184 |
+
if ( !empty( $excludecategorylist ) ) {
|
185 |
+
$excludecategorylistarray = explode( ',', $excludecategorylist );
|
186 |
+
|
187 |
+
if ( true === array_filter( $excludecategorylistarray, 'is_int' ) ) {
|
188 |
+
return 'List of requested excluded categories is invalid. Please go back to Link Library admin panel to correct.';
|
189 |
+
}
|
190 |
+
}
|
191 |
+
|
192 |
+
if ( 'link-library-addlink' == $code || 'addlink-link-library' == $code || 'link-library-addlinkcustommsg' == $code || 'addlinkcustommsg-link-library' == $code ) {
|
193 |
+
if ( isset( $_GET['addlinkmessage'] ) ) {
|
194 |
+
if ( 1 == $_GET['addlinkmessage'] ) {
|
195 |
+
$output .= '<div class="llmessage">' . __('Confirm code not given', 'link-library') . '.</div>';
|
196 |
+
} elseif ( 2 == $_GET['addlinkmessage'] ) {
|
197 |
+
$output .= '<div class="llmessage">' . __('Captcha code is wrong', 'link-library') . '.</div>';
|
198 |
+
} elseif ( 3 == $_GET['addlinkmessage'] ) {
|
199 |
+
$output .= '<div class="llmessage">' . __('Captcha code is only valid for 5 minutes', 'link-library') . '.</div>';
|
200 |
+
} elseif ( 4 == $_GET['addlinkmessage'] ) {
|
201 |
+
$output .= '<div class="llmessage">' . __('No captcha cookie given. Make sure cookies are enabled', 'link-library') . '.</div>';
|
202 |
+
} elseif ( 5 == $_GET['addlinkmessage'] ) {
|
203 |
+
$output .= '<div class="llmessage">' . __('Captcha answer was not provided.', 'link-library') . '</div>';
|
204 |
+
} elseif ( 6 == $_GET['addlinkmessage'] ) {
|
205 |
+
$output .= '<div class="llmessage">' . __('Captcha answer is incorrect', 'link-library') . '.</div>';
|
206 |
+
} elseif ( 7 == $_GET['addlinkmessage'] ) {
|
207 |
+
$output .= '<div class="llmessage">' . __('User Category was not provided correctly. Link insertion failed.', 'link-library') . '</div>';
|
208 |
+
} elseif ( 8 == $_GET['addlinkmessage'] ) {
|
209 |
+
$output .= '<div class="llmessage">' . $newlinkmsg;
|
210 |
+
if ( !$showuserlinks ) {
|
211 |
+
$output .= ' ' . $moderatemsg;
|
212 |
+
}
|
213 |
+
$output .= '</div>';
|
214 |
+
} elseif ( 9 == $_GET['addlinkmessage'] ) {
|
215 |
+
$output .= '<div class="llmessage">' . __('Error: Link does not have an address.', 'link-library') . '</div>';
|
216 |
+
} elseif ( 10 == $_GET['addlinkmessage'] ) {
|
217 |
+
$output .= '<div class="llmessage">' . __('Error: Link already exists.', 'link-library') . '</div>';
|
218 |
+
} elseif ( 11 == $_GET['addlinkmessage'] ) {
|
219 |
+
$output .= '<div class="llmessage">' . $libraryoptions['linkrsslabel'] . __(' is a required field', 'link-library') . '</div>';
|
220 |
+
} elseif ( 12 == $_GET['addlinkmessage'] ) {
|
221 |
+
$output .= '<div class="llmessage">' . $libraryoptions['linkdesclabel'] . __(' is a required field', 'link-library') . '</div>';
|
222 |
+
} elseif ( 13 == $_GET['addlinkmessage'] ) {
|
223 |
+
$output .= '<div class="llmessage">' . $libraryoptions['linknoteslabel'] . __(' is a required field', 'link-library') . '</div>';
|
224 |
+
} elseif ( 14 == $_GET['addlinkmessage'] ) {
|
225 |
+
$output .= '<div class="llmessage">' . $libraryoptions['linkreciprocallabel'] . __(' is a required field', 'link-library') . '</div>';
|
226 |
+
} elseif ( 15 == $_GET['addlinkmessage'] ) {
|
227 |
+
$output .= '<div class="llmessage">' . $libraryoptions['linksecondurllabel'] . __(' is a required field', 'link-library') . '</div>';
|
228 |
+
} elseif ( 16 == $_GET['addlinkmessage'] ) {
|
229 |
+
$output .= '<div class="llmessage">' . $libraryoptions['linktelephonelabel'] . __(' is a required field', 'link-library') . '</div>';
|
230 |
+
} elseif ( 17 == $_GET['addlinkmessage'] ) {
|
231 |
+
$output .= '<div class="llmessage">' . $libraryoptions['linkemaillabel'] . __(' is a required field', 'link-library') . '</div>';
|
232 |
+
} elseif ( 18 == $_GET['addlinkmessage'] ) {
|
233 |
+
$output .= '<div class="llmessage">' . $libraryoptions['linksubmitternamelabel'] . __(' is a required field', 'link-library') . '</div>';
|
234 |
+
} elseif ( 19 == $_GET['addlinkmessage'] ) {
|
235 |
+
$output .= '<div class="llmessage">' . $libraryoptions['linksubmitteremaillabel'] . __(' is a required field', 'link-library') . '</div>';
|
236 |
+
} elseif ( 20 == $_GET['addlinkmessage'] ) {
|
237 |
+
$output .= '<div class="llmessage">' . $libraryoptions['linksubmittercommentlabel'] . __(' is a required field', 'link-library') . '</div>';
|
238 |
+
} elseif ( 21 == $_GET['addlinkmessage'] ) {
|
239 |
+
$output .= '<div class="llmessage">' . $libraryoptions['linklargedesclabel'] . __(' is a required field', 'link-library') . '</div>';
|
240 |
+
} elseif ( 22 == $_GET['addlinkmessage'] ) {
|
241 |
+
$output .= '<div class="llmessage">' . __('Link submission error', 'link-library') . '</div>';
|
242 |
+
} elseif ( 23 == $_GET['addlinkmessage'] ) {
|
243 |
+
$output .= '<div class="llmessage">' . __('Link rejected. There is already a site with this reciprocal link.', 'link-library') . '</div>';
|
244 |
+
}
|
245 |
+
}
|
246 |
+
}
|
247 |
+
|
248 |
+
if ( ( 'link-library-addlink' == $code || 'addlink-link-library' == $code ) && ( ( $addlinkreqlogin && current_user_can( 'read' ) ) || !$addlinkreqlogin ) ) {
|
249 |
+
$output .= '<form method="post" id="lladdlink" action="">';
|
250 |
+
|
251 |
+
$output .= wp_nonce_field( 'LL_ADDLINK_FORM', '_wpnonce', true, false );
|
252 |
+
$output .= '<input type="hidden" name="thankyouurl" value="' . $linksubmissionthankyouurl . '" />';
|
253 |
+
$output .= '<input type="hidden" name="link_library_user_link_submission" value="1" />';
|
254 |
+
|
255 |
+
global $wp_query;
|
256 |
+
$thePostID = $wp_query->post->ID;
|
257 |
+
$output .= '<input type="hidden" name="pageid" value="' . $thePostID . '" />';
|
258 |
+
$output .= '<input type="hidden" name="settingsid" value="' . $settings . '" />';
|
259 |
+
|
260 |
+
$xpath = $LLPluginClass->relativePath( dirname( __FILE__ ), ABSPATH );
|
261 |
+
$output .= '<input type="hidden" name="xpath" value="' . esc_attr( $xpath ) . '" />';
|
262 |
+
unset( $xpath );
|
263 |
+
|
264 |
+
$output .= "<div class='lladdlink'>\n";
|
265 |
+
|
266 |
+
if ( empty( $addnewlinkmsg ) ) {
|
267 |
+
$addnewlinkmsg = __( 'Add new link', 'link-library' );
|
268 |
+
}
|
269 |
+
|
270 |
+
$output .= '<div id="lladdlinktitle">' . $addnewlinkmsg . "</div>\n";
|
271 |
+
|
272 |
+
$output .= "<table>\n";
|
273 |
+
|
274 |
+
if ( empty( $linknamelabel ) ) {
|
275 |
+
$linknamelabel = __( 'Link name', 'link-library' );
|
276 |
+
}
|
277 |
+
|
278 |
+
$output .= '<tr><th>' . $linknamelabel . '</th><td><input data-validation="required length" data-validation-length="max255" data-validation-error-msg-required="' . __( 'Required field', 'link-library' ) . '" type="text" name="link_name" id="link_name" value="' . ( isset( $_GET['addlinkname'] ) ? esc_html( stripslashes( $_GET['addlinkname'] ), '1' ) : '') . "\" /></td></tr>\n";
|
279 |
+
|
280 |
+
if ( empty( $linkaddrlabel ) ) {
|
281 |
+
$linkaddrlabel = __( 'Link address', 'link-library' );
|
282 |
+
}
|
283 |
+
|
284 |
+
$output .= '<tr><th>' . $linkaddrlabel . '</th><td><input ';
|
285 |
+
if ( !$addlinknoaddress ) {
|
286 |
+
$output .= 'data-validation="required url length" data-validation-length="max255" data-validation-error-msg-required="' . __( 'Required field, URL', 'link-library' ) . '" ';
|
287 |
+
}
|
288 |
+
$output .= 'type="text" name="link_url" id="link_url" value="' . ( isset( $_GET['addlinkurl'] ) ? esc_html( stripslashes( $_GET['addlinkurl'] ), '1') : 'http://' ) . "\" /></td></tr>\n";
|
289 |
+
|
290 |
+
if ( 'show' == $showaddlinkrss || 'required' == $showaddlinkrss) {
|
291 |
+
if ( empty( $linkrsslabel ) ) {
|
292 |
+
$linkrsslabel = __( 'Link RSS', 'link-library' );
|
293 |
+
}
|
294 |
+
|
295 |
+
$output .= '<tr><th>' . $linkrsslabel . '</th><td><input ';
|
296 |
+
|
297 |
+
if ( 'required' == $showaddlinkrss ) {
|
298 |
+
$requiredtext = ' required';
|
299 |
+
} else {
|
300 |
+
$requiredtext = '';
|
301 |
+
}
|
302 |
+
|
303 |
+
$output .= 'data-validation="length' . $requiredtext . '" data-validation-length="max255" data-validation-error-msg-required="' . __( 'Required field, 1-255 chars', 'link-library' ) . '" ';
|
304 |
+
|
305 |
+
$output .= ' type="text" name="link_rss" id="link_rss" value="' . ( isset( $_GET['addlinkrss'] ) ? esc_html( stripslashes( $_GET['addlinkrss'] ), '1') : '' ) . "\" /></td></tr>\n";
|
306 |
+
}
|
307 |
+
|
308 |
+
$include_links_array = array();
|
309 |
+
if ( !empty( $categorylist_cpt ) ) {
|
310 |
+
$include_links_array = explode( ',', $categorylist_cpt );
|
311 |
+
}
|
312 |
+
|
313 |
+
if ( !empty( $excludecategorylist_cpt ) ) {
|
314 |
+
$excluded_links_array = explode( ',', $excludecategorylist_cpt );
|
315 |
+
}
|
316 |
+
|
317 |
+
$link_categories_query_args = array( 'hide_empty' => false, 'parent' => 0 );
|
318 |
+
if ( !empty( $include_links_array ) ) {
|
319 |
+
$link_categories_query_args['include'] = $include_links_array;
|
320 |
+
}
|
321 |
+
|
322 |
+
if ( !empty( $excluded_links_array ) ) {
|
323 |
+
$link_categories_query_args['exclude'] = $excluded_links_array;
|
324 |
+
}
|
325 |
+
|
326 |
+
$linkcats = get_terms( 'link_library_category', $link_categories_query_args );
|
327 |
+
|
328 |
+
if ( !empty( $include_links_array ) && !empty( $excluded_links_array ) ) {
|
329 |
+
foreach( $linkcats as $link_key => $linkcat ) {
|
330 |
+
foreach( $excluded_links_array as $excludedcat ) {
|
331 |
+
if ( $linkcat->term_id == $excludedcat ) {
|
332 |
+
unset( $linkcats[$link_key] );
|
333 |
+
}
|
334 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
335 |
}
|
336 |
+
}
|
337 |
+
|
338 |
+
if ( $debugmode ) {
|
339 |
+
$output .= "\n<!-- Category query for add link form:" . print_r($linkcatquery, TRUE) . "-->\n\n";
|
340 |
+
$output .= "\n<!-- Results of Category query for add link form:" . print_r($linkcats, TRUE) . "-->\n";
|
341 |
+
}
|
342 |
+
|
343 |
+
if ( $linkcats ) {
|
344 |
+
if ( 'show' == $libraryoptions['showaddlinkcat'] || 'selectmultiple' == $libraryoptions['showaddlinkcat'] ) {
|
345 |
+
if ( empty( $linkcatlabel ) ) {
|
346 |
+
$linkcatlabel = __( 'Link category', 'link-library' );
|
347 |
+
}
|
348 |
+
|
349 |
+
$output .= '<tr><th>' . $linkcatlabel;
|
350 |
+
if ( 'selectmultiple' == $libraryoptions['showaddlinkcat'] ) {
|
351 |
+
$output .= '<br /><br /><span class="multiselecthelp">';
|
352 |
+
$output .= __( 'Use control-click (Windows) or command-click (Mac) to select multiple', 'link-library' );
|
353 |
+
$output .= '</span>';
|
354 |
+
}
|
355 |
+
$output .= '</th><td>';
|
356 |
+
|
357 |
+
$output .= addlink_render_category_list( $linkcats, 'link_category', 0, 'ASC', $libraryoptions );
|
358 |
+
|
359 |
+
$output .= "</td></tr>\n";
|
360 |
+
} else {
|
361 |
+
$output .= '<input type="hidden" name="link_category[]" id="link_category" value="';
|
362 |
+
if ( 'nodefaultcat' == $addlinkdefaultcat ) {
|
363 |
+
$output .= $linkcats[0]->term_id;
|
364 |
+
} else {
|
365 |
+
$output .= intval( $addlinkdefaultcat );
|
366 |
+
}
|
367 |
+
$output .= '">';
|
368 |
+
}
|
369 |
+
|
370 |
+
if ( 'show' == $addlinkcustomcat ) {
|
371 |
+
$output .= '<tr class="customcatrow" ';
|
372 |
+
if ( !isset( $_GET['addlinkusercat'] ) || empty( $_GET['addlinkusercat'] ) ) {
|
373 |
+
$output .= 'style="display: none;"';
|
374 |
+
}
|
375 |
+
|
376 |
+
$output .= '><th>' . $linkcustomcatlabel . '</th><td><input type="text" name="link_user_category" id="link_user_category" value="' . ( isset( $_GET['addlinkusercat'] ) ? esc_html( stripslashes( $_GET['addlinkusercat'] ), '1' ) : '') . "\" /></td></tr>\n";
|
377 |
+
}
|
378 |
+
}
|
379 |
+
|
380 |
+
$link_tags_query_args = array( 'hide_empty' => false );
|
381 |
+
if ( !empty( $include_links_array ) ) {
|
382 |
+
$link_tags_query_args['include'] = explode( ',', $libraryoptions['addlinktaglistoverride'] );
|
383 |
+
}
|
384 |
+
|
385 |
+
$linktags = get_terms( 'link_library_tags', $link_tags_query_args );
|
386 |
+
|
387 |
+
if ( $linktags ) {
|
388 |
+
if ( 'show' == $libraryoptions['showaddlinktags'] ) {
|
389 |
+
if ( empty( $linktagslabel ) ) {
|
390 |
+
$linktagslabel = __( 'Link tags', 'link-library' );
|
391 |
+
}
|
392 |
+
|
393 |
+
$output .= '<tr><th>' . $linktagslabel;
|
394 |
+
$output .= '<br /><br /><span class="multiselecthelp">';
|
395 |
+
$output .= __( 'Use control-click (Windows) or command-click (Mac) to select multiple', 'link-library' );
|
396 |
+
$output .= '</span>';
|
397 |
+
|
398 |
+
$output .= '</th><td>';
|
399 |
+
$output .= '<SELECT name="link_tags[]" id="link_tags" ';
|
400 |
+
|
401 |
+
$number_of_tags = sizeof( $linktags );
|
402 |
+
if ( $linkcustomtaglistentry ) {
|
403 |
+
$number_of_tags++;
|
404 |
+
}
|
405 |
+
$output .= 'multiple size="' . ( $number_of_tags < 10 ? $number_of_tags : 10 ) . '" style="height: auto"';
|
406 |
+
|
407 |
+
$output .= '>';
|
408 |
+
|
409 |
+
if ( empty( $linkcustomtaglistentry ) ) {
|
410 |
+
$linkcustomcatlistentry = __( 'User-submitted tag (define below)', 'link-library' );
|
411 |
+
}
|
412 |
+
|
413 |
+
foreach ( $linktags as $linktag ) {
|
414 |
+
$output .= '<OPTION VALUE="' . $linktag->term_id . '" ';
|
415 |
+
if ( isset( $_GET['addlinktag'] ) && in_array( $linktag->term_id, $_GET['addlinktag'] ) ) {
|
416 |
+
$output .= "selected";
|
417 |
+
}
|
418 |
+
$output .= '>' . $linktag->name;
|
419 |
+
}
|
420 |
+
|
421 |
+
if ( 'show' == $addlinkcustomtag ) {
|
422 |
+
$output .= '<OPTION VALUE="new">' . stripslashes( $linkcustomtaglistentry ) . "\n";
|
423 |
+
}
|
424 |
+
|
425 |
+
$output .= "</SELECT></td></tr>\n";
|
426 |
+
}
|
427 |
+
|
428 |
+
if ( 'show' == $addlinkcustomtag ) {
|
429 |
+
$output .= '<tr class="customtagrow" ';
|
430 |
+
if ( !isset( $_GET['addlinkusertags'] ) || empty( $_GET['addlinkusertags'] ) ) {
|
431 |
+
$output .= 'style="display: none;"';
|
432 |
+
}
|
433 |
+
|
434 |
+
$output .= '><th>' . $linkcustomtaglabel . '</th><td><input type="text" name="link_user_tags" id="link_user_tags" value="' . ( isset( $_GET['addlinkusertags'] ) ? esc_html( stripslashes( $_GET['addlinkusertags'] ), '1' ) : '') . "\" /></td></tr>\n";
|
435 |
+
}
|
436 |
+
}
|
437 |
+
|
438 |
+
|
439 |
+
if ( 'show' == $showaddlinkdesc || 'required' == $showaddlinkdesc ) {
|
440 |
+
if ( empty( $linkdesclabel ) ) {
|
441 |
+
$linkdesclabel = __( 'Link description', 'link-library' );
|
442 |
+
}
|
443 |
+
|
444 |
+
$output .= '<tr><th>' . $linkdesclabel . '</th><td><input ';
|
445 |
+
|
446 |
+
if ( 'required' == $showaddlinkrss ) {
|
447 |
+
$requiredtext = ' required';
|
448 |
+
} else {
|
449 |
+
$requiredtext = '';
|
450 |
+
}
|
451 |
|
452 |
+
$output .= 'data-validation="length' . $requiredtext . '" data-validation-length="max255" data-validation-error-msg-required="' . __( 'Required field, 1-255 chars', 'link-library' ) . '" ';
|
453 |
|
454 |
+
$output .= ' type="text" name="link_description" id="link_description" value="' . ( isset( $_GET['addlinkdesc'] ) ? esc_html( stripslashes( $_GET['addlinkdesc'] ), '1' ) : '' ) . "\" /></td></tr>\n";
|
455 |
+
}
|
456 |
|
457 |
+
if ( 'show' == $showuserlargedescription || 'required' == $showuserlargedescription ) {
|
458 |
+
if ( empty( $linklargedesclabel ) ) {
|
459 |
+
$linklargedesclabel = __( 'Large description', 'link-library' );
|
460 |
+
}
|
461 |
|
462 |
+
$output .= '<tr><th style="vertical-align: top">' . $linklargedesclabel . '</th><td><textarea ';
|
463 |
|
464 |
+
if ( 'required' == $showuserlargedescription ) {
|
465 |
+
$output .= 'data-validation="required" data-validation-error-msg-required="' . __( 'Required field', 'link-library' ) . '" ';
|
466 |
+
}
|
|
|
|
|
467 |
|
468 |
+
$output .= ' name="link_textfield" id="link_textfield" cols="66">' . ( isset( $_GET['addlinktextfield'] ) ? esc_html( stripslashes( $_GET['addlinktextfield'] ), '1' ) : '' ) . "</textarea></td></tr>\n";
|
469 |
+
}
|
470 |
|
471 |
+
if ( 'show' == $showaddlinknotes || 'required' == $showaddlinknotes) {
|
472 |
+
if ( empty( $linknoteslabel ) ) {
|
473 |
+
$linknoteslabel = __( 'Link notes', 'link-library' );
|
474 |
+
}
|
475 |
|
476 |
+
$output .= '<tr><th>' . $linknoteslabel . '</th><td>';
|
|
|
|
|
|
|
477 |
|
478 |
+
if ( !$usetextareaforusersubmitnotes || empty( $usetextareaforusersubmitnotes ) ) {
|
479 |
+
$output .= '<input ';
|
480 |
|
481 |
+
if ( 'required' == $showaddlinknotes ) {
|
482 |
+
$output .= 'data-validation="required" data-validation-error-msg-required="' . __( 'Required field', 'link-library' ) . '" ';
|
483 |
+
}
|
|
|
|
|
484 |
|
485 |
+
$output .= 'type="text" name="link_notes" id="link_notes" value="';
|
486 |
+
} elseif ( $usetextareaforusersubmitnotes ) {
|
487 |
+
$output .= '<textarea ';
|
488 |
|
489 |
+
if ( 'required' == $showaddlinknotes ) {
|
490 |
+
$output .= 'data-validation="required" data-validation-error-msg-required="' . __( 'Required field', 'link-library' ) . '" ';
|
491 |
+
}
|
492 |
|
493 |
+
$output .= 'name="link_notes" id="link_notes">';
|
494 |
+
}
|
|
|
|
|
495 |
|
496 |
+
$output .= ( isset( $_GET['addlinknotes'] ) ? esc_html( stripslashes( $_GET['addlinknotes'] ), '1' ) : '' );
|
497 |
|
498 |
+
if ( !$usetextareaforusersubmitnotes || empty( $usetextareaforusersubmitnotes ) ) {
|
499 |
+
$output .= '" />';
|
500 |
+
} elseif ( $usetextareaforusersubmitnotes ) {
|
501 |
+
$output .= '</textarea>';
|
502 |
+
}
|
503 |
|
504 |
+
$output .= "</td></tr>\n";
|
505 |
+
}
|
506 |
|
507 |
+
if ( 'show' == $showaddlinkreciprocal || 'required' == $showaddlinkreciprocal) {
|
508 |
+
if ( empty( $linkreciprocallabel ) ) {
|
509 |
+
$linkreciprocallabel = __( 'Reciprocal Link', 'link-library' );
|
510 |
+
}
|
511 |
|
512 |
+
$output .= '<tr><th>' . $linkreciprocallabel . '</th><td><input ';
|
|
|
|
|
|
|
513 |
|
514 |
+
if ( 'required' == $showaddlinkrss ) {
|
515 |
+
$requiredtext = ' required';
|
516 |
+
} else {
|
517 |
+
$requiredtext = '';
|
518 |
+
}
|
|
|
|
|
519 |
|
520 |
+
$output .= 'data-validation="url length' . $requiredtext . '" data-validation-length="max255" data-validation-error-msg-required="' . __( 'Required field, 1-255 chars', 'link-library' ) . '" ';
|
521 |
|
522 |
+
$output .= 'type="text" name="ll_reciprocal" id="ll_reciprocal" value="' . ( isset( $_GET['addlinkreciprocal'] ) ? esc_html(stripslashes($_GET['addlinkreciprocal']), '1') : 'http://' ) . "\" /></td></tr>\n";
|
523 |
+
}
|
|
|
|
|
524 |
|
525 |
+
if ( 'show' == $showaddlinksecondurl || 'required' == $showaddlinksecondurl) {
|
526 |
+
if ( empty( $linksecondurllabel ) ) {
|
527 |
+
$linksecondurllabel = __( 'Secondary Address', 'link-library' );
|
528 |
+
}
|
|
|
529 |
|
530 |
+
$output .= '<tr><th>' . $linksecondurllabel . '</th><td><input ';
|
531 |
|
532 |
+
if ( 'required' == $showaddlinkrss ) {
|
533 |
+
$requiredtext = ' required';
|
534 |
+
} else {
|
535 |
+
$requiredtext = '';
|
536 |
+
}
|
537 |
|
538 |
+
$output .= 'data-validation="length' . $requiredtext . '" data-validation-length="max255" data-validation-error-msg-required="' . __( 'Required field', 'link-library' ) . '" ';
|
|
|
|
|
|
|
539 |
|
540 |
+
$output .= 'type="text" name="ll_secondwebaddr" id="ll_secondwebaddr" value="' . ( isset( $_GET['addlinksecondurl'] ) ? esc_html( stripslashes( $_GET['addlinksecondurl'] ), '1' ) : 'http://' ) . "\" /></td></tr>\n";
|
541 |
+
}
|
|
|
|
|
|
|
|
|
|
|
542 |
|
543 |
+
if ( 'show' == $showaddlinktelephone || 'required' == $showaddlinktelephone) {
|
544 |
+
if ( empty( $linktelephonelabel ) ) {
|
545 |
+
$linktelephonelabel = __( 'Telephone', 'link-library' );
|
546 |
+
}
|
547 |
|
548 |
+
$output .= '<tr><th>' . $linktelephonelabel . '</th><td><input ';
|
|
|
|
|
|
|
549 |
|
550 |
+
if ( 'required' == $showaddlinkrss ) {
|
551 |
+
$requiredtext = ' required';
|
552 |
+
} else {
|
553 |
+
$requiredtext = '';
|
554 |
+
}
|
555 |
|
556 |
+
$output .= 'data-validation="length' . $requiredtext . '" data-validation-length="max128" data-validation-error-msg-required="' . __( 'Required field', 'link-library' ) . '" ';
|
557 |
|
558 |
+
$output .= 'type="text" name="ll_telephone" id="ll_telephone" value="' . ( isset( $_GET['addlinktelephone'] ) ? esc_html( stripslashes( $_GET['addlinktelephone'] ), '1' ) : '' ) . "\" /></td></tr>\n";
|
559 |
+
}
|
560 |
|
561 |
+
if ( 'show' == $showaddlinkemail || 'required' == $showaddlinkemail ) {
|
562 |
+
if ( empty( $linkemaillabel ) ) {
|
563 |
+
$linkemaillabel = __( 'E-mail', 'link-library' );
|
564 |
+
}
|
565 |
|
566 |
+
$output .= '<tr><th>' . $linkemaillabel . '</th><td><input ';
|
567 |
|
568 |
+
if ( 'required' == $showaddlinkrss ) {
|
569 |
+
$requiredtext = ' required';
|
570 |
+
} else {
|
571 |
+
$requiredtext = '';
|
572 |
+
}
|
573 |
|
574 |
+
$output .= 'data-validation="email length' . $requiredtext . '" data-validation-length="max128" data-validation-error-msg-required="' . __( 'Required field, proper e-mail, 1-128 chars', 'link-library' ) . '" ';
|
|
|
575 |
|
576 |
+
$output .= 'type="text" name="ll_email" id="ll_email" value="' . ( isset( $_GET['addlinkemail'] ) ? esc_html( stripslashes( $_GET['addlinkemail'] ), '1' ) : '' ) . "\" /></td></tr>\n";
|
577 |
+
}
|
|
|
578 |
|
579 |
+
if ( 'show' == $showlinksubmittername || 'required' == $showlinksubmittername || is_user_logged_in() ) {
|
580 |
+
if ( empty( $linksubmitternamelabel ) ) {
|
581 |
+
$linksubmitternamelabel = __( 'Submitter Name', 'link-library' );
|
582 |
+
}
|
583 |
|
584 |
+
$name_field_value = '';
|
585 |
+
if ( isset( $_GET['ll_submittername'] ) ) {
|
586 |
+
$name_field_value = esc_html( stripslashes( $_GET['ll_submittername'] ) );
|
587 |
+
} elseif ( is_user_logged_in() ) {
|
588 |
+
$user_data = wp_get_current_user();
|
589 |
+
$name_field_value = $user_data->display_name;
|
590 |
+
}
|
591 |
|
592 |
+
$output .= '<tr';
|
593 |
|
594 |
+
if ( 'show' != $showlinksubmittername && 'required' != $showlinksubmittername ) {
|
595 |
+
$output .= ' style="display:none"';
|
596 |
+
}
|
597 |
+
$output .= '><th>' . $linksubmitternamelabel . '</th><td><input ';
|
598 |
+
|
599 |
+
if ( 'required' == $showaddlinkrss ) {
|
600 |
+
$requiredtext = ' required';
|
601 |
+
} else {
|
602 |
+
$requiredtext = '';
|
603 |
+
}
|
604 |
+
|
605 |
+
$output .= 'data-validation="length' . $requiredtext . '" data-validation-length="max128" data-validation-error-msg-required="' . __( 'Required field, 1-128 chars', 'link-library' ) . '" ';
|
606 |
+
|
607 |
+
$output .= 'type="text" name="ll_submittername" id="ll_submittername" value="' . $name_field_value . "\" /></td></tr>\n";
|
608 |
+
}
|
609 |
+
|
610 |
+
if ( 'show' == $showaddlinksubmitteremail || 'required' == $showaddlinksubmitteremail || is_user_logged_in()) {
|
611 |
+
if ( empty( $linksubmitteremaillabel ) ) {
|
612 |
+
$linksubmitteremaillabel = __( 'Submitter E-mail', 'link-library' );
|
613 |
+
}
|
614 |
+
|
615 |
+
$email_field_value = '';
|
616 |
+
if ( isset( $_GET['ll_submitteremail'] ) ) {
|
617 |
+
$email_field_value = esc_html( stripslashes( $_GET['ll_submitteremail'] ) );
|
618 |
+
} elseif ( is_user_logged_in() ) {
|
619 |
+
$user_data = wp_get_current_user();
|
620 |
+
$email_field_value = $user_data->user_email;
|
621 |
+
}
|
622 |
+
|
623 |
+
$output .= '<tr';
|
624 |
+
|
625 |
+
if ( 'show' != $showaddlinksubmitteremail && 'required' != $showaddlinksubmitteremail ) {
|
626 |
+
$output .= ' style="display:none"';
|
627 |
+
}
|
628 |
+
$output .= '><th>' . $linksubmitteremaillabel . '</th><td><input ';
|
629 |
+
|
630 |
+
if ( 'required' == $showaddlinkrss ) {
|
631 |
+
$requiredtext = ' required';
|
632 |
+
} else {
|
633 |
+
$requiredtext = '';
|
634 |
+
}
|
635 |
+
|
636 |
+
$output .= 'data-validation="email length' . $requiredtext . '" data-validation-length="max128" data-validation-error-msg-required="' . __( 'Required field, 1-128 chars', 'link-library' ) . '" ';
|
637 |
+
|
638 |
+
$output .= 'type="text" name="ll_submitteremail" id="ll_submitteremail" value="' . $email_field_value . "\" /></td></tr>\n";
|
639 |
+
}
|
640 |
+
|
641 |
+
if ( 'show' == $showlinksubmittercomment || 'required' == $showlinksubmittercomment) {
|
642 |
+
if ( empty( $linksubmittercommentlabel ) ) {
|
643 |
+
$linksubmittercommentlabel = __( 'Submitter Comment', 'link-library' );
|
644 |
+
}
|
645 |
+
|
646 |
+
$output .= '<tr><th style="vertical-align: top;">' . $linksubmittercommentlabel . '</th><td><textarea ';
|
647 |
+
|
648 |
+
if ( 'required' == $showlinksubmittercomment ) {
|
649 |
+
$output .= 'data-validation="required" data-validation-error-msg-required="' . __( 'Required field', 'link-library' ) . '" ';
|
650 |
+
}
|
651 |
+
|
652 |
+
$output .= 'name="ll_submittercomment" id="ll_submittercomment" cols="38">' . ( isset( $_GET['addlinksubmitcomment'] ) ? esc_html( stripslashes( $_GET['addlinksubmitcomment']), '1' ) : '' ) . "</textarea></td></tr>\n";
|
653 |
+
}
|
654 |
+
|
655 |
+
if ( $showcaptcha && !is_user_logged_in() ) {
|
656 |
+
$output .= apply_filters( 'link_library_generate_captcha', '' );
|
657 |
+
}
|
658 |
+
|
659 |
+
if ( 'show' == $showcustomcaptcha && !is_user_logged_in() ) {
|
660 |
+
if ( empty( $customcaptchaquestion ) ) {
|
661 |
+
$customcaptchaquestion = __( 'Is boiling water hot or cold?', 'link-library' );
|
662 |
+
}
|
663 |
+
|
664 |
+
$output .= '<tr><th style="vertical-align: top;">' . $customcaptchaquestion . '</th><td><input data-validation="required" data-validation-error-msg-required="' . __( 'Required field', 'link-library' ) . ' type="text" name="ll_customcaptchaanswer" id="ll_customcaptchaanswer" value="' . (isset( $_GET['ll_customcaptchaanswer'] ) ? esc_html( stripslashes( $_GET['ll_customcaptchaanswer'] ), '1' ) : '' ) . "\" /></td></tr>\n";
|
665 |
+
}
|
666 |
+
|
667 |
+
$output .= "</table>\n";
|
668 |
+
|
669 |
+
if ( empty( $addlinkbtnlabel ) ) {
|
670 |
+
$addlinkbtnlabel = __( 'Add link', 'link-library' );
|
671 |
+
}
|
672 |
+
|
673 |
+
$output .= '<span style="border:0;" class="LLUserLinkSubmit"><input type="submit" name="submit" value="' . $addlinkbtnlabel . '" /></span>';
|
674 |
+
|
675 |
+
$output .= "</div>\n";
|
676 |
+
$output .= "</form>\n\n";
|
677 |
+
|
678 |
+
$output .= "<script type='text/javascript'>\n";
|
679 |
+
$output .= "\tjQuery( document ).ready( function() {\n";
|
680 |
+
|
681 |
+
$output .= "\tvar LinkLibraryValidationLanguage = {\n";
|
682 |
+
$output .= "\t\terrorTitle: '" . addslashes( __( 'Form submission failed!', 'link-library' ) ) . "',\n";
|
683 |
+
$output .= "\t\trequiredFields: '" . addslashes( __( 'You have not answered all required fields', 'link-library' ) ) . "',\n";
|
684 |
+
$output .= "\t\tbadTime: '" . addslashes( __( 'You have not given a correct time', 'link-library' ) ) . "',\n";
|
685 |
+
$output .= "\t\tbadEmail: '" . addslashes( __( 'You have not given a correct e-mail address', 'link-library' ) ) . "',\n";
|
686 |
+
$output .= "\t\tbadTelephone: '" . addslashes( __( 'You have not given a correct phone number', 'link-library' ) ) . "',\n";
|
687 |
+
$output .= "\t\tbadSecurityAnswer: '" . addslashes( __( 'You have not given a correct answer to the security question', 'link-library' ) ) . "',\n";
|
688 |
+
$output .= "\t\tbadDate: '" . addslashes( __( 'You have not given a correct date', 'link-library' ) ) . "',\n";
|
689 |
+
$output .= "\t\tlengthBadStart: '" . addslashes( __( 'The input value must be between ', 'link-library' ) ) . "',\n";
|
690 |
+
$output .= "\t\tlengthBadEnd: '" . addslashes( __( 'characters', 'link-library' ) ) . "',\n";
|
691 |
+
$output .= "\t\tlengthTooLongStart: '" . addslashes( __( 'The input value is longer than ', 'link-library' ) ) . "',\n";
|
692 |
+
$output .= "\t\tlengthTooShortStart: '" . addslashes( __( 'The input value is shorter than ', 'link-library' ) ). "',\n";
|
693 |
+
$output .= "\t\tnotConfirmed: '" . addslashes( __( 'Input values could not be confirmed', 'link-library' ) ). "',\n";
|
694 |
+
$output .= "\t\tbadDomain: '" . addslashes( __( 'Incorrect domain value', 'link-library' ) ) . "',\n";
|
695 |
+
$output .= "\t\tbadUrl: '" . addslashes( __( 'The input value is not a correct URL. Requires http://.', 'link-library' ) ) . "',\n";
|
696 |
+
$output .= "\t\tbadCustomVal: '" . addslashes( __( 'The input value is incorrect', 'link-library' ) ) . "',\n";
|
697 |
+
$output .= "\t\tandSpaces: '" . addslashes( __( ' and spaces ', 'link-library' ) ) . "',\n";
|
698 |
+
$output .= "\t\tbadInt: '" . addslashes( __( 'The input value was not a correct number', 'link-library' ) ) . "',\n";
|
699 |
+
$output .= "\t\tbadSecurityNumber: '" . addslashes( __( 'Your social security number was incorrect', 'link-library' ) ) . "',\n";
|
700 |
+
$output .= "\t\tbadUKVatAnswer: '" . addslashes( __( 'Incorrect UK VAT Number', 'link-library' ) ) . "',\n";
|
701 |
+
$output .= "\t\tbadStrength: '" . addslashes( __( 'The password is not strong enough', 'link-library' ) ) . "',\n";
|
702 |
+
$output .= "\t\tbadNumberOfSelectedOptionsStart: '" . addslashes( __( 'You have to choose at least ', 'link-library' ) ) . "',\n";
|
703 |
+
$output .= "\t\tbadNumberOfSelectedOptionsEnd: '" . addslashes( __( ' answers', 'link-library' ) ) . "',\n";
|
704 |
+
$output .= "\t\tbadAlphaNumeric: '" . addslashes( __( 'The input value can only contain alphanumeric characters ', 'link-library' ) ) . "',\n";
|
705 |
+
$output .= "\t\tbadAlphaNumericExtra: '" . addslashes( __( ' and ', 'link-library' ) ) . "',\n";
|
706 |
+
$output .= "\t\twrongFileSize: '" . addslashes( __( 'The file you are trying to upload is too large (max %s)', 'link-library' ) ) . "',\n";
|
707 |
+
$output .= "\t\twrongFileType: '" . addslashes( __( 'Only files of type %s is allowed', 'link-library' ) ) . "',\n";
|
708 |
+
$output .= "\t\tgroupCheckedRangeStart: '" . addslashes( __( 'Please choose between ', 'link-library' ) ) . "',\n";
|
709 |
+
$output .= "\t\tgroupCheckedTooFewStart: '" . addslashes( __( 'Please choose at least ', 'link-library' ) ) . "',\n";
|
710 |
+
$output .= "\t\tgroupCheckedTooManyStart: '" . addslashes( __( 'Please choose a maximum of ', 'link-library' ) ) . "',\n";
|
711 |
+
$output .= "\t\tgroupCheckedEnd: '" . addslashes( __( ' item(s)', 'link-library' ) ) . "',\n";
|
712 |
+
$output .= "\t\tbadCreditCard: '" . addslashes( __( 'The credit card number is not correct', 'link-library' ) ) . "',\n";
|
713 |
+
$output .= "\t\tbadCVV: '" . addslashes( __( 'The CVV number was not correct', 'link-library' ) ) . "',\n";
|
714 |
+
$output .= "\t\twrongFileDim : '" . addslashes( __( 'Incorrect image dimensions,', 'link-library' ) ) . "',\n";
|
715 |
+
$output .= "\t\timageTooTall : '" . addslashes( __( 'the image can not be taller than', 'link-library' ) ) . "',\n";
|
716 |
+
$output .= "\t\timageTooWide : '" . addslashes( __( 'the image can not be wider than', 'link-library' ) ) . "',\n";
|
717 |
+
$output .= "\t\timageTooSmall : '" . addslashes( __( 'the image was too small', 'link-library' ) ) . "',\n";
|
718 |
+
$output .= "\t\tmin : '" . addslashes( __( 'min', 'link-library' ) ) . "',\n";
|
719 |
+
$output .= "\t\tmax : '" . addslashes( __( 'max', 'link-library' ) ) . "',\n";
|
720 |
+
$output .= "\t\timageRatioNotAccepted : '" . addslashes( __( 'Image ratio is not accepted', 'link-library' ) ) . "'\n";
|
721 |
+
$output .= "\t};\n";
|
722 |
+
|
723 |
+
$output .= "\t\tjQuery.validate({\n";
|
724 |
+
$output .= "\t\t\tmodules : 'location, date, security, file',\n";
|
725 |
+
$output .= "\t\t\tlanguage : LinkLibraryValidationLanguage,\n";
|
726 |
+
$output .= "\t\t});\n";
|
727 |
+
$output .= "\t\tjQuery('#link_category').change(function() {\n";
|
728 |
+
$output .= "\t\tvar cat_data = jQuery('#link_category').val();\n";
|
729 |
+
$output .= "\t\t\tif ( Array.isArray( cat_data ) ) {\n";
|
730 |
+
$output .= "\t\t\t\tif ( cat_data.indexOf('new') != -1 ) {\n";
|
731 |
+
$output .= "\t\t\t\t\tjQuery('.customcatrow').show();\n";
|
732 |
+
$output .= "\t\t\t\t} else {\n";
|
733 |
+
$output .= "\t\t\t\t\tjQuery('.customcatrow').hide();\n";
|
734 |
+
$output .= "\t\t\t\t};\n";
|
735 |
+
$output .= "\t\t\t} else {\n";
|
736 |
+
$output .= "\t\t\t\tif ( jQuery('#link_category').val() == 'new' ) {\n";
|
737 |
+
$output .= "\t\t\t\t\tjQuery('.customcatrow').show();\n";
|
738 |
+
$output .= "\t\t\t\t} else {\n";
|
739 |
+
$output .= "\t\t\t\t\tjQuery('.customcatrow').hide();\n";
|
740 |
+
$output .= "\t\t\t\t};\n";
|
741 |
+
$output .= "\t\t\t};\n";
|
742 |
+
$output .= "\t\t});\n";
|
743 |
+
|
744 |
+
$output .= "\t\tjQuery('#link_tags').change(function() {\n";
|
745 |
+
$output .= "\t\tvar tag_data = jQuery('#link_tags').val();\n";
|
746 |
+
$output .= "\t\t\tif ( Array.isArray( tag_data ) ) {\n";
|
747 |
+
$output .= "\t\t\t\tif ( tag_data.indexOf('new') != -1 ) {\n";
|
748 |
+
$output .= "\t\t\t\t\tjQuery('.customtagrow').show();\n";
|
749 |
+
$output .= "\t\t\t\t} else {\n";
|
750 |
+
$output .= "\t\t\t\t\tjQuery('.customtagrow').hide();\n";
|
751 |
+
$output .= "\t\t\t\t};\n";
|
752 |
+
$output .= "\t\t\t};\n";
|
753 |
+
$output .= "\t\t});\n";
|
754 |
+
|
755 |
+
$output .= "\t});\n";
|
756 |
+
$output .= "</script>\n";
|
757 |
+
}
|
758 |
+
|
759 |
+
return $output;
|
760 |
}
|
761 |
|
762 |
function link_library_generate_captcha() {
|
770 |
$captcha = '<tr><td></td><td><div class="g-recaptcha" data-sitekey="' . $generaloptions['recaptchasitekey'] . '"></div></td></tr>';
|
771 |
}
|
772 |
|
773 |
+
return $captcha;
|
774 |
}
|
775 |
|
776 |
add_filter( 'link_library_generate_captcha', 'link_library_generate_captcha' );
|
render-link-library-alpha-filter.php
CHANGED
@@ -5,7 +5,7 @@ require_once plugin_dir_path( __FILE__ ) . 'link-library-defaults.php';
|
|
5 |
|
6 |
function RenderLinkLibraryAlphaFilter( $LLPluginClass, $generaloptions, $libraryoptions, $settings, $searchmode ) {
|
7 |
|
8 |
-
global $wpdb;
|
9 |
|
10 |
$generaloptions = wp_parse_args( $generaloptions, ll_reset_gen_settings( 'return' ) );
|
11 |
extract( $generaloptions );
|
@@ -18,30 +18,30 @@ function RenderLinkLibraryAlphaFilter( $LLPluginClass, $generaloptions, $library
|
|
18 |
$linkcatquery .= 'distinct substring(t.name, 1, 1) as catletter ';
|
19 |
$linkcatquery .= 'FROM ' . $LLPluginClass->db_prefix() . 'terms t LEFT JOIN ' . $LLPluginClass->db_prefix(). 'term_taxonomy tt ON (t.term_id = tt.term_id)';
|
20 |
$linkcatquery .= ' LEFT JOIN ' . $LLPluginClass->db_prefix() . 'term_relationships tr ON (tt.term_taxonomy_id = tr.term_taxonomy_id) ';
|
21 |
-
$linkcatquery .= ' LEFT JOIN ' . $LLPluginClass->db_prefix() . '
|
22 |
-
|
23 |
-
if (
|
24 |
-
$linkcatquery .= '
|
25 |
}
|
26 |
|
27 |
-
if (
|
28 |
-
$linkcatquery .= '
|
29 |
}
|
30 |
|
31 |
-
$linkcatquery .= ' ) ';
|
32 |
|
33 |
-
$linkcatquery .= 'WHERE tt.taxonomy = "
|
34 |
|
35 |
-
if ( !empty( $
|
36 |
-
$linkcatquery .= ' AND t.term_id in ( ' . $
|
37 |
}
|
38 |
|
39 |
-
if ( !empty( $
|
40 |
-
$linkcatquery .= ' AND t.term_id not in ( ' . $
|
41 |
}
|
42 |
|
43 |
if ( $hide_if_empty ) {
|
44 |
-
$linkcatquery .= ' AND
|
45 |
}
|
46 |
|
47 |
$linkcatquery .= ' ORDER by catletter ASC';
|
5 |
|
6 |
function RenderLinkLibraryAlphaFilter( $LLPluginClass, $generaloptions, $libraryoptions, $settings, $searchmode ) {
|
7 |
|
8 |
+
global $wpdb; // Kept with CPT update
|
9 |
|
10 |
$generaloptions = wp_parse_args( $generaloptions, ll_reset_gen_settings( 'return' ) );
|
11 |
extract( $generaloptions );
|
18 |
$linkcatquery .= 'distinct substring(t.name, 1, 1) as catletter ';
|
19 |
$linkcatquery .= 'FROM ' . $LLPluginClass->db_prefix() . 'terms t LEFT JOIN ' . $LLPluginClass->db_prefix(). 'term_taxonomy tt ON (t.term_id = tt.term_id)';
|
20 |
$linkcatquery .= ' LEFT JOIN ' . $LLPluginClass->db_prefix() . 'term_relationships tr ON (tt.term_taxonomy_id = tr.term_taxonomy_id) ';
|
21 |
+
$linkcatquery .= ' LEFT JOIN ' . $LLPluginClass->db_prefix() . 'posts p on (tr.object_id = p.ID and p.post_status in ("publish"';
|
22 |
+
|
23 |
+
if ( $showinvisible ) {
|
24 |
+
$linkcatquery .= ', "private"';
|
25 |
}
|
26 |
|
27 |
+
if ( $showuserlinks ) {
|
28 |
+
$linkcatquery .= ', "pending"';
|
29 |
}
|
30 |
|
31 |
+
$linkcatquery .= ' )) ';
|
32 |
|
33 |
+
$linkcatquery .= 'WHERE tt.taxonomy = "link_library_category"';
|
34 |
|
35 |
+
if ( !empty( $categorylist_cpt ) ) {
|
36 |
+
$linkcatquery .= ' AND t.term_id in ( ' . $categorylist_cpt . ' )';
|
37 |
}
|
38 |
|
39 |
+
if ( !empty( $excludecategorylist_cpt ) ) {
|
40 |
+
$linkcatquery .= ' AND t.term_id not in ( ' . $excludecategorylist_cpt . ' )';
|
41 |
}
|
42 |
|
43 |
if ( $hide_if_empty ) {
|
44 |
+
$linkcatquery .= ' AND p.post_title != "" ';
|
45 |
}
|
46 |
|
47 |
$linkcatquery .= ' ORDER by catletter ASC';
|
render-link-library-cats-sc.php
CHANGED
@@ -16,315 +16,320 @@ require_once plugin_dir_path( __FILE__ ) . 'link-library-defaults.php';
|
|
16 |
|
17 |
function RenderLinkLibraryCategories( $LLPluginClass, $generaloptions, $libraryoptions, $settings ) {
|
18 |
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
|
|
|
|
|
|
|
|
|
|
328 |
$cattext .= $cattargetaddress . '&catname=';
|
329 |
} elseif ( !empty( $cattargetaddress ) && strpos( $cattargetaddress, '?' ) == false ) {
|
330 |
$cattext .= $cattargetaddress . '?catname=';
|
@@ -332,177 +337,175 @@ function RenderLinkLibraryCategories( $LLPluginClass, $generaloptions, $libraryo
|
|
332 |
$cattext .= '?catname=';
|
333 |
} */
|
334 |
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
}
|
507 |
-
return $output;
|
508 |
}
|
16 |
|
17 |
function RenderLinkLibraryCategories( $LLPluginClass, $generaloptions, $libraryoptions, $settings ) {
|
18 |
|
19 |
+
$generaloptions = wp_parse_args( $generaloptions, ll_reset_gen_settings( 'return' ) );
|
20 |
+
extract( $generaloptions );
|
21 |
+
|
22 |
+
$libraryoptions = wp_parse_args( $libraryoptions, ll_reset_options( 1, 'list', 'return' ) );
|
23 |
+
extract( $libraryoptions );
|
24 |
+
|
25 |
+
$linkeditoruser = current_user_can( 'manage_links' );
|
26 |
+
|
27 |
+
/* This case will only happen if the user entered bad data in the admin page or if someone is trying to inject bad data in SQL query */
|
28 |
+
if ( !empty( $categorylist ) ) {
|
29 |
+
$categorylistarray = explode( ',', $categorylist );
|
30 |
+
|
31 |
+
if ( true === array_filter( $categorylistarray, 'is_int' ) ) {
|
32 |
+
return 'List of requested categories is invalid. Please go back to Link Library admin panel to correct.';
|
33 |
+
}
|
34 |
+
}
|
35 |
+
|
36 |
+
if ( !empty( $excludecategorylist ) ) {
|
37 |
+
$excludecategorylistarray = explode( ',', $excludecategorylist );
|
38 |
+
|
39 |
+
if ( true === array_filter( $excludecategorylistarray, 'is_int' ) ) {
|
40 |
+
return 'List of requested excluded categories is invalid. Please go back to Link Library admin panel to correct.';
|
41 |
+
}
|
42 |
+
}
|
43 |
+
|
44 |
+
$output = '';
|
45 |
+
|
46 |
+
$categoryid = '';
|
47 |
+
|
48 |
+
if ( isset($_GET['cat_id'] ) ) {
|
49 |
+
$categoryid = intval( $_GET['cat_id'] );
|
50 |
+
} elseif ( isset( $_GET['catname'] ) ) {
|
51 |
+
$categoryterm = get_term_by( 'name', urldecode( $_GET['catname'] ), 'link_category' );
|
52 |
+
$categoryid = $categoryterm->term_id;
|
53 |
+
} elseif ( $showonecatonly ) {
|
54 |
+
$categoryid = $defaultsinglecat_cpt;
|
55 |
+
}
|
56 |
+
|
57 |
+
if ( !isset( $_GET['searchll'] ) || true == $showcatonsearchresults ) {
|
58 |
+
$countcat = 0;
|
59 |
+
|
60 |
+
$order = strtolower( $order );
|
61 |
+
|
62 |
+
$output .= "<!-- Link Library Categories Output -->\n\n";
|
63 |
+
|
64 |
+
if ( $showonecatonly && ( 'AJAX' == $showonecatmode || empty( $showonecatmode ) ) ) {
|
65 |
+
$nonce = wp_create_nonce( 'link_library_ajax_refresh' );
|
66 |
+
|
67 |
+
$output .= "<SCRIPT LANGUAGE=\"JavaScript\">\n";
|
68 |
+
$output .= "var ajaxobject;\n";
|
69 |
+
$output .= "if(typeof showLinkCat" . $settings . " !== 'function'){\n";
|
70 |
+
$output .= "window.showLinkCat" . $settings . " = function ( _incomingID, _settingsID, _pagenumber ) {\n";
|
71 |
+
$output .= "if (typeof(ajaxobject) != \"undefined\") { ajaxobject.abort(); }\n";
|
72 |
+
|
73 |
+
$output .= "\tjQuery('#contentLoading" . $settings . "').toggle();" .
|
74 |
+
"jQuery.ajax( {" .
|
75 |
+
" type: 'POST', " .
|
76 |
+
" url: '" . admin_url( 'admin-ajax.php' ) . "', " .
|
77 |
+
" data: { action: 'link_library_ajax_update', " .
|
78 |
+
" _ajax_nonce: '" . $nonce . "', " .
|
79 |
+
" id : _incomingID, " .
|
80 |
+
" settings : _settingsID, " .
|
81 |
+
" ajaxupdate : true, " .
|
82 |
+
" linkresultpage: _pagenumber }, " .
|
83 |
+
" success: function( data ){ " .
|
84 |
+
" jQuery('#linklist" . $settings. "').html( data ); " .
|
85 |
+
" jQuery('#contentLoading" . $settings . "').toggle();\n" .
|
86 |
+
" } } ); ";
|
87 |
+
$output .= "}\n";
|
88 |
+
$output .= "}\n";
|
89 |
+
|
90 |
+
$output .= "</SCRIPT>\n\n";
|
91 |
+
}
|
92 |
+
|
93 |
+
$currentcatletter = '';
|
94 |
+
|
95 |
+
if ( $cat_letter_filter != 'no' ) {
|
96 |
+
require_once plugin_dir_path( __FILE__ ) . 'render-link-library-alpha-filter.php';
|
97 |
+
$result = RenderLinkLibraryAlphaFilter( $LLPluginClass, $generaloptions, $libraryoptions, $settings, 'normal' );
|
98 |
+
|
99 |
+
$currentcatletter = $result['currentcatletter'];
|
100 |
+
|
101 |
+
if ( 'beforecats' == $cat_letter_filter || 'beforecatsandlinks' == $cat_letter_filter ) {
|
102 |
+
$output .= $result['output'];
|
103 |
+
}
|
104 |
+
}
|
105 |
+
|
106 |
+
$link_categories_query_args = array( );
|
107 |
+
|
108 |
+
if ( $hide_if_empty ) {
|
109 |
+
$link_categories_query_args['hide_empty'] = true;
|
110 |
+
global $hide_if_empty_filter;
|
111 |
+
$hide_if_empty_filter = $hide_if_empty_filter;
|
112 |
+
} else {
|
113 |
+
$link_categories_query_args['hide_empty'] = false;
|
114 |
+
}
|
115 |
+
|
116 |
+
if ( !$showuserlinks && !$showinvisible && !$showinvisibleadmin ) {
|
117 |
+
add_filter( 'get_terms', 'link_library_get_terms_filter_only_publish', 10, 3 );
|
118 |
+
} elseif ( $showuserlinks && !$showinvisible && !$showinvisibleadmin ) {
|
119 |
+
add_filter( 'get_terms', 'link_library_get_terms_filter_publish_pending', 10, 3 );
|
120 |
+
} elseif ( !$showuserlinks && ( $showinvisible || ( $showinvisibleadmin && $linkeditoruser ) ) ) {
|
121 |
+
add_filter( 'get_terms', 'link_library_get_terms_filter_publish_draft', 10, 3 );
|
122 |
+
} elseif ( $showuserlinks && ( $showinvisible || ( $showinvisibleadmin && $linkeditoruser ) ) ) {
|
123 |
+
add_filter( 'get_terms', 'link_library_get_terms_filter_publish_draft_pending', 10, 3 );
|
124 |
+
}
|
125 |
+
|
126 |
+
if ( !empty( $categorylist_cpt ) && empty( $singlelinkid ) ) {
|
127 |
+
$link_categories_query_args['include'] = explode( ',', $categorylist_cpt );
|
128 |
+
}
|
129 |
+
|
130 |
+
if ( !empty( $excludecategorylist_cpt ) && empty( $singlelinkid ) ) {
|
131 |
+
$link_categories_query_args['exclude'] = explode( ',', $excludecategorylist_cpt );
|
132 |
+
}
|
133 |
+
|
134 |
+
if ( ( !empty( $categorysluglist ) || isset( $_GET['cat'] ) ) && empty( $singlelinkid ) ) {
|
135 |
+
if ( !empty( $categorysluglist ) ) {
|
136 |
+
$link_categories_query_args['slug'] = explode( ',', $categorysluglist );
|
137 |
+
} elseif ( isset( $_GET['cat'] ) ) {
|
138 |
+
$link_categories_query_args['slug'] = $_GET['cat'];
|
139 |
+
}
|
140 |
+
}
|
141 |
+
|
142 |
+
if ( isset( $categoryname ) && !empty( $categoryname ) && 'HTMLGETPERM' == $showonecatmode && empty( $singlelinkid ) ) {
|
143 |
+
$link_categories_query_args['slug'] = $categoryname;
|
144 |
+
}
|
145 |
+
|
146 |
+
if ( ( !empty( $categorynamelist ) || isset( $_GET['catname'] ) ) && empty( $singlelinkid ) ) {
|
147 |
+
$link_categories_query_args['name'] = explode( ',', urldecode( $categorynamelist ) );
|
148 |
+
}
|
149 |
+
|
150 |
+
$validdirections = array( 'ASC', 'DESC' );
|
151 |
+
|
152 |
+
if ( 'name' == $order ) {
|
153 |
+
$link_categories_query_args['orderby'] = 'name';
|
154 |
+
$link_categories_query_args['order'] = in_array( $direction, $validdirections ) ? $direction : 'ASC';
|
155 |
+
} elseif ( 'id' == $order ) {
|
156 |
+
$link_categories_query_args['orderby'] = 'id';
|
157 |
+
$link_categories_query_args['order'] = in_array( $direction, $validdirections ) ? $direction : 'ASC';
|
158 |
+
}
|
159 |
+
|
160 |
+
$link_categories = get_terms( 'link_library_category', $link_categories_query_args );
|
161 |
+
remove_filter( 'get_terms', 'link_library_get_terms_filter' );
|
162 |
+
|
163 |
+
if ( !empty( $link_categories_query_args['include'] ) && !empty( $link_categories_query_args['exclude'] ) ) {
|
164 |
+
foreach( $link_categories as $link_key => $linkcat ) {
|
165 |
+
foreach( $link_categories_query_args['exclude'] as $excludedcat ) {
|
166 |
+
if ( $linkcat->term_id == $excludedcat ) {
|
167 |
+
unset( $link_categories[$link_key] );
|
168 |
+
}
|
169 |
+
}
|
170 |
+
}
|
171 |
+
}
|
172 |
+
|
173 |
+
if ( 'catlist' == $order ) {
|
174 |
+
$temp_link_categories = $link_categories;
|
175 |
+
$link_categories = array();
|
176 |
+
foreach ( $link_categories_query_args['include'] as $sort_link_category_id ) {
|
177 |
+
foreach ( $temp_link_categories as $temp_link_cat ) {
|
178 |
+
if ( $sort_link_category_id == $temp_link_cat->term_id ) {
|
179 |
+
$link_categories[] = $temp_link_cat;
|
180 |
+
continue;
|
181 |
+
}
|
182 |
+
}
|
183 |
+
}
|
184 |
+
}
|
185 |
+
|
186 |
+
if ( $debugmode ) {
|
187 |
+
$output .= "\n<!-- Category Query: " . print_r( $link_categories_query_args, TRUE ) . "-->\n\n";
|
188 |
+
$output .= "\n<!-- Category Results: " . print_r( $link_categories, TRUE ) . "-->\n\n";
|
189 |
+
}
|
190 |
+
|
191 |
+
// Display each category
|
192 |
+
if ( $link_categories ) {
|
193 |
+
|
194 |
+
$output .= '<div id="linktable" class="linktable">';
|
195 |
+
|
196 |
+
if ( 'table' == $flatlist ) {
|
197 |
+
$output .= "<table width=\"" . $table_width . "%\">\n";
|
198 |
+
} elseif ( 'unordered' == $flatlist ) {
|
199 |
+
$output .= "<ul class='menu'>\n";
|
200 |
+
} elseif ( 'dropdown' == $flatlist || 'dropdowndirect' == $flatlist ) {
|
201 |
+
$output .= "<form name='catselect'><select ";
|
202 |
+
if ( 'dropdowndirect' == $flatlist ) {
|
203 |
+
$output .= "onchange='showcategory()' ";
|
204 |
+
}
|
205 |
+
$output .= "name='catdropdown' class='catdropdown'>";
|
206 |
+
}
|
207 |
+
|
208 |
+
foreach ( $link_categories as $catname ) {
|
209 |
+
|
210 |
+
if ( !empty( $currentcatletter ) && $cat_letter_filter != 'no' ) {
|
211 |
+
if ( substr( $catname->name, 0, 1) != $currentcatletter ) {
|
212 |
+
continue;
|
213 |
+
}
|
214 |
+
}
|
215 |
+
|
216 |
+
$catfront = '';
|
217 |
+
$cattext = '';
|
218 |
+
$catitem = '';
|
219 |
+
|
220 |
+
$link_query_args = array( 'post_type' => 'link_library_links', 'posts_per_page' => -1 );
|
221 |
+
$link_query_args['post_status'] = array( 'publish' );
|
222 |
+
|
223 |
+
$link_query_args['tax_query'][] =
|
224 |
+
array(
|
225 |
+
'taxonomy' => 'link_library_category',
|
226 |
+
'field' => 'term_id',
|
227 |
+
'terms' => $catname->term_id,
|
228 |
+
'include_children' => false
|
229 |
+
);
|
230 |
+
|
231 |
+
if ( $showuserlinks ) {
|
232 |
+
$link_query_args['post_status'][] = 'pending';
|
233 |
+
}
|
234 |
+
|
235 |
+
if ( $showinvisible || ( $showinvisibleadmin && $linkeditoruser ) ) {
|
236 |
+
$link_query_args['post_status'][] = 'draft';
|
237 |
+
}
|
238 |
+
|
239 |
+
if ( isset( $_GET['searchll'] ) ) {
|
240 |
+
$searchstring = $_GET['searchll'];
|
241 |
+
if ( !empty( $searchstring ) ) {
|
242 |
+
$link_query_args['s'] = $searchstring;
|
243 |
+
}
|
244 |
+
}
|
245 |
+
|
246 |
+
if ( $current_user_links ) {
|
247 |
+
$user_data = wp_get_current_user();
|
248 |
+
$name_field_value = $user_data->display_name;
|
249 |
+
|
250 |
+
$link_query_args['meta_query'][] =
|
251 |
+
array(
|
252 |
+
'key' => 'link_submitter',
|
253 |
+
'value' => $name_field_value,
|
254 |
+
'compare' => '=',
|
255 |
+
);
|
256 |
+
if ( sizeof( $link_query_args['meta_query'] > 1 ) ) {
|
257 |
+
$link_query_args['meta_query']['relation'] = 'AND';
|
258 |
+
}
|
259 |
+
}
|
260 |
+
|
261 |
+
$the_link_query = new WP_Query( $link_query_args );
|
262 |
+
$linkcount = $the_link_query->post_count;
|
263 |
+
wp_reset_postdata();
|
264 |
+
|
265 |
+
// Display the category name
|
266 |
+
$countcat += 1;
|
267 |
+
if ( $num_columns > 0 && 'table' == $flatlist && ( ( 1 == $countcat % $num_columns ) || ( 1 == $num_columns ) ) ) {
|
268 |
+
$output .= "<tr>\n";
|
269 |
+
}
|
270 |
+
|
271 |
+
if ( 'table' == $flatlist ) {
|
272 |
+
$catfront = "\t<td>";
|
273 |
+
} elseif ( 'unordered' == $flatlist ) {
|
274 |
+
$catfront = "\t<li>";
|
275 |
+
} elseif ( ( 'dropdown' == $flatlist || 'dropdowndirect' == $flatlist ) && ( $linkcount > 0 || !$hide_if_empty )) {
|
276 |
+
$catfront = "\t<option ";
|
277 |
+
if ( !empty( $categoryid ) && $categoryid == $catname->term_id ) {
|
278 |
+
$catfront .= 'selected="selected" ';
|
279 |
+
}
|
280 |
+
$catfront .= 'value="';
|
281 |
+
}
|
282 |
+
|
283 |
+
if ( $linkcount > 0 ) {
|
284 |
+
if ( $showonecatonly ) {
|
285 |
+
if ( 'AJAX' == $showonecatmode || empty( $showonecatmode ) ) {
|
286 |
+
if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
|
287 |
+
$cattext = "<a href='#' onClick=\"showLinkCat" . $settings . "('" . $catname->term_id. "', '" . $settings . "', 1);return false;\" >";
|
288 |
+
} elseif ( 'dropdown' == $flatlist || 'dropdowndirect' == $flatlist ) {
|
289 |
+
$cattext = $catname->term_id;
|
290 |
+
}
|
291 |
+
} elseif ( 'HTMLGET' == $showonecatmode ) {
|
292 |
+
if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
|
293 |
+
$cattext = "<a href='";
|
294 |
+
}
|
295 |
+
|
296 |
+
if ( !empty( $cattargetaddress ) && strpos( $cattargetaddress, '?' ) != false ) {
|
297 |
+
$cattext .= $cattargetaddress . '&cat_id=';
|
298 |
+
} elseif ( !empty( $cattargetaddress ) && strpos( $cattargetaddress, '?' ) == false ) {
|
299 |
+
$cattext .= $cattargetaddress . '?cat_id=';
|
300 |
+
} elseif ( empty( $cattargetaddress ) ) {
|
301 |
+
$cattext .= '?cat_id=';
|
302 |
+
}
|
303 |
+
|
304 |
+
$cattext .= $catname->term_id;
|
305 |
+
|
306 |
+
if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
|
307 |
+
$cattext .= "'>";
|
308 |
+
}
|
309 |
+
} elseif ( 'HTMLGETSLUG' == $showonecatmode ) {
|
310 |
+
if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
|
311 |
+
$cattext = "<a href='";
|
312 |
+
}
|
313 |
+
|
314 |
+
if ( !empty( $cattargetaddress ) && strpos( $cattargetaddress, '?' ) != false ) {
|
315 |
+
$cattext .= $cattargetaddress . '&cat=';
|
316 |
+
} elseif ( !empty( $cattargetaddress ) && strpos( $cattargetaddress, '?' ) == false ) {
|
317 |
+
$cattext .= $cattargetaddress . '?cat=';
|
318 |
+
} elseif ( empty( $cattargetaddress ) ) {
|
319 |
+
$cattext .= '?cat=';
|
320 |
+
}
|
321 |
+
|
322 |
+
$cattext .= $catname->slug;
|
323 |
+
|
324 |
+
if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
|
325 |
+
$cattext .= "'>";
|
326 |
+
}
|
327 |
+
} elseif ( 'HTMLGETCATNAME' == $showonecatmode ) {
|
328 |
+
if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
|
329 |
+
$cattext = "<a href='";
|
330 |
+
}
|
331 |
+
|
332 |
+
/* if ( !empty( $cattargetaddress ) && strpos( $cattargetaddress, '?' ) != false ) {
|
333 |
$cattext .= $cattargetaddress . '&catname=';
|
334 |
} elseif ( !empty( $cattargetaddress ) && strpos( $cattargetaddress, '?' ) == false ) {
|
335 |
$cattext .= $cattargetaddress . '?catname=';
|
337 |
$cattext .= '?catname=';
|
338 |
} */
|
339 |
|
340 |
+
if ( !empty( $_GET ) ) {
|
341 |
+
$get_array = $_GET;
|
342 |
+
} else {
|
343 |
+
$get_array = array();
|
344 |
+
}
|
345 |
+
|
346 |
+
$get_array['catname'] = urlencode( $catname->name );
|
347 |
+
$get_query = add_query_arg( $get_array, $cattargetaddress );
|
348 |
+
|
349 |
+
$cattext .= $get_query;
|
350 |
+
|
351 |
+
if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
|
352 |
+
$cattext .= "'>";
|
353 |
+
}
|
354 |
+
} elseif ( 'HTMLGETPERM' == $showonecatmode ) {
|
355 |
+
if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
|
356 |
+
$cattext = "<a href='";
|
357 |
+
}
|
358 |
+
|
359 |
+
$cattext .= '/' . $rewritepage . '/' . $catname->slug;
|
360 |
+
|
361 |
+
if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
|
362 |
+
$cattext .= "'>";
|
363 |
+
}
|
364 |
+
}
|
365 |
+
} else if ( $catanchor ) {
|
366 |
+
if ( !$pagination ) {
|
367 |
+
if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
|
368 |
+
$cattext = '<a href="';
|
369 |
+
}
|
370 |
+
|
371 |
+
$cattext .= '#' . $catname->slug;
|
372 |
+
|
373 |
+
if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
|
374 |
+
$cattext .= '">';
|
375 |
+
}
|
376 |
+
} elseif ( $pagination ) {
|
377 |
+
if ( 0 == $linksperpage || empty( $linksperpage ) ) {
|
378 |
+
$linksperpage = 5;
|
379 |
+
}
|
380 |
+
|
381 |
+
$pageposition = ( $linkcount + 1 ) / $linksperpage;
|
382 |
+
$ceilpageposition = ceil( $pageposition );
|
383 |
+
if ( 0 == $ceilpageposition && !isset( $_GET['linkresultpage'] ) ) {
|
384 |
+
if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
|
385 |
+
$cattext = '<a href="';
|
386 |
+
}
|
387 |
+
|
388 |
+
$cattext .= get_permalink() . '#' . $catname->slug;
|
389 |
+
|
390 |
+
if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
|
391 |
+
$cattext .= '">';
|
392 |
+
}
|
393 |
+
} else {
|
394 |
+
if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
|
395 |
+
$cattext = '<a href="';
|
396 |
+
}
|
397 |
+
|
398 |
+
$cattext .= '?linkresultpage=' . ( $ceilpageposition == 0 ? 1 : $ceilpageposition ) . '#' . $catname->slug;
|
399 |
+
|
400 |
+
if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
|
401 |
+
$cattext .= '">';
|
402 |
+
}
|
403 |
+
}
|
404 |
+
}
|
405 |
+
} else {
|
406 |
+
$cattext = '';
|
407 |
+
}
|
408 |
+
|
409 |
+
if ( 'dropdown' == $flatlist || 'dropdowndirect' == $flatlist ) {
|
410 |
+
$cattext .= '">';
|
411 |
+
}
|
412 |
+
} else {
|
413 |
+
$cattext .= '<span class="emptycat">';
|
414 |
+
}
|
415 |
+
|
416 |
+
if ( 'right' == $catlistdescpos || empty( $catlistdescpos ) ) {
|
417 |
+
$catitem .= '<div class="linkcatname">' . $catname->name;
|
418 |
+
if ( $showcatlinkcount ) {
|
419 |
+
$catitem .= '<span class="linkcatcount"> (' . $linkcount . ')</span>';
|
420 |
+
}
|
421 |
+
$catitem .= '</div>';
|
422 |
+
}
|
423 |
+
|
424 |
+
if ( $showcategorydescheaders ) {
|
425 |
+
$catname->description = esc_html( $catname->description );
|
426 |
+
$catname->description = str_replace( '[', '<', $catname->description );
|
427 |
+
$catname->description = str_replace( ']', '>', $catname->description );
|
428 |
+
$catname->description = str_replace( """, '"', $catname->description );
|
429 |
+
$catitem .= '<span class="linkcatdesc">' . $catname->description . '</span>';
|
430 |
+
}
|
431 |
+
|
432 |
+
if ( 'left' == $catlistdescpos ) {
|
433 |
+
$catitem .= '<div class="linkcatname">' . $catname->name;
|
434 |
+
if ( $showcatlinkcount ) {
|
435 |
+
$catitem .= '<span class="linkcatcount"> (' . $catname->linkcount . ')</span>';
|
436 |
+
}
|
437 |
+
$catitem .= '</div>';
|
438 |
+
}
|
439 |
+
|
440 |
+
if ( $linkcount > 0 ) {
|
441 |
+
if ( ( $catanchor || $showonecatonly ) && 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
|
442 |
+
$catitem .= '</a>';
|
443 |
+
} else {
|
444 |
+
$catitem .= '</span>';
|
445 |
+
}
|
446 |
+
}
|
447 |
+
|
448 |
+
$output .= ( $catfront . $cattext . $catitem );
|
449 |
+
|
450 |
+
if ( 'table' == $flatlist ) {
|
451 |
+
$catterminator = "</td>\n";
|
452 |
+
} elseif ( 'unordered' == $flatlist ) {
|
453 |
+
$catterminator = "</li>\n";
|
454 |
+
} elseif ( 'dropdown' == $flatlist || 'dropdowndirect' == $flatlist && ( $linkcount > 0 || !$hide_if_empty )) {
|
455 |
+
$catterminator = "</option>\n";
|
456 |
+
}
|
457 |
+
|
458 |
+
$output .= ( $catterminator );
|
459 |
+
|
460 |
+
if ( $num_columns > 0 && 'table' == $flatlist and ( 0 == $countcat % $num_columns ) ) {
|
461 |
+
$output .= "</tr>\n";
|
462 |
+
}
|
463 |
+
}
|
464 |
+
|
465 |
+
if ( $num_columns > 0 && 'table' == $flatlist and ( 3 == $countcat % $num_columns ) ) {
|
466 |
+
$output .= "</tr>\n";
|
467 |
+
}
|
468 |
+
|
469 |
+
if ( 'table' == $flatlist && $link_categories ) {
|
470 |
+
$output .= "</table>\n";
|
471 |
+
} elseif ( 'unordered' == $flatlist && $link_categories ) {
|
472 |
+
$output .= "</ul>\n";
|
473 |
+
} elseif ( ( 'dropdown' == $flatlist || 'dropdowndirect' == $flatlist ) && $link_categories ) {
|
474 |
+
$output .= "</select>\n";
|
475 |
+
if ( 'dropdown' == $flatlist ) {
|
476 |
+
$output .= "<button type='button' onclick='showcategory()'>" . __('Go!', 'link-library') . "</button>";
|
477 |
+
}
|
478 |
+
$output .= '</form>';
|
479 |
+
}
|
480 |
+
|
481 |
+
$output .= "</div>\n";
|
482 |
+
|
483 |
+
if ( $showonecatonly && ( 'AJAX' == $showonecatmode || empty( $showonecatmode ) ) ) {
|
484 |
+
if ( empty( $loadingicon ) ) {
|
485 |
+
$loadingicon = '/icons/Ajax-loader.gif';
|
486 |
+
}
|
487 |
+
|
488 |
+
$output .= "<div class='contentLoading' id='contentLoading" . $settings . "' style='display: none;'><img src='" . plugins_url( $loadingicon, __FILE__ ) . "' alt='Loading data, please wait...'></div>\n";
|
489 |
+
}
|
490 |
+
|
491 |
+
if ( 'dropdown' == $flatlist || 'dropdowndirect' == $flatlist ) {
|
492 |
+
$output .= "<SCRIPT TYPE='text/javascript'>\n";
|
493 |
+
$output .= "\tfunction showcategory(){\n";
|
494 |
+
|
495 |
+
if ( $showonecatonly && ( 'AJAX' == $showonecatmode || empty( $showonecatmode ) ) ) {
|
496 |
+
$output .= 'catidvar = document.catselect.catdropdown.options[document.catselect.catdropdown.selectedIndex].value;';
|
497 |
+
$output .= "showLinkCat" . $settings . "(catidvar, '" . $settings . "', 1);return false; }";
|
498 |
+
} else {
|
499 |
+
$output .= "\t\tlocation=\n";
|
500 |
+
$output .= "document.catselect.catdropdown.options[document.catselect.catdropdown.selectedIndex].value }\n";
|
501 |
+
}
|
502 |
+
$output .= "</SCRIPT>\n";
|
503 |
+
}
|
504 |
+
} else {
|
505 |
+
$output .= '<div>' . __('No categories found', 'link-library') . '.</div>';
|
506 |
+
}
|
507 |
+
|
508 |
+
$output .= "\n<!-- End of Link Library Categories Output -->\n\n";
|
509 |
+
}
|
510 |
+
return $output;
|
|
|
|
|
511 |
}
|
render-link-library-sc.php
CHANGED
@@ -24,6 +24,62 @@ function link_library_highlight_phrase( $str, $phrase, $tag_open = '<strong>', $
|
|
24 |
return $str;
|
25 |
}
|
26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
function link_library_display_pagination( $previouspagenumber, $nextpagenumber, $numberofpages, $pagenumber,
|
28 |
$showonecatonly, $showonecatmode, $AJAXcatid, $settings, $pageID, $currentcatletter ) {
|
29 |
|
@@ -40,7 +96,7 @@ function link_library_display_pagination( $previouspagenumber, $nextpagenumber,
|
|
40 |
}
|
41 |
|
42 |
if ( 1 < $numberofpages ) {
|
43 |
-
$paginationoutput = '<div class="pageselector"
|
44 |
|
45 |
if ( 1 != $pagenumber ) {
|
46 |
$paginationoutput .= '<span class="previousnextactive">';
|
@@ -49,16 +105,17 @@ function link_library_display_pagination( $previouspagenumber, $nextpagenumber,
|
|
49 |
if ( 'AJAX' == $showonecatmode ) {
|
50 |
$paginationoutput .= "<a href=\"#\" onClick=\"showLinkCat" . $settings . "('', '" . $settings . "', " . $previouspagenumber . ");return false;\" >" . __('Previous', 'link-library') . '</a>';
|
51 |
} else {
|
52 |
-
|
|
|
53 |
|
54 |
-
if ( !empty( $currentcatletter ) ) {
|
55 |
$argumentarray['catletter'] = $currentcatletter;
|
56 |
}
|
57 |
|
58 |
$argumentarray = array_merge( $argumentarray, $incomingget );
|
59 |
$targetaddress = esc_url( add_query_arg( $argumentarray ) );
|
60 |
|
61 |
-
$paginationoutput .= '<a href="' . $targetaddress . '">' . __('Previous', 'link-library') . '</a>';
|
62 |
}
|
63 |
} elseif ( $showonecatonly ) {
|
64 |
if ( 'AJAX' == $showonecatmode || empty( $showonecatmode ) ) {
|
@@ -96,9 +153,9 @@ function link_library_display_pagination( $previouspagenumber, $nextpagenumber,
|
|
96 |
if ( 'AJAX' == $showonecatmode ) {
|
97 |
$paginationoutput .= "<a href=\"#\" onClick=\"showLinkCat" . $settings . "('', '" . $settings . "', " . $counter . ");return false;\" >" . $counter . '</a>';
|
98 |
} else {
|
99 |
-
$argumentarray = array
|
100 |
|
101 |
-
if ( !empty( $currentcatletter ) ) {
|
102 |
$argumentarray['catletter'] = $currentcatletter;
|
103 |
}
|
104 |
|
@@ -148,16 +205,16 @@ function link_library_display_pagination( $previouspagenumber, $nextpagenumber,
|
|
148 |
if ( 'AJAX' == $showonecatmode ) {
|
149 |
$paginationoutput .= "<a href=\"#\" onClick=\"showLinkCat" . $settings . "('', '" . $settings . "', " . $nextpagenumber . ");return false;\" >" . __('Next', 'link-library') . '</a>';
|
150 |
} else {
|
151 |
-
$argumentarray = array
|
152 |
|
153 |
-
if ( !empty( $currentcatletter ) ) {
|
154 |
$argumentarray['catletter'] = $currentcatletter;
|
155 |
}
|
156 |
|
157 |
$argumentarray = array_merge( $argumentarray, $incomingget );
|
158 |
$targetaddress = esc_url( add_query_arg( $argumentarray ) );
|
159 |
|
160 |
-
$paginationoutput .= '<a href="' . $targetaddress . '">' . __('Next', 'link-library') . '</a>';
|
161 |
}
|
162 |
} elseif ( $showonecatonly ) {
|
163 |
if ( 'AJAX' == $showonecatmode || empty( $showonecatmode ) ) {
|
@@ -177,7 +234,7 @@ function link_library_display_pagination( $previouspagenumber, $nextpagenumber,
|
|
177 |
$paginationoutput .= '<span class="previousnextinactive">' . __('Next', 'link-library') . '</span>';
|
178 |
}
|
179 |
|
180 |
-
$paginationoutput .= '</div
|
181 |
}
|
182 |
|
183 |
if ( 'AJAX' == $showonecatmode ) {
|
@@ -190,19 +247,19 @@ function link_library_display_pagination( $previouspagenumber, $nextpagenumber,
|
|
190 |
$paginationoutput .= "if (typeof(ajaxobject) != \"undefined\") { ajaxobject.abort(); }\n";
|
191 |
|
192 |
$paginationoutput .= "\tjQuery('#contentLoading" . $settings . "').toggle();" .
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
$paginationoutput .= "}\n";
|
207 |
$paginationoutput .= "}\n";
|
208 |
|
@@ -223,11 +280,11 @@ function link_library_display_pagination( $previouspagenumber, $nextpagenumber,
|
|
223 |
* @return List of categories output for browser
|
224 |
*/
|
225 |
|
226 |
-
function RenderLinkLibrary( $LLPluginClass, $generaloptions, $libraryoptions, $settings, $onlycount = 'false' ) {
|
227 |
|
228 |
-
global $wpdb;
|
229 |
$showonecatonly = '';
|
230 |
$showonecatmode = '';
|
|
|
231 |
|
232 |
$generaloptions = wp_parse_args( $generaloptions, ll_reset_gen_settings( 'return' ) );
|
233 |
extract( $generaloptions );
|
@@ -235,17 +292,47 @@ function RenderLinkLibrary( $LLPluginClass, $generaloptions, $libraryoptions, $s
|
|
235 |
$libraryoptions = wp_parse_args( $libraryoptions, ll_reset_options( 1, 'list', 'return' ) );
|
236 |
extract( $libraryoptions );
|
237 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
238 |
/* This case will only happen if the user entered bad data in the admin page or if someone is trying to inject bad data in SQL query */
|
239 |
-
if ( !empty( $
|
240 |
-
$categorylistarray = explode( ',', $
|
241 |
|
242 |
if ( true === array_filter( $categorylistarray, 'is_int' ) ) {
|
243 |
return 'List of requested categories is invalid. Please go back to Link Library admin panel to correct.';
|
244 |
}
|
245 |
}
|
246 |
|
247 |
-
if ( !empty( $
|
248 |
-
$excludecategorylistarray = explode( ',', $
|
249 |
|
250 |
if ( true === array_filter( $excludecategorylistarray, 'is_int' ) ) {
|
251 |
return 'List of requested excluded categories is invalid. Please go back to Link Library admin panel to correct.';
|
@@ -254,25 +341,43 @@ function RenderLinkLibrary( $LLPluginClass, $generaloptions, $libraryoptions, $s
|
|
254 |
|
255 |
$validdirections = array( 'ASC', 'DESC' );
|
256 |
|
257 |
-
$linkeditoruser = current_user_can( '
|
258 |
|
259 |
-
|
|
|
|
|
|
|
|
|
260 |
|
261 |
$currentcategory = 1;
|
|
|
|
|
|
|
262 |
$categoryname = '';
|
263 |
$mode = 'normal';
|
264 |
|
|
|
265 |
if ( $showonecatonly && 'AJAX' == $showonecatmode && isset( $AJAXcatid ) && empty( $AJAXcatid ) ) {
|
266 |
$AJAXnocatset = true;
|
267 |
-
}
|
268 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
269 |
}
|
270 |
|
271 |
if ( $showonecatonly && 'AJAX' == $showonecatmode && isset( $AJAXcatid ) && !empty( $AJAXcatid ) && ( !isset( $_GET['searchll'] ) || empty( $_GET['searchll'] ) ) ) {
|
272 |
-
$
|
273 |
} elseif ($showonecatonly && 'HTMLGET' == $showonecatmode && isset( $_GET['cat_id'] ) && ( !isset( $_GET['searchll'] ) || ( isset( $_GET['searchll'] ) && empty( $_GET['searchll'] ) ) ) ) {
|
274 |
-
$
|
275 |
-
$AJAXcatid = $
|
276 |
} elseif ($showonecatonly && 'HTMLGETSLUG' == $showonecatmode && isset( $_GET['cat'] ) && ( !isset( $_GET['searchll'] ) || ( isset( $_GET['searchll'] ) && empty( $_GET['searchll'] ) ) ) ) {
|
277 |
$categorysluglist = $_GET['cat'];
|
278 |
} elseif ($showonecatonly && 'HTMLGETCATNAME' == $showonecatmode && isset( $_GET['catname'] ) && ( !isset( $_GET['searchll'] ) || ( isset( $_GET['searchll'] ) && empty( $_GET['searchll'] ) ) ) ) {
|
@@ -280,349 +385,262 @@ function RenderLinkLibrary( $LLPluginClass, $generaloptions, $libraryoptions, $s
|
|
280 |
}elseif ( $showonecatonly && 'HTMLGETPERM' == $showonecatmode && empty( $_GET['searchll'] ) ) {
|
281 |
global $wp_query;
|
282 |
|
283 |
-
|
284 |
-
$categoryname = $wp_query->query_vars['cat_name'];
|
285 |
-
}
|
286 |
-
|
287 |
$AJAXcatid = $categoryname;
|
|
|
288 |
if ( isset( $_GET['cat'] ) ) {
|
289 |
$categorysluglist = $_GET['cat'];
|
290 |
-
} else {
|
291 |
-
$categorysluglist = '';
|
292 |
}
|
293 |
-
} elseif ( $showonecatonly && ( !isset( $AJAXcatid ) || empty( $AJAXcatid ) ) && !empty( $
|
294 |
-
$
|
295 |
-
$AJAXcatid = $
|
296 |
} elseif ( $showonecatonly && ( !isset( $AJAXcatid ) || empty( $AJAXcatid ) ) && isset( $_GET['cat_id'] ) && !empty( $_GET['cat_id'] ) && ( !isset( $_GET['searchll'] ) || ( isset( $_GET['searchll'] ) && empty( $_GET['searchll'] ) ) ) ) {
|
297 |
-
$
|
298 |
-
$AJAXcatid = $
|
299 |
$defaultsinglecat = $AJAXcatid;
|
300 |
-
} elseif ( $showonecatonly && ( !isset( $AJAXcatid ) || empty( $AJAXcatid ) ) && empty( $
|
301 |
-
|
302 |
-
$
|
303 |
-
$catquery .= 'LEFT JOIN ' . $LLPluginClass->db_prefix() . 'term_taxonomy tt ON (t.term_id = tt.term_id) ';
|
304 |
-
$catquery .= 'LEFT JOIN ' . $LLPluginClass->db_prefix() . 'term_relationships tr ON (tt.term_taxonomy_id = tr.term_taxonomy_id) ';
|
305 |
-
$catquery .= 'LEFT JOIN ' . $LLPluginClass->db_prefix() . 'links l ON (tr.object_id = l.link_id) ';
|
306 |
-
$catquery .= 'LEFT JOIN ' . $LLPluginClass->db_prefix() . 'links_extrainfo le ON (l.link_id = le.link_id) ';
|
307 |
-
$catquery .= 'WHERE tt.taxonomy = "link_category" ';
|
308 |
|
309 |
if ( $hide_if_empty ) {
|
310 |
-
$
|
|
|
|
|
311 |
}
|
312 |
|
313 |
-
if (
|
314 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
315 |
}
|
316 |
|
317 |
-
if ( !empty( $
|
318 |
-
$
|
319 |
}
|
320 |
|
321 |
-
if (
|
322 |
-
$
|
323 |
}
|
324 |
|
325 |
-
if (
|
326 |
-
$
|
327 |
-
$name_field_value = $user_data->display_name;
|
328 |
-
|
329 |
-
$catquery .= 'AND le.link_submitter = "' . $name_field_value . '" ';
|
330 |
}
|
331 |
|
332 |
-
$
|
333 |
-
|
334 |
-
$catquery .= ' ORDER by ';
|
335 |
-
|
336 |
-
if ( !$combineresults ) {
|
337 |
-
if ( 'name' == $order ) {
|
338 |
-
$catquery .= ' name ' . ( in_array( $direction, $validdirections ) ? $direction : 'ASC' );
|
339 |
-
} elseif ( 'id' == $order ) {
|
340 |
-
$catquery .= ' t.term_id ' . ( in_array( $direction, $validdirections ) ? $direction : 'ASC' );
|
341 |
-
} elseif ( 'order' == $order ) {
|
342 |
-
$catquery .= ' t.term_order ' . ( in_array( $direction, $validdirections ) ? $direction : 'ASC' );
|
343 |
-
} elseif ( 'catlist' == $order ) {
|
344 |
-
$catquery .= ' FIELD(t.term_id,' . $categorylist . ') ';
|
345 |
-
}
|
346 |
-
|
347 |
-
$catquery .= ', ';
|
348 |
}
|
349 |
|
350 |
-
if (
|
351 |
-
$
|
352 |
}
|
353 |
|
354 |
-
if ( 'name' == $
|
355 |
-
$
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
$
|
360 |
-
} elseif ( 'date' == $linkorder ) {
|
361 |
-
$catquery .= 'link_updated ' . ( in_array( $linkdirection, $validdirections ) ? $direction : 'ASC' );
|
362 |
}
|
363 |
|
364 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
365 |
|
366 |
if ( $debugmode ) {
|
367 |
-
$output .= "\n<!-- AJAX Default Category Query: " . print_r( $
|
368 |
-
$output .= "\n<!-- AJAX Default Category Results: " . print_r( $
|
369 |
}
|
370 |
|
371 |
-
if ( $
|
372 |
-
$
|
373 |
-
$AJAXcatid = $
|
374 |
}
|
375 |
}
|
376 |
|
377 |
$searchterms = '';
|
378 |
|
379 |
if ( isset($_GET['searchll'] ) && !empty( $_GET['searchll'] ) && empty( $singlelinkid ) ) {
|
|
|
|
|
380 |
$searchterms = array();
|
381 |
-
$searchstring = $_GET['searchll'];
|
382 |
|
383 |
$offset = 0;
|
384 |
-
while ( false !== strpos( $
|
385 |
if ( 0 == $offset ) {
|
386 |
-
$offset = strpos( $
|
387 |
} else {
|
388 |
-
$endpos = strpos( $
|
389 |
-
$searchterms[] = substr( $
|
390 |
$strlength = ( $endpos + 1 ) - ( $offset + 1 );
|
391 |
-
$
|
392 |
$offset = 0;
|
393 |
}
|
394 |
}
|
395 |
|
396 |
-
if ( ! empty( $
|
397 |
-
$searchterms = array_merge( $searchterms, explode( " ", $
|
398 |
}
|
399 |
-
|
400 |
-
if ( !empty( $
|
401 |
$mode = 'search';
|
|
|
402 |
}
|
403 |
}
|
404 |
|
405 |
-
$
|
406 |
-
|
407 |
-
if ( $cat_letter_filter != 'no' ) {
|
408 |
-
require_once plugin_dir_path( __FILE__ ) . 'render-link-library-alpha-filter.php';
|
409 |
-
$result = RenderLinkLibraryAlphaFilter( $LLPluginClass, $generaloptions, $libraryoptions, $settings, $mode );
|
410 |
-
|
411 |
-
$currentcatletter = $result['currentcatletter'];
|
412 |
-
|
413 |
-
if ( 'beforelinks' == $cat_letter_filter || 'beforecatsandlinks' == $cat_letter_filter ) {
|
414 |
-
$output .= $result['output'];
|
415 |
-
}
|
416 |
-
}
|
417 |
-
|
418 |
-
$linkquery = 'SELECT distinct *, l.link_id as proper_link_id, UNIX_TIMESTAMP(l.link_updated) as link_date, ';
|
419 |
-
$linkquery .= 'IF (DATE_ADD(l.link_updated, INTERVAL 7 DAY) >= NOW(), 1,0) as recently_updated ';
|
420 |
-
$linkquery .= 'FROM ' . $LLPluginClass->db_prefix() . 'terms t ';
|
421 |
-
$linkquery .= 'LEFT JOIN ' . $LLPluginClass->db_prefix() . 'term_taxonomy tt ON (t.term_id = tt.term_id) ';
|
422 |
-
$linkquery .= 'LEFT JOIN ' . $LLPluginClass->db_prefix() . 'term_relationships tr ON (tt.term_taxonomy_id = tr.term_taxonomy_id) ';
|
423 |
-
$linkquery .= 'LEFT JOIN ' . $LLPluginClass->db_prefix() . 'links l ON (tr.object_id = l.link_id) ';
|
424 |
-
$linkquery .= 'LEFT JOIN ' . $LLPluginClass->db_prefix() . 'links_extrainfo le ON (l.link_id = le.link_id) ';
|
425 |
-
$linkquery .= 'WHERE tt.taxonomy = "link_category" ';
|
426 |
-
|
427 |
-
if ( $hide_if_empty ) {
|
428 |
-
$linkquery .= 'AND l.link_id is not NULL AND l.link_description not like "%LinkLibrary:AwaitingModeration:RemoveTextToApprove%" ';
|
429 |
-
}
|
430 |
-
|
431 |
-
if ( !empty( $currentcatletter ) && $cat_letter_filter != 'no' ) {
|
432 |
-
$linkquery .= ' AND substring(t.name, 1, 1) = "' . $currentcatletter . '" ';
|
433 |
-
}
|
434 |
-
|
435 |
-
if ( ( !empty( $categorylist ) || isset( $_GET['cat_id'] ) ) && empty( $singlelinkid ) ) {
|
436 |
-
$linkquery .= ' AND t.term_id in (' . $categorylist. ')';
|
437 |
-
}
|
438 |
-
|
439 |
-
if ( ( !empty( $categorysluglist ) || isset( $_GET['cat'] ) ) && empty( $singlelinkid ) ) {
|
440 |
-
$linkquery .= ' AND t.slug in ("' . $categorysluglist. '")';
|
441 |
-
}
|
442 |
-
|
443 |
-
if ( ( !empty( $categorynamelist ) || isset( $_GET['catname'] ) ) && empty( $singlelinkid ) ) {
|
444 |
-
$linkquery .= ' AND t.name in ("' . urldecode( $categorynamelist ). '")';
|
445 |
-
}
|
446 |
-
|
447 |
-
if ( isset( $categoryname ) && !empty( $categoryname ) && 'HTMLGETPERM' == $showonecatmode && empty( $singlelinkid ) ) {
|
448 |
-
$linkquery .= ' AND t.slug = "' . $categoryname. '"';
|
449 |
-
}
|
450 |
|
451 |
-
if ( !empty( $
|
452 |
-
$
|
453 |
-
}
|
454 |
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
|
459 |
-
|
460 |
-
$linkquery .= ' AND l.link_visible != "N" ';
|
461 |
-
}
|
462 |
|
463 |
-
|
464 |
-
|
465 |
-
|
|
|
466 |
|
467 |
-
$
|
468 |
-
}
|
469 |
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
if ( !empty( $searchterm ) ) {
|
476 |
-
$searchterm = str_replace( '--', '', $searchterm );
|
477 |
-
$searchterm = str_replace( ';', '', $searchterm );
|
478 |
-
$searchterm = esc_html( stripslashes( $searchterm ) );
|
479 |
-
if ( true == $searchterm ) {
|
480 |
-
if ( 1 == $termnb ) {
|
481 |
-
$linkquery .= ' AND (link_name like "%' . $searchterm . '%" ';
|
482 |
-
$termnb++;
|
483 |
-
} else {
|
484 |
-
$linkquery .= ' OR link_name like "%' . $searchterm . '%" ';
|
485 |
-
}
|
486 |
|
487 |
-
|
488 |
-
|
489 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
490 |
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
|
|
503 |
}
|
504 |
}
|
505 |
|
506 |
-
$
|
507 |
-
|
|
|
508 |
|
509 |
-
|
|
|
|
|
510 |
|
511 |
-
if ( !$combineresults ) {
|
512 |
if ( 'name' == $order ) {
|
513 |
-
$
|
|
|
514 |
} elseif ( 'id' == $order ) {
|
515 |
-
$
|
516 |
-
|
517 |
-
$linkquery .= ' t.term_order ' . ( in_array( $direction, $validdirections ) ? $direction : 'ASC' );
|
518 |
-
} elseif ( 'catlist' == $order ) {
|
519 |
-
$linkquery .= ' FIELD(t.term_id,' . $categorylist . ') ';
|
520 |
}
|
521 |
|
522 |
-
$
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
}
|
528 |
-
|
529 |
-
if ( 'name' == $linkorder || 'random' == $linkorder ) {
|
530 |
-
$linkquery .= 'l.link_name ' . ( in_array( $linkdirection, $validdirections ) ? $linkdirection : 'ASC' );
|
531 |
-
} elseif ( 'id' == $linkorder ) {
|
532 |
-
$linkquery .= 'l.link_id ' . ( in_array( $linkdirection, $validdirections ) ? $linkdirection : 'ASC' );
|
533 |
-
} elseif ( 'order' == $linkorder ) {
|
534 |
-
$linkquery .= 'l.link_order '. ( in_array( $linkdirection, $validdirections ) ? $linkdirection : 'ASC' );
|
535 |
-
} elseif ( 'date' == $linkorder ) {
|
536 |
-
$linkquery .= 'l.link_updated '. ( in_array( $linkdirection, $validdirections ) ? $linkdirection : 'ASC' );
|
537 |
-
} elseif ( 'hits' == $linkorder ) {
|
538 |
-
$linkquery .= ' le.link_visits ' . ( in_array( $direction, $validdirections ) ? $linkdirection : 'ASC' ) . ' , l.link_name ASC ';
|
539 |
-
}
|
540 |
-
|
541 |
-
if ( $pagination && 'search' != $mode && !$onlycount ) {
|
542 |
-
|
543 |
-
$linkitemsforcount = $wpdb->get_results( $linkquery );
|
544 |
-
|
545 |
-
$numberoflinks = count( $linkitemsforcount );
|
546 |
-
|
547 |
-
$quantity = $linksperpage + 1;
|
548 |
-
|
549 |
-
if ( isset( $_POST['linkresultpage'] ) || isset( $_GET['linkresultpage'] ) ) {
|
550 |
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
555 |
}
|
556 |
-
|
557 |
-
$startingitem = ($pagenumber - 1) * $linksperpage;
|
558 |
-
$linkquery .= ' LIMIT ' . $startingitem . ', ' . $quantity;
|
559 |
-
} else {
|
560 |
-
$pagenumber = 1;
|
561 |
-
$linkquery .= ' LIMIT 0, ' . $quantity;
|
562 |
}
|
563 |
-
}
|
564 |
|
565 |
-
|
566 |
-
|
567 |
-
|
|
|
|
|
|
|
|
|
568 |
|
569 |
-
|
570 |
-
|
571 |
-
|
|
|
572 |
|
573 |
-
|
|
|
|
|
|
|
574 |
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
|
586 |
-
|
587 |
-
array_pop( $linkitems );
|
588 |
-
$nextpage = true;
|
589 |
-
} else {
|
590 |
-
$nextpage = false;
|
591 |
-
}
|
592 |
|
593 |
-
|
594 |
-
|
595 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
596 |
}
|
597 |
-
}
|
598 |
-
|
599 |
-
if ( 'random' == $linkorder ) {
|
600 |
-
shuffle($linkitems);
|
601 |
-
}
|
602 |
|
603 |
-
|
604 |
-
|
605 |
-
array_splice( $linkitems, $maxlinks );
|
606 |
}
|
607 |
-
}
|
608 |
-
|
609 |
-
if ( $debugmode ) {
|
610 |
-
echo '<!-- showonecatmode: ' . $showonecatonly . ', AJAXnocatset: ' . $AJAXnocatset . ', nocatonstartup: ' . $nocatonstartup . '-->';
|
611 |
-
}
|
612 |
|
613 |
-
|
614 |
-
if ( ( $linkitems && $showonecatonly && $AJAXnocatset && $nocatonstartup && !isset( $_GET['cat_id'] ) && !isset( $_GET['searchll'] ) ) || ( empty( $linkitems ) && $nocatonstartup && empty( $_GET['searchll'] ) ) ) {
|
615 |
-
$output .= "<div id='linklist" . $settings . "' class='linklist'>\n";
|
616 |
-
$output .= '</div>';
|
617 |
-
} elseif ( $linkitems && $onlycount ) {
|
618 |
-
return count( $linkitems );
|
619 |
-
} elseif ( $linkitems && !$onlycount ) {
|
620 |
-
$output .= "<div id='linklist" . $settings . "' class='linklist'>\n";
|
621 |
-
|
622 |
-
if ( $pagination && $mode != "search" && 'BEFORE' == $paginationposition ) {
|
623 |
$previouspagenumber = $pagenumber - 1;
|
624 |
$nextpagenumber = $pagenumber + 1;
|
625 |
-
|
|
|
|
|
626 |
if ( empty( $AJAXcatid ) && !empty( $categorysluglist ) ) {
|
627 |
$AJAXcatid = $categorysluglist;
|
628 |
}
|
@@ -630,967 +648,1441 @@ function RenderLinkLibrary( $LLPluginClass, $generaloptions, $libraryoptions, $s
|
|
630 |
$AJAXcatid = $categorynamelist;
|
631 |
}
|
632 |
|
633 |
-
$output .= link_library_display_pagination( $previouspagenumber, $nextpagenumber, $
|
634 |
}
|
635 |
|
636 |
-
if ( 'search' == $mode ) {
|
637 |
-
$output .= '<div class="resulttitle">' . __('Search Results for', 'link-library') . ' "' . esc_html( stripslashes( $_GET['searchll'] ) ) . '"</div
|
638 |
}
|
639 |
|
640 |
-
$
|
|
|
|
|
641 |
|
642 |
$xpath = $LLPluginClass->relativePath( dirname( __FILE__ ), ABSPATH );
|
643 |
|
|
|
|
|
|
|
|
|
|
|
|
|
644 |
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
}
|
652 |
|
653 |
-
|
654 |
-
if ( -1 != $currentcategoryid && $showonecatonly && empty( $_GET['searchll'] ) && ! $combineresults ) {
|
655 |
break;
|
656 |
}
|
657 |
|
658 |
-
|
659 |
-
// Close the last category
|
660 |
-
if ( ( is_bool( $displayastable ) && $displayastable ) || 'true' == $displayastable ) {
|
661 |
-
$output .= "\t</table>\n";
|
662 |
-
} elseif ( ( is_bool( $displayastable ) && ! $displayastable ) || 'false' == $displayastable ) {
|
663 |
-
$output .= "\t</ul>\n";
|
664 |
-
} elseif ( 'nosurroundingtags' == $displayastable ) {
|
665 |
-
$output .= '';
|
666 |
-
}
|
667 |
|
668 |
-
|
669 |
-
|
670 |
-
|
|
|
|
|
|
|
|
|
671 |
|
672 |
-
|
673 |
-
|
674 |
-
$
|
675 |
}
|
|
|
|
|
|
|
|
|
676 |
|
677 |
-
|
678 |
-
|
|
|
679 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
680 |
|
681 |
-
|
|
|
|
|
|
|
|
|
682 |
|
683 |
-
|
|
|
684 |
}
|
685 |
|
686 |
-
if (
|
687 |
-
$
|
688 |
-
|
689 |
-
$linkcount = 0;
|
690 |
-
$catlink = '';
|
691 |
-
$cattext = '';
|
692 |
-
$catenddiv = '';
|
693 |
-
|
694 |
-
if ( 1 == $catlistwrappers ) {
|
695 |
-
$output .= '<div class="' . $beforecatlist1 . '">';
|
696 |
-
} else if ( $catlistwrappers == 2 ) {
|
697 |
-
$remainder = $currentcategory % $catlistwrappers;
|
698 |
-
switch ( $remainder ) {
|
699 |
-
|
700 |
-
case 0:
|
701 |
-
$output .= '<div class="' . $beforecatlist2 . '">';
|
702 |
-
break;
|
703 |
-
|
704 |
-
case 1:
|
705 |
-
$output .= '<div class="' . $beforecatlist1 . '">';
|
706 |
-
break;
|
707 |
-
}
|
708 |
-
} else if ( 3 == $catlistwrappers ) {
|
709 |
-
$remainder = $currentcategory % $catlistwrappers;
|
710 |
-
switch ( $remainder ) {
|
711 |
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
|
716 |
-
|
717 |
-
|
718 |
-
|
|
|
719 |
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
|
|
|
|
725 |
|
726 |
-
|
727 |
-
if ( !$hidecategorynames || empty( $hidecategorynames ) ) {
|
728 |
-
$caturl = get_metadata( 'linkcategory', $linkitem['term_id'], 'linkcaturl', true );
|
729 |
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
}
|
735 |
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
742 |
|
743 |
-
|
|
|
|
|
744 |
|
745 |
-
|
746 |
-
|
747 |
-
|
|
|
|
|
|
|
|
|
748 |
|
749 |
-
|
750 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
751 |
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
if ( !empty( $caturl ) ) {
|
756 |
-
$catlink .= '</a>';
|
757 |
-
}
|
758 |
-
}
|
759 |
|
760 |
-
|
761 |
-
$catlink .= '<span class="linklistcatnamedesc">';
|
762 |
-
$linkitem['description'] = str_replace( '[', '<', $linkitem['description'] );
|
763 |
-
$linkitem['description'] = str_replace( ']', '>', $linkitem['description'] );
|
764 |
-
$catlink .= $linkitem['description'];
|
765 |
-
$catlink .= '</span>';
|
766 |
-
}
|
767 |
|
768 |
-
|
769 |
-
|
770 |
-
|
|
|
|
|
771 |
|
772 |
-
|
773 |
-
|
|
|
774 |
|
775 |
-
|
776 |
-
}
|
777 |
-
$catlink .= $linkitem['name'];
|
778 |
-
if ( !empty( $caturl ) ) {
|
779 |
-
$catlink .= '</a>';
|
780 |
-
}
|
781 |
-
}
|
782 |
|
783 |
-
|
784 |
-
|
785 |
-
|
|
|
786 |
|
787 |
-
|
788 |
-
|
789 |
-
|
790 |
-
|
791 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
792 |
|
793 |
-
|
|
|
|
|
|
|
|
|
794 |
|
795 |
-
|
|
|
|
|
796 |
|
797 |
-
|
798 |
-
|
799 |
-
|
800 |
-
$catlink .= plugins_url( 'icons/collapse-32.png', __FILE__ );
|
801 |
}
|
|
|
|
|
|
|
802 |
|
803 |
-
|
|
|
|
|
804 |
|
805 |
-
|
806 |
-
|
|
|
807 |
|
808 |
-
|
809 |
-
|
810 |
-
|
811 |
-
foreach ( $searchterms as $searchterm ) {
|
812 |
-
$linkitem['name'] = link_library_highlight_phrase( $linkitem['name'], $searchterm, '<span class="highlight_word">', '</span>' );
|
813 |
}
|
814 |
}
|
815 |
|
816 |
-
|
|
|
|
|
817 |
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
|
822 |
-
if ( !empty( $linktarget ) )
|
823 |
-
$catlink .= ' target="' . $linktarget . '"';
|
824 |
-
|
825 |
-
$catlink .= '>';
|
826 |
-
}
|
827 |
-
$catlink .= $linkitem['name'];
|
828 |
-
if ( !empty( $caturl ) ) {
|
829 |
-
$catlink .= '</a>';
|
830 |
}
|
831 |
-
}
|
832 |
-
|
833 |
-
if ( $showcategorydesclinks ) {
|
834 |
-
$catlink .= '<span class="linklistcatnamedesc">';
|
835 |
-
$linkitem['description'] = str_replace( '[', '<', $linkitem['description'] );
|
836 |
-
$linkitem['description'] = str_replace(']', '>', $linkitem['description'] );
|
837 |
-
$catlink .= $linkitem['description'];
|
838 |
-
$catlink .= '</span>';
|
839 |
-
}
|
840 |
|
841 |
-
|
842 |
-
|
843 |
-
|
|
|
|
|
|
|
844 |
|
845 |
-
|
846 |
-
$catlink .= ' target="' . $linktarget . '"';
|
847 |
|
848 |
-
|
849 |
-
|
850 |
-
|
851 |
-
if ( !empty( $caturl ) ) {
|
852 |
-
$catlink .= '</a>';
|
853 |
-
}
|
854 |
-
}
|
855 |
|
856 |
-
|
857 |
-
|
858 |
-
$catlink .= '<img class="arrow-down" src="';
|
859 |
|
860 |
-
|
861 |
-
|
862 |
-
|
863 |
-
|
864 |
-
|
|
|
|
|
|
|
|
|
865 |
|
866 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
867 |
|
868 |
-
|
|
|
|
|
869 |
|
870 |
-
|
871 |
-
|
872 |
-
} else {
|
873 |
-
$catlink .= plugins_url( 'icons/collapse-32.png', __FILE__ );
|
874 |
-
}
|
875 |
|
876 |
-
|
877 |
-
|
878 |
-
|
|
|
|
|
|
|
|
|
879 |
|
880 |
-
|
881 |
-
|
|
|
882 |
|
883 |
-
|
884 |
-
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
}
|
889 |
|
890 |
-
|
|
|
891 |
|
892 |
-
|
893 |
-
|
894 |
-
|
895 |
-
|
|
|
896 |
|
897 |
-
|
898 |
-
|
899 |
-
|
900 |
-
$catstartlist .= '<div class="linklisttableheaders"><tr>';
|
901 |
|
902 |
-
|
903 |
-
|
904 |
-
|
|
|
|
|
|
|
|
|
905 |
|
906 |
-
|
907 |
-
$catstartlist .= '<th><div class="linklistcolumnheader">' . $descheader . '</div></th>';
|
908 |
-
}
|
909 |
|
910 |
-
|
911 |
-
|
912 |
-
|
913 |
|
914 |
-
|
915 |
-
|
916 |
-
$catstartlist .= '';
|
917 |
-
}
|
918 |
-
} elseif ( ( ( is_bool( $displayastable ) && ! $displayastable ) || 'false' == $displayastable ) && ( ! $combineresults || ( $combineresults && $linkcount == 0 ) ) ) {
|
919 |
-
$catstartlist = "\n\t<ul>\n";
|
920 |
-
} elseif ( 'nosurroundingtags' == $displayastable ) {
|
921 |
-
$catstartlist = '';
|
922 |
-
} else {
|
923 |
-
$catstartlist = '';
|
924 |
-
}
|
925 |
|
926 |
-
|
|
|
|
|
927 |
|
928 |
-
|
929 |
-
|
930 |
-
|
931 |
-
}
|
932 |
|
933 |
-
|
|
|
|
|
934 |
|
935 |
-
|
936 |
-
|
|
|
|
|
|
|
|
|
|
|
937 |
|
938 |
-
|
939 |
-
|
940 |
-
|
|
|
|
|
|
|
|
|
941 |
|
942 |
-
|
943 |
-
|
944 |
-
|
945 |
|
946 |
-
|
|
|
947 |
|
948 |
-
|
949 |
-
|
950 |
-
|
951 |
-
|
952 |
-
|
953 |
-
|
954 |
-
|
955 |
-
|
956 |
-
if ( empty( $rss_items ) && $rssfeedinlineskipempty ) {
|
957 |
-
continue;
|
958 |
-
}
|
959 |
-
}
|
960 |
-
}
|
961 |
-
|
962 |
-
if ( true == $debugmode ) {
|
963 |
-
$output .= "\n<!-- Time to render RSS Feed section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimerssfeed ) . " --> \n";
|
964 |
-
}
|
965 |
-
}
|
966 |
-
|
967 |
-
if ( $showuserlinks || strpos( $linkitem['link_description'], 'LinkLibrary:AwaitingModeration:RemoveTextToApprove' ) == false ) {
|
968 |
-
$linkcount = $linkcount + 1;
|
969 |
-
|
970 |
-
if ( $linkaddfrequency > 0 ) {
|
971 |
-
if ( ( $linkcount - 1 ) % $linkaddfrequency == 0 ) {
|
972 |
-
$output .= stripslashes( $addbeforelink );
|
973 |
-
}
|
974 |
-
}
|
975 |
|
976 |
-
|
977 |
-
|
978 |
-
|
979 |
|
980 |
-
|
|
|
|
|
|
|
|
|
981 |
|
982 |
-
|
983 |
-
$output .= '<span class="recently_updated">' . $updatedlabel . '</span>';
|
984 |
-
}
|
985 |
|
986 |
-
|
987 |
-
if ( !empty( $linkitem['link_url'] ) ) {
|
988 |
-
$the_link = esc_html( $linkitem['link_url'] );
|
989 |
-
}
|
990 |
|
991 |
-
|
992 |
-
|
993 |
-
|
994 |
-
|
995 |
-
|
996 |
-
}
|
997 |
-
|
998 |
-
$cat_extra_query_string = get_metadata( 'linkcategory', $linkitem['term_id'], 'linkextraquerystring', true );
|
999 |
-
if ( !empty( $cat_extra_query_string ) ) {
|
1000 |
-
parse_str( $cat_extra_query_string, $cat_expanded_query_string );
|
1001 |
-
if ( !empty( $cat_expanded_query_string ) ) {
|
1002 |
-
$the_link = add_query_arg( $cat_expanded_query_string, $the_link );
|
1003 |
-
}
|
1004 |
-
}
|
1005 |
|
1006 |
-
|
1007 |
-
|
1008 |
-
|
1009 |
-
}
|
1010 |
|
1011 |
-
|
|
|
1012 |
|
1013 |
-
|
1014 |
-
|
1015 |
-
|
1016 |
-
|
1017 |
-
|
|
|
1018 |
|
1019 |
-
|
1020 |
-
$rel = ' rel="' . $rel . '"';
|
1021 |
-
} elseif ( !empty( $rel ) && ( $nofollow || $linkitem['link_no_follow'] ) ) {
|
1022 |
-
$rel = ' rel="' . $rel . ' nofollow"';
|
1023 |
-
} elseif ( empty( $rel ) && ( $nofollow || $linkitem['link_no_follow'] ) ) {
|
1024 |
-
$rel = ' rel="nofollow"';
|
1025 |
-
}
|
1026 |
|
1027 |
-
|
1028 |
-
|
1029 |
-
|
1030 |
-
|
1031 |
-
|
1032 |
-
|
1033 |
-
$desc = str_replace("]", ">", $desc);
|
1034 |
-
$textfield = stripslashes( $linkitem['link_textfield'] );
|
1035 |
-
$textfield = str_replace( '[', '<', $textfield );
|
1036 |
-
$textfield = str_replace( ']', '>', $textfield );
|
1037 |
-
} else {
|
1038 |
-
$descnotes = esc_html( $linkitem['link_notes'], ENT_QUOTES );
|
1039 |
-
$desc = esc_html($linkitem['link_description'], ENT_QUOTES);
|
1040 |
-
$textfield = stripslashes( $linkitem['link_textfield'] );
|
1041 |
-
}
|
1042 |
|
1043 |
-
|
1044 |
-
|
|
|
|
|
1045 |
|
1046 |
-
|
1047 |
-
|
1048 |
-
|
1049 |
-
$desc = link_library_highlight_phrase( $desc, $searchterm, '<span class="highlight_word">', '</span>' );
|
1050 |
-
$name = link_library_highlight_phrase( $linkitem['link_name'], $searchterm, '<span class="highlight_word">', '</span>' );
|
1051 |
-
$textfield = link_library_highlight_phrase( $textfield, $searchterm, '<span class="highlight_word">', '</span>' );
|
1052 |
-
}
|
1053 |
-
} else {
|
1054 |
-
$name = $cleanname;
|
1055 |
-
}
|
1056 |
|
1057 |
-
|
1058 |
-
$title = $cleanname;
|
1059 |
-
} elseif ( 'linkdesc' == $linktitlecontent ) {
|
1060 |
-
$title = $cleandesc;
|
1061 |
-
}
|
1062 |
|
1063 |
-
|
1064 |
-
|
1065 |
-
|
1066 |
-
|
1067 |
-
|
|
|
|
|
1068 |
|
1069 |
-
|
1070 |
-
|
1071 |
-
|
|
|
|
|
1072 |
|
1073 |
-
|
|
|
|
|
|
|
|
|
|
|
1074 |
|
1075 |
-
|
1076 |
-
|
1077 |
-
|
1078 |
-
|
1079 |
-
|
1080 |
-
|
1081 |
-
|
1082 |
-
|
1083 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1084 |
|
1085 |
-
|
1086 |
-
$dragndroporder = '1,2,3,4,5,6,7,8,9,10,11,12,13,14';
|
1087 |
-
}
|
1088 |
|
1089 |
-
|
1090 |
|
1091 |
-
|
1092 |
-
|
1093 |
-
|
|
|
|
|
1094 |
|
1095 |
-
|
1096 |
-
|
1097 |
-
}
|
1098 |
|
1099 |
-
|
1100 |
-
foreach ( $dragndroparray as $arrayelements ) {
|
1101 |
-
switch ( $arrayelements ) {
|
1102 |
|
1103 |
-
|
1104 |
-
|
|
|
|
|
|
|
1105 |
|
1106 |
-
|
1107 |
-
|
|
|
1108 |
|
1109 |
-
|
1110 |
-
|
1111 |
-
$
|
1112 |
}
|
1113 |
|
1114 |
-
$
|
|
|
|
|
|
|
|
|
1115 |
|
1116 |
-
|
1117 |
-
|
1118 |
-
$imageoutput .= $the_link;
|
1119 |
-
} elseif ( 'secondary' == $sourceimage ) {
|
1120 |
-
$imageoutput .= $the_second_link;
|
1121 |
}
|
1122 |
-
} else {
|
1123 |
-
$imageoutput .= admin_url( 'admin-ajax.php' . '?action=link_library_popup_content&linkid=' . $linkitem['proper_link_id'] . '&settings=' . $settings . '&height=' . ( empty( $popup_height ) ? 300 : $popup_height ) . '&width=' . ( empty( $popup_width ) ? 400 : $popup_width ) . '&xpath=' . $xpath );
|
1124 |
}
|
1125 |
|
1126 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1127 |
|
1128 |
-
|
1129 |
-
|
1130 |
-
$imageoutput .= '<img src="http://www.robothumb.com/src/?url=' . $the_link . '&size=' . $generaloptions['thumbnailsize'] . '"';
|
1131 |
-
} elseif ( $thumbnailgenerator == 'thumbshots' ) {
|
1132 |
-
if ( !empty( $thumbshotscid ) ) {
|
1133 |
-
$imageoutput .= '<img src="http://images.thumbshots.com/image.aspx?cid=' . rawurlencode( $thumbshotscid ) . '&v=1&w=120&url=' . $the_link . '"';
|
1134 |
}
|
|
|
|
|
1135 |
}
|
1136 |
-
|
1137 |
-
|
1138 |
-
|
1139 |
-
|
1140 |
-
// If it's a relative path
|
1141 |
-
$imageoutput .= '<img src="' . get_option( 'siteurl' ) . $linkitem['link_image'] . '"';
|
1142 |
}
|
|
|
1143 |
}
|
|
|
1144 |
|
1145 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1146 |
|
1147 |
-
|
|
|
|
|
|
|
|
|
|
|
1148 |
|
1149 |
-
|
1150 |
-
|
1151 |
-
}
|
1152 |
|
1153 |
-
|
|
|
|
|
|
|
|
|
|
|
1154 |
|
1155 |
-
|
1156 |
-
|
|
|
|
|
1157 |
|
1158 |
-
|
1159 |
-
|
1160 |
-
|
|
|
|
|
1161 |
|
1162 |
-
|
1163 |
|
1164 |
-
|
|
|
|
|
|
|
|
|
1165 |
|
1166 |
-
|
1167 |
-
|
1168 |
-
|
|
|
|
|
1169 |
|
1170 |
-
|
|
|
|
|
|
|
1171 |
}
|
1172 |
|
1173 |
-
|
1174 |
-
|
1175 |
-
|
1176 |
-
|
1177 |
-
|
1178 |
-
}
|
1179 |
|
1180 |
-
|
|
|
|
|
|
|
|
|
1181 |
|
1182 |
-
|
1183 |
-
|
|
|
|
|
|
|
1184 |
|
1185 |
-
|
1186 |
-
|
1187 |
-
|
1188 |
-
|
1189 |
-
|
1190 |
-
}
|
1191 |
-
} else {
|
1192 |
-
$output .= admin_url( 'admin-ajax.php' . '?action=link_library_popup_content&linkid=' . $linkitem['proper_link_id'] . '&settings=' . $settings . '&height=' . ( empty( $popup_height ) ? 300 : $popup_height ) . '&width=' . ( empty( $popup_width ) ? 400 : $popup_width ) . '&xpath=' . $xpath );
|
1193 |
-
}
|
1194 |
|
1195 |
-
|
1196 |
-
|
1197 |
-
|
|
|
|
|
1198 |
|
1199 |
-
|
1200 |
-
|
|
|
|
|
|
|
1201 |
|
1202 |
-
|
|
|
|
|
|
|
|
|
1203 |
|
1204 |
-
|
1205 |
-
|
1206 |
-
|
|
|
|
|
1207 |
|
1208 |
-
|
1209 |
-
|
1210 |
-
|
1211 |
-
|
1212 |
-
|
1213 |
|
1214 |
-
|
1215 |
-
|
1216 |
-
|
|
|
|
|
1217 |
|
1218 |
-
|
|
|
|
|
|
|
|
|
1219 |
|
1220 |
-
|
1221 |
-
|
1222 |
-
|
|
|
1223 |
}
|
1224 |
|
1225 |
-
|
|
|
|
|
|
|
|
|
1226 |
|
1227 |
-
|
1228 |
|
1229 |
-
if (
|
1230 |
-
|
1231 |
-
|
1232 |
-
|
|
|
1233 |
|
1234 |
-
|
|
|
|
|
|
|
|
|
1235 |
|
1236 |
-
|
1237 |
|
1238 |
-
|
1239 |
-
|
1240 |
-
|
|
|
1241 |
}
|
1242 |
|
1243 |
-
|
1244 |
|
1245 |
-
|
|
|
|
|
1246 |
|
1247 |
-
|
1248 |
-
if ( true == $debugmode ) {
|
1249 |
-
$starttimedesc = microtime ( true );
|
1250 |
-
}
|
1251 |
|
1252 |
-
|
|
|
1253 |
|
1254 |
if ( true == $debugmode ) {
|
1255 |
-
$
|
1256 |
}
|
1257 |
-
}
|
1258 |
|
1259 |
-
|
|
|
|
|
1260 |
|
1261 |
-
|
1262 |
|
1263 |
-
|
1264 |
-
|
1265 |
-
|
1266 |
-
|
|
|
|
|
|
|
1267 |
|
1268 |
-
|
|
|
|
|
|
|
|
|
1269 |
|
1270 |
if ( true == $debugmode ) {
|
1271 |
-
$output .= "\n<!-- Time to render
|
1272 |
}
|
1273 |
}
|
1274 |
|
1275 |
-
|
|
|
|
|
|
|
|
|
1276 |
|
1277 |
-
|
|
|
|
|
1278 |
|
1279 |
-
|
1280 |
-
if ( true == $debugmode ) {
|
1281 |
-
$starttimerssicon = microtime ( true );
|
1282 |
-
}
|
1283 |
|
1284 |
-
|
|
|
|
|
1285 |
|
1286 |
-
|
1287 |
-
|
1288 |
-
|
|
|
1289 |
|
1290 |
-
|
1291 |
-
|
|
|
|
|
1292 |
}
|
|
|
1293 |
|
1294 |
-
|
1295 |
-
|
|
|
|
|
|
|
1296 |
}
|
|
|
1297 |
|
1298 |
-
|
|
|
|
|
|
|
1299 |
|
1300 |
-
|
1301 |
-
|
1302 |
-
|
1303 |
}
|
1304 |
|
1305 |
-
if ( $
|
1306 |
-
|
1307 |
-
|
1308 |
-
|
|
|
1309 |
|
1310 |
-
|
1311 |
-
|
1312 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1313 |
|
1314 |
-
|
1315 |
-
|
1316 |
|
1317 |
-
|
1318 |
-
|
1319 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1320 |
|
1321 |
-
|
1322 |
-
|
1323 |
-
|
|
|
|
|
1324 |
|
1325 |
-
|
|
|
|
|
|
|
|
|
1326 |
}
|
1327 |
}
|
1328 |
-
break;
|
1329 |
-
case 7: //------------------ Web Link Output --------------------
|
1330 |
-
|
1331 |
-
if ( 'false' != $displayweblink &&
|
1332 |
-
( !$nooutputempty ||
|
1333 |
-
( $nooutputempty && !empty( $the_link ) && 'label' != $displayweblink && '#' != $the_link && 'primary' == $sourceweblink ) ||
|
1334 |
-
( $nooutputempty && !empty( $the_second_link ) && 'label' != $displayweblink && '#' != $the_second_link && 'secondary' == $sourceweblink ) ||
|
1335 |
-
( $nooutputempty && !empty( $weblinklabel ) && 'label' == $displayweblink && !empty( $the_link ) && '#' != $the_link && 'primary' == $sourceweblink ) ||
|
1336 |
-
( $nooutputempty && !empty( $weblinklabel ) && 'label' == $displayweblink && !empty( $the_second_link ) && '#' != $the_second_link && 'secondary' == $sourceweblink )
|
1337 |
-
) ) {
|
1338 |
-
if ( true == $debugmode ) {
|
1339 |
-
$starttimerweblink = microtime ( true );
|
1340 |
-
}
|
1341 |
-
|
1342 |
-
if ( 'addressonly' == $displayweblink ) {
|
1343 |
-
$output .= $between . stripslashes( $beforeweblink );
|
1344 |
-
$output .= $the_link;
|
1345 |
-
$output .= stripslashes( $afterweblink );
|
1346 |
-
} else {
|
1347 |
-
$output .= $between . stripslashes( $beforeweblink ) . '<a href="';
|
1348 |
-
|
1349 |
-
if ( 'primary' == $sourceweblink || empty( $sourceweblink ) ) {
|
1350 |
-
$output .= $the_link;
|
1351 |
-
} elseif ( 'secondary' == $sourceweblink ) {
|
1352 |
-
$output .= $the_second_link;
|
1353 |
-
}
|
1354 |
|
1355 |
-
|
|
|
|
|
1356 |
|
1357 |
-
|
1358 |
-
if ( ( 'primary' == $sourceweblink || empty( $sourceweblink ) ) && ! empty( $the_link ) ) {
|
1359 |
-
$output .= $the_link;
|
1360 |
-
} elseif ( 'secondary' == $sourceweblink && ! empty( $the_second_link ) ) {
|
1361 |
-
$output .= $the_second_link;
|
1362 |
-
}
|
1363 |
-
} elseif ( 'label' == $displayweblink && ! empty( $weblinklabel ) ) {
|
1364 |
-
$output .= $weblinklabel;
|
1365 |
-
}
|
1366 |
|
1367 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1368 |
}
|
|
|
1369 |
|
1370 |
-
|
1371 |
-
|
1372 |
-
}
|
1373 |
}
|
1374 |
|
1375 |
-
|
1376 |
-
case 8: //------------------ Telephone Output --------------------
|
1377 |
|
1378 |
-
|
1379 |
-
|
1380 |
-
|
1381 |
-
|
1382 |
-
|
1383 |
-
) {
|
1384 |
-
if ( true == $debugmode ) {
|
1385 |
-
$starttimertelephone = microtime ( true );
|
1386 |
}
|
|
|
1387 |
|
1388 |
-
|
|
|
|
|
1389 |
|
1390 |
-
|
1391 |
-
|
1392 |
|
1393 |
-
|
1394 |
-
|
1395 |
-
} elseif ( 'secondary' == $sourcetelephone && !empty( $the_second_link ) ) {
|
1396 |
-
$output .= $the_second_link;
|
1397 |
-
}
|
1398 |
|
1399 |
-
|
1400 |
-
|
|
|
|
|
1401 |
|
1402 |
-
|
1403 |
-
$output .= $linkitem['link_telephone'];
|
1404 |
-
} elseif ( 'label' == $showtelephone ) {
|
1405 |
-
$output .= $telephonelabel;
|
1406 |
-
}
|
1407 |
|
1408 |
-
|
1409 |
-
|
1410 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1411 |
|
1412 |
-
|
1413 |
|
1414 |
-
|
1415 |
-
|
1416 |
-
|
1417 |
-
|
1418 |
-
|
1419 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1420 |
|
1421 |
-
|
1422 |
-
if ( true == $debugmode ) {
|
1423 |
-
$starttimeremail = microtime ( true );
|
1424 |
-
}
|
1425 |
|
1426 |
-
|
1427 |
|
1428 |
-
|
1429 |
-
|
|
|
1430 |
|
1431 |
-
|
1432 |
-
if ( false === strpos( $linkitem['link_email'], '@' ) ) {
|
1433 |
-
$output .= esc_url( $linkitem['link_email'] );
|
1434 |
-
} else {
|
1435 |
-
$output .= 'mailto:' . $linkitem['link_email'];
|
1436 |
-
}
|
1437 |
-
} elseif ( 'command' == $showemail || 'commandlabel' == $showemail ) {
|
1438 |
-
$newcommand = str_replace( '#email', $linkitem['link_email'], $emailcommand );
|
1439 |
-
$cleanlinkname = str_replace( ' ', '%20', $linkitem['link_name'] );
|
1440 |
-
$newcommand = str_replace( '#company', $cleanlinkname, $newcommand );
|
1441 |
-
$output .= $newcommand;
|
1442 |
-
}
|
1443 |
|
1444 |
-
|
1445 |
-
|
1446 |
|
1447 |
-
|
1448 |
-
|
1449 |
-
|
1450 |
-
$output .= $emaillabel;
|
1451 |
-
}
|
1452 |
|
1453 |
-
|
1454 |
-
$output .= '</a>';
|
1455 |
-
}
|
1456 |
|
1457 |
-
|
1458 |
|
1459 |
-
|
1460 |
-
|
1461 |
-
|
1462 |
-
}
|
1463 |
|
1464 |
-
|
1465 |
-
|
1466 |
|
1467 |
-
|
1468 |
-
|
1469 |
-
|
1470 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1471 |
|
1472 |
-
|
1473 |
-
$output .= $linkitem['link_visits'];
|
1474 |
-
$output .= stripslashes( $afterlinkhits );
|
1475 |
|
1476 |
-
|
1477 |
-
$output .= "\n<!-- Time to render link hits section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimerhits ) . " --> \n";
|
1478 |
-
}
|
1479 |
-
}
|
1480 |
|
1481 |
-
|
|
|
|
|
|
|
1482 |
|
1483 |
-
|
1484 |
|
1485 |
-
|
1486 |
-
if ( true == $debugmode ) {
|
1487 |
-
$starttimerrating = microtime ( true );
|
1488 |
-
}
|
1489 |
|
1490 |
-
|
1491 |
-
|
1492 |
-
|
|
|
1493 |
|
1494 |
-
|
1495 |
-
$output .= "\n<!-- Time to render link rating section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimerrating ) . " --> \n";
|
1496 |
-
}
|
1497 |
-
}
|
1498 |
|
1499 |
-
|
1500 |
|
1501 |
-
|
|
|
|
|
|
|
1502 |
|
1503 |
-
|
1504 |
-
if ( true == $debugmode ) {
|
1505 |
-
$starttimerlargedesc = microtime ( true );
|
1506 |
-
}
|
1507 |
|
1508 |
-
|
1509 |
-
|
1510 |
-
|
|
|
1511 |
|
1512 |
-
|
1513 |
-
$output .= "\n<!-- Time to render link large description section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimerlargedesc ) . " --> \n";
|
1514 |
-
}
|
1515 |
-
}
|
1516 |
|
1517 |
-
|
1518 |
|
1519 |
-
|
|
|
|
|
|
|
1520 |
|
1521 |
-
|
1522 |
-
if ( true == $debugmode ) {
|
1523 |
-
$starttimersubmittername = microtime ( true );
|
1524 |
-
}
|
1525 |
|
1526 |
-
|
1527 |
-
|
1528 |
-
|
|
|
1529 |
|
1530 |
-
|
1531 |
-
$output .= "\n<!-- Time to render link large description section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimersubmittername ) . " --> \n";
|
1532 |
-
}
|
1533 |
-
}
|
1534 |
|
1535 |
-
|
1536 |
|
1537 |
-
|
|
|
|
|
|
|
1538 |
|
1539 |
-
|
1540 |
-
$linkitem['description'] = str_replace( ']', '>', $linkitem['description'] );
|
1541 |
|
1542 |
-
|
1543 |
-
|
1544 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1545 |
}
|
|
|
1546 |
|
1547 |
-
|
1548 |
|
1549 |
-
|
1550 |
-
|
|
|
1551 |
}
|
1552 |
}
|
1553 |
|
1554 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1555 |
}
|
1556 |
-
}
|
1557 |
-
}
|
1558 |
|
1559 |
-
|
1560 |
-
|
1561 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1562 |
|
1563 |
-
|
|
|
|
|
1564 |
|
1565 |
-
|
1566 |
-
|
1567 |
-
|
|
|
|
|
1568 |
}
|
1569 |
}
|
1570 |
}
|
|
|
|
|
1571 |
|
1572 |
-
if (
|
1573 |
-
$output .=
|
1574 |
}
|
1575 |
-
|
1576 |
-
} // end while
|
1577 |
-
|
1578 |
-
// Close the last category
|
1579 |
-
if ( ( is_bool( $displayastable ) && $displayastable ) || 'true' == $displayastable ) {
|
1580 |
-
$output .= "\t</table>\n";
|
1581 |
-
} elseif ( ( is_bool( $displayastable ) && ! $displayastable ) || 'false' == $displayastable ) {
|
1582 |
-
$output .= "\t</ul>\n";
|
1583 |
-
} elseif ( 'nosurroundingtags' == $displayastable ) {
|
1584 |
-
$output .= '';
|
1585 |
-
}
|
1586 |
-
|
1587 |
-
if ( !empty( $catlistwrappers ) && ! $combineresults ) {
|
1588 |
-
$output .= '</div>';
|
1589 |
-
}
|
1590 |
-
|
1591 |
-
if ( !empty( $afterlastlink ) ) {
|
1592 |
-
$output .= '<!-- here -->';
|
1593 |
-
$output .= stripslashes( $afterlastlink );
|
1594 |
}
|
1595 |
|
1596 |
if ( $usethumbshotsforimages ) {
|
@@ -1600,23 +2092,19 @@ function RenderLinkLibrary( $LLPluginClass, $generaloptions, $libraryoptions, $s
|
|
1600 |
$output .= '<div class="llthumbshotsnotice"><a href="http://www.thumbshots.com" target="_blank" title="Thumbnails Screenshots by Thumbshots">Thumbnail Screenshots by Thumbshots</a></div>';
|
1601 |
}
|
1602 |
}
|
|
|
|
|
|
|
1603 |
|
1604 |
-
|
1605 |
-
|
1606 |
-
|
1607 |
-
|
1608 |
-
if ( ! $combineresults ) {
|
1609 |
-
$output .= '</div>';
|
1610 |
-
}
|
1611 |
|
1612 |
-
|
1613 |
-
|
1614 |
-
$nextpagenumber = $pagenumber + 1;
|
1615 |
-
$pageID = get_the_ID();
|
1616 |
-
|
1617 |
-
$output .= link_library_display_pagination( $previouspagenumber, $nextpagenumber, $numberofpages, $pagenumber, $showonecatonly, $showonecatmode, $AJAXcatid, $settings, $pageID, $currentcatletter );
|
1618 |
-
}
|
1619 |
|
|
|
1620 |
$xpath = $LLPluginClass->relativePath( dirname( __FILE__ ), ABSPATH );
|
1621 |
$nonce = wp_create_nonce( 'll_tracker' );
|
1622 |
|
@@ -1626,40 +2114,59 @@ function RenderLinkLibrary( $LLPluginClass, $generaloptions, $libraryoptions, $s
|
|
1626 |
$output .= "jQuery('.arrow-up').hide();\n";
|
1627 |
$output .= "jQuery('#linklist" . $settings . " a.track_this_link').click(function() {\n";
|
1628 |
$output .= "linkid = this.id;\n";
|
1629 |
-
$output .= "linkid = linkid.substring(5)
|
1630 |
-
$output .= "path = '" . $xpath . "'
|
1631 |
$output .= "jQuery.ajax( {" .
|
1632 |
-
|
1633 |
-
|
1634 |
-
|
1635 |
-
|
1636 |
-
|
1637 |
-
|
1638 |
$output .= "return true;\n";
|
1639 |
$output .= "});\n";
|
1640 |
$output .= "jQuery('#linklist" . $settings . " .expandlinks').click(function() {\n";
|
1641 |
$output .= "target = '.' + jQuery(this).attr('id');\n";
|
1642 |
-
$output .= "jQuery(target).
|
1643 |
-
$output .= "jQuery(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1644 |
$output .= "});\n";
|
1645 |
$output .= "});\n";
|
1646 |
$output .= "</script>";
|
1647 |
unset( $xpath );
|
1648 |
-
|
1649 |
|
1650 |
-
|
1651 |
|
1652 |
-
|
1653 |
-
$output .=
|
1654 |
-
|
1655 |
-
$output .= "
|
1656 |
-
} else {
|
1657 |
-
$output .= "<div id='linklist" . $settings . "' class='linklist'>\n";
|
1658 |
-
$output .= __('No links found', 'link-library') . ".\n";
|
1659 |
-
$output .= "</div>";
|
1660 |
}
|
1661 |
|
1662 |
-
|
|
|
|
|
1663 |
|
1664 |
return do_shortcode( $output );
|
1665 |
}
|
24 |
return $str;
|
25 |
}
|
26 |
|
27 |
+
function link_library_get_category_path( $slug ) {
|
28 |
+
|
29 |
+
$cat_path = '';
|
30 |
+
|
31 |
+
$term = get_term_by( 'slug', $slug, 'link_library_category' );
|
32 |
+
|
33 |
+
if ( !empty( $term ) && $term->parent != 0 ) {
|
34 |
+
$parent_term = get_term_by( 'id', $term->parent, 'link_library_category' );
|
35 |
+
if ( !empty( $parent_term ) ) {
|
36 |
+
$cat_path .= link_library_get_category_path( $parent_term->slug );
|
37 |
+
}
|
38 |
+
}
|
39 |
+
|
40 |
+
$cat_path .= '/' . $slug;
|
41 |
+
return $cat_path;
|
42 |
+
}
|
43 |
+
|
44 |
+
function link_library_get_breadcrumb_path( $slug, $rewritepage, $level = 0 ) {
|
45 |
+
$cat_path = '';
|
46 |
+
|
47 |
+
$term = get_term_by( 'slug', $slug, 'link_library_category' );
|
48 |
+
|
49 |
+
if ( !empty( $term ) ) {
|
50 |
+
$parent_term = get_term_by( 'id', $term->parent, 'link_library_category' );
|
51 |
+
if ( !empty( $parent_term ) ) {
|
52 |
+
$cat_path .= link_library_get_breadcrumb_path( $parent_term->slug, $rewritepage, $level + 1 ) . ' - ';
|
53 |
+
}
|
54 |
+
}
|
55 |
+
|
56 |
+
$new_link = home_url() . '/' . $rewritepage . link_library_get_category_path( $slug );
|
57 |
+
if ( isset( $_GET['link_tags'] ) && !empty( $_GET['link_tags'] ) ) {
|
58 |
+
$new_link = add_query_arg( 'link_tags', $_GET['link_tags'], $new_link );
|
59 |
+
}
|
60 |
+
|
61 |
+
if ( isset( $_GET['link_price'] ) && !empty( $_GET['link_price'] ) ) {
|
62 |
+
$new_link = add_query_arg( 'link_price', $_GET['link_price'], $new_link );
|
63 |
+
}
|
64 |
+
|
65 |
+
$cat_path .= '<a href="' . $new_link . '">' . $term->name . '</a>';
|
66 |
+
|
67 |
+
if ( $level == 0 ) {
|
68 |
+
$new_top_link = home_url() . '/' . $rewritepage;
|
69 |
+
|
70 |
+
if ( isset( $_GET['link_tags'] ) && !empty( $_GET['link_tags'] ) ) {
|
71 |
+
$new_top_link = add_query_arg( 'link_tags', $_GET['link_tags'], $new_top_link );
|
72 |
+
}
|
73 |
+
if ( isset( $_GET['link_price'] ) && !empty( $_GET['link_price'] ) ) {
|
74 |
+
$new_top_link = add_query_arg( 'link_price', $_GET['link_price'], $new_top_link );
|
75 |
+
}
|
76 |
+
|
77 |
+
$cat_path = '<a href="' . $new_top_link . '">Home</a> - ' . $cat_path;
|
78 |
+
}
|
79 |
+
|
80 |
+
return $cat_path;
|
81 |
+
}
|
82 |
+
|
83 |
function link_library_display_pagination( $previouspagenumber, $nextpagenumber, $numberofpages, $pagenumber,
|
84 |
$showonecatonly, $showonecatmode, $AJAXcatid, $settings, $pageID, $currentcatletter ) {
|
85 |
|
96 |
}
|
97 |
|
98 |
if ( 1 < $numberofpages ) {
|
99 |
+
$paginationoutput = '<div class="pageselector"><!-- Div Pagination -->';
|
100 |
|
101 |
if ( 1 != $pagenumber ) {
|
102 |
$paginationoutput .= '<span class="previousnextactive">';
|
105 |
if ( 'AJAX' == $showonecatmode ) {
|
106 |
$paginationoutput .= "<a href=\"#\" onClick=\"showLinkCat" . $settings . "('', '" . $settings . "', " . $previouspagenumber . ");return false;\" >" . __('Previous', 'link-library') . '</a>';
|
107 |
} else {
|
108 |
+
global $page_query;
|
109 |
+
$argumentarray = array( 'linkresultpage' => $previouspagenumber );
|
110 |
|
111 |
+
if ( ! empty( $currentcatletter ) ) {
|
112 |
$argumentarray['catletter'] = $currentcatletter;
|
113 |
}
|
114 |
|
115 |
$argumentarray = array_merge( $argumentarray, $incomingget );
|
116 |
$targetaddress = esc_url( add_query_arg( $argumentarray ) );
|
117 |
|
118 |
+
$paginationoutput .= '<a href="' . $targetaddress . '">' . __( 'Previous', 'link-library' ) . '</a>';
|
119 |
}
|
120 |
} elseif ( $showonecatonly ) {
|
121 |
if ( 'AJAX' == $showonecatmode || empty( $showonecatmode ) ) {
|
153 |
if ( 'AJAX' == $showonecatmode ) {
|
154 |
$paginationoutput .= "<a href=\"#\" onClick=\"showLinkCat" . $settings . "('', '" . $settings . "', " . $counter . ");return false;\" >" . $counter . '</a>';
|
155 |
} else {
|
156 |
+
$argumentarray = array( 'linkresultpage' => $counter );
|
157 |
|
158 |
+
if ( ! empty( $currentcatletter ) ) {
|
159 |
$argumentarray['catletter'] = $currentcatletter;
|
160 |
}
|
161 |
|
205 |
if ( 'AJAX' == $showonecatmode ) {
|
206 |
$paginationoutput .= "<a href=\"#\" onClick=\"showLinkCat" . $settings . "('', '" . $settings . "', " . $nextpagenumber . ");return false;\" >" . __('Next', 'link-library') . '</a>';
|
207 |
} else {
|
208 |
+
$argumentarray = array( 'page_id' => $pageID, 'linkresultpage' => $nextpagenumber );
|
209 |
|
210 |
+
if ( ! empty( $currentcatletter ) ) {
|
211 |
$argumentarray['catletter'] = $currentcatletter;
|
212 |
}
|
213 |
|
214 |
$argumentarray = array_merge( $argumentarray, $incomingget );
|
215 |
$targetaddress = esc_url( add_query_arg( $argumentarray ) );
|
216 |
|
217 |
+
$paginationoutput .= '<a href="' . $targetaddress . '">' . __( 'Next', 'link-library' ) . '</a>';
|
218 |
}
|
219 |
} elseif ( $showonecatonly ) {
|
220 |
if ( 'AJAX' == $showonecatmode || empty( $showonecatmode ) ) {
|
234 |
$paginationoutput .= '<span class="previousnextinactive">' . __('Next', 'link-library') . '</span>';
|
235 |
}
|
236 |
|
237 |
+
$paginationoutput .= '</div><!-- Div Pagination -->';
|
238 |
}
|
239 |
|
240 |
if ( 'AJAX' == $showonecatmode ) {
|
247 |
$paginationoutput .= "if (typeof(ajaxobject) != \"undefined\") { ajaxobject.abort(); }\n";
|
248 |
|
249 |
$paginationoutput .= "\tjQuery('#contentLoading" . $settings . "').toggle();" .
|
250 |
+
"jQuery.ajax( {" .
|
251 |
+
" type: 'POST', " .
|
252 |
+
" url: '" . admin_url( 'admin-ajax.php' ) . "', " .
|
253 |
+
" data: { action: 'link_library_ajax_update', " .
|
254 |
+
" _ajax_nonce: '" . $nonce . "', " .
|
255 |
+
" id : _incomingID, " .
|
256 |
+
" settings : _settingsID, " .
|
257 |
+
" ajaxupdate : true, " .
|
258 |
+
" linkresultpage: _pagenumber }, " .
|
259 |
+
" success: function( data ){ " .
|
260 |
+
" jQuery('#linklist" . $settings. "').html( data ); " .
|
261 |
+
" jQuery('#contentLoading" . $settings . "').toggle();\n" .
|
262 |
+
" } } ); ";
|
263 |
$paginationoutput .= "}\n";
|
264 |
$paginationoutput .= "}\n";
|
265 |
|
280 |
* @return List of categories output for browser
|
281 |
*/
|
282 |
|
283 |
+
function RenderLinkLibrary( $LLPluginClass, $generaloptions, $libraryoptions, $settings, $onlycount = 'false', $parent_cat_id = 0, $level = 0, $display_children = true, $hide_children_cat_links = false, &$linkcount ) {
|
284 |
|
|
|
285 |
$showonecatonly = '';
|
286 |
$showonecatmode = '';
|
287 |
+
$AJAXcatid = '';
|
288 |
|
289 |
$generaloptions = wp_parse_args( $generaloptions, ll_reset_gen_settings( 'return' ) );
|
290 |
extract( $generaloptions );
|
292 |
$libraryoptions = wp_parse_args( $libraryoptions, ll_reset_options( 1, 'list', 'return' ) );
|
293 |
extract( $libraryoptions );
|
294 |
|
295 |
+
global $wp_query;
|
296 |
+
|
297 |
+
if ( $level == 0 && ( ( isset( $_GET['cat_name'] ) && !empty( $_GET['cat_name'] ) ) || ( isset( $wp_query->query_vars['cat_name'] ) && !empty( $wp_query->query_vars['cat_name'] ) ) ) ) {
|
298 |
+
if ( !empty( $_GET['cat_name'] ) ) {
|
299 |
+
$category_entry = get_term_by( 'slug', $_GET['cat_name'], 'link_library_category', OBJECT );
|
300 |
+
} elseif ( !empty( $wp_query->query_vars['cat_name'] ) ) {
|
301 |
+
$last_slash_pos = strripos( $wp_query->query_vars['cat_name'], '/' );
|
302 |
+
if ( $last_slash_pos != 0 ) {
|
303 |
+
$cat_string = substr( $wp_query->query_vars['cat_name'], $last_slash_pos );
|
304 |
+
} else {
|
305 |
+
$cat_string = $wp_query->query_vars['cat_name'];
|
306 |
+
}
|
307 |
+
|
308 |
+
$category_entry = get_term_by( 'slug', $cat_string, 'link_library_category', OBJECT );
|
309 |
+
}
|
310 |
+
|
311 |
+
if ( !empty( $category_entry ) ) {
|
312 |
+
$AJAXcatid = $category_entry->term_id;
|
313 |
+
$parent_cat_id = $AJAXcatid;
|
314 |
+
}
|
315 |
+
}
|
316 |
+
|
317 |
+
if ( 0 == $parent_cat_id && $hidechildcatlinks ) {
|
318 |
+
$hide_children_cat_links = $hidechildcatlinks;
|
319 |
+
}
|
320 |
+
|
321 |
+
if ( 0 == $parent_cat_id && $hidechildcattop ) {
|
322 |
+
$display_children = false;
|
323 |
+
}
|
324 |
+
|
325 |
/* This case will only happen if the user entered bad data in the admin page or if someone is trying to inject bad data in SQL query */
|
326 |
+
if ( !empty( $categorylist_cpt ) ) {
|
327 |
+
$categorylistarray = explode( ',', $categorylist_cpt );
|
328 |
|
329 |
if ( true === array_filter( $categorylistarray, 'is_int' ) ) {
|
330 |
return 'List of requested categories is invalid. Please go back to Link Library admin panel to correct.';
|
331 |
}
|
332 |
}
|
333 |
|
334 |
+
if ( !empty( $excludecategorylist_cpt ) ) {
|
335 |
+
$excludecategorylistarray = explode( ',', $excludecategorylist_cpt );
|
336 |
|
337 |
if ( true === array_filter( $excludecategorylistarray, 'is_int' ) ) {
|
338 |
return 'List of requested excluded categories is invalid. Please go back to Link Library admin panel to correct.';
|
341 |
|
342 |
$validdirections = array( 'ASC', 'DESC' );
|
343 |
|
344 |
+
$linkeditoruser = current_user_can( 'manage_options' );
|
345 |
|
346 |
+
if ( $level == 0 ) {
|
347 |
+
$output = "\n<!-- Beginning of Link Library Output -->\n\n";
|
348 |
+
} else {
|
349 |
+
$output = '';
|
350 |
+
}
|
351 |
|
352 |
$currentcategory = 1;
|
353 |
+
$pagenumber = 1;
|
354 |
+
$currentcatletter = '';
|
355 |
+
$number_of_pages = 1;
|
356 |
$categoryname = '';
|
357 |
$mode = 'normal';
|
358 |
|
359 |
+
$AJAXnocatset = false;
|
360 |
if ( $showonecatonly && 'AJAX' == $showonecatmode && isset( $AJAXcatid ) && empty( $AJAXcatid ) ) {
|
361 |
$AJAXnocatset = true;
|
362 |
+
}
|
363 |
+
|
364 |
+
$GETnocatset = false;
|
365 |
+
if ( $showonecatonly && ( 'HTMLGET' == $showonecatmode || 'HTMLGETSLUG' == $showonecatmode || 'HTMLGETCATNAME' == $showonecatmode ) ) {
|
366 |
+
if ( 'HTMLGET' == $showonecatmode && ( !isset( $_GET['cat_id'] ) || ( isset( $_GET['cat_id'] ) && empty( $_GET['cat_id'] ) ) ) ) {
|
367 |
+
$GETnocatset = true;
|
368 |
+
} elseif ( 'HTMLGETSLUG' == $showonecatmode && ( !isset( $_GET['cat'] ) || ( isset( $_GET['cat'] ) && empty( $_GET['cat'] ) ) ) ) {
|
369 |
+
$GETnocatset = true;
|
370 |
+
} elseif ( 'HTMLGETCATNAME' == $showonecatmode && ( !isset( $_GET['catname'] ) || ( isset( $_GET['catname'] ) && empty( $_GET['catname'] ) ) ) ) {
|
371 |
+
$GETnocatset = true;
|
372 |
+
}
|
373 |
+
|
374 |
}
|
375 |
|
376 |
if ( $showonecatonly && 'AJAX' == $showonecatmode && isset( $AJAXcatid ) && !empty( $AJAXcatid ) && ( !isset( $_GET['searchll'] ) || empty( $_GET['searchll'] ) ) ) {
|
377 |
+
$categorylist_cpt = $AJAXcatid;
|
378 |
} elseif ($showonecatonly && 'HTMLGET' == $showonecatmode && isset( $_GET['cat_id'] ) && ( !isset( $_GET['searchll'] ) || ( isset( $_GET['searchll'] ) && empty( $_GET['searchll'] ) ) ) ) {
|
379 |
+
$categorylist_cpt = intval( $_GET['cat_id'] );
|
380 |
+
$AJAXcatid = $categorylist_cpt;
|
381 |
} elseif ($showonecatonly && 'HTMLGETSLUG' == $showonecatmode && isset( $_GET['cat'] ) && ( !isset( $_GET['searchll'] ) || ( isset( $_GET['searchll'] ) && empty( $_GET['searchll'] ) ) ) ) {
|
382 |
$categorysluglist = $_GET['cat'];
|
383 |
} elseif ($showonecatonly && 'HTMLGETCATNAME' == $showonecatmode && isset( $_GET['catname'] ) && ( !isset( $_GET['searchll'] ) || ( isset( $_GET['searchll'] ) && empty( $_GET['searchll'] ) ) ) ) {
|
385 |
}elseif ( $showonecatonly && 'HTMLGETPERM' == $showonecatmode && empty( $_GET['searchll'] ) ) {
|
386 |
global $wp_query;
|
387 |
|
388 |
+
$categoryname = $wp_query->query_vars['cat_name'];
|
|
|
|
|
|
|
389 |
$AJAXcatid = $categoryname;
|
390 |
+
$categorysluglist = '';
|
391 |
if ( isset( $_GET['cat'] ) ) {
|
392 |
$categorysluglist = $_GET['cat'];
|
|
|
|
|
393 |
}
|
394 |
+
} elseif ( $showonecatonly && ( !isset( $AJAXcatid ) || empty( $AJAXcatid ) ) && !empty( $defaultsinglecat_cpt ) && ( !isset( $_GET['searchll'] ) || ( isset( $_GET['searchll'] ) && empty( $_GET['searchll'] ) ) ) ) {
|
395 |
+
$categorylist_cpt = $defaultsinglecat_cpt;
|
396 |
+
$AJAXcatid = $categorylist_cpt;
|
397 |
} elseif ( $showonecatonly && ( !isset( $AJAXcatid ) || empty( $AJAXcatid ) ) && isset( $_GET['cat_id'] ) && !empty( $_GET['cat_id'] ) && ( !isset( $_GET['searchll'] ) || ( isset( $_GET['searchll'] ) && empty( $_GET['searchll'] ) ) ) ) {
|
398 |
+
$categorylist_cpt = intval( $_GET['cat_id'] );
|
399 |
+
$AJAXcatid = $categorylist_cpt;
|
400 |
$defaultsinglecat = $AJAXcatid;
|
401 |
+
} elseif ( $showonecatonly && ( !isset( $AJAXcatid ) || empty( $AJAXcatid ) ) && empty( $defaultsinglecat_cpt ) && empty( $_GET['searchll'] ) ) {
|
402 |
+
|
403 |
+
$show_one_cat_query_args = array( );
|
|
|
|
|
|
|
|
|
|
|
404 |
|
405 |
if ( $hide_if_empty ) {
|
406 |
+
$show_one_cat_query_args['hide_empty'] = true;
|
407 |
+
} else {
|
408 |
+
$show_one_cat_query_args['hide_empty'] = false;
|
409 |
}
|
410 |
|
411 |
+
if ( !$showuserlinks && !$showinvisible && !$showinvisibleadmin ) {
|
412 |
+
add_filter( 'get_terms', 'link_library_get_terms_filter_only_publish', 10, 3 );
|
413 |
+
} elseif ( $showuserlinks && !$showinvisible && !$showinvisibleadmin ) {
|
414 |
+
add_filter( 'get_terms', 'link_library_get_terms_filter_publish_pending', 10, 3 );
|
415 |
+
} elseif ( !$showuserlinks && ( $showinvisible || ( $showinvisibleadmin && $linkeditoruser ) ) ) {
|
416 |
+
add_filter( 'get_terms', 'link_library_get_terms_filter_publish_draft', 10, 3 );
|
417 |
+
} elseif ( $showuserlinks && ( $showinvisible || ( $showinvisibleadmin && $linkeditoruser ) ) ) {
|
418 |
+
add_filter( 'get_terms', 'link_library_get_terms_filter_publish_draft_pending', 10, 3 );
|
419 |
}
|
420 |
|
421 |
+
if ( !empty( $categorylist_cpt ) ) {
|
422 |
+
$show_one_cat_query_args['include'] = explode( ',', $categorylist_cpt );
|
423 |
}
|
424 |
|
425 |
+
if ( !empty( $excludecategorylist_cpt ) ) {
|
426 |
+
$show_one_cat_query_args['exclude'] = explode( ',', $excludecategorylist_cpt );
|
427 |
}
|
428 |
|
429 |
+
if ( ( !empty( $categorysluglist ) || isset( $_GET['cat'] ) ) && empty( $singlelinkid ) ) {
|
430 |
+
$show_one_cat_query_args['slug'] = explode( ',', $categorysluglist );
|
|
|
|
|
|
|
431 |
}
|
432 |
|
433 |
+
if ( isset( $categoryname ) && !empty( $categoryname ) && 'HTMLGETPERM' == $showonecatmode && empty( $singlelinkid ) ) {
|
434 |
+
$show_one_cat_query_args['slug'] = $categoryname;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
435 |
}
|
436 |
|
437 |
+
if ( ( !empty( $categorynamelist ) || isset( $_GET['catname'] ) ) && empty( $singlelinkid ) ) {
|
438 |
+
$show_one_cat_query_args['name'] = explode( ',', urldecode( $categorynamelist ) );
|
439 |
}
|
440 |
|
441 |
+
if ( 'name' == $order ) {
|
442 |
+
$show_one_cat_query_args['orderby'] = 'name';
|
443 |
+
$show_one_cat_query_args['order'] = in_array( $direction, $validdirections ) ? $direction : 'ASC';
|
444 |
+
} elseif ( 'id' == $order ) {
|
445 |
+
$show_one_cat_query_args['orderby'] = 'id';
|
446 |
+
$show_one_cat_query_args['order'] = in_array( $direction, $validdirections ) ? $direction : 'ASC';
|
|
|
|
|
447 |
}
|
448 |
|
449 |
+
$show_one_cat_query_args['taxonomy'] = 'link_library_category';
|
450 |
+
|
451 |
+
$show_one_cat_link_categories = get_terms( $show_one_cat_query_args );
|
452 |
+
remove_filter( 'get_terms', 'link_library_get_terms_filter_only_publish' );
|
453 |
+
remove_filter( 'get_terms', 'link_library_get_terms_filter_publish_pending' );
|
454 |
+
remove_filter( 'get_terms', 'link_library_get_terms_filter_publish_draft' );
|
455 |
+
remove_filter( 'get_terms', 'link_library_get_terms_filter_publish_draft_pending' );
|
456 |
+
|
457 |
+
//var_dump( $show_one_cat_link_categories );
|
458 |
+
|
459 |
+
$mode = 'normal';
|
460 |
|
461 |
if ( $debugmode ) {
|
462 |
+
$output .= "\n<!-- AJAX Default Category Query: " . print_r( $show_one_cat_query_args, TRUE ) . "-->\n\n";
|
463 |
+
$output .= "\n<!-- AJAX Default Category Results: " . print_r( $show_one_cat_link_categories, TRUE ) . "-->\n\n";
|
464 |
}
|
465 |
|
466 |
+
if ( $show_one_cat_link_categories ) {
|
467 |
+
$categorylist_cpt = $show_one_cat_link_categories[0]->term_id;
|
468 |
+
$AJAXcatid = $categorylist_cpt;
|
469 |
}
|
470 |
}
|
471 |
|
472 |
$searchterms = '';
|
473 |
|
474 |
if ( isset($_GET['searchll'] ) && !empty( $_GET['searchll'] ) && empty( $singlelinkid ) ) {
|
475 |
+
$searchstring = $_GET['searchll'];
|
476 |
+
$searchstringcopy = $searchstring;
|
477 |
$searchterms = array();
|
|
|
478 |
|
479 |
$offset = 0;
|
480 |
+
while ( false !== strpos( $searchstringcopy, '"', $offset ) ) {
|
481 |
if ( 0 == $offset ) {
|
482 |
+
$offset = strpos( $searchstringcopy, '"' );
|
483 |
} else {
|
484 |
+
$endpos = strpos( $searchstringcopy, '"', $offset + 1 );
|
485 |
+
$searchterms[] = substr( $searchstringcopy, $offset + 1, $endpos - $offset - 2 );
|
486 |
$strlength = ( $endpos + 1 ) - ( $offset + 1 );
|
487 |
+
$searchstringcopy = substr_replace( $searchstringcopy, '', $offset - 1, $endpos + 2 - ( $offset ) );
|
488 |
$offset = 0;
|
489 |
}
|
490 |
}
|
491 |
|
492 |
+
if ( ! empty( $searchstringcopy ) ) {
|
493 |
+
$searchterms = array_merge( $searchterms, explode( " ", $searchstringcopy ) );
|
494 |
}
|
495 |
+
|
496 |
+
if ( !empty( $searchstring ) ) {
|
497 |
$mode = 'search';
|
498 |
+
$showlinksonclick = false;
|
499 |
}
|
500 |
}
|
501 |
|
502 |
+
$link_count = wp_count_posts( 'link_library_links' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
503 |
|
504 |
+
if ( isset( $link_count ) && !empty( $link_count ) && ( $link_count->publish > 0 || ( $showinvisible && $link_count->private > 0 ) || ( $showuserlinks && $link_count->pending ) ) ) {
|
505 |
+
$currentcatletter = '';
|
|
|
506 |
|
507 |
+
if ( $level == 0 && $cat_letter_filter != 'no' ) {
|
508 |
+
require_once plugin_dir_path( __FILE__ ) . 'render-link-library-alpha-filter.php';
|
509 |
+
$result = RenderLinkLibraryAlphaFilter( $LLPluginClass, $generaloptions, $libraryoptions, $settings, $mode );
|
510 |
|
511 |
+
$currentcatletter = $result['currentcatletter'];
|
|
|
|
|
512 |
|
513 |
+
if ( 'beforelinks' == $cat_letter_filter || 'beforecatsandlinks' == $cat_letter_filter ) {
|
514 |
+
$output .= $result['output'];
|
515 |
+
}
|
516 |
+
}
|
517 |
|
518 |
+
$link_categories_query_args = array( );
|
|
|
519 |
|
520 |
+
if ( $hide_if_empty ) {
|
521 |
+
$link_categories_query_args['hide_empty'] = true;
|
522 |
+
} else {
|
523 |
+
$link_categories_query_args['hide_empty'] = false;
|
524 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
525 |
|
526 |
+
if ( !$showuserlinks && !$showinvisible && !$showinvisibleadmin ) {
|
527 |
+
add_filter( 'get_terms', 'link_library_get_terms_filter_only_publish', 10, 3 );
|
528 |
+
} elseif ( $showuserlinks && !$showinvisible && !$showinvisibleadmin ) {
|
529 |
+
add_filter( 'get_terms', 'link_library_get_terms_filter_publish_pending', 10, 3 );
|
530 |
+
} elseif ( !$showuserlinks && ( $showinvisible || ( $showinvisibleadmin && $linkeditoruser ) ) ) {
|
531 |
+
add_filter( 'get_terms', 'link_library_get_terms_filter_publish_draft', 10, 3 );
|
532 |
+
} elseif ( $showuserlinks && ( $showinvisible || ( $showinvisibleadmin && $linkeditoruser ) ) ) {
|
533 |
+
add_filter( 'get_terms', 'link_library_get_terms_filter_publish_draft_pending', 10, 3 );
|
534 |
+
}
|
535 |
|
536 |
+
if ( ( !empty( $categorylist_cpt ) || isset( $_GET['cat_id'] ) ) && empty( $singlelinkid ) && $level == 0 ) {
|
537 |
+
$link_categories_query_args['include'] = explode( ',', $categorylist_cpt );
|
538 |
+
}
|
539 |
|
540 |
+
if ( !empty( $excludecategorylist_cpt ) && empty( $singlelinkid ) ) {
|
541 |
+
$link_categories_query_args['exclude'] = explode( ',', $excludecategorylist_cpt );
|
542 |
+
}
|
543 |
|
544 |
+
if ( ( !empty( $categorysluglist ) || isset( $_GET['cat'] ) ) && empty( $singlelinkid ) ) {
|
545 |
+
if ( !empty( $categorysluglist ) ) {
|
546 |
+
$link_categories_query_args['slug'] = explode( ',', $categorysluglist );
|
547 |
+
} elseif ( isset( $_GET['cat'] ) ) {
|
548 |
+
$link_categories_query_args['slug'] = $_GET['cat'];
|
549 |
}
|
550 |
}
|
551 |
|
552 |
+
if ( isset( $categoryname ) && !empty( $categoryname ) && 'HTMLGETPERM' == $showonecatmode && empty( $singlelinkid ) ) {
|
553 |
+
$link_categories_query_args['slug'] = $categoryname;
|
554 |
+
}
|
555 |
|
556 |
+
if ( ( !empty( $categorynamelist ) || isset( $_GET['catname'] ) ) && empty( $singlelinkid ) ) {
|
557 |
+
$link_categories_query_args['name'] = explode( ',', urldecode( $categorynamelist ) );
|
558 |
+
}
|
559 |
|
|
|
560 |
if ( 'name' == $order ) {
|
561 |
+
$link_categories_query_args['orderby'] = 'name';
|
562 |
+
$link_categories_query_args['order'] = in_array( $direction, $validdirections ) ? $direction : 'ASC';
|
563 |
} elseif ( 'id' == $order ) {
|
564 |
+
$link_categories_query_args['orderby'] = 'id';
|
565 |
+
$link_categories_query_args['order'] = in_array( $direction, $validdirections ) ? $direction : 'ASC';
|
|
|
|
|
|
|
566 |
}
|
567 |
|
568 |
+
if ( isset( $AJAXcatid ) && !empty( $AJAXcatid ) ) {
|
569 |
+
$link_categories_query_args['include'] = $AJAXcatid;
|
570 |
+
} else {
|
571 |
+
$link_categories_query_args['parent'] = $parent_cat_id;
|
572 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
573 |
|
574 |
+
$link_categories = get_terms( 'link_library_category', $link_categories_query_args );
|
575 |
+
remove_filter( 'get_terms', 'link_library_get_terms_filter' );
|
576 |
+
|
577 |
+
if ( 'catlist' == $order && is_array( $link_categories ) && !empty( $link_categories_query_args['include'] ) ) {
|
578 |
+
$temp_link_categories = $link_categories;
|
579 |
+
$link_categories = array();
|
580 |
+
$exploded_include_list = explode( ',', $categorylist_cpt );
|
581 |
+
foreach ( $exploded_include_list as $sort_link_category_id ) {
|
582 |
+
foreach ( $temp_link_categories as $temp_link_cat ) {
|
583 |
+
if ( $sort_link_category_id == $temp_link_cat->term_id ) {
|
584 |
+
$link_categories[] = $temp_link_cat;
|
585 |
+
continue;
|
586 |
+
}
|
587 |
+
}
|
588 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
589 |
}
|
|
|
590 |
|
591 |
+
if ( !empty( $currentcatletter ) && $cat_letter_filter != 'no' ) {
|
592 |
+
foreach ( $link_categories as $index => $link_category ) {
|
593 |
+
if ( substr( $link_category->name, 0, 1) != $currentcatletter ) {
|
594 |
+
unset( $link_categories[$index] );
|
595 |
+
}
|
596 |
+
}
|
597 |
+
}
|
598 |
|
599 |
+
if ( $pagination && 'search' != $mode && !$onlycount) {
|
600 |
+
if ($linksperpage == 0 || empty( $linksperpage ) ) {
|
601 |
+
$linksperpage = 5;
|
602 |
+
}
|
603 |
|
604 |
+
$number_of_links = 0;
|
605 |
+
foreach ( $link_categories as $link_category ) {
|
606 |
+
$number_of_links += $link_category->count;
|
607 |
+
}
|
608 |
|
609 |
+
if ( $number_of_links > $linksperpage ) {
|
610 |
+
$nextpage = true;
|
611 |
+
} else {
|
612 |
+
$nextpage = false;
|
613 |
+
}
|
614 |
|
615 |
+
if ( isset( $number_of_links ) ) {
|
616 |
+
$preroundpages = $number_of_links / $linksperpage;
|
617 |
+
$number_of_pages = ceil( $preroundpages * 1 ) / 1;
|
618 |
+
}
|
619 |
|
620 |
+
if ( isset( $_POST['linkresultpage'] ) || isset( $_GET['linkresultpage'] ) ) {
|
|
|
|
|
|
|
|
|
|
|
621 |
|
622 |
+
if ( isset( $_POST['linkresultpage'] ) ) {
|
623 |
+
$pagenumber = $_POST['linkresultpage'];
|
624 |
+
} elseif ( isset( $_GET['linkresultpage'] ) ) {
|
625 |
+
$pagenumber = $_GET['linkresultpage'];
|
626 |
+
}
|
627 |
+
$startingitem = ( $pagenumber - 1 ) * $linksperpage + 1;
|
628 |
+
} else {
|
629 |
+
$pagenumber = 1;
|
630 |
+
$startingitem = 1;
|
631 |
+
}
|
632 |
}
|
|
|
|
|
|
|
|
|
|
|
633 |
|
634 |
+
if ( $level == 0 ) {
|
635 |
+
$output .= "<div id='linklist" . $settings . "' class='linklist'><!-- Div Linklist -->\n";
|
|
|
636 |
}
|
|
|
|
|
|
|
|
|
|
|
637 |
|
638 |
+
if ( $level == 0 && $pagination && $mode != "search" && 'BEFORE' == $paginationposition ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
639 |
$previouspagenumber = $pagenumber - 1;
|
640 |
$nextpagenumber = $pagenumber + 1;
|
641 |
+
|
642 |
+
$pageID = get_queried_object_id();
|
643 |
+
|
644 |
if ( empty( $AJAXcatid ) && !empty( $categorysluglist ) ) {
|
645 |
$AJAXcatid = $categorysluglist;
|
646 |
}
|
648 |
$AJAXcatid = $categorynamelist;
|
649 |
}
|
650 |
|
651 |
+
$output .= link_library_display_pagination( $previouspagenumber, $nextpagenumber, $number_of_pages, $pagenumber, $showonecatonly, $showonecatmode, $AJAXcatid, $settings, $pageID, $currentcatletter );
|
652 |
}
|
653 |
|
654 |
+
if ( $level == 0 && 'search' == $mode ) {
|
655 |
+
$output .= '<div class="resulttitle">' . __('Search Results for', 'link-library') . ' "' . esc_html( stripslashes( $_GET['searchll'] ) ) . '"</div><!-- Div search results title -->';
|
656 |
}
|
657 |
|
658 |
+
if ( $enablerewrite && !empty( $toppagetext ) && $parent_cat_id == 0 ) {
|
659 |
+
$output .= '<div class="toppagetext">' . nl2br( $toppagetext ) . '</div>';
|
660 |
+
}
|
661 |
|
662 |
$xpath = $LLPluginClass->relativePath( dirname( __FILE__ ), ABSPATH );
|
663 |
|
664 |
+
if ( !empty( $link_categories ) ) {
|
665 |
+
foreach ( $link_categories as $link_category ) {
|
666 |
+
if ( $enablerewrite && $showbreadcrumbspermalinks && $parent_cat_id != 0 && $level == 0) {
|
667 |
+
$breadcrumb = '<div class="breadcrumb">' . link_library_get_breadcrumb_path( $link_category->slug, $rewritepage ) . '</div>';
|
668 |
+
$output .= $breadcrumb;
|
669 |
+
}
|
670 |
|
671 |
+
if ( $pagination && 'search' != $mode ) {
|
672 |
+
if ( $linkcount + $link_category->count - 1 < $startingitem || $linkcount > $startingitem + $linksperpage - 1 ) {
|
673 |
+
$linkcount = $linkcount + $link_category->count;
|
674 |
+
continue;
|
675 |
+
}
|
676 |
+
}
|
|
|
677 |
|
678 |
+
if ( !empty( $singlelinkid ) && intval( $singlelinkid ) && $linkcount > 1 ) {
|
|
|
679 |
break;
|
680 |
}
|
681 |
|
682 |
+
$link_query_args = array( 'post_type' => 'link_library_links', 'posts_per_page' => -1 );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
683 |
|
684 |
+
if ( !$combineresults ) {
|
685 |
+
$link_query_args['tax_query'][] =
|
686 |
+
array(
|
687 |
+
'taxonomy' => 'link_library_category',
|
688 |
+
'field' => 'term_id',
|
689 |
+
'terms' => $link_category->term_id,
|
690 |
+
'include_children' => false
|
691 |
|
692 |
+
);
|
693 |
+
if ( sizeof( $link_query_args['tax_query'] ) > 1 ) {
|
694 |
+
$link_query_args['tax_query']['relation'] = 'AND';
|
695 |
}
|
696 |
+
}
|
697 |
+
|
698 |
+
if ( isset( $_GET['link_tags'] ) && !empty( $_GET['link_tags'] ) ) {
|
699 |
+
$tag_array = explode( '.', $_GET['link_tags'] );
|
700 |
|
701 |
+
// YL: Make this an option
|
702 |
+
if ( !empty( $tag_array ) ) {
|
703 |
+
$showlinksonclick = false;
|
704 |
}
|
705 |
+
$link_query_args['tax_query'][] = array(
|
706 |
+
'taxonomy' => 'link_library_tags',
|
707 |
+
'field' => 'slug',
|
708 |
+
'terms' => $tag_array,
|
709 |
+
);
|
710 |
+
if ( sizeof( $link_query_args['tax_query'] > 1 ) ) {
|
711 |
+
$link_query_args['tax_query']['relation'] = 'AND';
|
712 |
+
}
|
713 |
+
}
|
714 |
|
715 |
+
if ( !empty( $singlelinkid ) && intval( $singlelinkid ) ) {
|
716 |
+
$link_query_args['p'] = $singlelinkid;
|
717 |
+
}
|
718 |
+
|
719 |
+
$link_query_args['post_status'] = array( 'publish' );
|
720 |
|
721 |
+
if ( $showuserlinks ) {
|
722 |
+
$link_query_args['post_status'][] = 'pending';
|
723 |
}
|
724 |
|
725 |
+
if ( $showinvisible || ( $showinvisibleadmin && $linkeditoruser ) ) {
|
726 |
+
$link_query_args['post_status'][] = 'draft';
|
727 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
728 |
|
729 |
+
if ( $showscheduledlinks ) {
|
730 |
+
$link_query_args['post_status'][] = 'future';
|
731 |
+
}
|
732 |
|
733 |
+
if ( !empty( $searchstring ) ) {
|
734 |
+
add_filter( 'posts_search', 'll_expand_posts_search', 10, 2 );
|
735 |
+
$link_query_args['s'] = $searchstring;
|
736 |
+
}
|
737 |
|
738 |
+
if ( isset( $_GET['linkname'] ) && in_array( $_GET['linkname'], array( 'ASC', 'DESC' ) ) ) {
|
739 |
+
$linkorder = 'name';
|
740 |
+
$linkdirection = $_GET['linkname'];
|
741 |
+
} elseif ( isset( $_GET['linkprice'] ) && in_array( $_GET['linkprice'], array( 'ASC', 'DESC' ) ) ) {
|
742 |
+
$linkorder = 'price';
|
743 |
+
$linkdirection = $_GET['linkprice'];
|
744 |
+
}
|
745 |
|
746 |
+
$link_query_args['meta_query']['relation'] = 'AND';
|
|
|
|
|
747 |
|
748 |
+
if ( $featuredfirst && 'random' != $linkorder ) {
|
749 |
+
$link_query_args['meta_query']['link_featured_clause'] = array( 'key' => 'link_featured' );
|
750 |
+
$link_query_args['orderby']['link_featured_clause'] = 'DESC';
|
751 |
+
}
|
|
|
752 |
|
753 |
+
if ( 'name' == $linkorder ) {
|
754 |
+
$link_query_args['orderby']['title'] = in_array( $linkdirection, $validdirections ) ? $linkdirection : 'ASC';
|
755 |
+
} elseif ( 'id' == $linkorder ) {
|
756 |
+
$link_query_args['orderby']['ID'] = in_array( $linkdirection, $validdirections ) ? $linkdirection : 'ASC';
|
757 |
+
} elseif ( 'date' == $linkorder ) {
|
758 |
+
$link_query_args['meta_query']['link_updated_clause'] = array( 'key' => 'link_updated' );
|
759 |
+
$link_query_args['orderby']['link_updated_clause'] = in_array( $linkdirection, $validdirections ) ? $linkdirection : 'ASC';
|
760 |
+
} elseif ( 'price' == $linkorder ) {
|
761 |
+
$link_query_args['meta_query']['link_price_clause'] = array( 'key' => 'link_price' );
|
762 |
+
$link_query_args['orderby']['link_price_clause'] = in_array( $linkdirection, $validdirections ) ? $linkdirection : 'ASC';
|
763 |
+
} elseif ( 'random' == $linkorder ) {
|
764 |
+
$link_query_args['orderby'] = 'rand';
|
765 |
+
} elseif ( 'hits' == $linkorder ) {
|
766 |
+
$link_query_args['meta_query']['link_visits_clause'] = array( 'key' => 'link_visits', 'type' => 'numeric' );
|
767 |
+
$link_query_args['orderby']['link_visits_clause'] = in_array( $linkdirection, $validdirections ) ? $linkdirection : 'ASC';
|
768 |
+
}
|
769 |
|
770 |
+
if ( $current_user_links ) {
|
771 |
+
$user_data = wp_get_current_user();
|
772 |
+
$name_field_value = $user_data->display_name;
|
773 |
|
774 |
+
$link_query_args['meta_query']['link_submitter_clause'] =
|
775 |
+
array(
|
776 |
+
'key' => 'link_submitter',
|
777 |
+
'value' => $name_field_value,
|
778 |
+
'compare' => '=',
|
779 |
+
);
|
780 |
+
}
|
781 |
|
782 |
+
if ( isset( $_GET['link_price'] ) && !empty( $_GET['link_price'] ) ) {
|
783 |
+
$link_query_args['meta_query'][] =
|
784 |
+
array(
|
785 |
+
'key' => 'link_price',
|
786 |
+
'value' => floatval( 0.0 ),
|
787 |
+
'compare' => '=',
|
788 |
+
);
|
789 |
+
}
|
790 |
|
791 |
+
if ( true == $debugmode ) {
|
792 |
+
$linkquerystarttime = microtime ( true );
|
793 |
+
}
|
|
|
|
|
|
|
|
|
794 |
|
795 |
+
$the_link_query = new WP_Query( $link_query_args );
|
|
|
|
|
|
|
|
|
|
|
|
|
796 |
|
797 |
+
if ( $debugmode ) {
|
798 |
+
$output .= "\n<!-- Link Query: " . print_r( $link_query_args, TRUE ) . "-->\n\n";
|
799 |
+
$output .= "\n<!-- Link Results: " . print_r( $the_link_query, TRUE ) . "-->\n\n";
|
800 |
+
$output .= "\n<!-- Link Query Execution Time: " . ( microtime( true ) - $linkquerystarttime ) . "-->\n\n";
|
801 |
+
}
|
802 |
|
803 |
+
if ( $debugmode ) {
|
804 |
+
echo '<!-- showonecatmode: ' . $showonecatonly . ', AJAXnocatset: ' . $AJAXnocatset . ', nocatonstartup: ' . $nocatonstartup . '-->';
|
805 |
+
}
|
806 |
|
807 |
+
$childcategories = get_terms( array( 'taxonomy' => 'link_library_category', 'child_of' => $link_category->term_id ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
808 |
|
809 |
+
$cat_has_children = false;
|
810 |
+
if ( !is_wp_error( $childcategories ) && !empty( $childcategories ) ) {
|
811 |
+
$cat_has_children = true;
|
812 |
+
}
|
813 |
|
814 |
+
// Display links
|
815 |
+
if ( ( $the_link_query->found_posts && $showonecatonly && ( ( 'AJAX' == $showonecatmode && $AJAXnocatset ) || ( 'AJAX' != $showonecatmode && $GETnocatset ) ) && $nocatonstartup && !isset( $_GET['searchll'] ) ) || ( 0 == $the_link_query->found_posts && $nocatonstartup && empty( $_GET['searchll'] ) ) ) {
|
816 |
+
$output .= "<div id='linklist" . $settings . "' class='linklist'>\n";
|
817 |
+
$output .= '</div><!-- Div empty list -->';
|
818 |
+
} elseif ( $the_link_query->found_posts && $onlycount ) {
|
819 |
+
return $the_link_query->found_posts;
|
820 |
+
} elseif ( ( $the_link_query->found_posts || !$hide_if_empty || $cat_has_children ) && !$onlycount ) {
|
821 |
+
if ( ( $the_link_query->have_posts() || !$hide_if_empty || $cat_has_children ) && ( empty( $maxlinks ) || 0 == $maxlinks | $linkcount <= $maxlinks ) ) {
|
822 |
+
if ( ! $combineresults ) {
|
823 |
+
$currentcategoryid = $link_category->term_id;
|
824 |
+
$output .= '<div class="LinkLibraryCat LinkLibraryCat' . $currentcategoryid . ( $level == 0 ? '' : ' childlevel'). ' level' . $level .'"><!-- Div Category -->';
|
825 |
+
|
826 |
+
$catlink = '';
|
827 |
+
$cattext = '';
|
828 |
+
$catenddiv = '';
|
829 |
|
830 |
+
if ( 1 == $catlistwrappers && !empty( $beforecastlist1 ) ) {
|
831 |
+
$output .= '<div class="' . $beforecatlist1 . '">';
|
832 |
+
} else if ( $catlistwrappers == 2 && !empty( $beforecatlist2 ) && !empty( $beforecatlist1 ) ) {
|
833 |
+
$remainder = $currentcategory % $catlistwrappers;
|
834 |
+
switch ( $remainder ) {
|
835 |
|
836 |
+
case 0:
|
837 |
+
$output .= '<div class="' . $beforecatlist2 . '">';
|
838 |
+
break;
|
839 |
|
840 |
+
case 1:
|
841 |
+
$output .= '<div class="' . $beforecatlist1 . '">';
|
842 |
+
break;
|
|
|
843 |
}
|
844 |
+
} else if ( 3 == $catlistwrappers && !empty( $beforecatlist3 ) && !empty( $beforecatlist2 ) && !empty( $beforecatlist1 )) {
|
845 |
+
$remainder = $currentcategory % $catlistwrappers;
|
846 |
+
switch ( $remainder ) {
|
847 |
|
848 |
+
case 0:
|
849 |
+
$output .= '<div class="' . $beforecatlist3 . '">';
|
850 |
+
break;
|
851 |
|
852 |
+
case 2:
|
853 |
+
$output .= '<div class="' . $beforecatlist2 . '">';
|
854 |
+
break;
|
855 |
|
856 |
+
case 1:
|
857 |
+
$output .= '<div class="' . $beforecatlist1 . '">';
|
858 |
+
break;
|
|
|
|
|
859 |
}
|
860 |
}
|
861 |
|
862 |
+
// Display the category name
|
863 |
+
if ( !$hidecategorynames || empty( $hidecategorynames ) ) {
|
864 |
+
$caturl = get_term_meta( $link_category->term_id, 'linkcaturl', true );
|
865 |
|
866 |
+
if ( $catanchor ) {
|
867 |
+
$cattext = '<div id="' . $link_category->slug . '"><!-- Div Category Name -->';
|
868 |
+
} else {
|
869 |
+
$cattext = '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
870 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
871 |
|
872 |
+
if ( !$divorheader ) {
|
873 |
+
if ( 'search' == $mode ) {
|
874 |
+
foreach ( $searchterms as $searchterm ) {
|
875 |
+
$link_category->name = link_library_highlight_phrase( $link_category->name, $searchterm, '<span class="highlight_word">', '</span>' );
|
876 |
+
}
|
877 |
+
}
|
878 |
|
879 |
+
$catlink = '<div class="' . $catnameoutput . '"><!-- Div Cat Name -->';
|
|
|
880 |
|
881 |
+
if ( 'right' == $catdescpos || empty( $catdescpos ) ) {
|
882 |
+
if ( !empty( $caturl ) ) {
|
883 |
+
$catlink .= '<a href="' . link_library_add_http( $caturl ) . '" ';
|
|
|
|
|
|
|
|
|
884 |
|
885 |
+
if ( !empty( $linktarget ) )
|
886 |
+
$catlink .= ' target="' . $linktarget . '"';
|
|
|
887 |
|
888 |
+
$catlink .= '>';
|
889 |
+
} /* elseif ( $catlinkspermalinksmode ) {
|
890 |
+
var_dump( 'Generating cat link' );
|
891 |
+
} */
|
892 |
+
$catlink .= $link_category->name;
|
893 |
+
if ( !empty( $caturl ) ) {
|
894 |
+
$catlink .= '</a>';
|
895 |
+
}
|
896 |
+
}
|
897 |
|
898 |
+
if ( $showcategorydesclinks ) {
|
899 |
+
$catlink .= '<span class="linklistcatnamedesc">';
|
900 |
+
$linkitem['description'] = str_replace( '[', '<', $link_category->description );
|
901 |
+
$linkitem['description'] = str_replace( ']', '>', $linkitem['description'] );
|
902 |
+
$catlink .= $linkitem['description'];
|
903 |
+
$catlink .= '</span>';
|
904 |
+
}
|
905 |
|
906 |
+
if ( 'left' == $catdescpos ) {
|
907 |
+
if ( !empty( $caturl ) ) {
|
908 |
+
$catlink .= '<a href="' . link_library_add_http( $caturl ) . '" ';
|
909 |
|
910 |
+
if ( !empty( $linktarget ) )
|
911 |
+
$catlink .= ' target="' . $linktarget . '"';
|
|
|
|
|
|
|
912 |
|
913 |
+
$catlink .= '>';
|
914 |
+
}
|
915 |
+
$catlink .= $link_category->name;
|
916 |
+
if ( !empty( $caturl ) ) {
|
917 |
+
$catlink .= '</a>';
|
918 |
+
}
|
919 |
+
}
|
920 |
|
921 |
+
if ( $showlinksonclick && $the_link_query->found_posts > 0 ) {
|
922 |
+
$catlink .= '<span class="expandlinks" id="LinksInCat' . $link_category->term_id . '">';
|
923 |
+
$catlink .= '<img class="arrow-down" src="';
|
924 |
|
925 |
+
if ( !empty( $expandiconpath ) ) {
|
926 |
+
$catlink .= $expandiconpath;
|
927 |
+
} else {
|
928 |
+
$catlink .= plugins_url( 'icons/expand-32.png', __FILE__ );
|
929 |
+
}
|
|
|
930 |
|
931 |
+
$catlink .= '" />';
|
932 |
+
$catlink .= '<img class="arrow-up" src="';
|
933 |
|
934 |
+
if ( !empty( $expandiconpath ) ) {
|
935 |
+
$catlink .= $expandiconpath;
|
936 |
+
} else {
|
937 |
+
$catlink .= plugins_url( 'icons/collapse-32.png', __FILE__ );
|
938 |
+
}
|
939 |
|
940 |
+
$catlink .= '" />';
|
941 |
+
$catlink .= '</span>';
|
942 |
+
}
|
|
|
943 |
|
944 |
+
$catlink .= '</div><!-- DivOrHeader -->';
|
945 |
+
} else if ( $divorheader ) {
|
946 |
+
if ( 'search' == $mode ) {
|
947 |
+
foreach ( $searchterms as $searchterm ) {
|
948 |
+
$link_category->name = link_library_highlight_phrase( $link_category->name, $searchterm, '<span class="highlight_word">', '</span>' );
|
949 |
+
}
|
950 |
+
}
|
951 |
|
952 |
+
$catlink = '<'. $catnameoutput . '>';
|
|
|
|
|
953 |
|
954 |
+
if ( 'right' == $catdescpos || 'aftercatname' == $catdescpos || 'aftertoplevelcatname' == $catdescpos || empty( $catdescpos ) ) {
|
955 |
+
if ( !empty( $caturl ) ) {
|
956 |
+
$catlink .= '<a href="' . link_library_add_http( $caturl ). '" ';
|
957 |
|
958 |
+
if ( !empty( $linktarget ) )
|
959 |
+
$catlink .= ' target="' . $linktarget . '"';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
960 |
|
961 |
+
$catlink .= '>';
|
962 |
+
} elseif ( $catlinkspermalinksmode && !empty( $rewritepage ) ) {
|
963 |
+
$cat_path = link_library_get_category_path( $link_category->slug );
|
964 |
|
965 |
+
if ( isset( $_GET['link_tags'] ) && !empty( $_GET['link_tags'] ) ) {
|
966 |
+
$cat_path = add_query_arg( 'link_tags', $_GET['link_tags'], $cat_path );
|
967 |
+
}
|
|
|
968 |
|
969 |
+
if ( isset( $_GET['link_price'] ) && !empty( $_GET['link_price'] ) ) {
|
970 |
+
$cat_path = add_query_arg( 'link_price', $_GET['link_price'], $cat_path );
|
971 |
+
}
|
972 |
|
973 |
+
$catlink .= '<a href="' . site_url() . '/' . $rewritepage . $cat_path . '">';
|
974 |
+
}
|
975 |
+
$catlink .= $link_category->name;
|
976 |
+
if ( !empty( $caturl ) || ( $catlinkspermalinksmode && !empty( $rewritepage ) ) ) {
|
977 |
+
$catlink .= '</a>';
|
978 |
+
}
|
979 |
+
}
|
980 |
|
981 |
+
if ( $showcategorydesclinks && ( 'left' == $catdescpos || 'right' == $catdescpos ) ) {
|
982 |
+
$catlink .= '<span class="linklistcatnamedesc">';
|
983 |
+
$linkitem['description'] = str_replace( '[', '<', $link_category->description );
|
984 |
+
$linkitem['description'] = str_replace(']', '>', $linkitem['description'] );
|
985 |
+
$catlink .= $linkitem['description'];
|
986 |
+
$catlink .= '</span>';
|
987 |
+
}
|
988 |
|
989 |
+
if ( 'left' == $catdescpos ) {
|
990 |
+
if ( !empty( $caturl ) ) {
|
991 |
+
$catlink .= '<a href="' . link_library_add_http( $caturl ) . '" ';
|
992 |
|
993 |
+
if ( !empty( $linktarget ) )
|
994 |
+
$catlink .= ' target="' . $linktarget . '"';
|
995 |
|
996 |
+
$catlink .= '>';
|
997 |
+
}
|
998 |
+
$catlink .= $link_category->name;
|
999 |
+
if ( !empty( $caturl ) ) {
|
1000 |
+
$catlink .= '</a>';
|
1001 |
+
}
|
1002 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1003 |
|
1004 |
+
if ( $showlinksonclick && $the_link_query->found_posts > 0 ) {
|
1005 |
+
$catlink .= '<span class="expandlinks" id="LinksInCat' . $link_category->term_id . '">';
|
1006 |
+
$catlink .= '<img class="arrow-down" src="';
|
1007 |
|
1008 |
+
if ( !empty( $expandiconpath ) ) {
|
1009 |
+
$catlink .= $expandiconpath;
|
1010 |
+
} else {
|
1011 |
+
$catlink .= plugins_url( 'icons/expand-32.png', __FILE__ );
|
1012 |
+
}
|
1013 |
|
1014 |
+
$catlink .= '" />';
|
|
|
|
|
1015 |
|
1016 |
+
$catlink .= '<img class="arrow-up" src="';
|
|
|
|
|
|
|
1017 |
|
1018 |
+
if ( !empty( $expandiconpath ) ) {
|
1019 |
+
$catlink .= $expandiconpath;
|
1020 |
+
} else {
|
1021 |
+
$catlink .= plugins_url( 'icons/collapse-32.png', __FILE__ );
|
1022 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1023 |
|
1024 |
+
$catlink .= '" />';
|
1025 |
+
$catlink .= '</span>';
|
1026 |
+
}
|
|
|
1027 |
|
1028 |
+
$catlink .= '</' . $catnameoutput . '>';
|
1029 |
+
}
|
1030 |
|
1031 |
+
if ($catanchor) {
|
1032 |
+
$catenddiv = '</div><!-- Div Category Name -->';
|
1033 |
+
} else {
|
1034 |
+
$catenddiv = '';
|
1035 |
+
}
|
1036 |
+
}
|
1037 |
|
1038 |
+
$output .= $cattext . $catlink . $catenddiv;
|
|
|
|
|
|
|
|
|
|
|
|
|
1039 |
|
1040 |
+
// YL: Add option to control this
|
1041 |
+
// if ( 0 != $parent_cat_id ) {
|
1042 |
+
if ( $showcategorydesclinks && ( 'aftercatname' == $catdescpos || ( 'aftertoplevelcatname' == $catdescpos && $level == 0 ) ) ) {
|
1043 |
+
$output .= '<div class="parentcatdesc">' . nl2br( $link_category->description ) . '</div>';
|
1044 |
+
}
|
1045 |
+
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1046 |
|
1047 |
+
if ( $showlinksonclick ) {
|
1048 |
+
$output .= '<div class="LinksInCat' . $currentcategoryid . ' LinksInCat"><!-- Div show links on click -->';
|
1049 |
+
}
|
1050 |
+
}
|
1051 |
|
1052 |
+
if ( !empty( $beforefirstlink ) && $the_link_query->found_posts > 0 ) {
|
1053 |
+
$output .= stripslashes( $beforefirstlink );
|
1054 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1055 |
|
1056 |
+
$display_as_table = 'false';
|
|
|
|
|
|
|
|
|
1057 |
|
1058 |
+
if ( is_bool( $displayastable ) && $displayastable ) {
|
1059 |
+
$display_as_table = 'true';
|
1060 |
+
} elseif( is_bool( $displayastable ) && !$displayastable ) {
|
1061 |
+
$display_as_table = 'false';
|
1062 |
+
} elseif ( in_array( $displayastable, array( 'true', 'false', 'nosurroundingtags' ) ) ) {
|
1063 |
+
$display_as_table = $displayastable;
|
1064 |
+
}
|
1065 |
|
1066 |
+
if ( $display_as_table === 'true' && ( ! $combineresults || ( $combineresults && $linkcount > 0 ) ) ) {
|
1067 |
+
$catstartlist = "\n\t<table class='linklisttable'>\n";
|
1068 |
+
if ( $showcolumnheaders ) {
|
1069 |
+
if ( !empty( $columnheaderoverride ) && !$allowcolumnsorting ) {
|
1070 |
+
$catstartlist .= '<div class="linklisttableheaders"><tr>';
|
1071 |
|
1072 |
+
$columnheaderarray = explode( ',', $columnheaderoverride );
|
1073 |
+
foreach( $columnheaderarray as $columnheader ) {
|
1074 |
+
if ( !empty( $columnheader ) ) {
|
1075 |
+
$catstartlist .= '<th><div class="linklistcolumnheader">' . $columnheader . '</div></th>';
|
1076 |
+
}
|
1077 |
+
}
|
1078 |
|
1079 |
+
$catstartlist .= "</tr></div>\n";
|
1080 |
+
} elseif ( $allowcolumnsorting ) {
|
1081 |
+
$sorting_labels = array( 2 => 'linkname', 16 => 'linkprice' );
|
1082 |
+
$settings_sort_label = array( 2 => 'name' );
|
1083 |
+
$activation_variables = array( 1 => 'show_images', 2 => 'showname', 3 => 'showdate', 4 => 'showdescription',
|
1084 |
+
5 => 'shownotes', 6 => 'show_rss', 7 => 'displayweblink', 8 => 'showtelephone',
|
1085 |
+
9 => 'showemail', 10 => 'showlinkhits', 11 => 'showrating', 12 => 'showlargedescription',
|
1086 |
+
13 => 'showsubmittername', 14 => 'showcatdesc', 15 => 'showlinktags', 16 => 'showlinkprice' );
|
1087 |
+
|
1088 |
+
$default_labels = array( 1 => __( 'Image', 'link-library' ), 2 => __( 'Name', 'link-library' ),
|
1089 |
+
3 => __( 'Date', 'link-library' ), 4 => __( 'Description', 'link-library'),
|
1090 |
+
5 => __( 'Notes', 'link-library'), 6 => __( 'RSS', 'link-library' ),
|
1091 |
+
7 => __( 'Web Link', 'link-library' ), 8 => __( 'Telephone', 'link-library'),
|
1092 |
+
9 => __( 'E-mail', 'link-library' ), 10 => __( 'Hits', 'link-library' ),
|
1093 |
+
11 => __( 'Rating', 'link-library' ), 12 => __( 'Large Description', 'link-library' ),
|
1094 |
+
13 => __( 'Submitter Name', 'link-library' ), 14 => __( 'Category Description', 'link-library' ),
|
1095 |
+
15 => __( 'Tags', 'link-library' ), 16 => __( 'Price', 'link-library') );
|
1096 |
+
|
1097 |
+
if ( empty( $dragndroporder ) ) {
|
1098 |
+
$dragndroporder = '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16';
|
1099 |
+
}
|
1100 |
|
1101 |
+
$dragndroparray = explode( ',', $dragndroporder );
|
|
|
|
|
1102 |
|
1103 |
+
$new_entries = array( '13', '14', '15', '16' );
|
1104 |
|
1105 |
+
foreach ( $new_entries as $new_entry ) {
|
1106 |
+
if ( !in_array( $new_entry, $dragndroparray ) ) {
|
1107 |
+
$dragndroparray[] = $new_entry;
|
1108 |
+
}
|
1109 |
+
}
|
1110 |
|
1111 |
+
$catstartlist .= '<div class="linklisttableheaders"><tr>';
|
1112 |
+
$columnheaderarray = explode( ',', $columnheaderoverride );
|
|
|
1113 |
|
1114 |
+
$actual_column = 0;
|
|
|
|
|
1115 |
|
1116 |
+
foreach ( $dragndroparray as $index => $display_item ) {
|
1117 |
+
$can_sort = false;
|
1118 |
+
$sort_label = '';
|
1119 |
+
$column_label = '';
|
1120 |
+
$show_column_header = false;
|
1121 |
|
1122 |
+
if ( isset( $columnheaderarray[$actual_column] ) ) {
|
1123 |
+
$column_label = $columnheaderarray[$actual_column];
|
1124 |
+
}
|
1125 |
|
1126 |
+
if ( isset( $sorting_labels[$display_item] ) ) {
|
1127 |
+
$can_sort = true;
|
1128 |
+
$sort_label = $sorting_labels[$display_item];
|
1129 |
}
|
1130 |
|
1131 |
+
if ( isset( $activation_variables[$display_item] ) && $$activation_variables[$display_item] ) {
|
1132 |
+
if ( !in_array( $display_item, array( 7, 8, 9 ) ) || ( in_array( $display_item, array( 7, 8, 9 ) ) && $$activation_variables[$display_item] != 'false' ) ) {
|
1133 |
+
if ( empty( $column_label ) ) {
|
1134 |
+
$column_label = $default_labels[$display_item];
|
1135 |
+
}
|
1136 |
|
1137 |
+
$show_column_header = true;
|
1138 |
+
$actual_column++;
|
|
|
|
|
|
|
1139 |
}
|
|
|
|
|
1140 |
}
|
1141 |
|
1142 |
+
if ( $show_column_header ) {
|
1143 |
+
$catstartlist .= '<th><div class="linklistcolumnheader">';
|
1144 |
+
if ( $can_sort ) {
|
1145 |
+
$sort_direction = 'ASC';
|
1146 |
+
if ( ( isset( $_GET[$sorting_labels[$display_item]] ) && 'ASC' == $_GET[$sorting_labels[$display_item]] ) ||
|
1147 |
+
( isset( $settings_sort_label[$display_item] ) && $linkorder = $settings_sort_label[$display_item] && $linkdirection == 'ASC' ) ) {
|
1148 |
+
$sort_direction = 'DESC';
|
1149 |
+
}
|
1150 |
+
$sort_url = add_query_arg( $sorting_labels[$display_item], $sort_direction, '' );
|
1151 |
+
if ( isset( $_GET['link_tags'] ) && !empty( $_GET['link_tags'] ) ) {
|
1152 |
+
$sort_url = add_query_arg( 'link_tags', $_GET['link_tags'], $sort_url );
|
1153 |
+
}
|
1154 |
|
1155 |
+
if ( isset( $_GET['link_price'] ) && !empty( $_GET['link_price'] ) ) {
|
1156 |
+
$sort_url = add_query_arg( 'link_price', $_GET['link_price'], $sort_url );
|
|
|
|
|
|
|
|
|
1157 |
}
|
1158 |
+
|
1159 |
+
$catstartlist .= '<a href="' . $sort_url . '">';
|
1160 |
}
|
1161 |
+
|
1162 |
+
$catstartlist .= $column_label;
|
1163 |
+
if ( $can_sort ) {
|
1164 |
+
$catstartlist .= '</a>';
|
|
|
|
|
1165 |
}
|
1166 |
+
$catstartlist .= '</div></th>';
|
1167 |
}
|
1168 |
+
}
|
1169 |
|
1170 |
+
$catstartlist .= "</tr></div>\n";
|
1171 |
+
}
|
1172 |
+
} else {
|
1173 |
+
$catstartlist .= '';
|
1174 |
+
}
|
1175 |
+
} elseif ( $display_as_table === 'false' && ( ! $combineresults || ( $combineresults && $linkcount > 0 ) ) ) {
|
1176 |
+
$catstartlist = "\n\t<ul>\n";
|
1177 |
+
} else {
|
1178 |
+
$catstartlist = '';
|
1179 |
+
}
|
1180 |
|
1181 |
+
if ( 0 == $the_link_query->found_posts && !$cat_has_children && !$hide_children_cat_links ) {
|
1182 |
+
$output .= __('No links found', 'link-library');
|
1183 |
+
} elseif ( !$hide_children_cat_links ) {
|
1184 |
+
if ( $the_link_query->found_posts > 0 ) {
|
1185 |
+
$output .= $catstartlist;
|
1186 |
+
}
|
1187 |
|
1188 |
+
while ( $the_link_query->have_posts() ) {
|
1189 |
+
$the_link_query->the_post();
|
|
|
1190 |
|
1191 |
+
if ( $pagination && 'search' != $mode ) {
|
1192 |
+
if ( $linkcount > $pagenumber * $linksperpage || $linkcount < $startingitem ) {
|
1193 |
+
$linkcount++;
|
1194 |
+
continue;
|
1195 |
+
}
|
1196 |
+
}
|
1197 |
|
1198 |
+
$linkitem['term_id'] = $link_category->term_id;
|
1199 |
+
$linkitem['link_name'] = get_the_title();
|
1200 |
+
$linkitem['link_permalink'] = get_the_permalink( get_the_ID() );
|
1201 |
+
$link_meta = get_metadata( 'post', get_the_ID() );
|
1202 |
|
1203 |
+
if ( isset( $link_meta['link_url'] ) ) {
|
1204 |
+
$linkitem['link_url'] = esc_html ( $link_meta['link_url'][0] );
|
1205 |
+
} else {
|
1206 |
+
$linkitem['link_url'] = '';
|
1207 |
+
}
|
1208 |
|
1209 |
+
$linkitem['proper_link_id'] = get_the_ID();
|
1210 |
|
1211 |
+
if ( isset( $link_meta['link_description'] ) ) {
|
1212 |
+
$linkitem['link_description'] = esc_html( $link_meta['link_description'][0] );
|
1213 |
+
} else {
|
1214 |
+
$linkitem['link_description'] = '';
|
1215 |
+
}
|
1216 |
|
1217 |
+
if ( isset( $link_meta['link_notes'] ) ) {
|
1218 |
+
$linkitem['link_notes'] = esc_html( $link_meta['link_notes'][0] );
|
1219 |
+
} else {
|
1220 |
+
$linkitem['link_notes'] = '';
|
1221 |
+
}
|
1222 |
|
1223 |
+
if ( isset( $link_meta['link_second_url'] ) ) {
|
1224 |
+
$linkitem['link_second_url'] = esc_url( $link_meta['link_second_url'][0] );
|
1225 |
+
} else {
|
1226 |
+
$linkitem['link_second_url'] = '';
|
1227 |
}
|
1228 |
|
1229 |
+
if ( isset( $link_meta['link_no_follow'] ) ) {
|
1230 |
+
$linkitem['link_no_follow'] = esc_html( $link_meta['link_no_follow'][0] );
|
1231 |
+
} else {
|
1232 |
+
$linkitem['link_no_follow'] = '';
|
1233 |
+
}
|
|
|
1234 |
|
1235 |
+
if ( isset( $link_meta['link_textfield'] ) ) {
|
1236 |
+
$linkitem['link_textfield'] = $link_meta['link_textfield'][0];
|
1237 |
+
} else {
|
1238 |
+
$linkitem['link_textfield'] = '';
|
1239 |
+
}
|
1240 |
|
1241 |
+
if ( isset( $link_meta['link_target'] ) ) {
|
1242 |
+
$linkitem['link_target'] = esc_html( $link_meta['link_target'][0] );
|
1243 |
+
} else {
|
1244 |
+
$linkitem['link_target'] = '';
|
1245 |
+
}
|
1246 |
|
1247 |
+
if ( isset( $link_meta['link_image'] ) ) {
|
1248 |
+
$linkitem['link_image'] = esc_url( $link_meta['link_image'][0] );
|
1249 |
+
} else {
|
1250 |
+
$linkitem['link_image'] = '';
|
1251 |
+
}
|
|
|
|
|
|
|
|
|
1252 |
|
1253 |
+
if ( isset( $link_meta['link_featured'] ) ) {
|
1254 |
+
$linkitem['link_featured'] = esc_html( $link_meta['link_featured'][0] );
|
1255 |
+
} else {
|
1256 |
+
$linkitem['link_featured'] = '';
|
1257 |
+
}
|
1258 |
|
1259 |
+
if ( isset( $link_meta['link_rss'] ) ) {
|
1260 |
+
$linkitem['link_rss'] = esc_url( $link_meta['link_rss'][0] );
|
1261 |
+
} else {
|
1262 |
+
$linkitem['link_rss'] = '';
|
1263 |
+
}
|
1264 |
|
1265 |
+
if ( isset( $link_meta['link_telephone'] ) ) {
|
1266 |
+
$linkitem['link_telephone'] = esc_html( $link_meta['link_telephone'][0] );
|
1267 |
+
} else {
|
1268 |
+
$linkitem['link_telephone'] = '';
|
1269 |
+
}
|
1270 |
|
1271 |
+
if ( isset( $link_meta['link_email'] ) ) {
|
1272 |
+
$linkitem['link_email'] = esc_html( $link_meta['link_email'][0] );
|
1273 |
+
} else {
|
1274 |
+
$linkitem['link_email'] = '';
|
1275 |
+
}
|
1276 |
|
1277 |
+
if ( isset( $link_meta['link_reciprocal'] ) ) {
|
1278 |
+
$linkitem['link_reciprocal'] = esc_url( $link_meta['link_reciprocal'][0] );
|
1279 |
+
} else {
|
1280 |
+
$linkitem['link_reciprocal'] = '';
|
1281 |
+
}
|
1282 |
|
1283 |
+
if ( isset( $link_meta['link_rel'] ) ) {
|
1284 |
+
$linkitem['link_rel'] = esc_html( $link_meta['link_rel'][0] );
|
1285 |
+
} else {
|
1286 |
+
$linkitem['link_rel'] = '';
|
1287 |
+
}
|
1288 |
|
1289 |
+
if ( isset( $link_meta['link_submitter'][0] ) ) {
|
1290 |
+
$linkitem['link_submitter'] = esc_html( $link_meta['link_submitter'][0] );
|
1291 |
+
} else {
|
1292 |
+
$linkitem['link_submitter'] = '';
|
1293 |
+
}
|
1294 |
|
1295 |
+
if ( isset( $link_meta['link_submitter_name'][0] ) ) {
|
1296 |
+
$linkitem['link_submitter_name'] = esc_html( $link_meta['link_submitter_name'][0] );
|
1297 |
+
} else {
|
1298 |
+
$linkitem['link_submitter_name'] = '';
|
1299 |
}
|
1300 |
|
1301 |
+
if ( isset( $link_meta['link_submitter_email'][0] ) ) {
|
1302 |
+
$linkitem['link_submitter_email'] = esc_html( $link_meta['link_submitter_email'][0] );
|
1303 |
+
} else {
|
1304 |
+
$linkitem['link_submitter_email'] = '';
|
1305 |
+
}
|
1306 |
|
1307 |
+
$linkitem['link_price'] = floatval( get_post_meta( get_the_ID(), 'link_price', true ) );
|
1308 |
|
1309 |
+
if ( isset( $link_meta['link_visits'][0] ) ) {
|
1310 |
+
$linkitem['link_visits'] = esc_html( $link_meta['link_visits'][0] );
|
1311 |
+
} else {
|
1312 |
+
$linkitem['link_visits'] = '';
|
1313 |
+
}
|
1314 |
|
1315 |
+
if ( isset( $link_meta['link_rating'][0] ) ) {
|
1316 |
+
$linkitem['link_rating'] = esc_html( $link_meta['link_rating'][0] );
|
1317 |
+
} else {
|
1318 |
+
$linkitem['link_rating'] = '';
|
1319 |
+
}
|
1320 |
|
1321 |
+
$date_diff = time() - intval( $link_meta['link_updated'][0] );
|
1322 |
|
1323 |
+
if ( $date_diff < 604800 ) {
|
1324 |
+
$linkitem['recently_updated'] = true;
|
1325 |
+
} else {
|
1326 |
+
$linkitem['recently_updated'] = false;
|
1327 |
}
|
1328 |
|
1329 |
+
$linkitem['link_updated'] = $link_meta['link_updated'][0];
|
1330 |
|
1331 |
+
if ( true == $debugmode ) {
|
1332 |
+
$linkstarttime = microtime ( true );
|
1333 |
+
}
|
1334 |
|
1335 |
+
$between = "\n";
|
|
|
|
|
|
|
1336 |
|
1337 |
+
if ( $rssfeedinline ) {
|
1338 |
+
include_once( ABSPATH . WPINC . '/feed.php' );
|
1339 |
|
1340 |
if ( true == $debugmode ) {
|
1341 |
+
$starttimerssfeed = microtime ( true );
|
1342 |
}
|
|
|
1343 |
|
1344 |
+
$rss = fetch_feed( $linkitem['link_rss'] );
|
1345 |
+
if ( !is_wp_error( $rss ) ) {
|
1346 |
+
$maxitems = $rss->get_item_quantity( $rssfeedinlinecount );
|
1347 |
|
1348 |
+
$rss_items = $rss->get_items( 0, $maxitems );
|
1349 |
|
1350 |
+
if ( $rss_items && !empty( $rssfeedinlinedayspublished ) && $rssfeedinlinedayspublished != 0 ) {
|
1351 |
+
foreach ( $rss_items as $index => $item ) {
|
1352 |
+
$diff_published = current_time( 'timestamp' ) - strtotime( $item->get_date( 'j F o' ) );
|
1353 |
+
if ( $diff_published > 60 * 60 * 24 * intval( $rssfeedinlinedayspublished ) ) {
|
1354 |
+
unset( $rss_items[$index] );
|
1355 |
+
}
|
1356 |
+
}
|
1357 |
|
1358 |
+
if ( empty( $rss_items ) && $rssfeedinlineskipempty ) {
|
1359 |
+
continue;
|
1360 |
+
}
|
1361 |
+
}
|
1362 |
+
}
|
1363 |
|
1364 |
if ( true == $debugmode ) {
|
1365 |
+
$output .= "\n<!-- Time to render RSS Feed section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimerssfeed ) . " --> \n";
|
1366 |
}
|
1367 |
}
|
1368 |
|
1369 |
+
if ( $linkaddfrequency > 0 ) {
|
1370 |
+
if ( ( $linkcount - 1 ) % $linkaddfrequency == 0 ) {
|
1371 |
+
$output .= stripslashes( $addbeforelink );
|
1372 |
+
}
|
1373 |
+
}
|
1374 |
|
1375 |
+
if ( !isset( $linkitem['recently_updated'] ) ) {
|
1376 |
+
$linkitem['recently_updated'] = false;
|
1377 |
+
}
|
1378 |
|
1379 |
+
$output .= stripslashes( $beforeitem );
|
|
|
|
|
|
|
1380 |
|
1381 |
+
if ( $showupdated && $linkitem['recently_updated'] && 'before' == $showupdatedpos ) {
|
1382 |
+
$output .= '<span class="recently_updated">' . $updatedlabel . '</span>';
|
1383 |
+
}
|
1384 |
|
1385 |
+
$the_link = '#';
|
1386 |
+
if ( !empty( $linkitem['link_url'] ) ) {
|
1387 |
+
$the_link = esc_html( $linkitem['link_url'] );
|
1388 |
+
}
|
1389 |
|
1390 |
+
if ( !empty( $extraquerystring ) ) {
|
1391 |
+
parse_str( $extraquerystring, $expanded_query_string );
|
1392 |
+
if ( !empty( $expanded_query_string ) ) {
|
1393 |
+
$the_link = add_query_arg( $expanded_query_string, $the_link );
|
1394 |
}
|
1395 |
+
}
|
1396 |
|
1397 |
+
$cat_extra_query_string = get_metadata( 'linkcategory', $linkitem['term_id'], 'linkextraquerystring', true );
|
1398 |
+
if ( !empty( $cat_extra_query_string ) ) {
|
1399 |
+
parse_str( $cat_extra_query_string, $cat_expanded_query_string );
|
1400 |
+
if ( !empty( $cat_expanded_query_string ) ) {
|
1401 |
+
$the_link = add_query_arg( $cat_expanded_query_string, $the_link );
|
1402 |
}
|
1403 |
+
}
|
1404 |
|
1405 |
+
$the_second_link = '#';
|
1406 |
+
if ( !empty( $linkitem['link_second_url'] ) ) {
|
1407 |
+
$the_second_link = esc_html( stripslashes( $linkitem['link_second_url'] ) );
|
1408 |
+
}
|
1409 |
|
1410 |
+
$the_permalink = '#';
|
1411 |
+
if ( !empty( $linkitem['link_permalink'] ) ) {
|
1412 |
+
$the_permalink = $linkitem['link_permalink'];
|
1413 |
}
|
1414 |
|
1415 |
+
if ( empty( $linkitem['link_rel'] ) && ( $nofollow || $linkitem['link_no_follow'] ) ) {
|
1416 |
+
$linkitem['link_rel'] = ' rel="nofollow ' . $linkitem['link_rel'] . '"';
|
1417 |
+
} else {
|
1418 |
+
$linkitem['link_rel'] = ' rel="' . $linkitem['link_rel'] . '"';
|
1419 |
+
}
|
1420 |
|
1421 |
+
if ( $use_html_tags ) {
|
1422 |
+
$descnotes = $linkitem['link_notes'];
|
1423 |
+
$descnotes = str_replace( '[', '<', $descnotes );
|
1424 |
+
$descnotes = str_replace( ']', '>', $descnotes );
|
1425 |
+
$desc = $linkitem['link_description'];
|
1426 |
+
$desc = str_replace("[", "<", $desc);
|
1427 |
+
$desc = str_replace("]", ">", $desc);
|
1428 |
+
$textfield = stripslashes( $linkitem['link_textfield'] );
|
1429 |
+
$textfield = str_replace( '[', '<', $textfield );
|
1430 |
+
$textfield = str_replace( ']', '>', $textfield );
|
1431 |
+
} else {
|
1432 |
+
$descnotes = esc_html( $linkitem['link_notes'], ENT_QUOTES );
|
1433 |
+
$desc = esc_html($linkitem['link_description'], ENT_QUOTES);
|
1434 |
+
$textfield = stripslashes( $linkitem['link_textfield'] );
|
1435 |
+
}
|
1436 |
|
1437 |
+
$cleandesc = $desc;
|
1438 |
+
$cleanname = esc_html( $linkitem['link_name'], ENT_QUOTES );
|
1439 |
|
1440 |
+
if ( 'search' == $mode ) {
|
1441 |
+
foreach ( $searchterms as $searchterm ) {
|
1442 |
+
$descnotes = link_library_highlight_phrase( $descnotes, $searchterm, '<span class="highlight_word">', '</span>' );
|
1443 |
+
$desc = link_library_highlight_phrase( $desc, $searchterm, '<span class="highlight_word">', '</span>' );
|
1444 |
+
$name = link_library_highlight_phrase( $linkitem['link_name'], $searchterm, '<span class="highlight_word">', '</span>' );
|
1445 |
+
$textfield = link_library_highlight_phrase( $textfield, $searchterm, '<span class="highlight_word">', '</span>' );
|
1446 |
+
}
|
1447 |
+
} else {
|
1448 |
+
$name = $cleanname;
|
1449 |
+
}
|
1450 |
|
1451 |
+
if ( 'linkname' == $linktitlecontent ) {
|
1452 |
+
$title = $cleanname;
|
1453 |
+
} elseif ( 'linkdesc' == $linktitlecontent ) {
|
1454 |
+
$title = $cleandesc;
|
1455 |
+
}
|
1456 |
|
1457 |
+
if ( $showupdated ) {
|
1458 |
+
$date_format_string = get_option( 'date_format' );
|
1459 |
+
$cleandate = date_i18n( $date_format_string, intval( $linkitem['link_updated'] ) );
|
1460 |
+
if ( substr( $cleandate, 0, 2 ) != '00' ) {
|
1461 |
+
$title .= ' ('.__('Last updated', 'link-library') . ' ' . date_i18n(get_option('links_updated_date_format'), intval( $linkitem['link_updated'] ) ) .')';
|
1462 |
}
|
1463 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1464 |
|
1465 |
+
if ( !empty( $title ) ) {
|
1466 |
+
$title = ' title="' . $title . '"';
|
1467 |
+
}
|
1468 |
|
1469 |
+
$alt = ' alt="' . $cleanname . '"';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1470 |
|
1471 |
+
$target = $linkitem['link_target'];
|
1472 |
+
if ( !empty( $target ) ) {
|
1473 |
+
$target = ' target="' . $target . '"';
|
1474 |
+
} else {
|
1475 |
+
$target = $linktarget;
|
1476 |
+
if ( !empty( $target ) ) {
|
1477 |
+
$target = ' target="' . $target . '"';
|
1478 |
}
|
1479 |
+
}
|
1480 |
|
1481 |
+
if ( empty( $dragndroporder ) ) {
|
1482 |
+
$dragndroporder = '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16';
|
|
|
1483 |
}
|
1484 |
|
1485 |
+
$dragndroparray = explode( ',', $dragndroporder );
|
|
|
1486 |
|
1487 |
+
$new_entries = array( '13', '14', '15', '16' );
|
1488 |
+
|
1489 |
+
foreach ( $new_entries as $new_entry ) {
|
1490 |
+
if ( !in_array( $new_entry, $dragndroparray ) ) {
|
1491 |
+
$dragndroparray[] = $new_entry;
|
|
|
|
|
|
|
1492 |
}
|
1493 |
+
}
|
1494 |
|
1495 |
+
if ( $dragndroparray ) {
|
1496 |
+
foreach ( $dragndroparray as $arrayelements ) {
|
1497 |
+
switch ( $arrayelements ) {
|
1498 |
|
1499 |
+
case 1: //------------------ Image Output --------------------
|
1500 |
+
$imageoutput = '';
|
1501 |
|
1502 |
+
if ( ( $show_images && !$shownameifnoimage && ( !$nooutputempty || ( $nooutputempty && !empty( $linkitem['link_image'] ) ) ) ) || ( $show_images && $shownameifnoimage && !empty( $linkitem['link_image'] ) && ( !$nooutputempty || ( $nooutputempty && !empty( $linkitem['link_image'] ) ) ) || $usethumbshotsforimages ) ) {
|
1503 |
+
$imageoutput .= stripslashes( $beforeimage );
|
|
|
|
|
|
|
1504 |
|
1505 |
+
if ( !empty( $linkitem['link_image'] ) || $usethumbshotsforimages ) {
|
1506 |
+
if ( true == $debugmode ) {
|
1507 |
+
$starttimeimage = microtime ( true );
|
1508 |
+
}
|
1509 |
|
1510 |
+
$imageoutput .= '<a href="';
|
|
|
|
|
|
|
|
|
1511 |
|
1512 |
+
if ( !$enable_link_popup ) {
|
1513 |
+
if ( 'primary' == $sourceimage || empty( $sourceimage ) ) {
|
1514 |
+
$imageoutput .= $the_link;
|
1515 |
+
} elseif ( 'secondary' == $sourceimage ) {
|
1516 |
+
$imageoutput .= $the_second_link;
|
1517 |
+
}
|
1518 |
+
} else {
|
1519 |
+
$imageoutput .= admin_url( 'admin-ajax.php' . '?action=link_library_popup_content&linkid=' . $linkitem['proper_link_id'] . '&settings=' . $settings . '&height=' . ( empty( $popup_height ) ? 300 : $popup_height ) . '&width=' . ( empty( $popup_width ) ? 400 : $popup_width ) . '&xpath=' . $xpath );
|
1520 |
+
}
|
1521 |
|
1522 |
+
$imageoutput .= '" id="link-' . $linkitem['proper_link_id'] . '" class="' . ( $enable_link_popup ? 'thickbox' : 'track_this_link' ) . ' ' . ( $linkitem['link_featured'] ? 'featured' : '' ). '" ' . $linkitem['link_rel'] . $title . $target. '>';
|
1523 |
|
1524 |
+
if ( $usethumbshotsforimages && ( !$uselocalimagesoverthumbshots || empty( $uselocalimagesoverthumbshots ) || ( $uselocalimagesoverthumbshots && empty( $linkitem['link_image'] ) ) ) ) {
|
1525 |
+
if ( $thumbnailgenerator == 'robothumb' ) {
|
1526 |
+
$imageoutput .= '<img src="http://www.robothumb.com/src/?url=' . $the_link . '&size=' . $generaloptions['thumbnailsize'] . '"';
|
1527 |
+
} elseif ( $thumbnailgenerator == 'thumbshots' ) {
|
1528 |
+
if ( !empty( $thumbshotscid ) ) {
|
1529 |
+
$imageoutput .= '<img src="http://images.thumbshots.com/image.aspx?cid=' . rawurlencode( $thumbshotscid ) . '&v=1&w=120&url=' . $the_link . '"';
|
1530 |
+
}
|
1531 |
+
}
|
1532 |
+
} else if ( !$usethumbshotsforimages || ( $usethumbshotsforimages && $uselocalimagesoverthumbshots && !empty( $linkitem['link_image'] ) ) ) {
|
1533 |
+
if ( strpos( $linkitem['link_image'], 'http' ) !== false ) {
|
1534 |
+
$imageoutput .= '<img src="' . $linkitem['link_image'] . '"';
|
1535 |
+
} else {
|
1536 |
+
// If it's a relative path
|
1537 |
+
$imageoutput .= '<img src="' . get_option( 'siteurl' ) . $linkitem['link_image'] . '"';
|
1538 |
+
}
|
1539 |
+
}
|
1540 |
|
1541 |
+
if ( !$usethumbshotsforimages || ($usethumbshotsforimages && !empty( $thumbshotscid ) ) || ( $usethumbshotsforimages && $uselocalimagesoverthumbshots && !empty( $linkitem['link_image'] ) ) ) {
|
|
|
|
|
|
|
1542 |
|
1543 |
+
$imageoutput .= $alt . $title;
|
1544 |
|
1545 |
+
if ( !empty( $imageclass ) ) {
|
1546 |
+
$imageoutput .= ' class="' . $imageclass . '" ';
|
1547 |
+
}
|
1548 |
|
1549 |
+
$imageoutput .= '/>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1550 |
|
1551 |
+
$imageoutput .= '</a>';
|
1552 |
+
}
|
1553 |
|
1554 |
+
if ( true == $debugmode ) {
|
1555 |
+
$output .= '<!-- Time to render image section of link id ' . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimeimage ) . " --> \n";
|
1556 |
+
}
|
|
|
|
|
1557 |
|
1558 |
+
}
|
|
|
|
|
1559 |
|
1560 |
+
$imageoutput .= stripslashes( $afterimage );
|
1561 |
|
1562 |
+
if ( ( !empty( $imageoutput ) || ( $usethumbshotsforimages && !empty( $thumbshotscid ) ) ) && $show_images ) {
|
1563 |
+
$output .= $imageoutput;
|
1564 |
+
}
|
|
|
1565 |
|
1566 |
+
break;
|
1567 |
+
}
|
1568 |
|
1569 |
+
case 2: //------------------ Name Output --------------------
|
1570 |
+
if ( ( $showname && 2 == $arrayelements && ( !$nooutputempty || ( $nooutputempty && !empty( $name ) ) ) ) ||
|
1571 |
+
( $show_images && $shownameifnoimage && empty( $linkitem['link_image'] ) && !$usethumbshotsforimages && 1 == $arrayelements && ( !$nooutputempty || ( $nooutputempty && !empty( $name ) ) ) ) ) {
|
1572 |
+
if ( true == $debugmode ) {
|
1573 |
+
$starttimename = microtime ( true );
|
1574 |
+
}
|
1575 |
+
|
1576 |
+
$output .= stripslashes( $beforelink );
|
1577 |
+
|
1578 |
+
if ( ( 'primary' == $sourcename && $the_link != '#') || ( 'secondary' == $sourcename && $the_second_link != '#' ) || ( 'permalink' == $sourcename && $the_permalink != '#' ) ) {
|
1579 |
+
$output .= '<a href="';
|
1580 |
+
|
1581 |
+
if ( !$enable_link_popup ) {
|
1582 |
+
if ( 'primary' == $sourcename || empty( $sourcename ) ) {
|
1583 |
+
$output .= $the_link;
|
1584 |
+
} elseif ( 'secondary' == $sourcename ) {
|
1585 |
+
$output .= $the_second_link;
|
1586 |
+
} elseif ( 'permalink' == $sourcename ) {
|
1587 |
+
$output .= $the_permalink;
|
1588 |
+
}
|
1589 |
+
} else {
|
1590 |
+
$output .= admin_url( 'admin-ajax.php' . '?action=link_library_popup_content&linkid=' . $linkitem['proper_link_id'] . '&settings=' . $settings . '&height=' . ( empty( $popup_height ) ? 300 : $popup_height ) . '&width=' . ( empty( $popup_width ) ? 400 : $popup_width ) . '&xpath=' . $xpath );
|
1591 |
+
}
|
1592 |
+
|
1593 |
+
if ( 'description' == $tooltipname && !empty( $desc ) ) {
|
1594 |
+
$title = ' title="' . $desc . '"';
|
1595 |
+
}
|
1596 |
+
|
1597 |
+
$output .= '" id="link-' . $linkitem['proper_link_id'] . '" class="' . ( $enable_link_popup ? 'thickbox' : 'track_this_link' ) . ' ' . ( $linkitem['link_featured'] ? ' featured' : '' ). '" ' . $linkitem['link_rel'] . $title . $target. '>';
|
1598 |
+
}
|
1599 |
+
|
1600 |
+
$output .= $name;
|
1601 |
+
|
1602 |
+
if ( ( 'primary' == $sourcename && $the_link != '#') || ( 'secondary' == $sourcename && $the_second_link != '#' ) ) {
|
1603 |
+
$output .= '</a>';
|
1604 |
+
}
|
1605 |
+
|
1606 |
+
if ( $showadmineditlinks && $linkeditoruser ) {
|
1607 |
+
$output .= $between . '<span class="editlink"><a href="' . esc_url( add_query_arg( array(
|
1608 |
+
'action' => 'edit', 'post' => $linkitem['proper_link_id'] ),
|
1609 |
+
admin_url( 'post.php' ) ) ) . '">(' . __('Edit', 'link-library') . ')</a></span>';
|
1610 |
+
}
|
1611 |
+
|
1612 |
+
if ( $showupdated && $linkitem['recently_updated'] && 'after' == $showupdatedpos ) {
|
1613 |
+
$output .= '<span class="recently_updated">' . $updatedlabel . '</span>';
|
1614 |
+
}
|
1615 |
+
|
1616 |
+
$output .= stripslashes( $afterlink );
|
1617 |
+
|
1618 |
+
if ( true == $debugmode ) {
|
1619 |
+
$output .= "\n<!-- Time to render name section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimename ) . " --> \n";
|
1620 |
+
}
|
1621 |
+
}
|
1622 |
|
1623 |
+
break;
|
|
|
|
|
1624 |
|
1625 |
+
case 3: //------------------ Date Output --------------------
|
|
|
|
|
|
|
1626 |
|
1627 |
+
if ( $showdate && ( !$nooutputempty || ( $nooutputempty && !empty( $linkitem['link_updated'] ) ) ) ) {
|
1628 |
+
if ( true == $debugmode ) {
|
1629 |
+
$starttimedate = microtime ( true );
|
1630 |
+
}
|
1631 |
|
1632 |
+
$formatteddate = date_i18n( get_option( 'links_updated_date_format' ), intval( $linkitem['link_updated'] ) );
|
1633 |
|
1634 |
+
$output .= $between . stripslashes( $beforedate ) . $formatteddate . stripslashes( $afterdate );
|
|
|
|
|
|
|
1635 |
|
1636 |
+
if ( true == $debugmode ) {
|
1637 |
+
$output .= "\n<!-- Time to render date section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimedate ) . " --> \n";
|
1638 |
+
}
|
1639 |
+
}
|
1640 |
|
1641 |
+
break;
|
|
|
|
|
|
|
1642 |
|
1643 |
+
case 4: //------------------ Description Output --------------------
|
1644 |
|
1645 |
+
if ( $showdescription && ( !$nooutputempty || ( $nooutputempty && !empty( $desc ) ) ) ) {
|
1646 |
+
if ( true == $debugmode ) {
|
1647 |
+
$starttimedesc = microtime ( true );
|
1648 |
+
}
|
1649 |
|
1650 |
+
$output .= $between . stripslashes( $beforedesc ) . $desc . stripslashes( $afterdesc );
|
|
|
|
|
|
|
1651 |
|
1652 |
+
if ( true == $debugmode ) {
|
1653 |
+
$output .= "\n<!-- Time to render description section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimedesc ) . " --> \n";
|
1654 |
+
}
|
1655 |
+
}
|
1656 |
|
1657 |
+
break;
|
|
|
|
|
|
|
1658 |
|
1659 |
+
case 5: //------------------ Notes Output --------------------
|
1660 |
|
1661 |
+
if ( $shownotes && ( !$nooutputempty || ( $nooutputempty && !empty( $descnotes ) ) ) ) {
|
1662 |
+
if ( true == $debugmode ) {
|
1663 |
+
$starttimenotes = microtime ( true );
|
1664 |
+
}
|
1665 |
|
1666 |
+
$output .= $between . stripslashes( $beforenote ) . $descnotes . stripslashes( $afternote );
|
|
|
|
|
|
|
1667 |
|
1668 |
+
if ( true == $debugmode ) {
|
1669 |
+
$output .= "\n<!-- Time to render notes section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimenotes ) . " --> \n";
|
1670 |
+
}
|
1671 |
+
}
|
1672 |
|
1673 |
+
break;
|
|
|
|
|
|
|
1674 |
|
1675 |
+
case 6: //------------------ RSS Icons Output --------------------
|
1676 |
|
1677 |
+
if ( ( $show_rss || $show_rss_icon || $rsspreview ) && ( !$nooutputempty || ( $nooutputempty && !empty( $linkitem['link_rss'] ) ) ) ) {
|
1678 |
+
if ( true == $debugmode ) {
|
1679 |
+
$starttimerssicon = microtime ( true );
|
1680 |
+
}
|
1681 |
|
1682 |
+
$output .= stripslashes( $beforerss ) . '<div class="rsselements">';
|
|
|
1683 |
|
1684 |
+
if ( $show_rss && !empty( $linkitem['link_rss'] ) ) {
|
1685 |
+
$output .= $between . '<a class="rss" href="' . $linkitem['link_rss'] . '">RSS</a>';
|
1686 |
+
}
|
1687 |
+
|
1688 |
+
if ( $show_rss_icon && !empty( $linkitem['link_rss'] ) ) {
|
1689 |
+
$output .= $between . '<a class="rssicon" href="' . $linkitem['link_rss'] . '"><img src="' . plugins_url( 'icons/feed-icon-14x14.png', __FILE__ ) . '" /></a>';
|
1690 |
+
}
|
1691 |
+
|
1692 |
+
if ( $rsspreview && !empty( $linkitem['link_rss'] ) ) {
|
1693 |
+
$output .= $between . '<a href="' . home_url() . '/?link_library_rss_preview=1&keepThis=true&linkid=' . $linkitem['proper_link_id'] . '&previewcount=' . $rsspreviewcount . 'height=' . ( empty( $rsspreviewwidth ) ? 900 : $rsspreviewwidth ) . '&width=' . ( empty( $rsspreviewheight ) ? 700 : $rsspreviewheight ) . '&xpath=' . urlencode( $xpath ) . '" title="' . __('Preview of RSS feed for', 'link-library') . ' ' . $cleanname . '" class="thickbox"><img src="' . plugins_url( 'icons/preview-16x16.png', __FILE__ ) . '" /></a>';
|
1694 |
+
}
|
1695 |
+
|
1696 |
+
$output .= '</div><!-- Div RSS -->' . stripslashes( $afterrss );
|
1697 |
+
|
1698 |
+
if ( true == $debugmode ) {
|
1699 |
+
$output .= "\n<!-- Time to render RSS Icon section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimerssicon ) . " --> \n";
|
1700 |
+
}
|
1701 |
+
}
|
1702 |
+
|
1703 |
+
if ( $rssfeedinline && $linkitem['link_rss'] ) {
|
1704 |
+
if ( $rss_items ) {
|
1705 |
+
$output .= '<div id="ll_rss_results">';
|
1706 |
+
$date_format_string = get_option( 'date_format' );
|
1707 |
+
|
1708 |
+
foreach ( $rss_items as $item ) {
|
1709 |
+
$output .= '<div class="chunk" style="padding:0 5px 5px;">';
|
1710 |
+
$item_timestamp = strtotime( $item->get_date( 'j F Y | g:i a' ) );
|
1711 |
+
|
1712 |
+
$formatted_date = date_i18n( $date_format_string, $item_timestamp );
|
1713 |
+
$output .= '<div class="rsstitle"><a target="feedwindow" href="' . $item->get_permalink() . '">' . $item->get_title() . '</a><span class="rsstimestamp"> - ' . $formatted_date . '</span></div><!-- RSS Feed title -->';
|
1714 |
+
|
1715 |
+
if ( $rssfeedinlinecontent ) {
|
1716 |
+
$output .= '<div class="rsscontent">' . $item->get_description() . '</div><!-- RSS Content -->';
|
1717 |
+
}
|
1718 |
+
|
1719 |
+
$output .= '</div><!-- RSS Chunk -->';
|
1720 |
+
$output .= '<br />';
|
1721 |
+
}
|
1722 |
+
|
1723 |
+
$output .= '</div><!-- RSS Results -->';
|
1724 |
+
}
|
1725 |
+
}
|
1726 |
+
break;
|
1727 |
+
case 7: //------------------ Web Link Output --------------------
|
1728 |
+
|
1729 |
+
if ( 'false' != $displayweblink &&
|
1730 |
+
( !$nooutputempty ||
|
1731 |
+
( $nooutputempty && !empty( $the_link ) && 'label' != $displayweblink && '#' != $the_link && 'primary' == $sourceweblink ) ||
|
1732 |
+
( $nooutputempty && !empty( $the_second_link ) && 'label' != $displayweblink && '#' != $the_second_link && 'secondary' == $sourceweblink ) ||
|
1733 |
+
( $nooutputempty && !empty( $weblinklabel ) && 'label' == $displayweblink && !empty( $the_link ) && '#' != $the_link && 'primary' == $sourceweblink ) ||
|
1734 |
+
( $nooutputempty && !empty( $weblinklabel ) && 'label' == $displayweblink && !empty( $the_second_link ) && '#' != $the_second_link && 'secondary' == $sourceweblink )
|
1735 |
+
) ) {
|
1736 |
+
if ( true == $debugmode ) {
|
1737 |
+
$starttimerweblink = microtime ( true );
|
1738 |
+
}
|
1739 |
+
|
1740 |
+
if ( 'addressonly' == $displayweblink ) {
|
1741 |
+
$output .= $between . stripslashes( $beforeweblink );
|
1742 |
+
$output .= $the_link;
|
1743 |
+
$output .= stripslashes( $afterweblink );
|
1744 |
+
} else {
|
1745 |
+
$output .= $between . stripslashes( $beforeweblink ) . '<a href="';
|
1746 |
+
|
1747 |
+
if ( 'primary' == $sourceweblink || empty( $sourceweblink ) ) {
|
1748 |
+
$output .= $the_link;
|
1749 |
+
} elseif ( 'secondary' == $sourceweblink ) {
|
1750 |
+
$output .= $the_second_link;
|
1751 |
+
}
|
1752 |
+
|
1753 |
+
if ( !empty( $target ) && !empty( $weblinktarget ) ) {
|
1754 |
+
$new_target_string = '="' . $weblinktarget . ' ';
|
1755 |
+
$weblinktarget = str_replace( '="', $new_target_string, $target );
|
1756 |
+
} elseif ( empty( $target ) && !empty( $weblinktarget ) ) {
|
1757 |
+
$weblinktarget = ' target="' . $weblinktarget . '"';
|
1758 |
+
}
|
1759 |
+
|
1760 |
+
$output .= '" id="link-' . $linkitem['proper_link_id'] . '" class="track_this_link" ' . $weblinktarget . '>';
|
1761 |
+
|
1762 |
+
if ( 'address' == $displayweblink ) {
|
1763 |
+
if ( ( 'primary' == $sourceweblink || empty( $sourceweblink ) ) && !empty( $the_link ) ) {
|
1764 |
+
$output .= $the_link;
|
1765 |
+
} elseif ( 'secondary' == $sourceweblink && !empty( $the_second_link ) ) {
|
1766 |
+
$output .= $the_second_link;
|
1767 |
+
}
|
1768 |
+
} elseif ( 'label' == $displayweblink && !empty( $weblinklabel ) ) {
|
1769 |
+
$output .= stripslashes( $weblinklabel );
|
1770 |
+
}
|
1771 |
+
|
1772 |
+
$output .= '</a>' . stripslashes( $afterweblink );
|
1773 |
+
}
|
1774 |
+
|
1775 |
+
if ( true == $debugmode ) {
|
1776 |
+
$output .= "\n<!-- Time to render web link section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimerweblink ) . " --> \n";
|
1777 |
+
}
|
1778 |
+
}
|
1779 |
+
|
1780 |
+
break;
|
1781 |
+
case 8: //------------------ Telephone Output --------------------
|
1782 |
+
|
1783 |
+
if ( 'false' != $showtelephone &&
|
1784 |
+
( !$nooutputempty ||
|
1785 |
+
( $nooutputempty && !empty( $linkitem['link_telephone'] ) && ( 'link' == $showtelephone || 'plain' == $showtelephone ) ) ||
|
1786 |
+
( $nooutputempty && !empty( $telephonelabel ) && 'label' == $showtelephone )
|
1787 |
+
)
|
1788 |
+
) {
|
1789 |
+
if ( true == $debugmode ) {
|
1790 |
+
$starttimertelephone = microtime ( true );
|
1791 |
+
}
|
1792 |
+
|
1793 |
+
$output .= $between . stripslashes( $beforetelephone );
|
1794 |
+
|
1795 |
+
if ( 'plain' != $showtelephone ) {
|
1796 |
+
$output .= '<a href="';
|
1797 |
+
|
1798 |
+
if ( ( 'primary' == $sourcetelephone || empty( $sourcetelephone ) ) && !empty( $the_link ) ) {
|
1799 |
+
$output .= $the_link;
|
1800 |
+
} elseif ( 'secondary' == $sourcetelephone && !empty( $the_second_link ) ) {
|
1801 |
+
$output .= $the_second_link;
|
1802 |
+
}
|
1803 |
+
|
1804 |
+
$output .= '" id="link-' . $linkitem['proper_link_id'] . '" class="track_this_link" >';
|
1805 |
+
}
|
1806 |
+
|
1807 |
+
if ( 'link' == $showtelephone || 'plain' == $showtelephone ) {
|
1808 |
+
$output .= $linkitem['link_telephone'];
|
1809 |
+
} elseif ( 'label' == $showtelephone ) {
|
1810 |
+
$output .= $telephonelabel;
|
1811 |
+
}
|
1812 |
+
|
1813 |
+
if ( 'plain' != $showtelephone ) {
|
1814 |
+
$output .= '</a>';
|
1815 |
+
}
|
1816 |
+
|
1817 |
+
$output .= stripslashes( $aftertelephone );
|
1818 |
+
|
1819 |
+
if ( true == $debugmode ) {
|
1820 |
+
$output .= "\n<!-- Time to render telephone section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimertelephone ) . " --> \n";
|
1821 |
+
}
|
1822 |
+
}
|
1823 |
+
break;
|
1824 |
+
case 9: //------------------ E-mail Output --------------------
|
1825 |
+
|
1826 |
+
if ( 'false' != $showemail && ( !$nooutputempty || ( $nooutputempty && !empty( $linkitem['link_email'] ) ) ) ) {
|
1827 |
+
if ( true == $debugmode ) {
|
1828 |
+
$starttimeremail = microtime ( true );
|
1829 |
+
}
|
1830 |
+
|
1831 |
+
$output .= $between . stripslashes( $beforeemail );
|
1832 |
+
|
1833 |
+
if ( 'plain' != $showemail ) {
|
1834 |
+
$output .= '<a href="';
|
1835 |
+
|
1836 |
+
if ( 'mailto' == $showemail || 'mailtolabel' == $showemail ) {
|
1837 |
+
if ( false === strpos( $linkitem['link_email'], '@' ) ) {
|
1838 |
+
$output .= esc_url( $linkitem['link_email'] );
|
1839 |
+
} else {
|
1840 |
+
$output .= 'mailto:' . $linkitem['link_email'];
|
1841 |
+
}
|
1842 |
+
} elseif ( 'command' == $showemail || 'commandlabel' == $showemail ) {
|
1843 |
+
$newcommand = str_replace( '#email', $linkitem['link_email'], $emailcommand );
|
1844 |
+
$cleanlinkname = str_replace( ' ', '%20', $linkitem['link_name'] );
|
1845 |
+
$newcommand = str_replace( '#company', $cleanlinkname, $newcommand );
|
1846 |
+
$output .= $newcommand;
|
1847 |
+
}
|
1848 |
+
|
1849 |
+
$output .= '">';
|
1850 |
+
}
|
1851 |
+
|
1852 |
+
if ( 'plain' == $showemail || 'mailto' == $showemail || 'command' == $showemail ) {
|
1853 |
+
$output .= $linkitem['link_email'];
|
1854 |
+
} elseif ( 'mailtolabel' == $showemail || 'commandlabel' == $showemail ) {
|
1855 |
+
$output .= $emaillabel;
|
1856 |
+
}
|
1857 |
+
|
1858 |
+
if ( 'plain' != $showemail ) {
|
1859 |
+
$output .= '</a>';
|
1860 |
+
}
|
1861 |
+
|
1862 |
+
$output .= stripslashes( $afteremail );
|
1863 |
+
|
1864 |
+
if ( true == $debugmode ) {
|
1865 |
+
$output .= "\n<!-- Time to render e-mail section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimeremail ) . " --> \n";
|
1866 |
+
}
|
1867 |
+
}
|
1868 |
+
|
1869 |
+
break;
|
1870 |
+
case 10: //------------------ Link Hits Output --------------------
|
1871 |
+
|
1872 |
+
if ( $showlinkhits && ( !$nooutputempty || ( $nooutputempty && !empty( $linkitem['link_visits'] ) ) ) ) {
|
1873 |
+
if ( true == $debugmode ) {
|
1874 |
+
$starttimerhits = microtime ( true );
|
1875 |
+
}
|
1876 |
+
|
1877 |
+
$output .= $between . stripslashes( $beforelinkhits );
|
1878 |
+
$output .= $linkitem['link_visits'];
|
1879 |
+
$output .= stripslashes( $afterlinkhits );
|
1880 |
+
|
1881 |
+
if ( true == $debugmode ) {
|
1882 |
+
$output .= "\n<!-- Time to render link hits section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimerhits ) . " --> \n";
|
1883 |
+
}
|
1884 |
+
}
|
1885 |
+
|
1886 |
+
break;
|
1887 |
+
|
1888 |
+
case 11: //------------------ Link Rating Output --------------------
|
1889 |
+
|
1890 |
+
if ( $showrating && ( !$nooutputempty || ( $nooutputempty && !empty( $linkitem['link_rating'] ) ) ) ) {
|
1891 |
+
if ( true == $debugmode ) {
|
1892 |
+
$starttimerrating = microtime ( true );
|
1893 |
+
}
|
1894 |
+
|
1895 |
+
$output .= $between . stripslashes( $beforelinkrating );
|
1896 |
+
$output .= $linkitem['link_rating'];
|
1897 |
+
$output .= stripslashes( $afterlinkrating );
|
1898 |
+
|
1899 |
+
if ( true == $debugmode ) {
|
1900 |
+
$output .= "\n<!-- Time to render link rating section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimerrating ) . " --> \n";
|
1901 |
+
}
|
1902 |
+
}
|
1903 |
+
|
1904 |
+
break;
|
1905 |
+
|
1906 |
+
case 12: //------------------ Link Large Description Output --------------------
|
1907 |
+
|
1908 |
+
if ( $showlargedescription && ( !$nooutputempty || ( $nooutputempty && !empty( $textfield ) ) ) ) {
|
1909 |
+
if ( true == $debugmode ) {
|
1910 |
+
$starttimerlargedesc = microtime ( true );
|
1911 |
+
}
|
1912 |
+
|
1913 |
+
$output .= $between . stripslashes( $beforelargedescription );
|
1914 |
+
$output .= $textfield;
|
1915 |
+
$output .= stripslashes( $afterlargedescription );
|
1916 |
+
|
1917 |
+
if ( true == $debugmode ) {
|
1918 |
+
$output .= "\n<!-- Time to render link large description section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimerlargedesc ) . " --> \n";
|
1919 |
+
}
|
1920 |
+
}
|
1921 |
+
|
1922 |
+
break;
|
1923 |
+
|
1924 |
+
case 13: //------------------ Link Large Description Output --------------------
|
1925 |
+
|
1926 |
+
if ( $showsubmittername && ( !$nooutputempty || ( $nooutputempty && !empty( $linkitem['link_submitter_name'] ) ) ) ) {
|
1927 |
+
if ( true == $debugmode ) {
|
1928 |
+
$starttimersubmittername = microtime ( true );
|
1929 |
+
}
|
1930 |
+
|
1931 |
+
$output .= $between . stripslashes( $beforesubmittername );
|
1932 |
+
$output .= $linkitem['link_submitter_name'];
|
1933 |
+
$output .= stripslashes( $aftersubmittername );
|
1934 |
+
|
1935 |
+
if ( true == $debugmode ) {
|
1936 |
+
$output .= "\n<!-- Time to render link large description section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimersubmittername ) . " --> \n";
|
1937 |
+
}
|
1938 |
+
}
|
1939 |
+
|
1940 |
+
break;
|
1941 |
+
|
1942 |
+
case 14: //------------------ Category Description Output --------------------
|
1943 |
+
|
1944 |
+
if ( isset( $linkitem['category_description'] ) ) {
|
1945 |
+
$linkitem['category_description'] = str_replace( '[', '<', $linkitem['category_description'] );
|
1946 |
+
$linkitem['category_description'] = str_replace( ']', '>', $linkitem['category_description'] );
|
1947 |
+
} else {
|
1948 |
+
$linkitem['category_description'] = '';
|
1949 |
+
}
|
1950 |
+
|
1951 |
+
if ( $showcatdesc && ( !$nooutputempty || ( $nooutputempty && !empty( $linkitem['category_description'] ) ) ) ) {
|
1952 |
+
|
1953 |
+
if ( true == $debugmode ) {
|
1954 |
+
$starttimedesc = microtime ( true );
|
1955 |
+
}
|
1956 |
+
|
1957 |
+
$output .= $between . stripslashes( $beforecatdesc ) . $linkitem['category_description'] . stripslashes( $aftercatdesc );
|
1958 |
+
|
1959 |
+
if ( true == $debugmode ) {
|
1960 |
+
$output .= "\n<!-- Time to render category description section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimedesc ) . " --> \n";
|
1961 |
+
}
|
1962 |
+
}
|
1963 |
+
|
1964 |
+
break;
|
1965 |
+
|
1966 |
+
case 15: //------------------ Link Tags Output --------------------
|
1967 |
+
|
1968 |
+
$link_tags = wp_get_post_terms( $linkitem['proper_link_id'], 'link_library_tags' );
|
1969 |
+
|
1970 |
+
if ( $showlinktags && ( !$nooutputempty || ( $nooutputempty && !empty( $link_tags ) ) ) ) {
|
1971 |
+
|
1972 |
+
if ( true == $debugmode ) {
|
1973 |
+
$starttimedesc = microtime ( true );
|
1974 |
+
}
|
1975 |
+
|
1976 |
+
$output .= $between . stripslashes( $beforelinktags );
|
1977 |
+
|
1978 |
+
$link_tags_array = array();
|
1979 |
+
foreach ( $link_tags as $link_tag ) {
|
1980 |
+
$link_tags_array[] = $link_tag->name;
|
1981 |
+
}
|
1982 |
+
$output .= implode( ',', $link_tags_array );
|
1983 |
+
$output .= stripslashes( $afterlinktags );
|
1984 |
+
|
1985 |
+
if ( true == $debugmode ) {
|
1986 |
+
$output .= "\n<!-- Time to render category description section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimedesc ) . " --> \n";
|
1987 |
+
}
|
1988 |
+
}
|
1989 |
+
|
1990 |
+
break;
|
1991 |
+
case 16: //------------------ Link Price Output --------------------
|
1992 |
+
|
1993 |
+
if ( $showlinkprice && ( !$nooutputempty || ( $nooutputempty && !empty( $linkitem['link_price'] ) ) ) ) {
|
1994 |
+
if ( true == $debugmode ) {
|
1995 |
+
$starttimersubmittername = microtime ( true );
|
1996 |
+
}
|
1997 |
+
|
1998 |
+
$output .= $between . stripslashes( $beforelinkprice );
|
1999 |
+
if ( 'before' == $linkcurrencyplacement && !empty( $linkcurrency ) && $linkitem['link_price'] > 0 ) {
|
2000 |
+
$output .= $linkcurrency;
|
2001 |
+
}
|
2002 |
+
|
2003 |
+
$value = number_format((float)$linkitem['link_price'], 2, '.', '');
|
2004 |
+
if ( $value == 0 ) {
|
2005 |
+
$value = __( 'Free', 'link-library' );
|
2006 |
+
}
|
2007 |
+
$output .= $value;
|
2008 |
+
|
2009 |
+
if ( 'after' == $linkcurrencyplacement && !empty( $linkcurrency ) && $linkitem['link_price'] > 0 ) {
|
2010 |
+
$output .= $linkcurrency;
|
2011 |
+
}
|
2012 |
+
$output .= stripslashes( $afterlinkprice );
|
2013 |
+
|
2014 |
+
if ( true == $debugmode ) {
|
2015 |
+
$output .= "\n<!-- Time to render link large description section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimersubmittername ) . " --> \n";
|
2016 |
+
}
|
2017 |
+
}
|
2018 |
+
|
2019 |
+
break;
|
2020 |
+
}
|
2021 |
}
|
2022 |
+
}
|
2023 |
|
2024 |
+
$output .= stripslashes( $afteritem ) . "\n";
|
2025 |
|
2026 |
+
if ( $linkaddfrequency > 0 ) {
|
2027 |
+
if ( 0 == $linkcount % $linkaddfrequency ) {
|
2028 |
+
$output .= stripslashes( $addafterlink );
|
2029 |
}
|
2030 |
}
|
2031 |
|
2032 |
+
if ( true == $debugmode ) {
|
2033 |
+
$output .= '<!-- Time to render link id ' . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $linkstarttime ) . " --> \n";
|
2034 |
+
}
|
2035 |
+
|
2036 |
+
$linkcount++;
|
2037 |
+
|
2038 |
+
if ( !empty( $maxlinks ) && is_numeric( $maxlinks ) && 0 < $maxlinks && $linkcount > $maxlinks ) {
|
2039 |
+
break;
|
2040 |
+
}
|
2041 |
+
|
2042 |
+
}
|
2043 |
+
|
2044 |
+
// Close the category
|
2045 |
+
if ( $the_link_query->found_posts > 0 ) {
|
2046 |
+
if ( 'true' == $display_as_table ) {
|
2047 |
+
$output .= "\t</table>\n";
|
2048 |
+
} elseif ( 'false' == $display_as_table ) {
|
2049 |
+
$output .= "\t</ul>\n";
|
2050 |
+
}
|
2051 |
+
}
|
2052 |
+
}
|
2053 |
+
|
2054 |
+
if ( !empty( $catlistwrappers ) && !empty( $beforecastlist1 ) ) {
|
2055 |
+
$output .= '</div><!-- Div cat list wrappers -->';
|
2056 |
}
|
|
|
|
|
2057 |
|
2058 |
+
if ( !empty( $afterlastlink ) && $the_link_query->found_posts > 0 ) {
|
2059 |
+
$output .= stripslashes( $afterlastlink );
|
2060 |
+
}
|
2061 |
+
|
2062 |
+
if ( $showlinksonclick ) {
|
2063 |
+
$output .= '</div><!-- Div Show Links on click -->';
|
2064 |
+
}
|
2065 |
+
|
2066 |
+
$currentcategory = $currentcategory + 1;
|
2067 |
|
2068 |
+
if ( $display_children && $cat_has_children ) {
|
2069 |
+
$output .= RenderLinkLibrary( $LLPluginClass, $generaloptions, $libraryoptions, $settings, $onlycount, $link_category->term_id, $level + 1, $display_children, $hidechildcatlinks, $linkcount );
|
2070 |
+
}
|
2071 |
|
2072 |
+
if ( $combineresults ) {
|
2073 |
+
break;
|
2074 |
+
} else {
|
2075 |
+
$output .= "</div><!-- Div End Category -->\n";
|
2076 |
+
}
|
2077 |
}
|
2078 |
}
|
2079 |
}
|
2080 |
+
} else {
|
2081 |
+
$output .= __( 'All of your links must be assigned at least to one category to be displayed', 'link-library');
|
2082 |
|
2083 |
+
if ( isset( $_GET['searchll'] ) ) {
|
2084 |
+
$output .= $searchnoresultstext . "\n";
|
2085 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2086 |
}
|
2087 |
|
2088 |
if ( $usethumbshotsforimages ) {
|
2092 |
$output .= '<div class="llthumbshotsnotice"><a href="http://www.thumbshots.com" target="_blank" title="Thumbnails Screenshots by Thumbshots">Thumbnail Screenshots by Thumbshots</a></div>';
|
2093 |
}
|
2094 |
}
|
2095 |
+
} else {
|
2096 |
+
$output .= __( 'No links found', 'link-library' );
|
2097 |
+
}
|
2098 |
|
2099 |
+
if ( $level == 0 && $pagination && 'search' != $mode && ( 'AFTER' == $paginationposition || empty( $pagination ) ) ) {
|
2100 |
+
$previouspagenumber = $pagenumber - 1;
|
2101 |
+
$nextpagenumber = $pagenumber + 1;
|
2102 |
+
$pageID = get_queried_object_id();
|
|
|
|
|
|
|
2103 |
|
2104 |
+
$output .= link_library_display_pagination( $previouspagenumber, $nextpagenumber, $number_of_pages, $pagenumber, $showonecatonly, $showonecatmode, $AJAXcatid, $settings, $pageID, $currentcatletter );
|
2105 |
+
}
|
|
|
|
|
|
|
|
|
|
|
2106 |
|
2107 |
+
if ( $level == 0 ) {
|
2108 |
$xpath = $LLPluginClass->relativePath( dirname( __FILE__ ), ABSPATH );
|
2109 |
$nonce = wp_create_nonce( 'll_tracker' );
|
2110 |
|
2114 |
$output .= "jQuery('.arrow-up').hide();\n";
|
2115 |
$output .= "jQuery('#linklist" . $settings . " a.track_this_link').click(function() {\n";
|
2116 |
$output .= "linkid = this.id;\n";
|
2117 |
+
$output .= "linkid = linkid.substring(5);\n";
|
2118 |
+
$output .= "path = '" . $xpath . "';\n";
|
2119 |
$output .= "jQuery.ajax( {" .
|
2120 |
+
" type: 'POST'," .
|
2121 |
+
" url: '" . admin_url( 'admin-ajax.php' ) . "', " .
|
2122 |
+
" data: { action: 'link_library_tracker', " .
|
2123 |
+
" _ajax_nonce: '" . $nonce . "', " .
|
2124 |
+
" id:linkid, xpath:path } " .
|
2125 |
+
" });\n";
|
2126 |
$output .= "return true;\n";
|
2127 |
$output .= "});\n";
|
2128 |
$output .= "jQuery('#linklist" . $settings . " .expandlinks').click(function() {\n";
|
2129 |
$output .= "target = '.' + jQuery(this).attr('id');\n";
|
2130 |
+
$output .= "if ( jQuery( target ).is(':visible') ) {\n";
|
2131 |
+
$output .= "jQuery(target).slideUp();\n";
|
2132 |
+
$output .= "jQuery(this).children('img').attr('src', '";
|
2133 |
+
|
2134 |
+
if ( !empty( $expandiconpath ) ) {
|
2135 |
+
$output .= $expandiconpath;
|
2136 |
+
} else {
|
2137 |
+
$output .= plugins_url( 'icons/expand-32.png', __FILE__ );
|
2138 |
+
}
|
2139 |
+
|
2140 |
+
$output .= "');\n";
|
2141 |
+
$output .= "} else {\n";
|
2142 |
+
$output .= "jQuery(target).slideDown();\n";
|
2143 |
+
$output .= "jQuery(this).children('img').attr('src', '";
|
2144 |
+
|
2145 |
+
if ( !empty( $collapseiconpath ) ) {
|
2146 |
+
$output .= $collapseiconpath;
|
2147 |
+
} else {
|
2148 |
+
$output .= plugins_url( 'icons/collapse-32.png', __FILE__ );
|
2149 |
+
}
|
2150 |
+
|
2151 |
+
$output .= "');\n";
|
2152 |
+
$output .= "}\n";
|
2153 |
$output .= "});\n";
|
2154 |
$output .= "});\n";
|
2155 |
$output .= "</script>";
|
2156 |
unset( $xpath );
|
2157 |
+
}
|
2158 |
|
2159 |
+
$currentcategory = $currentcategory + 1;
|
2160 |
|
2161 |
+
if ( $level == 0 ) {
|
2162 |
+
$output .= '</div><!-- Div Linklist -->';
|
2163 |
+
|
2164 |
+
$output .= "\n<!-- End of Link Library Output -->\n\n";
|
|
|
|
|
|
|
|
|
2165 |
}
|
2166 |
|
2167 |
+
remove_filter( 'posts_search', 'll_expand_posts_search', 10 );
|
2168 |
+
|
2169 |
+
wp_reset_postdata();
|
2170 |
|
2171 |
return do_shortcode( $output );
|
2172 |
}
|
render-link-library-search-sc.php
CHANGED
@@ -19,7 +19,7 @@ function RenderLinkLibrarySearchForm( $libraryoptions ) {
|
|
19 |
$libraryoptions = wp_parse_args( $libraryoptions, ll_reset_options( 1, 'list', 'return' ) );
|
20 |
extract( $libraryoptions );
|
21 |
|
22 |
-
$output = '<form method="
|
23 |
|
24 |
if ( !empty( $searchresultsaddress ) ) {
|
25 |
$output .= ' action="' . $searchresultsaddress . '"';
|
@@ -34,12 +34,21 @@ function RenderLinkLibrarySearchForm( $libraryoptions ) {
|
|
34 |
} elseif ( isset( $_GET['p'] ) && !empty( $_GET['p'] ) ) {
|
35 |
$output .= '<input type="hidden" name="p" value="' . $_GET['p'] . '" />';
|
36 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
$output .= "<input type='submit' id='searchbutton' value='" . $searchlabel . "' />";
|
39 |
|
40 |
if ( $showsearchreset ) {
|
41 |
$output .= "<input type='submit' id='resetbutton' value='" . __( 'Reset search', 'link-library' ) . "' />";
|
42 |
}
|
|
|
43 |
$output .= "</div>\n";
|
44 |
$output .= "</form>\n\n";
|
45 |
|
19 |
$libraryoptions = wp_parse_args( $libraryoptions, ll_reset_options( 1, 'list', 'return' ) );
|
20 |
extract( $libraryoptions );
|
21 |
|
22 |
+
$output = '<form method="get" id="llsearch"';
|
23 |
|
24 |
if ( !empty( $searchresultsaddress ) ) {
|
25 |
$output .= ' action="' . $searchresultsaddress . '"';
|
34 |
} elseif ( isset( $_GET['p'] ) && !empty( $_GET['p'] ) ) {
|
35 |
$output .= '<input type="hidden" name="p" value="' . $_GET['p'] . '" />';
|
36 |
}
|
37 |
+
|
38 |
+
if ( isset( $_GET['link_price'] ) && !empty( $_GET['link_price'] ) ) {
|
39 |
+
$output .= '<input type="hidden" name="link_price" value="' . $_GET['link_price'] . '" />';
|
40 |
+
}
|
41 |
+
|
42 |
+
if ( isset( $_GET['link_tags'] ) && !empty( $_GET['link_tags'] ) ) {
|
43 |
+
$output .= '<input type="hidden" name="link_tags" value="' . $_GET['link_tags'] . '" />';
|
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 |
|
render-link-library-tag-filter-sc.php
ADDED
@@ -0,0 +1,145 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
3 |
+
|
4 |
+
require_once plugin_dir_path( __FILE__ ) . 'link-library-defaults.php';
|
5 |
+
|
6 |
+
function RenderLinkLibraryFilterBox( $LLPluginClass, $generaloptions, $libraryoptions, $settings, $include_tags, $exclude_tags, $show_tag_filters, $tag_label, $show_price_filters, $price_label ) {
|
7 |
+
|
8 |
+
$generaloptions = wp_parse_args( $generaloptions, ll_reset_gen_settings( 'return' ) );
|
9 |
+
extract( $generaloptions );
|
10 |
+
|
11 |
+
$libraryoptions = wp_parse_args( $libraryoptions, ll_reset_options( 1, 'list', 'return' ) );
|
12 |
+
extract( $libraryoptions );
|
13 |
+
|
14 |
+
$output = '<div class="linklibrary-filters">';
|
15 |
+
$output .= '<fieldset>';
|
16 |
+
$output .= '<legend>' . __( 'Filters', 'link-library' ) . '</legend>';
|
17 |
+
|
18 |
+
if ( isset( $_GET['link_price'] ) && !empty( $_GET['link_price'] ) ) {
|
19 |
+
$prev_link_price = $_GET['link_price'];
|
20 |
+
} else {
|
21 |
+
$prev_link_price = '';
|
22 |
+
}
|
23 |
+
|
24 |
+
if ( isset( $_GET['searchll'] ) && !empty( $_GET['searchll'] ) ) {
|
25 |
+
$searchstring = $_GET['searchll'];
|
26 |
+
} else {
|
27 |
+
$searchstring = '';
|
28 |
+
}
|
29 |
+
|
30 |
+
if ( $show_tag_filters ) {
|
31 |
+
|
32 |
+
$output .= '<div class="tag-filters">';
|
33 |
+
$output .= '<div class="tag-filters-title">' . $tag_label . '</div>';
|
34 |
+
$link_terms = get_terms( array( 'taxonomy' => 'link_library_tags', 'include' => $include_tags, 'exclude' => $exclude_tags ) );
|
35 |
+
|
36 |
+
if ( isset( $_GET['link_tags'] ) && !empty( $_GET['link_tags'] ) ) {
|
37 |
+
$prev_link_tags = $_GET['link_tags'];
|
38 |
+
} else {
|
39 |
+
$prev_link_tags = '';
|
40 |
+
}
|
41 |
+
|
42 |
+
$prev_link_tags_array = explode( '.', $prev_link_tags );
|
43 |
+
|
44 |
+
$output .= '<div class="tag-filters-choices">';
|
45 |
+
|
46 |
+
foreach ( $link_terms as $link_term ) {
|
47 |
+
$output .= '<input type="checkbox" name="link_tag_list[]" class="link_tag_list" ' . checked( in_array( $link_term->slug, $prev_link_tags_array ), true, false ) . ' value="' . $link_term->slug . '"/> ' . $link_term->name . '<br/>';
|
48 |
+
}
|
49 |
+
|
50 |
+
$output .= '</div>';
|
51 |
+
|
52 |
+
$output .= '<input type="hidden" name="link_tags" class="link_tags" value="' . $prev_link_tags . '">';
|
53 |
+
|
54 |
+
$output .= '<script type="text/javascript">';
|
55 |
+
|
56 |
+
$output .= "function isInArray(days, day) {\n";
|
57 |
+
$output .= "\treturn days.indexOf(day.toLowerCase()) > -1;\n";
|
58 |
+
$output .= "}\n";
|
59 |
+
|
60 |
+
$output .= "jQuery('.link_tag_list').click( function() {\n";
|
61 |
+
$output .= "\tcurrent_link_tags = jQuery('.link_tags').val();\n";
|
62 |
+
$output .= "\tif (typeof current_link_tags == 'undefined') current_link_tags = '';\n";
|
63 |
+
$output .= "\tif ( current_link_tags ) { current_link_tags_array = current_link_tags.split('.'); } else { current_link_tags_array = new Array(); }\n";
|
64 |
+
$output .= "\tif ( jQuery(this).is(':checked') && !isInArray( current_link_tags_array, jQuery(this).val() ) ) {\n";
|
65 |
+
$output .= "\t\tcurrent_link_tags_array.push( jQuery(this).val() );\n";
|
66 |
+
$output .= "\t} else if ( jQuery(this).prop('checked', false) && isInArray( current_link_tags_array, jQuery(this).val() ) ) {\n";
|
67 |
+
$output .= "\t\tcurrent_link_tags_array.splice( current_link_tags_array.indexOf(jQuery(this).val()));\n";
|
68 |
+
$output .= "\t}\n";
|
69 |
+
$output .= "\tvar link_tags_string = current_link_tags_array.join('.');\n";
|
70 |
+
$output .= "\twindow.location.href = '//' + location.host + location.pathname + '?' + 'link_tags=' + link_tags_string";
|
71 |
+
|
72 |
+
if ( $show_price_filters ) {
|
73 |
+
$output .= " + '&'";
|
74 |
+
|
75 |
+
if ( 'free' == $prev_link_price ) {
|
76 |
+
$output .= " + 'link_price=free'";
|
77 |
+
} else {
|
78 |
+
$output .= " + 'link_price='";
|
79 |
+
}
|
80 |
+
}
|
81 |
+
|
82 |
+
if ( !empty( $searchstring ) ) {
|
83 |
+
$output .= " + '&searchll=" . $searchstring . "'";
|
84 |
+
}
|
85 |
+
|
86 |
+
$output .= "});\n";
|
87 |
+
|
88 |
+
$output .= '</script>';
|
89 |
+
|
90 |
+
$output .= '</div>';
|
91 |
+
}
|
92 |
+
|
93 |
+
if ( $show_price_filters ) {
|
94 |
+
$output .= '<div class="tag-filters">';
|
95 |
+
$output .= '<div class="tag-filters-title">' . $price_label . '</div>';
|
96 |
+
|
97 |
+
$output .= '<div class="price-filters-choices">';
|
98 |
+
$output .= '<input type="checkbox" name="link_price" class="link_price" ' . checked( $prev_link_price, 'free', false ) . ' value="free"/> ' . __( 'Free', 'link-library' ) . '<br/>';
|
99 |
+
$output .= '</div>';
|
100 |
+
|
101 |
+
$output .= '<script type="text/javascript">';
|
102 |
+
|
103 |
+
$output .= "jQuery('.link_price').click( function() {\n";
|
104 |
+
|
105 |
+
if ( $show_tag_filters ) {
|
106 |
+
$output .= "\tcurrent_link_tags = jQuery('.link_tags').val();\n";
|
107 |
+
$output .= "\tif (typeof current_link_tags == 'undefined') current_link_tags = '';\n";
|
108 |
+
}
|
109 |
+
|
110 |
+
$output .= "\twindow.location.href = '//' + location.host + location.pathname + '?'";
|
111 |
+
|
112 |
+
if ( $show_tag_filters ) {
|
113 |
+
$output .= " + 'link_tags=' + current_link_tags";
|
114 |
+
$output .= " + '&'";
|
115 |
+
}
|
116 |
+
|
117 |
+
if ( 'free' == $prev_link_price ) {
|
118 |
+
$output .= " + 'link_price='";
|
119 |
+
} else {
|
120 |
+
$output .= " + 'link_price=free'";
|
121 |
+
}
|
122 |
+
|
123 |
+
if ( !empty( $searchstring ) ) {
|
124 |
+
$output .= " + '&searchll='" . $searchstring . "'";
|
125 |
+
}
|
126 |
+
|
127 |
+
$output .= ";\n";
|
128 |
+
|
129 |
+
$output .= "});\n";
|
130 |
+
|
131 |
+
$output .= '</script>';
|
132 |
+
|
133 |
+
$output .= '</div>';
|
134 |
+
|
135 |
+
$output .= '</div>';
|
136 |
+
}
|
137 |
+
|
138 |
+
//$output .= '<input type="submit" value="' . __( 'Apply filter', 'link-library' ) . '" />';
|
139 |
+
|
140 |
+
$output .= '</fieldset>';
|
141 |
+
|
142 |
+
$output .= '</div>';
|
143 |
+
|
144 |
+
return $output;
|
145 |
+
}
|
rss.genesis.php
CHANGED
@@ -13,46 +13,46 @@
|
|
13 |
:...> Date: 02/24/2006
|
14 |
:...> Latest Version: http://rssgenesis.sourceforge.net/
|
15 |
:...> License: LGPL (GNU Lesser General PublicLicense)
|
16 |
-
|
17 |
\\ ================================================== */
|
18 |
|
19 |
// This is the rssGenesis class. PHP4 syntax. PHP4 and PHP5 compatible. //
|
20 |
class rssGenesis {
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
|
57 |
// Holds RSS Version
|
58 |
var $rssformat = "RSS20";
|
@@ -72,113 +72,113 @@
|
|
72 |
$this->rss_item = "\t\t<item>\r\n\t\t\t<title>{item_Title}</title>\r\n\t\t\t<link>{item_Link}</link>\r\n\t\t\t<description>{item_Description}</description>\r\n\t\t\t</item>\r\n\r\n";
|
73 |
}
|
74 |
}
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
$category = ($category == null) ? "" : $category;
|
94 |
$generator = ( !isset( $generator ) || $generator == null) ? "" : $generator;
|
95 |
-
|
96 |
$timetolive = ($timetolive == null) ? "" : $timetolive;
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
|
183 |
if ($this->rssformat == "RSS20") {
|
184 |
// Category parser // Optional data
|
@@ -188,241 +188,241 @@
|
|
188 |
|
189 |
endif;
|
190 |
}
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
|
287 |
if ($this->rssformat == "RSS20") {
|
288 |
// Inserts channel category // Replaces {channel_Category}
|
289 |
$this->channel_data = str_replace ("{channel_Category}", $category, $this->channel_data);
|
290 |
}
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
|
344 |
if ($this->rssformat == "RSS20") {
|
345 |
$this->image_data = str_replace ("\r\n\t\t\t<width>{image_Width}</width>\r\n\t\t\t<height>{image_Height}</height>", "", $this->image_data);
|
346 |
}
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
$pubdate = ($pubdate == null) ? "" : $pubdate;
|
388 |
$category = ($category == null) ? "" : $category;
|
389 |
-
|
390 |
|
391 |
//Formats pubdate
|
392 |
$mysqltimestamp = $pubdate;
|
393 |
$pubdate = gmdate('D, d M Y H:i:s \G\M\T', strtotime($mysqltimestamp));
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
|
415 |
// Description parser // Convertes quotes and strips backslashes!
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
|
427 |
//Inserts publication date if feed is RSS20
|
428 |
if ($this->rssformat == "RSS20") {
|
@@ -430,114 +430,114 @@
|
|
430 |
|
431 |
$temp = str_replace ("{item_category}", $category, $temp);
|
432 |
}
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
|
542 |
function getFeed() {
|
543 |
|
@@ -546,5 +546,5 @@
|
|
546 |
|
547 |
return $this->rss_feed;
|
548 |
}
|
549 |
-
|
550 |
}
|
13 |
:...> Date: 02/24/2006
|
14 |
:...> Latest Version: http://rssgenesis.sourceforge.net/
|
15 |
:...> License: LGPL (GNU Lesser General PublicLicense)
|
16 |
+
|
17 |
\\ ================================================== */
|
18 |
|
19 |
// This is the rssGenesis class. PHP4 syntax. PHP4 and PHP5 compatible. //
|
20 |
class rssGenesis {
|
21 |
+
|
22 |
+
// Class Variables Declaration //
|
23 |
+
|
24 |
+
// Static header to RSS 0.91 feeds //
|
25 |
+
var $rss_header = "<?xml version=\"1.0\"?>\r\n<rss version=\"2.0\">\r\n";
|
26 |
+
|
27 |
+
// Template to channel sections //
|
28 |
+
var $rss_channel = "\t<channel>\r\n\t\t<title>{channel_Title}</title>\r\n\t\t<link>{channel_Link}</link>\r\n\t\t<description>{channel_Description}</description>\r\n\t\t<language>{channel_Language}</language>\r\n\t\t<copyright>{channel_Copyright}</copyright>\r\n\t\t<managingEditor>{channel_ManagingEditor}</managingEditor>\r\n\t\t<webMaster>{channel_WebMaster}</webMaster>\r\n\t\t<rating>{channel_Rating}</rating>\r\n\t\t<pubDate>{channel_PubDate}</pubDate>\r\n\t\t<lastBuildDate>{channel_LastBuildDate}</lastBuildDate>\r\n\t\t<category>{channel_Category}</category>\r\n\t\t<generator>RSS Genesis 1.1</generator>\r\n\t\t<docs>{channel_Docs}</docs>\r\n\t\t<skipDays>{channel_SkipDays}</skipDays>\r\n\t\t<skipHours>{channel_SkipHours}</skipHours>\r\n\r\n";
|
29 |
+
|
30 |
+
// Template to image sections //
|
31 |
+
var $rss_image = "\t\t<image>\r\n\t\t\t<title>{image_Title}</title>\r\n\t\t\t<url>{image_Source}</url>\r\n\t\t\t<link>{image_Link}</link>\r\n\t\t\t<width>{image_Width}</width>\r\n\t\t\t<height>{image_Height}</height>\r\n\t\t\t<description>{image_Description}</description>\r\n\t\t</image>\r\n\r\n";
|
32 |
+
|
33 |
+
// Template to item sections //
|
34 |
+
var $rss_item = "\t\t<item>\r\n\t\t\t<title>{item_Title}</title>\r\n\t\t\t<link>{item_Link}</link>\r\n\t\t\t<description>{item_Description}</description>\r\n\t\t\t<pubDate>{item_PubDate}</pubDate>\r\n\t\t\t<category>{item_category}</category>\r\n\t\t</item>\r\n\r\n";
|
35 |
+
|
36 |
+
// Template to input sections //
|
37 |
+
var $rss_input = "\t\t<textinput>\r\n\t\t\t<title>{input_Title}</title>\r\n\t\t\t<description>{input_Description}</description>\r\n\t\t\t<name>{input_Name}</name>\r\n\t\t\t<link>{input_Link}</link>\r\n\t\t\t</textinput>\r\n\r\n";
|
38 |
+
|
39 |
+
// Static footer to RSS 0.91 feeds //
|
40 |
+
var $rss_footer = "\t</channel>\r\n</rss>";
|
41 |
+
|
42 |
+
// Holds all RSS contents //
|
43 |
+
var $rss_feed = null;
|
44 |
+
|
45 |
+
// Holds channel data //
|
46 |
+
var $channel_data = null;
|
47 |
+
|
48 |
+
// Holds image data //
|
49 |
+
var $image_data = null;
|
50 |
+
|
51 |
+
// Holds all item data //
|
52 |
+
var $item_data = Array();
|
53 |
+
|
54 |
+
// Holds input data //
|
55 |
+
var $input_data = null;
|
56 |
|
57 |
// Holds RSS Version
|
58 |
var $rssformat = "RSS20";
|
72 |
$this->rss_item = "\t\t<item>\r\n\t\t\t<title>{item_Title}</title>\r\n\t\t\t<link>{item_Link}</link>\r\n\t\t\t<description>{item_Description}</description>\r\n\t\t\t</item>\r\n\r\n";
|
73 |
}
|
74 |
}
|
75 |
+
|
76 |
+
// Creates channel data handler //
|
77 |
+
function setChannel ($title = "", $link = "", $description = "", $language = "", $copyright = "", $managingEditor = "", $webMaster = "", $rating = "", $pubDate = "", $lastBuildDate = "", $category = "", $docs = "", $timetolive = "", $skipDays = "", $skipHours = "") {
|
78 |
+
|
79 |
+
// Copies the original template to channel sections //
|
80 |
+
$this->channel_data = $this->rss_channel;
|
81 |
+
|
82 |
+
// Null values become empty values // Start
|
83 |
+
$title = ($title == null) ? "" : $title;
|
84 |
+
$link = ($link == null) ? "" : $link;
|
85 |
+
$description = ($description == null) ? "" : $description;
|
86 |
+
$language = ($language == null) ? "" : $language;
|
87 |
+
$copyright = ($copyright == null) ? "" : $copyright;
|
88 |
+
$managingEditor = ($managingEditor == null) ? "" : $managingEditor;
|
89 |
+
$webMaster = ($webMaster == null) ? "" : $webMaster;
|
90 |
+
$rating = ($rating == null) ? "" : $rating;
|
91 |
+
$pubDate = ($pubDate == null) ? "" : $pubDate;
|
92 |
+
$lastBuildDate = ($lastBuildDate == null) ? "" : $lastBuildDate;
|
93 |
$category = ($category == null) ? "" : $category;
|
94 |
$generator = ( !isset( $generator ) || $generator == null) ? "" : $generator;
|
95 |
+
$docs = ($docs == null) ? "" : $docs;
|
96 |
$timetolive = ($timetolive == null) ? "" : $timetolive;
|
97 |
+
$skipDays = ($skipDays == null) ? "" : $skipDays;
|
98 |
+
$skipHours = ($skipHours == null) ? "" : $skipHours;
|
99 |
+
// Null values become empty values // End
|
100 |
+
|
101 |
+
// Title parser // Convertes quotes and strips backslashes!
|
102 |
+
$title = stripslashes (htmlspecialchars (trim ($title), ENT_QUOTES));
|
103 |
+
|
104 |
+
// Title parser // Empty titles not allowed
|
105 |
+
$title = (empty ($title)) ? "RSS Feed - RSS Genesis 1.1" : $title;
|
106 |
+
|
107 |
+
// Link parser // Checks absolutes URIs
|
108 |
+
if (!preg_match ("(^(ht|f)tp(s)?://)", $link)) :
|
109 |
+
|
110 |
+
$link = "http://rssgenesis.sourceforge.net/";
|
111 |
+
|
112 |
+
endif;
|
113 |
+
|
114 |
+
// Description parser // Convertes quotes and strips backslashes!
|
115 |
+
$description = stripslashes (htmlspecialchars (trim ($description), ENT_QUOTES));
|
116 |
+
|
117 |
+
// Description parser // Empty descriptions not allowed
|
118 |
+
$description = (empty ($description)) ? "A basic and simple RSS Feed!" : $description;
|
119 |
+
|
120 |
+
// Language parser // Only [-A-Za-z]
|
121 |
+
if ((preg_match ("([^-A-Za-z])", $language)) or (empty ($language))) :
|
122 |
+
|
123 |
+
$language = "en-us";
|
124 |
+
|
125 |
+
endif;
|
126 |
+
|
127 |
+
// Copyright parser // Optional data
|
128 |
+
if (empty ($copyright)) :
|
129 |
+
|
130 |
+
$this->channel_data = str_replace ("\r\n\t\t<copyright>{channel_Copyright}</copyright>", "", $this->channel_data);
|
131 |
+
|
132 |
+
endif;
|
133 |
+
|
134 |
+
// Managing Editor parser // Optional data
|
135 |
+
if (empty ($managingEditor)) :
|
136 |
+
|
137 |
+
$this->channel_data = str_replace ("\r\n\t\t<managingEditor>{channel_ManagingEditor}</managingEditor>", "", $this->channel_data);
|
138 |
+
|
139 |
+
endif;
|
140 |
+
|
141 |
+
// WebMaster parser // Optional data
|
142 |
+
if (empty ($webMaster)) :
|
143 |
+
|
144 |
+
$this->channel_data = str_replace ("\r\n\t\t<webMaster>{channel_WebMaster}</webMaster>", "", $this->channel_data);
|
145 |
+
|
146 |
+
endif;
|
147 |
+
|
148 |
+
// Rating parser // Optional data
|
149 |
+
if (empty ($rating)) :
|
150 |
+
|
151 |
+
$this->channel_data = str_replace ("\r\n\t\t<rating>{channel_Rating}</rating>", "", $this->channel_data);
|
152 |
+
|
153 |
+
endif;
|
154 |
+
|
155 |
+
// PubDate parser // If is set to auto, autogenerates it
|
156 |
+
if ($pubDate == "auto") :
|
157 |
+
|
158 |
+
$pubDate = date ("r");
|
159 |
+
|
160 |
+
endif;
|
161 |
+
|
162 |
+
// PubDate parser // Optional data
|
163 |
+
if (empty ($pubDate)) :
|
164 |
+
|
165 |
+
$this->channel_data = str_replace ("\r\n\t\t<pubDate>{channel_PubDate}</pubDate>", "", $this->channel_data);
|
166 |
+
|
167 |
+
endif;
|
168 |
+
|
169 |
+
// Last Build Date parser // If is set to auto, autogenerates it
|
170 |
+
if ($lastBuildDate == "auto") :
|
171 |
+
|
172 |
+
$lastBuildDate = date ("r");
|
173 |
+
|
174 |
+
endif;
|
175 |
+
|
176 |
+
// Last Build Date parser // Optional data
|
177 |
+
if (empty ($lastBuildDate)) :
|
178 |
+
|
179 |
+
$this->channel_data = str_replace ("\r\n\t\t<lastBuildDate>{channel_LastBuildDate}</lastBuildDate>", "", $this->channel_data);
|
180 |
+
|
181 |
+
endif;
|
182 |
|
183 |
if ($this->rssformat == "RSS20") {
|
184 |
// Category parser // Optional data
|
188 |
|
189 |
endif;
|
190 |
}
|
191 |
+
|
192 |
+
// Docs parser // Checks absolutes URIs
|
193 |
+
if (!preg_match ("(^(ht|f)tp://)", $docs)) :
|
194 |
+
|
195 |
+
$docs = "http://rssgenesis.sourceforge.net/links/";
|
196 |
+
|
197 |
+
endif;
|
198 |
+
|
199 |
+
// Skip Days parser // Generate data
|
200 |
+
if (!empty ($skipDays)) :
|
201 |
+
|
202 |
+
// Starts the complete Skip Days storage variable //
|
203 |
+
$skipDaysComplete = "\r\n";
|
204 |
+
|
205 |
+
// Explodes the string to get all skipped days //
|
206 |
+
$skipDays = explode ("|", $skipDays);
|
207 |
+
|
208 |
+
// For each element given //
|
209 |
+
foreach ($skipDays as $days) :
|
210 |
+
|
211 |
+
// Inserts data to skipped day //
|
212 |
+
$skipDaysComplete .= " <day>$days</day>\r\n";
|
213 |
+
|
214 |
+
endforeach;
|
215 |
+
|
216 |
+
// Overwrites the given Skip Days variable //
|
217 |
+
$skipDays = $skipDaysComplete .= " ";
|
218 |
+
|
219 |
+
endif;
|
220 |
+
|
221 |
+
// Skip Days parser // Optional data
|
222 |
+
if (empty ($skipDays)) :
|
223 |
+
|
224 |
+
$this->channel_data = str_replace ("\r\n\t\t<skipDays>{channel_SkipDays}</skipDays>", "", $this->channel_data);
|
225 |
+
|
226 |
+
endif;
|
227 |
+
|
228 |
+
// Skip Hours parser // Generate data
|
229 |
+
if (!empty ($skipHours)) :
|
230 |
+
|
231 |
+
// Starts the complete Skip Hours storage variable //
|
232 |
+
$skipHoursComplete = "\r\n";
|
233 |
+
|
234 |
+
// Explodes the string to get all skipped hours //
|
235 |
+
$skipHours = explode ("|", $skipHours);
|
236 |
+
|
237 |
+
// For each element given //
|
238 |
+
foreach ($skipHours as $hours) :
|
239 |
+
|
240 |
+
// Inserts data to skipped hour //
|
241 |
+
$skipHoursComplete .= " <hour>$hours</hour>\r\n";
|
242 |
+
|
243 |
+
endforeach;
|
244 |
+
|
245 |
+
// Overwrites the given Skip Hours variable //
|
246 |
+
$skipHours = $skipHoursComplete .= " ";
|
247 |
+
|
248 |
+
endif;
|
249 |
+
|
250 |
+
// Skip Hours parser // Optional data
|
251 |
+
if (empty ($skipHours)) :
|
252 |
+
|
253 |
+
$this->channel_data = str_replace ("\r\n\t\t<skipHours>{channel_SkipHours}</skipHours>", "", $this->channel_data);
|
254 |
+
|
255 |
+
endif;
|
256 |
+
|
257 |
+
// Inserts channel title // Replaces {channel_Title}
|
258 |
+
$this->channel_data = str_replace ("{channel_Title}", $title, $this->channel_data);
|
259 |
+
|
260 |
+
// Inserts channel link // Replaces {channel_Link}
|
261 |
+
$this->channel_data = str_replace ("{channel_Link}", $link, $this->channel_data);
|
262 |
+
|
263 |
+
// Inserts channel language // Replaces {channel_Language}
|
264 |
+
$this->channel_data = str_replace ("{channel_Language}", $language, $this->channel_data);
|
265 |
+
|
266 |
+
// Inserts channel description // Replaces {channel_Description}
|
267 |
+
$this->channel_data = str_replace ("{channel_Description}", $description, $this->channel_data);
|
268 |
+
|
269 |
+
// Inserts channel copyright // Replaces {channel_Copyright}
|
270 |
+
$this->channel_data = str_replace ("{channel_Copyright}", $copyright, $this->channel_data);
|
271 |
+
|
272 |
+
// Inserts channel managingEditor // Replaces {channel_ManagingEditor}
|
273 |
+
$this->channel_data = str_replace ("{channel_ManagingEditor}", $managingEditor, $this->channel_data);
|
274 |
+
|
275 |
+
// Inserts channel webMaster // Replaces {channel_WebMaster}
|
276 |
+
$this->channel_data = str_replace ("{channel_WebMaster}", $webMaster, $this->channel_data);
|
277 |
+
|
278 |
+
// Inserts channel rating // Replaces {channel_Rating}
|
279 |
+
$this->channel_data = str_replace ("{channel_Rating}", $rating, $this->channel_data);
|
280 |
+
|
281 |
+
// Inserts channel pubDate // Replaces {channel_PubDate}
|
282 |
+
$this->channel_data = str_replace ("{channel_PubDate}", $pubDate, $this->channel_data);
|
283 |
+
|
284 |
+
// Inserts channel lastBuildDate // Replaces {channel_LastBuildDate}
|
285 |
+
$this->channel_data = str_replace ("{channel_LastBuildDate}", $lastBuildDate, $this->channel_data);
|
286 |
|
287 |
if ($this->rssformat == "RSS20") {
|
288 |
// Inserts channel category // Replaces {channel_Category}
|
289 |
$this->channel_data = str_replace ("{channel_Category}", $category, $this->channel_data);
|
290 |
}
|
291 |
+
|
292 |
+
// Inserts channel docs // Replaces {channel_Docs}
|
293 |
+
$this->channel_data = str_replace ("{channel_Docs}", $docs, $this->channel_data);
|
294 |
+
|
295 |
+
// Inserts channel skipDays // Replaces {channel_SkipDays}
|
296 |
+
$this->channel_data = str_replace ("{channel_SkipDays}", $skipDays, $this->channel_data);
|
297 |
+
|
298 |
+
// Inserts channel skipHours // Replaces {channel_SkipHours}
|
299 |
+
$this->channel_data = str_replace ("{channel_SkipHours}", $skipHours, $this->channel_data);
|
300 |
+
|
301 |
+
}
|
302 |
+
|
303 |
+
// Creates image data handler //
|
304 |
+
function setImage ($title = "", $src = "", $link = "", $width = "", $height = "", $description = "") {
|
305 |
+
|
306 |
+
// Null values become empty values // Start
|
307 |
+
$title = ($title == null) ? "" : $title;
|
308 |
+
$src = ($src == null) ? "" : $src;
|
309 |
+
$link = ($link == null) ? "" : $link;
|
310 |
+
$width = ($width == null) ? "" : $width;
|
311 |
+
$height = ($height == null) ? "" : $height;
|
312 |
+
$description = ($description == null) ? "" : $description;
|
313 |
+
// Null values become empty values // End
|
314 |
+
|
315 |
+
// Title parser // Convertes quotes and strips backslashes!
|
316 |
+
$title = stripslashes (htmlspecialchars (trim ($title), ENT_QUOTES));
|
317 |
+
|
318 |
+
// Title parser // Empty titles not allowed
|
319 |
+
$title = (empty ($title)) ? "RSS Genesis 1.1" : $title;
|
320 |
+
|
321 |
+
// Source parser // Checks absolutes URIs
|
322 |
+
if (!preg_match ("(^(ht|f)tp://)", $src)) :
|
323 |
+
|
324 |
+
$src = "http://rssgenesis.sourceforge.net/Assets/rss.genesis.image.png";
|
325 |
+
|
326 |
+
endif;
|
327 |
+
|
328 |
+
// Link parser // Checks absolutes URIs
|
329 |
+
if (!preg_match ("(^(ht|f)tp://)", $link)) :
|
330 |
+
|
331 |
+
$link = "http://rssgenesis.sourceforge.net/";
|
332 |
+
|
333 |
+
endif;
|
334 |
+
|
335 |
+
// Image dimensions parser // Sets dimensions if auto generation is needed
|
336 |
+
if (($width == "auto") and ($height == "auto")) :
|
337 |
+
|
338 |
+
$dimensions = @getimagesize ($src);
|
339 |
+
|
340 |
+
$width = $dimensions[0];
|
341 |
+
|
342 |
+
$height = $dimensions[1];
|
343 |
|
344 |
if ($this->rssformat == "RSS20") {
|
345 |
$this->image_data = str_replace ("\r\n\t\t\t<width>{image_Width}</width>\r\n\t\t\t<height>{image_Height}</height>", "", $this->image_data);
|
346 |
}
|
347 |
+
|
348 |
+
endif;
|
349 |
+
|
350 |
+
// Image dimensions parser // Checks integer values
|
351 |
+
$width = (is_int ($width)) ? $width : "";
|
352 |
+
$height = (is_int ($height)) ? $height : "";
|
353 |
+
|
354 |
+
// Description parser // Convertes quotes and strips backslashes!
|
355 |
+
$description = stripslashes (htmlspecialchars (trim ($description), ENT_QUOTES));
|
356 |
+
|
357 |
+
// Description parser // Empty descriptions not allowed
|
358 |
+
$description = (empty ($description)) ? "Powered by: RSS Genesis!" : $description;
|
359 |
+
|
360 |
+
// Inserts image title // Replaces {image_Title}
|
361 |
+
$this->image_data = str_replace ("{image_Title}", $title, $this->rss_image);
|
362 |
+
|
363 |
+
// Inserts image source // Replaces {image_Source}
|
364 |
+
$this->image_data = str_replace ("{image_Source}", $src, $this->image_data);
|
365 |
+
|
366 |
+
// Inserts image link // Replaces {image_Link}
|
367 |
+
$this->image_data = str_replace ("{image_Link}", $link, $this->image_data);
|
368 |
+
|
369 |
+
// Inserts image width // Replaces {image_Width}
|
370 |
+
$this->image_data = str_replace ("{image_Width}", "$width", $this->image_data);
|
371 |
+
|
372 |
+
// Inserts image height // Replaces {image_Height}
|
373 |
+
$this->image_data = str_replace ("{image_Height}", "$height", $this->image_data);
|
374 |
+
|
375 |
+
// Inserts image description // Replaces {image_Description}
|
376 |
+
$this->image_data = str_replace ("{image_Description}", $description, $this->image_data);
|
377 |
+
|
378 |
+
}
|
379 |
+
|
380 |
+
// Creates item data handler //
|
381 |
+
function addItem ($title, $link, $description, $pubdate = "", $category) {
|
382 |
+
|
383 |
+
// Null values become empty values // Start
|
384 |
+
$title = ($title == null) ? "" : $title;
|
385 |
+
$link = ($link == null) ? "" : $link;
|
386 |
+
$description = ($description == null) ? "" : $description;
|
387 |
$pubdate = ($pubdate == null) ? "" : $pubdate;
|
388 |
$category = ($category == null) ? "" : $category;
|
389 |
+
// Null values become empty values // End
|
390 |
|
391 |
//Formats pubdate
|
392 |
$mysqltimestamp = $pubdate;
|
393 |
$pubdate = gmdate('D, d M Y H:i:s \G\M\T', strtotime($mysqltimestamp));
|
394 |
+
|
395 |
+
// Title parser // Convertes quotes and strips backslashes!
|
396 |
+
$title = stripslashes (htmlspecialchars (trim ($title), ENT_QUOTES));
|
397 |
+
|
398 |
+
// Title parser // Empty titles not allowed
|
399 |
+
if (empty ($title)) :
|
400 |
+
|
401 |
+
die ("<font face=\"verdana\" size=\"2\">Error code: <strong>001</strong> - Item's element title is mandatory! - <a href=\"http://rssgenesis.sourceforge.net/index.html#ec001\" target=\"_blank\">Documentation</a></font>");
|
402 |
+
|
403 |
+
endif;
|
404 |
+
|
405 |
+
// Link parser // Checks absolutes URIs
|
406 |
+
if (!preg_match ("(^(ht|f)tp(s)?://)", $link)) :
|
407 |
+
|
408 |
+
die ("<font face=\"verdana\" size=\"2\">Error code: <strong>002</strong> - Item's element link is mandatory! - <a href=\"http://rssgenesis.sourceforge.net/index.html#ec002\" target=\"_blank\">Documentation</a></font>");
|
409 |
+
|
410 |
+
endif;
|
411 |
+
|
412 |
+
// Description parser // Convertes quotes and strips backslashes!
|
413 |
+
$description = stripslashes (htmlspecialchars (trim ($description), ENT_QUOTES));
|
414 |
|
415 |
// Description parser // Convertes quotes and strips backslashes!
|
416 |
+
$category = stripslashes (htmlspecialchars (trim ($category), ENT_QUOTES));
|
417 |
+
|
418 |
+
// Inserts item title // Replaces {item_Title}
|
419 |
+
$temp = str_replace ("{item_Title}", $title, $this->rss_item);
|
420 |
+
|
421 |
+
// Inserts item link // Replaces {item_Link}
|
422 |
+
$temp = str_replace ("{item_Link}", $link, $temp);
|
423 |
+
|
424 |
+
// Inserts item description // Replaces {item_Description}
|
425 |
+
$temp = str_replace ("{item_Description}", $description, $temp);
|
426 |
|
427 |
//Inserts publication date if feed is RSS20
|
428 |
if ($this->rssformat == "RSS20") {
|
430 |
|
431 |
$temp = str_replace ("{item_category}", $category, $temp);
|
432 |
}
|
433 |
+
|
434 |
+
// Stores the new added item
|
435 |
+
$this->item_data[] = $temp;
|
436 |
+
|
437 |
+
// Unsets temporary variable
|
438 |
+
unset ($temp);
|
439 |
+
|
440 |
+
}
|
441 |
+
|
442 |
+
// Creates input data handler //
|
443 |
+
function setInput ($title = "", $description = "", $name = "", $link = "") {
|
444 |
+
|
445 |
+
// Null values become empty values // Start
|
446 |
+
$title = ($title == null) ? "" : $title;
|
447 |
+
$description = ($description == null) ? "" : $description;
|
448 |
+
$name = ($name == null) ? "" : $name;
|
449 |
+
$link = ($link == null) ? "" : $link;
|
450 |
+
// Null values become empty values // End
|
451 |
+
|
452 |
+
// Title parser // Convertes quotes and strips backslashes!
|
453 |
+
$title = stripslashes (htmlspecialchars (trim ($title), ENT_QUOTES));
|
454 |
+
|
455 |
+
// Title parser // Empty titles not allowed
|
456 |
+
$title = (empty ($title)) ? "Go!" : $title;
|
457 |
+
|
458 |
+
// Description parser // Convertes quotes and strips backslashes!
|
459 |
+
$description = stripslashes (htmlspecialchars (trim ($description), ENT_QUOTES));
|
460 |
+
|
461 |
+
// Description parser // Empty descriptions not allowed
|
462 |
+
$description = (empty ($description)) ? "Search:" : $description;
|
463 |
+
|
464 |
+
// Name parser // Convertes quotes and strips backslashes!
|
465 |
+
$name = stripslashes (htmlspecialchars (trim ($name), ENT_QUOTES));
|
466 |
+
|
467 |
+
// Name parser // Empty names not allowed
|
468 |
+
$name = (empty ($name)) ? "q" : $name;
|
469 |
+
|
470 |
+
// Link parser // Checks absolutes URIs
|
471 |
+
if (!preg_match ("(^(ht|f)tp://)", $link)) :
|
472 |
+
|
473 |
+
$link = "http://www.google.com/search";
|
474 |
+
|
475 |
+
endif;
|
476 |
+
|
477 |
+
// Inserts input title // Replaces {input_Title}
|
478 |
+
$this->input_data = str_replace ("{input_Title}", $title, $this->rss_input);
|
479 |
+
|
480 |
+
// Inserts input description // Replaces {input_Description}
|
481 |
+
$this->input_data = str_replace ("{input_Description}", $description, $this->input_data);
|
482 |
+
|
483 |
+
// Inserts input name // Replaces {input_Name}
|
484 |
+
$this->input_data = str_replace ("{input_Name}", $name, $this->input_data);
|
485 |
+
|
486 |
+
// Inserts input link // Replaces {input_Link}
|
487 |
+
$this->input_data = str_replace ("{input_Link}", $link, $this->input_data);
|
488 |
+
|
489 |
+
}
|
490 |
+
|
491 |
+
// Creates function to organize the data on feed //
|
492 |
+
function organizeData() {
|
493 |
+
|
494 |
+
// Concentrates all stored data in one variable to feed the new RSS feed //
|
495 |
+
$this->rss_feed .= $this->rss_header;
|
496 |
+
$this->rss_feed .= $this->channel_data;
|
497 |
+
$this->rss_feed .= $this->image_data;
|
498 |
+
$this->rss_feed .= $this->input_data;
|
499 |
+
|
500 |
+
// Storing all itens //
|
501 |
+
foreach ($this->item_data as $item) :
|
502 |
+
|
503 |
+
$this->rss_feed .= $item;
|
504 |
+
|
505 |
+
endforeach;
|
506 |
+
|
507 |
+
// Storage continuation //
|
508 |
+
$this->rss_feed .= $this->rss_footer;
|
509 |
+
|
510 |
+
}
|
511 |
+
|
512 |
+
// Creates function to generate the RSS Feed //
|
513 |
+
function createFile ($name = "my.rss") {
|
514 |
+
|
515 |
+
// Calls the function to organize data before the file creation //
|
516 |
+
$this->organizeData();
|
517 |
+
|
518 |
+
// Creates the new file //
|
519 |
+
$file = @fopen ($name, "w");
|
520 |
+
|
521 |
+
// Checks if creation was successful //
|
522 |
+
if (!$file) :
|
523 |
+
|
524 |
+
die ("<font face=\"verdana\" size=\"2\">Critical Error: <strong>Unable to create: $name</strong></font>");
|
525 |
+
|
526 |
+
endif;
|
527 |
+
|
528 |
+
// Inserts contents //
|
529 |
+
fwrite ($file, $this->rss_feed);
|
530 |
+
|
531 |
+
// Ends file creation //
|
532 |
+
fclose ($file);
|
533 |
+
|
534 |
+
// XML RSS header //
|
535 |
+
header ("Content-type: application/rss+xml");
|
536 |
+
|
537 |
+
// Display RSS file //
|
538 |
+
echo file_get_contents ($name);
|
539 |
+
|
540 |
+
}
|
541 |
|
542 |
function getFeed() {
|
543 |
|
546 |
|
547 |
return $this->rss_feed;
|
548 |
}
|
549 |
+
|
550 |
}
|
rssfeed.php
CHANGED
@@ -6,86 +6,113 @@ global $my_link_library_plugin;
|
|
6 |
|
7 |
function link_library_generate_rss_feed () {
|
8 |
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
|
88 |
header( 'Content-Type: '. feed_content_type('rss') . '; charset=' . get_option('blog_charset') );
|
89 |
-
|
90 |
-
|
91 |
}
|
6 |
|
7 |
function link_library_generate_rss_feed () {
|
8 |
|
9 |
+
require_once plugin_dir_path( __FILE__ ) . 'rss.genesis.php';
|
10 |
+
|
11 |
+
if ( isset( $_GET['settingsset'] ) && !empty( $_GET['settingsset'] ) ) {
|
12 |
+
$settingsetid = intval( $_GET['settingsset'] );
|
13 |
+
} else {
|
14 |
+
$settingsetid = 1;
|
15 |
+
}
|
16 |
+
|
17 |
+
$settingsname = 'LinkLibraryPP' . $settingsetid;
|
18 |
+
$options = get_option($settingsname);
|
19 |
+
|
20 |
+
$rss = new rssGenesis();
|
21 |
+
|
22 |
+
$feedtitle = ($options['rssfeedtitle'] == "" ? "Link Library Generated Feed" : $options['rssfeedtitle']);
|
23 |
+
$feeddescription = ($options['rssfeeddescription'] == "" ? "Link Library Generated Feed Description" : $options['rssfeeddescription']);
|
24 |
+
|
25 |
+
// CHANNEL
|
26 |
+
$rss->setChannel (
|
27 |
+
$feedtitle, // Title
|
28 |
+
home_url () . '/feed/linklibraryfeed?settingsset=' . $settingsetid, // Link
|
29 |
+
$feeddescription, // Description
|
30 |
+
null, // Language
|
31 |
+
null, // Copyright
|
32 |
+
null, // Managing Editor
|
33 |
+
null, // WebMaster
|
34 |
+
null, // Rating
|
35 |
+
"auto", // PubDate
|
36 |
+
"auto", // Last Build Date
|
37 |
+
"Link Library Links", // Category
|
38 |
+
null, // Docs
|
39 |
+
null, // Time to Live
|
40 |
+
null, // Skip Days
|
41 |
+
null // Skip Hours
|
42 |
+
);
|
43 |
+
|
44 |
+
$link_query_args = array( 'post_type' => 'link_library_links', 'posts_per_page' => $options['numberofrssitems'], 'post_status' => 'publish',
|
45 |
+
'orderby' => 'meta_value_num', 'meta_key' => 'link_updated', 'order' => 'DESC' );
|
46 |
+
|
47 |
+
if ( $options['showinvisible'] == true ) {
|
48 |
+
$link_query_args['post_status'] = array( 'publish', 'private' );
|
49 |
+
}
|
50 |
+
|
51 |
+
if ( !empty( $options['categorylist_cpt'] ) ) {
|
52 |
+
$link_query_args['tax_query'] = array(
|
53 |
+
array(
|
54 |
+
'taxonomy' => 'link_library_category',
|
55 |
+
'field' => 'term_id',
|
56 |
+
'terms' => explode( ',', $options['categorylist_cpt'] ),
|
57 |
+
'operator' => 'IN',
|
58 |
+
),
|
59 |
+
);
|
60 |
+
}
|
61 |
+
|
62 |
+
if ( !empty( $options['excludecategorylist_cpt'] ) ) {
|
63 |
+
if ( !empty( $options['categorylist_cpt'] ) ) {
|
64 |
+
$link_query_args['tax_query']['relation'] = 'AND';
|
65 |
+
}
|
66 |
+
|
67 |
+
$link_query_args['tax_query'][] = array(
|
68 |
+
'taxonomy' => 'link_library_category',
|
69 |
+
'field' => 'term_id',
|
70 |
+
'terms' => explode( ',', $options['excludecategorylist_cpt'] ),
|
71 |
+
'operator' => 'NOT IN',
|
72 |
+
);
|
73 |
+
}
|
74 |
+
|
75 |
+
$the_link_query = new WP_Query( $link_query_args );
|
76 |
+
|
77 |
+
if ( $the_link_query->have_posts() ) {
|
78 |
+
while ( $the_link_query->have_posts() ) {
|
79 |
+
$the_link_query->the_post();
|
80 |
+
|
81 |
+
$link_url = get_post_meta( get_the_ID(), 'link_url', true );
|
82 |
+
$link_description = get_post_meta( get_the_ID(), 'link_description', true );
|
83 |
+
$link_updated = get_post_meta( get_the_ID(), 'link_updated', true );
|
84 |
+
$human_date = date( "Y-m-d H:i", $link_updated );
|
85 |
+
|
86 |
+
$link_categories = wp_get_post_terms( get_the_ID(), 'link_library_category' );
|
87 |
+
|
88 |
+
$cat_names = '';
|
89 |
+
if ( $link_categories ) {
|
90 |
+
$countcats = 0;
|
91 |
+
foreach ( $link_categories as $link_category ) {
|
92 |
+
if ( $countcats >= 1 ) {
|
93 |
+
$cat_names .= ', ';
|
94 |
+
}
|
95 |
+
$cat_names .= $link_category->name;
|
96 |
+
$countcats++;
|
97 |
+
}
|
98 |
+
}
|
99 |
+
|
100 |
+
if ( !empty( $link_url ) ) {
|
101 |
+
// ITEM
|
102 |
+
$rss->addItem (
|
103 |
+
get_the_title(), // Title
|
104 |
+
$link_url, // Link
|
105 |
+
$link_description, // Description
|
106 |
+
$human_date, //Publication Date
|
107 |
+
$cat_names // Category
|
108 |
+
);
|
109 |
+
}
|
110 |
+
}
|
111 |
+
}
|
112 |
+
|
113 |
+
wp_reset_postdata();
|
114 |
|
115 |
header( 'Content-Type: '. feed_content_type('rss') . '; charset=' . get_option('blog_charset') );
|
116 |
+
print( $rss->getFeed() );
|
117 |
+
exit;
|
118 |
}
|
rsspreview.php
CHANGED
@@ -1,66 +1,67 @@
|
|
1 |
<?php
|
2 |
|
3 |
function link_library_generate_rss_preview( $my_link_library_plugin ) {
|
4 |
-
|
5 |
-
|
6 |
|
7 |
-
|
8 |
-
$genoptions = get_option('LinkLibraryGeneral');
|
9 |
|
10 |
-
|
11 |
|
12 |
-
|
13 |
-
$rss = fetch_feed( $link->link_rss );
|
14 |
-
if ( !is_wp_error( $rss ) ) { // Checks that the object is created correctly
|
15 |
-
// Figure out how many total items there are, but limit it to 5.
|
16 |
-
$maxitems = $rss->get_item_quantity( $itemcount );
|
17 |
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
|
24 |
-
|
25 |
-
|
26 |
-
<title><?php echo ( empty( $_GET['feed'] ) ) ? 'RSS_PHP' : 'RSS_PHP: ' . $link_data->post_title; ?></title>
|
27 |
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
</style>
|
36 |
-
<?php } ?>
|
37 |
|
38 |
-
|
|
|
|
|
39 |
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
<h1>
|
46 |
-
<a target="feedwindow" href="<?php echo $item->get_permalink(); ?>"><?php echo $item->get_title(); ?></a>
|
47 |
-
<div class='ll_rss_preview_date'><?php echo $item->get_date( 'j F Y | g:i a' ); ?></div>
|
48 |
-
</h1>
|
49 |
-
<div class='ll_rss_preview_content'><?php echo $item->get_description(); ?></div>
|
50 |
-
</div>
|
51 |
-
<br />
|
52 |
-
<?php } ?>
|
53 |
-
<br />
|
54 |
-
<div>
|
55 |
-
<a class="ll_rss_preview_button" target="feedwindow" href="<?php echo $link->link_rss; ?>"><span>More News from this Feed</span></a> <a class="ll_rss_preview_button" target="sitewindow" href="<?php echo $link->link_url; ?>"><span>See Full Web Site</span></a>
|
56 |
-
</div>
|
57 |
-
<br />
|
58 |
-
<br />
|
59 |
-
<?php } ?>
|
60 |
-
</div>
|
61 |
-
</body>
|
62 |
-
</html>
|
63 |
|
64 |
-
|
65 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
}
|
1 |
<?php
|
2 |
|
3 |
function link_library_generate_rss_preview( $my_link_library_plugin ) {
|
4 |
+
$linkid = intval( $_GET['linkid'] );
|
5 |
+
$itemcount = intval( $_GET['previewcount'] );
|
6 |
|
7 |
+
$link = get_bookmark( $linkid );
|
|
|
8 |
|
9 |
+
$genoptions = get_option('LinkLibraryGeneral');
|
10 |
|
11 |
+
include_once(ABSPATH . WPINC . '/feed.php');
|
|
|
|
|
|
|
|
|
12 |
|
13 |
+
// Get a SimplePie feed object from the specified feed source.
|
14 |
+
$rss = fetch_feed( $link->link_rss );
|
15 |
+
if ( !is_wp_error( $rss ) ) { // Checks that the object is created correctly
|
16 |
+
// Figure out how many total items there are, but limit it to 5.
|
17 |
+
$maxitems = $rss->get_item_quantity( $itemcount );
|
18 |
|
19 |
+
// Build an array of all the items, starting with element 0 (first element).
|
20 |
+
$rss_items = $rss->get_items( 0, $maxitems );
|
|
|
21 |
|
22 |
+
}
|
23 |
+
?>
|
24 |
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
25 |
|
26 |
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
27 |
+
<head>
|
28 |
+
<title><?php echo ( empty( $_GET['feed'] ) ) ? 'RSS_PHP' : 'RSS_PHP: ' . $link->link_name; ?></title>
|
|
|
|
|
29 |
|
30 |
+
<!-- META HTTP-EQUIV -->
|
31 |
+
<meta http-equiv="content-type" content="text/html; charset=UTF-8; ?>" />
|
32 |
+
<meta http-equiv="imagetoolbar" content="false" />
|
33 |
|
34 |
+
<?php if ( isset( $genoptions['stylesheet'] ) && !empty( $genoptions['stylesheet'] ) ) { ?>
|
35 |
+
<style id='LinkLibraryStyle' type='text/css'>
|
36 |
+
<?php echo stripslashes( $genoptions['fullstylesheet'] ); ?>
|
37 |
+
</style>
|
38 |
+
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
|
40 |
+
</head>
|
41 |
+
|
42 |
+
<body>
|
43 |
+
<div id="ll_rss_preview_results">
|
44 |
+
<?php if ( $rss_items ) { ?>
|
45 |
+
<?php foreach($rss_items as $item): ?>
|
46 |
+
<div class="ll_rss_preview_title" style="padding:0 5px 5px;">
|
47 |
+
<h1><a target="feedwindow" href="<?php echo $item->get_permalink(); ?>"><?php echo $item->get_title(); ?></a><div class='ll_rss_preview_date'><?php echo $item->get_date('j F Y | g:i a'); ?></div></h1>
|
48 |
+
<div class='ll_rss_preview_content'><?php echo $item->get_description(); ?></div>
|
49 |
+
</div>
|
50 |
+
<br />
|
51 |
+
<?php
|
52 |
+
endforeach;
|
53 |
+
?>
|
54 |
+
<br />
|
55 |
+
<div>
|
56 |
+
<a class="ll_rss_preview_button" target="feedwindow" href="<?php echo $link->link_rss; ?>"><span>More News from this Feed</span></a> <a class="ll_rss_preview_button" target="sitewindow" href="<?php echo $link->link_url; ?>"><span>See Full Web Site</span></a>
|
57 |
+
</div>
|
58 |
+
<br />
|
59 |
+
<br />
|
60 |
+
<?php } ?>
|
61 |
+
</div>
|
62 |
+
</body>
|
63 |
+
</html>
|
64 |
+
|
65 |
+
<?php
|
66 |
+
exit;
|
67 |
}
|
screenshot-1.jpg
CHANGED
Binary file
|
screenshot-2.jpg
CHANGED
Binary file
|
screenshot-3.jpg
CHANGED
Binary file
|
stylesheettemplate.css
CHANGED
@@ -203,5 +203,26 @@ text-decoration: none;text-align: left;text-indent: 0px;max-width:500px;}
|
|
203 |
color: #ccc;
|
204 |
}
|
205 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
206 |
|
|
|
|
|
|
|
207 |
|
|
|
|
|
|
203 |
color: #ccc;
|
204 |
}
|
205 |
|
206 |
+
.level1 {
|
207 |
+
margin-left: 20px;
|
208 |
+
}
|
209 |
+
|
210 |
+
.level2 {
|
211 |
+
margin-left: 40px;
|
212 |
+
}
|
213 |
+
|
214 |
+
.level3 {
|
215 |
+
margin-left: 60px;
|
216 |
+
}
|
217 |
+
|
218 |
+
.level4 {
|
219 |
+
margin-left: 80px;
|
220 |
+
}
|
221 |
|
222 |
+
.level5 {
|
223 |
+
margin-left: 100px;
|
224 |
+
}
|
225 |
|
226 |
+
.level6 {
|
227 |
+
margin-left: 120px;
|
228 |
+
}
|
tracker.php
CHANGED
@@ -1,30 +1,19 @@
|
|
1 |
<?php
|
2 |
|
3 |
function link_library_process_ajax_tracker( $my_link_library_plugin ) {
|
4 |
-
|
5 |
|
6 |
-
|
7 |
-
echo "Received ID is: " . $link_id;
|
8 |
|
9 |
-
|
|
|
|
|
|
|
10 |
|
11 |
-
|
12 |
-
|
13 |
-
$extradata = $wpdb->get_row($linkextradataquery, ARRAY_A);
|
14 |
|
15 |
-
|
16 |
-
{
|
17 |
-
$newcount = $extradata['link_visits'] + 1;
|
18 |
-
$wpdb->update( $extradatatable, array( 'link_visits' => $newcount ), array( 'link_id' => $link_id ));
|
19 |
-
echo "Updated row";
|
20 |
-
}
|
21 |
-
else
|
22 |
-
{
|
23 |
-
$wpdb->insert( $extradatatable, array( 'link_id' => $link_id, 'link_visits' => 1 ));
|
24 |
-
echo "Inserted new row";
|
25 |
-
}
|
26 |
-
|
27 |
-
exit;
|
28 |
}
|
29 |
|
30 |
?>
|
1 |
<?php
|
2 |
|
3 |
function link_library_process_ajax_tracker( $my_link_library_plugin ) {
|
4 |
+
check_ajax_referer( 'll_tracker' );
|
5 |
|
6 |
+
$link_id = intval( $_POST['id'] );
|
|
|
7 |
|
8 |
+
$link_data = get_post( $link_id );
|
9 |
+
if ( !empty( $link_data ) ) {
|
10 |
+
$link_visits = intval( get_post_meta( $link_id, 'link_visits', true ) );
|
11 |
+
$updated_visits = $link_visits + 1;
|
12 |
|
13 |
+
update_post_meta( $link_id, 'link_visits', $updated_visits );
|
14 |
+
}
|
|
|
15 |
|
16 |
+
exit;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
}
|
18 |
|
19 |
?>
|
uninstall.php
CHANGED
@@ -2,34 +2,18 @@
|
|
2 |
// Check that code was called from WordPress with
|
3 |
// uninstallation constant declared
|
4 |
if ( !defined( 'WP_UNINSTALL_PLUGIN' ) )
|
5 |
-
|
6 |
-
|
7 |
-
function db_prefix() {
|
8 |
-
global $wpdb;
|
9 |
-
if (method_exists($wpdb, "get_blog_prefix"))
|
10 |
-
return $wpdb->get_blog_prefix();
|
11 |
-
else
|
12 |
-
return $wpdb->prefix;
|
13 |
-
}
|
14 |
|
15 |
// Check if options exist and delete them if present
|
16 |
if ( get_option( 'LinkLibraryGeneral' ) != false ) {
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
}
|
28 |
-
|
29 |
-
global $wpdb;
|
30 |
-
|
31 |
-
$wpdb->links_extrainfo = db_prefix().'links_extrainfo';
|
32 |
-
|
33 |
-
$deletionquery = 'DROP TABLE IF EXISTS ' . $wpdb->links_extrainfo;
|
34 |
-
|
35 |
-
$wpdb->get_results( $deletionquery );
|
2 |
// Check that code was called from WordPress with
|
3 |
// uninstallation constant declared
|
4 |
if ( !defined( 'WP_UNINSTALL_PLUGIN' ) )
|
5 |
+
exit;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
// Check if options exist and delete them if present
|
8 |
if ( get_option( 'LinkLibraryGeneral' ) != false ) {
|
9 |
+
|
10 |
+
$genoptions = get_option( 'LinkLibraryGeneral' );
|
11 |
+
|
12 |
+
for ($i = 1; $i <= $genoptions['numberstylesets']; $i++) {
|
13 |
+
$settingsname = 'LinkLibraryPP' . $i;
|
14 |
+
|
15 |
+
delete_option( $settingsname );
|
16 |
+
}
|
17 |
+
|
18 |
+
delete_option( 'LinkLibraryGeneral' );
|
19 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
usersubmission.php
CHANGED
@@ -3,12 +3,12 @@
|
|
3 |
function link_library_process_user_submission( $my_link_library_plugin ) {
|
4 |
check_admin_referer( 'LL_ADDLINK_FORM' );
|
5 |
|
|
|
|
|
6 |
require_once( ABSPATH . '/wp-admin/includes/taxonomy.php' );
|
7 |
|
8 |
load_plugin_textdomain( 'link-library', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
|
9 |
|
10 |
-
global $wpdb;
|
11 |
-
|
12 |
$settings = ( isset( $_POST['settingsid'] ) ? $_POST['settingsid'] : 1 );
|
13 |
$settingsname = 'LinkLibraryPP' . $settings;
|
14 |
$options = get_option( $settingsname );
|
@@ -24,6 +24,8 @@ function link_library_process_user_submission( $my_link_library_plugin ) {
|
|
24 |
$captureddata = array();
|
25 |
$captureddata['link_category'] = ( isset( $_POST['link_category'] ) ? $_POST['link_category'] : '' );
|
26 |
$captureddata['link_user_category'] = ( isset( $_POST['link_user_category'] ) ? $_POST['link_user_category'] : '' );
|
|
|
|
|
27 |
$captureddata['link_description'] = ( isset( $_POST['link_description'] ) ? $_POST['link_description'] : '' );
|
28 |
$captureddata['link_textfield'] = ( isset( $_POST['link_textfield'] ) ? $_POST['link_textfield'] : '' );
|
29 |
$captureddata['link_name'] = ( isset( $_POST['link_name'] ) ? $_POST['link_name'] : '' );
|
@@ -75,7 +77,7 @@ function link_library_process_user_submission( $my_link_library_plugin ) {
|
|
75 |
}
|
76 |
|
77 |
if ( $captureddata['link_name'] != '' && $requiredcheck ) {
|
78 |
-
if (
|
79 |
$c = array();
|
80 |
|
81 |
if ( !empty( $captureddata['ll_submittername'] ) ) {
|
@@ -121,7 +123,7 @@ function link_library_process_user_submission( $my_link_library_plugin ) {
|
|
121 |
} else {
|
122 |
$valid = true;
|
123 |
};
|
124 |
-
} elseif (
|
125 |
echo 'Akismet has been selected but is not available';
|
126 |
die();
|
127 |
}
|
@@ -153,9 +155,20 @@ function link_library_process_user_submission( $my_link_library_plugin ) {
|
|
153 |
$parsed_new_reciprocal = parse_url( esc_url( $captureddata['ll_reciprocal'] ) );
|
154 |
$reciprocal_domain = $parsed_new_reciprocal['host'];
|
155 |
|
156 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
|
158 |
-
|
|
|
|
|
159 |
|
160 |
foreach( $reciprocal_links as $recip_link ) {
|
161 |
$parse_data = parse_url( $recip_link->link_reciprocal );
|
@@ -168,68 +181,95 @@ function link_library_process_user_submission( $my_link_library_plugin ) {
|
|
168 |
}
|
169 |
|
170 |
if ( $valid ) {
|
171 |
-
$existinglinkquery = "SELECT * from " . $my_link_library_plugin->db_prefix() . "
|
|
|
|
|
|
|
|
|
|
|
172 |
|
173 |
if ( ( $options['addlinknoaddress'] == false ) || ( $options['addlinknoaddress'] == true && $captureddata['link_url'] != "" ) ) {
|
174 |
-
$existinglinkquery .= " or
|
175 |
}
|
176 |
|
177 |
$existinglink = $wpdb->get_var( $existinglinkquery );
|
178 |
|
179 |
-
if ( $existinglink
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
if ( ! $
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
|
|
|
|
|
|
|
|
|
|
196 |
} else {
|
197 |
-
$newlinkcat =
|
|
|
|
|
|
|
|
|
198 |
}
|
|
|
199 |
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
$
|
205 |
-
|
206 |
-
|
207 |
|
208 |
-
|
|
|
209 |
|
210 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
211 |
}
|
212 |
|
213 |
if ( $validcat == true ) {
|
|
|
214 |
if ( $options['showuserlinks'] == false ) {
|
215 |
if ( $options['showifreciprocalvalid'] ) {
|
216 |
$reciprocal_return = $my_link_library_plugin->CheckReciprocalLink( $genoptions['recipcheckaddress'], $captureddata['ll_reciprocal'] );
|
217 |
|
218 |
if ( $reciprocal_return == 'exists_found' ) {
|
219 |
-
$
|
220 |
-
$newlinkvisibility = 'Y';
|
221 |
unset ( $message );
|
222 |
} else {
|
223 |
-
$
|
224 |
-
$newlinkvisibility = 'N';
|
225 |
}
|
226 |
} else {
|
227 |
-
$
|
228 |
-
$newlinkvisibility = 'N';
|
229 |
}
|
230 |
} else {
|
231 |
-
$
|
232 |
-
$newlinkvisibility = 'Y';
|
233 |
unset ( $message );
|
234 |
}
|
235 |
|
@@ -242,114 +282,123 @@ function link_library_process_user_submission( $my_link_library_plugin ) {
|
|
242 |
}
|
243 |
}
|
244 |
|
245 |
-
$
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
"link_notes" => esc_html( stripslashes( $captureddata['link_notes'] ) ),
|
251 |
-
"link_category" => $newlinkcat,
|
252 |
-
"link_visible" => $newlinkvisibility,
|
253 |
-
'link_target' => $options['linktarget'],
|
254 |
-
'link_updated' => current_time( 'mysql' )
|
255 |
);
|
256 |
-
$newlinkid = $my_link_library_plugin->link_library_insert_link( $newlink, false, $options['addlinknoaddress'] );
|
257 |
-
|
258 |
-
$extradatatable = $my_link_library_plugin->db_prefix() . "links_extrainfo";
|
259 |
-
$wpdb->insert( $extradatatable, array(
|
260 |
-
'link_id' => $newlinkid,
|
261 |
-
'link_second_url' => $captureddata['ll_secondwebaddr'],
|
262 |
-
'link_telephone' => $captureddata['ll_telephone'],
|
263 |
-
'link_email' => $captureddata['ll_email'],
|
264 |
-
'link_reciprocal' => $captureddata['ll_reciprocal'],
|
265 |
-
'link_submitter' => ( isset( $username ) ? $username : null ),
|
266 |
-
'link_submitter_name' => $captureddata['ll_submittername'],
|
267 |
-
'link_submitter_email' => $captureddata['ll_submitteremail'],
|
268 |
-
'link_textfield' => $captureddata['link_textfield'],
|
269 |
-
'link_no_follow' => '',
|
270 |
-
'link_featured' => '',
|
271 |
-
'link_manual_updated' => ''
|
272 |
-
) );
|
273 |
|
274 |
-
|
275 |
-
if ( $genoptions['moderatoremail'] != '' ) {
|
276 |
-
$adminmail = $genoptions['moderatoremail'];
|
277 |
-
} else {
|
278 |
-
$adminmail = get_option( 'admin_email' );
|
279 |
-
}
|
280 |
|
281 |
-
|
282 |
|
283 |
-
if (
|
284 |
-
$
|
285 |
-
} else if ( !empty( $captureddata['link_category'] ) ) {
|
286 |
-
$find_cat_name_query = "SELECT t.name FROM " . $my_link_library_plugin->db_prefix() . "terms t, " . $my_link_library_plugin->db_prefix() . "term_taxonomy tt ";
|
287 |
-
$find_cat_name_query .= "WHERE t.term_id = '" . $captureddata['link_category'] . "' AND t.term_id = tt.term_id AND tt.taxonomy = 'link_category'";
|
288 |
-
$link_category_name = $wpdb->get_var( $find_cat_name_query );
|
289 |
}
|
290 |
|
291 |
-
$
|
292 |
-
|
|
|
293 |
|
294 |
-
$
|
295 |
-
|
296 |
-
|
297 |
|
298 |
-
|
299 |
-
$emailmessage .= __( 'Link RSS', 'link-library' ) . ": " . esc_html( stripslashes( $captureddata['link_rss'] ) ) . "<br />";
|
300 |
-
}
|
301 |
|
302 |
-
|
303 |
-
|
304 |
-
|
|
|
|
|
305 |
|
306 |
-
|
307 |
-
|
308 |
-
}
|
309 |
|
310 |
-
|
311 |
-
|
312 |
-
|
|
|
|
|
313 |
|
314 |
-
|
|
|
|
|
|
|
315 |
|
316 |
-
|
317 |
-
|
|
|
|
|
|
|
318 |
}
|
319 |
|
320 |
-
|
321 |
-
|
322 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
323 |
|
324 |
-
|
325 |
-
|
|
|
326 |
}
|
327 |
|
328 |
-
|
329 |
-
|
330 |
-
}
|
331 |
|
332 |
-
if (
|
333 |
-
|
334 |
-
|
|
|
|
|
|
|
|
|
335 |
|
336 |
-
|
337 |
-
|
|
|
338 |
}
|
339 |
|
340 |
-
|
341 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
342 |
}
|
343 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
344 |
if ( $options['showuserlinks'] == false ) {
|
345 |
-
$emailmessage .= '<a href="' . esc_url( add_query_arg( '
|
346 |
} elseif ( $options['showuserlinks'] == true ) {
|
347 |
-
$emailmessage .= '<a href="' . admin_url( '
|
348 |
}
|
349 |
|
350 |
$emailmessage .= "<br /><br />" . __( 'Message generated by', 'link-library' ) . " <a href='http://ylefebvre.ca/wordpress-plugins/link-library/'>Link Library</a> for Wordpress";
|
351 |
|
352 |
-
if (
|
353 |
$emailtitle = stripslashes( $genoptions['moderationnotificationtitle'] );
|
354 |
$emailtitle = str_replace( '%linkname%', esc_html( stripslashes( $captureddata['link_name'] ) ), $emailtitle );
|
355 |
} else {
|
@@ -402,6 +451,7 @@ function link_library_process_user_submission( $my_link_library_plugin ) {
|
|
402 |
}
|
403 |
|
404 |
$submitteremailmessage .= __( 'Link Category', 'link-library' ) . ": " . $link_category_name . " ( " . $captureddata['link_category'] . " )<br /><br />";
|
|
|
405 |
|
406 |
if ( 'show' == $options['showaddlinkreciprocal'] || 'required' == $options['showaddlinkreciprocal'] ) {
|
407 |
$submitteremailmessage .= __( 'Reciprocal Link', 'link-library' ) . ": " . $captureddata['ll_reciprocal'] . "<br /><br />";
|
@@ -454,7 +504,7 @@ function link_library_process_user_submission( $my_link_library_plugin ) {
|
|
454 |
|
455 |
$redirectaddress = esc_url_raw( add_query_arg( 'addlinkmessage', $message, $redirectaddress ) );
|
456 |
|
457 |
-
if ( $valid == false && ( $options['showcaptcha'] == true || $options['showcustomcaptcha'] == 'show'
|
458 |
if ( isset( $_POST['link_name'] ) && $_POST['link_name'] != '' ) {
|
459 |
$redirectaddress = add_query_arg( 'addlinkname', rawurlencode( $captureddata['link_name'] ), $redirectaddress );
|
460 |
}
|
@@ -463,14 +513,14 @@ function link_library_process_user_submission( $my_link_library_plugin ) {
|
|
463 |
$redirectaddress = add_query_arg( 'addlinkurl', rawurlencode( $captureddata['link_url'] ), $redirectaddress );
|
464 |
}
|
465 |
|
466 |
-
if ( isset( $_POST['link_category'] ) && $_POST['link_category'] != '' ) {
|
467 |
-
$redirectaddress = add_query_arg( 'addlinkcat', rawurlencode( $captureddata['link_category'] ), $redirectaddress );
|
468 |
-
}
|
469 |
-
|
470 |
if ( isset( $_POST['link_user_category'] ) && $_POST['link_user_category'] != '' ) {
|
471 |
$redirectaddress = add_query_arg( 'addlinkusercat', rawurlencode( $captureddata['link_user_category'] ), $redirectaddress );
|
472 |
}
|
473 |
|
|
|
|
|
|
|
|
|
474 |
if ( isset( $_POST['link_description'] ) && $_POST['link_description'] != '' ) {
|
475 |
$redirectaddress = add_query_arg( 'addlinkdesc', rawurlencode( $captureddata['link_description'] ), $redirectaddress );
|
476 |
}
|
@@ -519,6 +569,28 @@ function link_library_process_user_submission( $my_link_library_plugin ) {
|
|
519 |
$redirectaddress = add_query_arg( 'addlinkcustomcaptcha', rawurlencode( $captureddata['ll_customcaptchaanswer'] ), $redirectaddress );
|
520 |
}
|
521 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
522 |
$redirectaddress = esc_url_raw( $redirectaddress );
|
523 |
}
|
524 |
|
3 |
function link_library_process_user_submission( $my_link_library_plugin ) {
|
4 |
check_admin_referer( 'LL_ADDLINK_FORM' );
|
5 |
|
6 |
+
global $wpdb; // Kept with CPT update
|
7 |
+
|
8 |
require_once( ABSPATH . '/wp-admin/includes/taxonomy.php' );
|
9 |
|
10 |
load_plugin_textdomain( 'link-library', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
|
11 |
|
|
|
|
|
12 |
$settings = ( isset( $_POST['settingsid'] ) ? $_POST['settingsid'] : 1 );
|
13 |
$settingsname = 'LinkLibraryPP' . $settings;
|
14 |
$options = get_option( $settingsname );
|
24 |
$captureddata = array();
|
25 |
$captureddata['link_category'] = ( isset( $_POST['link_category'] ) ? $_POST['link_category'] : '' );
|
26 |
$captureddata['link_user_category'] = ( isset( $_POST['link_user_category'] ) ? $_POST['link_user_category'] : '' );
|
27 |
+
$captureddata['link_tags'] = ( isset( $_POST['link_tags'] ) ? $_POST['link_tags'] : '' );
|
28 |
+
$captureddata['link_user_tags'] = ( isset( $_POST['link_user_tags'] ) ? $_POST['link_user_tags'] : '' );
|
29 |
$captureddata['link_description'] = ( isset( $_POST['link_description'] ) ? $_POST['link_description'] : '' );
|
30 |
$captureddata['link_textfield'] = ( isset( $_POST['link_textfield'] ) ? $_POST['link_textfield'] : '' );
|
31 |
$captureddata['link_name'] = ( isset( $_POST['link_name'] ) ? $_POST['link_name'] : '' );
|
77 |
}
|
78 |
|
79 |
if ( $captureddata['link_name'] != '' && $requiredcheck ) {
|
80 |
+
if ( $options['addlinkakismet'] && ll_akismet_is_available() ) {
|
81 |
$c = array();
|
82 |
|
83 |
if ( !empty( $captureddata['ll_submittername'] ) ) {
|
123 |
} else {
|
124 |
$valid = true;
|
125 |
};
|
126 |
+
} elseif ( $options['addlinkakismet'] && !ll_akismet_is_available() ) {
|
127 |
echo 'Akismet has been selected but is not available';
|
128 |
die();
|
129 |
}
|
155 |
$parsed_new_reciprocal = parse_url( esc_url( $captureddata['ll_reciprocal'] ) );
|
156 |
$reciprocal_domain = $parsed_new_reciprocal['host'];
|
157 |
|
158 |
+
$reciprocal_links = array('');
|
159 |
+
$reciprocal_query = new WP_Query( array( 'post_type' => 'link_library_links', 'post_status' => array( 'publish', 'pending', 'draft', 'future', 'private' ) ) );
|
160 |
+
if ( $reciprocal_query->have_posts() ) {
|
161 |
+
while ( $reciprocal_query->have_posts() ) {
|
162 |
+
$reciprocal_query->the_post();
|
163 |
+
$the_answer = get_post_meta( $reciprocal_query->ID, 'link_reciprocal' , true );
|
164 |
+
$the_answer = trim( $the_answer );
|
165 |
+
array_push( $reciprocal_links, $the_answer );
|
166 |
+
}
|
167 |
+
}
|
168 |
|
169 |
+
wp_reset_postdata();
|
170 |
+
$reciprocal_links = array_unique( $reciprocal_links );
|
171 |
+
$reciprocal_links = sort( $reciprocal_links );
|
172 |
|
173 |
foreach( $reciprocal_links as $recip_link ) {
|
174 |
$parse_data = parse_url( $recip_link->link_reciprocal );
|
181 |
}
|
182 |
|
183 |
if ( $valid ) {
|
184 |
+
$existinglinkquery = "SELECT * from " . $my_link_library_plugin->db_prefix() . "posts p, " . $my_link_library_plugin->db_prefix() . "postmeta pm where p.ID = pm.post_ID and pm.meta_key = 'link_url' and ";
|
185 |
+
if ( ( $options['addlinknoaddress'] == false ) || ( $options['addlinknoaddress'] == true && $captureddata['link_url'] != "" ) ) {
|
186 |
+
$existinglinkquery .= '( ';
|
187 |
+
}
|
188 |
+
|
189 |
+
$existinglinkquery .= "p.post_title = '" . $captureddata['link_name'] . "' ";
|
190 |
|
191 |
if ( ( $options['addlinknoaddress'] == false ) || ( $options['addlinknoaddress'] == true && $captureddata['link_url'] != "" ) ) {
|
192 |
+
$existinglinkquery .= " or pm.meta_value = '" . $captureddata['link_url'] . "' )";
|
193 |
}
|
194 |
|
195 |
$existinglink = $wpdb->get_var( $existinglinkquery );
|
196 |
|
197 |
+
if ( empty( $existinglink ) && ( ( $options['addlinknoaddress'] == false && $captureddata['link_url'] != "" ) || $options['addlinknoaddress'] == true ) ) {
|
198 |
+
|
199 |
+
$validcat = false;
|
200 |
+
$newlinkcat = array();
|
201 |
+
|
202 |
+
foreach ( $captureddata['link_category'] as $cat_element ) {
|
203 |
+
if ( $cat_element == 'new' && !empty( $captureddata['link_user_category'] ) ) {
|
204 |
+
|
205 |
+
$existingcat = get_term_by( 'name', $captureddata['link_user_category'], 'link_library_category' );
|
206 |
+
|
207 |
+
if ( empty( $existingcat ) ) {
|
208 |
+
$new_category = wp_insert_term( $captureddata['link_user_category'], 'link_library_category', array( 'description' => '', 'slug' => sanitize_text_field( $captureddata['link_user_category'] ) ) );
|
209 |
+
|
210 |
+
$newlinkcat[] = $new_category['term_id'];
|
211 |
+
} else {
|
212 |
+
$newlinkcat[] = $existingcat->term_id;
|
213 |
+
}
|
214 |
+
|
215 |
+
$message = 8;
|
216 |
+
$validcat = true;
|
217 |
+
} elseif ( $cat_element == 'new' && empty( $captureddata['link_user_category'] ) ) {
|
218 |
+
$message = 7;
|
219 |
} else {
|
220 |
+
$newlinkcat[] = $cat_element;
|
221 |
+
|
222 |
+
$message = 8;
|
223 |
+
|
224 |
+
$validcat = true;
|
225 |
}
|
226 |
+
}
|
227 |
|
228 |
+
$newlinktags = array();
|
229 |
+
$captured_tags = $captureddata['link_tags'];
|
230 |
+
|
231 |
+
if ( !empty( $captured_tags ) ) {
|
232 |
+
foreach ( $captured_tags as $tag_element ) {
|
233 |
+
if ( $tag_element == 'new' && !empty( $captureddata['link_user_tags'] ) ) {
|
234 |
+
$user_tag_array = explode( ',', $captureddata['link_user_tags'] );
|
235 |
|
236 |
+
foreach( $user_tag_array as $user_tag ) {
|
237 |
+
$existingtag = get_term_by( 'name', $user_tag, 'link_library_tags' );
|
238 |
|
239 |
+
if ( empty( $existingtag ) ) {
|
240 |
+
$new_tag = wp_insert_term( $user_tag, 'link_library_tags', array( 'description' => '', 'slug' => sanitize_text_field( $captureddata['link_user_tags'] ) ) );
|
241 |
+
|
242 |
+
$newlinktags[] = $new_tag['term_id'];
|
243 |
+
} else {
|
244 |
+
$newlinktags[] = $existingtag->term_id;
|
245 |
+
}
|
246 |
+
}
|
247 |
+
} elseif ( $cat_element == 'new' && empty( $captureddata['link_user_tags'] ) ) {
|
248 |
+
$message = 24;
|
249 |
+
} else {
|
250 |
+
$existingtagid = get_term_by( 'id', $tag_element, 'link_library_tags' );
|
251 |
+
$newlinktags[] = $existingtagid->name;
|
252 |
+
}
|
253 |
+
}
|
254 |
}
|
255 |
|
256 |
if ( $validcat == true ) {
|
257 |
+
$newlinkdesc = $captureddata['link_description'];
|
258 |
if ( $options['showuserlinks'] == false ) {
|
259 |
if ( $options['showifreciprocalvalid'] ) {
|
260 |
$reciprocal_return = $my_link_library_plugin->CheckReciprocalLink( $genoptions['recipcheckaddress'], $captureddata['ll_reciprocal'] );
|
261 |
|
262 |
if ( $reciprocal_return == 'exists_found' ) {
|
263 |
+
$newlinkvisibility = 'publish';
|
|
|
264 |
unset ( $message );
|
265 |
} else {
|
266 |
+
$newlinkvisibility = 'pending';
|
|
|
267 |
}
|
268 |
} else {
|
269 |
+
$newlinkvisibility = 'pending';
|
|
|
270 |
}
|
271 |
} else {
|
272 |
+
$newlinkvisibility = 'publish';
|
|
|
273 |
unset ( $message );
|
274 |
}
|
275 |
|
282 |
}
|
283 |
}
|
284 |
|
285 |
+
$new_link_data = array(
|
286 |
+
'post_type' => 'link_library_links',
|
287 |
+
'post_content' => '',
|
288 |
+
'post_title' => esc_html( stripslashes( $captureddata['link_name'] ) ),
|
289 |
+
'post_status' => $newlinkvisibility
|
|
|
|
|
|
|
|
|
|
|
290 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
291 |
|
292 |
+
$new_link_ID = wp_insert_post( $new_link_data );
|
|
|
|
|
|
|
|
|
|
|
293 |
|
294 |
+
if ( !empty( $new_link_ID ) ) {
|
295 |
|
296 |
+
if ( !empty( $newlinkcat ) ) {
|
297 |
+
wp_set_post_terms( $new_link_ID, $newlinkcat, 'link_library_category', false );
|
|
|
|
|
|
|
|
|
298 |
}
|
299 |
|
300 |
+
if ( !empty( $newlinktags ) ) {
|
301 |
+
wp_set_post_terms( $new_link_ID, $newlinktags, 'link_library_tags', false );
|
302 |
+
}
|
303 |
|
304 |
+
update_post_meta( $new_link_ID, 'link_url', esc_url( stripslashes( $captureddata['link_url'] ) ) );
|
305 |
+
update_post_meta( $new_link_ID, 'link_target', $options['linktarget'] );
|
306 |
+
update_post_meta( $new_link_ID, 'link_description', esc_html( stripslashes( $newlinkdesc ) ) );
|
307 |
|
308 |
+
update_post_meta( $new_link_ID, 'link_updated', current_time( 'timestamp' ) );
|
|
|
|
|
309 |
|
310 |
+
update_post_meta( $new_link_ID, 'link_notes', esc_html( stripslashes( $captureddata['link_notes'] ) ) );
|
311 |
+
update_post_meta( $new_link_ID, 'link_rss', esc_html( stripslashes( $captureddata['link_rss'] ) ) );
|
312 |
+
update_post_meta( $new_link_ID, 'link_second_url', $captureddata['ll_secondwebaddr'] );
|
313 |
+
update_post_meta( $new_link_ID, 'link_telephone', $captureddata['ll_telephone'] );
|
314 |
+
update_post_meta( $new_link_ID, 'link_email', $captureddata['ll_email'] );
|
315 |
|
316 |
+
update_post_meta( $new_link_ID, 'link_visits', 0 );
|
317 |
+
update_post_meta( $new_link_ID, 'link_rating', 0 );
|
|
|
318 |
|
319 |
+
update_post_meta( $new_link_ID, 'link_reciprocal', $captureddata['ll_reciprocal'] );
|
320 |
+
update_post_meta( $new_link_ID, 'link_submitter', ( isset( $username ) ? $username : null ) );
|
321 |
+
update_post_meta( $new_link_ID, 'link_submitter_name', $captureddata['ll_submittername'] );
|
322 |
+
update_post_meta( $new_link_ID, 'link_submitter_email', $captureddata['ll_submitteremail'] );
|
323 |
+
update_post_meta( $new_link_ID, 'link_textfield', $captureddata['link_textfield'] );
|
324 |
|
325 |
+
update_post_meta( $new_link_ID, 'link_no_follow', false );
|
326 |
+
update_post_meta( $new_link_ID, 'link_featured', 0 );
|
327 |
+
update_post_meta( $new_link_ID, 'link_updated_manual', false );
|
328 |
+
}
|
329 |
|
330 |
+
if ( $options['emailnewlink'] ) {
|
331 |
+
if ( $genoptions['moderatoremail'] != '' ) {
|
332 |
+
$adminmail = $genoptions['moderatoremail'];
|
333 |
+
} else {
|
334 |
+
$adminmail = get_option( 'admin_email' );
|
335 |
}
|
336 |
|
337 |
+
$link_category_name = '';
|
338 |
+
$link_category_names_array = array();
|
339 |
+
|
340 |
+
if ( !empty( $newlinkcat ) ) {
|
341 |
+
foreach ( $newlinkcat as $link_cat ) {
|
342 |
+
$existingcat = get_term_by( 'id', $link_cat, 'link_library_category' );
|
343 |
+
if ( !empty( $existingcat ) ) {
|
344 |
+
$link_category_names_array[] = $existingcat->name;
|
345 |
+
}
|
346 |
+
}
|
347 |
|
348 |
+
if ( !empty( $link_category_names_array ) ) {
|
349 |
+
$link_category_name = implode( ',', $link_category_names_array );
|
350 |
+
}
|
351 |
}
|
352 |
|
353 |
+
$link_tags_name = '';
|
354 |
+
$link_tags_names_array = array();
|
|
|
355 |
|
356 |
+
if ( !empty( $newlinktags ) ) {
|
357 |
+
foreach ( $newlinktags as $link_tag ) {
|
358 |
+
$existingtag = get_term_by( 'id', $link_tag, 'link_library_tags' );
|
359 |
+
if ( !empty( $existingtag ) ) {
|
360 |
+
$link_tags_names_array[] = $existingtag->name;
|
361 |
+
}
|
362 |
+
}
|
363 |
|
364 |
+
if ( !empty( $link_tags_names_array ) ) {
|
365 |
+
$link_tags_name = implode( ',', $link_tags_names_array );
|
366 |
+
}
|
367 |
}
|
368 |
|
369 |
+
$headers = "MIME-Version: 1.0\r\n";
|
370 |
+
$headers .= "Content-type: text/html; charset=utf-8\r\n";
|
371 |
+
|
372 |
+
$emailmessage = __( 'A user submitted a new link to your Wordpress Link database.', 'link-library' ) . "<br /><br />";
|
373 |
+
$emailmessage .= __( 'Link Name', 'link-library' ) . ": " . esc_html( stripslashes( $captureddata['link_name'] ) ) . "<br />";
|
374 |
+
$emailmessage .= __( 'Link Address', 'link-library' ) . ": <a href='" . esc_html( stripslashes( $captureddata['link_url'] ) ) . "'>" . esc_html( stripslashes( $captureddata['link_url'] ) ) . "</a><br />";
|
375 |
+
$emailmessage .= __( 'Link RSS', 'link-library' ) . ": " . esc_html( stripslashes( $captureddata['link_rss'] ) ) . "<br />";
|
376 |
+
$emailmessage .= __( 'Link Description', 'link-library' ) . ": " . esc_html( stripslashes( $captureddata['link_description'] ) ) . "<br />";
|
377 |
+
$emailmessage .= __( 'Link Large Description', 'link-library' ) . ": " . esc_html( stripslashes( $captureddata['link_textfield'] ) ) . "<br />";
|
378 |
+
$emailmessage .= __( 'Link Notes', 'link-library' ) . ": " . esc_html( stripslashes( $captureddata['link_notes'] ) ) . "<br />";
|
379 |
+
$emailmessage .= __( 'Link Category', 'link-library' ) . ": " . $link_category_name . "( " . implode( ', ', $captureddata['link_category'] ) . " )<br /><br />";
|
380 |
+
if ( !empty( $link_tags_name ) ) {
|
381 |
+
$emailmessage .= __( 'Link Tags', 'link-library' ) . ": " . $link_tags_name . "( " . implode( ', ', $captureddata['link_tags'] ) . " )<br /><br />";
|
382 |
}
|
383 |
|
384 |
+
$emailmessage .= __( 'Reciprocal Link', 'link-library' ) . ": " . $captureddata['ll_reciprocal'] . "<br /><br />";
|
385 |
+
$emailmessage .= __( 'Link Secondary Address', 'link-library' ) . ": " . $captureddata['ll_secondwebaddr'] . "<br /><br />";
|
386 |
+
$emailmessage .= __( 'Link Telephone', 'link-library' ) . ": " . $captureddata['ll_telephone'] . "<br /><br />";
|
387 |
+
$emailmessage .= __( 'Link E-mail', 'link-library' ) . ": " . $captureddata['ll_email'] . "<br /><br />";
|
388 |
+
$emailmessage .= __( 'Link Submitter', 'link-library' ) . ": " . $username . "<br /><br />";
|
389 |
+
$emailmessage .= __( 'Link Submitter Name', 'link-library' ) . ": " . $captureddata['ll_submittername'] . "<br /><br />";
|
390 |
+
$emailmessage .= __( 'Link Submitter E-mail', 'link-library' ) . ": " . $captureddata['ll_submitteremail'] . "<br /><br />";
|
391 |
+
$emailmessage .= __( 'Link Comment', 'link-library' ) . ": " . $captureddata['ll_submittercomment'] . "<br /><br />";
|
392 |
+
|
393 |
if ( $options['showuserlinks'] == false ) {
|
394 |
+
$emailmessage .= '<a href="' . esc_url( add_query_arg( array( 'post_type' => 'link_library_links', 'page' => 'link-library-moderate' ), admin_url( 'edit.php' ) ) ) . '">Moderate new links</a>';
|
395 |
} elseif ( $options['showuserlinks'] == true ) {
|
396 |
+
$emailmessage .= '<a href="' . esc_url( add_query_arg( 'post_type', 'link_library_links', admin_url( 'edit.php' ) ) ) . '">View links</a>';
|
397 |
}
|
398 |
|
399 |
$emailmessage .= "<br /><br />" . __( 'Message generated by', 'link-library' ) . " <a href='http://ylefebvre.ca/wordpress-plugins/link-library/'>Link Library</a> for Wordpress";
|
400 |
|
401 |
+
if ( !empty( $genoptions['moderationnotificationtitle'] ) ) {
|
402 |
$emailtitle = stripslashes( $genoptions['moderationnotificationtitle'] );
|
403 |
$emailtitle = str_replace( '%linkname%', esc_html( stripslashes( $captureddata['link_name'] ) ), $emailtitle );
|
404 |
} else {
|
451 |
}
|
452 |
|
453 |
$submitteremailmessage .= __( 'Link Category', 'link-library' ) . ": " . $link_category_name . " ( " . $captureddata['link_category'] . " )<br /><br />";
|
454 |
+
$submitteremailmessage .= __( 'Link Tags', 'link-library' ) . ": " . $link_tags_name_name . " ( " . $captureddata['link_tags'] . " )<br /><br />";
|
455 |
|
456 |
if ( 'show' == $options['showaddlinkreciprocal'] || 'required' == $options['showaddlinkreciprocal'] ) {
|
457 |
$submitteremailmessage .= __( 'Reciprocal Link', 'link-library' ) . ": " . $captureddata['ll_reciprocal'] . "<br /><br />";
|
504 |
|
505 |
$redirectaddress = esc_url_raw( add_query_arg( 'addlinkmessage', $message, $redirectaddress ) );
|
506 |
|
507 |
+
if ( $valid == false && ( $options['showcaptcha'] == true || $options['showcustomcaptcha'] == 'show' || $options['onereciprocaldomain'] ) ) {
|
508 |
if ( isset( $_POST['link_name'] ) && $_POST['link_name'] != '' ) {
|
509 |
$redirectaddress = add_query_arg( 'addlinkname', rawurlencode( $captureddata['link_name'] ), $redirectaddress );
|
510 |
}
|
513 |
$redirectaddress = add_query_arg( 'addlinkurl', rawurlencode( $captureddata['link_url'] ), $redirectaddress );
|
514 |
}
|
515 |
|
|
|
|
|
|
|
|
|
516 |
if ( isset( $_POST['link_user_category'] ) && $_POST['link_user_category'] != '' ) {
|
517 |
$redirectaddress = add_query_arg( 'addlinkusercat', rawurlencode( $captureddata['link_user_category'] ), $redirectaddress );
|
518 |
}
|
519 |
|
520 |
+
if ( isset( $_POST['link_user_tags'] ) && !empty( $_POST['link_user_tags'] ) ) {
|
521 |
+
$redirectaddress = add_query_arg( 'addlinkusertags', rawurlencode( $captureddata['link_user_tags'] ), $redirectaddress );
|
522 |
+
}
|
523 |
+
|
524 |
if ( isset( $_POST['link_description'] ) && $_POST['link_description'] != '' ) {
|
525 |
$redirectaddress = add_query_arg( 'addlinkdesc', rawurlencode( $captureddata['link_description'] ), $redirectaddress );
|
526 |
}
|
569 |
$redirectaddress = add_query_arg( 'addlinkcustomcaptcha', rawurlencode( $captureddata['ll_customcaptchaanswer'] ), $redirectaddress );
|
570 |
}
|
571 |
|
572 |
+
if ( isset( $_POST['link_category'] ) && !empty( $_POST['link_category'] ) ) {
|
573 |
+
foreach( $_POST['link_category'] as $cat_item ) {
|
574 |
+
if ( false !== strpos( $redirectaddress, '?' ) ) {
|
575 |
+
$redirectaddress .= '&';
|
576 |
+
} else {
|
577 |
+
$redirectaddress .= '?';
|
578 |
+
}
|
579 |
+
$redirectaddress .= 'addlinkcat[]=' . rawurlencode( $cat_item );
|
580 |
+
}
|
581 |
+
}
|
582 |
+
|
583 |
+
if ( isset( $_POST['link_tags'] ) && !empty( $_POST['link_tags'] ) ) {
|
584 |
+
foreach( $_POST['link_tags'] as $tag_item ) {
|
585 |
+
if ( false !== strpos( $redirectaddress, '?' ) ) {
|
586 |
+
$redirectaddress .= '&';
|
587 |
+
} else {
|
588 |
+
$redirectaddress .= '?';
|
589 |
+
}
|
590 |
+
$redirectaddress .= 'addlinktag[]=' . rawurlencode( $tag_item );
|
591 |
+
}
|
592 |
+
}
|
593 |
+
|
594 |
$redirectaddress = esc_url_raw( $redirectaddress );
|
595 |
}
|
596 |
|