Link Library - Version stable

Version Description

Download this release

Release Info

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

Code changes from version 6.0-Beta6 to stable

adminstyle.css DELETED
@@ -1,19 +0,0 @@
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
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
icons/link-icon.png DELETED
Binary file
importtemplate.csv CHANGED
@@ -1,2 +1,2 @@
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"
1
+ "Name","Address","RSS","Description","Notes","Category","Visible","Secondary URL","Telephone","E-mail","Reciprocal link","Image Address","Large Description","No Follow","Rating","Link Target", "Updated Date - Empty for none"
2
+ "IGN","http://ign.com","","Video Game News",,"first,second","Y",,,"",,,"This is a long description of the link","N",10,"_blank","2017-02-15"
js/ll_admin_edit.js DELETED
@@ -1,34 +0,0 @@
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 DELETED
Binary file
languages/link-library-fr_CA.po DELETED
@@ -1,2943 +0,0 @@
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&rsquo;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&rsquo;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&rsquo;ID d&rsquo;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&rsquo;ID de catégories séparées par des virgules qu&rsquo;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&rsquo;ID de catégories séparées par des vrigules qu&rsquo;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&rsquo;y a pas d&rsquo;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&rsquo;é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&rsquo;é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&nbsp;: 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&rsquo;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&rsquo;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&rsquo;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&nbsp;: 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&rsquo;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&rsquo;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&nbsp;!"
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&nbsp;!"
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&rsquo;é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&rsquo;identifiant dans l&rsquo;é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&rsquo;envoi de la configuration de librairie n&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;option &ldquo;N&rsquo;afficher qu&rsquo;une catégorie à la fois&rdquo; est activée et que la catégorie par défaut n&rsquo;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&rsquo;activé cette fonctionnalité afin d&rsquo;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&rsquo;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&rsquo;icône d&rsquo;ouverture. Utilise l&rsquo;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&rsquo;icône de fermeture. Utilise l&rsquo;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&rsquo;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&rsquo;usager sera redirigé après avoir soumis un nouveau lien. Lorsqu&rsquo;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&rsquo;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&rsquo;utilisateur ayant soumis le lien lors de l&rsquo;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&rsquo;utiliser que la première partie du nom de l&rsquo;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&rsquo;utilisateur qui apparaîtra sur les messages d&rsquo;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&rsquo;adresse de courriel de laquelle les messages d&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;adresse du lien."
680
-
681
- #: link-library-admin.php:2400
682
- msgid "Approval e-mail body"
683
- msgstr "Contenu du courriel d&rsquo;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&rsquo;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&rsquo;option suivante vous permet de masquer le bouton de don et la section sur l&rsquo;autheur dans l&rsquo;administration de Link Library. Si vous aimez cette extension et que vous l&rsquo;utilisez régulièrement, merci de penser à faire un don à l&rsquo;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&rsquo;é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&rsquo;é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&nbsp;:"
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&rsquo;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&rsquo;identifiant dans l&rsquo;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&nbsp;! Créer s&rsquo;en une&nbsp;!"
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&rsquo;afficher qu&rsquo;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&rsquo;afficher qu&rsquo;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&rsquo;option des liens personnalisés doit être activée pour que l&rsquo;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&rsquo;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 &ldquo;Mode Pagination&rdquo;"
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&rsquo;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&rsquo;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&rsquo;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&rsquo;applique que lorsque l&rsquo;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&rsquo;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&rsquo;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&rsquo;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&nbsp;: linklistcatname, Exemples de balises d&rsquo;en-tête&nbsp;: 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&rsquo;affichez qu&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;adresse électronique sera incluse. Dans le cas d&rsquo;une commande, utilisez les symboles #email et #company pour indiquer l&rsquo;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&rsquo;indication de mise à jour des liens"
1779
-
1780
- #: link-library-admin.php:3794
1781
- msgid "Convert [] to &lt;&gt; in Link Description and Notes"
1782
- msgstr "Convertir [] à &lt;&gt; 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&rsquo;édition lorsque l&rsquo;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&rsquo;y a pas d&rsquo;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&rsquo;icône standard"
1836
-
1837
- #: link-library-admin.php:3926
1838
- msgid "Show RSS Preview Link"
1839
- msgstr "Afficher un lien vers l&rsquo;aperçu du flux d&rsquo;informations"
1840
-
1841
- #: link-library-admin.php:3932
1842
- msgid "Number of articles shown in RSS Preview"
1843
- msgstr "Nombre d&rsquo;articles présentés dans l&rsquo;aperçu du flux d&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;aperçu du flux d&rsquo;informations RSS"
1864
-
1865
- #: link-library-admin.php:3964
1866
- msgid "RSS Preview Height"
1867
- msgstr "Hauteur de l&rsquo;aperçu du flux d&rsquo;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&rsquo;activation de cette option permet la récupération d&rsquo;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&rsquo;activation de cette option permet la récupération d&rsquo;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&rsquo;informations RSS"
1921
-
1922
- #: link-library-admin.php:4038
1923
- msgid "Number of items in RSS feed"
1924
- msgstr "Nombre d&rsquo;éléments dans le flux d&rsquo;informations RSS"
1925
-
1926
- #: link-library-admin.php:4047
1927
- msgid "RSS Feed Title"
1928
- msgstr "Titre du flux d&rsquo;informations RSS"
1929
-
1930
- #: link-library-admin.php:4053
1931
- msgid "RSS Feed Description"
1932
- msgstr "Description du flux d&rsquo;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&nbsp;?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&rsquo;ê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&rsquo;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&rsquo;é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&rsquo;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&rsquo;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&rsquo;utilisateur ayant soumis le lien"
2016
-
2017
- #: link-library-admin.php:4260
2018
- msgid "Add new link label"
2019
- msgstr "Texte du champ d&rsquo;ajout d&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;adresse électronique"
2198
-
2199
- #: link-library-admin.php:4491
2200
- msgid "Link Submitter Name label"
2201
- msgstr "Texte pour le nom d&rsquo;utilisateur ayant soumis le lien"
2202
-
2203
- #: link-library-admin.php:4506
2204
- msgid "Link Submitter E-mail label"
2205
- msgstr "Texte pour l&rsquo;adresse électronique de l&rsquo;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&rsquo;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&rsquo;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&rsquo;eau bouillante est froide ou chaude&nbsp;?"
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&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;é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&rsquo;est pas possible de générer de vignette puisque qu&rsquo;aucun nom ou adresse web n&rsquo;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&rsquo;est pas possible de générer l&rsquo;icône de favori puisque qu&rsquo;aucun nom ou adresse web n&rsquo;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&nbsp;: 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&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;utiliser le panneau d&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;utilisateur n&rsquo;a pas été correctement saisie. L&rsquo;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&nbsp;: Le lien n&rsquo;a pas d&rsquo;adresse spécifiée."
2607
-
2608
- #: render-link-library-addlink-sc.php:159
2609
- msgid "Error: Link already exists."
2610
- msgstr "Erreur&nbsp;: 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&rsquo;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&rsquo;envoi du formulaire&nbsp;!"
2692
-
2693
- #: render-link-library-addlink-sc.php:566
2694
- msgid "You have not answered all required fields"
2695
- msgstr "Vous n&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;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&rsquo;est pas correct"
2818
-
2819
- #: render-link-library-addlink-sc.php:597
2820
- msgid "Incorrect image dimensions,"
2821
- msgstr "Dimentions de l&rsquo;image incorrectes,"
2822
-
2823
- #: render-link-library-addlink-sc.php:598
2824
- msgid "the image can not be taller than"
2825
- msgstr "l&rsquo;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&rsquo;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&rsquo;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&rsquo;image n&rsquo;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&rsquo;image ci-dessus"
2850
-
2851
- #: render-link-library-cats-sc.php:404
2852
- msgid "Go!"
2853
- msgstr "Allez-y&nbsp;!"
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&rsquo;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&rsquo;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&rsquo;il sera approuvé par l&rsquo;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 DELETED
Binary file
languages/link-library-nb_NO.po DELETED
@@ -1,3250 +0,0 @@
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 &lt;&gt; in Link Description and Notes"
2004
- msgstr "Konvertere [] til &lt;&gt; 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 DELETED
Binary file
languages/link-library.pot CHANGED
@@ -1,164 +1,185 @@
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,15 +187,15 @@ msgid ""
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,498 +203,503 @@ msgid ""
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,288 +708,224 @@ msgid ""
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,1971 +933,1856 @@ msgid ""
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 &lt;&gt; 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 ""
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "POT-Creation-Date: 2016-09-13 12:48-0400\n"
5
+ "PO-Revision-Date: 2016-09-13 12:48-0400\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.8.9\n"
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:97
19
  msgid "Insert a Link Library shortcode"
20
  msgstr ""
21
 
22
+ #: link-library-admin.php:100
23
  msgid "Link List"
24
  msgstr ""
25
 
26
+ #: link-library-admin.php:101
27
  msgid "Link Category List"
28
  msgstr ""
29
 
30
+ #: link-library-admin.php:102
31
  msgid "Link Search"
32
  msgstr ""
33
 
34
+ #: link-library-admin.php:103
35
  msgid "Add Link Form"
36
  msgstr ""
37
 
38
+ #: link-library-admin.php:111
39
  msgid "Render a list of links."
40
  msgstr ""
41
 
42
+ #: link-library-admin.php:113 link-library-admin.php:168
43
+ #: link-library-admin.php:203
44
  msgid "Library ID"
45
  msgstr ""
46
 
47
+ #: link-library-admin.php:124 link-library-admin.php:179
48
+ #: link-library-admin.php:214 link-library-admin.php:842
49
+ #: link-library-admin.php:2467 link-library-admin.php:2482
50
  msgid "Library"
51
  msgstr ""
52
 
53
+ #: link-library-admin.php:130
54
  msgid "Single Link ID"
55
  msgstr ""
56
 
57
+ #: link-library-admin.php:133
58
  msgid "Specify ID of single link to be displayed"
59
  msgstr ""
60
 
61
+ #: link-library-admin.php:135 link-library-admin.php:185
62
+ #: link-library-admin.php:220
63
  msgid "Category Override"
64
  msgstr ""
65
 
66
+ #: link-library-admin.php:138 link-library-admin.php:188
67
+ #: link-library-admin.php:223
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:140 link-library-admin.php:190
74
+ #: link-library-admin.php:225
75
  msgid "Excluded Category Override"
76
  msgstr ""
77
 
78
+ #: link-library-admin.php:143 link-library-admin.php:193
79
+ #: link-library-admin.php:228
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:145 link-library-admin.php:150
86
+ #: link-library-admin.php:155 link-library-admin.php:160
87
  msgid "Notes Override"
88
  msgstr ""
89
 
90
+ #: link-library-admin.php:148
91
  msgid "Set to 0 or 1 to display or not display link notes"
92
  msgstr ""
93
 
94
+ #: link-library-admin.php:153
95
  msgid "Set to 0 or 1 to display or not display link descriptions"
96
  msgstr ""
97
 
98
+ #: link-library-admin.php:158
99
  msgid "Set to 0 or 1 to display or not display rss information"
100
  msgstr ""
101
 
102
+ #: link-library-admin.php:163
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:166
107
  msgid "Render a list of link categories."
108
  msgstr ""
109
 
110
+ #: link-library-admin.php:196
111
  msgid "Render a search box to search through links."
112
  msgstr ""
113
 
114
+ #: link-library-admin.php:198
115
  msgid "There are no options for this shortcode."
116
  msgstr ""
117
 
118
+ #: link-library-admin.php:201
119
  msgid "Render a form for visitors to submit new links."
120
  msgstr ""
121
 
122
+ #: link-library-admin.php:261
123
  msgid "Category Link"
124
  msgstr ""
125
 
126
+ #: link-library-admin.php:365
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:423 link-library-admin.php:722
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:472
175
+ msgid "Link Library - Additional Link Parameters"
176
+ msgstr ""
177
+
178
+ #: link-library-admin.php:550
179
  msgid "Link Library: Missing Thumbshots API Key"
180
  msgstr ""
181
 
182
+ #: link-library-admin.php:550
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
  "in the Link Library admin panel."
188
  msgstr ""
189
 
190
+ #: link-library-admin.php:550
191
  msgid "Jump to Link Library admin"
192
  msgstr ""
193
 
194
+ #: link-library-admin.php:555
195
  msgid "Link Library: No Link Categories on your site"
196
  msgstr ""
197
 
198
+ #: link-library-admin.php:555
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
  "category."
204
  msgstr ""
205
 
206
+ #: link-library-admin.php:611
207
  msgid "Links to moderate"
208
  msgstr ""
209
 
210
+ #: link-library-admin.php:630 link-library-admin.php:632
211
+ #: link-library-admin.php:635 link-library-admin.php:954
212
+ msgid "General Options"
213
  msgstr ""
214
 
215
+ #: link-library-admin.php:637
216
+ msgid "Settings"
217
  msgstr ""
218
 
219
+ #: link-library-admin.php:637 link-library-admin.php:959
220
+ msgid "Library Settings"
221
  msgstr ""
222
 
223
+ #: link-library-admin.php:640 link-library-admin.php:642
224
+ #: link-library-admin.php:964
225
  msgid "Moderate"
226
  msgstr ""
227
 
228
+ #: link-library-admin.php:645 link-library-admin.php:969
229
+ #: link-library-admin.php:2047
230
  msgid "Stylesheet"
231
  msgstr ""
232
 
233
+ #: link-library-admin.php:647
234
+ msgid "Reciprocal and Broken Link Checker"
235
  msgstr ""
236
 
237
+ #: link-library-admin.php:649 link-library-admin.php:977
238
  msgid "FAQ"
239
  msgstr ""
240
 
241
+ #: link-library-admin.php:676 link-library-admin.php:680
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:678 link-library-admin.php:2049
250
  msgid "Editor"
251
  msgstr ""
252
 
253
+ #: link-library-admin.php:679
254
+ msgid "Reciprocal Link Checker"
255
  msgstr ""
256
 
257
+ #: link-library-admin.php:762
258
  msgid "Thumbnails successfully generated!"
259
  msgstr ""
260
 
261
+ #: link-library-admin.php:764
262
  msgid "Favicons successfully generated!"
263
  msgstr ""
264
 
265
+ #: link-library-admin.php:766 link-library-admin.php:4843
266
  msgid "Thumbnail successfully generated for"
267
  msgstr ""
268
 
269
+ #: link-library-admin.php:768 link-library-admin.php:4879
270
  msgid "Favicon successfully generated for"
271
  msgstr ""
272
 
273
+ #: link-library-admin.php:799
274
  msgid "General Settings Saved"
275
  msgstr ""
276
 
277
+ #: link-library-admin.php:802
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:852 link-library-admin.php:2504
287
  msgid "Library #"
288
  msgstr ""
289
 
290
+ #: link-library-admin.php:852
291
  msgid "Updated"
292
  msgstr ""
293
 
294
+ #: link-library-admin.php:856
295
  msgid "Included Category ID"
296
  msgstr ""
297
 
298
+ #: link-library-admin.php:856 link-library-admin.php:860
299
  msgid "is invalid. Please check the ID in the Link Category editor."
300
  msgstr ""
301
 
302
+ #: link-library-admin.php:860
303
  msgid "Excluded Category ID"
304
  msgstr ""
305
 
306
+ #: link-library-admin.php:864
307
  msgid "Invalid column count for link on row. Compare against template."
308
  msgstr ""
309
 
310
+ #: link-library-admin.php:869
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:881
323
  msgid "Library Settings Upload Failed"
324
  msgstr ""
325
 
326
+ #: link-library-admin.php:885
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:902
339
  msgid "Link(s) Approved"
340
  msgstr ""
341
 
342
+ #: link-library-admin.php:904
343
  msgid "Link(s) Deleted"
344
  msgstr ""
345
 
346
+ #: link-library-admin.php:915
347
  msgid "Stylesheet updated"
348
  msgstr ""
349
 
350
+ #: link-library-admin.php:917
351
  msgid "Stylesheet reset to original state"
352
  msgstr ""
353
 
354
+ #: link-library-admin.php:924
355
  msgid "Settings updated"
356
  msgstr ""
357
 
358
+ #: link-library-admin.php:974
 
 
 
 
 
 
 
 
359
  msgid "Reciprocal Check"
360
  msgstr ""
361
 
362
+ #: link-library-admin.php:1132
363
  msgid "General"
364
  msgstr ""
365
 
366
+ #: link-library-admin.php:1133
 
 
 
 
367
  msgid "Images"
368
  msgstr ""
369
 
370
+ #: link-library-admin.php:1134
371
  msgid "Bookmarklet"
372
  msgstr ""
373
 
374
+ #: link-library-admin.php:1135
375
  msgid "Moderation"
376
  msgstr ""
377
 
378
+ #: link-library-admin.php:1136
379
  msgid "Hide Donation"
380
  msgstr ""
381
 
382
+ #: link-library-admin.php:1143
 
 
 
 
383
  msgid "Usage"
384
  msgstr ""
385
 
386
+ #: link-library-admin.php:1144
387
  msgid "Common"
388
  msgstr ""
389
 
390
+ #: link-library-admin.php:1145
391
  msgid "Categories"
392
  msgstr ""
393
 
394
+ #: link-library-admin.php:1146
395
  msgid "Links"
396
  msgstr ""
397
 
398
+ #: link-library-admin.php:1147
399
  msgid "Advanced"
400
  msgstr ""
401
 
402
+ #: link-library-admin.php:1148
403
  msgid "Pop-Ups"
404
  msgstr ""
405
 
406
+ #: link-library-admin.php:1149
407
  msgid "RSS Display"
408
  msgstr ""
409
 
410
+ #: link-library-admin.php:1150
411
  msgid "Thumbnails"
412
  msgstr ""
413
 
414
+ #: link-library-admin.php:1151
415
  msgid "RSS Feed"
416
  msgstr ""
417
 
418
+ #: link-library-admin.php:1152 link-library-admin.php:3936
419
+ #: link-library-admin.php:3945
420
  msgid "Search"
421
  msgstr ""
422
 
423
+ #: link-library-admin.php:1153
424
  msgid "User Submission"
425
  msgstr ""
426
 
427
+ #: link-library-admin.php:1154
428
+ msgid "Import/Export"
429
  msgstr ""
430
 
431
+ #: link-library-admin.php:1211 link-library-admin.php:1321
432
+ #: link-library-admin.php:1830 link-library-admin.php:1960
433
+ #: link-library-admin.php:1993
434
  msgid "Not allowed"
435
  msgstr ""
436
 
437
+ #: link-library-admin.php:1890 link-library-admin.php:1931
438
+ #: usersubmission.php:350
439
  msgid "Message generated by"
440
  msgstr ""
441
 
442
+ #: link-library-admin.php:2039 link-library-admin.php:4931
443
  msgid "Update channel"
444
  msgstr ""
445
 
446
+ #: link-library-admin.php:2041 link-library-admin.php:4933
447
  msgid "Standard channel - Updates as they are released"
448
  msgstr ""
449
 
450
+ #: link-library-admin.php:2042 link-library-admin.php:4934
451
  msgid "Monthly Channel - Updates once per month"
452
  msgstr ""
453
 
454
+ #: link-library-admin.php:2047 link-library-admin.php:2048
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:2053
461
  msgid "Number of Libraries"
462
  msgstr ""
463
 
464
+ #: link-library-admin.php:2061
465
  msgid "Category selection method"
466
  msgstr ""
467
 
468
+ #: link-library-admin.php:2063
469
  msgid "Comma-separated ID list"
470
  msgstr ""
471
 
472
+ #: link-library-admin.php:2064
473
  msgid "Multi-select List"
474
  msgstr ""
475
 
476
+ #: link-library-admin.php:2068 link-library-admin.php:2069
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:2068
484
  msgid "Additional pages to load styles and scripts"
485
  msgstr ""
486
 
487
+ #: link-library-admin.php:2074
488
  msgid "Debug Mode"
489
  msgstr ""
490
 
491
+ #: link-library-admin.php:2081 link-library-admin.php:2082
492
+ #: link-library-admin.php:2087 link-library-admin.php:2088
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:2081
499
  msgid "Page Title Prefix"
500
  msgstr ""
501
 
502
+ #: link-library-admin.php:2087
503
  msgid "Page Title Suffix"
504
  msgstr ""
505
 
506
+ #: link-library-admin.php:2093 link-library-admin.php:2094
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:2093
513
  msgid "Link Image File Path"
514
  msgstr ""
515
 
516
+ #: link-library-admin.php:2096
517
  msgid "Absolute"
518
  msgstr ""
519
 
520
+ #: link-library-admin.php:2097
521
  msgid "Relative"
522
  msgstr ""
523
 
524
+ #: link-library-admin.php:2101
525
  msgid "Thumbnail Generator"
526
  msgstr ""
527
 
528
+ #: link-library-admin.php:2112 link-library-admin.php:2113
529
  msgid "API Key for Thumbshots.com thumbnail generation accounts"
530
  msgstr ""
531
 
532
+ #: link-library-admin.php:2112
533
  msgid "Thumbshots API Key"
534
  msgstr ""
535
 
536
+ #: link-library-admin.php:2120
537
  msgid "Robothumb Thumbnail size"
538
  msgstr ""
539
 
540
+ #: link-library-admin.php:2133
541
  msgid "Links Date Format"
542
  msgstr ""
543
 
544
+ #: link-library-admin.php:2133
545
  msgid "Help"
546
  msgstr ""
547
 
548
+ #: link-library-admin.php:2140 link-library-admin.php:2141
549
  msgid "Enter list of additional link protocols, seperated by commas"
550
  msgstr ""
551
 
552
+ #: link-library-admin.php:2140
553
  msgid "Additional protocols"
554
  msgstr ""
555
 
556
+ #: link-library-admin.php:2144
557
  msgid "Time before clearing RSS display cache (in seconds)"
558
  msgstr ""
559
 
560
+ #: link-library-admin.php:2151
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:2191
569
  msgid "Expand Icon Image"
570
  msgstr ""
571
 
572
+ #: link-library-admin.php:2198 link-library-admin.php:2199
573
  msgid "Custom full URL for collapse icon. Uses default image if left empty."
574
  msgstr ""
575
 
576
+ #: link-library-admin.php:2198
577
  msgid "Collapse Icon Image"
578
  msgstr ""
579
 
580
+ #: link-library-admin.php:2213
581
  msgid "Add new links to your site with this bookmarklet."
582
  msgstr ""
583
 
584
+ #: link-library-admin.php:2214
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:2215
591
  msgid "Add to Links"
592
  msgstr ""
593
 
594
+ #: link-library-admin.php:2228
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:2232
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:2238
612
  msgid "Link Acknowledgement URL"
613
  msgstr ""
614
 
615
+ #: link-library-admin.php:2244
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:2244
622
  msgid "Moderation Notification Title"
623
  msgstr ""
624
 
625
+ #: link-library-admin.php:2250
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:2250
632
  msgid "E-mail submitter on link approval or rejection"
633
  msgstr ""
634
 
635
+ #: link-library-admin.php:2257
636
  msgid "Suppress Link Library message in e-mail footer"
637
  msgstr ""
638
 
639
+ #: link-library-admin.php:2264
640
  msgid "Only use first part of submitter name"
641
  msgstr ""
642
 
643
+ #: link-library-admin.php:2271
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:2271
649
  msgid "Moderator Name"
650
  msgstr ""
651
 
652
+ #: link-library-admin.php:2277
653
  msgid "The e-mail address that the approval e-mail will be sent from"
654
  msgstr ""
655
 
656
+ #: link-library-admin.php:2277
657
  msgid "Moderator E-mail"
658
  msgstr ""
659
 
660
+ #: link-library-admin.php:2283
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:2283
667
  msgid "Approval e-mail title"
668
  msgstr ""
669
 
670
+ #: link-library-admin.php:2289
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:2289
678
  msgid "Approval e-mail body"
679
  msgstr ""
680
 
681
+ #: link-library-admin.php:2295
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:2295
688
  msgid "Rejection e-mail title"
689
  msgstr ""
690
 
691
+ #: link-library-admin.php:2301
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:2301
699
  msgid "Rejection e-mail body"
700
  msgstr ""
701
 
702
+ #: link-library-admin.php:2314
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
  "other elements."
709
  msgstr ""
710
 
711
+ #: link-library-admin.php:2317
712
  msgid "Hide Donation and Support Links"
713
  msgstr ""
714
 
715
+ #: link-library-admin.php:2331
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
716
  msgid "Save Settings"
717
  msgstr ""
718
 
719
+ #: link-library-admin.php:2340
720
  msgid "Update Settings"
721
  msgstr ""
722
 
723
+ #: link-library-admin.php:2351 link-library-admin.php:3029
724
+ #: link-library-admin.php:3323 link-library-admin.php:4121
725
+ #: usersubmission.php:295 usersubmission.php:377
726
  msgid "Link Name"
727
  msgstr ""
728
 
729
+ #: link-library-admin.php:2352 link-library-admin.php:4156
730
+ #: link-library-defaults.php:127 usersubmission.php:314 usersubmission.php:396
 
731
  msgid "Link Category"
732
  msgstr ""
733
 
734
+ #: link-library-admin.php:2353
735
  msgid "Link URL"
736
  msgstr ""
737
 
738
+ #: link-library-admin.php:2354 link-library-admin.php:3029
739
+ #: link-library-admin.php:3371 link-library-admin.php:4235
740
+ #: link-library-defaults.php:128 usersubmission.php:303 usersubmission.php:385
 
741
  msgid "Link Description"
742
  msgstr ""
743
 
744
+ #: link-library-admin.php:2403
745
  msgid "No Links Found to Moderate"
746
  msgstr ""
747
 
748
+ #: link-library-admin.php:2410
749
  msgid "Check All"
750
  msgstr ""
751
 
752
+ #: link-library-admin.php:2411
753
  msgid "Uncheck All"
754
  msgstr ""
755
 
756
+ #: link-library-admin.php:2413
757
  msgid "Approve Selected Items"
758
  msgstr ""
759
 
760
+ #: link-library-admin.php:2414
761
  msgid "Delete Selected Items"
762
  msgstr ""
763
 
764
+ #: link-library-admin.php:2437
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:2444
772
  msgid "Submit"
773
  msgstr ""
774
 
775
+ #: link-library-admin.php:2444
776
  msgid "Reset to default"
777
  msgstr ""
778
 
779
+ #: link-library-admin.php:2455
780
  msgid "Select Current Library Settings"
781
  msgstr ""
782
 
783
+ #: link-library-admin.php:2472
784
  msgid "Go"
785
  msgstr ""
786
 
787
+ #: link-library-admin.php:2474
788
  msgid "Copy from:"
789
  msgstr ""
790
 
791
+ #: link-library-admin.php:2489
792
  msgid "Copy"
793
  msgstr ""
794
 
795
+ #: link-library-admin.php:2503 link-library-admin.php:2506
796
+ #: link-library-admin.php:2510
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:2507
803
  msgid "Library Name"
804
  msgstr ""
805
 
806
+ #: link-library-admin.php:2509
807
  msgid "Feature"
808
  msgstr ""
809
 
810
+ #: link-library-admin.php:2511
811
  msgid "Code to insert on a Wordpress page"
812
  msgstr ""
813
 
814
+ #: link-library-admin.php:2518
815
  msgid "Display basic link library"
816
  msgstr ""
817
 
818
+ #: link-library-admin.php:2524
819
  msgid "Display list of link categories"
820
  msgstr ""
821
 
822
+ #: link-library-admin.php:2530
823
  msgid "Display search box"
824
  msgstr ""
825
 
826
+ #: link-library-admin.php:2536
827
  msgid "Display link submission form"
828
  msgstr ""
829
 
830
+ #: link-library-admin.php:2543
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:2543
838
  msgid "Delete Library"
839
  msgstr ""
840
 
841
+ #: link-library-admin.php:2544
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:2544
849
  msgid "Reset current Library"
850
  msgstr ""
851
 
852
+ #: link-library-admin.php:2545
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:2545
860
  msgid "Reset current Library for table layout"
861
  msgstr ""
862
 
863
+ #: link-library-admin.php:2564
 
 
 
 
864
  msgid "Current Library Name"
865
  msgstr ""
866
 
867
+ #: link-library-admin.php:2571 link-library-admin.php:2579
868
  msgid "Leave Empty to see all categories"
869
  msgstr ""
870
 
871
+ #: link-library-admin.php:2571 link-library-admin.php:2579
872
+ #: link-library-admin.php:2617 link-library-admin.php:2621
873
  msgid "Enter list of comma-separated"
874
  msgstr ""
875
 
876
+ #: link-library-admin.php:2571 link-library-admin.php:2579
877
  msgid "numeric category IDs"
878
  msgstr ""
879
 
880
+ #: link-library-admin.php:2571
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:2573
888
  msgid "Categories to be displayed (Empty=All)"
889
  msgstr ""
890
 
891
+ #: link-library-admin.php:2575
892
  msgid "Categories to be displayed"
893
  msgstr ""
894
 
895
+ #: link-library-admin.php:2579 link-library-admin.php:2617
896
+ #: link-library-admin.php:2621
897
  msgid "For example"
898
  msgstr ""
899
 
900
+ #: link-library-admin.php:2606 link-library-admin.php:2637
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:2617 link-library-admin.php:2621
909
  msgid "numeric category IDs that should not be shown"
910
  msgstr ""
911
 
912
+ #: link-library-admin.php:2618
913
  msgid "Categories to be excluded"
914
  msgstr ""
915
 
916
+ #: link-library-admin.php:2639
917
  msgid "No Exclusions"
918
  msgstr ""
919
 
920
+ #: link-library-admin.php:2648 link-library-admin.php:2651
921
  msgid "Only show one category of links at a time"
922
  msgstr ""
923
 
924
+ #: link-library-admin.php:2649
925
  msgid "Only show one category at a time"
926
  msgstr ""
927
 
928
+ #: link-library-admin.php:2656
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
  "correctly."
934
  msgstr ""
935
 
936
+ #: link-library-admin.php:2656
937
  msgid "Switching Method"
938
  msgstr ""
939
 
940
+ #: link-library-admin.php:2684
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:2689
946
+ msgid "Hide category on start in single cat AJAX mode"
947
  msgstr ""
948
 
949
+ #: link-library-admin.php:2696 link-library-admin.php:2699
950
  msgid "File path is relative to Link Library plugin directory"
951
  msgstr ""
952
 
953
+ #: link-library-admin.php:2697
954
  msgid "Icon to display when performing AJAX queries"
955
  msgstr ""
956
 
957
+ #: link-library-admin.php:2708 link-library-admin.php:2711
958
  msgid "Only show a limited number of links and add page navigation links"
959
  msgstr ""
960
 
961
+ #: link-library-admin.php:2709
962
  msgid "Paginate Results"
963
  msgstr ""
964
 
965
+ #: link-library-admin.php:2716 link-library-admin.php:2719
966
  msgid "Number of Links to be Displayed per Page in Pagination Mode"
967
  msgstr ""
968
 
969
+ #: link-library-admin.php:2717
970
  msgid "Links per Page"
971
  msgstr ""
972
 
973
+ #: link-library-admin.php:2725
974
  msgid "Pagination Position"
975
  msgstr ""
976
 
977
+ #: link-library-admin.php:2731
978
  msgid "After Links"
979
  msgstr ""
980
 
981
+ #: link-library-admin.php:2734 link-library-admin.php:2764
982
  msgid "Before Links"
983
  msgstr ""
984
 
985
+ #: link-library-admin.php:2738
986
  msgid "Hide Results if Empty"
987
  msgstr ""
988
 
989
+ #: link-library-admin.php:2748
990
  msgid "Enable Permalinks"
991
  msgstr ""
992
 
993
+ #: link-library-admin.php:2756
994
  msgid "Permalinks Page"
995
  msgstr ""
996
 
997
+ #: link-library-admin.php:2763
 
 
 
 
 
 
 
 
 
 
 
 
998
  msgid "Display alphabetic cat filter"
999
  msgstr ""
1000
 
1001
+ #: link-library-admin.php:2764
1002
  msgid "Do not display"
1003
  msgstr ""
1004
 
1005
+ #: link-library-admin.php:2764
1006
  msgid "Before Categories"
1007
  msgstr ""
1008
 
1009
+ #: link-library-admin.php:2764
1010
  msgid "Before Categories and Links"
1011
  msgstr ""
1012
 
1013
+ #: link-library-admin.php:2771
1014
  msgid "Auto-select first alphabetic cat item"
1015
  msgstr ""
1016
 
1017
+ #: link-library-admin.php:2775
1018
  msgid "Display ALL box in alphabetic cat filter"
1019
  msgstr ""
1020
 
1021
+ #: link-library-admin.php:2777
1022
  msgid "Cat filter label"
1023
  msgstr ""
1024
 
1025
+ #: link-library-admin.php:2781
1026
  msgid "Only display links submitted by current user"
1027
  msgstr ""
1028
 
1029
+ #: link-library-admin.php:2826
1030
  msgid "Results Order"
1031
  msgstr ""
1032
 
1033
+ #: link-library-admin.php:2832 link-library-admin.php:2989
1034
  msgid "Order by Name"
1035
  msgstr ""
1036
 
1037
+ #: link-library-admin.php:2835 link-library-admin.php:2990
1038
  msgid "Order by ID"
1039
  msgstr ""
1040
 
1041
+ #: link-library-admin.php:2839
1042
  msgid "Order of categories based on included category list"
1043
  msgstr ""
1044
 
1045
+ #: link-library-admin.php:2843
1046
  msgid "Order by"
1047
  msgstr ""
1048
 
1049
+ #: link-library-admin.php:2843 link-library-admin.php:2991
1050
  msgid "Wordpress Plugin"
1051
  msgstr ""
1052
 
1053
+ #: link-library-admin.php:2848
1054
  msgid "Link Categories Display Format"
1055
  msgstr ""
1056
 
1057
+ #: link-library-admin.php:2852 link-library-admin.php:3072
1058
  msgid "Table"
1059
  msgstr ""
1060
 
1061
+ #: link-library-admin.php:2853 link-library-admin.php:3073
1062
  msgid "Unordered List"
1063
  msgstr ""
1064
 
1065
+ #: link-library-admin.php:2854
1066
  msgid "Drop-Down List"
1067
  msgstr ""
1068
 
1069
+ #: link-library-admin.php:2855
1070
  msgid "Drop-Down List Direct Access"
1071
  msgstr ""
1072
 
1073
+ #: link-library-admin.php:2861
1074
  msgid "Display link counts"
1075
  msgstr ""
1076
 
1077
+ #: link-library-admin.php:2867
1078
  msgid "Display categories with search results"
1079
  msgstr ""
1080
 
1081
+ #: link-library-admin.php:2872 link-library-admin.php:2875
1082
  msgid "This setting does not apply when selecting My Link Order for the order"
1083
  msgstr ""
1084
 
1085
+ #: link-library-admin.php:2873 link-library-admin.php:3043
1086
  msgid "Direction"
1087
  msgstr ""
1088
 
1089
+ #: link-library-admin.php:2877 link-library-admin.php:3047
1090
  msgid "Ascending"
1091
  msgstr ""
1092
 
1093
+ #: link-library-admin.php:2878 link-library-admin.php:3048
1094
  msgid "Descending"
1095
  msgstr ""
1096
 
1097
+ #: link-library-admin.php:2882 link-library-admin.php:2885
1098
+ #: link-library-admin.php:2997 link-library-admin.php:3000
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:2883 link-library-admin.php:2998
1105
  msgid "Show Category Description"
1106
  msgstr ""
1107
 
1108
+ #: link-library-admin.php:2887 link-library-admin.php:3004
1109
  msgid "Position"
1110
  msgstr ""
1111
 
1112
+ #: link-library-admin.php:2889 link-library-admin.php:3006
1113
  msgid "Right"
1114
  msgstr ""
1115
 
1116
+ #: link-library-admin.php:2890 link-library-admin.php:3007
1117
  msgid "Left"
1118
  msgstr ""
1119
 
1120
+ #: link-library-admin.php:2896
1121
  msgid "Width of Categories Table in Percents"
1122
  msgstr ""
1123
 
1124
+ #: link-library-admin.php:2902 link-library-admin.php:2905
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:2902 link-library-admin.php:2905
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:2903
1137
  msgid "Number of alternating div classes"
1138
  msgstr ""
1139
 
1140
+ #: link-library-admin.php:2918
1141
  msgid "Number of columns in Categories Table"
1142
  msgstr ""
1143
 
1144
+ #: link-library-admin.php:2925
1145
  msgid "First div class name"
1146
  msgstr ""
1147
 
1148
+ #: link-library-admin.php:2933
1149
  msgid "Use Div Class or Heading tag around Category Names"
1150
  msgstr ""
1151
 
1152
+ #: link-library-admin.php:2937
1153
  msgid "Div Class"
1154
  msgstr ""
1155
 
1156
+ #: link-library-admin.php:2938
1157
  msgid "Heading Tag"
1158
  msgstr ""
1159
 
1160
+ #: link-library-admin.php:2943
1161
  msgid "Second div class name"
1162
  msgstr ""
1163
 
1164
+ #: link-library-admin.php:2950 link-library-admin.php:2953
1165
  msgid "Example div class name: linklistcatname, Example Heading Label: h3"
1166
  msgstr ""
1167
 
1168
+ #: link-library-admin.php:2951
1169
  msgid "Div Class Name or Heading label"
1170
  msgstr ""
1171
 
1172
+ #: link-library-admin.php:2958
1173
  msgid "Third div class name"
1174
  msgstr ""
1175
 
1176
+ #: link-library-admin.php:2965 link-library-admin.php:2968
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:2966
1184
  msgid "Category Target Address"
1185
  msgstr ""
1186
 
1187
+ #: link-library-admin.php:2985
1188
  msgid "Link Results Order"
1189
  msgstr ""
1190
 
1191
+ #: link-library-admin.php:2991
1192
  msgid "Order set by "
1193
  msgstr ""
1194
 
1195
+ #: link-library-admin.php:2992
1196
  msgid "Order randomly"
1197
  msgstr ""
1198
 
1199
+ #: link-library-admin.php:2993
1200
  msgid "Order by updated date"
1201
  msgstr ""
1202
 
1203
+ #: link-library-admin.php:3012
 
 
 
 
 
 
 
 
1204
  msgid "List Featured Links ahead of Regular Links"
1205
  msgstr ""
1206
 
1207
+ #: link-library-admin.php:3016
1208
  msgid "Show Expand Link button and hide links"
1209
  msgstr ""
1210
 
1211
+ #: link-library-admin.php:3021
1212
  msgid "Combine all results without categories"
1213
  msgstr ""
1214
 
1215
+ #: link-library-admin.php:3025
1216
  msgid "Link Title Content"
1217
  msgstr ""
1218
 
1219
+ #: link-library-admin.php:3042 link-library-admin.php:3045
1220
  msgid "Except for My Link Order mode"
1221
  msgstr ""
1222
 
1223
+ #: link-library-admin.php:3052 link-library-admin.php:3055
1224
  msgid "Leave empty to show all results"
1225
  msgstr ""
1226
 
1227
+ #: link-library-admin.php:3053
1228
  msgid "Max number of links to display"
1229
  msgstr ""
1230
 
1231
+ #: link-library-admin.php:3060 link-library-admin.php:3063
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:3061
1238
  msgid "Link Target"
1239
  msgstr ""
1240
 
1241
+ #: link-library-admin.php:3068
1242
  msgid "Link Display Format"
1243
  msgstr ""
1244
 
1245
+ #: link-library-admin.php:3079
1246
  msgid "Show Column Headers"
1247
  msgstr ""
1248
 
1249
+ #: link-library-admin.php:3086
1250
+ msgid "Link Column Header"
1251
  msgstr ""
1252
 
1253
+ #: link-library-admin.php:3094
1254
+ msgid "Description Column Header"
1255
  msgstr ""
1256
 
1257
+ #: link-library-admin.php:3101
1258
+ msgid "Notes Column Header"
1259
  msgstr ""
1260
 
1261
+ #: link-library-admin.php:3109
1262
  msgid "Hide Category Names"
1263
  msgstr ""
1264
 
1265
+ #: link-library-admin.php:3116
1266
  msgid "Show Hidden Links"
1267
  msgstr ""
1268
 
1269
+ #: link-library-admin.php:3123 link-library-admin.php:3126
 
 
 
 
 
 
 
 
 
 
 
 
1270
  msgid "Need to be active for Link Categories to work"
1271
  msgstr ""
1272
 
1273
+ #: link-library-admin.php:3124
1274
  msgid "Embed HTML anchors"
1275
  msgstr ""
1276
 
1277
+ #: link-library-admin.php:3131
1278
  msgid "Show Hidden Links to Admins/Editors"
1279
  msgstr ""
1280
 
1281
+ #: link-library-admin.php:3148
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:3171 link-library-admin.php:3293
1288
+ msgid "Image"
1289
+ msgstr ""
1290
+
1291
+ #: link-library-admin.php:3175
1292
  msgid "Name"
1293
  msgstr ""
1294
 
1295
+ #: link-library-admin.php:3179
1296
  msgid "Date"
1297
  msgstr ""
1298
 
1299
+ #: link-library-admin.php:3183
1300
  msgid "Desc"
1301
  msgstr ""
1302
 
1303
+ #: link-library-admin.php:3187
 
1304
  msgid "Notes"
1305
  msgstr ""
1306
 
1307
+ #: link-library-admin.php:3191
1308
  msgid "RSS"
1309
  msgstr ""
1310
 
1311
+ #: link-library-admin.php:3195 link-library-admin.php:3470
1312
+ msgid "Link"
 
1313
  msgstr ""
1314
 
1315
+ #: link-library-admin.php:3199
1316
  msgid "Phone"
1317
  msgstr ""
1318
 
1319
+ #: link-library-admin.php:3203 link-library-admin.php:3500
1320
+ #: link-library-admin.php:4327 link-library-admin.php:4663
1321
+ #: link-library-defaults.php:176 render-link-library-addlink-sc.php:443
 
1322
  msgid "E-mail"
1323
  msgstr ""
1324
 
1325
+ #: link-library-admin.php:3207
1326
  msgid "Hits"
1327
  msgstr ""
1328
 
1329
+ #: link-library-admin.php:3211
 
1330
  msgid "Rating"
1331
  msgstr ""
1332
 
1333
+ #: link-library-admin.php:3215
1334
  msgid "Large Desc"
1335
  msgstr ""
1336
 
1337
+ #: link-library-admin.php:3219 link-library-admin.php:3597
1338
+ #: link-library-admin.php:4343 link-library-defaults.php:188
1339
+ #: render-link-library-addlink-sc.php:461
 
1340
  msgid "Submitter Name"
1341
  msgstr ""
1342
 
1343
+ #: link-library-admin.php:3223
1344
  msgid "Cat Desc"
1345
  msgstr ""
1346
 
1347
+ #: link-library-admin.php:3235
 
 
 
 
 
 
 
 
 
1348
  msgid "Display"
1349
  msgstr ""
1350
 
1351
+ #: link-library-admin.php:3236
1352
  msgid "Before"
1353
  msgstr ""
1354
 
1355
+ #: link-library-admin.php:3237
1356
  msgid "After"
1357
  msgstr ""
1358
 
1359
+ #: link-library-admin.php:3238
1360
  msgid "Additional Details"
1361
  msgstr ""
1362
 
1363
+ #: link-library-admin.php:3239
1364
  msgid "Link Source"
1365
  msgstr ""
1366
 
1367
+ #: link-library-admin.php:3242
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:3242
1374
  msgid "Before first link"
1375
  msgstr ""
1376
 
1377
+ #: link-library-admin.php:3244
1378
  msgid "Output of text/code before the first link in each category"
1379
  msgstr ""
1380
 
1381
+ #: link-library-admin.php:3250
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:3250
1388
  msgid "Intermittent Before Link"
1389
  msgstr ""
1390
 
1391
+ #: link-library-admin.php:3251
1392
  msgid "Frequency of additional output before and after complete link group"
1393
  msgstr ""
1394
 
1395
+ #: link-library-admin.php:3254 link-library-admin.php:3264
1396
  msgid "Output before complete link group (link, notes, desc, etc...)"
1397
  msgstr ""
1398
 
1399
+ #: link-library-admin.php:3262
1400
  msgid "This column allows for the output of text/code before each link"
1401
  msgstr ""
1402
 
1403
+ #: link-library-admin.php:3262
1404
  msgid "Before Link"
1405
  msgstr ""
1406
 
1407
+ #: link-library-admin.php:3293
1408
  msgid "This column allows for the output of text/code before each link image"
1409
  msgstr ""
1410
 
1411
+ #: link-library-admin.php:3299
1412
  msgid "Code/Text to be displayed before each link image"
1413
  msgstr ""
1414
 
1415
+ #: link-library-admin.php:3302
1416
  msgid "Code/Text to be displayed after each link image"
1417
  msgstr ""
1418
 
1419
+ #: link-library-admin.php:3305
1420
  msgid "CSS Class to be assigned to link image"
1421
  msgstr ""
1422
 
1423
+ #: link-library-admin.php:3312 link-library-admin.php:3343
1424
+ #: link-library-admin.php:3448 link-library-admin.php:3489
1425
  msgid "Primary"
1426
  msgstr ""
1427
 
1428
+ #: link-library-admin.php:3315 link-library-admin.php:3344
1429
+ #: link-library-admin.php:3451 link-library-admin.php:3492
1430
  msgid "Secondary"
1431
  msgstr ""
1432
 
1433
+ #: link-library-admin.php:3323
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:3329
1440
  msgid "Code/Text to be displayed before each link"
1441
  msgstr ""
1442
 
1443
+ #: link-library-admin.php:3332
1444
  msgid "Code/Text to be displayed after each link"
1445
  msgstr ""
1446
 
1447
+ #: link-library-admin.php:3337
1448
  msgid "No Tooltip"
1449
  msgstr ""
1450
 
1451
+ #: link-library-admin.php:3338
 
1452
  msgid "Description"
1453
  msgstr ""
1454
 
1455
+ #: link-library-admin.php:3352
 
 
 
 
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:3352
1462
  msgid "Link Date"
1463
  msgstr ""
1464
 
1465
+ #: link-library-admin.php:3353
1466
  msgid "Check to display link date"
1467
  msgstr ""
1468
 
1469
+ #: link-library-admin.php:3358
1470
  msgid "Code/Text to be displayed before each date"
1471
  msgstr ""
1472
 
1473
+ #: link-library-admin.php:3361
1474
  msgid "Code/Text to be displayed after each date"
1475
  msgstr ""
1476
 
1477
+ #: link-library-admin.php:3371
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:3372
1484
  msgid "Check to display link descriptions"
1485
  msgstr ""
1486
 
1487
+ #: link-library-admin.php:3377
1488
  msgid "Code/Text to be displayed before each description"
1489
  msgstr ""
1490
 
1491
+ #: link-library-admin.php:3380
1492
  msgid "Code/Text to be displayed after each description"
1493
  msgstr ""
1494
 
1495
+ #: link-library-admin.php:3390
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:3390 link-library-admin.php:4250
1502
+ #: link-library-defaults.php:129 usersubmission.php:311 usersubmission.php:393
 
1503
  msgid "Link Notes"
1504
  msgstr ""
1505
 
1506
+ #: link-library-admin.php:3391
1507
  msgid "Check to display link notes"
1508
  msgstr ""
1509
 
1510
+ #: link-library-admin.php:3396
1511
  msgid "Code/Text to be displayed before each note"
1512
  msgstr ""
1513
 
1514
+ #: link-library-admin.php:3399
1515
  msgid "Code/Text to be displayed after each note"
1516
  msgstr ""
1517
 
1518
+ #: link-library-admin.php:3409
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:3409
1524
  msgid "RSS Icons"
1525
  msgstr ""
1526
 
1527
+ #: link-library-admin.php:3411
1528
  msgid "See below"
1529
  msgstr ""
1530
 
1531
+ #: link-library-admin.php:3413
1532
  msgid "Code/Text to be displayed before RSS Icons"
1533
  msgstr ""
1534
 
1535
+ #: link-library-admin.php:3416
1536
  msgid "Code/Text to be displayed after RSS Icons"
1537
  msgstr ""
1538
 
1539
+ #: link-library-admin.php:3426
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:3426
1545
+ msgid "Web Link"
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:3430
1554
  msgid "Web Address"
1555
  msgstr ""
1556
 
1557
+ #: link-library-admin.php:3431
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:3435
1566
  msgid "Code/Text to be displayed before Web Link"
1567
  msgstr ""
1568
 
1569
+ #: link-library-admin.php:3438
1570
  msgid "Code/Text to be displayed after Web Link"
1571
  msgstr ""
1572
 
1573
+ #: link-library-admin.php:3441
1574
  msgid "Text Label that the web link will be assigned to."
1575
  msgstr ""
1576
 
1577
+ #: link-library-admin.php:3444 link-library-admin.php:3485
1578
  msgid "Select which link address will be displayed / used for link"
1579
  msgstr ""
1580
 
1581
+ #: link-library-admin.php:3459
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:3459 link-library-admin.php:4312
1588
+ #: link-library-admin.php:4657 link-library-defaults.php:174
1589
+ #: render-link-library-addlink-sc.php:425
1590
  msgid "Telephone"
1591
  msgstr ""
1592
 
1593
+ #: link-library-admin.php:3467 link-library-admin.php:3508
1594
  msgid "Plain Text"
1595
  msgstr ""
1596
 
1597
+ #: link-library-admin.php:3476
 
 
 
 
1598
  msgid "Code/Text to be displayed before Telephone Number"
1599
  msgstr ""
1600
 
1601
+ #: link-library-admin.php:3479
1602
  msgid "Code/Text to be displayed after Telephone Number"
1603
  msgstr ""
1604
 
1605
+ #: link-library-admin.php:3482
1606
  msgid "Text Label that the telephone will be assigned to."
1607
  msgstr ""
1608
 
1609
+ #: link-library-admin.php:3500
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:3511
1615
  msgid "MailTo Link"
1616
  msgstr ""
1617
 
1618
+ #: link-library-admin.php:3514
1619
  msgid "MailTo Link with Label"
1620
  msgstr ""
1621
 
1622
+ #: link-library-admin.php:3517
1623
  msgid "Formatted Command"
1624
  msgstr ""
1625
 
1626
+ #: link-library-admin.php:3520
1627
  msgid "Formatted Command with Labels"
1628
  msgstr ""
1629
 
1630
+ #: link-library-admin.php:3523
1631
  msgid "Code/Text to be displayed before E-mail"
1632
  msgstr ""
1633
 
1634
+ #: link-library-admin.php:3526
1635
  msgid "Code/Text to be displayed after E-mail"
1636
  msgstr ""
1637
 
1638
+ #: link-library-admin.php:3529
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:3532
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:3540
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:3540
1656
  msgid "Link Hits"
1657
  msgstr ""
1658
 
1659
+ #: link-library-admin.php:3546
1660
  msgid "Code/Text to be displayed before Link Hits"
1661
  msgstr ""
1662
 
1663
+ #: link-library-admin.php:3549
1664
  msgid "Code/Text to be displayed after Link Hits"
1665
  msgstr ""
1666
 
1667
+ #: link-library-admin.php:3559
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:3559
1674
  msgid "Link Rating"
1675
  msgstr ""
1676
 
1677
+ #: link-library-admin.php:3565
1678
  msgid "Code/Text to be displayed before Link Rating"
1679
  msgstr ""
1680
 
1681
+ #: link-library-admin.php:3568
1682
  msgid "Code/Text to be displayed after Link Rating"
1683
  msgstr ""
1684
 
1685
+ #: link-library-admin.php:3578 link-library-admin.php:3597
1686
+ #: link-library-admin.php:3614
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:3578 link-library-admin.php:4700
1693
+ #: usersubmission.php:307 usersubmission.php:389
1694
  msgid "Link Large Description"
1695
  msgstr ""
1696
 
1697
+ #: link-library-admin.php:3584 link-library-admin.php:3601
1698
+ #: link-library-admin.php:3618
1699
  msgid "Code/Text to be displayed before Link Large Description"
1700
  msgstr ""
1701
 
1702
+ #: link-library-admin.php:3587 link-library-admin.php:3604
1703
+ #: link-library-admin.php:3621
1704
  msgid "Code/Text to be displayed after Link Large Description"
1705
  msgstr ""
1706
 
1707
+ #: link-library-admin.php:3614
1708
  msgid "Category Description"
1709
  msgstr ""
1710
 
1711
+ #: link-library-admin.php:3633
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1712
  msgid "This column allows for the output of text/code after each link"
1713
  msgstr ""
1714
 
1715
+ #: link-library-admin.php:3633
1716
  msgid "After Link Block"
1717
  msgstr ""
1718
 
1719
+ #: link-library-admin.php:3636
1720
  msgid "Output after complete link group (link, notes, desc, etc...)"
1721
  msgstr ""
1722
 
1723
+ #: link-library-admin.php:3643
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:3643
1730
  msgid "Intermittent After Link"
1731
  msgstr ""
1732
 
1733
+ #: link-library-admin.php:3653
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:3653
1740
  msgid "After last link"
1741
  msgstr ""
1742
 
1743
+ #: link-library-admin.php:3666
1744
  msgid "Show Link Updated Flag"
1745
  msgstr ""
1746
 
1747
+ #: link-library-admin.php:3676
1748
  msgid "Convert [] to &lt;&gt; in Link Description and Notes"
1749
  msgstr ""
1750
 
1751
+ #: link-library-admin.php:3686
1752
  msgid "Add nofollow tag to outgoing links"
1753
  msgstr ""
1754
 
1755
+ #: link-library-admin.php:3693
1756
  msgid "Show edit links when logged in as editor or administrator"
1757
  msgstr ""
1758
 
1759
+ #: link-library-admin.php:3701
1760
  msgid "Show link name when no image is assigned"
1761
  msgstr ""
1762
 
1763
+ #: link-library-admin.php:3708
1764
  msgid "Do not output fields with no value"
1765
  msgstr ""
1766
 
1767
+ #: link-library-admin.php:3726
1768
  msgid "Enable link Pop-Ups"
1769
  msgstr ""
1770
 
1771
+ #: link-library-admin.php:3730
1772
  msgid "Pop-Up Width"
1773
  msgstr ""
1774
 
1775
+ #: link-library-admin.php:3737
1776
  msgid "Pop-Up Height"
1777
  msgstr ""
1778
 
1779
+ #: link-library-admin.php:3746
1780
  msgid "Dialog contents"
1781
  msgstr ""
1782
 
1783
+ #: link-library-admin.php:3764
1784
  msgid "Show RSS Link using Text"
1785
  msgstr ""
1786
 
1787
+ #: link-library-admin.php:3772
1788
  msgid "Show RSS Link using Standard Icon"
1789
  msgstr ""
1790
 
1791
+ #: link-library-admin.php:3784
1792
  msgid "Show RSS Preview Link"
1793
  msgstr ""
1794
 
1795
+ #: link-library-admin.php:3790
1796
  msgid "Number of articles shown in RSS Preview"
1797
  msgstr ""
1798
 
1799
+ #: link-library-admin.php:3796
1800
  msgid "Show RSS Feed Headers in Link Library output"
1801
  msgstr ""
1802
 
1803
+ #: link-library-admin.php:3804
1804
  msgid "Show RSS Feed Content in Link Library output"
1805
  msgstr ""
1806
 
1807
+ #: link-library-admin.php:3810
1808
  msgid "Number of RSS articles shown in Link Library Output"
1809
  msgstr ""
1810
 
1811
+ #: link-library-admin.php:3815
1812
  msgid "Max number of days since published"
1813
  msgstr ""
1814
 
1815
+ #: link-library-admin.php:3819
1816
  msgid "RSS Preview Width"
1817
  msgstr ""
1818
 
1819
+ #: link-library-admin.php:3822
1820
  msgid "RSS Preview Height"
1821
  msgstr ""
1822
 
1823
+ #: link-library-admin.php:3825
1824
  msgid "Skip links with no RSS inline items"
1825
  msgstr ""
1826
 
1827
+ #: link-library-admin.php:3842
1828
  msgid ""
1829
  "Checking this option will get images from the Robothumb web site every time"
1830
  msgstr ""
1831
 
1832
+ #: link-library-admin.php:3843
1833
  msgid "Use thumbnail service for dynamic link images"
1834
  msgstr ""
1835
 
1836
+ #: link-library-admin.php:3845
1837
  msgid ""
1838
  "Checking this option will get images from the thumbshots web site every time"
1839
  msgstr ""
1840
 
1841
+ #: link-library-admin.php:3853
1842
  msgid "Give priority to images assigned to links if present"
1843
  msgstr ""
1844
 
1845
+ #: link-library-admin.php:3861
1846
  msgid "Generate Images / Favorite Icons"
1847
  msgstr ""
1848
 
1849
+ #: link-library-admin.php:3863 link-library-admin.php:4727
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:3864
1856
  msgid "Generate Thumbnails and Store locally"
1857
  msgstr ""
1858
 
1859
+ #: link-library-admin.php:3867
1860
  msgid "Generate Favorite Icons and Store locally"
1861
  msgstr ""
1862
 
1863
+ #: link-library-admin.php:3871
1864
  msgid "Delete all local thumbnails and icons"
1865
  msgstr ""
1866
 
1867
+ #: link-library-admin.php:3872
1868
  msgid "Delete all local thumbnails"
1869
  msgstr ""
1870
 
1871
+ #: link-library-admin.php:3873
1872
  msgid "Delete all local icons"
1873
  msgstr ""
1874
 
1875
+ #: link-library-admin.php:3889
1876
  msgid "Publish RSS Feed"
1877
  msgstr ""
1878
 
1879
+ #: link-library-admin.php:3896
1880
  msgid "Number of items in RSS feed"
1881
  msgstr ""
1882
 
1883
+ #: link-library-admin.php:3905
1884
  msgid "RSS Feed Title"
1885
  msgstr ""
1886
 
1887
+ #: link-library-admin.php:3911
1888
  msgid "RSS Feed Description"
1889
  msgstr ""
1890
 
1891
+ #: link-library-admin.php:3917
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:3934
1898
  msgid "Search Label"
1899
  msgstr ""
1900
 
1901
+ #: link-library-admin.php:3943
1902
  msgid "Search Field Initial Text"
1903
  msgstr ""
1904
 
1905
+ #: link-library-admin.php:3952
1906
  msgid "Search No Results Text"
1907
  msgstr ""
1908
 
1909
+ #: link-library-admin.php:3954 link-library-defaults.php:226
1910
  msgid "No links found matching your search criteria"
1911
  msgstr ""
1912
 
1913
+ #: link-library-admin.php:3961 link-library-admin.php:3962
1914
  msgid "Leave empty when links are to be displayed on same page as search box"
1915
  msgstr ""
1916
 
1917
+ #: link-library-admin.php:3961
1918
  msgid "Results Page Address"
1919
  msgstr ""
1920
 
1921
+ #: link-library-admin.php:4062
1922
  msgid "Following this link shows a list of all links awaiting moderation"
1923
  msgstr ""
1924
 
1925
+ #: link-library-admin.php:4063
1926
  msgid "View list of links awaiting moderation"
1927
  msgstr ""
1928
 
1929
+ #: link-library-admin.php:4067
1930
  msgid "Show user links immediately"
1931
  msgstr ""
1932
 
1933
+ #: link-library-admin.php:4072
1934
  msgid "E-mail admin on link submission"
1935
  msgstr ""
1936
 
1937
+ #: link-library-admin.php:4078
1938
  msgid "Validate links with Akismet"
1939
  msgstr ""
1940
 
1941
+ #: link-library-admin.php:4082
1942
  msgid "E-mail submitter"
1943
  msgstr ""
1944
 
1945
+ #: link-library-admin.php:4088
 
 
 
 
1946
  msgid "Require login to display form"
1947
  msgstr ""
1948
 
1949
+ #: link-library-admin.php:4093
1950
  msgid "Allow link submission with empty link"
1951
  msgstr ""
1952
 
1953
+ #: link-library-admin.php:4099
1954
  msgid "Display captcha"
1955
  msgstr ""
1956
 
1957
+ #: link-library-admin.php:4104
1958
  msgid ""
1959
  "This function will only store data when users are logged in to Wordpress"
1960
  msgstr ""
1961
 
1962
+ #: link-library-admin.php:4104
1963
  msgid "Store login name on link submission"
1964
  msgstr ""
1965
 
1966
+ #: link-library-admin.php:4110
1967
  msgid "Add new link label"
1968
  msgstr ""
1969
 
1970
+ #: link-library-admin.php:4112 link-library-defaults.php:123
1971
+ #: render-link-library-addlink-sc.php:206
1972
  msgid "Add new link"
1973
  msgstr ""
1974
 
1975
+ #: link-library-admin.php:4119
1976
  msgid "Link name label"
1977
  msgstr ""
1978
 
1979
+ #: link-library-admin.php:4129
1980
  msgid "Link address label"
1981
  msgstr ""
1982
 
1983
+ #: link-library-admin.php:4131 usersubmission.php:296 usersubmission.php:378
 
1984
  msgid "Link Address"
1985
  msgstr ""
1986
 
1987
+ #: link-library-admin.php:4138
1988
  msgid "Link RSS label"
1989
  msgstr ""
1990
 
1991
+ #: link-library-admin.php:4140 link-library-defaults.php:126
1992
+ #: render-link-library-addlink-sc.php:232 usersubmission.php:299
1993
+ #: usersubmission.php:381
1994
  msgid "Link RSS"
1995
  msgstr ""
1996
 
1997
+ #: link-library-admin.php:4147 link-library-admin.php:4163
1998
+ #: link-library-admin.php:4242 link-library-admin.php:4257
1999
+ #: link-library-admin.php:4288 link-library-admin.php:4303
2000
+ #: link-library-admin.php:4319 link-library-admin.php:4334
2001
+ #: link-library-admin.php:4350 link-library-admin.php:4365
2002
+ #: link-library-admin.php:4381 link-library-admin.php:4396
2003
+ #: link-library-admin.php:4412
2004
  msgid "Hide"
2005
  msgstr ""
2006
 
2007
+ #: link-library-admin.php:4148 link-library-admin.php:4164
2008
+ #: link-library-admin.php:4243 link-library-admin.php:4258
2009
+ #: link-library-admin.php:4289 link-library-admin.php:4304
2010
+ #: link-library-admin.php:4320 link-library-admin.php:4335
2011
+ #: link-library-admin.php:4351 link-library-admin.php:4366
2012
+ #: link-library-admin.php:4382 link-library-admin.php:4397
2013
+ #: link-library-admin.php:4413
2014
  msgid "Show"
2015
  msgstr ""
2016
 
2017
+ #: link-library-admin.php:4149 link-library-admin.php:4244
2018
+ #: link-library-admin.php:4259 link-library-admin.php:4290
2019
+ #: link-library-admin.php:4305 link-library-admin.php:4321
2020
+ #: link-library-admin.php:4336 link-library-admin.php:4352
2021
+ #: link-library-admin.php:4367 link-library-admin.php:4383
2022
+ #: link-library-admin.php:4398
2023
  msgid "Required"
2024
  msgstr ""
2025
 
2026
+ #: link-library-admin.php:4154
2027
  msgid "Link category label"
2028
  msgstr ""
2029
 
2030
+ #: link-library-admin.php:4168
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:4168
2038
  msgid "Link category override selection list"
2039
  msgstr ""
2040
 
2041
+ #: link-library-admin.php:4169
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:4174
2048
  msgid "Default category"
2049
  msgstr ""
2050
 
2051
+ #: link-library-admin.php:4209 link-library-admin.php:4211
2052
+ #: link-library-defaults.php:154
2053
  msgid "User-submitted category"
2054
  msgstr ""
2055
 
2056
+ #: link-library-admin.php:4218
2057
  msgid "No"
2058
  msgstr ""
2059
 
2060
+ #: link-library-admin.php:4219
2061
  msgid "Allow"
2062
  msgstr ""
2063
 
2064
+ #: link-library-admin.php:4223
2065
  msgid "User-submitted category prompt"
2066
  msgstr ""
2067
 
2068
+ #: link-library-admin.php:4225 link-library-defaults.php:155
2069
+ #: render-link-library-addlink-sc.php:286
2070
  msgid "User-submitted category (define below)"
2071
  msgstr ""
2072
 
2073
+ #: link-library-admin.php:4233
2074
  msgid "Link description label"
2075
  msgstr ""
2076
 
2077
+ #: link-library-admin.php:4248
2078
  msgid "Link notes label"
2079
  msgstr ""
2080
 
2081
+ #: link-library-admin.php:4264 link-library-admin.php:4265
2082
  msgid "Reciprocal link must be configured for this option to work correctly"
2083
  msgstr ""
2084
 
2085
+ #: link-library-admin.php:4264
2086
  msgid "Show immediately if reciprocal link valid"
2087
  msgstr ""
2088
 
2089
+ #: link-library-admin.php:4268
2090
  msgid "Use Text Area for Notes"
2091
  msgstr ""
2092
 
2093
+ #: link-library-admin.php:4273
2094
  msgid "Only allow one reciprocal link per domain"
2095
  msgstr ""
2096
 
2097
+ #: link-library-admin.php:4279
2098
  msgid "Reciprocal Link label"
2099
  msgstr ""
2100
 
2101
+ #: link-library-admin.php:4281 link-library-admin.php:4669
2102
+ #: link-library-defaults.php:170 render-link-library-addlink-sc.php:389
2103
+ #: usersubmission.php:317 usersubmission.php:399
2104
  msgid "Reciprocal Link"
2105
  msgstr ""
2106
 
2107
+ #: link-library-admin.php:4294
2108
  msgid "Secondary Address label"
2109
  msgstr ""
2110
 
2111
+ #: link-library-admin.php:4296 link-library-defaults.php:172
2112
+ #: render-link-library-addlink-sc.php:407
2113
  msgid "Secondary Address"
2114
  msgstr ""
2115
 
2116
+ #: link-library-admin.php:4310
2117
  msgid "Link Telephone label"
2118
  msgstr ""
2119
 
2120
+ #: link-library-admin.php:4325
2121
  msgid "Link E-mail label"
2122
  msgstr ""
2123
 
2124
+ #: link-library-admin.php:4341
2125
  msgid "Link Submitter Name label"
2126
  msgstr ""
2127
 
2128
+ #: link-library-admin.php:4356
2129
  msgid "Link Submitter E-mail label"
2130
  msgstr ""
2131
 
2132
+ #: link-library-admin.php:4358 link-library-defaults.php:190
2133
+ #: render-link-library-addlink-sc.php:492
2134
  msgid "Submitter E-mail"
2135
  msgstr ""
2136
 
2137
+ #: link-library-admin.php:4372
2138
  msgid "Link Submitter Comment Label"
2139
  msgstr ""
2140
 
2141
+ #: link-library-admin.php:4374 link-library-defaults.php:192
2142
+ #: render-link-library-addlink-sc.php:523
2143
  msgid "Submitter Comment"
2144
  msgstr ""
2145
 
2146
+ #: link-library-admin.php:4387
2147
  msgid "Large Description Label"
2148
  msgstr ""
2149
 
2150
+ #: link-library-admin.php:4389 link-library-defaults.php:205
 
2151
  msgid "Large Description"
2152
  msgstr ""
2153
 
2154
+ #: link-library-admin.php:4403
2155
  msgid "Custom Captcha Question"
2156
  msgstr ""
2157
 
2158
+ #: link-library-admin.php:4405 link-library-defaults.php:199
2159
+ #: render-link-library-addlink-sc.php:541
2160
  msgid "Is boiling water hot or cold?"
2161
  msgstr ""
2162
 
2163
+ #: link-library-admin.php:4417
2164
  msgid "Custom Captcha Answer"
2165
  msgstr ""
2166
 
2167
+ #: link-library-admin.php:4419 link-library-defaults.php:200
2168
  msgid "hot"
2169
  msgstr ""
2170
 
2171
+ #: link-library-admin.php:4426
2172
  msgid "Add Link button label"
2173
  msgstr ""
2174
 
2175
+ #: link-library-admin.php:4428 link-library-defaults.php:130
2176
  msgid "Add Link"
2177
  msgstr ""
2178
 
2179
+ #: link-library-admin.php:4435
2180
  msgid "New Link Message"
2181
  msgstr ""
2182
 
2183
+ #: link-library-admin.php:4437
2184
  msgid "New link submitted"
2185
  msgstr ""
2186
 
2187
+ #: link-library-admin.php:4444
2188
  msgid "New Link Moderation Label"
2189
  msgstr ""
2190
 
2191
+ #: link-library-admin.php:4446
2192
  msgid "it will appear in the list once moderated. Thank you."
2193
  msgstr ""
2194
 
2195
+ #: link-library-admin.php:4467
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:4467
2202
+ msgid "CSV file to upload to import links"
2203
  msgstr ""
2204
 
2205
+ #: link-library-admin.php:4467
2206
+ msgid "file template"
2207
  msgstr ""
2208
 
2209
+ #: link-library-admin.php:4470
2210
+ msgid "Import Links from CSV"
2211
  msgstr ""
2212
 
2213
+ #: link-library-admin.php:4474
2214
+ msgid "First row contains column headers"
2215
  msgstr ""
2216
 
2217
+ #: link-library-admin.php:4478 link-library-admin.php:4508
2218
+ msgid "Update items when URL is identical"
2219
  msgstr ""
2220
 
2221
+ #: link-library-admin.php:4486
2222
+ msgid "Import links from site pages"
2223
  msgstr ""
2224
 
2225
+ #: link-library-admin.php:4487
2226
+ msgid "All Pages and Posts"
2227
  msgstr ""
2228
 
2229
+ #: link-library-admin.php:4488
2230
+ msgid "All Pages, Posts and Custom Post Types"
2231
  msgstr ""
2232
 
2233
+ #: link-library-admin.php:4489
2234
+ msgid "Specific Page"
2235
  msgstr ""
2236
 
2237
+ #: link-library-admin.php:4493
2238
+ msgid "Specific Post"
2239
  msgstr ""
2240
 
2241
+ #: link-library-admin.php:4503
2242
+ msgid "Specific "
2243
  msgstr ""
2244
 
2245
+ #: link-library-admin.php:4538
2246
+ msgid "Import Links from Site"
2247
  msgstr ""
2248
 
2249
+ #: link-library-admin.php:4546
2250
+ msgid "Overwrites current library settings with contents of CSV file"
2251
  msgstr ""
2252
 
2253
+ #: link-library-admin.php:4546
2254
+ msgid "Library Settings CSV file to import"
2255
  msgstr ""
2256
 
2257
+ #: link-library-admin.php:4549
2258
+ msgid "Import Library Settings"
2259
  msgstr ""
2260
 
2261
+ #: link-library-admin.php:4553
2262
+ msgid "Generates CSV file with current library configuration for download"
2263
  msgstr ""
2264
 
2265
+ #: link-library-admin.php:4553
2266
+ msgid "Export current library settings"
2267
  msgstr ""
2268
 
2269
+ #: link-library-admin.php:4555
2270
+ msgid "Export Library Settings"
2271
  msgstr ""
2272
 
2273
+ #: link-library-admin.php:4568
2274
+ msgid "Search string"
2275
  msgstr ""
2276
 
2277
+ #: link-library-admin.php:4574
2278
+ msgid "Delete links that return a 403 error"
2279
  msgstr ""
2280
 
2281
+ #: link-library-admin.php:4582
2282
+ msgid "Check Reciprocal Links"
 
2283
  msgstr ""
2284
 
2285
+ #: link-library-admin.php:4587
2286
+ msgid "Check Broken Links"
 
2287
  msgstr ""
2288
 
2289
+ #: link-library-admin.php:4627
2290
+ msgid "Featured Link"
2291
  msgstr ""
2292
 
2293
+ #: link-library-admin.php:4633
2294
  msgid "No Follow"
2295
  msgstr ""
2296
 
2297
+ #: link-library-admin.php:4639
2298
  msgid "Updated Date"
2299
  msgstr ""
2300
 
2301
+ #: link-library-admin.php:4650
2302
  msgid "Secondary Web Address"
2303
  msgstr ""
2304
 
2305
+ #: link-library-admin.php:4653 link-library-admin.php:4672
2306
  msgid "Visit"
2307
  msgstr ""
2308
 
2309
+ #: link-library-admin.php:4676
2310
+ msgid "Number of link views"
2311
  msgstr ""
2312
 
2313
+ #: link-library-admin.php:4682
2314
+ msgid "Link Submitter"
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:4694 usersubmission.php:337 usersubmission.php:419
2322
+ msgid "Link Submitter E-mail"
2323
  msgstr ""
2324
 
2325
+ #: link-library-admin.php:4712
2326
+ msgid "Current Link Image"
2327
  msgstr ""
2328
 
2329
+ #: link-library-admin.php:4718
2330
+ msgid "None Assigned"
2331
  msgstr ""
2332
 
2333
+ #: link-library-admin.php:4725 link-library-admin.php:4735
2334
+ msgid "Automatic Image Generation"
2335
  msgstr ""
2336
 
2337
+ #: link-library-admin.php:4729
2338
+ msgid "Generate Thumbnail and Store locally"
2339
  msgstr ""
2340
 
2341
+ #: link-library-admin.php:4730
2342
+ msgid "Generate Favorite Icon and Store locally"
2343
  msgstr ""
2344
 
2345
+ #: link-library-admin.php:4736
2346
+ msgid "Only available once link is saved"
2347
  msgstr ""
2348
 
2349
+ #: link-library-admin.php:4741
2350
+ msgid "Manual Image Upload"
2351
  msgstr ""
2352
 
2353
+ #: link-library-admin.php:4743
2354
+ msgid "Launch Media Uploader"
2355
  msgstr ""
2356
 
2357
+ #: link-library-admin.php:4748
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:4849
2364
+ msgid ""
2365
+ "Cannot generate thumbnail when no name and no web address are specified."
2366
+ msgstr ""
2367
+
2368
+ #: link-library-admin.php:4885
2369
+ msgid ""
2370
+ "Cannot generate favorite icon when no name and no web address are specified."
2371
  msgstr ""
2372
 
2373
+ #: link-library-admin.php:5096
2374
  msgid "Add Link Library Shortcode"
2375
  msgstr ""
2376
 
2377
+ #: link-library-defaults.php:124 render-link-library-addlink-sc.php:214
2378
  msgid "Link name"
2379
  msgstr ""
2380
 
2381
+ #: link-library-defaults.php:125 render-link-library-addlink-sc.php:220
2382
  msgid "Link address"
2383
  msgstr ""
2384
 
2385
+ #: link-library-defaults.php:131
2386
  msgid "New link submitted."
2387
  msgstr ""
2388
 
2389
+ #: link-library-defaults.php:132
2390
  msgid "It will appear in the list once moderated. Thank you."
2391
  msgstr ""
2392
 
2393
+ #: link-library-defaults.php:149
2394
  msgid "Link Library-Generated RSS Feed"
2395
  msgstr ""
2396
 
2397
+ #: link-library-defaults.php:150
2398
  msgid "Description of Link Library-Generated Feed"
2399
  msgstr ""
2400
 
2401
+ #: link-library-defaults.php:212 linkpopup.php:64
2402
  msgid "%link_image%<br />Click through to visit %link_name%."
2403
  msgstr ""
2404
 
2405
+ #: link-library-defaults.php:225
2406
  msgid "Search..."
2407
  msgstr ""
2408
 
2409
+ #: link-library-defaults.php:227
2410
  msgid "Category Filter"
2411
  msgstr ""
2412
 
2413
+ #: link-library.php:416
2414
  msgid "Link Library Generated Feed"
2415
  msgstr ""
2416
 
2417
+ #: link-library.php:599
2418
  msgid "Could not update link in the database"
2419
  msgstr ""
2420
 
2421
+ #: link-library.php:606
2422
  msgid "Could not insert link into the database"
2423
  msgstr ""
2424
 
2425
+ #: link-library.php:628 link-library.php:632
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
+ #: render-link-library-addlink-sc.php:134
 
 
 
 
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:279
2492
+ #: render-link-library-addlink-sc.php:345
2493
+ #: render-link-library-addlink-sc.php:362
2494
+ #: render-link-library-addlink-sc.php:370
2495
+ #: render-link-library-addlink-sc.php:418
2496
+ #: render-link-library-addlink-sc.php:436
2497
+ #: render-link-library-addlink-sc.php:529
2498
+ #: render-link-library-addlink-sc.php:544
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:243
2507
+ #: render-link-library-addlink-sc.php:332
2508
+ #: render-link-library-addlink-sc.php:400
2509
  msgid "Required field, 1-255 chars"
2510
  msgstr ""
2511
 
2512
+ #: render-link-library-addlink-sc.php:275
2513
  msgid "Link category"
2514
  msgstr ""
2515
 
2516
+ #: render-link-library-addlink-sc.php:282
2517
  msgid "Select a category"
2518
  msgstr ""
2519
 
2520
+ #: render-link-library-addlink-sc.php:321
2521
  msgid "Link description"
2522
  msgstr ""
2523
 
2524
+ #: render-link-library-addlink-sc.php:339
2525
  msgid "Large description"
2526
  msgstr ""
2527
 
2528
+ #: render-link-library-addlink-sc.php:353
2529
  msgid "Link notes"
2530
  msgstr ""
2531
 
2532
+ #: render-link-library-addlink-sc.php:454
2533
  msgid "Required field, proper e-mail, 1-128 chars"
2534
  msgstr ""
2535
 
2536
+ #: render-link-library-addlink-sc.php:485
2537
+ #: render-link-library-addlink-sc.php:516
2538
  msgid "Required field, 1-128 chars"
2539
  msgstr ""
2540
 
2541
+ #: render-link-library-addlink-sc.php:550
2542
  msgid "Add link"
2543
  msgstr ""
2544
 
2545
+ #: render-link-library-addlink-sc.php:562
2546
  msgid "Form submission failed!"
2547
  msgstr ""
2548
 
2549
+ #: render-link-library-addlink-sc.php:563
2550
  msgid "You have not answered all required fields"
2551
  msgstr ""
2552
 
2553
+ #: render-link-library-addlink-sc.php:564
2554
  msgid "You have not given a correct time"
2555
  msgstr ""
2556
 
2557
+ #: render-link-library-addlink-sc.php:565
2558
  msgid "You have not given a correct e-mail address"
2559
  msgstr ""
2560
 
2561
+ #: render-link-library-addlink-sc.php:566
2562
  msgid "You have not given a correct phone number"
2563
  msgstr ""
2564
 
2565
+ #: render-link-library-addlink-sc.php:567
2566
  msgid "You have not given a correct answer to the security question"
2567
  msgstr ""
2568
 
2569
+ #: render-link-library-addlink-sc.php:568
2570
  msgid "You have not given a correct date"
2571
  msgstr ""
2572
 
2573
+ #: render-link-library-addlink-sc.php:569
2574
  msgid "The input value must be between "
2575
  msgstr ""
2576
 
2577
+ #: render-link-library-addlink-sc.php:570
2578
  msgid "characters"
2579
  msgstr ""
2580
 
2581
+ #: render-link-library-addlink-sc.php:571
2582
  msgid "The input value is longer than "
2583
  msgstr ""
2584
 
2585
+ #: render-link-library-addlink-sc.php:572
2586
  msgid "The input value is shorter than "
2587
  msgstr ""
2588
 
2589
+ #: render-link-library-addlink-sc.php:573
2590
  msgid "Input values could not be confirmed"
2591
  msgstr ""
2592
 
2593
+ #: render-link-library-addlink-sc.php:574
2594
  msgid "Incorrect domain value"
2595
  msgstr ""
2596
 
2597
+ #: render-link-library-addlink-sc.php:575
2598
+ msgid "The input value is not a correct URL"
2599
  msgstr ""
2600
 
2601
+ #: render-link-library-addlink-sc.php:576
2602
  msgid "The input value is incorrect"
2603
  msgstr ""
2604
 
2605
+ #: render-link-library-addlink-sc.php:577
2606
  msgid " and spaces "
2607
  msgstr ""
2608
 
2609
+ #: render-link-library-addlink-sc.php:578
2610
  msgid "The input value was not a correct number"
2611
  msgstr ""
2612
 
2613
+ #: render-link-library-addlink-sc.php:579
2614
  msgid "Your social security number was incorrect"
2615
  msgstr ""
2616
 
2617
+ #: render-link-library-addlink-sc.php:580
2618
  msgid "Incorrect UK VAT Number"
2619
  msgstr ""
2620
 
2621
+ #: render-link-library-addlink-sc.php:581
2622
  msgid "The password is not strong enough"
2623
  msgstr ""
2624
 
2625
+ #: render-link-library-addlink-sc.php:582
2626
  msgid "You have to choose at least "
2627
  msgstr ""
2628
 
2629
+ #: render-link-library-addlink-sc.php:583
2630
  msgid " answers"
2631
  msgstr ""
2632
 
2633
+ #: render-link-library-addlink-sc.php:584
2634
  msgid "The input value can only contain alphanumeric characters "
2635
  msgstr ""
2636
 
2637
+ #: render-link-library-addlink-sc.php:585
2638
  msgid " and "
2639
  msgstr ""
2640
 
2641
+ #: render-link-library-addlink-sc.php:586
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:587
2647
  #, php-format
2648
  msgid "Only files of type %s is allowed"
2649
  msgstr ""
2650
 
2651
+ #: render-link-library-addlink-sc.php:588
2652
  msgid "Please choose between "
2653
  msgstr ""
2654
 
2655
+ #: render-link-library-addlink-sc.php:589
2656
  msgid "Please choose at least "
2657
  msgstr ""
2658
 
2659
+ #: render-link-library-addlink-sc.php:590
2660
  msgid "Please choose a maximum of "
2661
  msgstr ""
2662
 
2663
+ #: render-link-library-addlink-sc.php:591
2664
  msgid " item(s)"
2665
  msgstr ""
2666
 
2667
+ #: render-link-library-addlink-sc.php:592
2668
  msgid "The credit card number is not correct"
2669
  msgstr ""
2670
 
2671
+ #: render-link-library-addlink-sc.php:593
2672
  msgid "The CVV number was not correct"
2673
  msgstr ""
2674
 
2675
+ #: render-link-library-addlink-sc.php:594
2676
  msgid "Incorrect image dimensions,"
2677
  msgstr ""
2678
 
2679
+ #: render-link-library-addlink-sc.php:595
2680
  msgid "the image can not be taller than"
2681
  msgstr ""
2682
 
2683
+ #: render-link-library-addlink-sc.php:596
2684
  msgid "the image can not be wider than"
2685
  msgstr ""
2686
 
2687
+ #: render-link-library-addlink-sc.php:597
2688
  msgid "the image was too small"
2689
  msgstr ""
2690
 
2691
+ #: render-link-library-addlink-sc.php:598
2692
  msgid "min"
2693
  msgstr ""
2694
 
2695
+ #: render-link-library-addlink-sc.php:599
2696
  msgid "max"
2697
  msgstr ""
2698
 
2699
+ #: render-link-library-addlink-sc.php:600
2700
  msgid "Image ratio is not accepted"
2701
  msgstr ""
2702
 
2703
+ #: render-link-library-addlink-sc.php:623
2704
  msgid "Enter code from above image"
2705
  msgstr ""
2706
 
2707
+ #: render-link-library-cats-sc.php:402
2708
  msgid "Go!"
2709
  msgstr ""
2710
 
2711
+ #: render-link-library-cats-sc.php:431
2712
  msgid "No categories found"
2713
  msgstr ""
2714
 
2715
+ #: render-link-library-sc.php:58 render-link-library-sc.php:61
2716
+ #: render-link-library-sc.php:74 render-link-library-sc.php:80
2717
  msgid "Previous"
2718
  msgstr ""
2719
 
2720
+ #: render-link-library-sc.php:149 render-link-library-sc.php:152
2721
+ #: render-link-library-sc.php:158 render-link-library-sc.php:165
2722
  msgid "Next"
2723
  msgstr ""
2724
 
2725
+ #: render-link-library-sc.php:582
2726
  msgid "Search Results for"
2727
  msgstr ""
2728
 
2729
+ #: render-link-library-sc.php:963
 
 
 
 
2730
  msgid "Last updated"
2731
  msgstr ""
2732
 
2733
+ #: render-link-library-sc.php:1109
2734
  msgid "Edit"
2735
  msgstr ""
2736
 
2737
+ #: render-link-library-sc.php:1193
2738
  msgid "Preview of RSS feed for"
2739
  msgstr ""
2740
 
2741
+ #: render-link-library-sc.php:1564
2742
+ msgid "No links found"
 
 
 
 
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:321 usersubmission.php:403
2750
  msgid "Link Secondary Address"
2751
  msgstr ""
2752
 
2753
+ #: usersubmission.php:325 usersubmission.php:407
2754
  msgid "Link Telephone"
2755
  msgstr ""
2756
 
2757
+ #: usersubmission.php:329 usersubmission.php:411
2758
  msgid "Link E-mail"
2759
  msgstr ""
2760
 
2761
+ #: usersubmission.php:341 usersubmission.php:423
 
 
 
 
 
 
 
 
 
 
 
 
2762
  msgid "Link Comment"
2763
  msgstr ""
2764
 
2765
+ #: usersubmission.php:356
2766
  msgid "New link added"
2767
  msgstr ""
2768
 
2769
+ #: usersubmission.php:366
2770
  msgid "Link Submission Confirmation"
2771
  msgstr ""
2772
 
2773
+ #: usersubmission.php:368
2774
  msgid "Thank you for your link submission on "
2775
  msgstr ""
2776
 
2777
+ #: usersubmission.php:372
2778
  msgid "Your link will appear once approved by the site administrator."
2779
  msgstr ""
2780
 
2781
+ #: usersubmission.php:374
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 ""
link-library-admin.php CHANGED
@@ -4,12 +4,13 @@ if ( !defined( 'ABSPATH' ) ) {
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,6 +30,11 @@ class link_library_plugin_admin {
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,33 +43,32 @@ class link_library_plugin_admin {
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
  if ( $this->is_edit_page() ) {
 
62
  add_action( 'media_buttons', 'link_library_render_editor_button', 20 );
63
  add_action( 'admin_footer', array( $this, 'render_modal' ) );
64
  }
65
-
66
- add_action( 'link_library_reciprocal_check', 'link_library_reciprocal_link_checker', 10, 4 );
67
  }
68
 
69
  function is_edit_page( $new_edit = null ) {
@@ -78,21 +83,12 @@ class link_library_plugin_admin {
78
  } elseif ( 'new' == $new_edit ) { //check for new post page
79
  return in_array( $pagenow, array( 'post-new.php' ) );
80
  } else { //check for either new or edit
81
- if ( isset( $_GET['post_type'] ) && 'link_library_links' != $_GET['post_type'] ) {
82
- return in_array( $pagenow, array( 'post.php', 'post-new.php' ) );
83
- } else {
84
- return false;
85
- }
86
  }
87
  }
88
 
89
- public function admin_scripts( $hook ) {
90
  wp_enqueue_script( 'linklibrary-shortcodes-embed', plugins_url( "js/linklibrary-shortcode-embed.js", __FILE__ ), array( 'jquery' ), '', true );
91
- wp_enqueue_style( 'linklibraryadminstyle', plugins_url( 'adminstyle.css', __FILE__ ) );
92
-
93
- if ( 'edit.php' === $hook && isset( $_GET['post_type'] ) && 'link_library_links' === $_GET['post_type'] ) {
94
- wp_enqueue_script( 'll_quick_edit', plugins_url('js/ll_admin_edit.js', __FILE__), false, null, true );
95
- }
96
  }
97
 
98
  public function render_modal() {
@@ -119,7 +115,7 @@ class link_library_plugin_admin {
119
  <label for="linklibrary_link-library_libraryid"><?php _e( 'Library ID', 'link-library' ); ?></label>
120
  <br/>
121
  <select class="linklibrary_settings select" id="linklibrary_settings" name="settings" data-slug="settings" data-shortcode="settings" />
122
- <?php if ( empty( $genoptions['numberstylesets'] ) ) {
123
  $numberofsets = 1;
124
  } else {
125
  $numberofsets = $genoptions['numberstylesets'];
@@ -174,7 +170,7 @@ class link_library_plugin_admin {
174
  <label for="linklibrary_link-library_libraryid"><?php _e( 'Library ID', 'link-library' ); ?></label>
175
  <br/>
176
  <select class="linklibrary_settings select" id="linklibrary_settings" name="settings" data-slug="settings" data-shortcode="settings" />
177
- <?php if ( empty( $genoptions['numberstylesets'] ) ) {
178
  $numberofsets = 1;
179
  } else {
180
  $numberofsets = $genoptions['numberstylesets'];
@@ -209,7 +205,7 @@ class link_library_plugin_admin {
209
  <label for="linklibrary_link-library_libraryid"><?php _e( 'Library ID', 'link-library' ); ?></label>
210
  <br/>
211
  <select class="linklibrary_settings select" id="linklibrary_settings" name="settings" data-slug="settings" data-shortcode="settings" />
212
- <?php if ( empty( $genoptions['numberstylesets'] ) ) {
213
  $numberofsets = 1;
214
  } else {
215
  $numberofsets = $genoptions['numberstylesets'];
@@ -241,15 +237,15 @@ class link_library_plugin_admin {
241
  <?php
242
  }
243
 
244
- function ll_link_library_category_new_fields( $tag ) {
245
 
246
  $caturl = '';
247
  $cat_extra_query_string = '';
248
 
249
  if ( is_object( $tag ) ) {
250
  $mode = "edit";
251
- $caturl = get_term_meta( $tag->term_id, 'linkcaturl', true );
252
- $cat_extra_query_string = get_term_meta( $tag->term_id, 'linkextraquerystring', true );
253
  } else {
254
  $mode = 'new';
255
  }
@@ -315,18 +311,18 @@ class link_library_plugin_admin {
315
  }
316
  }
317
 
318
- function ll_save_link_library_category_new_fields( $term_id, $tt_id ) {
319
 
320
  if ( !$term_id ) {
321
  return;
322
  }
323
 
324
  if ( isset( $_POST['ll_category_url'] ) ) {
325
- update_term_meta( $term_id, 'linkcaturl', $_POST['ll_category_url'] );
326
  }
327
 
328
  if ( isset( $_POST['cat_extra_query_string'] ) ) {
329
- update_term_meta( $term_id, 'linkextraquerystring', $_POST['cat_extra_query_string'] );
330
  }
331
  }
332
 
@@ -338,7 +334,7 @@ class link_library_plugin_admin {
338
  }
339
  }
340
 
341
- 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' ) ) {
342
  wp_enqueue_style( 'LibraryLibraryAdminStyle', plugins_url( 'link-library-admin.css', __FILE__ ) );
343
  }
344
  }
@@ -354,7 +350,7 @@ class link_library_plugin_admin {
354
  }
355
 
356
  function db_prefix() {
357
- global $wpdb; // Kept with CPT update
358
  if ( method_exists( $wpdb, "get_blog_prefix" ) ) {
359
  return $wpdb->get_blog_prefix();
360
  } else {
@@ -412,17 +408,17 @@ class link_library_plugin_admin {
412
 
413
  if ( $status !== false ) {
414
  if ( $filepathtype == 'absolute' || empty( $filepathtype ) ) {
415
- $newimagedata = $uploads['baseurl'] . "/" . $filepath . "/" . $linkid . ".png";
416
  } elseif ( $filepathtype == 'relative' ) {
417
  $parsedaddress = parse_url( $uploads['baseurl'] );
418
- $newimagedata = $parsedaddress['path'] . "/" . $filepath . "/" . $linkid . ".png";
419
  }
420
 
421
  if ( $mode == 'thumb' || $mode == 'favicon' ) {
422
- update_post_meta( $linkid, 'link_image', $newimagedata );
423
  }
424
 
425
- return $newimagedata;
426
  } else {
427
  return "";
428
  }
@@ -448,6 +444,9 @@ class link_library_plugin_admin {
448
  exit();
449
  }
450
 
 
 
 
451
  //register the callback been used if options of page been submitted and needs to be processed
452
  add_action( 'admin_post_save_link_library_general', array( $this, 'on_save_changes_general' ) );
453
  add_action( 'admin_post_save_link_library_settingssets', array( $this, 'on_save_changes_settingssets' ) );
@@ -455,16 +454,23 @@ class link_library_plugin_admin {
455
  add_action( 'admin_post_save_link_library_stylesheet', array( $this, 'on_save_changes_stylesheet' ) );
456
  add_action( 'admin_post_save_link_library_reciprocal', array( $this, 'on_save_changes_reciprocal' ) );
457
 
458
- $catnames = get_terms( 'link_library_category', array( 'hide_empty' => false ) );
 
 
 
459
 
460
- if ( empty( $catnames ) ) {
461
- add_action( 'admin_notices', array( $this, 'll_missing_categories' ) );
462
- }
463
 
464
  $genoptions = get_option( 'LinkLibraryGeneral' );
465
  $genoptions = wp_parse_args( $genoptions, ll_reset_gen_settings( 'return' ) );
466
  extract( $genoptions );
467
 
 
 
 
 
 
468
  if ( !empty( $genoptions ) ) {
469
  if ( empty( $numberstylesets ) ) {
470
  $numberofsets = 1;
@@ -483,36 +489,60 @@ class link_library_plugin_admin {
483
  }
484
  }
485
 
486
- if ( $thumbshotsactive && empty( $genoptions['thumbshotscid'] ) && $genoptions['thumbnailgenerator'] == 'thumbshots' ) {
487
  add_action( 'admin_notices', array( $this, 'll_thumbshots_warning' ) );
488
  }
 
 
 
 
 
 
 
489
  }
490
  }
491
 
492
- function ll_make_wp_editor_movable() {
493
- add_meta_box( 'linklibrary_basic_meta_box', __( 'Basic Details', 'link-library' ), array( $this, 'll_link_basic_info' ), 'link_library_links', 'normal', 'high' );
 
 
 
 
 
494
 
495
- add_meta_box( 'linklibrary_image_meta_box', __( 'Image', 'link-library' ), array( $this, 'll_link_image_info' ), 'link_library_links', 'normal', 'high' );
 
496
 
497
- global $_wp_post_type_features;
498
- if ( isset( $_wp_post_type_features['link_library_links']['editor'] ) && $_wp_post_type_features['link_library_links']['editor'] ) {
499
- unset( $_wp_post_type_features['link_library_links']['editor'] );
500
- add_meta_box( 'link_library_fullpage_editor', __( 'Full-Page Content', 'link-library' ), array( $this, 'll_inner_custom_box' ), 'link_library_links', 'normal', 'high' );
 
501
  }
502
-
503
- add_meta_box( 'linklibrary_meta_box', __( 'Additional Parameters', 'link-library' ), array( $this, 'll_link_edit_extra' ), 'link_library_links', 'normal', 'high' );
504
  }
505
 
506
- function ll_inner_custom_box( $post ) {
507
- $editor_config = array( 'textarea_rows' => 8 );
508
- wp_editor( $post->post_content, 'content', $editor_config );
 
 
 
 
 
 
509
  }
510
 
 
511
  function ll_thumbshots_warning() {
512
  echo "
513
  <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>";
514
  }
515
 
 
 
 
 
 
516
  function ll_missing_categories() {
517
  echo "
518
  <div id='ll-warning' class='updated fade'><p><strong>" . __( 'Link Library: No Link Categories on your site', 'link-library' ) . "</strong></p> <p>" . __( '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.', 'link-library' ) . "</p></div>";
@@ -559,13 +589,16 @@ class link_library_plugin_admin {
559
  }
560
 
561
  function render_dashboard_widget() {
 
 
562
  $linkmoderatecount = 0;
563
- $pendinglinksargs = array( 'post_type' => 'link_library_links', 'post_status' => 'pending' );
564
- $pending_links_query = new WP_Query( $pendinglinksargs );
565
 
566
- if ( !empty( $pending_links_query ) ) {
567
- $linkmoderatecount = $pending_links_query->found_posts;
568
- }
 
 
 
569
 
570
  echo '<strong>' . $linkmoderatecount . '</strong> ';
571
  _e( 'Links to moderate', 'link-library' );
@@ -575,7 +608,7 @@ class link_library_plugin_admin {
575
  //extend the admin menu
576
  function on_admin_menu() {
577
  //add our own option page, you can also add it to different sections or use your own one
578
- global $pagehookmoderate, $pagehooksettingssets, $pagehookstylesheet, $pagehookreciprocal;
579
 
580
  $genoptions = get_option( 'LinkLibraryGeneral' );
581
  $genoptions = wp_parse_args( $genoptions, ll_reset_gen_settings( 'return' ) );
@@ -608,16 +641,22 @@ class link_library_plugin_admin {
608
 
609
  $linkmoderatecount = 0;
610
 
611
- $args = array(
612
- 'numberposts' => -1,
613
- 'post_type' => 'link_library_links',
614
- 'post_status' => array( 'pending' )
615
- );
616
- $linkmoderatecount = count( get_posts( $args ) );
 
 
 
 
 
 
617
 
618
- $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' ) );
619
 
620
- $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' ) );
621
 
622
  if ( $linkmoderatecount == 0 ) {
623
  $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' ) );
@@ -629,9 +668,10 @@ class link_library_plugin_admin {
629
 
630
  $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' ) );
631
 
632
- 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' ) );
633
 
634
  //register callback gets call prior your own page gets rendered
 
635
  add_action( 'load-' . $pagehooksettingssets, array( $this, 'on_load_page' ) );
636
  add_action( 'load-' . $pagehookmoderate, array( $this, 'on_load_page' ) );
637
  add_action( 'load-' . $pagehookstylesheet, array( $this, 'on_load_page' ) );
@@ -641,7 +681,7 @@ class link_library_plugin_admin {
641
  //will be executed if wordpress core detects this page has to be rendered
642
  function on_load_page() {
643
 
644
- global $pagehookmoderate, $pagehooksettingssets, $pagehookstylesheet, $pagehookreciprocal;
645
 
646
  //ensure, that the needed javascripts been loaded to allow drag/drop, expand/collapse and hide/show of boxes
647
  wp_enqueue_script( 'tiptip', plugins_url( '/tiptip/jquery.tipTip.minified.js', __FILE__ ), "jQuery", "1.0rc3" );
@@ -655,6 +695,7 @@ class link_library_plugin_admin {
655
  $genoptions = get_option( 'LinkLibraryGeneral' );
656
 
657
  //add several metaboxes now, all metaboxes registered during load page can be switched off/on at "Screen Options" automatically, nothing special to do therefore
 
658
  add_meta_box( 'linklibrary_moderation_meta_box', __( 'Links awaiting moderation', 'link-library' ), array( $this, 'moderate_meta_box' ), $pagehookmoderate, 'normal', 'high' );
659
  add_meta_box( 'linklibrary_stylesheet_meta_box', __( 'Editor', 'link-library' ), array( $this, 'stylesheet_meta_box' ), $pagehookstylesheet, 'normal', 'high' );
660
  add_meta_box( 'linklibrary_reciprocal_meta_box', __( 'Link checking tools', 'link-library' ), array( $this, 'reciprocal_meta_box' ), $pagehookreciprocal, 'normal', 'high' );
@@ -692,11 +733,12 @@ class link_library_plugin_admin {
692
 
693
  // Retrieve general options
694
  $genoptions = get_option( 'LinkLibraryGeneral' );
695
- $genoptions = wp_parse_args( $genoptions, ll_reset_gen_settings( 'return' ) );
696
 
697
  // If general options don't exist, create them
698
  if ( $genoptions == false ) {
699
  $genoptions = ll_reset_gen_settings( 'return_and_set' );
 
 
700
  }
701
 
702
  $settingsname = 'LinkLibraryPP' . $settings;
@@ -708,6 +750,8 @@ class link_library_plugin_admin {
708
  }
709
 
710
  if ( isset( $_GET['genthumbs'] ) || isset( $_GET['genfavicons'] ) || isset( $_GET['genthumbsingle'] ) || isset( $_GET['genfaviconsingle'] ) ) {
 
 
711
  if ( isset( $_GET['genthumbs'] ) || isset( $_GET['genthumbsingle'] ) ) {
712
  $filepath = "link-library-images";
713
  } elseif ( isset( $_GET['genfavicons'] ) || isset( $_GET['genfaviconsingle'] ) ) {
@@ -731,35 +775,31 @@ class link_library_plugin_admin {
731
  $genmode = 'favicon';
732
  }
733
 
734
- $link_query_args = array( 'post_type' => 'link_library_links', 'posts_per_page' => -1 );
735
-
736
- if ( $options['categorylist_cpt'] != "" && !isset( $_GET['genthumbsingle'] ) && !isset( $_GET['genfaviconsingle'] ) ) {
737
- $link_query_args['tax_query'] = array(
738
- array( 'taxonomy' => 'link_library_category',
739
- 'field' => 'term-id',
740
- 'terms' => $options['categorylist_cpt'],
741
- 'operator' => 'IN' )
742
- );
743
- } else if ( isset( $_GET['genthumbsingle'] ) || isset( $_GET['genfaviconsingle'] ) ) {
744
- $link_query_args['p'] = intval( $_GET['linkid'] );
745
- }
746
-
747
- $the_link_query = new WP_Query( $link_query_args );
748
 
749
- if ( $the_link_query->have_posts() ) {
750
- $filescreated = 0;
751
- $totallinks = $the_link_query->found_posts;
752
 
753
- while ( $the_link_query->have_posts() ) {
754
- $the_link_query->the_post();
 
755
 
756
- $link_url = get_post_meta( get_the_ID(), 'link_url', true );
757
- $link_image = get_post_meta( get_the_ID(), 'link_image', true );
758
 
759
- if ( !$options['uselocalimagesoverthumbshots'] || ( $options['uselocalimagesoverthumbshots'] && empty( $link_image ) ) ) {
760
- $this->ll_get_link_image( $link_url, get_the_title(), $genmode, get_the_ID(), $genoptions['thumbshotscid'], $filepath, $genoptions['imagefilepath'], $genoptions['thumbnailsize'], $genoptions['thumbnailgenerator'] );
 
 
 
 
761
  }
762
- $linkname = get_the_title();
763
  }
764
 
765
  if ( isset( $_GET['genthumbs'] ) ) {
@@ -798,15 +838,16 @@ class link_library_plugin_admin {
798
  }
799
 
800
  // Check for current page to set some page=specific variables
801
- if ( $_GET['page'] == 'link-library-general-options' ) {
802
  if ( isset( $_GET['message'] ) && $_GET['message'] == '1' ) {
803
  echo "<div id='message' class='updated fade'><p><strong>" . __( 'General Settings Saved', 'link-library' ) . ".</strong></p></div>";
 
 
 
804
  } else if ( isset( $_GET['message'] ) && $_GET['message'] == '3' ) {
805
  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>";
806
  } else if ( isset( $_GET['message'] ) && $_GET['message'] == '4' ) {
807
  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>";
808
- } else if ( isset( $_GET['message'] ) && $_GET['message'] == '9' ) {
809
- 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>";
810
  }
811
 
812
  $formvalue = 'save_link_library_general';
@@ -847,6 +888,11 @@ class link_library_plugin_admin {
847
  echo "<div id='message' class='updated fade'><p><strong>" . __( 'Invalid column count for link on row. Compare against template.', 'link-library' ) . "</strong></p></div>";
848
  break;
849
 
 
 
 
 
 
850
  case '6':
851
  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>";
852
  break;
@@ -866,7 +912,6 @@ class link_library_plugin_admin {
866
  case '10':
867
  echo "<div id='message' class='updated fade'><p><strong>" . __( 'Links are missing categories', 'link-library' ) . "</strong></p></div>";
868
  break;
869
-
870
  }
871
 
872
  }
@@ -919,7 +964,7 @@ class link_library_plugin_admin {
919
  $data['settings'] = $settings;
920
  $data['options'] = isset( $options ) ? $options : '';
921
  $data['genoptions'] = $genoptions;
922
- global $pagehookmoderate, $pagehookstylesheet, $pagehooksettingssets, $pagehookreciprocal;
923
  ?>
924
  <div class="ll-content">
925
  <div class="ll-frame">
@@ -931,7 +976,7 @@ class link_library_plugin_admin {
931
  <img src="<?php echo plugins_url( 'icons/folder-beige-internet-icon32.png', __FILE__ ); ?>" /><span>Link Library</span>
932
  </li>
933
  <li class="link-library-page">
934
- <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' ) {
935
  echo 'class="current"';
936
  } ?>><?php _e( 'General Options', 'link-library' ); ?></a>
937
  </li>
@@ -956,14 +1001,13 @@ class link_library_plugin_admin {
956
  } ?>><?php _e( 'Reciprocal Check', 'link-library' ); ?></a>
957
  </li>
958
  <li class="link-library-page">
959
- <a href="http://ylefebvre.ca/wppluginsdoc/index.php?title=Link_Library"><?php _e( 'FAQ', 'link-library' ); ?></a>
960
  </li>
961
  <?php if ( isset( $genoptions['hidedonation'] ) && !$genoptions['hidedonation'] ) { ?>
962
  <li class="link-library-page">
963
  <a href="http://ylefebvre.ca/wordpress-plugins/link-library/"><img src="<?php echo plugins_url( '/icons/btn_donate_LG.gif', __FILE__ ); ?>" /></a>
964
  </li>
965
  <?php } ?>
966
-
967
  </ul>
968
 
969
  </nav>
@@ -1000,8 +1044,8 @@ class link_library_plugin_admin {
1000
 
1001
  #sortable li {
1002
  list-style: none;
1003
- margin: 0 3px 3px 3px;
1004
- padding: 7px 7px 7px 7px;
1005
  border: #CCCCCC solid 1px;
1006
  color: #fff;
1007
  display: inline;
@@ -1020,17 +1064,15 @@ class link_library_plugin_admin {
1020
  <div id="post-body" class="has-sidebar">
1021
  <div id="post-body-content" class="has-sidebar-content">
1022
  <?php
1023
- if ( $_GET['page'] == 'link-library-general-options' ) {
1024
  $this->display_menu( 'general', $genoptions );
1025
  $this->general_meta_box( $data );
1026
- $this->general_singleitemlayout_meta_box( $data );
1027
  $this->general_image_meta_box( $data );
1028
  $this->general_meta_bookmarklet_box( $data );
1029
  $this->general_moderation_meta_box( $data );
1030
  if ( isset( $genoptions['hidedonation'] ) && !$genoptions['hidedonation'] ) {
1031
  $this->general_hide_donation_meta_box( $data );
1032
  }
1033
- $this->general_importexport_meta_box( $data );
1034
 
1035
  $this->general_save_meta_box();
1036
 
@@ -1075,7 +1117,9 @@ class link_library_plugin_admin {
1075
  $('.if-js-closed').removeClass('if-js-closed').addClass('closed');
1076
  // postboxes setup
1077
  postboxes.add_postbox_toggles('<?php
1078
- if ($_GET['page'] == 'link-library-settingssets')
 
 
1079
  {echo $pagehooksettingssets;}
1080
  elseif ($_GET['page'] == 'link-library-moderate')
1081
  {echo $pagehookmoderate;}
@@ -1087,16 +1131,6 @@ class link_library_plugin_admin {
1087
  });
1088
  //]]>
1089
 
1090
- Array.prototype.clean = function(deleteValue) {
1091
- for (var i = 0; i < this.length; i++) {
1092
- if (this[i] == deleteValue) {
1093
- this.splice(i, 1);
1094
- i--;
1095
- }
1096
- }
1097
- return this;
1098
- };
1099
-
1100
  // Create the tooltips only on document load
1101
  jQuery(document).ready(function () {
1102
  jQuery('.lltooltip').each(function () {
@@ -1107,8 +1141,7 @@ class link_library_plugin_admin {
1107
  jQuery("#sortable").sortable({
1108
  opacity: 0.6, cursor: 'move', update: function () {
1109
  var order = jQuery("#sortable").sortable('toArray');
1110
- order.clean("");
1111
- stringorder = order.join(',');
1112
  document.getElementById('dragndroporder').value = stringorder;
1113
  }
1114
  });
@@ -1121,18 +1154,17 @@ class link_library_plugin_admin {
1121
  }
1122
 
1123
  function display_menu( $menu_name = 'settingsset', $genoptions = '' ) {
 
1124
  if ( $menu_name == 'general' ) {
1125
  $tabitems = array ( 'll-general' => __( 'General', 'link-library' ),
1126
- 'll-singleitem' => __( 'Single Item Layout', 'link-library' ),
1127
  'll-images' => __( 'Images', 'link-library' ),
1128
  'll-bookmarklet' => __( 'Bookmarklet', 'link-library' ),
1129
  'll-moderation' => __( 'Moderation', 'link-library' ),
1130
  'll-hidedonation' => __( 'Hide Donation', 'link-library' ),
1131
- 'll-importexport' => __( 'Import/Export Links', 'link-library' ),
1132
  );
1133
 
1134
- if ( isset( $genoptions['ll-hidedonation'] ) && $genoptions['ll-hidedonation'] ) {
1135
- unset ( $tabitems['hidedonation'] );
1136
  }
1137
  } elseif ( $menu_name == 'settingsset' ) {
1138
  $tabitems = array ( 'll-usage' => __( 'Usage', 'link-library' ),
@@ -1146,7 +1178,7 @@ class link_library_plugin_admin {
1146
  'll-rssfeed' => __( 'RSS Feed', 'link-library' ),
1147
  'll-searchfield' => __( 'Search', 'link-library' ),
1148
  'll-userform' => __( 'User Submission', 'link-library' ),
1149
- 'll-importexport' => __( 'Import/Export Settings', 'link-library' ),
1150
  );
1151
  }
1152
 
@@ -1208,32 +1240,138 @@ class link_library_plugin_admin {
1208
  //cross check the given referer
1209
  check_admin_referer( 'link-library' );
1210
 
1211
- $message = 1;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1212
  $row = 0;
1213
  $successfulimport = 0;
1214
  $successfulupdate = 0;
1215
-
1216
- if ( isset( $_POST['ll60reupdate'] ) ) {
1217
- global $wpdb;
1218
-
1219
- $wpdb->get_results ( 'DELETE a,b,c
1220
- FROM wp_posts a
1221
- LEFT JOIN wp_term_relationships b
1222
- ON (a.ID = b.object_id)
1223
- LEFT JOIN wp_postmeta c
1224
- ON (a.ID = c.post_id)
1225
- WHERE a.post_type = \'link_library_links\';' );
1226
-
1227
- $link_category_terms = get_terms( 'link_library_category', array( 'fields' => 'ids', 'hide_empty' => false ) );
1228
- foreach ( $link_category_terms as $value ) {
1229
- wp_delete_term( $value, 'link_library_category' );
1230
- }
1231
 
1232
- delete_option( 'LinkLibrary60Update' );
1233
- } elseif ( isset( $_POST['importlinks'] ) ) {
1234
  wp_suspend_cache_addition( true );
1235
  set_time_limit( 600 );
1236
 
 
 
1237
  $handle = fopen( $_FILES['linksfile']['tmp_name'], "r" );
1238
 
1239
  if ( $handle ) {
@@ -1241,6 +1379,7 @@ class link_library_plugin_admin {
1241
 
1242
  while ( ( $data = fgetcsv( $handle, 5000, "," ) ) !== false ) {
1243
  $row += 1;
 
1244
  if ( $skiprow == 1 && isset( $_POST['firstrowheaders'] ) && $row >= 2 ) {
1245
  $skiprow = 0;
1246
  } elseif ( !isset( $_POST['firstrowheaders'] ) ) {
@@ -1248,99 +1387,97 @@ class link_library_plugin_admin {
1248
  }
1249
 
1250
  if ( !$skiprow ) {
1251
- if ( count( $data ) == 18 ) {
1252
- $existing_link_post_id = '';
1253
- $matched_link_cats = array();
 
1254
 
1255
- if ( !empty( $data[2] ) ) {
1256
- $new_link_cats_array = explode( ',', $data[2] );
 
1257
 
1258
- foreach ( $new_link_cats_array as $new_link_cat ) {
1259
- $cat_matched_term = get_term_by( 'name', $new_link_cat, 'link_library_category' );
1260
 
1261
- if ( false !== $cat_matched_term ) {
1262
- $matched_link_cats[] = $cat_matched_term->term_id;
1263
- } else {
1264
- $new_cat_term_data = wp_insert_term( $new_link_cat, 'link_library_category' );
1265
- if ( is_wp_error( $new_cat_term_data ) ) {
1266
- print_r( 'Failed creating category ' . $cat_string );
1267
- } else {
1268
- $matched_link_cats[] = $new_cat_term_data['term_id'];
1269
- }
1270
- }
1271
- }
1272
- }
1273
 
1274
- if ( isset( $_POST['updatesameurl'] ) ) {
1275
- $find_post_args = array( 'post_type' => 'link_library_links',
1276
- 'meta_key' => 'link_url',
1277
- 'meta_value' => esc_url( $data[1] ),
1278
- 'numberposts' => 1 );
1279
 
1280
- $posts_same_url_array = get_posts( $find_post_args );
1281
 
1282
- if ( !empty( $posts_same_url_array ) ) {
1283
- $existing_link_post_id = $posts_same_url_array[0]->ID;
 
 
 
 
 
 
 
1284
  }
1285
- }
1286
 
1287
- $new_link_data = array(
1288
- 'post_type' => 'link_library_links',
1289
- 'post_content' => '',
1290
- 'post_title' => sanitize_text_field( $data[0] ),
1291
- 'tax_input' => array( 'link_library_category' => $matched_link_cats ),
1292
- 'post_status' => $data[8]
1293
- );
1294
-
1295
- if ( !empty( $existing_link_post_id ) ) {
1296
- $new_link_data['ID'] = $existing_link_post_id;
1297
- $new_link_ID = wp_insert_post( $new_link_data );
1298
- $successfulupdate++;
1299
- } else {
1300
- $new_link_ID = wp_insert_post( $new_link_data );
1301
- $successfulimport++;
1302
- }
1303
 
1304
- update_post_meta( $new_link_ID, 'link_url', $data[1] );
1305
- update_post_meta( $new_link_ID, 'link_image', esc_url( $data[13] ) );
1306
- update_post_meta( $new_link_ID, 'link_target', sanitize_text_field( $data[7] ) );
1307
- update_post_meta( $new_link_ID, 'link_description', sanitize_text_field( $data[4] ) );
1308
 
1309
- $newrating = intval( $data[15] );
1310
- if ( $newrating < 0 ) {
1311
- $newrating = 0;
1312
- }
1313
- update_post_meta( $new_link_ID, 'link_rating', $newrating );
1314
 
1315
- update_post_meta( $new_link_ID, 'link_updated', current_time( 'timestamp' ) );
 
1316
 
1317
- update_post_meta( $new_link_ID, 'link_notes', sanitize_text_field( $data[5] ) );
1318
- update_post_meta( $new_link_ID, 'link_rss', esc_url( $data[3] ) );
1319
- update_post_meta( $new_link_ID, 'link_second_url', esc_url( $data[9] ) );
1320
- update_post_meta( $new_link_ID, 'link_telephone', sanitize_text_field( $data[10] ) );
1321
- update_post_meta( $new_link_ID, 'link_email', sanitize_email( $data[11] ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1322
 
1323
- if ( empty( $existing_link_post_id ) ) {
1324
- update_post_meta( $new_link_ID, 'link_visits', 0 );
1325
- }
 
1326
 
1327
- update_post_meta( $new_link_ID, 'link_reciprocal', esc_url( $data[12] ) );
1328
- update_post_meta( $new_link_ID, 'link_textfield', sanitize_text_field( $data[6] ) );
1329
- update_post_meta( $new_link_ID, 'link_updated', strtotime( $data[17] ) );
1330
 
1331
- if ( '1' == $data[14] ) {
1332
- update_post_meta( $new_link_ID, 'link_no_follow', true );
1333
- } else {
1334
- update_post_meta( $new_link_ID, 'link_no_follow', false );
1335
- }
1336
 
1337
- if ( '1' == $data[16] ) {
1338
- update_post_meta( $new_link_ID, 'link_featured', true );
 
 
 
 
1339
  } else {
1340
- update_post_meta( $new_link_ID, 'link_featured', false );
1341
  }
1342
  } else {
1343
- $message[] = '4';
1344
  }
1345
  }
1346
  }
@@ -1350,13 +1487,18 @@ class link_library_plugin_admin {
1350
  $row -= 1;
1351
  }
1352
 
1353
- $message = '9';
1354
 
1355
  wp_suspend_cache_addition( false );
1356
  } elseif ( isset( $_POST['siteimport'] ) ) {
1357
  wp_suspend_cache_addition( true );
1358
  set_time_limit( 600 );
1359
 
 
 
 
 
 
1360
  $all_content = array();
1361
 
1362
  $post_args = array();
@@ -1386,7 +1528,7 @@ class link_library_plugin_admin {
1386
 
1387
  if ( 'allpagesposts' == $_POST['siteimportlinksscope']
1388
  || 'allpagespostscpt' == $_POST['siteimportlinksscope'] ) {
1389
-
1390
  $post_args = array();
1391
 
1392
  if ( 'allpagesposts' == $_POST['siteimportlinksscope'] ) {
@@ -1403,7 +1545,7 @@ class link_library_plugin_admin {
1403
  }
1404
  }
1405
  }
1406
-
1407
  foreach ( $post_types as $post_type ) {
1408
  if ( 'specific' . $post_type == $_POST['siteimportlinksscope'] ) {
1409
  $post_args = array();
@@ -1418,349 +1560,144 @@ class link_library_plugin_admin {
1418
  }
1419
 
1420
  foreach ( $all_content as $content_item ) {
1421
- $row++;
1422
  $dom = new DOMDocument;
1423
  $dom->loadHTML( $content_item );
1424
  foreach ( $dom->getElementsByTagName( 'a' ) as $node ) {
1425
  $incomingcatdata = $_POST['siteimportcat'];
1426
 
1427
  if ( isset( $_POST['siteimportupdatesameurl'] ) ) {
1428
- $find_post_args = array( 'post_type' => 'link_library_links',
1429
- 'meta_key' => 'link_url',
1430
- 'meta_value' => esc_url( $node->getAttribute( "href" ) ),
1431
- 'numberposts' => 1 );
1432
-
1433
- $posts_same_url_array = get_posts( $find_post_args );
1434
-
1435
- if ( !empty( $posts_same_url_array ) ) {
1436
- $existing_link_post_id = $posts_same_url_array[0]->ID;
 
 
 
 
 
 
 
 
 
 
 
 
 
1437
  }
1438
  }
1439
-
1440
- $new_link_data = array(
1441
- 'post_type' => 'link_library_links',
1442
- 'post_content' => '',
1443
- 'post_title' => esc_html( $node->nodeValue ),
1444
- 'tax_input' => array( 'link_library_category' => $incomingcatdata ),
1445
- 'post_status' => 'publish'
1446
- );
1447
-
1448
- if ( !empty( $existing_link_post_id ) ) {
1449
- $new_link_data['ID'] = $existing_link_post_id;
1450
- $new_link_ID = wp_insert_post( $new_link_data );
1451
- $successfulupdate++;
1452
- } else {
1453
- $new_link_ID = wp_insert_post( $new_link_data );
1454
- $successfulimport++;
1455
- }
1456
-
1457
- update_post_meta( $new_link_ID, 'link_url', esc_url( $node->getAttribute( "href" ) ) );
1458
- update_post_meta( $new_link_ID, 'link_image', '' );
1459
- update_post_meta( $new_link_ID, 'link_target', '' );
1460
- update_post_meta( $new_link_ID, 'link_description', '' );
1461
- update_post_meta( $new_link_ID, 'link_rating', 0 );
1462
-
1463
- update_post_meta( $new_link_ID, 'link_updated', current_time( 'timestamp' ) );
1464
-
1465
- update_post_meta( $new_link_ID, 'link_notes', '' );
1466
- update_post_meta( $new_link_ID, 'link_rss', '' );
1467
- update_post_meta( $new_link_ID, 'link_second_url', '' );
1468
- update_post_meta( $new_link_ID, 'link_telephone', '' );
1469
- update_post_meta( $new_link_ID, 'link_email', '' );
1470
-
1471
- if ( empty( $existing_link_post_id ) ) {
1472
- update_post_meta( $new_link_ID, 'link_visits', 0 );
1473
- }
1474
-
1475
- update_post_meta( $new_link_ID, 'link_reciprocal', '' );
1476
- update_post_meta( $new_link_ID, 'link_textfield', '' );
1477
- update_post_meta( $new_link_ID, 'link_no_follow', false );
1478
- update_post_meta( $new_link_ID, 'link_featured', false );
1479
-
1480
- update_post_meta( $new_link_ID, 'legacy_link_id', $newlinkid );
1481
  }
1482
  }
1483
- $message = '9';
1484
 
1485
  wp_suspend_cache_addition( false );
1486
- } elseif ( isset( $_POST['exportalllinks'] ) ) {
1487
  $upload_dir = wp_upload_dir();
1488
-
1489
  if ( is_writable( $upload_dir['path'] ) ) {
1490
- $myFile = $upload_dir['path'] . "/LinksExport.csv";
1491
  $fh = fopen( $myFile, 'w' ) or die( "can't open file" );
1492
 
1493
- $links_query_args = array( 'post_type' => 'link_library_links', 'posts_per_page' => -1 );
 
 
 
1494
 
1495
- $links_to_export = new WP_Query( $links_query_args );
 
 
1496
 
1497
- if ( $links_to_export->have_posts() ) {
1498
- $link_items = array();
1499
- while ( $links_to_export->have_posts() ) {
1500
- $link_object = array();
1501
- $links_to_export->the_post();
1502
 
1503
- $link_cats = '';
1504
- $link_categories = wp_get_post_terms( get_the_ID(), 'link_library_category' );
1505
- if ( $link_categories ) {
1506
- $countcats = 0;
1507
- foreach ( $link_categories as $link_category ) {
1508
- if ( $countcats >= 1 ) {
1509
- $link_cats .= ', ';
1510
- }
1511
- $link_cats .= $link_category->name;
1512
- $countcats++;
1513
- }
1514
- }
1515
 
1516
- $link_object['link_name'] = get_the_title();
1517
- $link_object['link_url'] = get_post_meta( get_the_ID(), 'link_url', true );
1518
- $link_object['link_categories'] = $link_cats;
1519
- $link_object['link_rss'] = get_post_meta( get_the_ID(), 'link_rss', true );
1520
- $link_object['link_description'] = get_post_meta( get_the_ID(), 'link_description', true );
1521
- $link_object['link_notes'] = get_post_meta( get_the_ID(), 'link_notes', true );
1522
- $link_object['link_textfield'] = get_post_meta( get_the_ID(), 'link_textfield', true );
1523
- $link_object['link_target'] = get_post_meta( get_the_ID(), 'link_target', true );
1524
- $link_object['link_status'] = get_post_status();
1525
- $link_object['link_second_url'] = get_post_meta( get_the_ID(), 'link_second_url', true );
1526
- $link_object['link_telephone'] = get_post_meta( get_the_ID(), 'link_telephone', true );
1527
- $link_object['link_email'] = get_post_meta( get_the_ID(), 'link_email', true );
1528
- $link_object['link_reciprocal'] = get_post_meta( get_the_ID(), 'link_reciprocal', true );
1529
- $link_object['link_image'] = get_post_meta( get_the_ID(), 'link_image', true );
1530
- $link_object['link_textfield'] = get_post_meta( get_the_ID(), 'link_textfield', true );
1531
- $link_object['link_no_follow'] = get_post_meta( get_the_ID(), 'link_no_follow', true );
1532
- $link_object['link_rating'] = get_post_meta( get_the_ID(), 'link_rating', true );
1533
- $link_object['link_target'] = get_post_meta( get_the_ID(), 'link_target', true );
1534
- $link_object['link_featured'] = get_post_meta( get_the_ID(), 'link_featured', true );
1535
- $link_object['link_updated'] = date( 'Y-m-d', get_post_meta( get_the_ID(), 'link_updated', true ) );
1536
-
1537
- $link_items[] = $link_object;
1538
- }
1539
  }
1540
 
1541
- if ( $link_items ) {
1542
- $headerrow = array();
1543
 
1544
- foreach ( $link_items[0] as $key => $option ) {
1545
- $headerrow[] = '"' . $key . '"';
1546
- }
1547
 
1548
- $headerdata = join( ',', $headerrow ) . "\n";
1549
- fwrite( $fh, $headerdata );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1550
 
1551
- foreach ( $link_items as $link_item ) {
1552
- $datarow = array();
1553
- foreach ( $link_item as $key => $value ) {
1554
- $datarow[] = '"' . $value . '"';
 
 
 
 
 
 
 
 
 
 
1555
  }
1556
- $data = join( ',', $datarow ) . "\n";
1557
- fwrite( $fh, $data );
1558
  }
 
1559
 
1560
- fclose( $fh );
 
1561
 
1562
- if ( file_exists( $myFile ) ) {
1563
- header( 'Content-Description: File Transfer' );
1564
- header( 'Content-Type: application/octet-stream' );
1565
- header( 'Content-Disposition: attachment; filename=' . basename( $myFile ) );
1566
- header( 'Expires: 0' );
1567
- header( 'Cache-Control: must-revalidate' );
1568
- header( 'Pragma: public' );
1569
- header( 'Content-Length: ' . filesize( $myFile ) );
1570
- readfile( $myFile );
1571
- exit;
1572
- }
1573
  }
 
 
1574
  } else {
1575
- $message = '3';
1576
  }
1577
  } else {
 
 
 
 
 
 
 
1578
  $genoptions = get_option( 'LinkLibraryGeneral' );
1579
 
1580
  foreach (
1581
  array(
1582
- 'numberstylesets', 'includescriptcss', 'pagetitleprefix', 'pagetitlesuffix', 'schemaversion', 'thumbshotscid', 'approvalemailtitle',
1583
- 'moderatorname', 'moderatoremail', 'rejectedemailtitle', 'approvalemailbody', 'rejectedemailbody', 'moderationnotificationtitle',
1584
- 'linksubmissionthankyouurl', 'recipcheckaddress', 'imagefilepath', 'catselectmethod', 'expandiconpath', 'collapseiconpath', 'updatechannel',
1585
- 'extraprotocols', 'thumbnailsize', 'thumbnailgenerator', 'rsscachedelay', 'single_link_layout', 'rolelevel', 'editlevel'
1586
- ) as $option_name
 
 
1587
  ) {
1588
  if ( isset( $_POST[$option_name] ) ) {
1589
- $genoptions[$option_name] = $_POST[$option_name];
1590
  }
1591
  }
1592
 
1593
- if ( isset( $_POST['captchagenerator'] ) && 'recaptcha' == $_POST['captchagenerator'] ) {
1594
- if ( empty( $_POST['recaptchasitekey'] ) || empty( $_POST['recaptchasecretkey'] ) ) {
1595
- $genoptions['captchagenerator'] = 'easycaptcha';
1596
- $message = 4;
1597
- } else {
1598
- $genoptions['captchagenerator'] = 'recaptcha';
1599
- $genoptions['recaptchasitekey'] = sanitize_text_field( $_POST['recaptchasitekey'] );
1600
- $genoptions['recaptchasecretkey'] = sanitize_text_field( $_POST['recaptchasecretkey'] );
1601
- }
1602
- } elseif ( isset( $_POST['captchagenerator'] ) && 'easycaptcha' == $_POST['captchagenerator'] ) {
1603
- $genoptions['captchagenerator'] = 'easycaptcha';
1604
- $genoptions['recaptchasitekey'] = '';
1605
- $genoptions['recaptchasecretkey'] = '';
1606
- }
1607
-
1608
- foreach ( array( 'debugmode', 'emaillinksubmitter', 'suppressemailfooter', 'usefirstpartsubmittername', 'hidedonation' ) as $option_name ) {
1609
- if ( isset( $_POST[$option_name] ) ) {
1610
- $genoptions[$option_name] = true;
1611
- } else {
1612
- if ( $option_name != 'hidedonation' ) {
1613
- $genoptions[$option_name] = false;
1614
- }
1615
- }
1616
- }
1617
-
1618
- update_option( 'LinkLibraryGeneral', $genoptions );
1619
-
1620
- update_option( 'links_updated_date_format', $_POST['links_updated_date_format'] );
1621
- }
1622
-
1623
- //lets redirect the post request into get request (you may add additional params at the url, if you need to show save results
1624
- $redirecturl = remove_query_arg( array( 'message', 'importrowscount', 'successimportcount' ), $_POST['_wp_http_referer'] );
1625
-
1626
- if ( !empty( $message ) ) {
1627
- $redirecturl = add_query_arg( 'message', $message, $redirecturl );
1628
- }
1629
-
1630
- if ( isset( $_POST['currenttab'] ) ) {
1631
- $redirecturl = add_query_arg( 'currenttab', $_POST['currenttab'], $redirecturl );
1632
- }
1633
-
1634
- if ( isset( $row ) && $row != 0 ) {
1635
- $redirecturl = add_query_arg( 'importrowscount', $row, $redirecturl );
1636
- }
1637
-
1638
- if ( isset( $successfulimport ) && $successfulimport != 0 ) {
1639
- $redirecturl = add_query_arg( 'successimportcount', $successfulimport, $redirecturl );
1640
- }
1641
-
1642
- if ( isset( $successfulupdate ) && $successfulupdate != 0 ) {
1643
- $redirecturl = add_query_arg( 'successupdatecount', $successfulupdate, $redirecturl );
1644
- }
1645
-
1646
- wp_redirect( $redirecturl );
1647
- exit;
1648
- }
1649
-
1650
- function ll_post_exists( $id ) {
1651
- return is_string( get_post_status( $id ) );
1652
- }
1653
-
1654
- //executed if the post arrives initiated by pressing the submit button of form
1655
- function on_save_changes_settingssets() {
1656
- //user permission check
1657
- if ( !current_user_can( 'manage_options' ) ) {
1658
- wp_die( __( 'Not allowed', 'link-library' ) );
1659
- }
1660
- //cross check the given referer
1661
- check_admin_referer( 'link-library' );
1662
-
1663
- if ( isset( $_POST['exportsettings'] ) ) {
1664
- $upload_dir = wp_upload_dir();
1665
- if ( is_writable( $upload_dir['path'] ) ) {
1666
- $myFile = $upload_dir['path'] . "/SettingSet" . $_POST['settingsetid'] . "Export.csv";
1667
- $fh = fopen( $myFile, 'w' ) or die( "can't open file" );
1668
-
1669
- $sourcesettingsname = 'LinkLibraryPP' . $_POST['settingsetid'];
1670
- $sourceoptions = get_option( $sourcesettingsname );
1671
-
1672
- $headerrow = array();
1673
-
1674
- foreach ( $sourceoptions as $key => $option ) {
1675
- $headerrow[] = '"' . $key . '"';
1676
- }
1677
-
1678
- $headerdata = join( ',', $headerrow ) . "\n";
1679
- fwrite( $fh, $headerdata );
1680
-
1681
- $datarow = array();
1682
-
1683
- foreach ( $sourceoptions as $key => $option ) {
1684
- $datarow[] = '"' . $option . '"';
1685
- }
1686
-
1687
- $data = join( ',', $datarow ) . "\n";
1688
- fwrite( $fh, $data );
1689
-
1690
- fclose( $fh );
1691
-
1692
- if (file_exists($myFile)) {
1693
- header('Content-Description: File Transfer');
1694
- header('Content-Type: application/octet-stream');
1695
- header('Content-Disposition: attachment; filename='.basename($myFile));
1696
- header('Expires: 0');
1697
- header('Cache-Control: must-revalidate');
1698
- header('Pragma: public');
1699
- header('Content-Length: ' . filesize($myFile));
1700
- readfile($myFile);
1701
- exit;
1702
- }
1703
- } else {
1704
- $messages[] = '6';
1705
- }
1706
- } elseif ( isset( $_POST['importsettings'] ) ) {
1707
- if ( $_FILES['settingsfile']['tmp_name'] != "" ) {
1708
- $handle = fopen( $_FILES['settingsfile']['tmp_name'], "r" );
1709
-
1710
- $row = 1;
1711
- $optionnames = array();
1712
- $options = array();
1713
-
1714
- while ( ( $data = fgetcsv( $handle, 5000, "," ) ) !== false ) {
1715
- if ( $row == 1 ) {
1716
- $optionnames = $data;
1717
- $row ++;
1718
- } else if ( $row == 2 ) {
1719
- for ( $counter = 0; $counter <= count( $data ) - 1; $counter ++ ) {
1720
- $options[$optionnames[$counter]] = $data[$counter];
1721
- }
1722
- $row ++;
1723
- }
1724
- }
1725
-
1726
- if ( $options != "" ) {
1727
- $settingsname = 'LinkLibraryPP' . $_POST['settingsetid'];
1728
-
1729
- update_option( $settingsname, $options );
1730
-
1731
- $messages[] = '7';
1732
- }
1733
-
1734
- fclose( $handle );
1735
- } else {
1736
- $messages[] = '8';
1737
- }
1738
- } else {
1739
- $settingsetid = $_POST['settingsetid'];
1740
- $settings = $_POST['settingsetid'];
1741
-
1742
- $settingsname = 'LinkLibraryPP' . $settingsetid;
1743
-
1744
- $options = get_option( $settingsname );
1745
-
1746
- $genoptions = get_option( 'LinkLibraryGeneral' );
1747
-
1748
- foreach (
1749
- array(
1750
- 'order', 'table_width', 'num_columns', 'position',
1751
- 'beforecatlist1', 'beforecatlist2', 'beforecatlist3', 'catnameoutput', 'linkaddfrequency',
1752
- 'defaultsinglecat_cpt', 'rsspreviewcount', 'rssfeedinlinecount', 'linksperpage', 'catdescpos',
1753
- 'catlistdescpos', 'rsspreviewwidth', 'rsspreviewheight', 'numberofrssitems',
1754
- 'displayweblink', 'sourceweblink', 'showtelephone', 'sourcetelephone', 'showemail', 'sourceimage', 'sourcename', 'popup_width', 'popup_height', 'rssfeedinlinedayspublished', 'tooltipname', 'childcatdepthlimit', 'showcurrencyplacement', 'tooltipname', 'showupdatedpos'
1755
- )
1756
- as $option_name
1757
- ) {
1758
- if ( isset( $_POST[$option_name] ) ) {
1759
- $options[$option_name] = str_replace( "\"", "'", strtolower( $_POST[$option_name] ) );
1760
- }
1761
- }
1762
-
1763
- foreach ( array( 'categorylist_cpt', 'excludecategorylist_cpt' ) as $option_name ) {
1764
  if ( isset( $_POST[$option_name] ) ) {
1765
  if ( $genoptions['catselectmethod'] == 'commalist' || empty( $genoptions['catselectmethod'] ) ) {
1766
  $options[$option_name] = str_replace( "\"", "'", strtolower( $_POST[$option_name] ) );
@@ -1774,7 +1711,7 @@ class link_library_plugin_admin {
1774
 
1775
  foreach (
1776
  array(
1777
- 'columnheaderoverride','linktarget', 'settingssetname', 'loadingicon',
1778
  'direction', 'linkdirection', 'linkorder', 'addnewlinkmsg', 'linknamelabel', 'linkaddrlabel', 'linkrsslabel',
1779
  'linkcatlabel', 'linkdesclabel', 'linknoteslabel', 'addlinkbtnlabel', 'newlinkmsg', 'moderatemsg', 'imagepos',
1780
  'imageclass', 'rssfeedtitle', 'rssfeeddescription', 'showonecatmode', 'linkcustomcatlabel', 'linkcustomcatlistentry',
@@ -1790,8 +1727,7 @@ class link_library_plugin_admin {
1790
  'showaddlinkreciprocal', 'showaddlinksecondurl', 'showaddlinktelephone', 'showaddlinkemail', 'showcustomcaptcha', 'showlinksubmittername',
1791
  'showaddlinksubmitteremail', 'showlinksubmittercomment', 'showuserlargedescription', 'cat_letter_filter', 'beforefirstlink', 'afterlastlink',
1792
  'searchfieldtext', 'catfilterlabel', 'searchnoresultstext', 'addlinkdefaultcat', 'beforesubmittername', 'aftersubmittername',
1793
- 'beforecatdesc', 'aftercatdesc', 'displayastable', 'extraquerystring', 'emailextracontent', 'beforelinktags', 'afterlinktags', 'beforelinkprice', 'afterlinkprice', 'linkcurrency',
1794
- 'toppagetext', 'updatedlabel', 'weblinktarget'
1795
  ) as $option_name
1796
  ) {
1797
  if ( isset( $_POST[$option_name] ) ) {
@@ -1809,9 +1745,7 @@ class link_library_plugin_admin {
1809
  'showlargedescription', 'addlinknoaddress', 'featuredfirst', 'usetextareaforusersubmitnotes', 'showcatonsearchresults', 'shownameifnoimage',
1810
  'enable_link_popup', 'nocatonstartup', 'showlinksonclick', 'showinvisibleadmin', 'combineresults', 'showifreciprocalvalid',
1811
  'cat_letter_filter_autoselect', 'cat_letter_filter_showalloption', 'emailsubmitter', 'addlinkakismet', 'rssfeedinlineskipempty',
1812
- 'current_user_links', 'showsubmittername', 'onereciprocaldomain', 'nooutputempty', 'showcatdesc', 'hidechildcatlinks',
1813
- 'hidechildcattop', 'catlinkspermalinksmode', 'showbreadcrumbspermalinks', 'showlinktags', 'showlinkprice', 'show0asfree',
1814
- 'allowcolumnsorting', 'showsearchreset'
1815
  )
1816
  as $option_name
1817
  ) {
@@ -1843,14 +1777,24 @@ class link_library_plugin_admin {
1843
  update_option( $settingsname, $options );
1844
  $messages[] = "1";
1845
 
1846
- if ( !empty( $options['categorylist_cpt'] ) ) {
1847
- $categoryids = explode( ',', $options['categorylist_cpt'] );
 
 
1848
 
1849
  foreach ( $categoryids as $categoryid ) {
1850
- $link_categories_query_args = array( 'hide_empty' => false );
 
 
 
 
 
1851
 
1852
- $link_categories_query_args['include'] = array( $categoryid );
1853
- $catnames = get_terms( 'link_library_category', $link_categories_query_args );
 
 
 
1854
 
1855
  if ( !$catnames ) {
1856
  $messages[] = '2';
@@ -1858,14 +1802,22 @@ class link_library_plugin_admin {
1858
  }
1859
  }
1860
 
1861
- if ( !empty( $options['excludecategorylist_cpt'] ) ) {
1862
- $categoryids = explode( ',', $options['excludecategorylist_cpt'] );
1863
 
1864
  foreach ( $categoryids as $categoryid ) {
1865
- $link_categories_query_args = array( 'hide_empty' => false );
 
 
 
 
 
1866
 
1867
- $link_categories_query_args['include'] = array( $categoryid );
1868
- $catnames = get_terms( 'link_library_category', $link_categories_query_args );
 
 
 
1869
 
1870
  if ( !$catnames ) {
1871
  $messages[] = '3';
@@ -1878,27 +1830,37 @@ class link_library_plugin_admin {
1878
 
1879
  //lets redirect the post request into get request (you may add additional params at the url, if you need to show save results
1880
  $messagelist = implode( ",", $messages );
 
 
 
 
 
 
 
 
 
 
 
 
 
1881
 
1882
- $redirecturl = add_query_arg( array( 'post_type' => 'link_library_links', 'currenttab' => $_POST['currenttab'], 'page' => 'link-library-settingssets' ), admin_url( 'edit.php' ) );
1883
-
1884
- if ( isset( $row ) && $row != 0 ) {
1885
- $redirecturl = add_query_arg( 'importrowscount', $row, $redirecturl );
1886
  }
1887
 
1888
- if ( isset( $successfulimport ) && $successfulimport != 0 ) {
1889
- $redirecturl = add_query_arg( 'successimportcount', $successfulimport, $redirecturl );
1890
  }
1891
 
1892
- if ( isset( $successfulupdate ) && $successfulupdate != 0 ) {
1893
- $redirecturl = add_query_arg( 'successupdatecount', $successfulupdate, $redirecturl );
1894
  }
1895
 
1896
- if ( !empty( $message ) ) {
1897
- $redirecturl = add_query_arg( array( 'message' => $message ), $redirecturl );
1898
  }
1899
 
1900
  wp_redirect( $redirecturl );
1901
- exit;
1902
  }
1903
 
1904
  //executed if the post arrives initiated by pressing the submit button of form
@@ -1915,37 +1877,50 @@ class link_library_plugin_admin {
1915
  $genoptions = get_option( 'LinkLibraryGeneral' );
1916
 
1917
  if ( isset( $_POST['approvelinks'] ) && ( isset( $_POST['links'] ) && count( $_POST['links'] ) > 0 ) ) {
 
 
1918
  $section = 'moderate';
1919
 
1920
  foreach ( $_POST['links'] as $approved_link ) {
1921
- $link_data = get_post( $approved_link );
 
 
 
 
 
 
 
 
 
 
1922
 
1923
- if ( !empty( $link_data ) ) {
1924
- wp_update_post( array( 'ID' => $approved_link, 'post_status' => 'publish' ) );
 
 
 
1925
  }
1926
 
1927
- $submitter_email = get_post_meta( $approved_link, 'link_submitter_email', true );
1928
- $submitter_name = get_post_meta( $approved_link, 'link_submitter_name', true );
1929
- $link_url = get_post_meta( $approved_link, 'link_url', true );
1930
 
1931
- if ( $genoptions['emaillinksubmitter'] == true && !empty( $submitter_email ) ) {
1932
  if ( $genoptions['usefirstpartsubmittername'] == true ) {
1933
- $spacepos = strpos( $submitter_name, ' ' );
1934
  if ( $spacepos !== false ) {
1935
- $submitter_name = substr( $submitter_name, 0, $spacepos );
1936
  }
1937
  }
1938
 
1939
- $emailtitle = str_replace( '%linkname%', get_the_title( $approved_link ), $genoptions['approvalemailtitle'] );
1940
  $emailbody = nl2br( $genoptions['approvalemailbody'] );
1941
- $emailbody = str_replace( '%submittername%', stripslashes( $submitter_name ), stripslashes( $emailbody ) );
1942
- $emailbody = str_replace( '%linkname%', get_the_title( $approved_link ), $emailbody );
1943
- $emailbody = str_replace( '%linkurl%', $link_url, $emailbody );
1944
 
1945
  $headers = "MIME-Version: 1.0\r\n";
1946
  $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
1947
 
1948
- if ( !empty( $genoptions['moderatorname'] ) && !empty( $genoptions['moderatoremail'] ) ) {
1949
  $headers .= "From: \"" . $genoptions['moderatorname'] . "\" <" . $genoptions['moderatoremail'] . ">\n";
1950
  }
1951
 
@@ -1955,68 +1930,68 @@ class link_library_plugin_admin {
1955
  $message .= "<br /><br />" . __( 'Message generated by', 'link-library' ) . " <a href='http://ylefebvre.ca/wordpress-plugins/link-library/'>Link Library</a> for Wordpress";
1956
  }
1957
 
1958
- wp_mail( $submitter_email, $emailtitle, $message, $headers );
1959
 
1960
- do_action( 'link_library_approval_email', $approved_link );
1961
  }
1962
  }
1963
 
1964
  $message = '1';
1965
  } elseif ( isset( $_POST['deletelinks'] ) && ( isset( $_POST['links'] ) && count( $_POST['links'] ) > 0 ) ) {
 
 
1966
  $section = 'moderate';
1967
 
1968
  foreach ( $_POST['links'] as $approved_link ) {
1969
- $link_data = get_post( $approved_link );
 
 
1970
 
1971
- $submitter_email = get_post_meta( $approved_link, 'link_submitter_email', true );
1972
- $submitter_name = get_post_meta( $approved_link, 'link_submitter_name', true );
1973
- $link_url = get_post_meta( $approved_link, 'link_url', true );
1974
 
1975
- if ( $genoptions['emaillinksubmitter'] == true && !empty( $submitter_email ) ) {
1976
- if ( $genoptions['usefirstpartsubmittername'] == true ) {
1977
- $spacepos = strpos( $submitter_name, ' ' );
1978
- if ( $spacepos !== false ) {
1979
- $submitter_name = substr( $submitter_name, 0, $spacepos );
1980
- }
1981
- }
1982
 
1983
- $emailtitle = str_replace( '%linkname%', get_the_title( $approved_link ), $genoptions['rejectedemailtitle'] );
 
1984
  $emailbody = nl2br( $genoptions['rejectedemailbody'] );
1985
- $emailbody = str_replace( '%submittername%', stripslashes( $submitter_name ), stripslashes( $emailbody ) );
1986
- $emailbody = str_replace( '%linkname%', get_the_title( $approved_link ), $emailbody );
1987
- $emailbody = str_replace( '%linkurl%', $link_url, $emailbody );
1988
 
1989
  $headers = "MIME-Version: 1.0\r\n";
1990
  $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
1991
 
1992
- if ( !empty( $genoptions['moderatorname'] ) && !empty( $genoptions['moderatoremail'] ) ) {
1993
  $headers .= "From: \"" . $genoptions['moderatorname'] . "\" <" . $genoptions['moderatoremail'] . ">\n";
1994
  }
1995
 
1996
  $message = $emailbody;
 
 
 
 
1997
 
1998
- $message .= "<br /><br />" . __( 'Message generated by', 'link-library' ) . " <a href='http://ylefebvre.ca/wordpress-plugins/link-library/'>Link Library</a> for Wordpress";
1999
-
2000
- wp_mail( $submitter_email, $emailtitle, $message, $headers );
2001
 
2002
- do_action( 'link_library_rejection_email', $approved_link );
2003
  }
2004
 
2005
- wp_delete_post( $approved_link );
2006
  }
2007
 
2008
  $message = '2';
2009
  }
2010
 
2011
- $redirecturl = remove_query_arg( array( 'message' ), $_POST['_wp_http_referer'] );
2012
 
2013
- if ( !empty( $message ) ) {
2014
- $redirecturl = add_query_arg( 'message', $message, $redirecturl );
 
 
2015
  }
2016
 
2017
  //lets redirect the post request into get request (you may add additional params at the url, if you need to show save results
2018
  wp_redirect( $redirecturl );
2019
- exit;
2020
  }
2021
 
2022
  function on_save_changes_stylesheet() {
@@ -2049,10 +2024,7 @@ class link_library_plugin_admin {
2049
  }
2050
 
2051
  //lets redirect the post request into get request (you may add additional params at the url, if you need to show save results
2052
- $redirect_url = remove_query_arg( array( 'message' ), $_POST['_wp_http_referer'] );
2053
- $redirect_url = add_query_arg( 'message', $message, $redirect_url );
2054
- wp_redirect( $redirect_url );
2055
- exit;
2056
  }
2057
 
2058
  function on_save_changes_reciprocal() {
@@ -2082,11 +2054,14 @@ class link_library_plugin_admin {
2082
  $message = 4;
2083
  }
2084
 
 
 
 
 
 
 
2085
  //lets redirect the post request into get request (you may add additional params at the url, if you need to show save results
2086
- $redirect_url = remove_query_arg( array( 'message' ), $_POST['_wp_http_referer'] );
2087
- $redirect_url = add_query_arg( 'message', $message, $redirect_url );
2088
- wp_redirect( $redirect_url );
2089
- exit;
2090
  }
2091
 
2092
  function general_meta_box( $data ) {
@@ -2101,10 +2076,6 @@ class link_library_plugin_admin {
2101
  <td>
2102
  <input type='hidden' value='<?php echo $genoptions['schemaversion']; ?>' name='schemaversion' id='schemaversion' />
2103
  <table>
2104
- <tr>
2105
- <td><?php _e( 'Link Library 6.0 Beta', 'link-library' ); ?></td>
2106
- <td><input type="submit" id="ll60reupdate" name="ll60reupdate" value="<?php _e( 'Re-import links', 'link-library' ); ?>" /></td>
2107
- </tr>
2108
  <?php if ( !is_multisite() ) { ?>
2109
  <tr>
2110
  <td><?php _e( 'Update channel', 'link-library' ); ?></td>
@@ -2123,7 +2094,7 @@ class link_library_plugin_admin {
2123
  <tr>
2124
  <td><?php _e( 'Number of Libraries', 'link-library' ); ?></td>
2125
  <td>
2126
- <input type="text" id="numberstylesets" name="numberstylesets" size="5" value="<?php if ( empty( $genoptions['numberstylesets'] ) ) {
2127
  echo '1';
2128
  }
2129
  echo $genoptions['numberstylesets']; ?>" /></td>
@@ -2176,7 +2147,9 @@ class link_library_plugin_admin {
2176
  <tr>
2177
  <td><?php _e( 'Debug Mode', 'link-library' ); ?></td>
2178
  <td>
2179
- <input type="checkbox" id="debugmode" name="debugmode" <?php checked( $genoptions['debugmode'] ); ?>/></td>
 
 
2180
  </tr>
2181
  <tr>
2182
  <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>
@@ -2282,6 +2255,12 @@ class link_library_plugin_admin {
2282
  <td>
2283
  <input type="text" id="rsscachedelay" name="rsscachedelay" size="5" value="<?php echo intval( $genoptions['rsscachedelay'] ); ?>" /></td>
2284
  </tr>
 
 
 
 
 
 
2285
  </table>
2286
  </td>
2287
  <?php if ( isset( $genoptions['hidedonation'] ) && !$genoptions['hidedonation'] ) { ?>
@@ -2318,21 +2297,6 @@ class link_library_plugin_admin {
2318
  <?php
2319
  }
2320
 
2321
- function general_singleitemlayout_meta_box( $data ) {
2322
- $genoptions = $data['genoptions'];
2323
- ?>
2324
- <div style='padding-top:15px' id="ll-singleitem" class="content-section">
2325
- <?php
2326
- $editorsettings = array( 'media_buttons' => false,
2327
- 'textarea_rows' => 15,
2328
- 'textarea_name' => 'single_link_layout',
2329
- 'wpautop' => false );
2330
-
2331
- wp_editor( isset( $genoptions['single_link_layout'] ) ? stripslashes( $genoptions['single_link_layout'] ) : '', 'single_link_layout', $editorsettings ); ?>
2332
- </div>
2333
- <?php
2334
- }
2335
-
2336
  function general_image_meta_box( $data ) {
2337
  $genoptions = $data['genoptions'];
2338
  ?>
@@ -2379,6 +2343,12 @@ class link_library_plugin_admin {
2379
  <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>
2380
  </td>
2381
  </tr>
 
 
 
 
 
 
2382
  <tr>
2383
  <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>
2384
  <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' ); ?>.'>
@@ -2394,17 +2364,23 @@ class link_library_plugin_admin {
2394
  <tr>
2395
  <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>
2396
  <td style='width:75px;padding-right:20px'>
2397
- <input type="checkbox" id="emaillinksubmitter" name="emaillinksubmitter" <?php checked( $genoptions['emaillinksubmitter'] ); ?>/></td>
 
 
2398
  </tr>
2399
  <tr>
2400
  <td class='lltooltip' style='width:250px'><?php _e( 'Suppress Link Library message in e-mail footer', 'link-library' ); ?></td>
2401
  <td style='width:75px;padding-right:20px'>
2402
- <input type="checkbox" id="suppressemailfooter" name="suppressemailfooter" <?php checked( $genoptions['suppressemailfooter'] ); ?>/></td>
 
 
2403
  </tr>
2404
  <tr>
2405
  <td style='width:250px'><?php _e( 'Only use first part of submitter name', 'link-library' ); ?></td>
2406
  <td style='width:75px;padding-right:20px'>
2407
- <input type="checkbox" id="usefirstpartsubmittername" name="usefirstpartsubmittername" <?php checked( $genoptions['usefirstpartsubmittername'] ); ?>/></td>
 
 
2408
  </tr>
2409
  <tr>
2410
  <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>
@@ -2448,97 +2424,20 @@ class link_library_plugin_admin {
2448
  }
2449
 
2450
  function general_hide_donation_meta_box() {
2451
- ?>
2452
- <div style='padding-top:15px' id="ll-hidedonation" class="content-section">
2453
  <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>
2454
  <table>
2455
  <tr>
2456
  <td class='lltooltip'><?php _e( 'Hide Donation and Support Links', 'link-library' ); ?></td>
2457
  <td>
2458
- <input type="checkbox" id="hidedonation" name="hidedonation" <?php checked( isset( $genoptions['hidedonation'] ) && $genoptions['hidedonation'] ); ?>/></td>
 
 
2459
  </tr>
2460
  </table>
2461
- </div>
2462
- <?php
2463
- }
2464
-
2465
- function general_importexport_meta_box() {
2466
- require_once plugin_dir_path( __FILE__ ) . 'wp_dropdown_posts.php';
2467
- ?>
2468
- <div style='padding-top:15px' id="ll-importexport" class="content-section">
2469
- <table>
2470
- <tr>
2471
- <td><?php _e( 'Export all links to a CSV file', 'link-library' ); ?></td>
2472
- <td>
2473
- <input type="submit" id="exportalllinks" name="exportalllinks" value="<?php _e( 'Export All Links', 'link-library' ); ?>" />
2474
- </td>
2475
- </tr>
2476
- </table>
2477
- <hr />
2478
- <table>
2479
- <tr>
2480
- <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>)
2481
- </td>
2482
- <td><input size="80" name="linksfile" type="file" /></td>
2483
- <td><input type="submit" name="importlinks" value="<?php _e( 'Import Links from CSV', 'link-library' ); ?>" />
2484
- </td>
2485
- </tr>
2486
- <tr>
2487
- <td><?php _e( 'First row contains column headers', 'link-library' ); ?></td>
2488
- <td><input type="checkbox" id="firstrowheaders" name="firstrowheaders" checked="checked" /></td>
2489
- </tr>
2490
- <tr>
2491
- <td><?php _e( 'Update items when URL is identical', 'link-library' ); ?></td>
2492
- <td><input type="checkbox" id="updatesameurl" name="updatesameurl" checked="checked" /></td>
2493
- </tr>
2494
- </table>
2495
- <hr />
2496
-
2497
- <table>
2498
- <tr>
2499
- <td style='width: 230px'><?php _e( 'Import links from site pages', 'link-library' ); ?></td>
2500
- <td style='width: 350px'><input type="radio" name="siteimportlinksscope" value="allpagesposts" checked> <?php _e( 'All Pages and Posts', 'link-library' ); ?><br />
2501
- <input type="radio" name="siteimportlinksscope" value="allpagespostscpt"> <?php _e( 'All Pages, Posts and Custom Post Types', 'link-library' ); ?><br />
2502
- <input type="radio" name="siteimportlinksscope" value="specificpage"> <?php _e( 'Specific Page', 'link-library' ); ?>
2503
- <?php wp_dropdown_pages(); ?><br />
2504
- <?php $post_count = wp_count_posts();
2505
- if ( $post_count->publish < 200 ) { ?>
2506
- <input type="radio" name="siteimportlinksscope" value="specificpost"> <?php _e( 'Specific Post', 'link-library' ); ?>
2507
- <?php wp_dropdown_posts(); ?><br />
2508
- <?php }
2509
- $site_post_types = get_post_types( array( '_builtin' => false ) );
2510
- if ( !empty( $site_post_types ) ) {
2511
- foreach( $site_post_types as $site_post_type ) {
2512
- $any_posts = get_posts( array( 'post_type' => $site_post_type ) );
2513
- if ( !empty( $any_posts ) && count( $any_posts ) < 200 ) {
2514
- if ( !empty( $any_posts ) ) {
2515
- $post_type_data = get_post_type_object( $site_post_type ); ?>
2516
-
2517
- <input type="radio" name="siteimportlinksscope" value="specific<?php echo $site_post_type; ?>"> <?php _e( 'Specific ' . $post_type_data->labels->singular_name, 'link-library' ); ?>
2518
- <?php wp_dropdown_posts( array( 'post_type' => $site_post_type, 'select_name' => $site_post_type . '_id' ) ); ?><br /><br />
2519
- <?php } }
2520
- }
2521
- }
2522
- ?>
2523
- <input type="checkbox" id="siteimportupdatesameurl" name="siteimportupdatesameurl" checked="checked" /> <?php _e( 'Update items when URL is identical', 'link-library' ); ?><br />
2524
-
2525
- <?php
2526
-
2527
- $linkcats = get_terms( 'link_library_category', array( 'hide_empty' => false ) );
2528
-
2529
- if ( $linkcats ) { ?>
2530
- Category for new links <select name="siteimportcat" id="siteimportcat">
2531
- <?php foreach ( $linkcats as $linkcat ) { ?>
2532
- <option value="<?php echo $linkcat->term_id; ?>"><?php echo $linkcat->name; ?></option>
2533
- <?php } ?>
2534
- </select>
2535
- <?php } ?>
2536
- </td>
2537
- <td><input type="submit" name="siteimport" value="<?php _e( 'Import Links from Site', 'link-library' ); ?>" /></td>
2538
- </tr>
2539
- </table>
2540
  </div>
2541
- <?php
2542
  }
2543
 
2544
  function general_save_meta_box() {
@@ -2569,41 +2468,48 @@ class link_library_plugin_admin {
2569
  <th style='width: 300px'><?php _e( 'Link URL', 'link-library' ); ?></th>
2570
  <th><?php _e( 'Link Description', 'link-library' ); ?></th>
2571
  </tr>
2572
- <?php
2573
- $links_query_args = array( 'post_type' => 'link_library_links', 'posts_per_page' => -1, 'post_status' => 'pending' );
2574
-
2575
- $links_to_export = new WP_Query( $links_query_args );
2576
-
2577
- if ( $links_to_export->have_posts() ) {
2578
- while ( $links_to_export->have_posts() ) {
2579
- $links_to_export->the_post();
2580
-
2581
- $link_url = esc_url( get_post_meta( get_the_ID(), 'link_url', true ) );
2582
- $link_description = esc_html( get_post_meta( get_the_ID(), 'link_description', true ) );
2583
- $link_categories = wp_get_post_terms( get_the_ID(), 'link_library_category' );
2584
- $link_cat_string = '';
2585
- if ( $link_categories ) {
2586
- $countcats = 0;
2587
- foreach ( $link_categories as $link_category ) {
2588
- if ( $countcats >= 1 ) {
2589
- $link_cat_string .= ', ';
2590
- }
2591
- $link_cat_string .= $link_category->name;
2592
- $countcats++;
2593
- }
2594
- } else {
2595
- echo 'None Assigned';
2596
- }
2597
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2598
  ?>
2599
  <tr style='background: #FFF'>
2600
- <td><input type="checkbox" name="links[]" value="<?php echo get_the_ID(); ?>" /></td>
2601
- <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>
2602
- <td><?php echo $link_cat_string; ?></td>
2603
- <td><?php echo "<a href='" . $link_url . "'>" . $link_url . "</a>"; ?></td>
2604
- <td><?php echo $link_description; ?></td>
2605
  </tr>
2606
- <?php
2607
  }
2608
  } else {
2609
  ?>
@@ -2663,7 +2569,7 @@ class link_library_plugin_admin {
2663
  <div>
2664
  <?php _e( 'Select Current Library Settings', 'link-library' ); ?> :
2665
  <SELECT id="settingsetlist" name="settingsetlist" style='width: 300px'>
2666
- <?php if ( empty( $genoptions['numberstylesets'] ) ) {
2667
  $numberofsets = 1;
2668
  } else {
2669
  $numberofsets = $genoptions['numberstylesets'];
@@ -2684,7 +2590,7 @@ class link_library_plugin_admin {
2684
  <?php $tempoptionname = "LinkLibraryPP" . $counter;
2685
  $tempoptions = get_option( $tempoptionname );
2686
  if ( $counter != $settings ):?>
2687
- <option value="<?php echo $counter ?>" <?php selected( $settings == $counter ); ?>><?php _e( 'Library', 'link-library' ); ?> <?php echo $counter ?><?php if ( $tempoptions != "" ) {
2688
  echo " (" . stripslashes( $tempoptions['settingssetname'] ) . ")";
2689
  } ?></option>
2690
  <?php endif;
@@ -2756,40 +2662,11 @@ class link_library_plugin_admin {
2756
  <?php
2757
  }
2758
 
2759
- function render_category_list( $categories, $select_name, $depth, $selected_items, $order ) {
2760
-
2761
- $output = '';
2762
-
2763
- if ( !empty( $categories ) ) {
2764
- if ( 0 == $depth ) {
2765
- $output .= '<select style="width:100%" id="' . $select_name . '" name="' . $select_name . '[]" multiple ' . disabled( empty( $options['categorylist_cpt'] ), true, false ) . '>';
2766
- }
2767
-
2768
- foreach ( $categories as $category ) {
2769
- $output .= '<option value="' . $category->term_id . '" ' . selected( in_array( $category->term_id, $selected_items ), true, false ) . ' >' . $category->name . '</option>';
2770
- $child_categories = get_terms( 'category', array( 'orderby' => 'name', 'parent' => $category->term_id, 'order' => $order, 'hide_empty' => false ) );
2771
-
2772
- if ( !empty( $child_categories ) ) {
2773
- $output .= render_category_list( $child_categories, $select_name, $depth + 1, $selected_items, $order );
2774
- }
2775
- }
2776
-
2777
- if ( 0 == $depth ) {
2778
- $output .= '</select>';
2779
- }
2780
-
2781
- } else {
2782
- $output .= _e( 'No link categories! Create some!', 'link-library' );
2783
- }
2784
-
2785
- return $output;
2786
- }
2787
-
2788
- function settingssets_common_meta_box( $data ) {
2789
- $options = $data['options'];
2790
- $settings = $data['settings'];
2791
- $genoptions = $data['genoptions'];
2792
- ?>
2793
 
2794
  <div style='padding-top: 15px' id="ll-common" class="content-section">
2795
  <input type='hidden' value='<?php echo $settings; ?>' name='settingsetid' id='settingsetid' />
@@ -2812,18 +2689,38 @@ class link_library_plugin_admin {
2812
  </td>
2813
  <?php if ( $genoptions['catselectmethod'] == 'commalist' || empty( $genoptions['catselectmethod'] ) ) { ?>
2814
  <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">
2815
- <input type="text" id="categorylist_cpt" name="categorylist_cpt" size="40" value="<?php echo $options['categorylist_cpt']; ?>" />
2816
  </td>
2817
  <?php
2818
  } else {
2819
- $top_categories = get_terms( 'link_library_category', array( 'orderby' => 'name', 'order' => $options['direction'], 'parent' => 0, 'hide_empty' => false ) );
 
 
 
 
 
 
 
 
 
2820
 
2821
- $categorylistarray = explode( ',', $options['categorylist_cpt'] );
2822
  ?>
2823
  <td>
2824
- <?php echo $this->render_category_list( $top_categories, 'categorylist_cpt', 0, $categorylistarray, $options['direction'] ); ?>
 
 
 
 
 
 
 
 
 
2825
  <?php _e( 'Show all categories', 'link-library' ); ?>
2826
- <input type="checkbox" id="nospecificcats" name="nospecificcats" <?php checked( empty( $options['categorylist_cpt'] ) ); ?>/>
 
 
2827
 
2828
  </td>
2829
  <?php } ?>
@@ -2834,16 +2731,27 @@ class link_library_plugin_admin {
2834
  </td>
2835
  <?php if ( $genoptions['catselectmethod'] == 'commalist' || empty( $genoptions['catselectmethod'] ) ) { ?>
2836
  <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">
2837
- <input type="text" id="excludecategorylist_cpt" name="excludecategorylist_cpt" size="40" value="<?php echo $options['excludecategorylist_cpt']; ?>" />
2838
  </td>
2839
  <?php
2840
  } else {
2841
- $excludecategorylistarray = explode( ',', $options['excludecategorylist_cpt'] );
2842
  ?>
2843
  <td>
2844
- <?php echo $this->render_category_list( $top_categories, 'excludecategorylist_cpt', 0, $excludecategorylistarray, $options['direction'] ); ?>
 
 
 
 
 
 
 
 
 
2845
  <?php _e( 'No Exclusions', 'link-library' ); ?>
2846
- <input type="checkbox" id="noexclusions" name="noexclusions" <?php checked( empty( $options['excludecategorylist_cpt'] ) ); ?>/>
 
 
2847
 
2848
  </td>
2849
  <?php } ?>
@@ -2853,20 +2761,32 @@ class link_library_plugin_admin {
2853
  <?php _e( 'Only show one category at a time', 'link-library' ); ?>
2854
  </td>
2855
  <td class="lltooltip" title="<?php _e( 'Only show one category of links at a time', 'link-library' ); ?>">
2856
- <input type="checkbox" id="showonecatonly" name="showonecatonly" <?php checked( $options['showonecatonly'] ); ?>/>
 
 
2857
  </td>
2858
  <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>
2859
  <td>
2860
  <select name="showonecatmode" id="showonecatmode" style="width:200px;">
2861
- <option value="AJAX"<?php selected( $options['showonecatmode'] == 'AJAX' || empty( $options['showonecatmode'] ) ); ?>>AJAX
 
 
2862
  </option>
2863
- <option value="HTMLGET"<?php selected( $options['showonecatmode'] == 'HTMLGET' ); ?>>HTML GET
 
 
2864
  </option>
2865
- <option value="HTMLGETSLUG"<?php selected( $options['showonecatmode'] == 'HTMLGETSLUG' ); ?>>HTML GET Using Slugs
 
 
2866
  </option>
2867
- <option value="HTMLGETCATNAME"<?php selected( $options['showonecatmode'] == 'HTMLGETCATNAME' ); ?>>HTML GET Using Category Name
 
 
2868
  </option>
2869
- <option value="HTMLGETPERM"<?php selected( $options['showonecatmode'] == 'HTMLGETPERM' ); ?>>HTML GET + Permalink
 
 
2870
  </option>
2871
  </select>
2872
  </td>
@@ -2876,18 +2796,20 @@ class link_library_plugin_admin {
2876
  <?php _e( 'Default category to be shown when only showing one at a time (numeric ID)', 'link-library' ); ?>
2877
  </td>
2878
  <td>
2879
- <input type="text" id="defaultsinglecat_cpt" name="defaultsinglecat_cpt" size="4" value="<?php echo $options['defaultsinglecat_cpt']; ?>" />
2880
  </td>
2881
- <td><?php _e( 'Hide category on start in single cat mode', 'link-library' ); ?></td>
2882
  <td>
2883
- <input type="checkbox" id="nocatonstartup" name="nocatonstartup" <?php checked( $options['nocatonstartup'] ); ?>/></td>
 
 
2884
  </tr>
2885
  <tr>
2886
  <td class="lltooltip" title="<?php _e( 'File path is relative to Link Library plugin directory', 'link-library' ); ?>">
2887
  <?php _e( 'Icon to display when performing AJAX queries', 'link-library' ); ?>
2888
  </td>
2889
  <td class="lltooltip" title="<?php _e( 'File path is relative to Link Library plugin directory', 'link-library' ); ?>">
2890
- <input type="text" id="loadingicon" name="loadingicon" size="40" value="<?php if ( empty( $options['loadingicon'] ) ) {
2891
  echo '/icons/Ajax-loader.gif';
2892
  } else {
2893
  echo strval( $options['loadingicon'] );
@@ -2899,7 +2821,9 @@ class link_library_plugin_admin {
2899
  <?php _e( 'Paginate Results', 'link-library' ); ?>
2900
  </td>
2901
  <td class="lltooltip" title='<?php _e( 'Only show a limited number of links and add page navigation links', 'link-library' ); ?>'>
2902
- <input type="checkbox" id="pagination" name="pagination" <?php checked( $options['pagination'] ); ?>/>
 
 
2903
  </td>
2904
  <td class="lltooltip" title="<?php _e( 'Number of Links to be Displayed per Page in Pagination Mode', 'link-library' ); ?>">
2905
  <?php _e( 'Links per Page', 'link-library' ); ?>
@@ -2914,26 +2838,31 @@ class link_library_plugin_admin {
2914
  </td>
2915
  <td>
2916
  <select name="paginationposition" id="paginationposition" style="width:200px;">
2917
- <option value="AFTER"<?php selected( $options['paginationposition'] == 'AFTER' || empty( $options['paginationposition'] ) ); ?>><?php _e( 'After Links', 'link-library' ); ?></option>
2918
- <option value="BEFORE"<?php selected( $options['paginationposition'] == 'BEFORE' ); ?>><?php _e( 'Before Links', 'link-library' ); ?></option>
 
 
 
 
2919
  </select>
2920
  </td>
2921
  <td>
2922
  <?php _e( 'Hide Results if Empty', 'link-library' ); ?>
2923
  </td>
2924
  <td>
2925
- <input type="checkbox" id="hide_if_empty" name="hide_if_empty" <?php checked( $options['hide_if_empty'] ); ?>/>
 
 
2926
  </td>
2927
  </tr>
2928
- <tr>
2929
- <td colspan="4"><hr /></td>
2930
- </tr>
2931
  <tr>
2932
  <td>
2933
  <?php _e( 'Enable Permalinks', 'link-library' ); ?>
2934
  </td>
2935
  <td>
2936
- <input type="checkbox" id="enablerewrite" name="enablerewrite" <?php checked( $options['enablerewrite'] ); ?>/>
 
 
2937
  </td>
2938
  <td>
2939
  <?php _e( 'Permalinks Page', 'link-library' ); ?>
@@ -2942,31 +2871,6 @@ class link_library_plugin_admin {
2942
  <input type="text" id="rewritepage" name="rewritepage" size="40" value="<?php echo $options['rewritepage']; ?>" />
2943
  </td>
2944
  </tr>
2945
- <tr>
2946
- <td>
2947
- <?php _e( 'Permalink Top Page Text', 'link-library' ); ?>
2948
- </td>
2949
- <td colspan="3" rows="8" cols="50">
2950
- <textarea name="toppagetext" style="width:90%"><?php echo $options['toppagetext']; ?></textarea>
2951
- </td>
2952
- </tr>
2953
- <tr>
2954
- <td>
2955
- <?php _e( 'Category links in permalinks mode', 'link-library' ); ?>
2956
- </td>
2957
- <td>
2958
- <input type="checkbox" id="catlinkspermalinksmode" name="catlinkspermalinksmode" <?php checked( $options['catlinkspermalinksmode'] ); ?>/>
2959
- </td>
2960
- <td>
2961
- <?php _e( 'Show breadcrumbs in permalinks mode', 'link-library' ); ?>
2962
- </td>
2963
- <td>
2964
- <input type="checkbox" id="showbreadcrumbspermalinks" name="showbreadcrumbspermalinks" <?php checked( $options['showbreadcrumbspermalinks'] ); ?>/>
2965
- </td>
2966
- </tr>
2967
- <tr>
2968
- <td colspan="4"><hr /></td>
2969
- </tr>
2970
  <tr>
2971
  <td><?php _e( 'Display alphabetic cat filter', 'link-library' ); ?></td>
2972
  <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' ) ); ?>
@@ -2997,11 +2901,11 @@ class link_library_plugin_admin {
2997
  jQuery(document).ready(function () {
2998
  jQuery('#nospecificcats').click(function () {
2999
  if (jQuery("#nospecificcats").is(":checked")) {
3000
- jQuery('#categorylist_cpt').prop('disabled', 'disabled');
3001
- jQuery("#categorylist_cpt").val([]);
3002
  }
3003
  else {
3004
- jQuery('#categorylist_cpt').prop('disabled', false);
3005
  }
3006
  });
3007
  });
@@ -3009,11 +2913,11 @@ class link_library_plugin_admin {
3009
  jQuery(document).ready(function () {
3010
  jQuery('#noexclusions').click(function () {
3011
  if (jQuery("#noexclusions").is(":checked")) {
3012
- jQuery('#excludecategorylist_cpt').prop('disabled', 'disabled');
3013
- jQuery("#excludecategorylist_cpt").val([]);
3014
  }
3015
  else {
3016
- jQuery('#excludecategorylist_cpt').prop('disabled', false);
3017
  }
3018
  });
3019
  });
@@ -3035,12 +2939,20 @@ class link_library_plugin_admin {
3035
  </td>
3036
  <td>
3037
  <select name="order" id="order" style="width:200px;">
3038
- <option value="name"<?php selected( $options['order'] == 'name' ); ?>><?php _e( 'Order by Name', 'link-library' ); ?></option>
3039
- <option value="id"<?php selected( $options['order'] == 'id' ); ?>><?php _e( 'Order by ID', 'link-library' ); ?></option>
 
 
 
 
3040
  <?php if ( $genoptions['catselectmethod'] == 'commalist' || empty( $genoptions['catselectmethod'] ) ) { ?>
3041
- <option value="catlist"<?php selected( $options['order'] == 'catlist' ); ?>><?php _e( 'Order of categories based on included category list', 'link-library' ); ?></option>
 
 
3042
  <?php } ?>
3043
- <option value="order"<?php selected( $options['order'] == 'order' ); ?>><?php _e( 'Order by', 'link-library' ); ?> 'My Link Order' <?php _e( 'Wordpress Plugin', 'link-library' ); ?></option>
 
 
3044
  </select>
3045
  </td>
3046
  <td style='width:100px'></td>
@@ -3199,13 +3111,13 @@ class link_library_plugin_admin {
3199
  <?php _e( 'Show Category Description', 'link-library' ); ?>
3200
  </td>
3201
  <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' ); ?>">
3202
- <input type="checkbox" id="showcategorydesclinks" name="showcategorydesclinks" <?php checked( $options['showcategorydesclinks'] ); ?>/>
 
 
3203
  <span style='margin-left: 17px'><?php _e( 'Position', 'link-library' ); ?>:</span>
3204
  <select name="catdescpos" id="catdescpos" style="width:100px;">
3205
  <option value="right"<?php selected( $options['catdescpos'] == 'right' ); ?>><?php _e( 'Right', 'link-library' ); ?></option>
3206
  <option value="left"<?php selected( $options['catdescpos'] == 'left' ); ?>><?php _e( 'Left', 'link-library' ); ?></option>
3207
- <option value="aftercatname"<?php selected( $options['catdescpos'] == 'aftercatname' ); ?>><?php _e( 'After Category Name', 'link-library' ); ?></option>
3208
- <option value="aftertoplevelcatname"<?php selected( $options['catdescpos'] == 'aftertoplevelcatname' ); ?>><?php _e( 'After Top-Level Category Name', 'link-library' ); ?></option>
3209
  </select>
3210
  </td>
3211
  </tr>
@@ -3271,7 +3183,7 @@ class link_library_plugin_admin {
3271
  <td>
3272
  <select name="displayastable" id="displayastable" style="width:200px;">
3273
  <option value="true"<?php selected( $options['displayastable'], 'true' ); ?>><?php _e( 'Table', 'link-library' ); ?></option>
3274
- <option value="false"<?php selected( !$options['displayastable'], 'false' ); ?>><?php _e( 'Unordered List', 'link-library' ); ?></option>
3275
  <option value="nosurroundingtags"<?php selected( $options['displayastable'], 'nosurroundingtags' ); ?>><?php _e( 'No surrounding tags', 'link-library' ); ?></option>
3276
  </select>
3277
  </td>
@@ -3291,59 +3203,42 @@ class link_library_plugin_admin {
3291
  <td>
3292
  <input type="checkbox" id="showcolumnheaders" name="showcolumnheaders" <?php checked( $options['showcolumnheaders'] ); ?>/>
3293
  </td>
 
3294
  <td>
3295
- <td>
3296
- <?php _e( 'Column Headers Override', 'link-library' ); ?>
3297
- </td>
3298
- <td>
3299
- <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']; ?>" />
3300
- </td>
3301
- </td>
3302
- </tr>
3303
- <tr>
3304
- <td>
3305
- <?php _e( 'Allow sorting through column headers', 'link-library' ); ?>
3306
  </td>
3307
  <td>
3308
- <input type="checkbox" id="allowcolumnsorting" name="allowcolumnsorting" <?php checked( $options['allowcolumnsorting'] ); ?>/>
3309
  </td>
3310
  </tr>
3311
  <tr>
3312
  <td>
3313
- <?php _e( 'Hide Category Names', 'link-library' ); ?>
3314
  </td>
3315
  <td>
3316
- <input type="checkbox" id="hidecategorynames" name="hidecategorynames" <?php checked( $options['hidecategorynames'] ); ?>/>
3317
  </td>
3318
  <td></td>
3319
  <td>
3320
- <?php _e( 'Show Hidden Links', 'link-library' ); ?>
3321
  </td>
3322
  <td>
3323
- <input type="checkbox" id="showinvisible" name="showinvisible" <?php checked( $options['showinvisible'] ); ?>/>
3324
  </td>
3325
  </tr>
3326
  <tr>
3327
  <td>
3328
- <?php _e( 'Hide links of children categories', 'link-library' ); ?>
3329
  </td>
3330
  <td>
3331
- <input type="checkbox" id="hidechildcatlinks" name="hidechildcatlinks" <?php checked( $options['hidechildcatlinks'] ); ?>/>
3332
  </td>
3333
  <td></td>
3334
  <td>
3335
- <?php _e( 'Child category depth limit', 'link-library' ); ?>
3336
- </td>
3337
- <td>
3338
- <input type="text" id="childcatdepthlimit" name="childcatdepthlimit" size="2" value="<?php echo $options['childcatdepthlimit']; ?>" />
3339
- </td>
3340
- </tr>
3341
- <tr>
3342
- <td>
3343
- <?php _e( 'Hide children categories on top page', 'link-library' ); ?>
3344
  </td>
3345
  <td>
3346
- <input type="checkbox" id="hidechildcattop" name="hidechildcattop" <?php checked( $options['hidechildcattop'] ); ?>/>
3347
  </td>
3348
  </tr>
3349
  <tr>
@@ -3375,20 +3270,19 @@ class link_library_plugin_admin {
3375
  <?php _e( 'Arrange the items below via drag-and-drop to order the various Link Library elements.', 'link-library' ); ?>
3376
  <br /><br />
3377
  <ul id="sortable">
3378
- <?php if ( empty( $options['dragndroporder'] ) ) {
3379
- $dragndroporder = '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16';
3380
  } else {
3381
  $dragndroporder = $options['dragndroporder'];
3382
  }
3383
-
3384
  $dragndroparray = explode( ',', $dragndroporder );
3385
 
3386
- $new_entries = array( '13', '14', '15', '16' );
 
 
3387
 
3388
- foreach ( $new_entries as $new_entry ) {
3389
- if ( !in_array( $new_entry, $dragndroparray ) ) {
3390
- $dragndroparray[] = $new_entry;
3391
- }
3392
  }
3393
 
3394
  if ( $dragndroparray ) {
@@ -3420,7 +3314,7 @@ class link_library_plugin_admin {
3420
  <?php break;
3421
  case 7:
3422
  ?>
3423
- <li id="7" style='background-color: #5ccccc'><?php _e( 'Web Link', 'link-library' ); ?></li>
3424
  <?php break;
3425
  case 8:
3426
  ?>
@@ -3450,14 +3344,6 @@ class link_library_plugin_admin {
3450
  ?>
3451
  <li id="14" style='background-color: #33eeff'><?php _e( 'Cat Desc', 'link-library' ); ?></li>
3452
  <?php break;
3453
- case 15:
3454
- ?>
3455
- <li id="15" style='background-color: #c4d1ee'><?php _e( 'Tags', 'link-library' ); ?></li>
3456
- <?php break;
3457
- case 16:
3458
- ?>
3459
- <li id="16" style='background-color: #238e00'><?php _e( 'Price', 'link-library' ); ?></li>
3460
- <?php break;
3461
  }
3462
  }
3463
  }
@@ -3504,19 +3390,20 @@ class link_library_plugin_admin {
3504
  <td style='background: #FFF'></td>
3505
  <td style='background: #FFF'></td>
3506
  </tr>
3507
- <?php if ( empty( $options['dragndroporder'] ) ) {
3508
- $dragndroporder = '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16';
3509
  } else {
3510
  $dragndroporder = $options['dragndroporder'];
3511
  }
 
3512
  $dragndroparray = explode( ',', $dragndroporder );
3513
 
3514
- $new_entries = array( '13', '14', '15', '16' );
 
 
3515
 
3516
- foreach ( $new_entries as $new_entry ) {
3517
- if ( !in_array( $new_entry, $dragndroparray ) ) {
3518
- $dragndroparray[] = $new_entry;
3519
- }
3520
  }
3521
 
3522
  if ( $dragndroparray ) {
@@ -3527,7 +3414,9 @@ class link_library_plugin_admin {
3527
  <tr>
3528
  <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>
3529
  <td style='text-align:center;background: #FFF'>
3530
- <input type="checkbox" id="show_images" name="show_images" <?php checked( $options['show_images'] );?>/>
 
 
3531
  </td>
3532
  <td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before each link image', 'link-library' ); ?>'>
3533
  <input type="text" id="beforeimage" name="beforeimage" size="22" value="<?php echo stripslashes( $options['beforeimage'] ); ?>" />
@@ -3540,8 +3429,12 @@ class link_library_plugin_admin {
3540
  </td>
3541
  <td style='background: #FFF'>
3542
  <select name="sourceimage" id="sourceimage" style="width:200px;">
3543
- <option value="primary"<?php selected( $options['sourceimage'] == "primary" ); ?>><?php _e( 'Primary', 'link-library' ); ?></option>
3544
- <option value="secondary"<?php selected( $options['sourceimage'] == "secondary" ); ?>><?php _e( 'Secondary', 'link-library' ); ?></option>
 
 
 
 
3545
  </select>
3546
  </td>
3547
  </tr>
@@ -3551,7 +3444,9 @@ class link_library_plugin_admin {
3551
  <tr>
3552
  <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>
3553
  <td style='text-align:center;background: #FFF'>
3554
- <input type="checkbox" id="showname" name="showname" <?php checked( $options['showname'] == true ); ?>/>
 
 
3555
  </td>
3556
  <td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before each link', 'link-library' ); ?>'>
3557
  <input type="text" id="beforelink" name="beforelink" size="22" value="<?php echo stripslashes( $options['beforelink'] ); ?>" />
@@ -3567,9 +3462,8 @@ class link_library_plugin_admin {
3567
  </td>
3568
  <td style='background: #FFF'>
3569
  <select name="sourcename" id="sourcename" style="width:200px;">
3570
- <option value="primary"<?php selected( $options['sourcename'] == "primary" ); ?>><?php _e( 'Primary', 'link-library' ); ?></option>
3571
- <option value="secondary"<?php selected( $options['sourcename'] == "secondary" ); ?>><?php _e( 'Secondary', 'link-library' ); ?></option>
3572
- <option value="permalink"<?php selected( $options['sourcename'] == "permalink" ); ?>><?php _e( 'Dedicated page', 'link-library' ); ?></option>
3573
  </select>
3574
  </td>
3575
  </tr>
@@ -3579,7 +3473,9 @@ class link_library_plugin_admin {
3579
  <tr>
3580
  <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>
3581
  <td style='background: #FFF;text-align:center' class="lltooltip" title='<?php _e( 'Check to display link date', 'link-library' ); ?>'>
3582
- <input type="checkbox" id="showdate" name="showdate" <?php checked( $options['showdate'] ); ?>/>
 
 
3583
  </td>
3584
  <td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before each date', 'link-library' ); ?>'>
3585
  <input type="text" id="beforedate" name="beforedate" size="22" value="<?php echo stripslashes( $options['beforedate'] ); ?>" />
@@ -3596,7 +3492,9 @@ class link_library_plugin_admin {
3596
  <tr>
3597
  <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>
3598
  <td style='background: #FFF;text-align: center' class="lltooltip" title='<?php _e( 'Check to display link descriptions', 'link-library' ); ?>'>
3599
- <input type="checkbox" id="showdescription" name="showdescription" <?php checked( $options['showdescription'] ); ?>/>
 
 
3600
  </td>
3601
  <td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before each description', 'link-library' ); ?>'>
3602
  <input type="text" id="beforedesc" name="beforedesc" size="22" value="<?php echo stripslashes( $options['beforedesc'] ); ?>" />
@@ -3613,7 +3511,9 @@ class link_library_plugin_admin {
3613
  <tr>
3614
  <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>
3615
  <td style='background: #FFF;text-align: center' class="lltooltip" title='<?php _e( 'Check to display link notes', 'link-library' ); ?>'>
3616
- <input type="checkbox" id="shownotes" name="shownotes" <?php checked( $options['shownotes'] ); ?>/>
 
 
3617
  </td>
3618
  <td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before each note', 'link-library' ); ?>'>
3619
  <input type="text" id="beforenote" name="beforenote" size="22" value="<?php echo stripslashes( $options['beforenote'] ); ?>" />
@@ -3650,6 +3550,7 @@ class link_library_plugin_admin {
3650
  <select name="displayweblink" id="displayweblink" style="width:80px;">
3651
  <option value="false"<?php selected( $options['displayweblink'] == "false" ); ?>><?php _e( 'False', 'link-library' ); ?></option>
3652
  <option value="address"<?php selected( $options['displayweblink'] == "address" ); ?>><?php _e( 'Web Address', 'link-library' ); ?></option>
 
3653
  <option value="label"<?php selected( $options['displayweblink'] == "label" ); ?>><?php _e( 'Label', 'link-library' ); ?></option>
3654
  </select>
3655
  </td>
@@ -3659,14 +3560,17 @@ class link_library_plugin_admin {
3659
  <td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed after Web Link', 'link-library' ); ?>'>
3660
  <input type="text" id="afterweblink" name="afterweblink" size="22" value="<?php echo stripslashes( $options['afterweblink'] ); ?>" />
3661
  </td>
3662
- <td style='background: #FFF'>
3663
- <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'] ); ?>" />
3664
- <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'] ); ?>" />
3665
  </td>
3666
  <td style='background: #FFF' class="lltooltip" title='<?php _e( 'Select which link address will be displayed / used for link', 'link-library' ); ?>'>
3667
  <select name="sourceweblink" id="sourceweblink" style="width:200px;">
3668
- <option value="primary"<?php selected( $options['sourceweblink'] == "primary" ); ?>><?php _e( 'Primary', 'link-library' ); ?></option>
3669
- <option value="secondary"<?php selected( $options['sourceweblink'] == "secondary" ); ?>><?php _e( 'Secondary', 'link-library' ); ?></option>
 
 
 
 
3670
  </select>
3671
  </td>
3672
  </tr>
@@ -3677,10 +3581,18 @@ class link_library_plugin_admin {
3677
  <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>
3678
  <td style='text-align:center;background: #FFF'>
3679
  <select name="showtelephone" id="showtelephone" style="width:80px;">
3680
- <option value="false"<?php selected( $options['showtelephone'] == "false" ); ?>><?php _e( 'False', 'link-library' ); ?></option>
3681
- <option value="plain"<?php selected( $options['showtelephone'] == "plain" ); ?>><?php _e( 'Plain Text', 'link-library' ); ?></option>
3682
- <option value="link"<?php selected( $options['showtelephone'] == "link" ); ?>><?php _e( 'Link', 'link-library' ); ?></option>
3683
- <option value="label"<?php selected( $options['showtelephone'] == "label" ); ?>><?php _e( 'Label', 'link-library' ); ?></option>
 
 
 
 
 
 
 
 
3684
  </select>
3685
  </td>
3686
  <td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before Telephone Number', 'link-library' ); ?>'>
@@ -3694,8 +3606,12 @@ class link_library_plugin_admin {
3694
  </td>
3695
  <td style='background: #FFF' class="lltooltip" title='<?php _e( 'Select which link address will be displayed / used for link', 'link-library' ); ?>'>
3696
  <select name="sourcetelephone" id="sourcetelephone" style="width:200px;">
3697
- <option value="primary"<?php selected( $options['sourcetelephone'] == "primary" ); ?>><?php _e( 'Primary', 'link-library' ); ?></option>
3698
- <option value="secondary"<?php selected( $options['sourcetelephone'] == "secondary" ); ?>><?php _e( 'Secondary', 'link-library' ); ?></option>
 
 
 
 
3699
  </select>
3700
  </td>
3701
  </tr>
@@ -3706,12 +3622,24 @@ class link_library_plugin_admin {
3706
  <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>
3707
  <td style='text-align:center;background: #FFF'>
3708
  <select name="showemail" id="showemail" style="width:80px;">
3709
- <option value="false"<?php selected( $options['showemail'] == "false" ); ?>><?php _e( 'False', 'link-library' ); ?></option>
3710
- <option value="plain"<?php selected( $options['showemail'] == "plain" ); ?>><?php _e( 'Plain Text', 'link-library' ); ?></option>
3711
- <option value="mailto"<?php selected( $options['showemail'] == "mailto" ); ?>><?php _e( 'MailTo Link', 'link-library' ); ?></option>
3712
- <option value="mailtolabel"<?php selected( $options['showemail'] == "mailtolabel" ); ?>><?php _e( 'MailTo Link with Label', 'link-library' ); ?></option>
3713
- <option value="command"<?php selected( $options['showemail'] == "command" ); ?>><?php _e( 'Formatted Command', 'link-library' ); ?></option>
3714
- <option value="commandlabel"<?php selected( $options['showemail'] == "commandlabel" ); ?>><?php _e( 'Formatted Command with Labels', 'link-library' ); ?></option>
 
 
 
 
 
 
 
 
 
 
 
 
3715
  </select>
3716
  </td>
3717
  <td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before E-mail', 'link-library' ); ?>'>
@@ -3733,7 +3661,9 @@ class link_library_plugin_admin {
3733
  <tr>
3734
  <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>
3735
  <td style='text-align:center;background: #FFF'>
3736
- <input type="checkbox" id="showlinkhits" name="showlinkhits" <?php checked( $options['showlinkhits'] ); ?>/>
 
 
3737
  </td>
3738
  <td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before Link Hits', 'link-library' ); ?>'>
3739
  <input type="text" id="beforelinkhits" name="beforelinkhits" size="22" value="<?php echo stripslashes( $options['beforelinkhits'] ); ?>" />
@@ -3750,7 +3680,9 @@ class link_library_plugin_admin {
3750
  <tr>
3751
  <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>
3752
  <td style='text-align:center;background: #FFF'>
3753
- <input type="checkbox" id="showrating" name="showrating" <?php checked( $options['showrating'] ); ?>/>
 
 
3754
  </td>
3755
  <td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before Link Rating', 'link-library' ); ?>'>
3756
  <input type="text" id="beforelinkrating" name="beforelinkrating" size="22" value="<?php echo stripslashes( $options['beforelinkrating'] ); ?>" />
@@ -3767,7 +3699,9 @@ class link_library_plugin_admin {
3767
  <tr>
3768
  <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>
3769
  <td style='text-align:center;background: #FFF'>
3770
- <input type="checkbox" id="showlargedescription" name="showlargedescription" <?php checked( $options['showlargedescription'] ); ?>/>
 
 
3771
  </td>
3772
  <td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before Link Large Description', 'link-library' ); ?>'>
3773
  <input type="text" id="beforelargedescription" name="beforelargedescription" size="22" value="<?php echo stripslashes( $options['beforelargedescription'] ); ?>" />
@@ -3813,48 +3747,6 @@ class link_library_plugin_admin {
3813
  <td style='background: #FFF'></td>
3814
  </tr>
3815
  <?php break;
3816
- case 15: /* -------------------------------- Link Tags -------------------------------------------*/
3817
- ?>
3818
- <tr>
3819
- <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>
3820
- <td style='text-align:center;background: #FFF'>
3821
- <input type="checkbox" id="showlinktags" name="showlinktags" <?php checked( $options['showlinktags'] ); ?>/>
3822
- </td>
3823
- <td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before Link Tags', 'link-library' ); ?>'>
3824
- <input type="text" id="beforelinktags" name="beforelinktags" size="22" value="<?php echo stripslashes( $options['beforelinktags'] ); ?>" />
3825
- </td>
3826
- <td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed after Link Tags', 'link-library' ); ?>'>
3827
- <input type="text" id="afterlinktags" name="afterlinktags" size="22" value="<?php echo stripslashes( $options['afterlinktags'] ); ?>" />
3828
- </td>
3829
- <td style='background: #FFF'></td>
3830
- <td style='background: #FFF'></td>
3831
- </tr>
3832
- <?php break;
3833
- case 16: /* -------------------------------- Link Price -------------------------------------------*/
3834
- ?>
3835
- <tr>
3836
- <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>
3837
- <td style='text-align:center;background: #FFF'>
3838
- <input type="checkbox" id="showlinkprice" name="showlinkprice" <?php checked( $options['showlinkprice'] ); ?>/>
3839
- </td>
3840
- <td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before Link Price', 'link-library' ); ?>'>
3841
- <input type="text" id="beforelinkprice" name="beforelinkprice" size="22" value="<?php echo stripslashes( $options['beforelinkprice'] ); ?>" />
3842
- </td>
3843
- <td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed after Link Price', 'link-library' ); ?>'>
3844
- <input type="text" id="afterlinkprice" name="afterlinkprice" size="22" value="<?php echo stripslashes( $options['afterlinkprice'] ); ?>" />
3845
- </td>
3846
- <td style='background: #FFF'>
3847
- <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' ); ?>' />
3848
- Show 0.00 as free <input type="checkbox" id="show0asfree" name="show0asfree" <?php checked( $options['show0asfree'] ); ?>/>
3849
- </td>
3850
- <td style='background: #FFF'>
3851
- <select name="linkcurrencyplacement" id="linkcurrencyplacement" style="width:200px;">
3852
- <option value="before"<?php selected( $options['linkcurrencyplacement'] == 'before' ); ?>><?php _e( 'Before Price', 'link-library' ); ?></option>
3853
- <option value="after"<?php selected( $options['linkcurrencyplacement'] == 'after' ); ?>><?php _e( 'After Price', 'link-library' ); ?></option>
3854
- </select>
3855
- </td>
3856
- </tr>
3857
- <?php break;
3858
  }
3859
  }
3860
  }
@@ -3896,7 +3788,9 @@ class link_library_plugin_admin {
3896
  <?php _e( 'Show Link Updated Flag', 'link-library' ); ?>
3897
  </td>
3898
  <td style='width:75px;padding:0px 20px 0px 20px'>
3899
- <input type="checkbox" id="showupdated" name="showupdated" <?php checked( $options['showupdated'] ); ?>/>
 
 
3900
  </td>
3901
  <td style='width:20px'>
3902
  </td>
@@ -3904,7 +3798,9 @@ class link_library_plugin_admin {
3904
  <?php _e( 'Convert [] to &lt;&gt; in Link Description and Notes', 'link-library' ); ?>
3905
  </td>
3906
  <td style='width:75px;padding:0px 20px 0px 20px'>
3907
- <input type="checkbox" id="use_html_tags" name="use_html_tags" <?php checked( $options['use_html_tags'] ); ?>/>
 
 
3908
  </td>
3909
  </tr>
3910
  <tr>
@@ -3914,11 +3810,11 @@ class link_library_plugin_admin {
3914
  <td style='width:75px;padding:0px 20px 0px 20px'>
3915
  <select id="showupdatedpos" name="showupdatedpos">
3916
  <?php
3917
- $show_updated_pos_options = array( 'before' => 'Before Link Fields', 'after' => 'After Link Fields' );
3918
 
3919
- foreach( $show_updated_pos_options as $show_updated_pos_option_key => $show_updated_pos_option ) { ?>
3920
- <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>
3921
- <?php }
3922
  ?>
3923
  </select>
3924
  </td>
@@ -3979,14 +3875,14 @@ class link_library_plugin_admin {
3979
  </td>
3980
  <td><?php _e( 'Pop-Up Width', 'link-library' ); ?></td>
3981
  <td>
3982
- <input type="text" id="popup_width" name="popup_width" size="4" value="<?php if ( !isset( $options['popup_width'] ) || empty( $options['popup_width'] ) ) {
3983
  echo '300';
3984
  } else {
3985
  echo strval( $options['popup_width'] );
3986
  } ?>" /></td>
3987
  <td><?php _e( 'Pop-Up Height', 'link-library' ); ?></td>
3988
  <td>
3989
- <input type="text" id="popup_height" name="popup_height" size="4" value="<?php if ( !isset( $options['popup_height'] ) || empty( $options['popup_height'] ) ) {
3990
  echo '400';
3991
  } else {
3992
  echo strval( $options['popup_height'] );
@@ -4014,13 +3910,17 @@ class link_library_plugin_admin {
4014
  <?php _e( 'Show RSS Link using Text', 'link-library' ); ?>
4015
  </td>
4016
  <td style='width:75px;padding-right:20px'>
4017
- <input type="checkbox" id="show_rss" name="show_rss" <?php checked( $options['show_rss'] ); ?>/>
 
 
4018
  </td>
4019
  <td>
4020
  <?php _e( 'Show RSS Link using Standard Icon', 'link-library' ); ?>
4021
  </td>
4022
  <td style='width:75px;padding-right:20px'>
4023
- <input type="checkbox" id="show_rss_icon" name="show_rss_icon" <?php checked( $options['show_rss_icon'] ); ?>/>
 
 
4024
  </td>
4025
  <td></td>
4026
  <td style='width:75px;padding-right:20px'></td>
@@ -4064,9 +3964,10 @@ class link_library_plugin_admin {
4064
  <tr>
4065
  <td><?php _e( 'RSS Preview Width', 'link-library' ); ?></td>
4066
  <td>
4067
- <input type="text" id="rsspreviewwidth" name="rsspreviewwidth" size="5" value="<?php echo strval( $options['rsspreviewwidth'] ); ?>" /></td></td>
4068
  <td><?php _e( 'RSS Preview Height', 'link-library' ); ?></td>
4069
- <td><input type="text" id="rsspreviewheight" name="rsspreviewheight" size="5" value="<?php echo strval( $options['rsspreviewheight'] ); ?>" /></td>
 
4070
  <td><?php _e( 'Skip links with no RSS inline items', 'link-library' ); ?></td>
4071
  <td><input type="checkbox" id="rssfeedinlineskipempty" name="rssfeedinlineskipempty" <?php checked( $options['rssfeedinlineskipempty'] ); ?>/></td>
4072
  </tr>
@@ -4088,7 +3989,9 @@ class link_library_plugin_admin {
4088
  <?php _e( 'Use thumbnail service for dynamic link images', 'link-library' ); ?>
4089
  </td>
4090
  <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'>
4091
- <input type="checkbox" id="usethumbshotsforimages" name="usethumbshotsforimages" <?php checked( $options['usethumbshotsforimages'] ); ?>/>
 
 
4092
  </td>
4093
  </tr>
4094
  <tr>
@@ -4096,7 +3999,9 @@ class link_library_plugin_admin {
4096
  <?php _e( 'Give priority to images assigned to links if present', 'link-library' ); ?>
4097
  </td>
4098
  <td>
4099
- <input type="checkbox" id="uselocalimagesoverthumbshots" name="uselocalimagesoverthumbshots" <?php checked( $options['uselocalimagesoverthumbshots'] ); ?>/></td>
 
 
4100
  </tr>
4101
  <tr>
4102
  <td><?php _e( 'Generate Images / Favorite Icons', 'link-library' ); ?></td>
@@ -4134,7 +4039,7 @@ class link_library_plugin_admin {
4134
  </td>
4135
  <td><?php _e( 'Number of items in RSS feed', 'link-library' ); ?></td>
4136
  <td style='width:75px;padding-right:20px'>
4137
- <input type="text" id="numberofrssitems" name="numberofrssitems" size="3" value="<?php if ( empty( $options['numberofrssitems'] ) ) {
4138
  echo '10';
4139
  } else {
4140
  echo strval( $options['numberofrssitems'] );
@@ -4430,16 +4335,29 @@ class link_library_plugin_admin {
4430
  <td>
4431
  <?php
4432
 
4433
- $include_links_array = explode( ',', $options['categorylist_cpt'] );
4434
- $excluded_links_array = explode( ',', $options['excludecategorylist_cpt'] );
4435
- $link_categories_query_args = array( 'hide_empty' => false );
4436
- $link_categories_query_args['include'] = $include_links_array;
4437
- $link_categories_query_args['exclude'] = $excluded_links_array;
4438
- $linkcats = get_terms( 'link_library_category', $link_categories_query_args );
 
 
 
 
 
 
 
 
 
 
 
 
 
4439
 
4440
  if ( $linkcats ) { ?>
4441
  <select name="addlinkdefaultcat" id="addlinkdefaultcat" value="<?php echo $options['addlinkdefaultcat']; ?>">
4442
- <option value="nodefaultcat">No default category</option>
4443
  <?php foreach ( $linkcats as $linkcat ) { ?>
4444
  <option value="<?php echo $linkcat->term_id; ?>" <?php selected( $linkcat->term_id, $options['addlinkdefaultcat'] ); ?>><?php echo $linkcat->name; ?></option>
4445
  <?php } ?>
@@ -4700,9 +4618,89 @@ class link_library_plugin_admin {
4700
  function settingssets_importexport_meta_box( $data ) {
4701
  $options = $data['options'];
4702
  $settings = $data['settings'];
 
4703
  ?>
4704
 
4705
  <div style='padding-top:15px' id="ll-importexport" class="content-section">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4706
  <input type='hidden' value='<?php echo $settings; ?>' name='settingsetid' id='settingsetid' />
4707
  <table>
4708
  <tr>
@@ -4736,7 +4734,9 @@ class link_library_plugin_admin {
4736
  <tr>
4737
  <td><?php _e( 'Delete links that return a 403 error', 'link-library' ); ?></td>
4738
  <td>
4739
- <input type="checkbox" id="recipcheckdelete403" name="recipcheckdelete403" <?php checked( $genoptions['recipcheckdelete403'] ); ?>/></td>
 
 
4740
  </tr>
4741
  <tr>
4742
  <td>
@@ -4761,30 +4761,116 @@ class link_library_plugin_admin {
4761
 
4762
 
4763
  /************************************************ Render Custom Meta Box in Link Editor *******************************************/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4764
 
4765
- function ll_link_basic_info( $link ) {
4766
- $link_url = get_post_meta( $link->ID, 'link_url', true );
4767
- $link_description = get_post_meta( $link->ID, 'link_description', true );
4768
- $link_textfield = get_post_meta( $link->ID, 'link_textfield', true );
4769
- $link_target = get_post_meta( $link->ID, 'link_target', true );
4770
- $link_rss = get_post_meta( $link->ID, 'link_rss', true );
4771
- $link_notes = get_post_meta( $link->ID, 'link_notes', true );
4772
  ?>
4773
- <table style="width:100%">
 
 
4774
  <tr>
4775
- <td style="width:20%"><?php _e( 'Web Address', 'link-library' ); ?></td>
4776
- <td><input type="text" style="width:100%" id="link_url" type="link_url" name="link_url" value="<?php echo $link_url; ?>" tabindex="1"></td>
 
 
 
 
 
 
 
 
4777
  </tr>
4778
  <tr>
4779
- <td style="width:20%"><?php _e( 'Description', 'link-library' ); ?></td>
4780
- <td><input type="text" style="width:100%" id="link_description" type="link_description" name="link_description" value="<?php echo $link_description; ?>" tabindex="2"></td>
 
 
 
 
 
 
 
4781
  </tr>
4782
  <tr>
4783
- <td><?php _e( 'Notes', 'link-library' ); ?></td>
4784
- <td><textarea style="width:100%" name="link_notes" id="link_notes" rows="5"><?php echo $link_notes; ?></textarea></td>
 
 
 
4785
  </tr>
4786
  <tr>
4787
- <td><?php _e( 'Large Description', 'link-library' ); ?></td>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4788
  <td>
4789
  <?php
4790
  $editorsettings = array( 'media_buttons' => false,
@@ -4792,49 +4878,22 @@ class link_library_plugin_admin {
4792
  'textarea_name' => 'link_textfield',
4793
  'wpautop' => false );
4794
 
4795
- wp_editor( isset( $link_textfield ) ? stripslashes( $link_textfield ) : '', 'link_textfield', $editorsettings ); ?>
4796
  </td>
4797
  </tr>
4798
  <tr>
4799
- <td><?php _e( 'RSS Address', 'link-library' ); ?></td>
4800
- <td><input type="text" style="width:100%" id="link_rss" type="link_rss" name="link_rss" value="<?php echo $link_rss; ?>"></td>
4801
- </tr>
4802
- <tr>
4803
- <td><?php _e( 'Target', 'link-library' ); ?></td>
4804
- <td><?php
4805
- $target_array = array( '' => '_none (same window or tab)', '_blank' => '_blank (new window or tab)', '_top' => '_top (current window or tab, with no frames)' );
4806
- echo '<select name="link_target" id="link_target">';
4807
- foreach ( $target_array as $target_value => $target_item ) {
4808
- echo '<option value="' . $target_value . '" ' . selected( $target_value, $link_target ) . '>' . $target_item . '</option>';
4809
- }
4810
- echo '</select>';
4811
- ?></td>
4812
- </tr>
4813
- </table>
4814
- <?php }
4815
-
4816
- function ll_link_image_info( $link ) {
4817
- $genoptions = get_option( 'LinkLibraryGeneral' );
4818
- $link_image = get_post_meta( $link->ID, 'link_image', true );
4819
- ?>
4820
- <table>
4821
- <tr>
4822
- <td><?php _e( 'Current Image', 'link-library' ); ?></td>
4823
  <td>
4824
  <div id='current_link_image'>
4825
- <?php if ( isset( $link_image ) && !empty( $link_image ) ): ?>
4826
- <img id="actual_link_image" src="<?php echo $link_image ?>" />
4827
  <?php else: ?>
4828
  <span id="noimage"><?php _e( 'None Assigned', 'link-library' ); ?></span>
4829
  <?php endif; ?>
4830
  </div>
4831
  </td>
4832
  </tr>
4833
- <tr>
4834
- <td><?php _e( 'Image URL', 'link-library' ); ?></td>
4835
- <td><input type="text" style="width:100%" id="link_image" type="link_image" name="link_image" value="<?php echo $link_image; ?>"></td>
4836
- </tr>
4837
- <?php if ( isset( $link->ID ) && !empty( $link->ID ) ): ?>
4838
  <tr>
4839
  <td><?php _e( 'Automatic Image Generation', 'link-library' ); ?></td>
4840
  <td title="<?php if ( $genoptions['thumbnailgenerator'] == 'thumbshots' && empty( $genoptions['thumbshotscid'] ) ) {
@@ -4852,13 +4911,20 @@ class link_library_plugin_admin {
4852
  <?php endif; ?>
4853
  <?php if ( function_exists( 'wp_enqueue_media' ) ) { ?>
4854
  <tr>
4855
- <td><?php _e( 'Image Upload', 'link-library' ); ?></td>
4856
  <td>
4857
  <input type="button" class="upload_image_button" value="<?php _e( 'Launch Media Uploader', 'link-library' ); ?>">
4858
  </td>
4859
  </tr>
4860
- </table>
 
 
 
 
4861
  <?php } ?>
 
 
 
4862
 
4863
  <script type="text/javascript">
4864
  jQuery(document).ready(function () {
@@ -4900,6 +4966,7 @@ class link_library_plugin_admin {
4900
  file_frame.open();
4901
  });
4902
 
 
4903
  jQuery("#ll_updated_manual").click(function () {
4904
  if (jQuery('#ll_updated_manual').is(':checked')) {
4905
  jQuery('#ll_link_updated').attr('disabled', false);
@@ -4919,11 +4986,12 @@ class link_library_plugin_admin {
4919
  .attr("encoding", "multipart/form-data")
4920
  .attr( "accept-charset", "UTF-8" )
4921
  ;
 
4922
  jQuery('#genthumbs').click(function () {
4923
- var linkname = jQuery('#title').val();
4924
  var linkurl = jQuery('#link_url').val();
4925
 
4926
- if ( linkname != '' && linkurl != '' ) {
4927
  jQuery('#current_link_image').fadeOut('fast');
4928
 
4929
  jQuery.ajax({
@@ -4938,7 +5006,7 @@ class link_library_plugin_admin {
4938
  cid : '<?php echo $genoptions['thumbshotscid']; ?>',
4939
  filepath : 'link-library-images',
4940
  filepathtype: 'absolute',
4941
- linkid : <?php if( isset( $link->ID ) ) { echo $link->ID; } else { echo "''"; } ?>
4942
  },
4943
  success: function (data) {
4944
  if (data != '') {
@@ -4956,7 +5024,7 @@ class link_library_plugin_admin {
4956
  });
4957
 
4958
  jQuery('#genfavicons').click(function () {
4959
- var linkname = jQuery('#title').val();
4960
  var linkurl = jQuery('#link_url').val();
4961
 
4962
  if (linkname != '' && linkurl != '') {
@@ -4972,7 +5040,7 @@ class link_library_plugin_admin {
4972
  mode : 'favicononly',
4973
  filepath : 'link-library-favicons',
4974
  filepathtype: 'absolute',
4975
- linkid : <?php if( isset( $link->ID ) ) { echo $link->ID; } else { echo "''"; }?>
4976
 
4977
 
4978
  },
@@ -4993,348 +5061,10 @@ class link_library_plugin_admin {
4993
 
4994
  });
4995
  </script>
4996
- <?php }
4997
-
4998
- function ll_link_edit_extra( $link ) {
4999
- $link_featured = get_post_meta( $link->ID, 'link_featured', true );
5000
- $link_no_follow = get_post_meta( $link->ID, 'link_no_follow', true );
5001
- $link_rating = get_post_meta( $link->ID, 'link_rating', true );
5002
- $link_second_url = get_post_meta( $link->ID, 'link_second_url', true );
5003
- $link_telephone = get_post_meta( $link->ID, 'link_telephone', true );
5004
- $link_email = get_post_meta( $link->ID, 'link_email', true );
5005
- $link_submitter = get_post_meta( $link->ID, 'link_submitter', true );
5006
- $link_submitter_name = get_post_meta( $link->ID, 'link_submitter_name', true );
5007
- $link_submitter_email = get_post_meta( $link->ID, 'link_submitter_email', true );
5008
- $link_price = get_post_meta( $link->ID, 'link_price', true );
5009
- $link_reciprocal = get_post_meta( $link->ID, 'link_reciprocal', true );
5010
- $link_rel = get_post_meta( $link->ID, 'link_rel', true );
5011
-
5012
- $link_updated = get_post_meta( $link->ID, 'link_updated', true );
5013
-
5014
- $link_updated_manual = get_post_meta( $link->ID, 'link_updated_manual', true );
5015
-
5016
- if ( empty( $link_updated ) ) {
5017
- $link_updated = current_time( 'mysql' );
5018
- } else {
5019
- $link_updated = date( "Y-m-d H:i", $link_updated );
5020
- }
5021
-
5022
- $link_visits = get_post_meta( $link->ID, 'link_visits', true );
5023
-
5024
- if ( empty( $link_visits ) ) {
5025
- $link_visits = 0;
5026
- }
5027
- ?>
5028
-
5029
- <input type="hidden" name="form_submitted" value="true">
5030
- <table>
5031
- <tr>
5032
- <td style='width: 200px'><?php _e( 'Featured Item', 'link-library' ); ?></td>
5033
- <td>
5034
- <input type="checkbox" id="link_featured" name="link_featured" <?php checked( $link_featured ); ?>/>
5035
- </td>
5036
- </tr>
5037
- <tr>
5038
- <td style='width: 200px'><?php _e( 'No Follow', 'link-library' ); ?></td>
5039
- <td>
5040
- <input type="checkbox" id="link_no_follow" name="link_no_follow" <?php checked( $link_no_follow ); ?>/>
5041
- </td>
5042
- </tr>
5043
- <tr>
5044
- <td style='width: 200px'><?php _e( 'Rating', 'link-library' ); ?></td>
5045
- <td>
5046
- <select name="link_rating" id="link_rating">
5047
- <?php for( $counter = 0; $counter <= 10; $counter++ ) {
5048
- echo '<option value="' . $counter . '" ' . selected( $counter, $link_rating, false ). '>' . $counter . '</option>';
5049
- } ?>
5050
- </select>
5051
- </td>
5052
- </tr>
5053
- <tr>
5054
- <td style='width: 200px'><?php _e( 'Updated Date', 'link-library' ); ?></td>
5055
- <td><span style="float:left;padding-top:6px">Set Manually
5056
- <input type="checkbox" id="link_updated_manual" name="link_updated_manual" <?php checked( $link_updated_manual ); ?>/></span>
5057
- <input type="text" <?php if ( !$link_updated_manual || empty( $link_updated_manual ) ) {
5058
- echo 'disabled="disabled"';
5059
- } ?> id="link_updated" name="link_updated" size="50%" value="<?php echo $link_updated; ?>" />
5060
- </td>
5061
- </tr>
5062
- <tr>
5063
- <td style='width: 200px'><?php _e( 'Secondary Web Address', 'link-library' ); ?></td>
5064
- <td>
5065
- <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 ) ) {
5066
- echo " <a href=" . esc_html( $link_second_url ) . ">" . __( 'Visit', 'link-library' ) . "</a>";
5067
- } ?></td>
5068
- </tr>
5069
- <tr>
5070
- <td><?php _e( 'Telephone', 'link-library' ); ?></td>
5071
- <td>
5072
- <input type="text" id="link_telephone" name="link_telephone" style="width:100%" value="<?php echo $link_telephone; ?>" />
5073
- </td>
5074
- </tr>
5075
- <tr>
5076
- <td><?php _e( 'E-mail', 'link-library' ); ?></td>
5077
- <td>
5078
- <input type="text" id="link_email" name="link_email" style="width:100%" value="<?php echo $link_email; ?>" />
5079
- </td>
5080
- </tr>
5081
- <tr>
5082
- <td><?php _e( 'Reciprocal Link', 'link-library' ); ?></td>
5083
- <td>
5084
- <input type="text" id="link_reciprocal" name="link_reciprocal" style="width:100%" value="<?php echo $link_reciprocal; ?>" /> <?php if ( !empty( $link_reciprocal ) ) {
5085
- echo " <a href=" . esc_url( stripslashes( $link_reciprocal ) ) . ">" . __( 'Visit', 'link-library' ) . "</a>";
5086
- } ?></td>
5087
- </tr>
5088
- <tr>
5089
- <td><?php _e( 'Number of views', 'link-library' ); ?></td>
5090
- <td>
5091
- <input type="text" id="link_visits" name="link_visits" style="width:100%" value="<?php echo $link_visits; ?>" />
5092
- </td>
5093
- </tr>
5094
- <tr>
5095
- <td><?php _e( 'Submitter', 'link-library' ); ?></td>
5096
- <td>
5097
- <input type="text" id="link_submitter" name="link_submitter" style="width:100%" value="<?php echo $link_submitter; ?>" />
5098
- </td>
5099
- </tr>
5100
- <tr>
5101
- <td><?php _e( 'Submitter Name', 'link-library' ); ?></td>
5102
- <td>
5103
- <input type="text" id="link_submitter_name" name="link_submitter_name" style="width:100%" value="<?php echo $link_submitter_name; ?>" />
5104
- </td>
5105
- </tr>
5106
- <tr>
5107
- <td><?php _e( 'Submitter E-mail', 'link-library' ); ?></td>
5108
- <td>
5109
- <input type="text" id="link_submitter_email" name="link_submitter_email" style="width:100%" value="<?php echo $link_submitter_email; ?>" />
5110
- </td>
5111
- </tr>
5112
- <tr>
5113
- <td><?php _e( 'Rel Tags', 'link-library' ); ?></td>
5114
- <td>
5115
- <input type="text" id="link_rel" name="link_rel" size="80" value="<?php echo $link_rel; ?>" />
5116
- </td>
5117
- </tr>
5118
- <tr>
5119
- <td><?php _e( 'Price', 'link-library' ); ?></td>
5120
- <td>
5121
- <input type="text" id="link_price" name="link_price" size="10" value="<?php echo $link_price; ?>" />
5122
- </td>
5123
- </tr>
5124
- </table>
5125
-
5126
- <script type="text/javascript">
5127
- jQuery( document ).ready(function() {
5128
- jQuery("#link_updated_manual").click(function () {
5129
- if (jQuery('#link_updated_manual').is(':checked')) {
5130
- jQuery('#link_updated').attr('disabled', false);
5131
- } else {
5132
- jQuery('#link_updated').attr('disabled', true);
5133
- }
5134
- });
5135
- });
5136
- </script>
5137
 
5138
  <?php
5139
  }
5140
 
5141
- function ll_save_link_fields( $link_id, $link ) {
5142
- // Check post type for book reviews
5143
-
5144
- if ( $link->post_type == 'link_library_links' && isset( $_POST['action'] ) && 'editpost' == $_POST['action'] ) {
5145
-
5146
- $array_urls_nonce = array( 'link_url' );
5147
- foreach ( $array_urls_nonce as $array_url_nonce ) {
5148
- if ( isset( $_POST[$array_url_nonce] ) && !empty( $_POST[$array_url_nonce] ) ) {
5149
- if ( !isset( $_POST['link_edit_nonce'] ) || wp_verify_nonce( $_POST['link_edit_nonce'], plugin_basename( __FILE__ ) ) ) {
5150
- update_post_meta( $link_id, $array_url_nonce, esc_url( $_POST[$array_url_nonce] ) );
5151
- }
5152
- }
5153
- }
5154
-
5155
- $array_urls = array( 'link_rss', 'link_second_url', 'link_reciprocal', 'link_image' );
5156
- foreach ( $array_urls as $array_url ) {
5157
- if ( isset( $_POST[$array_url] ) ) {
5158
- update_post_meta( $link_id, $array_url, esc_url( $_POST[$array_url] ) );
5159
- }
5160
- }
5161
-
5162
- $array_escape_items = array( 'link_description', 'link_notes', 'link_telephone', 'link_reciprocal', 'link_submitter', 'link_submitter_name', 'link_rel' );
5163
- foreach ( $array_escape_items as $array_escape_item ) {
5164
- if ( isset( $_POST[$array_escape_item] ) ) {
5165
- update_post_meta( $link_id, $array_escape_item, sanitize_text_field( $_POST[$array_escape_item] ) );
5166
- }
5167
- }
5168
-
5169
- if ( isset( $_POST['link_updated'] ) && !empty( $_POST['link_updated'] ) ) {
5170
- update_post_meta( $link_id, 'link_updated', strtotime( $_POST['link_updated'] ) );
5171
- } else {
5172
- update_post_meta( $link_id, 'link_updated', current_time( 'timestamp' ) );
5173
- }
5174
-
5175
- $array_kses_items = array( 'link_textfield' );
5176
- foreach ( $array_kses_items as $array_kses_item ) {
5177
- if ( isset( $_POST[$array_kses_item] ) ) {
5178
- update_post_meta( $link_id, $array_kses_item, wp_kses_post( $_POST[$array_kses_item] ) );
5179
- }
5180
- }
5181
-
5182
- $array_email_items = array( 'link_email', 'link_submitter_email' );
5183
- foreach ( $array_email_items as $array_email_item ) {
5184
- if ( isset( $_POST[$array_email_item] ) ) {
5185
- update_post_meta( $link_id, $array_email_item, sanitize_email( $_POST[$array_email_item] ) );
5186
- }
5187
- }
5188
-
5189
- $array_price_items = array( 'link_price' );
5190
- foreach ( $array_price_items as $array_price_item ) {
5191
- if ( isset( $_POST[$array_price_item] ) ) {
5192
- update_post_meta( $link_id, $array_price_item, floatval( $_POST[$array_price_item] ) );
5193
- }
5194
- }
5195
-
5196
- $array_num_items = array( 'link_rating', 'link_visits' );
5197
- foreach ( $array_num_items as $array_num_item ) {
5198
- if ( isset( $_POST[$array_num_item] ) ) {
5199
- update_post_meta( $link_id, $array_num_item, intval( $_POST[$array_num_item] ) );
5200
- }
5201
- }
5202
-
5203
- $array_direct_items = array( 'link_target' );
5204
- foreach ( $array_direct_items as $array_direct_item ) {
5205
- if ( isset( $_POST[$array_direct_item] ) ) {
5206
- update_post_meta( $link_id, $array_direct_item, $_POST[$array_direct_item] );
5207
- }
5208
- }
5209
-
5210
- $array_boolean_items = array( 'link_featured', 'link_no_follow', 'link_updated_manual' );
5211
- foreach ( $array_boolean_items as $array_boolean_item ) {
5212
- if ( isset( $_POST[$array_boolean_item] ) ) {
5213
- update_post_meta( $link_id, $array_boolean_item, true );
5214
- } else {
5215
- update_post_meta( $link_id, $array_boolean_item, false );
5216
- }
5217
- }
5218
-
5219
- if ( isset( $_POST['link_featured'] ) ) {
5220
- update_post_meta( $link_id, 'link_featured', 1 );
5221
- } else {
5222
- update_post_meta( $link_id, 'link_featured', 0 );
5223
- }
5224
-
5225
- $newrating = intval( $_POST['link_rating'] );
5226
- if ( $newrating < 0 ) {
5227
- $newrating = 0;
5228
- } elseif ( $newrating > 10 ) {
5229
- $newrating = 10;
5230
- }
5231
- }
5232
- }
5233
-
5234
- function ll_add_columns( $columns ) {
5235
- $columns['link_library_url'] = 'URL';
5236
- $columns['link_library_categories'] = 'Categories';
5237
- $columns['link_library_rating'] = 'Rating';
5238
- $columns['link_library_visits'] = 'Hits';
5239
- unset( $columns['comments'] );
5240
- unset( $columns['date'] );
5241
- return $columns;
5242
- }
5243
-
5244
- function ll_populate_columns( $column ) {
5245
- if ( 'link_library_url' == $column ) {
5246
- $link_url = esc_url( get_post_meta( get_the_ID(), 'link_url', true ) );
5247
- echo '<a href="' . $link_url . '">' . $link_url . '</a>';
5248
- } elseif ( 'link_library_categories' == $column ) {
5249
- $link_categories = wp_get_post_terms( get_the_ID(), 'link_library_category' );
5250
- if ( $link_categories ) {
5251
- $countcats = 0;
5252
- foreach ( $link_categories as $link_category ) {
5253
- if ( $countcats >= 1 ) {
5254
- echo ', ';
5255
- }
5256
- echo $link_category->name;
5257
- $countcats++;
5258
- }
5259
- } else {
5260
- echo 'None Assigned';
5261
- }
5262
- } elseif ( 'link_library_rating' == $column ) {
5263
- $link_rating = esc_html( get_post_meta( get_the_ID(), 'link_rating', true ) );
5264
- echo $link_rating;
5265
- } elseif ( 'link_library_visits' == $column ) {
5266
- $link_visits = esc_html( get_post_meta( get_the_ID(), 'link_visits', true ) );
5267
- echo $link_visits;
5268
- }
5269
- }
5270
-
5271
- function ll_column_sortable( $columns ) {
5272
- $columns['link_library_url'] = 'link_library_url';
5273
- $columns['link_library_rating'] = 'link_library_rating';
5274
-
5275
- return $columns;
5276
- }
5277
-
5278
- function ll_column_ordering( $vars ) {
5279
- if ( !is_admin() ) {
5280
- return $vars;
5281
- }
5282
-
5283
- if ( isset( $vars['orderby'] ) && 'link_library_url' == $vars['orderby'] ) {
5284
- $vars = array_merge( $vars, array(
5285
- 'meta_key' => 'link_url',
5286
- 'orderby' => 'meta_value' ) );
5287
- } elseif ( isset( $vars['orderby'] ) && 'link_library_rating' == $vars['orderby'] ) {
5288
- $vars = array_merge( $vars, array(
5289
- 'meta_key' => 'link_rating',
5290
- 'orderby' => 'meta_value_num' ) );
5291
- }
5292
-
5293
- return $vars;
5294
- }
5295
-
5296
- function ll_custom_post_order( $query ) {
5297
- /* The current post type. */
5298
- $post_type = $query->get('post_type');
5299
- /* Check post types. */
5300
- if ( $post_type == 'link_library_links' ) {
5301
- /* Post Column: e.g. title */
5302
- if ( $query->get('orderby') == '' ) {
5303
- $query->set('orderby', 'title');
5304
- }
5305
- /* Post Order: ASC / DESC */
5306
- if ( $query->get('order') == '' ) {
5307
- $query->set( 'order', 'ASC' );
5308
- }
5309
- }
5310
- }
5311
-
5312
- function ll_display_custom_quickedit_link( $column_name, $post_type ) {
5313
- static $printNonce = TRUE;
5314
- if ( $printNonce ) {
5315
- $printNonce = FALSE;
5316
- wp_nonce_field( plugin_basename( __FILE__ ), 'link_edit_nonce' );
5317
- }
5318
-
5319
- ?>
5320
- <fieldset class="inline-edit-col-right inline-edit-link">
5321
- <div class="inline-edit-col column-<?php echo $column_name; ?>">
5322
- <label class="inline-edit-group">
5323
- <?php
5324
- switch ( $column_name ) {
5325
- case 'link_library_url':
5326
- ?><span class="title">URL</span><input type="text" name="link_url" id="link_url" /><?php
5327
- break;
5328
- }
5329
- ?>
5330
- </label>
5331
- </div>
5332
- </fieldset>
5333
- <?php
5334
- }
5335
-
5336
-
5337
-
5338
  function network_settings_menu() {
5339
  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' ) );
5340
  }
@@ -5384,72 +5114,189 @@ class link_library_plugin_admin {
5384
 
5385
  <?php }
5386
 
5387
- /************************************************ Delete extra field data when link is deleted ***********************************/
5388
- function ll_link_cat_filter_list() {
5389
- $screen = get_current_screen();
5390
- global $wp_query;
5391
-
5392
- if ( $screen->post_type == 'link_library_links' ) {
5393
- wp_dropdown_categories(array(
5394
- 'show_option_all' => 'All Link Categories',
5395
- 'taxonomy' => 'link_library_category',
5396
- 'name' => 'link_library_category',
5397
- 'orderby' => 'name',
5398
- 'selected' =>
5399
- ( isset( $wp_query->query['link_library_category'] ) ?
5400
- $wp_query->query['link_library_category'] : '' ),
5401
- 'hierarchical' => false,
5402
- 'depth' => 3,
5403
- 'show_count' => false,
5404
- 'hide_empty' => true,
5405
- )
5406
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5407
  }
5408
  }
5409
 
5410
- function ll_perform_link_cat_filtering( $query ) {
5411
- $qv = &$query->query_vars;
 
 
 
 
 
 
 
 
 
 
 
 
5412
 
5413
- if ( !empty( $qv['link_library_category'] ) && is_numeric( $qv['link_library_category'] ) ) {
5414
- $term = get_term_by( 'id', $qv['link_library_category'], 'link_library_category' );
5415
- $qv['link_library_category'] = $term->slug;
 
 
 
 
 
 
 
 
 
 
5416
  }
5417
  }
5418
 
5419
  function link_library_duplicate_link_checker( $ll_admin_class ) {
5420
- global $wpdb; // Kept with CPT update
5421
  echo "<strong>" . __( 'Duplicate Link Checker Report', 'link-library' ) . "</strong><br /><br />";
5422
 
5423
  echo "<strong>" . __( 'Duplicate URLs', 'link-library' ) . "</strong><br /><br />";
5424
- $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";
5425
- $linkquery .= "(SELECT trim( TRAILING '/' FROM meta_value ) as trim_link_url ";
5426
- $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' GROUP BY meta_value HAVING count(p.ID) > 1) dup ";
5427
- $linkquery .= "ON pm.meta_value = dup.trim_link_url ";
5428
- $linkquery .= "WHERE p.ID = pm.post_id and p.post_type = 'link_library_links' and pm.meta_key = 'link_url' ";
5429
 
5430
  $links = $wpdb->get_results( $linkquery );
5431
 
5432
  if ( $links ) {
5433
  foreach ( $links as $link ) {
5434
- echo $link->ID . ' - ' . $link->post_title . ': ' . $link->meta_value . '<br /><br />';
5435
  }
5436
  } else {
5437
  echo 'No duplicate URL links found';
5438
  }
5439
 
5440
  echo "<br /><br /><strong>" . __( 'Duplicate Names', 'link-library' ) . "</strong><br /><br />";
5441
-
5442
- $linkquery = "SELECT p.ID, p.post_title FROM " . $ll_admin_class->db_prefix() . "posts p INNER JOIN";
5443
- $linkquery .= "(SELECT trim( TRAILING '/' FROM post_title ) as trim_post_title ";
5444
- $linkquery .= "FROM " . $ll_admin_class->db_prefix() . "posts p GROUP BY post_title HAVING count(p.ID) > 1) dup ";
5445
- $linkquery .= "ON p.post_title = dup.trim_post_title ";
5446
- $linkquery .= "WHERE p.post_type = 'link_library_links' ";
5447
 
5448
  $links = $wpdb->get_results( $linkquery );
5449
 
5450
  if ( $links ) {
5451
  foreach ( $links as $link ) {
5452
- echo $link->ID . ' - ' . $link->post_title . '<br /><br />';
5453
  }
5454
  } else {
5455
  echo 'No duplicate name links found';
@@ -5460,49 +5307,44 @@ class link_library_plugin_admin {
5460
  }
5461
 
5462
  function link_library_reciprocal_link_checker( $ll_admin_class, $RecipCheckAddress = '', $recipcheckdelete403 = false, $check_type = 'reciprocal' ) {
 
5463
  set_time_limit( 0 );
5464
 
5465
  if ( ! empty( $RecipCheckAddress ) || ( empty( $RecipCheckAddress ) && 'reciprocal' != $check_type ) ) {
5466
- $args = array(
5467
- 'post_type' => 'link_library_links',
5468
- 'orderby' => 'post_title',
5469
- 'order' => 'ASC',
5470
- 'meta_value' => ' ',
5471
- 'meta_compare' => '!=',
5472
- 'posts_per_page' => -1
5473
- );
5474
-
5475
 
5476
  if ( 'reciprocal' == $check_type ) {
5477
- $args['meta_key'] = 'link_reciprocal';
5478
-
5479
  } elseif ( 'broken' == $check_type ) {
5480
- $args['meta_key'] = 'link_url';
5481
  }
5482
 
5483
- $the_link_query = new WP_Query( $args );
5484
 
 
5485
  if ( 'reciprocal' == $check_type ) {
5486
  echo "<strong>" . __( 'Reciprocal Link Checker Report', 'link-library' ) . "</strong><br /><br />";
5487
  } elseif ( 'broken' == $check_type ) {
5488
  echo "<strong>" . __( 'Broken Link Checker Report', 'link-library' ) . "</strong><br /><br />";
5489
  }
5490
 
5491
- if ( $the_link_query->have_posts() ) {
5492
- while ( $the_link_query->have_posts() ) {
5493
- $the_link_query->the_post();
5494
-
5495
  global $my_link_library_plugin;
5496
- $link_url = get_post_meta( get_the_ID(), 'link_url', true );
5497
 
5498
  if ( 'reciprocal' == $check_type ) {
5499
- $link_reciprocal = get_post_meta( get_the_ID(), 'link_reciprocal', true );
5500
- $reciprocal_result = $my_link_library_plugin->CheckReciprocalLink( $RecipCheckAddress, $link_reciprocal );
5501
  } elseif ( 'broken' == $check_type ) {
5502
- $reciprocal_result = $my_link_library_plugin->CheckReciprocalLink( $RecipCheckAddress, $link_url );
5503
  }
5504
 
5505
- echo '<a href="' . $link_url . '">' . get_the_title() . '</a>: ';
5506
 
5507
  if ( 'reciprocal' == $check_type && $reciprocal_result == 'exists_notfound' ) {
5508
  echo '<span style="color: #FF0000">' . __( 'Not Found', 'link-library' ) . '</span><br />';
@@ -5511,7 +5353,7 @@ function link_library_reciprocal_link_checker( $ll_admin_class, $RecipCheckAddre
5511
  } elseif ( 'broken' == $check_type && strpos( $reciprocal_result, 'exists' ) !== false ) {
5512
  echo '<span style="color: #00FF00">' . __( 'Link valid', 'link-library' ) . '</span><br />';
5513
  } elseif ( $reciprocal_result == 'error_403' && $recipcheckdelete403 == true ) {
5514
- wp_delete_post( get_the_ID() );
5515
  echo '<span style="color: #FF0000">' . __( 'Error 403: Link Deleted', 'link-library' ) . '</span><br />';
5516
  } elseif ( $reciprocal_result == 'error_403' && $recipcheckdelete403 == false ) {
5517
  echo '<span style="color: #FF0000">' . __( 'Error 403', 'link-library' ) . '</span><br />';
@@ -5523,6 +5365,7 @@ function link_library_reciprocal_link_checker( $ll_admin_class, $RecipCheckAddre
5523
  echo __( 'There are no links with reciprocal links associated with them', 'link-library' ) . ".<br />";
5524
  }
5525
  }
 
5526
  }
5527
 
5528
  function link_library_render_editor_button() {
4
  exit;
5
  } // Exit if accessed directly
6
 
7
+ define( 'LINK_LIBRARY_ADMIN_PAGE_NAME', 'link-library' );
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
  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
 
44
  add_action( 'admin_head', array( $this, 'admin_header' ) );
45
 
46
+ add_action( 'link_category_edit_form_fields', array( $this, 'll_link_category_new_fields' ), 10, 2 );
47
+ add_action( 'link_category_add_form_fields', array( $this, 'll_link_category_new_fields' ), 10, 2 );
 
 
 
 
 
 
 
 
 
48
 
49
+ add_action( 'edited_link_category', array( $this, 'll_save_link_category_new_fields' ), 10, 2 );
50
+ add_action( 'created_link_category', array( $this, 'll_save_link_category_new_fields' ), 10, 2 );
51
 
52
+ global $wpdb;
53
+ $linkcatquery = "SELECT distinct ";
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
+ $catnames = $wpdb->get_results( $linkcatquery );
60
 
61
+ if ( empty( $catnames ) ) {
62
+ add_action( 'admin_notices', array( $this, 'll_missing_categories' ) );
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( 'link_library_reciprocal_check', 'link_library_reciprocal_link_checker', 10, 4 );
72
  }
73
 
74
  function is_edit_page( $new_edit = null ) {
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
+ return in_array( $pagenow, array( 'post.php', 'post-new.php' ) );
 
 
 
 
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
  <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
  <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
  <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
  <?php
238
  }
239
 
240
+ function ll_link_category_new_fields( $tag ) {
241
 
242
  $caturl = '';
243
  $cat_extra_query_string = '';
244
 
245
  if ( is_object( $tag ) ) {
246
  $mode = "edit";
247
+ $caturl = get_metadata( 'linkcategory', $tag->term_id, 'linkcaturl', true );
248
+ $cat_extra_query_string = get_metadata( 'linkcategory', $tag->term_id, 'linkextraquerystring', true );
249
  } else {
250
  $mode = 'new';
251
  }
311
  }
312
  }
313
 
314
+ function ll_save_link_category_new_fields( $term_id, $tt_id ) {
315
 
316
  if ( !$term_id ) {
317
  return;
318
  }
319
 
320
  if ( isset( $_POST['ll_category_url'] ) ) {
321
+ update_metadata( 'linkcategory', $term_id, 'linkcaturl', $_POST['ll_category_url'] );
322
  }
323
 
324
  if ( isset( $_POST['cat_extra_query_string'] ) ) {
325
+ update_metadata( 'linkcategory', $term_id, 'linkextraquerystring', $_POST['cat_extra_query_string'] );
326
  }
327
  }
328
 
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
  }
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
 
409
  if ( $status !== false ) {
410
  if ( $filepathtype == 'absolute' || empty( $filepathtype ) ) {
411
+ $newimagedata = array( "link_id" => $linkid, "link_image" => $uploads['baseurl'] . "/" . $filepath . "/" . $linkid . ".png" );
412
  } elseif ( $filepathtype == 'relative' ) {
413
  $parsedaddress = parse_url( $uploads['baseurl'] );
414
+ $newimagedata = array( "link_id" => $linkid, "link_image" => $parsedaddress['path'] . "/" . $filepath . "/" . $linkid . ".png" );
415
  }
416
 
417
  if ( $mode == 'thumb' || $mode == 'favicon' ) {
418
+ wp_update_link( $newimagedata );
419
  }
420
 
421
+ return $newimagedata['link_image'];
422
  } else {
423
  return "";
424
  }
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
  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
+ // Under development, trying to display extra columns in link list page
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
+ //add_filter( 'attachment_fields_to_edit', array( $this, 'add_custom_media_fields' ), null, 2 );
463
+ //add_filter( 'attachment_fields_to_save', array( $this, 'save_custom_media_fields' ), null, 2 );
 
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
  }
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['ll_60_beta_12'] ) || !$genoptions['ll_60_beta_12'] ) && !isset( $_GET['dismiss_ll_60_beta_12'] ) ) {
497
+ add_action( 'admin_notices', array( $this, 'll_60_beta_12' ) );
498
+ } elseif ( ( !isset( $genoptions['ll_60_beta_12'] ) || !$genoptions['ll_60_beta_12'] ) && isset( $_GET['dismiss_ll_60_beta_12'] ) ) {
499
+ $genoptions['ll_60_beta_12'] = true;
500
+ update_option( 'LinkLibraryGeneral', $genoptions );
501
+ }
502
  }
503
  }
504
 
505
+ function add_custom_media_fields( $form_fields, $post ) {
506
+
507
+ $form_fields['link_library_add_link'] = array(
508
+ 'label' => 'Create Link for New Media',
509
+ 'input' => 'html',
510
+ 'html' => "<input type='checkbox' name='createlink' id='createlink' />"
511
+ );
512
 
513
+ return $form_fields;
514
+ }
515
 
516
+ function ll_bookmarks_filter( $bookmarks ) {
517
+ if ( isset( $_GET['linksperpage'] ) && isset( $_GET['linkspage'] ) ) {
518
+ return array_slice( $bookmarks, ( $_GET['linkspage'] - 1 ) * $_GET['linksperpage'], $_GET['linksperpage'] );
519
+ } else {
520
+ return $bookmarks;
521
  }
 
 
522
  }
523
 
524
+ function save_custom_media_fields( $post, $attachment ) {
525
+
526
+ if ( $_POST['createlink'] == true ) {
527
+ print_r( $post );
528
+ print_r( $attachment );
529
+ die();
530
+ }
531
+
532
+ return $post;
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 ll_60_beta_12() {
542
+ echo "
543
+ <div id='ll-warning' class='updated fade'><p><strong>" . __( 'Link Library 6.0 Release Date Set / Beta 12 Available', 'link-library' ) . "</strong></p> <p>" . __( 'After many months of beta testing, version 6.0 will be released on May 17th 2018. If you have not tried the beta yet, there is still a month to try it out. If you want to be sure update is solid, version 6.1 will be released once support questions are back to a normal level.', 'link-library' ) . "<br /><br /><a target='_blank' href='http://ylefebvre.ca/link-library-6-0-public-beta-1/'>" . __( 'Read more about the new version and download beta here', 'link-library' ) . "</a> <a class='button' href='" . esc_url( add_query_arg( array( 'page' => 'link-library', 'dismiss_ll_60_beta_12' => 1 ), admin_url( 'admin.php' ) ) ) . "'>Dismiss this message</a></p></div>";
544
+ }
545
+
546
  function ll_missing_categories() {
547
  echo "
548
  <div id='ll-warning' class='updated fade'><p><strong>" . __( 'Link Library: No Link Categories on your site', 'link-library' ) . "</strong></p> <p>" . __( '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.', 'link-library' ) . "</p></div>";
589
  }
590
 
591
  function render_dashboard_widget() {
592
+ global $wpdb;
593
+
594
  $linkmoderatecount = 0;
 
 
595
 
596
+ $linkmoderatequery = "SELECT count(*) ";
597
+ $linkmoderatequery .= "FROM " . $this->db_prefix() . "links l ";
598
+ $linkmoderatequery .= "WHERE l.link_description like '%LinkLibrary:AwaitingModeration:RemoveTextToApprove%' ";
599
+ $linkmoderatequery .= " ORDER by link_name ASC";
600
+
601
+ $linkmoderatecount = $wpdb->get_var( $linkmoderatequery );
602
 
603
  echo '<strong>' . $linkmoderatecount . '</strong> ';
604
  _e( 'Links to moderate', 'link-library' );
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 $wpdb, $pagehooktop, $pagehookmoderate, $pagehooksettingssets, $pagehookstylesheet, $pagehookreciprocal;
612
 
613
  $genoptions = get_option( 'LinkLibraryGeneral' );
614
  $genoptions = wp_parse_args( $genoptions, ll_reset_gen_settings( 'return' ) );
641
 
642
  $linkmoderatecount = 0;
643
 
644
+ $linkmoderatequery = "SELECT count(*) ";
645
+ $linkmoderatequery .= "FROM " . $this->db_prefix() . "links l ";
646
+ $linkmoderatequery .= "WHERE l.link_description like '%LinkLibrary:AwaitingModeration:RemoveTextToApprove%' ";
647
+ $linkmoderatequery .= " ORDER by link_name ASC";
648
+
649
+ $linkmoderatecount = $wpdb->get_var( $linkmoderatequery );
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 - ' . __( 'General Options', 'link-library' ), __( 'General Options', 'link-library' ), $admin_capability, LINK_LIBRARY_ADMIN_PAGE_NAME, array( $this, 'on_show_page' ) );
658
 
659
+ $pagehooksettingssets = add_submenu_page( LINK_LIBRARY_ADMIN_PAGE_NAME, 'Link Library - ' . __( 'Settings', 'link-library' ), __( 'Library Settings', 'link-library' ), $admin_capability, 'link-library-settingssets', array( $this, 'on_show_page' ) );
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
 
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
+ $faqhook = add_submenu_page( LINK_LIBRARY_ADMIN_PAGE_NAME, __( 'FAQ', 'link-library' ), __( 'FAQ', 'link-library' ), $admin_capability, 'link-library-faq', 'callback' );
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
  //will be executed if wordpress core detects this page has to be rendered
682
  function on_load_page() {
683
 
684
+ global $pagehooktop, $pagehookmoderate, $pagehooksettingssets, $pagehookstylesheet, $pagehookreciprocal;
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
  $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
 
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
  }
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
  $genmode = 'favicon';
776
  }
777
 
778
+ $linkquery = "SELECT distinct * ";
779
+ $linkquery .= "FROM " . $this->db_prefix() . "terms t ";
780
+ $linkquery .= "LEFT JOIN " . $this->db_prefix() . "term_taxonomy tt ON (t.term_id = tt.term_id) ";
781
+ $linkquery .= "LEFT JOIN " . $this->db_prefix() . "term_relationships tr ON (tt.term_taxonomy_id = tr.term_taxonomy_id) ";
782
+ $linkquery .= "LEFT JOIN " . $this->db_prefix() . "links l ON (tr.object_id = l.link_id) ";
783
+ $linkquery .= "WHERE tt.taxonomy = 'link_category' ";
 
 
 
 
 
 
 
 
784
 
785
+ if ( $options['categorylist'] != "" && !isset( $_GET['genthumbsingle'] ) && !isset( $_GET['genfaviconsingle'] ) ) {
786
+ $linkquery .= " AND t.term_id in (" . $options['categorylist'] . ")";
787
+ }
788
 
789
+ if ( isset( $_GET['genthumbsingle'] ) || isset( $_GET['genfaviconsingle'] ) ) {
790
+ $linkquery .= " AND l.link_id = " . intval( $_GET['linkid'] );
791
+ }
792
 
793
+ $linkitems = $wpdb->get_results( $linkquery );
 
794
 
795
+ if ( $linkitems ) {
796
+ $filescreated = 0;
797
+ $totallinks = count( $linkitems );
798
+ foreach ( $linkitems as $linkitem ) {
799
+ if ( !$options['uselocalimagesoverthumbshots'] || ( $options['uselocalimagesoverthumbshots'] && empty( $linkitem->link_image ) ) ) {
800
+ $this->ll_get_link_image( $linkitem->link_url, $linkitem->link_name, $genmode, $linkitem->link_id, $genoptions['thumbshotscid'], $filepath, $genoptions['imagefilepath'], $genoptions['thumbnailsize'], $genoptions['thumbnailgenerator'] );
801
  }
802
+ $linkname = $linkitem->link_name;
803
  }
804
 
805
  if ( isset( $_GET['genthumbs'] ) ) {
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
  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
  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
  }
964
  $data['settings'] = $settings;
965
  $data['options'] = isset( $options ) ? $options : '';
966
  $data['genoptions'] = $genoptions;
967
+ global $pagehooktop, $pagehookmoderate, $pagehookstylesheet, $pagehooksettingssets, $pagehookreciprocal;
968
  ?>
969
  <div class="ll-content">
970
  <div class="ll-frame">
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
  } ?>><?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" target="_newWindow"><?php _e( 'FAQ', 'link-library' ); ?></a>
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
 
1045
  #sortable li {
1046
  list-style: none;
1047
+ margin: 0 4px 4px 4px;
1048
+ padding: 10px 10px 10px 10px;
1049
  border: #CCCCCC solid 1px;
1050
  color: #fff;
1051
  display: inline;
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
  $('.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
  });
1132
  //]]>
1133
 
 
 
 
 
 
 
 
 
 
 
1134
  // Create the tooltips only on document load
1135
  jQuery(document).ready(function () {
1136
  jQuery('.lltooltip').each(function () {
1141
  jQuery("#sortable").sortable({
1142
  opacity: 0.6, cursor: 'move', update: function () {
1143
  var order = jQuery("#sortable").sortable('toArray');
1144
+ stringorder = order.join(',')
 
1145
  document.getElementById('dragndroporder').value = stringorder;
1146
  }
1147
  });
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['ll-hidedonation'] );
1168
  }
1169
  } elseif ( $menu_name == 'settingsset' ) {
1170
  $tabitems = array ( 'll-usage' => __( 'Usage', 'link-library' ),
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
  //cross check the given referer
1241
  check_admin_referer( 'link-library' );
1242
 
1243
+ $genoptions = get_option( 'LinkLibraryGeneral' );
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 .= "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
+
1307
+ $linkitems = $wpdb->get_results( $linkquery, ARRAY_A );
1308
+
1309
+ if ( $linkitems ) {
1310
+ $headerrow = array();
1311
+
1312
+ foreach ( $linkitems[0] as $key => $option ) {
1313
+ $headerrow[] = '"' . $key . '"';
1314
+ }
1315
+
1316
+ $headerdata = join( ',', $headerrow ) . "\n";
1317
+ fwrite( $fh, $headerdata );
1318
+
1319
+ foreach ( $linkitems as $linkitem ) {
1320
+ $datarow = array();
1321
+ foreach ( $linkitem as $key => $value ) {
1322
+ $datarow[] = '"' . $value . '"';
1323
+ }
1324
+ $data = join( ',', $datarow ) . "\n";
1325
+ fwrite( $fh, $data );
1326
+ }
1327
+
1328
+ fclose( $fh );
1329
+
1330
+ if (file_exists($myFile)) {
1331
+ header('Content-Description: File Transfer');
1332
+ header('Content-Type: application/octet-stream');
1333
+ header('Content-Disposition: attachment; filename='.basename($myFile));
1334
+ header('Expires: 0');
1335
+ header('Cache-Control: must-revalidate');
1336
+ header('Pragma: public');
1337
+ header('Content-Length: ' . filesize($myFile));
1338
+ readfile($myFile);
1339
+ exit;
1340
+ }
1341
+ }
1342
+ } else {
1343
+ $message = "3";
1344
+ }
1345
+ }
1346
+
1347
+ $redirecturl = add_query_arg( array( 'currenttab' => $_POST['currenttab'], 'page' => 'link-library' ), admin_url() );
1348
+ if ( !empty( $message ) ) {
1349
+ $redirecturl = add_query_arg( array( 'message' => $message ), $redirecturl );
1350
+ }
1351
+
1352
+ wp_redirect( $redirecturl );
1353
+ }
1354
+
1355
+ //executed if the post arrives initiated by pressing the submit button of form
1356
+ function on_save_changes_settingssets() {
1357
+ //user permission check
1358
+ if ( !current_user_can( 'manage_options' ) ) {
1359
+ wp_die( __( 'Not allowed', 'link-library' ) );
1360
+ }
1361
+ //cross check the given referer
1362
+ check_admin_referer( 'link-library' );
1363
+
1364
+ $messages = array();
1365
  $row = 0;
1366
  $successfulimport = 0;
1367
  $successfulupdate = 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1368
 
1369
+ if ( isset( $_POST['importlinks'] ) ) {
 
1370
  wp_suspend_cache_addition( true );
1371
  set_time_limit( 600 );
1372
 
1373
+ global $wpdb;
1374
+
1375
  $handle = fopen( $_FILES['linksfile']['tmp_name'], "r" );
1376
 
1377
  if ( $handle ) {
1379
 
1380
  while ( ( $data = fgetcsv( $handle, 5000, "," ) ) !== false ) {
1381
  $row += 1;
1382
+
1383
  if ( $skiprow == 1 && isset( $_POST['firstrowheaders'] ) && $row >= 2 ) {
1384
  $skiprow = 0;
1385
  } elseif ( !isset( $_POST['firstrowheaders'] ) ) {
1387
  }
1388
 
1389
  if ( !$skiprow ) {
1390
+ if ( count( $data ) == 17 ) {
1391
+ if ( !empty( $data[5] ) ) {
1392
+ $incomingcatdata = explode( ',', $data[5] );
1393
+ $newlinkcat = array();
1394
 
1395
+ foreach ( $incomingcatdata as $incomingcat ) {
1396
+ $existingcatquery = "SELECT t.term_id FROM " . $this->db_prefix() . "terms t, " . $this->db_prefix() . "term_taxonomy tt ";
1397
+ $existingcatquery .= "WHERE t.name = '%s' AND t.term_id = tt.term_id AND tt.taxonomy = 'link_category'";
1398
 
1399
+ $existingcatqueryprepped = $wpdb->prepare( $existingcatquery, esc_html( $incomingcat ) );
 
1400
 
1401
+ $existingcat = $wpdb->get_var( $existingcatqueryprepped );
1402
+
1403
+ if ( !$existingcat ) {
1404
+ $newlinkcatdata = array( "cat_name" => $incomingcat, "category_description" => "", "category_nicename" => esc_sql( $data[5] ) );
1405
+ $newlinkcat = wp_insert_category( $newlinkcatdata );
1406
+
1407
+ $newcatarray = array( "term_id" => $newlinkcat );
 
 
 
 
 
1408
 
1409
+ $newcattype = array( "taxonomy" => 'link_category' );
 
 
 
 
1410
 
1411
+ $wpdb->update( $this->db_prefix() . 'term_taxonomy', $newcattype, $newcatarray );
1412
 
1413
+ $newlinkcat[] = $newlinkcat;
1414
+ } else {
1415
+ $newlinkcat[] = $existingcat;
1416
+ }
1417
+ }
1418
+
1419
+ $newrating = intval( $data[14] );
1420
+ if ( $newrating < 0 ) {
1421
+ $newrating = 0;
1422
  }
 
1423
 
1424
+ $newlinkid = '';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1425
 
1426
+ if ( isset( $_POST['updatesameurl'] ) ) {
1427
+ $existing_link_query = "SELECT l.link_id FROM " . $this->db_prefix() . "links l ";
1428
+ $existing_link_query .= "WHERE l.link_url = '%s'";
 
1429
 
1430
+ $existing_link_query_prepped = $wpdb->prepare( $existing_link_query, esc_url( $data[1] ) );
 
 
 
 
1431
 
1432
+ $newlinkid = $wpdb->get_var( $existing_link_query_prepped );
1433
+ }
1434
 
1435
+ $newlink = array(
1436
+ "link_name" => esc_html( stripslashes( $data[0] ) ),
1437
+ "link_url" => esc_url( stripslashes( $data[1] ) ),
1438
+ "link_rss" => esc_html( stripslashes( $data[2] ) ),
1439
+ "link_description" => esc_html( stripslashes( $data[3] ) ),
1440
+ "link_notes" => esc_html( stripslashes( $data[4] ) ),
1441
+ "link_category" => $newlinkcat,
1442
+ "link_visible" => $data[6],
1443
+ "link_image" => $data[11],
1444
+ "link_rating" => $newrating,
1445
+ "link_target" => $data[15]
1446
+ );
1447
+
1448
+ if ( empty( $newlinkid ) ) {
1449
+ $newlinkid = wp_insert_link( $newlink );
1450
+ $successfulimport += 1;
1451
+ } elseif ( !empty( $newlinkid ) ) {
1452
+ unset ( $newlink['link_url'] );
1453
+ $newlink['link_id'] = $newlinkid;
1454
+ wp_update_link( $newlink );
1455
+ $successfulupdate += 1;
1456
+ }
1457
 
1458
+ if ( $newlinkid != 0 ) {
1459
+ if ( !empty( $data[16] ) ) {
1460
+ $wpdb->update( $this->db_prefix() . 'links', array( 'link_updated' => $data[16] ), array( 'link_id' => $newlinkid ) );
1461
+ }
1462
 
1463
+ $extradatatable = $this->db_prefix() . 'links_extrainfo';
1464
+ $nofollowvalue = ( $data[13] == 'Y' ? true : false );
 
1465
 
1466
+ $existingextrainfo = "SELECT link_id FROM " . $extradatatable . " ";
1467
+ $existingextrainfo .= "WHERE link_id = '" . $newlinkid . "'";
1468
+ $existingextrainfoid = $wpdb->get_var( $existingextrainfo );
 
 
1469
 
1470
+ if ( !empty( $existingextrainfoid ) ) {
1471
+ $wpdb->update( $extradatatable, array( 'link_second_url' => $data[7], 'link_telephone' => $data[8], 'link_email' => $data[9], 'link_reciprocal' => $data[10], 'link_textfield' => $data[12], 'link_no_follow' => $nofollowvalue ), array( 'link_id' => $newlinkid ) );
1472
+ } elseif ( empty( $existingextrainfoid ) ) {
1473
+ $wpdb->insert( $extradatatable, array( 'link_second_url' => $data[7], 'link_telephone' => $data[8], 'link_email' => $data[9], 'link_reciprocal' => $data[10], 'link_textfield' => $data[12], 'link_no_follow' => $nofollowvalue, 'link_id' => $newlinkid ) );
1474
+ }
1475
+ }
1476
  } else {
1477
+ $messages[] = '10';
1478
  }
1479
  } else {
1480
+ $messages[] = '4';
1481
  }
1482
  }
1483
  }
1487
  $row -= 1;
1488
  }
1489
 
1490
+ $messages[] = '9';
1491
 
1492
  wp_suspend_cache_addition( false );
1493
  } elseif ( isset( $_POST['siteimport'] ) ) {
1494
  wp_suspend_cache_addition( true );
1495
  set_time_limit( 600 );
1496
 
1497
+ global $wpdb;
1498
+
1499
+ $successfulimport = 0;
1500
+ $successfulupdate = 0;
1501
+
1502
  $all_content = array();
1503
 
1504
  $post_args = array();
1528
 
1529
  if ( 'allpagesposts' == $_POST['siteimportlinksscope']
1530
  || 'allpagespostscpt' == $_POST['siteimportlinksscope'] ) {
1531
+
1532
  $post_args = array();
1533
 
1534
  if ( 'allpagesposts' == $_POST['siteimportlinksscope'] ) {
1545
  }
1546
  }
1547
  }
1548
+
1549
  foreach ( $post_types as $post_type ) {
1550
  if ( 'specific' . $post_type == $_POST['siteimportlinksscope'] ) {
1551
  $post_args = array();
1560
  }
1561
 
1562
  foreach ( $all_content as $content_item ) {
 
1563
  $dom = new DOMDocument;
1564
  $dom->loadHTML( $content_item );
1565
  foreach ( $dom->getElementsByTagName( 'a' ) as $node ) {
1566
  $incomingcatdata = $_POST['siteimportcat'];
1567
 
1568
  if ( isset( $_POST['siteimportupdatesameurl'] ) ) {
1569
+ $existing_link_query = "SELECT l.link_id FROM " . $this->db_prefix() . "links l ";
1570
+ $existing_link_query .= "WHERE l.link_url = '%s'";
1571
+
1572
+ $existing_link_query_prepped = $wpdb->prepare( $existing_link_query, esc_url( $node->getAttribute("href") ) );
1573
+
1574
+ $newlinkid = $wpdb->get_var( $existing_link_query_prepped );
1575
+
1576
+ $newlink = array(
1577
+ "link_name" => esc_html( $node->nodeValue ),
1578
+ "link_url" => esc_url( $node->getAttribute("href") ),
1579
+ "link_category" => $incomingcatdata,
1580
+ "link_visible" => 'Y',
1581
+ );
1582
+
1583
+ if ( empty( $newlinkid ) ) {
1584
+ wp_insert_link( $newlink );
1585
+ $successfulimport += 1;
1586
+ } elseif ( !empty( $newlinkid ) ) {
1587
+ unset ( $newlink['link_url'] );
1588
+ $newlink['link_id'] = $newlinkid;
1589
+ wp_update_link( $newlink );
1590
+ $successfulupdate += 1;
1591
  }
1592
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1593
  }
1594
  }
1595
+ $messages[] = '9';
1596
 
1597
  wp_suspend_cache_addition( false );
1598
+ } elseif ( isset( $_POST['exportsettings'] ) ) {
1599
  $upload_dir = wp_upload_dir();
 
1600
  if ( is_writable( $upload_dir['path'] ) ) {
1601
+ $myFile = $upload_dir['path'] . "/SettingSet" . $_POST['settingsetid'] . "Export.csv";
1602
  $fh = fopen( $myFile, 'w' ) or die( "can't open file" );
1603
 
1604
+ $sourcesettingsname = 'LinkLibraryPP' . $_POST['settingsetid'];
1605
+ $sourceoptions = get_option( $sourcesettingsname );
1606
+
1607
+ $headerrow = array();
1608
 
1609
+ foreach ( $sourceoptions as $key => $option ) {
1610
+ $headerrow[] = '"' . $key . '"';
1611
+ }
1612
 
1613
+ $headerdata = join( ',', $headerrow ) . "\n";
1614
+ fwrite( $fh, $headerdata );
 
 
 
1615
 
1616
+ $datarow = array();
 
 
 
 
 
 
 
 
 
 
 
1617
 
1618
+ foreach ( $sourceoptions as $key => $option ) {
1619
+ $datarow[] = '"' . $option . '"';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1620
  }
1621
 
1622
+ $data = join( ',', $datarow ) . "\n";
1623
+ fwrite( $fh, $data );
1624
 
1625
+ fclose( $fh );
 
 
1626
 
1627
+ if (file_exists($myFile)) {
1628
+ header('Content-Description: File Transfer');
1629
+ header('Content-Type: application/octet-stream');
1630
+ header('Content-Disposition: attachment; filename='.basename($myFile));
1631
+ header('Expires: 0');
1632
+ header('Cache-Control: must-revalidate');
1633
+ header('Pragma: public');
1634
+ header('Content-Length: ' . filesize($myFile));
1635
+ readfile($myFile);
1636
+ exit;
1637
+ }
1638
+ } else {
1639
+ $messages[] = '6';
1640
+ }
1641
+ } elseif ( isset( $_POST['importsettings'] ) ) {
1642
+ global $wpdb;
1643
 
1644
+ if ( $_FILES['settingsfile']['tmp_name'] != "" ) {
1645
+ $handle = fopen( $_FILES['settingsfile']['tmp_name'], "r" );
1646
+
1647
+ $row = 1;
1648
+ $optionnames = array();
1649
+ $options = array();
1650
+
1651
+ while ( ( $data = fgetcsv( $handle, 5000, "," ) ) !== false ) {
1652
+ if ( $row == 1 ) {
1653
+ $optionnames = $data;
1654
+ $row ++;
1655
+ } else if ( $row == 2 ) {
1656
+ for ( $counter = 0; $counter <= count( $data ) - 1; $counter ++ ) {
1657
+ $options[$optionnames[$counter]] = $data[$counter];
1658
  }
1659
+ $row ++;
 
1660
  }
1661
+ }
1662
 
1663
+ if ( $options != "" ) {
1664
+ $settingsname = 'LinkLibraryPP' . $_POST['settingsetid'];
1665
 
1666
+ update_option( $settingsname, $options );
1667
+
1668
+ $messages[] = '7';
 
 
 
 
 
 
 
 
1669
  }
1670
+
1671
+ fclose( $handle );
1672
  } else {
1673
+ $messages[] = '8';
1674
  }
1675
  } else {
1676
+ $settingsetid = $_POST['settingsetid'];
1677
+ $settings = $_POST['settingsetid'];
1678
+
1679
+ $settingsname = 'LinkLibraryPP' . $settingsetid;
1680
+
1681
+ $options = get_option( $settingsname );
1682
+
1683
  $genoptions = get_option( 'LinkLibraryGeneral' );
1684
 
1685
  foreach (
1686
  array(
1687
+ 'order', 'table_width', 'num_columns', 'position',
1688
+ 'beforecatlist1', 'beforecatlist2', 'beforecatlist3', 'catnameoutput', 'linkaddfrequency',
1689
+ 'defaultsinglecat', 'rsspreviewcount', 'rssfeedinlinecount', 'linksperpage', 'catdescpos',
1690
+ 'catlistdescpos', 'rsspreviewwidth', 'rsspreviewheight', 'numberofrssitems',
1691
+ 'displayweblink', 'sourceweblink', 'showtelephone', 'sourcetelephone', 'showemail', 'sourceimage', 'sourcename', 'popup_width', 'popup_height', 'rssfeedinlinedayspublished', 'tooltipname', 'showupdatedpos'
1692
+ )
1693
+ as $option_name
1694
  ) {
1695
  if ( isset( $_POST[$option_name] ) ) {
1696
+ $options[$option_name] = str_replace( "\"", "'", strtolower( $_POST[$option_name] ) );
1697
  }
1698
  }
1699
 
1700
+ foreach ( array( 'categorylist', 'excludecategorylist' ) as $option_name ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1701
  if ( isset( $_POST[$option_name] ) ) {
1702
  if ( $genoptions['catselectmethod'] == 'commalist' || empty( $genoptions['catselectmethod'] ) ) {
1703
  $options[$option_name] = str_replace( "\"", "'", strtolower( $_POST[$option_name] ) );
1711
 
1712
  foreach (
1713
  array(
1714
+ 'linkheader', 'descheader', 'notesheader', 'linktarget', 'settingssetname', 'loadingicon',
1715
  'direction', 'linkdirection', 'linkorder', 'addnewlinkmsg', 'linknamelabel', 'linkaddrlabel', 'linkrsslabel',
1716
  'linkcatlabel', 'linkdesclabel', 'linknoteslabel', 'addlinkbtnlabel', 'newlinkmsg', 'moderatemsg', 'imagepos',
1717
  'imageclass', 'rssfeedtitle', 'rssfeeddescription', 'showonecatmode', 'linkcustomcatlabel', 'linkcustomcatlistentry',
1727
  'showaddlinkreciprocal', 'showaddlinksecondurl', 'showaddlinktelephone', 'showaddlinkemail', 'showcustomcaptcha', 'showlinksubmittername',
1728
  'showaddlinksubmitteremail', 'showlinksubmittercomment', 'showuserlargedescription', 'cat_letter_filter', 'beforefirstlink', 'afterlastlink',
1729
  'searchfieldtext', 'catfilterlabel', 'searchnoresultstext', 'addlinkdefaultcat', 'beforesubmittername', 'aftersubmittername',
1730
+ 'beforecatdesc', 'aftercatdesc', 'emailextracontent', 'displayastable', 'extraquerystring', 'updatedlabel'
 
1731
  ) as $option_name
1732
  ) {
1733
  if ( isset( $_POST[$option_name] ) ) {
1745
  'showlargedescription', 'addlinknoaddress', 'featuredfirst', 'usetextareaforusersubmitnotes', 'showcatonsearchresults', 'shownameifnoimage',
1746
  'enable_link_popup', 'nocatonstartup', 'showlinksonclick', 'showinvisibleadmin', 'combineresults', 'showifreciprocalvalid',
1747
  'cat_letter_filter_autoselect', 'cat_letter_filter_showalloption', 'emailsubmitter', 'addlinkakismet', 'rssfeedinlineskipempty',
1748
+ 'current_user_links', 'showsubmittername', 'onereciprocaldomain', 'nooutputempty', 'showcatdesc', 'showsearchreset'
 
 
1749
  )
1750
  as $option_name
1751
  ) {
1777
  update_option( $settingsname, $options );
1778
  $messages[] = "1";
1779
 
1780
+ global $wpdb;
1781
+
1782
+ if ( $options['categorylist'] != '' ) {
1783
+ $categoryids = explode( ',', $options['categorylist'] );
1784
 
1785
  foreach ( $categoryids as $categoryid ) {
1786
+ $linkcatquery = "SELECT distinct t.name, t.term_id, t.slug as category_nicename, tt.description as category_description ";
1787
+ $linkcatquery .= "FROM " . $this->db_prefix() . "terms t, " . $this->db_prefix() . "term_taxonomy tt ";
1788
+
1789
+ if ( isset( $_POST['hide_if_empty'] ) ) {
1790
+ $linkcatquery .= ", " . $this->db_prefix() . "term_relationships tr, " . $this->db_prefix() . "links l ";
1791
+ }
1792
 
1793
+ $linkcatquery .= "WHERE t.term_id = tt.term_id AND tt.taxonomy = 'link_category'";
1794
+
1795
+ $linkcatquery .= " AND t.term_id = " . $categoryid;
1796
+
1797
+ $catnames = $wpdb->get_results( $linkcatquery );
1798
 
1799
  if ( !$catnames ) {
1800
  $messages[] = '2';
1802
  }
1803
  }
1804
 
1805
+ if ( $options['excludecategorylist'] != '' ) {
1806
+ $categoryids = explode( ',', $options['excludecategorylist'] );
1807
 
1808
  foreach ( $categoryids as $categoryid ) {
1809
+ $linkcatquery = "SELECT distinct t.name, t.term_id, t.slug as category_nicename, tt.description as category_description ";
1810
+ $linkcatquery .= "FROM " . $this->db_prefix() . "terms t, " . $this->db_prefix() . "term_taxonomy tt ";
1811
+
1812
+ if ( isset( $_POST['hide_if_empty'] ) ) {
1813
+ $linkcatquery .= ", " . $this->db_prefix() . "term_relationships tr, " . $this->db_prefix() . "links l ";
1814
+ }
1815
 
1816
+ $linkcatquery .= "WHERE t.term_id = tt.term_id AND tt.taxonomy = 'link_category'";
1817
+
1818
+ $linkcatquery .= " AND t.term_id = " . $categoryid;
1819
+
1820
+ $catnames = $wpdb->get_results( $linkcatquery );
1821
 
1822
  if ( !$catnames ) {
1823
  $messages[] = '3';
1830
 
1831
  //lets redirect the post request into get request (you may add additional params at the url, if you need to show save results
1832
  $messagelist = implode( ",", $messages );
1833
+ $cleanredirecturl = $this->remove_querystring_var( $_POST['_wp_http_referer'], 'messages' );
1834
+ $cleanredirecturl = $this->remove_querystring_var( $cleanredirecturl, 'currenttab' );
1835
+ $cleanredirecturl = $this->remove_querystring_var( $cleanredirecturl, 'importrowscount' );
1836
+ $cleanredirecturl = $this->remove_querystring_var( $cleanredirecturl, 'successimportcount' );
1837
+ $cleanredirecturl = $this->remove_querystring_var( $cleanredirecturl, 'settingscopy' );
1838
+ $cleanredirecturl = $this->remove_querystring_var( $cleanredirecturl, 'reset' );
1839
+ $cleanredirecturl = $this->remove_querystring_var( $cleanredirecturl, 'resettable' );
1840
+ $cleanredirecturl = $this->remove_querystring_var( $cleanredirecturl, 'source' );
1841
+ $redirecturl = $cleanredirecturl;
1842
+
1843
+ if ( !empty( $messages ) ) {
1844
+ $redirecturl = $cleanredirecturl . "&messages=" . $messagelist;
1845
+ }
1846
 
1847
+ if ( $row != 0 ) {
1848
+ $redirecturl .= "&importrowscount=" . $row;
 
 
1849
  }
1850
 
1851
+ if ( $successfulimport != 0 ) {
1852
+ $redirecturl .= "&successimportcount=" . $successfulimport;
1853
  }
1854
 
1855
+ if ( $successfulupdate != 0 ) {
1856
+ $redirecturl .= "&successupdatecount=" . $successfulupdate;
1857
  }
1858
 
1859
+ if ( isset( $_POST['currenttab'] ) ) {
1860
+ $redirecturl .= "&currenttab=" . $_POST['currenttab'];
1861
  }
1862
 
1863
  wp_redirect( $redirecturl );
 
1864
  }
1865
 
1866
  //executed if the post arrives initiated by pressing the submit button of form
1877
  $genoptions = get_option( 'LinkLibraryGeneral' );
1878
 
1879
  if ( isset( $_POST['approvelinks'] ) && ( isset( $_POST['links'] ) && count( $_POST['links'] ) > 0 ) ) {
1880
+ global $wpdb;
1881
+
1882
  $section = 'moderate';
1883
 
1884
  foreach ( $_POST['links'] as $approved_link ) {
1885
+ $linkdescquery = "SELECT link_description, link_name, link_url ";
1886
+ $linkdescquery .= "FROM " . $this->db_prefix() . "links l ";
1887
+ $linkdescquery .= "WHERE link_id = " . $approved_link;
1888
+
1889
+ $linkdata = $wpdb->get_row( $linkdescquery, ARRAY_A );
1890
+
1891
+ $modpos = strpos( $linkdata['link_description'], "LinkLibrary:AwaitingModeration:RemoveTextToApprove" );
1892
+
1893
+ if ( $modpos ) {
1894
+ $startpos = $modpos + 51;
1895
+ $newlinkdesc = substr( $linkdata['link_description'], $startpos );
1896
 
1897
+ $id = array( "id" => $linkdescquery );
1898
+ $newdesc = array( "link_description", $newlinkdesc );
1899
+
1900
+ $tablename = $this->db_prefix() . "links";
1901
+ $wpdb->update( $tablename, array( 'link_description' => $newlinkdesc, 'link_visible' => 'Y' ), array( 'link_id' => $approved_link ) );
1902
  }
1903
 
1904
+ $linkextradata = $wpdb->get_row( "select * from " . $this->db_prefix() . "links_extrainfo where link_id = " . $approved_link, ARRAY_A );
 
 
1905
 
1906
+ if ( $genoptions['emaillinksubmitter'] == true && $linkextradata['link_submitter_email'] != '' ) {
1907
  if ( $genoptions['usefirstpartsubmittername'] == true ) {
1908
+ $spacepos = strpos( $linkextradata['link_submitter_name'], " " );
1909
  if ( $spacepos !== false ) {
1910
+ $linkextradata['link_submitter_name'] = substr( $linkextradata['link_submitter_name'], 0, $spacepos );
1911
  }
1912
  }
1913
 
1914
+ $emailtitle = str_replace( '%linkname%', $linkdata['link_name'], $genoptions['approvalemailtitle'] );
1915
  $emailbody = nl2br( $genoptions['approvalemailbody'] );
1916
+ $emailbody = str_replace( '%submittername%', stripslashes( $linkextradata['link_submitter_name'] ), stripslashes( $emailbody ) );
1917
+ $emailbody = str_replace( '%linkname%', $linkdata['link_name'], $emailbody );
1918
+ $emailbody = str_replace( '%linkurl%', $linkdata['link_url'], $emailbody );
1919
 
1920
  $headers = "MIME-Version: 1.0\r\n";
1921
  $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
1922
 
1923
+ if ( $genoptions['moderatorname'] != '' && $genoptions['moderatoremail'] != '' ) {
1924
  $headers .= "From: \"" . $genoptions['moderatorname'] . "\" <" . $genoptions['moderatoremail'] . ">\n";
1925
  }
1926
 
1930
  $message .= "<br /><br />" . __( 'Message generated by', 'link-library' ) . " <a href='http://ylefebvre.ca/wordpress-plugins/link-library/'>Link Library</a> for Wordpress";
1931
  }
1932
 
1933
+ wp_mail( $linkextradata['link_submitter_email'], $emailtitle, $message, $headers );
1934
 
1935
+ do_action( 'link_library_approval_email', $linkdata, $linkextradata );
1936
  }
1937
  }
1938
 
1939
  $message = '1';
1940
  } elseif ( isset( $_POST['deletelinks'] ) && ( isset( $_POST['links'] ) && count( $_POST['links'] ) > 0 ) ) {
1941
+ global $wpdb;
1942
+
1943
  $section = 'moderate';
1944
 
1945
  foreach ( $_POST['links'] as $approved_link ) {
1946
+ $linkdescquery = "SELECT link_description, link_name, link_url ";
1947
+ $linkdescquery .= "FROM " . $this->db_prefix() . "links l ";
1948
+ $linkdescquery .= "WHERE link_id = " . $approved_link;
1949
 
1950
+ $linkdata = $wpdb->get_row( $linkdescquery, ARRAY_A );
 
 
1951
 
1952
+ $linkextradata = $wpdb->get_row( "select * from " . $this->db_prefix() . "links_extrainfo where link_id = " . $approved_link, ARRAY_A );
 
 
 
 
 
 
1953
 
1954
+ if ( $genoptions['emaillinksubmitter'] == true && $linkextradata['link_submitter_email'] != '' ) {
1955
+ $emailtitle = str_replace( '%linkname%', $linkdata['link_name'], $genoptions['rejectedemailtitle'] );
1956
  $emailbody = nl2br( $genoptions['rejectedemailbody'] );
1957
+ $emailbody = str_replace( '%submittername%', stripslashes( $linkextradata['link_submitter_name'] ), stripslashes( $emailbody ) );
1958
+ $emailbody = str_replace( '%linkname%', $linkdata['link_name'], $emailbody );
1959
+ $emailbody = str_replace( '%linkurl%', $linkdata['link_url'], $emailbody );
1960
 
1961
  $headers = "MIME-Version: 1.0\r\n";
1962
  $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
1963
 
1964
+ if ( $genoptions['moderatorname'] != '' && $genoptions['moderatoremail'] != '' ) {
1965
  $headers .= "From: \"" . $genoptions['moderatorname'] . "\" <" . $genoptions['moderatoremail'] . ">\n";
1966
  }
1967
 
1968
  $message = $emailbody;
1969
+
1970
+ if ( !$genoptions['suppressemailfooter'] ) {
1971
+ $message .= "<br /><br />" . __( 'Message generated by', 'link-library' ) . " <a href='http://ylefebvre.ca/wordpress-plugins/link-library/'>Link Library</a> for Wordpress";
1972
+ }
1973
 
1974
+ wp_mail( $linkextradata['link_submitter_email'], $emailtitle, $message, $headers );
 
 
1975
 
1976
+ do_action( 'link_library_rejection_email', $linkdata, $linkextradata );
1977
  }
1978
 
1979
+ $wpdb->query( "DELETE FROM " . $this->db_prefix() . "links WHERE link_id = " . $approved_link );
1980
  }
1981
 
1982
  $message = '2';
1983
  }
1984
 
1985
+ $cleanredirecturl = $this->remove_querystring_var( $_POST['_wp_http_referer'], 'message' );
1986
 
1987
+ if ( $message != '' ) {
1988
+ $redirecturl = $cleanredirecturl . "&message=" . $message;
1989
+ } else {
1990
+ $redirecturl = $cleanredirecturl;
1991
  }
1992
 
1993
  //lets redirect the post request into get request (you may add additional params at the url, if you need to show save results
1994
  wp_redirect( $redirecturl );
 
1995
  }
1996
 
1997
  function on_save_changes_stylesheet() {
2024
  }
2025
 
2026
  //lets redirect the post request into get request (you may add additional params at the url, if you need to show save results
2027
+ wp_redirect( $this->remove_querystring_var( $_POST['_wp_http_referer'], 'message' ) . "&message=" . $message );
 
 
 
2028
  }
2029
 
2030
  function on_save_changes_reciprocal() {
2054
  $message = 4;
2055
  }
2056
 
2057
+ if ( $message != - 1 ) {
2058
+ $messageend = "&message=" . $message;
2059
+ } else {
2060
+ $messageend = '';
2061
+ }
2062
+
2063
  //lets redirect the post request into get request (you may add additional params at the url, if you need to show save results
2064
+ wp_redirect( $this->remove_querystring_var( $_POST['_wp_http_referer'], 'message' ) . $messageend );
 
 
 
2065
  }
2066
 
2067
  function general_meta_box( $data ) {
2076
  <td>
2077
  <input type='hidden' value='<?php echo $genoptions['schemaversion']; ?>' name='schemaversion' id='schemaversion' />
2078
  <table>
 
 
 
 
2079
  <?php if ( !is_multisite() ) { ?>
2080
  <tr>
2081
  <td><?php _e( 'Update channel', 'link-library' ); ?></td>
2094
  <tr>
2095
  <td><?php _e( 'Number of Libraries', 'link-library' ); ?></td>
2096
  <td>
2097
+ <input type="text" id="numberstylesets" name="numberstylesets" size="5" value="<?php if ( $genoptions['numberstylesets'] == '' ) {
2098
  echo '1';
2099
  }
2100
  echo $genoptions['numberstylesets']; ?>" /></td>
2147
  <tr>
2148
  <td><?php _e( 'Debug Mode', 'link-library' ); ?></td>
2149
  <td>
2150
+ <input type="checkbox" id="debugmode" name="debugmode" <?php if ( $genoptions['debugmode'] ) {
2151
+ echo ' checked="checked" ';
2152
+ } ?>/></td>
2153
  </tr>
2154
  <tr>
2155
  <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>
2255
  <td>
2256
  <input type="text" id="rsscachedelay" name="rsscachedelay" size="5" value="<?php echo intval( $genoptions['rsscachedelay'] ); ?>" /></td>
2257
  </tr>
2258
+
2259
+ <tr>
2260
+ <td>
2261
+ <input type="submit" id="exportalllinks" name="exportalllinks" value="<?php _e( 'Export All Links', 'link-library' ); ?>" />
2262
+ </td>
2263
+ </tr>
2264
  </table>
2265
  </td>
2266
  <?php if ( isset( $genoptions['hidedonation'] ) && !$genoptions['hidedonation'] ) { ?>
2297
  <?php
2298
  }
2299
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2300
  function general_image_meta_box( $data ) {
2301
  $genoptions = $data['genoptions'];
2302
  ?>
2343
  <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>
2344
  </td>
2345
  </tr>
2346
+ <tr>
2347
+ <td class='lltooltip' style='width:250px'><?php _e( 'Validate all submitted links with Akismet', 'link-library' ); ?></td>
2348
+ <td class='lltooltip' style='width:75px;padding-right:20px'>
2349
+ <input type="checkbox" id="addlinkakismet" name="addlinkakismet" <?php checked( $genoptions['addlinkakismet'] ); ?> />
2350
+ </td>
2351
+ </tr>
2352
  <tr>
2353
  <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>
2354
  <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' ); ?>.'>
2364
  <tr>
2365
  <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>
2366
  <td style='width:75px;padding-right:20px'>
2367
+ <input type="checkbox" id="emaillinksubmitter" name="emaillinksubmitter" <?php if ( $genoptions['emaillinksubmitter'] ) {
2368
+ echo ' checked="checked" ';
2369
+ } ?>/></td>
2370
  </tr>
2371
  <tr>
2372
  <td class='lltooltip' style='width:250px'><?php _e( 'Suppress Link Library message in e-mail footer', 'link-library' ); ?></td>
2373
  <td style='width:75px;padding-right:20px'>
2374
+ <input type="checkbox" id="suppressemailfooter" name="suppressemailfooter" <?php if ( $genoptions['suppressemailfooter'] ) {
2375
+ echo ' checked="checked" ';
2376
+ } ?>/></td>
2377
  </tr>
2378
  <tr>
2379
  <td style='width:250px'><?php _e( 'Only use first part of submitter name', 'link-library' ); ?></td>
2380
  <td style='width:75px;padding-right:20px'>
2381
+ <input type="checkbox" id="usefirstpartsubmittername" name="usefirstpartsubmittername" <?php if ( $genoptions['usefirstpartsubmittername'] ) {
2382
+ echo ' checked="checked" ';
2383
+ } ?>/></td>
2384
  </tr>
2385
  <tr>
2386
  <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>
2424
  }
2425
 
2426
  function general_hide_donation_meta_box() {
2427
+ ?>
2428
+ <div style='padding-top:15px' id="ll-hidedonation" class="content-section">
2429
  <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>
2430
  <table>
2431
  <tr>
2432
  <td class='lltooltip'><?php _e( 'Hide Donation and Support Links', 'link-library' ); ?></td>
2433
  <td>
2434
+ <input type="checkbox" id="hidedonation" name="hidedonation" <?php if ( isset( $genoptions['hidedonation'] ) && $genoptions['hidedonation'] ) {
2435
+ echo ' checked="checked" ';
2436
+ } ?>/></td>
2437
  </tr>
2438
  </table>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2439
  </div>
2440
+ <?php
2441
  }
2442
 
2443
  function general_save_meta_box() {
2468
  <th style='width: 300px'><?php _e( 'Link URL', 'link-library' ); ?></th>
2469
  <th><?php _e( 'Link Description', 'link-library' ); ?></th>
2470
  </tr>
2471
+ <?php global $wpdb;
2472
+
2473
+ $linkquery = "SELECT distinct *, l.link_id as true_link_id ";
2474
+ $linkquery .= "FROM " . $this->db_prefix() . "links_extrainfo le ";
2475
+ $linkquery .= "LEFT JOIN " . $this->db_prefix() . "links l ON (le.link_id = l.link_id) ";
2476
+ $linkquery .= "LEFT JOIN " . $this->db_prefix() . "term_relationships tr ON (l.link_id = tr.object_id) ";
2477
+ $linkquery .= "LEFT JOIN " . $this->db_prefix() . "term_taxonomy tt ON (tt.term_taxonomy_id = tr.term_taxonomy_id) ";
2478
+ $linkquery .= "LEFT JOIN " . $this->db_prefix() . "terms t ON (t.term_id = tt.term_id) ";
2479
+ $linkquery .= "WHERE l.link_description like '%LinkLibrary:AwaitingModeration:RemoveTextToApprove%' ";
2480
+ $linkquery .= "AND tt.taxonomy = 'link_category' ";
2481
+ $linkquery .= " ORDER by link_name ASC";
2482
+
2483
+ if ( $genoptions['debugmode'] ) {
2484
+ echo '<!-- ' . $linkquery . ' -->' . "\n";
2485
+ }
 
 
 
 
 
 
 
 
 
 
2486
 
2487
+ $linkitems = $wpdb->get_results( $linkquery );
2488
+
2489
+ if ( $genoptions['debugmode'] ) {
2490
+ echo '<!-- ';
2491
+ print_r( $linkitems );
2492
+ echo ' -->';
2493
+ }
2494
+
2495
+ if ( $linkitems ) {
2496
+ foreach ( $linkitems as $linkitem ) {
2497
+
2498
+ $modpos = strpos( $linkitem->link_description, "LinkLibrary:AwaitingModeration:RemoveTextToApprove" );
2499
+
2500
+ if ( $modpos ) {
2501
+ $startpos = $modpos + 51;
2502
+ $newlinkdesc = substr( $linkitem->link_description, $startpos );
2503
+ }
2504
  ?>
2505
  <tr style='background: #FFF'>
2506
+ <td><input type="checkbox" name="links[]" value="<?php echo $linkitem->true_link_id; ?>" /></td>
2507
+ <td><?php echo "<a title='Edit Link: " . $linkitem->link_name . "' href='" . esc_url( add_query_arg( array( 'action' => 'edit', 'link_id' => $linkitem->true_link_id ), admin_url( 'link.php' ) ) ) . "'>" . $linkitem->link_name . "</a>"; ?></td>
2508
+ <td><?php echo $linkitem->name; ?></td>
2509
+ <td><?php echo "<a href='" . $linkitem->link_url . "'>" . $linkitem->link_url . "</a>"; ?></td>
2510
+ <td><?php echo $newlinkdesc; ?></td>
2511
  </tr>
2512
+ <?php
2513
  }
2514
  } else {
2515
  ?>
2569
  <div>
2570
  <?php _e( 'Select Current Library Settings', 'link-library' ); ?> :
2571
  <SELECT id="settingsetlist" name="settingsetlist" style='width: 300px'>
2572
+ <?php if ( $genoptions['numberstylesets'] == '' ) {
2573
  $numberofsets = 1;
2574
  } else {
2575
  $numberofsets = $genoptions['numberstylesets'];
2590
  <?php $tempoptionname = "LinkLibraryPP" . $counter;
2591
  $tempoptions = get_option( $tempoptionname );
2592
  if ( $counter != $settings ):?>
2593
+ <option value="<?php echo $counter ?>" <?php echo( $settings == $counter ); ?>><?php _e( 'Library', 'link-library' ); ?> <?php echo $counter ?><?php if ( $tempoptions != "" ) {
2594
  echo " (" . stripslashes( $tempoptions['settingssetname'] ) . ")";
2595
  } ?></option>
2596
  <?php endif;
2662
  <?php
2663
  }
2664
 
2665
+ function settingssets_common_meta_box( $data ) {
2666
+ $options = $data['options'];
2667
+ $settings = $data['settings'];
2668
+ $genoptions = $data['genoptions'];
2669
+ ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2670
 
2671
  <div style='padding-top: 15px' id="ll-common" class="content-section">
2672
  <input type='hidden' value='<?php echo $settings; ?>' name='settingsetid' id='settingsetid' />
2689
  </td>
2690
  <?php if ( $genoptions['catselectmethod'] == 'commalist' || empty( $genoptions['catselectmethod'] ) ) { ?>
2691
  <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">
2692
+ <input type="text" id="categorylist" name="categorylist" size="40" value="<?php echo $options['categorylist']; ?>" />
2693
  </td>
2694
  <?php
2695
  } else {
2696
+ global $wpdb;
2697
+ $linkcatquery = "SELECT distinct ";
2698
+ $linkcatquery .= "t.name, t.term_id ";
2699
+ $linkcatquery .= "FROM " . $this->db_prefix() . "terms t LEFT JOIN " . $this->db_prefix() . "term_taxonomy tt ON (t.term_id = tt.term_id)";
2700
+ $linkcatquery .= " LEFT JOIN " . $this->db_prefix() . "term_relationships tr ON (tt.term_taxonomy_id = tr.term_taxonomy_id) ";
2701
+ $linkcatquery .= "WHERE tt.taxonomy = 'link_category'";
2702
+
2703
+ $linkcatquery .= " ORDER by t.name " . $options['direction'];
2704
+
2705
+ $catnames = $wpdb->get_results( $linkcatquery );
2706
 
2707
+ $categorylistarray = explode( ',', $options['categorylist'] );
2708
  ?>
2709
  <td>
2710
+ <?php if ( !empty( $catnames ) ) { ?>
2711
+ <select style="width:100%" id="categorylist" name="categorylist[]" multiple <?php disabled( empty( $options['categorylist'] ), true, true ); ?>>
2712
+ <?php foreach ( $catnames as $catname ) { ?>
2713
+ <option value="<?php echo $catname->term_id; ?>" <?php selected( in_array( $catname->term_id, $categorylistarray ), true, true ); ?> ><?php echo $catname->name; ?></option>
2714
+
2715
+ <?php } ?>
2716
+ </select>
2717
+ <?php } else { ?>
2718
+ <?php _e( 'No link categories! Create some!', 'link-library' ); ?>
2719
+ <?php } ?>
2720
  <?php _e( 'Show all categories', 'link-library' ); ?>
2721
+ <input type="checkbox" id="nospecificcats" name="nospecificcats" <?php if ( empty( $options['categorylist'] ) ) {
2722
+ echo ' checked="checked" ';
2723
+ } ?>/>
2724
 
2725
  </td>
2726
  <?php } ?>
2731
  </td>
2732
  <?php if ( $genoptions['catselectmethod'] == 'commalist' || empty( $genoptions['catselectmethod'] ) ) { ?>
2733
  <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">
2734
+ <input type="text" id="excludecategorylist" name="excludecategorylist" size="40" value="<?php echo $options['excludecategorylist']; ?>" />
2735
  </td>
2736
  <?php
2737
  } else {
2738
+ $excludecategorylistarray = explode( ',', $options['excludecategorylist'] );
2739
  ?>
2740
  <td>
2741
+ <?php if ( !empty( $catnames ) ) { ?>
2742
+ <select style="width:100%" id="excludecategorylist" name="excludecategorylist[]" multiple <?php disabled( empty( $options['excludecategorylist'] ), true, true ); ?>>
2743
+ <?php foreach ( $catnames as $catname ) { ?>
2744
+ <option value="<?php echo $catname->term_id; ?>" <?php selected( in_array( $catname->term_id, $excludecategorylistarray ), true, true ); ?> ><?php echo $catname->name; ?></option>
2745
+
2746
+ <?php } ?>
2747
+ </select>
2748
+ <?php } else { ?>
2749
+ <?php _e( 'No link categories! Create some!', 'link-library' ); ?>
2750
+ <?php } ?>
2751
  <?php _e( 'No Exclusions', 'link-library' ); ?>
2752
+ <input type="checkbox" id="noexclusions" name="noexclusions" <?php if ( empty( $options['excludecategorylist'] ) ) {
2753
+ echo ' checked="checked" ';
2754
+ } ?>/>
2755
 
2756
  </td>
2757
  <?php } ?>
2761
  <?php _e( 'Only show one category at a time', 'link-library' ); ?>
2762
  </td>
2763
  <td class="lltooltip" title="<?php _e( 'Only show one category of links at a time', 'link-library' ); ?>">
2764
+ <input type="checkbox" id="showonecatonly" name="showonecatonly" <?php if ( $options['showonecatonly'] ) {
2765
+ echo ' checked="checked" ';
2766
+ } ?>/>
2767
  </td>
2768
  <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>
2769
  <td>
2770
  <select name="showonecatmode" id="showonecatmode" style="width:200px;">
2771
+ <option value="AJAX"<?php if ( $options['showonecatmode'] == 'AJAX' || $options['showonecatmode'] == '' ) {
2772
+ echo ' selected="selected"';
2773
+ } ?>>AJAX
2774
  </option>
2775
+ <option value="HTMLGET"<?php if ( $options['showonecatmode'] == 'HTMLGET' ) {
2776
+ echo ' selected="selected"';
2777
+ } ?>>HTML GET
2778
  </option>
2779
+ <option value="HTMLGETSLUG"<?php if ( $options['showonecatmode'] == 'HTMLGETSLUG' ) {
2780
+ echo ' selected="selected"';
2781
+ } ?>>HTML GET Using Slugs
2782
  </option>
2783
+ <option value="HTMLGETCATNAME"<?php if ( $options['showonecatmode'] == 'HTMLGETCATNAME' ) {
2784
+ echo ' selected="selected"';
2785
+ } ?>>HTML GET Using Category Name
2786
  </option>
2787
+ <option value="HTMLGETPERM"<?php if ( $options['showonecatmode'] == 'HTMLGETPERM' ) {
2788
+ echo ' selected="selected"';
2789
+ } ?>>HTML GET + Permalink
2790
  </option>
2791
  </select>
2792
  </td>
2796
  <?php _e( 'Default category to be shown when only showing one at a time (numeric ID)', 'link-library' ); ?>
2797
  </td>
2798
  <td>
2799
+ <input type="text" id="defaultsinglecat" name="defaultsinglecat" size="4" value="<?php echo $options['defaultsinglecat']; ?>" />
2800
  </td>
2801
+ <td><?php _e( 'Hide category on start in single cat AJAX mode', 'link-library' ); ?></td>
2802
  <td>
2803
+ <input type="checkbox" id="nocatonstartup" name="nocatonstartup" <?php if ( $options['nocatonstartup'] ) {
2804
+ echo ' checked="checked" ';
2805
+ } ?>/></td>
2806
  </tr>
2807
  <tr>
2808
  <td class="lltooltip" title="<?php _e( 'File path is relative to Link Library plugin directory', 'link-library' ); ?>">
2809
  <?php _e( 'Icon to display when performing AJAX queries', 'link-library' ); ?>
2810
  </td>
2811
  <td class="lltooltip" title="<?php _e( 'File path is relative to Link Library plugin directory', 'link-library' ); ?>">
2812
+ <input type="text" id="loadingicon" name="loadingicon" size="40" value="<?php if ( $options['loadingicon'] == '' ) {
2813
  echo '/icons/Ajax-loader.gif';
2814
  } else {
2815
  echo strval( $options['loadingicon'] );
2821
  <?php _e( 'Paginate Results', 'link-library' ); ?>
2822
  </td>
2823
  <td class="lltooltip" title='<?php _e( 'Only show a limited number of links and add page navigation links', 'link-library' ); ?>'>
2824
+ <input type="checkbox" id="pagination" name="pagination" <?php if ( $options['pagination'] ) {
2825
+ echo ' checked="checked" ';
2826
+ } ?>/>
2827
  </td>
2828
  <td class="lltooltip" title="<?php _e( 'Number of Links to be Displayed per Page in Pagination Mode', 'link-library' ); ?>">
2829
  <?php _e( 'Links per Page', 'link-library' ); ?>
2838
  </td>
2839
  <td>
2840
  <select name="paginationposition" id="paginationposition" style="width:200px;">
2841
+ <option value="AFTER"<?php if ( $options['paginationposition'] == 'AFTER' || $options['paginationposition'] == '' ) {
2842
+ echo ' selected="selected"';
2843
+ } ?>><?php _e( 'After Links', 'link-library' ); ?></option>
2844
+ <option value="BEFORE"<?php if ( $options['paginationposition'] == 'BEFORE' ) {
2845
+ echo ' selected="selected"';
2846
+ } ?>><?php _e( 'Before Links', 'link-library' ); ?></option>
2847
  </select>
2848
  </td>
2849
  <td>
2850
  <?php _e( 'Hide Results if Empty', 'link-library' ); ?>
2851
  </td>
2852
  <td>
2853
+ <input type="checkbox" id="hide_if_empty" name="hide_if_empty" <?php if ( $options['hide_if_empty'] ) {
2854
+ echo ' checked="checked" ';
2855
+ } ?>/>
2856
  </td>
2857
  </tr>
 
 
 
2858
  <tr>
2859
  <td>
2860
  <?php _e( 'Enable Permalinks', 'link-library' ); ?>
2861
  </td>
2862
  <td>
2863
+ <input type="checkbox" id="enablerewrite" name="enablerewrite" <?php if ( $options['enablerewrite'] ) {
2864
+ echo ' checked="checked" ';
2865
+ } ?>/>
2866
  </td>
2867
  <td>
2868
  <?php _e( 'Permalinks Page', 'link-library' ); ?>
2871
  <input type="text" id="rewritepage" name="rewritepage" size="40" value="<?php echo $options['rewritepage']; ?>" />
2872
  </td>
2873
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2874
  <tr>
2875
  <td><?php _e( 'Display alphabetic cat filter', 'link-library' ); ?></td>
2876
  <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' ) ); ?>
2901
  jQuery(document).ready(function () {
2902
  jQuery('#nospecificcats').click(function () {
2903
  if (jQuery("#nospecificcats").is(":checked")) {
2904
+ jQuery('#categorylist').prop('disabled', 'disabled');
2905
+ jQuery("#categorylist").val([]);
2906
  }
2907
  else {
2908
+ jQuery('#categorylist').prop('disabled', false);
2909
  }
2910
  });
2911
  });
2913
  jQuery(document).ready(function () {
2914
  jQuery('#noexclusions').click(function () {
2915
  if (jQuery("#noexclusions").is(":checked")) {
2916
+ jQuery('#excludecategorylist').prop('disabled', 'disabled');
2917
+ jQuery("#excludecategorylist").val([]);
2918
  }
2919
  else {
2920
+ jQuery('#excludecategorylist').prop('disabled', false);
2921
  }
2922
  });
2923
  });
2939
  </td>
2940
  <td>
2941
  <select name="order" id="order" style="width:200px;">
2942
+ <option value="name"<?php if ( $options['order'] == 'name' ) {
2943
+ echo ' selected="selected"';
2944
+ } ?>><?php _e( 'Order by Name', 'link-library' ); ?></option>
2945
+ <option value="id"<?php if ( $options['order'] == 'id' ) {
2946
+ echo ' selected="selected"';
2947
+ } ?>><?php _e( 'Order by ID', 'link-library' ); ?></option>
2948
  <?php if ( $genoptions['catselectmethod'] == 'commalist' || empty( $genoptions['catselectmethod'] ) ) { ?>
2949
+ <option value="catlist"<?php if ( $options['order'] == 'catlist' ) {
2950
+ echo ' selected="selected"';
2951
+ } ?>><?php _e( 'Order of categories based on included category list', 'link-library' ); ?></option>
2952
  <?php } ?>
2953
+ <option value="order"<?php if ( $options['order'] == 'order' ) {
2954
+ echo ' selected="selected"';
2955
+ } ?>><?php _e( 'Order by', 'link-library' ); ?> 'My Link Order' <?php _e( 'Wordpress Plugin', 'link-library' ); ?></option>
2956
  </select>
2957
  </td>
2958
  <td style='width:100px'></td>
3111
  <?php _e( 'Show Category Description', 'link-library' ); ?>
3112
  </td>
3113
  <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' ); ?>">
3114
+ <input type="checkbox" id="showcategorydesclinks" name="showcategorydesclinks" <?php if ( $options['showcategorydesclinks'] ) {
3115
+ echo ' checked="checked" ';
3116
+ } ?>/>
3117
  <span style='margin-left: 17px'><?php _e( 'Position', 'link-library' ); ?>:</span>
3118
  <select name="catdescpos" id="catdescpos" style="width:100px;">
3119
  <option value="right"<?php selected( $options['catdescpos'] == 'right' ); ?>><?php _e( 'Right', 'link-library' ); ?></option>
3120
  <option value="left"<?php selected( $options['catdescpos'] == 'left' ); ?>><?php _e( 'Left', 'link-library' ); ?></option>
 
 
3121
  </select>
3122
  </td>
3123
  </tr>
3183
  <td>
3184
  <select name="displayastable" id="displayastable" style="width:200px;">
3185
  <option value="true"<?php selected( $options['displayastable'], 'true' ); ?>><?php _e( 'Table', 'link-library' ); ?></option>
3186
+ <option value="false"<?php selected( $options['displayastable'], 'false' ); ?>><?php _e( 'Unordered List', 'link-library' ); ?></option>
3187
  <option value="nosurroundingtags"<?php selected( $options['displayastable'], 'nosurroundingtags' ); ?>><?php _e( 'No surrounding tags', 'link-library' ); ?></option>
3188
  </select>
3189
  </td>
3203
  <td>
3204
  <input type="checkbox" id="showcolumnheaders" name="showcolumnheaders" <?php checked( $options['showcolumnheaders'] ); ?>/>
3205
  </td>
3206
+ <td></td>
3207
  <td>
3208
+ <?php _e( 'Link Column Header', 'link-library' ); ?>
 
 
 
 
 
 
 
 
 
 
3209
  </td>
3210
  <td>
3211
+ <input type="text" id="linkheader" name="linkheader" size="40" value="<?php echo $options['linkheader']; ?>" />
3212
  </td>
3213
  </tr>
3214
  <tr>
3215
  <td>
3216
+ <?php _e( 'Description Column Header', 'link-library' ); ?>
3217
  </td>
3218
  <td>
3219
+ <input type="text" id="descheader" name="descheader" size="40" value="<?php echo $options['descheader']; ?>" />
3220
  </td>
3221
  <td></td>
3222
  <td>
3223
+ <?php _e( 'Notes Column Header', 'link-library' ); ?>
3224
  </td>
3225
  <td>
3226
+ <input type="text" id="notesheader" name="notesheader" size="40" value="<?php echo $options['notesheader']; ?>" />
3227
  </td>
3228
  </tr>
3229
  <tr>
3230
  <td>
3231
+ <?php _e( 'Hide Category Names', 'link-library' ); ?>
3232
  </td>
3233
  <td>
3234
+ <input type="checkbox" id="hidecategorynames" name="hidecategorynames" <?php checked( $options['hidecategorynames'] ); ?>/>
3235
  </td>
3236
  <td></td>
3237
  <td>
3238
+ <?php _e( 'Show Hidden Links', 'link-library' ); ?>
 
 
 
 
 
 
 
 
3239
  </td>
3240
  <td>
3241
+ <input type="checkbox" id="showinvisible" name="showinvisible" <?php checked( $options['showinvisible'] ); ?>/>
3242
  </td>
3243
  </tr>
3244
  <tr>
3270
  <?php _e( 'Arrange the items below via drag-and-drop to order the various Link Library elements.', 'link-library' ); ?>
3271
  <br /><br />
3272
  <ul id="sortable">
3273
+ <?php if ( $options['dragndroporder'] == '' ) {
3274
+ $dragndroporder = '1,2,3,4,5,6,7,8,9,10,11,12,13,14';
3275
  } else {
3276
  $dragndroporder = $options['dragndroporder'];
3277
  }
 
3278
  $dragndroparray = explode( ',', $dragndroporder );
3279
 
3280
+ if ( !in_array( '13', $dragndroparray ) ) {
3281
+ $dragndroparray[] = '13';
3282
+ }
3283
 
3284
+ if ( !in_array( '14', $dragndroparray ) ) {
3285
+ $dragndroparray[] = '14';
 
 
3286
  }
3287
 
3288
  if ( $dragndroparray ) {
3314
  <?php break;
3315
  case 7:
3316
  ?>
3317
+ <li id="7" style='background-color: #5ccccc'><?php _e( 'Link', 'link-library' ); ?></li>
3318
  <?php break;
3319
  case 8:
3320
  ?>
3344
  ?>
3345
  <li id="14" style='background-color: #33eeff'><?php _e( 'Cat Desc', 'link-library' ); ?></li>
3346
  <?php break;
 
 
 
 
 
 
 
 
3347
  }
3348
  }
3349
  }
3390
  <td style='background: #FFF'></td>
3391
  <td style='background: #FFF'></td>
3392
  </tr>
3393
+ <?php if ( $options['dragndroporder'] == '' ) {
3394
+ $dragndroporder = '1,2,3,4,5,6,7,8,9,10,11,12,13,14';
3395
  } else {
3396
  $dragndroporder = $options['dragndroporder'];
3397
  }
3398
+
3399
  $dragndroparray = explode( ',', $dragndroporder );
3400
 
3401
+ if ( !in_array( '13', $dragndroparray ) ) {
3402
+ $dragndroparray[] = '13';
3403
+ }
3404
 
3405
+ if ( !in_array( '14', $dragndroparray ) ) {
3406
+ $dragndroparray[] = '14';
 
 
3407
  }
3408
 
3409
  if ( $dragndroparray ) {
3414
  <tr>
3415
  <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>
3416
  <td style='text-align:center;background: #FFF'>
3417
+ <input type="checkbox" id="show_images" name="show_images" <?php if ( $options['show_images'] ) {
3418
+ echo ' checked="checked" ';
3419
+ } ?>/>
3420
  </td>
3421
  <td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before each link image', 'link-library' ); ?>'>
3422
  <input type="text" id="beforeimage" name="beforeimage" size="22" value="<?php echo stripslashes( $options['beforeimage'] ); ?>" />
3429
  </td>
3430
  <td style='background: #FFF'>
3431
  <select name="sourceimage" id="sourceimage" style="width:200px;">
3432
+ <option value="primary"<?php if ( $options['sourceimage'] == "primary" ) {
3433
+ echo ' selected="selected"';
3434
+ } ?>><?php _e( 'Primary', 'link-library' ); ?></option>
3435
+ <option value="secondary"<?php if ( $options['sourceimage'] == "secondary" ) {
3436
+ echo ' selected="selected"';
3437
+ } ?>><?php _e( 'Secondary', 'link-library' ); ?></option>
3438
  </select>
3439
  </td>
3440
  </tr>
3444
  <tr>
3445
  <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>
3446
  <td style='text-align:center;background: #FFF'>
3447
+ <input type="checkbox" id="showname" name="showname" <?php if ( $options['showname'] == true ) {
3448
+ echo ' checked="checked" ';
3449
+ } ?>/>
3450
  </td>
3451
  <td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before each link', 'link-library' ); ?>'>
3452
  <input type="text" id="beforelink" name="beforelink" size="22" value="<?php echo stripslashes( $options['beforelink'] ); ?>" />
3462
  </td>
3463
  <td style='background: #FFF'>
3464
  <select name="sourcename" id="sourcename" style="width:200px;">
3465
+ <option value="primary"<?php selected( $options['sourcename'], 'primary' ); ?>><?php _e( 'Primary', 'link-library' ); ?></option>
3466
+ <option value="secondary"<?php selected( $options['sourcename'], 'secondary' ); ?>><?php _e( 'Secondary', 'link-library' ); ?></option>
 
3467
  </select>
3468
  </td>
3469
  </tr>
3473
  <tr>
3474
  <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>
3475
  <td style='background: #FFF;text-align:center' class="lltooltip" title='<?php _e( 'Check to display link date', 'link-library' ); ?>'>
3476
+ <input type="checkbox" id="showdate" name="showdate" <?php if ( $options['showdate'] ) {
3477
+ echo ' checked="checked" ';
3478
+ } ?>/>
3479
  </td>
3480
  <td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before each date', 'link-library' ); ?>'>
3481
  <input type="text" id="beforedate" name="beforedate" size="22" value="<?php echo stripslashes( $options['beforedate'] ); ?>" />
3492
  <tr>
3493
  <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>
3494
  <td style='background: #FFF;text-align: center' class="lltooltip" title='<?php _e( 'Check to display link descriptions', 'link-library' ); ?>'>
3495
+ <input type="checkbox" id="showdescription" name="showdescription" <?php if ( $options['showdescription'] ) {
3496
+ echo ' checked="checked" ';
3497
+ } ?>/>
3498
  </td>
3499
  <td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before each description', 'link-library' ); ?>'>
3500
  <input type="text" id="beforedesc" name="beforedesc" size="22" value="<?php echo stripslashes( $options['beforedesc'] ); ?>" />
3511
  <tr>
3512
  <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>
3513
  <td style='background: #FFF;text-align: center' class="lltooltip" title='<?php _e( 'Check to display link notes', 'link-library' ); ?>'>
3514
+ <input type="checkbox" id="shownotes" name="shownotes" <?php if ( $options['shownotes'] ) {
3515
+ echo ' checked="checked" ';
3516
+ } ?>/>
3517
  </td>
3518
  <td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before each note', 'link-library' ); ?>'>
3519
  <input type="text" id="beforenote" name="beforenote" size="22" value="<?php echo stripslashes( $options['beforenote'] ); ?>" />
3550
  <select name="displayweblink" id="displayweblink" style="width:80px;">
3551
  <option value="false"<?php selected( $options['displayweblink'] == "false" ); ?>><?php _e( 'False', 'link-library' ); ?></option>
3552
  <option value="address"<?php selected( $options['displayweblink'] == "address" ); ?>><?php _e( 'Web Address', 'link-library' ); ?></option>
3553
+ <option value="addressonly"<?php selected( $options['displayweblink'] == "addressonly" ); ?>><?php _e( 'Web Address Only', 'link-library' ); ?></option>
3554
  <option value="label"<?php selected( $options['displayweblink'] == "label" ); ?>><?php _e( 'Label', 'link-library' ); ?></option>
3555
  </select>
3556
  </td>
3560
  <td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed after Web Link', 'link-library' ); ?>'>
3561
  <input type="text" id="afterweblink" name="afterweblink" size="22" value="<?php echo stripslashes( $options['afterweblink'] ); ?>" />
3562
  </td>
3563
+ <td style='background: #FFF' class="lltooltip" title='<?php _e( 'Text Label that the web link will be assigned to.', 'link-library' ); ?>'>
3564
+ <input type="text" id="weblinklabel" name="weblinklabel" size="22" value="<?php echo stripslashes( $options['weblinklabel'] ); ?>" />
 
3565
  </td>
3566
  <td style='background: #FFF' class="lltooltip" title='<?php _e( 'Select which link address will be displayed / used for link', 'link-library' ); ?>'>
3567
  <select name="sourceweblink" id="sourceweblink" style="width:200px;">
3568
+ <option value="primary"<?php if ( $options['sourceweblink'] == "primary" ) {
3569
+ echo ' selected="selected"';
3570
+ } ?>><?php _e( 'Primary', 'link-library' ); ?></option>
3571
+ <option value="secondary"<?php if ( $options['sourceweblink'] == "secondary" ) {
3572
+ echo ' selected="selected"';
3573
+ } ?>><?php _e( 'Secondary', 'link-library' ); ?></option>
3574
  </select>
3575
  </td>
3576
  </tr>
3581
  <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>
3582
  <td style='text-align:center;background: #FFF'>
3583
  <select name="showtelephone" id="showtelephone" style="width:80px;">
3584
+ <option value="false"<?php if ( $options['showtelephone'] == "false" ) {
3585
+ echo ' selected="selected"';
3586
+ } ?>><?php _e( 'False', 'link-library' ); ?></option>
3587
+ <option value="plain"<?php if ( $options['showtelephone'] == "plain" ) {
3588
+ echo ' selected="selected"';
3589
+ } ?>><?php _e( 'Plain Text', 'link-library' ); ?></option>
3590
+ <option value="link"<?php if ( $options['showtelephone'] == "link" ) {
3591
+ echo ' selected="selected"';
3592
+ } ?>><?php _e( 'Link', 'link-library' ); ?></option>
3593
+ <option value="label"<?php if ( $options['showtelephone'] == "label" ) {
3594
+ echo ' selected="selected"';
3595
+ } ?>><?php _e( 'Label', 'link-library' ); ?></option>
3596
  </select>
3597
  </td>
3598
  <td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before Telephone Number', 'link-library' ); ?>'>
3606
  </td>
3607
  <td style='background: #FFF' class="lltooltip" title='<?php _e( 'Select which link address will be displayed / used for link', 'link-library' ); ?>'>
3608
  <select name="sourcetelephone" id="sourcetelephone" style="width:200px;">
3609
+ <option value="primary"<?php if ( $options['sourcetelephone'] == "primary" ) {
3610
+ echo ' selected="selected"';
3611
+ } ?>><?php _e( 'Primary', 'link-library' ); ?></option>
3612
+ <option value="secondary"<?php if ( $options['sourcetelephone'] == "secondary" ) {
3613
+ echo ' selected="selected"';
3614
+ } ?>><?php _e( 'Secondary', 'link-library' ); ?></option>
3615
  </select>
3616
  </td>
3617
  </tr>
3622
  <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>
3623
  <td style='text-align:center;background: #FFF'>
3624
  <select name="showemail" id="showemail" style="width:80px;">
3625
+ <option value="false"<?php if ( $options['showemail'] == "false" ) {
3626
+ echo ' selected="selected"';
3627
+ } ?>><?php _e( 'False', 'link-library' ); ?></option>
3628
+ <option value="plain"<?php if ( $options['showemail'] == "plain" ) {
3629
+ echo ' selected="selected"';
3630
+ } ?>><?php _e( 'Plain Text', 'link-library' ); ?></option>
3631
+ <option value="mailto"<?php if ( $options['showemail'] == "mailto" ) {
3632
+ echo ' selected="selected"';
3633
+ } ?>><?php _e( 'MailTo Link', 'link-library' ); ?></option>
3634
+ <option value="mailtolabel"<?php if ( $options['showemail'] == "mailtolabel" ) {
3635
+ echo ' selected="selected"';
3636
+ } ?>><?php _e( 'MailTo Link with Label', 'link-library' ); ?></option>
3637
+ <option value="command"<?php if ( $options['showemail'] == "command" ) {
3638
+ echo ' selected="selected"';
3639
+ } ?>><?php _e( 'Formatted Command', 'link-library' ); ?></option>
3640
+ <option value="commandlabel"<?php if ( $options['showemail'] == "commandlabel" ) {
3641
+ echo ' selected="selected"';
3642
+ } ?>><?php _e( 'Formatted Command with Labels', 'link-library' ); ?></option>
3643
  </select>
3644
  </td>
3645
  <td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before E-mail', 'link-library' ); ?>'>
3661
  <tr>
3662
  <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>
3663
  <td style='text-align:center;background: #FFF'>
3664
+ <input type="checkbox" id="showlinkhits" name="showlinkhits" <?php if ( $options['showlinkhits'] ) {
3665
+ echo ' checked="checked" ';
3666
+ } ?>/>
3667
  </td>
3668
  <td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before Link Hits', 'link-library' ); ?>'>
3669
  <input type="text" id="beforelinkhits" name="beforelinkhits" size="22" value="<?php echo stripslashes( $options['beforelinkhits'] ); ?>" />
3680
  <tr>
3681
  <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>
3682
  <td style='text-align:center;background: #FFF'>
3683
+ <input type="checkbox" id="showrating" name="showrating" <?php if ( $options['showrating'] ) {
3684
+ echo ' checked="checked" ';
3685
+ } ?>/>
3686
  </td>
3687
  <td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before Link Rating', 'link-library' ); ?>'>
3688
  <input type="text" id="beforelinkrating" name="beforelinkrating" size="22" value="<?php echo stripslashes( $options['beforelinkrating'] ); ?>" />
3699
  <tr>
3700
  <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>
3701
  <td style='text-align:center;background: #FFF'>
3702
+ <input type="checkbox" id="showlargedescription" name="showlargedescription" <?php if ( $options['showlargedescription'] ) {
3703
+ echo ' checked="checked" ';
3704
+ } ?>/>
3705
  </td>
3706
  <td style='background: #FFF' class="lltooltip" title='<?php _e( 'Code/Text to be displayed before Link Large Description', 'link-library' ); ?>'>
3707
  <input type="text" id="beforelargedescription" name="beforelargedescription" size="22" value="<?php echo stripslashes( $options['beforelargedescription'] ); ?>" />
3747
  <td style='background: #FFF'></td>
3748
  </tr>
3749
  <?php break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3750
  }
3751
  }
3752
  }
3788
  <?php _e( 'Show Link Updated Flag', 'link-library' ); ?>
3789
  </td>
3790
  <td style='width:75px;padding:0px 20px 0px 20px'>
3791
+ <input type="checkbox" id="showupdated" name="showupdated" <?php if ( $options['showupdated'] ) {
3792
+ echo ' checked="checked" ';
3793
+ } ?>/>
3794
  </td>
3795
  <td style='width:20px'>
3796
  </td>
3798
  <?php _e( 'Convert [] to &lt;&gt; in Link Description and Notes', 'link-library' ); ?>
3799
  </td>
3800
  <td style='width:75px;padding:0px 20px 0px 20px'>
3801
+ <input type="checkbox" id="use_html_tags" name="use_html_tags" <?php if ( $options['use_html_tags'] ) {
3802
+ echo ' checked="checked" ';
3803
+ } ?>/>
3804
  </td>
3805
  </tr>
3806
  <tr>
3810
  <td style='width:75px;padding:0px 20px 0px 20px'>
3811
  <select id="showupdatedpos" name="showupdatedpos">
3812
  <?php
3813
+ $show_updated_pos_options = array( 'before' => 'Before Link Fields', 'after' => 'After Link Fields' );
3814
 
3815
+ foreach( $show_updated_pos_options as $show_updated_pos_option_key => $show_updated_pos_option ) { ?>
3816
+ <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>
3817
+ <?php }
3818
  ?>
3819
  </select>
3820
  </td>
3875
  </td>
3876
  <td><?php _e( 'Pop-Up Width', 'link-library' ); ?></td>
3877
  <td>
3878
+ <input type="text" id="popup_width" name="popup_width" size="4" value="<?php if ( !isset( $options['popup_width'] ) || $options['popup_width'] == '' ) {
3879
  echo '300';
3880
  } else {
3881
  echo strval( $options['popup_width'] );
3882
  } ?>" /></td>
3883
  <td><?php _e( 'Pop-Up Height', 'link-library' ); ?></td>
3884
  <td>
3885
+ <input type="text" id="popup_height" name="popup_height" size="4" value="<?php if ( !isset( $options['popup_height'] ) || $options['popup_height'] == '' ) {
3886
  echo '400';
3887
  } else {
3888
  echo strval( $options['popup_height'] );
3910
  <?php _e( 'Show RSS Link using Text', 'link-library' ); ?>
3911
  </td>
3912
  <td style='width:75px;padding-right:20px'>
3913
+ <input type="checkbox" id="show_rss" name="show_rss" <?php if ( $options['show_rss'] ) {
3914
+ echo ' checked="checked" ';
3915
+ } ?>/>
3916
  </td>
3917
  <td>
3918
  <?php _e( 'Show RSS Link using Standard Icon', 'link-library' ); ?>
3919
  </td>
3920
  <td style='width:75px;padding-right:20px'>
3921
+ <input type="checkbox" id="show_rss_icon" name="show_rss_icon" <?php if ( $options['show_rss_icon'] ) {
3922
+ echo ' checked="checked" ';
3923
+ } ?>/>
3924
  </td>
3925
  <td></td>
3926
  <td style='width:75px;padding-right:20px'></td>
3964
  <tr>
3965
  <td><?php _e( 'RSS Preview Width', 'link-library' ); ?></td>
3966
  <td>
3967
+ <input type="text" id="rsspreviewwidth" name="rsspreviewwidth" size="5" value="<?php echo strval( $options['rsspreviewwidth'] ); ?>" /></td>
3968
  <td><?php _e( 'RSS Preview Height', 'link-library' ); ?></td>
3969
+ <td>
3970
+ <input type="text" id="rsspreviewheight" name="rsspreviewheight" size="5" value="<?php echo strval( $options['rsspreviewheight'] ); ?>" /></td>
3971
  <td><?php _e( 'Skip links with no RSS inline items', 'link-library' ); ?></td>
3972
  <td><input type="checkbox" id="rssfeedinlineskipempty" name="rssfeedinlineskipempty" <?php checked( $options['rssfeedinlineskipempty'] ); ?>/></td>
3973
  </tr>
3989
  <?php _e( 'Use thumbnail service for dynamic link images', 'link-library' ); ?>
3990
  </td>
3991
  <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'>
3992
+ <input type="checkbox" id="usethumbshotsforimages" name="usethumbshotsforimages" <?php if ( $options['usethumbshotsforimages'] ) {
3993
+ echo ' checked="checked" ';
3994
+ } ?>/>
3995
  </td>
3996
  </tr>
3997
  <tr>
3999
  <?php _e( 'Give priority to images assigned to links if present', 'link-library' ); ?>
4000
  </td>
4001
  <td>
4002
+ <input type="checkbox" id="uselocalimagesoverthumbshots" name="uselocalimagesoverthumbshots" <?php if ( $options['uselocalimagesoverthumbshots'] ) {
4003
+ echo ' checked="checked" ';
4004
+ } ?>/></td>
4005
  </tr>
4006
  <tr>
4007
  <td><?php _e( 'Generate Images / Favorite Icons', 'link-library' ); ?></td>
4039
  </td>
4040
  <td><?php _e( 'Number of items in RSS feed', 'link-library' ); ?></td>
4041
  <td style='width:75px;padding-right:20px'>
4042
+ <input type="text" id="numberofrssitems" name="numberofrssitems" size="3" value="<?php if ( $options['numberofrssitems'] == '' ) {
4043
  echo '10';
4044
  } else {
4045
  echo strval( $options['numberofrssitems'] );
4335
  <td>
4336
  <?php
4337
 
4338
+ global $wpdb;
4339
+ $linkcatquery = 'SELECT distinct t.name, t.term_id, t.slug as category_nicename, tt.description as category_description ';
4340
+ $linkcatquery .= 'FROM ' . $this->db_prefix() . 'terms t ';
4341
+ $linkcatquery .= 'LEFT JOIN ' . $this->db_prefix() . 'term_taxonomy tt ON (t.term_id = tt.term_id) ';
4342
+ $linkcatquery .= 'LEFT JOIN ' . $this->db_prefix() . 'term_relationships tr ON (tt.term_taxonomy_id = tr.term_taxonomy_id) ';
4343
+
4344
+ $linkcatquery .= 'WHERE tt.taxonomy = "link_category" ';
4345
+
4346
+ if ( !empty( $categorylist ) ) {
4347
+ $linkcatquery .= ' AND t.term_id in (' . $categorylist. ')';
4348
+ }
4349
+
4350
+ if ( !empty( $excludecategorylist ) ) {
4351
+ $linkcatquery .= ' AND t.term_id not in (' . $excludecategorylist . ')';
4352
+ }
4353
+
4354
+ $linkcatquery .= ' ORDER by t.name ASC';
4355
+
4356
+ $linkcats = $wpdb->get_results( $linkcatquery );
4357
 
4358
  if ( $linkcats ) { ?>
4359
  <select name="addlinkdefaultcat" id="addlinkdefaultcat" value="<?php echo $options['addlinkdefaultcat']; ?>">
4360
+ <option value="nodefaultcat">No default category</option>
4361
  <?php foreach ( $linkcats as $linkcat ) { ?>
4362
  <option value="<?php echo $linkcat->term_id; ?>" <?php selected( $linkcat->term_id, $options['addlinkdefaultcat'] ); ?>><?php echo $linkcat->name; ?></option>
4363
  <?php } ?>
4618
  function settingssets_importexport_meta_box( $data ) {
4619
  $options = $data['options'];
4620
  $settings = $data['settings'];
4621
+ require_once plugin_dir_path( __FILE__ ) . 'wp_dropdown_posts.php';
4622
  ?>
4623
 
4624
  <div style='padding-top:15px' id="ll-importexport" class="content-section">
4625
+ <table>
4626
+ <tr>
4627
+ <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>)
4628
+ </td>
4629
+ <td><input size="80" name="linksfile" type="file" /></td>
4630
+ <td><input type="submit" name="importlinks" value="<?php _e( 'Import Links from CSV', 'link-library' ); ?>" />
4631
+ </td>
4632
+ </tr>
4633
+ <tr>
4634
+ <td><?php _e( 'First row contains column headers', 'link-library' ); ?></td>
4635
+ <td><input type="checkbox" id="firstrowheaders" name="firstrowheaders" checked="checked" /></td>
4636
+ </tr>
4637
+ <tr>
4638
+ <td><?php _e( 'Update items when URL is identical', 'link-library' ); ?></td>
4639
+ <td><input type="checkbox" id="updatesameurl" name="updatesameurl" checked="checked" /></td>
4640
+ </tr>
4641
+ </table>
4642
+ <hr style='color: #CCC; ' />
4643
+
4644
+ <table>
4645
+ <tr>
4646
+ <td style='width: 230px'><?php _e( 'Import links from site pages', 'link-library' ); ?></td>
4647
+ <td style='width: 350px'><input type="radio" name="siteimportlinksscope" value="allpagesposts" checked> <?php _e( 'All Pages and Posts', 'link-library' ); ?><br />
4648
+ <input type="radio" name="siteimportlinksscope" value="allpagespostscpt"> <?php _e( 'All Pages, Posts and Custom Post Types', 'link-library' ); ?><br />
4649
+ <input type="radio" name="siteimportlinksscope" value="specificpage"> <?php _e( 'Specific Page', 'link-library' ); ?>
4650
+ <?php wp_dropdown_pages(); ?><br />
4651
+ <?php $post_count = wp_count_posts();
4652
+ if ( $post_count->publish < 200 ) { ?>
4653
+ <input type="radio" name="siteimportlinksscope" value="specificpost"> <?php _e( 'Specific Post', 'link-library' );
4654
+ wp_dropdown_posts(); ?><br />
4655
+ <?php }
4656
+ $site_post_types = get_post_types( array( '_builtin' => false ) );
4657
+ if ( !empty( $site_post_types ) ) {
4658
+ foreach( $site_post_types as $site_post_type ) {
4659
+ $any_posts = get_posts( array( 'post_type' => $site_post_type ) );
4660
+ if ( !empty( $any_posts ) && count( $any_posts ) < 200 ) {
4661
+ $post_type_data = get_post_type_object( $site_post_type ); ?>
4662
+
4663
+ <input type="radio" name="siteimportlinksscope" value="specific<?php echo $site_post_type; ?>"> <?php _e( 'Specific ' . $post_type_data->labels->singular_name, 'link-library' ); ?>
4664
+ <?php wp_dropdown_posts( array( 'post_type' => $site_post_type, 'select_name' => $site_post_type . '_id' ) ); ?><br /><br />
4665
+ <?php }
4666
+ }
4667
+ }
4668
+ ?>
4669
+ <input type="checkbox" id="siteimportupdatesameurl" name="siteimportupdatesameurl" checked="checked" /> <?php _e( 'Update items when URL is identical', 'link-library' ); ?><br />
4670
+
4671
+ <?php global $wpdb;
4672
+ $linkcatquery = 'SELECT distinct t.name, t.term_id, t.slug as category_nicename, tt.description as category_description ';
4673
+ $linkcatquery .= 'FROM ' . $this->db_prefix() . 'terms t ';
4674
+ $linkcatquery .= 'LEFT JOIN ' . $this->db_prefix() . 'term_taxonomy tt ON (t.term_id = tt.term_id) ';
4675
+ $linkcatquery .= 'LEFT JOIN ' . $this->db_prefix() . 'term_relationships tr ON (tt.term_taxonomy_id = tr.term_taxonomy_id) ';
4676
+
4677
+ $linkcatquery .= 'WHERE tt.taxonomy = "link_category" ';
4678
+
4679
+ if ( !empty( $categorylist ) ) {
4680
+ $linkcatquery .= ' AND t.term_id in (' . $categorylist. ')';
4681
+ }
4682
+
4683
+ if ( !empty( $excludecategorylist ) ) {
4684
+ $linkcatquery .= ' AND t.term_id not in (' . $excludecategorylist . ')';
4685
+ }
4686
+
4687
+ $linkcatquery .= ' ORDER by t.name ASC';
4688
+
4689
+ $linkcats = $wpdb->get_results( $linkcatquery );
4690
+
4691
+ if ( $linkcats ) { ?>
4692
+ Category for new links <select name="siteimportcat" id="siteimportcat">
4693
+ <?php foreach ( $linkcats as $linkcat ) { ?>
4694
+ <option value="<?php echo $linkcat->term_id; ?>"><?php echo $linkcat->name; ?></option>
4695
+ <?php } ?>
4696
+ </select>
4697
+ <?php } ?>
4698
+ </td>
4699
+ <td><input type="submit" name="siteimport" value="<?php _e( 'Import Links from Site', 'link-library' ); ?>" /></td>
4700
+ </tr>
4701
+ </table>
4702
+
4703
+ <hr style='color: #CCC; ' />
4704
  <input type='hidden' value='<?php echo $settings; ?>' name='settingsetid' id='settingsetid' />
4705
  <table>
4706
  <tr>
4734
  <tr>
4735
  <td><?php _e( 'Delete links that return a 403 error', 'link-library' ); ?></td>
4736
  <td>
4737
+ <input type="checkbox" id="recipcheckdelete403" name="recipcheckdelete403" <?php if ( $genoptions['recipcheckdelete403'] ) {
4738
+ echo ' checked="checked" ';
4739
+ } ?>/></td>
4740
  </tr>
4741
  <tr>
4742
  <td>
4761
 
4762
 
4763
  /************************************************ Render Custom Meta Box in Link Editor *******************************************/
4764
+ function ll_link_edit_extra( $link ) {
4765
+ global $wpdb;
4766
+
4767
+ $genoptions = get_option( 'LinkLibraryGeneral' );
4768
+
4769
+ if ( isset( $link->link_id ) && $link->link_id != '' ) {
4770
+ $link_updated_query = "select link_updated from " . $this->db_prefix() . "links where link_id = " . $link->link_id;
4771
+ $link_updated = $wpdb->get_var( $link_updated_query );
4772
+
4773
+ $linkextradataquery = "select * from " . $this->db_prefix() . "links_extrainfo where link_id = " . $link->link_id;
4774
+ $extradata = $wpdb->get_row( $linkextradataquery, ARRAY_A );
4775
+
4776
+ $extradata['link_second_url'] = stripslashes( $extradata['link_second_url'] );
4777
+
4778
+ if ( !isset( $extradata['link_visits'] ) || empty( $extradata['link_visits'] ) ) {
4779
+ $extradata['link_visits'] = 0;
4780
+ }
4781
 
4782
+ $originallinkdata = "select * from " . $this->db_prefix() . "links where link_id = " . $link->link_id;
4783
+ $originaldata = $wpdb->get_row( $originallinkdata, ARRAY_A );
4784
+ } else {
4785
+ $link_updated = current_time( 'mysql' );
4786
+ $extradata = array();
4787
+ $originaldata = array();
4788
+ }
4789
  ?>
4790
+
4791
+ <input type="hidden" name="form_submitted" value="true">
4792
+ <table>
4793
  <tr>
4794
+ <td style='width: 200px'><?php _e( 'Featured Link', 'link-library' ); ?></td>
4795
+ <td>
4796
+ <input type="checkbox" id="link_featured" name="link_featured" <?php ( isset( $extradata['link_featured'] ) ? checked( $extradata['link_featured'] ) : '' ); ?>/>
4797
+ </td>
4798
+ </tr>
4799
+ <tr>
4800
+ <td style='width: 200px'><?php _e( 'No Follow', 'link-library' ); ?></td>
4801
+ <td>
4802
+ <input type="checkbox" id="link_no_follow" name="link_no_follow" <?php ( isset( $extradata['link_no_follow'] ) ? checked( $extradata['link_no_follow'] ) : '' ); ?>/>
4803
+ </td>
4804
  </tr>
4805
  <tr>
4806
+ <td style='width: 200px'><?php _e( 'Updated Date', 'link-library' ); ?></td>
4807
+ <td>Set Manually
4808
+ <input type="checkbox" id="ll_updated_manual" name="ll_updated_manual" <?php if ( isset( $extradata['link_manual_updated'] ) && $extradata['link_manual_updated'] == 'Y' ) {
4809
+ echo ' checked="checked" ';
4810
+ } ?>/>
4811
+ <input type="text" <?php if ( !isset( $extradata['link_manual_updated'] ) || ( isset( $extradata['link_manual_updated'] ) && ( $extradata['link_manual_updated'] == 'N' || $extradata['link_manual_updated'] == '' ) ) ) {
4812
+ echo 'disabled="disabled"';
4813
+ } ?> id="ll_link_updated" name="ll_link_updated" size="80" value="<?php echo $link_updated; ?>" />
4814
+ </td>
4815
  </tr>
4816
  <tr>
4817
+ <td style='width: 200px'><?php _e( 'Secondary Web Address', 'link-library' ); ?></td>
4818
+ <td>
4819
+ <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'] != "" ) {
4820
+ echo " <a href=" . esc_html( $extradata['link_second_url'] ) . ">" . __( 'Visit', 'link-library' ) . "</a>";
4821
+ } ?></td>
4822
  </tr>
4823
  <tr>
4824
+ <td><?php _e( 'Telephone', 'link-library' ); ?></td>
4825
+ <td>
4826
+ <input type="text" id="ll_telephone" name="ll_telephone" size="80" value="<?php echo( isset( $extradata['link_telephone'] ) ? esc_attr( stripslashes( $extradata['link_telephone'] ) ) : '' ); ?>" />
4827
+ </td>
4828
+ </tr>
4829
+ <tr>
4830
+ <td><?php _e( 'E-mail', 'link-library' ); ?></td>
4831
+ <td>
4832
+ <input type="text" id="ll_email" name="ll_email" size="80" value="<?php echo( isset( $extradata['link_email'] ) ? esc_attr( stripslashes( $extradata['link_email'] ) ) : '' ); ?>" />
4833
+ </td>
4834
+ </tr>
4835
+ <tr>
4836
+ <td><?php _e( 'Reciprocal Link', 'link-library' ); ?></td>
4837
+ <td>
4838
+ <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'] != "" ) {
4839
+ echo " <a href=" . esc_url( stripslashes( $extradata['link_reciprocal'] ) ) . ">" . __( 'Visit', 'link-library' ) . "</a>";
4840
+ } ?></td>
4841
+ </tr>
4842
+ <tr>
4843
+ <td><?php _e( 'Number of link views', 'link-library' ); ?></td>
4844
+ <td>
4845
+ <input disabled type="text" id="ll_hits" name="ll_hits" size="80" value="<?php echo( isset( $extradata['link_visits'] ) ? esc_attr( $extradata['link_visits'] ) : '' ); ?>" />
4846
+ </td>
4847
+ </tr>
4848
+ <tr>
4849
+ <td><?php _e( 'Link Submitter', 'link-library' ); ?></td>
4850
+ <td>
4851
+ <input type="text" id="ll_submitter" name="ll_submitter" size="80" value="<?php echo( isset( $extradata['link_submitter'] ) ? esc_attr( stripslashes( $extradata['link_submitter'] ) ) : '' ); ?>" />
4852
+ </td>
4853
+ </tr>
4854
+ <tr>
4855
+ <td><?php _e( 'Link Submitter Name', 'link-library' ); ?></td>
4856
+ <td>
4857
+ <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'] ) ) : '' ); ?>" />
4858
+ </td>
4859
+ </tr>
4860
+ <tr>
4861
+ <td><?php _e( 'Link Submitter E-mail', 'link-library' ); ?></td>
4862
+ <td>
4863
+ <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'] ) ) : '' ); ?>" />
4864
+ </td>
4865
+ </tr>
4866
+ <tr>
4867
+ <td><?php _e( 'Link Additional Rel Tags', 'link-library' ); ?></td>
4868
+ <td>
4869
+ <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'] ) ) : '' ); ?>" />
4870
+ </td>
4871
+ </tr>
4872
+ <tr>
4873
+ <td><?php _e( 'Link Large Description', 'link-library' ); ?></td>
4874
  <td>
4875
  <?php
4876
  $editorsettings = array( 'media_buttons' => false,
4878
  'textarea_name' => 'link_textfield',
4879
  'wpautop' => false );
4880
 
4881
+ wp_editor( isset( $extradata['link_textfield'] ) ? stripslashes( $extradata['link_textfield'] ) : '', 'link_textfield', $editorsettings ); ?>
4882
  </td>
4883
  </tr>
4884
  <tr>
4885
+ <td><?php _e( 'Current Link Image', 'link-library' ); ?></td>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4886
  <td>
4887
  <div id='current_link_image'>
4888
+ <?php if ( isset( $originaldata['link_image'] ) && $originaldata['link_image'] != '' ): ?>
4889
+ <img id="actual_link_image" src="<?php echo $originaldata['link_image'] ?>" />
4890
  <?php else: ?>
4891
  <span id="noimage"><?php _e( 'None Assigned', 'link-library' ); ?></span>
4892
  <?php endif; ?>
4893
  </div>
4894
  </td>
4895
  </tr>
4896
+ <?php if ( isset( $link->link_id ) && $link->link_id != '' ): ?>
 
 
 
 
4897
  <tr>
4898
  <td><?php _e( 'Automatic Image Generation', 'link-library' ); ?></td>
4899
  <td title="<?php if ( $genoptions['thumbnailgenerator'] == 'thumbshots' && empty( $genoptions['thumbshotscid'] ) ) {
4911
  <?php endif; ?>
4912
  <?php if ( function_exists( 'wp_enqueue_media' ) ) { ?>
4913
  <tr>
4914
+ <td><?php _e( 'Manual Image Upload', 'link-library' ); ?></td>
4915
  <td>
4916
  <input type="button" class="upload_image_button" value="<?php _e( 'Launch Media Uploader', 'link-library' ); ?>">
4917
  </td>
4918
  </tr>
4919
+ <tr>
4920
+ <td colspan='2'>
4921
+ <p><?php _e( 'Manual upload requires a wp-content\uploads directory to be present with write permissions', 'link-library' ); ?>.</p>
4922
+ </td>
4923
+ </tr>
4924
  <?php } ?>
4925
+ </table>
4926
+
4927
+ <?php $genoptions = get_option( 'LinkLibraryGeneral' ); ?>
4928
 
4929
  <script type="text/javascript">
4930
  jQuery(document).ready(function () {
4966
  file_frame.open();
4967
  });
4968
 
4969
+
4970
  jQuery("#ll_updated_manual").click(function () {
4971
  if (jQuery('#ll_updated_manual').is(':checked')) {
4972
  jQuery('#ll_link_updated').attr('disabled', false);
4986
  .attr("encoding", "multipart/form-data")
4987
  .attr( "accept-charset", "UTF-8" )
4988
  ;
4989
+
4990
  jQuery('#genthumbs').click(function () {
4991
+ var linkname = jQuery('#link_name').val();
4992
  var linkurl = jQuery('#link_url').val();
4993
 
4994
+ if (linkname != '' && linkurl != '') {
4995
  jQuery('#current_link_image').fadeOut('fast');
4996
 
4997
  jQuery.ajax({
5006
  cid : '<?php echo $genoptions['thumbshotscid']; ?>',
5007
  filepath : 'link-library-images',
5008
  filepathtype: 'absolute',
5009
+ linkid : <?php if( isset( $link->link_id ) ) { echo $link->link_id; } else { echo "''"; } ?>
5010
  },
5011
  success: function (data) {
5012
  if (data != '') {
5024
  });
5025
 
5026
  jQuery('#genfavicons').click(function () {
5027
+ var linkname = jQuery('#link_name').val();
5028
  var linkurl = jQuery('#link_url').val();
5029
 
5030
  if (linkname != '' && linkurl != '') {
5040
  mode : 'favicononly',
5041
  filepath : 'link-library-favicons',
5042
  filepathtype: 'absolute',
5043
+ linkid : <?php if( isset( $link->link_id ) ) { echo $link->link_id; } else { echo "''"; }?>
5044
 
5045
 
5046
  },
5061
 
5062
  });
5063
  </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5064
 
5065
  <?php
5066
  }
5067
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5068
  function network_settings_menu() {
5069
  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' ) );
5070
  }
5114
 
5115
  <?php }
5116
 
5117
+ /******************************* Store extra field data when link is saved *******************************************/
5118
+ function add_link_field( $link_id ) {
5119
+
5120
+ if ( isset( $_POST['form_submitted'] ) && $_POST['form_submitted'] ) {
5121
+ global $wpdb;
5122
+
5123
+ $uploads = wp_upload_dir();
5124
+
5125
+ $genoptions = get_option( 'LinkLibraryGeneral' );
5126
+
5127
+ if ( array_key_exists( 'linkimageupload', $_FILES ) ) {
5128
+ if ( !file_exists( $uploads['basedir'] . '/link-library-images' ) ) {
5129
+ mkdir( $uploads['basedir'] . '/link-library-images' );
5130
+ }
5131
+ $target_path = $uploads['basedir'] . "/link-library-images/" . $link_id . ".png";
5132
+
5133
+ if ( $genoptions['imagefilepath'] == 'absolute' || empty( $genoptions['imagefilepath'] ) ) {
5134
+ $file_path = $uploads['baseurl'] . "/link-library-images/" . $link_id . ".png";
5135
+ } elseif ( $genoptions['imagefilepath'] == 'relative' ) {
5136
+ $parseaddress = parse_url( $uploads['baseurl'] );
5137
+ $file_path = $parseaddress['path'] . "/link-library-images/" . $link_id . ".png";
5138
+ }
5139
+
5140
+ if ( move_uploaded_file( $_FILES['linkimageupload']['tmp_name'], $target_path ) ) {
5141
+ $withimage = true;
5142
+ } else {
5143
+ $withimage = false;
5144
+ }
5145
+ } else {
5146
+ $withimage = false;
5147
+ }
5148
+
5149
+ $tablename = $this->db_prefix() . "links";
5150
+
5151
+ if ( isset( $_POST['ll_link_updated'] ) ) {
5152
+ $link_updated = $_POST['ll_link_updated'];
5153
+ } elseif ( !isset( $_POST['ll_link_updated'] ) ) {
5154
+ $link_updated = current_time( 'mysql' );
5155
+ }
5156
+
5157
+ if ( $withimage == true ) {
5158
+ $wpdb->update( $tablename, array( 'link_updated' => $link_updated, 'link_image' => $file_path ), array( 'link_id' => $link_id ) );
5159
+ } else {
5160
+ $wpdb->update( $tablename, array( 'link_updated' => $link_updated ), array( 'link_id' => $link_id ) );
5161
+ }
5162
+
5163
+ $extradatatable = $this->db_prefix() . "links_extrainfo";
5164
+
5165
+ $linkextradataquery = "select * from " . $this->db_prefix() . "links_extrainfo where link_id = " . $link_id;
5166
+ $extradata = $wpdb->get_row( $linkextradataquery, ARRAY_A );
5167
+
5168
+ $current_user = wp_get_current_user();
5169
+
5170
+ $username = $current_user->user_login;
5171
+
5172
+ $updatearray = array();
5173
+
5174
+ if ( isset( $_POST['ll_updated_manual'] ) ) {
5175
+ $updatearray['link_manual_updated'] = 'Y';
5176
+ } else {
5177
+ $updatearray['link_manual_updated'] = 'N';
5178
+ }
5179
+
5180
+ if ( isset( $_POST['ll_secondwebaddr'] ) ) {
5181
+ $updatearray['link_second_url'] = $_POST['ll_secondwebaddr'];
5182
+ }
5183
+
5184
+ if ( isset( $_POST['ll_telephone'] ) ) {
5185
+ $updatearray['link_telephone'] = $_POST['ll_telephone'];
5186
+ }
5187
+
5188
+ if ( isset( $_POST['ll_email'] ) ) {
5189
+ $updatearray['link_email'] = $_POST['ll_email'];
5190
+ }
5191
+
5192
+ if ( isset( $_POST['ll_reciprocal'] ) ) {
5193
+ $updatearray['link_reciprocal'] = $_POST['ll_reciprocal'];
5194
+ }
5195
+
5196
+ if ( isset( $_POST['link_textfield'] ) ) {
5197
+ $updatearray['link_textfield'] = $_POST['link_textfield'];
5198
+ }
5199
+
5200
+ if ( isset( $_POST['ll_submitter'] ) ) {
5201
+ $updatearray['link_submitter'] = $_POST['ll_submitter'];
5202
+ }
5203
+
5204
+ if ( isset( $_POST['link_submitter_name'] ) ) {
5205
+ $updatearray['link_submitter_name'] = $_POST['link_submitter_name'];
5206
+ }
5207
+
5208
+ if ( isset( $_POST['link_submitter_email'] ) ) {
5209
+ $updatearray['link_submitter_email'] = $_POST['link_submitter_email'];
5210
+ }
5211
+
5212
+ if ( isset( $_POST['link_addl_rel'] ) ) {
5213
+ $updatearray['link_addl_rel'] = $_POST['link_addl_rel'];
5214
+ }
5215
+
5216
+ if ( isset( $_POST['link_no_follow'] ) && $_POST['link_no_follow'] == 'on' ) {
5217
+ $updatearray['link_no_follow'] = true;
5218
+ } else {
5219
+ $updatearray['link_no_follow'] = false;
5220
+ }
5221
+
5222
+ if ( isset( $_POST['link_featured'] ) && $_POST['link_featured'] == 'on' ) {
5223
+ $updatearray['link_featured'] = true;
5224
+ } else {
5225
+ $updatearray['link_featured'] = false;
5226
+ }
5227
+
5228
+ if ( $extradata ) {
5229
+ $wpdb->update( $extradatatable, $updatearray, array( 'link_id' => $link_id ) );
5230
+ } else {
5231
+ $updatearray['link_id'] = $link_id;
5232
+ $updatearray['link_submitter'] = $username;
5233
+ $wpdb->insert( $extradatatable, $updatearray );
5234
+ }
5235
  }
5236
  }
5237
 
5238
+ /************************************************ Delete extra field data when link is deleted ***********************************/
5239
+ function delete_link_field( $link_id ) {
5240
+ global $wpdb;
5241
+
5242
+ $deletequery = "delete from " . $this->db_prefix() . "links_extrainfo where link_id = " . $link_id;
5243
+ $wpdb->get_results( $deletequery );
5244
+ }
5245
+
5246
+ /***************************************** Add column to link list view ****************************************/
5247
+ function ll_linkmanager_addcolumn( $columns ) {
5248
+ $columns['hits'] = 'Hits';
5249
+
5250
+ return $columns;
5251
+ }
5252
 
5253
+ function ll_linkmanager_populatecolumn( $arg1, $arg2 ) {
5254
+ global $wpdb;
5255
+
5256
+ switch ( $arg1 ) {
5257
+ case 'hits':
5258
+ $linkextradataquery = "select * from " . $this->db_prefix() . "links_extrainfo where link_id = " . $arg2;
5259
+ $extradata = $wpdb->get_row( $linkextradataquery, ARRAY_A );
5260
+ $hits = $extradata['link_visits'];
5261
+ if ( $hits == '' ) {
5262
+ $hits = 0;
5263
+ }
5264
+ echo $hits;
5265
+ break;
5266
  }
5267
  }
5268
 
5269
  function link_library_duplicate_link_checker( $ll_admin_class ) {
5270
+ global $wpdb;
5271
  echo "<strong>" . __( 'Duplicate Link Checker Report', 'link-library' ) . "</strong><br /><br />";
5272
 
5273
  echo "<strong>" . __( 'Duplicate URLs', 'link-library' ) . "</strong><br /><br />";
5274
+ $linkquery = "SELECT wp_links.link_id, wp_links.link_name, wp_links.link_url FROM " . $ll_admin_class->db_prefix() . "links INNER JOIN";
5275
+ $linkquery .= "(SELECT trim( TRAILING '/' FROM link_url ) as trim_link_url ";
5276
+ $linkquery .= "FROM wp_links GROUP BY link_url HAVING count(link_id) > 1) dup ";
5277
+ $linkquery .= "ON wp_links.link_url = dup.trim_link_url";
 
5278
 
5279
  $links = $wpdb->get_results( $linkquery );
5280
 
5281
  if ( $links ) {
5282
  foreach ( $links as $link ) {
5283
+ echo $link->link_id . ' - ' . $link->link_name . ': ' . $link->link_url;
5284
  }
5285
  } else {
5286
  echo 'No duplicate URL links found';
5287
  }
5288
 
5289
  echo "<br /><br /><strong>" . __( 'Duplicate Names', 'link-library' ) . "</strong><br /><br />";
5290
+ $linkquery = "SELECT wp_links.link_id, wp_links.link_name, wp_links.link_url FROM " . $ll_admin_class->db_prefix() . "links INNER JOIN";
5291
+ $linkquery .= "(SELECT trim( TRAILING '/' FROM link_url ) as trim_link_url ";
5292
+ $linkquery .= "FROM wp_links GROUP BY link_name HAVING count(link_name) > 1) dup ";
5293
+ $linkquery .= "ON wp_links.link_url = dup.trim_link_url";
 
 
5294
 
5295
  $links = $wpdb->get_results( $linkquery );
5296
 
5297
  if ( $links ) {
5298
  foreach ( $links as $link ) {
5299
+ echo $link->link_id . ' - ' . $link->link_name . ': ' . $link->link_url;
5300
  }
5301
  } else {
5302
  echo 'No duplicate name links found';
5307
  }
5308
 
5309
  function link_library_reciprocal_link_checker( $ll_admin_class, $RecipCheckAddress = '', $recipcheckdelete403 = false, $check_type = 'reciprocal' ) {
5310
+ global $wpdb;
5311
  set_time_limit( 0 );
5312
 
5313
  if ( ! empty( $RecipCheckAddress ) || ( empty( $RecipCheckAddress ) && 'reciprocal' != $check_type ) ) {
5314
+ $linkquery = "SELECT distinct *, l.link_id as proper_link_id, UNIX_TIMESTAMP(l.link_updated) as link_date ";
5315
+ $linkquery .= "FROM " . $ll_admin_class->db_prefix() . "terms t ";
5316
+ $linkquery .= "LEFT JOIN " . $ll_admin_class->db_prefix() . "term_taxonomy tt ON (t.term_id = tt.term_id) ";
5317
+ $linkquery .= "LEFT JOIN " . $ll_admin_class->db_prefix() . "term_relationships tr ON (tt.term_taxonomy_id = tr.term_taxonomy_id) ";
5318
+ $linkquery .= "LEFT JOIN " . $ll_admin_class->db_prefix() . "links l ON (tr.object_id = l.link_id) ";
5319
+ $linkquery .= "LEFT JOIN " . $ll_admin_class->db_prefix() . "links_extrainfo le ON (l.link_id = le.link_id) ";
5320
+ $linkquery .= "WHERE tt.taxonomy = 'link_category' ";
 
 
5321
 
5322
  if ( 'reciprocal' == $check_type ) {
5323
+ $linkquery .= "AND le.link_reciprocal <> '' ";
 
5324
  } elseif ( 'broken' == $check_type ) {
5325
+ $linkquery .= "AND l.link_url <> '' ";
5326
  }
5327
 
5328
+ $linkquery .= "order by l.link_name ASC";
5329
 
5330
+ $links = $wpdb->get_results( $linkquery );
5331
  if ( 'reciprocal' == $check_type ) {
5332
  echo "<strong>" . __( 'Reciprocal Link Checker Report', 'link-library' ) . "</strong><br /><br />";
5333
  } elseif ( 'broken' == $check_type ) {
5334
  echo "<strong>" . __( 'Broken Link Checker Report', 'link-library' ) . "</strong><br /><br />";
5335
  }
5336
 
5337
+ if ( $links ) {
5338
+ foreach ( $links as $link ) {
 
 
5339
  global $my_link_library_plugin;
 
5340
 
5341
  if ( 'reciprocal' == $check_type ) {
5342
+ $reciprocal_result = $my_link_library_plugin->CheckReciprocalLink( $RecipCheckAddress, $link->link_reciprocal );
 
5343
  } elseif ( 'broken' == $check_type ) {
5344
+ $reciprocal_result = $my_link_library_plugin->CheckReciprocalLink( $RecipCheckAddress, $link->link_url );
5345
  }
5346
 
5347
+ echo '<a href="' . $link->link_url . '">' . $link->link_name . '</a>: ';
5348
 
5349
  if ( 'reciprocal' == $check_type && $reciprocal_result == 'exists_notfound' ) {
5350
  echo '<span style="color: #FF0000">' . __( 'Not Found', 'link-library' ) . '</span><br />';
5353
  } elseif ( 'broken' == $check_type && strpos( $reciprocal_result, 'exists' ) !== false ) {
5354
  echo '<span style="color: #00FF00">' . __( 'Link valid', 'link-library' ) . '</span><br />';
5355
  } elseif ( $reciprocal_result == 'error_403' && $recipcheckdelete403 == true ) {
5356
+ wp_delete_link( $link->link_id );
5357
  echo '<span style="color: #FF0000">' . __( 'Error 403: Link Deleted', 'link-library' ) . '</span><br />';
5358
  } elseif ( $reciprocal_result == 'error_403' && $recipcheckdelete403 == false ) {
5359
  echo '<span style="color: #FF0000">' . __( 'Error 403', 'link-library' ) . '</span><br />';
5365
  echo __( 'There are no links with reciprocal links associated with them', 'link-library' ) . ".<br />";
5366
  }
5367
  }
5368
+
5369
  }
5370
 
5371
  function link_library_render_editor_button() {
link-library-defaults.php CHANGED
@@ -20,6 +20,9 @@ function ll_reset_options( $settings = 1, $layout = 'list', $setoptions = 'retur
20
  $options['beforelink'] = '';
21
  $options['afterlink'] = '';
22
  $options['showcolumnheaders'] = false;
 
 
 
23
  $options['beforerss'] = '';
24
  $options['afterrss'] = '';
25
  $options['beforedate'] = '';
@@ -34,7 +37,6 @@ function ll_reset_options( $settings = 1, $layout = 'list', $setoptions = 'retur
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;
@@ -49,6 +51,9 @@ function ll_reset_options( $settings = 1, $layout = 'list', $setoptions = 'retur
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,7 +68,6 @@ function ll_reset_options( $settings = 1, $layout = 'list', $setoptions = 'retur
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,8 +75,8 @@ function ll_reset_options( $settings = 1, $layout = 'list', $setoptions = 'retur
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,7 +100,7 @@ function ll_reset_options( $settings = 1, $layout = 'list', $setoptions = 'retur
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,7 +154,7 @@ function ll_reset_options( $settings = 1, $layout = 'list', $setoptions = 'retur
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,29 +237,10 @@ function ll_reset_options( $settings = 1, $layout = 'list', $setoptions = 'retur
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
 
260
  if ( 'return_and_set' == $setoptions ) {
261
  $settingsname = 'LinkLibraryPP' . $settings;
@@ -267,38 +252,37 @@ function ll_reset_options( $settings = 1, $layout = 'list', $setoptions = 'retur
267
 
268
  // Function used to set general initial settings or reset them on user request
269
  function ll_reset_gen_settings( $setoptions = 'return' ) {
270
- $genoptions['numberstylesets'] = 1;
271
- $genoptions['includescriptcss'] = '';
272
- $genoptions['debugmode'] = false;
273
- $genoptions['schemaversion'] = '5.0';
274
- $genoptions['pagetitleprefix'] = '';
275
- $genoptions['pagetitlesuffix'] = '';
276
- $genoptions['thumbshotscid'] = '';
277
- $genoptions['emaillinksubmitter'] = false;
278
- $genoptions['suppressemailfooter'] = false;
279
- $genoptions['moderatorname'] = '';
280
- $genoptions['moderatoremail'] = '';
281
- $genoptions['approvalemailtitle'] = '';
282
- $genoptions['approvalemailbody'] = '';
283
- $genoptions['rejectedemailtitle'] = '';
284
- $genoptions['rejectedemailbody'] = '';
285
- $genoptions['moderationnotificationtitle'] = '';
286
- $genoptions['linksubmissionthankyouurl'] = '';
287
- $genoptions['usefirstpartsubmittername'] = '';
288
- $genoptions['recipcheckaddress'] = get_bloginfo( 'wpurl' );
289
- $genoptions['recipcheckdelete403'] = false;
290
- $genoptions['imagefilepath'] = 'absolute';
291
- $genoptions['catselectmethod'] = 'multiselectlist';
292
- $genoptions['hidedonation'] = false;
293
- $genoptions['updatechannel'] = 'standard';
294
- $genoptions['extraprotocols'] = '';
295
- $genoptions['fullstylesheet'] = '';
296
- $genoptions['thumbnailsize'] = '120x90';
297
- $genoptions['thumbnailgenerator'] = 'robothumb';
298
- $genoptions['survey2015'] = false;
299
- $genoptions['addlinkakismet'] = false;
300
- $genoptions['rsscachedelay'] = 43200;
301
- $genoptions['single_link_layout'] = '[link_content]';
302
  $genoptions['captchagenerator'] = 'easycaptcha';
303
  $genoptions['recaptchasitekey'] = '';
304
  $genoptions['recaptchasecretkey'] = '';
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
  $options['afteremail'] = '';
38
  $options['beforelinkhits'] = '';
39
  $options['afterlinkhits'] = '';
 
40
  } elseif ( $layout == "table" ) {
41
  $options['num_columns'] = 3;
42
  $options['showdescription'] = 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
  $options['afteremail'] = '</td>';
69
  $options['beforelinkhits'] = '<td>';
70
  $options['afterlinkhits'] = '</td>';
 
71
  }
72
 
73
  $options['order'] = 'name';
75
  $options['table_width'] = 100;
76
  $options['catanchor'] = true;
77
  $options['flatlist'] = 'table';
78
+ $options['categorylist'] = null;
79
+ $options['excludecategorylist'] = null;
80
  $options['showrating'] = false;
81
  $options['showupdated'] = false;
82
  $options['show_images'] = false;
100
  $options['showadmineditlinks'] = true;
101
  $options['showonecatonly'] = false;
102
  $options['loadingicon'] = '/icons/Ajax-loader.gif';
103
+ $options['defaultsinglecat'] = '';
104
  $options['rsspreview'] = false;
105
  $options['rsspreviewcount'] = 3;
106
  $options['rssfeedinline'] = false;
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
  $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
 
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'] = 1;
256
+ $genoptions['includescriptcss'] = '';
257
+ $genoptions['debugmode'] = false;
258
+ $genoptions['schemaversion'] = '5.0';
259
+ $genoptions['pagetitleprefix'] = '';
260
+ $genoptions['pagetitlesuffix'] = '';
261
+ $genoptions['thumbshotscid'] = '';
262
+ $genoptions['emaillinksubmitter'] = false;
263
+ $genoptions['suppressemailfooter'] = false;
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'] = get_bloginfo( 'wpurl' );
274
+ $genoptions['recipcheckdelete403'] = false;
275
+ $genoptions['imagefilepath'] = 'absolute';
276
+ $genoptions['catselectmethod'] = 'multiselectlist';
277
+ $genoptions['hidedonation'] = false;
278
+ $genoptions['updatechannel'] = 'standard';
279
+ $genoptions['extraprotocols'] = '';
280
+ $genoptions['fullstylesheet'] = '';
281
+ $genoptions['thumbnailsize'] = '120x90';
282
+ $genoptions['thumbnailgenerator'] = 'robothumb';
283
+ $genoptions['survey2015'] = false;
284
+ $genoptions['addlinkakismet'] = false;
285
+ $genoptions['rsscachedelay'] = 43200;
 
286
  $genoptions['captchagenerator'] = 'easycaptcha';
287
  $genoptions['recaptchasitekey'] = '';
288
  $genoptions['recaptchasecretkey'] = '';
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
- 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
  }
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 DELETED
@@ -1,188 +0,0 @@
1
- <?php
2
-
3
- function link_library_60_update( $plugin_class ) {
4
- global $wpdb;
5
-
6
- $link_query = 'select count(*) from ' . $plugin_class->db_prefix() . 'links';
7
- $link_count = $wpdb->get_var( $link_query );
8
-
9
- if ( $link_count > 0 ) {
10
- $all_link_cats_query = 'SELECT t.name, t.term_id, tt.description ';
11
- $all_link_cats_query .= 'FROM ' . $plugin_class->db_prefix() . 'terms t ';
12
- $all_link_cats_query .= 'LEFT JOIN ' . $plugin_class->db_prefix() . 'term_taxonomy tt ON (t.term_id = tt.term_id) ';
13
- $all_link_cats_query .= 'LEFT JOIN ' . $plugin_class->db_prefix() . 'term_relationships tr ON (tt.term_taxonomy_id = tr.term_taxonomy_id) ';
14
- $all_link_cats_query .= 'WHERE tt.taxonomy = "link_category" ';
15
-
16
- $all_link_cats = $wpdb->get_results( $all_link_cats_query );
17
-
18
- foreach ( $all_link_cats as $link_cat ) {
19
- $cat_string = $link_cat->name;
20
-
21
- $cat_matched_term = get_term_by( 'name', $cat_string, 'link_library_category' );
22
-
23
- if ( false === $cat_matched_term ) {
24
- $new_cat_term_data = wp_insert_term( $cat_string, 'link_library_category', array( 'description' => $link_cat->description ) );
25
- if ( is_wp_error( $new_cat_term_data ) ) {
26
- print_r( 'Failed creating category ' . $cat_string );
27
- } else {
28
- $linkcaturl = get_metadata( 'linkcategory', $link_cat->term_id, 'linkcaturl', true );
29
-
30
- if ( !empty( $linkcaturl ) ) {
31
- update_term_meta( $new_cat_term_data['term_id'], 'linkcaturl', $linkcaturl );
32
- }
33
- }
34
- }
35
- }
36
-
37
- $links_import_query = 'SELECT distinct *, l.link_id as import_link_id ';
38
- $links_import_query .= 'FROM ' . $plugin_class->db_prefix() . 'links l ';
39
- $links_import_query .= 'LEFT JOIN ' . $plugin_class->db_prefix() . 'links_extrainfo le ON (l.link_id = le.link_id) ';
40
-
41
- $links_to_import = $wpdb->get_results( $links_import_query );
42
-
43
- foreach ( $links_to_import as $link_to_import ) {
44
- $link_cats_query = 'SELECT t.name ';
45
- $link_cats_query .= 'FROM ' . $plugin_class->db_prefix() . 'terms t ';
46
- $link_cats_query .= 'LEFT JOIN ' . $plugin_class->db_prefix() . 'term_taxonomy tt ON (t.term_id = tt.term_id) ';
47
- $link_cats_query .= 'LEFT JOIN ' . $plugin_class->db_prefix() . 'term_relationships tr ON (tt.term_taxonomy_id = tr.term_taxonomy_id) ';
48
- $link_cats_query .= 'WHERE tt.taxonomy = "link_category" ';
49
- $link_cats_query .= 'AND tr.object_id = ' . $link_to_import->import_link_id . ' ';
50
-
51
- $link_cats = $wpdb->get_results( $link_cats_query );
52
-
53
- $matched_link_cats = array();
54
-
55
- foreach ( $link_cats as $link_cat ) {
56
- $cat_string = $link_cat->name;
57
-
58
- $cat_matched_term = get_term_by( 'name', $cat_string, 'link_library_category' );
59
-
60
- if ( false !== $cat_matched_term ) {
61
- $matched_link_cats[] = $cat_matched_term->term_id;
62
- }
63
- }
64
-
65
- $new_link_data = array(
66
- 'post_type' => 'link_library_links',
67
- 'post_content' => '',
68
- 'post_title' => $link_to_import->link_name,
69
- 'tax_input' => array( 'link_library_category' => $matched_link_cats ),
70
- 'post_author' => $link_to_import->link_owner,
71
- );
72
-
73
- if ( 'N' == $link_to_import->link_visible ) {
74
- if ( false !== strpos( $link_to_import->link_description, '(LinkLibrary:AwaitingModeration:RemoveTextToApprove)' ) ) {
75
- $new_link_data['post_status'] = 'pending';
76
- $link_to_import->link_description = str_replace( '(LinkLibrary:AwaitingModeration:RemoveTextToApprove)', '', $link_to_import->link_description );
77
- } else {
78
- $new_link_data['post_status'] = 'private';
79
- }
80
- } elseif ( 'Y' == $link_to_import->link_visible ) {
81
- $new_link_data['post_status'] = 'publish';
82
- }
83
-
84
- $new_link_ID = wp_insert_post( $new_link_data );
85
-
86
- if ( !empty( $new_link_ID ) ) {
87
- update_post_meta( $new_link_ID, 'legacy_link_id', $link_to_import->import_link_id );
88
- update_post_meta( $new_link_ID, 'link_url', $link_to_import->link_url );
89
- update_post_meta( $new_link_ID, 'link_image', $link_to_import->link_image );
90
- update_post_meta( $new_link_ID, 'link_target', $link_to_import->link_target );
91
- update_post_meta( $new_link_ID, 'link_description', $link_to_import->link_description );
92
- update_post_meta( $new_link_ID, 'link_rating', $link_to_import->link_rating );
93
-
94
- if ( '0000-00-00 00:00:00' == $link_to_import->link_updated ) {
95
- update_post_meta( $new_link_ID, 'link_updated', current_time( 'timestamp' ) );
96
- } else {
97
- update_post_meta( $new_link_ID, 'link_updated', strtotime( $link_to_import->link_updated ) );
98
- }
99
-
100
- update_post_meta( $new_link_ID, 'link_notes', $link_to_import->link_notes );
101
- update_post_meta( $new_link_ID, 'link_rss', $link_to_import->link_rss );
102
- update_post_meta( $new_link_ID, 'link_second_url', $link_to_import->link_second_url );
103
- update_post_meta( $new_link_ID, 'link_telephone', $link_to_import->link_telephone );
104
- update_post_meta( $new_link_ID, 'link_email', $link_to_import->link_email );
105
-
106
- if ( empty( $link_to_import->link_visits ) ) {
107
- update_post_meta( $new_link_ID, 'link_visits', 0 );
108
- } else {
109
- update_post_meta( $new_link_ID, 'link_visits', $link_to_import->link_visits );
110
- }
111
-
112
- update_post_meta( $new_link_ID, 'link_reciprocal', $link_to_import->link_reciprocal );
113
- update_post_meta( $new_link_ID, 'link_submitter', $link_to_import->link_submitter );
114
- update_post_meta( $new_link_ID, 'link_submitter_name', $link_to_import->link_submitter_name );
115
- update_post_meta( $new_link_ID, 'link_submitter_email', $link_to_import->link_submitter_email );
116
- update_post_meta( $new_link_ID, 'link_textfield', $link_to_import->link_textfield );
117
- update_post_meta( $new_link_ID, 'link_rel', $link_to_import->link_addl_rel );
118
-
119
- if ( '1' == $link_to_import->link_no_follow ) {
120
- update_post_meta( $new_link_ID, 'link_no_follow', true );
121
- } else {
122
- update_post_meta( $new_link_ID, 'link_no_follow', false );
123
- }
124
-
125
- if ( '1' == $link_to_import->link_featured ) {
126
- update_post_meta( $new_link_ID, 'link_featured', 1 );
127
- } else {
128
- update_post_meta( $new_link_ID, 'link_featured', 0 );
129
- }
130
-
131
- if ( 'Y' == $link_to_import->link_manual_updated ) {
132
- update_post_meta( $new_link_ID, 'link_updated_manual', true );
133
- } elseif ( 'N' == $link_to_import->link_manual_updated ) {
134
- update_post_meta( $new_link_ID, 'link_updated_manual', false );
135
- }
136
- }
137
- }
138
- }
139
-
140
- $genoptions = get_option( 'LinkLibraryGeneral' );
141
- if ( !empty( $genoptions ) ) {
142
- for ( $i = 1; $i <= $genoptions['numberstylesets']; $i++ ) {
143
- $settingsname = 'LinkLibraryPP' . $i;
144
- $options = get_option( $settingsname );
145
-
146
- if ( !empty( $options ) ) {
147
- $lists_of_cats = array( 'categorylist', 'excludecategorylist', 'defaultsinglecat' );
148
-
149
- foreach ( $lists_of_cats as $list_of_cats ) {
150
- if ( !empty( $options[$list_of_cats] ) ) {
151
- $category_list_array = explode( ',', $options[$list_of_cats] );
152
- $new_category_list_array = array();
153
-
154
- foreach ( $category_list_array as $category_list_item ) {
155
- $original_term = get_term( $category_list_item, 'link_category' );
156
- $corresponding_term = get_term_by( 'name', $original_term->name, 'link_library_category' );
157
- $new_category_list_array[] = $corresponding_term->term_id;
158
- }
159
-
160
- $new_category_list = implode( ',', $new_category_list_array );
161
- $options[$list_of_cats . '_cpt'] = $new_category_list;
162
- } else {
163
- $options[$list_of_cats . '_cpt'] = '';
164
- }
165
- }
166
-
167
- $newcolumnoptions = array();
168
- if ( isset( $options['linkheader'] ) ) {
169
- $newcolumnoptions[] = $options['linkheader'];
170
- }
171
-
172
- if ( isset( $options['descheader'] ) ) {
173
- $newcolumnoptions[] = $options['descheader'];
174
- }
175
-
176
- if ( isset( $options['notesheader'] ) ) {
177
- $newcolumnoptions[] = $options['notesheader'];
178
- }
179
-
180
- $options['columnheaderoverride'] = implode( ',', $newcolumnoptions );
181
-
182
- update_option( $settingsname, $options );
183
- }
184
- }
185
- }
186
-
187
- update_option( 'LinkLibrary60Update', true );
188
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
link-library.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Link Library
4
  Plugin URI: http://wordpress.org/extend/plugins/link-library/
5
  Description: Display links on pages with a variety of options
6
- Version: 6.0 Beta 6
7
  Author: Yannick Lefebvre
8
  Author URI: http://ylefebvre.ca/
9
  Text Domain: link-library
@@ -58,87 +58,6 @@ function link_library_tweak_plugins_http_filter( $response, $r, $url ) {
58
  return $response;
59
  }
60
 
61
- function link_library_get_terms_filter_only_publish( $terms, $taxonomies, $args ) {
62
- global $wpdb;
63
- global $hide_if_empty_filter;
64
-
65
- $taxonomy = $taxonomies[0];
66
- if ( ! is_array( $terms ) && count( $terms ) < 1 ) {
67
- return $terms;
68
- }
69
-
70
- $filtered_terms = array();
71
-
72
- foreach ( $terms as $term ) {
73
- $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" );
74
-
75
- if ( intval( $result ) > 0 || ( !$hide_if_empty_filter && 0 == intval( $result ) ) ) {
76
- $filtered_terms[] = $term;
77
- }
78
- }
79
- return $filtered_terms;
80
- }
81
-
82
- function link_library_get_terms_filter_publish_pending( $terms, $taxonomies, $args ) {
83
- global $wpdb;
84
- global $hide_if_empty_filter;
85
-
86
- $taxonomy = $taxonomies[0];
87
- if ( ! is_array( $terms ) && count( $terms ) < 1 ) {
88
- return $terms;
89
- }
90
-
91
- $filtered_terms = array();
92
-
93
- foreach ( $terms as $term ) {
94
- $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" );
95
- if ( intval( $result ) > 0 || ( !$hide_if_empty_filter && 0 == intval( $result ) ) ) {
96
- $filtered_terms[] = $term;
97
- }
98
- }
99
- return $filtered_terms;
100
- }
101
-
102
- function link_library_get_terms_filter_publish_draft( $terms, $taxonomies, $args ) {
103
- global $wpdb;
104
- global $hide_if_empty_filter;
105
-
106
- $taxonomy = $taxonomies[0];
107
- if ( ! is_array( $terms ) && count( $terms ) < 1 ) {
108
- return $terms;
109
- }
110
-
111
- $filtered_terms = array();
112
-
113
- foreach ( $terms as $term ) {
114
- $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" );
115
- if ( intval( $result ) > 0 || ( !$hide_if_empty_filter && 0 == intval( $result ) ) ) {
116
- $filtered_terms[] = $term;
117
- }
118
- }
119
- return $filtered_terms;
120
- }
121
-
122
- function link_library_get_terms_filter_publish_draft_pending( $terms, $taxonomies, $args ) {
123
- global $wpdb;
124
- global $hide_if_empty_filter;
125
-
126
- $taxonomy = $taxonomies[0];
127
- if ( ! is_array( $terms ) && count( $terms ) < 1 ) {
128
- return $terms;
129
- }
130
-
131
- $filtered_terms = array();
132
-
133
- foreach ( $terms as $term ) {
134
- $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" );
135
- if ( intval( $result ) > 0 || ( !$hide_if_empty_filter && 0 == intval( $result ) ) ) {
136
- $filtered_terms[] = $term;
137
- }
138
- }
139
- return $filtered_terms;
140
- }
141
-
142
  function link_library_strposX( $haystack, $needle, $number ) {
143
  if( $number == '1' ){
144
  return strpos($haystack, $needle);
@@ -187,13 +106,12 @@ class link_library_plugin {
187
  //constructor of class, PHP4 compatible construction for backward compatibility
188
  function __construct() {
189
 
190
- // Functions to be called when plugin is activated and deactivated
191
- register_activation_hook( __FILE__, array( $this, 'll_install' ) );
192
- register_deactivation_hook( __FILE__, array( $this, 'll_uninstall' ) );
193
-
194
- add_action( 'init', array( $this, 'll_init' ) );
195
-
196
  $newoptions = get_option( 'LinkLibraryPP1', '' );
 
197
 
198
  if ( empty( $newoptions ) ) {
199
  global $my_link_library_plugin_admin;
@@ -204,7 +122,10 @@ class link_library_plugin {
204
  }
205
 
206
  ll_reset_options( 1, 'list', 'return_and_set' );
207
- ll_reset_gen_settings( 'return_and_set' );
 
 
 
208
  }
209
 
210
  // Add short codes
@@ -218,7 +139,6 @@ class link_library_plugin {
218
  add_shortcode( 'link-library-addlinkcustommsg', array( $this, 'link_library_addlink_func' ) );
219
  add_shortcode( 'addlinkcustommsg-link-library', array( $this, 'link_library_addlink_func' ) );
220
  add_shortcode( 'link-library-count', array( $this, 'link_library_count_func' ) );
221
- add_shortcode( 'link-library-filters', array( $this, 'link_library_filters' ) );
222
 
223
  // Function to determine if Link Library is used on a page before printing headers
224
  // the_posts gets triggered before wp_head
@@ -229,12 +149,13 @@ class link_library_plugin {
229
 
230
  add_filter( 'wp_title', array( $this, 'll_title_creator' ) );
231
 
 
 
232
  // Re-write rules filters to allow for custom permalinks
233
  add_filter( 'rewrite_rules_array', array( $this, 'll_insertMyRewriteRules' ) );
234
  add_filter( 'query_vars', array( $this, 'll_insertMyRewriteQueryVars' ) );
235
 
236
  add_action( 'template_redirect', array( $this, 'll_template_redirect' ) );
237
- add_filter( 'template_include', array( $this, 'll_template_include' ) );
238
  add_action( 'wp_ajax_link_library_tracker', array( $this, 'link_library_ajax_tracker' ) );
239
  add_action( 'wp_ajax_nopriv_link_library_tracker', array( $this, 'link_library_ajax_tracker' ) );
240
  add_action( 'wp_ajax_link_library_ajax_update', array( $this, 'link_library_func') );
@@ -253,7 +174,9 @@ class link_library_plugin {
253
 
254
  add_filter( 'wp_feed_cache_transient_lifetime' , array( $this, 'feed_cache_filter_handler' ) );
255
 
256
- add_filter( 'post_type_link', array( $this, 'permalink_structure' ), 10, 4 );
 
 
257
  }
258
 
259
  function feed_cache_filter_handler( $seconds ) {
@@ -263,84 +186,8 @@ class link_library_plugin {
263
  return $genoptions['rsscachedelay'];
264
  }
265
 
266
- function ll_init() {
267
- register_post_type( 'link_library_links',
268
- array(
269
- 'labels' => array(
270
- 'name' => 'Link Library',
271
- 'singular_name' => 'Link',
272
- 'add_new' => 'Add New',
273
- 'add_new_item' => 'Add New Link',
274
- 'edit' => 'Edit',
275
- 'edit_item' => 'Edit Link',
276
- 'new_item' => 'New Link',
277
- 'view' => 'View',
278
- 'view_item' => 'View Link',
279
- 'search_items' => 'Search Links',
280
- 'not_found' => 'No Links found',
281
- 'not_found_in_trash' =>
282
- 'No Links found in Trash',
283
- 'parent' => 'Parent Link',
284
- 'all_items' => 'All Links'
285
- ),
286
- 'public' => true,
287
- 'menu_position' => 10,
288
- 'supports' =>
289
- array( 'title', 'editor', 'comments' ),
290
- 'taxonomies' => array( 'link_library_category' ),
291
- 'menu_icon' =>
292
- plugins_url( 'icons/link-icon.png', __FILE__ ),
293
- 'has_archive' => true,
294
- 'rewrite' => array( 'slug' => 'links/%link_library_category%' )
295
- )
296
- );
297
-
298
- register_taxonomy(
299
- 'link_library_category',
300
- 'link_library_links',
301
- array(
302
- 'labels' => array(
303
- 'name' => 'Categories',
304
- 'add_new_item' => 'Add New Link Library Category',
305
- 'new_item_name' => 'New Link Library Category'
306
- ),
307
- 'show_ui' => true,
308
- 'show_tagcloud' => false,
309
- 'hierarchical' => true
310
- )
311
- );
312
-
313
- register_taxonomy(
314
- 'link_library_tags',
315
- 'link_library_links',
316
- array(
317
- 'hierarchical' => false,
318
- 'labels' => array( 'name' => 'Tags',
319
- 'add_new_item' => 'Add New Link Library Tag',
320
- 'new_item_name' => 'New Link Library Tag' ),
321
- 'show_ui' => true,
322
- 'rewrite' => false,
323
- )
324
- );
325
-
326
  add_feed( 'linklibraryfeed', 'link_library_generate_rss_feed' );
327
-
328
- $link_library_60_update = get_option( 'LinkLibrary60Update' );
329
- $genoptions = get_option( 'LinkLibraryGeneral' );
330
- if ( false == $link_library_60_update && !empty( $genoptions ) ) {
331
- require plugin_dir_path( __FILE__ ) . 'link-library-update-60.php';
332
- link_library_60_update( $this );
333
- }
334
- }
335
-
336
- function permalink_structure( $post_link, $post, $leavename, $sample ) {
337
- if ( !empty( $post_link ) && false !== strpos( $post_link, '%link_library_category%' ) ) {
338
- $link_cat_type_term = get_the_terms( $post->ID, 'link_library_category' );
339
- if ( !empty( $link_cat_type_term ) ) {
340
- $post_link = str_replace( '%link_library_category%', array_pop( $link_cat_type_term )->slug, $post_link );
341
- }
342
- }
343
- return $post_link;
344
  }
345
 
346
  /************************** Link Library Installation Function **************************/
@@ -380,24 +227,67 @@ class link_library_plugin {
380
  function create_table_and_settings() {
381
  global $wpdb;
382
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
383
  $genoptions = get_option( 'LinkLibraryGeneral' );
384
 
385
  if ( !empty( $genoptions ) ) {
 
386
  if ( empty( $genoptions['schemaversion'] ) || floatval( $genoptions['schemaversion'] ) < 3.5 ) {
387
  $genoptions['schemaversion'] = '3.5';
388
  update_option( 'LinkLibraryGeneral', $genoptions );
389
  } elseif ( floatval( $genoptions['schemaversion'] ) < '4.6' ) {
390
  $genoptions['schemaversion'] = '4.6';
 
 
391
  update_option( 'LinkLibraryGeneral', $genoptions );
392
  } elseif ( floatval( $genoptions['schemaversion'] ) < '4.7' ) {
393
  $genoptions['schemaversion'] = '4.7';
 
 
394
  update_option( 'LinkLibraryGeneral', $genoptions );
395
  } elseif ( floatval( $genoptions['schemaversion'] ) < '4.9' ) {
396
  $genoptions['schemaversion'] = '4.9';
 
 
397
  update_option( 'LinkLibraryGeneral', $genoptions );
398
  }
399
 
400
- for ( $i = 1; $i <= $genoptions['numberstylesets']; $i++ ) {
401
  $settingsname = 'LinkLibraryPP' . $i;
402
  $options = get_option( $settingsname );
403
 
@@ -448,11 +338,9 @@ class link_library_plugin {
448
 
449
  update_option( $settingsname, $options );
450
  }
451
- } else {
452
- update_option( 'LinkLibrary60Update', true );
453
  }
454
 
455
- $genoptions['schemaversion'] = '5.0';
456
  update_option( 'LinkLibraryGeneral', $genoptions );
457
  }
458
 
@@ -575,7 +463,8 @@ class link_library_plugin {
575
  }
576
 
577
  /************************************* Function to add to rewrite rules for permalink support **********************************/
578
- function ll_insertMyRewriteRules( $rules ) {
 
579
  $newrules = array();
580
 
581
  $genoptions = get_option('LinkLibraryGeneral');
@@ -586,11 +475,12 @@ class link_library_plugin {
586
  $options = get_option( $settingsname );
587
 
588
  if ( $options['enablerewrite'] && !empty( $options['rewritepage'] ) ) {
589
- if ( is_multisite() ) {
590
- $newrules['(' . $options['rewritepage'] . ')/(.+?)$'] = 'index.php?pagename=$matches[2]&cat_name=$matches[3]';
591
- } else {
592
- $newrules['(' . $options['rewritepage'] . ')/(.+?)$'] = 'index.php?pagename=$matches[1]&cat_name=$matches[2]';
593
- }
 
594
  }
595
 
596
  if ( $options['publishrssfeed'] ) {
@@ -603,7 +493,7 @@ class link_library_plugin {
603
  }
604
  }
605
  }
606
-
607
  return $newrules + $rules;
608
  }
609
 
@@ -639,7 +529,7 @@ class link_library_plugin {
639
  return 'error_403';
640
  }
641
  } elseif ( $response['response']['code'] == '200' ) {
642
- if ( empty( $RecipCheckAddress ) ) {
643
  return 'exists_notfound';
644
  } elseif ( strpos( $response['body'], $RecipCheckAddress ) === false ) {
645
  return 'exists_notfound';
@@ -651,6 +541,99 @@ class link_library_plugin {
651
  return 'unreachable';
652
  }
653
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
654
  /* Output for users trying to directly call Link Library function, as was possible in pre-1.0 versions */
655
 
656
  function LinkLibraryCategories() {
@@ -789,31 +772,6 @@ class link_library_plugin {
789
  require_once plugin_dir_path( __FILE__ ) . 'render-link-library-sc.php';
790
  return RenderLinkLibrary( $this, $genoptions, $options, $settings, true );
791
  }
792
-
793
- /********************************************** Function to Process [link-library-filters] shortcode ***************************************/
794
-
795
- function link_library_filters( $atts ) {
796
- extract( shortcode_atts( array(
797
- 'includetagsids' => '',
798
- 'excludetagsids' => '',
799
- 'showtagfilters' => true,
800
- 'taglabel' => __( 'Tag', 'link-library' ),
801
- 'showpricefilters' => true,
802
- 'pricelabel' => __( 'Price', 'link-library' ),
803
- 'settings' => ''
804
- ), $atts ) );
805
-
806
- if ( empty( $settings ) ) {
807
- $settings = 1;
808
- }
809
-
810
- $settingsname = 'LinkLibraryPP' . $settings;
811
- $options = get_option( $settingsname );
812
- $genoptions = get_option( 'LinkLibraryGeneral' );
813
-
814
- require_once plugin_dir_path( __FILE__ ) . 'render-link-library-tag-filter-sc.php';
815
- return RenderLinkLibraryFilterBox( $this, $genoptions, $options, $settings, $includetagsids, $excludetagsids, $showtagfilters, $taglabel, $showpricefilters, $pricelabel );
816
- }
817
 
818
  /********************************************** Function to Process [link-library] shortcode *********************************************/
819
 
@@ -881,11 +839,11 @@ class link_library_plugin {
881
  }
882
 
883
  if ( $showonecatonlyoverride == 'false' || $showonecatonlyoverride == 'true' ) {
884
- if ( $showonecatonlyoverride == 'false' ) {
885
- $options['showonecatonly'] = false;
886
- } elseif ( $showonecatonlyoverride == 'true' ) {
887
- $options['showonecatonly'] = true;
888
- }
889
  }
890
 
891
  if ( !empty( $tableoverride ) ) {
@@ -906,7 +864,7 @@ class link_library_plugin {
906
 
907
  $genoptions = get_option( 'LinkLibraryGeneral' );
908
 
909
- if ( floatval( $genoptions['schemaversion'] ) < '5.0' ) {
910
  $this->ll_install();
911
  $genoptions = get_option( 'LinkLibraryGeneral' );
912
 
@@ -948,18 +906,18 @@ class link_library_plugin {
948
  if ( empty( $posts ) ) {
949
  return $posts;
950
  }
951
-
952
  global $llstylesheet;
953
  $load_jquery = false;
954
  $load_thickbox = false;
955
  $load_recaptcha = false;
956
-
957
  if ( $llstylesheet ) {
958
  $load_style = true;
959
  } else {
960
  $load_style = false;
961
  }
962
-
963
  $genoptions = get_option( 'LinkLibraryGeneral' );
964
  $genoptions = wp_parse_args( $genoptions, ll_reset_gen_settings( 'return' ) );
965
 
@@ -980,9 +938,9 @@ class link_library_plugin {
980
  if ( !$linklibrarypos ) {
981
  if ( stripos( $post->post_content, 'link-library-cats' ) || stripos( $post->post_content, 'link-library-addlink' ) ) {
982
  $load_style = true;
983
- if ( 'recaptcha' == $genoptions['captchagenerator'] ) {
984
- $load_recaptcha = true;
985
- }
986
  }
987
  }
988
  }
@@ -1049,7 +1007,7 @@ class link_library_plugin {
1049
  }
1050
  }
1051
 
1052
- if ( $load_style ) {
1053
  $llstylesheet = true;
1054
  } else {
1055
  $llstylesheet = false;
@@ -1090,84 +1048,6 @@ class link_library_plugin {
1090
  }
1091
  }
1092
 
1093
- function ll_template_include( $template_path ) {
1094
- if ( get_post_type() == 'link_library_links' && is_single() ) {
1095
- // checks if the file exists in the theme first,
1096
- // otherwise serve the file from the plugin
1097
- if ( $theme_file = locate_template( array ( 'single-link_library_links.php' ) ) ) {
1098
- $template_path = $theme_file;
1099
- } else {
1100
- add_filter( 'the_content', array( $this, 'll_display_single_link' ), 20 );
1101
- }
1102
- }
1103
- return $template_path;
1104
- }
1105
-
1106
- function ll_get_string_between($string, $start, $end){
1107
- $string = ' ' . $string;
1108
- $ini = strpos($string, $start);
1109
- if ($ini == 0) return '';
1110
- $ini += strlen($start);
1111
- $len = strpos($string, $end, $ini) - $ini;
1112
- return substr($string, $ini, $len);
1113
- }
1114
-
1115
- function ll_replace_all_between( $beginning, $end, $string, $replace ) {
1116
- $beginningPos = strpos($string, $beginning);
1117
- $endPos = strpos($string, $end);
1118
- if ($beginningPos === false || $endPos === false) {
1119
- return $string;
1120
- }
1121
-
1122
- $textToDelete = substr($string, $beginningPos, ($endPos + strlen($end)) - $beginningPos);
1123
-
1124
- return str_replace($textToDelete, $replace, $string);
1125
- }
1126
-
1127
- function ll_display_single_link( $content ) {
1128
-
1129
- $genoptions = get_option( 'LinkLibraryGeneral' );
1130
- $genoptions = wp_parse_args( $genoptions, ll_reset_gen_settings( 'return' ) );
1131
-
1132
- $content = htmlspecialchars_decode( stripslashes( $genoptions['single_link_layout'] ) );
1133
-
1134
- $item_id = get_the_ID();
1135
- if ( !empty( $item_id ) ) {
1136
- $link = get_post( get_the_ID() );
1137
- if ( !empty( $link ) ) {
1138
- $link_url = esc_url( get_post_meta( get_the_ID(), 'link_url', true ) );
1139
- $link_description = esc_html( get_post_meta( get_the_ID(), 'link_description', true ) );
1140
- $link_large_description = get_post_meta( get_the_ID(), 'link_textfield', true );
1141
- $link_image = esc_url( get_post_meta( get_the_ID(), 'link_image', true ) );
1142
- $link_price = number_format( floatval( get_post_meta( get_the_ID(), 'link_price', true ) ), 2 );
1143
- $link_price_currency = $this->ll_get_string_between( $content, '[currency]', '[/currency]' );
1144
- $link_price_currency_or_free = $this->ll_get_string_between( $content, '[currency_or_free]', '[/currency_or_free]' );
1145
-
1146
- $content = str_replace( '[link_title]', $link->post_title, $content );
1147
- $content = str_replace( '[link_content]', $link->post_content, $content );
1148
- $content = str_replace( '[link_description]', $link_description, $content );
1149
- $content = str_replace( '[link_large_description]', $link_large_description, $content );
1150
- $content = str_replace( '[link_image]', $link_image, $content );
1151
-
1152
- $content = str_replace( '[link_price]', $link_price, $content );
1153
- $content = $this->ll_replace_all_between( '[currency]', '[/currency]', $content, $link_price_currency );
1154
-
1155
- if ( floatval( $link_price ) > 0.0 ) {
1156
- $content = str_replace( '[link_price_or_free]', $link_price, $content );
1157
- $content = $this->ll_replace_all_between( '[currency_or_free]', '[/currency_or_free]', $content, $link_price_currency_or_free );
1158
- } else {
1159
- $content = str_replace( '[link_price_or_free]', __( 'Free', 'link-library' ), $content );
1160
- $content = $this->ll_replace_all_between( '[currency_or_free]', '[/currency_or_free]', $content, '' );
1161
- }
1162
-
1163
- $content = str_replace( '[link_address]', $link_url, $content );
1164
- $content = str_replace( '[link]', '<a href="' . $link_url . '">' . $link->post_title . '</a>', $content );
1165
- }
1166
- }
1167
-
1168
- return $content;
1169
- }
1170
-
1171
  function link_library_ajax_tracker() {
1172
  require_once plugin_dir_path( __FILE__ ) . 'tracker.php';
1173
  link_library_process_ajax_tracker( $this );
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: 5.9.15.6
7
  Author: Yannick Lefebvre
8
  Author URI: http://ylefebvre.ca/
9
  Text Domain: link-library
58
  return $response;
59
  }
60
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  function link_library_strposX( $haystack, $needle, $number ) {
62
  if( $number == '1' ){
63
  return strpos($haystack, $needle);
106
  //constructor of class, PHP4 compatible construction for backward compatibility
107
  function __construct() {
108
 
109
+ // Functions to be called when plugin is activated and deactivated
110
+ register_activation_hook( __FILE__, array( $this, 'll_install' ) );
111
+ register_deactivation_hook( __FILE__, array( $this, 'll_uninstall' ) );
112
+
 
 
113
  $newoptions = get_option( 'LinkLibraryPP1', '' );
114
+ $genoptions = get_option( 'LinkLibraryGeneral', '' );
115
 
116
  if ( empty( $newoptions ) ) {
117
  global $my_link_library_plugin_admin;
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
  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
 
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
 
175
  add_filter( 'wp_feed_cache_transient_lifetime' , array( $this, 'feed_cache_filter_handler' ) );
176
 
177
+ global $wpdb;
178
+
179
+ $wpdb->linkcategorymeta = $wpdb->get_blog_prefix() . 'linkcategorymeta';
180
  }
181
 
182
  function feed_cache_filter_handler( $seconds ) {
186
  return $genoptions['rsscachedelay'];
187
  }
188
 
189
+ function links_rss() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
190
  add_feed( 'linklibraryfeed', 'link_library_generate_rss_feed' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
191
  }
192
 
193
  /************************** Link Library Installation Function **************************/
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
+ for ( $i = 1; $i <= $genoptions['numberstylesets']; $i++ ) {
291
  $settingsname = 'LinkLibraryPP' . $i;
292
  $options = get_option( $settingsname );
293
 
338
 
339
  update_option( $settingsname, $options );
340
  }
 
 
341
  }
342
 
343
+ $genoptions['schemaversion'] = '5.1';
344
  update_option( 'LinkLibraryGeneral', $genoptions );
345
  }
346
 
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
  $options = get_option( $settingsname );
476
 
477
  if ( $options['enablerewrite'] && !empty( $options['rewritepage'] ) ) {
478
+ if ( is_multisite() ) {
479
+ $newrules['(' . $options['rewritepage'] . ')/(.+?)$'] = 'index.php?pagename=$matches[2]&cat_name=$matches[3]';
480
+ } else {
481
+ $newrules['(' . $options['rewritepage'] . ')/(.+?)$'] = 'index.php?pagename=$matches[1]&cat_name=$matches[2]';
482
+ }
483
+
484
  }
485
 
486
  if ( $options['publishrssfeed'] ) {
493
  }
494
  }
495
  }
496
+
497
  return $newrules + $rules;
498
  }
499
 
529
  return 'error_403';
530
  }
531
  } elseif ( $response['response']['code'] == '200' ) {
532
+ if ( empty( $RecipCheckAddress ) ) {
533
  return 'exists_notfound';
534
  } elseif ( strpos( $response['body'], $RecipCheckAddress ) === false ) {
535
  return 'exists_notfound';
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() {
772
  require_once plugin_dir_path( __FILE__ ) . 'render-link-library-sc.php';
773
  return RenderLinkLibrary( $this, $genoptions, $options, $settings, true );
774
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
775
 
776
  /********************************************** Function to Process [link-library] shortcode *********************************************/
777
 
839
  }
840
 
841
  if ( $showonecatonlyoverride == 'false' || $showonecatonlyoverride == 'true' ) {
842
+ if ( $showonecatonlyoverride == 'false' ) {
843
+ $options['showonecatonly'] = false;
844
+ } elseif ( $showonecatonlyoverride == 'true' ) {
845
+ $options['showonecatonly'] = true;
846
+ }
847
  }
848
 
849
  if ( !empty( $tableoverride ) ) {
864
 
865
  $genoptions = get_option( 'LinkLibraryGeneral' );
866
 
867
+ if ( floatval( $genoptions['schemaversion'] ) < '5.1' ) {
868
  $this->ll_install();
869
  $genoptions = get_option( 'LinkLibraryGeneral' );
870
 
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
  if ( !$linklibrarypos ) {
939
  if ( stripos( $post->post_content, 'link-library-cats' ) || stripos( $post->post_content, 'link-library-addlink' ) ) {
940
  $load_style = true;
941
+ if ( 'recaptcha' == $genoptions['captchagenerator'] ) {
942
+ $load_recaptcha = true;
943
+ }
944
  }
945
  }
946
  }
1007
  }
1008
  }
1009
 
1010
+ if ( $load_style ) {
1011
  $llstylesheet = true;
1012
  } else {
1013
  $llstylesheet = false;
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 );
linkpopup.php CHANGED
@@ -1,275 +1,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
 
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
+ $linkquery = "SELECT distinct *, l.link_id as proper_link_id, UNIX_TIMESTAMP(l.link_updated) as link_date, ";
12
+ $linkquery .= "IF (DATE_ADD(l.link_updated, INTERVAL 120 MINUTE) >= NOW(), 1,0) as recently_updated ";
13
+ $linkquery .= "FROM " . $my_link_library_plugin->db_prefix() . "terms t ";
14
+ $linkquery .= "LEFT JOIN " . $my_link_library_plugin->db_prefix() . "term_taxonomy tt ON (t.term_id = tt.term_id) ";
15
+ $linkquery .= "LEFT JOIN " . $my_link_library_plugin->db_prefix() . "term_relationships tr ON (tt.term_taxonomy_id = tr.term_taxonomy_id) ";
16
+ $linkquery .= "LEFT JOIN " . $my_link_library_plugin->db_prefix() . "links l ON (tr.object_id = l.link_id) ";
17
+ $linkquery .= "LEFT JOIN " . $my_link_library_plugin->db_prefix() . "links_extrainfo le ON (l.link_id = le.link_id) ";
18
+ $linkquery .= "WHERE tt.taxonomy = 'link_category' ";
19
+
20
+ $linkquery .= "AND l.link_id = " . $link_id;
21
+
22
+ global $wpdb;
23
+
24
+ $linkitem = $wpdb->get_row($linkquery, ARRAY_A);
25
+
26
+ $the_link = '#';
27
+ if ( !empty( $linkitem['link_url'] ) )
28
+ $the_link = esc_html($linkitem['link_url']);
29
+
30
+ $the_second_link = '#';
31
+ if (!empty($linkitem['link_second_url']) )
32
+ $the_second_link = esc_html($linkitem['link_second_url']);
33
+
34
+ $cleanname = esc_html($linkitem['link_name'], ENT_QUOTES);
35
+
36
+ $name = $cleanname;
37
+
38
+ $alt = ' alt="' . $cleanname . '"';
39
+
40
+ $title = esc_html($linkitem['link_description'], ENT_QUOTES);
41
+
42
+ if ('' != $title)
43
+ $title = ' title="' . $title . '"';
44
+
45
+ $options = get_option( 'LinkLibraryPP' . $settings_id );
46
+
47
+ $rel = $linkitem['link_rel'];
48
+ if ('' != $rel and !$options['nofollow'] and !$linkitem['link_no_follow'])
49
+ $rel = ' rel="' . $rel . '"';
50
+ else if ('' != $rel and ($options['nofollow'] or $linkitem['link_no_follow']))
51
+ $rel = ' rel="' . $rel . ' nofollow"';
52
+ else if ('' == $rel and ($options['nofollow'] or $linkitem['link_no_follow']))
53
+ $rel = ' rel="nofollow"';
54
+
55
+ $target = $linkitem['link_target'];
56
+ if ( !empty( $target ) ) {
57
+ $target = ' target="' . $target . '"';
58
+ } else {
59
+ $target = $options['linktarget'];
60
+ if ( !empty( $target ) )
61
+ $target = ' target="' . $target . '"';
62
+ }
63
+
64
+ $popup_text = ( !empty( $options['link_popup_text'] ) ? stripslashes($options['link_popup_text']) : __( '%link_image%<br />Click through to visit %link_name%.', 'link-library') );
65
+
66
+ if ( ( strpos( $popup_text, '%link_image%' ) !== false ) && !empty( $linkitem['link_image'] ) ) {
67
+ $imageoutput = '<a href="';
68
+
69
+ if ($options['sourceimage'] == 'primary' || $options['sourceimage'] == '')
70
+ $imageoutput .= $the_link;
71
+ elseif ($options['sourceimage'] == 'secondary')
72
+ $imageoutput .= $the_second_link;
73
+
74
+ $imageoutput .= '" id="link-' . $linkitem['proper_link_id'] . '" class="track_this_link ' . ( $linkitem['link_featured'] ? 'featured' : '' ). '" ' . $rel . $title . $target. '>';
75
+
76
+ if ($options['usethumbshotsforimages'])
77
+ {
78
+ if ($options['thumbshotscid'] == '')
79
+ $imageoutput .= '<img src="http://open.thumbshots.org/image.aspx?url=' . $the_link . '"';
80
+ elseif ($options['thumbshotscid'] != '')
81
+ $imageoutput .= '<img src="http://images.thumbshots.com/image.aspx?cid=' . $options['thumbshotscid'] .
82
+ '&v=1&w=120&h=90&url=' . $the_link . '"';
83
+ }
84
+ elseif ( strpos($linkitem['link_image'], 'http') !== false )
85
+ $imageoutput .= '<img src="' . $linkitem['link_image'] . '"';
86
+ else // If it's a relative path
87
+ $imageoutput .= '<img src="' . get_option('siteurl') . $linkitem['link_image'] . '"';
88
+
89
+ $imageoutput .= $alt . $title;
90
+
91
+ if ($options['imageclass'] != '')
92
+ $imageoutput .= ' class="' . $options['imageclass'] . '" ';
93
+
94
+ $imageoutput .= "/>";
95
+
96
+ $imageoutput .= '</a>';
97
+
98
+ $popup_text = str_replace( '%link_image%', $imageoutput, $popup_text );
99
+ } elseif ( ( strpos( $popup_text, '%link_image%' ) !== false ) && empty( $linkitem['link_image'] ) ) {
100
+ $popup_text = str_replace( '%link_image%', '', $popup_text );
101
+ }
102
+
103
+
104
+ if ( ( strpos( $popup_text, '%link_name%' ) !== false ) && !empty( $name ) ) {
105
+ if ( ( $options['sourcename'] == 'primary' && $the_link != '#') || ($options['sourcename'] == 'secondary' && $the_second_link != '#')) {
106
+ $nameoutput = '<a href="';
107
+
108
+ if ( isset( $options['sourcename'] ) && ( $options['sourcename'] == 'primary' || $options['sourcename'] == '' ) ) {
109
+ $nameoutput .= $the_link;
110
+ }
111
+ elseif ( isset( $options['sourcename'] ) && $options['sourcename'] == 'secondary' )
112
+ $nameoutput .= $the_second_link;
113
+
114
+ $nameoutput .= '" id="link-' . $linkitem['proper_link_id'] . '" class="' . ( ( isset( $enablelinkpopup ) && $enablelinkpopup ) ? 'thickbox' : 'track_this_link' ) . ( $linkitem['link_featured'] ? ' featured' : '' ). '" ' . $rel . $title . $target. '>';
115
+ }
116
+
117
+ $nameoutput .= $name;
118
+
119
+ if (($options['sourcename'] == 'primary' && $the_link != '#') || ($options['sourcename'] == 'secondary' && $the_second_link != '#'))
120
+ $nameoutput .= '</a>';
121
+
122
+ $popup_text = str_replace( '%link_name%', $nameoutput, $popup_text );
123
+ } elseif ( ( strpos( $popup_text, '%link_name%' ) !== false ) && empty( $name ) ) {
124
+ $popup_text = str_replace( '%link_name%', '', $popup_text );
125
+ }
126
+
127
+ if ( ( strpos( $popup_text, '%link_url%' ) !== false ) && !empty( $linkitem['link_url'] ) ) {
128
+ $popup_text = str_replace( '%link_url%', $linkitem['link_url'], $popup_text );
129
+ } elseif ( ( strpos( $popup_text, '%link_cat_name%' ) !== false ) && empty( $linkitem['name'] ) ) {
130
+ $popup_text = str_replace( '%link_url%', '', $popup_text );
131
+ }
132
+
133
+ if ( ( strpos( $popup_text, '%link_cat_name%' ) !== false ) && !empty( $linkitem['name'] ) ) { $popup_text = str_replace( '%link_cat_name%', $linkitem['name'], $popup_text );
134
+ } elseif ( ( strpos( $popup_text, '%link_cat_name%' ) !== false ) && empty( $linkitem['name'] ) ) {
135
+ $popup_text = str_replace( '%link_cat_name%', '', $popup_text );
136
+ }
137
+
138
+ if ( ( strpos( $popup_text, '%link_cat_desc%' ) !== false ) && !empty( $linkitem['description'] ) ) {
139
+ $cleandesc = str_replace('[', '<', $linkitem['description']);
140
+ $cleandesc = str_replace(']', '>', $cleandesc);
141
+
142
+ $popup_text = str_replace( '%link_cat_desc%', $cleandesc, $popup_text );
143
+ } elseif ( ( strpos( $popup_text, '%link_cat_desc%' ) !== false ) && empty( $linkitem['description'] ) ) {
144
+ $popup_text = str_replace( '%link_cat_desc%', '', $popup_text );
145
+ }
146
+
147
+ if ( ( strpos ( $popup_text, '%link_desc%' ) !== false ) && !empty( $linkitem['link_description'] ) ) {
148
+ $linkdesc = $linkitem['link_description'];
149
+ $linkdesc = str_replace('[', '<', $linkdesc);
150
+ $linkdesc = str_replace(']', '>', $linkdesc);
151
+
152
+ $popup_text = str_replace( '%link_desc%', $linkdesc, $popup_text );
153
+ } elseif ( ( strpos( $popup_text, '%link_desc%' ) !== false ) && empty( $linkitem['link_description'] ) ) {
154
+ $popup_text = str_replace( '%link_desc%', '', $popup_text );
155
+ }
156
+
157
+ if ( ( strpos ( $popup_text, '%link_large_desc%' ) !== false ) && !empty( $linkitem['link_textfield'] ) ) {
158
+ $linklargedesc = stripslashes( $linkitem['link_textfield'] );
159
+ $linklargedesc = str_replace('[', '<', $linklargedesc);
160
+ $linklargedesc = str_replace(']', '>', $linklargedesc);
161
+
162
+ $popup_text = str_replace( '%link_large_desc%', $linklargedesc, $popup_text );
163
+ } elseif ( ( strpos( $popup_text, '%link_large_desc%' ) !== false ) && empty( $linkitem['link_textfield'] ) ) {
164
+ $popup_text = str_replace( '%link_large_desc%', '', $popup_text );
165
+ }
166
+
167
+ if ( ( strpos ( $popup_text, '%link_telephone%' ) !== false ) && !empty( $linkitem['link_telephone'] ) ) {
168
+ $linktelephone = stripslashes( $linkitem['link_telephone'] );
169
+
170
+ $popup_text = str_replace( '%link_telephone%', $linktelephone, $popup_text );
171
+ } elseif ( ( strpos( $popup_text, '%link_telephone%' ) !== false ) && empty( $linkitem['link_telephone'] ) ) {
172
+ $popup_text = str_replace( '%link_telephone%', '', $popup_text );
173
+ }
174
+
175
+ if ( ( strpos ( $popup_text, '%link_email%' ) !== false ) && !empty( $linkitem['link_email'] ) ) {
176
+ $linkemail = stripslashes( $linkitem['link_email'] );
177
+
178
+ $popup_text = str_replace( '%link_email%', $linkemail, $popup_text );
179
+ } elseif ( ( strpos( $popup_text, '%link_email%' ) !== false ) && empty( $linkitem['link_email'] ) ) {
180
+ $popup_text = str_replace( '%link_email%', '', $popup_text );
181
+ }
182
+
183
+ if ( ( strpos ( $popup_text, '%link_email_link%' ) !== false ) && !empty( $linkitem['link_email'] ) ) {
184
+ $linkemail = stripslashes( $linkitem['link_email'] );
185
+ if ( strpos ( $linkemail, '@') !== false ) {
186
+ $linkemail = 'mailto:' . $linkemail;
187
+ }
188
+
189
+ $popup_text = str_replace( '%link_email_link%', $linkemail, $popup_text );
190
+ } elseif ( ( strpos( $popup_text, '%link_email_link%' ) !== false ) && empty( $linkitem['link_email'] ) ) {
191
+ $popup_text = str_replace( '%link_email_link%', '', $popup_text );
192
+ }
193
+
194
+ if ( ( strpos ( $popup_text, '%link_alt_web%' ) !== false ) && !empty( $linkitem['link_second_url'] ) ) {
195
+ $linkalturl = stripslashes( esc_html( $linkitem['link_second_url'] ) );
196
+
197
+ $popup_text = str_replace( '%link_alt_web%', $linkalturl, $popup_text );
198
+ } elseif ( ( strpos( $popup_text, '%link_alt_web%' ) !== false ) && empty( $linkitem['link_second_url'] ) ) {
199
+ $popup_text = str_replace( '%link_alt_web%', '', $popup_text );
200
+ }
201
+
202
+ if ( ( strpos ( $popup_text, '%link_num_views%' ) !== false ) && !empty( $linkitem['link_visits'] ) ) {
203
+ $linkvisits = stripslashes( $linkitem['link_visits'] );
204
+
205
+ $popup_text = str_replace( '%link_num_views%', $linkvisits, $popup_text );
206
+ } elseif ( ( strpos( $popup_text, '%link_num_views%' ) !== false ) && empty( $linkitem['link_visits'] ) ) {
207
+ $popup_text = str_replace( '%link_num_views%', '', $popup_text );
208
+ }
209
+
210
+ if ( ( strpos ( $popup_text, '%link_submitter_name%' ) !== false ) && !empty( $linkitem['link_submitter_name'] ) ) {
211
+ $linksubmitter = stripslashes( $linkitem['link_submitter_name'] );
212
+
213
+ $popup_text = str_replace( '%link_submitter_name%', $linksubmitter, $popup_text );
214
+ } elseif ( ( strpos( $popup_text, '%link_submitter_name%' ) !== false ) && empty( $linkitem['link_submitter_name'] ) ) {
215
+ $popup_text = str_replace( '%link_submitter_name%', '', $popup_text );
216
+ }
217
+
218
+ if ( ( strpos ( $popup_text, '%link_rating%' ) !== false ) && !empty( $linkitem['link_rating'] ) ) {
219
+ $linksubmitter = stripslashes( $linkitem['link_rating'] );
220
+
221
+ $popup_text = str_replace( '%link_rating%', $linksubmitter, $popup_text );
222
+ } elseif ( ( strpos( $popup_text, '%link_rating%' ) !== false ) && empty( $linkitem['link_rating'] ) ) {
223
+ $popup_text = str_replace( '%link_rating%', '', $popup_text );
224
+ }
225
+
226
+ if ( ( strpos ( $popup_text, '%link_rss%' ) !== false ) && !empty( $linkitem['link_rss'] ) ) {
227
+ $linksubmitter = stripslashes( $linkitem['link_rss'] );
228
+
229
+ $popup_text = str_replace( '%link_rss%', $linksubmitter, $popup_text );
230
+ } elseif ( ( strpos( $popup_text, '%link_rss%' ) !== false ) && empty( $linkitem['link_rss'] ) ) {
231
+ $popup_text = str_replace( '%link_rss%', '', $popup_text );
232
+ }
233
+
234
+ $postshortcode_popup_text = apply_filters( 'the_content', $popup_text );
235
+ echo '<div class="linkpopup">' . $postshortcode_popup_text . '</div>';
236
+
237
+ $xpath = $my_link_library_plugin->relativePath( dirname( __FILE__ ), ABSPATH );
238
+
239
+ $track_code = "<script type='text/javascript'>\n";
240
+ $track_code .= "jQuery(document).ready(function()\n";
241
+ $track_code .= "{\n";
242
+ $track_code .= "jQuery('a.track_this_link').click(function() {\n";
243
+ $track_code .= "linkid = this.id;\n";
244
+ $track_code .= "linkid = linkid.substring(5);";
245
+ $track_code .= "path = '" . $xpath . "';";
246
+ $track_code .= "jQuery.post('" . WP_PLUGIN_URL . "/link-library/tracker.php', {id:linkid, xpath:path});\n";
247
+ $track_code .= "return true;\n";
248
+ $track_code .= "});\n";
249
+ $track_code .= "});\n";
250
+ $track_code .= "</script>";
251
+
252
+ echo $track_code;
253
+ exit;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
254
  }
255
 
readme.txt CHANGED
@@ -2,8 +2,8 @@
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.4
7
  Stable tag: stable
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.
@@ -59,33 +59,14 @@ Further configuration is available under the Link Library Settings panel.
59
 
60
  == Changelog ==
61
 
62
- = 6.0 Beta 6 =
63
- * Added new option field under Web Link item in Advanced table to specify target
64
- * Fixed warning in user submission form
65
- * Updated Norsk translation
66
- * Fixed default value of single item template
67
- * Fixed PHP warnings if link fields are left empty
68
-
69
- = 6.0 Beta 5 =
70
- * Fixed issue with Robothumb link appearing after each category instead of only once after all links
71
- * Fixed issue with links being displayed as featured even if they had not been set as such
72
- * Fixed issue with front-end Edit links not sending administrators to the right place
73
- * Fixed issue with drag-and-drop of elements in advanced section sometimes creating duplicates
74
- * Fixed issue with category names not displaying if Link Library configured to display with headings instead of divs
75
-
76
- = 6.0 Beta 4 =
77
- * Corrected warnings when activating plugin on a site that had never had old version of Link Library
78
- * Added button under General Options to re-import links from 5.9.x to 6.0
79
- * Removed code in plugin initialization referring to inexistent table
80
-
81
- = 6.0 Beta 3 =
82
- * Incorporated changes from 5.9.15.3
83
-
84
- = 6.0 Beta 2 =
85
- * Fixed compatibility issue with versions of PHP older than 5.5
86
-
87
- = 6.0 Beta 1 =
88
- * Complete re-work of Link Library to use Custom Post Types instead of the WordPress legacy link tables
89
 
90
  = 5.9.15.3 =
91
  * Added option to determine if new reset search button should be shown or not
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: 3.0
6
+ Tested up to: 4.9.1
7
  Stable tag: stable
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.
59
 
60
  == Changelog ==
61
 
62
+ = 5.9.15.6 =
63
+ * Fix dismissal of message introduced in previous update
64
+
65
+ = 5.9.15.5 =
66
+ * Added admin message for 6.0 release target date and latest beta
67
+
68
+ = 5.9.15.4 =
69
+ * Small change to link exporter to make it compatible with Link Library for those preferring to export and re-import links than upgrading links in place
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
 
71
  = 5.9.15.3 =
72
  * Added option to determine if new reset search button should be shown or not
render-link-library-addlink-sc.php CHANGED
@@ -14,596 +14,611 @@ 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
  * @return List of categories output for browser
18
  */
19
 
20
  function RenderLinkLibraryAddLinkForm( $LLPluginClass, $generaloptions, $libraryoptions, $settings, $code ) {
21
 
22
- wp_enqueue_script( 'form-validator' );
23
- $output = '';
24
-
25
- $generaloptions = wp_parse_args( $generaloptions, ll_reset_gen_settings( 'return' ) );
26
- extract( $generaloptions );
27
-
28
- $libraryoptions = wp_parse_args( $libraryoptions, ll_reset_options( 1, 'list', 'return' ) );
29
- extract( $libraryoptions );
30
-
31
- if ( $libraryoptions['showaddlinkrss'] === false ) {
32
- $libraryoptions['showaddlinkrss'] = 'hide';
33
- } elseif ( $libraryoptions['showaddlinkrss'] === true ) {
34
- $libraryoptions['showaddlinkrss'] = 'show';
35
- }
36
-
37
- if ( $libraryoptions['showaddlinkdesc'] === false ) {
38
- $libraryoptions['showaddlinkdesc'] = 'hide';
39
- } elseif ( $libraryoptions['showaddlinkdesc'] === true ) {
40
- $libraryoptions['showaddlinkdesc'] = 'show';
41
- }
42
-
43
- if ( $libraryoptions['showaddlinkcat'] === false ) {
44
- $libraryoptions['showaddlinkcat'] = 'hide';
45
- } elseif ( $libraryoptions['showaddlinkcat'] === true ) {
46
- $libraryoptions['showaddlinkcat'] = 'show';
47
- }
48
-
49
- if ( $libraryoptions['showaddlinknotes'] === false ) {
50
- $libraryoptions['showaddlinknotes'] = 'hide';
51
- } elseif ( $libraryoptions['showaddlinknotes'] === true ) {
52
- $libraryoptions['showaddlinknotes'] = 'show';
53
- }
54
-
55
- if ( $libraryoptions['addlinkcustomcat'] === false ) {
56
- $libraryoptions['addlinkcustomcat'] = 'hide';
57
- } elseif ( $libraryoptions['addlinkcustomcat'] === true ) {
58
- $libraryoptions['addlinkcustomcat'] = 'show';
59
- }
60
-
61
- if ( $libraryoptions['showaddlinkreciprocal'] === false ) {
62
- $libraryoptions['showaddlinkreciprocal'] = 'hide';
63
- } elseif ( $libraryoptions['showaddlinkreciprocal'] === true ) {
64
- $libraryoptions['showaddlinkreciprocal'] = 'show';
65
- }
66
-
67
- if ( $libraryoptions['showaddlinksecondurl'] === false ) {
68
- $libraryoptions['showaddlinksecondurl'] = 'hide';
69
- } elseif ( $libraryoptions['showaddlinksecondurl'] === true ) {
70
- $libraryoptions['showaddlinksecondurl'] = 'show';
71
- }
72
-
73
- if ( $libraryoptions['showaddlinktelephone'] === false ) {
74
- $libraryoptions['showaddlinktelephone'] = 'hide';
75
- } elseif ( $libraryoptions['showaddlinktelephone'] === true ) {
76
- $libraryoptions['showaddlinktelephone'] = 'show';
77
- }
78
-
79
- if ( $libraryoptions['showaddlinkemail'] === false ) {
80
- $libraryoptions['showaddlinkemail'] = 'hide';
81
- } elseif ( $libraryoptions['showaddlinkemail'] === true ) {
82
- $libraryoptions['showaddlinkemail'] = 'show';
83
- }
84
-
85
- if ( $libraryoptions['showlinksubmittername'] === false ) {
86
- $libraryoptions['showlinksubmittername'] = 'hide';
87
- } elseif ( $libraryoptions['showlinksubmittername'] === true ) {
88
- $libraryoptions['showlinksubmittername'] = 'show';
89
- }
90
-
91
- if ( $libraryoptions['showaddlinksubmitteremail'] === false ) {
92
- $libraryoptions['showaddlinksubmitteremail'] = 'hide';
93
- } elseif ( $libraryoptions['showaddlinksubmitteremail'] === true ) {
94
- $libraryoptions['showaddlinksubmitteremail'] = 'show';
95
- }
96
-
97
- if ( $libraryoptions['showlinksubmittercomment'] === false ) {
98
- $libraryoptions['showlinksubmittercomment'] = 'hide';
99
- } elseif ( $libraryoptions['showlinksubmittercomment'] === true ) {
100
- $libraryoptions['showlinksubmittercomment'] = 'show';
101
- }
102
-
103
- if ( $libraryoptions['showcustomcaptcha'] === false ) {
104
- $libraryoptions['showcustomcaptcha'] = 'hide';
105
- } elseif ( $libraryoptions['showcustomcaptcha'] === true ) {
106
- $libraryoptions['showcustomcaptcha'] = 'show';
107
- }
108
-
109
- if ( $libraryoptions['showuserlargedescription'] === false ) {
110
- $libraryoptions['showuserlargedescription'] = 'hide';
111
- } elseif ( $libraryoptions['showuserlargedescription'] === true ) {
112
- $libraryoptions['showuserlargedescription'] = 'show';
113
- }
114
-
115
- /* 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 */
116
- if ( !empty( $categorylist ) ) {
117
- $categorylistarray = explode( ',', $categorylist );
118
-
119
- if ( true === array_filter( $categorylistarray, 'is_int' ) ) {
120
- return 'List of requested categories is invalid. Please go back to Link Library admin panel to correct.';
121
- }
122
- }
123
-
124
- if ( !empty( $excludecategorylist ) ) {
125
- $excludecategorylistarray = explode( ',', $excludecategorylist );
126
-
127
- if ( true === array_filter( $excludecategorylistarray, 'is_int' ) ) {
128
- return 'List of requested excluded categories is invalid. Please go back to Link Library admin panel to correct.';
129
- }
130
- }
131
-
132
- if ( 'link-library-addlink' == $code || 'addlink-link-library' == $code || 'link-library-addlinkcustommsg' == $code || 'addlinkcustommsg-link-library' == $code ) {
133
- if ( isset( $_GET['addlinkmessage'] ) ) {
134
- if ( 1 == $_GET['addlinkmessage'] ) {
135
- $output .= '<div class="llmessage">' . __('Confirm code not given', 'link-library') . '.</div>';
136
- } elseif ( 2 == $_GET['addlinkmessage'] ) {
137
- $output .= '<div class="llmessage">' . __('Captcha code is wrong', 'link-library') . '.</div>';
138
- } elseif ( 3 == $_GET['addlinkmessage'] ) {
139
- $output .= '<div class="llmessage">' . __('Captcha code is only valid for 5 minutes', 'link-library') . '.</div>';
140
- } elseif ( 4 == $_GET['addlinkmessage'] ) {
141
- $output .= '<div class="llmessage">' . __('No captcha cookie given. Make sure cookies are enabled', 'link-library') . '.</div>';
142
- } elseif ( 5 == $_GET['addlinkmessage'] ) {
143
- $output .= '<div class="llmessage">' . __('Captcha answer was not provided.', 'link-library') . '</div>';
144
- } elseif ( 6 == $_GET['addlinkmessage'] ) {
145
- $output .= '<div class="llmessage">' . __('Captcha answer is incorrect', 'link-library') . '.</div>';
146
- } elseif ( 7 == $_GET['addlinkmessage'] ) {
147
- $output .= '<div class="llmessage">' . __('User Category was not provided correctly. Link insertion failed.', 'link-library') . '</div>';
148
- } elseif ( 8 == $_GET['addlinkmessage'] ) {
149
- $output .= '<div class="llmessage">' . $newlinkmsg;
150
- if ( !$showuserlinks ) {
151
- $output .= ' ' . $moderatemsg;
152
- }
153
- $output .= '</div>';
154
- } elseif ( 9 == $_GET['addlinkmessage'] ) {
155
- $output .= '<div class="llmessage">' . __('Error: Link does not have an address.', 'link-library') . '</div>';
156
- } elseif ( 10 == $_GET['addlinkmessage'] ) {
157
- $output .= '<div class="llmessage">' . __('Error: Link already exists.', 'link-library') . '</div>';
158
- } elseif ( 11 == $_GET['addlinkmessage'] ) {
159
- $output .= '<div class="llmessage">' . $libraryoptions['linkrsslabel'] . __(' is a required field', 'link-library') . '</div>';
160
- } elseif ( 12 == $_GET['addlinkmessage'] ) {
161
- $output .= '<div class="llmessage">' . $libraryoptions['linkdesclabel'] . __(' is a required field', 'link-library') . '</div>';
162
- } elseif ( 13 == $_GET['addlinkmessage'] ) {
163
- $output .= '<div class="llmessage">' . $libraryoptions['linknoteslabel'] . __(' is a required field', 'link-library') . '</div>';
164
- } elseif ( 14 == $_GET['addlinkmessage'] ) {
165
- $output .= '<div class="llmessage">' . $libraryoptions['linkreciprocallabel'] . __(' is a required field', 'link-library') . '</div>';
166
- } elseif ( 15 == $_GET['addlinkmessage'] ) {
167
- $output .= '<div class="llmessage">' . $libraryoptions['linksecondurllabel'] . __(' is a required field', 'link-library') . '</div>';
168
- } elseif ( 16 == $_GET['addlinkmessage'] ) {
169
- $output .= '<div class="llmessage">' . $libraryoptions['linktelephonelabel'] . __(' is a required field', 'link-library') . '</div>';
170
- } elseif ( 17 == $_GET['addlinkmessage'] ) {
171
- $output .= '<div class="llmessage">' . $libraryoptions['linkemaillabel'] . __(' is a required field', 'link-library') . '</div>';
172
- } elseif ( 18 == $_GET['addlinkmessage'] ) {
173
- $output .= '<div class="llmessage">' . $libraryoptions['linksubmitternamelabel'] . __(' is a required field', 'link-library') . '</div>';
174
- } elseif ( 19 == $_GET['addlinkmessage'] ) {
175
- $output .= '<div class="llmessage">' . $libraryoptions['linksubmitteremaillabel'] . __(' is a required field', 'link-library') . '</div>';
176
- } elseif ( 20 == $_GET['addlinkmessage'] ) {
177
- $output .= '<div class="llmessage">' . $libraryoptions['linksubmittercommentlabel'] . __(' is a required field', 'link-library') . '</div>';
178
- } elseif ( 21 == $_GET['addlinkmessage'] ) {
179
- $output .= '<div class="llmessage">' . $libraryoptions['linklargedesclabel'] . __(' is a required field', 'link-library') . '</div>';
180
- } elseif ( 22 == $_GET['addlinkmessage'] ) {
181
- $output .= '<div class="llmessage">' . __('Link submission error', 'link-library') . '</div>';
182
- } elseif ( 23 == $_GET['addlinkmessage'] ) {
183
- $output .= '<div class="llmessage">' . __('Link rejected. There is already a site with this reciprocal link.', 'link-library') . '</div>';
184
- }
185
- }
186
- }
187
-
188
- if ( ( 'link-library-addlink' == $code || 'addlink-link-library' == $code ) && ( ( $addlinkreqlogin && current_user_can( 'read' ) ) || !$addlinkreqlogin ) ) {
189
- $output .= '<form method="post" id="lladdlink" action="">';
190
-
191
- $output .= wp_nonce_field( 'LL_ADDLINK_FORM', '_wpnonce', true, false );
192
- $output .= '<input type="hidden" name="thankyouurl" value="' . $linksubmissionthankyouurl . '" />';
193
- $output .= '<input type="hidden" name="link_library_user_link_submission" value="1" />';
194
-
195
- global $wp_query;
196
- $thePostID = $wp_query->post->ID;
197
- $output .= '<input type="hidden" name="pageid" value="' . $thePostID . '" />';
198
- $output .= '<input type="hidden" name="settingsid" value="' . $settings . '" />';
199
-
200
- $xpath = $LLPluginClass->relativePath( dirname( __FILE__ ), ABSPATH );
201
- $output .= '<input type="hidden" name="xpath" value="' . esc_attr( $xpath ) . '" />';
202
- unset( $xpath );
203
-
204
- $output .= "<div class='lladdlink'>\n";
205
-
206
- if ( empty( $addnewlinkmsg ) ) {
207
- $addnewlinkmsg = __( 'Add new link', 'link-library' );
208
- }
209
-
210
- $output .= '<div id="lladdlinktitle">' . $addnewlinkmsg . "</div>\n";
211
-
212
- $output .= "<table>\n";
213
-
214
- if ( empty( $linknamelabel ) ) {
215
- $linknamelabel = __( 'Link name', 'link-library' );
216
- }
217
-
218
- $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";
219
-
220
- if ( empty( $linkaddrlabel ) ) {
221
- $linkaddrlabel = __( 'Link address', 'link-library' );
222
- }
223
-
224
- $output .= '<tr><th>' . $linkaddrlabel . '</th><td><input ';
225
- if ( !$addlinknoaddress ) {
226
- $output .= 'data-validation="required url length" data-validation-length="max255" data-validation-error-msg-required="' . __( 'Required field, URL', 'link-library' ) . '" ';
227
- }
228
- $output .= 'type="text" name="link_url" id="link_url" value="' . ( isset( $_GET['addlinkurl'] ) ? esc_html( stripslashes( $_GET['addlinkurl'] ), '1') : 'http://' ) . "\" /></td></tr>\n";
229
-
230
- if ( 'show' == $showaddlinkrss || 'required' == $showaddlinkrss) {
231
- if ( empty( $linkrsslabel ) ) {
232
- $linkrsslabel = __( 'Link RSS', 'link-library' );
233
- }
234
-
235
- $output .= '<tr><th>' . $linkrsslabel . '</th><td><input ';
236
-
237
- if ( 'required' == $showaddlinkrss ) {
238
- $requiredtext = ' required';
239
- } else {
240
- $requiredtext = '';
241
- }
242
-
243
- $output .= 'data-validation="length' . $requiredtext . '" data-validation-length="max255" data-validation-error-msg-required="' . __( 'Required field, 1-255 chars', 'link-library' ) . '" ';
244
-
245
- $output .= ' type="text" name="link_rss" id="link_rss" value="' . ( isset( $_GET['addlinkrss'] ) ? esc_html( stripslashes( $_GET['addlinkrss'] ), '1') : '' ) . "\" /></td></tr>\n";
246
- }
247
-
248
- $include_links_array = explode( ',', $categorylist_cpt );
249
- $excluded_links_array = explode( ',', $excludecategorylist_cpt );
250
- $link_categories_query_args = array( 'hide_empty' => false );
251
- $link_categories_query_args['include'] = $include_links_array;
252
- $link_categories_query_args['exclude'] = $excluded_links_array;
253
- $linkcats = get_terms( 'link_library_category', $link_categories_query_args );
254
-
255
- if ( $debugmode ) {
256
- $output .= "\n<!-- Category query for add link form:" . print_r($linkcatquery, TRUE) . "-->\n\n";
257
- $output .= "\n<!-- Results of Category query for add link form:" . print_r($linkcats, TRUE) . "-->\n";
258
- }
259
-
260
- if ( $linkcats ) {
261
- if ( 'show' == $libraryoptions['showaddlinkcat'] || 'required' == $libraryoptions['showaddlinkcat'] ) {
262
- if ( empty( $linkcatlabel ) ) {
263
- $linkcatlabel = __( 'Link category', 'link-library' );
264
- }
265
-
266
- $output .= '<tr><th>' . $linkcatlabel . '</th><td>';
267
- $output .= '<SELECT data-validation="required" data-validation-error-msg-required="' . __( 'Required field', 'link-library' ) . '" name="link_category" id="link_category">';
268
-
269
- if ( 'nodefaultcat' == $addlinkdefaultcat ) {
270
- $output .= '<option value="">' . __( 'Select a category', 'link-category' ) . '</option>';
271
- }
272
-
273
- if ( empty( $linkcustomcatlistentry ) ) {
274
- $linkcustomcatlistentry = __( 'User-submitted category (define below)', 'link-library' );
275
- }
276
-
277
- foreach ( $linkcats as $linkcat ) {
278
- $output .= '<OPTION VALUE="' . $linkcat->term_id . '" ';
279
- if ( isset( $_GET['addlinkcat'] ) && $_GET['addlinkcat'] == $linkcat->term_id ) {
280
- $output .= "selected";
281
- } elseif ( 'nodefaultcat' != $addlinkdefaultcat && $linkcat->term_id == intval( $addlinkdefaultcat ) ) {
282
- $output .= "selected";
283
- }
284
- $output .= '>' . $linkcat->name;
285
- }
286
-
287
- if ( 'show' == $addlinkcustomcat ) {
288
- $output .= '<OPTION VALUE="new">' . stripslashes( $linkcustomcatlistentry ) . "\n";
289
- }
290
 
291
- $output .= "</SELECT></td></tr>\n";
292
- } else {
293
- $output .= '<input type="hidden" name="link_category" id="link_category" value="';
294
- if ( 'nodefaultcat' == $addlinkdefaultcat ) {
295
- $output .= $linkcats[0]->term_id;
296
- } else {
297
- $output .= intval( $addlinkdefaultcat );
298
- }
299
- $output .= '">';
300
- }
301
 
302
- if ( 'show' == $addlinkcustomcat ) {
303
- $output .= '<tr class="customcatrow" style="display:none"><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";
304
- }
305
- }
306
-
307
- if ( 'show' == $showaddlinkdesc || 'required' == $showaddlinkdesc ) {
308
- if ( empty( $linkdesclabel ) ) {
309
- $linkdesclabel = __( 'Link description', 'link-library' );
310
- }
311
 
312
- $output .= '<tr><th>' . $linkdesclabel . '</th><td><input ';
313
-
314
- if ( 'required' == $showaddlinkrss ) {
315
- $requiredtext = ' required';
316
- } else {
317
- $requiredtext = '';
318
- }
319
-
320
- $output .= 'data-validation="length' . $requiredtext . '" data-validation-length="max255" data-validation-error-msg-required="' . __( 'Required field, 1-255 chars', 'link-library' ) . '" ';
321
-
322
- $output .= ' type="text" name="link_description" id="link_description" value="' . ( isset( $_GET['addlinkdesc'] ) ? esc_html( stripslashes( $_GET['addlinkdesc'] ), '1' ) : '' ) . "\" /></td></tr>\n";
323
- }
324
-
325
- if ( 'show' == $showuserlargedescription || 'required' == $showuserlargedescription ) {
326
- if ( empty( $linklargedesclabel ) ) {
327
- $linklargedesclabel = __( 'Large description', 'link-library' );
328
- }
329
 
330
- $output .= '<tr><th style="vertical-align: top">' . $linklargedesclabel . '</th><td><textarea ';
331
-
332
- if ( 'required' == $showuserlargedescription ) {
333
- $output .= 'data-validation="required" data-validation-error-msg-required="' . __( 'Required field', 'link-library' ) . '" ';
334
- }
335
 
336
- $output .= ' name="link_textfield" id="link_textfield" cols="66">' . ( isset( $_GET['addlinktextfield'] ) ? esc_html( stripslashes( $_GET['addlinktextfield'] ), '1' ) : '' ) . "</textarea></td></tr>\n";
337
- }
338
-
339
- if ( 'show' == $showaddlinknotes || 'required' == $showaddlinknotes) {
340
- if ( empty( $linknoteslabel ) ) {
341
- $linknoteslabel = __( 'Link notes', 'link-library' );
342
- }
343
 
344
- $output .= '<tr><th>' . $linknoteslabel . '</th><td>';
345
-
346
- if ( !$usetextareaforusersubmitnotes || empty( $usetextareaforusersubmitnotes ) ) {
347
- $output .= '<input ';
348
-
349
- if ( 'required' == $showaddlinknotes ) {
350
- $output .= 'data-validation="required" data-validation-error-msg-required="' . __( 'Required field', 'link-library' ) . '" ';
351
- }
352
 
353
- $output .= 'type="text" name="link_notes" id="link_notes" value="';
354
- } elseif ( $usetextareaforusersubmitnotes ) {
355
- $output .= '<textarea ';
356
-
357
- if ( 'required' == $showaddlinknotes ) {
358
- $output .= 'data-validation="required" data-validation-error-msg-required="' . __( 'Required field', 'link-library' ) . '" ';
359
- }
360
-
361
- $output .= 'name="link_notes" id="link_notes">';
362
- }
363
 
364
- $output .= ( isset( $_GET['addlinknotes'] ) ? esc_html( stripslashes( $_GET['addlinknotes'] ), '1' ) : '' );
 
 
365
 
366
- if ( !$usetextareaforusersubmitnotes || empty( $usetextareaforusersubmitnotes ) ) {
367
- $output .= '" />';
368
- } elseif ( $usetextareaforusersubmitnotes ) {
369
- $output .= '</textarea>';
370
- }
371
-
372
- $output .= "</td></tr>\n";
373
- }
374
 
375
- if ( 'show' == $showaddlinkreciprocal || 'required' == $showaddlinkreciprocal) {
376
- if ( empty( $linkreciprocallabel ) ) {
377
- $linkreciprocallabel = __( 'Reciprocal Link', 'link-library' );
378
- }
379
 
380
- $output .= '<tr><th>' . $linkreciprocallabel . '</th><td><input ';
 
 
 
381
 
382
- if ( 'required' == $showaddlinkrss ) {
383
- $requiredtext = ' required';
384
- } else {
385
- $requiredtext = '';
386
- }
387
 
388
- $output .= 'data-validation="url length' . $requiredtext . '" data-validation-length="max255" data-validation-error-msg-required="' . __( 'Required field, 1-255 chars', 'link-library' ) . '" ';
 
 
 
389
 
390
- $output .= 'type="text" name="ll_reciprocal" id="ll_reciprocal" value="' . ( isset( $_GET['addlinkreciprocal'] ) ? esc_html(stripslashes($_GET['addlinkreciprocal']), '1') : 'http://' ) . "\" /></td></tr>\n";
391
- }
392
 
393
- if ( 'show' == $showaddlinksecondurl || 'required' == $showaddlinksecondurl) {
394
- if ( empty( $linksecondurllabel ) ) {
395
- $linksecondurllabel = __( 'Secondary Address', 'link-library' );
396
- }
 
397
 
398
- $output .= '<tr><th>' . $linksecondurllabel . '</th><td><input ';
399
 
400
- if ( 'required' == $showaddlinkrss ) {
401
- $requiredtext = ' required';
402
- } else {
403
- $requiredtext = '';
404
- }
405
 
406
- $output .= 'data-validation="length' . $requiredtext . '" data-validation-length="max255" data-validation-error-msg-required="' . __( 'Required field', 'link-library' ) . '" ';
 
 
 
407
 
408
- $output .= 'type="text" name="ll_secondwebaddr" id="ll_secondwebaddr" value="' . ( isset( $_GET['addlinksecondurl'] ) ? esc_html( stripslashes( $_GET['addlinksecondurl'] ), '1' ) : 'http://' ) . "\" /></td></tr>\n";
409
- }
410
 
411
- if ( 'show' == $showaddlinktelephone || 'required' == $showaddlinktelephone) {
412
- if ( empty( $linktelephonelabel ) ) {
413
- $linktelephonelabel = __( 'Telephone', 'link-library' );
414
- }
415
 
416
- $output .= '<tr><th>' . $linktelephonelabel . '</th><td><input ';
 
 
417
 
418
- if ( 'required' == $showaddlinkrss ) {
419
- $requiredtext = ' required';
420
- } else {
421
- $requiredtext = '';
422
- }
423
 
424
- $output .= 'data-validation="length' . $requiredtext . '" data-validation-length="max128" data-validation-error-msg-required="' . __( 'Required field', 'link-library' ) . '" ';
425
 
426
- $output .= 'type="text" name="ll_telephone" id="ll_telephone" value="' . ( isset( $_GET['addlinktelephone'] ) ? esc_html( stripslashes( $_GET['addlinktelephone'] ), '1' ) : '' ) . "\" /></td></tr>\n";
427
- }
 
 
428
 
429
- if ( 'show' == $showaddlinkemail || 'required' == $showaddlinkemail ) {
430
- if ( empty( $linkemaillabel ) ) {
431
- $linkemaillabel = __( 'E-mail', 'link-library' );
432
- }
 
433
 
434
- $output .= '<tr><th>' . $linkemaillabel . '</th><td><input ';
 
435
 
436
- if ( 'required' == $showaddlinkrss ) {
437
- $requiredtext = ' required';
438
- } else {
439
- $requiredtext = '';
440
- }
441
 
442
- $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' ) . '" ';
 
 
443
 
444
- $output .= 'type="text" name="ll_email" id="ll_email" value="' . ( isset( $_GET['addlinkemail'] ) ? esc_html( stripslashes( $_GET['addlinkemail'] ), '1' ) : '' ) . "\" /></td></tr>\n";
445
- }
 
 
 
 
 
 
 
446
 
447
- if ( 'show' == $showlinksubmittername || 'required' == $showlinksubmittername || is_user_logged_in() ) {
448
- if ( empty( $linksubmitternamelabel ) ) {
449
- $linksubmitternamelabel = __( 'Submitter Name', 'link-library' );
450
- }
451
 
452
- $name_field_value = '';
453
- if ( isset( $_GET['ll_submittername'] ) ) {
454
- $name_field_value = esc_html( stripslashes( $_GET['ll_submittername'] ) );
455
- } elseif ( is_user_logged_in() ) {
456
- $user_data = wp_get_current_user();
457
- $name_field_value = $user_data->display_name;
458
- }
 
 
 
459
 
460
- $output .= '<tr';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
461
 
462
- if ( 'show' != $showlinksubmittername && 'required' != $showlinksubmittername ) {
463
- $output .= ' style="display:none"';
464
- }
465
- $output .= '><th>' . $linksubmitternamelabel . '</th><td><input ';
466
-
467
- if ( 'required' == $showaddlinkrss ) {
468
- $requiredtext = ' required';
469
- } else {
470
- $requiredtext = '';
471
- }
472
-
473
- $output .= 'data-validation="length' . $requiredtext . '" data-validation-length="max128" data-validation-error-msg-required="' . __( 'Required field, 1-128 chars', 'link-library' ) . '" ';
474
-
475
- $output .= 'type="text" name="ll_submittername" id="ll_submittername" value="' . $name_field_value . "\" /></td></tr>\n";
476
- }
477
-
478
- if ( 'show' == $showaddlinksubmitteremail || 'required' == $showaddlinksubmitteremail || is_user_logged_in()) {
479
- if ( empty( $linksubmitteremaillabel ) ) {
480
- $linksubmitteremaillabel = __( 'Submitter E-mail', 'link-library' );
481
- }
482
-
483
- $email_field_value = '';
484
- if ( isset( $_GET['ll_submitteremail'] ) ) {
485
- $email_field_value = esc_html( stripslashes( $_GET['ll_submitteremail'] ) );
486
- } elseif ( is_user_logged_in() ) {
487
- $user_data = wp_get_current_user();
488
- $email_field_value = $user_data->user_email;
489
- }
490
-
491
- $output .= '<tr';
492
-
493
- if ( 'show' != $showaddlinksubmitteremail && 'required' != $showaddlinksubmitteremail ) {
494
- $output .= ' style="display:none"';
495
- }
496
- $output .= '><th>' . $linksubmitteremaillabel . '</th><td><input ';
497
-
498
- if ( 'required' == $showaddlinkrss ) {
499
- $requiredtext = ' required';
500
- } else {
501
- $requiredtext = '';
502
- }
503
-
504
- $output .= 'data-validation="email length' . $requiredtext . '" data-validation-length="max128" data-validation-error-msg-required="' . __( 'Required field, 1-128 chars', 'link-library' ) . '" ';
505
-
506
- $output .= 'type="text" name="ll_submitteremail" id="ll_submitteremail" value="' . $email_field_value . "\" /></td></tr>\n";
507
- }
508
-
509
- if ( 'show' == $showlinksubmittercomment || 'required' == $showlinksubmittercomment) {
510
- if ( empty( $linksubmittercommentlabel ) ) {
511
- $linksubmittercommentlabel = __( 'Submitter Comment', 'link-library' );
512
- }
513
-
514
- $output .= '<tr><th style="vertical-align: top;">' . $linksubmittercommentlabel . '</th><td><textarea ';
515
-
516
- if ( 'required' == $showlinksubmittercomment ) {
517
- $output .= 'data-validation="required" data-validation-error-msg-required="' . __( 'Required field', 'link-library' ) . '" ';
518
- }
519
-
520
- $output .= 'name="ll_submittercomment" id="ll_submittercomment" cols="38">' . ( isset( $_GET['addlinksubmitcomment'] ) ? esc_html( stripslashes( $_GET['addlinksubmitcomment']), '1' ) : '' ) . "</textarea></td></tr>\n";
521
- }
522
-
523
- if ( $showcaptcha && !is_user_logged_in() ) {
524
- $output .= apply_filters( 'link_library_generate_captcha', '' );
525
- }
526
-
527
- if ( 'show' == $showcustomcaptcha && !is_user_logged_in() ) {
528
- if ( empty( $customcaptchaquestion ) ) {
529
- $customcaptchaquestion = __( 'Is boiling water hot or cold?', 'link-library' );
530
- }
531
-
532
- $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";
533
- }
534
-
535
- $output .= "</table>\n";
536
-
537
- if ( empty( $addlinkbtnlabel ) ) {
538
- $addlinkbtnlabel = __( 'Add link', 'link-library' );
539
- }
540
-
541
- $output .= '<span style="border:0;" class="LLUserLinkSubmit"><input type="submit" name="submit" value="' . $addlinkbtnlabel . '" /></span>';
542
-
543
- $output .= "</div>\n";
544
- $output .= "</form>\n\n";
545
-
546
- $output .= "<script type='text/javascript'>\n";
547
- $output .= "\tjQuery( document ).ready( function() {\n";
548
-
549
- $output .= "\tvar LinkLibraryValidationLanguage = {\n";
550
- $output .= "\t\terrorTitle: '" . addslashes( __( 'Form submission failed!', 'link-library' ) ) . "',\n";
551
- $output .= "\t\trequiredFields: '" . addslashes( __( 'You have not answered all required fields', 'link-library' ) ) . "',\n";
552
- $output .= "\t\tbadTime: '" . addslashes( __( 'You have not given a correct time', 'link-library' ) ) . "',\n";
553
- $output .= "\t\tbadEmail: '" . addslashes( __( 'You have not given a correct e-mail address', 'link-library' ) ) . "',\n";
554
- $output .= "\t\tbadTelephone: '" . addslashes( __( 'You have not given a correct phone number', 'link-library' ) ) . "',\n";
555
- $output .= "\t\tbadSecurityAnswer: '" . addslashes( __( 'You have not given a correct answer to the security question', 'link-library' ) ) . "',\n";
556
- $output .= "\t\tbadDate: '" . addslashes( __( 'You have not given a correct date', 'link-library' ) ) . "',\n";
557
- $output .= "\t\tlengthBadStart: '" . addslashes( __( 'The input value must be between ', 'link-library' ) ) . "',\n";
558
- $output .= "\t\tlengthBadEnd: '" . addslashes( __( 'characters', 'link-library' ) ) . "',\n";
559
- $output .= "\t\tlengthTooLongStart: '" . addslashes( __( 'The input value is longer than ', 'link-library' ) ) . "',\n";
560
- $output .= "\t\tlengthTooShortStart: '" . addslashes( __( 'The input value is shorter than ', 'link-library' ) ). "',\n";
561
- $output .= "\t\tnotConfirmed: '" . addslashes( __( 'Input values could not be confirmed', 'link-library' ) ). "',\n";
562
- $output .= "\t\tbadDomain: '" . addslashes( __( 'Incorrect domain value', 'link-library' ) ) . "',\n";
563
- $output .= "\t\tbadUrl: '" . addslashes( __( 'The input value is not a correct URL. Requires http://.', 'link-library' ) ) . "',\n";
564
- $output .= "\t\tbadCustomVal: '" . addslashes( __( 'The input value is incorrect', 'link-library' ) ) . "',\n";
565
- $output .= "\t\tandSpaces: '" . addslashes( __( ' and spaces ', 'link-library' ) ) . "',\n";
566
- $output .= "\t\tbadInt: '" . addslashes( __( 'The input value was not a correct number', 'link-library' ) ) . "',\n";
567
- $output .= "\t\tbadSecurityNumber: '" . addslashes( __( 'Your social security number was incorrect', 'link-library' ) ) . "',\n";
568
- $output .= "\t\tbadUKVatAnswer: '" . addslashes( __( 'Incorrect UK VAT Number', 'link-library' ) ) . "',\n";
569
- $output .= "\t\tbadStrength: '" . addslashes( __( 'The password is not strong enough', 'link-library' ) ) . "',\n";
570
- $output .= "\t\tbadNumberOfSelectedOptionsStart: '" . addslashes( __( 'You have to choose at least ', 'link-library' ) ) . "',\n";
571
- $output .= "\t\tbadNumberOfSelectedOptionsEnd: '" . addslashes( __( ' answers', 'link-library' ) ) . "',\n";
572
- $output .= "\t\tbadAlphaNumeric: '" . addslashes( __( 'The input value can only contain alphanumeric characters ', 'link-library' ) ) . "',\n";
573
- $output .= "\t\tbadAlphaNumericExtra: '" . addslashes( __( ' and ', 'link-library' ) ) . "',\n";
574
- $output .= "\t\twrongFileSize: '" . addslashes( __( 'The file you are trying to upload is too large (max %s)', 'link-library' ) ) . "',\n";
575
- $output .= "\t\twrongFileType: '" . addslashes( __( 'Only files of type %s is allowed', 'link-library' ) ) . "',\n";
576
- $output .= "\t\tgroupCheckedRangeStart: '" . addslashes( __( 'Please choose between ', 'link-library' ) ) . "',\n";
577
- $output .= "\t\tgroupCheckedTooFewStart: '" . addslashes( __( 'Please choose at least ', 'link-library' ) ) . "',\n";
578
- $output .= "\t\tgroupCheckedTooManyStart: '" . addslashes( __( 'Please choose a maximum of ', 'link-library' ) ) . "',\n";
579
- $output .= "\t\tgroupCheckedEnd: '" . addslashes( __( ' item(s)', 'link-library' ) ) . "',\n";
580
- $output .= "\t\tbadCreditCard: '" . addslashes( __( 'The credit card number is not correct', 'link-library' ) ) . "',\n";
581
- $output .= "\t\tbadCVV: '" . addslashes( __( 'The CVV number was not correct', 'link-library' ) ) . "',\n";
582
- $output .= "\t\twrongFileDim : '" . addslashes( __( 'Incorrect image dimensions,', 'link-library' ) ) . "',\n";
583
- $output .= "\t\timageTooTall : '" . addslashes( __( 'the image can not be taller than', 'link-library' ) ) . "',\n";
584
- $output .= "\t\timageTooWide : '" . addslashes( __( 'the image can not be wider than', 'link-library' ) ) . "',\n";
585
- $output .= "\t\timageTooSmall : '" . addslashes( __( 'the image was too small', 'link-library' ) ) . "',\n";
586
- $output .= "\t\tmin : '" . addslashes( __( 'min', 'link-library' ) ) . "',\n";
587
- $output .= "\t\tmax : '" . addslashes( __( 'max', 'link-library' ) ) . "',\n";
588
- $output .= "\t\timageRatioNotAccepted : '" . addslashes( __( 'Image ratio is not accepted', 'link-library' ) ) . "'\n";
589
- $output .= "\t};\n";
590
-
591
- $output .= "\t\tjQuery.validate({\n";
592
- $output .= "\t\t\tmodules : 'location, date, security, file',\n";
593
- $output .= "\t\t\tlanguage : LinkLibraryValidationLanguage,\n";
594
- $output .= "\t\t});\n";
595
- $output .= "\t\tjQuery('#link_category').change(function() {\n";
596
- $output .= "\t\t\tif ( jQuery('#link_category').val() == 'new' ) {\n";
597
- $output .= "\t\t\t\tjQuery('.customcatrow').show();\n";
598
- $output .= "\t\t\t} else {\n";
599
- $output .= "\t\t\t\tjQuery('.customcatrow').hide();\n";
600
- $output .= "\t\t\t};\n";
601
- $output .= "\t\t});\n";
602
- $output .= "\t});\n";
603
- $output .= "</script>\n";
604
- }
605
-
606
- return $output;
607
  }
608
 
609
  function link_library_generate_captcha() {
@@ -617,7 +632,7 @@ function link_library_generate_captcha() {
617
  $captcha = '<tr><td></td><td><div class="g-recaptcha" data-sitekey="' . $generaloptions['recaptchasitekey'] . '"></div></td></tr>';
618
  }
619
 
620
- return $captcha;
621
  }
622
 
623
  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
+ *
18
  * @return List of categories output for browser
19
  */
20
 
21
  function RenderLinkLibraryAddLinkForm( $LLPluginClass, $generaloptions, $libraryoptions, $settings, $code ) {
22
 
23
+ wp_enqueue_script( 'form-validator' );
24
+ global $wpdb;
25
+ $output = '';
26
+
27
+ $generaloptions = wp_parse_args( $generaloptions, ll_reset_gen_settings( 'return' ) );
28
+ extract( $generaloptions );
29
+
30
+ $libraryoptions = wp_parse_args( $libraryoptions, ll_reset_options( 1, 'list', 'return' ) );
31
+ extract( $libraryoptions );
32
+
33
+ if ( $libraryoptions['showaddlinkrss'] === false ) {
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 .= '</div>';
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
+ if ( empty( $addnewlinkmsg ) ) {
209
+ $addnewlinkmsg = __( 'Add new link', 'link-library' );
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
+ $linkcatquery = 'SELECT distinct t.name, t.term_id, t.slug as category_nicename, tt.description as category_description ';
252
+ $linkcatquery .= 'FROM ' . $LLPluginClass->db_prefix() . 'terms t ';
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
+ if ( 'nodefaultcat' == $addlinkdefaultcat ) {
285
+ $output .= '<option value="">' . __( 'Select a category', 'link-category' ) . '</option>';
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
+ if ( 'show' == $addlinkcustomcat ) {
318
+ $output .= '<tr class="customcatrow" style="display:none"><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";
319
+ }
320
+ }
321
+
322
+ if ( 'show' == $showaddlinkdesc || 'required' == $showaddlinkdesc ) {
323
+ if ( empty( $linkdesclabel ) ) {
324
+ $linkdesclabel = __( 'Link description', 'link-library' );
325
+ }
326
+
327
+ $output .= '<tr><th>' . $linkdesclabel . '</th><td><input ';
328
+
329
+ if ( 'required' == $showaddlinkrss ) {
330
+ $requiredtext = ' required';
331
+ } else {
332
+ $requiredtext = '';
333
+ }
334
+
335
+ $output .= 'data-validation="length' . $requiredtext . '" data-validation-length="max255" data-validation-error-msg-required="' . __( 'Required field, 1-255 chars', 'link-library' ) . '" ';
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 .= '<tr><th style="vertical-align: top">' . $linklargedesclabel . '</th><td><textarea ';
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
+ if ( 'show' == $showaddlinknotes || 'required' == $showaddlinknotes ) {
355
+ if ( empty( $linknoteslabel ) ) {
356
+ $linknoteslabel = __( 'Link notes', 'link-library' );
357
+ }
358
+
359
+ $output .= '<tr><th>' . $linknoteslabel . '</th><td>';
360
+
361
+ if ( ! $usetextareaforusersubmitnotes || empty( $usetextareaforusersubmitnotes ) ) {
362
+ $output .= '<input ';
363
+
364
+ if ( 'required' == $showaddlinknotes ) {
365
+ $output .= 'data-validation="required" data-validation-error-msg-required="' . __( 'Required field', 'link-library' ) . '" ';
366
+ }
367
+
368
+ $output .= 'type="text" name="link_notes" id="link_notes" value="';
369
+ } elseif ( $usetextareaforusersubmitnotes ) {
370
+ $output .= '<textarea ';
371
+
372
+ if ( 'required' == $showaddlinknotes ) {
373
+ $output .= 'data-validation="required" data-validation-error-msg-required="' . __( 'Required field', 'link-library' ) . '" ';
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
+ $output .= 'data-validation="url length' . $requiredtext . '" data-validation-length="max255" data-validation-error-msg-required="' . __( 'Required field, 1-255 chars', 'link-library' ) . '" ';
404
+
405
+ $output .= 'type="text" name="ll_reciprocal" id="ll_reciprocal" value="' . ( isset( $_GET['addlinkreciprocal'] ) ? esc_html( stripslashes( $_GET['addlinkreciprocal'] ), '1' ) : 'http://' ) . "\" /></td></tr>\n";
406
+ }
407
+
408
+ if ( 'show' == $showaddlinksecondurl || 'required' == $showaddlinksecondurl ) {
409
+ if ( empty( $linksecondurllabel ) ) {
410
+ $linksecondurllabel = __( 'Secondary Address', 'link-library' );
411
+ }
412
+
413
+ $output .= '<tr><th>' . $linksecondurllabel . '</th><td><input ';
414
+
415
+ if ( 'required' == $showaddlinkrss ) {
416
+ $requiredtext = ' required';
417
+ } else {
418
+ $requiredtext = '';
419
+ }
420
+
421
+ $output .= 'data-validation="length' . $requiredtext . '" data-validation-length="max255" data-validation-error-msg-required="' . __( 'Required field', 'link-library' ) . '" ';
422
+
423
+ $output .= 'type="text" name="ll_secondwebaddr" id="ll_secondwebaddr" value="' . ( isset( $_GET['addlinksecondurl'] ) ? esc_html( stripslashes( $_GET['addlinksecondurl'] ), '1' ) : 'http://' ) . "\" /></td></tr>\n";
424
+ }
425
+
426
+ if ( 'show' == $showaddlinktelephone || 'required' == $showaddlinktelephone ) {
427
+ if ( empty( $linktelephonelabel ) ) {
428
+ $linktelephonelabel = __( 'Telephone', 'link-library' );
429
+ }
430
+
431
+ $output .= '<tr><th>' . $linktelephonelabel . '</th><td><input ';
432
+
433
+ if ( 'required' == $showaddlinkrss ) {
434
+ $requiredtext = ' required';
435
+ } else {
436
+ $requiredtext = '';
437
+ }
438
+
439
+ $output .= 'data-validation="length' . $requiredtext . '" data-validation-length="max128" data-validation-error-msg-required="' . __( 'Required field', 'link-library' ) . '" ';
440
+
441
+ $output .= 'type="text" name="ll_telephone" id="ll_telephone" value="' . ( isset( $_GET['addlinktelephone'] ) ? esc_html( stripslashes( $_GET['addlinktelephone'] ), '1' ) : '' ) . "\" /></td></tr>\n";
442
+ }
443
+
444
+ if ( 'show' == $showaddlinkemail || 'required' == $showaddlinkemail ) {
445
+ if ( empty( $linkemaillabel ) ) {
446
+ $linkemaillabel = __( 'E-mail', 'link-library' );
447
+ }
448
+
449
+ $output .= '<tr><th>' . $linkemaillabel . '</th><td><input ';
450
+
451
+ if ( 'required' == $showaddlinkrss ) {
452
+ $requiredtext = ' required';
453
+ } else {
454
+ $requiredtext = '';
455
+ }
456
+
457
+ $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' ) . '" ';
458
+
459
+ $output .= 'type="text" name="ll_email" id="ll_email" value="' . ( isset( $_GET['addlinkemail'] ) ? esc_html( stripslashes( $_GET['addlinkemail'] ), '1' ) : '' ) . "\" /></td></tr>\n";
460
+ }
461
+
462
+ if ( 'show' == $showlinksubmittername || 'required' == $showlinksubmittername || is_user_logged_in() ) {
463
+ if ( empty( $linksubmitternamelabel ) ) {
464
+ $linksubmitternamelabel = __( 'Submitter Name', 'link-library' );
465
+ }
466
+
467
+ $name_field_value = '';
468
+ if ( isset( $_GET['ll_submittername'] ) ) {
469
+ $name_field_value = esc_html( stripslashes( $_GET['ll_submittername'] ) );
470
+ } elseif ( is_user_logged_in() ) {
471
+ $user_data = wp_get_current_user();
472
+ $name_field_value = $user_data->display_name;
473
+ }
474
+
475
+ $output .= '<tr';
476
+
477
+ if ( 'show' != $showlinksubmittername && 'required' != $showlinksubmittername ) {
478
+ $output .= ' style="display:none"';
479
+ }
480
+ $output .= '><th>' . $linksubmitternamelabel . '</th><td><input ';
481
+
482
+ if ( 'required' == $showaddlinkrss ) {
483
+ $requiredtext = ' required';
484
+ } else {
485
+ $requiredtext = '';
486
+ }
487
+
488
+ $output .= 'data-validation="length' . $requiredtext . '" data-validation-length="max128" data-validation-error-msg-required="' . __( 'Required field, 1-128 chars', 'link-library' ) . '" ';
489
+
490
+ $output .= 'type="text" name="ll_submittername" id="ll_submittername" value="' . $name_field_value . "\" /></td></tr>\n";
491
+ }
492
+
493
+ if ( 'show' == $showaddlinksubmitteremail || 'required' == $showaddlinksubmitteremail || is_user_logged_in() ) {
494
+ if ( empty( $linksubmitteremaillabel ) ) {
495
+ $linksubmitteremaillabel = __( 'Submitter E-mail', 'link-library' );
496
+ }
497
+
498
+ $email_field_value = '';
499
+ if ( isset( $_GET['ll_submitteremail'] ) ) {
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
+ $output .= '<tr';
507
+
508
+ if ( 'show' != $showaddlinksubmitteremail && 'required' != $showaddlinksubmitteremail ) {
509
+ $output .= ' style="display:none"';
510
+ }
511
+ $output .= '><th>' . $linksubmitteremaillabel . '</th><td><input ';
512
+
513
+ if ( 'required' == $showaddlinkrss ) {
514
+ $requiredtext = ' required';
515
+ } else {
516
+ $requiredtext = '';
517
+ }
518
+
519
+ $output .= 'data-validation="email length' . $requiredtext . '" data-validation-length="max128" data-validation-error-msg-required="' . __( 'Required field, 1-128 chars', 'link-library' ) . '" ';
520
+
521
+ $output .= 'type="text" name="ll_submitteremail" id="ll_submitteremail" value="' . $email_field_value . "\" /></td></tr>\n";
522
+ }
523
+
524
+ if ( 'show' == $showlinksubmittercomment || 'required' == $showlinksubmittercomment ) {
525
+ if ( empty( $linksubmittercommentlabel ) ) {
526
+ $linksubmittercommentlabel = __( 'Submitter Comment', 'link-library' );
527
+ }
528
+
529
+ $output .= '<tr><th style="vertical-align: top;">' . $linksubmittercommentlabel . '</th><td><textarea ';
530
+
531
+ if ( 'required' == $showlinksubmittercomment ) {
532
+ $output .= 'data-validation="required" data-validation-error-msg-required="' . __( 'Required field', 'link-library' ) . '" ';
533
+ }
534
+
535
+ $output .= 'name="ll_submittercomment" id="ll_submittercomment" cols="38">' . ( isset( $_GET['addlinksubmitcomment'] ) ? esc_html( stripslashes( $_GET['addlinksubmitcomment'] ), '1' ) : '' ) . "</textarea></td></tr>\n";
536
+ }
537
+
538
+ if ( $showcaptcha && !is_user_logged_in() ) {
539
+ $output .= apply_filters( 'link_library_generate_captcha', '' );
540
+ }
541
+
542
+ if ( 'show' == $showcustomcaptcha && !is_user_logged_in() ) {
543
+ if ( empty( $customcaptchaquestion ) ) {
544
+ $customcaptchaquestion = __( 'Is boiling water hot or cold?', 'link-library' );
545
+ }
546
+
547
+ $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";
548
+ }
549
+
550
+ $output .= "</table>\n";
551
+
552
+ if ( empty( $addlinkbtnlabel ) ) {
553
+ $addlinkbtnlabel = __( 'Add link', 'link-library' );
554
+ }
555
+
556
+ $output .= '<span style="border:0;" class="LLUserLinkSubmit"><input type="submit" name="submit" value="' . $addlinkbtnlabel . '" /></span>';
557
+
558
+ $output .= "</div>\n";
559
+ $output .= "</form>\n\n";
560
+
561
+ $output .= "<script type='text/javascript'>\n";
562
+ $output .= "\tjQuery( document ).ready( function() {\n";
563
+
564
+ $output .= "\tvar LinkLibraryValidationLanguage = {\n";
565
+ $output .= "\t\terrorTitle: '" . addslashes( __( 'Form submission failed!', 'link-library' ) ) . "',\n";
566
+ $output .= "\t\trequiredFields: '" . addslashes( __( 'You have not answered all required fields', 'link-library' ) ) . "',\n";
567
+ $output .= "\t\tbadTime: '" . addslashes( __( 'You have not given a correct time', 'link-library' ) ) . "',\n";
568
+ $output .= "\t\tbadEmail: '" . addslashes( __( 'You have not given a correct e-mail address', 'link-library' ) ) . "',\n";
569
+ $output .= "\t\tbadTelephone: '" . addslashes( __( 'You have not given a correct phone number', 'link-library' ) ) . "',\n";
570
+ $output .= "\t\tbadSecurityAnswer: '" . addslashes( __( 'You have not given a correct answer to the security question', 'link-library' ) ) . "',\n";
571
+ $output .= "\t\tbadDate: '" . addslashes( __( 'You have not given a correct date', 'link-library' ) ) . "',\n";
572
+ $output .= "\t\tlengthBadStart: '" . addslashes( __( 'The input value must be between ', 'link-library' ) ) . "',\n";
573
+ $output .= "\t\tlengthBadEnd: '" . addslashes( __( 'characters', 'link-library' ) ) . "',\n";
574
+ $output .= "\t\tlengthTooLongStart: '" . addslashes( __( 'The input value is longer than ', 'link-library' ) ) . "',\n";
575
+ $output .= "\t\tlengthTooShortStart: '" . addslashes( __( 'The input value is shorter than ', 'link-library' ) ) . "',\n";
576
+ $output .= "\t\tnotConfirmed: '" . addslashes( __( 'Input values could not be confirmed', 'link-library' ) ) . "',\n";
577
+ $output .= "\t\tbadDomain: '" . addslashes( __( 'Incorrect domain value', 'link-library' ) ) . "',\n";
578
+ $output .= "\t\tbadUrl: '" . addslashes( __( 'The input value is not a correct URL. Requires http://.', 'link-library' ) ) . "',\n";
579
+ $output .= "\t\tbadCustomVal: '" . addslashes( __( 'The input value is incorrect', 'link-library' ) ) . "',\n";
580
+ $output .= "\t\tandSpaces: '" . addslashes( __( ' and spaces ', 'link-library' ) ) . "',\n";
581
+ $output .= "\t\tbadInt: '" . addslashes( __( 'The input value was not a correct number', 'link-library' ) ) . "',\n";
582
+ $output .= "\t\tbadSecurityNumber: '" . addslashes( __( 'Your social security number was incorrect', 'link-library' ) ) . "',\n";
583
+ $output .= "\t\tbadUKVatAnswer: '" . addslashes( __( 'Incorrect UK VAT Number', 'link-library' ) ) . "',\n";
584
+ $output .= "\t\tbadStrength: '" . addslashes( __( 'The password is not strong enough', 'link-library' ) ) . "',\n";
585
+ $output .= "\t\tbadNumberOfSelectedOptionsStart: '" . addslashes( __( 'You have to choose at least ', 'link-library' ) ) . "',\n";
586
+ $output .= "\t\tbadNumberOfSelectedOptionsEnd: '" . addslashes( __( ' answers', 'link-library' ) ) . "',\n";
587
+ $output .= "\t\tbadAlphaNumeric: '" . addslashes( __( 'The input value can only contain alphanumeric characters ', 'link-library' ) ) . "',\n";
588
+ $output .= "\t\tbadAlphaNumericExtra: '" . addslashes( __( ' and ', 'link-library' ) ) . "',\n";
589
+ $output .= "\t\twrongFileSize: '" . addslashes( __( 'The file you are trying to upload is too large (max %s)', 'link-library' ) ) . "',\n";
590
+ $output .= "\t\twrongFileType: '" . addslashes( __( 'Only files of type %s is allowed', 'link-library' ) ) . "',\n";
591
+ $output .= "\t\tgroupCheckedRangeStart: '" . addslashes( __( 'Please choose between ', 'link-library' ) ) . "',\n";
592
+ $output .= "\t\tgroupCheckedTooFewStart: '" . addslashes( __( 'Please choose at least ', 'link-library' ) ) . "',\n";
593
+ $output .= "\t\tgroupCheckedTooManyStart: '" . addslashes( __( 'Please choose a maximum of ', 'link-library' ) ) . "',\n";
594
+ $output .= "\t\tgroupCheckedEnd: '" . addslashes( __( ' item(s)', 'link-library' ) ) . "',\n";
595
+ $output .= "\t\tbadCreditCard: '" . addslashes( __( 'The credit card number is not correct', 'link-library' ) ) . "',\n";
596
+ $output .= "\t\tbadCVV: '" . addslashes( __( 'The CVV number was not correct', 'link-library' ) ) . "',\n";
597
+ $output .= "\t\twrongFileDim : '" . addslashes( __( 'Incorrect image dimensions,', 'link-library' ) ) . "',\n";
598
+ $output .= "\t\timageTooTall : '" . addslashes( __( 'the image can not be taller than', 'link-library' ) ) . "',\n";
599
+ $output .= "\t\timageTooWide : '" . addslashes( __( 'the image can not be wider than', 'link-library' ) ) . "',\n";
600
+ $output .= "\t\timageTooSmall : '" . addslashes( __( 'the image was too small', 'link-library' ) ) . "',\n";
601
+ $output .= "\t\tmin : '" . addslashes( __( 'min', 'link-library' ) ) . "',\n";
602
+ $output .= "\t\tmax : '" . addslashes( __( 'max', 'link-library' ) ) . "',\n";
603
+ $output .= "\t\timageRatioNotAccepted : '" . addslashes( __( 'Image ratio is not accepted', 'link-library' ) ) . "'\n";
604
+ $output .= "\t};\n";
605
+
606
+ $output .= "\t\tjQuery.validate({\n";
607
+ $output .= "\t\t\tmodules : 'location, date, security, file',\n";
608
+ $output .= "\t\t\tlanguage : LinkLibraryValidationLanguage,\n";
609
+ $output .= "\t\t});\n";
610
+ $output .= "\t\tjQuery('#link_category').change(function() {\n";
611
+ $output .= "\t\t\tif ( jQuery('#link_category').val() == 'new' ) {\n";
612
+ $output .= "\t\t\t\tjQuery('.customcatrow').show();\n";
613
+ $output .= "\t\t\t} else {\n";
614
+ $output .= "\t\t\t\tjQuery('.customcatrow').hide();\n";
615
+ $output .= "\t\t\t};\n";
616
+ $output .= "\t\t});\n";
617
+ $output .= "\t});\n";
618
+ $output .= "</script>\n";
619
+ }
620
 
621
+ return $output;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
622
  }
623
 
624
  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
+ return $captcha;
636
  }
637
 
638
  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; // Kept with CPT update
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() . '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';
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
  $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() . 'links l on (tr.object_id = l.link_id';
22
+
23
+ if ( false == $showinvisible ) {
24
+ $linkcatquery .= ' AND l.link_visible != "N" ';
25
  }
26
 
27
+ if ( !$showuserlinks ) {
28
+ $linkcatquery .= ' AND l.link_description not like \'%LinkLibrary:AwaitingModeration:RemoveTextToApprove%\' ';
29
  }
30
 
31
+ $linkcatquery .= ' ) ';
32
 
33
+ $linkcatquery .= 'WHERE tt.taxonomy = "link_category"';
34
 
35
+ if ( !empty( $categorylist ) ) {
36
+ $linkcatquery .= ' AND t.term_id in ( ' . $categorylist . ' )';
37
  }
38
 
39
+ if ( !empty( $excludecategorylist ) ) {
40
+ $linkcatquery .= ' AND t.term_id not in ( ' . $excludecategorylist . ' )';
41
  }
42
 
43
  if ( $hide_if_empty ) {
44
+ $linkcatquery .= ' AND l.link_name != "" ';
45
  }
46
 
47
  $linkcatquery .= ' ORDER by catletter ASC';
render-link-library-cats-sc.php CHANGED
@@ -16,303 +16,315 @@ require_once plugin_dir_path( __FILE__ ) . 'link-library-defaults.php';
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
- /* 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 */
26
- if ( !empty( $categorylist ) ) {
27
- $categorylistarray = explode( ',', $categorylist );
28
-
29
- if ( true === array_filter( $categorylistarray, 'is_int' ) ) {
30
- return 'List of requested categories is invalid. Please go back to Link Library admin panel to correct.';
31
- }
32
- }
33
-
34
- if ( !empty( $excludecategorylist ) ) {
35
- $excludecategorylistarray = explode( ',', $excludecategorylist );
36
-
37
- if ( true === array_filter( $excludecategorylistarray, 'is_int' ) ) {
38
- return 'List of requested excluded categories is invalid. Please go back to Link Library admin panel to correct.';
39
- }
40
- }
41
-
42
- $output = '';
43
-
44
- $categoryid = '';
45
-
46
- if ( isset($_GET['cat_id'] ) ) {
47
- $categoryid = intval( $_GET['cat_id'] );
48
- } elseif ( isset( $_GET['catname'] ) ) {
49
- $categoryterm = get_term_by( 'name', urldecode( $_GET['catname'] ), 'link_category' );
50
- $categoryid = $categoryterm->term_id;
51
- } elseif ( $showonecatonly ) {
52
- $categoryid = $defaultsinglecat_cpt;
53
- }
54
-
55
- if ( !isset( $_GET['searchll'] ) || true == $showcatonsearchresults ) {
56
- $countcat = 0;
57
-
58
- $order = strtolower( $order );
59
-
60
- $output .= "<!-- Link Library Categories Output -->\n\n";
61
-
62
- if ( $showonecatonly && ( 'AJAX' == $showonecatmode || empty( $showonecatmode ) ) ) {
63
- $nonce = wp_create_nonce( 'link_library_ajax_refresh' );
64
-
65
- $output .= "<SCRIPT LANGUAGE=\"JavaScript\">\n";
66
- $output .= "var ajaxobject;\n";
67
- $output .= "if(typeof showLinkCat" . $settings . " !== 'function'){\n";
68
- $output .= "window.showLinkCat" . $settings . " = function ( _incomingID, _settingsID, _pagenumber ) {\n";
69
- $output .= "if (typeof(ajaxobject) != \"undefined\") { ajaxobject.abort(); }\n";
70
-
71
- $output .= "\tjQuery('#contentLoading" . $settings . "').toggle();" .
72
- "jQuery.ajax( {" .
73
- " type: 'POST', " .
74
- " url: '" . admin_url( 'admin-ajax.php' ) . "', " .
75
- " data: { action: 'link_library_ajax_update', " .
76
- " _ajax_nonce: '" . $nonce . "', " .
77
- " id : _incomingID, " .
78
- " settings : _settingsID, " .
79
- " ajaxupdate : true, " .
80
- " linkresultpage: _pagenumber }, " .
81
- " success: function( data ){ " .
82
- " jQuery('#linklist" . $settings. "').html( data ); " .
83
- " jQuery('#contentLoading" . $settings . "').toggle();\n" .
84
- " } } ); ";
85
- $output .= "}\n";
86
- $output .= "}\n";
87
-
88
- $output .= "</SCRIPT>\n\n";
89
- }
90
-
91
- $currentcatletter = '';
92
-
93
- if ( $cat_letter_filter != 'no' ) {
94
- require_once plugin_dir_path( __FILE__ ) . 'render-link-library-alpha-filter.php';
95
- $result = RenderLinkLibraryAlphaFilter( $LLPluginClass, $generaloptions, $libraryoptions, $settings, 'normal' );
96
-
97
- $currentcatletter = $result['currentcatletter'];
98
-
99
- if ( 'beforecats' == $cat_letter_filter || 'beforecatsandlinks' == $cat_letter_filter ) {
100
- $output .= $result['output'];
101
- }
102
- }
103
-
104
- $link_categories_query_args = array( );
105
-
106
- if ( $hide_if_empty ) {
107
- $link_categories_query_args['hide_empty'] = true;
108
- global $hide_if_empty_filter;
109
- $hide_if_empty_filter = $hide_if_empty_filter;
110
- } else {
111
- $link_categories_query_args['hide_empty'] = false;
112
- }
113
-
114
- if ( !$showuserlinks && !$showinvisible && !$showinvisibleadmin ) {
115
- add_filter( 'get_terms', 'link_library_get_terms_filter_only_publish', 10, 3 );
116
- } elseif ( $showuserlinks && !$showinvisible && !$showinvisibleadmin ) {
117
- add_filter( 'get_terms', 'link_library_get_terms_filter_publish_pending', 10, 3 );
118
- } elseif ( !$showuserlinks && ( $showinvisible || ( $showinvisibleadmin && $linkeditoruser ) ) ) {
119
- add_filter( 'get_terms', 'link_library_get_terms_filter_publish_draft', 10, 3 );
120
- } elseif ( $showuserlinks && ( $showinvisible || ( $showinvisibleadmin && $linkeditoruser ) ) ) {
121
- add_filter( 'get_terms', 'link_library_get_terms_filter_publish_draft_pending', 10, 3 );
122
- }
123
-
124
- if ( ( !empty( $categorylist_cpt ) || isset( $_GET['cat_id'] ) ) && empty( $singlelinkid ) ) {
125
- $link_categories_query_args['include'] = explode( ',', $categorylist_cpt );
126
- }
127
-
128
- if ( !empty( $excludecategorylist_cpt ) && empty( $singlelinkid ) ) {
129
- $link_categories_query_args['exclude'] = explode( ',', $excludecategorylist_cpt );
130
- }
131
-
132
- if ( ( !empty( $categorysluglist ) || isset( $_GET['cat'] ) ) && empty( $singlelinkid ) ) {
133
- $link_categories_query_args['slug'] = explode( ',', $categorysluglist );
134
- }
135
-
136
- if ( isset( $categoryname ) && !empty( $categoryname ) && 'HTMLGETPERM' == $showonecatmode && empty( $singlelinkid ) ) {
137
- $link_categories_query_args['slug'] = $categoryname;
138
- }
139
-
140
- if ( ( !empty( $categorynamelist ) || isset( $_GET['catname'] ) ) && empty( $singlelinkid ) ) {
141
- $link_categories_query_args['name'] = explode( ',', urldecode( $categorynamelist ) );
142
- }
143
-
144
- $validdirections = array( 'ASC', 'DESC' );
145
-
146
- if ( 'name' == $order ) {
147
- $link_categories_query_args['orderby'] = 'name';
148
- $link_categories_query_args['order'] = in_array( $direction, $validdirections ) ? $direction : 'ASC';
149
- } elseif ( 'id' == $order ) {
150
- $link_categories_query_args['orderby'] = 'id';
151
- $link_categories_query_args['order'] = in_array( $direction, $validdirections ) ? $direction : 'ASC';
152
- }
153
-
154
- $link_categories = get_terms( 'link_library_category', $link_categories_query_args );
155
- remove_filter( 'get_terms', 'link_library_get_terms_filter' );
156
-
157
- if ( 'catlist' == $order ) {
158
- $temp_link_categories = $link_categories;
159
- $link_categories = array();
160
- foreach ( $link_categories_query_args['include'] as $sort_link_category_id ) {
161
- foreach ( $temp_link_categories as $temp_link_cat ) {
162
- if ( $sort_link_category_id == $temp_link_cat->term_id ) {
163
- $link_categories[] = $temp_link_cat;
164
- continue;
165
- }
166
- }
167
- }
168
- }
169
-
170
- if ( $debugmode ) {
171
- $output .= "\n<!-- Category Query: " . print_r( $link_categories_query_args, TRUE ) . "-->\n\n";
172
- $output .= "\n<!-- Category Results: " . print_r( $link_categories, TRUE ) . "-->\n\n";
173
- }
174
-
175
- // Display each category
176
- if ( $link_categories ) {
177
-
178
- $output .= '<div id="linktable" class="linktable">';
179
-
180
- if ( 'table' == $flatlist ) {
181
- $output .= "<table width=\"" . $table_width . "%\">\n";
182
- } elseif ( 'unordered' == $flatlist ) {
183
- $output .= "<ul class='menu'>\n";
184
- } elseif ( 'dropdown' == $flatlist || 'dropdowndirect' == $flatlist ) {
185
- $output .= "<form name='catselect'><select ";
186
- if ( 'dropdowndirect' == $flatlist ) {
187
- $output .= "onchange='showcategory()' ";
188
- }
189
- $output .= "name='catdropdown' class='catdropdown'>";
190
- }
191
-
192
- foreach ( $link_categories as $catname ) {
193
-
194
- if ( !empty( $currentcatletter ) && $cat_letter_filter != 'no' ) {
195
- if ( substr( $catname->name, 0, 1) != $currentcatletter ) {
196
- continue;
197
- }
198
- }
199
-
200
- $catfront = '';
201
- $cattext = '';
202
- $catitem = '';
203
-
204
- $link_query_args = array( 'post_type' => 'link_library_links' );
205
- $link_query_args['post_status'] = array( 'publish' );
206
-
207
- $link_query_args['tax_query'][] =
208
- array(
209
- 'taxonomy' => 'link_library_category',
210
- 'field' => 'term_id',
211
- 'terms' => $catname->term_id,
212
- 'include_children' => false
213
- );
214
-
215
- if ( $showuserlinks ) {
216
- $link_query_args['post_status'][] = 'pending';
217
- }
218
-
219
- if ( $showinvisible || ( $showinvisibleadmin && $linkeditoruser ) ) {
220
- $link_query_args['post_status'][] = 'draft';
221
- }
222
-
223
- if ( isset( $_GET['searchll'] ) ) {
224
- $searchstring = $_GET['searchll'];
225
- if ( !empty( $searchstring ) ) {
226
- $link_query_args['s'] = $searchstring;
227
- }
228
- }
229
-
230
- if ( $current_user_links ) {
231
- $user_data = wp_get_current_user();
232
- $name_field_value = $user_data->display_name;
233
-
234
- $link_query_args['meta_query'][] =
235
- array(
236
- 'key' => 'link_submitter',
237
- 'value' => $name_field_value,
238
- 'compare' => '=',
239
- );
240
- if ( sizeof( $link_query_args['meta_query'] > 1 ) ) {
241
- $link_query_args['meta_query']['relation'] = 'AND';
242
- }
243
- }
244
-
245
- $the_link_query = new WP_Query( $link_query_args );
246
- $linkcount = $the_link_query->post_count;
247
-
248
- // Display the category name
249
- $countcat += 1;
250
- if ( $num_columns > 0 && 'table' == $flatlist && ( ( 1 == $countcat % $num_columns ) || ( 1 == $num_columns ) ) ) {
251
- $output .= "<tr>\n";
252
- }
253
-
254
- if ( 'table' == $flatlist ) {
255
- $catfront = "\t<td>";
256
- } elseif ( 'unordered' == $flatlist ) {
257
- $catfront = "\t<li>";
258
- } elseif ( ( 'dropdown' == $flatlist || 'dropdowndirect' == $flatlist ) && $linkcount > 0 ) {
259
- $catfront = "\t<option ";
260
- if ( !empty( $categoryid ) && $categoryid == $catname->term_id ) {
261
- $catfront .= 'selected="selected" ';
262
- }
263
- $catfront .= 'value="';
264
- }
265
-
266
- if ( $linkcount > 0 ) {
267
- if ( $showonecatonly ) {
268
- if ( 'AJAX' == $showonecatmode || empty( $showonecatmode ) ) {
269
- if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
270
- $cattext = "<a href='#' onClick=\"showLinkCat" . $settings . "('" . $catname->term_id. "', '" . $settings . "', 1);return false;\" >";
271
- } elseif ( 'dropdown' == $flatlist || 'dropdowndirect' == $flatlist ) {
272
- $cattext = $catname->term_id;
273
- }
274
- } elseif ( 'HTMLGET' == $showonecatmode ) {
275
- if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
276
- $cattext = "<a href='";
277
- }
278
-
279
- if ( !empty( $cattargetaddress ) && strpos( $cattargetaddress, '?' ) != false ) {
280
- $cattext .= $cattargetaddress . '&cat_id=';
281
- } elseif ( !empty( $cattargetaddress ) && strpos( $cattargetaddress, '?' ) == false ) {
282
- $cattext .= $cattargetaddress . '?cat_id=';
283
- } elseif ( empty( $cattargetaddress ) ) {
284
- $cattext .= '?cat_id=';
285
- }
286
-
287
- $cattext .= $catname->term_id;
288
-
289
- if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
290
- $cattext .= "'>";
291
- }
292
- } elseif ( 'HTMLGETSLUG' == $showonecatmode ) {
293
- if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
294
- $cattext = "<a href='";
295
- }
296
-
297
- if ( !empty( $cattargetaddress ) && strpos( $cattargetaddress, '?' ) != false ) {
298
- $cattext .= $cattargetaddress . '&cat=';
299
- } elseif ( !empty( $cattargetaddress ) && strpos( $cattargetaddress, '?' ) == false ) {
300
- $cattext .= $cattargetaddress . '?cat=';
301
- } elseif ( empty( $cattargetaddress ) ) {
302
- $cattext .= '?cat=';
303
- }
304
-
305
- $cattext .= $catname->slug;
306
-
307
- if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
308
- $cattext .= "'>";
309
- }
310
- } elseif ( 'HTMLGETCATNAME' == $showonecatmode ) {
311
- if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
312
- $cattext = "<a href='";
313
- }
314
-
315
- /* if ( !empty( $cattargetaddress ) && strpos( $cattargetaddress, '?' ) != false ) {
 
 
 
 
 
 
 
 
 
 
 
 
316
  $cattext .= $cattargetaddress . '&catname=';
317
  } elseif ( !empty( $cattargetaddress ) && strpos( $cattargetaddress, '?' ) == false ) {
318
  $cattext .= $cattargetaddress . '?catname=';
@@ -320,175 +332,177 @@ function RenderLinkLibraryCategories( $LLPluginClass, $generaloptions, $libraryo
320
  $cattext .= '?catname=';
321
  } */
322
 
323
- if ( !empty( $_GET ) ) {
324
- $get_array = $_GET;
325
- } else {
326
- $get_array = array();
327
- }
328
-
329
- $get_array['catname'] = urlencode( $catname->name );
330
- $get_query = add_query_arg( $get_array, $cattargetaddress );
331
-
332
- $cattext .= $get_query;
333
-
334
- if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
335
- $cattext .= "'>";
336
- }
337
- } elseif ( 'HTMLGETPERM' == $showonecatmode ) {
338
- if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
339
- $cattext = "<a href='";
340
- }
341
-
342
- $cattext .= '/' . $rewritepage . '/' . $catname->slug;
343
-
344
- if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
345
- $cattext .= "'>";
346
- }
347
- }
348
- } else if ( $catanchor ) {
349
- if ( !$pagination ) {
350
- if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
351
- $cattext = '<a href="';
352
- }
353
-
354
- $cattext .= '#' . $catname->slug;
355
-
356
- if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
357
- $cattext .= '">';
358
- }
359
- } elseif ( $pagination ) {
360
- if ( 0 == $linksperpage || empty( $linksperpage ) ) {
361
- $linksperpage = 5;
362
- }
363
-
364
- $pageposition = ( $linkcount + 1 ) / $linksperpage;
365
- $ceilpageposition = ceil( $pageposition );
366
- if ( 0 == $ceilpageposition && !isset( $_GET['linkresultpage'] ) ) {
367
- if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
368
- $cattext = '<a href="';
369
- }
370
-
371
- $cattext .= get_permalink() . '#' . $catname->slug;
372
-
373
- if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
374
- $cattext .= '">';
375
- }
376
- } else {
377
- if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
378
- $cattext = '<a href="';
379
- }
380
-
381
- $cattext .= '?linkresultpage=' . ( $ceilpageposition == 0 ? 1 : $ceilpageposition ) . '#' . $catname->slug;
382
-
383
- if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
384
- $cattext .= '">';
385
- }
386
- }
387
- }
388
- } else {
389
- $cattext = '';
390
- }
391
-
392
- if ( 'dropdown' == $flatlist || 'dropdowndirect' == $flatlist ) {
393
- $cattext .= '">';
394
- }
395
- } else {
396
- $cattext .= '<span class="emptycat">';
397
- }
398
-
399
- if ( 'right' == $catlistdescpos || empty( $catlistdescpos ) ) {
400
- $catitem .= '<div class="linkcatname">' . $catname->name;
401
- if ( $showcatlinkcount ) {
402
- $catitem .= '<span class="linkcatcount"> (' . $linkcount . ')</span>';
403
- }
404
- $catitem .= '</div>';
405
- }
406
-
407
- if ( $showcategorydescheaders ) {
408
- $catname->description = esc_html( $catname->description );
409
- $catname->description = str_replace( '[', '<', $catname->description );
410
- $catname->description = str_replace( ']', '>', $catname->description );
411
- $catname->description = str_replace( "&quot;", '"', $catname->description );
412
- $catitem .= '<span class="linkcatdesc">' . $catname->description . '</span>';
413
- }
414
-
415
- if ( 'left' == $catlistdescpos ) {
416
- $catitem .= '<div class="linkcatname">' . $catname->name;
417
- if ( $showcatlinkcount ) {
418
- $catitem .= '<span class="linkcatcount"> (' . $catname->linkcount . ')</span>';
419
- }
420
- $catitem .= '</div>';
421
- }
422
-
423
- if ( $linkcount > 0 ) {
424
- if ( ( $catanchor || $showonecatonly ) && 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
425
- $catitem .= '</a>';
426
- } else {
427
- $catitem .= '</span>';
428
- }
429
- }
430
-
431
- $output .= ( $catfront . $cattext . $catitem );
432
-
433
- if ( 'table' == $flatlist ) {
434
- $catterminator = "</td>\n";
435
- } elseif ( 'unordered' == $flatlist ) {
436
- $catterminator = "</li>\n";
437
- } elseif ( 'dropdown' == $flatlist || 'dropdowndirect' == $flatlist ) {
438
- $catterminator = "</option>\n";
439
- }
440
-
441
- $output .= ( $catterminator );
442
-
443
- if ( $num_columns > 0 && 'table' == $flatlist and ( 0 == $countcat % $num_columns ) ) {
444
- $output .= "</tr>\n";
445
- }
446
- }
447
-
448
- if ( $num_columns > 0 && 'table' == $flatlist and ( 3 == $countcat % $num_columns ) ) {
449
- $output .= "</tr>\n";
450
- }
451
-
452
- if ( 'table' == $flatlist && $link_categories ) {
453
- $output .= "</table>\n";
454
- } elseif ( 'unordered' == $flatlist && $link_categories ) {
455
- $output .= "</ul>\n";
456
- } elseif ( ( 'dropdown' == $flatlist || 'dropdowndirect' == $flatlist ) && $link_categories ) {
457
- $output .= "</select>\n";
458
- if ( 'dropdown' == $flatlist ) {
459
- $output .= "<button type='button' onclick='showcategory()'>" . __('Go!', 'link-library') . "</button>";
460
- }
461
- $output .= '</form>';
462
- }
463
-
464
- $output .= "</div>\n";
465
-
466
- if ( $showonecatonly && ( 'AJAX' == $showonecatmode || empty( $showonecatmode ) ) ) {
467
- if ( empty( $loadingicon ) ) {
468
- $loadingicon = '/icons/Ajax-loader.gif';
469
- }
470
-
471
- $output .= "<div class='contentLoading' id='contentLoading" . $settings . "' style='display: none;'><img src='" . plugins_url( $loadingicon, __FILE__ ) . "' alt='Loading data, please wait...'></div>\n";
472
- }
473
-
474
- if ( 'dropdown' == $flatlist || 'dropdowndirect' == $flatlist ) {
475
- $output .= "<SCRIPT TYPE='text/javascript'>\n";
476
- $output .= "\tfunction showcategory(){\n";
477
-
478
- if ( $showonecatonly && ( 'AJAX' == $showonecatmode || empty( $showonecatmode ) ) ) {
479
- $output .= 'catidvar = document.catselect.catdropdown.options[document.catselect.catdropdown.selectedIndex].value;';
480
- $output .= "showLinkCat" . $settings . "(catidvar, '" . $settings . "', 1);return false; }";
481
- } else {
482
- $output .= "\t\tlocation=\n";
483
- $output .= "document.catselect.catdropdown.options[document.catselect.catdropdown.selectedIndex].value }\n";
484
- }
485
- $output .= "</SCRIPT>\n";
486
- }
487
- } else {
488
- $output .= '<div>' . __('No categories found', 'link-library') . '.</div>';
489
- }
490
-
491
- $output .= "\n<!-- End of Link Library Categories Output -->\n\n";
492
- }
493
- return $output;
 
 
494
  }
16
 
17
  function RenderLinkLibraryCategories( $LLPluginClass, $generaloptions, $libraryoptions, $settings ) {
18
 
19
+ global $wpdb;
20
+
21
+ $generaloptions = wp_parse_args( $generaloptions, ll_reset_gen_settings( 'return' ) );
22
+ extract( $generaloptions );
23
+
24
+ $libraryoptions = wp_parse_args( $libraryoptions, ll_reset_options( 1, 'list', 'return' ) );
25
+ extract( $libraryoptions );
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;
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
+ // Handle link category sorting
94
+ $direction = 'ASC';
95
+ if ( '_' == substr( $order, 0, 1 ) ) {
96
+ $direction = 'DESC';
97
+ $order = substr( $order, 1 );
98
+ }
99
+
100
+ $currentcatletter = '';
101
+
102
+ if ( $cat_letter_filter != 'no' ) {
103
+ require_once plugin_dir_path( __FILE__ ) . 'render-link-library-alpha-filter.php';
104
+ $result = RenderLinkLibraryAlphaFilter( $LLPluginClass, $generaloptions, $libraryoptions, $settings, 'normal' );
105
+
106
+ $currentcatletter = $result['currentcatletter'];
107
+
108
+ if ( 'beforecats' == $cat_letter_filter || 'beforecatsandlinks' == $cat_letter_filter ) {
109
+ $output .= $result['output'];
110
+ }
111
+ }
112
+
113
+ $searchterms = '';
114
+
115
+ if ( isset($_GET['searchll'] ) && !empty( $_GET['searchll'] ) && empty( $singlelinkid ) ) {
116
+ $searchterms = array();
117
+ $searchstring = $_GET['searchll'];
118
+
119
+ $offset = 0;
120
+ while ( false !== strpos( $searchstring, '"', $offset ) ) {
121
+ if ( 0 == $offset ) {
122
+ $offset = strpos( $searchstring, '"' );
123
+ } else {
124
+ $endpos = strpos( $searchstring, '"', $offset + 1 );
125
+ $searchterms[] = substr( $searchstring, $offset + 1, $endpos - $offset - 2 );
126
+ $strlength = ( $endpos + 1 ) - ( $offset + 1 );
127
+ $searchstring = substr_replace( $searchstring, '', $offset - 1, $endpos + 2 - ( $offset ) );
128
+ $offset = 0;
129
+ }
130
+ }
131
+
132
+ if ( ! empty( $searchstring ) ) {
133
+ $searchterms = array_merge( $searchterms, explode( " ", $searchstring ) );
134
+ }
135
+
136
+ if ( !empty( $searchterms ) ) {
137
+ $mode = 'search';
138
+ }
139
+ }
140
+
141
+ $linkcatquery = 'SELECT count(l.link_name) as linkcount, ';
142
+ $linkcatquery .= 't.name, t.term_id, t.slug as category_nicename, tt.description as category_description ';
143
+ $linkcatquery .= 'FROM ' . $LLPluginClass->db_prefix() . 'terms t LEFT JOIN ' . $LLPluginClass->db_prefix(). 'term_taxonomy tt ON (t.term_id = tt.term_id)';
144
+ $linkcatquery .= ' LEFT JOIN ' . $LLPluginClass->db_prefix() . 'term_relationships tr ON (tt.term_taxonomy_id = tr.term_taxonomy_id) ';
145
+ $linkcatquery .= ' LEFT JOIN ' . $LLPluginClass->db_prefix() . 'links l on (tr.object_id = l.link_id';
146
+
147
+ if ( false == $showinvisible ) {
148
+ $linkcatquery .= ' AND l.link_visible != "N" ';
149
+ }
150
+
151
+ if ( !$showuserlinks ) {
152
+ $linkcatquery .= ' AND l.link_description not like \'%LinkLibrary:AwaitingModeration:RemoveTextToApprove%\' ';
153
+ }
154
+
155
+ if ( !empty( $searchterms ) ) {
156
+ $termnb = 1;
157
+
158
+ foreach( $searchterms as $searchterm ) {
159
+ if ( !empty( $searchterm ) ) {
160
+ $searchterm = str_replace( '--', '', $searchterm );
161
+ $searchterm = str_replace( ';', '', $searchterm );
162
+ $searchterm = esc_html( stripslashes( $searchterm ) );
163
+ if ( true == $searchterm ) {
164
+ if ( 1 == $termnb ) {
165
+ $linkcatquery .= ' AND (link_name like "%' . $searchterm . '%" ';
166
+ $termnb++;
167
+ } else {
168
+ $linkcatquery .= ' OR link_name like "%' . $searchterm . '%" ';
169
+ }
170
+
171
+ if ( false == $hidecategorynames ) {
172
+ $linkcatquery .= ' OR name like "%' . $searchterm . '%" ';
173
+ }
174
+
175
+ if ( $shownotes ) {
176
+ $linkcatquery .= ' OR link_notes like "%' . $searchterm . '%" ';
177
+ }
178
+
179
+ if ( $showdescription ) {
180
+ $linkcatquery .= ' OR link_description like "%' . $searchterm . '%" ';
181
+ }
182
+
183
+ if ( $showlargedescription ) {
184
+ $linkcatquery .= ' OR link_textfield like "%' . $searchterm . '%" ';
185
+ }
186
+ }
187
+ }
188
+ }
189
+
190
+ $linkcatquery .= ')';
191
+ }
192
+
193
+ $linkcatquery .= ' ) ';
194
+
195
+ $linkcatquery .= 'WHERE tt.taxonomy = "link_category"';
196
+
197
+ if ( !empty( $currentcatletter ) ) {
198
+ $linkcatquery .= ' AND substring(t.name, 1, 1) = "' . $currentcatletter . '"';
199
+ }
200
+
201
+ if ( !empty( $categorylist ) ) {
202
+ $linkcatquery .= ' AND t.term_id in ( ' . $categorylist . ' )';
203
+ }
204
+
205
+ if ( !empty( $excludecategorylist ) ) {
206
+ $linkcatquery .= ' AND t.term_id not in ( ' . $excludecategorylist . ' )';
207
+ }
208
+
209
+ if ( $hide_if_empty ) {
210
+ $linkcatquery .= ' AND l.link_name != "" ';
211
+ }
212
+
213
+ $linkcatquery .= ' GROUP BY t.name ';
214
+
215
+ $validdirections = array( 'ASC', 'DESC' );
216
+
217
+ if ( 'name' == $order ) {
218
+ $linkcatquery .= ' ORDER by t.name ' . ( in_array( $direction, $validdirections ) ? $direction : 'ASC' );
219
+ } elseif ( 'id' == $order ) {
220
+ $linkcatquery .= ' ORDER by t.term_id ' . ( in_array( $direction, $validdirections ) ? $direction : 'ASC' );
221
+ } elseif ( 'order' == $order ) {
222
+ $linkcatquery .= ' ORDER by t.term_order ' . ( in_array( $direction, $validdirections ) ? $direction : 'ASC' );
223
+ } elseif ( 'catlist' == $order ) {
224
+ $linkcatquery .= ' ORDER by FIELD(t.term_id, ' . $categorylist . ' ) ';
225
+ }
226
+
227
+ $catnames = $wpdb->get_results( $linkcatquery );
228
+
229
+ if ( $debugmode ) {
230
+ $output .= "\n<!-- Category Query: " . print_r( $linkcatquery, TRUE ) . "-->\n\n";
231
+ $output .= "\n<!-- Category Results: " . print_r( $catnames, TRUE ) . "-->\n\n";
232
+ }
233
+
234
+ // Display each category
235
+
236
+ if ( $catnames ) {
237
+
238
+ $output .= '<div id="linktable" class="linktable">';
239
+
240
+ if ( 'table' == $flatlist ) {
241
+ $output .= "<table width=\"" . $table_width . "%\">\n";
242
+ } elseif ( 'unordered' == $flatlist ) {
243
+ $output .= "<ul class='menu'>\n";
244
+ } elseif ( 'dropdown' == $flatlist || 'dropdowndirect' == $flatlist ) {
245
+ $output .= "<form name='catselect'><select ";
246
+ if ( 'dropdowndirect' == $flatlist ) {
247
+ $output .= "onchange='showcategory()' ";
248
+ }
249
+ $output .= "name='catdropdown' class='catdropdown'>";
250
+ }
251
+
252
+ $linkcount = 0;
253
+
254
+ foreach ( (array) $catnames as $catname ) {
255
+
256
+ $catfront = '';
257
+ $cattext = '';
258
+ $catitem = '';
259
+
260
+ // Display the category name
261
+ $countcat += 1;
262
+ if ( $num_columns > 0 && 'table' == $flatlist && ( ( 1 == $countcat % $num_columns ) || ( 1 == $num_columns ) ) ) {
263
+ $output .= "<tr>\n";
264
+ }
265
+
266
+ if ( 'table' == $flatlist ) {
267
+ $catfront = "\t<td>";
268
+ } elseif ( 'unordered' == $flatlist ) {
269
+ $catfront = "\t<li>";
270
+ } elseif ( ( 'dropdown' == $flatlist || 'dropdowndirect' == $flatlist ) && $catname->linkcount > 0 ) {
271
+ $catfront = "\t<option ";
272
+ if ( !empty( $categoryid ) && $categoryid == $catname->term_id ) {
273
+ $catfront .= 'selected="selected" ';
274
+ }
275
+ $catfront .= 'value="';
276
+ }
277
+
278
+ if ( $catname->linkcount > 0 ) {
279
+ if ( $showonecatonly ) {
280
+ if ( 'AJAX' == $showonecatmode || empty( $showonecatmode ) ) {
281
+ if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
282
+ $cattext = "<a href='#' onClick=\"showLinkCat" . $settings . "('" . $catname->term_id. "', '" . $settings . "', 1);return false;\" >";
283
+ } elseif ( 'dropdown' == $flatlist || 'dropdowndirect' == $flatlist ) {
284
+ $cattext = $catname->term_id;
285
+ }
286
+ } elseif ( 'HTMLGET' == $showonecatmode ) {
287
+ if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
288
+ $cattext = "<a href='";
289
+ }
290
+
291
+ if ( !empty( $cattargetaddress ) && strpos( $cattargetaddress, '?' ) != false ) {
292
+ $cattext .= $cattargetaddress . '&cat_id=';
293
+ } elseif ( !empty( $cattargetaddress ) && strpos( $cattargetaddress, '?' ) == false ) {
294
+ $cattext .= $cattargetaddress . '?cat_id=';
295
+ } elseif ( empty( $cattargetaddress ) ) {
296
+ $cattext .= '?cat_id=';
297
+ }
298
+
299
+ $cattext .= $catname->term_id;
300
+
301
+ if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
302
+ $cattext .= "'>";
303
+ }
304
+ } elseif ( 'HTMLGETSLUG' == $showonecatmode ) {
305
+ if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
306
+ $cattext = "<a href='";
307
+ }
308
+
309
+ if ( !empty( $cattargetaddress ) && strpos( $cattargetaddress, '?' ) != false ) {
310
+ $cattext .= $cattargetaddress . '&cat=';
311
+ } elseif ( !empty( $cattargetaddress ) && strpos( $cattargetaddress, '?' ) == false ) {
312
+ $cattext .= $cattargetaddress . '?cat=';
313
+ } elseif ( empty( $cattargetaddress ) ) {
314
+ $cattext .= '?cat=';
315
+ }
316
+
317
+ $cattext .= $catname->category_nicename;
318
+
319
+ if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
320
+ $cattext .= "'>";
321
+ }
322
+ } elseif ( 'HTMLGETCATNAME' == $showonecatmode ) {
323
+ if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
324
+ $cattext = "<a href='";
325
+ }
326
+
327
+ /* if ( !empty( $cattargetaddress ) && strpos( $cattargetaddress, '?' ) != false ) {
328
  $cattext .= $cattargetaddress . '&catname=';
329
  } elseif ( !empty( $cattargetaddress ) && strpos( $cattargetaddress, '?' ) == false ) {
330
  $cattext .= $cattargetaddress . '?catname=';
332
  $cattext .= '?catname=';
333
  } */
334
 
335
+ if ( !empty( $_GET ) ) {
336
+ $get_array = $_GET;
337
+ } else {
338
+ $get_array = array();
339
+ }
340
+
341
+ $get_array['catname'] = urlencode( $catname->name );
342
+ $get_query = add_query_arg( $get_array, $cattargetaddress );
343
+
344
+ $cattext .= $get_query;
345
+
346
+ if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
347
+ $cattext .= "'>";
348
+ }
349
+ } elseif ( 'HTMLGETPERM' == $showonecatmode ) {
350
+ if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
351
+ $cattext = "<a href='";
352
+ }
353
+
354
+ $cattext .= '/' . $rewritepage . '/' . $catname->category_nicename;
355
+
356
+ if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
357
+ $cattext .= "'>";
358
+ }
359
+ }
360
+ } else if ( $catanchor ) {
361
+ if ( !$pagination ) {
362
+ if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
363
+ $cattext = '<a href="';
364
+ }
365
+
366
+ $cattext .= '#' . $catname->category_nicename;
367
+
368
+ if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
369
+ $cattext .= '">';
370
+ }
371
+ } elseif ( $pagination ) {
372
+ if ( 0 == $linksperpage || empty( $linksperpage ) ) {
373
+ $linksperpage = 5;
374
+ }
375
+
376
+ $pageposition = ( $linkcount + 1 ) / $linksperpage;
377
+ $ceilpageposition = ceil( $pageposition );
378
+ if ( 0 == $ceilpageposition && !isset( $_GET['linkresultpage'] ) ) {
379
+ if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
380
+ $cattext = '<a href="';
381
+ }
382
+
383
+ $cattext .= get_permalink() . '#' . $catname->category_nicename;
384
+
385
+ if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
386
+ $cattext .= '">';
387
+ }
388
+ } else {
389
+ if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
390
+ $cattext = '<a href="';
391
+ }
392
+
393
+ $cattext .= '?linkresultpage=' . ( $ceilpageposition == 0 ? 1 : $ceilpageposition ) . '#' . $catname->category_nicename;
394
+
395
+ if ( 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
396
+ $cattext .= '">';
397
+ }
398
+ }
399
+
400
+ $linkcount = $linkcount + $catname->linkcount;
401
+ }
402
+ } else {
403
+ $cattext = '';
404
+ }
405
+
406
+ if ( 'dropdown' == $flatlist || 'dropdowndirect' == $flatlist ) {
407
+ $cattext .= '">';
408
+ }
409
+ } else {
410
+ $cattext .= '<span class="emptycat">';
411
+ }
412
+
413
+ if ( 'right' == $catlistdescpos || empty( $catlistdescpos ) ) {
414
+ $catitem .= '<div class="linkcatname">' . $catname->name;
415
+ if ($showcatlinkcount) {
416
+ $catitem .= '<span class="linkcatcount"> (' . $catname->linkcount . ')</span>';
417
+ }
418
+ $catitem .= '</div>';
419
+ }
420
+
421
+ if ( $showcategorydescheaders ) {
422
+ $catname->category_description = esc_html( $catname->category_description );
423
+ $catname->category_description = str_replace( '[', '<', $catname->category_description );
424
+ $catname->category_description = str_replace( ']', '>', $catname->category_description );
425
+ $catname->category_description = str_replace( "&quot;", '"', $catname->category_description );
426
+ $catitem .= '<span class="linkcatdesc">' . $catname->category_description . '</span>';
427
+ }
428
+
429
+ if ( 'left' == $catlistdescpos ) {
430
+ $catitem .= '<div class="linkcatname">' . $catname->name;
431
+ if ( $showcatlinkcount ) {
432
+ $catitem .= '<span class="linkcatcount"> (' . $catname->linkcount . ')</span>';
433
+ }
434
+ $catitem .= '</div>';
435
+ }
436
+
437
+ if ( $catname->linkcount > 0 ) {
438
+ if ( ( $catanchor || $showonecatonly ) && 'dropdown' != $flatlist && 'dropdowndirect' != $flatlist ) {
439
+ $catitem .= '</a>';
440
+ }
441
+ } else {
442
+ $catitem .= '</span>';
443
+ }
444
+
445
+ $output .= ( $catfront . $cattext . $catitem );
446
+
447
+ if ( 'table' == $flatlist ) {
448
+ $catterminator = "</td>\n";
449
+ } elseif ( 'unordered' == $flatlist ) {
450
+ $catterminator = "</li>\n";
451
+ } elseif ( 'dropdown' == $flatlist || 'dropdowndirect' == $flatlist ) {
452
+ $catterminator = "</option>\n";
453
+ }
454
+
455
+ $output .= ( $catterminator );
456
+
457
+ if ( $num_columns > 0 && 'table' == $flatlist and ( 0 == $countcat % $num_columns ) ) {
458
+ $output .= "</tr>\n";
459
+ }
460
+ }
461
+
462
+ if ( $num_columns > 0 && 'table' == $flatlist and ( 3 == $countcat % $num_columns ) ) {
463
+ $output .= "</tr>\n";
464
+ }
465
+
466
+ if ( 'table' == $flatlist && $catnames ) {
467
+ $output .= "</table>\n";
468
+ } elseif ( 'unordered' == $flatlist && $catnames ) {
469
+ $output .= "</ul>\n";
470
+ } elseif ( ( 'dropdown' == $flatlist || 'dropdowndirect' == $flatlist ) && $catnames ) {
471
+ $output .= "</select>\n";
472
+ if ( 'dropdown' == $flatlist ) {
473
+ $output .= "<button type='button' onclick='showcategory()'>" . __('Go!', 'link-library') . "</button>";
474
+ }
475
+ $output .= '</form>';
476
+ }
477
+
478
+ $output .= "</div>\n";
479
+
480
+ if ( $showonecatonly && ( 'AJAX' == $showonecatmode || empty( $showonecatmode ) ) ) {
481
+ if ( empty( $loadingicon ) ) {
482
+ $loadingicon = '/icons/Ajax-loader.gif';
483
+ }
484
+
485
+ $output .= "<div class='contentLoading' id='contentLoading" . $settings . "' style='display: none;'><img src='" . plugins_url( $loadingicon, __FILE__ ) . "' alt='Loading data, please wait...'></div>\n";
486
+ }
487
+
488
+ if ( 'dropdown' == $flatlist || 'dropdowndirect' == $flatlist ) {
489
+ $output .= "<SCRIPT TYPE='text/javascript'>\n";
490
+ $output .= "\tfunction showcategory(){\n";
491
+
492
+ if ( $showonecatonly && ( 'AJAX' == $showonecatmode || empty( $showonecatmode ) ) ) {
493
+ $output .= 'catidvar = document.catselect.catdropdown.options[document.catselect.catdropdown.selectedIndex].value;';
494
+ $output .= "showLinkCat" . $settings . "(catidvar, '" . $settings . "', 1);return false; }";
495
+ } else {
496
+ $output .= "\t\tlocation=\n";
497
+ $output .= "document.catselect.catdropdown.options[document.catselect.catdropdown.selectedIndex].value }\n";
498
+ }
499
+ $output .= "</SCRIPT>\n";
500
+ }
501
+ } else {
502
+ $output .= '<div>' . __('No categories found', 'link-library') . '.</div>';
503
+ }
504
+
505
+ $output .= "\n<!-- End of Link Library Categories Output -->\n\n";
506
+ }
507
+ return $output;
508
  }
render-link-library-sc.php CHANGED
@@ -24,62 +24,6 @@ function link_library_highlight_phrase( $str, $phrase, $tag_open = '<strong>', $
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,7 +40,7 @@ function link_library_display_pagination( $previouspagenumber, $nextpagenumber,
96
  }
97
 
98
  if ( 1 < $numberofpages ) {
99
- $paginationoutput = '<div class="pageselector"><!-- Div Pagination -->';
100
 
101
  if ( 1 != $pagenumber ) {
102
  $paginationoutput .= '<span class="previousnextactive">';
@@ -105,17 +49,16 @@ function link_library_display_pagination( $previouspagenumber, $nextpagenumber,
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,9 +96,9 @@ function link_library_display_pagination( $previouspagenumber, $nextpagenumber,
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,16 +148,16 @@ function link_library_display_pagination( $previouspagenumber, $nextpagenumber,
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,7 +177,7 @@ function link_library_display_pagination( $previouspagenumber, $nextpagenumber,
234
  $paginationoutput .= '<span class="previousnextinactive">' . __('Next', 'link-library') . '</span>';
235
  }
236
 
237
- $paginationoutput .= '</div><!-- Div Pagination -->';
238
  }
239
 
240
  if ( 'AJAX' == $showonecatmode ) {
@@ -247,19 +190,19 @@ function link_library_display_pagination( $previouspagenumber, $nextpagenumber,
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,11 +223,11 @@ function link_library_display_pagination( $previouspagenumber, $nextpagenumber,
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 ) {
284
 
 
285
  $showonecatonly = '';
286
  $showonecatmode = '';
287
- $AJAXcatid = '';
288
 
289
  $generaloptions = wp_parse_args( $generaloptions, ll_reset_gen_settings( 'return' ) );
290
  extract( $generaloptions );
@@ -292,47 +235,17 @@ function RenderLinkLibrary( $LLPluginClass, $generaloptions, $libraryoptions, $s
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.';
@@ -343,38 +256,23 @@ function RenderLinkLibrary( $LLPluginClass, $generaloptions, $libraryoptions, $s
343
 
344
  $linkeditoruser = current_user_can( 'manage_links' );
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
  $categoryname = '';
354
  $mode = 'normal';
355
 
356
- $AJAXnocatset = false;
357
  if ( $showonecatonly && 'AJAX' == $showonecatmode && isset( $AJAXcatid ) && empty( $AJAXcatid ) ) {
358
  $AJAXnocatset = true;
359
- }
360
-
361
- $GETnocatset = false;
362
- if ( $showonecatonly && ( 'HTMLGET' == $showonecatmode || 'HTMLGETSLUG' == $showonecatmode || 'HTMLGETCATNAME' == $showonecatmode ) ) {
363
- if ( 'HTMLGET' == $showonecatmode && ( !isset( $_GET['cat_id'] ) || ( isset( $_GET['cat_id'] ) && empty( $_GET['cat_id'] ) ) ) ) {
364
- $GETnocatset = true;
365
- } elseif ( 'HTMLGETSLUG' == $showonecatmode && ( !isset( $_GET['cat'] ) || ( isset( $_GET['cat'] ) && empty( $_GET['cat'] ) ) ) ) {
366
- $GETnocatset = true;
367
- } elseif ( 'HTMLGETCATNAME' == $showonecatmode && ( !isset( $_GET['catname'] ) || ( isset( $_GET['catname'] ) && empty( $_GET['catname'] ) ) ) ) {
368
- $GETnocatset = true;
369
- }
370
-
371
  }
372
 
373
  if ( $showonecatonly && 'AJAX' == $showonecatmode && isset( $AJAXcatid ) && !empty( $AJAXcatid ) && ( !isset( $_GET['searchll'] ) || empty( $_GET['searchll'] ) ) ) {
374
- $categorylist_cpt = $AJAXcatid;
375
  } elseif ($showonecatonly && 'HTMLGET' == $showonecatmode && isset( $_GET['cat_id'] ) && ( !isset( $_GET['searchll'] ) || ( isset( $_GET['searchll'] ) && empty( $_GET['searchll'] ) ) ) ) {
376
- $categorylist_cpt = intval( $_GET['cat_id'] );
377
- $AJAXcatid = $categorylist_cpt;
378
  } elseif ($showonecatonly && 'HTMLGETSLUG' == $showonecatmode && isset( $_GET['cat'] ) && ( !isset( $_GET['searchll'] ) || ( isset( $_GET['searchll'] ) && empty( $_GET['searchll'] ) ) ) ) {
379
  $categorysluglist = $_GET['cat'];
380
  } elseif ($showonecatonly && 'HTMLGETCATNAME' == $showonecatmode && isset( $_GET['catname'] ) && ( !isset( $_GET['searchll'] ) || ( isset( $_GET['searchll'] ) && empty( $_GET['searchll'] ) ) ) ) {
@@ -382,257 +280,349 @@ function RenderLinkLibrary( $LLPluginClass, $generaloptions, $libraryoptions, $s
382
  }elseif ( $showonecatonly && 'HTMLGETPERM' == $showonecatmode && empty( $_GET['searchll'] ) ) {
383
  global $wp_query;
384
 
385
- $categoryname = $wp_query->query_vars['cat_name'];
 
 
 
386
  $AJAXcatid = $categoryname;
387
- $categorysluglist = '';
388
  if ( isset( $_GET['cat'] ) ) {
389
  $categorysluglist = $_GET['cat'];
 
 
390
  }
391
- } elseif ( $showonecatonly && ( !isset( $AJAXcatid ) || empty( $AJAXcatid ) ) && !empty( $defaultsinglecat_cpt ) && ( !isset( $_GET['searchll'] ) || ( isset( $_GET['searchll'] ) && empty( $_GET['searchll'] ) ) ) ) {
392
- $categorylist_cpt = $defaultsinglecat_cpt;
393
- $AJAXcatid = $categorylist_cpt;
394
  } elseif ( $showonecatonly && ( !isset( $AJAXcatid ) || empty( $AJAXcatid ) ) && isset( $_GET['cat_id'] ) && !empty( $_GET['cat_id'] ) && ( !isset( $_GET['searchll'] ) || ( isset( $_GET['searchll'] ) && empty( $_GET['searchll'] ) ) ) ) {
395
- $categorylist_cpt = intval( $_GET['cat_id'] );
396
- $AJAXcatid = $categorylist_cpt;
397
  $defaultsinglecat = $AJAXcatid;
398
- } elseif ( $showonecatonly && ( !isset( $AJAXcatid ) || empty( $AJAXcatid ) ) && empty( $defaultsinglecat_cpt ) && empty( $_GET['searchll'] ) ) {
399
-
400
- $show_one_cat_query_args = array( );
 
 
 
 
 
401
 
402
  if ( $hide_if_empty ) {
403
- $show_one_cat_query_args['hide_empty'] = true;
404
- } else {
405
- $show_one_cat_query_args['hide_empty'] = false;
406
  }
407
 
408
- if ( !$showuserlinks && !$showinvisible && !$showinvisibleadmin ) {
409
- add_filter( 'get_terms', 'link_library_get_terms_filter_only_publish', 10, 3 );
410
- } elseif ( $showuserlinks && !$showinvisible && !$showinvisibleadmin ) {
411
- add_filter( 'get_terms', 'link_library_get_terms_filter_publish_pending', 10, 3 );
412
- } elseif ( !$showuserlinks && ( $showinvisible || ( $showinvisibleadmin && $linkeditoruser ) ) ) {
413
- add_filter( 'get_terms', 'link_library_get_terms_filter_publish_draft', 10, 3 );
414
- } elseif ( $showuserlinks && ( $showinvisible || ( $showinvisibleadmin && $linkeditoruser ) ) ) {
415
- add_filter( 'get_terms', 'link_library_get_terms_filter_publish_draft_pending', 10, 3 );
416
  }
417
 
418
- if ( !empty( $categorylist_cpt ) ) {
419
- $show_one_cat_query_args['include'] = explode( ',', $categorylist_cpt );
420
  }
421
 
422
- if ( !empty( $excludecategorylist_cpt ) ) {
423
- $show_one_cat_query_args['exclude'] = explode( ',', $excludecategorylist_cpt );
424
  }
425
 
426
- if ( ( !empty( $categorysluglist ) || isset( $_GET['cat'] ) ) && empty( $singlelinkid ) ) {
427
- $show_one_cat_query_args['slug'] = explode( ',', $categorysluglist );
428
- }
429
 
430
- if ( isset( $categoryname ) && !empty( $categoryname ) && 'HTMLGETPERM' == $showonecatmode && empty( $singlelinkid ) ) {
431
- $show_one_cat_query_args['slug'] = $categoryname;
432
  }
433
 
434
- if ( ( !empty( $categorynamelist ) || isset( $_GET['catname'] ) ) && empty( $singlelinkid ) ) {
435
- $show_one_cat_query_args['name'] = explode( ',', urldecode( $categorynamelist ) );
436
- }
437
 
438
- if ( 'name' == $order ) {
439
- $show_one_cat_query_args['orderby'] = 'name';
440
- $show_one_cat_query_args['order'] = in_array( $direction, $validdirections ) ? $direction : 'ASC';
441
- } elseif ( 'id' == $order ) {
442
- $show_one_cat_query_args['orderby'] = 'id';
443
- $show_one_cat_query_args['order'] = in_array( $direction, $validdirections ) ? $direction : 'ASC';
444
- }
 
 
 
 
 
445
 
446
- $show_one_cat_query_args['taxonomy'] = 'link_library_category';
 
447
 
448
- $show_one_cat_link_categories = get_terms( $show_one_cat_query_args );
449
- remove_filter( 'get_terms', 'link_library_get_terms_filter_only_publish' );
450
- remove_filter( 'get_terms', 'link_library_get_terms_filter_publish_pending' );
451
- remove_filter( 'get_terms', 'link_library_get_terms_filter_publish_draft' );
452
- remove_filter( 'get_terms', 'link_library_get_terms_filter_publish_draft_pending' );
453
 
454
- //var_dump( $show_one_cat_link_categories );
 
 
 
 
 
 
 
 
455
 
456
- $mode = 'normal';
457
 
458
  if ( $debugmode ) {
459
- $output .= "\n<!-- AJAX Default Category Query: " . print_r( $show_one_cat_query_args, TRUE ) . "-->\n\n";
460
- $output .= "\n<!-- AJAX Default Category Results: " . print_r( $show_one_cat_link_categories, TRUE ) . "-->\n\n";
461
  }
462
 
463
- if ( $show_one_cat_link_categories ) {
464
- $categorylist_cpt = $show_one_cat_link_categories[0]->term_id;
465
- $AJAXcatid = $categorylist_cpt;
466
  }
467
  }
468
 
469
  $searchterms = '';
470
 
471
  if ( isset($_GET['searchll'] ) && !empty( $_GET['searchll'] ) && empty( $singlelinkid ) ) {
472
- $searchstring = $_GET['searchll'];
473
- $searchstringcopy = $searchstring;
474
  $searchterms = array();
 
475
 
476
  $offset = 0;
477
- while ( false !== strpos( $searchstringcopy, '"', $offset ) ) {
478
  if ( 0 == $offset ) {
479
- $offset = strpos( $searchstringcopy, '"' );
480
  } else {
481
- $endpos = strpos( $searchstringcopy, '"', $offset + 1 );
482
- $searchterms[] = substr( $searchstringcopy, $offset + 1, $endpos - $offset - 2 );
483
  $strlength = ( $endpos + 1 ) - ( $offset + 1 );
484
- $searchstringcopy = substr_replace( $searchstringcopy, '', $offset - 1, $endpos + 2 - ( $offset ) );
485
  $offset = 0;
486
  }
487
  }
488
 
489
- if ( ! empty( $searchstringcopy ) ) {
490
- $searchterms = array_merge( $searchterms, explode( " ", $searchstringcopy ) );
491
  }
492
-
493
- if ( !empty( $searchstring ) ) {
494
  $mode = 'search';
495
- $showlinksonclick = false;
496
  }
497
  }
498
 
499
- $link_count = wp_count_posts( 'link_library_links' );
500
 
501
- if ( $link_count->publish > 0 || ( $showinvisible && $link_count->private > 0 ) || ( $showuserlinks && $link_count->pending ) ) {
502
- $currentcatletter = '';
 
503
 
504
- if ( $level == 0 && $cat_letter_filter != 'no' ) {
505
- require_once plugin_dir_path( __FILE__ ) . 'render-link-library-alpha-filter.php';
506
- $result = RenderLinkLibraryAlphaFilter( $LLPluginClass, $generaloptions, $libraryoptions, $settings, $mode );
507
 
508
- $currentcatletter = $result['currentcatletter'];
509
-
510
- if ( 'beforelinks' == $cat_letter_filter || 'beforecatsandlinks' == $cat_letter_filter ) {
511
- $output .= $result['output'];
512
- }
513
  }
 
514
 
515
- $link_categories_query_args = array( );
 
 
 
 
 
 
 
 
 
 
 
516
 
517
- if ( $hide_if_empty ) {
518
- $link_categories_query_args['hide_empty'] = true;
519
- } else {
520
- $link_categories_query_args['hide_empty'] = false;
521
- }
522
 
523
- if ( !$showuserlinks && !$showinvisible && !$showinvisibleadmin ) {
524
- add_filter( 'get_terms', 'link_library_get_terms_filter_only_publish', 10, 3 );
525
- } elseif ( $showuserlinks && !$showinvisible && !$showinvisibleadmin ) {
526
- add_filter( 'get_terms', 'link_library_get_terms_filter_publish_pending', 10, 3 );
527
- } elseif ( !$showuserlinks && ( $showinvisible || ( $showinvisibleadmin && $linkeditoruser ) ) ) {
528
- add_filter( 'get_terms', 'link_library_get_terms_filter_publish_draft', 10, 3 );
529
- } elseif ( $showuserlinks && ( $showinvisible || ( $showinvisibleadmin && $linkeditoruser ) ) ) {
530
- add_filter( 'get_terms', 'link_library_get_terms_filter_publish_draft_pending', 10, 3 );
531
- }
532
 
533
- if ( ( !empty( $categorylist_cpt ) || isset( $_GET['cat_id'] ) ) && empty( $singlelinkid ) ) {
534
- $link_categories_query_args['include'] = explode( ',', $categorylist_cpt );
535
- }
 
 
 
 
536
 
537
- if ( !empty( $excludecategorylist_cpt ) && empty( $singlelinkid ) ) {
538
- $link_categories_query_args['exclude'] = explode( ',', $excludecategorylist_cpt );
539
- }
540
 
541
- if ( ( !empty( $categorysluglist ) || isset( $_GET['cat'] ) ) && empty( $singlelinkid ) ) {
542
- $link_categories_query_args['slug'] = explode( ',', $categorysluglist );
543
- }
544
 
545
- if ( isset( $categoryname ) && !empty( $categoryname ) && 'HTMLGETPERM' == $showonecatmode && empty( $singlelinkid ) ) {
546
- $link_categories_query_args['slug'] = $categoryname;
547
- }
548
 
549
- if ( ( !empty( $categorynamelist ) || isset( $_GET['catname'] ) ) && empty( $singlelinkid ) ) {
550
- $link_categories_query_args['name'] = explode( ',', urldecode( $categorynamelist ) );
551
- }
552
 
553
- if ( 'name' == $order ) {
554
- $link_categories_query_args['orderby'] = 'name';
555
- $link_categories_query_args['order'] = in_array( $direction, $validdirections ) ? $direction : 'ASC';
556
- } elseif ( 'id' == $order ) {
557
- $link_categories_query_args['orderby'] = 'id';
558
- $link_categories_query_args['order'] = in_array( $direction, $validdirections ) ? $direction : 'ASC';
559
- }
560
 
561
- if ( isset( $AJAXcatid ) && !empty( $AJAXcatid ) ) {
562
- $link_categories_query_args['include'] = $AJAXcatid;
563
- } else {
564
- $link_categories_query_args['parent'] = $parent_cat_id;
565
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
566
 
567
- $link_categories = get_terms( 'link_library_category', $link_categories_query_args );
568
- remove_filter( 'get_terms', 'link_library_get_terms_filter' );
569
-
570
- if ( 'catlist' == $order ) {
571
- $temp_link_categories = $link_categories;
572
- $link_categories = array();
573
- foreach ( $link_categories_query_args['include'] as $sort_link_category_id ) {
574
- foreach ( $temp_link_categories as $temp_link_cat ) {
575
- if ( $sort_link_category_id == $temp_link_cat->term_id ) {
576
- $link_categories[] = $temp_link_cat;
577
- continue;
578
  }
579
  }
580
  }
581
  }
582
 
583
- if ( !empty( $currentcatletter ) && $cat_letter_filter != 'no' ) {
584
- foreach ( $link_categories as $index => $link_category ) {
585
- if ( substr( $link_category->name, 0, 1) != $currentcatletter ) {
586
- unset( $link_categories[$index] );
587
- }
588
- }
 
 
 
 
 
 
 
 
589
  }
590
 
591
- if ( $pagination && 'search' != $mode && !$onlycount) {
592
- if ($linksperpage == 0 || empty( $linksperpage ) ) {
593
- $linksperpage = 5;
594
- }
595
 
596
- $number_of_links = 0;
597
- foreach ( $link_categories as $link_category ) {
598
- $number_of_links += $link_category->count;
599
- }
600
 
601
- if ( $number_of_links > $linksperpage ) {
602
- $nextpage = true;
603
- } else {
604
- $nextpage = false;
605
- }
 
 
 
 
 
 
606
 
607
- if ( isset( $number_of_links ) ) {
608
- $preroundpages = $number_of_links / $linksperpage;
609
- $number_of_pages = ceil( $preroundpages * 1 ) / 1;
610
- }
611
 
612
- if ( isset( $_POST['linkresultpage'] ) || isset( $_GET['linkresultpage'] ) ) {
613
 
614
- if ( isset( $_POST['linkresultpage'] ) ) {
615
- $pagenumber = $_POST['linkresultpage'];
616
- } elseif ( isset( $_GET['linkresultpage'] ) ) {
617
- $pagenumber = $_GET['linkresultpage'];
618
- }
619
- $startingitem = ( $pagenumber - 1 ) * $linksperpage + 1;
620
- } else {
621
- $pagenumber = 1;
622
- $startingitem = 1;
 
623
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
624
  }
625
 
626
- if ( $level == 0 ) {
627
- $output .= "<div id='linklist" . $settings . "' class='linklist'><!-- Div Linklist -->\n";
 
 
 
628
  }
629
 
630
- if ( $level == 0 && $pagination && $mode != "search" && 'BEFORE' == $paginationposition ) {
631
- $previouspagenumber = $pagenumber - 1;
632
- $nextpagenumber = $pagenumber + 1;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
633
 
634
- $pageID = get_queried_object_id();
 
 
 
 
 
 
 
635
 
 
 
 
 
636
  if ( empty( $AJAXcatid ) && !empty( $categorysluglist ) ) {
637
  $AJAXcatid = $categorysluglist;
638
  }
@@ -640,1443 +630,967 @@ function RenderLinkLibrary( $LLPluginClass, $generaloptions, $libraryoptions, $s
640
  $AJAXcatid = $categorynamelist;
641
  }
642
 
643
- $output .= link_library_display_pagination( $previouspagenumber, $nextpagenumber, $number_of_pages, $pagenumber, $showonecatonly, $showonecatmode, $AJAXcatid, $settings, $pageID, $currentcatletter );
644
  }
645
 
646
- if ( $level == 0 && 'search' == $mode ) {
647
- $output .= '<div class="resulttitle">' . __('Search Results for', 'link-library') . ' "' . esc_html( stripslashes( $_GET['searchll'] ) ) . '"</div><!-- Div search results title -->';
648
  }
649
 
650
- if ( $enablerewrite && !empty( $toppagetext ) && $parent_cat_id == 0 ) {
651
- $output .= '<div class="toppagetext">' . nl2br( $toppagetext ) . '</div>';
652
- }
653
 
654
  $xpath = $LLPluginClass->relativePath( dirname( __FILE__ ), ABSPATH );
655
 
656
- $linkcount = 1;
657
 
658
- if ( !empty( $link_categories ) ) {
659
- foreach ( $link_categories as $link_category ) {
660
- if ( $enablerewrite && $showbreadcrumbspermalinks && $parent_cat_id != 0 && $level == 0) {
661
- $breadcrumb = '<div class="breadcrumb">' . link_library_get_breadcrumb_path( $link_category->slug, $rewritepage ) . '</div>';
662
- $output .= $breadcrumb;
663
- }
664
 
665
- if ( $pagination && 'search' != $mode ) {
666
- if ( $linkcount + $link_category->count - 1 < $startingitem || $linkcount > $startingitem + $linksperpage - 1 ) {
667
- $linkcount = $linkcount + $link_category->count;
668
- continue;
669
- }
670
- }
671
 
672
- if ( !empty( $singlelinkid ) && intval( $singlelinkid ) && $linkcount > 1 ) {
 
673
  break;
674
  }
675
 
676
- $link_query_args = array( 'post_type' => 'link_library_links' );
677
-
678
- if ( !$combineresults ) {
679
- $link_query_args['tax_query'][] =
680
- array(
681
- 'taxonomy' => 'link_library_category',
682
- 'field' => 'term_id',
683
- 'terms' => $link_category->term_id,
684
- 'include_children' => false
685
-
686
- );
687
- if ( sizeof( $link_query_args['tax_query'] > 1 ) ) {
688
- $link_query_args['tax_query']['relation'] = 'AND';
689
  }
690
- }
691
-
692
- if ( isset( $_GET['link_tags'] ) && !empty( $_GET['link_tags'] ) ) {
693
- $tag_array = explode( '.', $_GET['link_tags'] );
694
 
695
- // YL: Make this an option
696
- if ( !empty( $tag_array ) ) {
697
- $showlinksonclick = false;
698
  }
699
- $link_query_args['tax_query'][] = array(
700
- 'taxonomy' => 'link_library_tags',
701
- 'field' => 'slug',
702
- 'terms' => $tag_array,
703
- );
704
- if ( sizeof( $link_query_args['tax_query'] > 1 ) ) {
705
- $link_query_args['tax_query']['relation'] = 'AND';
706
- }
707
- }
708
-
709
- if ( !empty( $singlelinkid ) && intval( $singlelinkid ) ) {
710
- $link_query_args['p'] = $singlelinkid;
711
- }
712
 
713
- $link_query_args['post_status'] = array( 'publish' );
714
-
715
- if ( $showuserlinks ) {
716
- $link_query_args['post_status'][] = 'pending';
717
- }
718
 
719
- if ( $showinvisible || ( $showinvisibleadmin && $linkeditoruser ) ) {
720
- $link_query_args['post_status'][] = 'draft';
721
- }
722
 
723
- if ( !empty( $searchstring ) ) {
724
- $link_query_args['s'] = $searchstring;
725
- }
726
 
727
- if ( isset( $_GET['linkname'] ) && in_array( $_GET['linkname'], array( 'ASC', 'DESC' ) ) ) {
728
- $linkorder = 'name';
729
- $linkdirection = $_GET['linkname'];
730
- } elseif ( isset( $_GET['linkprice'] ) && in_array( $_GET['linkprice'], array( 'ASC', 'DESC' ) ) ) {
731
- $linkorder = 'price';
732
- $linkdirection = $_GET['linkprice'];
733
  }
734
 
735
- if ( 'name' == $linkorder ) {
736
- $link_query_args['orderby'] = 'title';
737
- $link_query_args['order'] = in_array( $linkdirection, $validdirections ) ? $linkdirection : 'ASC';
738
- } elseif ( 'id' == $linkorder ) {
739
- $link_query_args['orderby'] = 'ID';
740
- $link_query_args['order'] = in_array( $linkdirection, $validdirections ) ? $linkdirection : 'ASC';
741
- } elseif ( 'date' == $linkorder ) {
742
- $link_query_args['orderby'] = 'meta_value_num';
743
- $link_query_args['meta_key'] = 'link_updated';
744
- $link_query_args['order'] = in_array( $linkdirection, $validdirections ) ? $linkdirection : 'ASC';
745
- } elseif ( 'price' == $linkorder ) {
746
- $link_query_args['orderby'] = 'meta_value_num';
747
- $link_query_args['meta_key'] = 'link_price';
748
- $link_query_args['order'] = in_array( $linkdirection, $validdirections ) ? $linkdirection : 'ASC';
749
- } elseif ( 'random' == $linkorder ) {
750
- $link_query_args['orderby'] = 'rand';
751
- } elseif ( 'hits' == $linkorder ) {
752
- $link_query_args['orderby'] = 'meta_value_num';
753
- $link_query_args['meta_key'] = 'link_visits';
754
- $link_query_args['order'] = in_array( $linkdirection, $validdirections ) ? $linkdirection : 'ASC';
755
- }
 
 
 
 
756
 
757
- if ( $featuredfirst && 'random' != $linkorder && 'price' != $linkorder ) {
758
- if ( $link_query_args['orderby'] == 'title' ) {
759
- $link_query_args['orderby'] = 'meta_value title';
760
- } elseif ( $link_query_args['orderby'] == 'id' ) {
761
- $link_query_args['orderby'] = 'meta_value ID';
762
- } elseif ( $link_query_args['orderby'] == 'date' ) {
763
- $link_query_args['orderby'] = 'link_featured link_updated';
764
- }
765
 
766
- $link_query_args['meta_key'] = 'link_featured';
767
- }
 
768
 
769
- if ( $current_user_links ) {
770
- $user_data = wp_get_current_user();
771
- $name_field_value = $user_data->display_name;
772
-
773
- $link_query_args['meta_query'][] =
774
- array(
775
- 'key' => 'link_submitter',
776
- 'value' => $name_field_value,
777
- 'compare' => '=',
778
- );
779
- if ( sizeof( $link_query_args['meta_query'] > 1 ) ) {
780
- $link_query_args['meta_query']['relation'] = 'AND';
781
  }
782
- }
783
 
784
- if ( isset( $_GET['link_price'] ) && !empty( $_GET['link_price'] ) ) {
785
- $link_query_args['meta_query'][] =
786
- array(
787
- 'key' => 'link_price',
788
- 'value' => floatval( 0.0 ),
789
- 'compare' => '=',
790
- );
791
- if ( count( $link_query_args['meta_query'] > 1 ) ) {
792
- $link_query_args['meta_query']['relation'] = 'AND';
793
- }
794
- }
795
 
796
- if ( true == $debugmode ) {
797
- $linkquerystarttime = microtime ( true );
798
- }
 
 
799
 
800
- $the_link_query = new WP_Query( $link_query_args );
 
 
 
 
 
801
 
802
- if ( $debugmode ) {
803
- $output .= "\n<!-- Link Query: " . print_r( $link_query_args, TRUE ) . "-->\n\n";
804
- $output .= "\n<!-- Link Results: " . print_r( $the_link_query, TRUE ) . "-->\n\n";
805
- $output .= "\n<!-- Link Query Execution Time: " . ( microtime( true ) - $linkquerystarttime ) . "-->\n\n";
806
- }
807
 
808
- if ( $debugmode ) {
809
- echo '<!-- showonecatmode: ' . $showonecatonly . ', AJAXnocatset: ' . $AJAXnocatset . ', nocatonstartup: ' . $nocatonstartup . '-->';
810
- }
811
 
812
- $childcategories = get_terms( array( 'taxonomy' => 'link_library_category', 'child_of' => $link_category->term_id ) );
 
813
 
814
- $cat_has_children = false;
815
- if ( !is_wp_error( $childcategories ) && !empty( $childcategories ) ) {
816
- $cat_has_children = true;
817
- }
 
 
 
818
 
819
- // Display links
820
- 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'] ) ) ) {
821
- $output .= "<div id='linklist" . $settings . "' class='linklist'>\n";
822
- $output .= '</div><!-- Div empty list -->';
823
- } elseif ( $the_link_query->found_posts && $onlycount ) {
824
- return $the_link_query->found_posts;
825
- } elseif ( ( $the_link_query->found_posts || !$hide_if_empty || $cat_has_children ) && !$onlycount ) {
826
- if ( $the_link_query->have_posts() || !$hide_if_empty || $cat_has_children ) {
827
- if ( ! $combineresults ) {
828
- $currentcategoryid = $link_category->term_id;
829
- $output .= '<div class="LinkLibraryCat LinkLibraryCat' . $currentcategoryid . ( $level == 0 ? '' : ' childlevel'). ' level' . $level .'"><!-- Div Category -->';
830
-
831
- $catlink = '';
832
- $cattext = '';
833
- $catenddiv = '';
834
 
835
- if ( 1 == $catlistwrappers && !empty( $beforecastlist1 ) ) {
836
- $output .= '<div class="' . $beforecatlist1 . '">';
837
- } else if ( $catlistwrappers == 2 && !empty( $beforecatlist2 ) && !empty( $beforecatlist1 ) ) {
838
- $remainder = $currentcategory % $catlistwrappers;
839
- switch ( $remainder ) {
840
 
841
- case 0:
842
- $output .= '<div class="' . $beforecatlist2 . '">';
843
- break;
844
 
845
- case 1:
846
- $output .= '<div class="' . $beforecatlist1 . '">';
847
- break;
848
  }
849
- } else if ( 3 == $catlistwrappers && !empty( $beforecatlist3 ) && !empty( $beforecatlist2 ) && !empty( $beforecatlist1 )) {
850
- $remainder = $currentcategory % $catlistwrappers;
851
- switch ( $remainder ) {
852
-
853
- case 0:
854
- $output .= '<div class="' . $beforecatlist3 . '">';
855
- break;
856
-
857
- case 2:
858
- $output .= '<div class="' . $beforecatlist2 . '">';
859
- break;
860
-
861
- case 1:
862
- $output .= '<div class="' . $beforecatlist1 . '">';
863
- break;
864
  }
865
  }
866
 
867
- // Display the category name
868
- if ( !$hidecategorynames || empty( $hidecategorynames ) ) {
869
- $caturl = get_term_meta( $link_category->term_id, 'linkcaturl', true );
870
 
871
- if ( $catanchor ) {
872
- $cattext = '<div id="' . $link_category->slug . '"><!-- Div Category Name -->';
873
  } else {
874
- $cattext = '';
875
  }
876
 
877
- if ( !$divorheader ) {
878
- if ( 'search' == $mode ) {
879
- foreach ( $searchterms as $searchterm ) {
880
- $link_category->name = link_library_highlight_phrase( $link_category->name, $searchterm, '<span class="highlight_word">', '</span>' );
881
- }
882
- }
883
 
884
- $catlink = '<div class="' . $catnameoutput . '"><!-- Div Cat Name -->';
885
 
886
- if ( 'right' == $catdescpos || empty( $catdescpos ) ) {
887
- if ( !empty( $caturl ) ) {
888
- $catlink .= '<a href="' . link_library_add_http( $caturl ) . '" ';
 
 
889
 
890
- if ( !empty( $linktarget ) )
891
- $catlink .= ' target="' . $linktarget . '"';
892
 
893
- $catlink .= '>';
894
- } elseif ( $catlinkspermalinksmode ) {
895
- var_dump( 'Generating cat link' );
896
- }
897
- $catlink .= $link_category->name;
898
- if ( !empty( $caturl ) ) {
899
- $catlink .= '</a>';
900
- }
901
- }
902
 
903
- if ( $showcategorydesclinks ) {
904
- $catlink .= '<span class="linklistcatnamedesc">';
905
- $linkitem['description'] = str_replace( '[', '<', $link_category->description );
906
- $linkitem['description'] = str_replace( ']', '>', $linkitem['description'] );
907
- $catlink .= $linkitem['description'];
908
- $catlink .= '</span>';
909
- }
910
 
911
- if ( 'left' == $catdescpos ) {
912
- if ( !empty( $caturl ) ) {
913
- $catlink .= '<a href="' . link_library_add_http( $caturl ) . '" ';
914
 
915
- if ( !empty( $linktarget ) )
916
- $catlink .= ' target="' . $linktarget . '"';
 
917
 
918
- $catlink .= '>';
919
- }
920
- $catlink .= $link_category->name;
921
- if ( !empty( $caturl ) ) {
922
- $catlink .= '</a>';
923
- }
924
- }
925
 
926
- if ( $showlinksonclick && $the_link_query->found_posts > 0 ) {
927
- $catlink .= '<span class="expandlinks" id="LinksInCat' . $link_category->term_id . '">';
928
- $catlink .= '<img class="arrow-down" src="';
 
 
 
 
929
 
930
- if ( !empty( $expandiconpath ) ) {
931
- $catlink .= $expandiconpath;
932
- } else {
933
- $catlink .= plugins_url( 'icons/expand-32.png', __FILE__ );
934
- }
 
 
935
 
936
- $catlink .= '" />';
937
- $catlink .= '<img class="arrow-up" src="';
 
938
 
939
- if ( !empty( $expandiconpath ) ) {
940
- $catlink .= $expandiconpath;
941
- } else {
942
- $catlink .= plugins_url( 'icons/collapse-32.png', __FILE__ );
943
- }
944
 
945
- $catlink .= '" />';
946
- $catlink .= '</span>';
947
- }
 
 
 
 
948
 
949
- $catlink .= '</div><!-- DivOrHeader -->';
950
- } else if ( $divorheader ) {
951
- if ( 'search' == $mode ) {
952
- foreach ( $searchterms as $searchterm ) {
953
- $link_category->name = link_library_highlight_phrase( $link_category->name, $searchterm, '<span class="highlight_word">', '</span>' );
954
- }
955
- }
956
 
957
- $catlink = '<'. $catnameoutput . '>';
 
 
 
 
958
 
959
- if ( 'right' == $catdescpos || 'aftercatname' == $catdescpos || 'aftertoplevelcatname' == $catdescpos || empty( $catdescpos ) ) {
960
- if ( !empty( $caturl ) ) {
961
- $catlink .= '<a href="' . link_library_add_http( $caturl ). '" ';
962
 
963
- if ( !empty( $linktarget ) )
964
- $catlink .= ' target="' . $linktarget . '"';
965
 
966
- $catlink .= '>';
967
- } elseif ( $catlinkspermalinksmode && !empty( $rewritepage ) ) {
968
- $cat_path = link_library_get_category_path( $link_category->slug );
 
 
969
 
970
- if ( isset( $_GET['link_tags'] ) && !empty( $_GET['link_tags'] ) ) {
971
- $cat_path = add_query_arg( 'link_tags', $_GET['link_tags'], $cat_path );
972
- }
973
 
974
- if ( isset( $_GET['link_price'] ) && !empty( $_GET['link_price'] ) ) {
975
- $cat_path = add_query_arg( 'link_price', $_GET['link_price'], $cat_path );
976
- }
977
 
978
- $catlink .= '<a href="' . site_url() . '/' . $rewritepage . $cat_path . '">';
979
- }
980
- $catlink .= $link_category->name;
981
- if ( !empty( $caturl ) || ( $catlinkspermalinksmode && !empty( $rewritepage ) ) ) {
982
- $catlink .= '</a>';
983
- }
984
- }
985
 
986
- if ( $showcategorydesclinks && ( 'left' == $catdescpos || 'right' == $catdescpos ) ) {
987
- $catlink .= '<span class="linklistcatnamedesc">';
988
- $linkitem['description'] = str_replace( '[', '<', $link_category->description );
989
- $linkitem['description'] = str_replace(']', '>', $linkitem['description'] );
990
- $catlink .= $linkitem['description'];
991
- $catlink .= '</span>';
992
- }
993
 
994
- if ( 'left' == $catdescpos ) {
995
- if ( !empty( $caturl ) ) {
996
- $catlink .= '<a href="' . link_library_add_http( $caturl ) . '" ';
 
997
 
998
- if ( !empty( $linktarget ) )
999
- $catlink .= ' target="' . $linktarget . '"';
 
 
1000
 
1001
- $catlink .= '>';
1002
- }
1003
- $catlink .= $link_category->name;
1004
- if ( !empty( $caturl ) ) {
1005
- $catlink .= '</a>';
1006
- }
1007
- }
1008
 
1009
- if ( $showlinksonclick && $the_link_query->found_posts > 0 ) {
1010
- $catlink .= '<span class="expandlinks" id="LinksInCat' . $link_category->term_id . '">';
1011
- $catlink .= '<img class="arrow-down" src="';
1012
 
1013
- if ( !empty( $expandiconpath ) ) {
1014
- $catlink .= $expandiconpath;
1015
- } else {
1016
- $catlink .= plugins_url( 'icons/expand-32.png', __FILE__ );
1017
- }
1018
 
1019
- $catlink .= '" />';
 
 
 
 
 
 
 
 
 
 
1020
 
1021
- $catlink .= '<img class="arrow-up" src="';
1022
 
1023
- if ( !empty( $expandiconpath ) ) {
1024
- $catlink .= $expandiconpath;
1025
- } else {
1026
- $catlink .= plugins_url( 'icons/collapse-32.png', __FILE__ );
1027
- }
1028
 
1029
- $catlink .= '" />';
1030
- $catlink .= '</span>';
1031
- }
1032
 
1033
- $catlink .= '</' . $catnameoutput . '>';
1034
- }
1035
 
1036
- if ($catanchor) {
1037
- $catenddiv = '</div><!-- Div Category Name -->';
1038
- } else {
1039
- $catenddiv = '';
1040
- }
1041
- }
1042
 
1043
- $output .= $cattext . $catlink . $catenddiv;
 
 
1044
 
1045
- // YL: Add option to control this
1046
- // if ( 0 != $parent_cat_id ) {
1047
- if ( $showcategorydesclinks && ( 'aftercatname' == $catdescpos || ( 'aftertoplevelcatname' == $catdescpos && $level == 0 ) ) ) {
1048
- $output .= '<div class="parentcatdesc">' . nl2br( $link_category->description ) . '</div>';
1049
- }
1050
- // }
1051
 
1052
- if ( $showlinksonclick ) {
1053
- $output .= '<div class="LinksInCat' . $currentcategoryid . ' LinksInCat"><!-- Div show links on click -->';
 
 
 
1054
  }
1055
  }
1056
 
1057
- if ( !empty( $beforefirstlink ) && $the_link_query->found_posts > 0 ) {
1058
- $output .= stripslashes( $beforefirstlink );
1059
  }
 
 
1060
 
1061
- if ( ( ( is_bool( $displayastable ) && $displayastable ) || 'true' == $displayastable ) && ( ! $combineresults || ( $combineresults && $linkcount == 0 ) ) ) {
1062
- $catstartlist = "\n\t<table class='linklisttable'>\n";
1063
- if ( $showcolumnheaders ) {
1064
- if ( !empty( $columnheaderoverride ) && !$allowcolumnsorting ) {
1065
- $catstartlist .= '<div class="linklisttableheaders"><tr>';
1066
-
1067
- $columnheaderarray = explode( ',', $columnheaderoverride );
1068
- foreach( $columnheaderarray as $columnheader ) {
1069
- if ( !empty( $columnheader ) ) {
1070
- $catstartlist .= '<th><div class="linklistcolumnheader">' . $columnheader . '</div></th>';
1071
- }
1072
- }
1073
-
1074
- $catstartlist .= "</tr></div>\n";
1075
- } elseif ( $allowcolumnsorting ) {
1076
- $sorting_labels = array( 2 => 'linkname', 16 => 'linkprice' );
1077
- $settings_sort_label = array( 2 => 'name' );
1078
- $activation_variables = array( 1 => 'show_images', 2 => 'showname', 3 => 'showdate', 4 => 'showdescription',
1079
- 5 => 'shownotes', 6 => 'show_rss', 7 => 'displayweblink', 8 => 'showtelephone',
1080
- 9 => 'showemail', 10 => 'showlinkhits', 11 => 'showrating', 12 => 'showlargedescription',
1081
- 13 => 'showsubmittername', 14 => 'showcatdesc', 15 => 'showlinktags', 16 => 'showlinkprice' );
1082
-
1083
- $default_labels = array( 1 => __( 'Image', 'link-library' ), 2 => __( 'Name', 'link-library' ),
1084
- 3 => __( 'Date', 'link-library' ), 4 => __( 'Description', 'link-library'),
1085
- 5 => __( 'Notes', 'link-library'), 6 => __( 'RSS', 'link-library' ),
1086
- 7 => __( 'Web Link', 'link-library' ), 8 => __( 'Telephone', 'link-library'),
1087
- 9 => __( 'E-mail', 'link-library' ), 10 => __( 'Hits', 'link-library' ),
1088
- 11 => __( 'Rating', 'link-library' ), 12 => __( 'Large Description', 'link-library' ),
1089
- 13 => __( 'Submitter Name', 'link-library' ), 14 => __( 'Category Description', 'link-library' ),
1090
- 15 => __( 'Tags', 'link-library' ), 16 => __( 'Price', 'link-library') );
1091
-
1092
- if ( empty( $dragndroporder ) ) {
1093
- $dragndroporder = '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16';
1094
- }
1095
-
1096
- $dragndroparray = explode( ',', $dragndroporder );
1097
-
1098
- $new_entries = array( '13', '14', '15', '16' );
1099
 
1100
- foreach ( $new_entries as $new_entry ) {
1101
- if ( !in_array( $new_entry, $dragndroparray ) ) {
1102
- $dragndroparray[] = $new_entry;
1103
- }
1104
- }
1105
 
1106
- $catstartlist .= '<div class="linklisttableheaders"><tr>';
1107
- $columnheaderarray = explode( ',', $columnheaderoverride );
 
 
 
1108
 
1109
- $actual_column = 0;
 
 
1110
 
1111
- foreach ( $dragndroparray as $index => $display_item ) {
1112
- $can_sort = false;
1113
- $sort_label = '';
1114
- $column_label = '';
1115
- $show_column_header = false;
1116
 
1117
- if ( isset( $columnheaderarray[$actual_column] ) ) {
1118
- $column_label = $columnheaderarray[$actual_column];
1119
- }
1120
 
1121
- if ( isset( $sorting_labels[$display_item] ) ) {
1122
- $can_sort = true;
1123
- $sort_label = $sorting_labels[$display_item];
1124
- }
1125
 
1126
- if ( isset( $activation_variables[$display_item] ) && $$activation_variables[$display_item] ) {
1127
- if ( !in_array( $display_item, array( 7, 8, 9 ) ) || ( in_array( $display_item, array( 7, 8, 9 ) ) && $$activation_variables[$display_item] != 'false' ) ) {
1128
- if ( empty( $column_label ) ) {
1129
- $column_label = $default_labels[$display_item];
1130
- }
 
1131
 
1132
- $show_column_header = true;
1133
- $actual_column++;
1134
- }
1135
- }
 
 
 
1136
 
1137
- if ( $show_column_header ) {
1138
- $catstartlist .= '<th><div class="linklistcolumnheader">';
1139
- if ( $can_sort ) {
1140
- $sort_direction = 'ASC';
1141
- if ( ( isset( $_GET[$sorting_labels[$display_item]] ) && 'ASC' == $_GET[$sorting_labels[$display_item]] ) ||
1142
- ( isset( $settings_sort_label[$display_item] ) && $linkorder = $settings_sort_label[$display_item] && $linkdirection == 'ASC' ) ) {
1143
- $sort_direction = 'DESC';
1144
- }
1145
- $sort_url = add_query_arg( $sorting_labels[$display_item], $sort_direction, '' );
1146
- if ( isset( $_GET['link_tags'] ) && !empty( $_GET['link_tags'] ) ) {
1147
- $sort_url = add_query_arg( 'link_tags', $_GET['link_tags'], $sort_url );
1148
- }
1149
 
1150
- if ( isset( $_GET['link_price'] ) && !empty( $_GET['link_price'] ) ) {
1151
- $sort_url = add_query_arg( 'link_price', $_GET['link_price'], $sort_url );
1152
- }
1153
 
1154
- $catstartlist .= '<a href="' . $sort_url . '">';
1155
- }
 
 
 
1156
 
1157
- $catstartlist .= $column_label;
1158
- if ( $can_sort ) {
1159
- $catstartlist .= '</a>';
1160
- }
1161
- $catstartlist .= '</div></th>';
1162
- }
1163
- }
1164
 
1165
- $catstartlist .= "</tr></div>\n";
1166
- }
1167
- } else {
1168
- $catstartlist .= '';
1169
- }
1170
- } elseif ( ! $combineresults || ( $combineresults && $linkcount == 0 ) ) {
1171
- $catstartlist = "\n\t<ul>\n";
1172
- } else {
1173
- $catstartlist = '';
1174
- }
 
 
 
 
 
1175
 
1176
- if ( 0 == $the_link_query->found_posts && !$cat_has_children && !$hide_children_cat_links ) {
1177
- $output .= __('No links found', 'link-library');
1178
- } elseif ( !$hide_children_cat_links ) {
1179
- if ( $the_link_query->found_posts > 0 ) {
1180
- $output .= $catstartlist;
1181
- }
1182
 
1183
- while ( $the_link_query->have_posts() ) {
1184
- $the_link_query->the_post();
 
 
 
 
 
 
 
 
1185
 
1186
- if ( $pagination && 'search' != $mode ) {
1187
- if ( $linkcount > $pagenumber * $linksperpage || $linkcount < $startingitem ) {
1188
- $linkcount++;
1189
- continue;
1190
- }
1191
- }
1192
 
1193
- $linkitem['term_id'] = $link_category->term_id;
1194
- $linkitem['link_name'] = get_the_title();
1195
- $linkitem['link_permalink'] = get_the_permalink( get_the_ID() );
1196
- $link_meta = get_metadata( 'post', get_the_ID() );
 
1197
 
1198
- if ( isset( $link_meta['link_url'] ) ) {
1199
- $linkitem['link_url'] = esc_html ( $link_meta['link_url'][0] );
1200
- } else {
1201
- $linkitem['link_url'] = '';
1202
- }
1203
 
1204
- $linkitem['proper_link_id'] = get_the_ID();
1205
 
1206
- if ( isset( $link_meta['link_description'] ) ) {
1207
- $linkitem['link_description'] = esc_html( $link_meta['link_description'][0] );
1208
- } else {
1209
- $linkitem['link_description'] = '';
1210
- }
 
 
 
 
1211
 
1212
- if ( isset( $link_meta['link_notes'] ) ) {
1213
- $linkitem['link_notes'] = esc_html( $link_meta['link_notes'][0] );
1214
- } else {
1215
- $linkitem['link_notes'] = '';
1216
- }
1217
 
1218
- if ( isset( $link_meta['link_second_url'] ) ) {
1219
- $linkitem['link_second_url'] = esc_url( $link_meta['link_second_url'][0] );
1220
- } else {
1221
- $linkitem['link_second_url'] = '';
1222
- }
1223
 
1224
- if ( isset( $link_meta['link_no_follow'] ) ) {
1225
- $linkitem['link_no_follow'] = esc_html( $link_meta['link_no_follow'][0] );
1226
- } else {
1227
- $linkitem['link_no_follow'] = '';
1228
- }
1229
 
1230
- if ( isset( $link_meta['link_textfield'] ) ) {
1231
- $linkitem['link_textfield'] = esc_html( $link_meta['link_textfield'][0] );
1232
- } else {
1233
- $linkitem['link_textfield'] = '';
1234
- }
1235
 
1236
- if ( isset( $link_meta['link_target'] ) ) {
1237
- $linkitem['link_target'] = esc_html( $link_meta['link_target'][0] );
1238
- } else {
1239
- $linkitem['link_target'] = '';
1240
- }
1241
 
1242
- if ( isset( $link_meta['link_image'] ) ) {
1243
- $linkitem['link_image'] = esc_url( $link_meta['link_image'][0] );
1244
- } else {
1245
- $linkitem['link_image'] = '';
1246
- }
1247
 
1248
- if ( isset( $link_meta['link_featured'] ) ) {
1249
- $linkitem['link_featured'] = esc_html( $link_meta['link_featured'][0] );
1250
- } else {
1251
- $linkitem['link_featured'] = '';
1252
- }
1253
 
1254
- if ( isset( $link_meta['link_rss'] ) ) {
1255
- $linkitem['link_rss'] = esc_url( $link_meta['link_rss'][0] );
1256
- } else {
1257
- $linkitem['link_rss'] = '';
1258
- }
1259
 
1260
- if ( isset( $link_meta['link_telephone'] ) ) {
1261
- $linkitem['link_telephone'] = esc_html( $link_meta['link_telephone'][0] );
1262
- } else {
1263
- $linkitem['link_telephone'] = '';
1264
- }
1265
 
1266
- if ( isset( $link_meta['link_email'] ) ) {
1267
- $linkitem['link_email'] = esc_html( $link_meta['link_email'][0] );
1268
- } else {
1269
- $linkitem['link_email'] = '';
1270
- }
 
 
 
 
1271
 
1272
- if ( isset( $link_meta['link_reciprocal'] ) ) {
1273
- $linkitem['link_reciprocal'] = esc_url( $link_meta['link_reciprocal'][0] );
1274
- } else {
1275
- $linkitem['link_reciprocal'] = '';
1276
- }
1277
 
1278
- if ( isset( $link_meta['link_rel'] ) ) {
1279
- $linkitem['link_rel'] = esc_html( $link_meta['link_rel'][0] );
1280
- } else {
1281
- $linkitem['link_rel'] = '';
1282
- }
 
 
 
 
 
 
 
 
 
 
 
1283
 
1284
- if ( isset( $link_meta['link_submitter'][0] ) ) {
1285
- $linkitem['link_submitter'] = esc_html( $link_meta['link_submitter'][0] );
1286
- } else {
1287
- $linkitem['link_submitter'] = '';
1288
- }
1289
 
1290
- if ( isset( $link_meta['link_submitter_name'][0] ) ) {
1291
- $linkitem['link_submitter_name'] = esc_html( $link_meta['link_submitter_name'][0] );
1292
- } else {
1293
- $linkitem['link_submitter_name'] = '';
1294
- }
1295
 
1296
- if ( isset( $link_meta['link_submitter_email'][0] ) ) {
1297
- $linkitem['link_submitter_email'] = esc_html( $link_meta['link_submitter_email'][0] );
1298
- } else {
1299
- $linkitem['link_submitter_email'] = '';
1300
- }
1301
 
1302
- $linkitem['link_price'] = floatval( get_post_meta( get_the_ID(), 'link_price', true ) );
1303
 
1304
- if ( isset( $link_meta['link_visits'][0] ) ) {
1305
- $linkitem['link_visits'] = esc_html( $link_meta['link_visits'][0] );
1306
- } else {
1307
- $linkitem['link_visits'] = '';
1308
- }
1309
 
1310
- if ( isset( $link_meta['link_rating'][0] ) ) {
1311
- $linkitem['link_rating'] = esc_html( $link_meta['link_rating'][0] );
1312
- } else {
1313
- $linkitem['link_rating'] = '';
1314
- }
1315
 
1316
- $updated_time = new DateTime;
1317
- $updated_time->setTimestamp( $link_meta['link_updated'][0] );
1318
- $current_time = new DateTime();
1319
- $date_diff = $current_time->diff( $updated_time, true);
1320
 
1321
- if ( $date_diff->days <= 7 ) {
1322
- $linkitem['recently_updated'] = true;
1323
- } else {
1324
- $linkitem['recently_updated'] = false;
1325
- }
1326
 
1327
- $linkitem['link_updated'] = $link_meta['link_updated'][0];
 
 
1328
 
1329
- if ( true == $debugmode ) {
1330
- $linkstarttime = microtime ( true );
1331
  }
1332
 
1333
- $between = "\n";
1334
-
1335
- if ( $rssfeedinline ) {
1336
- include_once( ABSPATH . WPINC . '/feed.php' );
1337
-
1338
  if ( true == $debugmode ) {
1339
- $starttimerssfeed = microtime ( true );
1340
  }
1341
 
1342
- $rss = fetch_feed( $linkitem['link_rss'] );
1343
- if ( !is_wp_error( $rss ) ) {
1344
- $maxitems = $rss->get_item_quantity( $rssfeedinlinecount );
1345
 
1346
- $rss_items = $rss->get_items( 0, $maxitems );
 
1347
 
1348
- if ( $rss_items && !empty( $rssfeedinlinedayspublished ) && $rssfeedinlinedayspublished != 0 ) {
1349
- foreach ( $rss_items as $index => $item ) {
1350
- $diff_published = current_time( 'timestamp' ) - strtotime( $item->get_date( 'j F o' ) );
1351
- if ( $diff_published > 60 * 60 * 24 * intval( $rssfeedinlinedayspublished ) ) {
1352
- unset( $rss_items[$index] );
1353
- }
1354
  }
 
 
 
1355
 
1356
- if ( empty( $rss_items ) && $rssfeedinlineskipempty ) {
1357
- continue;
1358
- }
1359
  }
 
 
1360
  }
1361
 
1362
- if ( true == $debugmode ) {
1363
- $output .= "\n<!-- Time to render RSS Feed section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimerssfeed ) . " --> \n";
 
 
1364
  }
1365
- }
1366
 
1367
- if ( $linkaddfrequency > 0 ) {
1368
- if ( ( $linkcount - 1 ) % $linkaddfrequency == 0 ) {
1369
- $output .= stripslashes( $addbeforelink );
 
1370
  }
1371
- }
1372
 
1373
- if ( !isset( $linkitem['recently_updated'] ) ) {
1374
- $linkitem['recently_updated'] = false;
1375
- }
1376
 
1377
- $output .= stripslashes( $beforeitem );
1378
 
1379
- if ( $showupdated && $linkitem['recently_updated'] && 'before' == $showupdatedpos ) {
1380
- $output .= '<span class="recently_updated">' . $updatedlabel . '</span>';
 
1381
  }
1382
 
1383
- $the_link = '#';
1384
- if ( !empty( $linkitem['link_url'] ) ) {
1385
- $the_link = esc_html( $linkitem['link_url'] );
1386
- }
1387
 
1388
- if ( !empty( $extraquerystring ) ) {
1389
- parse_str( $extraquerystring, $expanded_query_string );
1390
- if ( !empty( $expanded_query_string ) ) {
1391
- $the_link = add_query_arg( $expanded_query_string, $the_link );
1392
- }
1393
- }
1394
 
1395
- $cat_extra_query_string = get_metadata( 'linkcategory', $linkitem['term_id'], 'linkextraquerystring', true );
1396
- if ( !empty( $cat_extra_query_string ) ) {
1397
- parse_str( $cat_extra_query_string, $cat_expanded_query_string );
1398
- if ( !empty( $cat_expanded_query_string ) ) {
1399
- $the_link = add_query_arg( $cat_expanded_query_string, $the_link );
1400
  }
1401
- }
1402
 
1403
- $the_second_link = '#';
1404
- if ( !empty( $linkitem['link_second_url'] ) ) {
1405
- $the_second_link = esc_html( stripslashes( $linkitem['link_second_url'] ) );
1406
- }
1407
 
1408
- $the_permalink = '#';
1409
- if ( !empty( $linkitem['link_permalink'] ) ) {
1410
- $the_permalink = $linkitem['link_permalink'];
1411
- }
1412
 
1413
- if ( empty( $linkitem['link_rel'] ) && ( $nofollow || $linkitem['link_no_follow'] ) ) {
1414
- $linkitem['link_rel'] = ' rel="nofollow ' . $linkitem['link_rel'] . '"';
1415
- } else {
1416
- $linkitem['link_rel'] = ' rel="' . $linkitem['link_rel'] . '"';
1417
  }
1418
 
1419
- if ( $use_html_tags ) {
1420
- $descnotes = $linkitem['link_notes'];
1421
- $descnotes = str_replace( '[', '<', $descnotes );
1422
- $descnotes = str_replace( ']', '>', $descnotes );
1423
- $desc = $linkitem['link_description'];
1424
- $desc = str_replace("[", "<", $desc);
1425
- $desc = str_replace("]", ">", $desc);
1426
- $textfield = stripslashes( $linkitem['link_textfield'] );
1427
- $textfield = str_replace( '[', '<', $textfield );
1428
- $textfield = str_replace( ']', '>', $textfield );
1429
- } else {
1430
- $descnotes = esc_html( $linkitem['link_notes'], ENT_QUOTES );
1431
- $desc = esc_html($linkitem['link_description'], ENT_QUOTES);
1432
- $textfield = stripslashes( $linkitem['link_textfield'] );
1433
- }
1434
 
1435
- $cleandesc = $desc;
1436
- $cleanname = esc_html( $linkitem['link_name'], ENT_QUOTES );
1437
 
1438
- if ( 'search' == $mode ) {
1439
- foreach ( $searchterms as $searchterm ) {
1440
- $descnotes = link_library_highlight_phrase( $descnotes, $searchterm, '<span class="highlight_word">', '</span>' );
1441
- $desc = link_library_highlight_phrase( $desc, $searchterm, '<span class="highlight_word">', '</span>' );
1442
- $name = link_library_highlight_phrase( $linkitem['link_name'], $searchterm, '<span class="highlight_word">', '</span>' );
1443
- $textfield = link_library_highlight_phrase( $textfield, $searchterm, '<span class="highlight_word">', '</span>' );
1444
  }
1445
- } else {
1446
- $name = $cleanname;
1447
- }
1448
 
1449
- if ( 'linkname' == $linktitlecontent ) {
1450
- $title = $cleanname;
1451
- } elseif ( 'linkdesc' == $linktitlecontent ) {
1452
- $title = $cleandesc;
1453
- }
1454
 
1455
- if ( $showupdated ) {
1456
- $date_format_string = get_option( 'date_format' );
1457
- $cleandate = date_i18n( $date_format_string, intval( $linkitem['link_updated'] ) );
1458
- if ( substr( $cleandate, 0, 2 ) != '00' ) {
1459
- $title .= ' ('.__('Last updated', 'link-library') . ' ' . date_i18n(get_option('links_updated_date_format'), intval( $linkitem['link_updated'] ) ) .')';
1460
  }
1461
  }
1462
 
1463
- if ( !empty( $title ) ) {
1464
- $title = ' title="' . $title . '"';
1465
- }
1466
 
1467
- $alt = ' alt="' . $cleanname . '"';
1468
 
1469
- $target = $linkitem['link_target'];
1470
- if ( !empty( $target ) ) {
1471
- $target = ' target="' . $target . '"';
1472
- } else {
1473
- $target = $linktarget;
1474
- if ( !empty( $target ) ) {
1475
- $target = ' target="' . $target . '"';
1476
  }
1477
- }
1478
-
1479
- if ( empty( $dragndroporder ) ) {
1480
- $dragndroporder = '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16';
1481
- }
1482
 
1483
- $dragndroparray = explode( ',', $dragndroporder );
1484
 
1485
- $new_entries = array( '13', '14', '15', '16' );
1486
-
1487
- foreach ( $new_entries as $new_entry ) {
1488
- if ( !in_array( $new_entry, $dragndroparray ) ) {
1489
- $dragndroparray[] = $new_entry;
1490
  }
1491
  }
1492
 
1493
- if ( $dragndroparray ) {
1494
- foreach ( $dragndroparray as $arrayelements ) {
1495
- switch ( $arrayelements ) {
1496
 
1497
- case 1: //------------------ Image Output --------------------
1498
- $imageoutput = '';
1499
 
1500
- if ( ( $show_images && !$shownameifnoimage && ( !$nooutputempty || ( $nooutputempty && !empty( $linkitem['link_image'] ) ) ) ) || ( $show_images && $shownameifnoimage && !empty( $linkitem['link_image'] ) && ( !$nooutputempty || ( $nooutputempty && !empty( $linkitem['link_image'] ) ) ) || $usethumbshotsforimages ) ) {
1501
- $imageoutput .= stripslashes( $beforeimage );
1502
-
1503
- if ( !empty( $linkitem['link_image'] ) || $usethumbshotsforimages ) {
1504
- if ( true == $debugmode ) {
1505
- $starttimeimage = microtime ( true );
1506
- }
1507
-
1508
- $imageoutput .= '<a href="';
1509
-
1510
- if ( !$enable_link_popup ) {
1511
- if ( 'primary' == $sourceimage || empty( $sourceimage ) ) {
1512
- $imageoutput .= $the_link;
1513
- } elseif ( 'secondary' == $sourceimage ) {
1514
- $imageoutput .= $the_second_link;
1515
- }
1516
- } else {
1517
- $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 );
1518
- }
1519
-
1520
- $imageoutput .= '" id="link-' . $linkitem['proper_link_id'] . '" class="' . ( $enable_link_popup ? 'thickbox' : 'track_this_link' ) . ' ' . ( $linkitem['link_featured'] ? 'featured' : '' ). '" ' . $linkitem['link_rel'] . $title . $target. '>';
1521
-
1522
- if ( $usethumbshotsforimages && ( !$uselocalimagesoverthumbshots || empty( $uselocalimagesoverthumbshots ) || ( $uselocalimagesoverthumbshots && empty( $linkitem['link_image'] ) ) ) ) {
1523
- if ( $thumbnailgenerator == 'robothumb' ) {
1524
- $imageoutput .= '<img src="http://www.robothumb.com/src/?url=' . $the_link . '&size=' . $generaloptions['thumbnailsize'] . '"';
1525
- } elseif ( $thumbnailgenerator == 'thumbshots' ) {
1526
- if ( !empty( $thumbshotscid ) ) {
1527
- $imageoutput .= '<img src="http://images.thumbshots.com/image.aspx?cid=' . rawurlencode( $thumbshotscid ) . '&v=1&w=120&url=' . $the_link . '"';
1528
- }
1529
- }
1530
- } else if ( !$usethumbshotsforimages || ( $usethumbshotsforimages && $uselocalimagesoverthumbshots && !empty( $linkitem['link_image'] ) ) ) {
1531
- if ( strpos( $linkitem['link_image'], 'http' ) !== false ) {
1532
- $imageoutput .= '<img src="' . $linkitem['link_image'] . '"';
1533
- } else {
1534
- // If it's a relative path
1535
- $imageoutput .= '<img src="' . get_option( 'siteurl' ) . $linkitem['link_image'] . '"';
1536
- }
1537
- }
1538
-
1539
- if ( !$usethumbshotsforimages || ($usethumbshotsforimages && !empty( $thumbshotscid ) ) || ( $usethumbshotsforimages && $uselocalimagesoverthumbshots && !empty( $linkitem['link_image'] ) ) ) {
1540
-
1541
- $imageoutput .= $alt . $title;
1542
-
1543
- if ( !empty( $imageclass ) ) {
1544
- $imageoutput .= ' class="' . $imageclass . '" ';
1545
- }
1546
-
1547
- $imageoutput .= '/>';
1548
-
1549
- $imageoutput .= '</a>';
1550
- }
1551
-
1552
- if ( true == $debugmode ) {
1553
- $output .= '<!-- Time to render image section of link id ' . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimeimage ) . " --> \n";
1554
- }
1555
-
1556
- }
1557
-
1558
- $imageoutput .= stripslashes( $afterimage );
1559
-
1560
- if ( ( !empty( $imageoutput ) || ( $usethumbshotsforimages && !empty( $thumbshotscid ) ) ) && $show_images ) {
1561
- $output .= $imageoutput;
1562
- }
1563
-
1564
- break;
1565
- }
1566
-
1567
- case 2: //------------------ Name Output --------------------
1568
- if ( ( $showname && 2 == $arrayelements && ( !$nooutputempty || ( $nooutputempty && !empty( $name ) ) ) ) ||
1569
- ( $show_images && $shownameifnoimage && empty( $linkitem['link_image'] ) && !$usethumbshotsforimages && 1 == $arrayelements && ( !$nooutputempty || ( $nooutputempty && !empty( $name ) ) ) ) ) {
1570
- if ( true == $debugmode ) {
1571
- $starttimename = microtime ( true );
1572
- }
1573
-
1574
- $output .= stripslashes( $beforelink );
1575
-
1576
- if ( ( 'primary' == $sourcename && $the_link != '#') || ( 'secondary' == $sourcename && $the_second_link != '#' ) || ( 'permalink' == $sourcename && $the_permalink != '#' ) ) {
1577
- $output .= '<a href="';
1578
-
1579
- if ( !$enable_link_popup ) {
1580
- if ( 'primary' == $sourcename || empty( $sourcename ) ) {
1581
- $output .= $the_link;
1582
- } elseif ( 'secondary' == $sourcename ) {
1583
- $output .= $the_second_link;
1584
- } elseif ( 'permalink' == $sourcename ) {
1585
- $output .= $the_permalink;
1586
- }
1587
- } else {
1588
- $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 );
1589
- }
1590
-
1591
- if ( 'description' == $tooltipname && !empty( $desc ) ) {
1592
- $title = ' title="' . $desc . '"';
1593
- }
1594
-
1595
- $output .= '" id="link-' . $linkitem['proper_link_id'] . '" class="' . ( $enable_link_popup ? 'thickbox' : 'track_this_link' ) . ' ' . ( $linkitem['link_featured'] ? ' featured' : '' ). '" ' . $linkitem['link_rel'] . $title . $target. '>';
1596
- }
1597
-
1598
- $output .= $name;
1599
-
1600
- if ( ( 'primary' == $sourcename && $the_link != '#') || ( 'secondary' == $sourcename && $the_second_link != '#' ) ) {
1601
- $output .= '</a>';
1602
- }
1603
-
1604
- if ( $showadmineditlinks && $linkeditoruser ) {
1605
- $output .= $between . '<span class="editlink"><a href="' . esc_url( add_query_arg( array(
1606
- 'action' => 'edit', 'post' => $linkitem['proper_link_id'] ),
1607
- admin_url( 'post.php' ) ) ) . '">(' . __('Edit', 'link-library') . ')</a></span>';
1608
- }
1609
-
1610
- if ( $showupdated && $linkitem['recently_updated'] && 'after' == $showupdatedpos ) {
1611
- $output .= '<span class="recently_updated">' . $updatedlabel . '</span>';
1612
- }
1613
-
1614
- $output .= stripslashes( $afterlink );
1615
-
1616
- if ( true == $debugmode ) {
1617
- $output .= "\n<!-- Time to render name section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimename ) . " --> \n";
1618
- }
1619
- }
1620
-
1621
- break;
1622
-
1623
- case 3: //------------------ Date Output --------------------
1624
-
1625
- if ( $showdate && ( !$nooutputempty || ( $nooutputempty && !empty( $linkitem['link_updated'] ) ) ) ) {
1626
- if ( true == $debugmode ) {
1627
- $starttimedate = microtime ( true );
1628
- }
1629
-
1630
- $formatteddate = date_i18n( get_option( 'links_updated_date_format' ), intval( $linkitem['link_updated'] ) );
1631
-
1632
- $output .= $between . stripslashes( $beforedate ) . $formatteddate . stripslashes( $afterdate );
1633
-
1634
- if ( true == $debugmode ) {
1635
- $output .= "\n<!-- Time to render date section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimedate ) . " --> \n";
1636
- }
1637
- }
1638
-
1639
- break;
1640
-
1641
- case 4: //------------------ Description Output --------------------
1642
-
1643
- if ( $showdescription && ( !$nooutputempty || ( $nooutputempty && !empty( $desc ) ) ) ) {
1644
- if ( true == $debugmode ) {
1645
- $starttimedesc = microtime ( true );
1646
- }
1647
-
1648
- $output .= $between . stripslashes( $beforedesc ) . $desc . stripslashes( $afterdesc );
1649
-
1650
- if ( true == $debugmode ) {
1651
- $output .= "\n<!-- Time to render description section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimedesc ) . " --> \n";
1652
- }
1653
- }
1654
-
1655
- break;
1656
-
1657
- case 5: //------------------ Notes Output --------------------
1658
-
1659
- if ( $shownotes && ( !$nooutputempty || ( $nooutputempty && !empty( $descnotes ) ) ) ) {
1660
- if ( true == $debugmode ) {
1661
- $starttimenotes = microtime ( true );
1662
- }
1663
-
1664
- $output .= $between . stripslashes( $beforenote ) . $descnotes . stripslashes( $afternote );
1665
-
1666
- if ( true == $debugmode ) {
1667
- $output .= "\n<!-- Time to render notes section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimenotes ) . " --> \n";
1668
- }
1669
- }
1670
-
1671
- break;
1672
-
1673
- case 6: //------------------ RSS Icons Output --------------------
1674
-
1675
- if ( ( $show_rss || $show_rss_icon || $rsspreview ) && ( !$nooutputempty || ( $nooutputempty && !empty( $linkitem['link_rss'] ) ) ) ) {
1676
- if ( true == $debugmode ) {
1677
- $starttimerssicon = microtime ( true );
1678
- }
1679
-
1680
- $output .= stripslashes( $beforerss ) . '<div class="rsselements">';
1681
-
1682
- if ( $show_rss && !empty( $linkitem['link_rss'] ) ) {
1683
- $output .= $between . '<a class="rss" href="' . $linkitem['link_rss'] . '">RSS</a>';
1684
- }
1685
-
1686
- if ( $show_rss_icon && !empty( $linkitem['link_rss'] ) ) {
1687
- $output .= $between . '<a class="rssicon" href="' . $linkitem['link_rss'] . '"><img src="' . plugins_url( 'icons/feed-icon-14x14.png', __FILE__ ) . '" /></a>';
1688
- }
1689
-
1690
- if ( $rsspreview && !empty( $linkitem['link_rss'] ) ) {
1691
- $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>';
1692
- }
1693
-
1694
- $output .= '</div><!-- Div RSS -->' . stripslashes( $afterrss );
1695
 
1696
- if ( true == $debugmode ) {
1697
- $output .= "\n<!-- Time to render RSS Icon section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimerssicon ) . " --> \n";
1698
- }
1699
- }
1700
 
1701
- if ( $rssfeedinline && $linkitem['link_rss'] ) {
1702
- if ( $rss_items ) {
1703
- $output .= '<div id="ll_rss_results">';
1704
- $date_format_string = get_option( 'date_format' );
1705
 
1706
- foreach ( $rss_items as $item ) {
1707
- $output .= '<div class="chunk" style="padding:0 5px 5px;">';
1708
- $item_timestamp = strtotime( $item->get_date( 'j F Y | g:i a' ) );
1709
 
1710
- $formatted_date = date_i18n( $date_format_string, $item_timestamp );
1711
- $output .= '<div class="rsstitle"><a target="feedwindow" href="' . $item->get_permalink() . '">' . $item->get_title() . '</a> - ' . $formatted_date . '</div><!-- RSS Feed title -->';
 
1712
 
1713
- if ( $rssfeedinlinecontent ) {
1714
- $output .= '<div class="rsscontent">' . $item->get_description() . '</div><!-- RSS Content -->';
1715
- }
1716
 
1717
- $output .= '</div><!-- RSS Chunk -->';
1718
- $output .= '<br />';
1719
- }
 
1720
 
1721
- $output .= '</div><!-- RSS Results -->';
1722
- }
1723
- }
1724
- break;
1725
- case 7: //------------------ Web Link Output --------------------
1726
-
1727
- if ( 'false' != $displayweblink &&
1728
- ( !$nooutputempty ||
1729
- ( $nooutputempty && !empty( $the_link ) && 'label' != $displayweblink && '#' != $the_link && 'primary' == $sourceweblink ) ||
1730
- ( $nooutputempty && !empty( $the_second_link ) && 'label' != $displayweblink && '#' != $the_second_link && 'secondary' == $sourceweblink ) ||
1731
- ( $nooutputempty && !empty( $weblinklabel ) && 'label' == $displayweblink && !empty( $the_link ) && '#' != $the_link && 'primary' == $sourceweblink ) ||
1732
- ( $nooutputempty && !empty( $weblinklabel ) && 'label' == $displayweblink && !empty( $the_second_link ) && '#' != $the_second_link && 'secondary' == $sourceweblink )
1733
- ) ) {
1734
- if ( true == $debugmode ) {
1735
- $starttimerweblink = microtime ( true );
1736
- }
1737
-
1738
- if ( 'addressonly' == $displayweblink ) {
1739
- $output .= $between . stripslashes( $beforeweblink );
1740
- $output .= $the_link;
1741
- $output .= stripslashes( $afterweblink );
1742
- } else {
1743
- $output .= $between . stripslashes( $beforeweblink ) . '<a href="';
1744
-
1745
- if ( 'primary' == $sourceweblink || empty( $sourceweblink ) ) {
1746
- $output .= $the_link;
1747
- } elseif ( 'secondary' == $sourceweblink ) {
1748
- $output .= $the_second_link;
1749
- }
1750
-
1751
- if ( !empty( $target ) && !empty( $weblinktarget ) ) {
1752
- $new_target_string = '="' . $weblinktarget . ' ';
1753
- $weblinktarget = str_replace( '="', $new_target_string, $target );
1754
- } elseif ( empty( $target ) && !empty( $weblinktarget ) ) {
1755
- $weblinktarget = ' target="' . $weblinktarget . '"';
1756
- }
1757
-
1758
- $output .= '" id="link-' . $linkitem['proper_link_id'] . '" class="track_this_link" ' . $weblinktarget . '>';
1759
-
1760
- if ( 'address' == $displayweblink ) {
1761
- if ( ( 'primary' == $sourceweblink || empty( $sourceweblink ) ) && !empty( $the_link ) ) {
1762
- $output .= $the_link;
1763
- } elseif ( 'secondary' == $sourceweblink && !empty( $the_second_link ) ) {
1764
- $output .= $the_second_link;
1765
- }
1766
- } elseif ( 'label' == $displayweblink && !empty( $weblinklabel ) ) {
1767
- $output .= stripslashes( $weblinklabel );
1768
- }
1769
-
1770
- $output .= '</a>' . stripslashes( $afterweblink );
1771
- }
1772
-
1773
- if ( true == $debugmode ) {
1774
- $output .= "\n<!-- Time to render web link section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimerweblink ) . " --> \n";
1775
- }
1776
- }
1777
 
1778
- break;
1779
- case 8: //------------------ Telephone Output --------------------
 
1780
 
1781
- if ( 'false' != $showtelephone &&
1782
- ( !$nooutputempty ||
1783
- ( $nooutputempty && !empty( $linkitem['link_telephone'] ) && ( 'link' == $showtelephone || 'plain' == $showtelephone ) ) ||
1784
- ( $nooutputempty && !empty( $telephonelabel ) && 'label' == $showtelephone )
1785
- )
1786
- ) {
1787
- if ( true == $debugmode ) {
1788
- $starttimertelephone = microtime ( true );
1789
- }
1790
 
1791
- $output .= $between . stripslashes( $beforetelephone );
 
 
1792
 
1793
- if ( 'plain' != $showtelephone ) {
1794
- $output .= '<a href="';
 
1795
 
1796
- if ( ( 'primary' == $sourcetelephone || empty( $sourcetelephone ) ) && !empty( $the_link ) ) {
1797
- $output .= $the_link;
1798
- } elseif ( 'secondary' == $sourcetelephone && !empty( $the_second_link ) ) {
1799
- $output .= $the_second_link;
1800
- }
 
 
 
 
 
 
 
 
 
 
 
1801
 
1802
- $output .= '" id="link-' . $linkitem['proper_link_id'] . '" class="track_this_link" >';
1803
- }
 
 
 
 
 
 
 
 
 
 
1804
 
1805
- if ( 'link' == $showtelephone || 'plain' == $showtelephone ) {
1806
- $output .= $linkitem['link_telephone'];
1807
- } elseif ( 'label' == $showtelephone ) {
1808
- $output .= $telephonelabel;
1809
- }
1810
 
1811
- if ( 'plain' != $showtelephone ) {
1812
- $output .= '</a>';
1813
- }
 
 
 
 
 
 
1814
 
1815
- $output .= stripslashes( $aftertelephone );
 
1816
 
1817
- if ( true == $debugmode ) {
1818
- $output .= "\n<!-- Time to render telephone section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimertelephone ) . " --> \n";
1819
- }
1820
- }
1821
- break;
1822
- case 9: //------------------ E-mail Output --------------------
1823
-
1824
- if ( 'false' != $showemail && ( !$nooutputempty || ( $nooutputempty && !empty( $linkitem['link_email'] ) ) ) ) {
1825
- if ( true == $debugmode ) {
1826
- $starttimeremail = microtime ( true );
1827
- }
1828
-
1829
- $output .= $between . stripslashes( $beforeemail );
1830
-
1831
- if ( 'plain' != $showemail ) {
1832
- $output .= '<a href="';
1833
-
1834
- if ( 'mailto' == $showemail || 'mailtolabel' == $showemail ) {
1835
- if ( false === strpos( $linkitem['link_email'], '@' ) ) {
1836
- $output .= esc_url( $linkitem['link_email'] );
1837
- } else {
1838
- $output .= 'mailto:' . $linkitem['link_email'];
1839
- }
1840
- } elseif ( 'command' == $showemail || 'commandlabel' == $showemail ) {
1841
- $newcommand = str_replace( '#email', $linkitem['link_email'], $emailcommand );
1842
- $cleanlinkname = str_replace( ' ', '%20', $linkitem['link_name'] );
1843
- $newcommand = str_replace( '#company', $cleanlinkname, $newcommand );
1844
- $output .= $newcommand;
1845
- }
1846
-
1847
- $output .= '">';
1848
- }
1849
-
1850
- if ( 'plain' == $showemail || 'mailto' == $showemail || 'command' == $showemail ) {
1851
- $output .= $linkitem['link_email'];
1852
- } elseif ( 'mailtolabel' == $showemail || 'commandlabel' == $showemail ) {
1853
- $output .= $emaillabel;
1854
- }
1855
-
1856
- if ( 'plain' != $showemail ) {
1857
- $output .= '</a>';
1858
- }
1859
-
1860
- $output .= stripslashes( $afteremail );
1861
-
1862
- if ( true == $debugmode ) {
1863
- $output .= "\n<!-- Time to render e-mail section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimeremail ) . " --> \n";
1864
- }
1865
- }
1866
 
1867
- break;
1868
- case 10: //------------------ Link Hits Output --------------------
1869
 
1870
- if ( $showlinkhits && ( !$nooutputempty || ( $nooutputempty && !empty( $linkitem['link_visits'] ) ) ) ) {
1871
- if ( true == $debugmode ) {
1872
- $starttimerhits = microtime ( true );
1873
- }
 
 
 
 
 
1874
 
1875
- $output .= $between . stripslashes( $beforelinkhits );
1876
- $output .= $linkitem['link_visits'];
1877
- $output .= stripslashes( $afterlinkhits );
1878
 
1879
- if ( true == $debugmode ) {
1880
- $output .= "\n<!-- Time to render link hits section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimerhits ) . " --> \n";
1881
- }
1882
- }
1883
 
1884
- break;
 
 
 
 
1885
 
1886
- case 11: //------------------ Link Rating Output --------------------
 
1887
 
1888
- if ( $showrating && ( !$nooutputempty || ( $nooutputempty && !empty( $linkitem['link_rating'] ) ) ) ) {
1889
- if ( true == $debugmode ) {
1890
- $starttimerrating = microtime ( true );
1891
- }
 
1892
 
1893
- $output .= $between . stripslashes( $beforelinkrating );
1894
- $output .= $linkitem['link_rating'];
1895
- $output .= stripslashes( $afterlinkrating );
1896
 
1897
- if ( true == $debugmode ) {
1898
- $output .= "\n<!-- Time to render link rating section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimerrating ) . " --> \n";
1899
- }
1900
- }
1901
 
1902
- break;
 
 
 
 
 
1903
 
1904
- case 12: //------------------ Link Large Description Output --------------------
 
 
 
1905
 
1906
- if ( $showlargedescription && ( !$nooutputempty || ( $nooutputempty && !empty( $textfield ) ) ) ) {
1907
- if ( true == $debugmode ) {
1908
- $starttimerlargedesc = microtime ( true );
1909
- }
1910
 
1911
- $output .= $between . stripslashes( $beforelargedescription );
1912
- $output .= $textfield;
1913
- $output .= stripslashes( $afterlargedescription );
1914
 
1915
- if ( true == $debugmode ) {
1916
- $output .= "\n<!-- Time to render link large description section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimerlargedesc ) . " --> \n";
1917
- }
1918
- }
 
 
 
 
 
 
 
 
1919
 
1920
- break;
 
1921
 
1922
- case 13: //------------------ Link Large Description Output --------------------
 
 
 
 
1923
 
1924
- if ( $showsubmittername && ( !$nooutputempty || ( $nooutputempty && !empty( $linkitem['link_submitter_name'] ) ) ) ) {
1925
- if ( true == $debugmode ) {
1926
- $starttimersubmittername = microtime ( true );
1927
- }
1928
 
1929
- $output .= $between . stripslashes( $beforesubmittername );
1930
- $output .= $linkitem['link_submitter_name'];
1931
- $output .= stripslashes( $aftersubmittername );
1932
 
1933
- if ( true == $debugmode ) {
1934
- $output .= "\n<!-- Time to render link large description section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimersubmittername ) . " --> \n";
1935
- }
1936
- }
1937
 
1938
- break;
 
1939
 
1940
- case 14: //------------------ Category Description Output --------------------
 
 
 
1941
 
1942
- if ( isset( $linkitem['category_description'] ) ) {
1943
- $linkitem['category_description'] = str_replace( '[', '<', $linkitem['category_description'] );
1944
- $linkitem['category_description'] = str_replace( ']', '>', $linkitem['category_description'] );
1945
- } else {
1946
- $linkitem['category_description'] = '';
1947
- }
1948
 
1949
- if ( $showcatdesc && ( !$nooutputempty || ( $nooutputempty && !empty( $linkitem['category_description'] ) ) ) ) {
 
 
 
1950
 
1951
- if ( true == $debugmode ) {
1952
- $starttimedesc = microtime ( true );
1953
- }
1954
 
1955
- $output .= $between . stripslashes( $beforecatdesc ) . $linkitem['category_description'] . stripslashes( $aftercatdesc );
1956
 
1957
- if ( true == $debugmode ) {
1958
- $output .= "\n<!-- Time to render category description section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimedesc ) . " --> \n";
1959
- }
1960
- }
1961
 
1962
- break;
 
 
1963
 
1964
- case 15: //------------------ Link Tags Output --------------------
 
 
 
1965
 
1966
- $link_tags = wp_get_post_terms( $linkitem['proper_link_id'], 'link_library_tags' );
1967
 
1968
- if ( $showlinktags && ( !$nooutputempty || ( $nooutputempty && !empty( $link_tags ) ) ) ) {
1969
 
1970
- if ( true == $debugmode ) {
1971
- $starttimedesc = microtime ( true );
1972
- }
 
1973
 
1974
- $output .= $between . stripslashes( $beforelinktags );
 
 
1975
 
1976
- $link_tags_array = array();
1977
- foreach ( $link_tags as $link_tag ) {
1978
- $link_tags_array[] = $link_tag->name;
1979
- }
1980
- $output .= implode( ',', $link_tags_array );
1981
- $output .= stripslashes( $afterlinktags );
1982
 
1983
- if ( true == $debugmode ) {
1984
- $output .= "\n<!-- Time to render category description section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimedesc ) . " --> \n";
1985
- }
1986
- }
1987
 
1988
- break;
1989
- case 16: //------------------ Link Price Output --------------------
1990
-
1991
- if ( $showlinkprice && ( !$nooutputempty || ( $nooutputempty && !empty( $linkitem['link_price'] ) ) ) ) {
1992
- if ( true == $debugmode ) {
1993
- $starttimersubmittername = microtime ( true );
1994
- }
1995
-
1996
- $output .= $between . stripslashes( $beforelinkprice );
1997
- if ( 'before' == $linkcurrencyplacement && !empty( $linkcurrency ) && $linkitem['link_price'] > 0 ) {
1998
- $output .= $linkcurrency;
1999
- }
2000
-
2001
- $value = number_format((float)$linkitem['link_price'], 2, '.', '');
2002
- if ( $value == 0 ) {
2003
- $value = __( 'Free', 'link-library' );
2004
- }
2005
- $output .= $value;
2006
-
2007
- if ( 'after' == $linkcurrencyplacement && !empty( $linkcurrency ) && $linkitem['link_price'] > 0 ) {
2008
- $output .= $linkcurrency;
2009
- }
2010
- $output .= stripslashes( $afterlinkprice );
2011
-
2012
- if ( true == $debugmode ) {
2013
- $output .= "\n<!-- Time to render link large description section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimersubmittername ) . " --> \n";
2014
- }
2015
- }
2016
 
2017
- break;
2018
- }
 
2019
  }
2020
- }
2021
 
2022
- $output .= stripslashes( $afteritem ) . "\n";
 
 
2023
 
2024
- if ( $linkaddfrequency > 0 ) {
2025
- if ( 0 == $linkcount % $linkaddfrequency ) {
2026
- $output .= stripslashes( $addafterlink );
2027
  }
2028
  }
2029
 
2030
- if ( true == $debugmode ) {
2031
- $output .= '<!-- Time to render link id ' . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $linkstarttime ) . " --> \n";
2032
- }
2033
 
2034
- $linkcount++;
2035
 
2036
- }
 
2037
 
2038
- // Close the category
2039
- if ( $the_link_query->found_posts > 0 ) {
2040
- if ( ( is_bool( $displayastable ) && $displayastable ) || 'true' == $displayastable ) {
2041
- $output .= "\t</table>\n";
2042
- } elseif ( ( is_bool( $displayastable ) && ! $displayastable ) || 'false' == $displayastable ) {
2043
- $output .= "\t</ul>\n";
2044
- }
2045
- }
2046
- }
2047
 
2048
- if ( !empty( $catlistwrappers ) && !empty( $beforecastlist1 ) ) {
2049
- $output .= '</div><!-- Div cat list wrappers -->';
2050
- }
2051
 
2052
- if ( !empty( $afterlastlink ) && $the_link_query->found_posts > 0 ) {
2053
- $output .= stripslashes( $afterlastlink );
2054
- }
 
2055
 
2056
- if ( $showlinksonclick ) {
2057
- $output .= '</div><!-- Div Show Links on click -->';
2058
  }
 
 
2059
 
2060
- $currentcategory = $currentcategory + 1;
 
 
2061
 
2062
- if ( $display_children && $cat_has_children ) {
2063
- $output .= RenderLinkLibrary( $LLPluginClass, $generaloptions, $libraryoptions, $settings, $onlycount, $link_category->term_id, $level + 1, $display_children, $hidechildcatlinks );
2064
- }
2065
 
2066
- if ( $combineresults ) {
2067
- break;
2068
- } else {
2069
- $output .= "</div><!-- Div End Category -->\n";
2070
- }
2071
  }
2072
  }
2073
  }
2074
- } else {
2075
- $output .= __( 'All of your links must be assigned at least to one category to be displayed', 'link-library');
2076
 
2077
- if ( isset( $_GET['searchll'] ) ) {
2078
- $output .= $searchnoresultstext . "\n";
2079
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2080
  }
2081
 
2082
  if ( $usethumbshotsforimages ) {
@@ -2086,19 +1600,23 @@ function RenderLinkLibrary( $LLPluginClass, $generaloptions, $libraryoptions, $s
2086
  $output .= '<div class="llthumbshotsnotice"><a href="http://www.thumbshots.com" target="_blank" title="Thumbnails Screenshots by Thumbshots">Thumbnail Screenshots by Thumbshots</a></div>';
2087
  }
2088
  }
2089
- } else {
2090
- $output .= __( 'No links found', 'link-library' );
2091
- }
2092
 
2093
- if ( $level == 0 && $pagination && 'search' != $mode && ( 'AFTER' == $paginationposition || empty( $pagination ) ) ) {
2094
- $previouspagenumber = $pagenumber - 1;
2095
- $nextpagenumber = $pagenumber + 1;
2096
- $pageID = get_queried_object_id();
2097
 
2098
- $output .= link_library_display_pagination( $previouspagenumber, $nextpagenumber, $number_of_pages, $pagenumber, $showonecatonly, $showonecatmode, $AJAXcatid, $settings, $pageID, $currentcatletter );
2099
- }
 
 
 
 
 
 
 
 
 
2100
 
2101
- if ( $level == 0 ) {
2102
  $xpath = $LLPluginClass->relativePath( dirname( __FILE__ ), ABSPATH );
2103
  $nonce = wp_create_nonce( 'll_tracker' );
2104
 
@@ -2108,55 +1626,40 @@ function RenderLinkLibrary( $LLPluginClass, $generaloptions, $libraryoptions, $s
2108
  $output .= "jQuery('.arrow-up').hide();\n";
2109
  $output .= "jQuery('#linklist" . $settings . " a.track_this_link').click(function() {\n";
2110
  $output .= "linkid = this.id;\n";
2111
- $output .= "linkid = linkid.substring(5);\n";
2112
- $output .= "path = '" . $xpath . "';\n";
2113
  $output .= "jQuery.ajax( {" .
2114
- " type: 'POST'," .
2115
- " url: '" . admin_url( 'admin-ajax.php' ) . "', " .
2116
- " data: { action: 'link_library_tracker', " .
2117
- " _ajax_nonce: '" . $nonce . "', " .
2118
- " id:linkid, xpath:path } " .
2119
- " });\n";
2120
  $output .= "return true;\n";
2121
  $output .= "});\n";
2122
  $output .= "jQuery('#linklist" . $settings . " .expandlinks').click(function() {\n";
2123
  $output .= "target = '.' + jQuery(this).attr('id');\n";
2124
- $output .= "if ( jQuery( target ).is(':visible') ) {\n";
2125
- $output .= "jQuery(target).slideUp();\n";
2126
- $output .= "jQuery(this).children('img').attr('src', '";
2127
-
2128
- if ( !empty( $expandiconpath ) ) {
2129
- $output .= $expandiconpath;
2130
- } else {
2131
- $output .= plugins_url( 'icons/expand-32.png', __FILE__ );
2132
- }
2133
-
2134
- $output .= "');\n";
2135
- $output .= "} else {\n";
2136
- $output .= "jQuery(target).slideDown();\n";
2137
- $output .= "jQuery(this).children('img').attr('src', '";
2138
-
2139
- if ( !empty( $collapseiconpath ) ) {
2140
- $output .= $collapseiconpath;
2141
- } else {
2142
- $output .= plugins_url( 'icons/collapse-32.png', __FILE__ );
2143
- }
2144
-
2145
- $output .= "');\n";
2146
- $output .= "}\n";
2147
  $output .= "});\n";
2148
  $output .= "});\n";
2149
  $output .= "</script>";
2150
  unset( $xpath );
2151
- }
2152
-
2153
- $currentcategory = $currentcategory + 1;
2154
 
2155
- if ( $level == 0 ) {
2156
- $output .= '</div><!-- Div Linklist -->';
2157
 
2158
- $output .= "\n<!-- End of Link Library Output -->\n\n";
 
 
 
 
 
 
 
2159
  }
2160
 
 
 
2161
  return do_shortcode( $output );
2162
  }
24
  return $str;
25
  }
26
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  function link_library_display_pagination( $previouspagenumber, $nextpagenumber, $numberofpages, $pagenumber,
28
  $showonecatonly, $showonecatmode, $AJAXcatid, $settings, $pageID, $currentcatletter ) {
29
 
40
  }
41
 
42
  if ( 1 < $numberofpages ) {
43
+ $paginationoutput = '<div class="pageselector">';
44
 
45
  if ( 1 != $pagenumber ) {
46
  $paginationoutput .= '<span class="previousnextactive">';
49
  if ( 'AJAX' == $showonecatmode ) {
50
  $paginationoutput .= "<a href=\"#\" onClick=\"showLinkCat" . $settings . "('', '" . $settings . "', " . $previouspagenumber . ");return false;\" >" . __('Previous', 'link-library') . '</a>';
51
  } else {
52
+ $argumentarray = array ( 'linkresultpage' => $previouspagenumber );
 
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
  if ( 'AJAX' == $showonecatmode ) {
97
  $paginationoutput .= "<a href=\"#\" onClick=\"showLinkCat" . $settings . "('', '" . $settings . "', " . $counter . ");return false;\" >" . $counter . '</a>';
98
  } else {
99
+ $argumentarray = array ( 'linkresultpage' => $counter );
100
 
101
+ if ( !empty( $currentcatletter ) ) {
102
  $argumentarray['catletter'] = $currentcatletter;
103
  }
104
 
148
  if ( 'AJAX' == $showonecatmode ) {
149
  $paginationoutput .= "<a href=\"#\" onClick=\"showLinkCat" . $settings . "('', '" . $settings . "', " . $nextpagenumber . ");return false;\" >" . __('Next', 'link-library') . '</a>';
150
  } else {
151
+ $argumentarray = array ( 'page_id' => $pageID, 'linkresultpage' => $nextpagenumber );
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
  $paginationoutput .= '<span class="previousnextinactive">' . __('Next', 'link-library') . '</span>';
178
  }
179
 
180
+ $paginationoutput .= '</div>';
181
  }
182
 
183
  if ( 'AJAX' == $showonecatmode ) {
190
  $paginationoutput .= "if (typeof(ajaxobject) != \"undefined\") { ajaxobject.abort(); }\n";
191
 
192
  $paginationoutput .= "\tjQuery('#contentLoading" . $settings . "').toggle();" .
193
+ "jQuery.ajax( {" .
194
+ " type: 'POST', " .
195
+ " url: '" . admin_url( 'admin-ajax.php' ) . "', " .
196
+ " data: { action: 'link_library_ajax_update', " .
197
+ " _ajax_nonce: '" . $nonce . "', " .
198
+ " id : _incomingID, " .
199
+ " settings : _settingsID, " .
200
+ " ajaxupdate : true, " .
201
+ " linkresultpage: _pagenumber }, " .
202
+ " success: function( data ){ " .
203
+ " jQuery('#linklist" . $settings. "').html( data ); " .
204
+ " jQuery('#contentLoading" . $settings . "').toggle();\n" .
205
+ " } } ); ";
206
  $paginationoutput .= "}\n";
207
  $paginationoutput .= "}\n";
208
 
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
  $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( $categorylist ) ) {
240
+ $categorylistarray = explode( ',', $categorylist );
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( $excludecategorylist ) ) {
248
+ $excludecategorylistarray = explode( ',', $excludecategorylist );
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.';
256
 
257
  $linkeditoruser = current_user_can( 'manage_links' );
258
 
259
+ $output = "\n<!-- Beginning of Link Library Output -->\n\n";
 
 
 
 
260
 
261
  $currentcategory = 1;
262
  $categoryname = '';
263
  $mode = 'normal';
264
 
 
265
  if ( $showonecatonly && 'AJAX' == $showonecatmode && isset( $AJAXcatid ) && empty( $AJAXcatid ) ) {
266
  $AJAXnocatset = true;
267
+ } else {
268
+ $AJAXnocatset = false;
 
 
 
 
 
 
 
 
 
 
269
  }
270
 
271
  if ( $showonecatonly && 'AJAX' == $showonecatmode && isset( $AJAXcatid ) && !empty( $AJAXcatid ) && ( !isset( $_GET['searchll'] ) || empty( $_GET['searchll'] ) ) ) {
272
+ $categorylist = $AJAXcatid;
273
  } elseif ($showonecatonly && 'HTMLGET' == $showonecatmode && isset( $_GET['cat_id'] ) && ( !isset( $_GET['searchll'] ) || ( isset( $_GET['searchll'] ) && empty( $_GET['searchll'] ) ) ) ) {
274
+ $categorylist = intval( $_GET['cat_id'] );
275
+ $AJAXcatid = $categorylist;
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
  }elseif ( $showonecatonly && 'HTMLGETPERM' == $showonecatmode && empty( $_GET['searchll'] ) ) {
281
  global $wp_query;
282
 
283
+ if ( isset( $wp_query->query_vars['cat_name'] ) ) {
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( $defaultsinglecat ) && ( !isset( $_GET['searchll'] ) || ( isset( $_GET['searchll'] ) && empty( $_GET['searchll'] ) ) ) ) {
294
+ $categorylist = $defaultsinglecat;
295
+ $AJAXcatid = $categorylist;
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
+ $categorylist = intval( $_GET['cat_id'] );
298
+ $AJAXcatid = $categorylist;
299
  $defaultsinglecat = $AJAXcatid;
300
+ } elseif ( $showonecatonly && ( !isset( $AJAXcatid ) || empty( $AJAXcatid ) ) && empty( $defaultsinglecat ) && empty( $_GET['searchll'] ) ) {
301
+ $catquery = 'SELECT distinct t.name, t.term_id ';
302
+ $catquery .= 'FROM ' . $LLPluginClass->db_prefix() . 'terms t ';
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
+ $catquery .= 'AND l.link_id is not NULL AND l.link_description not like "%LinkLibrary:AwaitingModeration:RemoveTextToApprove%" ';
 
 
311
  }
312
 
313
+ if ( !empty( $categorylist ) ) {
314
+ $catquery .= ' AND t.term_id in (' . $categorylist. ')';
 
 
 
 
 
 
315
  }
316
 
317
+ if ( !empty( $excludecategorylist ) ) {
318
+ $catquery .= ' AND t.term_id not in (' . $excludecategorylist . ')';
319
  }
320
 
321
+ if ( false == $showinvisible && ( false == $showinvisibleadmin || ( true == $showinvisibleadmin && ! $linkeditoruser ) ) ) {
322
+ $catquery .= ' AND l.link_visible != "N"';
323
  }
324
 
325
+ if ( true == $current_user_links && is_user_logged_in() ) {
326
+ $user_data = wp_get_current_user();
327
+ $name_field_value = $user_data->display_name;
328
 
329
+ $catquery .= 'AND le.link_submitter = "' . $name_field_value . '" ';
 
330
  }
331
 
332
+ $mode = 'normal';
 
 
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 ( true == $featuredfirst ) {
351
+ $catquery .= ' le.link_featured DESC, ';
352
+ }
 
 
353
 
354
+ if ( 'name' == $linkorder || 'random' == $linkorder || 'hits' == $linkorder ) {
355
+ $catquery .= 'link_name ' . ( in_array( $linkdirection, $validdirections ) ? $direction : 'ASC' );
356
+ } elseif ( 'id' == $linkorder ) {
357
+ $catquery .= 'link_id ' . ( in_array( $linkdirection, $validdirections ) ? $direction : 'ASC' );
358
+ } elseif ( 'order' == $linkorder ) {
359
+ $catquery .= 'link_order ' . ( in_array( $linkdirection, $validdirections ) ? $direction : 'ASC' );
360
+ } elseif ( 'date' == $linkorder ) {
361
+ $catquery .= 'link_updated ' . ( in_array( $linkdirection, $validdirections ) ? $direction : 'ASC' );
362
+ }
363
 
364
+ $catitems = $wpdb->get_results( $catquery );
365
 
366
  if ( $debugmode ) {
367
+ $output .= "\n<!-- AJAX Default Category Query: " . print_r( $catquery, TRUE ) . "-->\n\n";
368
+ $output .= "\n<!-- AJAX Default Category Results: " . print_r( $catitems, TRUE ) . "-->\n\n";
369
  }
370
 
371
+ if ( $catitems ) {
372
+ $categorylist = $catitems[0]->term_id;
373
+ $AJAXcatid = $categorylist;
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( $searchstring, '"', $offset ) ) {
385
  if ( 0 == $offset ) {
386
+ $offset = strpos( $searchstring, '"' );
387
  } else {
388
+ $endpos = strpos( $searchstring, '"', $offset + 1 );
389
+ $searchterms[] = substr( $searchstring, $offset + 1, $endpos - $offset - 2 );
390
  $strlength = ( $endpos + 1 ) - ( $offset + 1 );
391
+ $searchstring = substr_replace( $searchstring, '', $offset - 1, $endpos + 2 - ( $offset ) );
392
  $offset = 0;
393
  }
394
  }
395
 
396
+ if ( ! empty( $searchstring ) ) {
397
+ $searchterms = array_merge( $searchterms, explode( " ", $searchstring ) );
398
  }
399
+
400
+ if ( !empty( $searchterms ) ) {
401
  $mode = 'search';
 
402
  }
403
  }
404
 
405
+ $currentcatletter = '';
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( $excludecategorylist ) && empty( $singlelinkid ) ) {
452
+ $linkquery .= ' AND t.term_id not in (' . $excludecategorylist . ')';
453
+ }
454
 
455
+ if ( !empty( $singlelinkid ) && intval( $singlelinkid ) ) {
456
+ $linkquery .= ' AND l.link_id = ' . $singlelinkid . ' ';
457
+ }
458
 
459
+ if ( false == $showinvisible && ( false == $showinvisibleadmin || ( true == $showinvisibleadmin && ! $linkeditoruser ) ) ) {
460
+ $linkquery .= ' AND l.link_visible != "N" ';
461
+ }
462
 
463
+ if ( true == $current_user_links && is_user_logged_in() ) {
464
+ $user_data = wp_get_current_user();
465
+ $name_field_value = $user_data->display_name;
 
 
 
 
466
 
467
+ $linkquery .= 'AND le.link_submitter = "' . $name_field_value . '" ';
468
+ }
469
+
470
+ if ( !empty( $searchterms ) ) {
471
+ $mode = 'search';
472
+ $termnb = 1;
473
+
474
+ foreach( $searchterms as $searchterm ) {
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
+ if ( false == $hidecategorynames ) {
488
+ $linkquery .= ' OR name like "%' . $searchterm . '%" ';
489
+ }
490
 
491
+ if ( $shownotes ) {
492
+ $linkquery .= ' OR link_notes like "%' . $searchterm . '%" ';
493
+ }
494
+
495
+ if ( $showdescription ) {
496
+ $linkquery .= ' OR link_description like "%' . $searchterm . '%" ';
497
+ }
498
+
499
+ if ( $showlargedescription ) {
500
+ $linkquery .= ' OR link_textfield like "%' . $searchterm . '%" ';
 
501
  }
502
  }
503
  }
504
  }
505
 
506
+ $linkquery .= ')';
507
+ }
508
+
509
+ $linkquery .= ' ORDER by ';
510
+
511
+ if ( !$combineresults ) {
512
+ if ( 'name' == $order ) {
513
+ $linkquery .= ' name ' . ( in_array( $direction, $validdirections ) ? $direction : 'ASC' );
514
+ } elseif ( 'id' == $order ) {
515
+ $linkquery .= ' t.term_id ' . ( in_array( $direction, $validdirections ) ? $direction : 'ASC' );
516
+ } elseif ( 'order' == $order ) {
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
+ $linkquery .= ', ';
523
+ }
 
 
524
 
525
+ if ( $featuredfirst ) {
526
+ $linkquery .= ' link_featured DESC, ';
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
+ if ( isset( $_POST['linkresultpage'] ) ) {
552
+ $pagenumber = $_POST['linkresultpage'];
553
+ } elseif ( isset( $_GET['linkresultpage'] ) ) {
554
+ $pagenumber = $_GET['linkresultpage'];
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
+ if ( !empty( $singlelinkid ) && intval( $singlelinkid ) ) {
566
+ $linkquery .= ' LIMIT 0, 1';
567
+ }
568
+
569
+ if ( true == $debugmode ) {
570
+ $linkquerystarttime = microtime ( true );
571
+ }
572
+
573
+ $linkitems = $wpdb->get_results( $linkquery, ARRAY_A );
574
+
575
+ if ( $debugmode ) {
576
+ $output .= "\n<!-- Link Query: " . print_r( $linkquery, TRUE ) . "-->\n\n";
577
+ $output .= "\n<!-- Link Results: " . print_r( $linkitems, TRUE ) . "-->\n\n";
578
+ $output .= "\n<!-- Link Query Execution Time: " . ( microtime( true ) - $linkquerystarttime ) . "-->\n\n";
579
+ }
580
+
581
+ if ( $pagination ) {
582
+ if ($linksperpage == 0 || empty( $linksperpage ) ) {
583
+ $linksperpage = 5;
584
  }
585
 
586
+ if ( count( $linkitems ) > $linksperpage ) {
587
+ array_pop( $linkitems );
588
+ $nextpage = true;
589
+ } else {
590
+ $nextpage = false;
591
  }
592
 
593
+ if( isset( $numberoflinks ) ) {
594
+ $preroundpages = $numberoflinks / $linksperpage;
595
+ $numberofpages = ceil( $preroundpages * 1 ) / 1;
596
+ }
597
+ }
598
+
599
+ if ( 'random' == $linkorder ) {
600
+ shuffle($linkitems);
601
+ }
602
+
603
+ if ( !empty( $maxlinks ) ) {
604
+ if ( is_numeric( $maxlinks ) ) {
605
+ array_splice( $linkitems, $maxlinks );
606
+ }
607
+ }
608
+
609
+ if ( $debugmode ) {
610
+ echo '<!-- showonecatmode: ' . $showonecatonly . ', AJAXnocatset: ' . $AJAXnocatset . ', nocatonstartup: ' . $nocatonstartup . '-->';
611
+ }
612
 
613
+ // Display links
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
+ $pageID = get_the_ID();
626
  if ( empty( $AJAXcatid ) && !empty( $categorysluglist ) ) {
627
  $AJAXcatid = $categorysluglist;
628
  }
630
  $AJAXcatid = $categorynamelist;
631
  }
632
 
633
+ $output .= link_library_display_pagination( $previouspagenumber, $nextpagenumber, $numberofpages, $pagenumber, $showonecatonly, $showonecatmode, $AJAXcatid, $settings, $pageID, $currentcatletter );
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
+ $currentcategoryid = -1;
 
 
641
 
642
  $xpath = $LLPluginClass->relativePath( dirname( __FILE__ ), ABSPATH );
643
 
 
644
 
645
+ $linkcount = 0;
 
 
 
 
 
646
 
647
+ foreach ( $linkitems as $linkitem ) {
648
+
649
+ if ( true == $debugmode ) {
650
+ $linkstarttime = microtime ( true );
651
+ }
 
652
 
653
+ if ( $currentcategoryid != $linkitem['term_id'] ) {
654
+ if ( -1 != $currentcategoryid && $showonecatonly && empty( $_GET['searchll'] ) && ! $combineresults ) {
655
  break;
656
  }
657
 
658
+ if ( -1 != $currentcategoryid && ! $combineresults) {
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
+ if ( !empty( $catlistwrappers ) ) {
669
+ $output .= '</div>';
 
670
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
671
 
672
+ if ( !empty( $afterlastlink ) ) {
673
+ $output .= '<!-- here 2 -->';
674
+ $output .= stripslashes( $afterlastlink );
675
+ }
 
676
 
677
+ if ( $showlinksonclick ) {
678
+ $output .= '</div>';
679
+ }
680
 
681
+ $output .= '</div>';
 
 
682
 
683
+ $currentcategory = $currentcategory + 1;
 
 
 
 
 
684
  }
685
 
686
+ if ( ! $combineresults ) {
687
+ $currentcategoryid = $linkitem['term_id'];
688
+ $output .= '<div class="LinkLibraryCat LinkLibraryCat' . $currentcategoryid . '">';
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
+ case 0:
713
+ $output .= '<div class="' . $beforecatlist3 . '">';
714
+ break;
 
 
 
 
 
715
 
716
+ case 2:
717
+ $output .= '<div class="' . $beforecatlist2 . '">';
718
+ break;
719
 
720
+ case 1:
721
+ $output .= '<div class="' . $beforecatlist1 . '">';
722
+ break;
723
+ }
 
 
 
 
 
 
 
 
724
  }
 
725
 
726
+ // Display the category name
727
+ if ( !$hidecategorynames || empty( $hidecategorynames ) ) {
728
+ $caturl = get_metadata( 'linkcategory', $linkitem['term_id'], 'linkcaturl', true );
 
 
 
 
 
 
 
 
729
 
730
+ if ( $catanchor ) {
731
+ $cattext = '<div id="' . $linkitem['slug'] . '">';
732
+ } else {
733
+ $cattext = '';
734
+ }
735
 
736
+ if ( !$divorheader ) {
737
+ if ( 'search' == $mode ) {
738
+ foreach ( $searchterms as $searchterm ) {
739
+ $linkitem['name'] = link_library_highlight_phrase( $linkitem['name'], $searchterm, '<span class="highlight_word">', '</span>' );
740
+ }
741
+ }
742
 
743
+ $catlink = '<div class="' . $catnameoutput . '">';
 
 
 
 
744
 
745
+ if ( 'right' == $catdescpos || empty( $catdescpos ) ) {
746
+ if ( !empty( $caturl ) ) {
747
+ $catlink .= '<a href="' . link_library_add_http( $caturl ) . '" ';
748
 
749
+ if ( !empty( $linktarget ) )
750
+ $catlink .= ' target="' . $linktarget . '"';
751
 
752
+ $catlink .= '>';
753
+ }
754
+ $catlink .= $linkitem['name'];
755
+ if ( !empty( $caturl ) ) {
756
+ $catlink .= '</a>';
757
+ }
758
+ }
759
 
760
+ if ( $showcategorydesclinks ) {
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
+ if ( 'left' == $catdescpos ) {
769
+ if ( !empty( $caturl ) ) {
770
+ $catlink .= '<a href="' . link_library_add_http( $caturl ) . '" ';
 
 
771
 
772
+ if ( !empty( $linktarget ) )
773
+ $catlink .= ' target="' . $linktarget . '"';
 
774
 
775
+ $catlink .= '>';
 
 
776
  }
777
+ $catlink .= $linkitem['name'];
778
+ if ( !empty( $caturl ) ) {
779
+ $catlink .= '</a>';
 
 
 
 
 
 
 
 
 
 
 
 
780
  }
781
  }
782
 
783
+ if ( $showlinksonclick ) {
784
+ $catlink .= '<span class="expandlinks" id="LinksInCat' . $linkitem['term_id'] . '">';
785
+ $catlink .= '<img class="arrow-down" src="';
786
 
787
+ if ( !empty( $expandiconpath ) ) {
788
+ $catlink .= $expandiconpath;
789
  } else {
790
+ $catlink .= plugins_url( 'icons/expand-32.png', __FILE__ );
791
  }
792
 
793
+ $catlink .= '" />';
 
 
 
 
 
794
 
795
+ $catlink .= '<img class="arrow-up" src="';
796
 
797
+ if ( !empty( $expandiconpath ) ) {
798
+ $catlink .= $expandiconpath;
799
+ } else {
800
+ $catlink .= plugins_url( 'icons/collapse-32.png', __FILE__ );
801
+ }
802
 
803
+ $catlink .= '" />';
 
804
 
805
+ $catlink .= '</span>';
806
+ }
 
 
 
 
 
 
 
807
 
808
+ $catlink .= '</div>';
809
+ } else if ( $divorheader ) {
810
+ if ( 'search' == $mode ) {
811
+ foreach ( $searchterms as $searchterm ) {
812
+ $linkitem['name'] = link_library_highlight_phrase( $linkitem['name'], $searchterm, '<span class="highlight_word">', '</span>' );
813
+ }
814
+ }
815
 
816
+ $catlink = '<'. $catnameoutput . '>';
 
 
817
 
818
+ if ( 'right' == $catdescpos || empty( $catdescpos ) ) {
819
+ if ( !empty( $caturl ) ) {
820
+ $catlink .= '<a href="' . link_library_add_http( $caturl ). '" ';
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
+ if ( 'left' == $catdescpos ) {
842
+ if ( !empty( $caturl ) ) {
843
+ $catlink .= '<a href="' . link_library_add_http( $caturl ) . '" ';
844
 
845
+ if ( !empty( $linktarget ) )
846
+ $catlink .= ' target="' . $linktarget . '"';
 
 
 
847
 
848
+ $catlink .= '>';
849
+ }
850
+ $catlink .= $linkitem['name'];
851
+ if ( !empty( $caturl ) ) {
852
+ $catlink .= '</a>';
853
+ }
854
+ }
855
 
856
+ if ( $showlinksonclick ) {
857
+ $catlink .= '<span class="expandlinks" id="LinksInCat' . $linkitem['term_id'] . '">';
858
+ $catlink .= '<img class="arrow-down" src="';
 
 
 
 
859
 
860
+ if ( !empty( $expandiconpath ) ) {
861
+ $catlink .= $expandiconpath;
862
+ } else {
863
+ $catlink .= plugins_url( 'icons/expand-32.png', __FILE__ );
864
+ }
865
 
866
+ $catlink .= '" />';
 
 
867
 
868
+ $catlink .= '<img class="arrow-up" src="';
 
869
 
870
+ if ( !empty( $expandiconpath ) ) {
871
+ $catlink .= $expandiconpath;
872
+ } else {
873
+ $catlink .= plugins_url( 'icons/collapse-32.png', __FILE__ );
874
+ }
875
 
876
+ $catlink .= '" />';
877
+ $catlink .= '</span>';
878
+ }
879
 
880
+ $catlink .= '</' . $catnameoutput . '>';
881
+ }
 
882
 
883
+ if ($catanchor) {
884
+ $catenddiv = '</div>';
885
+ } else {
886
+ $catenddiv = '';
887
+ }
888
+ }
 
889
 
890
+ $output .= $cattext . $catlink . $catenddiv;
 
 
 
 
 
 
891
 
892
+ if ( $showlinksonclick ) {
893
+ $output .= '<div class="LinksInCat' . $currentcategoryid . ' LinksInCat">';
894
+ }
895
+ }
896
 
897
+ if ( ( ( is_bool( $displayastable ) && $displayastable ) || 'true' == $displayastable ) && ( ! $combineresults || ( $combineresults && $linkcount == 0 ) ) ) {
898
+ $catstartlist = "\n\t<table class='linklisttable'>\n";
899
+ if ( $showcolumnheaders ) {
900
+ $catstartlist .= '<div class="linklisttableheaders"><tr>';
901
 
902
+ if ( !empty( $linkheader ) ) {
903
+ $catstartlist .= '<th><div class="linklistcolumnheader">' . $linkheader . '</div></th>';
904
+ }
 
 
 
 
905
 
906
+ if ( !empty( $descheader ) ) {
907
+ $catstartlist .= '<th><div class="linklistcolumnheader">' . $descheader . '</div></th>';
908
+ }
909
 
910
+ if ( !empty( $notesheader ) ) {
911
+ $catstartlist .= '<th><div class="linklistcolumnheader">' . $notesheader . '</div></th>';
912
+ }
 
 
913
 
914
+ $catstartlist .= "</tr></div>\n";
915
+ } else {
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
+ $output .= $catstartlist;
927
 
928
+ if ( !empty( $beforefirstlink ) ) {
929
+ $output .= stripslashes( $beforefirstlink );
930
+ }
931
+ }
 
932
 
933
+ $between = "\n";
 
 
934
 
935
+ if ( $rssfeedinline ) {
936
+ include_once( ABSPATH . WPINC . '/feed.php' );
937
 
938
+ if ( true == $debugmode ) {
939
+ $starttimerssfeed = microtime ( true );
940
+ }
 
 
 
941
 
942
+ $rss = fetch_feed( $linkitem['link_rss'] );
943
+ if ( !is_wp_error( $rss ) ) {
944
+ $maxitems = $rss->get_item_quantity( $rssfeedinlinecount );
945
 
946
+ $rss_items = $rss->get_items( 0, $maxitems );
 
 
 
 
 
947
 
948
+ if ( $rss_items && !empty( $rssfeedinlinedayspublished ) && $rssfeedinlinedayspublished != 0 ) {
949
+ foreach ( $rss_items as $index => $item ) {
950
+ $diff_published = current_time( 'timestamp' ) - strtotime( $item->get_date( 'j F o' ) );
951
+ if ( $diff_published > 60 * 60 * 24 * intval( $rssfeedinlinedayspublished ) ) {
952
+ unset( $rss_items[$index] );
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
+ if ( !isset( $linkitem['recently_updated'] ) ) {
977
+ $linkitem['recently_updated'] = false;
978
+ }
979
 
980
+ $output .= stripslashes( $beforeitem );
 
 
 
 
981
 
982
+ if ( $showupdated && $linkitem['recently_updated'] && 'before' == $showupdatedpos ) {
983
+ $output .= '<span class="recently_updated">' . $updatedlabel . '</span>';
984
+ }
985
 
986
+ $the_link = '#';
987
+ if ( !empty( $linkitem['link_url'] ) ) {
988
+ $the_link = esc_html( $linkitem['link_url'] );
989
+ }
990
 
991
+ if ( !empty( $extraquerystring ) ) {
992
+ parse_str( $extraquerystring, $expanded_query_string );
993
+ if ( !empty( $expanded_query_string ) ) {
994
+ $the_link = add_query_arg( $expanded_query_string, $the_link );
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
+ $the_second_link = '#';
1007
+ if ( !empty( $linkitem['link_second_url'] ) ) {
1008
+ $the_second_link = esc_html( stripslashes( $linkitem['link_second_url'] ) );
1009
+ }
 
 
 
 
 
 
 
 
1010
 
1011
+ $rel = $linkitem['link_rel'];
 
 
1012
 
1013
+ if ( !empty( $linkitem['link_addl_rel'] ) && !empty( $rel ) ) {
1014
+ $rel .= ' ' . $linkitem['link_addl_rel'];
1015
+ } elseif ( !empty( $linkitem['link_addl_rel'] ) && empty( $rel ) ) {
1016
+ $rel = $linkitem['link_addl_rel'];
1017
+ }
1018
 
1019
+ if ( !empty( $rel ) && !$nofollow && !$linkitem['link_no_follow'] ) {
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
+ if ( $use_html_tags ) {
1028
+ $descnotes = $linkitem['link_notes'];
1029
+ $descnotes = str_replace( '[', '<', $descnotes );
1030
+ $descnotes = str_replace( ']', '>', $descnotes );
1031
+ $desc = $linkitem['link_description'];
1032
+ $desc = str_replace("[", "<", $desc);
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
+ $cleandesc = $desc;
1044
+ $cleanname = esc_html( $linkitem['link_name'], ENT_QUOTES );
 
 
 
 
1045
 
1046
+ if ( 'search' == $mode ) {
1047
+ foreach ( $searchterms as $searchterm ) {
1048
+ $descnotes = link_library_highlight_phrase( $descnotes, $searchterm, '<span class="highlight_word">', '</span>' );
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
+ if ( 'linkname' == $linktitlecontent ) {
1058
+ $title = $cleanname;
1059
+ } elseif ( 'linkdesc' == $linktitlecontent ) {
1060
+ $title = $cleandesc;
1061
+ }
 
1062
 
1063
+ if ( $showupdated ) {
1064
+ if ( substr( $linkitem['link_updated'], 0, 2 ) != '00' ) {
1065
+ $title .= ' ('.__('Last updated', 'link-library') . ' ' . date_i18n(get_option('links_updated_date_format'), strtotime( $linkitem['link_updated'] ) ) .')';
1066
+ }
1067
+ }
1068
 
1069
+ if ( !empty( $title ) ) {
1070
+ $title = ' title="' . $title . '"';
1071
+ }
 
 
1072
 
1073
+ $alt = ' alt="' . $cleanname . '"';
1074
 
1075
+ $target = $linkitem['link_target'];
1076
+ if ( !empty( $target ) ) {
1077
+ $target = ' target="' . $target . '"';
1078
+ } else {
1079
+ $target = $linktarget;
1080
+ if ( !empty( $target ) ) {
1081
+ $target = ' target="' . $target . '"';
1082
+ }
1083
+ }
1084
 
1085
+ if ( empty( $dragndroporder ) ) {
1086
+ $dragndroporder = '1,2,3,4,5,6,7,8,9,10,11,12,13,14';
1087
+ }
 
 
1088
 
1089
+ $dragndroparray = explode( ',', $dragndroporder );
 
 
 
 
1090
 
1091
+ if ( !in_array( '13', $dragndroparray ) ) {
1092
+ $dragndroparray[] = '13';
1093
+ }
 
 
1094
 
1095
+ if ( !in_array( '14', $dragndroparray ) ) {
1096
+ $dragndroparray[] = '14';
1097
+ }
 
 
1098
 
1099
+ if ( $dragndroparray ) {
1100
+ foreach ( $dragndroparray as $arrayelements ) {
1101
+ switch ( $arrayelements ) {
 
 
1102
 
1103
+ case 1: //------------------ Image Output --------------------
1104
+ $imageoutput = '';
 
 
 
1105
 
1106
+ if ( ( $show_images && !$shownameifnoimage && ( !$nooutputempty || ( $nooutputempty && !empty( $linkitem['link_image'] ) ) ) ) || ( $show_images && $shownameifnoimage && !empty( $linkitem['link_image'] ) && ( !$nooutputempty || ( $nooutputempty && !empty( $linkitem['link_image'] ) ) ) || $usethumbshotsforimages ) ) {
1107
+ $imageoutput .= stripslashes( $beforeimage );
 
 
 
1108
 
1109
+ if ( !empty( $linkitem['link_image'] ) || $usethumbshotsforimages ) {
1110
+ if ( true == $debugmode ) {
1111
+ $starttimeimage = microtime ( true );
1112
+ }
 
1113
 
1114
+ $imageoutput .= '<a href="';
 
 
 
 
1115
 
1116
+ if ( !$enable_link_popup ) {
1117
+ if ( 'primary' == $sourceimage || empty( $sourceimage ) ) {
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
+ $imageoutput .= '" id="link-' . $linkitem['proper_link_id'] . '" class="' . ( $enable_link_popup ? 'thickbox' : 'track_this_link' ) . ' ' . ( $linkitem['link_featured'] ? 'featured' : '' ). '" ' . $rel . $title . $target. '>';
 
 
 
 
1127
 
1128
+ if ( $usethumbshotsforimages && ( !$uselocalimagesoverthumbshots || empty( $uselocalimagesoverthumbshots ) || ( $uselocalimagesoverthumbshots && empty( $linkitem['link_image'] ) ) ) ) {
1129
+ if ( $thumbnailgenerator == 'robothumb' ) {
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
+ } else if ( !$usethumbshotsforimages || ( $usethumbshotsforimages && $uselocalimagesoverthumbshots && !empty( $linkitem['link_image'] ) ) ) {
1137
+ if ( strpos( $linkitem['link_image'], 'http' ) !== false ) {
1138
+ $imageoutput .= '<img src="' . $linkitem['link_image'] . '"';
1139
+ } else {
1140
+ // If it's a relative path
1141
+ $imageoutput .= '<img src="' . get_option( 'siteurl' ) . $linkitem['link_image'] . '"';
1142
+ }
1143
+ }
1144
 
1145
+ if ( !$usethumbshotsforimages || ($usethumbshotsforimages && !empty( $thumbshotscid ) ) || ( $usethumbshotsforimages && $uselocalimagesoverthumbshots && !empty( $linkitem['link_image'] ) ) ) {
 
 
 
 
1146
 
1147
+ $imageoutput .= $alt . $title;
 
 
 
 
1148
 
1149
+ if ( !empty( $imageclass ) ) {
1150
+ $imageoutput .= ' class="' . $imageclass . '" ';
1151
+ }
 
 
1152
 
1153
+ $imageoutput .= '/>';
1154
 
1155
+ $imageoutput .= '</a>';
1156
+ }
 
 
 
1157
 
1158
+ if ( true == $debugmode ) {
1159
+ $output .= '<!-- Time to render image section of link id ' . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimeimage ) . " --> \n";
1160
+ }
 
 
1161
 
1162
+ }
 
 
 
1163
 
1164
+ $imageoutput .= stripslashes( $afterimage );
 
 
 
 
1165
 
1166
+ if ( ( !empty( $imageoutput ) || ( $usethumbshotsforimages && !empty( $thumbshotscid ) ) ) && $show_images ) {
1167
+ $output .= $imageoutput;
1168
+ }
1169
 
1170
+ break;
 
1171
  }
1172
 
1173
+ case 2: //------------------ Name Output --------------------
1174
+ if ( ( $showname && 2 == $arrayelements && ( !$nooutputempty || ( $nooutputempty && !empty( $name ) ) ) ) ||
1175
+ ( $show_images && $shownameifnoimage && empty( $linkitem['link_image'] ) && !$usethumbshotsforimages && 1 == $arrayelements && ( !$nooutputempty || ( $nooutputempty && !empty( $name ) ) ) ) ) {
 
 
1176
  if ( true == $debugmode ) {
1177
+ $starttimename = microtime ( true );
1178
  }
1179
 
1180
+ $output .= stripslashes( $beforelink );
 
 
1181
 
1182
+ if ( ( 'primary' == $sourcename && $the_link != '#') || ( 'secondary' == $sourcename && $the_second_link != '#' ) ) {
1183
+ $output .= '<a href="';
1184
 
1185
+ if ( !$enable_link_popup ) {
1186
+ if ( 'primary' == $sourcename || empty( $sourcename ) ) {
1187
+ $output .= $the_link;
1188
+ } elseif ( 'secondary' == $sourcename ) {
1189
+ $output .= $the_second_link;
 
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
+ if ( 'description' == $tooltipname && !empty( $desc ) ) {
1196
+ $title = ' title="' . $desc . '"';
 
1197
  }
1198
+
1199
+ $output .= '" id="link-' . $linkitem['proper_link_id'] . '" class="' . ( $enable_link_popup ? 'thickbox' : 'track_this_link' ) . ' ' . ( $linkitem['link_featured'] ? ' featured' : '' ). '" ' . $rel . $title . $target. '>';
1200
  }
1201
 
1202
+ $output .= $name;
1203
+
1204
+ if ( ( 'primary' == $sourcename && $the_link != '#') || ( 'secondary' == $sourcename && $the_second_link != '#' ) ) {
1205
+ $output .= '</a>';
1206
  }
 
1207
 
1208
+ if ( $showadmineditlinks && $linkeditoruser ) {
1209
+ $output .= $between . '<span class="editlink"><a href="' . esc_url( add_query_arg( array(
1210
+ 'action' => 'edit', 'link_id' => $linkitem['proper_link_id'] ),
1211
+ admin_url( 'link.php' ) ) ) . '">(' . __('Edit', 'link-library') . ')</a></span>';
1212
  }
 
1213
 
1214
+ if ( $showupdated && $linkitem['recently_updated'] ) {
1215
+ $output .= get_option( 'links_recently_updated_append' );
1216
+ }
1217
 
1218
+ $output .= stripslashes( $afterlink );
1219
 
1220
+ if ( true == $debugmode ) {
1221
+ $output .= "\n<!-- Time to render name section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimename ) . " --> \n";
1222
+ }
1223
  }
1224
 
1225
+ break;
 
 
 
1226
 
1227
+ case 3: //------------------ Date Output --------------------
 
 
 
 
 
1228
 
1229
+ if ( $showdate && ( !$nooutputempty || ( $nooutputempty && !empty( $linkitem['link_date'] ) ) ) ) {
1230
+ if ( true == $debugmode ) {
1231
+ $starttimedate = microtime ( true );
 
 
1232
  }
 
1233
 
1234
+ $formatteddate = date_i18n( get_option( 'links_updated_date_format' ), $linkitem['link_date'] );
 
 
 
1235
 
1236
+ $output .= $between . stripslashes( $beforedate ) . $formatteddate . stripslashes( $afterdate );
 
 
 
1237
 
1238
+ if ( true == $debugmode ) {
1239
+ $output .= "\n<!-- Time to render date section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimedate ) . " --> \n";
1240
+ }
 
1241
  }
1242
 
1243
+ break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1244
 
1245
+ case 4: //------------------ Description Output --------------------
 
1246
 
1247
+ if ( $showdescription && ( !$nooutputempty || ( $nooutputempty && !empty( $desc ) ) ) ) {
1248
+ if ( true == $debugmode ) {
1249
+ $starttimedesc = microtime ( true );
 
 
 
1250
  }
 
 
 
1251
 
1252
+ $output .= $between . stripslashes( $beforedesc ) . $desc . stripslashes( $afterdesc );
 
 
 
 
1253
 
1254
+ if ( true == $debugmode ) {
1255
+ $output .= "\n<!-- Time to render description section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimedesc ) . " --> \n";
 
 
 
1256
  }
1257
  }
1258
 
1259
+ break;
 
 
1260
 
1261
+ case 5: //------------------ Notes Output --------------------
1262
 
1263
+ if ( $shownotes && ( !$nooutputempty || ( $nooutputempty && !empty( $descnotes ) ) ) ) {
1264
+ if ( true == $debugmode ) {
1265
+ $starttimenotes = microtime ( true );
 
 
 
 
1266
  }
 
 
 
 
 
1267
 
1268
+ $output .= $between . stripslashes( $beforenote ) . $descnotes . stripslashes( $afternote );
1269
 
1270
+ if ( true == $debugmode ) {
1271
+ $output .= "\n<!-- Time to render notes section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimenotes ) . " --> \n";
 
 
 
1272
  }
1273
  }
1274
 
1275
+ break;
 
 
1276
 
1277
+ case 6: //------------------ RSS Icons Output --------------------
 
1278
 
1279
+ if ( ( $show_rss || $show_rss_icon || $rsspreview ) && ( !$nooutputempty || ( $nooutputempty && !empty( $linkitem['link_rss'] ) ) ) ) {
1280
+ if ( true == $debugmode ) {
1281
+ $starttimerssicon = microtime ( true );
1282
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1283
 
1284
+ $output .= stripslashes( $beforerss ) . '<div class="rsselements">';
 
 
 
1285
 
1286
+ if ( $show_rss && !empty( $linkitem['link_rss'] ) ) {
1287
+ $output .= $between . '<a class="rss" href="' . $linkitem['link_rss'] . '">RSS</a>';
1288
+ }
 
1289
 
1290
+ if ( $show_rss_icon && !empty( $linkitem['link_rss'] ) ) {
1291
+ $output .= $between . '<a class="rssicon" href="' . $linkitem['link_rss'] . '"><img src="' . plugins_url( 'icons/feed-icon-14x14.png', __FILE__ ) . '" /></a>';
1292
+ }
1293
 
1294
+ if ( $rsspreview && !empty( $linkitem['link_rss'] ) ) {
1295
+ $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>';
1296
+ }
1297
 
1298
+ $output .= '</div>' . stripslashes( $afterrss );
 
 
1299
 
1300
+ if ( true == $debugmode ) {
1301
+ $output .= "\n<!-- Time to render RSS Icon section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimerssicon ) . " --> \n";
1302
+ }
1303
+ }
1304
 
1305
+ if ( $rssfeedinline && $linkitem['link_rss'] ) {
1306
+ if ( $rss_items ) {
1307
+ $output .= '<div id="ll_rss_results">';
1308
+ $date_format_string = get_option( 'date_format' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1309
 
1310
+ foreach ( $rss_items as $item ) {
1311
+ $output .= '<div class="chunk" style="padding:0 5px 5px;">';
1312
+ $item_timestamp = strtotime( $item->get_date( 'j F Y | g:i a' ) );
1313
 
1314
+ $formatted_date = date_i18n( $date_format_string, $item_timestamp );
1315
+ $output .= '<div class="rsstitle"><a target="feedwindow" href="' . $item->get_permalink() . '">' . $item->get_title() . '</a> - ' . $formatted_date . '</div>';
 
 
 
 
 
 
 
1316
 
1317
+ if ( $rssfeedinlinecontent ) {
1318
+ $output .= '<div class="rsscontent">' . $item->get_description() . '</div>';
1319
+ }
1320
 
1321
+ $output .= '</div>';
1322
+ $output .= '<br />';
1323
+ }
1324
 
1325
+ $output .= '</div>';
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
+ $output .= '" id="link-' . $linkitem['proper_link_id'] . '" class="track_this_link" ' . $target . '>';
 
 
 
 
1356
 
1357
+ if ( 'address' == $displayweblink ) {
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
+ $output .= '</a>' . stripslashes( $afterweblink );
1368
+ }
1369
 
1370
+ if ( true == $debugmode ) {
1371
+ $output .= "\n<!-- Time to render web link section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimerweblink ) . " --> \n";
1372
+ }
1373
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1374
 
1375
+ break;
1376
+ case 8: //------------------ Telephone Output --------------------
1377
 
1378
+ if ( 'false' != $showtelephone &&
1379
+ ( !$nooutputempty ||
1380
+ ( $nooutputempty && !empty( $linkitem['link_telephone'] ) && ( 'link' == $showtelephone || 'plain' == $showtelephone ) ) ||
1381
+ ( $nooutputempty && !empty( $telephonelabel ) && 'label' == $showtelephone )
1382
+ )
1383
+ ) {
1384
+ if ( true == $debugmode ) {
1385
+ $starttimertelephone = microtime ( true );
1386
+ }
1387
 
1388
+ $output .= $between . stripslashes( $beforetelephone );
 
 
1389
 
1390
+ if ( 'plain' != $showtelephone ) {
1391
+ $output .= '<a href="';
 
 
1392
 
1393
+ if ( ( 'primary' == $sourcetelephone || empty( $sourcetelephone ) ) && !empty( $the_link ) ) {
1394
+ $output .= $the_link;
1395
+ } elseif ( 'secondary' == $sourcetelephone && !empty( $the_second_link ) ) {
1396
+ $output .= $the_second_link;
1397
+ }
1398
 
1399
+ $output .= '" id="link-' . $linkitem['proper_link_id'] . '" class="track_this_link" >';
1400
+ }
1401
 
1402
+ if ( 'link' == $showtelephone || 'plain' == $showtelephone ) {
1403
+ $output .= $linkitem['link_telephone'];
1404
+ } elseif ( 'label' == $showtelephone ) {
1405
+ $output .= $telephonelabel;
1406
+ }
1407
 
1408
+ if ( 'plain' != $showtelephone ) {
1409
+ $output .= '</a>';
1410
+ }
1411
 
1412
+ $output .= stripslashes( $aftertelephone );
 
 
 
1413
 
1414
+ if ( true == $debugmode ) {
1415
+ $output .= "\n<!-- Time to render telephone section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimertelephone ) . " --> \n";
1416
+ }
1417
+ }
1418
+ break;
1419
+ case 9: //------------------ E-mail Output --------------------
1420
 
1421
+ if ( 'false' != $showemail && ( !$nooutputempty || ( $nooutputempty && !empty( $linkitem['link_email'] ) ) ) ) {
1422
+ if ( true == $debugmode ) {
1423
+ $starttimeremail = microtime ( true );
1424
+ }
1425
 
1426
+ $output .= $between . stripslashes( $beforeemail );
 
 
 
1427
 
1428
+ if ( 'plain' != $showemail ) {
1429
+ $output .= '<a href="';
 
1430
 
1431
+ if ( 'mailto' == $showemail || 'mailtolabel' == $showemail ) {
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
+ $output .= '">';
1445
+ }
1446
 
1447
+ if ( 'plain' == $showemail || 'mailto' == $showemail || 'command' == $showemail ) {
1448
+ $output .= $linkitem['link_email'];
1449
+ } elseif ( 'mailtolabel' == $showemail || 'commandlabel' == $showemail ) {
1450
+ $output .= $emaillabel;
1451
+ }
1452
 
1453
+ if ( 'plain' != $showemail ) {
1454
+ $output .= '</a>';
1455
+ }
 
1456
 
1457
+ $output .= stripslashes( $afteremail );
 
 
1458
 
1459
+ if ( true == $debugmode ) {
1460
+ $output .= "\n<!-- Time to render e-mail section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimeremail ) . " --> \n";
1461
+ }
1462
+ }
1463
 
1464
+ break;
1465
+ case 10: //------------------ Link Hits Output --------------------
1466
 
1467
+ if ( $showlinkhits && ( !$nooutputempty || ( $nooutputempty && !empty( $linkitem['link_visits'] ) ) ) ) {
1468
+ if ( true == $debugmode ) {
1469
+ $starttimerhits = microtime ( true );
1470
+ }
1471
 
1472
+ $output .= $between . stripslashes( $beforelinkhits );
1473
+ $output .= $linkitem['link_visits'];
1474
+ $output .= stripslashes( $afterlinkhits );
 
 
 
1475
 
1476
+ if ( true == $debugmode ) {
1477
+ $output .= "\n<!-- Time to render link hits section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimerhits ) . " --> \n";
1478
+ }
1479
+ }
1480
 
1481
+ break;
 
 
1482
 
1483
+ case 11: //------------------ Link Rating Output --------------------
1484
 
1485
+ if ( $showrating && ( !$nooutputempty || ( $nooutputempty && !empty( $linkitem['link_rating'] ) ) ) ) {
1486
+ if ( true == $debugmode ) {
1487
+ $starttimerrating = microtime ( true );
1488
+ }
1489
 
1490
+ $output .= $between . stripslashes( $beforelinkrating );
1491
+ $output .= $linkitem['link_rating'];
1492
+ $output .= stripslashes( $afterlinkrating );
1493
 
1494
+ if ( true == $debugmode ) {
1495
+ $output .= "\n<!-- Time to render link rating section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimerrating ) . " --> \n";
1496
+ }
1497
+ }
1498
 
1499
+ break;
1500
 
1501
+ case 12: //------------------ Link Large Description Output --------------------
1502
 
1503
+ if ( $showlargedescription && ( !$nooutputempty || ( $nooutputempty && !empty( $textfield ) ) ) ) {
1504
+ if ( true == $debugmode ) {
1505
+ $starttimerlargedesc = microtime ( true );
1506
+ }
1507
 
1508
+ $output .= $between . stripslashes( $beforelargedescription );
1509
+ $output .= $textfield;
1510
+ $output .= stripslashes( $afterlargedescription );
1511
 
1512
+ if ( true == $debugmode ) {
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
+ break;
 
 
 
1518
 
1519
+ case 13: //------------------ Link Large Description Output --------------------
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1520
 
1521
+ if ( $showsubmittername && ( !$nooutputempty || ( $nooutputempty && !empty( $linkitem['link_submitter_name'] ) ) ) ) {
1522
+ if ( true == $debugmode ) {
1523
+ $starttimersubmittername = microtime ( true );
1524
  }
 
1525
 
1526
+ $output .= $between . stripslashes( $beforesubmittername );
1527
+ $output .= $linkitem['link_submitter_name'];
1528
+ $output .= stripslashes( $aftersubmittername );
1529
 
1530
+ if ( true == $debugmode ) {
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
+ break;
 
 
1536
 
1537
+ case 14: //------------------ Category Description Output --------------------
1538
 
1539
+ $linkitem['description'] = str_replace( '[', '<', $linkitem['description'] );
1540
+ $linkitem['description'] = str_replace( ']', '>', $linkitem['description'] );
1541
 
1542
+ if ( $showcatdesc && ( !$nooutputempty || ( $nooutputempty && !empty( $linkitem['description'] ) ) ) ) {
1543
+ if ( true == $debugmode ) {
1544
+ $starttimedesc = microtime ( true );
1545
+ }
 
 
 
 
 
1546
 
1547
+ $output .= $between . stripslashes( $beforecatdesc ) . $linkitem['description'] . stripslashes( $aftercatdesc );
 
 
1548
 
1549
+ if ( true == $debugmode ) {
1550
+ $output .= "\n<!-- Time to render description section of link id " . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $starttimedesc ) . " --> \n";
1551
+ }
1552
+ }
1553
 
1554
+ break;
 
1555
  }
1556
+ }
1557
+ }
1558
 
1559
+ if ( $showupdated && $linkitem['recently_updated'] && 'after' == $showupdatedpos ) {
1560
+ $output .= '<span class="recently_updated">' . $updatedlabel . '</span>';
1561
+ }
1562
 
1563
+ $output .= stripslashes( $afteritem ) . "\n";
 
 
1564
 
1565
+ if ( $linkaddfrequency > 0 ) {
1566
+ if ( 0 == $linkcount % $linkaddfrequency ) {
1567
+ $output .= stripslashes( $addafterlink );
 
 
1568
  }
1569
  }
1570
  }
 
 
1571
 
1572
+ if ( true == $debugmode ) {
1573
+ $output .= '<!-- Time to render link id ' . $linkitem['proper_link_id'] . ': ' . ( microtime( true ) - $linkstarttime ) . " --> \n";
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
  $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
+ if ( $showlinksonclick ) {
1605
+ $output .= '</div>';
1606
+ }
 
1607
 
1608
+ if ( ! $combineresults ) {
1609
+ $output .= '</div>';
1610
+ }
1611
+
1612
+ if ( $pagination && 'search' != $mode && ( 'AFTER' == $paginationposition || empty( $pagination ) ) ) {
1613
+ $previouspagenumber = $pagenumber - 1;
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
  $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
+ " type: 'POST'," .
1633
+ " url: '" . admin_url( 'admin-ajax.php' ) . "', " .
1634
+ " data: { action: 'link_library_tracker', " .
1635
+ " _ajax_nonce: '" . $nonce . "', " .
1636
+ " id:linkid, xpath:path } " .
1637
+ " });\n";
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).slideToggle();\n";
1643
+ $output .= "jQuery(this).find('.arrow-up, .arrow-down').toggle();\n";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1644
  $output .= "});\n";
1645
  $output .= "});\n";
1646
  $output .= "</script>";
1647
  unset( $xpath );
1648
+ $currentcategory = $currentcategory + 1;
 
 
1649
 
1650
+ $output .= "</div>\n";
 
1651
 
1652
+ } else if ( isset( $_GET['searchll'] ) ) {
1653
+ $output .= "<div id='linklist" . $settings . "' class='linklist'>\n";
1654
+ $output .= $searchnoresultstext . "\n";
1655
+ $output .= "</div>";
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
+ $output .= "\n<!-- End of Link Library Output -->\n\n";
1663
+
1664
  return do_shortcode( $output );
1665
  }
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="get" id="llsearch"';
23
 
24
  if ( !empty( $searchresultsaddress ) ) {
25
  $output .= ' action="' . $searchresultsaddress . '"';
@@ -34,21 +34,12 @@ function RenderLinkLibrarySearchForm( $libraryoptions ) {
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
 
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
  $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
 
render-link-library-tag-filter-sc.php DELETED
@@ -1,145 +0,0 @@
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
- // 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,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
- // 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,241 +188,241 @@
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,114 +430,114 @@
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,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,95 +6,86 @@ global $my_link_library_plugin;
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', 'meta_key' => 'link_updated', 'order' => 'DESC' );
46
-
47
- if ( $options['showinvisible'] == false ) {
48
- $link_query_args['post_status'] = array( 'publish', 'private' );
49
- }
50
-
51
- if ( !empty( $options['categorylist_cpt'] ) ) {
52
- $show_one_cat_query_args['include'] = explode( ',', $options['categorylist_cpt'] );
53
- }
54
-
55
- if ( !empty( $options['excludecategorylist_cpt'] ) ) {
56
- $show_one_cat_query_args['exclude'] = explode( ',', $options['excludecategorylist_cpt'] );
57
- }
58
-
59
- $the_link_query = new WP_Query( $link_query_args );
60
-
61
- if ( $the_link_query->have_posts() ) {
62
- while ( $the_link_query->have_posts() ) {
63
- $the_link_query->the_post();
64
-
65
- $link_url = get_post_meta( get_the_ID(), 'link_url', true );
66
- $link_description = get_post_meta( get_the_ID(), 'link_description', true );
67
- $link_updated = get_post_meta( get_the_ID(), 'link_updated', true );
68
- $human_date = date( "Y-m-d H:i", $link_updated );
69
-
70
- $link_categories = wp_get_post_terms( get_the_ID(), 'link_library_category' );
71
-
72
- $cat_names = '';
73
- if ( $link_categories ) {
74
- $countcats = 0;
75
- foreach ( $link_categories as $link_category ) {
76
- if ( $countcats >= 1 ) {
77
- $cat_names .= ', ';
78
- }
79
- $cat_names .= $link_category->name;
80
- $countcats++;
81
- }
82
- }
83
-
84
- if ( !empty( $link_url ) ) {
85
- // ITEM
86
- $rss->addItem (
87
- get_the_title(), // Title
88
- $link_url, // Link
89
- $link_description, // Description
90
- $human_date, //Publication Date
91
- $cat_names // Category
92
- );
93
- }
94
- }
95
- }
96
 
97
  header( 'Content-Type: '. feed_content_type('rss') . '; charset=' . get_option('blog_charset') );
98
- print( $rss->getFeed() );
99
- exit;
100
  }
6
 
7
  function link_library_generate_rss_feed () {
8
 
9
+ require_once plugin_dir_path( __FILE__ ) . 'rss.genesis.php';
10
+
11
+ global $wpdb;
12
+
13
+ if ( isset( $_GET['settingsset'] ) && !empty( $_GET['settingsset'] ) ) {
14
+ $settingsetid = intval( $_GET['settingsset'] );
15
+ } else {
16
+ $settingsetid = 1;
17
+ }
18
+
19
+ $settingsname = 'LinkLibraryPP' . $settingsetid;
20
+ $options = get_option($settingsname);
21
+
22
+ $rss = new rssGenesis();
23
+
24
+ $feedtitle = ($options['rssfeedtitle'] == "" ? "Link Library Generated Feed" : $options['rssfeedtitle']);
25
+ $feeddescription = ($options['rssfeeddescription'] == "" ? "Link Library Generated Feed Description" : $options['rssfeeddescription']);
26
+
27
+ // CHANNEL
28
+ $rss->setChannel (
29
+ $feedtitle, // Title
30
+ home_url () . '/feed/linklibraryfeed?settingsset=' . $settingsetid, // Link
31
+ $feeddescription, // Description
32
+ null, // Language
33
+ null, // Copyright
34
+ null, // Managing Editor
35
+ null, // WebMaster
36
+ null, // Rating
37
+ "auto", // PubDate
38
+ "auto", // Last Build Date
39
+ "Link Library Links", // Category
40
+ null, // Docs
41
+ null, // Time to Live
42
+ null, // Skip Days
43
+ null // Skip Hours
44
+ );
45
+
46
+ $linkquery = "SELECT distinct *, UNIX_TIMESTAMP(l.link_updated) as link_date ";
47
+ $linkquery .= "FROM " . $wpdb->prefix . "terms t ";
48
+ $linkquery .= "LEFT JOIN " . $wpdb->prefix . "term_taxonomy tt ON (t.term_id = tt.term_id) ";
49
+ $linkquery .= "LEFT JOIN " . $wpdb->prefix . "term_relationships tr ON (tt.term_taxonomy_id = tr.term_taxonomy_id) ";
50
+ $linkquery .= "LEFT JOIN " . $wpdb->prefix . "links l ON (tr.object_id = l.link_id) ";
51
+ $linkquery .= "WHERE tt.taxonomy = 'link_category' ";
52
+
53
+ if ($options['hide_if_empty'])
54
+ $linkquery .= "AND l.link_id is not NULL AND l.link_description not like '%LinkLibrary:AwaitingModeration:RemoveTextToApprove%' ";
55
+
56
+ if ($options['categorylist'] != "")
57
+ $linkquery .= " AND t.term_id in (" . $options['categorylist']. ")";
58
+
59
+ if ($options['excludecategorylist'] != "")
60
+ $linkquery .= " AND t.term_id not in (" . $options['excludecategorylist'] . ")";
61
+
62
+ if ($options['showinvisible'] == false)
63
+ $linkquery .= " AND l.link_visible != 'N'";
64
+
65
+ $linkquery .= " ORDER by link_date DESC";
66
+
67
+ $linkquery .= " LIMIT 0, " . $options['numberofrssitems'];
68
+
69
+ $linkitems = $wpdb->get_results($linkquery);
70
+
71
+ if ($linkitems)
72
+ {
73
+ foreach ($linkitems as $linkitem)
74
+ {
75
+ if ($linkitem->link_url != '')
76
+ // ITEM
77
+ $rss->addItem (
78
+ $linkitem->link_name, // Title
79
+ $linkitem->link_url, // Link
80
+ $linkitem->link_description, // Description
81
+ $linkitem->link_updated, //Publication Date
82
+ $linkitem->name // Category
83
+ );
84
+
85
+ }
86
+ }
 
 
 
 
 
 
 
 
 
87
 
88
  header( 'Content-Type: '. feed_content_type('rss') . '; charset=' . get_option('blog_charset') );
89
+ print( $rss->getFeed() );
90
+ exit;
91
  }
rsspreview.php CHANGED
@@ -1,67 +1,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
  }
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
+ $genoptions = get_option('LinkLibraryGeneral');
9
 
10
+ include_once( ABSPATH . WPINC . '/feed.php' );
11
 
12
+ // Get a SimplePie feed object from the specified feed source.
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
+ // Build an array of all the items, starting with element 0 (first element).
19
+ $rss_items = $rss->get_items( 0, $maxitems );
20
+ }
21
+ ?>
22
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
23
 
24
+ <html xmlns="http://www.w3.org/1999/xhtml">
25
+ <head>
26
+ <title><?php echo ( empty( $_GET['feed'] ) ) ? 'RSS_PHP' : 'RSS_PHP: ' . $link_data->post_title; ?></title>
27
 
28
+ <!-- META HTTP-EQUIV -->
29
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8; ?>" />
30
+ <meta http-equiv="imagetoolbar" content="false" />
31
 
32
+ <?php if ( isset( $genoptions['stylesheet'] ) && !empty( $genoptions['stylesheet'] ) ) { ?>
33
+ <style id='LinkLibraryStyle' type='text/css'>
34
+ <?php echo stripslashes( $genoptions['fullstylesheet'] ); ?>
35
+ </style>
36
+ <?php } ?>
37
 
38
+ </head>
 
 
39
 
40
+ <body>
41
+ <div id="ll_rss_preview_results">
42
+ <?php if ( $rss_items ) { ?>
43
+ <?php foreach( $rss_items as $item ) { ?>
44
+ <div class="ll_rss_preview_title" style="padding:0 5px 5px;">
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
+ <?php
65
+ exit;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
  }
stylesheettemplate.css CHANGED
@@ -203,26 +203,5 @@ text-decoration: none;text-align: left;text-indent: 0px;max-width:500px;}
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
- }
203
  color: #ccc;
204
  }
205
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
206
 
 
 
 
207
 
 
 
 
tracker.php CHANGED
@@ -1,19 +1,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
  ?>
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
+ echo "Received ID is: " . $link_id;
8
 
9
+ global $wpdb;
 
 
 
10
 
11
+ $extradatatable = $wpdb->prefix . "links_extrainfo";
12
+ $linkextradataquery = "select * from " . $wpdb->prefix . "links_extrainfo where link_id = " . $link_id;
13
+ $extradata = $wpdb->get_row($linkextradataquery, ARRAY_A);
14
 
15
+ if ($extradata)
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
  ?>
uninstall.php CHANGED
@@ -2,18 +2,34 @@
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
- }
 
 
 
 
 
 
 
 
2
  // Check that code was called from WordPress with
3
  // uninstallation constant declared
4
  if ( !defined( 'WP_UNINSTALL_PLUGIN' ) )
5
+ exit;
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
+ $genoptions = get_option( 'LinkLibraryGeneral' );
19
+
20
+ for ($i = 1; $i <= $genoptions['numberstylesets']; $i++) {
21
+ $settingsname = 'LinkLibraryPP' . $i;
22
+
23
+ delete_option( $settingsname );
24
+ }
25
+
26
+ delete_option( 'LinkLibraryGeneral' );
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 );
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
- 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 );
@@ -75,7 +75,7 @@ function link_library_process_user_submission( $my_link_library_plugin ) {
75
  }
76
 
77
  if ( $captureddata['link_name'] != '' && $requiredcheck ) {
78
- if ( $options['addlinkakismet'] && ll_akismet_is_available() ) {
79
  $c = array();
80
 
81
  if ( !empty( $captureddata['ll_submittername'] ) ) {
@@ -121,7 +121,7 @@ function link_library_process_user_submission( $my_link_library_plugin ) {
121
  } else {
122
  $valid = true;
123
  };
124
- } elseif ( $options['addlinkakismet'] && !ll_akismet_is_available() ) {
125
  echo 'Akismet has been selected but is not available';
126
  die();
127
  }
@@ -153,18 +153,9 @@ 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
- $reciprocal_links = array('');
157
- $reciprocal_query = new WP_Query( 'post_type=link_library_links' );
158
- if ( $reciprocal_query->have_posts() ) {
159
- while ( $reciprocal_query->have_posts() ) {
160
- $reciprocal_query->the_post();
161
- $the_answer = get_post_meta( $reciprocal_query->ID, 'link_reciprocal' , true );
162
- $the_answer = trim( $the_answer );
163
- array_push( $reciprocal_links, $the_answer );
164
- }
165
- }
166
- $reciprocal_links = array_unique( $reciprocal_links );
167
- $reciprocal_links = sort( $reciprocal_links );
168
 
169
  foreach( $reciprocal_links as $recip_link ) {
170
  $parse_data = parse_url( $recip_link->link_reciprocal );
@@ -177,35 +168,38 @@ function link_library_process_user_submission( $my_link_library_plugin ) {
177
  }
178
 
179
  if ( $valid ) {
180
- $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 ";
181
- if ( ( $options['addlinknoaddress'] == false ) || ( $options['addlinknoaddress'] == true && $captureddata['link_url'] != "" ) ) {
182
- $existinglinkquery .= '( ';
183
- }
184
-
185
- $existinglinkquery .= "p.post_title = '" . $captureddata['link_name'] . "' ";
186
 
187
  if ( ( $options['addlinknoaddress'] == false ) || ( $options['addlinknoaddress'] == true && $captureddata['link_url'] != "" ) ) {
188
- $existinglinkquery .= " or pm.meta_value = '" . $captureddata['link_url'] . "' )";
189
  }
190
 
191
  $existinglink = $wpdb->get_var( $existinglinkquery );
192
 
193
- if ( empty( $existinglink ) && ( ( $options['addlinknoaddress'] == false && $captureddata['link_url'] != "" ) || $options['addlinknoaddress'] == true ) ) {
194
  if ( $captureddata['link_category'] == 'new' && $captureddata['link_user_category'] != '' ) {
195
-
196
- $existingcat = get_term_by( 'name', $captureddata['link_user_category'], 'link_library_category' );
197
-
198
- if ( empty( $existingcat ) ) {
199
- $newlinkcat = wp_insert_term( $captureddata['link_user_category'], 'link_library_category', array( 'description' => '', 'slug' => sanitize_text_field( $captureddata['link_user_category'] ) ) );
200
-
 
 
 
 
 
 
 
 
201
  $newlinkcat = array( $newlinkcat );
202
  } else {
203
- $newlinkcat = array( $existingcat->term_id );
204
  }
205
 
206
  $message = 8;
207
  $validcat = true;
208
- } elseif ( $captureddata['link_category'] == 'new' && empty( $captureddata['link_user_category'] ) ) {
209
  $message = 7;
210
  $validcat = false;
211
  } else {
@@ -217,22 +211,25 @@ function link_library_process_user_submission( $my_link_library_plugin ) {
217
  }
218
 
219
  if ( $validcat == true ) {
220
- $newlinkdesc = $captureddata['link_description'];
221
  if ( $options['showuserlinks'] == false ) {
222
  if ( $options['showifreciprocalvalid'] ) {
223
  $reciprocal_return = $my_link_library_plugin->CheckReciprocalLink( $genoptions['recipcheckaddress'], $captureddata['ll_reciprocal'] );
224
 
225
  if ( $reciprocal_return == 'exists_found' ) {
226
- $newlinkvisibility = 'publish';
 
227
  unset ( $message );
228
  } else {
229
- $newlinkvisibility = 'pending';
 
230
  }
231
  } else {
232
- $newlinkvisibility = 'pending';
 
233
  }
234
  } else {
235
- $newlinkvisibility = 'publish';
 
236
  unset ( $message );
237
  }
238
 
@@ -245,41 +242,34 @@ function link_library_process_user_submission( $my_link_library_plugin ) {
245
  }
246
  }
247
 
248
- $new_link_data = array(
249
- 'post_type' => 'link_library_links',
250
- 'post_content' => '',
251
- 'post_title' => esc_html( stripslashes( $captureddata['link_name'] ) ),
252
- 'tax_input' => array( 'link_library_category' => $newlinkcat ),
253
- 'post_status' => $newlinkvisibility
 
 
 
 
254
  );
255
-
256
- $new_link_ID = wp_insert_post( $new_link_data );
257
-
258
- if ( !empty( $new_link_ID ) ) {
259
- update_post_meta( $new_link_ID, 'link_url', esc_url( stripslashes( $captureddata['link_url'] ) ) );
260
- update_post_meta( $new_link_ID, 'link_target', $options['linktarget'] );
261
- update_post_meta( $new_link_ID, 'link_description', esc_html( stripslashes( $newlinkdesc ) ) );
262
-
263
- update_post_meta( $new_link_ID, 'link_updated', current_time( 'mysql' ) );
264
-
265
- update_post_meta( $new_link_ID, 'link_notes', esc_html( stripslashes( $captureddata['link_notes'] ) ) );
266
- update_post_meta( $new_link_ID, 'link_rss', esc_html( stripslashes( $captureddata['link_rss'] ) ) );
267
- update_post_meta( $new_link_ID, 'link_second_url', $captureddata['ll_secondwebaddr'] );
268
- update_post_meta( $new_link_ID, 'link_telephone', $captureddata['ll_telephone'] );
269
- update_post_meta( $new_link_ID, 'link_email', $captureddata['ll_email'] );
270
-
271
- update_post_meta( $new_link_ID, 'link_visits', 0 );
272
-
273
- update_post_meta( $new_link_ID, 'link_reciprocal', $captureddata['ll_reciprocal'] );
274
- update_post_meta( $new_link_ID, 'link_submitter', ( isset( $username ) ? $username : null ) );
275
- update_post_meta( $new_link_ID, 'link_submitter_name', $captureddata['ll_submittername'] );
276
- update_post_meta( $new_link_ID, 'link_submitter_email', $captureddata['ll_submitteremail'] );
277
- update_post_meta( $new_link_ID, 'link_textfield', $captureddata['link_textfield'] );
278
-
279
- update_post_meta( $new_link_ID, 'link_no_follow', false );
280
- update_post_meta( $new_link_ID, 'link_featured', 0 );
281
- update_post_meta( $new_link_ID, 'link_updated_manual', false );
282
- }
283
 
284
  if ( $options['emailnewlink'] ) {
285
  if ( $genoptions['moderatoremail'] != '' ) {
@@ -290,15 +280,12 @@ function link_library_process_user_submission( $my_link_library_plugin ) {
290
 
291
  $link_category_name = '';
292
 
293
- var_dump( $captureddata['link_category'] );
294
-
295
  if ( $captureddata['link_category'] == 'new' && $captureddata['link_user_category'] != '' ) {
296
  $link_category_name = $captureddata['link_user_category'];
297
- } elseif ( is_int( intval( $captureddata['link_category'] ) ) && 0 != intval( $captureddata['link_category'] ) ) {
298
- $existingcat = get_term_by( 'id', $captureddata['link_category'], 'link_library_category' );
299
- if ( !empty( $existingcat ) ) {
300
- $link_category_name = $existingcat->name;
301
- }
302
  }
303
 
304
  $headers = "MIME-Version: 1.0\r\n";
@@ -307,29 +294,62 @@ function link_library_process_user_submission( $my_link_library_plugin ) {
307
  $emailmessage = __( 'A user submitted a new link to your Wordpress Link database.', 'link-library' ) . "<br /><br />";
308
  $emailmessage .= __( 'Link Name', 'link-library' ) . ": " . esc_html( stripslashes( $captureddata['link_name'] ) ) . "<br />";
309
  $emailmessage .= __( 'Link Address', 'link-library' ) . ": <a href='" . esc_html( stripslashes( $captureddata['link_url'] ) ) . "'>" . esc_html( stripslashes( $captureddata['link_url'] ) ) . "</a><br />";
310
- $emailmessage .= __( 'Link RSS', 'link-library' ) . ": " . esc_html( stripslashes( $captureddata['link_rss'] ) ) . "<br />";
311
- $emailmessage .= __( 'Link Description', 'link-library' ) . ": " . esc_html( stripslashes( $captureddata['link_description'] ) ) . "<br />";
312
- $emailmessage .= __( 'Link Large Description', 'link-library' ) . ": " . esc_html( stripslashes( $captureddata['link_textfield'] ) ) . "<br />";
313
- $emailmessage .= __( 'Link Notes', 'link-library' ) . ": " . esc_html( stripslashes( $captureddata['link_notes'] ) ) . "<br />";
314
- $emailmessage .= __( 'Link Category', 'link-library' ) . ": " . $link_category_name . "( " . $captureddata['link_category'] . " )<br /><br />";
315
- $emailmessage .= __( 'Reciprocal Link', 'link-library' ) . ": " . $captureddata['ll_reciprocal'] . "<br /><br />";
316
- $emailmessage .= __( 'Link Secondary Address', 'link-library' ) . ": " . $captureddata['ll_secondwebaddr'] . "<br /><br />";
317
- $emailmessage .= __( 'Link Telephone', 'link-library' ) . ": " . $captureddata['ll_telephone'] . "<br /><br />";
318
- $emailmessage .= __( 'Link E-mail', 'link-library' ) . ": " . $captureddata['ll_email'] . "<br /><br />";
319
- $emailmessage .= __( 'Link Submitter', 'link-library' ) . ": " . $username . "<br /><br />";
320
- $emailmessage .= __( 'Link Submitter Name', 'link-library' ) . ": " . $captureddata['ll_submittername'] . "<br /><br />";
321
- $emailmessage .= __( 'Link Submitter E-mail', 'link-library' ) . ": " . $captureddata['ll_submitteremail'] . "<br /><br />";
322
- $emailmessage .= __( 'Link Comment', 'link-library' ) . ": " . $captureddata['ll_submittercomment'] . "<br /><br />";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
323
 
324
  if ( $options['showuserlinks'] == false ) {
325
- $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>';
326
  } elseif ( $options['showuserlinks'] == true ) {
327
- $emailmessage .= '<a href="' . esc_url( add_query_arg( 'post_type', 'link_library_links', admin_url( 'edit.php' ) ) ) . '">View links</a>';
328
  }
329
 
330
  $emailmessage .= "<br /><br />" . __( 'Message generated by', 'link-library' ) . " <a href='http://ylefebvre.ca/wordpress-plugins/link-library/'>Link Library</a> for Wordpress";
331
 
332
- if ( ( ! isset( $emailtitle ) || $emailtitle == '' ) || !empty( $genoptions['moderationnotificationtitle'] ) ) {
333
  $emailtitle = stripslashes( $genoptions['moderationnotificationtitle'] );
334
  $emailtitle = str_replace( '%linkname%', esc_html( stripslashes( $captureddata['link_name'] ) ), $emailtitle );
335
  } else {
@@ -337,9 +357,6 @@ function link_library_process_user_submission( $my_link_library_plugin ) {
337
  }
338
 
339
  wp_mail( $adminmail, $emailtitle, $emailmessage, $headers );
340
-
341
- var_dump( $emailmessage );
342
- die();
343
  }
344
 
345
  if ( $options['emailsubmitter'] && !empty( $captureddata['ll_submitteremail'] ) && is_email( $captureddata['ll_submitteremail'] ) ) {
@@ -437,7 +454,7 @@ function link_library_process_user_submission( $my_link_library_plugin ) {
437
 
438
  $redirectaddress = esc_url_raw( add_query_arg( 'addlinkmessage', $message, $redirectaddress ) );
439
 
440
- if ( $valid == false && ( $options['showcaptcha'] == true || $options['showcustomcaptcha'] == 'show' || $options['onereciprocaldomain'] ) ) {
441
  if ( isset( $_POST['link_name'] ) && $_POST['link_name'] != '' ) {
442
  $redirectaddress = add_query_arg( 'addlinkname', rawurlencode( $captureddata['link_name'] ), $redirectaddress );
443
  }
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 );
75
  }
76
 
77
  if ( $captureddata['link_name'] != '' && $requiredcheck ) {
78
+ if ( ( $options['addlinkakismet'] || $genoptions['addlinkakismet'] ) && ll_akismet_is_available() ) {
79
  $c = array();
80
 
81
  if ( !empty( $captureddata['ll_submittername'] ) ) {
121
  } else {
122
  $valid = true;
123
  };
124
+ } elseif ( ( $options['addlinkakismet'] || $genoptions['addlinkakismet'] ) && !ll_akismet_is_available() ) {
125
  echo 'Akismet has been selected but is not available';
126
  die();
127
  }
153
  $parsed_new_reciprocal = parse_url( esc_url( $captureddata['ll_reciprocal'] ) );
154
  $reciprocal_domain = $parsed_new_reciprocal['host'];
155
 
156
+ $reciprocal_query = "SELECT link_reciprocal from " . $my_link_library_plugin->db_prefix() . "links_extrainfo le ";
157
+
158
+ $reciprocal_links = $wpdb->get_results( $reciprocal_query );
 
 
 
 
 
 
 
 
 
159
 
160
  foreach( $reciprocal_links as $recip_link ) {
161
  $parse_data = parse_url( $recip_link->link_reciprocal );
168
  }
169
 
170
  if ( $valid ) {
171
+ $existinglinkquery = "SELECT * from " . $my_link_library_plugin->db_prefix() . "links l where l.link_name = '" . $captureddata['link_name'] . "' ";
 
 
 
 
 
172
 
173
  if ( ( $options['addlinknoaddress'] == false ) || ( $options['addlinknoaddress'] == true && $captureddata['link_url'] != "" ) ) {
174
+ $existinglinkquery .= " or l.link_url = 'http://" . $captureddata['link_url'] . "'";
175
  }
176
 
177
  $existinglink = $wpdb->get_var( $existinglinkquery );
178
 
179
+ if ( $existinglink == "" && ( ( $options['addlinknoaddress'] == false && $captureddata['link_url'] != "" ) || $options['addlinknoaddress'] == true ) ) {
180
  if ( $captureddata['link_category'] == 'new' && $captureddata['link_user_category'] != '' ) {
181
+ $existingcatquery = "SELECT t.term_id FROM " . $my_link_library_plugin->db_prefix() . "terms t, " . $my_link_library_plugin->db_prefix() . "term_taxonomy tt ";
182
+ $existingcatquery .= "WHERE t.name = '" . $captureddata['link_user_category'] . "' AND t.term_id = tt.term_id AND tt.taxonomy = 'link_category'";
183
+ $existingcat = $wpdb->get_var( $existingcatquery );
184
+
185
+ if ( ! $existingcat ) {
186
+ $newlinkcatdata = array(
187
+ "cat_name" => $captureddata['link_user_category'],
188
+ "category_description" => "",
189
+ "category_nicename" => sanitize_text_field( $captureddata['link_user_category'] )
190
+ );
191
+ $newlinkcat = wp_insert_category( $newlinkcatdata );
192
+ $newcatarray = array( "term_id" => $newlinkcat );
193
+ $newcattype = array( "taxonomy" => 'link_category' );
194
+ $wpdb->update( $my_link_library_plugin->db_prefix() . 'term_taxonomy', $newcattype, $newcatarray );
195
  $newlinkcat = array( $newlinkcat );
196
  } else {
197
+ $newlinkcat = array( $existingcat );
198
  }
199
 
200
  $message = 8;
201
  $validcat = true;
202
+ } elseif ( $captureddata['link_category'] == 'new' && $captureddata['link_user_category'] == '' ) {
203
  $message = 7;
204
  $validcat = false;
205
  } else {
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
+ $newlinkdesc = $captureddata['link_description'];
220
+ $newlinkvisibility = 'Y';
221
  unset ( $message );
222
  } else {
223
+ $newlinkdesc = '(LinkLibrary:AwaitingModeration:RemoveTextToApprove)' . $captureddata['link_description'];
224
+ $newlinkvisibility = 'N';
225
  }
226
  } else {
227
+ $newlinkdesc = '(LinkLibrary:AwaitingModeration:RemoveTextToApprove)' . $captureddata['link_description'];
228
+ $newlinkvisibility = 'N';
229
  }
230
  } else {
231
+ $newlinkdesc = $captureddata['link_description'];
232
+ $newlinkvisibility = 'Y';
233
  unset ( $message );
234
  }
235
 
242
  }
243
  }
244
 
245
+ $newlink = array(
246
+ "link_name" => esc_html( stripslashes( $captureddata['link_name'] ) ),
247
+ "link_url" => esc_url( stripslashes( $captureddata['link_url'] ) ),
248
+ "link_rss" => esc_html( stripslashes( $captureddata['link_rss'] ) ),
249
+ "link_description" => esc_html( stripslashes( $newlinkdesc ) ),
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
  if ( $options['emailnewlink'] ) {
275
  if ( $genoptions['moderatoremail'] != '' ) {
280
 
281
  $link_category_name = '';
282
 
 
 
283
  if ( $captureddata['link_category'] == 'new' && $captureddata['link_user_category'] != '' ) {
284
  $link_category_name = $captureddata['link_user_category'];
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
  $headers = "MIME-Version: 1.0\r\n";
294
  $emailmessage = __( 'A user submitted a new link to your Wordpress Link database.', 'link-library' ) . "<br /><br />";
295
  $emailmessage .= __( 'Link Name', 'link-library' ) . ": " . esc_html( stripslashes( $captureddata['link_name'] ) ) . "<br />";
296
  $emailmessage .= __( 'Link Address', 'link-library' ) . ": <a href='" . esc_html( stripslashes( $captureddata['link_url'] ) ) . "'>" . esc_html( stripslashes( $captureddata['link_url'] ) ) . "</a><br />";
297
+
298
+ if ( 'show' == $options['showaddlinkrss'] || 'required' == $options['showaddlinkrss'] ) {
299
+ $emailmessage .= __( 'Link RSS', 'link-library' ) . ": " . esc_html( stripslashes( $captureddata['link_rss'] ) ) . "<br />";
300
+ }
301
+
302
+ if ( 'show' == $options['showaddlinkdesc'] || 'required' == $options['showaddlinkdesc'] ) {
303
+ $emailmessage .= __( 'Link Description', 'link-library' ) . ": " . esc_html( stripslashes( $captureddata['link_description'] ) ) . "<br />";
304
+ }
305
+
306
+ if ( 'show' == $options['showuserlargedescription'] || 'required' == $options['showuserlargedescription'] ) {
307
+ $emailmessage .= __( 'Link Large Description', 'link-library' ) . ": " . esc_html( stripslashes( $captureddata['link_textfield'] ) ) . "<br />";
308
+ }
309
+
310
+ if ( 'show' == $options['showaddlinknotes'] || 'required' == $options['showaddlinknotes'] ) {
311
+ $emailmessage .= __( 'Link Notes', 'link-library' ) . ": " . esc_html( stripslashes( $captureddata['link_notes'] ) ) . "<br />";
312
+ }
313
+
314
+ $emailmessage .= __( 'Link Category', 'link-library' ) . ": " . $link_category_name . " ( " . $captureddata['link_category'] . " )<br /><br />";
315
+
316
+ if ( 'show' == $options['showaddlinkreciprocal'] || 'required' == $options['showaddlinkreciprocal'] ) {
317
+ $emailmessage .= __( 'Reciprocal Link', 'link-library' ) . ": " . $captureddata['ll_reciprocal'] . "<br /><br />";
318
+ }
319
+
320
+ if ( 'show' == $options['showaddlinksecondurl'] || 'required' == $options['showaddlinksecondurl'] ) {
321
+ $emailmessage .= __( 'Link Secondary Address', 'link-library' ) . ": " . $captureddata['ll_secondwebaddr'] . "<br /><br />";
322
+ }
323
+
324
+ if ( 'show' == $options['showaddlinktelephone'] || 'required' == $options['showaddlinktelephone'] ) {
325
+ $emailmessage .= __( 'Link Telephone', 'link-library' ) . ": " . $captureddata['ll_telephone'] . "<br /><br />";
326
+ }
327
+
328
+ if ( 'show' == $options['showaddlinkemail'] || 'required' == $options['showaddlinkemail'] ) {
329
+ $emailmessage .= __( 'Link E-mail', 'link-library' ) . ": " . $captureddata['ll_email'] . "<br /><br />";
330
+ }
331
+
332
+ if ( 'show' == $options['showlinksubmittername'] || 'required' == $options['showlinksubmittername'] ) {
333
+ $emailmessage .= __( 'Link Submitter Name', 'link-library' ) . ": " . $captureddata['ll_submittername'] . "<br /><br />";
334
+ }
335
+
336
+ if ( 'show' == $options['showaddlinksubmitteremail'] || 'required' == $options['showaddlinksubmitteremail'] ) {
337
+ $emailmessage .= __( 'Link Submitter E-mail', 'link-library' ) . ": " . $captureddata['ll_submitteremail'] . "<br /><br />";
338
+ }
339
+
340
+ if ( 'show' == $options['showlinksubmittercomment'] || 'required' == $options['showlinksubmittercomment'] ) {
341
+ $emailmessage .= __( 'Link Comment', 'link-library' ) . ": " . $captureddata['ll_submittercomment'] . "<br /><br />";
342
+ }
343
 
344
  if ( $options['showuserlinks'] == false ) {
345
+ $emailmessage .= '<a href="' . esc_url( add_query_arg( 's', 'LinkLibrary%3AAwaitingModeration%3ARemoveTextToApprove', admin_url( 'link-manager.php' ) ) ) . '">Moderate new links</a>';
346
  } elseif ( $options['showuserlinks'] == true ) {
347
+ $emailmessage .= '<a href="' . admin_url( 'link-manager.php' ) . '">View links</a>';
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 ( ( ! isset( $emailtitle ) || empty( $emailtitle ) ) && !empty( $genoptions['moderationnotificationtitle'] ) ) {
353
  $emailtitle = stripslashes( $genoptions['moderationnotificationtitle'] );
354
  $emailtitle = str_replace( '%linkname%', esc_html( stripslashes( $captureddata['link_name'] ) ), $emailtitle );
355
  } else {
357
  }
358
 
359
  wp_mail( $adminmail, $emailtitle, $emailmessage, $headers );
 
 
 
360
  }
361
 
362
  if ( $options['emailsubmitter'] && !empty( $captureddata['ll_submitteremail'] ) && is_email( $captureddata['ll_submitteremail'] ) ) {
454
 
455
  $redirectaddress = esc_url_raw( add_query_arg( 'addlinkmessage', $message, $redirectaddress ) );
456
 
457
+ if ( $valid == false && ( $options['showcaptcha'] == true || $options['showcustomcaptcha'] == 'show' || $options['onereciprocaldomain'] ) ) {
458
  if ( isset( $_POST['link_name'] ) && $_POST['link_name'] != '' ) {
459
  $redirectaddress = add_query_arg( 'addlinkname', rawurlencode( $captureddata['link_name'] ), $redirectaddress );
460
  }