diff --git a/wp-content/plugins/wordpress-popular-posts/js/admin.js b/wp-content/plugins/wordpress-popular-posts/js/admin.js
index ddfa11c7f311ad8d6f831597a39f3bb58694ba6b..9997baa52e42b6c2760b057045133facb35a38d0 100644
--- a/wp-content/plugins/wordpress-popular-posts/js/admin.js
+++ b/wp-content/plugins/wordpress-popular-posts/js/admin.js
@@ -1,99 +1,101 @@
-(function ($) {
-	"use strict";
-	$(function () {
-		
-		// STATISTICS TABS		
-		$("#wpp-stats-tabs a").click(function(e){
-			var activeTab = $(this).attr("rel");
-			$(this).removeClass("button-secondary").addClass("button-primary").siblings().removeClass("button-primary").addClass("button-secondary");
-			$(".wpp-stats:visible").hide("fast", function(){
-				$("#"+activeTab).slideDown("fast");
-			});
-			
-			e.preventDefault();
-		});
-			
-		$(".wpp-stats").each(function(){
-			if ($("li", this).length == 1) {
-				$("li", this).addClass("wpp-stats-last-item");
-			} else {
-				$("li:last", this).addClass("wpp-stats-last-item");
-			}
-		});
-		
-		// TOOLS
-		// thumb source selection
-		$("#thumb_source").change(function() {
-			if ($(this).val() == "custom_field") {
-				$("#lbl_field, #thumb_field, #row_custom_field, #row_custom_field_resize").show();
-			} else {
-				$("#lbl_field, #thumb_field, #row_custom_field, #row_custom_field_resize").hide();
-			}
-		});
-		// file upload
-		$('#upload_thumb_button').click(function(e) {
-			tb_show('Upload a thumbnail', 'media-upload.php?referer=wpp_admin&type=image&TB_iframe=true&post_id=0', false);
-			e.preventDefault();			
-		});		
-		window.send_to_editor = function(html) {			
-			var image_url = $('img',html).attr('src');
-			$('#upload_thumb_src').val(image_url);
-			
-			var img = new Image();
-			img.src = image_url;
-			
-			$("#thumb-review").html( img );
-			$("#thumb-review").parent().show();
-			
-			tb_remove();			
-		};
-		// cache interval 
-		$("#cache").change(function() {
-			if ($(this).val() == 1) {
-				$("#cache_refresh_interval").show();
-			} else {
-				$("#cache_refresh_interval, #cache_too_long").hide();
-			}
-		});
-		// interval
-		$("#cache_interval_time").change(function() {			
-			var value = parseInt( $("#cache_interval_value").val() );
-			var time = $(this).val();
-			
-			console.log(time + " " + value);
-			
-			if ( time == "hour" && value > 72 ) {				
-				$("#cache_too_long").show();				
-			} else if ( time == "day" && value > 3 ) {				
-				$("#cache_too_long").show();				
-			} else if ( time == "week" && value > 1 ) {				
-				$("#cache_too_long").show();				
-			} else if ( time == "month" && value >= 1 ) {				
-				$("#cache_too_long").show();				
-			} else if ( time == "year" && value >= 1 ) {				
-				$("#cache_too_long").show();
-			} else {
-				$("#cache_too_long").hide();
-			}			
-		});
-		
-		$("#cache_interval_value").change(function() {			
-			var value = parseInt( $(this).val() );
-			var time = $("#cache_interval_time").val();
-			
-			if ( time == "hour" && value > 72 ) {				
-				$("#cache_too_long").show();				
-			} else if ( time == "day" && value > 3 ) {				
-				$("#cache_too_long").show();				
-			} else if ( time == "week" && value > 1 ) {				
-				$("#cache_too_long").show();				
-			} else if ( time == "month" && value >= 1 ) {				
-				$("#cache_too_long").show();				
-			} else if ( time == "year" && value >= 1 ) {				
-				$("#cache_too_long").show();
-			} else {
-				$("#cache_too_long").hide();
-			}			
-		});
-	});
+(function ($) {
+	"use strict";
+	$(function () {
+		
+		// STATISTICS TABS		
+		$("#wpp-stats-tabs a").click(function(e){
+			var activeTab = $(this).attr("rel");
+			$(this).removeClass("button-secondary").addClass("button-primary").siblings().removeClass("button-primary").addClass("button-secondary");
+			$(".wpp-stats:visible").hide("fast", function(){
+				$("#"+activeTab).slideDown("fast");
+			});
+			
+			e.preventDefault();
+		});
+			
+		$(".wpp-stats").each(function(){
+			if ($("li", this).length == 1) {
+				$("li", this).addClass("wpp-stats-last-item");
+			} else {
+				$("li:last", this).addClass("wpp-stats-last-item");
+			}
+		});
+		
+		// TOOLS
+		// thumb source selection
+		$("#thumb_source").change(function() {
+			if ($(this).val() == "custom_field") {
+				$("#lbl_field, #thumb_field, #row_custom_field, #row_custom_field_resize").show();
+			} else {
+				$("#lbl_field, #thumb_field, #row_custom_field, #row_custom_field_resize").hide();
+			}
+		});
+		// file upload
+		$('#upload_thumb_button').click(function(e) {
+			tb_show('Upload a thumbnail', 'media-upload.php?referer=wpp_admin&type=image&TB_iframe=true&post_id=0', false);
+			e.preventDefault();			
+		});		
+		window.send_to_editor = function(html) {
+			var regex = /<img[^>]+src="(http:\/\/[^">]+)"/g;
+			var result = regex.exec(html);			
+
+			if ( null != result ) {
+				$('#upload_thumb_src').val(result[1]);
+
+				var img = new Image();
+				img.onload = function() {
+					$("#thumb-review").html( this ).parent().fadeIn();
+				}
+				img.src = result[1];
+			}
+			
+			tb_remove();			
+		};
+		// cache interval 
+		$("#cache").change(function() {
+			if ($(this).val() == 1) {
+				$("#cache_refresh_interval").show();
+			} else {
+				$("#cache_refresh_interval, #cache_too_long").hide();
+			}
+		});
+		// interval
+		$("#cache_interval_time").change(function() {			
+			var value = parseInt( $("#cache_interval_value").val() );
+			var time = $(this).val();
+			
+			if ( time == "hour" && value > 72 ) {				
+				$("#cache_too_long").show();				
+			} else if ( time == "day" && value > 3 ) {				
+				$("#cache_too_long").show();				
+			} else if ( time == "week" && value > 1 ) {				
+				$("#cache_too_long").show();				
+			} else if ( time == "month" && value >= 1 ) {				
+				$("#cache_too_long").show();				
+			} else if ( time == "year" && value >= 1 ) {				
+				$("#cache_too_long").show();
+			} else {
+				$("#cache_too_long").hide();
+			}			
+		});
+		
+		$("#cache_interval_value").change(function() {			
+			var value = parseInt( $(this).val() );
+			var time = $("#cache_interval_time").val();
+			
+			if ( time == "hour" && value > 72 ) {				
+				$("#cache_too_long").show();				
+			} else if ( time == "day" && value > 3 ) {				
+				$("#cache_too_long").show();				
+			} else if ( time == "week" && value > 1 ) {				
+				$("#cache_too_long").show();				
+			} else if ( time == "month" && value >= 1 ) {				
+				$("#cache_too_long").show();				
+			} else if ( time == "year" && value >= 1 ) {				
+				$("#cache_too_long").show();
+			} else {
+				$("#cache_too_long").hide();
+			}			
+		});
+	});
 }(jQuery));
\ No newline at end of file
diff --git a/wp-content/plugins/wordpress-popular-posts/lang/wordpress-popular-posts-de_DE.mo b/wp-content/plugins/wordpress-popular-posts/lang/wordpress-popular-posts-de_DE.mo
index 235317fa564bf0b94a172965f72f05414d8676cf..df3e07359ee58f2ad3ee27aa78ee58bd5ba973b5 100644
Binary files a/wp-content/plugins/wordpress-popular-posts/lang/wordpress-popular-posts-de_DE.mo and b/wp-content/plugins/wordpress-popular-posts/lang/wordpress-popular-posts-de_DE.mo differ
diff --git a/wp-content/plugins/wordpress-popular-posts/lang/wordpress-popular-posts-de_DE.po b/wp-content/plugins/wordpress-popular-posts/lang/wordpress-popular-posts-de_DE.po
index b7e5d12b80ad311783f74a4bcb4738e220da6941..aca33355db66464efa8cf149b4461ef38b3885d3 100644
--- a/wp-content/plugins/wordpress-popular-posts/lang/wordpress-popular-posts-de_DE.po
+++ b/wp-content/plugins/wordpress-popular-posts/lang/wordpress-popular-posts-de_DE.po
@@ -1,1450 +1,1527 @@
-msgid ""
-msgstr ""
-"Project-Id-Version: Wordpress Popular Posts\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-09-23 16:53-0430\n"
-"PO-Revision-Date: \n"
-"Last-Translator: Héctor Cabrera <hcabrerab@gmail.com>\n"
-"Language-Team: Héctor Cabrera <hcabrerab@gmail.com>\n"
-"Language: de_DE\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Poedit-SourceCharset: UTF-8\n"
-"X-Poedit-KeywordsList: __;_e;_n:1,2\n"
-"X-Poedit-Basepath: .\n"
-"X-Generator: Poedit 1.6.9\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-"X-Poedit-SearchPath-0: .\n"
-"X-Poedit-SearchPath-1: ..\n"
-
-#: ../views/admin.php:25 ../views/admin.php:34 ../views/admin.php:48
-#: ../views/admin.php:69
-msgid "Settings saved."
-msgstr "Einstellungen gespeichert"
-
-#: ../views/admin.php:40
-msgid "Please provide the name of your custom field."
-msgstr "Gebe einen Namen für das benutzerdefinierte Feld an."
-
-#: ../views/admin.php:75
-msgid ""
-"Any changes made to WPP's default stylesheet will be lost after every plugin "
-"update. In order to prevent this from happening, please copy the wpp.css "
-"file (located at wp-content/plugins/wordpress-popular-posts/style) into your "
-"theme's directory"
-msgstr ""
-
-#: ../views/admin.php:90
-#, fuzzy
-msgid ""
-"This operation will delete all entries from WordPress Popular Posts' cache "
-"table and cannot be undone."
-msgstr ""
-"Alle Einträge im Cache werden gelöscht und können nicht mehr wieder "
-"hergestellt werden."
-
-#: ../views/admin.php:90 ../views/admin.php:98 ../views/admin.php:106
-msgid "Do you want to continue?"
-msgstr "Möchtest du fortfahren?"
-
-#: ../views/admin.php:98
-msgid ""
-"This operation will delete all stored info from WordPress Popular Posts' "
-"data tables and cannot be undone."
-msgstr ""
-"Alle gespeicherten Daten von WordPress Popular Posts werden gelöscht und "
-"können nicht wieder hergestellt werden."
-
-#: ../views/admin.php:106
-#, fuzzy
-msgid "This operation will delete all cached thumbnails and cannot be undone."
-msgstr ""
-"Alle Einträge im Cache werden gelöscht und können nicht mehr wieder "
-"hergestellt werden."
-
-#: ../views/admin.php:123
-msgid "Stats"
-msgstr "Statistiken"
-
-#: ../views/admin.php:124
-msgid "Tools"
-msgstr "Werkzeuge"
-
-#: ../views/admin.php:125 ../views/admin.php:689
-msgid "Parameters"
-msgstr "Parameter"
-
-#: ../views/admin.php:126
-msgid "FAQ"
-msgstr "Häufige Fragen und Antworten"
-
-#: ../views/admin.php:127
-msgid "About"
-msgstr "Über"
-
-#: ../views/admin.php:138
-msgid ""
-"Click on each tab to see what are the most popular entries on your blog in "
-"the last 24 hours, this week, last 30 days or all time since WordPress "
-"Popular Posts was installed."
-msgstr ""
-"Klicke auf jeden Reiter, um die beliebtesten Beiträge deines Blogs von den "
-"letzten 24 Stunden, dieser Woche, den letzten 30 Tagen oder des gesamten "
-"Zeitraums seit der Installation von WordPress Popular Posts zu sehen."
-
-#: ../views/admin.php:144
-msgid "Order by comments"
-msgstr "Sortiert nach Kommentaren"
-
-#: ../views/admin.php:145
-msgid "Order by views"
-msgstr "Sortiert nach Seitenaufrufen"
-
-#: ../views/admin.php:146
-msgid "Order by avg. daily views"
-msgstr "Sortierte nach durchschn. Tagesaufrufen"
-
-#: ../views/admin.php:148
-msgid "Post type"
-msgstr "Post-Type"
-
-#: ../views/admin.php:149
-msgid "Limit"
-msgstr "Max. aufzulistende Einträge:"
-
-#: ../views/admin.php:150 ../views/form.php:32
-msgid "Display only posts published within the selected Time Range"
-msgstr ""
-
-#: ../views/admin.php:152 ../views/admin.php:242 ../views/admin.php:308
-#: ../views/admin.php:345
-msgid "Apply"
-msgstr "Anwenden"
-
-#: ../views/admin.php:158 ../views/form.php:26
-msgid "Last 24 hours"
-msgstr "Letzte 24 Stunden"
-
-#: ../views/admin.php:159 ../views/form.php:27
-msgid "Last 7 days"
-msgstr "Letzte 7 Tage"
-
-#: ../views/admin.php:160 ../views/form.php:28
-msgid "Last 30 days"
-msgstr "Letzte 30 Tage"
-
-#: ../views/admin.php:161 ../views/form.php:29
-msgid "All-time"
-msgstr "Allzeithoch"
-
-#: ../views/admin.php:183
-msgid "Thumbnails"
-msgstr "Vorschaubilder"
-
-#: ../views/admin.php:188
-msgid "Default thumbnail"
-msgstr "Standardvorschaubild"
-
-#: ../views/admin.php:193
-msgid "Upload thumbnail"
-msgstr "Vorschaubild hochladen"
-
-#: ../views/admin.php:195
-msgid ""
-"How-to: upload (or select) an image, set Size to Full and click on Upload. "
-"After it's done, hit on Apply to save changes"
-msgstr ""
-"Anleitung: ein Bild hochladen (oder aus existierenden wählen) und "
-"\"vollständige Größe\" einstellen. Anschließend \"Anwenden\" anklicken."
-
-#: ../views/admin.php:199
-msgid "Pick image from"
-msgstr "Wähle Bildquelle"
-
-#: ../views/admin.php:202
-msgid "Featured image"
-msgstr "Beitragsbild"
-
-#: ../views/admin.php:203
-msgid "First image on post"
-msgstr "Erstes Bild im Beitrag"
-
-#: ../views/admin.php:204
-msgid "Custom field"
-msgstr "Benutzerdefiniertes Feld"
-
-#: ../views/admin.php:207
-#, fuzzy
-msgid "Tell WordPress Popular Posts where it should get thumbnails from"
-msgstr "Woher kommen die Vorschaubilder?"
-
-#: ../views/admin.php:211
-msgid "Custom field name"
-msgstr "Name des benutzerdefiniertes Feldes"
-
-#: ../views/admin.php:217
-msgid "Resize image from Custom field?"
-msgstr "Bild aus benutzerdefiniertem Feld skalieren?"
-
-#: ../views/admin.php:220
-msgid "No, I will upload my own thumbnail"
-msgstr "Nein, ich lade mein eigenes Vorschaubild hoch"
-
-#: ../views/admin.php:221
-msgid "Yes"
-msgstr "Ja"
-
-#: ../views/admin.php:232
-#, fuzzy
-msgid "Empty image cache"
-msgstr "Cache leeren"
-
-#: ../views/admin.php:233
-#, fuzzy
-msgid "Use this button to clear WPP's thumbnails cache"
-msgstr ""
-"Nutze diese Schaltfläche, um die Cache-Tabelle von Wordpress Popular Posts "
-"zu leeren."
-
-#: ../views/admin.php:251
-msgid "Data"
-msgstr "Daten"
-
-#: ../views/admin.php:256
-msgid "Log views from"
-msgstr "Erfasse Aufrufe"
-
-#: ../views/admin.php:259
-msgid "Visitors only"
-msgstr "von jedem außer eingeloggten Benutzern"
-
-#: ../views/admin.php:260
-msgid "Logged-in users only"
-msgstr "nur von eingeloggten Benutzern"
-
-#: ../views/admin.php:261
-msgid "Everyone"
-msgstr "von jedem"
-
-#: ../views/admin.php:267
-msgid "Ajaxify widget"
-msgstr "Widget via Ajax"
-
-#: ../views/admin.php:270 ../views/admin.php:336
-msgid "Disabled"
-msgstr "Deaktiviert"
-
-#: ../views/admin.php:271 ../views/admin.php:335
-msgid "Enabled"
-msgstr "Aktiviert"
-
-#: ../views/admin.php:275
-msgid ""
-"If you are using a caching plugin such as WP Super Cache, enabling this "
-"feature will keep the popular list from being cached by it"
-msgstr ""
-"Falls du ein Cache-Plugin wie z. B. WP Super Cache verwendest, verhindert "
-"das Aktivieren, dass die Liste nicht gecachet wird und stets aktuell ist."
-
-#: ../views/admin.php:279
-msgid "Listing refresh interval"
-msgstr "Aktualisierungsintervall der Liste"
-
-#: ../views/admin.php:282
-msgid "Live"
-msgstr "Echtzeit"
-
-#: ../views/admin.php:283
-msgid "Custom interval"
-msgstr "Benutzerdefiniertes Intervall"
-
-#: ../views/admin.php:287
-msgid ""
-"Sets how often the listing should be updated. For most sites the Live option "
-"should be fine, however if you are experiencing slowdowns or your blog gets "
-"a lot of visitors then you might want to change the refresh rate"
-msgstr ""
-"Stellt ein, wie oft die Liste aktualisiert wird. Für die meisten Websites "
-"erreicht die Echtzeit-Einstellung gute Werte. Solltest du jedoch "
-"Verlangsamungen feststellen oder deine Website erreicht viele Besucher, "
-"solltest du die Aktualisierungsrate ändern."
-
-#: ../views/admin.php:291
-msgid "Refresh list every"
-msgstr "Benutzerdefiniertes Intervall"
-
-#: ../views/admin.php:295
-msgid "Hour(s)"
-msgstr "Stunde(n)"
-
-#: ../views/admin.php:296
-msgid "Day(s)"
-msgstr "Tag(e)"
-
-#: ../views/admin.php:297
-msgid "Week(s)"
-msgstr "Woche(n)"
-
-#: ../views/admin.php:298
-msgid "Month(s)"
-msgstr "Monat(e)"
-
-#: ../views/admin.php:299
-msgid "Year(s)"
-msgstr "Jahr(e)"
-
-#: ../views/admin.php:302
-msgid "Really? That long?"
-msgstr "Wirklich? So lang?"
-
-#: ../views/admin.php:317
-msgid "Miscellaneous"
-msgstr "Sonstiges"
-
-#: ../views/admin.php:322
-msgid "Open links in"
-msgstr "Links öffnen in"
-
-#: ../views/admin.php:325
-msgid "Current window"
-msgstr "aktuellem Fenster"
-
-#: ../views/admin.php:326
-msgid "New tab/window"
-msgstr "Neuem Tab/Fenster"
-
-#: ../views/admin.php:332
-msgid "Use plugin's stylesheet"
-msgstr "Stylesheet des Plugins benutzen"
-
-#: ../views/admin.php:339
-msgid ""
-"By default, the plugin includes a stylesheet called wpp.css which you can "
-"use to style your popular posts listing. If you wish to use your own "
-"stylesheet or do not want it to have it included in the header section of "
-"your site, use this."
-msgstr ""
-"Als Voreinstellung schließt dieses Plugin eine Stylesheet-Datei wpp.css ein. "
-"Du kannst mit ihr die Auflistung beliebter Beiträge gestalten. Falls du dein "
-"eigenes Stylesheet verwenden oder die wpp.css nicht im HEAD-Abschnitt "
-"einbinden willst, deaktiviere die Einbindung."
-
-#: ../views/admin.php:356
-msgid ""
-"WordPress Popular Posts maintains data in two separate tables: one for "
-"storing the most popular entries on a daily basis (from now on, \"cache\"), "
-"and another one to keep the All-time data (from now on, \"historical data\" "
-"or just \"data\"). If for some reason you need to clear the cache table, or "
-"even both historical and cache tables, please use the buttons below to do so."
-msgstr ""
-"WordPress Popular Posts speichert Daten in zwei getrennten Tabellen: eine "
-"für die beliebtesten Beiträge der letzten 30 Tage (auch: \"Cache-Tabelle\"), "
-"und die andere für die Allzeit-Daten (auch \"historische Daten\" oder "
-"einfach \"Datentabelle\"). Solltest du aus verschiedenen Gründen die Cache-"
-"Tabelle leeren wollen oder sowohl die Datentabelle als auch die Cache-"
-"Tabelle, nutze die folgenden Schaltflächen."
-
-#: ../views/admin.php:357
-msgid "Empty cache"
-msgstr "Cache leeren"
-
-#: ../views/admin.php:357
-msgid "Use this button to manually clear entries from WPP cache only"
-msgstr ""
-"Nutze diese Schaltfläche, um die Cache-Tabelle von Wordpress Popular Posts "
-"zu leeren."
-
-#: ../views/admin.php:358
-msgid "Clear all data"
-msgstr "Alle Daten löschen"
-
-#: ../views/admin.php:358
-msgid "Use this button to manually clear entries from all WPP data tables"
-msgstr ""
-"Nutze diese Schaltfläche, um alle Einträge in der Datentabelle von Wordpress "
-"Popular Posts zu löschen."
-
-#: ../views/admin.php:365
-#, php-format
-msgid ""
-"With the following parameters you can customize the popular posts list when "
-"using either the <a href=\"%1$s\">wpp_get_most_popular() template tag</a> or "
-"the <a href=\"%2$s\">[wpp] shortcode</a>."
-msgstr ""
-
-#: ../views/admin.php:373
-msgid "Parameter"
-msgstr "Parameter"
-
-#: ../views/admin.php:374 ../views/admin.php:688
-msgid "What it does "
-msgstr "Was es macht"
-
-#: ../views/admin.php:375
-msgid "Possible values"
-msgstr "Erlaubte Werte"
-
-#: ../views/admin.php:376
-msgid "Defaults to"
-msgstr "Voreinstellung"
-
-#: ../views/admin.php:377 ../views/admin.php:690
-msgid "Example"
-msgstr "Beispiel"
-
-#: ../views/admin.php:383
-msgid "Sets a heading for the list"
-msgstr "Bestimmt die Überschrift der Liste"
-
-#: ../views/admin.php:384 ../views/admin.php:391 ../views/admin.php:398
-#: ../views/admin.php:433 ../views/admin.php:440 ../views/admin.php:447
-#: ../views/admin.php:454 ../views/admin.php:545 ../views/admin.php:559
-#: ../views/admin.php:566
-msgid "Text string"
-msgstr "Zeichenkette"
-
-#: ../views/admin.php:385
-msgid "Popular Posts"
-msgstr "Beliebteste Beiträge"
-
-#: ../views/admin.php:390
-msgid "Set the opening tag for the heading of the list"
-msgstr "Bestimmt den öffnenden Tag der Listenüberschrift"
-
-#: ../views/admin.php:397
-msgid "Set the closing tag for the heading of the list"
-msgstr "Bestimmt den schließenden Tag der Listenüberschrift"
-
-#: ../views/admin.php:404
-msgid "Sets the maximum number of popular posts to be shown on the listing"
-msgstr "Bestimmt die maximale Anzahl der beliebten Beiträge in der Auflistung"
-
-#: ../views/admin.php:405 ../views/admin.php:461 ../views/admin.php:475
-#: ../views/admin.php:496 ../views/admin.php:503
-msgid "Positive integer"
-msgstr "Positive Ganzzahl"
-
-#: ../views/admin.php:411
-msgid ""
-"Tells WordPress Popular Posts to retrieve the most popular entries within "
-"the time range specified by you"
-msgstr ""
-"Weist WordPress Popular Posts an, die beliebtesten Beiträge innerhalt der "
-"eingestellten Zeitspanne anzuzeigen."
-
-#: ../views/admin.php:418
-msgid ""
-"Tells WordPress Popular Posts to retrieve the most popular entries published "
-"within the time range specified by you"
-msgstr ""
-"Weist WordPress Popular Posts an, die beliebtesten Beiträge innerhalt der "
-"eingestellten Zeitspanne anzuzeigen."
-
-#: ../views/admin.php:425
-msgid "Sets the sorting option of the popular posts"
-msgstr "Bestimmt die Auswahl der Reihenfolge der beliebten Beiträge"
-
-#: ../views/admin.php:426
-msgid "(for average views per day)"
-msgstr "(für durchschn. Aufrufe pro Tag)"
-
-#: ../views/admin.php:432
-msgid "Defines the type of posts to show on the listing"
-msgstr "Bestimmt die Art der Dokumente, die aufgelistet werden"
-
-#: ../views/admin.php:439
-msgid ""
-"If set, WordPress Popular Posts will exclude the specified post(s) ID(s) "
-"form the listing."
-msgstr ""
-"Falls gesetzt, zeigt WordPress Popular Posts die Beiträge und Seiten anhand "
-"ihrer angegebener ID(s) in der Liste nicht an."
-
-#: ../views/admin.php:441 ../views/admin.php:448 ../views/admin.php:455
-msgid "None"
-msgstr "nichts"
-
-#: ../views/admin.php:446
-msgid ""
-"If set, WordPress Popular Posts will retrieve all entries that belong to the "
-"specified category(ies) ID(s). If a minus sign is used, the category(ies) "
-"will be excluded instead."
-msgstr ""
-"Falls gesetzt, zeigt WordPress Popular Posts alle Einträge, die den "
-"angegebenen Kategorie-IDs zugeordnet sind, an. Ein Minus-Zeichen vor der ID "
-"schließt die Beiträge dieser Kategorie aus."
-
-#: ../views/admin.php:453
-msgid ""
-"If set, WordPress Popular Posts will retrieve all entries created by "
-"specified author(s) ID(s)."
-msgstr ""
-"Falls gesetzt, wird WordPress Popular Posts alle Einträge anhand angegebener "
-"Autor(en)-ID(s) ausgeben."
-
-#: ../views/admin.php:460
-msgid ""
-"If set, WordPress Popular Posts will shorten each post title to \"n\" "
-"characters whenever possible"
-msgstr ""
-"Falls gesetzt, kürzt WordPress Popular Posts jeden Titel, wenn möglich, auf "
-"\"n\" Zeichen."
-
-#: ../views/admin.php:467
-msgid ""
-"If set to 1, WordPress Popular Posts will shorten each post title to \"n\" "
-"words instead of characters"
-msgstr ""
-"Falls gesetzt, kürzt WordPress Popular Posts jeden Titel, wenn möglich, auf "
-"\"n\" Wörter anstatt Zeichen."
-
-#: ../views/admin.php:474
-msgid ""
-"If set, WordPress Popular Posts will build and include an excerpt of \"n\" "
-"characters long from the content of each post listed as popular"
-msgstr ""
-"Falls gesetzt, zeigt WordPress Popular Posts einen Auszug von \"n\" "
-"Buchstaben Länge bei jedem Beitrag an."
-
-#: ../views/admin.php:481
-msgid ""
-"If set, WordPress Popular Posts will maintaing all styling tags (strong, "
-"italic, etc) and hyperlinks found in the excerpt"
-msgstr ""
-"Falls gesetzt, behält WordPress Popular Posts die formatierenden Tags (fett, "
-"kursiv usw.) und die Links im Auszug bei."
-
-#: ../views/admin.php:488
-msgid ""
-"If set to 1, WordPress Popular Posts will shorten the excerpt to \"n\" words "
-"instead of characters"
-msgstr ""
-"Falls gesetzt, kürzt WordPress Popular Posts jeden Auszug, wenn möglich, auf "
-"\"n\" Wörter anstatt Zeichen."
-
-#: ../views/admin.php:495
-msgid ""
-"If set, and if your current server configuration allows it, you will be able "
-"to display thumbnails of your posts. This attribute sets the width for "
-"thumbnails"
-msgstr ""
-"Falls gesetzt und es die aktuelle Server-Konfiguration erlaubt, ist dir die "
-"Anzeige von Vorschaubildern deiner Beiträge möglich. Dieses Attribut "
-"bestimmt die Breite der Vorschaubilder."
-
-#: ../views/admin.php:502
-msgid ""
-"If set, and if your current server configuration allows it, you will be able "
-"to display thumbnails of your posts. This attribute sets the height for "
-"thumbnails"
-msgstr ""
-"Falls gesetzt und es die aktuelle Server-Konfiguration erlaubt, ist dir die "
-"Anzeige von Vorschaubildern deiner Beiträge möglich. Dieses Attribut "
-"bestimmt die Höhe der Vorschaubilder."
-
-#: ../views/admin.php:509
-msgid ""
-"If set, and if the WP-PostRatings plugin is installed and enabled on your "
-"blog, WordPress Popular Posts will show how your visitors are rating your "
-"entries"
-msgstr ""
-"Falls gesetzt und wenn das Plugin WP-PostRatings in Deinem Blog läuft, zeigt "
-"WordPress Popular Posts die Bewertungen der Nutzer an."
-
-#: ../views/admin.php:516
-msgid ""
-"If set, WordPress Popular Posts will show how many comments each popular "
-"post has got until now"
-msgstr ""
-"Falls gesetzt, zeigt WordPress Popular Posts an, wie viele Kommentare jeder "
-"Beitrag bis jetzt erhielt."
-
-#: ../views/admin.php:523
-msgid ""
-"If set, WordPress Popular Posts will show how many views each popular post "
-"has got since it was installed"
-msgstr ""
-"Falls gesetzt, zeigt WordPress Popular Posts an, wie viele Aufrufe jeder "
-"Beitrag seit der Installation erhielt."
-
-#: ../views/admin.php:530
-msgid ""
-"If set, WordPress Popular Posts will show who published each popular post on "
-"the list"
-msgstr ""
-"Falls gesetzt, zeigt WordPress Popular Posts an, wer welchen Beitrag "
-"veröffentlicht hat."
-
-#: ../views/admin.php:537
-msgid ""
-"If set, WordPress Popular Posts will display the date when each popular post "
-"on the list was published"
-msgstr ""
-"Falls gesetzt, zeigt WordPress Popular Posts das Veröffentlichungsdatum "
-"jeden Beitrags in der Liste an."
-
-#: ../views/admin.php:544
-msgid "Sets the date format"
-msgstr "Bestimmt das Datumsformat"
-
-#: ../views/admin.php:551
-msgid "If set, WordPress Popular Posts will display the category"
-msgstr "Falls gesetzt, zeigt WordPress Popular Posts die Kategorie an"
-
-#: ../views/admin.php:558
-msgid "Sets the opening tag for the listing"
-msgstr "Bestimmt das öffnende Tag der Auflistung"
-
-#: ../views/admin.php:565
-msgid "Sets the closing tag for the listing"
-msgstr "Bestimmt das schließende Tag der Auflistung"
-
-#: ../views/admin.php:572
-msgid "Sets the HTML structure of each post"
-msgstr "Setzt die HTML-Struktur jeden Beitrags"
-
-#: ../views/admin.php:573
-msgid "Text string, custom HTML"
-msgstr "Zeichenkette, benutzerdefiniertes HTML"
-
-#: ../views/admin.php:573
-msgid "Available Content Tags"
-msgstr "Verfügbare Content-Tags"
-
-#: ../views/admin.php:573
-msgid "displays thumbnail linked to post/page"
-msgstr "zeigt verlinktes Vorschaubild des Beitrags/der Seite an"
-
-#: ../views/admin.php:573
-msgid "displays linked post/page title"
-msgstr "zeigt den verlinkten Titel des Beitrags/der Seiten an"
-
-#: ../views/admin.php:573
-msgid ""
-"displays post/page excerpt, and requires excerpt_length to be greater than 0"
-msgstr ""
-"zeigt den Auszug (excerpt) des Beitrags/der Seite an, erfordert "
-"excerpt_length größer als 0"
-
-#: ../views/admin.php:573
-msgid "displays the default stats tags"
-msgstr "zeigt die standard&shy;mäßigen Statistik-Tags an"
-
-#: ../views/admin.php:573
-msgid ""
-"displays post/page current rating, requires WP-PostRatings installed and "
-"enabled"
-msgstr ""
-"zeigt die aktuelle Bewertung des Beitrags/der Seite an, erfordert das "
-"installierte und aktivierte Plugin WP-PostRatings"
-
-#: ../views/admin.php:573
-msgid ""
-"displays post/page current rating as an integer, requires WP-PostRatings "
-"installed and enabled"
-msgstr ""
-"zeigt die aktuelle Bewertung des Beitrags/der Seite an, erfordert das "
-"installierte und aktivierte Plugin WP-PostRatings"
-
-#: ../views/admin.php:573
-msgid "outputs the URL of the post/page"
-msgstr "gibt die URL des Beitrags/der Seite aus"
-
-#: ../views/admin.php:573
-msgid "displays post/page title, no link"
-msgstr "zeigt den Titel des Beitrags/der Seite an, ohne Link"
-
-#: ../views/admin.php:573
-msgid "displays linked author name, requires stats_author=1"
-msgstr "zeigt den verlinkten Autoren&shy;namen an, erfordert stats_author=1"
-
-#: ../views/admin.php:573
-msgid "displays linked category name, requires stats_category=1"
-msgstr ""
-"zeigt den verlinkten Kategorien&shy;namen an, erfordert stats_category=1"
-
-#: ../views/admin.php:573
-msgid "displays views count only, no text"
-msgstr "zeigt nur die Anzahl an, ohne Text"
-
-#: ../views/admin.php:573
-msgid "displays comments count only, no text, requires stats_comments=1"
-msgstr ""
-"zeigt nur die Anzahl der Kom&shy;men&shy;tare an, ohne Text, erfordert "
-"stats_comment=1"
-
-#: ../views/admin.php:585
-msgid "What does \"Title\" do?"
-msgstr "Was macht \"Titel\"?"
-
-#: ../views/admin.php:588
-msgid ""
-"It allows you to show a heading for your most popular posts listing. If left "
-"empty, no heading will be displayed at all."
-msgstr ""
-"Ermöglicht dir, eine Überschrift für die Auflistung anzugeben. Falls leer "
-"belassen, wird keine Überschrift angezeigt."
-
-#: ../views/admin.php:591
-msgid "What is Time Range for?"
-msgstr "Für was steht die Zeitspanne?"
-
-#: ../views/admin.php:593
-msgid ""
-"It will tell WordPress Popular Posts to retrieve all posts with most views / "
-"comments within the selected time range."
-msgstr ""
-"Weist WordPress Popular Posts an, alle Beiträge mit den meisten Aufrufen "
-"bzw. Kommentaren innerhalb der eingestellten Zeitspanne anzuzeigen."
-
-#: ../views/admin.php:596
-msgid "What is \"Sort post by\" for?"
-msgstr "Für was steht \"Sortiere Beiträge nach\"?"
-
-#: ../views/admin.php:598
-msgid ""
-"It allows you to decide whether to order your popular posts listing by total "
-"views, comments, or average views per day."
-msgstr ""
-"Ermöglicht dir zu entscheiden, ob die Listeneinträge nach absoluter Anzahl "
-"der Aufrufe, Kommentare oder durchschnittlichen Aufrufen pro Tag geordnet "
-"werden."
-
-#: ../views/admin.php:601
-msgid "What does \"Display post rating\" do?"
-msgstr "Was macht \"Zeige Bewertung\"?"
-
-#: ../views/admin.php:603
-msgid ""
-"If checked, WordPress Popular Posts will show how your readers are rating "
-"your most popular posts. This feature requires having WP-PostRatings plugin "
-"installed and enabled on your blog for it to work."
-msgstr ""
-"Falls aktiviert, zeigt WordPress Popular Posts an, wie deine Leser deine "
-"beliebtesten Beiträge bewertet haben. Diese Funktion erfordert die "
-"Installation und Aktivierung des Plugins WP-PostRatings."
-
-#: ../views/admin.php:606
-msgid "What does \"Shorten title\" do?"
-msgstr "Was macht \"Kürze den Titel\"?"
-
-#: ../views/admin.php:608
-msgid ""
-"If checked, all posts titles will be shortened to \"n\" characters/words. A "
-"new \"Shorten title to\" option will appear so you can set it to whatever "
-"you like."
-msgstr ""
-"Falls aktiviert, werden alle Titel auf \"n\" Zeichen gekürzt. Eine neue "
-"Auswahl \"Kürze den Titel zu\" wird erscheinen, mit der du die Titellänge "
-"setzen kannst."
-
-#: ../views/admin.php:611
-msgid "What does \"Display post excerpt\" do?"
-msgstr "Was macht \"Zeige Auszug\"?"
-
-#: ../views/admin.php:613
-msgid ""
-"If checked, WordPress Popular Posts will also include a small extract of "
-"your posts in the list. Similarly to the previous option, you will be able "
-"to decide how long the post excerpt should be."
-msgstr ""
-"Falls aktiviert, zeigt WordPress Popular Posts zusätzlich einen kurzen "
-"Auszug Deines Beitrags in der Liste an. Wie bei der vorhergehenden Auswahl "
-"ist es dir möglich, die Länge des Auszugs einzustellen."
-
-#: ../views/admin.php:616
-msgid "What does \"Keep text format and links\" do?"
-msgstr "Was macht \"Behalte Textformat und Links bei\"?"
-
-#: ../views/admin.php:618
-msgid ""
-"If checked, and if the Post Excerpt feature is enabled, WordPress Popular "
-"Posts will keep the styling tags (eg. bold, italic, etc) that were found in "
-"the excerpt. Hyperlinks will remain intact, too."
-msgstr ""
-"Falls aktiviert und wenn die Darstellung von Auszügen aktiviert ist, behält "
-"WordPress Popular Posts die formatierenden Tags (z. B. fett, kursiv usw.) im "
-"Auszug. Auch Links bleiben unverändert."
-
-#: ../views/admin.php:621
-msgid "What is \"Post type\" for?"
-msgstr "Für was steht \"Post-Type\"?"
-
-#: ../views/admin.php:623
-msgid ""
-"This filter allows you to decide which post types to show on the listing. By "
-"default, it will retrieve only posts and pages (which should be fine for "
-"most cases)."
-msgstr ""
-"Dieser Filter erlaubt dir zu entscheiden, welche Post-Types aufgelistet "
-"werden. Per Voreinstellung werden nur Seiten und Beiträge angezeigt (was in "
-"den meisten Fällen ausreicht)."
-
-#: ../views/admin.php:626
-msgid "What is \"Category(ies) ID(s)\" for?"
-msgstr "Für was steht \"Kategorie(n)-ID(s)\"?"
-
-#: ../views/admin.php:628
-msgid ""
-"This filter allows you to select which categories should be included or "
-"excluded from the listing. A negative sign in front of the category ID "
-"number will exclude posts belonging to it from the list, for example. You "
-"can specify more than one ID with a comma separated list."
-msgstr ""
-"Dieser Filter erlaubt dir auszuwählen, welche Kategorien in der Auflistung "
-"eingeschlossen oder ausgeschlossen werden sollten. Ein Minus-Zeichen vor "
-"einer Kategorien-ID schließt Beiträge, die die ID zugewiesen bekamen, von "
-"der Liste aus. du kannst mehr als eine ID, mit Kommas getrennt, angeben."
-
-#: ../views/admin.php:631
-msgid "What is \"Author(s) ID(s)\" for?"
-msgstr "Für was steht \"Autor(en)-ID(s)\"?"
-
-#: ../views/admin.php:633
-msgid ""
-"Just like the Category filter, this one lets you filter posts by author ID. "
-"You can specify more than one ID with a comma separated list."
-msgstr ""
-"Wie beim Kategorienfilter kannst du auch Beiträge nach Autoren filtern. Du "
-"kannst mehr als eine Autoren-ID, getrennt durch Kommas, angeben."
-
-#: ../views/admin.php:636
-msgid "What does \"Display post thumbnail\" do?"
-msgstr "Was macht \"Zeige Vorschaubild\"?"
-
-#: ../views/admin.php:638
-msgid ""
-"If checked, WordPress Popular Posts will attempt to retrieve the thumbnail "
-"of each post. You can set up the source of the thumbnail via Settings - "
-"WordPress Popular Posts - Tools."
-msgstr ""
-"Falls aktiviert, versucht WordPress Popular Posts, das Vorschaubild von "
-"jedem Beitrag darzustellen. Du kannst die Quelle des Vorschaubildes unter "
-"\"Werkzeuge\" einstellen."
-
-#: ../views/admin.php:641
-msgid "What does \"Display comment count\" do?"
-msgstr "Was macht \"Zeige Anzahl Kommentare\"?"
-
-#: ../views/admin.php:643
-msgid ""
-"If checked, WordPress Popular Posts will display how many comments each "
-"popular post has got in the selected Time Range."
-msgstr ""
-"Falls aktiviert, zeigt WordPress Popular Posts an, wie viele Kommentare "
-"jeder beliebte Beitrag in der eingestellten Zeitspanne erhielt."
-
-#: ../views/admin.php:646
-msgid "What does \"Display views\" do?"
-msgstr "Was macht \"Zeige Aufrufe\"?"
-
-#: ../views/admin.php:648
-msgid ""
-"If checked, WordPress Popular Posts will show how many pageviews a single "
-"post has gotten in the selected Time Range."
-msgstr ""
-"Falls aktiviert, zeigt WordPress Popular Posts an, wie viele Seitenaufrufe "
-"jeder einzelne Beitrag in der eingestellten Zeitspanne erhielt."
-
-#: ../views/admin.php:651
-msgid "What does \"Display author\" do?"
-msgstr "Was macht \"Zeige Autor\"?"
-
-#: ../views/admin.php:653
-msgid ""
-"If checked, WordPress Popular Posts will display the name of the author of "
-"each entry listed."
-msgstr ""
-"Falls aktiviert, zeigt WordPress Popular Posts den Autorennamen in jedem "
-"Listeneintrag an."
-
-#: ../views/admin.php:656
-msgid "What does \"Display date\" do?"
-msgstr "Was macht \"Zeige Datum\"?"
-
-#: ../views/admin.php:658
-msgid ""
-"If checked, WordPress Popular Posts will display the date when each popular "
-"posts was published."
-msgstr ""
-"Falls aktiviert, zeigt WordPress Popular Posts das Veröffentlichungsdatum "
-"jeden Beitrags an."
-
-#: ../views/admin.php:661
-msgid "What does \"Display category\" do?"
-msgstr "Was macht \"Zeige Kategorie\"?"
-
-#: ../views/admin.php:663
-msgid ""
-"If checked, WordPress Popular Posts will display the category of each post."
-msgstr ""
-"Falls aktiviert, zeigt WordPress Popular Posts den Kategorie in jedem "
-"Listeneintrag an."
-
-#: ../views/admin.php:666
-msgid "What does \"Use custom HTML Markup\" do?"
-msgstr "Was macht \"Verwende benutzerdefinierten HTML-Code\"?"
-
-#: ../views/admin.php:668
-msgid ""
-"If checked, you will be able to customize the HTML markup of your popular "
-"posts listing. For example, you can decide whether to wrap your posts in an "
-"unordered list, an ordered list, a div, etc. If you know xHTML/CSS, this is "
-"for you!"
-msgstr ""
-"Falls aktiviert, ist es dir möglich, eigenen HTML-Code in der Auflistung "
-"einzusetzen. Du kannst z. B. bestimmen, ob die Einträge in einer "
-"ungeordneten Liste, geordneten Liste, einem DIV oder was auch immer gesetzt "
-"werden. Wenn du HTML und CSS kannst, ist diese Auswahl dein Freund."
-
-#: ../views/admin.php:671
-msgid "What are \"Content Tags\"?"
-msgstr "Was sind \"Content-Tags\"?"
-
-#: ../views/admin.php:673
-#, fuzzy, php-format
-msgid ""
-"Content Tags are codes to display a variety of items on your popular posts "
-"custom HTML structure. For example, setting it to \"{title}: "
-"{summary}\" (without the quotes) would display \"Post title: excerpt of the "
-"post here\". For more Content Tags, see the <a href=\"%s\" target=\"_blank"
-"\">Parameters</a> section."
-msgstr ""
-"Content-Tags sind Code-Schnipsel, um verschiedene Angaben über die "
-"beliebtesten Beiträge in deiner selbst definierten HTML-Struktur anzuzeigen. "
-"Zum Beispiel zeigt \"{title}: {summary}\" (ohne die Anführungszeichen) "
-"\"Überschrift: Auszug des Beitrags\" an. Für weitere Content-Tags siehe "
-"\"Liste der gültigen Parameter von wpp_gewt-mostpopular() und des [wpp]-"
-"Shortcodes\"."
-
-#: ../views/admin.php:676
-msgid "What are \"Template Tags\"?"
-msgstr "Was sind \"Template-Tags\"?"
-
-#: ../views/admin.php:678
-msgid ""
-"Template Tags are simply php functions that allow you to perform certain "
-"actions. For example, WordPress Popular Posts currently supports two "
-"different template tags: wpp_get_mostpopular() and wpp_get_views()."
-msgstr ""
-"Template-Tags sind schlicht und einfach PHP-Funktionen, die bestimmten "
-"Aktionen ausführen. Zum Beispiel unterstützt WordPress Popular Posts zwei "
-"verschiedene Template-Tags: wpp_get_mostpopular() und wpp_get_views()."
-
-#: ../views/admin.php:681
-msgid "What are the template tags that WordPress Popular Posts supports?"
-msgstr "Welche Template-Tags unterstützt WordPress Popular Posts?"
-
-#: ../views/admin.php:683
-msgid ""
-"The following are the template tags supported by WordPress Popular Posts"
-msgstr "Die folgenden Template-Tags unterstützt WordPress Popular Posts"
-
-#: ../views/admin.php:687
-msgid "Template tag"
-msgstr "Template-Tag"
-
-#: ../views/admin.php:696
-#, fuzzy, php-format
-msgid ""
-"Similar to the widget functionality, this tag retrieves the most popular "
-"posts on your blog. This function also accepts <a href=\"%1$s\">parameters</"
-"a> so you can customize your popular listing, but these are not required."
-msgstr ""
-"Ähnlich wie das Widget zeigt dieser Tag die beliebtesten Beiträge Deines "
-"Blogs an. Diese Funktion akzeptiert auch Parameter, so dass du die "
-"Auflistung nach deinen Vorstellungen setzen kannst, aber sie sind sind "
-"erforderlich."
-
-#: ../views/admin.php:697
-#, php-format
-msgid ""
-"Please refer to the <a href=\"%1$s\">Parameters section</a> for a complete "
-"list of attributes."
-msgstr ""
-
-#: ../views/admin.php:702
-msgid ""
-"Displays the number of views of a single post. Post ID is required or it "
-"will return false."
-msgstr ""
-"Zeigt die Anzahl der Aufrufe eines einzelnen Beitrags an. Die Post-ID ist "
-"erforderlich, andersfalls wird false zurückgegeben."
-
-#: ../views/admin.php:703
-msgid "Post ID"
-msgstr "Post-ID"
-
-#: ../views/admin.php:710
-msgid "What are \"shortcodes\"?"
-msgstr "Was sind \"Shortcodes\"?"
-
-#: ../views/admin.php:712
-#, php-format
-msgid ""
-"Shortcodes are similar to BB Codes, these allow us to call a php function by "
-"simply typing something like [shortcode]. With WordPress Popular Posts, the "
-"shortcode [wpp] will let you insert a list of the most popular posts in "
-"posts content and pages too! For more information about shortcodes, please "
-"visit the <a href=\"%s\" target=\"_blank\">WordPress Shortcode API</a> page."
-msgstr ""
-"Shortcodes sind vergleichbar mit BB-Codes. Sie erlauben uns, eine PHP-"
-"Funktion aufzurufen durch einen einfachen Text wie [shortcode]. Der "
-"Shortcode [wpp] fügt die Liste der beliebtesten Beiträge in den Text sowohl "
-"von Beiträgen als auch Seiten ein. Für mehr Informationen über Shortcodes "
-"besuche <a href=\"%s\" target=\"_blank\">WordPress Shortcode API</a>."
-
-#: ../views/admin.php:721
-#, php-format
-msgid "About WordPress Popular Posts %s"
-msgstr "Über WordPress Popular Posts %s"
-
-#: ../views/admin.php:722
-msgid "This version includes the following changes"
-msgstr "Diese Version enthält die folgenden Änderungen"
-
-#: ../views/admin.php:741
-msgid "Do you like this plugin?"
-msgstr "Gefällt dir dieses Plugin?"
-
-#: ../views/admin.php:748
-msgid ""
-"Each donation motivates me to keep releasing free stuff for the WordPress "
-"community!"
-msgstr ""
-"Jede Spende motiviert mich, der WordPress-Gemeinschaft nützliches Zeugs "
-"weiterhin kostenlos zur Verfügung zu stellen!"
-
-#: ../views/admin.php:749
-#, php-format
-msgid "You can <a href=\"%s\" target=\"_blank\">leave a review</a>, too!"
-msgstr ""
-
-#: ../views/admin.php:753
-msgid "Need help?"
-msgstr "Brauchen Sie Hilfe?"
-
-#: ../views/admin.php:754
-#, php-format
-msgid ""
-"Visit <a href=\"%s\" target=\"_blank\">the forum</a> for support, questions "
-"and feedback."
-msgstr ""
-
-#: ../views/admin.php:755
-msgid "Let's make this plugin even better!"
-msgstr ""
-
-#: ../views/form.php:2
-msgid "Title"
-msgstr "Titel:"
-
-#: ../views/form.php:2 ../views/form.php:12 ../views/form.php:24
-#: ../views/form.php:34 ../views/form.php:40 ../views/form.php:43
-#: ../views/form.php:52 ../views/form.php:55 ../views/form.php:63
-#: ../views/form.php:66 ../views/form.php:73 ../views/form.php:87
-#: ../views/form.php:89 ../views/form.php:91 ../views/form.php:93
-#: ../views/form.php:105 ../views/form.php:111
-msgid "What is this?"
-msgstr "Was ist das?"
-
-#: ../views/form.php:7
-msgid "Show up to"
-msgstr "Zeige bis zu:"
-
-#: ../views/form.php:8
-msgid "posts"
-msgstr "Beiträge"
-
-#: ../views/form.php:12
-msgid "Sort posts by"
-msgstr "Sortiere Beiträge nach:"
-
-#: ../views/form.php:14
-msgid "Comments"
-msgstr "Kommentaren"
-
-#: ../views/form.php:15
-msgid "Total views"
-msgstr "Zahl der Aufrufe"
-
-#: ../views/form.php:16
-msgid "Avg. daily views"
-msgstr "Durchschn. tägl. Aufrufe"
-
-#: ../views/form.php:22
-msgid "Filters"
-msgstr "Filter:"
-
-#: ../views/form.php:24
-msgid "Time Range"
-msgstr "Zeitspanne:"
-
-#: ../views/form.php:34
-msgid "Post type(s)"
-msgstr "Post-Type(s):"
-
-#: ../views/form.php:37
-msgid "Post(s) ID(s) to exclude"
-msgstr "Post-ID(s), die ausgeschlossen werden:"
-
-#: ../views/form.php:40
-msgid "Category(ies) ID(s)"
-msgstr "Kategorie(n)-ID(s):"
-
-#: ../views/form.php:43
-msgid "Author(s) ID(s)"
-msgstr "Autor(en)-ID(s):"
-
-#: ../views/form.php:48
-msgid "Posts settings"
-msgstr "Einstellungen für Beiträge"
-
-#: ../views/form.php:52
-msgid "Display post rating"
-msgstr "Zeige Bewertung"
-
-#: ../views/form.php:55
-msgid "Shorten title"
-msgstr "Kürze den Titel"
-
-#: ../views/form.php:58
-msgid "Shorten title to"
-msgstr "Kürze den Titel auf"
-
-#: ../views/form.php:59 ../views/form.php:69
-msgid "characters"
-msgstr "Buchstaben"
-
-#: ../views/form.php:60 ../views/form.php:70
-msgid "words"
-msgstr "Wörter"
-
-#: ../views/form.php:63
-msgid "Display post excerpt"
-msgstr "Zeige Auszug"
-
-#: ../views/form.php:66
-msgid "Keep text format and links"
-msgstr "Behalte Textformat und Links bei"
-
-#: ../views/form.php:67
-msgid "Excerpt length"
-msgstr "Länge des Auszugs:"
-
-#: ../views/form.php:73
-msgid "Display post thumbnail"
-msgstr "Zeige Vorschaubild"
-
-#: ../views/form.php:76
-msgid "Width"
-msgstr "Breite:"
-
-#: ../views/form.php:77 ../views/form.php:80
-msgid "px"
-msgstr "px"
-
-#: ../views/form.php:79
-msgid "Height"
-msgstr "Höhe:"
-
-#: ../views/form.php:85
-msgid "Stats Tag settings"
-msgstr "Einstellungen des Statistik-Tags"
-
-#: ../views/form.php:87
-msgid "Display comment count"
-msgstr "Zeige Anzahl Kommentare"
-
-#: ../views/form.php:89
-msgid "Display views"
-msgstr "Zeige Aufrufe"
-
-#: ../views/form.php:91
-msgid "Display author"
-msgstr "Zeige Autor"
-
-#: ../views/form.php:93
-msgid "Display date"
-msgstr "Zeige Datum"
-
-#: ../views/form.php:96
-msgid "Date Format"
-msgstr "Datumsformat"
-
-#: ../views/form.php:98
-msgid "WordPress Date Format"
-msgstr "Datumsformat WordPress"
-
-#: ../views/form.php:105
-msgid "Display category"
-msgstr "Zeige Kategorie"
-
-#: ../views/form.php:109
-msgid "HTML Markup settings"
-msgstr "Einstellungen des HTML-Codes"
-
-#: ../views/form.php:111
-msgid "Use custom HTML Markup"
-msgstr "Verwende nutzerdefinierten HTML-Code"
-
-#: ../views/form.php:114
-msgid "Before / after title"
-msgstr "Vor / nach dem Titel:"
-
-#: ../views/form.php:117
-msgid "Before / after Popular Posts"
-msgstr "Vor / nach Beliebte Beiträge:"
-
-#: ../views/form.php:120
-msgid "Post HTML Markup"
-msgstr "Zeige HTML-Code"
-
-#: ../wordpress-popular-posts.php:276
-msgid "The most Popular Posts on your blog."
-msgstr "Die beliebtesten Beiträge deines Blogs."
-
-#: ../wordpress-popular-posts.php:433
-msgid ""
-"Error: cannot ajaxify WordPress Popular Posts on this theme. It's missing "
-"the <em>id</em> attribute on before_widget (see <a href=\"http://codex."
-"wordpress.org/Function_Reference/register_sidebar\" target=\"_blank\" rel="
-"\"nofollow\">register_sidebar</a> for more)."
-msgstr ""
-
-#: ../wordpress-popular-posts.php:658
-msgid "Upload"
-msgstr "Hochladen"
-
-#: ../wordpress-popular-posts.php:1032
-#, php-format
-msgid ""
-"Your PHP installation is too old. WordPress Popular Posts requires at least "
-"PHP version %1$s to function correctly. Please contact your hosting provider "
-"and ask them to upgrade PHP to %1$s or higher."
-msgstr ""
-"Deine PHP-Version ist zu alt. Das Plugin\"WordPress Popular Posts\" benötigt "
-"mindestens PHP-Version %1$s für die einwandfreie Funktion. Bitte nehme "
-"Kontakt mit deinem Hosting-Provider auf und bitte ihn, PHP auf v%1$s oder "
-"höher zu aktualisieren."
-
-#: ../wordpress-popular-posts.php:1039
-#, php-format
-msgid ""
-"Your WordPress version is too old. WordPress Popular Posts requires at least "
-"WordPress version %1$s to function correctly. Please update your blog via "
-"Dashboard &gt; Update."
-msgstr ""
-"Deine WordPress-Version ist zu alt. Das Plugin WordPress Popular Posts "
-"benötigt mindestens Version %1$s. Bitte aktualisiere WordPress via Dashboard "
-"&gt; Aktualisieren."
-
-#: ../wordpress-popular-posts.php:1064
-#, php-format
-msgid ""
-"<div class=\"error\"><p>%1$s</p><p><i>%2$s</i> has been <strong>deactivated</"
-"strong>.</p></div>"
-msgstr ""
-"<div class=\"error\"><p>%1$s</p><p><i>%2$s</i> wurde <strong>deaktiviert</"
-"strong>.</p></div>"
-
-#: ../wordpress-popular-posts.php:1124
-msgid "Success! The cache table has been cleared!"
-msgstr "Erfolg: Die Cache-Tabelle wurde geleert!"
-
-#: ../wordpress-popular-posts.php:1126
-msgid "Error: cache table does not exist."
-msgstr "Fehler: Cache-Tabelle ist nicht vorhanden."
-
-#: ../wordpress-popular-posts.php:1133
-msgid "Success! All data have been cleared!"
-msgstr "Erfolg: Alle Daten wurden gelöscht!"
-
-#: ../wordpress-popular-posts.php:1135
-msgid "Error: one or both data tables are missing."
-msgstr "Fehler: Eine oder beide Tabellen fehlen."
-
-#: ../wordpress-popular-posts.php:1138 ../wordpress-popular-posts.php:1176
-msgid "Invalid action."
-msgstr "Ungültige Aktion."
-
-#: ../wordpress-popular-posts.php:1141 ../wordpress-popular-posts.php:1179
-msgid ""
-"Sorry, you do not have enough permissions to do this. Please contact the "
-"site administrator for support."
-msgstr ""
-"Du hast nicht die erforderlichen Rechte um das zu tun. Bitte wende dich an "
-"den Administrator für weitere Hilfe."
-
-#: ../wordpress-popular-posts.php:1171
-#, fuzzy
-msgid "Success! All files have been deleted!"
-msgstr "Erfolg: Alle Daten wurden gelöscht!"
-
-#: ../wordpress-popular-posts.php:1173
-msgid "The thumbnail cache is already empty!"
-msgstr ""
-
-#: ../wordpress-popular-posts.php:1696
-msgid "Sorry. No data so far."
-msgstr "Noch keine Daten vorhanden."
-
-#: ../wordpress-popular-posts.php:2156
-#, php-format
-msgid "1 comment"
-msgid_plural "%s comments"
-msgstr[0] "1 Kommentar"
-msgstr[1] "%s Kommentare"
-
-#: ../wordpress-popular-posts.php:2168
-#, php-format
-msgid "1 view per day"
-msgid_plural "%s views per day"
-msgstr[0] "1 Aufruf pro Tag"
-msgstr[1] "%s Aufrufe pro Tag"
-
-#: ../wordpress-popular-posts.php:2174
-#, php-format
-msgid "1 view"
-msgid_plural "%s views"
-msgstr[0] "1 Aufruf"
-msgstr[1] "%s Aufrufe"
-
-#: ../wordpress-popular-posts.php:2186
-#, php-format
-msgid "by %s"
-msgstr "von %s"
-
-#: ../wordpress-popular-posts.php:2192
-#, php-format
-msgid "posted on %s"
-msgstr "veröffentlicht am %s"
-
-#: ../wordpress-popular-posts.php:2200
-#, php-format
-msgid "under %s"
-msgstr "in %s"
-
-#~ msgid ""
-#~ "Please refer to \"List of parameters accepted by wpp_get_mostpopular() "
-#~ "and the [wpp] shortcode\"."
-#~ msgstr ""
-#~ "Bitte schlage nach bei \"Liste der gültigen Parameter von wpp_gewt-"
-#~ "mostpopular() und des [wpp]-Shortcodes\"."
-
-#~ msgid ""
-#~ "List of parameters accepted by wpp_get_mostpopular() and the [wpp] "
-#~ "shortcode"
-#~ msgstr ""
-#~ "Liste der gültigen Parameter von wpp_get-mostpopular() und des [wpp]-"
-#~ "Shortcodes"
-
-#~ msgid ""
-#~ "These parameters can be used by both the template tag "
-#~ "wpp_get_most_popular() and the shortcode [wpp]."
-#~ msgstr ""
-#~ "Diese Parameter können sowohl im Template-Tag wpp_get_most_popular() als "
-#~ "auch im Shortcode [wpp] eingesetzt werden."
-
-#~ msgid "Preview"
-#~ msgstr "Vorschau"
-
-#~ msgid "Excerpt Properties"
-#~ msgstr "Eigenschaften des Auszugs"
-
-#~ msgid "Thumbnail settings"
-#~ msgstr "Einstellungen für die Vorschaubilder"
-
-#~ msgid ""
-#~ "Here you will find a handy group of options to tweak Wordpress Popular "
-#~ "Posts."
-#~ msgstr ""
-#~ "Hier findest du einen überschaubaren Bereich an Einstellungen, um "
-#~ "Wordpress Popular Posts zu optimieren."
-
-#, fuzzy
-#~ msgid "Popular Posts links behavior"
-#~ msgstr "Aktualisierungsintervall der Liste"
-
-#~ msgid "Views logging behavior"
-#~ msgstr "Zählverhalten"
-
-#~ msgid "Wordpress Popular Posts Stylesheet"
-#~ msgstr "Wordpress Popular Posts Stylesheet"
-
-#~ msgid "Data tools"
-#~ msgstr "Datenwerkzeuge"
-
-#~ msgid "Popular posts listing refresh interval"
-#~ msgstr "Aktualisierungsintervall der Liste"
-
-#~ msgid "Frequently Asked Questions"
-#~ msgstr "Häufig gestellte Fragen"
-
-#~ msgid "Sets the opening tag for each item on the list"
-#~ msgstr "Bestimmt den öffnenden Tag für jeden Listeneintrag"
-
-#~ msgid "Sets the closing tag for each item on the list"
-#~ msgstr "Bestimmt den schließenden Tag für jeden Listeneintrag"
-
-#~ msgid ""
-#~ "If set, this option will allow you to decide the order of the contents "
-#~ "within each item on the list."
-#~ msgstr ""
-#~ "Falls gesetzt, kannst du die Reihenfolge der Einträge in der Liste "
-#~ "bestimmen."
-
-#~ msgid ""
-#~ "If set, you can decide the order of each content inside a single item on "
-#~ "the list. For example, setting it to \"{title}: {summary}\" would output "
-#~ "something like \"Your Post Title: summary here\". This attribute requires "
-#~ "do_pattern to be true."
-#~ msgstr ""
-#~ "Falls gesetzt, kannst du die Reihenfolge des Inhalts innerhalbs eines "
-#~ "einzelnen Listeneintrags einstellen. Zum Beispiel zeigt \"{title}: "
-#~ "{summary}\" (ohne Anführungszeichen) sowas wie \"Überschrift: Text des "
-#~ "Auszugs\" an. Dieses Attribut erfordert, dass do_pattern auf 1 (true) "
-#~ "gesetzt ist."
-
-#~ msgid "Available tags"
-#~ msgstr "Verfügbare Tags"
-
-#~ msgid "Rate it"
-#~ msgstr "Bewerte es"
-
-#~ msgid "on the official Plugin Directory!"
-#~ msgstr "im offiziellen Plugin-Verzeichnis!"
-
-#~ msgid "Do you love this plugin?"
-#~ msgstr "Magst du dieses Plugin?"
-
-#~ msgid "Buy me a beer!"
-#~ msgstr "Spende mir ein Bier!"
-
-#~ msgid "comments"
-#~ msgstr "Komentare"
-
-#~ msgid "views per day"
-#~ msgstr "Aufrufe pro Tag"
-
-#~ msgid "views"
-#~ msgstr "Aufrufe"
-
-#~ msgid "by"
-#~ msgstr "von"
-
-#~ msgid "What does \"Use content formatting tags\" do?"
-#~ msgstr "Was macht \"Verwende textformatierende Tags\"?"
-
-#~ msgid "Before / after each post:"
-#~ msgstr "Vor / nach jedem Beitrag:"
-
-#~ msgid "Use content formatting tags"
-#~ msgstr "Verwende textformatierende Tags"
-
-#~ msgid "Content format:"
-#~ msgstr "Inhaltsformat:"
-
-#~ msgid "Wordpress Popular Posts Stats"
-#~ msgstr "Wordpress Popular Posts Statistik"
+msgid ""
+msgstr ""
+"Project-Id-Version: Wordpress Popular Posts\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2015-04-24 13:30-0430\n"
+"PO-Revision-Date: \n"
+"Last-Translator: Héctor Cabrera <hcabrerab@gmail.com>\n"
+"Language-Team: Héctor Cabrera <hcabrerab@gmail.com>\n"
+"Language: de_DE\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Poedit-SourceCharset: UTF-8\n"
+"X-Poedit-KeywordsList: __;_e;_n:1,2\n"
+"X-Poedit-Basepath: .\n"
+"X-Generator: Poedit 1.7.6\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"X-Poedit-SearchPath-0: .\n"
+"X-Poedit-SearchPath-1: ..\n"
+
+#: ../views/admin.php:25 ../views/admin.php:34 ../views/admin.php:49
+#: ../views/admin.php:75
+msgid "Settings saved."
+msgstr "Einstellungen gespeichert"
+
+#: ../views/admin.php:40
+msgid "Please provide the name of your custom field."
+msgstr "Gebe einen Namen für das benutzerdefinierte Feld an."
+
+#: ../views/admin.php:81
+msgid ""
+"Any changes made to WPP's default stylesheet will be lost after every plugin "
+"update. In order to prevent this from happening, please copy the wpp.css "
+"file (located at wp-content/plugins/wordpress-popular-posts/style) into your "
+"theme's directory"
+msgstr ""
+
+#: ../views/admin.php:96
+#, fuzzy
+msgid ""
+"This operation will delete all entries from WordPress Popular Posts' cache "
+"table and cannot be undone."
+msgstr ""
+"Alle Einträge im Cache werden gelöscht und können nicht mehr wieder "
+"hergestellt werden."
+
+#: ../views/admin.php:96 ../views/admin.php:104 ../views/admin.php:112
+msgid "Do you want to continue?"
+msgstr "Möchtest du fortfahren?"
+
+#: ../views/admin.php:104
+msgid ""
+"This operation will delete all stored info from WordPress Popular Posts' "
+"data tables and cannot be undone."
+msgstr ""
+"Alle gespeicherten Daten von WordPress Popular Posts werden gelöscht und "
+"können nicht wieder hergestellt werden."
+
+#: ../views/admin.php:112
+#, fuzzy
+msgid "This operation will delete all cached thumbnails and cannot be undone."
+msgstr ""
+"Alle Einträge im Cache werden gelöscht und können nicht mehr wieder "
+"hergestellt werden."
+
+#: ../views/admin.php:146
+msgid "Stats"
+msgstr "Statistiken"
+
+#: ../views/admin.php:147
+msgid "Tools"
+msgstr "Werkzeuge"
+
+#: ../views/admin.php:148 ../views/admin.php:747
+msgid "Parameters"
+msgstr "Parameter"
+
+#: ../views/admin.php:149
+msgid "FAQ"
+msgstr "Häufige Fragen und Antworten"
+
+#: ../views/admin.php:150
+msgid "About"
+msgstr "Über"
+
+#: ../views/admin.php:161
+msgid ""
+"Click on each tab to see what are the most popular entries on your blog in "
+"the last 24 hours, this week, last 30 days or all time since WordPress "
+"Popular Posts was installed."
+msgstr ""
+"Klicke auf jeden Reiter, um die beliebtesten Beiträge deines Blogs von den "
+"letzten 24 Stunden, dieser Woche, den letzten 30 Tagen oder des gesamten "
+"Zeitraums seit der Installation von WordPress Popular Posts zu sehen."
+
+#: ../views/admin.php:167
+msgid "Order by comments"
+msgstr "Sortiert nach Kommentaren"
+
+#: ../views/admin.php:168
+msgid "Order by views"
+msgstr "Sortiert nach Seitenaufrufen"
+
+#: ../views/admin.php:169
+msgid "Order by avg. daily views"
+msgstr "Sortierte nach durchschn. Tagesaufrufen"
+
+#: ../views/admin.php:171
+msgid "Post type"
+msgstr "Post-Type"
+
+#: ../views/admin.php:172
+msgid "Limit"
+msgstr "Max. aufzulistende Einträge:"
+
+#: ../views/admin.php:174 ../views/admin.php:279 ../views/admin.php:366
+#: ../views/admin.php:403
+msgid "Apply"
+msgstr "Anwenden"
+
+#: ../views/admin.php:177 ../views/form.php:32
+msgid "Display only posts published within the selected Time Range"
+msgstr ""
+
+#: ../views/admin.php:184 ../views/form.php:26
+msgid "Last 24 hours"
+msgstr "Letzte 24 Stunden"
+
+#: ../views/admin.php:185 ../views/form.php:27
+msgid "Last 7 days"
+msgstr "Letzte 7 Tage"
+
+#: ../views/admin.php:186 ../views/form.php:28
+msgid "Last 30 days"
+msgstr "Letzte 30 Tage"
+
+#: ../views/admin.php:187 ../views/form.php:29
+msgid "All-time"
+msgstr "Allzeithoch"
+
+#: ../views/admin.php:209
+msgid "Thumbnails"
+msgstr "Vorschaubilder"
+
+#: ../views/admin.php:214
+msgid "Default thumbnail"
+msgstr "Standardvorschaubild"
+
+#: ../views/admin.php:219
+msgid "Upload thumbnail"
+msgstr "Vorschaubild hochladen"
+
+#: ../views/admin.php:221
+msgid ""
+"How-to: upload (or select) an image, set Size to Full and click on Upload. "
+"After it's done, hit on Apply to save changes"
+msgstr ""
+"Anleitung: ein Bild hochladen (oder aus existierenden wählen) und "
+"\"vollständige Größe\" einstellen. Anschließend \"Anwenden\" anklicken."
+
+#: ../views/admin.php:225
+msgid "Pick image from"
+msgstr "Wähle Bildquelle"
+
+#: ../views/admin.php:228
+msgid "Featured image"
+msgstr "Beitragsbild"
+
+#: ../views/admin.php:229
+msgid "First image on post"
+msgstr "Erstes Bild im Beitrag"
+
+#: ../views/admin.php:230
+msgid "Custom field"
+msgstr "Benutzerdefiniertes Feld"
+
+#: ../views/admin.php:233
+#, fuzzy
+msgid "Tell WordPress Popular Posts where it should get thumbnails from"
+msgstr "Woher kommen die Vorschaubilder?"
+
+#: ../views/admin.php:237
+msgid "Custom field name"
+msgstr "Name des benutzerdefiniertes Feldes"
+
+#: ../views/admin.php:243
+msgid "Resize image from Custom field?"
+msgstr "Bild aus benutzerdefiniertem Feld skalieren?"
+
+#: ../views/admin.php:246
+msgid "No, I will upload my own thumbnail"
+msgstr "Nein, ich lade mein eigenes Vorschaubild hoch"
+
+#: ../views/admin.php:247
+msgid "Yes"
+msgstr "Ja"
+
+#: ../views/admin.php:252
+msgid "Responsive support"
+msgstr ""
+
+#: ../views/admin.php:255 ../views/admin.php:308 ../views/admin.php:348
+#: ../views/admin.php:393
+msgid "Enabled"
+msgstr "Aktiviert"
+
+#: ../views/admin.php:256 ../views/admin.php:307 ../views/admin.php:347
+#: ../views/admin.php:394
+msgid "Disabled"
+msgstr "Deaktiviert"
+
+#: ../views/admin.php:259
+msgid ""
+"If enabled, WordPress Popular Posts will strip height and width attributes "
+"out of thumbnails' image tags"
+msgstr ""
+
+#: ../views/admin.php:269
+#, fuzzy
+msgid "Empty image cache"
+msgstr "Cache leeren"
+
+#: ../views/admin.php:270
+#, fuzzy
+msgid "Use this button to clear WPP's thumbnails cache"
+msgstr ""
+"Nutze diese Schaltfläche, um die Cache-Tabelle von Wordpress Popular Posts "
+"zu leeren."
+
+#: ../views/admin.php:288
+msgid "Data"
+msgstr "Daten"
+
+#: ../views/admin.php:293
+msgid "Log views from"
+msgstr "Erfasse Aufrufe"
+
+#: ../views/admin.php:296
+msgid "Visitors only"
+msgstr "von jedem außer eingeloggten Benutzern"
+
+#: ../views/admin.php:297
+msgid "Logged-in users only"
+msgstr "nur von eingeloggten Benutzern"
+
+#: ../views/admin.php:298
+msgid "Everyone"
+msgstr "von jedem"
+
+#: ../views/admin.php:304
+msgid "Ajaxify widget"
+msgstr "Widget via Ajax"
+
+#: ../views/admin.php:312
+msgid ""
+"If you are using a caching plugin such as WP Super Cache, enabling this "
+"feature will keep the popular list from being cached by it"
+msgstr ""
+"Falls du ein Cache-Plugin wie z. B. WP Super Cache verwendest, verhindert "
+"das Aktivieren, dass die Liste nicht gecachet wird und stets aktuell ist."
+
+#: ../views/admin.php:316
+msgid "WPP Cache Expiry Policy"
+msgstr ""
+
+#: ../views/admin.php:316 ../views/admin.php:344 ../views/form.php:2
+#: ../views/form.php:12 ../views/form.php:24 ../views/form.php:34
+#: ../views/form.php:40 ../views/form.php:43 ../views/form.php:52
+#: ../views/form.php:55 ../views/form.php:63 ../views/form.php:66
+#: ../views/form.php:73 ../views/form.php:101 ../views/form.php:103
+#: ../views/form.php:105 ../views/form.php:107 ../views/form.php:119
+#: ../views/form.php:125
+msgid "What is this?"
+msgstr "Was ist das?"
+
+#: ../views/admin.php:319
+msgid "Never cache"
+msgstr ""
+
+#: ../views/admin.php:320
+msgid "Enable caching"
+msgstr ""
+
+#: ../views/admin.php:324
+msgid ""
+"Sets WPP's cache expiration time. WPP can cache the popular list for a "
+"specified amount of time. Recommended for large / high traffic sites"
+msgstr ""
+
+#: ../views/admin.php:328
+msgid "Refresh cache every"
+msgstr ""
+
+#: ../views/admin.php:332
+msgid "Minute(s)"
+msgstr ""
+
+#: ../views/admin.php:333
+msgid "Hour(s)"
+msgstr "Stunde(n)"
+
+#: ../views/admin.php:334
+msgid "Day(s)"
+msgstr "Tag(e)"
+
+#: ../views/admin.php:335
+msgid "Week(s)"
+msgstr "Woche(n)"
+
+#: ../views/admin.php:336
+msgid "Month(s)"
+msgstr "Monat(e)"
+
+#: ../views/admin.php:337
+msgid "Year(s)"
+msgstr "Jahr(e)"
+
+#: ../views/admin.php:340
+msgid "Really? That long?"
+msgstr "Wirklich? So lang?"
+
+#: ../views/admin.php:344
+msgid "Data Sampling"
+msgstr ""
+
+#: ../views/admin.php:352
+#, php-format
+msgid ""
+"By default, WordPress Popular Posts stores in database every single visit "
+"your site receives. For small / medium sites this is generally OK, but on "
+"large / high traffic sites the constant writing to the database may have an "
+"impact on performance. With <a href=\"%1$s\" target=\"_blank\">data "
+"sampling</a>, WordPress Popular Posts will store only a subset of your "
+"traffic and report on the tendencies detected in that sample set (for more, "
+"<a href=\"%2$s\" target=\"_blank\">please read here</a>)"
+msgstr ""
+
+#: ../views/admin.php:356
+msgid "Sample Rate"
+msgstr ""
+
+#: ../views/admin.php:360
+#, php-format
+msgid ""
+"A sampling rate of %d is recommended for large / high traffic sites. For "
+"lower traffic sites, you should lower the value"
+msgstr ""
+
+#: ../views/admin.php:375
+msgid "Miscellaneous"
+msgstr "Sonstiges"
+
+#: ../views/admin.php:380
+msgid "Open links in"
+msgstr "Links öffnen in"
+
+#: ../views/admin.php:383
+msgid "Current window"
+msgstr "aktuellem Fenster"
+
+#: ../views/admin.php:384
+msgid "New tab/window"
+msgstr "Neuem Tab/Fenster"
+
+#: ../views/admin.php:390
+msgid "Use plugin's stylesheet"
+msgstr "Stylesheet des Plugins benutzen"
+
+#: ../views/admin.php:397
+msgid ""
+"By default, the plugin includes a stylesheet called wpp.css which you can "
+"use to style your popular posts listing. If you wish to use your own "
+"stylesheet or do not want it to have it included in the header section of "
+"your site, use this."
+msgstr ""
+"Als Voreinstellung schließt dieses Plugin eine Stylesheet-Datei wpp.css ein. "
+"Du kannst mit ihr die Auflistung beliebter Beiträge gestalten. Falls du dein "
+"eigenes Stylesheet verwenden oder die wpp.css nicht im HEAD-Abschnitt "
+"einbinden willst, deaktiviere die Einbindung."
+
+#: ../views/admin.php:414
+msgid ""
+"WordPress Popular Posts maintains data in two separate tables: one for "
+"storing the most popular entries on a daily basis (from now on, \"cache\"), "
+"and another one to keep the All-time data (from now on, \"historical data\" "
+"or just \"data\"). If for some reason you need to clear the cache table, or "
+"even both historical and cache tables, please use the buttons below to do so."
+msgstr ""
+"WordPress Popular Posts speichert Daten in zwei getrennten Tabellen: eine "
+"für die beliebtesten Beiträge der letzten 30 Tage (auch: \"Cache-Tabelle\"), "
+"und die andere für die Allzeit-Daten (auch \"historische Daten\" oder "
+"einfach \"Datentabelle\"). Solltest du aus verschiedenen Gründen die Cache-"
+"Tabelle leeren wollen oder sowohl die Datentabelle als auch die Cache-"
+"Tabelle, nutze die folgenden Schaltflächen."
+
+#: ../views/admin.php:415
+msgid "Empty cache"
+msgstr "Cache leeren"
+
+#: ../views/admin.php:415
+msgid "Use this button to manually clear entries from WPP cache only"
+msgstr ""
+"Nutze diese Schaltfläche, um die Cache-Tabelle von Wordpress Popular Posts "
+"zu leeren."
+
+#: ../views/admin.php:416
+msgid "Clear all data"
+msgstr "Alle Daten löschen"
+
+#: ../views/admin.php:416
+msgid "Use this button to manually clear entries from all WPP data tables"
+msgstr ""
+"Nutze diese Schaltfläche, um alle Einträge in der Datentabelle von Wordpress "
+"Popular Posts zu löschen."
+
+#: ../views/admin.php:423
+#, php-format
+msgid ""
+"With the following parameters you can customize the popular posts list when "
+"using either the <a href=\"%1$s\">wpp_get_most_popular() template tag</a> or "
+"the <a href=\"%2$s\">[wpp] shortcode</a>."
+msgstr ""
+
+#: ../views/admin.php:431
+msgid "Parameter"
+msgstr "Parameter"
+
+#: ../views/admin.php:432 ../views/admin.php:746
+msgid "What it does "
+msgstr "Was es macht"
+
+#: ../views/admin.php:433
+msgid "Possible values"
+msgstr "Erlaubte Werte"
+
+#: ../views/admin.php:434
+msgid "Defaults to"
+msgstr "Voreinstellung"
+
+#: ../views/admin.php:435 ../views/admin.php:748
+msgid "Example"
+msgstr "Beispiel"
+
+#: ../views/admin.php:441
+msgid "Sets a heading for the list"
+msgstr "Bestimmt die Überschrift der Liste"
+
+#: ../views/admin.php:442 ../views/admin.php:449 ../views/admin.php:456
+#: ../views/admin.php:491 ../views/admin.php:498 ../views/admin.php:505
+#: ../views/admin.php:512 ../views/admin.php:603 ../views/admin.php:617
+#: ../views/admin.php:624
+msgid "Text string"
+msgstr "Zeichenkette"
+
+#: ../views/admin.php:443
+msgid "Popular Posts"
+msgstr "Beliebteste Beiträge"
+
+#: ../views/admin.php:448
+msgid "Set the opening tag for the heading of the list"
+msgstr "Bestimmt den öffnenden Tag der Listenüberschrift"
+
+#: ../views/admin.php:455
+msgid "Set the closing tag for the heading of the list"
+msgstr "Bestimmt den schließenden Tag der Listenüberschrift"
+
+#: ../views/admin.php:462
+msgid "Sets the maximum number of popular posts to be shown on the listing"
+msgstr "Bestimmt die maximale Anzahl der beliebten Beiträge in der Auflistung"
+
+#: ../views/admin.php:463 ../views/admin.php:519 ../views/admin.php:533
+#: ../views/admin.php:554 ../views/admin.php:561
+msgid "Positive integer"
+msgstr "Positive Ganzzahl"
+
+#: ../views/admin.php:469
+msgid ""
+"Tells WordPress Popular Posts to retrieve the most popular entries within "
+"the time range specified by you"
+msgstr ""
+"Weist WordPress Popular Posts an, die beliebtesten Beiträge innerhalt der "
+"eingestellten Zeitspanne anzuzeigen."
+
+#: ../views/admin.php:476
+msgid ""
+"Tells WordPress Popular Posts to retrieve the most popular entries published "
+"within the time range specified by you"
+msgstr ""
+"Weist WordPress Popular Posts an, die beliebtesten Beiträge innerhalt der "
+"eingestellten Zeitspanne anzuzeigen."
+
+#: ../views/admin.php:483
+msgid "Sets the sorting option of the popular posts"
+msgstr "Bestimmt die Auswahl der Reihenfolge der beliebten Beiträge"
+
+#: ../views/admin.php:484
+msgid "(for average views per day)"
+msgstr "(für durchschn. Aufrufe pro Tag)"
+
+#: ../views/admin.php:490
+msgid "Defines the type of posts to show on the listing"
+msgstr "Bestimmt die Art der Dokumente, die aufgelistet werden"
+
+#: ../views/admin.php:497
+msgid ""
+"If set, WordPress Popular Posts will exclude the specified post(s) ID(s) "
+"form the listing."
+msgstr ""
+"Falls gesetzt, zeigt WordPress Popular Posts die Beiträge und Seiten anhand "
+"ihrer angegebener ID(s) in der Liste nicht an."
+
+#: ../views/admin.php:499 ../views/admin.php:506 ../views/admin.php:513
+msgid "None"
+msgstr "nichts"
+
+#: ../views/admin.php:504
+msgid ""
+"If set, WordPress Popular Posts will retrieve all entries that belong to the "
+"specified category(ies) ID(s). If a minus sign is used, the category(ies) "
+"will be excluded instead."
+msgstr ""
+"Falls gesetzt, zeigt WordPress Popular Posts alle Einträge, die den "
+"angegebenen Kategorie-IDs zugeordnet sind, an. Ein Minus-Zeichen vor der ID "
+"schließt die Beiträge dieser Kategorie aus."
+
+#: ../views/admin.php:511
+msgid ""
+"If set, WordPress Popular Posts will retrieve all entries created by "
+"specified author(s) ID(s)."
+msgstr ""
+"Falls gesetzt, wird WordPress Popular Posts alle Einträge anhand angegebener "
+"Autor(en)-ID(s) ausgeben."
+
+#: ../views/admin.php:518
+msgid ""
+"If set, WordPress Popular Posts will shorten each post title to \"n\" "
+"characters whenever possible"
+msgstr ""
+"Falls gesetzt, kürzt WordPress Popular Posts jeden Titel, wenn möglich, auf "
+"\"n\" Zeichen."
+
+#: ../views/admin.php:525
+msgid ""
+"If set to 1, WordPress Popular Posts will shorten each post title to \"n\" "
+"words instead of characters"
+msgstr ""
+"Falls gesetzt, kürzt WordPress Popular Posts jeden Titel, wenn möglich, auf "
+"\"n\" Wörter anstatt Zeichen."
+
+#: ../views/admin.php:532
+msgid ""
+"If set, WordPress Popular Posts will build and include an excerpt of \"n\" "
+"characters long from the content of each post listed as popular"
+msgstr ""
+"Falls gesetzt, zeigt WordPress Popular Posts einen Auszug von \"n\" "
+"Buchstaben Länge bei jedem Beitrag an."
+
+#: ../views/admin.php:539
+msgid ""
+"If set, WordPress Popular Posts will maintaing all styling tags (strong, "
+"italic, etc) and hyperlinks found in the excerpt"
+msgstr ""
+"Falls gesetzt, behält WordPress Popular Posts die formatierenden Tags (fett, "
+"kursiv usw.) und die Links im Auszug bei."
+
+#: ../views/admin.php:546
+msgid ""
+"If set to 1, WordPress Popular Posts will shorten the excerpt to \"n\" words "
+"instead of characters"
+msgstr ""
+"Falls gesetzt, kürzt WordPress Popular Posts jeden Auszug, wenn möglich, auf "
+"\"n\" Wörter anstatt Zeichen."
+
+#: ../views/admin.php:553
+msgid ""
+"If set, and if your current server configuration allows it, you will be able "
+"to display thumbnails of your posts. This attribute sets the width for "
+"thumbnails"
+msgstr ""
+"Falls gesetzt und es die aktuelle Server-Konfiguration erlaubt, ist dir die "
+"Anzeige von Vorschaubildern deiner Beiträge möglich. Dieses Attribut "
+"bestimmt die Breite der Vorschaubilder."
+
+#: ../views/admin.php:560
+msgid ""
+"If set, and if your current server configuration allows it, you will be able "
+"to display thumbnails of your posts. This attribute sets the height for "
+"thumbnails"
+msgstr ""
+"Falls gesetzt und es die aktuelle Server-Konfiguration erlaubt, ist dir die "
+"Anzeige von Vorschaubildern deiner Beiträge möglich. Dieses Attribut "
+"bestimmt die Höhe der Vorschaubilder."
+
+#: ../views/admin.php:567
+msgid ""
+"If set, and if the WP-PostRatings plugin is installed and enabled on your "
+"blog, WordPress Popular Posts will show how your visitors are rating your "
+"entries"
+msgstr ""
+"Falls gesetzt und wenn das Plugin WP-PostRatings in Deinem Blog läuft, zeigt "
+"WordPress Popular Posts die Bewertungen der Nutzer an."
+
+#: ../views/admin.php:574
+msgid ""
+"If set, WordPress Popular Posts will show how many comments each popular "
+"post has got until now"
+msgstr ""
+"Falls gesetzt, zeigt WordPress Popular Posts an, wie viele Kommentare jeder "
+"Beitrag bis jetzt erhielt."
+
+#: ../views/admin.php:581
+msgid ""
+"If set, WordPress Popular Posts will show how many views each popular post "
+"has got since it was installed"
+msgstr ""
+"Falls gesetzt, zeigt WordPress Popular Posts an, wie viele Aufrufe jeder "
+"Beitrag seit der Installation erhielt."
+
+#: ../views/admin.php:588
+msgid ""
+"If set, WordPress Popular Posts will show who published each popular post on "
+"the list"
+msgstr ""
+"Falls gesetzt, zeigt WordPress Popular Posts an, wer welchen Beitrag "
+"veröffentlicht hat."
+
+#: ../views/admin.php:595
+msgid ""
+"If set, WordPress Popular Posts will display the date when each popular post "
+"on the list was published"
+msgstr ""
+"Falls gesetzt, zeigt WordPress Popular Posts das Veröffentlichungsdatum "
+"jeden Beitrags in der Liste an."
+
+#: ../views/admin.php:602
+msgid "Sets the date format"
+msgstr "Bestimmt das Datumsformat"
+
+#: ../views/admin.php:609
+msgid "If set, WordPress Popular Posts will display the category"
+msgstr "Falls gesetzt, zeigt WordPress Popular Posts die Kategorie an"
+
+#: ../views/admin.php:616
+msgid "Sets the opening tag for the listing"
+msgstr "Bestimmt das öffnende Tag der Auflistung"
+
+#: ../views/admin.php:623
+msgid "Sets the closing tag for the listing"
+msgstr "Bestimmt das schließende Tag der Auflistung"
+
+#: ../views/admin.php:630
+msgid "Sets the HTML structure of each post"
+msgstr "Setzt die HTML-Struktur jeden Beitrags"
+
+#: ../views/admin.php:631
+msgid "Text string, custom HTML"
+msgstr "Zeichenkette, benutzerdefiniertes HTML"
+
+#: ../views/admin.php:631
+msgid "Available Content Tags"
+msgstr "Verfügbare Content-Tags"
+
+#: ../views/admin.php:631
+msgid "displays thumbnail linked to post/page"
+msgstr "zeigt verlinktes Vorschaubild des Beitrags/der Seite an"
+
+#: ../views/admin.php:631
+msgid "displays thumbnail image without linking to post/page"
+msgstr ""
+
+#: ../views/admin.php:631
+msgid "displays linked post/page title"
+msgstr "zeigt den verlinkten Titel des Beitrags/der Seiten an"
+
+#: ../views/admin.php:631
+msgid ""
+"displays post/page excerpt, and requires excerpt_length to be greater than 0"
+msgstr ""
+"zeigt den Auszug (excerpt) des Beitrags/der Seite an, erfordert "
+"excerpt_length größer als 0"
+
+#: ../views/admin.php:631
+msgid "displays the default stats tags"
+msgstr "zeigt die standard&shy;mäßigen Statistik-Tags an"
+
+#: ../views/admin.php:631
+msgid ""
+"displays post/page current rating, requires WP-PostRatings installed and "
+"enabled"
+msgstr ""
+"zeigt die aktuelle Bewertung des Beitrags/der Seite an, erfordert das "
+"installierte und aktivierte Plugin WP-PostRatings"
+
+#: ../views/admin.php:631
+msgid ""
+"displays post/page current rating as an integer, requires WP-PostRatings "
+"installed and enabled"
+msgstr ""
+"zeigt die aktuelle Bewertung des Beitrags/der Seite an, erfordert das "
+"installierte und aktivierte Plugin WP-PostRatings"
+
+#: ../views/admin.php:631
+msgid "outputs the URL of the post/page"
+msgstr "gibt die URL des Beitrags/der Seite aus"
+
+#: ../views/admin.php:631
+msgid "displays post/page title, no link"
+msgstr "zeigt den Titel des Beitrags/der Seite an, ohne Link"
+
+#: ../views/admin.php:631
+msgid "displays linked author name, requires stats_author=1"
+msgstr "zeigt den verlinkten Autoren&shy;namen an, erfordert stats_author=1"
+
+#: ../views/admin.php:631
+msgid "displays linked category name, requires stats_category=1"
+msgstr ""
+"zeigt den verlinkten Kategorien&shy;namen an, erfordert stats_category=1"
+
+#: ../views/admin.php:631
+msgid "displays views count only, no text"
+msgstr "zeigt nur die Anzahl an, ohne Text"
+
+#: ../views/admin.php:631
+msgid "displays comments count only, no text, requires stats_comments=1"
+msgstr ""
+"zeigt nur die Anzahl der Kom&shy;men&shy;tare an, ohne Text, erfordert "
+"stats_comment=1"
+
+#: ../views/admin.php:631
+msgid "displays post/page date, requires stats_date=1"
+msgstr ""
+
+#: ../views/admin.php:643
+msgid "What does \"Title\" do?"
+msgstr "Was macht \"Titel\"?"
+
+#: ../views/admin.php:646
+msgid ""
+"It allows you to show a heading for your most popular posts listing. If left "
+"empty, no heading will be displayed at all."
+msgstr ""
+"Ermöglicht dir, eine Überschrift für die Auflistung anzugeben. Falls leer "
+"belassen, wird keine Überschrift angezeigt."
+
+#: ../views/admin.php:649
+msgid "What is Time Range for?"
+msgstr "Für was steht die Zeitspanne?"
+
+#: ../views/admin.php:651
+msgid ""
+"It will tell WordPress Popular Posts to retrieve all posts with most views / "
+"comments within the selected time range."
+msgstr ""
+"Weist WordPress Popular Posts an, alle Beiträge mit den meisten Aufrufen "
+"bzw. Kommentaren innerhalb der eingestellten Zeitspanne anzuzeigen."
+
+#: ../views/admin.php:654
+msgid "What is \"Sort post by\" for?"
+msgstr "Für was steht \"Sortiere Beiträge nach\"?"
+
+#: ../views/admin.php:656
+msgid ""
+"It allows you to decide whether to order your popular posts listing by total "
+"views, comments, or average views per day."
+msgstr ""
+"Ermöglicht dir zu entscheiden, ob die Listeneinträge nach absoluter Anzahl "
+"der Aufrufe, Kommentare oder durchschnittlichen Aufrufen pro Tag geordnet "
+"werden."
+
+#: ../views/admin.php:659
+msgid "What does \"Display post rating\" do?"
+msgstr "Was macht \"Zeige Bewertung\"?"
+
+#: ../views/admin.php:661
+msgid ""
+"If checked, WordPress Popular Posts will show how your readers are rating "
+"your most popular posts. This feature requires having WP-PostRatings plugin "
+"installed and enabled on your blog for it to work."
+msgstr ""
+"Falls aktiviert, zeigt WordPress Popular Posts an, wie deine Leser deine "
+"beliebtesten Beiträge bewertet haben. Diese Funktion erfordert die "
+"Installation und Aktivierung des Plugins WP-PostRatings."
+
+#: ../views/admin.php:664
+msgid "What does \"Shorten title\" do?"
+msgstr "Was macht \"Kürze den Titel\"?"
+
+#: ../views/admin.php:666
+msgid ""
+"If checked, all posts titles will be shortened to \"n\" characters/words. A "
+"new \"Shorten title to\" option will appear so you can set it to whatever "
+"you like."
+msgstr ""
+"Falls aktiviert, werden alle Titel auf \"n\" Zeichen gekürzt. Eine neue "
+"Auswahl \"Kürze den Titel zu\" wird erscheinen, mit der du die Titellänge "
+"setzen kannst."
+
+#: ../views/admin.php:669
+msgid "What does \"Display post excerpt\" do?"
+msgstr "Was macht \"Zeige Auszug\"?"
+
+#: ../views/admin.php:671
+msgid ""
+"If checked, WordPress Popular Posts will also include a small extract of "
+"your posts in the list. Similarly to the previous option, you will be able "
+"to decide how long the post excerpt should be."
+msgstr ""
+"Falls aktiviert, zeigt WordPress Popular Posts zusätzlich einen kurzen "
+"Auszug Deines Beitrags in der Liste an. Wie bei der vorhergehenden Auswahl "
+"ist es dir möglich, die Länge des Auszugs einzustellen."
+
+#: ../views/admin.php:674
+msgid "What does \"Keep text format and links\" do?"
+msgstr "Was macht \"Behalte Textformat und Links bei\"?"
+
+#: ../views/admin.php:676
+msgid ""
+"If checked, and if the Post Excerpt feature is enabled, WordPress Popular "
+"Posts will keep the styling tags (eg. bold, italic, etc) that were found in "
+"the excerpt. Hyperlinks will remain intact, too."
+msgstr ""
+"Falls aktiviert und wenn die Darstellung von Auszügen aktiviert ist, behält "
+"WordPress Popular Posts die formatierenden Tags (z. B. fett, kursiv usw.) im "
+"Auszug. Auch Links bleiben unverändert."
+
+#: ../views/admin.php:679
+msgid "What is \"Post type\" for?"
+msgstr "Für was steht \"Post-Type\"?"
+
+#: ../views/admin.php:681
+msgid ""
+"This filter allows you to decide which post types to show on the listing. By "
+"default, it will retrieve only posts and pages (which should be fine for "
+"most cases)."
+msgstr ""
+"Dieser Filter erlaubt dir zu entscheiden, welche Post-Types aufgelistet "
+"werden. Per Voreinstellung werden nur Seiten und Beiträge angezeigt (was in "
+"den meisten Fällen ausreicht)."
+
+#: ../views/admin.php:684
+msgid "What is \"Category(ies) ID(s)\" for?"
+msgstr "Für was steht \"Kategorie(n)-ID(s)\"?"
+
+#: ../views/admin.php:686
+msgid ""
+"This filter allows you to select which categories should be included or "
+"excluded from the listing. A negative sign in front of the category ID "
+"number will exclude posts belonging to it from the list, for example. You "
+"can specify more than one ID with a comma separated list."
+msgstr ""
+"Dieser Filter erlaubt dir auszuwählen, welche Kategorien in der Auflistung "
+"eingeschlossen oder ausgeschlossen werden sollten. Ein Minus-Zeichen vor "
+"einer Kategorien-ID schließt Beiträge, die die ID zugewiesen bekamen, von "
+"der Liste aus. du kannst mehr als eine ID, mit Kommas getrennt, angeben."
+
+#: ../views/admin.php:689
+msgid "What is \"Author(s) ID(s)\" for?"
+msgstr "Für was steht \"Autor(en)-ID(s)\"?"
+
+#: ../views/admin.php:691
+msgid ""
+"Just like the Category filter, this one lets you filter posts by author ID. "
+"You can specify more than one ID with a comma separated list."
+msgstr ""
+"Wie beim Kategorienfilter kannst du auch Beiträge nach Autoren filtern. Du "
+"kannst mehr als eine Autoren-ID, getrennt durch Kommas, angeben."
+
+#: ../views/admin.php:694
+msgid "What does \"Display post thumbnail\" do?"
+msgstr "Was macht \"Zeige Vorschaubild\"?"
+
+#: ../views/admin.php:696
+msgid ""
+"If checked, WordPress Popular Posts will attempt to retrieve the thumbnail "
+"of each post. You can set up the source of the thumbnail via Settings - "
+"WordPress Popular Posts - Tools."
+msgstr ""
+"Falls aktiviert, versucht WordPress Popular Posts, das Vorschaubild von "
+"jedem Beitrag darzustellen. Du kannst die Quelle des Vorschaubildes unter "
+"\"Werkzeuge\" einstellen."
+
+#: ../views/admin.php:699
+msgid "What does \"Display comment count\" do?"
+msgstr "Was macht \"Zeige Anzahl Kommentare\"?"
+
+#: ../views/admin.php:701
+msgid ""
+"If checked, WordPress Popular Posts will display how many comments each "
+"popular post has got in the selected Time Range."
+msgstr ""
+"Falls aktiviert, zeigt WordPress Popular Posts an, wie viele Kommentare "
+"jeder beliebte Beitrag in der eingestellten Zeitspanne erhielt."
+
+#: ../views/admin.php:704
+msgid "What does \"Display views\" do?"
+msgstr "Was macht \"Zeige Aufrufe\"?"
+
+#: ../views/admin.php:706
+msgid ""
+"If checked, WordPress Popular Posts will show how many pageviews a single "
+"post has gotten in the selected Time Range."
+msgstr ""
+"Falls aktiviert, zeigt WordPress Popular Posts an, wie viele Seitenaufrufe "
+"jeder einzelne Beitrag in der eingestellten Zeitspanne erhielt."
+
+#: ../views/admin.php:709
+msgid "What does \"Display author\" do?"
+msgstr "Was macht \"Zeige Autor\"?"
+
+#: ../views/admin.php:711
+msgid ""
+"If checked, WordPress Popular Posts will display the name of the author of "
+"each entry listed."
+msgstr ""
+"Falls aktiviert, zeigt WordPress Popular Posts den Autorennamen in jedem "
+"Listeneintrag an."
+
+#: ../views/admin.php:714
+msgid "What does \"Display date\" do?"
+msgstr "Was macht \"Zeige Datum\"?"
+
+#: ../views/admin.php:716
+msgid ""
+"If checked, WordPress Popular Posts will display the date when each popular "
+"posts was published."
+msgstr ""
+"Falls aktiviert, zeigt WordPress Popular Posts das Veröffentlichungsdatum "
+"jeden Beitrags an."
+
+#: ../views/admin.php:719
+msgid "What does \"Display category\" do?"
+msgstr "Was macht \"Zeige Kategorie\"?"
+
+#: ../views/admin.php:721
+msgid ""
+"If checked, WordPress Popular Posts will display the category of each post."
+msgstr ""
+"Falls aktiviert, zeigt WordPress Popular Posts den Kategorie in jedem "
+"Listeneintrag an."
+
+#: ../views/admin.php:724
+msgid "What does \"Use custom HTML Markup\" do?"
+msgstr "Was macht \"Verwende benutzerdefinierten HTML-Code\"?"
+
+#: ../views/admin.php:726
+msgid ""
+"If checked, you will be able to customize the HTML markup of your popular "
+"posts listing. For example, you can decide whether to wrap your posts in an "
+"unordered list, an ordered list, a div, etc. If you know xHTML/CSS, this is "
+"for you!"
+msgstr ""
+"Falls aktiviert, ist es dir möglich, eigenen HTML-Code in der Auflistung "
+"einzusetzen. Du kannst z. B. bestimmen, ob die Einträge in einer "
+"ungeordneten Liste, geordneten Liste, einem DIV oder was auch immer gesetzt "
+"werden. Wenn du HTML und CSS kannst, ist diese Auswahl dein Freund."
+
+#: ../views/admin.php:729
+msgid "What are \"Content Tags\"?"
+msgstr "Was sind \"Content-Tags\"?"
+
+#: ../views/admin.php:731
+#, fuzzy, php-format
+msgid ""
+"Content Tags are codes to display a variety of items on your popular posts "
+"custom HTML structure. For example, setting it to \"{title}: "
+"{summary}\" (without the quotes) would display \"Post title: excerpt of the "
+"post here\". For more Content Tags, see the <a href=\"%s\" target=\"_blank"
+"\">Parameters</a> section."
+msgstr ""
+"Content-Tags sind Code-Schnipsel, um verschiedene Angaben über die "
+"beliebtesten Beiträge in deiner selbst definierten HTML-Struktur anzuzeigen. "
+"Zum Beispiel zeigt \"{title}: {summary}\" (ohne die Anführungszeichen) "
+"\"Überschrift: Auszug des Beitrags\" an. Für weitere Content-Tags siehe "
+"\"Liste der gültigen Parameter von wpp_gewt-mostpopular() und des [wpp]-"
+"Shortcodes\"."
+
+#: ../views/admin.php:734
+msgid "What are \"Template Tags\"?"
+msgstr "Was sind \"Template-Tags\"?"
+
+#: ../views/admin.php:736
+msgid ""
+"Template Tags are simply php functions that allow you to perform certain "
+"actions. For example, WordPress Popular Posts currently supports two "
+"different template tags: wpp_get_mostpopular() and wpp_get_views()."
+msgstr ""
+"Template-Tags sind schlicht und einfach PHP-Funktionen, die bestimmten "
+"Aktionen ausführen. Zum Beispiel unterstützt WordPress Popular Posts zwei "
+"verschiedene Template-Tags: wpp_get_mostpopular() und wpp_get_views()."
+
+#: ../views/admin.php:739
+msgid "What are the template tags that WordPress Popular Posts supports?"
+msgstr "Welche Template-Tags unterstützt WordPress Popular Posts?"
+
+#: ../views/admin.php:741
+msgid ""
+"The following are the template tags supported by WordPress Popular Posts"
+msgstr "Die folgenden Template-Tags unterstützt WordPress Popular Posts"
+
+#: ../views/admin.php:745
+msgid "Template tag"
+msgstr "Template-Tag"
+
+#: ../views/admin.php:754
+#, fuzzy, php-format
+msgid ""
+"Similar to the widget functionality, this tag retrieves the most popular "
+"posts on your blog. This function also accepts <a href=\"%1$s\">parameters</"
+"a> so you can customize your popular listing, but these are not required."
+msgstr ""
+"Ähnlich wie das Widget zeigt dieser Tag die beliebtesten Beiträge Deines "
+"Blogs an. Diese Funktion akzeptiert auch Parameter, so dass du die "
+"Auflistung nach deinen Vorstellungen setzen kannst, aber sie sind sind "
+"erforderlich."
+
+#: ../views/admin.php:755
+#, php-format
+msgid ""
+"Please refer to the <a href=\"%1$s\">Parameters section</a> for a complete "
+"list of attributes."
+msgstr ""
+
+#: ../views/admin.php:760
+msgid ""
+"Displays the number of views of a single post. Post ID is required or it "
+"will return false."
+msgstr ""
+"Zeigt die Anzahl der Aufrufe eines einzelnen Beitrags an. Die Post-ID ist "
+"erforderlich, andersfalls wird false zurückgegeben."
+
+#: ../views/admin.php:761
+msgid "Post ID"
+msgstr "Post-ID"
+
+#: ../views/admin.php:768
+msgid "What are \"shortcodes\"?"
+msgstr "Was sind \"Shortcodes\"?"
+
+#: ../views/admin.php:770
+#, php-format
+msgid ""
+"Shortcodes are similar to BB Codes, these allow us to call a php function by "
+"simply typing something like [shortcode]. With WordPress Popular Posts, the "
+"shortcode [wpp] will let you insert a list of the most popular posts in "
+"posts content and pages too! For more information about shortcodes, please "
+"visit the <a href=\"%s\" target=\"_blank\">WordPress Shortcode API</a> page."
+msgstr ""
+"Shortcodes sind vergleichbar mit BB-Codes. Sie erlauben uns, eine PHP-"
+"Funktion aufzurufen durch einen einfachen Text wie [shortcode]. Der "
+"Shortcode [wpp] fügt die Liste der beliebtesten Beiträge in den Text sowohl "
+"von Beiträgen als auch Seiten ein. Für mehr Informationen über Shortcodes "
+"besuche <a href=\"%s\" target=\"_blank\">WordPress Shortcode API</a>."
+
+#: ../views/admin.php:778
+#, php-format
+msgid "About WordPress Popular Posts %s"
+msgstr "Über WordPress Popular Posts %s"
+
+#: ../views/admin.php:779
+msgid "This version includes the following changes"
+msgstr "Diese Version enthält die folgenden Änderungen"
+
+#: ../views/admin.php:802
+msgid "Do you like this plugin?"
+msgstr "Gefällt dir dieses Plugin?"
+
+#: ../views/admin.php:809
+msgid ""
+"Each donation motivates me to keep releasing free stuff for the WordPress "
+"community!"
+msgstr ""
+"Jede Spende motiviert mich, der WordPress-Gemeinschaft nützliches Zeugs "
+"weiterhin kostenlos zur Verfügung zu stellen!"
+
+#: ../views/admin.php:810
+#, php-format
+msgid "You can <a href=\"%s\" target=\"_blank\">leave a review</a>, too!"
+msgstr ""
+
+#: ../views/admin.php:814
+msgid "Need help?"
+msgstr "Brauchen Sie Hilfe?"
+
+#: ../views/admin.php:815
+#, php-format
+msgid ""
+"Visit <a href=\"%s\" target=\"_blank\">the forum</a> for support, questions "
+"and feedback."
+msgstr ""
+
+#: ../views/admin.php:816
+msgid "Let's make this plugin even better!"
+msgstr ""
+
+#: ../views/form.php:2
+msgid "Title"
+msgstr "Titel:"
+
+#: ../views/form.php:7
+msgid "Show up to"
+msgstr "Zeige bis zu:"
+
+#: ../views/form.php:8
+msgid "posts"
+msgstr "Beiträge"
+
+#: ../views/form.php:12
+msgid "Sort posts by"
+msgstr "Sortiere Beiträge nach:"
+
+#: ../views/form.php:14
+msgid "Comments"
+msgstr "Kommentaren"
+
+#: ../views/form.php:15
+msgid "Total views"
+msgstr "Zahl der Aufrufe"
+
+#: ../views/form.php:16
+msgid "Avg. daily views"
+msgstr "Durchschn. tägl. Aufrufe"
+
+#: ../views/form.php:22
+msgid "Filters"
+msgstr "Filter:"
+
+#: ../views/form.php:24
+msgid "Time Range"
+msgstr "Zeitspanne:"
+
+#: ../views/form.php:34
+msgid "Post type(s)"
+msgstr "Post-Type(s):"
+
+#: ../views/form.php:37
+msgid "Post(s) ID(s) to exclude"
+msgstr "Post-ID(s), die ausgeschlossen werden:"
+
+#: ../views/form.php:40
+msgid "Category(ies) ID(s)"
+msgstr "Kategorie(n)-ID(s):"
+
+#: ../views/form.php:43
+msgid "Author(s) ID(s)"
+msgstr "Autor(en)-ID(s):"
+
+#: ../views/form.php:48
+msgid "Posts settings"
+msgstr "Einstellungen für Beiträge"
+
+#: ../views/form.php:52
+msgid "Display post rating"
+msgstr "Zeige Bewertung"
+
+#: ../views/form.php:55
+msgid "Shorten title"
+msgstr "Kürze den Titel"
+
+#: ../views/form.php:58
+msgid "Shorten title to"
+msgstr "Kürze den Titel auf"
+
+#: ../views/form.php:59 ../views/form.php:69
+msgid "characters"
+msgstr "Buchstaben"
+
+#: ../views/form.php:60 ../views/form.php:70
+msgid "words"
+msgstr "Wörter"
+
+#: ../views/form.php:63
+msgid "Display post excerpt"
+msgstr "Zeige Auszug"
+
+#: ../views/form.php:66
+msgid "Keep text format and links"
+msgstr "Behalte Textformat und Links bei"
+
+#: ../views/form.php:67
+msgid "Excerpt length"
+msgstr "Länge des Auszugs:"
+
+#: ../views/form.php:73
+msgid "Display post thumbnail"
+msgstr "Zeige Vorschaubild"
+
+#: ../views/form.php:76
+msgid "Use predefined size"
+msgstr ""
+
+#: ../views/form.php:88
+msgid "Set size manually"
+msgstr ""
+
+#: ../views/form.php:90
+msgid "Width"
+msgstr "Breite:"
+
+#: ../views/form.php:91 ../views/form.php:94
+msgid "px"
+msgstr "px"
+
+#: ../views/form.php:93
+msgid "Height"
+msgstr "Höhe:"
+
+#: ../views/form.php:99
+msgid "Stats Tag settings"
+msgstr "Einstellungen des Statistik-Tags"
+
+#: ../views/form.php:101
+msgid "Display comment count"
+msgstr "Zeige Anzahl Kommentare"
+
+#: ../views/form.php:103
+msgid "Display views"
+msgstr "Zeige Aufrufe"
+
+#: ../views/form.php:105
+msgid "Display author"
+msgstr "Zeige Autor"
+
+#: ../views/form.php:107
+msgid "Display date"
+msgstr "Zeige Datum"
+
+#: ../views/form.php:110
+msgid "Date Format"
+msgstr "Datumsformat"
+
+#: ../views/form.php:112
+msgid "WordPress Date Format"
+msgstr "Datumsformat WordPress"
+
+#: ../views/form.php:119
+msgid "Display category"
+msgstr "Zeige Kategorie"
+
+#: ../views/form.php:123
+msgid "HTML Markup settings"
+msgstr "Einstellungen des HTML-Codes"
+
+#: ../views/form.php:125
+msgid "Use custom HTML Markup"
+msgstr "Verwende nutzerdefinierten HTML-Code"
+
+#: ../views/form.php:128
+msgid "Before / after title"
+msgstr "Vor / nach dem Titel:"
+
+#: ../views/form.php:131
+msgid "Before / after Popular Posts"
+msgstr "Vor / nach Beliebte Beiträge:"
+
+#: ../views/form.php:134
+msgid "Post HTML Markup"
+msgstr "Zeige HTML-Code"
+
+#: ../wordpress-popular-posts.php:302
+msgid "The most Popular Posts on your blog."
+msgstr "Die beliebtesten Beiträge deines Blogs."
+
+#: ../wordpress-popular-posts.php:467
+msgid ""
+"Error: cannot ajaxify WordPress Popular Posts on this theme. It's missing "
+"the <em>id</em> attribute on before_widget (see <a href=\"http://codex."
+"wordpress.org/Function_Reference/register_sidebar\" target=\"_blank\" rel="
+"\"nofollow\">register_sidebar</a> for more)."
+msgstr ""
+
+#: ../wordpress-popular-posts.php:711
+msgid "Upload"
+msgstr "Hochladen"
+
+#: ../wordpress-popular-posts.php:1087
+#, php-format
+msgid ""
+"Your PHP installation is too old. WordPress Popular Posts requires at least "
+"PHP version %1$s to function correctly. Please contact your hosting provider "
+"and ask them to upgrade PHP to %1$s or higher."
+msgstr ""
+"Deine PHP-Version ist zu alt. Das Plugin\"WordPress Popular Posts\" benötigt "
+"mindestens PHP-Version %1$s für die einwandfreie Funktion. Bitte nehme "
+"Kontakt mit deinem Hosting-Provider auf und bitte ihn, PHP auf v%1$s oder "
+"höher zu aktualisieren."
+
+#: ../wordpress-popular-posts.php:1094
+#, php-format
+msgid ""
+"Your WordPress version is too old. WordPress Popular Posts requires at least "
+"WordPress version %1$s to function correctly. Please update your blog via "
+"Dashboard &gt; Update."
+msgstr ""
+"Deine WordPress-Version ist zu alt. Das Plugin WordPress Popular Posts "
+"benötigt mindestens Version %1$s. Bitte aktualisiere WordPress via Dashboard "
+"&gt; Aktualisieren."
+
+#: ../wordpress-popular-posts.php:1119
+#, php-format
+msgid ""
+"<div class=\"error\"><p>%1$s</p><p><i>%2$s</i> has been <strong>deactivated</"
+"strong>.</p></div>"
+msgstr ""
+"<div class=\"error\"><p>%1$s</p><p><i>%2$s</i> wurde <strong>deaktiviert</"
+"strong>.</p></div>"
+
+#: ../wordpress-popular-posts.php:1179
+msgid "Success! The cache table has been cleared!"
+msgstr "Erfolg: Die Cache-Tabelle wurde geleert!"
+
+#: ../wordpress-popular-posts.php:1181
+msgid "Error: cache table does not exist."
+msgstr "Fehler: Cache-Tabelle ist nicht vorhanden."
+
+#: ../wordpress-popular-posts.php:1188
+msgid "Success! All data have been cleared!"
+msgstr "Erfolg: Alle Daten wurden gelöscht!"
+
+#: ../wordpress-popular-posts.php:1190
+msgid "Error: one or both data tables are missing."
+msgstr "Fehler: Eine oder beide Tabellen fehlen."
+
+#: ../wordpress-popular-posts.php:1193 ../wordpress-popular-posts.php:1231
+msgid "Invalid action."
+msgstr "Ungültige Aktion."
+
+#: ../wordpress-popular-posts.php:1196 ../wordpress-popular-posts.php:1234
+msgid ""
+"Sorry, you do not have enough permissions to do this. Please contact the "
+"site administrator for support."
+msgstr ""
+"Du hast nicht die erforderlichen Rechte um das zu tun. Bitte wende dich an "
+"den Administrator für weitere Hilfe."
+
+#: ../wordpress-popular-posts.php:1226
+#, fuzzy
+msgid "Success! All files have been deleted!"
+msgstr "Erfolg: Alle Daten wurden gelöscht!"
+
+#: ../wordpress-popular-posts.php:1228
+msgid "The thumbnail cache is already empty!"
+msgstr ""
+
+#: ../wordpress-popular-posts.php:1778
+msgid "Sorry. No data so far."
+msgstr "Noch keine Daten vorhanden."
+
+#: ../wordpress-popular-posts.php:2305
+#, php-format
+msgid "1 comment"
+msgid_plural "%s comments"
+msgstr[0] "1 Kommentar"
+msgstr[1] "%s Kommentare"
+
+#: ../wordpress-popular-posts.php:2317
+#, php-format
+msgid "1 view per day"
+msgid_plural "%s views per day"
+msgstr[0] "1 Aufruf pro Tag"
+msgstr[1] "%s Aufrufe pro Tag"
+
+#: ../wordpress-popular-posts.php:2323
+#, php-format
+msgid "1 view"
+msgid_plural "%s views"
+msgstr[0] "1 Aufruf"
+msgstr[1] "%s Aufrufe"
+
+#: ../wordpress-popular-posts.php:2346
+#, php-format
+msgid "by %s"
+msgstr "von %s"
+
+#: ../wordpress-popular-posts.php:2352
+#, php-format
+msgid "posted on %s"
+msgstr "veröffentlicht am %s"
+
+#: ../wordpress-popular-posts.php:2360
+#, php-format
+msgid "under %s"
+msgstr "in %s"
+
+#~ msgid "Listing refresh interval"
+#~ msgstr "Aktualisierungsintervall der Liste"
+
+#~ msgid "Live"
+#~ msgstr "Echtzeit"
+
+#~ msgid "Custom interval"
+#~ msgstr "Benutzerdefiniertes Intervall"
+
+#~ msgid ""
+#~ "Sets how often the listing should be updated. For most sites the Live "
+#~ "option should be fine, however if you are experiencing slowdowns or your "
+#~ "blog gets a lot of visitors then you might want to change the refresh rate"
+#~ msgstr ""
+#~ "Stellt ein, wie oft die Liste aktualisiert wird. Für die meisten Websites "
+#~ "erreicht die Echtzeit-Einstellung gute Werte. Solltest du jedoch "
+#~ "Verlangsamungen feststellen oder deine Website erreicht viele Besucher, "
+#~ "solltest du die Aktualisierungsrate ändern."
+
+#~ msgid "Refresh list every"
+#~ msgstr "Benutzerdefiniertes Intervall"
+
+#~ msgid ""
+#~ "Please refer to \"List of parameters accepted by wpp_get_mostpopular() "
+#~ "and the [wpp] shortcode\"."
+#~ msgstr ""
+#~ "Bitte schlage nach bei \"Liste der gültigen Parameter von wpp_gewt-"
+#~ "mostpopular() und des [wpp]-Shortcodes\"."
+
+#~ msgid ""
+#~ "List of parameters accepted by wpp_get_mostpopular() and the [wpp] "
+#~ "shortcode"
+#~ msgstr ""
+#~ "Liste der gültigen Parameter von wpp_get-mostpopular() und des [wpp]-"
+#~ "Shortcodes"
+
+#~ msgid ""
+#~ "These parameters can be used by both the template tag "
+#~ "wpp_get_most_popular() and the shortcode [wpp]."
+#~ msgstr ""
+#~ "Diese Parameter können sowohl im Template-Tag wpp_get_most_popular() als "
+#~ "auch im Shortcode [wpp] eingesetzt werden."
+
+#~ msgid "Preview"
+#~ msgstr "Vorschau"
+
+#~ msgid "Excerpt Properties"
+#~ msgstr "Eigenschaften des Auszugs"
+
+#~ msgid "Thumbnail settings"
+#~ msgstr "Einstellungen für die Vorschaubilder"
+
+#~ msgid ""
+#~ "Here you will find a handy group of options to tweak Wordpress Popular "
+#~ "Posts."
+#~ msgstr ""
+#~ "Hier findest du einen überschaubaren Bereich an Einstellungen, um "
+#~ "Wordpress Popular Posts zu optimieren."
+
+#, fuzzy
+#~ msgid "Popular Posts links behavior"
+#~ msgstr "Aktualisierungsintervall der Liste"
+
+#~ msgid "Views logging behavior"
+#~ msgstr "Zählverhalten"
+
+#~ msgid "Wordpress Popular Posts Stylesheet"
+#~ msgstr "Wordpress Popular Posts Stylesheet"
+
+#~ msgid "Data tools"
+#~ msgstr "Datenwerkzeuge"
+
+#~ msgid "Popular posts listing refresh interval"
+#~ msgstr "Aktualisierungsintervall der Liste"
+
+#~ msgid "Frequently Asked Questions"
+#~ msgstr "Häufig gestellte Fragen"
+
+#~ msgid "Sets the opening tag for each item on the list"
+#~ msgstr "Bestimmt den öffnenden Tag für jeden Listeneintrag"
+
+#~ msgid "Sets the closing tag for each item on the list"
+#~ msgstr "Bestimmt den schließenden Tag für jeden Listeneintrag"
+
+#~ msgid ""
+#~ "If set, this option will allow you to decide the order of the contents "
+#~ "within each item on the list."
+#~ msgstr ""
+#~ "Falls gesetzt, kannst du die Reihenfolge der Einträge in der Liste "
+#~ "bestimmen."
+
+#~ msgid ""
+#~ "If set, you can decide the order of each content inside a single item on "
+#~ "the list. For example, setting it to \"{title}: {summary}\" would output "
+#~ "something like \"Your Post Title: summary here\". This attribute requires "
+#~ "do_pattern to be true."
+#~ msgstr ""
+#~ "Falls gesetzt, kannst du die Reihenfolge des Inhalts innerhalbs eines "
+#~ "einzelnen Listeneintrags einstellen. Zum Beispiel zeigt \"{title}: "
+#~ "{summary}\" (ohne Anführungszeichen) sowas wie \"Überschrift: Text des "
+#~ "Auszugs\" an. Dieses Attribut erfordert, dass do_pattern auf 1 (true) "
+#~ "gesetzt ist."
+
+#~ msgid "Available tags"
+#~ msgstr "Verfügbare Tags"
+
+#~ msgid "Rate it"
+#~ msgstr "Bewerte es"
+
+#~ msgid "on the official Plugin Directory!"
+#~ msgstr "im offiziellen Plugin-Verzeichnis!"
+
+#~ msgid "Do you love this plugin?"
+#~ msgstr "Magst du dieses Plugin?"
+
+#~ msgid "Buy me a beer!"
+#~ msgstr "Spende mir ein Bier!"
+
+#~ msgid "comments"
+#~ msgstr "Komentare"
+
+#~ msgid "views per day"
+#~ msgstr "Aufrufe pro Tag"
+
+#~ msgid "views"
+#~ msgstr "Aufrufe"
+
+#~ msgid "by"
+#~ msgstr "von"
+
+#~ msgid "What does \"Use content formatting tags\" do?"
+#~ msgstr "Was macht \"Verwende textformatierende Tags\"?"
+
+#~ msgid "Before / after each post:"
+#~ msgstr "Vor / nach jedem Beitrag:"
+
+#~ msgid "Use content formatting tags"
+#~ msgstr "Verwende textformatierende Tags"
+
+#~ msgid "Content format:"
+#~ msgstr "Inhaltsformat:"
+
+#~ msgid "Wordpress Popular Posts Stats"
+#~ msgstr "Wordpress Popular Posts Statistik"
diff --git a/wp-content/plugins/wordpress-popular-posts/lang/wordpress-popular-posts-es_ES.mo b/wp-content/plugins/wordpress-popular-posts/lang/wordpress-popular-posts-es_ES.mo
index d0f1fd77b67d9761f8a3f760df6939f6176a3733..c5c7165cf63203d2ec56cc3a83b895f561dd229d 100644
Binary files a/wp-content/plugins/wordpress-popular-posts/lang/wordpress-popular-posts-es_ES.mo and b/wp-content/plugins/wordpress-popular-posts/lang/wordpress-popular-posts-es_ES.mo differ
diff --git a/wp-content/plugins/wordpress-popular-posts/lang/wordpress-popular-posts-es_ES.po b/wp-content/plugins/wordpress-popular-posts/lang/wordpress-popular-posts-es_ES.po
index 47127674ef66dca90e9bc88aa78b57545ba2349c..ca5f478c7f0f3a6829ac6bbc41ade6dd683b15ee 100644
--- a/wp-content/plugins/wordpress-popular-posts/lang/wordpress-popular-posts-es_ES.po
+++ b/wp-content/plugins/wordpress-popular-posts/lang/wordpress-popular-posts-es_ES.po
@@ -1,1481 +1,1595 @@
-msgid ""
-msgstr ""
-"Project-Id-Version: Wordpress Popular Posts\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-09-23 16:54-0430\n"
-"PO-Revision-Date: \n"
-"Last-Translator: Héctor Cabrera <hcabrerab@gmail.com>\n"
-"Language-Team: Héctor Cabrera <hcabrerab@gmail.com>\n"
-"Language: es_ES\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Poedit-SourceCharset: UTF-8\n"
-"X-Poedit-KeywordsList: __;_e;_n:1,2\n"
-"X-Poedit-Basepath: .\n"
-"X-Generator: Poedit 1.6.9\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-"X-Poedit-SearchPath-0: .\n"
-"X-Poedit-SearchPath-1: ..\n"
-
-#: ../views/admin.php:25 ../views/admin.php:34 ../views/admin.php:48
-#: ../views/admin.php:69
-msgid "Settings saved."
-msgstr "Configuraci&oacute;n guardada."
-
-#: ../views/admin.php:40
-msgid "Please provide the name of your custom field."
-msgstr "Por favor indica el nombre de tu custom field."
-
-#: ../views/admin.php:75
-msgid ""
-"Any changes made to WPP's default stylesheet will be lost after every plugin "
-"update. In order to prevent this from happening, please copy the wpp.css "
-"file (located at wp-content/plugins/wordpress-popular-posts/style) into your "
-"theme's directory"
-msgstr ""
-"Cualquier cambio hecho a la hoja de estilos por defecto de WPP se "
-"perder&aacute; cada vez que el plugin se actualize. Para evitar esto, por "
-"favor copia el archivo wpp.css (ubicado en wp-content/plugins/wordpress-"
-"popular-posts/style) en la carpeta de tu tema actual."
-
-#: ../views/admin.php:90
-msgid ""
-"This operation will delete all entries from WordPress Popular Posts' cache "
-"table and cannot be undone."
-msgstr ""
-"Esta operaci\\363n borrar\\341 todas las entradas en el cach\\351 de "
-"WordPress Popular Posts y no se puede deshacer."
-
-#: ../views/admin.php:90 ../views/admin.php:98 ../views/admin.php:106
-msgid "Do you want to continue?"
-msgstr "Deseas continuar?"
-
-#: ../views/admin.php:98
-msgid ""
-"This operation will delete all stored info from WordPress Popular Posts' "
-"data tables and cannot be undone."
-msgstr ""
-"Esta operaci\\363n borrar\\341 toda la informaci\\363n guardada en las "
-"tablas de WordPress Popular Posts y no puede ser reversado."
-
-#: ../views/admin.php:106
-msgid "This operation will delete all cached thumbnails and cannot be undone."
-msgstr ""
-"Esta operaci\\363n borrar\\341 todas las miniaturas en el cach\\351 y no se "
-"puede deshacer."
-
-#: ../views/admin.php:123
-msgid "Stats"
-msgstr "Estad&iacute;sticas"
-
-#: ../views/admin.php:124
-msgid "Tools"
-msgstr "Herramientas"
-
-#: ../views/admin.php:125 ../views/admin.php:689
-msgid "Parameters"
-msgstr "Par&aacute;metros"
-
-#: ../views/admin.php:126
-msgid "FAQ"
-msgstr "FAQ"
-
-#: ../views/admin.php:127
-msgid "About"
-msgstr "Acerca de"
-
-#: ../views/admin.php:138
-msgid ""
-"Click on each tab to see what are the most popular entries on your blog in "
-"the last 24 hours, this week, last 30 days or all time since WordPress "
-"Popular Posts was installed."
-msgstr ""
-"Haz clic en cada pesta&ntilde;a para ver las entradas m&aacute;s populares "
-"de tu blog en las &uacute;ltimas 24 horas, esta semana, los &uacute;ltimos "
-"30 d&iacute;as o de todos los tiempos desde que WordPress Popular Posts fue "
-"instalado."
-
-#: ../views/admin.php:144
-msgid "Order by comments"
-msgstr "Ordenar por comentarios"
-
-#: ../views/admin.php:145
-msgid "Order by views"
-msgstr "Ordenar por vistas"
-
-#: ../views/admin.php:146
-msgid "Order by avg. daily views"
-msgstr "Ordenar por average de vistas diarias"
-
-#: ../views/admin.php:148
-msgid "Post type"
-msgstr "Post type"
-
-#: ../views/admin.php:149
-msgid "Limit"
-msgstr "L&iacute;mite"
-
-#: ../views/admin.php:150 ../views/form.php:32
-msgid "Display only posts published within the selected Time Range"
-msgstr ""
-"Mostrar s&oacute;lo entradas publicadas en el Rango de Tiempo seleccionado"
-
-#: ../views/admin.php:152 ../views/admin.php:242 ../views/admin.php:308
-#: ../views/admin.php:345
-msgid "Apply"
-msgstr "Aplicar"
-
-#: ../views/admin.php:158 ../views/form.php:26
-msgid "Last 24 hours"
-msgstr "&Uacute;ltimas 24 horas"
-
-#: ../views/admin.php:159 ../views/form.php:27
-msgid "Last 7 days"
-msgstr "&Uacute;ltimos 7 d&iacute;as"
-
-#: ../views/admin.php:160 ../views/form.php:28
-msgid "Last 30 days"
-msgstr "&Uacute;ltimos 30 d&iacute;as"
-
-#: ../views/admin.php:161 ../views/form.php:29
-msgid "All-time"
-msgstr "Todos los tiempos"
-
-#: ../views/admin.php:183
-msgid "Thumbnails"
-msgstr "Miniaturas"
-
-#: ../views/admin.php:188
-msgid "Default thumbnail"
-msgstr "Miniatura por defecto"
-
-#: ../views/admin.php:193
-msgid "Upload thumbnail"
-msgstr "Subir miniatura"
-
-#: ../views/admin.php:195
-msgid ""
-"How-to: upload (or select) an image, set Size to Full and click on Upload. "
-"After it's done, hit on Apply to save changes"
-msgstr ""
-"Tutorial: sube (o selecciona) una imagen, selecciona Tama&ntilde;o Completo "
-"y haz clic en Subir. Cuando termine, dale a Aplicar para guardar los cambios"
-
-#: ../views/admin.php:199
-msgid "Pick image from"
-msgstr "Seleccionar imagen desde"
-
-#: ../views/admin.php:202
-msgid "Featured image"
-msgstr "Imagen destacada"
-
-#: ../views/admin.php:203
-msgid "First image on post"
-msgstr "Primera imagen de la entrada"
-
-#: ../views/admin.php:204
-msgid "Custom field"
-msgstr "Custom field"
-
-#: ../views/admin.php:207
-msgid "Tell WordPress Popular Posts where it should get thumbnails from"
-msgstr ""
-"Dile a WordPress Popular Posts de d&oacute;nde debe obtener las miniaturas"
-
-#: ../views/admin.php:211
-msgid "Custom field name"
-msgstr "Nombre del custom field"
-
-#: ../views/admin.php:217
-msgid "Resize image from Custom field?"
-msgstr "&iexcl;Ajustar la imagen del Custom field?"
-
-#: ../views/admin.php:220
-msgid "No, I will upload my own thumbnail"
-msgstr "No, subir&eacute; mi propia miniatura"
-
-#: ../views/admin.php:221
-msgid "Yes"
-msgstr "S&iacute;"
-
-#: ../views/admin.php:232
-msgid "Empty image cache"
-msgstr "Vaciar el cach&eacute; de im&aacute;genes"
-
-#: ../views/admin.php:233
-msgid "Use this button to clear WPP's thumbnails cache"
-msgstr ""
-"Utiliza este bot&oacute;n para vaciar el cach&eacute; de miniaturas de WPP"
-
-#: ../views/admin.php:251
-msgid "Data"
-msgstr "Datos"
-
-#: ../views/admin.php:256
-msgid "Log views from"
-msgstr "Registrar vistas de"
-
-#: ../views/admin.php:259
-msgid "Visitors only"
-msgstr "S&oacute;lo visitantes"
-
-#: ../views/admin.php:260
-msgid "Logged-in users only"
-msgstr "S&oacute;lo usuarios conectados"
-
-#: ../views/admin.php:261
-msgid "Everyone"
-msgstr "Todos"
-
-#: ../views/admin.php:267
-msgid "Ajaxify widget"
-msgstr "Usar Ajax con el widget"
-
-#: ../views/admin.php:270 ../views/admin.php:336
-msgid "Disabled"
-msgstr "Deshabilitado"
-
-#: ../views/admin.php:271 ../views/admin.php:335
-msgid "Enabled"
-msgstr "Habilitado"
-
-#: ../views/admin.php:275
-msgid ""
-"If you are using a caching plugin such as WP Super Cache, enabling this "
-"feature will keep the popular list from being cached by it"
-msgstr ""
-"Si est&aacute;s utilizando un plugin de cacheo como WP Super Cache, "
-"habilitar esta caracter&iacute;stica evitar&aacute; que la lista de entradas "
-"populares sea guardada en cach&eacute;"
-
-#: ../views/admin.php:279
-msgid "Listing refresh interval"
-msgstr "Intervalo de refrescamiento del listado"
-
-#: ../views/admin.php:282
-msgid "Live"
-msgstr "En vivo"
-
-#: ../views/admin.php:283
-msgid "Custom interval"
-msgstr "Intervalo personalizado"
-
-#: ../views/admin.php:287
-msgid ""
-"Sets how often the listing should be updated. For most sites the Live option "
-"should be fine, however if you are experiencing slowdowns or your blog gets "
-"a lot of visitors then you might want to change the refresh rate"
-msgstr ""
-"Configura cu&aacute;n frecuentemente debe actualizarse listado. Para la "
-"mayor&iacute;a de los sitios la opci&oacute;n En Vivo deber&iacute;a estar "
-"bien, sin embargo si est&aacute;s experimentando lentitud o tu blog recibe "
-"muchos visitantes entonces quiz&aacute;s prefieras cambiar la tasa de "
-"refrescamiento"
-
-#: ../views/admin.php:291
-msgid "Refresh list every"
-msgstr "Refrescar la lista cada"
-
-#: ../views/admin.php:295
-msgid "Hour(s)"
-msgstr "Hora(s)"
-
-#: ../views/admin.php:296
-msgid "Day(s)"
-msgstr "D&iacute;a(s)"
-
-#: ../views/admin.php:297
-msgid "Week(s)"
-msgstr "Semana(s)"
-
-#: ../views/admin.php:298
-msgid "Month(s)"
-msgstr "Mes(es)"
-
-#: ../views/admin.php:299
-msgid "Year(s)"
-msgstr "A&ntilde;o(s)"
-
-#: ../views/admin.php:302
-msgid "Really? That long?"
-msgstr "&iquest;En serio? &iquest;Tanto tiempo?"
-
-#: ../views/admin.php:317
-msgid "Miscellaneous"
-msgstr "Miscel&aacute;neos"
-
-#: ../views/admin.php:322
-msgid "Open links in"
-msgstr "Abrir links en"
-
-#: ../views/admin.php:325
-msgid "Current window"
-msgstr "Ventana actual"
-
-#: ../views/admin.php:326
-msgid "New tab/window"
-msgstr "Nueva pesta&ntilde;a/ventana"
-
-#: ../views/admin.php:332
-msgid "Use plugin's stylesheet"
-msgstr "Utilizar la hoja de estilos del plugin"
-
-#: ../views/admin.php:339
-msgid ""
-"By default, the plugin includes a stylesheet called wpp.css which you can "
-"use to style your popular posts listing. If you wish to use your own "
-"stylesheet or do not want it to have it included in the header section of "
-"your site, use this."
-msgstr ""
-"Por defecto, el plugin incluye una hoja de estilos llamada wpp.css que "
-"puedes utilizar para darle estilos a tu listado de entradas populares. Si "
-"deseas utilizar tu propia hoja de estilos, o no quieres que wpp.css se "
-"incluya en el header de tu sitio web, utiliza esto."
-
-#: ../views/admin.php:356
-msgid ""
-"WordPress Popular Posts maintains data in two separate tables: one for "
-"storing the most popular entries on a daily basis (from now on, \"cache\"), "
-"and another one to keep the All-time data (from now on, \"historical data\" "
-"or just \"data\"). If for some reason you need to clear the cache table, or "
-"even both historical and cache tables, please use the buttons below to do so."
-msgstr ""
-"WordPress Popular Posts mantiene la data en dos tablas separadas: una para "
-"guardar diariamente las entradas m&aacute;s populares (\"cach&eacute;\", de "
-"aqu&iacute; en adelante), y otra tabla para almacenar la data de Todos los "
-"tiempos (\"data hist&oacute;rica\" o simplemente \"data\"). Si por alguna "
-"raz&oacute;n necesitas vaciar la tabla cach&eacute;, o inclusive las dos "
-"tablas hist&oacute;ricas y de cach&eacute;, por favor utiliza los botones de "
-"abajo."
-
-#: ../views/admin.php:357
-msgid "Empty cache"
-msgstr "Vaciar el cach&eacute;"
-
-#: ../views/admin.php:357
-msgid "Use this button to manually clear entries from WPP cache only"
-msgstr ""
-"Utiliza este bot&oacute;n para vaciar manualmente s&oacute;lo las entradas "
-"del cach&eacute; de WPP"
-
-#: ../views/admin.php:358
-msgid "Clear all data"
-msgstr "Eliminar toda la data"
-
-#: ../views/admin.php:358
-msgid "Use this button to manually clear entries from all WPP data tables"
-msgstr ""
-"Utiliza este bot&oacute;n para limpiar manualmente las tablas de datos de WPP"
-
-#: ../views/admin.php:365
-#, php-format
-msgid ""
-"With the following parameters you can customize the popular posts list when "
-"using either the <a href=\"%1$s\">wpp_get_most_popular() template tag</a> or "
-"the <a href=\"%2$s\">[wpp] shortcode</a>."
-msgstr ""
-"Con los siguientes par&aacute;metros puedes personalizar la lista de "
-"entradas populares al utilizar tanto el <a href=\"%1$s"
-"\">wpp_get_most_popular() template tag</a> como el <a href=\"%2$s\">[wpp] "
-"shortcode</a>."
-
-#: ../views/admin.php:373
-msgid "Parameter"
-msgstr "Par&aacute;metro"
-
-#: ../views/admin.php:374 ../views/admin.php:688
-msgid "What it does "
-msgstr "Qu&eacute; hace"
-
-#: ../views/admin.php:375
-msgid "Possible values"
-msgstr "Valores posibles"
-
-#: ../views/admin.php:376
-msgid "Defaults to"
-msgstr "Por defecto"
-
-#: ../views/admin.php:377 ../views/admin.php:690
-msgid "Example"
-msgstr "Ejemplo"
-
-#: ../views/admin.php:383
-msgid "Sets a heading for the list"
-msgstr "Configura el encabezado de la lista"
-
-#: ../views/admin.php:384 ../views/admin.php:391 ../views/admin.php:398
-#: ../views/admin.php:433 ../views/admin.php:440 ../views/admin.php:447
-#: ../views/admin.php:454 ../views/admin.php:545 ../views/admin.php:559
-#: ../views/admin.php:566
-msgid "Text string"
-msgstr "Texto"
-
-#: ../views/admin.php:385
-msgid "Popular Posts"
-msgstr "Entradas Populares"
-
-#: ../views/admin.php:390
-msgid "Set the opening tag for the heading of the list"
-msgstr "Configura la etiqueta de apertura para el encabezado de la lista"
-
-#: ../views/admin.php:397
-msgid "Set the closing tag for the heading of the list"
-msgstr "Configura la etiqueta de cierre para el encabezado de la lista"
-
-#: ../views/admin.php:404
-msgid "Sets the maximum number of popular posts to be shown on the listing"
-msgstr ""
-"Configura el m&aacute;ximo de entradas populares a ser mostradas en la lista"
-
-#: ../views/admin.php:405 ../views/admin.php:461 ../views/admin.php:475
-#: ../views/admin.php:496 ../views/admin.php:503
-msgid "Positive integer"
-msgstr "Entero positivo"
-
-#: ../views/admin.php:411
-msgid ""
-"Tells WordPress Popular Posts to retrieve the most popular entries within "
-"the time range specified by you"
-msgstr ""
-"Le indica a WordPress Popular Posts que debe listar aquellas entradas que "
-"hayan sido populares dentro del rango de tiempo especificado por ti"
-
-#: ../views/admin.php:418
-msgid ""
-"Tells WordPress Popular Posts to retrieve the most popular entries published "
-"within the time range specified by you"
-msgstr ""
-"Le indica a WordPress Popular Posts que debe listar aquellas entradas "
-"populares publicadas dentro del rango de tiempo especificado por ti"
-
-#: ../views/admin.php:425
-msgid "Sets the sorting option of the popular posts"
-msgstr "Configura el ordenado de las entradas populares"
-
-#: ../views/admin.php:426
-msgid "(for average views per day)"
-msgstr "(para el porcentaje de vistas por d&iacute;a)"
-
-#: ../views/admin.php:432
-msgid "Defines the type of posts to show on the listing"
-msgstr "Define el tipo de entrada a mostrar en el listado"
-
-#: ../views/admin.php:439
-msgid ""
-"If set, WordPress Popular Posts will exclude the specified post(s) ID(s) "
-"form the listing."
-msgstr ""
-"Si se configura, WordPress Popular Posts excluir&aacute; todos los IDs de "
-"las entradas especificadas."
-
-#: ../views/admin.php:441 ../views/admin.php:448 ../views/admin.php:455
-msgid "None"
-msgstr "Ninguno"
-
-#: ../views/admin.php:446
-msgid ""
-"If set, WordPress Popular Posts will retrieve all entries that belong to the "
-"specified category(ies) ID(s). If a minus sign is used, the category(ies) "
-"will be excluded instead."
-msgstr ""
-"Si se configura, WordPress Popular Posts mostrar&aacute; todas las entradas "
-"que pertenecen a la(s) categor&iacute;a(s) especificada(s). Si se usa un "
-"signo negativo, la(s) categor&iacute;a(s) ser&aacute;(n) exclu&iacute;da(s)."
-
-#: ../views/admin.php:453
-msgid ""
-"If set, WordPress Popular Posts will retrieve all entries created by "
-"specified author(s) ID(s)."
-msgstr ""
-"Si se configura, WordPress Popular Posts traer&aacute; todas las entradas "
-"creadas por el (los) ID(s) de autor(es) especificado(s)."
-
-#: ../views/admin.php:460
-msgid ""
-"If set, WordPress Popular Posts will shorten each post title to \"n\" "
-"characters whenever possible"
-msgstr ""
-"Si se configura, WordPress Popular Posts acortar&aacute; cada titulo en \"n"
-"\" caracteres cuando sea posible"
-
-#: ../views/admin.php:467
-msgid ""
-"If set to 1, WordPress Popular Posts will shorten each post title to \"n\" "
-"words instead of characters"
-msgstr ""
-"Si se pasa el valor 1, WordPress Popular Posts acortar&aacute; cada titulo "
-"en \"n\" palabras en vez de caracteres"
-
-#: ../views/admin.php:474
-msgid ""
-"If set, WordPress Popular Posts will build and include an excerpt of \"n\" "
-"characters long from the content of each post listed as popular"
-msgstr ""
-"Si se configura, WordPress Popular Posts construir&aacute; e incluir&aacute; "
-"un extracto de \"n\" caracteres del contenido de cada entrada listada como "
-"popular"
-
-#: ../views/admin.php:481
-msgid ""
-"If set, WordPress Popular Posts will maintaing all styling tags (strong, "
-"italic, etc) and hyperlinks found in the excerpt"
-msgstr ""
-"Si se configura, WordPress Popular Posts mantendr&aacute; todas las "
-"etiquetas de estilo (strong, italic, etc) y los hiperv&iacute;nculos "
-"encontrados en el extracto"
-
-#: ../views/admin.php:488
-msgid ""
-"If set to 1, WordPress Popular Posts will shorten the excerpt to \"n\" words "
-"instead of characters"
-msgstr ""
-"Si se configura, WordPress Popular Posts acortar&aacute; el resumen en \"n\" "
-"palabras en vez de caracteres"
-
-#: ../views/admin.php:495
-msgid ""
-"If set, and if your current server configuration allows it, you will be able "
-"to display thumbnails of your posts. This attribute sets the width for "
-"thumbnails"
-msgstr ""
-"Si se configura, y si la configuraci&oacute;n actual de tu servidor lo "
-"permite, podr&aacute;s mostrar miniaturas de tus entradas. Este atributo "
-"configura el ancho de tus miniaturas"
-
-#: ../views/admin.php:502
-msgid ""
-"If set, and if your current server configuration allows it, you will be able "
-"to display thumbnails of your posts. This attribute sets the height for "
-"thumbnails"
-msgstr ""
-"Si se configura, y si la configuraci&oacute;n actual de tu servidor lo "
-"permite, podr&aacute;s mostrar miniaturas de tus entradas. Este atributo "
-"configura el alto de tus miniaturas"
-
-#: ../views/admin.php:509
-msgid ""
-"If set, and if the WP-PostRatings plugin is installed and enabled on your "
-"blog, WordPress Popular Posts will show how your visitors are rating your "
-"entries"
-msgstr ""
-"Si se configura, y si el plugin WP-PostRatings est&aacute; instalado y "
-"habilitado en tu blog, WordPress Popular Posts mostrar&aacute; como tus "
-"visitantes han calificado a tus entradas"
-
-#: ../views/admin.php:516
-msgid ""
-"If set, WordPress Popular Posts will show how many comments each popular "
-"post has got until now"
-msgstr ""
-"Si se configura, WordPress Popular Posts mostrar&aacute; cu&aacute;ntos "
-"comentarios ha obtenido cada entrada popular hasta ahora"
-
-#: ../views/admin.php:523
-msgid ""
-"If set, WordPress Popular Posts will show how many views each popular post "
-"has got since it was installed"
-msgstr ""
-"Si se configura, WordPress Popular Posts mostrar&aacute; cu&aacute;ntas "
-"vistas ha obtenido cada entrada popular desde que el plugin fue instalado"
-
-#: ../views/admin.php:530
-msgid ""
-"If set, WordPress Popular Posts will show who published each popular post on "
-"the list"
-msgstr ""
-"Si se configura, WordPress Popular Posts mostrar&aacute; qui&eacute;n "
-"public&oacute; cada entrada popular de la lista"
-
-#: ../views/admin.php:537
-msgid ""
-"If set, WordPress Popular Posts will display the date when each popular post "
-"on the list was published"
-msgstr ""
-"Si se tilda, WordPress Popular Posts mostrar&aacute; la fecha en la que fue "
-"publicada cada entrada popular"
-
-#: ../views/admin.php:544
-msgid "Sets the date format"
-msgstr "Configura el formato de la fecha"
-
-#: ../views/admin.php:551
-msgid "If set, WordPress Popular Posts will display the category"
-msgstr ""
-"Si se tilda, WordPress Popular Posts mostrar&aacute; la categor&iacute;a"
-
-#: ../views/admin.php:558
-msgid "Sets the opening tag for the listing"
-msgstr "Configura la etiqueta de apertura del listado"
-
-#: ../views/admin.php:565
-msgid "Sets the closing tag for the listing"
-msgstr "Configura la etiqueta de cierre del listado"
-
-#: ../views/admin.php:572
-msgid "Sets the HTML structure of each post"
-msgstr "Configura la estructura HTML de cada entrada"
-
-#: ../views/admin.php:573
-msgid "Text string, custom HTML"
-msgstr "Texto, HTML personalizado"
-
-#: ../views/admin.php:573
-msgid "Available Content Tags"
-msgstr "Content Tags disponibles"
-
-#: ../views/admin.php:573
-msgid "displays thumbnail linked to post/page"
-msgstr "muestra la miniatura vinculada a la entrada/p&aacute;gina"
-
-#: ../views/admin.php:573
-msgid "displays linked post/page title"
-msgstr ""
-"muestra el t&iacute;tulo de la entrada/p&aacute;gina con v&iacute;nculo"
-
-#: ../views/admin.php:573
-msgid ""
-"displays post/page excerpt, and requires excerpt_length to be greater than 0"
-msgstr ""
-"muestra el resumen de la entrada/p&aacute;gina, requiere que excerpt_length "
-"sea mayor a 0"
-
-#: ../views/admin.php:573
-msgid "displays the default stats tags"
-msgstr "muestra el stats tag por defecto"
-
-#: ../views/admin.php:573
-msgid ""
-"displays post/page current rating, requires WP-PostRatings installed and "
-"enabled"
-msgstr ""
-"muestra el rating actual de la entrada/p&aacute;gina, requiere que WP-"
-"PostRatings est&eacute; instalado y activo"
-
-#: ../views/admin.php:573
-msgid ""
-"displays post/page current rating as an integer, requires WP-PostRatings "
-"installed and enabled"
-msgstr ""
-"muestra el rating actual de la entrada/p&aacute;gina como un entero, "
-"requiere que WP-PostRatings est&eacute; instalado y activo"
-
-#: ../views/admin.php:573
-msgid "outputs the URL of the post/page"
-msgstr "muestra la URL de la entrada/p&aacute;gina"
-
-#: ../views/admin.php:573
-msgid "displays post/page title, no link"
-msgstr ""
-"muestra el t&iacute;tulo de la entrada/p&aacute;gina, sin v&iacute;nculo"
-
-#: ../views/admin.php:573
-msgid "displays linked author name, requires stats_author=1"
-msgstr ""
-"muestra el nombre del autor con v&iacute;nculo, requiere stats_author=1"
-
-#: ../views/admin.php:573
-msgid "displays linked category name, requires stats_category=1"
-msgstr ""
-"muestra el nombre de la categor&iacute;a vinculado, requiere stats_category=1"
-
-#: ../views/admin.php:573
-msgid "displays views count only, no text"
-msgstr "muestra el n&uacute;mero de vistas, sin texto adicional"
-
-#: ../views/admin.php:573
-msgid "displays comments count only, no text, requires stats_comments=1"
-msgstr ""
-"muestra el n&uacute;mero de comentarios, sin texto adicional, requiere "
-"stats_comments=1"
-
-#: ../views/admin.php:585
-msgid "What does \"Title\" do?"
-msgstr "&iquest;Para qu&eacute; es \"T&iacute;tulo\"?"
-
-#: ../views/admin.php:588
-msgid ""
-"It allows you to show a heading for your most popular posts listing. If left "
-"empty, no heading will be displayed at all."
-msgstr ""
-"Te permite mostrar un encabezado para tu lista de entradas populares. Si se "
-"deja vac&iacute;o, no se mostrar&aacute; el encabezado."
-
-#: ../views/admin.php:591
-msgid "What is Time Range for?"
-msgstr "&iquest;Para qu&eacute; es \"Rango de Tiempo\"?"
-
-#: ../views/admin.php:593
-msgid ""
-"It will tell WordPress Popular Posts to retrieve all posts with most views / "
-"comments within the selected time range."
-msgstr ""
-"Le indica a WordPress Popular Posts que muestre las entradas m&aacute;s "
-"vistas / comentadas en el rango de tiempo seleccionado."
-
-#: ../views/admin.php:596
-msgid "What is \"Sort post by\" for?"
-msgstr "&iquest;Para qu&eacute; es \"Ordenar entradas por\"?"
-
-#: ../views/admin.php:598
-msgid ""
-"It allows you to decide whether to order your popular posts listing by total "
-"views, comments, or average views per day."
-msgstr ""
-"Te permite decidir si ordenar tus entradas populares por la cantidad total "
-"de vistas, comentarios, o por el porcentaje diario de vistas."
-
-#: ../views/admin.php:601
-msgid "What does \"Display post rating\" do?"
-msgstr "&iquest;Qu&eacute; hace \"Mostrar rating de la entrada\"?"
-
-#: ../views/admin.php:603
-msgid ""
-"If checked, WordPress Popular Posts will show how your readers are rating "
-"your most popular posts. This feature requires having WP-PostRatings plugin "
-"installed and enabled on your blog for it to work."
-msgstr ""
-"Si se tilda, WordPress Popular Posts mostrar&aacute; c&oacute;mo tus "
-"lectores est&aacute;n calificando tus entradas populares. Esta "
-"caracter&iacute;stica requiere que el plugin WP-PostRatings est&eacute; "
-"instalado y habilitado en tu blog para que funcione."
-
-#: ../views/admin.php:606
-msgid "What does \"Shorten title\" do?"
-msgstr "&iquest;Qu&eacute; hace \"Acortar t&iacute;tulo\"?"
-
-#: ../views/admin.php:608
-msgid ""
-"If checked, all posts titles will be shortened to \"n\" characters/words. A "
-"new \"Shorten title to\" option will appear so you can set it to whatever "
-"you like."
-msgstr ""
-"Si se tilda, todos los t&iacute;tulos de las entradas se acortar&aacute;n \"n"
-"\" caracteres/palabras. Una nueva opci&oacute;n \"Acortar t&iacute;tulo en\" "
-"se mostrar&aacute; para que puedas configurarlo como quieras."
-
-#: ../views/admin.php:611
-msgid "What does \"Display post excerpt\" do?"
-msgstr "&iquest;Qu&eacute; hace \"Mostrar resumen de la entrada\"?"
-
-#: ../views/admin.php:613
-msgid ""
-"If checked, WordPress Popular Posts will also include a small extract of "
-"your posts in the list. Similarly to the previous option, you will be able "
-"to decide how long the post excerpt should be."
-msgstr ""
-"Si se tilda, WordPress Popular Posts incluir&aacute; un peque&ntilde;o "
-"extracto de tus entradas en la lista. Similar a la opci&oacute;n anterior, "
-"podr&aacute;s decidir qu&eacute; tan largo debe ser el extracto."
-
-#: ../views/admin.php:616
-msgid "What does \"Keep text format and links\" do?"
-msgstr "&iquest;Qu&eacute; hace \"Mantener el formato de texto y links\"?"
-
-#: ../views/admin.php:618
-msgid ""
-"If checked, and if the Post Excerpt feature is enabled, WordPress Popular "
-"Posts will keep the styling tags (eg. bold, italic, etc) that were found in "
-"the excerpt. Hyperlinks will remain intact, too."
-msgstr ""
-"Si se tilda, y si la opci&oacute;n Mostrar Resumen est&aacute; habilitada, "
-"WordPress Popular Posts mantendr&aacute; las etiquetas de estilos que se "
-"encontraron en el extracto. Los hiperv&iacute;nculos tambi&eacute;n se "
-"mantendr&aacute;n."
-
-#: ../views/admin.php:621
-msgid "What is \"Post type\" for?"
-msgstr "&iquest;Para qu&eacute; es el \"Post type\"?"
-
-#: ../views/admin.php:623
-msgid ""
-"This filter allows you to decide which post types to show on the listing. By "
-"default, it will retrieve only posts and pages (which should be fine for "
-"most cases)."
-msgstr ""
-"Este filtro te permite decidir que tipo de entradas deseas mostrar en el "
-"listado. Por defecto, trater&aacute; s&oacute;lo entradas y p&aacute;ginas "
-"(que es lo que se quiere, en la mayor&iacute;a de los casos)."
-
-#: ../views/admin.php:626
-msgid "What is \"Category(ies) ID(s)\" for?"
-msgstr "&iquest;Para qu&eacute; es el \"ID(s) de Categor&iacute;a(s)\"?"
-
-#: ../views/admin.php:628
-msgid ""
-"This filter allows you to select which categories should be included or "
-"excluded from the listing. A negative sign in front of the category ID "
-"number will exclude posts belonging to it from the list, for example. You "
-"can specify more than one ID with a comma separated list."
-msgstr ""
-"Este filtro te permite seleccionar qu&eacute; categor&iacute;as deber&iacute;"
-"an ser inclu&iacute;das o exclu&iacute;das del listado. Un signo negativo "
-"enfrente del ID de la categor&iacute;a la excluir&aacute; de la lista, por "
-"ejemplo. Puedes especificar m&aacute;s de un ID separ&aacute;ndolos con "
-"comas."
-
-#: ../views/admin.php:631
-msgid "What is \"Author(s) ID(s)\" for?"
-msgstr "&iquest;Para qu&eacute; es el \"ID de Autor(es)\"?"
-
-#: ../views/admin.php:633
-msgid ""
-"Just like the Category filter, this one lets you filter posts by author ID. "
-"You can specify more than one ID with a comma separated list."
-msgstr ""
-"Justo como el filtro de Categor&iacute;a, &eacute;ste te permite filtrar "
-"entradas por ID del autor. Puedes especificar m&aacute;s de un ID "
-"separ&aacute;ndolos con comas."
-
-#: ../views/admin.php:636
-msgid "What does \"Display post thumbnail\" do?"
-msgstr "&iquest;Qu&eacute; hace \"Mostrar miniatura de  la entrada\"?"
-
-#: ../views/admin.php:638
-msgid ""
-"If checked, WordPress Popular Posts will attempt to retrieve the thumbnail "
-"of each post. You can set up the source of the thumbnail via Settings - "
-"WordPress Popular Posts - Tools."
-msgstr ""
-"Si se tilda, WordPress Popular Posts intentar&aacute; obtener la imagen "
-"miniatura de cada entrada. Puedes configurar la fuente de la miniatura via "
-"Configuraci&oacute;n - Wordpress Popular Posts - Herramientas."
-
-#: ../views/admin.php:641
-msgid "What does \"Display comment count\" do?"
-msgstr "&iquest;Qu&eacute; hace \"Mostrar cantidad de comentarios\"?"
-
-#: ../views/admin.php:643
-msgid ""
-"If checked, WordPress Popular Posts will display how many comments each "
-"popular post has got in the selected Time Range."
-msgstr ""
-"Si se tilda, WordPress Popular Posts mostrar&aacute; cu&aacute;ntos "
-"comentarios ha obtenido cada entrada popular dentro del Rango de Tiempo "
-"seleccionado."
-
-#: ../views/admin.php:646
-msgid "What does \"Display views\" do?"
-msgstr "&iquest;Qu&eacute; hace \"Mostrar vistas\"?"
-
-#: ../views/admin.php:648
-msgid ""
-"If checked, WordPress Popular Posts will show how many pageviews a single "
-"post has gotten in the selected Time Range."
-msgstr ""
-"Si se tilda, WordPress Popular Posts mostrar&aacute; cu&aacute;ntas vistas "
-"ha obtenido cada entrada en el Rango de Tiempo seleccionado."
-
-#: ../views/admin.php:651
-msgid "What does \"Display author\" do?"
-msgstr "&iquest;Qu&eacute; hace \"Mostrar autor\"?"
-
-#: ../views/admin.php:653
-msgid ""
-"If checked, WordPress Popular Posts will display the name of the author of "
-"each entry listed."
-msgstr ""
-"Si se tilda, WordPress Popular Posts mostrar&aacute; el nombre del autor de "
-"cada entrada listada."
-
-#: ../views/admin.php:656
-msgid "What does \"Display date\" do?"
-msgstr "&iquest;Qu&eacute; hace \"Mostrar fecha\"?"
-
-#: ../views/admin.php:658
-msgid ""
-"If checked, WordPress Popular Posts will display the date when each popular "
-"posts was published."
-msgstr ""
-"Si se tilda, WordPress Popular Posts mostrar&aacute; la fecha en la que fue "
-"publicada cada entrada popular."
-
-#: ../views/admin.php:661
-msgid "What does \"Display category\" do?"
-msgstr "&iquest;Qu&eacute; hace \"Mostrar categor&iacute;a\"?"
-
-#: ../views/admin.php:663
-msgid ""
-"If checked, WordPress Popular Posts will display the category of each post."
-msgstr ""
-"Si se tilda, WordPress Popular Posts mostrar&aacute; la categor&iacute;a de "
-"cada entrada."
-
-#: ../views/admin.php:666
-msgid "What does \"Use custom HTML Markup\" do?"
-msgstr "&iquest;Qu&eacute; hace \"Utilizar Markup HTML personalizado\"?"
-
-#: ../views/admin.php:668
-msgid ""
-"If checked, you will be able to customize the HTML markup of your popular "
-"posts listing. For example, you can decide whether to wrap your posts in an "
-"unordered list, an ordered list, a div, etc. If you know xHTML/CSS, this is "
-"for you!"
-msgstr ""
-"Si se tilda, podr&aacute;s personalizad el markup HTML de tu listado de "
-"entradas populares. Por ejemplo, podr&aacute;s decidir si colocar tu listado "
-"en una lista desordenada, una ordenada, dentro de un div, etc. Si sabes "
-"xHTML/CSS, &iexcl;esto es para ti!"
-
-#: ../views/admin.php:671
-msgid "What are \"Content Tags\"?"
-msgstr "&iquest;Qu&eacute; son los \"Content Tags\"?"
-
-#: ../views/admin.php:673
-#, php-format
-msgid ""
-"Content Tags are codes to display a variety of items on your popular posts "
-"custom HTML structure. For example, setting it to \"{title}: "
-"{summary}\" (without the quotes) would display \"Post title: excerpt of the "
-"post here\". For more Content Tags, see the <a href=\"%s\" target=\"_blank"
-"\">Parameters</a> section."
-msgstr ""
-"Los Content Tags son etiquetas que sirven para mostrar una variedad de items "
-"en la estructura HTML de tu lista. Por ejemplo, configurarlo como \"{title}: "
-"{summary}\" (sin las comillas) mostrar&iacute;a \"T&iacute;tulo de la "
-"entrada: extracto de la entrada aqu&iacute;\". Para ver otras Content Tags, "
-"ver la secci&oacute;n <a href=\"%s\" target=\"_blank\">Par&aacute;metros</a."
-
-#: ../views/admin.php:676
-msgid "What are \"Template Tags\"?"
-msgstr "&iquest;Qu&eacute; son los \"Template Tags\"?"
-
-#: ../views/admin.php:678
-msgid ""
-"Template Tags are simply php functions that allow you to perform certain "
-"actions. For example, WordPress Popular Posts currently supports two "
-"different template tags: wpp_get_mostpopular() and wpp_get_views()."
-msgstr ""
-"Los Template Tags son simplemente funciones php que nos permiten realizar "
-"ciertas acciones. Por ejemplo, WordPress Popular Posts actualmente soporta "
-"dos template tags diferentes: wpp_get_mostpopular() y wpp_get_views()."
-
-#: ../views/admin.php:681
-msgid "What are the template tags that WordPress Popular Posts supports?"
-msgstr ""
-"&iquest;Cu&aacute;les son los Template Tags soportados por WordPress Popular "
-"Posts?"
-
-#: ../views/admin.php:683
-msgid ""
-"The following are the template tags supported by WordPress Popular Posts"
-msgstr ""
-"Los siguientes son los template tags soportados por WordPress Popular Posts"
-
-#: ../views/admin.php:687
-msgid "Template tag"
-msgstr "Template tag"
-
-#: ../views/admin.php:696
-#, php-format
-msgid ""
-"Similar to the widget functionality, this tag retrieves the most popular "
-"posts on your blog. This function also accepts <a href=\"%1$s\">parameters</"
-"a> so you can customize your popular listing, but these are not required."
-msgstr ""
-"Parecido a la funcionalidad del widget, esta etiqueta obtiene las entradas "
-"m&aacute;s populares de tu blog. Esta funci&oacute;n tambi&eacute;n acepta "
-"<a href=\"%1$s\">par&aacute;metros</a> para que puedas personalizar el "
-"listado, pero &eacute;stos no son requeridos."
-
-#: ../views/admin.php:697
-#, php-format
-msgid ""
-"Please refer to the <a href=\"%1$s\">Parameters section</a> for a complete "
-"list of attributes."
-msgstr ""
-"Por favor ver la <a href=\"%1$s\">secci&oacute;n Par&aacute;metros</a> para "
-"la lista completa de atributos."
-
-#: ../views/admin.php:702
-msgid ""
-"Displays the number of views of a single post. Post ID is required or it "
-"will return false."
-msgstr ""
-"Muestra la cantidad de vistas de una entrada. El ID de la entrada es "
-"requerido, o la funci&oacute;n devolver&aacute; false."
-
-#: ../views/admin.php:703
-msgid "Post ID"
-msgstr "ID de la entrada"
-
-#: ../views/admin.php:710
-msgid "What are \"shortcodes\"?"
-msgstr "&iquest;Qu&eacute; son los \"shortcodes\"?"
-
-#: ../views/admin.php:712
-#, php-format
-msgid ""
-"Shortcodes are similar to BB Codes, these allow us to call a php function by "
-"simply typing something like [shortcode]. With WordPress Popular Posts, the "
-"shortcode [wpp] will let you insert a list of the most popular posts in "
-"posts content and pages too! For more information about shortcodes, please "
-"visit the <a href=\"%s\" target=\"_blank\">WordPress Shortcode API</a> page."
-msgstr ""
-"Los Shortcodes son similares a los BB Codes, &eacute;stos nos permiten "
-"llamar a una funci&oacute;n php simplemente escribiendo algo como "
-"[shortcode]. Con WordPress Popular Posts, el shortcode [wpp] te "
-"permitir&aacute; insertar una lista de las entradas m&aacute;s populares en "
-"el contenido de tus entradas y en p&aacute;ginas tambi&eacute;n. Para mayor "
-"informaci&oacute;n sobre los shortcodes, por favor visita la p&aacute;gina "
-"<a href=\"%s\" target=\"_blank\">WordPress Shortcode API</a>."
-
-#: ../views/admin.php:721
-#, php-format
-msgid "About WordPress Popular Posts %s"
-msgstr "Acerca de WordPress Popular Posts %s"
-
-#: ../views/admin.php:722
-msgid "This version includes the following changes"
-msgstr "Esta versi&oacute;n incluye los siguientes cambios"
-
-#: ../views/admin.php:741
-msgid "Do you like this plugin?"
-msgstr "&iquest;Te gusta este plugin?"
-
-#: ../views/admin.php:748
-msgid ""
-"Each donation motivates me to keep releasing free stuff for the WordPress "
-"community!"
-msgstr ""
-"&iexcl;Cada donaci&oacute;n me motiva a seguir publicando cosas gratuitas "
-"para la comunidad de WordPress!"
-
-#: ../views/admin.php:749
-#, php-format
-msgid "You can <a href=\"%s\" target=\"_blank\">leave a review</a>, too!"
-msgstr ""
-"&iexcl;Puedes <a href=\"%s\" target=\"_blank\">dejar una rese&ntilde;a</a> "
-"tambi&eacute;n!"
-
-#: ../views/admin.php:753
-msgid "Need help?"
-msgstr "&iquest;Necesitas ayuda?"
-
-#: ../views/admin.php:754
-#, php-format
-msgid ""
-"Visit <a href=\"%s\" target=\"_blank\">the forum</a> for support, questions "
-"and feedback."
-msgstr ""
-"Visita <a href=\"%s\" target=\"_blank\">el foro</a> para obtener soporte, "
-"hacer preguntas y dejar tu feedback."
-
-#: ../views/admin.php:755
-msgid "Let's make this plugin even better!"
-msgstr "&iexcl;Hagamos a este plugin inclusive mejor!"
-
-#: ../views/form.php:2
-msgid "Title"
-msgstr "T&iacute;tulo"
-
-#: ../views/form.php:2 ../views/form.php:12 ../views/form.php:24
-#: ../views/form.php:34 ../views/form.php:40 ../views/form.php:43
-#: ../views/form.php:52 ../views/form.php:55 ../views/form.php:63
-#: ../views/form.php:66 ../views/form.php:73 ../views/form.php:87
-#: ../views/form.php:89 ../views/form.php:91 ../views/form.php:93
-#: ../views/form.php:105 ../views/form.php:111
-msgid "What is this?"
-msgstr "&iquest;Qu&eacute; es esto?"
-
-#: ../views/form.php:7
-msgid "Show up to"
-msgstr "Mostrar hasta"
-
-#: ../views/form.php:8
-msgid "posts"
-msgstr "entradas"
-
-#: ../views/form.php:12
-msgid "Sort posts by"
-msgstr "Ordenar entradas por"
-
-#: ../views/form.php:14
-msgid "Comments"
-msgstr "Comentarios"
-
-#: ../views/form.php:15
-msgid "Total views"
-msgstr "Total de vistas"
-
-#: ../views/form.php:16
-msgid "Avg. daily views"
-msgstr "Porcentaje de vistas diarias"
-
-#: ../views/form.php:22
-msgid "Filters"
-msgstr "Filtros"
-
-#: ../views/form.php:24
-msgid "Time Range"
-msgstr "Rango de Tiempo"
-
-#: ../views/form.php:34
-msgid "Post type(s)"
-msgstr "Post type(s)"
-
-#: ../views/form.php:37
-msgid "Post(s) ID(s) to exclude"
-msgstr "ID(s) de Entrada(s) a excluir"
-
-#: ../views/form.php:40
-msgid "Category(ies) ID(s)"
-msgstr "ID(s) de Categor&iacute;a(s)"
-
-#: ../views/form.php:43
-msgid "Author(s) ID(s)"
-msgstr "ID(s) de Autor(es)"
-
-#: ../views/form.php:48
-msgid "Posts settings"
-msgstr "Configuraci&oacute;n de las entradas"
-
-#: ../views/form.php:52
-msgid "Display post rating"
-msgstr "Mostrar rating de la entrada"
-
-#: ../views/form.php:55
-msgid "Shorten title"
-msgstr "Acortar t&iacute;tulo"
-
-#: ../views/form.php:58
-msgid "Shorten title to"
-msgstr "Acortar t&iacute;tulo en"
-
-#: ../views/form.php:59 ../views/form.php:69
-msgid "characters"
-msgstr "caracteres"
-
-#: ../views/form.php:60 ../views/form.php:70
-msgid "words"
-msgstr "palabras"
-
-#: ../views/form.php:63
-msgid "Display post excerpt"
-msgstr "Mostrar resumen de la entrada"
-
-#: ../views/form.php:66
-msgid "Keep text format and links"
-msgstr "Mantener formato de texto y links"
-
-#: ../views/form.php:67
-msgid "Excerpt length"
-msgstr "Largo del resumen"
-
-#: ../views/form.php:73
-msgid "Display post thumbnail"
-msgstr "Mostrar miniatura"
-
-#: ../views/form.php:76
-msgid "Width"
-msgstr "Ancho"
-
-#: ../views/form.php:77 ../views/form.php:80
-msgid "px"
-msgstr "px"
-
-#: ../views/form.php:79
-msgid "Height"
-msgstr "Alto"
-
-#: ../views/form.php:85
-msgid "Stats Tag settings"
-msgstr "Configuraci&oacute;n del Stats Tag"
-
-#: ../views/form.php:87
-msgid "Display comment count"
-msgstr "Mostrar cantidad de comentarios"
-
-#: ../views/form.php:89
-msgid "Display views"
-msgstr "Mostrar vistas"
-
-#: ../views/form.php:91
-msgid "Display author"
-msgstr "Mostrar autor"
-
-#: ../views/form.php:93
-msgid "Display date"
-msgstr "Mostrar fecha"
-
-#: ../views/form.php:96
-msgid "Date Format"
-msgstr "Formato de la fecha"
-
-#: ../views/form.php:98
-msgid "WordPress Date Format"
-msgstr "Formato de fecha de WordPress"
-
-#: ../views/form.php:105
-msgid "Display category"
-msgstr "Mostrar categor&iacute;a"
-
-#: ../views/form.php:109
-msgid "HTML Markup settings"
-msgstr "Configuraci&oacute;n del Markup HTML"
-
-#: ../views/form.php:111
-msgid "Use custom HTML Markup"
-msgstr "Utilizar Markup HTML personalizado"
-
-#: ../views/form.php:114
-msgid "Before / after title"
-msgstr "Antes / despu&eacute;s del t&iacute;tulo"
-
-#: ../views/form.php:117
-msgid "Before / after Popular Posts"
-msgstr "Antes / despu&eacute;s de las entradas populares"
-
-#: ../views/form.php:120
-msgid "Post HTML Markup"
-msgstr "Markup HTML de la Entrada"
-
-#: ../wordpress-popular-posts.php:276
-msgid "The most Popular Posts on your blog."
-msgstr "Las entradas m&aacute;s populares en tu blog."
-
-#: ../wordpress-popular-posts.php:433
-msgid ""
-"Error: cannot ajaxify WordPress Popular Posts on this theme. It's missing "
-"the <em>id</em> attribute on before_widget (see <a href=\"http://codex."
-"wordpress.org/Function_Reference/register_sidebar\" target=\"_blank\" rel="
-"\"nofollow\">register_sidebar</a> for more)."
-msgstr ""
-"Error: no es posible ajaxificar WordPress Popular Posts en este tema. Falta "
-"el atributo <em>id</em> en before_widget (ver <a href=\"http://codex."
-"wordpress.org/Function_Reference/register_sidebar\" target=\"_blank\" rel="
-"\"nofollow\">register_sidebar</a> para m&aacute;s informaci&oacute;n)."
-
-#: ../wordpress-popular-posts.php:658
-msgid "Upload"
-msgstr "Subir"
-
-#: ../wordpress-popular-posts.php:1032
-#, php-format
-msgid ""
-"Your PHP installation is too old. WordPress Popular Posts requires at least "
-"PHP version %1$s to function correctly. Please contact your hosting provider "
-"and ask them to upgrade PHP to %1$s or higher."
-msgstr ""
-"Tu versi&oacute;n de PHP es muy antigua. El plugin WordPress Popular Posts "
-"requiere al menos PHP version %1$s para funcionar correctamente. Por favor "
-"contacta a tu proveedor de hosting y solicita que se actualice PHP a %1$s o "
-"mejor."
-
-#: ../wordpress-popular-posts.php:1039
-#, php-format
-msgid ""
-"Your WordPress version is too old. WordPress Popular Posts requires at least "
-"WordPress version %1$s to function correctly. Please update your blog via "
-"Dashboard &gt; Update."
-msgstr ""
-"Tu versi&oacute;n de WordPress es muy antigua. El plugin WordPress Popular "
-"Posts requiere al menos la versi&oacute;n %1$s para funcionar correctamente. "
-"Por favor actualiza tu blog via Escritorio &gt; Actualizaciones."
-
-#: ../wordpress-popular-posts.php:1064
-#, php-format
-msgid ""
-"<div class=\"error\"><p>%1$s</p><p><i>%2$s</i> has been <strong>deactivated</"
-"strong>.</p></div>"
-msgstr ""
-"<div class=\"error\"><p>%1$s</p><p><i>%2$s</i> ha sido <strong>desactivado</"
-"strong>.</p></div>"
-
-#: ../wordpress-popular-posts.php:1124
-msgid "Success! The cache table has been cleared!"
-msgstr "&iexcl;&Eacute;xito! &iexcl;La tabla cach&eacute; ha sido borrada!"
-
-#: ../wordpress-popular-posts.php:1126
-msgid "Error: cache table does not exist."
-msgstr "Error: la tabla cach&eacute; no existe."
-
-#: ../wordpress-popular-posts.php:1133
-msgid "Success! All data have been cleared!"
-msgstr "&iexcl;&Eacute;xito! &iexcl;Toda la data ha sido borrada!"
-
-#: ../wordpress-popular-posts.php:1135
-msgid "Error: one or both data tables are missing."
-msgstr "Error: una o ambas tablas de datos no existen."
-
-#: ../wordpress-popular-posts.php:1138 ../wordpress-popular-posts.php:1176
-msgid "Invalid action."
-msgstr "Acci&oacute;n inv&aacute;lida."
-
-#: ../wordpress-popular-posts.php:1141 ../wordpress-popular-posts.php:1179
-msgid ""
-"Sorry, you do not have enough permissions to do this. Please contact the "
-"site administrator for support."
-msgstr ""
-"Lo lamento, no tienes permisos suficientes para hacer esto. Por favor "
-"contacta al administrador del sitio."
-
-#: ../wordpress-popular-posts.php:1171
-msgid "Success! All files have been deleted!"
-msgstr "&iexcl;&Eacute;xito! &iexcl;Todos los archivos han sido borrados!"
-
-#: ../wordpress-popular-posts.php:1173
-msgid "The thumbnail cache is already empty!"
-msgstr "&iexcl;El cache de miniaturas ya est&aacute; vac&iacute;o!"
-
-#: ../wordpress-popular-posts.php:1696
-msgid "Sorry. No data so far."
-msgstr "Lo lamentamos. No hay nada que mostrar a&uacute;n."
-
-#: ../wordpress-popular-posts.php:2156
-#, php-format
-msgid "1 comment"
-msgid_plural "%s comments"
-msgstr[0] "1 comentario"
-msgstr[1] "%s comentarios"
-
-#: ../wordpress-popular-posts.php:2168
-#, php-format
-msgid "1 view per day"
-msgid_plural "%s views per day"
-msgstr[0] "1 vista por d&iacute;a"
-msgstr[1] "%s vistas por d&iacute;a"
-
-#: ../wordpress-popular-posts.php:2174
-#, php-format
-msgid "1 view"
-msgid_plural "%s views"
-msgstr[0] "1 vista"
-msgstr[1] "%s vistas"
-
-#: ../wordpress-popular-posts.php:2186
-#, php-format
-msgid "by %s"
-msgstr "por %s"
-
-#: ../wordpress-popular-posts.php:2192
-#, php-format
-msgid "posted on %s"
-msgstr "publicado el %s"
-
-#: ../wordpress-popular-posts.php:2200
-#, php-format
-msgid "under %s"
-msgstr "bajo %s"
-
-#~ msgid ""
-#~ "Please refer to \"List of parameters accepted by wpp_get_mostpopular() "
-#~ "and the [wpp] shortcode\"."
-#~ msgstr ""
-#~ "Por favor revisa \"Listado de par&aacute;metros aceptados por "
-#~ "wpp_get_mostpopular() y el shortcode [wpp]\"."
-
-#~ msgid ""
-#~ "List of parameters accepted by wpp_get_mostpopular() and the [wpp] "
-#~ "shortcode"
-#~ msgstr ""
-#~ "Lista de par&aacute;metros aceptados por wpp_get_mostpopular() y el "
-#~ "shortcode [wpp]"
-
-#~ msgid ""
-#~ "These parameters can be used by both the template tag "
-#~ "wpp_get_most_popular() and the shortcode [wpp]."
-#~ msgstr ""
-#~ "Estos par&aacute;metros pueden ser utilizados tanto por el template tag "
-#~ "wpp_get_mostpopular() como por el shortcode [wpp]."
-
-#~ msgid "Preview"
-#~ msgstr "Vista previa"
-
-#~ msgid "Excerpt Properties"
-#~ msgstr "Propiedades del resumen"
-
-#~ msgid "Thumbnail settings"
-#~ msgstr "Configuraci&oacute;n de miniatura"
-
-#~ msgid ""
-#~ "Here you will find a handy group of options to tweak Wordpress Popular "
-#~ "Posts."
-#~ msgstr ""
-#~ "Aqu&iacute; encontrar&aacute;s un &uacute;til grupo de opciones para "
-#~ "ajustar a Wordpress Popular Posts."
-
-#~ msgid "Popular Posts links behavior"
-#~ msgstr "Comportamiento de los link en las Entradas Populares"
-
-#~ msgid "Views logging behavior"
-#~ msgstr "Comportamiento del registro de vistas"
-
-#~ msgid "Wordpress Popular Posts Stylesheet"
-#~ msgstr "Hoja de estilos de Wordpress Popular Posts"
-
-#~ msgid "Data tools"
-#~ msgstr "Herramientas de datos"
-
-#~ msgid "Popular posts listing refresh interval"
-#~ msgstr "Intervalo de refrescamiento de las Entradas Populares"
-
-#~ msgid "Frequently Asked Questions"
-#~ msgstr "Preguntas Frecuentes (FAQ)"
-
-#~ msgid "Sets the opening tag for each item on the list"
-#~ msgstr "Configura la etiqueta de apertura de cada &iacute;tem del listado"
-
-#~ msgid "Sets the closing tag for each item on the list"
-#~ msgstr "Configura la etiqueta de cierre de cada &iacute;tem del listado"
-
-#~ msgid ""
-#~ "If set, this option will allow you to decide the order of the contents "
-#~ "within each item on the list."
-#~ msgstr ""
-#~ "Si se configura, esta opci&oacute;n te permitir&aacute; decidir el orden "
-#~ "de los contenidos dentro de cada item en la lista."
-
-#~ msgid ""
-#~ "If set, you can decide the order of each content inside a single item on "
-#~ "the list. For example, setting it to \"{title}: {summary}\" would output "
-#~ "something like \"Your Post Title: summary here\". This attribute requires "
-#~ "do_pattern to be true."
-#~ msgstr ""
-#~ "Si se configura, puedes decidir el orden de cada contenido dentro de cada "
-#~ "item en la lista. Por ejemplo, configurarlo como \"{title}: {summary}\" "
-#~ "mostrar&iacute;a \"El t&iacute;tulo de tu entrada: resumen aqu&iacute;\". "
-#~ "Este atributo requiere que do_pattern sea true."
-
-#~ msgid "Available tags"
-#~ msgstr "Etiquetas disponibles"
-
-#~ msgid "Rate it"
-#~ msgstr "&iexcl;Calif&iacute;calo"
-
-#~ msgid "on the official Plugin Directory!"
-#~ msgstr "en el Directorio Oficial de Plugins!"
-
-#~ msgid "Do you love this plugin?"
-#~ msgstr "&iquest;Adoras este plugin?"
-
-#~ msgid "Buy me a beer!"
-#~ msgstr "&iexcl;C&oacute;mprame una cerveza!"
-
-#~ msgid "comments"
-#~ msgstr "comentarios"
-
-#~ msgid "views per day"
-#~ msgstr "vistas por d&iacute;a"
-
-#~ msgid "views"
-#~ msgstr "vistas"
-
-#~ msgid "by"
-#~ msgstr "por"
-
-#~ msgid "What does \"Use content formatting tags\" do?"
-#~ msgstr ""
-#~ "&iquest;Qu&eacute; hace \"Utilizar etiquetas de formato de contenido\"?"
-
-#~ msgid "Before / after each post:"
-#~ msgstr "Antes / despu&eacute;s de cada entrada"
-
-#~ msgid "Use content formatting tags"
-#~ msgstr "Utilizar etiquetas de formato de contenido"
-
-#~ msgid "Content format:"
-#~ msgstr "Formato de contenido:"
-
-#~ msgid "Wordpress Popular Posts Stats"
-#~ msgstr "Estad&iacute;sticas de Wordpress Popular Posts"
+msgid ""
+msgstr ""
+"Project-Id-Version: Wordpress Popular Posts\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2015-04-24 13:30-0430\n"
+"PO-Revision-Date: \n"
+"Last-Translator: Héctor Cabrera <hcabrerab@gmail.com>\n"
+"Language-Team: Héctor Cabrera <hcabrerab@gmail.com>\n"
+"Language: es_ES\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Poedit-SourceCharset: UTF-8\n"
+"X-Poedit-KeywordsList: __;_e;_n:1,2\n"
+"X-Poedit-Basepath: .\n"
+"X-Generator: Poedit 1.7.6\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"X-Poedit-SearchPath-0: .\n"
+"X-Poedit-SearchPath-1: ..\n"
+
+#: ../views/admin.php:25 ../views/admin.php:34 ../views/admin.php:49
+#: ../views/admin.php:75
+msgid "Settings saved."
+msgstr "Configuraci&oacute;n guardada."
+
+#: ../views/admin.php:40
+msgid "Please provide the name of your custom field."
+msgstr "Por favor indica el nombre de tu custom field."
+
+#: ../views/admin.php:81
+msgid ""
+"Any changes made to WPP's default stylesheet will be lost after every plugin "
+"update. In order to prevent this from happening, please copy the wpp.css "
+"file (located at wp-content/plugins/wordpress-popular-posts/style) into your "
+"theme's directory"
+msgstr ""
+"Cualquier cambio hecho a la hoja de estilos por defecto de WPP se "
+"perder&aacute; cada vez que el plugin se actualize. Para evitar esto, por "
+"favor copia el archivo wpp.css (ubicado en wp-content/plugins/wordpress-"
+"popular-posts/style) en la carpeta de tu tema actual."
+
+#: ../views/admin.php:96
+msgid ""
+"This operation will delete all entries from WordPress Popular Posts' cache "
+"table and cannot be undone."
+msgstr ""
+"Esta operaci\\363n borrar\\341 todas las entradas en el cach\\351 de "
+"WordPress Popular Posts y no se puede deshacer."
+
+#: ../views/admin.php:96 ../views/admin.php:104 ../views/admin.php:112
+msgid "Do you want to continue?"
+msgstr "Deseas continuar?"
+
+#: ../views/admin.php:104
+msgid ""
+"This operation will delete all stored info from WordPress Popular Posts' "
+"data tables and cannot be undone."
+msgstr ""
+"Esta operaci\\363n borrar\\341 toda la informaci\\363n guardada en las "
+"tablas de WordPress Popular Posts y no puede ser reversado."
+
+#: ../views/admin.php:112
+msgid "This operation will delete all cached thumbnails and cannot be undone."
+msgstr ""
+"Esta operaci\\363n borrar\\341 todas las miniaturas en el cach\\351 y no se "
+"puede deshacer."
+
+#: ../views/admin.php:146
+msgid "Stats"
+msgstr "Estad&iacute;sticas"
+
+#: ../views/admin.php:147
+msgid "Tools"
+msgstr "Herramientas"
+
+#: ../views/admin.php:148 ../views/admin.php:747
+msgid "Parameters"
+msgstr "Par&aacute;metros"
+
+#: ../views/admin.php:149
+msgid "FAQ"
+msgstr "FAQ"
+
+#: ../views/admin.php:150
+msgid "About"
+msgstr "Acerca de"
+
+#: ../views/admin.php:161
+msgid ""
+"Click on each tab to see what are the most popular entries on your blog in "
+"the last 24 hours, this week, last 30 days or all time since WordPress "
+"Popular Posts was installed."
+msgstr ""
+"Haz clic en cada pesta&ntilde;a para ver las entradas m&aacute;s populares "
+"de tu blog en las &uacute;ltimas 24 horas, esta semana, los &uacute;ltimos "
+"30 d&iacute;as o de todos los tiempos desde que WordPress Popular Posts fue "
+"instalado."
+
+#: ../views/admin.php:167
+msgid "Order by comments"
+msgstr "Ordenar por comentarios"
+
+#: ../views/admin.php:168
+msgid "Order by views"
+msgstr "Ordenar por vistas"
+
+#: ../views/admin.php:169
+msgid "Order by avg. daily views"
+msgstr "Ordenar por average de vistas diarias"
+
+#: ../views/admin.php:171
+msgid "Post type"
+msgstr "Post type"
+
+#: ../views/admin.php:172
+msgid "Limit"
+msgstr "L&iacute;mite"
+
+#: ../views/admin.php:174 ../views/admin.php:279 ../views/admin.php:366
+#: ../views/admin.php:403
+msgid "Apply"
+msgstr "Aplicar"
+
+#: ../views/admin.php:177 ../views/form.php:32
+msgid "Display only posts published within the selected Time Range"
+msgstr ""
+"Mostrar s&oacute;lo entradas publicadas en el Rango de Tiempo seleccionado"
+
+#: ../views/admin.php:184 ../views/form.php:26
+msgid "Last 24 hours"
+msgstr "&Uacute;ltimas 24 horas"
+
+#: ../views/admin.php:185 ../views/form.php:27
+msgid "Last 7 days"
+msgstr "&Uacute;ltimos 7 d&iacute;as"
+
+#: ../views/admin.php:186 ../views/form.php:28
+msgid "Last 30 days"
+msgstr "&Uacute;ltimos 30 d&iacute;as"
+
+#: ../views/admin.php:187 ../views/form.php:29
+msgid "All-time"
+msgstr "Todos los tiempos"
+
+#: ../views/admin.php:209
+msgid "Thumbnails"
+msgstr "Miniaturas"
+
+#: ../views/admin.php:214
+msgid "Default thumbnail"
+msgstr "Miniatura por defecto"
+
+#: ../views/admin.php:219
+msgid "Upload thumbnail"
+msgstr "Subir miniatura"
+
+#: ../views/admin.php:221
+msgid ""
+"How-to: upload (or select) an image, set Size to Full and click on Upload. "
+"After it's done, hit on Apply to save changes"
+msgstr ""
+"Tutorial: sube (o selecciona) una imagen, selecciona Tama&ntilde;o Completo "
+"y haz clic en Subir. Cuando termine, dale a Aplicar para guardar los cambios"
+
+#: ../views/admin.php:225
+msgid "Pick image from"
+msgstr "Seleccionar imagen desde"
+
+#: ../views/admin.php:228
+msgid "Featured image"
+msgstr "Imagen destacada"
+
+#: ../views/admin.php:229
+msgid "First image on post"
+msgstr "Primera imagen de la entrada"
+
+#: ../views/admin.php:230
+msgid "Custom field"
+msgstr "Custom field"
+
+#: ../views/admin.php:233
+msgid "Tell WordPress Popular Posts where it should get thumbnails from"
+msgstr ""
+"Dile a WordPress Popular Posts de d&oacute;nde debe obtener las miniaturas"
+
+#: ../views/admin.php:237
+msgid "Custom field name"
+msgstr "Nombre del custom field"
+
+#: ../views/admin.php:243
+msgid "Resize image from Custom field?"
+msgstr "&iexcl;Ajustar la imagen del Custom field?"
+
+#: ../views/admin.php:246
+msgid "No, I will upload my own thumbnail"
+msgstr "No, subir&eacute; mi propia miniatura"
+
+#: ../views/admin.php:247
+msgid "Yes"
+msgstr "S&iacute;"
+
+#: ../views/admin.php:252
+msgid "Responsive support"
+msgstr "Soporte Responsive"
+
+#: ../views/admin.php:255 ../views/admin.php:308 ../views/admin.php:348
+#: ../views/admin.php:393
+msgid "Enabled"
+msgstr "Habilitado"
+
+#: ../views/admin.php:256 ../views/admin.php:307 ../views/admin.php:347
+#: ../views/admin.php:394
+msgid "Disabled"
+msgstr "Deshabilitado"
+
+#: ../views/admin.php:259
+msgid ""
+"If enabled, WordPress Popular Posts will strip height and width attributes "
+"out of thumbnails' image tags"
+msgstr ""
+"Si se activa, WordPress Popular Posts quitar&aacute; los atributos height y "
+"width de las etiquetas image de las miniaturas"
+
+#: ../views/admin.php:269
+msgid "Empty image cache"
+msgstr "Vaciar el cach&eacute; de im&aacute;genes"
+
+#: ../views/admin.php:270
+msgid "Use this button to clear WPP's thumbnails cache"
+msgstr ""
+"Utiliza este bot&oacute;n para vaciar el cach&eacute; de miniaturas de WPP"
+
+#: ../views/admin.php:288
+msgid "Data"
+msgstr "Datos"
+
+#: ../views/admin.php:293
+msgid "Log views from"
+msgstr "Registrar vistas de"
+
+#: ../views/admin.php:296
+msgid "Visitors only"
+msgstr "S&oacute;lo visitantes"
+
+#: ../views/admin.php:297
+msgid "Logged-in users only"
+msgstr "S&oacute;lo usuarios conectados"
+
+#: ../views/admin.php:298
+msgid "Everyone"
+msgstr "Todos"
+
+#: ../views/admin.php:304
+msgid "Ajaxify widget"
+msgstr "Usar Ajax con el widget"
+
+#: ../views/admin.php:312
+msgid ""
+"If you are using a caching plugin such as WP Super Cache, enabling this "
+"feature will keep the popular list from being cached by it"
+msgstr ""
+"Si est&aacute;s utilizando un plugin de cacheo como WP Super Cache, "
+"habilitar esta caracter&iacute;stica evitar&aacute; que la lista de entradas "
+"populares sea guardada en cach&eacute;"
+
+#: ../views/admin.php:316
+msgid "WPP Cache Expiry Policy"
+msgstr "WPP Pol&iacute;tica de Expiraci&oacute;n del Cache"
+
+#: ../views/admin.php:316 ../views/admin.php:344 ../views/form.php:2
+#: ../views/form.php:12 ../views/form.php:24 ../views/form.php:34
+#: ../views/form.php:40 ../views/form.php:43 ../views/form.php:52
+#: ../views/form.php:55 ../views/form.php:63 ../views/form.php:66
+#: ../views/form.php:73 ../views/form.php:101 ../views/form.php:103
+#: ../views/form.php:105 ../views/form.php:107 ../views/form.php:119
+#: ../views/form.php:125
+msgid "What is this?"
+msgstr "&iquest;Qu&eacute; es esto?"
+
+#: ../views/admin.php:319
+msgid "Never cache"
+msgstr "Nunca almacenar en cach&eacute;"
+
+#: ../views/admin.php:320
+msgid "Enable caching"
+msgstr "Habilitar cach&eacute;"
+
+#: ../views/admin.php:324
+msgid ""
+"Sets WPP's cache expiration time. WPP can cache the popular list for a "
+"specified amount of time. Recommended for large / high traffic sites"
+msgstr ""
+"Configura lel tiempo de expiraci&oacute;n del cache de WPP. WPP puede "
+"almacenar en cach&eacute; el listado de entradas populares por una cantidad "
+"de tiempo especificada. Recomendado para sitios web grandes / de alto "
+"tr&aacute;fico"
+
+#: ../views/admin.php:328
+msgid "Refresh cache every"
+msgstr "Refrescar el cach&eacute; cada"
+
+#: ../views/admin.php:332
+msgid "Minute(s)"
+msgstr "Minuto(s)"
+
+#: ../views/admin.php:333
+msgid "Hour(s)"
+msgstr "Hora(s)"
+
+#: ../views/admin.php:334
+msgid "Day(s)"
+msgstr "D&iacute;a(s)"
+
+#: ../views/admin.php:335
+msgid "Week(s)"
+msgstr "Semana(s)"
+
+#: ../views/admin.php:336
+msgid "Month(s)"
+msgstr "Mes(es)"
+
+#: ../views/admin.php:337
+msgid "Year(s)"
+msgstr "A&ntilde;o(s)"
+
+#: ../views/admin.php:340
+msgid "Really? That long?"
+msgstr "&iquest;En serio? &iquest;Tanto tiempo?"
+
+#: ../views/admin.php:344
+msgid "Data Sampling"
+msgstr "Sampleo de Datos"
+
+#: ../views/admin.php:352
+#, php-format
+msgid ""
+"By default, WordPress Popular Posts stores in database every single visit "
+"your site receives. For small / medium sites this is generally OK, but on "
+"large / high traffic sites the constant writing to the database may have an "
+"impact on performance. With <a href=\"%1$s\" target=\"_blank\">data "
+"sampling</a>, WordPress Popular Posts will store only a subset of your "
+"traffic and report on the tendencies detected in that sample set (for more, "
+"<a href=\"%2$s\" target=\"_blank\">please read here</a>)"
+msgstr ""
+"Por defecto, WordPress Popular Posts almacena en la base de datos todas y "
+"cada una de las visitas que recibe tu sitio. Para sitios peque&ntilde;os / "
+"medianos esto generalmente est&aacute; bien, pero en sitios grandes / de "
+"mucho tr&aacute;fico la escritura constante en la base de datos pudiese "
+"causar un impacto en su rendimiento. Con <a href=\"%1$s\" target=\"_blank"
+"\">data sampling</a>, WordPress Popular Posts almacenar&aacute; s&oacute;lo "
+"un subconjunto de tu tr&aacute;fico y reportar&aacute; sobre las tendencias "
+"detectadas en ese conjunto de muestras (para m&aacute;s, <a href=\"%2$s\" "
+"target=\"_blank\">por favor leer ac&aacute;</a>)"
+
+#: ../views/admin.php:356
+msgid "Sample Rate"
+msgstr "Rata de Sampleo"
+
+#: ../views/admin.php:360
+#, php-format
+msgid ""
+"A sampling rate of %d is recommended for large / high traffic sites. For "
+"lower traffic sites, you should lower the value"
+msgstr ""
+"Se recomienda una rata de sampleo de %d para sitios grandes / de alto "
+"tr&aacute;fico. Para sitios con menos tr&aacute;fico, deber&iacute;as "
+"disminuir el valor"
+
+#: ../views/admin.php:375
+msgid "Miscellaneous"
+msgstr "Miscel&aacute;neos"
+
+#: ../views/admin.php:380
+msgid "Open links in"
+msgstr "Abrir links en"
+
+#: ../views/admin.php:383
+msgid "Current window"
+msgstr "Ventana actual"
+
+#: ../views/admin.php:384
+msgid "New tab/window"
+msgstr "Nueva pesta&ntilde;a/ventana"
+
+#: ../views/admin.php:390
+msgid "Use plugin's stylesheet"
+msgstr "Utilizar la hoja de estilos del plugin"
+
+#: ../views/admin.php:397
+msgid ""
+"By default, the plugin includes a stylesheet called wpp.css which you can "
+"use to style your popular posts listing. If you wish to use your own "
+"stylesheet or do not want it to have it included in the header section of "
+"your site, use this."
+msgstr ""
+"Por defecto, el plugin incluye una hoja de estilos llamada wpp.css que "
+"puedes utilizar para darle estilos a tu listado de entradas populares. Si "
+"deseas utilizar tu propia hoja de estilos, o no quieres que wpp.css se "
+"incluya en el header de tu sitio web, utiliza esto."
+
+#: ../views/admin.php:414
+msgid ""
+"WordPress Popular Posts maintains data in two separate tables: one for "
+"storing the most popular entries on a daily basis (from now on, \"cache\"), "
+"and another one to keep the All-time data (from now on, \"historical data\" "
+"or just \"data\"). If for some reason you need to clear the cache table, or "
+"even both historical and cache tables, please use the buttons below to do so."
+msgstr ""
+"WordPress Popular Posts mantiene la data en dos tablas separadas: una para "
+"guardar diariamente las entradas m&aacute;s populares (\"cach&eacute;\", de "
+"aqu&iacute; en adelante), y otra tabla para almacenar la data de Todos los "
+"tiempos (\"data hist&oacute;rica\" o simplemente \"data\"). Si por alguna "
+"raz&oacute;n necesitas vaciar la tabla cach&eacute;, o inclusive las dos "
+"tablas hist&oacute;ricas y de cach&eacute;, por favor utiliza los botones de "
+"abajo."
+
+#: ../views/admin.php:415
+msgid "Empty cache"
+msgstr "Vaciar el cach&eacute;"
+
+#: ../views/admin.php:415
+msgid "Use this button to manually clear entries from WPP cache only"
+msgstr ""
+"Utiliza este bot&oacute;n para vaciar manualmente s&oacute;lo las entradas "
+"del cach&eacute; de WPP"
+
+#: ../views/admin.php:416
+msgid "Clear all data"
+msgstr "Eliminar toda la data"
+
+#: ../views/admin.php:416
+msgid "Use this button to manually clear entries from all WPP data tables"
+msgstr ""
+"Utiliza este bot&oacute;n para limpiar manualmente las tablas de datos de WPP"
+
+#: ../views/admin.php:423
+#, php-format
+msgid ""
+"With the following parameters you can customize the popular posts list when "
+"using either the <a href=\"%1$s\">wpp_get_most_popular() template tag</a> or "
+"the <a href=\"%2$s\">[wpp] shortcode</a>."
+msgstr ""
+"Con los siguientes par&aacute;metros puedes personalizar la lista de "
+"entradas populares al utilizar tanto el <a href=\"%1$s"
+"\">wpp_get_most_popular() template tag</a> como el <a href=\"%2$s\">[wpp] "
+"shortcode</a>."
+
+#: ../views/admin.php:431
+msgid "Parameter"
+msgstr "Par&aacute;metro"
+
+#: ../views/admin.php:432 ../views/admin.php:746
+msgid "What it does "
+msgstr "Qu&eacute; hace"
+
+#: ../views/admin.php:433
+msgid "Possible values"
+msgstr "Valores posibles"
+
+#: ../views/admin.php:434
+msgid "Defaults to"
+msgstr "Por defecto"
+
+#: ../views/admin.php:435 ../views/admin.php:748
+msgid "Example"
+msgstr "Ejemplo"
+
+#: ../views/admin.php:441
+msgid "Sets a heading for the list"
+msgstr "Configura el encabezado de la lista"
+
+#: ../views/admin.php:442 ../views/admin.php:449 ../views/admin.php:456
+#: ../views/admin.php:491 ../views/admin.php:498 ../views/admin.php:505
+#: ../views/admin.php:512 ../views/admin.php:603 ../views/admin.php:617
+#: ../views/admin.php:624
+msgid "Text string"
+msgstr "Texto"
+
+#: ../views/admin.php:443
+msgid "Popular Posts"
+msgstr "Entradas Populares"
+
+#: ../views/admin.php:448
+msgid "Set the opening tag for the heading of the list"
+msgstr "Configura la etiqueta de apertura para el encabezado de la lista"
+
+#: ../views/admin.php:455
+msgid "Set the closing tag for the heading of the list"
+msgstr "Configura la etiqueta de cierre para el encabezado de la lista"
+
+#: ../views/admin.php:462
+msgid "Sets the maximum number of popular posts to be shown on the listing"
+msgstr ""
+"Configura el m&aacute;ximo de entradas populares a ser mostradas en la lista"
+
+#: ../views/admin.php:463 ../views/admin.php:519 ../views/admin.php:533
+#: ../views/admin.php:554 ../views/admin.php:561
+msgid "Positive integer"
+msgstr "Entero positivo"
+
+#: ../views/admin.php:469
+msgid ""
+"Tells WordPress Popular Posts to retrieve the most popular entries within "
+"the time range specified by you"
+msgstr ""
+"Le indica a WordPress Popular Posts que debe listar aquellas entradas que "
+"hayan sido populares dentro del rango de tiempo especificado por ti"
+
+#: ../views/admin.php:476
+msgid ""
+"Tells WordPress Popular Posts to retrieve the most popular entries published "
+"within the time range specified by you"
+msgstr ""
+"Le indica a WordPress Popular Posts que debe listar aquellas entradas "
+"populares publicadas dentro del rango de tiempo especificado por ti"
+
+#: ../views/admin.php:483
+msgid "Sets the sorting option of the popular posts"
+msgstr "Configura el ordenado de las entradas populares"
+
+#: ../views/admin.php:484
+msgid "(for average views per day)"
+msgstr "(para el porcentaje de vistas por d&iacute;a)"
+
+#: ../views/admin.php:490
+msgid "Defines the type of posts to show on the listing"
+msgstr "Define el tipo de entrada a mostrar en el listado"
+
+#: ../views/admin.php:497
+msgid ""
+"If set, WordPress Popular Posts will exclude the specified post(s) ID(s) "
+"form the listing."
+msgstr ""
+"Si se configura, WordPress Popular Posts excluir&aacute; todos los IDs de "
+"las entradas especificadas."
+
+#: ../views/admin.php:499 ../views/admin.php:506 ../views/admin.php:513
+msgid "None"
+msgstr "Ninguno"
+
+#: ../views/admin.php:504
+msgid ""
+"If set, WordPress Popular Posts will retrieve all entries that belong to the "
+"specified category(ies) ID(s). If a minus sign is used, the category(ies) "
+"will be excluded instead."
+msgstr ""
+"Si se configura, WordPress Popular Posts mostrar&aacute; todas las entradas "
+"que pertenecen a la(s) categor&iacute;a(s) especificada(s). Si se usa un "
+"signo negativo, la(s) categor&iacute;a(s) ser&aacute;(n) exclu&iacute;da(s)."
+
+#: ../views/admin.php:511
+msgid ""
+"If set, WordPress Popular Posts will retrieve all entries created by "
+"specified author(s) ID(s)."
+msgstr ""
+"Si se configura, WordPress Popular Posts traer&aacute; todas las entradas "
+"creadas por el (los) ID(s) de autor(es) especificado(s)."
+
+#: ../views/admin.php:518
+msgid ""
+"If set, WordPress Popular Posts will shorten each post title to \"n\" "
+"characters whenever possible"
+msgstr ""
+"Si se configura, WordPress Popular Posts acortar&aacute; cada titulo en \"n"
+"\" caracteres cuando sea posible"
+
+#: ../views/admin.php:525
+msgid ""
+"If set to 1, WordPress Popular Posts will shorten each post title to \"n\" "
+"words instead of characters"
+msgstr ""
+"Si se pasa el valor 1, WordPress Popular Posts acortar&aacute; cada titulo "
+"en \"n\" palabras en vez de caracteres"
+
+#: ../views/admin.php:532
+msgid ""
+"If set, WordPress Popular Posts will build and include an excerpt of \"n\" "
+"characters long from the content of each post listed as popular"
+msgstr ""
+"Si se configura, WordPress Popular Posts construir&aacute; e incluir&aacute; "
+"un extracto de \"n\" caracteres del contenido de cada entrada listada como "
+"popular"
+
+#: ../views/admin.php:539
+msgid ""
+"If set, WordPress Popular Posts will maintaing all styling tags (strong, "
+"italic, etc) and hyperlinks found in the excerpt"
+msgstr ""
+"Si se configura, WordPress Popular Posts mantendr&aacute; todas las "
+"etiquetas de estilo (strong, italic, etc) y los hiperv&iacute;nculos "
+"encontrados en el extracto"
+
+#: ../views/admin.php:546
+msgid ""
+"If set to 1, WordPress Popular Posts will shorten the excerpt to \"n\" words "
+"instead of characters"
+msgstr ""
+"Si se configura, WordPress Popular Posts acortar&aacute; el resumen en \"n\" "
+"palabras en vez de caracteres"
+
+#: ../views/admin.php:553
+msgid ""
+"If set, and if your current server configuration allows it, you will be able "
+"to display thumbnails of your posts. This attribute sets the width for "
+"thumbnails"
+msgstr ""
+"Si se configura, y si la configuraci&oacute;n actual de tu servidor lo "
+"permite, podr&aacute;s mostrar miniaturas de tus entradas. Este atributo "
+"configura el ancho de tus miniaturas"
+
+#: ../views/admin.php:560
+msgid ""
+"If set, and if your current server configuration allows it, you will be able "
+"to display thumbnails of your posts. This attribute sets the height for "
+"thumbnails"
+msgstr ""
+"Si se configura, y si la configuraci&oacute;n actual de tu servidor lo "
+"permite, podr&aacute;s mostrar miniaturas de tus entradas. Este atributo "
+"configura el alto de tus miniaturas"
+
+#: ../views/admin.php:567
+msgid ""
+"If set, and if the WP-PostRatings plugin is installed and enabled on your "
+"blog, WordPress Popular Posts will show how your visitors are rating your "
+"entries"
+msgstr ""
+"Si se configura, y si el plugin WP-PostRatings est&aacute; instalado y "
+"habilitado en tu blog, WordPress Popular Posts mostrar&aacute; como tus "
+"visitantes han calificado a tus entradas"
+
+#: ../views/admin.php:574
+msgid ""
+"If set, WordPress Popular Posts will show how many comments each popular "
+"post has got until now"
+msgstr ""
+"Si se configura, WordPress Popular Posts mostrar&aacute; cu&aacute;ntos "
+"comentarios ha obtenido cada entrada popular hasta ahora"
+
+#: ../views/admin.php:581
+msgid ""
+"If set, WordPress Popular Posts will show how many views each popular post "
+"has got since it was installed"
+msgstr ""
+"Si se configura, WordPress Popular Posts mostrar&aacute; cu&aacute;ntas "
+"vistas ha obtenido cada entrada popular desde que el plugin fue instalado"
+
+#: ../views/admin.php:588
+msgid ""
+"If set, WordPress Popular Posts will show who published each popular post on "
+"the list"
+msgstr ""
+"Si se configura, WordPress Popular Posts mostrar&aacute; qui&eacute;n "
+"public&oacute; cada entrada popular de la lista"
+
+#: ../views/admin.php:595
+msgid ""
+"If set, WordPress Popular Posts will display the date when each popular post "
+"on the list was published"
+msgstr ""
+"Si se tilda, WordPress Popular Posts mostrar&aacute; la fecha en la que fue "
+"publicada cada entrada popular"
+
+#: ../views/admin.php:602
+msgid "Sets the date format"
+msgstr "Configura el formato de la fecha"
+
+#: ../views/admin.php:609
+msgid "If set, WordPress Popular Posts will display the category"
+msgstr ""
+"Si se tilda, WordPress Popular Posts mostrar&aacute; la categor&iacute;a"
+
+#: ../views/admin.php:616
+msgid "Sets the opening tag for the listing"
+msgstr "Configura la etiqueta de apertura del listado"
+
+#: ../views/admin.php:623
+msgid "Sets the closing tag for the listing"
+msgstr "Configura la etiqueta de cierre del listado"
+
+#: ../views/admin.php:630
+msgid "Sets the HTML structure of each post"
+msgstr "Configura la estructura HTML de cada entrada"
+
+#: ../views/admin.php:631
+msgid "Text string, custom HTML"
+msgstr "Texto, HTML personalizado"
+
+#: ../views/admin.php:631
+msgid "Available Content Tags"
+msgstr "Content Tags disponibles"
+
+#: ../views/admin.php:631
+msgid "displays thumbnail linked to post/page"
+msgstr "muestra la miniatura vinculada a la entrada/p&aacute;gina"
+
+#: ../views/admin.php:631
+msgid "displays thumbnail image without linking to post/page"
+msgstr "muestra la imagen miniatura sin un link hacia la entrada/p&aacute;gina"
+
+#: ../views/admin.php:631
+msgid "displays linked post/page title"
+msgstr ""
+"muestra el t&iacute;tulo de la entrada/p&aacute;gina con v&iacute;nculo"
+
+#: ../views/admin.php:631
+msgid ""
+"displays post/page excerpt, and requires excerpt_length to be greater than 0"
+msgstr ""
+"muestra el resumen de la entrada/p&aacute;gina, requiere que excerpt_length "
+"sea mayor a 0"
+
+#: ../views/admin.php:631
+msgid "displays the default stats tags"
+msgstr "muestra el stats tag por defecto"
+
+#: ../views/admin.php:631
+msgid ""
+"displays post/page current rating, requires WP-PostRatings installed and "
+"enabled"
+msgstr ""
+"muestra el rating actual de la entrada/p&aacute;gina, requiere que WP-"
+"PostRatings est&eacute; instalado y activo"
+
+#: ../views/admin.php:631
+msgid ""
+"displays post/page current rating as an integer, requires WP-PostRatings "
+"installed and enabled"
+msgstr ""
+"muestra el rating actual de la entrada/p&aacute;gina como un entero, "
+"requiere que WP-PostRatings est&eacute; instalado y activo"
+
+#: ../views/admin.php:631
+msgid "outputs the URL of the post/page"
+msgstr "muestra la URL de la entrada/p&aacute;gina"
+
+#: ../views/admin.php:631
+msgid "displays post/page title, no link"
+msgstr ""
+"muestra el t&iacute;tulo de la entrada/p&aacute;gina, sin v&iacute;nculo"
+
+#: ../views/admin.php:631
+msgid "displays linked author name, requires stats_author=1"
+msgstr ""
+"muestra el nombre del autor con v&iacute;nculo, requiere stats_author=1"
+
+#: ../views/admin.php:631
+msgid "displays linked category name, requires stats_category=1"
+msgstr ""
+"muestra el nombre de la categor&iacute;a vinculado, requiere stats_category=1"
+
+#: ../views/admin.php:631
+msgid "displays views count only, no text"
+msgstr "muestra el n&uacute;mero de vistas, sin texto adicional"
+
+#: ../views/admin.php:631
+msgid "displays comments count only, no text, requires stats_comments=1"
+msgstr ""
+"muestra el n&uacute;mero de comentarios, sin texto adicional, requiere "
+"stats_comments=1"
+
+#: ../views/admin.php:631
+msgid "displays post/page date, requires stats_date=1"
+msgstr "muestra la fecha de la entrada/p&aacute;gina, requiere stats_date=1"
+
+#: ../views/admin.php:643
+msgid "What does \"Title\" do?"
+msgstr "&iquest;Para qu&eacute; es \"T&iacute;tulo\"?"
+
+#: ../views/admin.php:646
+msgid ""
+"It allows you to show a heading for your most popular posts listing. If left "
+"empty, no heading will be displayed at all."
+msgstr ""
+"Te permite mostrar un encabezado para tu lista de entradas populares. Si se "
+"deja vac&iacute;o, no se mostrar&aacute; el encabezado."
+
+#: ../views/admin.php:649
+msgid "What is Time Range for?"
+msgstr "&iquest;Para qu&eacute; es \"Rango de Tiempo\"?"
+
+#: ../views/admin.php:651
+msgid ""
+"It will tell WordPress Popular Posts to retrieve all posts with most views / "
+"comments within the selected time range."
+msgstr ""
+"Le indica a WordPress Popular Posts que muestre las entradas m&aacute;s "
+"vistas / comentadas en el rango de tiempo seleccionado."
+
+#: ../views/admin.php:654
+msgid "What is \"Sort post by\" for?"
+msgstr "&iquest;Para qu&eacute; es \"Ordenar entradas por\"?"
+
+#: ../views/admin.php:656
+msgid ""
+"It allows you to decide whether to order your popular posts listing by total "
+"views, comments, or average views per day."
+msgstr ""
+"Te permite decidir si ordenar tus entradas populares por la cantidad total "
+"de vistas, comentarios, o por el porcentaje diario de vistas."
+
+#: ../views/admin.php:659
+msgid "What does \"Display post rating\" do?"
+msgstr "&iquest;Qu&eacute; hace \"Mostrar rating de la entrada\"?"
+
+#: ../views/admin.php:661
+msgid ""
+"If checked, WordPress Popular Posts will show how your readers are rating "
+"your most popular posts. This feature requires having WP-PostRatings plugin "
+"installed and enabled on your blog for it to work."
+msgstr ""
+"Si se tilda, WordPress Popular Posts mostrar&aacute; c&oacute;mo tus "
+"lectores est&aacute;n calificando tus entradas populares. Esta "
+"caracter&iacute;stica requiere que el plugin WP-PostRatings est&eacute; "
+"instalado y habilitado en tu blog para que funcione."
+
+#: ../views/admin.php:664
+msgid "What does \"Shorten title\" do?"
+msgstr "&iquest;Qu&eacute; hace \"Acortar t&iacute;tulo\"?"
+
+#: ../views/admin.php:666
+msgid ""
+"If checked, all posts titles will be shortened to \"n\" characters/words. A "
+"new \"Shorten title to\" option will appear so you can set it to whatever "
+"you like."
+msgstr ""
+"Si se tilda, todos los t&iacute;tulos de las entradas se acortar&aacute;n \"n"
+"\" caracteres/palabras. Una nueva opci&oacute;n \"Acortar t&iacute;tulo en\" "
+"se mostrar&aacute; para que puedas configurarlo como quieras."
+
+#: ../views/admin.php:669
+msgid "What does \"Display post excerpt\" do?"
+msgstr "&iquest;Qu&eacute; hace \"Mostrar resumen de la entrada\"?"
+
+#: ../views/admin.php:671
+msgid ""
+"If checked, WordPress Popular Posts will also include a small extract of "
+"your posts in the list. Similarly to the previous option, you will be able "
+"to decide how long the post excerpt should be."
+msgstr ""
+"Si se tilda, WordPress Popular Posts incluir&aacute; un peque&ntilde;o "
+"extracto de tus entradas en la lista. Similar a la opci&oacute;n anterior, "
+"podr&aacute;s decidir qu&eacute; tan largo debe ser el extracto."
+
+#: ../views/admin.php:674
+msgid "What does \"Keep text format and links\" do?"
+msgstr "&iquest;Qu&eacute; hace \"Mantener el formato de texto y links\"?"
+
+#: ../views/admin.php:676
+msgid ""
+"If checked, and if the Post Excerpt feature is enabled, WordPress Popular "
+"Posts will keep the styling tags (eg. bold, italic, etc) that were found in "
+"the excerpt. Hyperlinks will remain intact, too."
+msgstr ""
+"Si se tilda, y si la opci&oacute;n Mostrar Resumen est&aacute; habilitada, "
+"WordPress Popular Posts mantendr&aacute; las etiquetas de estilos que se "
+"encontraron en el extracto. Los hiperv&iacute;nculos tambi&eacute;n se "
+"mantendr&aacute;n."
+
+#: ../views/admin.php:679
+msgid "What is \"Post type\" for?"
+msgstr "&iquest;Para qu&eacute; es el \"Post type\"?"
+
+#: ../views/admin.php:681
+msgid ""
+"This filter allows you to decide which post types to show on the listing. By "
+"default, it will retrieve only posts and pages (which should be fine for "
+"most cases)."
+msgstr ""
+"Este filtro te permite decidir que tipo de entradas deseas mostrar en el "
+"listado. Por defecto, trater&aacute; s&oacute;lo entradas y p&aacute;ginas "
+"(que es lo que se quiere, en la mayor&iacute;a de los casos)."
+
+#: ../views/admin.php:684
+msgid "What is \"Category(ies) ID(s)\" for?"
+msgstr "&iquest;Para qu&eacute; es el \"ID(s) de Categor&iacute;a(s)\"?"
+
+#: ../views/admin.php:686
+msgid ""
+"This filter allows you to select which categories should be included or "
+"excluded from the listing. A negative sign in front of the category ID "
+"number will exclude posts belonging to it from the list, for example. You "
+"can specify more than one ID with a comma separated list."
+msgstr ""
+"Este filtro te permite seleccionar qu&eacute; categor&iacute;as deber&iacute;"
+"an ser inclu&iacute;das o exclu&iacute;das del listado. Un signo negativo "
+"enfrente del ID de la categor&iacute;a la excluir&aacute; de la lista, por "
+"ejemplo. Puedes especificar m&aacute;s de un ID separ&aacute;ndolos con "
+"comas."
+
+#: ../views/admin.php:689
+msgid "What is \"Author(s) ID(s)\" for?"
+msgstr "&iquest;Para qu&eacute; es el \"ID de Autor(es)\"?"
+
+#: ../views/admin.php:691
+msgid ""
+"Just like the Category filter, this one lets you filter posts by author ID. "
+"You can specify more than one ID with a comma separated list."
+msgstr ""
+"Justo como el filtro de Categor&iacute;a, &eacute;ste te permite filtrar "
+"entradas por ID del autor. Puedes especificar m&aacute;s de un ID "
+"separ&aacute;ndolos con comas."
+
+#: ../views/admin.php:694
+msgid "What does \"Display post thumbnail\" do?"
+msgstr "&iquest;Qu&eacute; hace \"Mostrar miniatura de  la entrada\"?"
+
+#: ../views/admin.php:696
+msgid ""
+"If checked, WordPress Popular Posts will attempt to retrieve the thumbnail "
+"of each post. You can set up the source of the thumbnail via Settings - "
+"WordPress Popular Posts - Tools."
+msgstr ""
+"Si se tilda, WordPress Popular Posts intentar&aacute; obtener la imagen "
+"miniatura de cada entrada. Puedes configurar la fuente de la miniatura via "
+"Configuraci&oacute;n - Wordpress Popular Posts - Herramientas."
+
+#: ../views/admin.php:699
+msgid "What does \"Display comment count\" do?"
+msgstr "&iquest;Qu&eacute; hace \"Mostrar cantidad de comentarios\"?"
+
+#: ../views/admin.php:701
+msgid ""
+"If checked, WordPress Popular Posts will display how many comments each "
+"popular post has got in the selected Time Range."
+msgstr ""
+"Si se tilda, WordPress Popular Posts mostrar&aacute; cu&aacute;ntos "
+"comentarios ha obtenido cada entrada popular dentro del Rango de Tiempo "
+"seleccionado."
+
+#: ../views/admin.php:704
+msgid "What does \"Display views\" do?"
+msgstr "&iquest;Qu&eacute; hace \"Mostrar vistas\"?"
+
+#: ../views/admin.php:706
+msgid ""
+"If checked, WordPress Popular Posts will show how many pageviews a single "
+"post has gotten in the selected Time Range."
+msgstr ""
+"Si se tilda, WordPress Popular Posts mostrar&aacute; cu&aacute;ntas vistas "
+"ha obtenido cada entrada en el Rango de Tiempo seleccionado."
+
+#: ../views/admin.php:709
+msgid "What does \"Display author\" do?"
+msgstr "&iquest;Qu&eacute; hace \"Mostrar autor\"?"
+
+#: ../views/admin.php:711
+msgid ""
+"If checked, WordPress Popular Posts will display the name of the author of "
+"each entry listed."
+msgstr ""
+"Si se tilda, WordPress Popular Posts mostrar&aacute; el nombre del autor de "
+"cada entrada listada."
+
+#: ../views/admin.php:714
+msgid "What does \"Display date\" do?"
+msgstr "&iquest;Qu&eacute; hace \"Mostrar fecha\"?"
+
+#: ../views/admin.php:716
+msgid ""
+"If checked, WordPress Popular Posts will display the date when each popular "
+"posts was published."
+msgstr ""
+"Si se tilda, WordPress Popular Posts mostrar&aacute; la fecha en la que fue "
+"publicada cada entrada popular."
+
+#: ../views/admin.php:719
+msgid "What does \"Display category\" do?"
+msgstr "&iquest;Qu&eacute; hace \"Mostrar categor&iacute;a\"?"
+
+#: ../views/admin.php:721
+msgid ""
+"If checked, WordPress Popular Posts will display the category of each post."
+msgstr ""
+"Si se tilda, WordPress Popular Posts mostrar&aacute; la categor&iacute;a de "
+"cada entrada."
+
+#: ../views/admin.php:724
+msgid "What does \"Use custom HTML Markup\" do?"
+msgstr "&iquest;Qu&eacute; hace \"Utilizar Markup HTML personalizado\"?"
+
+#: ../views/admin.php:726
+msgid ""
+"If checked, you will be able to customize the HTML markup of your popular "
+"posts listing. For example, you can decide whether to wrap your posts in an "
+"unordered list, an ordered list, a div, etc. If you know xHTML/CSS, this is "
+"for you!"
+msgstr ""
+"Si se tilda, podr&aacute;s personalizad el markup HTML de tu listado de "
+"entradas populares. Por ejemplo, podr&aacute;s decidir si colocar tu listado "
+"en una lista desordenada, una ordenada, dentro de un div, etc. Si sabes "
+"xHTML/CSS, &iexcl;esto es para ti!"
+
+#: ../views/admin.php:729
+msgid "What are \"Content Tags\"?"
+msgstr "&iquest;Qu&eacute; son los \"Content Tags\"?"
+
+#: ../views/admin.php:731
+#, php-format
+msgid ""
+"Content Tags are codes to display a variety of items on your popular posts "
+"custom HTML structure. For example, setting it to \"{title}: "
+"{summary}\" (without the quotes) would display \"Post title: excerpt of the "
+"post here\". For more Content Tags, see the <a href=\"%s\" target=\"_blank"
+"\">Parameters</a> section."
+msgstr ""
+"Los Content Tags son etiquetas que sirven para mostrar una variedad de items "
+"en la estructura HTML de tu lista. Por ejemplo, configurarlo como \"{title}: "
+"{summary}\" (sin las comillas) mostrar&iacute;a \"T&iacute;tulo de la "
+"entrada: extracto de la entrada aqu&iacute;\". Para ver otras Content Tags, "
+"ver la secci&oacute;n <a href=\"%s\" target=\"_blank\">Par&aacute;metros</a."
+
+#: ../views/admin.php:734
+msgid "What are \"Template Tags\"?"
+msgstr "&iquest;Qu&eacute; son los \"Template Tags\"?"
+
+#: ../views/admin.php:736
+msgid ""
+"Template Tags are simply php functions that allow you to perform certain "
+"actions. For example, WordPress Popular Posts currently supports two "
+"different template tags: wpp_get_mostpopular() and wpp_get_views()."
+msgstr ""
+"Los Template Tags son simplemente funciones php que nos permiten realizar "
+"ciertas acciones. Por ejemplo, WordPress Popular Posts actualmente soporta "
+"dos template tags diferentes: wpp_get_mostpopular() y wpp_get_views()."
+
+#: ../views/admin.php:739
+msgid "What are the template tags that WordPress Popular Posts supports?"
+msgstr ""
+"&iquest;Cu&aacute;les son los Template Tags soportados por WordPress Popular "
+"Posts?"
+
+#: ../views/admin.php:741
+msgid ""
+"The following are the template tags supported by WordPress Popular Posts"
+msgstr ""
+"Los siguientes son los template tags soportados por WordPress Popular Posts"
+
+#: ../views/admin.php:745
+msgid "Template tag"
+msgstr "Template tag"
+
+#: ../views/admin.php:754
+#, php-format
+msgid ""
+"Similar to the widget functionality, this tag retrieves the most popular "
+"posts on your blog. This function also accepts <a href=\"%1$s\">parameters</"
+"a> so you can customize your popular listing, but these are not required."
+msgstr ""
+"Parecido a la funcionalidad del widget, esta etiqueta obtiene las entradas "
+"m&aacute;s populares de tu blog. Esta funci&oacute;n tambi&eacute;n acepta "
+"<a href=\"%1$s\">par&aacute;metros</a> para que puedas personalizar el "
+"listado, pero &eacute;stos no son requeridos."
+
+#: ../views/admin.php:755
+#, php-format
+msgid ""
+"Please refer to the <a href=\"%1$s\">Parameters section</a> for a complete "
+"list of attributes."
+msgstr ""
+"Por favor ver la <a href=\"%1$s\">secci&oacute;n Par&aacute;metros</a> para "
+"la lista completa de atributos."
+
+#: ../views/admin.php:760
+msgid ""
+"Displays the number of views of a single post. Post ID is required or it "
+"will return false."
+msgstr ""
+"Muestra la cantidad de vistas de una entrada. El ID de la entrada es "
+"requerido, o la funci&oacute;n devolver&aacute; false."
+
+#: ../views/admin.php:761
+msgid "Post ID"
+msgstr "ID de la entrada"
+
+#: ../views/admin.php:768
+msgid "What are \"shortcodes\"?"
+msgstr "&iquest;Qu&eacute; son los \"shortcodes\"?"
+
+#: ../views/admin.php:770
+#, php-format
+msgid ""
+"Shortcodes are similar to BB Codes, these allow us to call a php function by "
+"simply typing something like [shortcode]. With WordPress Popular Posts, the "
+"shortcode [wpp] will let you insert a list of the most popular posts in "
+"posts content and pages too! For more information about shortcodes, please "
+"visit the <a href=\"%s\" target=\"_blank\">WordPress Shortcode API</a> page."
+msgstr ""
+"Los Shortcodes son similares a los BB Codes, &eacute;stos nos permiten "
+"llamar a una funci&oacute;n php simplemente escribiendo algo como "
+"[shortcode]. Con WordPress Popular Posts, el shortcode [wpp] te "
+"permitir&aacute; insertar una lista de las entradas m&aacute;s populares en "
+"el contenido de tus entradas y en p&aacute;ginas tambi&eacute;n. Para mayor "
+"informaci&oacute;n sobre los shortcodes, por favor visita la p&aacute;gina "
+"<a href=\"%s\" target=\"_blank\">WordPress Shortcode API</a>."
+
+#: ../views/admin.php:778
+#, php-format
+msgid "About WordPress Popular Posts %s"
+msgstr "Acerca de WordPress Popular Posts %s"
+
+#: ../views/admin.php:779
+msgid "This version includes the following changes"
+msgstr "Esta versi&oacute;n incluye los siguientes cambios"
+
+#: ../views/admin.php:802
+msgid "Do you like this plugin?"
+msgstr "&iquest;Te gusta este plugin?"
+
+#: ../views/admin.php:809
+msgid ""
+"Each donation motivates me to keep releasing free stuff for the WordPress "
+"community!"
+msgstr ""
+"&iexcl;Cada donaci&oacute;n me motiva a seguir publicando cosas gratuitas "
+"para la comunidad de WordPress!"
+
+#: ../views/admin.php:810
+#, php-format
+msgid "You can <a href=\"%s\" target=\"_blank\">leave a review</a>, too!"
+msgstr ""
+"&iexcl;Puedes <a href=\"%s\" target=\"_blank\">dejar una rese&ntilde;a</a> "
+"tambi&eacute;n!"
+
+#: ../views/admin.php:814
+msgid "Need help?"
+msgstr "&iquest;Necesitas ayuda?"
+
+#: ../views/admin.php:815
+#, php-format
+msgid ""
+"Visit <a href=\"%s\" target=\"_blank\">the forum</a> for support, questions "
+"and feedback."
+msgstr ""
+"Visita <a href=\"%s\" target=\"_blank\">el foro</a> para obtener soporte, "
+"hacer preguntas y dejar tu feedback."
+
+#: ../views/admin.php:816
+msgid "Let's make this plugin even better!"
+msgstr "&iexcl;Hagamos a este plugin inclusive mejor!"
+
+#: ../views/form.php:2
+msgid "Title"
+msgstr "T&iacute;tulo"
+
+#: ../views/form.php:7
+msgid "Show up to"
+msgstr "Mostrar hasta"
+
+#: ../views/form.php:8
+msgid "posts"
+msgstr "entradas"
+
+#: ../views/form.php:12
+msgid "Sort posts by"
+msgstr "Ordenar entradas por"
+
+#: ../views/form.php:14
+msgid "Comments"
+msgstr "Comentarios"
+
+#: ../views/form.php:15
+msgid "Total views"
+msgstr "Total de vistas"
+
+#: ../views/form.php:16
+msgid "Avg. daily views"
+msgstr "Porcentaje de vistas diarias"
+
+#: ../views/form.php:22
+msgid "Filters"
+msgstr "Filtros"
+
+#: ../views/form.php:24
+msgid "Time Range"
+msgstr "Rango de Tiempo"
+
+#: ../views/form.php:34
+msgid "Post type(s)"
+msgstr "Post type(s)"
+
+#: ../views/form.php:37
+msgid "Post(s) ID(s) to exclude"
+msgstr "ID(s) de Entrada(s) a excluir"
+
+#: ../views/form.php:40
+msgid "Category(ies) ID(s)"
+msgstr "ID(s) de Categor&iacute;a(s)"
+
+#: ../views/form.php:43
+msgid "Author(s) ID(s)"
+msgstr "ID(s) de Autor(es)"
+
+#: ../views/form.php:48
+msgid "Posts settings"
+msgstr "Configuraci&oacute;n de las entradas"
+
+#: ../views/form.php:52
+msgid "Display post rating"
+msgstr "Mostrar rating de la entrada"
+
+#: ../views/form.php:55
+msgid "Shorten title"
+msgstr "Acortar t&iacute;tulo"
+
+#: ../views/form.php:58
+msgid "Shorten title to"
+msgstr "Acortar t&iacute;tulo en"
+
+#: ../views/form.php:59 ../views/form.php:69
+msgid "characters"
+msgstr "caracteres"
+
+#: ../views/form.php:60 ../views/form.php:70
+msgid "words"
+msgstr "palabras"
+
+#: ../views/form.php:63
+msgid "Display post excerpt"
+msgstr "Mostrar resumen de la entrada"
+
+#: ../views/form.php:66
+msgid "Keep text format and links"
+msgstr "Mantener formato de texto y links"
+
+#: ../views/form.php:67
+msgid "Excerpt length"
+msgstr "Largo del resumen"
+
+#: ../views/form.php:73
+msgid "Display post thumbnail"
+msgstr "Mostrar miniatura"
+
+#: ../views/form.php:76
+msgid "Use predefined size"
+msgstr "Utilizar un tama&ntilde;o predefinido"
+
+#: ../views/form.php:88
+msgid "Set size manually"
+msgstr "Configurar el tama&ntilde;o manualmente"
+
+#: ../views/form.php:90
+msgid "Width"
+msgstr "Ancho"
+
+#: ../views/form.php:91 ../views/form.php:94
+msgid "px"
+msgstr "px"
+
+#: ../views/form.php:93
+msgid "Height"
+msgstr "Alto"
+
+#: ../views/form.php:99
+msgid "Stats Tag settings"
+msgstr "Configuraci&oacute;n del Stats Tag"
+
+#: ../views/form.php:101
+msgid "Display comment count"
+msgstr "Mostrar cantidad de comentarios"
+
+#: ../views/form.php:103
+msgid "Display views"
+msgstr "Mostrar vistas"
+
+#: ../views/form.php:105
+msgid "Display author"
+msgstr "Mostrar autor"
+
+#: ../views/form.php:107
+msgid "Display date"
+msgstr "Mostrar fecha"
+
+#: ../views/form.php:110
+msgid "Date Format"
+msgstr "Formato de la fecha"
+
+#: ../views/form.php:112
+msgid "WordPress Date Format"
+msgstr "Formato de fecha de WordPress"
+
+#: ../views/form.php:119
+msgid "Display category"
+msgstr "Mostrar categor&iacute;a"
+
+#: ../views/form.php:123
+msgid "HTML Markup settings"
+msgstr "Configuraci&oacute;n del Markup HTML"
+
+#: ../views/form.php:125
+msgid "Use custom HTML Markup"
+msgstr "Utilizar Markup HTML personalizado"
+
+#: ../views/form.php:128
+msgid "Before / after title"
+msgstr "Antes / despu&eacute;s del t&iacute;tulo"
+
+#: ../views/form.php:131
+msgid "Before / after Popular Posts"
+msgstr "Antes / despu&eacute;s de las entradas populares"
+
+#: ../views/form.php:134
+msgid "Post HTML Markup"
+msgstr "Markup HTML de la Entrada"
+
+#: ../wordpress-popular-posts.php:302
+msgid "The most Popular Posts on your blog."
+msgstr "Las entradas m&aacute;s populares en tu blog."
+
+#: ../wordpress-popular-posts.php:467
+msgid ""
+"Error: cannot ajaxify WordPress Popular Posts on this theme. It's missing "
+"the <em>id</em> attribute on before_widget (see <a href=\"http://codex."
+"wordpress.org/Function_Reference/register_sidebar\" target=\"_blank\" rel="
+"\"nofollow\">register_sidebar</a> for more)."
+msgstr ""
+"Error: no es posible ajaxificar WordPress Popular Posts en este tema. Falta "
+"el atributo <em>id</em> en before_widget (ver <a href=\"http://codex."
+"wordpress.org/Function_Reference/register_sidebar\" target=\"_blank\" rel="
+"\"nofollow\">register_sidebar</a> para m&aacute;s informaci&oacute;n)."
+
+#: ../wordpress-popular-posts.php:711
+msgid "Upload"
+msgstr "Subir"
+
+#: ../wordpress-popular-posts.php:1087
+#, php-format
+msgid ""
+"Your PHP installation is too old. WordPress Popular Posts requires at least "
+"PHP version %1$s to function correctly. Please contact your hosting provider "
+"and ask them to upgrade PHP to %1$s or higher."
+msgstr ""
+"Tu versi&oacute;n de PHP es muy antigua. El plugin WordPress Popular Posts "
+"requiere al menos PHP version %1$s para funcionar correctamente. Por favor "
+"contacta a tu proveedor de hosting y solicita que se actualice PHP a %1$s o "
+"mejor."
+
+#: ../wordpress-popular-posts.php:1094
+#, php-format
+msgid ""
+"Your WordPress version is too old. WordPress Popular Posts requires at least "
+"WordPress version %1$s to function correctly. Please update your blog via "
+"Dashboard &gt; Update."
+msgstr ""
+"Tu versi&oacute;n de WordPress es muy antigua. El plugin WordPress Popular "
+"Posts requiere al menos la versi&oacute;n %1$s para funcionar correctamente. "
+"Por favor actualiza tu blog via Escritorio &gt; Actualizaciones."
+
+#: ../wordpress-popular-posts.php:1119
+#, php-format
+msgid ""
+"<div class=\"error\"><p>%1$s</p><p><i>%2$s</i> has been <strong>deactivated</"
+"strong>.</p></div>"
+msgstr ""
+"<div class=\"error\"><p>%1$s</p><p><i>%2$s</i> ha sido <strong>desactivado</"
+"strong>.</p></div>"
+
+#: ../wordpress-popular-posts.php:1179
+msgid "Success! The cache table has been cleared!"
+msgstr "&iexcl;&Eacute;xito! &iexcl;La tabla cach&eacute; ha sido borrada!"
+
+#: ../wordpress-popular-posts.php:1181
+msgid "Error: cache table does not exist."
+msgstr "Error: la tabla cach&eacute; no existe."
+
+#: ../wordpress-popular-posts.php:1188
+msgid "Success! All data have been cleared!"
+msgstr "&iexcl;&Eacute;xito! &iexcl;Toda la data ha sido borrada!"
+
+#: ../wordpress-popular-posts.php:1190
+msgid "Error: one or both data tables are missing."
+msgstr "Error: una o ambas tablas de datos no existen."
+
+#: ../wordpress-popular-posts.php:1193 ../wordpress-popular-posts.php:1231
+msgid "Invalid action."
+msgstr "Acci&oacute;n inv&aacute;lida."
+
+#: ../wordpress-popular-posts.php:1196 ../wordpress-popular-posts.php:1234
+msgid ""
+"Sorry, you do not have enough permissions to do this. Please contact the "
+"site administrator for support."
+msgstr ""
+"Lo lamento, no tienes permisos suficientes para hacer esto. Por favor "
+"contacta al administrador del sitio."
+
+#: ../wordpress-popular-posts.php:1226
+msgid "Success! All files have been deleted!"
+msgstr "&iexcl;&Eacute;xito! &iexcl;Todos los archivos han sido borrados!"
+
+#: ../wordpress-popular-posts.php:1228
+msgid "The thumbnail cache is already empty!"
+msgstr "&iexcl;El cache de miniaturas ya est&aacute; vac&iacute;o!"
+
+#: ../wordpress-popular-posts.php:1778
+msgid "Sorry. No data so far."
+msgstr "Lo lamentamos. No hay nada que mostrar a&uacute;n."
+
+#: ../wordpress-popular-posts.php:2305
+#, php-format
+msgid "1 comment"
+msgid_plural "%s comments"
+msgstr[0] "1 comentario"
+msgstr[1] "%s comentarios"
+
+#: ../wordpress-popular-posts.php:2317
+#, php-format
+msgid "1 view per day"
+msgid_plural "%s views per day"
+msgstr[0] "1 vista por d&iacute;a"
+msgstr[1] "%s vistas por d&iacute;a"
+
+#: ../wordpress-popular-posts.php:2323
+#, php-format
+msgid "1 view"
+msgid_plural "%s views"
+msgstr[0] "1 vista"
+msgstr[1] "%s vistas"
+
+#: ../wordpress-popular-posts.php:2346
+#, php-format
+msgid "by %s"
+msgstr "por %s"
+
+#: ../wordpress-popular-posts.php:2352
+#, php-format
+msgid "posted on %s"
+msgstr "publicado el %s"
+
+#: ../wordpress-popular-posts.php:2360
+#, php-format
+msgid "under %s"
+msgstr "bajo %s"
+
+#~ msgid ""
+#~ "By default, WordPress Popular Posts stores in database every single visit "
+#~ "your site receives. For small / medium sites this is generally OK, but on "
+#~ "large / high traffic sites the constant writing to the database may have "
+#~ "an impact on performance. With data sampling, WordPress Popular Posts "
+#~ "will store only a subset of your traffic and report on the tendencies "
+#~ "detected in that sample set (for more on <em>data sampling</em>, please "
+#~ "<a href=\"%1$s\" target=\"_blank\">read here</a>)"
+#~ msgstr ""
+#~ "Por defecto, WordPress Popular Posts almacena en la base de datos todas y "
+#~ "cada una de las visitas que tu sitio recibe. Para sitios web peque&ntilde;"
+#~ "os / medianos esto est&aacute; bien, pero en sitios grandes / de alto "
+#~ "tr&aacute;fico la escritura constante en la base de datos pudiera causar "
+#~ "un impacto en el rendimiento. Con el sampleo de datos, WordPress Popular "
+#~ "Posts almacenar&aacute; s&oacute;lo un subconjunto de tu tr&aacute;fico y "
+#~ "reportar&aacute; de acuerdo a las tendencias detectadas en dicho sub "
+#~ "conjunto (para mayor informaci&oacute;n acerca de; <em>sampleo de data</"
+#~ "em>, por favor <a href=\"%1$s\" target=\"_blank\">leer aqu&iacute;</a>)"
+
+#~ msgid "Listing refresh interval"
+#~ msgstr "Intervalo de refrescamiento del listado"
+
+#~ msgid "Live"
+#~ msgstr "En vivo"
+
+#~ msgid "Custom interval"
+#~ msgstr "Intervalo personalizado"
+
+#~ msgid ""
+#~ "Sets how often the listing should be updated. For most sites the Live "
+#~ "option should be fine, however if you are experiencing slowdowns or your "
+#~ "blog gets a lot of visitors then you might want to change the refresh rate"
+#~ msgstr ""
+#~ "Configura cu&aacute;n frecuentemente debe actualizarse listado. Para la "
+#~ "mayor&iacute;a de los sitios la opci&oacute;n En Vivo deber&iacute;a "
+#~ "estar bien, sin embargo si est&aacute;s experimentando lentitud o tu blog "
+#~ "recibe muchos visitantes entonces quiz&aacute;s prefieras cambiar la tasa "
+#~ "de refrescamiento"
+
+#~ msgid "Refresh list every"
+#~ msgstr "Refrescar la lista cada"
+
+#~ msgid ""
+#~ "Please refer to \"List of parameters accepted by wpp_get_mostpopular() "
+#~ "and the [wpp] shortcode\"."
+#~ msgstr ""
+#~ "Por favor revisa \"Listado de par&aacute;metros aceptados por "
+#~ "wpp_get_mostpopular() y el shortcode [wpp]\"."
+
+#~ msgid ""
+#~ "List of parameters accepted by wpp_get_mostpopular() and the [wpp] "
+#~ "shortcode"
+#~ msgstr ""
+#~ "Lista de par&aacute;metros aceptados por wpp_get_mostpopular() y el "
+#~ "shortcode [wpp]"
+
+#~ msgid ""
+#~ "These parameters can be used by both the template tag "
+#~ "wpp_get_most_popular() and the shortcode [wpp]."
+#~ msgstr ""
+#~ "Estos par&aacute;metros pueden ser utilizados tanto por el template tag "
+#~ "wpp_get_mostpopular() como por el shortcode [wpp]."
+
+#~ msgid "Preview"
+#~ msgstr "Vista previa"
+
+#~ msgid "Excerpt Properties"
+#~ msgstr "Propiedades del resumen"
+
+#~ msgid "Thumbnail settings"
+#~ msgstr "Configuraci&oacute;n de miniatura"
+
+#~ msgid ""
+#~ "Here you will find a handy group of options to tweak Wordpress Popular "
+#~ "Posts."
+#~ msgstr ""
+#~ "Aqu&iacute; encontrar&aacute;s un &uacute;til grupo de opciones para "
+#~ "ajustar a Wordpress Popular Posts."
+
+#~ msgid "Popular Posts links behavior"
+#~ msgstr "Comportamiento de los link en las Entradas Populares"
+
+#~ msgid "Views logging behavior"
+#~ msgstr "Comportamiento del registro de vistas"
+
+#~ msgid "Wordpress Popular Posts Stylesheet"
+#~ msgstr "Hoja de estilos de Wordpress Popular Posts"
+
+#~ msgid "Data tools"
+#~ msgstr "Herramientas de datos"
+
+#~ msgid "Popular posts listing refresh interval"
+#~ msgstr "Intervalo de refrescamiento de las Entradas Populares"
+
+#~ msgid "Frequently Asked Questions"
+#~ msgstr "Preguntas Frecuentes (FAQ)"
+
+#~ msgid "Sets the opening tag for each item on the list"
+#~ msgstr "Configura la etiqueta de apertura de cada &iacute;tem del listado"
+
+#~ msgid "Sets the closing tag for each item on the list"
+#~ msgstr "Configura la etiqueta de cierre de cada &iacute;tem del listado"
+
+#~ msgid ""
+#~ "If set, this option will allow you to decide the order of the contents "
+#~ "within each item on the list."
+#~ msgstr ""
+#~ "Si se configura, esta opci&oacute;n te permitir&aacute; decidir el orden "
+#~ "de los contenidos dentro de cada item en la lista."
+
+#~ msgid ""
+#~ "If set, you can decide the order of each content inside a single item on "
+#~ "the list. For example, setting it to \"{title}: {summary}\" would output "
+#~ "something like \"Your Post Title: summary here\". This attribute requires "
+#~ "do_pattern to be true."
+#~ msgstr ""
+#~ "Si se configura, puedes decidir el orden de cada contenido dentro de cada "
+#~ "item en la lista. Por ejemplo, configurarlo como \"{title}: {summary}\" "
+#~ "mostrar&iacute;a \"El t&iacute;tulo de tu entrada: resumen aqu&iacute;\". "
+#~ "Este atributo requiere que do_pattern sea true."
+
+#~ msgid "Available tags"
+#~ msgstr "Etiquetas disponibles"
+
+#~ msgid "Rate it"
+#~ msgstr "&iexcl;Calif&iacute;calo"
+
+#~ msgid "on the official Plugin Directory!"
+#~ msgstr "en el Directorio Oficial de Plugins!"
+
+#~ msgid "Do you love this plugin?"
+#~ msgstr "&iquest;Adoras este plugin?"
+
+#~ msgid "Buy me a beer!"
+#~ msgstr "&iexcl;C&oacute;mprame una cerveza!"
+
+#~ msgid "comments"
+#~ msgstr "comentarios"
+
+#~ msgid "views per day"
+#~ msgstr "vistas por d&iacute;a"
+
+#~ msgid "views"
+#~ msgstr "vistas"
+
+#~ msgid "by"
+#~ msgstr "por"
+
+#~ msgid "What does \"Use content formatting tags\" do?"
+#~ msgstr ""
+#~ "&iquest;Qu&eacute; hace \"Utilizar etiquetas de formato de contenido\"?"
+
+#~ msgid "Before / after each post:"
+#~ msgstr "Antes / despu&eacute;s de cada entrada"
+
+#~ msgid "Use content formatting tags"
+#~ msgstr "Utilizar etiquetas de formato de contenido"
+
+#~ msgid "Content format:"
+#~ msgstr "Formato de contenido:"
+
+#~ msgid "Wordpress Popular Posts Stats"
+#~ msgstr "Estad&iacute;sticas de Wordpress Popular Posts"
diff --git a/wp-content/plugins/wordpress-popular-posts/lang/wordpress-popular-posts.pot b/wp-content/plugins/wordpress-popular-posts/lang/wordpress-popular-posts.pot
index 8b86465db9a74446c5f97b083d0e0b083b8e0887..b08b950a5047d833884f29d893373813353a991f 100644
--- a/wp-content/plugins/wordpress-popular-posts/lang/wordpress-popular-posts.pot
+++ b/wp-content/plugins/wordpress-popular-posts/lang/wordpress-popular-posts.pot
@@ -1,1168 +1,1203 @@
-# Copyright (C) 2014 Wordpress Popular Posts
-# This file is distributed under the same license as the Wordpress Popular Posts package.
-msgid ""
-msgstr ""
-"Project-Id-Version: Wordpress Popular Posts\n"
-"Report-Msgid-Bugs-To: http://wordpress.org/tag/wordpress-popular-posts\n"
-"POT-Creation-Date: 2014-09-23 16:52-0430\n"
-"PO-Revision-Date: 2014-09-23 16:53-0430\n"
-"Last-Translator: Héctor Cabrera <hcabrerab@gmail.com>\n"
-"Language-Team: Héctor Cabrera <hcabrerab@gmail.com>\n"
-"Language: en\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-"X-Generator: Poedit 1.6.9\n"
-"X-Poedit-KeywordsList: _e;__;__ngettext;__ngettext_noop;_n_noop;_x;_nx;"
-"_nx_noop;_ex;esc_attr__;esc_attr_e;esc_attr_x;esc_html__;esc_html_e;"
-"esc_html_x;_c;_nc;_n:1,2\n"
-"X-Poedit-Basepath: .\n"
-"X-Poedit-SourceCharset: UTF-8\n"
-"X-Poedit-SearchPath-0: .\n"
-"X-Poedit-SearchPath-1: ..\n"
-
-#: ../views/admin.php:25 ../views/admin.php:34 ../views/admin.php:48
-#: ../views/admin.php:69
-msgid "Settings saved."
-msgstr ""
-
-#: ../views/admin.php:40
-msgid "Please provide the name of your custom field."
-msgstr ""
-
-#: ../views/admin.php:75
-msgid ""
-"Any changes made to WPP's default stylesheet will be lost after every plugin "
-"update. In order to prevent this from happening, please copy the wpp.css "
-"file (located at wp-content/plugins/wordpress-popular-posts/style) into your "
-"theme's directory"
-msgstr ""
-
-#: ../views/admin.php:90
-msgid ""
-"This operation will delete all entries from WordPress Popular Posts' cache "
-"table and cannot be undone."
-msgstr ""
-
-#: ../views/admin.php:90 ../views/admin.php:98 ../views/admin.php:106
-msgid "Do you want to continue?"
-msgstr ""
-
-#: ../views/admin.php:98
-msgid ""
-"This operation will delete all stored info from WordPress Popular Posts' "
-"data tables and cannot be undone."
-msgstr ""
-
-#: ../views/admin.php:106
-msgid "This operation will delete all cached thumbnails and cannot be undone."
-msgstr ""
-
-#: ../views/admin.php:123
-msgid "Stats"
-msgstr ""
-
-#: ../views/admin.php:124
-msgid "Tools"
-msgstr ""
-
-#: ../views/admin.php:125 ../views/admin.php:689
-msgid "Parameters"
-msgstr ""
-
-#: ../views/admin.php:126
-msgid "FAQ"
-msgstr ""
-
-#: ../views/admin.php:127
-msgid "About"
-msgstr ""
-
-#: ../views/admin.php:138
-msgid ""
-"Click on each tab to see what are the most popular entries on your blog in "
-"the last 24 hours, this week, last 30 days or all time since WordPress "
-"Popular Posts was installed."
-msgstr ""
-
-#: ../views/admin.php:144
-msgid "Order by comments"
-msgstr ""
-
-#: ../views/admin.php:145
-msgid "Order by views"
-msgstr ""
-
-#: ../views/admin.php:146
-msgid "Order by avg. daily views"
-msgstr ""
-
-#: ../views/admin.php:148
-msgid "Post type"
-msgstr ""
-
-#: ../views/admin.php:149
-msgid "Limit"
-msgstr ""
-
-#: ../views/admin.php:150 ../views/form.php:32
-msgid "Display only posts published within the selected Time Range"
-msgstr ""
-
-#: ../views/admin.php:152 ../views/admin.php:242 ../views/admin.php:308
-#: ../views/admin.php:345
-msgid "Apply"
-msgstr ""
-
-#: ../views/admin.php:158 ../views/form.php:26
-msgid "Last 24 hours"
-msgstr ""
-
-#: ../views/admin.php:159 ../views/form.php:27
-msgid "Last 7 days"
-msgstr ""
-
-#: ../views/admin.php:160 ../views/form.php:28
-msgid "Last 30 days"
-msgstr ""
-
-#: ../views/admin.php:161 ../views/form.php:29
-msgid "All-time"
-msgstr ""
-
-#: ../views/admin.php:183
-msgid "Thumbnails"
-msgstr ""
-
-#: ../views/admin.php:188
-msgid "Default thumbnail"
-msgstr ""
-
-#: ../views/admin.php:193
-msgid "Upload thumbnail"
-msgstr ""
-
-#: ../views/admin.php:195
-msgid ""
-"How-to: upload (or select) an image, set Size to Full and click on Upload. "
-"After it's done, hit on Apply to save changes"
-msgstr ""
-
-#: ../views/admin.php:199
-msgid "Pick image from"
-msgstr ""
-
-#: ../views/admin.php:202
-msgid "Featured image"
-msgstr ""
-
-#: ../views/admin.php:203
-msgid "First image on post"
-msgstr ""
-
-#: ../views/admin.php:204
-msgid "Custom field"
-msgstr ""
-
-#: ../views/admin.php:207
-msgid "Tell WordPress Popular Posts where it should get thumbnails from"
-msgstr ""
-
-#: ../views/admin.php:211
-msgid "Custom field name"
-msgstr ""
-
-#: ../views/admin.php:217
-msgid "Resize image from Custom field?"
-msgstr ""
-
-#: ../views/admin.php:220
-msgid "No, I will upload my own thumbnail"
-msgstr ""
-
-#: ../views/admin.php:221
-msgid "Yes"
-msgstr ""
-
-#: ../views/admin.php:232
-msgid "Empty image cache"
-msgstr ""
-
-#: ../views/admin.php:233
-msgid "Use this button to clear WPP's thumbnails cache"
-msgstr ""
-
-#: ../views/admin.php:251
-msgid "Data"
-msgstr ""
-
-#: ../views/admin.php:256
-msgid "Log views from"
-msgstr ""
-
-#: ../views/admin.php:259
-msgid "Visitors only"
-msgstr ""
-
-#: ../views/admin.php:260
-msgid "Logged-in users only"
-msgstr ""
-
-#: ../views/admin.php:261
-msgid "Everyone"
-msgstr ""
-
-#: ../views/admin.php:267
-msgid "Ajaxify widget"
-msgstr ""
-
-#: ../views/admin.php:270 ../views/admin.php:336
-msgid "Disabled"
-msgstr ""
-
-#: ../views/admin.php:271 ../views/admin.php:335
-msgid "Enabled"
-msgstr ""
-
-#: ../views/admin.php:275
-msgid ""
-"If you are using a caching plugin such as WP Super Cache, enabling this "
-"feature will keep the popular list from being cached by it"
-msgstr ""
-
-#: ../views/admin.php:279
-msgid "Listing refresh interval"
-msgstr ""
-
-#: ../views/admin.php:282
-msgid "Live"
-msgstr ""
-
-#: ../views/admin.php:283
-msgid "Custom interval"
-msgstr ""
-
-#: ../views/admin.php:287
-msgid ""
-"Sets how often the listing should be updated. For most sites the Live option "
-"should be fine, however if you are experiencing slowdowns or your blog gets "
-"a lot of visitors then you might want to change the refresh rate"
-msgstr ""
-
-#: ../views/admin.php:291
-msgid "Refresh list every"
-msgstr ""
-
-#: ../views/admin.php:295
-msgid "Hour(s)"
-msgstr ""
-
-#: ../views/admin.php:296
-msgid "Day(s)"
-msgstr ""
-
-#: ../views/admin.php:297
-msgid "Week(s)"
-msgstr ""
-
-#: ../views/admin.php:298
-msgid "Month(s)"
-msgstr ""
-
-#: ../views/admin.php:299
-msgid "Year(s)"
-msgstr ""
-
-#: ../views/admin.php:302
-msgid "Really? That long?"
-msgstr ""
-
-#: ../views/admin.php:317
-msgid "Miscellaneous"
-msgstr ""
-
-#: ../views/admin.php:322
-msgid "Open links in"
-msgstr ""
-
-#: ../views/admin.php:325
-msgid "Current window"
-msgstr ""
-
-#: ../views/admin.php:326
-msgid "New tab/window"
-msgstr ""
-
-#: ../views/admin.php:332
-msgid "Use plugin's stylesheet"
-msgstr ""
-
-#: ../views/admin.php:339
-msgid ""
-"By default, the plugin includes a stylesheet called wpp.css which you can "
-"use to style your popular posts listing. If you wish to use your own "
-"stylesheet or do not want it to have it included in the header section of "
-"your site, use this."
-msgstr ""
-
-#: ../views/admin.php:356
-msgid ""
-"WordPress Popular Posts maintains data in two separate tables: one for "
-"storing the most popular entries on a daily basis (from now on, \"cache\"), "
-"and another one to keep the All-time data (from now on, \"historical data\" "
-"or just \"data\"). If for some reason you need to clear the cache table, or "
-"even both historical and cache tables, please use the buttons below to do so."
-msgstr ""
-
-#: ../views/admin.php:357
-msgid "Empty cache"
-msgstr ""
-
-#: ../views/admin.php:357
-msgid "Use this button to manually clear entries from WPP cache only"
-msgstr ""
-
-#: ../views/admin.php:358
-msgid "Clear all data"
-msgstr ""
-
-#: ../views/admin.php:358
-msgid "Use this button to manually clear entries from all WPP data tables"
-msgstr ""
-
-#: ../views/admin.php:365
-#, php-format
-msgid ""
-"With the following parameters you can customize the popular posts list when "
-"using either the <a href=\"%1$s\">wpp_get_most_popular() template tag</a> or "
-"the <a href=\"%2$s\">[wpp] shortcode</a>."
-msgstr ""
-
-#: ../views/admin.php:373
-msgid "Parameter"
-msgstr ""
-
-#: ../views/admin.php:374 ../views/admin.php:688
-msgid "What it does "
-msgstr ""
-
-#: ../views/admin.php:375
-msgid "Possible values"
-msgstr ""
-
-#: ../views/admin.php:376
-msgid "Defaults to"
-msgstr ""
-
-#: ../views/admin.php:377 ../views/admin.php:690
-msgid "Example"
-msgstr ""
-
-#: ../views/admin.php:383
-msgid "Sets a heading for the list"
-msgstr ""
-
-#: ../views/admin.php:384 ../views/admin.php:391 ../views/admin.php:398
-#: ../views/admin.php:433 ../views/admin.php:440 ../views/admin.php:447
-#: ../views/admin.php:454 ../views/admin.php:545 ../views/admin.php:559
-#: ../views/admin.php:566
-msgid "Text string"
-msgstr ""
-
-#: ../views/admin.php:385
-msgid "Popular Posts"
-msgstr ""
-
-#: ../views/admin.php:390
-msgid "Set the opening tag for the heading of the list"
-msgstr ""
-
-#: ../views/admin.php:397
-msgid "Set the closing tag for the heading of the list"
-msgstr ""
-
-#: ../views/admin.php:404
-msgid "Sets the maximum number of popular posts to be shown on the listing"
-msgstr ""
-
-#: ../views/admin.php:405 ../views/admin.php:461 ../views/admin.php:475
-#: ../views/admin.php:496 ../views/admin.php:503
-msgid "Positive integer"
-msgstr ""
-
-#: ../views/admin.php:411
-msgid ""
-"Tells WordPress Popular Posts to retrieve the most popular entries within "
-"the time range specified by you"
-msgstr ""
-
-#: ../views/admin.php:418
-msgid ""
-"Tells WordPress Popular Posts to retrieve the most popular entries published "
-"within the time range specified by you"
-msgstr ""
-
-#: ../views/admin.php:425
-msgid "Sets the sorting option of the popular posts"
-msgstr ""
-
-#: ../views/admin.php:426
-msgid "(for average views per day)"
-msgstr ""
-
-#: ../views/admin.php:432
-msgid "Defines the type of posts to show on the listing"
-msgstr ""
-
-#: ../views/admin.php:439
-msgid ""
-"If set, WordPress Popular Posts will exclude the specified post(s) ID(s) "
-"form the listing."
-msgstr ""
-
-#: ../views/admin.php:441 ../views/admin.php:448 ../views/admin.php:455
-msgid "None"
-msgstr ""
-
-#: ../views/admin.php:446
-msgid ""
-"If set, WordPress Popular Posts will retrieve all entries that belong to the "
-"specified category(ies) ID(s). If a minus sign is used, the category(ies) "
-"will be excluded instead."
-msgstr ""
-
-#: ../views/admin.php:453
-msgid ""
-"If set, WordPress Popular Posts will retrieve all entries created by "
-"specified author(s) ID(s)."
-msgstr ""
-
-#: ../views/admin.php:460
-msgid ""
-"If set, WordPress Popular Posts will shorten each post title to \"n\" "
-"characters whenever possible"
-msgstr ""
-
-#: ../views/admin.php:467
-msgid ""
-"If set to 1, WordPress Popular Posts will shorten each post title to \"n\" "
-"words instead of characters"
-msgstr ""
-
-#: ../views/admin.php:474
-msgid ""
-"If set, WordPress Popular Posts will build and include an excerpt of \"n\" "
-"characters long from the content of each post listed as popular"
-msgstr ""
-
-#: ../views/admin.php:481
-msgid ""
-"If set, WordPress Popular Posts will maintaing all styling tags (strong, "
-"italic, etc) and hyperlinks found in the excerpt"
-msgstr ""
-
-#: ../views/admin.php:488
-msgid ""
-"If set to 1, WordPress Popular Posts will shorten the excerpt to \"n\" words "
-"instead of characters"
-msgstr ""
-
-#: ../views/admin.php:495
-msgid ""
-"If set, and if your current server configuration allows it, you will be able "
-"to display thumbnails of your posts. This attribute sets the width for "
-"thumbnails"
-msgstr ""
-
-#: ../views/admin.php:502
-msgid ""
-"If set, and if your current server configuration allows it, you will be able "
-"to display thumbnails of your posts. This attribute sets the height for "
-"thumbnails"
-msgstr ""
-
-#: ../views/admin.php:509
-msgid ""
-"If set, and if the WP-PostRatings plugin is installed and enabled on your "
-"blog, WordPress Popular Posts will show how your visitors are rating your "
-"entries"
-msgstr ""
-
-#: ../views/admin.php:516
-msgid ""
-"If set, WordPress Popular Posts will show how many comments each popular "
-"post has got until now"
-msgstr ""
-
-#: ../views/admin.php:523
-msgid ""
-"If set, WordPress Popular Posts will show how many views each popular post "
-"has got since it was installed"
-msgstr ""
-
-#: ../views/admin.php:530
-msgid ""
-"If set, WordPress Popular Posts will show who published each popular post on "
-"the list"
-msgstr ""
-
-#: ../views/admin.php:537
-msgid ""
-"If set, WordPress Popular Posts will display the date when each popular post "
-"on the list was published"
-msgstr ""
-
-#: ../views/admin.php:544
-msgid "Sets the date format"
-msgstr ""
-
-#: ../views/admin.php:551
-msgid "If set, WordPress Popular Posts will display the category"
-msgstr ""
-
-#: ../views/admin.php:558
-msgid "Sets the opening tag for the listing"
-msgstr ""
-
-#: ../views/admin.php:565
-msgid "Sets the closing tag for the listing"
-msgstr ""
-
-#: ../views/admin.php:572
-msgid "Sets the HTML structure of each post"
-msgstr ""
-
-#: ../views/admin.php:573
-msgid "Text string, custom HTML"
-msgstr ""
-
-#: ../views/admin.php:573
-msgid "Available Content Tags"
-msgstr ""
-
-#: ../views/admin.php:573
-msgid "displays thumbnail linked to post/page"
-msgstr ""
-
-#: ../views/admin.php:573
-msgid "displays linked post/page title"
-msgstr ""
-
-#: ../views/admin.php:573
-msgid ""
-"displays post/page excerpt, and requires excerpt_length to be greater than 0"
-msgstr ""
-
-#: ../views/admin.php:573
-msgid "displays the default stats tags"
-msgstr ""
-
-#: ../views/admin.php:573
-msgid ""
-"displays post/page current rating, requires WP-PostRatings installed and "
-"enabled"
-msgstr ""
-
-#: ../views/admin.php:573
-msgid ""
-"displays post/page current rating as an integer, requires WP-PostRatings "
-"installed and enabled"
-msgstr ""
-
-#: ../views/admin.php:573
-msgid "outputs the URL of the post/page"
-msgstr ""
-
-#: ../views/admin.php:573
-msgid "displays post/page title, no link"
-msgstr ""
-
-#: ../views/admin.php:573
-msgid "displays linked author name, requires stats_author=1"
-msgstr ""
-
-#: ../views/admin.php:573
-msgid "displays linked category name, requires stats_category=1"
-msgstr ""
-
-#: ../views/admin.php:573
-msgid "displays views count only, no text"
-msgstr ""
-
-#: ../views/admin.php:573
-msgid "displays comments count only, no text, requires stats_comments=1"
-msgstr ""
-
-#: ../views/admin.php:585
-msgid "What does \"Title\" do?"
-msgstr ""
-
-#: ../views/admin.php:588
-msgid ""
-"It allows you to show a heading for your most popular posts listing. If left "
-"empty, no heading will be displayed at all."
-msgstr ""
-
-#: ../views/admin.php:591
-msgid "What is Time Range for?"
-msgstr ""
-
-#: ../views/admin.php:593
-msgid ""
-"It will tell WordPress Popular Posts to retrieve all posts with most views / "
-"comments within the selected time range."
-msgstr ""
-
-#: ../views/admin.php:596
-msgid "What is \"Sort post by\" for?"
-msgstr ""
-
-#: ../views/admin.php:598
-msgid ""
-"It allows you to decide whether to order your popular posts listing by total "
-"views, comments, or average views per day."
-msgstr ""
-
-#: ../views/admin.php:601
-msgid "What does \"Display post rating\" do?"
-msgstr ""
-
-#: ../views/admin.php:603
-msgid ""
-"If checked, WordPress Popular Posts will show how your readers are rating "
-"your most popular posts. This feature requires having WP-PostRatings plugin "
-"installed and enabled on your blog for it to work."
-msgstr ""
-
-#: ../views/admin.php:606
-msgid "What does \"Shorten title\" do?"
-msgstr ""
-
-#: ../views/admin.php:608
-msgid ""
-"If checked, all posts titles will be shortened to \"n\" characters/words. A "
-"new \"Shorten title to\" option will appear so you can set it to whatever "
-"you like."
-msgstr ""
-
-#: ../views/admin.php:611
-msgid "What does \"Display post excerpt\" do?"
-msgstr ""
-
-#: ../views/admin.php:613
-msgid ""
-"If checked, WordPress Popular Posts will also include a small extract of "
-"your posts in the list. Similarly to the previous option, you will be able "
-"to decide how long the post excerpt should be."
-msgstr ""
-
-#: ../views/admin.php:616
-msgid "What does \"Keep text format and links\" do?"
-msgstr ""
-
-#: ../views/admin.php:618
-msgid ""
-"If checked, and if the Post Excerpt feature is enabled, WordPress Popular "
-"Posts will keep the styling tags (eg. bold, italic, etc) that were found in "
-"the excerpt. Hyperlinks will remain intact, too."
-msgstr ""
-
-#: ../views/admin.php:621
-msgid "What is \"Post type\" for?"
-msgstr ""
-
-#: ../views/admin.php:623
-msgid ""
-"This filter allows you to decide which post types to show on the listing. By "
-"default, it will retrieve only posts and pages (which should be fine for "
-"most cases)."
-msgstr ""
-
-#: ../views/admin.php:626
-msgid "What is \"Category(ies) ID(s)\" for?"
-msgstr ""
-
-#: ../views/admin.php:628
-msgid ""
-"This filter allows you to select which categories should be included or "
-"excluded from the listing. A negative sign in front of the category ID "
-"number will exclude posts belonging to it from the list, for example. You "
-"can specify more than one ID with a comma separated list."
-msgstr ""
-
-#: ../views/admin.php:631
-msgid "What is \"Author(s) ID(s)\" for?"
-msgstr ""
-
-#: ../views/admin.php:633
-msgid ""
-"Just like the Category filter, this one lets you filter posts by author ID. "
-"You can specify more than one ID with a comma separated list."
-msgstr ""
-
-#: ../views/admin.php:636
-msgid "What does \"Display post thumbnail\" do?"
-msgstr ""
-
-#: ../views/admin.php:638
-msgid ""
-"If checked, WordPress Popular Posts will attempt to retrieve the thumbnail "
-"of each post. You can set up the source of the thumbnail via Settings - "
-"WordPress Popular Posts - Tools."
-msgstr ""
-
-#: ../views/admin.php:641
-msgid "What does \"Display comment count\" do?"
-msgstr ""
-
-#: ../views/admin.php:643
-msgid ""
-"If checked, WordPress Popular Posts will display how many comments each "
-"popular post has got in the selected Time Range."
-msgstr ""
-
-#: ../views/admin.php:646
-msgid "What does \"Display views\" do?"
-msgstr ""
-
-#: ../views/admin.php:648
-msgid ""
-"If checked, WordPress Popular Posts will show how many pageviews a single "
-"post has gotten in the selected Time Range."
-msgstr ""
-
-#: ../views/admin.php:651
-msgid "What does \"Display author\" do?"
-msgstr ""
-
-#: ../views/admin.php:653
-msgid ""
-"If checked, WordPress Popular Posts will display the name of the author of "
-"each entry listed."
-msgstr ""
-
-#: ../views/admin.php:656
-msgid "What does \"Display date\" do?"
-msgstr ""
-
-#: ../views/admin.php:658
-msgid ""
-"If checked, WordPress Popular Posts will display the date when each popular "
-"posts was published."
-msgstr ""
-
-#: ../views/admin.php:661
-msgid "What does \"Display category\" do?"
-msgstr ""
-
-#: ../views/admin.php:663
-msgid ""
-"If checked, WordPress Popular Posts will display the category of each post."
-msgstr ""
-
-#: ../views/admin.php:666
-msgid "What does \"Use custom HTML Markup\" do?"
-msgstr ""
-
-#: ../views/admin.php:668
-msgid ""
-"If checked, you will be able to customize the HTML markup of your popular "
-"posts listing. For example, you can decide whether to wrap your posts in an "
-"unordered list, an ordered list, a div, etc. If you know xHTML/CSS, this is "
-"for you!"
-msgstr ""
-
-#: ../views/admin.php:671
-msgid "What are \"Content Tags\"?"
-msgstr ""
-
-#: ../views/admin.php:673
-#, php-format
-msgid ""
-"Content Tags are codes to display a variety of items on your popular posts "
-"custom HTML structure. For example, setting it to \"{title}: "
-"{summary}\" (without the quotes) would display \"Post title: excerpt of the "
-"post here\". For more Content Tags, see the <a href=\"%s\" target=\"_blank"
-"\">Parameters</a> section."
-msgstr ""
-
-#: ../views/admin.php:676
-msgid "What are \"Template Tags\"?"
-msgstr ""
-
-#: ../views/admin.php:678
-msgid ""
-"Template Tags are simply php functions that allow you to perform certain "
-"actions. For example, WordPress Popular Posts currently supports two "
-"different template tags: wpp_get_mostpopular() and wpp_get_views()."
-msgstr ""
-
-#: ../views/admin.php:681
-msgid "What are the template tags that WordPress Popular Posts supports?"
-msgstr ""
-
-#: ../views/admin.php:683
-msgid ""
-"The following are the template tags supported by WordPress Popular Posts"
-msgstr ""
-
-#: ../views/admin.php:687
-msgid "Template tag"
-msgstr ""
-
-#: ../views/admin.php:696
-#, php-format
-msgid ""
-"Similar to the widget functionality, this tag retrieves the most popular "
-"posts on your blog. This function also accepts <a href=\"%1$s\">parameters</"
-"a> so you can customize your popular listing, but these are not required."
-msgstr ""
-
-#: ../views/admin.php:697
-#, php-format
-msgid ""
-"Please refer to the <a href=\"%1$s\">Parameters section</a> for a complete "
-"list of attributes."
-msgstr ""
-
-#: ../views/admin.php:702
-msgid ""
-"Displays the number of views of a single post. Post ID is required or it "
-"will return false."
-msgstr ""
-
-#: ../views/admin.php:703
-msgid "Post ID"
-msgstr ""
-
-#: ../views/admin.php:710
-msgid "What are \"shortcodes\"?"
-msgstr ""
-
-#: ../views/admin.php:712
-#, php-format
-msgid ""
-"Shortcodes are similar to BB Codes, these allow us to call a php function by "
-"simply typing something like [shortcode]. With WordPress Popular Posts, the "
-"shortcode [wpp] will let you insert a list of the most popular posts in "
-"posts content and pages too! For more information about shortcodes, please "
-"visit the <a href=\"%s\" target=\"_blank\">WordPress Shortcode API</a> page."
-msgstr ""
-
-#: ../views/admin.php:721
-#, php-format
-msgid "About WordPress Popular Posts %s"
-msgstr ""
-
-#: ../views/admin.php:722
-msgid "This version includes the following changes"
-msgstr ""
-
-#: ../views/admin.php:741
-msgid "Do you like this plugin?"
-msgstr ""
-
-#: ../views/admin.php:748
-msgid ""
-"Each donation motivates me to keep releasing free stuff for the WordPress "
-"community!"
-msgstr ""
-
-#: ../views/admin.php:749
-#, php-format
-msgid "You can <a href=\"%s\" target=\"_blank\">leave a review</a>, too!"
-msgstr ""
-
-#: ../views/admin.php:753
-msgid "Need help?"
-msgstr ""
-
-#: ../views/admin.php:754
-#, php-format
-msgid ""
-"Visit <a href=\"%s\" target=\"_blank\">the forum</a> for support, questions "
-"and feedback."
-msgstr ""
-
-#: ../views/admin.php:755
-msgid "Let's make this plugin even better!"
-msgstr ""
-
-#: ../views/form.php:2
-msgid "Title"
-msgstr ""
-
-#: ../views/form.php:2 ../views/form.php:12 ../views/form.php:24
-#: ../views/form.php:34 ../views/form.php:40 ../views/form.php:43
-#: ../views/form.php:52 ../views/form.php:55 ../views/form.php:63
-#: ../views/form.php:66 ../views/form.php:73 ../views/form.php:87
-#: ../views/form.php:89 ../views/form.php:91 ../views/form.php:93
-#: ../views/form.php:105 ../views/form.php:111
-msgid "What is this?"
-msgstr ""
-
-#: ../views/form.php:7
-msgid "Show up to"
-msgstr ""
-
-#: ../views/form.php:8
-msgid "posts"
-msgstr ""
-
-#: ../views/form.php:12
-msgid "Sort posts by"
-msgstr ""
-
-#: ../views/form.php:14
-msgid "Comments"
-msgstr ""
-
-#: ../views/form.php:15
-msgid "Total views"
-msgstr ""
-
-#: ../views/form.php:16
-msgid "Avg. daily views"
-msgstr ""
-
-#: ../views/form.php:22
-msgid "Filters"
-msgstr ""
-
-#: ../views/form.php:24
-msgid "Time Range"
-msgstr ""
-
-#: ../views/form.php:34
-msgid "Post type(s)"
-msgstr ""
-
-#: ../views/form.php:37
-msgid "Post(s) ID(s) to exclude"
-msgstr ""
-
-#: ../views/form.php:40
-msgid "Category(ies) ID(s)"
-msgstr ""
-
-#: ../views/form.php:43
-msgid "Author(s) ID(s)"
-msgstr ""
-
-#: ../views/form.php:48
-msgid "Posts settings"
-msgstr ""
-
-#: ../views/form.php:52
-msgid "Display post rating"
-msgstr ""
-
-#: ../views/form.php:55
-msgid "Shorten title"
-msgstr ""
-
-#: ../views/form.php:58
-msgid "Shorten title to"
-msgstr ""
-
-#: ../views/form.php:59 ../views/form.php:69
-msgid "characters"
-msgstr ""
-
-#: ../views/form.php:60 ../views/form.php:70
-msgid "words"
-msgstr ""
-
-#: ../views/form.php:63
-msgid "Display post excerpt"
-msgstr ""
-
-#: ../views/form.php:66
-msgid "Keep text format and links"
-msgstr ""
-
-#: ../views/form.php:67
-msgid "Excerpt length"
-msgstr ""
-
-#: ../views/form.php:73
-msgid "Display post thumbnail"
-msgstr ""
-
-#: ../views/form.php:76
-msgid "Width"
-msgstr ""
-
-#: ../views/form.php:77 ../views/form.php:80
-msgid "px"
-msgstr ""
-
-#: ../views/form.php:79
-msgid "Height"
-msgstr ""
-
-#: ../views/form.php:85
-msgid "Stats Tag settings"
-msgstr ""
-
-#: ../views/form.php:87
-msgid "Display comment count"
-msgstr ""
-
-#: ../views/form.php:89
-msgid "Display views"
-msgstr ""
-
-#: ../views/form.php:91
-msgid "Display author"
-msgstr ""
-
-#: ../views/form.php:93
-msgid "Display date"
-msgstr ""
-
-#: ../views/form.php:96
-msgid "Date Format"
-msgstr ""
-
-#: ../views/form.php:98
-msgid "WordPress Date Format"
-msgstr ""
-
-#: ../views/form.php:105
-msgid "Display category"
-msgstr ""
-
-#: ../views/form.php:109
-msgid "HTML Markup settings"
-msgstr ""
-
-#: ../views/form.php:111
-msgid "Use custom HTML Markup"
-msgstr ""
-
-#: ../views/form.php:114
-msgid "Before / after title"
-msgstr ""
-
-#: ../views/form.php:117
-msgid "Before / after Popular Posts"
-msgstr ""
-
-#: ../views/form.php:120
-msgid "Post HTML Markup"
-msgstr ""
-
-#: ../wordpress-popular-posts.php:276
-msgid "The most Popular Posts on your blog."
-msgstr ""
-
-#: ../wordpress-popular-posts.php:433
-msgid ""
-"Error: cannot ajaxify WordPress Popular Posts on this theme. It's missing "
-"the <em>id</em> attribute on before_widget (see <a href=\"http://codex."
-"wordpress.org/Function_Reference/register_sidebar\" target=\"_blank\" rel="
-"\"nofollow\">register_sidebar</a> for more)."
-msgstr ""
-
-#: ../wordpress-popular-posts.php:658
-msgid "Upload"
-msgstr ""
-
-#: ../wordpress-popular-posts.php:1032
-#, php-format
-msgid ""
-"Your PHP installation is too old. WordPress Popular Posts requires at least "
-"PHP version %1$s to function correctly. Please contact your hosting provider "
-"and ask them to upgrade PHP to %1$s or higher."
-msgstr ""
-
-#: ../wordpress-popular-posts.php:1039
-#, php-format
-msgid ""
-"Your WordPress version is too old. WordPress Popular Posts requires at least "
-"WordPress version %1$s to function correctly. Please update your blog via "
-"Dashboard &gt; Update."
-msgstr ""
-
-#: ../wordpress-popular-posts.php:1064
-#, php-format
-msgid ""
-"<div class=\"error\"><p>%1$s</p><p><i>%2$s</i> has been <strong>deactivated</"
-"strong>.</p></div>"
-msgstr ""
-
-#: ../wordpress-popular-posts.php:1124
-msgid "Success! The cache table has been cleared!"
-msgstr ""
-
-#: ../wordpress-popular-posts.php:1126
-msgid "Error: cache table does not exist."
-msgstr ""
-
-#: ../wordpress-popular-posts.php:1133
-msgid "Success! All data have been cleared!"
-msgstr ""
-
-#: ../wordpress-popular-posts.php:1135
-msgid "Error: one or both data tables are missing."
-msgstr ""
-
-#: ../wordpress-popular-posts.php:1138 ../wordpress-popular-posts.php:1176
-msgid "Invalid action."
-msgstr ""
-
-#: ../wordpress-popular-posts.php:1141 ../wordpress-popular-posts.php:1179
-msgid ""
-"Sorry, you do not have enough permissions to do this. Please contact the "
-"site administrator for support."
-msgstr ""
-
-#: ../wordpress-popular-posts.php:1171
-msgid "Success! All files have been deleted!"
-msgstr ""
-
-#: ../wordpress-popular-posts.php:1173
-msgid "The thumbnail cache is already empty!"
-msgstr ""
-
-#: ../wordpress-popular-posts.php:1696
-msgid "Sorry. No data so far."
-msgstr ""
-
-#: ../wordpress-popular-posts.php:2156
-#, php-format
-msgid "1 comment"
-msgid_plural "%s comments"
-msgstr[0] ""
-msgstr[1] ""
-
-#: ../wordpress-popular-posts.php:2168
-#, php-format
-msgid "1 view per day"
-msgid_plural "%s views per day"
-msgstr[0] ""
-msgstr[1] ""
-
-#: ../wordpress-popular-posts.php:2174
-#, php-format
-msgid "1 view"
-msgid_plural "%s views"
-msgstr[0] ""
-msgstr[1] ""
-
-#: ../wordpress-popular-posts.php:2186
-#, php-format
-msgid "by %s"
-msgstr ""
-
-#: ../wordpress-popular-posts.php:2192
-#, php-format
-msgid "posted on %s"
-msgstr ""
-
-#: ../wordpress-popular-posts.php:2200
-#, php-format
-msgid "under %s"
-msgstr ""
+# Copyright (C) 2014 Wordpress Popular Posts
+# This file is distributed under the same license as the Wordpress Popular Posts package.
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: Wordpress Popular Posts\n"
+"Report-Msgid-Bugs-To: http://wordpress.org/tag/wordpress-popular-posts\n"
+"POT-Creation-Date: 2015-06-12 21:35-0430\n"
+"PO-Revision-Date: 2015-04-24 13:30-0430\n"
+"Last-Translator: Héctor Cabrera <hcabrerab@gmail.com>\n"
+"Language-Team: Héctor Cabrera <hcabrerab@gmail.com>\n"
+"Language: en\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"X-Generator: Poedit 1.8.1\n"
+"X-Poedit-KeywordsList: _e;__;__ngettext;__ngettext_noop;_n_noop;_x;_nx;_nx_noop;_ex;"
+"esc_attr__;esc_attr_e;esc_attr_x;esc_html__;esc_html_e;esc_html_x;_c;_nc;_n:1,2\n"
+"X-Poedit-Basepath: .\n"
+"X-Poedit-SourceCharset: UTF-8\n"
+"X-Poedit-SearchPath-0: .\n"
+"X-Poedit-SearchPath-1: ..\n"
+
+#: ../views/admin.php:25 ../views/admin.php:34 ../views/admin.php:49
+#: ../views/admin.php:75
+msgid "Settings saved."
+msgstr ""
+
+#: ../views/admin.php:40
+msgid "Please provide the name of your custom field."
+msgstr ""
+
+#: ../views/admin.php:81
+msgid ""
+"Any changes made to WPP's default stylesheet will be lost after every plugin update. "
+"In order to prevent this from happening, please copy the wpp.css file (located at wp-"
+"content/plugins/wordpress-popular-posts/style) into your theme's directory"
+msgstr ""
+
+#: ../views/admin.php:96
+msgid ""
+"This operation will delete all entries from WordPress Popular Posts' cache table and "
+"cannot be undone."
+msgstr ""
+
+#: ../views/admin.php:96 ../views/admin.php:104 ../views/admin.php:112
+msgid "Do you want to continue?"
+msgstr ""
+
+#: ../views/admin.php:104
+msgid ""
+"This operation will delete all stored info from WordPress Popular Posts' data tables "
+"and cannot be undone."
+msgstr ""
+
+#: ../views/admin.php:112
+msgid "This operation will delete all cached thumbnails and cannot be undone."
+msgstr ""
+
+#: ../views/admin.php:146
+msgid "Stats"
+msgstr ""
+
+#: ../views/admin.php:147
+msgid "Tools"
+msgstr ""
+
+#: ../views/admin.php:148 ../views/admin.php:747
+msgid "Parameters"
+msgstr ""
+
+#: ../views/admin.php:149
+msgid "FAQ"
+msgstr ""
+
+#: ../views/admin.php:150
+msgid "About"
+msgstr ""
+
+#: ../views/admin.php:161
+msgid ""
+"Click on each tab to see what are the most popular entries on your blog in the last 24 "
+"hours, this week, last 30 days or all time since WordPress Popular Posts was installed."
+msgstr ""
+
+#: ../views/admin.php:167
+msgid "Order by comments"
+msgstr ""
+
+#: ../views/admin.php:168
+msgid "Order by views"
+msgstr ""
+
+#: ../views/admin.php:169
+msgid "Order by avg. daily views"
+msgstr ""
+
+#: ../views/admin.php:171
+msgid "Post type"
+msgstr ""
+
+#: ../views/admin.php:172
+msgid "Limit"
+msgstr ""
+
+#: ../views/admin.php:174 ../views/admin.php:279 ../views/admin.php:366
+#: ../views/admin.php:403
+msgid "Apply"
+msgstr ""
+
+#: ../views/admin.php:177 ../views/form.php:32
+msgid "Display only posts published within the selected Time Range"
+msgstr ""
+
+#: ../views/admin.php:184 ../views/form.php:26
+msgid "Last 24 hours"
+msgstr ""
+
+#: ../views/admin.php:185 ../views/form.php:27
+msgid "Last 7 days"
+msgstr ""
+
+#: ../views/admin.php:186 ../views/form.php:28
+msgid "Last 30 days"
+msgstr ""
+
+#: ../views/admin.php:187 ../views/form.php:29
+msgid "All-time"
+msgstr ""
+
+#: ../views/admin.php:209
+msgid "Thumbnails"
+msgstr ""
+
+#: ../views/admin.php:214
+msgid "Default thumbnail"
+msgstr ""
+
+#: ../views/admin.php:219
+msgid "Upload thumbnail"
+msgstr ""
+
+#: ../views/admin.php:221
+msgid ""
+"How-to: upload (or select) an image, set Size to Full and click on Upload. After it's "
+"done, hit on Apply to save changes"
+msgstr ""
+
+#: ../views/admin.php:225
+msgid "Pick image from"
+msgstr ""
+
+#: ../views/admin.php:228
+msgid "Featured image"
+msgstr ""
+
+#: ../views/admin.php:229
+msgid "First image on post"
+msgstr ""
+
+#: ../views/admin.php:230
+msgid "Custom field"
+msgstr ""
+
+#: ../views/admin.php:233
+msgid "Tell WordPress Popular Posts where it should get thumbnails from"
+msgstr ""
+
+#: ../views/admin.php:237
+msgid "Custom field name"
+msgstr ""
+
+#: ../views/admin.php:243
+msgid "Resize image from Custom field?"
+msgstr ""
+
+#: ../views/admin.php:246
+msgid "No, I will upload my own thumbnail"
+msgstr ""
+
+#: ../views/admin.php:247
+msgid "Yes"
+msgstr ""
+
+#: ../views/admin.php:252
+msgid "Responsive support"
+msgstr ""
+
+#: ../views/admin.php:255 ../views/admin.php:308 ../views/admin.php:348
+#: ../views/admin.php:393
+msgid "Enabled"
+msgstr ""
+
+#: ../views/admin.php:256 ../views/admin.php:307 ../views/admin.php:347
+#: ../views/admin.php:394
+msgid "Disabled"
+msgstr ""
+
+#: ../views/admin.php:259
+msgid ""
+"If enabled, WordPress Popular Posts will strip height and width attributes out of "
+"thumbnails' image tags"
+msgstr ""
+
+#: ../views/admin.php:269
+msgid "Empty image cache"
+msgstr ""
+
+#: ../views/admin.php:270
+msgid "Use this button to clear WPP's thumbnails cache"
+msgstr ""
+
+#: ../views/admin.php:288
+msgid "Data"
+msgstr ""
+
+#: ../views/admin.php:293
+msgid "Log views from"
+msgstr ""
+
+#: ../views/admin.php:296
+msgid "Visitors only"
+msgstr ""
+
+#: ../views/admin.php:297
+msgid "Logged-in users only"
+msgstr ""
+
+#: ../views/admin.php:298
+msgid "Everyone"
+msgstr ""
+
+#: ../views/admin.php:304
+msgid "Ajaxify widget"
+msgstr ""
+
+#: ../views/admin.php:312
+msgid ""
+"If you are using a caching plugin such as WP Super Cache, enabling this feature will "
+"keep the popular list from being cached by it"
+msgstr ""
+
+#: ../views/admin.php:316
+msgid "WPP Cache Expiry Policy"
+msgstr ""
+
+#: ../views/admin.php:316 ../views/admin.php:344 ../views/form.php:2
+#: ../views/form.php:12 ../views/form.php:24 ../views/form.php:34 ../views/form.php:40
+#: ../views/form.php:43 ../views/form.php:52 ../views/form.php:55 ../views/form.php:63
+#: ../views/form.php:66 ../views/form.php:73 ../views/form.php:101 ../views/form.php:103
+#: ../views/form.php:105 ../views/form.php:107 ../views/form.php:119
+#: ../views/form.php:125
+msgid "What is this?"
+msgstr ""
+
+#: ../views/admin.php:319
+msgid "Never cache"
+msgstr ""
+
+#: ../views/admin.php:320
+msgid "Enable caching"
+msgstr ""
+
+#: ../views/admin.php:324
+msgid ""
+"Sets WPP's cache expiration time. WPP can cache the popular list for a specified "
+"amount of time. Recommended for large / high traffic sites"
+msgstr ""
+
+#: ../views/admin.php:328
+msgid "Refresh cache every"
+msgstr ""
+
+#: ../views/admin.php:332
+msgid "Minute(s)"
+msgstr ""
+
+#: ../views/admin.php:333
+msgid "Hour(s)"
+msgstr ""
+
+#: ../views/admin.php:334
+msgid "Day(s)"
+msgstr ""
+
+#: ../views/admin.php:335
+msgid "Week(s)"
+msgstr ""
+
+#: ../views/admin.php:336
+msgid "Month(s)"
+msgstr ""
+
+#: ../views/admin.php:337
+msgid "Year(s)"
+msgstr ""
+
+#: ../views/admin.php:340
+msgid "Really? That long?"
+msgstr ""
+
+#: ../views/admin.php:344
+msgid "Data Sampling"
+msgstr ""
+
+#: ../views/admin.php:352
+#, php-format
+msgid ""
+"By default, WordPress Popular Posts stores in database every single visit your site "
+"receives. For small / medium sites this is generally OK, but on large / high traffic "
+"sites the constant writing to the database may have an impact on performance. With <a "
+"href=\"%1$s\" target=\"_blank\">data sampling</a>, WordPress Popular Posts will store "
+"only a subset of your traffic and report on the tendencies detected in that sample set "
+"(for more, <a href=\"%2$s\" target=\"_blank\">please read here</a>)"
+msgstr ""
+
+#: ../views/admin.php:356
+msgid "Sample Rate"
+msgstr ""
+
+#: ../views/admin.php:360
+#, php-format
+msgid ""
+"A sampling rate of %d is recommended for large / high traffic sites. For lower traffic "
+"sites, you should lower the value"
+msgstr ""
+
+#: ../views/admin.php:375
+msgid "Miscellaneous"
+msgstr ""
+
+#: ../views/admin.php:380
+msgid "Open links in"
+msgstr ""
+
+#: ../views/admin.php:383
+msgid "Current window"
+msgstr ""
+
+#: ../views/admin.php:384
+msgid "New tab/window"
+msgstr ""
+
+#: ../views/admin.php:390
+msgid "Use plugin's stylesheet"
+msgstr ""
+
+#: ../views/admin.php:397
+msgid ""
+"By default, the plugin includes a stylesheet called wpp.css which you can use to style "
+"your popular posts listing. If you wish to use your own stylesheet or do not want it "
+"to have it included in the header section of your site, use this."
+msgstr ""
+
+#: ../views/admin.php:414
+msgid ""
+"WordPress Popular Posts maintains data in two separate tables: one for storing the "
+"most popular entries on a daily basis (from now on, \"cache\"), and another one to "
+"keep the All-time data (from now on, \"historical data\" or just \"data\"). If for "
+"some reason you need to clear the cache table, or even both historical and cache "
+"tables, please use the buttons below to do so."
+msgstr ""
+
+#: ../views/admin.php:415
+msgid "Empty cache"
+msgstr ""
+
+#: ../views/admin.php:415
+msgid "Use this button to manually clear entries from WPP cache only"
+msgstr ""
+
+#: ../views/admin.php:416
+msgid "Clear all data"
+msgstr ""
+
+#: ../views/admin.php:416
+msgid "Use this button to manually clear entries from all WPP data tables"
+msgstr ""
+
+#: ../views/admin.php:423
+#, php-format
+msgid ""
+"With the following parameters you can customize the popular posts list when using "
+"either the <a href=\"%1$s\">wpp_get_most_popular() template tag</a> or the <a href="
+"\"%2$s\">[wpp] shortcode</a>."
+msgstr ""
+
+#: ../views/admin.php:431
+msgid "Parameter"
+msgstr ""
+
+#: ../views/admin.php:432 ../views/admin.php:746
+msgid "What it does "
+msgstr ""
+
+#: ../views/admin.php:433
+msgid "Possible values"
+msgstr ""
+
+#: ../views/admin.php:434
+msgid "Defaults to"
+msgstr ""
+
+#: ../views/admin.php:435 ../views/admin.php:748
+msgid "Example"
+msgstr ""
+
+#: ../views/admin.php:441
+msgid "Sets a heading for the list"
+msgstr ""
+
+#: ../views/admin.php:442 ../views/admin.php:449 ../views/admin.php:456
+#: ../views/admin.php:491 ../views/admin.php:498 ../views/admin.php:505
+#: ../views/admin.php:512 ../views/admin.php:603 ../views/admin.php:617
+#: ../views/admin.php:624
+msgid "Text string"
+msgstr ""
+
+#: ../views/admin.php:443 ../views/admin.php:499 ../views/admin.php:506
+#: ../views/admin.php:513
+msgid "None"
+msgstr ""
+
+#: ../views/admin.php:448
+msgid "Set the opening tag for the heading of the list"
+msgstr ""
+
+#: ../views/admin.php:455
+msgid "Set the closing tag for the heading of the list"
+msgstr ""
+
+#: ../views/admin.php:462
+msgid "Sets the maximum number of popular posts to be shown on the listing"
+msgstr ""
+
+#: ../views/admin.php:463 ../views/admin.php:519 ../views/admin.php:533
+#: ../views/admin.php:554 ../views/admin.php:561
+msgid "Positive integer"
+msgstr ""
+
+#: ../views/admin.php:469
+msgid ""
+"Tells WordPress Popular Posts to retrieve the most popular entries within the time "
+"range specified by you"
+msgstr ""
+
+#: ../views/admin.php:476
+msgid ""
+"Tells WordPress Popular Posts to retrieve the most popular entries published within "
+"the time range specified by you"
+msgstr ""
+
+#: ../views/admin.php:483
+msgid "Sets the sorting option of the popular posts"
+msgstr ""
+
+#: ../views/admin.php:484
+msgid "(for average views per day)"
+msgstr ""
+
+#: ../views/admin.php:490
+msgid "Defines the type of posts to show on the listing"
+msgstr ""
+
+#: ../views/admin.php:497
+msgid ""
+"If set, WordPress Popular Posts will exclude the specified post(s) ID(s) form the "
+"listing."
+msgstr ""
+
+#: ../views/admin.php:504
+msgid ""
+"If set, WordPress Popular Posts will retrieve all entries that belong to the specified "
+"category(ies) ID(s). If a minus sign is used, the category(ies) will be excluded "
+"instead."
+msgstr ""
+
+#: ../views/admin.php:511
+msgid ""
+"If set, WordPress Popular Posts will retrieve all entries created by specified "
+"author(s) ID(s)."
+msgstr ""
+
+#: ../views/admin.php:518
+msgid ""
+"If set, WordPress Popular Posts will shorten each post title to \"n\" characters "
+"whenever possible"
+msgstr ""
+
+#: ../views/admin.php:525
+msgid ""
+"If set to 1, WordPress Popular Posts will shorten each post title to \"n\" words "
+"instead of characters"
+msgstr ""
+
+#: ../views/admin.php:532
+msgid ""
+"If set, WordPress Popular Posts will build and include an excerpt of \"n\" characters "
+"long from the content of each post listed as popular"
+msgstr ""
+
+#: ../views/admin.php:539
+msgid ""
+"If set, WordPress Popular Posts will maintaing all styling tags (strong, italic, etc) "
+"and hyperlinks found in the excerpt"
+msgstr ""
+
+#: ../views/admin.php:546
+msgid ""
+"If set to 1, WordPress Popular Posts will shorten the excerpt to \"n\" words instead "
+"of characters"
+msgstr ""
+
+#: ../views/admin.php:553
+msgid ""
+"If set, and if your current server configuration allows it, you will be able to "
+"display thumbnails of your posts. This attribute sets the width for thumbnails"
+msgstr ""
+
+#: ../views/admin.php:560
+msgid ""
+"If set, and if your current server configuration allows it, you will be able to "
+"display thumbnails of your posts. This attribute sets the height for thumbnails"
+msgstr ""
+
+#: ../views/admin.php:567
+msgid ""
+"If set, and if the WP-PostRatings plugin is installed and enabled on your blog, "
+"WordPress Popular Posts will show how your visitors are rating your entries"
+msgstr ""
+
+#: ../views/admin.php:574
+msgid ""
+"If set, WordPress Popular Posts will show how many comments each popular post has got "
+"until now"
+msgstr ""
+
+#: ../views/admin.php:581
+msgid ""
+"If set, WordPress Popular Posts will show how many views each popular post has got "
+"since it was installed"
+msgstr ""
+
+#: ../views/admin.php:588
+msgid ""
+"If set, WordPress Popular Posts will show who published each popular post on the list"
+msgstr ""
+
+#: ../views/admin.php:595
+msgid ""
+"If set, WordPress Popular Posts will display the date when each popular post on the "
+"list was published"
+msgstr ""
+
+#: ../views/admin.php:602
+msgid "Sets the date format"
+msgstr ""
+
+#: ../views/admin.php:609
+msgid "If set, WordPress Popular Posts will display the category"
+msgstr ""
+
+#: ../views/admin.php:616
+msgid "Sets the opening tag for the listing"
+msgstr ""
+
+#: ../views/admin.php:623
+msgid "Sets the closing tag for the listing"
+msgstr ""
+
+#: ../views/admin.php:630
+msgid "Sets the HTML structure of each post"
+msgstr ""
+
+#: ../views/admin.php:631
+msgid "Text string, custom HTML"
+msgstr ""
+
+#: ../views/admin.php:631
+msgid "Available Content Tags"
+msgstr ""
+
+#: ../views/admin.php:631
+msgid ""
+"displays thumbnail linked to post/page, requires thumbnail_width & thumbnail_height"
+msgstr ""
+
+#: ../views/admin.php:631
+msgid ""
+"displays thumbnail image without linking to post/page, requires thumbnail_width & "
+"thumbnail_height"
+msgstr ""
+
+#: ../views/admin.php:631
+msgid "displays linked post/page title"
+msgstr ""
+
+#: ../views/admin.php:631
+msgid "displays post/page excerpt, and requires excerpt_length to be greater than 0"
+msgstr ""
+
+#: ../views/admin.php:631
+msgid "displays the default stats tags"
+msgstr ""
+
+#: ../views/admin.php:631
+msgid "displays post/page current rating, requires WP-PostRatings installed and enabled"
+msgstr ""
+
+#: ../views/admin.php:631
+msgid ""
+"displays post/page current rating as an integer, requires WP-PostRatings installed and "
+"enabled"
+msgstr ""
+
+#: ../views/admin.php:631
+msgid "outputs the URL of the post/page"
+msgstr ""
+
+#: ../views/admin.php:631
+msgid "displays post/page title, no link"
+msgstr ""
+
+#: ../views/admin.php:631
+msgid "displays linked author name, requires stats_author=1"
+msgstr ""
+
+#: ../views/admin.php:631
+msgid "displays linked category name, requires stats_category=1"
+msgstr ""
+
+#: ../views/admin.php:631
+msgid "displays views count only, no text"
+msgstr ""
+
+#: ../views/admin.php:631
+msgid "displays comments count only, no text, requires stats_comments=1"
+msgstr ""
+
+#: ../views/admin.php:631
+msgid "displays post/page date, requires stats_date=1"
+msgstr ""
+
+#: ../views/admin.php:643
+msgid "What does \"Title\" do?"
+msgstr ""
+
+#: ../views/admin.php:646
+msgid ""
+"It allows you to show a heading for your most popular posts listing. If left empty, no "
+"heading will be displayed at all."
+msgstr ""
+
+#: ../views/admin.php:649
+msgid "What is Time Range for?"
+msgstr ""
+
+#: ../views/admin.php:651
+msgid ""
+"It will tell WordPress Popular Posts to retrieve all posts with most views / comments "
+"within the selected time range."
+msgstr ""
+
+#: ../views/admin.php:654
+msgid "What is \"Sort post by\" for?"
+msgstr ""
+
+#: ../views/admin.php:656
+msgid ""
+"It allows you to decide whether to order your popular posts listing by total views, "
+"comments, or average views per day."
+msgstr ""
+
+#: ../views/admin.php:659
+msgid "What does \"Display post rating\" do?"
+msgstr ""
+
+#: ../views/admin.php:661
+msgid ""
+"If checked, WordPress Popular Posts will show how your readers are rating your most "
+"popular posts. This feature requires having WP-PostRatings plugin installed and "
+"enabled on your blog for it to work."
+msgstr ""
+
+#: ../views/admin.php:664
+msgid "What does \"Shorten title\" do?"
+msgstr ""
+
+#: ../views/admin.php:666
+msgid ""
+"If checked, all posts titles will be shortened to \"n\" characters/words. A new "
+"\"Shorten title to\" option will appear so you can set it to whatever you like."
+msgstr ""
+
+#: ../views/admin.php:669
+msgid "What does \"Display post excerpt\" do?"
+msgstr ""
+
+#: ../views/admin.php:671
+msgid ""
+"If checked, WordPress Popular Posts will also include a small extract of your posts in "
+"the list. Similarly to the previous option, you will be able to decide how long the "
+"post excerpt should be."
+msgstr ""
+
+#: ../views/admin.php:674
+msgid "What does \"Keep text format and links\" do?"
+msgstr ""
+
+#: ../views/admin.php:676
+msgid ""
+"If checked, and if the Post Excerpt feature is enabled, WordPress Popular Posts will "
+"keep the styling tags (eg. bold, italic, etc) that were found in the excerpt. "
+"Hyperlinks will remain intact, too."
+msgstr ""
+
+#: ../views/admin.php:679
+msgid "What is \"Post type\" for?"
+msgstr ""
+
+#: ../views/admin.php:681
+msgid ""
+"This filter allows you to decide which post types to show on the listing. By default, "
+"it will retrieve only posts and pages (which should be fine for most cases)."
+msgstr ""
+
+#: ../views/admin.php:684
+msgid "What is \"Category(ies) ID(s)\" for?"
+msgstr ""
+
+#: ../views/admin.php:686
+msgid ""
+"This filter allows you to select which categories should be included or excluded from "
+"the listing. A negative sign in front of the category ID number will exclude posts "
+"belonging to it from the list, for example. You can specify more than one ID with a "
+"comma separated list."
+msgstr ""
+
+#: ../views/admin.php:689
+msgid "What is \"Author(s) ID(s)\" for?"
+msgstr ""
+
+#: ../views/admin.php:691
+msgid ""
+"Just like the Category filter, this one lets you filter posts by author ID. You can "
+"specify more than one ID with a comma separated list."
+msgstr ""
+
+#: ../views/admin.php:694
+msgid "What does \"Display post thumbnail\" do?"
+msgstr ""
+
+#: ../views/admin.php:696
+msgid ""
+"If checked, WordPress Popular Posts will attempt to retrieve the thumbnail of each "
+"post. You can set up the source of the thumbnail via Settings - WordPress Popular "
+"Posts - Tools."
+msgstr ""
+
+#: ../views/admin.php:699
+msgid "What does \"Display comment count\" do?"
+msgstr ""
+
+#: ../views/admin.php:701
+msgid ""
+"If checked, WordPress Popular Posts will display how many comments each popular post "
+"has got in the selected Time Range."
+msgstr ""
+
+#: ../views/admin.php:704
+msgid "What does \"Display views\" do?"
+msgstr ""
+
+#: ../views/admin.php:706
+msgid ""
+"If checked, WordPress Popular Posts will show how many pageviews a single post has "
+"gotten in the selected Time Range."
+msgstr ""
+
+#: ../views/admin.php:709
+msgid "What does \"Display author\" do?"
+msgstr ""
+
+#: ../views/admin.php:711
+msgid ""
+"If checked, WordPress Popular Posts will display the name of the author of each entry "
+"listed."
+msgstr ""
+
+#: ../views/admin.php:714
+msgid "What does \"Display date\" do?"
+msgstr ""
+
+#: ../views/admin.php:716
+msgid ""
+"If checked, WordPress Popular Posts will display the date when each popular posts was "
+"published."
+msgstr ""
+
+#: ../views/admin.php:719
+msgid "What does \"Display category\" do?"
+msgstr ""
+
+#: ../views/admin.php:721
+msgid "If checked, WordPress Popular Posts will display the category of each post."
+msgstr ""
+
+#: ../views/admin.php:724
+msgid "What does \"Use custom HTML Markup\" do?"
+msgstr ""
+
+#: ../views/admin.php:726
+msgid ""
+"If checked, you will be able to customize the HTML markup of your popular posts "
+"listing. For example, you can decide whether to wrap your posts in an unordered list, "
+"an ordered list, a div, etc. If you know xHTML/CSS, this is for you!"
+msgstr ""
+
+#: ../views/admin.php:729
+msgid "What are \"Content Tags\"?"
+msgstr ""
+
+#: ../views/admin.php:731
+#, php-format
+msgid ""
+"Content Tags are codes to display a variety of items on your popular posts custom HTML "
+"structure. For example, setting it to \"{title}: {summary}\" (without the quotes) "
+"would display \"Post title: excerpt of the post here\". For more Content Tags, see the "
+"<a href=\"%s\" target=\"_blank\">Parameters</a> section."
+msgstr ""
+
+#: ../views/admin.php:734
+msgid "What are \"Template Tags\"?"
+msgstr ""
+
+#: ../views/admin.php:736
+msgid ""
+"Template Tags are simply php functions that allow you to perform certain actions. For "
+"example, WordPress Popular Posts currently supports two different template tags: "
+"wpp_get_mostpopular() and wpp_get_views()."
+msgstr ""
+
+#: ../views/admin.php:739
+msgid "What are the template tags that WordPress Popular Posts supports?"
+msgstr ""
+
+#: ../views/admin.php:741
+msgid "The following are the template tags supported by WordPress Popular Posts"
+msgstr ""
+
+#: ../views/admin.php:745
+msgid "Template tag"
+msgstr ""
+
+#: ../views/admin.php:754
+#, php-format
+msgid ""
+"Similar to the widget functionality, this tag retrieves the most popular posts on your "
+"blog. This function also accepts <a href=\"%1$s\">parameters</a> so you can customize "
+"your popular listing, but these are not required."
+msgstr ""
+
+#: ../views/admin.php:755
+#, php-format
+msgid ""
+"Please refer to the <a href=\"%1$s\">Parameters section</a> for a complete list of "
+"attributes."
+msgstr ""
+
+#: ../views/admin.php:760
+msgid ""
+"Displays the number of views of a single post. Post ID is required or it will return "
+"false."
+msgstr ""
+
+#: ../views/admin.php:761
+msgid "Post ID"
+msgstr ""
+
+#: ../views/admin.php:768
+msgid "What are \"shortcodes\"?"
+msgstr ""
+
+#: ../views/admin.php:770
+#, php-format
+msgid ""
+"Shortcodes are similar to BB Codes, these allow us to call a php function by simply "
+"typing something like [shortcode]. With WordPress Popular Posts, the shortcode [wpp] "
+"will let you insert a list of the most popular posts in posts content and pages too! "
+"For more information about shortcodes, please visit the <a href=\"%s\" target=\"_blank"
+"\">WordPress Shortcode API</a> page."
+msgstr ""
+
+#: ../views/admin.php:778
+#, php-format
+msgid "About WordPress Popular Posts %s"
+msgstr ""
+
+#: ../views/admin.php:779
+msgid "This version includes the following changes"
+msgstr ""
+
+#: ../views/admin.php:802
+msgid "Do you like this plugin?"
+msgstr ""
+
+#: ../views/admin.php:809
+msgid ""
+"Each donation motivates me to keep releasing free stuff for the WordPress community!"
+msgstr ""
+
+#: ../views/admin.php:810
+#, php-format
+msgid "You can <a href=\"%s\" target=\"_blank\">leave a review</a>, too!"
+msgstr ""
+
+#: ../views/admin.php:814
+msgid "Need help?"
+msgstr ""
+
+#: ../views/admin.php:815
+#, php-format
+msgid ""
+"Visit <a href=\"%s\" target=\"_blank\">the forum</a> for support, questions and "
+"feedback."
+msgstr ""
+
+#: ../views/admin.php:816
+msgid "Let's make this plugin even better!"
+msgstr ""
+
+#: ../views/form.php:2
+msgid "Title"
+msgstr ""
+
+#: ../views/form.php:7
+msgid "Show up to"
+msgstr ""
+
+#: ../views/form.php:8
+msgid "posts"
+msgstr ""
+
+#: ../views/form.php:12
+msgid "Sort posts by"
+msgstr ""
+
+#: ../views/form.php:14
+msgid "Comments"
+msgstr ""
+
+#: ../views/form.php:15
+msgid "Total views"
+msgstr ""
+
+#: ../views/form.php:16
+msgid "Avg. daily views"
+msgstr ""
+
+#: ../views/form.php:22
+msgid "Filters"
+msgstr ""
+
+#: ../views/form.php:24
+msgid "Time Range"
+msgstr ""
+
+#: ../views/form.php:34
+msgid "Post type(s)"
+msgstr ""
+
+#: ../views/form.php:37
+msgid "Post(s) ID(s) to exclude"
+msgstr ""
+
+#: ../views/form.php:40
+msgid "Category(ies) ID(s)"
+msgstr ""
+
+#: ../views/form.php:43
+msgid "Author(s) ID(s)"
+msgstr ""
+
+#: ../views/form.php:48
+msgid "Posts settings"
+msgstr ""
+
+#: ../views/form.php:52
+msgid "Display post rating"
+msgstr ""
+
+#: ../views/form.php:55
+msgid "Shorten title"
+msgstr ""
+
+#: ../views/form.php:58
+msgid "Shorten title to"
+msgstr ""
+
+#: ../views/form.php:59 ../views/form.php:69
+msgid "characters"
+msgstr ""
+
+#: ../views/form.php:60 ../views/form.php:70
+msgid "words"
+msgstr ""
+
+#: ../views/form.php:63
+msgid "Display post excerpt"
+msgstr ""
+
+#: ../views/form.php:66
+msgid "Keep text format and links"
+msgstr ""
+
+#: ../views/form.php:67
+msgid "Excerpt length"
+msgstr ""
+
+#: ../views/form.php:73
+msgid "Display post thumbnail"
+msgstr ""
+
+#: ../views/form.php:76
+msgid "Use predefined size"
+msgstr ""
+
+#: ../views/form.php:88
+msgid "Set size manually"
+msgstr ""
+
+#: ../views/form.php:90
+msgid "Width"
+msgstr ""
+
+#: ../views/form.php:93
+msgid "Height"
+msgstr ""
+
+#: ../views/form.php:99
+msgid "Stats Tag settings"
+msgstr ""
+
+#: ../views/form.php:101
+msgid "Display comment count"
+msgstr ""
+
+#: ../views/form.php:103
+msgid "Display views"
+msgstr ""
+
+#: ../views/form.php:105
+msgid "Display author"
+msgstr ""
+
+#: ../views/form.php:107
+msgid "Display date"
+msgstr ""
+
+#: ../views/form.php:110
+msgid "Date Format"
+msgstr ""
+
+#: ../views/form.php:112
+msgid "WordPress Date Format"
+msgstr ""
+
+#: ../views/form.php:119
+msgid "Display category"
+msgstr ""
+
+#: ../views/form.php:123
+msgid "HTML Markup settings"
+msgstr ""
+
+#: ../views/form.php:125
+msgid "Use custom HTML Markup"
+msgstr ""
+
+#: ../views/form.php:128
+msgid "Before / after title"
+msgstr ""
+
+#: ../views/form.php:131
+msgid "Before / after Popular Posts"
+msgstr ""
+
+#: ../views/form.php:134
+msgid "Post HTML Markup"
+msgstr ""
+
+#: ../wordpress-popular-posts.php:302
+msgid "The most Popular Posts on your blog."
+msgstr ""
+
+#: ../wordpress-popular-posts.php:467
+msgid ""
+"Error: cannot ajaxify WordPress Popular Posts on this theme. It's missing the <em>id</"
+"em> attribute on before_widget (see <a href=\"http://codex.wordpress.org/"
+"Function_Reference/register_sidebar\" target=\"_blank\" rel=\"nofollow"
+"\">register_sidebar</a> for more)."
+msgstr ""
+
+#: ../wordpress-popular-posts.php:711
+msgid "Upload"
+msgstr ""
+
+#: ../wordpress-popular-posts.php:1080
+#, php-format
+msgid ""
+"Your PHP installation is too old. WordPress Popular Posts requires at least PHP "
+"version %1$s to function correctly. Please contact your hosting provider and ask them "
+"to upgrade PHP to %1$s or higher."
+msgstr ""
+
+#: ../wordpress-popular-posts.php:1087
+#, php-format
+msgid ""
+"Your WordPress version is too old. WordPress Popular Posts requires at least WordPress "
+"version %1$s to function correctly. Please update your blog via Dashboard &gt; Update."
+msgstr ""
+
+#: ../wordpress-popular-posts.php:1112
+#, php-format
+msgid ""
+"<div class=\"error\"><p>%1$s</p><p><i>%2$s</i> has been <strong>deactivated</strong>.</"
+"p></div>"
+msgstr ""
+
+#: ../wordpress-popular-posts.php:1172
+msgid "Success! The cache table has been cleared!"
+msgstr ""
+
+#: ../wordpress-popular-posts.php:1174
+msgid "Error: cache table does not exist."
+msgstr ""
+
+#: ../wordpress-popular-posts.php:1181
+msgid "Success! All data have been cleared!"
+msgstr ""
+
+#: ../wordpress-popular-posts.php:1183
+msgid "Error: one or both data tables are missing."
+msgstr ""
+
+#: ../wordpress-popular-posts.php:1186 ../wordpress-popular-posts.php:1224
+msgid "Invalid action."
+msgstr ""
+
+#: ../wordpress-popular-posts.php:1189 ../wordpress-popular-posts.php:1227
+msgid ""
+"Sorry, you do not have enough permissions to do this. Please contact the site "
+"administrator for support."
+msgstr ""
+
+#: ../wordpress-popular-posts.php:1219
+msgid "Success! All files have been deleted!"
+msgstr ""
+
+#: ../wordpress-popular-posts.php:1221
+msgid "The thumbnail cache is already empty!"
+msgstr ""
+
+#: ../wordpress-popular-posts.php:1771
+msgid "Sorry. No data so far."
+msgstr ""
+
+#: ../wordpress-popular-posts.php:2298
+#, php-format
+msgid "1 comment"
+msgid_plural "%s comments"
+msgstr[0] ""
+msgstr[1] ""
+
+#: ../wordpress-popular-posts.php:2310
+#, php-format
+msgid "1 view per day"
+msgid_plural "%s views per day"
+msgstr[0] ""
+msgstr[1] ""
+
+#: ../wordpress-popular-posts.php:2316
+#, php-format
+msgid "1 view"
+msgid_plural "%s views"
+msgstr[0] ""
+msgstr[1] ""
+
+#: ../wordpress-popular-posts.php:2339
+#, php-format
+msgid "by %s"
+msgstr ""
+
+#: ../wordpress-popular-posts.php:2345
+#, php-format
+msgid "posted on %s"
+msgstr ""
+
+#: ../wordpress-popular-posts.php:2353
+#, php-format
+msgid "under %s"
+msgstr ""
diff --git a/wp-content/plugins/wordpress-popular-posts/readme.txt b/wp-content/plugins/wordpress-popular-posts/readme.txt
index bce267f16223c1acd3330abb35553a1b67f28c0f..584a1af2811328393e8d99ee203a51bfa265b459 100644
--- a/wp-content/plugins/wordpress-popular-posts/readme.txt
+++ b/wp-content/plugins/wordpress-popular-posts/readme.txt
@@ -1,415 +1,472 @@
-=== WordPress Popular Posts ===
-Contributors: hcabrera
-Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=hcabrerab%40gmail%2ecom&lc=GB&item_name=WordPress%20Popular%20Posts%20Plugin&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG_global%2egif%3aNonHosted
-Tags: popular, posts, widget, popularity, top
-Requires at least: 3.8
-Tested up to: 4.0
-Stable tag: 3.1.1
-License: GPLv2 or later
-License URI: http://www.gnu.org/licenses/gpl-2.0.html
-
-WordPress Popular Posts is a highly customizable widget that displays the most popular posts on your blog.
-
-== Description ==
-
-WordPress Popular Posts is a highly customizable widget that displays the most popular posts on your blog.
-
-= Main Features =
-* **Multi-widget capable**. That is, you can have several widgets of WordPress Popular Posts on your blog - each with its own settings!
-* **Time Range** - list those posts of your blog that have been the most popular ones within a specific time range (eg. last 24 hours, last 7 days, last 30 days, etc.)!
-* **Custom Post-type support**. Wanna show other stuff than just posts and pages?
-* Display a **thumbnail** of your posts! (*see the [FAQ section](http://wordpress.org/extend/plugins/wordpress-popular-posts/faq/) for technical requirements*).
-* Use **your own layout**! Control how your most popular posts are shown on your theme.
-* **WPML** support!
-* **WordPress Multisite** support!
-
-= Other Features =
-* Check the **statistics** on your most popular posts from wp-admin.
-* Order your popular list by comments, views (default) or average views per day!
-* **Shortcode support** - use the [wpp] shortcode to showcase your most popular posts on pages, too! For usage and instructions, please refer to the [installation section](http://wordpress.org/extend/plugins/wordpress-popular-posts/installation/).
-* **Template tags** - Don't feel like using widgets? No problem! You can still embed your most popular entries on your theme using the *wpp_get_mostpopular()* template tag. Additionally, the *wpp_gets_views()* template tag allows you to retrieve the views count for a particular post. For usage and instructions, please refer to the [installation section](http://wordpress.org/extend/plugins/wordpress-popular-posts/installation/).
-* **Localizable** to your own language (*See the [FAQ section](http://wordpress.org/extend/plugins/wordpress-popular-posts/faq/) for more info*).
-* **[WP-PostRatings](http://wordpress.org/extend/plugins/wp-postratings/) support**. Show your visitors how your readers are rating your posts!
-
-= Notices =
-* Starting version 3.0.0, the way plugin tracks views count switched back to [AJAX](http://codex.wordpress.org/AJAX). The reason for this change is to prevent bots / spiders from inflating views count, so if you're using a caching plugin you should clear its cache after installing / upgrading the WordPress Popular Posts plugin so it can track your posts and pages normally.
-
-**WordPress Popular Posts** is now also on [GitHub](https://github.com/cabrerahector/wordpress-popular-posts)!
-
-== Installation ==
-
-1. Download the plugin and extract its contents.
-2. Upload the `wordpress-popular-posts` folder to the `/wp-content/plugins/` directory.
-3. Activate **WordPress Popular Posts** plugin through the 'Plugins' menu in WordPress.
-4. In your admin console, go to Appearance > Widgets, drag the WordPress Popular Posts widget to wherever you want it to be and click on Save.
-5. (optional) Go to Appearance > Editor. On "Theme Files", click on `header.php` and make sure that the `<?php wp_head(); ?>` tag is present (should be right before the closing `</head>` tag).
-
-That's it!
-
-= USAGE =
-
-WPP can be used as a [WordPress Widget](http://codex.wordpress.org/WordPress_Widgets), which means you can place it on any of your theme's sidebars (and it even supports multiple instances!). However, you can also embed it directly in posts / pages via [shortcode](https://github.com/cabrerahector/wordpress-popular-posts/wiki/1.-Using-WPP-on-posts-&-pages); or anywhere on your theme using the [wpp_get_mostpopular()](https://github.com/cabrerahector/wordpress-popular-posts/wiki/2.-Template-tags#wpp_get_mostpopular) template tag.
-
-... and there's even more on the **[Wiki](https://github.com/cabrerahector/wordpress-popular-posts/wiki)**, so make sure to stop by!
-
-== Frequently Asked Questions ==
-
-#### I need help with your plugin! What should I do?
-First thing to do is read all the online documentation available ([Installation](http://wordpress.org/plugins/wordpress-popular-posts/installation/), [Usage](https://github.com/cabrerahector/wordpress-popular-posts#usage), [Wiki](https://github.com/cabrerahector/wordpress-popular-posts/wiki), and of course this section) as they should address most of the questions you might have about this plugin (and even more info can be found via *wp-admin > Settings > WordPress Popular Posts > FAQ*).
-
-If you're having problems with WPP, my first suggestion would be try disabling all other plugins and then re-enable each one to make sure there are no conflicts. Also, try switching to a different theme and see if the issue persists. Checking the [Support Forum](http://wordpress.org/support/plugin/wordpress-popular-posts) and the [issue tracker](https://github.com/cabrerahector/wordpress-popular-posts/issues) is also a good idea as chances are that someone else has already posted something about it. **Remember:** *read first*. It'll save you (and me) time.
-
-= -FUNCTIONALITY- =
-
-= Why WordPress Popular Posts? =
-The idea of creating this plugin came from the need to know how many people were actually reading each post. Unfortunately, WordPress doesn't keep views count of your posts anywhere. Because of that, and since I didn't find anything that would suit my needs, I ended up creating WordPress Popular Posts: a highly customizable, easy-to-use WordPress plugin with the ability to keep track of what's popular to showcase it to the visitors!
-
-= How does the plugin count views / calculate the popularity of posts? =
-Since WordPress doesn't store views count (only comments count), this plugin stores that info for you. When you sort your popular posts by *views*, WordPress Popular Posts will retrieve the views count it started caching from the time you first installed this plugin, and then rank the top posts according to the settings you have configured in the plugin. WordPress Popular Posts can also rank the popularity of your posts based on comments count as well.
-
-= I'm getting "Sorry. No data so far". What's up with that? =
-There are a number of reasons that might explain why you are seeing this message: no one has seen or commented on your posts/pages since WordPress Popular Posts activation, you should give it some time; your current theme does not have the [wp_head()](http://codex.wordpress.org/Theme_Development#Plugin_API_Hooks) tag in its &lt;head&gt; section, required by my plugin to keep track of what your visitors are viewing on your site; WordPress Popular Posts was unable to create the necessary DB tables to work, make sure your hosting has granted you permission to create / update / modify tables in the database; if you're using a caching plugin -such as W3 Total Cache- you need to clear its cache once right after installing/upgrading this plugin.
-
-= My current theme does not support widgets (booooo!). Can I show my most popular posts in any other way? =
-Yes, there are other choices: you can use the [wpp shortcode](https://github.com/cabrerahector/wordpress-popular-posts/wiki/1.-Using-WPP-on-posts-&-pages), which allows you to embed your popular listing directly in the content of your posts and/or pages; or you can use the [wpp_get_mostpopular() template tag](https://github.com/cabrerahector/wordpress-popular-posts/wiki/2.-Template-tags#wpp_get_mostpopular). Both options are highly customizable via parameters, check them out via *wp-admin > Settings > WordPress Popular Posts > Parameters*.
-
-= WordPress Popular Posts is not counting my own visits, why? =
-By default, WordPress Popular Posts won't count views generated by logged in users. If your blog requires readers to be logged in to access its contents (or just want WPP to count your own views) please go to *wp-admin > Settings > WordPress Popular Posts > Tools* and set *Log views from* to *Everyone*.
-
-= How can I use my own HTML markup with your plugin? =
-If you're using the widget, simply activate the *Use custom HTML markup* option and set your desired configuration and *Content Tags* (see *wp-admin > Settings > WordPress Popular Posts > FAQ* for more); or if you're using the template tag / shortcode, use the *wpp_start*, *wpp_end* and *post_html* parameters (see *wp-admin > Settings > WordPress Popular Posts > Parameters* for more).
-
-A more advanced way to customize the HTML markup is via [WordPress filters](http://code.tutsplus.com/articles/the-beginners-guide-to-wordpress-actions-and-filters--wp-27373 "The Beginner's guide to WordPress actions and filters") by hooking into *wpp_custom_html* or *wpp_post*. For details, please check the [Filters page](https://github.com/cabrerahector/wordpress-popular-posts/wiki/Filters) on the Wiki.
-
-= Where can I find the list of parameters accepted by the wpp_get_mostpopular() template tag / [wpp] shortcode? =
-You can find it via *wp-admin > Settings > WordPress Popular Posts > Parameters*.
-
-= I'm unable to activate the "Display post thumbnail" option. Why? =
-Please check that either the [ImageMagick](http://www.php.net/manual/en/intro.imagick.php) or [GD](http://www.php.net/manual/en/intro.image.php) extension is installed and [enabled by your host](http://wordpress.org/support/topic/289778#post-1366038).
-
-= How does WordPress Popular Posts pick my posts' thumbnails? =
-WordPress Popular Posts has three different thumbnail options to choose from available at *wp-admin > Settings > WordPress Popular Posts > Tools*: *Featured Image* (default), *First image on post*, or [*custom field*](http://codex.wordpress.org/Custom_Fields). If no images are found, a default thumbnail will be displayed instead.
-
-= I'm seeing a "No thumbnail" image, where's my post thumbnail? =
-Make sure you have assigned one to your posts (see previous question).
-
-= Is there any way I can change that ugly "No thumbnail" image for one of my own? =
-Fortunately, yes. Go to *wp-admin > Settings > WordPress Popular Posts > Tools* and check under *Thumbnail source*. Ideally, the thumbnail you're going to use should be set already with your desired width and height - however, the uploader will give you other size options as configured by your current theme.
-
-= I want to have a popular list of my custom post type. How can I do that? =
-Simply add your custom post type to the Post Type field in the widget (or if you're using the template tag / shortcode, use the *post_type* parameter).
-
-= I would like to clear all data gathered by WordPress Popular Posts and start over. How can I do that? =
-If you go to *wp-admin > Settings > WordPress Popular Posts > Tools*, you'll find two buttons that should do what you need: **Clear cache** and **Clear all data**. The first one just wipes out what's in cache (Last 24 hours, Last 7 Days, Last 30 Days, etc.), keeping the historical data (All-time) intact. The latter wipes out everything from WordPress Popular Posts data tables - even the historical data. Note that **this cannot be undone** so proceed with caution.
-
-= Can WordPress Popular Posts run on WordPress Multisite? =
-Starting from version 3.0.0, WPP checks for WordPress Multisite. While I have not tested it, WPP should work just fine under WPMU (but if it doesn't, please let me know).
-
-= -CSS AND STYLESHEETS- =
-
-= Does your plugin include any CSS stylesheets? =
-Yes, *but* there are no predefined styles (well, almost). WordPress Popular Posts will first look into your current theme's folder for the wpp.css file and use it if found so that any custom CSS styles made by you are not overwritten, otherwise will use the one bundled with the plugin.
-
-= Each time WordPress Popular Posts is updated the wpp.css stylesheet gets reset and I lose all changes I made to it. How can I keep my custom CSS? =
-Copy your modified wpp.css file to your theme's folder, otherwise my plugin will use the one bundled with it by default.
-
-= How can I style my list to look like [insert your desired look here]? =
-Since this plugin does not include any predefined designs, it's up to you to style your most popular posts list as you like (you might need to hire someone for this if you don't know HTML/CSS, though). However, I've gathered a few [examples](https://github.com/cabrerahector/wordpress-popular-posts/wiki/6.-Styling-the-list) that should get you started.
-
-= I want to remove WPP's stylesheet. How can I do that? =
-You can disable the stylesheet via *wp-admin > Settings > WordPress Popular Posts > Tools*.
-
-= -OTHER STUFF THAT YOU (PROBABLY) WANT TO KNOW- =
-
-= Does WordPress Popular Posts support other languages than english? =
-Yes, check the [Other Notes](http://wordpress.org/plugins/wordpress-popular-posts/other_notes/) section for more information.
-
-= I want to translate your plugin into my language / help you update a translation. What do I need to do? =
-First thing you need to do is get a [gettext](http://www.gnu.org/software/gettext/) editor like [Poedit](http://www.poedit.net/) to translate all texts into your language. You'll find several .PO files bundled with the plugin under the *lang* folder. If you're planning to add a new language, grab *wordpress-popular-posts.po* and rename it to add the proper suffix for your language (eg. wordpress-popular-posts-es_ES.po, for Spanish). In any case, open the PO file using Poedit (or your preferred gettext editor) and update the strings there. It sounds complicated, I know, but it's not.
-
-Check this handy [guide](http://urbangiraffe.com/articles/translating-wordpress-themes-and-plugins/ "Translating WordPress Plugins & Themes"), in case you get lost at some point. If you're interested in sharing your translation with others (or just helped update a current translation), please [let me know](http://wordpress.org/support/plugin/wordpress-popular-posts).
-
-= I want your plugin to have X or Y functionality. Can it be done? =
-If it fits the nature of my plugin and it sounds like something others would like to have, there's a pretty good chance that I will implement it (and if you can provide some sample code with useful comments, much better).
-
-= Your plugin seems to conflict with my current Theme / this other Plugin. Can you please help me? =
-If the theme/plugin you're talking about is a free one that can be downloaded from somewhere, sure I can try and take a look into it. Premium themes/plugins are out of discussion though, unless you're willing to grant me access to your site (or get me a copy of this theme/plugin) so I can check it out.
-
-= ETA for your next release? =
-Updates will come depending on my work projects (I'm a full-time web developer) and the amount of time I have on my hands. Quick releases will happen only when/if critical bugs are spotted.
-
-= I posted a question at the Support Forum and got no answer from the developer. Why is that? =
-Chances are that your question has been already answered either at the [Support Forum](http://wordpress.org/support/plugin/wordpress-popular-posts), the [Installation section](http://wordpress.org/plugins/wordpress-popular-posts/installation/), the [Wiki](https://github.com/cabrerahector/wordpress-popular-posts/wiki) or even here in the FAQ section, so I've decided not to answer. It could also happen that I'm just busy at the moment and haven't been able to read your post yet, so please be patient.
-
-= Is there any other way to contact you? =
-For the time being, the [Support Forum](http://wordpress.org/support/plugin/wordpress-popular-posts) is the only way to contact me. Please do not use my email to get in touch with me *unless I authorize you to do so*.
-
-== Screenshots ==
-
-1. Widgets Control Panel.
-2. WordPress Popular Posts Widget.
-3. WordPress Popular Posts Widget on theme's sidebar.
-4. WordPress Popular Posts Stats panel.
-
-== Changelog ==
-= 3.1.1 =
-* Adds check for exif extension availability.
-* Rolls back check for user's default thumbnail.
-
-= 3.1.0 =
-* Fixes invalid HTML title/alt attributes caused by encoding issues.
-* Fixes issue with jQuery not loading properly under certain circumstances.
-* Fixes issue with custom excerpts not showing up.
-* Fixes undefined notices and removes an unused variable from widget_update().
-* Fixes wrong variable reference in __image_resize().
-* Adds charset to mb_substr when truncating excerpt.
-* Sets default logging level to 1 (Everyone).
-* Renders the category link with cat-id-[ID] CSS class.
-* Replaces getimagesize() with exif_imagetype().
-* Adds notice to move/copy wpp.css stylesheet into theme's directory to keep custom CSS styles across updates.
-* Thumbail generation process has been refactored for efficiency.
-* Thumbnails are now stored in a custom folder under Uploads.
-* Drops support on Japanese and French languages since the translations were outdated.
-* Other minor bug fixes and improvements.
-
-= 3.0.3 =
-* Fixes widget not saving 'freshness' setting.
-* Adds HTMLentities conversion/deconversion on wpp_get_mostpopular().
-* Improves thumbnail detection.
-* Fixes a bug affecting the truncation of excerpts.
-* Fixes yet another bug on wpp_get_views().
-* Other minor changes.
-
-= 3.0.2 =
-* Fixes an introduced bug on wpp_get_views().
-* Fixes bug where thumbnail size was cached for multiple instances.
-* Adds back stylesheet detection.
-* Removes unused widget.js file.
-* Other minor bug fixes.
-
-= 3.0.1 =
-* Fixes bug on wpp_get_views.
-* Sustitutes WP_DEBUG with custom debugging constant.
-* Fixes bug that prevented disabling plugin's stylesheet.
-
-= 3.0.0 =
-* Starting from this version, the way plugin tracks views count switched back to [AJAX](http://codex.wordpress.org/AJAX) to prevent bots / spiders from inflating views count. If you're using a caching plugin you should clear its cache after installing / upgrading the WordPress Popular Posts plugin so it can track your posts and pages normally.
-* Plugin refactoring based on [@tikaszvince](https://github.com/tikaszvince)'s work (many thanks, Vince!).
-* Added WPML support.
-* Added experimental WordPress Multisite support.
-* Added bot detection.
-* Added ability to filter posts by freshness.
-* Added own data caching method.
-* Added filters wpp_custom_html, wpp_post.
-* Added action wpp_update_views.
-* Dropped support on Dutch and Persian languages since the translations were outdated.
-* Several other fixes and improvements.
-
-= 2.3.5 =
-* Fixed minor bugs on admin page.
-* Fixed query bug preventing some results from being listed.
-* Added a check to avoid using the terms tables if not necessary (eg. listing pages only).
-
-= 2.3.4 =
-* Added ability to shorten title/excerpt by number of words.
-* Updated excerpt code, don't show it if empty.
-* Added ability to set post_type on Stats page.
-* Added check for is_preview() to avoid updating views count when editing and previewing a post / page (thanks, Partisk!).
-* Added ability to change default thumbnail via admin (thanks for the suggestion, Martin!).
-* Fixed bug in query when getting popular posts from category returning no results if it didn't have any post on the top viewed / commented.
-* Added function for better handling changes/updates in settings.
-* Updated get_summary() to use API functions instead querying directly to DB.
-* Updated wpp_print_stylesheet() to get the wpp.css file from the right path (thanks, Martin!).
-* Moved translations to lang folder.
-
-= 2.3.3 =
-* Minimum WordPress version requirement changed to 3.3.
-* Minimum PHP version requirement changed to 5.2.0.
-* Improved Custom HTML feature! It's more flexible now + new Content Tags added: {url}, {text_title}, {author}, {category}, {views}, {comments}!.
-* Added ability to exclude posts by ID (similar to the category filter).
-* Added ability to enable / disable logging visits from logged-in users.
-* Added Category to the Stats Tag settings options.
-* Added range parameter to wpp_get_views().
-* Added numeric formatting to the wpp_get_views() function.
-* When enabling the Display author option, author's name will link to his/her profile page.
-* Fixed bad numeric formatting in Stats showing truncated views count.
-* Fixed AJAX update feature (finally!). WPP works properly now when using caching plugins!
-* Fixed WP Post Ratings not displaying on the list (and while it works, there are errors coming from the WP Post Ratings plugin itself: http://wordpress.org/support/topic/plugin-wp-postratings-undefined-indexes).
-* Improved database queries for speed.
-* Fixed bug preventing PostRating to show.
-* Removed Timthumb (again) in favor of the updated get_img() function based on Victor Teixeira's vt_resize function.
-* Cron now removes from cache all posts that have been trashed or eliminated.
-* Added proper numeric formatting for views / comments count. (Thank you for the tip, dimagsv!)
-* Added "the title filter fix" that affected some themes. (Thank you, jeremyers1!)
-* Added dutch translation. (Thank you, Jeroen!)
-* Added german translation. (Thank you, Martin!)
-
-= 2.3.2 =
-* The ability to enable / disable the Ajax Update has been removed. It introduced a random bug that doubled the views count of some posts / pages. Will be added back when a fix is ready.
-* Fixed a bug preventing the cat parameter from excluding categories (widget was not affected by this).
-* FAQ section (Settings / WordPress Popular Posts / FAQ) updated.
-* Added french translation. (Thanks, Le Raconteur!)
-
-= 2.3.1 =
-* Fixed bug caused by the sorter function when there are multiple instances of the widget.
-* Added check for new options in the get_popular_posts function.
-* Added plugin version check to handle upgrades.
-* Fixed bug preventing some site from fetching images from subdomains or external sites.
-* Fixed bug that prevented excluding more than one category using the Category filter.
-
-= 2.3.0 =
-* Merged all pages into Settings/WordPress Popular Posts.
-* Added new options to the WordPress Popular Posts Stats dashboard.
-* Added check for static homepages to avoid printing ajax script there.
-* Database queries re-built from scratch for optimization.
-* Added the ability to remove / enable plugin's stylesheet from the admin.
-* Added the ability to enable / disable ajax update from the admin.
-* Added the ability to set thumbnail's source from the admin.
-* Timthumb support re-added.
-* Added support for custom post type (Thanks, Brad Williams!).
-* Improved the category filtering feature.
-* Added the ability to get popular posts from given author IDs.
-
-
-= 2.2.1 =
-* Quick update to fix error with All-time combined with views breaking the plugin.
-
-= 2.2.0 =
-* Featured Image is generated for the user automatically if not present and if there's an image attached to the post.
-* Range feature Today option changed. Replaced with Last 24 hours.
-* Category exclusion query simplified. Thanks to almergabor for the suggestion!
-* Fixed bug caused by selecting Avg. Views and All-Time that prevented WPP from getting any data from the BD. Thanks Janseo!
-* Updated the get_summary function to strip out shortcodes from excerpt as well.
-* Fixed bug in the truncate function affecting accented characters. Thanks r3df!
-* Fixed bug keeping db tables from being created. Thanks northlake!
-* Fixed bug on the shortcode which was showing pages even if turned off. Thanks danpkraus!
-
-= 2.1.7 =
-* Added stylesheet detection. If wpp.css is on theme's folder, will use that instead the one bundled with the plugin.
-
-= 2.1.6 =
-* Added DB character set and collate detection.
-* Fixed excerpt translation issue when the qTrans plugin is present. Thanks r3df!.
-* Fixed thumbnail dimensions issue.
-* Fixed widget page link.
-* Fixed widget title encoding bug.
-* Fixed deprecated errors on load_plugin_textdomain and add_submenu_page.
-
-= 2.1.5 =
-* Dropped TimThumb support in favor of WordPress's Featured Image function.
-
-= 2.1.4 =
-* Added italian localization. Thanks Gianni!
-* Added charset detection.
-* Fixed bug preventing HTML View / Visual View on Edit Post page from working.
-
-= 2.1.1 =
-* Fixed bug preventing widget title from being saved.
-* Fixed bug affecting blogs with WordPress installed somewhere else than domain's root.
-* Added htmlentities to post titles.
-* Added default thumbnail image if none is found in the post.
-
-= 2.1.0 =
-* Title special HTML entities bug fixed.
-* Thumbnail feature improved! WordPress Popular Posts now supports The Post Thumbnail feature. You can choose whether to select your own thumbnails, or let WordPress Popular Posts create them for you!
-* Shortcode bug fixed. Thanks Krokkodriljo!
-* Category exclusion feature improved. Thanks raamdev!
-
-= 2.0.3 =
-* Added a Statistics Dashboard to Admin panel so users can view what's popular directly from there.
-* Users can now select a different date format.
-* get_mostpopular() function deprecated. Replaced with wpp_get_mostpopular().
-* Cache maintenance bug fixed.
-* Several UI enhancements were applied to this version.
-
-= 2.0.2 =
-* "Keep text format and links" feature introduced. If selected, formatting tags and hyperlinks won't be removed from excerpt.
-* Post title excerpt html entities bug fixed. It was causing the excerpt function to display more characters than the requested by user.
-* Several shortcode bugs fixed (range, order_by, do_pattern, pattern_form were not working as expected).
-
-= 2.0.1 =
-* Post title excerpt now includes html entities. Characters like &Aring;&Auml;&Ouml; should display properly now.
-* Post excerpt has been improved. Now it supports the following HTML tags: a, b, i, strong, em.
-* Template tag wpp_get_views() added. Retrieves the views count of a single post.
-* Template tag get_mostpopular() re-added. Parameter support included.
-* Shortcode bug fixed (range was always "daily" no matter what option was being selected by the user).
-
-= 2.0.0 =
-* Plugin rewritten to support Multi-Widget capabilities
-* Cache table implemented
-* Shortcode support added
-* Category exclusion feature added
-* Ajax update added - plugin is now compatible with caching plugins such as WP Super Cache
-* Thumbnail feature improved - some bugs were fixed, too
-* Maintenance page added
-
-= 1.5.1 =
-* Widget bug fixed
-
-= 1.5.0 =
-* Database improvements implemented
-* WP-PostRatings support added
-* Thumbnail feature added
-
-= 1.4.6 =
-* Bug in get_mostpopular function affected comments on single.php
-* "Show pageviews" option bug fixed
-* Added "content formatting tags" functionality
-
-= 1.4.5 =
-* Added new localizable strings
-* Fixed Admin page coding bug that was affecting the styling of WPP
-
-= 1.4.4 =
-* HTML Markup customizer added
-* Removed some unnessesary files
-
-= 1.4.3 =
-* Korean and Swedish are supported
-
-= 1.4.2 =
-* Code snippet bug found
-
-= 1.4.1 =
-* Found database bug affecting only new installations
-
-= 1.4 =
-* Massive code enhancement
-* CSS bugs fixed
-* Features added: Time Range; author and date (stats tag); separate settings for Widget and Code Snippet
-
-= 1.3.2 =
-* Permalink bug fixed
-
-= 1.3.1 =
-* Admin panel styling bug fixed
-
-= 1.3 =
-* Added an Admin page for a better management of the plugin
-* New sorting options (sort posts by comment count, by pageviews, or by average daily views) added
-
-= 1.2 =
-* Added extra functionalities to WordPress Popular Post plugin core
-
-= 1.1  =
-* Fixed comment count bug
-
-= 1.0 =
-* Public release
-
-== Language support ==
-
-All translations are community made: people who are nice enough to share their translations with me so I can distribute them with the plugin. If you spot an error, or feel like helping improve a translation, please check the [FAQ section](http://wordpress.org/plugins/wordpress-popular-posts/faq/ "FAQ section") for instructions.
-
-* English.
-* Spanish.
-* German - 92% translated (8 fuzzy strings, 9 not translated).
-
-== Credits ==
-
-* Flame graphic by freevector/Vecteezy.com.
-
-== Upgrade Notice ==
-
-= 3.1.0 =
-This version requires PHP 5.2+ and WordPress 3.8 or greater. Also, backup the wpp.css file first if you modified it!
+=== WordPress Popular Posts ===
+Contributors: hcabrera
+Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=hcabrerab%40gmail%2ecom&lc=GB&item_name=WordPress%20Popular%20Posts%20Plugin&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG_global%2egif%3aNonHosted
+Tags: popular, posts, widget, popularity, top
+Requires at least: 3.8
+Tested up to: 4.2.2
+Stable tag: 3.2.3
+License: GPLv2 or later
+License URI: http://www.gnu.org/licenses/gpl-2.0.html
+
+WordPress Popular Posts is a highly customizable widget that displays the most popular posts on your blog.
+
+== Description ==
+
+WordPress Popular Posts is a highly customizable widget that displays the most popular posts on your blog.
+
+= Main Features =
+* **Multi-widget capable**. That is, you can have several widgets of WordPress Popular Posts on your blog - each with its own settings!
+* **Time Range** - list those posts of your blog that have been the most popular ones within a specific time range (eg. last 24 hours, last 7 days, last 30 days, etc.)!
+* **Custom Post-type support**. Wanna show other stuff than just posts and pages?
+* Display a **thumbnail** of your posts! (*see the [FAQ section](http://wordpress.org/extend/plugins/wordpress-popular-posts/faq/) for technical requirements*).
+* Use **your own layout**! Control how your most popular posts are shown on your theme.
+* **WPML** support!
+* **WordPress Multisite** support!
+
+= Other Features =
+* Check the **statistics** on your most popular posts from wp-admin.
+* Order your popular list by comments, views (default) or average views per day!
+* **Shortcode support** - use the [wpp] shortcode to showcase your most popular posts on pages, too! For usage and instructions, please refer to the [installation section](http://wordpress.org/extend/plugins/wordpress-popular-posts/installation/).
+* **Template tags** - Don't feel like using widgets? No problem! You can still embed your most popular entries on your theme using the *wpp_get_mostpopular()* template tag. Additionally, the *wpp_gets_views()* template tag allows you to retrieve the views count for a particular post. For usage and instructions, please refer to the [installation section](http://wordpress.org/extend/plugins/wordpress-popular-posts/installation/).
+* **Localizable** to your own language (*See the [FAQ section](http://wordpress.org/extend/plugins/wordpress-popular-posts/faq/) for more info*).
+* **[WP-PostRatings](http://wordpress.org/extend/plugins/wp-postratings/) support**. Show your visitors how your readers are rating your posts!
+
+= Notices =
+* Starting version 3.0.0, the way plugin tracks views count switched back to [AJAX](http://codex.wordpress.org/AJAX). The reason for this change is to prevent bots / spiders from inflating views count, so if you're using a caching plugin you should clear its cache after installing / upgrading the WordPress Popular Posts plugin so it can track your posts and pages normally.
+
+**WordPress Popular Posts** is now also on [GitHub](https://github.com/cabrerahector/wordpress-popular-posts)!
+
+== Installation ==
+
+1. Download the plugin and extract its contents.
+2. Upload the `wordpress-popular-posts` folder to the `/wp-content/plugins/` directory.
+3. Activate **WordPress Popular Posts** plugin through the "Plugins" menu in WordPress.
+4. In your admin console, go to Appearance > Widgets, drag the WordPress Popular Posts widget to wherever you want it to be and click on Save.
+5. If you have a caching plugin installed on your site, flush its cache now so WPP can start tracking your site.
+6. Go to Appearance > Editor. On "Theme Files", click on `header.php` and make sure that the `<?php wp_head(); ?>` tag is present (should be right before the closing `</head>` tag).
+7. (optional, but recommended for large / high traffic sites) Enabling [Data Sampling](https://github.com/cabrerahector/wordpress-popular-posts/wiki/7.-Performance#data-sampling) and/or [Caching](https://github.com/cabrerahector/wordpress-popular-posts/wiki/7.-Performance#caching) is recommended. Check [here](https://github.com/cabrerahector/wordpress-popular-posts/wiki/7.-Performance) for more.
+
+That's it!
+
+= USAGE =
+
+WordPress Popular Posts can be used in three different ways:
+
+1. As a [widget](http://codex.wordpress.org/WordPress_Widgets), simply drag and drop it into your theme's sidebar and configure it.
+2. As a template tag, you can place it anywhere on your theme with [wpp_get_mostpopular()](https://github.com/cabrerahector/wordpress-popular-posts/wiki/2.-Template-tags#wpp_get_mostpopular).
+3. Via [shortcode](https://github.com/cabrerahector/wordpress-popular-posts/wiki/1.-Using-WPP-on-posts-&-pages), so you can embed it inside a post or a page.
+
+Make sure to stop by the **[Wiki](https://github.com/cabrerahector/wordpress-popular-posts/wiki)** as well, you'll find even more info there!
+
+== Frequently Asked Questions ==
+
+#### I need help with your plugin! What should I do?
+First thing to do is read all the online documentation available ([Installation](http://wordpress.org/plugins/wordpress-popular-posts/installation/), [Usage](https://github.com/cabrerahector/wordpress-popular-posts#usage), [Wiki](https://github.com/cabrerahector/wordpress-popular-posts/wiki), and of course this section) as they should address most of the questions you might have about this plugin (and even more info can be found via *wp-admin > Settings > WordPress Popular Posts > FAQ*).
+
+If you're having problems with WPP, my first suggestion would be try disabling all other plugins and then re-enable each one to make sure there are no conflicts. Also, try switching to a different theme and see if the issue persists. Checking the [Support Forum](http://wordpress.org/support/plugin/wordpress-popular-posts) and the [issue tracker](https://github.com/cabrerahector/wordpress-popular-posts/issues) is also a good idea as chances are that someone else has already posted something about it. **Remember:** *read first*. It'll save you (and me) time.
+
+= -FUNCTIONALITY- =
+
+= Why WordPress Popular Posts? =
+The idea of creating this plugin came from the need to know how many people were actually reading each post. Unfortunately, WordPress doesn't keep views count of your posts anywhere. Because of that, and since I didn't find anything that would suit my needs, I ended up creating WordPress Popular Posts: a highly customizable, easy-to-use WordPress plugin with the ability to keep track of what's popular to showcase it to the visitors!
+
+= How does the plugin count views / calculate the popularity of posts? =
+Since WordPress doesn't store views count (only comments count), this plugin stores that info for you. When you sort your popular posts by *views*, WordPress Popular Posts will retrieve the views count it started caching from the time you first installed this plugin, and then rank the top posts according to the settings you have configured in the plugin. WordPress Popular Posts can also rank the popularity of your posts based on comments count as well.
+
+= I'm getting "Sorry. No data so far". What's up with that? =
+There are a number of reasons that might explain why you are seeing this message: no one has seen or commented on your posts/pages since WordPress Popular Posts activation, you should give it some time; your current theme does not have the [wp_head()](http://codex.wordpress.org/Theme_Development#Plugin_API_Hooks) tag in its &lt;head&gt; section, required by my plugin to keep track of what your visitors are viewing on your site; WordPress Popular Posts was unable to create the necessary DB tables to work, make sure your hosting has granted you permission to create / update / modify tables in the database; if you're using a caching plugin -such as W3 Total Cache- you need to clear its cache once right after installing/upgrading this plugin.
+
+= My current theme does not support widgets (booooo!). Can I show my most popular posts in any other way? =
+Yes, there are other choices: you can use the [wpp shortcode](https://github.com/cabrerahector/wordpress-popular-posts/wiki/1.-Using-WPP-on-posts-&-pages), which allows you to embed your popular listing directly in the content of your posts and/or pages; or you can use the [wpp_get_mostpopular() template tag](https://github.com/cabrerahector/wordpress-popular-posts/wiki/2.-Template-tags#wpp_get_mostpopular). Both options are highly customizable via parameters, check them out via *wp-admin > Settings > WordPress Popular Posts > Parameters*.
+
+= WordPress Popular Posts is counting my own visits, why? =
+By default the plugin will register every page view from all visitors, including logged-in users. If you don't want WPP to track your own page views, please go to *wp-admin > Settings > WordPress Popular Posts > Tools* and change the "*Log views from*" option from *Everyone* to your preferred choice.
+
+= How can I use my own HTML markup with your plugin? =
+If you're using the widget, simply activate the *Use custom HTML markup* option and set your desired configuration and *Content Tags* (see *wp-admin > Settings > WordPress Popular Posts > Parameters* for more); or if you're using the template tag / shortcode, use the *wpp_start*, *wpp_end* and *post_html* parameters (see *wp-admin > Settings > WordPress Popular Posts > Parameters* for more).
+
+A more advanced way to customize the HTML markup is via [WordPress filters](http://code.tutsplus.com/articles/the-beginners-guide-to-wordpress-actions-and-filters--wp-27373 "The Beginner's guide to WordPress actions and filters") by hooking into *wpp_custom_html* or *wpp_post*. For details, please check the [Filters page](https://github.com/cabrerahector/wordpress-popular-posts/wiki/3.-Filters) on the Wiki.
+
+= Where can I find the list of parameters accepted by the wpp_get_mostpopular() template tag / [wpp] shortcode? =
+You can find it via *wp-admin > Settings > WordPress Popular Posts > Parameters*.
+
+= I'm unable to activate the "Display post thumbnail" option. Why? =
+Please check that either the [ImageMagick](http://www.php.net/manual/en/intro.imagick.php) or [GD](http://www.php.net/manual/en/intro.image.php) extension is installed and [enabled by your host](http://wordpress.org/support/topic/289778#post-1366038).
+
+= How does WordPress Popular Posts pick my posts' thumbnails? =
+WordPress Popular Posts has three different thumbnail options to choose from available at *wp-admin > Settings > WordPress Popular Posts > Tools*: *Featured Image* (default), *First image on post*, or [*custom field*](http://codex.wordpress.org/Custom_Fields). If no images are found, a default thumbnail will be displayed instead.
+
+= I'm seeing a "No thumbnail" image, where's my post thumbnail? =
+Make sure you have assigned one to your posts (see previous question).
+
+= Is there any way I can change that ugly "No thumbnail" image for one of my own? =
+Fortunately, yes. Go to *wp-admin > Settings > WordPress Popular Posts > Tools* and check under *Thumbnail source*. Ideally, the thumbnail you're going to use should be set already with your desired width and height - however, the uploader will give you other size options as configured by your current theme.
+
+= I want to have a popular list of my custom post type. How can I do that? =
+Simply add your custom post type to the Post Type field in the widget (or if you're using the template tag / shortcode, use the *post_type* parameter).
+
+= I would like to clear all data gathered by WordPress Popular Posts and start over. How can I do that? =
+If you go to *wp-admin > Settings > WordPress Popular Posts > Tools*, you'll find two buttons that should do what you need: **Clear cache** and **Clear all data**. The first one just wipes out what's in cache (Last 24 hours, Last 7 Days, Last 30 Days, etc.), keeping the historical data (All-time) intact. The latter wipes out everything from WordPress Popular Posts data tables - even the historical data. Note that **this cannot be undone** so proceed with caution.
+
+= Can WordPress Popular Posts run on WordPress Multisite? =
+Starting from version 3.0.0, WPP checks for WordPress Multisite. While I have not tested it, WPP should work just fine under WPMU (but if it doesn't, please let me know).
+
+= -CSS AND STYLESHEETS- =
+
+= Does your plugin include any CSS stylesheets? =
+Yes, *but* there are no predefined styles (well, almost). WordPress Popular Posts will first look into your current theme's folder for the wpp.css file and use it if found so that any custom CSS styles made by you are not overwritten, otherwise will use the one bundled with the plugin.
+
+= Each time WordPress Popular Posts is updated the wpp.css stylesheet gets reset and I lose all changes I made to it. How can I keep my custom CSS? =
+Copy your modified wpp.css file to your theme's folder, otherwise my plugin will use the one bundled with it by default.
+
+= How can I style my list to look like [insert your desired look here]? =
+Since this plugin does not include any predefined designs, it's up to you to style your most popular posts list as you like (you might need to hire someone for this if you don't know HTML/CSS, though). However, I've gathered a few [examples](https://github.com/cabrerahector/wordpress-popular-posts/wiki/6.-Styling-the-list) that should get you started.
+
+= I want to remove WPP's stylesheet from the header of my theme. How can I do that? =
+You can disable the stylesheet via *wp-admin > Settings > WordPress Popular Posts > Tools*.
+
+= -OTHER STUFF THAT YOU (PROBABLY) WANT TO KNOW- =
+
+= Does WordPress Popular Posts support other languages than english? =
+Yes, check the [Other Notes](http://wordpress.org/plugins/wordpress-popular-posts/other_notes/) section for more information.
+
+= I want to translate your plugin into my language / help you update a translation. What do I need to do? =
+First thing you need to do is get a [gettext](http://www.gnu.org/software/gettext/) editor like [Poedit](http://www.poedit.net/) to translate all texts into your language. You'll find several .PO files bundled with the plugin under the *lang* folder. If you're planning to add a new language, check this handy [guide](http://urbangiraffe.com/articles/translating-wordpress-themes-and-plugins/ "Translating WordPress Plugins & Themes"). If you're interested in sharing your translation with others (or just helped update a current translation), please [let me know](http://wordpress.org/support/plugin/wordpress-popular-posts).
+
+= I want your plugin to have X or Y functionality. Can it be done? =
+If it fits the nature of my plugin and it sounds like something other users would like to have too, there's a pretty good chance that I will implement it (and if you can provide some sample code with useful comments, much better).
+
+= Your plugin seems to conflict with my current Theme / this other Plugin. Can you please help me? =
+If the theme/plugin you're talking about is a free one that can be downloaded from somewhere, sure I can try and take a look into it. Premium themes/plugins are out of discussion though, unless you're willing to grant me access to your site (or get me a copy of this theme/plugin) so I can check it out.
+
+= ETA for your next release? =
+Updates will come depending on my work projects (I'm a full-time web developer) and the amount of time I have on my hands. Quick releases will happen only when/if critical bugs are spotted.
+
+= I posted a question at the Support Forum and got no answer from the developer. Why is that? =
+Chances are that your question has been already answered either at the [Support Forum](http://wordpress.org/support/plugin/wordpress-popular-posts), the [Installation section](http://wordpress.org/plugins/wordpress-popular-posts/installation/), the [Wiki](https://github.com/cabrerahector/wordpress-popular-posts/wiki) or even here in the FAQ section, so I've decided not to answer. It could also happen that I'm just busy at the moment and haven't been able to read your post yet, so please be patient.
+
+= Is there any other way to contact you? =
+For the time being, the [Support Forum](http://wordpress.org/support/plugin/wordpress-popular-posts) is the only way to contact me. Please do not use my email to get in touch with me *unless I authorize you to do so*.
+
+== Screenshots ==
+
+1. Widgets Control Panel.
+2. WordPress Popular Posts Widget.
+3. WordPress Popular Posts Widget on theme's sidebar.
+4. WordPress Popular Posts Stats panel.
+
+== Changelog ==
+= 3.2.3 =
+**If you're using a caching plugin, flushing its cache after installing / upgrading to this version is highly recommended.**
+
+- Fixes a potential bug that might affect other plugins & themes (thanks @pippinsplugins).
+- Defines INNODB as default storage engine.
+- Adds the wpp-no-data CSS class to style the "Sorry, no data so far" message.
+- Adds a new index to summary table.
+- Updates plugin's documentation.
+- Other small bug fixes and improvements.
+
+= 3.2.2 =
+**If you're using a caching plugin, flushing its cache after installing / upgrading to this version is recommended.**
+
+* Moves sampling logic into Javascript (thanks, [@kurtpayne](https://github.com/kurtpayne)!)
+* Simplifies category filtering logic.
+* Fixes list sorting issue that some users were experimenting (thanks, sponker!)
+* Widget uses stock thumbnails when using predefined size (some conditions apply).
+* Adds the ability to enable / disable responsive support for thumbails.
+* Renames wpp_update_views action hook to wpp_post_update_views, **update your code!**
+* Adds wpp_pre_update_views action hook.
+* Adds filter wpp_render_image.
+* Drops support for get_mostpopular() template tag.
+* Fixes empty HTML tags (thumbnail, stats).
+* Removes Japanese, French and Norwegian Bokmal translation files from plugin.
+* Many minor bug fixes / enhancements.
+
+= 3.2.1 =
+* Fixes missing HTML decoding for custom HTML in widget.
+* Puts LIMIT clause back to the outer query.
+
+= 3.2.0 =
+* Adds check for jQuery.
+* Fixes invalid parameter in htmlspecialchars().
+* Switches AJAX update to POST method.
+* Removes href attribute from link when popular post is viewed.
+* Removes unnecesary ORDER BY clause in views/comments subquery.
+* Fixes Javascript console not working under IE8 (thanks, @[raphaelsaunier](https://github.com/raphaelsaunier)!)
+* Fixes WPML compatibility bug storing post IDs as 0.
+* Removes wpp-upload.js since it was no longer in use.
+* Fixes undefined default thumbnail image (thanks, Lea Cohen!)
+* Fixes rating parameter returning false value.
+* Adds Data Sampling (thanks, @[kurtpayne](https://github.com/kurtpayne)!)
+* Minor query optimizations.
+* Adds {date} (thanks, @[matsuoshi](https://github.com/matsuoshi)!) and {thumb_img} tags to custom html.
+* Adds minute time option for caching.
+* Adds wpp_data_sampling filter.
+* Removes jQuery's DOM ready hook for AJAX views update.
+* Adds back missing GROUP BY clause.
+* Removes unnecesary HTML decoding for custom HTML (thanks, Lea Cohen!)
+* Translates category name when WPML is detected.
+* Adds list of available thumbnail sizes to the widget.
+* Other minor bugfixes and improvements.
+
+= 3.1.1 =
+* Adds check for exif extension availability.
+* Rolls back check for user's default thumbnail.
+
+= 3.1.0 =
+* Fixes invalid HTML title/alt attributes caused by encoding issues.
+* Fixes issue with jQuery not loading properly under certain circumstances.
+* Fixes issue with custom excerpts not showing up.
+* Fixes undefined notices and removes an unused variable from widget_update().
+* Fixes wrong variable reference in __image_resize().
+* Adds charset to mb_substr when truncating excerpt.
+* Sets default logging level to 1 (Everyone).
+* Renders the category link with cat-id-[ID] CSS class.
+* Replaces getimagesize() with exif_imagetype().
+* Adds notice to move/copy wpp.css stylesheet into theme's directory to keep custom CSS styles across updates.
+* Thumbail generation process has been refactored for efficiency.
+* Thumbnails are now stored in a custom folder under Uploads.
+* Drops support on Japanese and French languages since the translations were outdated.
+* Other minor bug fixes and improvements.
+
+= 3.0.3 =
+* Fixes widget not saving 'freshness' setting.
+* Adds HTMLentities conversion/deconversion on wpp_get_mostpopular().
+* Improves thumbnail detection.
+* Fixes a bug affecting the truncation of excerpts.
+* Fixes yet another bug on wpp_get_views().
+* Other minor changes.
+
+= 3.0.2 =
+* Fixes an introduced bug on wpp_get_views().
+* Fixes bug where thumbnail size was cached for multiple instances.
+* Adds back stylesheet detection.
+* Removes unused widget.js file.
+* Other minor bug fixes.
+
+= 3.0.1 =
+* Fixes bug on wpp_get_views.
+* Sustitutes WP_DEBUG with custom debugging constant.
+* Fixes bug that prevented disabling plugin's stylesheet.
+
+= 3.0.0 =
+* Starting from this version, the way plugin tracks views count switched back to [AJAX](http://codex.wordpress.org/AJAX) to prevent bots / spiders from inflating views count. If you're using a caching plugin you should clear its cache after installing / upgrading the WordPress Popular Posts plugin so it can track your posts and pages normally.
+* Plugin refactoring based on [@tikaszvince](https://github.com/tikaszvince)'s work (many thanks, Vince!).
+* Added WPML support.
+* Added experimental WordPress Multisite support.
+* Added bot detection.
+* Added ability to filter posts by freshness.
+* Added own data caching method.
+* Added filters wpp_custom_html, wpp_post.
+* Added action wpp_update_views.
+* Dropped support on Dutch and Persian languages since the translations were outdated.
+* Several other fixes and improvements.
+
+= 2.3.5 =
+* Fixed minor bugs on admin page.
+* Fixed query bug preventing some results from being listed.
+* Added a check to avoid using the terms tables if not necessary (eg. listing pages only).
+
+= 2.3.4 =
+* Added ability to shorten title/excerpt by number of words.
+* Updated excerpt code, don't show it if empty.
+* Added ability to set post_type on Stats page.
+* Added check for is_preview() to avoid updating views count when editing and previewing a post / page (thanks, Partisk!).
+* Added ability to change default thumbnail via admin (thanks for the suggestion, Martin!).
+* Fixed bug in query when getting popular posts from category returning no results if it didn't have any post on the top viewed / commented.
+* Added function for better handling changes/updates in settings.
+* Updated get_summary() to use API functions instead querying directly to DB.
+* Updated wpp_print_stylesheet() to get the wpp.css file from the right path (thanks, Martin!).
+* Moved translations to lang folder.
+
+= 2.3.3 =
+* Minimum WordPress version requirement changed to 3.3.
+* Minimum PHP version requirement changed to 5.2.0.
+* Improved Custom HTML feature! It's more flexible now + new Content Tags added: {url}, {text_title}, {author}, {category}, {views}, {comments}!.
+* Added ability to exclude posts by ID (similar to the category filter).
+* Added ability to enable / disable logging visits from logged-in users.
+* Added Category to the Stats Tag settings options.
+* Added range parameter to wpp_get_views().
+* Added numeric formatting to the wpp_get_views() function.
+* When enabling the Display author option, author's name will link to his/her profile page.
+* Fixed bad numeric formatting in Stats showing truncated views count.
+* Fixed AJAX update feature (finally!). WPP works properly now when using caching plugins!
+* Fixed WP Post Ratings not displaying on the list (and while it works, there are errors coming from the WP Post Ratings plugin itself: http://wordpress.org/support/topic/plugin-wp-postratings-undefined-indexes).
+* Improved database queries for speed.
+* Fixed bug preventing PostRating to show.
+* Removed Timthumb (again) in favor of the updated get_img() function based on Victor Teixeira's vt_resize function.
+* Cron now removes from cache all posts that have been trashed or eliminated.
+* Added proper numeric formatting for views / comments count. (Thank you for the tip, dimagsv!)
+* Added "the title filter fix" that affected some themes. (Thank you, jeremyers1!)
+* Added dutch translation. (Thank you, Jeroen!)
+* Added german translation. (Thank you, Martin!)
+
+= 2.3.2 =
+* The ability to enable / disable the Ajax Update has been removed. It introduced a random bug that doubled the views count of some posts / pages. Will be added back when a fix is ready.
+* Fixed a bug preventing the cat parameter from excluding categories (widget was not affected by this).
+* FAQ section (Settings / WordPress Popular Posts / FAQ) updated.
+* Added french translation. (Thanks, Le Raconteur!)
+
+= 2.3.1 =
+* Fixed bug caused by the sorter function when there are multiple instances of the widget.
+* Added check for new options in the get_popular_posts function.
+* Added plugin version check to handle upgrades.
+* Fixed bug preventing some site from fetching images from subdomains or external sites.
+* Fixed bug that prevented excluding more than one category using the Category filter.
+
+= 2.3.0 =
+* Merged all pages into Settings/WordPress Popular Posts.
+* Added new options to the WordPress Popular Posts Stats dashboard.
+* Added check for static homepages to avoid printing ajax script there.
+* Database queries re-built from scratch for optimization.
+* Added the ability to remove / enable plugin's stylesheet from the admin.
+* Added the ability to enable / disable ajax update from the admin.
+* Added the ability to set thumbnail's source from the admin.
+* Timthumb support re-added.
+* Added support for custom post type (Thanks, Brad Williams!).
+* Improved the category filtering feature.
+* Added the ability to get popular posts from given author IDs.
+
+
+= 2.2.1 =
+* Quick update to fix error with All-time combined with views breaking the plugin.
+
+= 2.2.0 =
+* Featured Image is generated for the user automatically if not present and if there's an image attached to the post.
+* Range feature Today option changed. Replaced with Last 24 hours.
+* Category exclusion query simplified. Thanks to almergabor for the suggestion!
+* Fixed bug caused by selecting Avg. Views and All-Time that prevented WPP from getting any data from the BD. Thanks Janseo!
+* Updated the get_summary function to strip out shortcodes from excerpt as well.
+* Fixed bug in the truncate function affecting accented characters. Thanks r3df!
+* Fixed bug keeping db tables from being created. Thanks northlake!
+* Fixed bug on the shortcode which was showing pages even if turned off. Thanks danpkraus!
+
+= 2.1.7 =
+* Added stylesheet detection. If wpp.css is on theme's folder, will use that instead the one bundled with the plugin.
+
+= 2.1.6 =
+* Added DB character set and collate detection.
+* Fixed excerpt translation issue when the qTrans plugin is present. Thanks r3df!.
+* Fixed thumbnail dimensions issue.
+* Fixed widget page link.
+* Fixed widget title encoding bug.
+* Fixed deprecated errors on load_plugin_textdomain and add_submenu_page.
+
+= 2.1.5 =
+* Dropped TimThumb support in favor of WordPress's Featured Image function.
+
+= 2.1.4 =
+* Added italian localization. Thanks Gianni!
+* Added charset detection.
+* Fixed bug preventing HTML View / Visual View on Edit Post page from working.
+
+= 2.1.1 =
+* Fixed bug preventing widget title from being saved.
+* Fixed bug affecting blogs with WordPress installed somewhere else than domain's root.
+* Added htmlentities to post titles.
+* Added default thumbnail image if none is found in the post.
+
+= 2.1.0 =
+* Title special HTML entities bug fixed.
+* Thumbnail feature improved! WordPress Popular Posts now supports The Post Thumbnail feature. You can choose whether to select your own thumbnails, or let WordPress Popular Posts create them for you!
+* Shortcode bug fixed. Thanks Krokkodriljo!
+* Category exclusion feature improved. Thanks raamdev!
+
+= 2.0.3 =
+* Added a Statistics Dashboard to Admin panel so users can view what's popular directly from there.
+* Users can now select a different date format.
+* get_mostpopular() function deprecated. Replaced with wpp_get_mostpopular().
+* Cache maintenance bug fixed.
+* Several UI enhancements were applied to this version.
+
+= 2.0.2 =
+* "Keep text format and links" feature introduced. If selected, formatting tags and hyperlinks won't be removed from excerpt.
+* Post title excerpt html entities bug fixed. It was causing the excerpt function to display more characters than the requested by user.
+* Several shortcode bugs fixed (range, order_by, do_pattern, pattern_form were not working as expected).
+
+= 2.0.1 =
+* Post title excerpt now includes html entities. Characters like &Aring;&Auml;&Ouml; should display properly now.
+* Post excerpt has been improved. Now it supports the following HTML tags: a, b, i, strong, em.
+* Template tag wpp_get_views() added. Retrieves the views count of a single post.
+* Template tag get_mostpopular() re-added. Parameter support included.
+* Shortcode bug fixed (range was always "daily" no matter what option was being selected by the user).
+
+= 2.0.0 =
+* Plugin rewritten to support Multi-Widget capabilities
+* Cache table implemented
+* Shortcode support added
+* Category exclusion feature added
+* Ajax update added - plugin is now compatible with caching plugins such as WP Super Cache
+* Thumbnail feature improved - some bugs were fixed, too
+* Maintenance page added
+
+= 1.5.1 =
+* Widget bug fixed
+
+= 1.5.0 =
+* Database improvements implemented
+* WP-PostRatings support added
+* Thumbnail feature added
+
+= 1.4.6 =
+* Bug in get_mostpopular function affected comments on single.php
+* "Show pageviews" option bug fixed
+* Added "content formatting tags" functionality
+
+= 1.4.5 =
+* Added new localizable strings
+* Fixed Admin page coding bug that was affecting the styling of WPP
+
+= 1.4.4 =
+* HTML Markup customizer added
+* Removed some unnessesary files
+
+= 1.4.3 =
+* Korean and Swedish are supported
+
+= 1.4.2 =
+* Code snippet bug found
+
+= 1.4.1 =
+* Found database bug affecting only new installations
+
+= 1.4 =
+* Massive code enhancement
+* CSS bugs fixed
+* Features added: Time Range; author and date (stats tag); separate settings for Widget and Code Snippet
+
+= 1.3.2 =
+* Permalink bug fixed
+
+= 1.3.1 =
+* Admin panel styling bug fixed
+
+= 1.3 =
+* Added an Admin page for a better management of the plugin
+* New sorting options (sort posts by comment count, by pageviews, or by average daily views) added
+
+= 1.2 =
+* Added extra functionalities to WordPress Popular Post plugin core
+
+= 1.1  =
+* Fixed comment count bug
+
+= 1.0 =
+* Public release
+
+== Language support ==
+
+All translations are community made: people who are nice enough to share their translations with me so I can distribute them with the plugin. If you spot an error, or feel like helping improve a translation, please check the [FAQ section](http://wordpress.org/plugins/wordpress-popular-posts/faq/ "FAQ section") for instructions.
+
+* English (supported by Hector Cabrera).
+* Spanish (supported by Hector Cabrera).
+* German - 86% translated.
+
+== Credits ==
+
+* Flame graphic by freevector/Vecteezy.com.
+
+== Upgrade Notice ==
+
+= 3.2.3 =
+If you're using a caching plugin, flushing its cache after upgrading is highly recommended.
diff --git a/wp-content/plugins/wordpress-popular-posts/style/admin.css b/wp-content/plugins/wordpress-popular-posts/style/admin.css
index 7b66b8b9191bc95a1112b800fe9ce656170e9dab..7b2d7ebd79e7b5125200c974e61f005bb17f8214 100644
--- a/wp-content/plugins/wordpress-popular-posts/style/admin.css
+++ b/wp-content/plugins/wordpress-popular-posts/style/admin.css
@@ -1,93 +1,115 @@
-.wpp_boxes {
-	display:none;
-	overflow:hidden;
-	width:100%;
-}
-
-	/* Stats */
-	#wpp-stats-tabs {
-		padding:2px 0;
-	}
-	
-	#wpp-stats-canvas {
-		overflow:hidden;
-		padding:2px 0;
-		width:100%;
-	}
-
-		.wpp-stats {
-			display:none;
-			width:96%px;
-			padding:1% 0;
-			font-size:8px;
-			background:#fff;
-			border:#999 3px solid;
-		}
-		
-		.wpp-stats-active {
-			display:block;
-		}
-		
-			.wpp-stats ol {
-				margin:0;
-				padding:0;
-			}
-			
-				.wpp-stats ol li {
-					overflow:hidden;
-					margin:0 8px 10px 8px!important;
-					padding:0 0 2px 0!important;
-					font-size:12px;
-					line-height:12px;
-					color:#999;
-					border-bottom:#eee 1px solid;
-				}
-				
-					.wpp-post-title {
-						display:inline;
-						float:left;
-						font-weight:bold;
-					}
-					
-					.post-stats {
-						display:inline;
-						float:right;
-						font-size:0.9em!important;
-						text-align:right;
-						color:#999;
-					}
-				
-			.wpp-stats-unique-item, .wpp-stats-last-item {
-				margin:0!important;
-				padding:0!important;
-				border:none!important;
-			}
-			
-			.wpp-stats p {
-				margin:0;
-				padding:0 8px;
-				font-size:12px;
-			}
-	
-	/* FAQ */		
-	#wpp_faq {
-	}
-		
-		#wpp_faq h4 {
-			margin:18px 0 0 0;
-		}
-		
-			#wpp_faq h4 a.active { color:#d74e21; }
-	
-		.wpp-ans {
-			/*display:none;*/
-			margin:5px 0 0 0;
-			width:96%;
-			padding:1% 2%;
-			background:#e5e5e5;
-		}
-		
-			.wpp-ans p {
-				margin:0 0 0 0;
-				padding:0;
+.wpp_boxes {
+	display:none;
+	overflow:hidden;
+	width:100%;
+}
+
+.wpp_box {
+	overflow:hidden;
+	display:inline;
+	float:right;
+	margin:0 0 15px 0;
+	padding:10px;
+	width:230px;
+	background:#f9f9f9;
+	border: 1px solid #ccc;
+}
+
+#wpp_donate { margin-top:15px; }
+
+#wpp_support { clear:right; }
+
+.clear {
+	float:none;
+	clear:both;
+	width:100%;
+}
+
+	/* Stats */
+	#wpp-stats-tabs {
+		padding:2px 0;
+	}
+	
+	#wpp-stats-canvas {
+		overflow:hidden;
+		padding:2px 0;
+		width:100%;
+	}
+
+		.wpp-stats {
+			display:none;
+			width:96%px;
+			padding:1% 0;
+			font-size:8px;
+			background:#fff;
+			border:#999 3px solid;
+		}
+		
+		.wpp-stats-active {
+			display:block;
+		}
+		
+			.wpp-stats ol {
+				margin:0;
+				padding:0;
+			}
+			
+				.wpp-stats ol li {
+					/*overflow:hidden;*/
+					margin:0 8px 15px 30px;
+					padding:0;
+					font-size:12px;
+					line-height:12px;
+					color:#999;
+					border-bottom:#eee 1px solid;
+				}
+				
+					.wpp-post-title {
+						/*display:inline;
+						float:left;*/
+						font-weight:bold;
+					}
+					
+					.post-stats {
+						display:block;
+						padding:5px 0;
+						font-size:0.9em!important;
+						text-align:left;
+						color:#999;
+					}
+				
+			.wpp-stats-unique-item, .wpp-stats-last-item {
+				margin-bottom:0!important;
+				border:none!important;
+			}
+			
+				.wpp-stats-unique-item .post-stats, .wpp-stats-last-item .post-stats { padding-bottom:0; }
+			
+			.wpp-stats p {
+				margin:0;
+				padding:0 8px;
+				font-size:12px;
+			}
+	
+	/* FAQ */		
+	#wpp_faq {
+	}
+		
+		#wpp_faq h4 {
+			margin:18px 0 0 0;
+		}
+		
+			#wpp_faq h4 a.active { color:#d74e21; }
+	
+		.wpp-ans {
+			/*display:none;*/
+			margin:5px 0 0 0;
+			width:96%;
+			padding:1% 2%;
+			background:#e5e5e5;
+		}
+		
+			.wpp-ans p {
+				margin:0 0 0 0;
+				padding:0;
 			}
\ No newline at end of file
diff --git a/wp-content/plugins/wordpress-popular-posts/style/wpp.css b/wp-content/plugins/wordpress-popular-posts/style/wpp.css
index 057c235a93f47b171a4a13a158cc7f1078fc4c08..8107a13773778de52467fc3d951518e9e00cf1f0 100644
--- a/wp-content/plugins/wordpress-popular-posts/style/wpp.css
+++ b/wp-content/plugins/wordpress-popular-posts/style/wpp.css
@@ -1,55 +1,69 @@
-/*
-Wordpress Popular Posts plugin stylesheet
-Developed by Hector Cabrera
-
-Use the following classes to style your popular posts list as you like.
-*/
-
-.wpp-list { /* UL element */
-	
-}
-
-	.wpp-list li { /* LI - post container */
-		/*display:inline-block;*/ /* <-- uncommenting this line is recommended when using post thumbnails */
-		float:none;
-		clear:left;
-	}
-
-		/* title styles */
-		.wpp-post-title {
-		}
-		
-		/* thumbnail styles */
-		.wpp-thumbnail {
-			display:inline;
-			float:left;
-			margin:0 5px 0 0;
-			border:none;
-		}
-		
-		/* excerpt styles */
-		.wpp-excerpt {
-		}
-		
-		/* Stats tag styles */
-		.post-stats {
-			display:block;
-			font-size:9px;
-			font-weight:bold;
-		}
-			
-			.wpp-comments {
-			}
-			
-			.wpp-views {
-			}
-			
-			.wpp-author {
-			}
-			
-			.wpp-date {
-			}
-		
-		/* WP-PostRatings styles */
-		.wpp-rating {
+/*
+Wordpress Popular Posts plugin stylesheet
+Developed by Hector Cabrera
+cabrerahector.com | @cabrerahector
+
+Use the following classes to style your popular posts list as you like.
+*/
+
+/* Styles the "Sorry, no data so far" message */
+.wpp-no-data {
+}
+
+/* UL - Popular Posts container styles */
+.wpp-list {	
+}
+
+	/* LI - Post container styles */
+	.wpp-list li {
+		overflow:hidden;
+		float:none;
+		clear:both;
+	}
+	
+		/* Thumbnail styles */
+		.wpp-thumbnail {
+			display:inline;
+			float:left;
+			margin:0 5px 0 0;
+			border:none;
+		}
+
+		/* Title styles */
+		.wpp-post-title {
+		}
+		
+		/* Excerpt styles */
+		.wpp-excerpt {
+		}
+		
+		/* Stats tag styles */
+		.post-stats {
+			display:block;
+			font-size:9px;
+			font-weight:bold;
+		}
+			
+			/* Comments count styles */
+			.wpp-comments {
+			}
+			
+			/* Views count styles */
+			.wpp-views {
+			}
+			
+			/* Author styles */
+			.wpp-author {
+			}
+			
+			/* Post date styles */
+			.wpp-date {
+			}
+			
+			/* Post category styles */
+			.wpp-category {
+			}
+		
+		/* WP-PostRatings styles */
+		.wpp-rating {
 		}
\ No newline at end of file
diff --git a/wp-content/plugins/wordpress-popular-posts/uninstall.php b/wp-content/plugins/wordpress-popular-posts/uninstall.php
index 1073b3772dc9e643cbc36cfe785d29cdafa52c80..a24b5ac86d69b5fbdfc7055e49f6f04ae5d6a86d 100644
--- a/wp-content/plugins/wordpress-popular-posts/uninstall.php
+++ b/wp-content/plugins/wordpress-popular-posts/uninstall.php
@@ -1,93 +1,93 @@
-<?php
-/**
- * Fired when the plugin is uninstalled.
- *
- * @package   WordpressPopularPosts
- * @author    Hector Cabrera <hcabrerab@gmail.com>
- * @license   GPL-2.0+
- * @link      http://cabrerahector.com
- * @copyright 2013 Hector Cabrera
- */
-
-// If uninstall, not called from WordPress, then exit
-if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) {
-	exit;
-}
-
-// Run uninstall for each blog in the network
-if ( function_exists( 'is_multisite' ) && is_multisite() ) {
-	
-	global $wpdb;
-	
-	$original_blog_id = get_current_blog_id();
-	$blogs_ids = $wpdb->get_col( "SELECT blog_id FROM {$wpdb->blogs}" );
-
-	foreach( $blogs_ids as $blog_id ) {
-		
-		switch_to_blog( $blog_id );
-		
-		// Delete plugin's options
-		delete_site_option( 'wpp_ver' );
-		delete_site_option( 'wpp_settings_config' );
-		delete_site_option( 'wpp_rand' );
-		delete_site_option( 'wpp_transients' );
-		
-		// delete tables
-		uninstall();
-		
-		// delete thumbnails cache and its directory
-		delete_thumb_cache();
-
-	}
-
-	// Switch back to current blog
-	switch_to_blog( $original_blog_id );
-
-} else {
-	
-	// Delete plugin's options
-	delete_option( 'wpp_ver' );
-	delete_option( 'wpp_settings_config' );
-	delete_option( 'wpp_rand' );
-	delete_option( 'wpp_transients' );
-	
-	// delete tables
-	uninstall();
-	
-	// delete thumbnails cache and its directory
-	delete_thumb_cache();
-
-}
-
-function delete_thumb_cache() {
-	$wp_upload_dir = wp_upload_dir();
-				
-	if ( is_dir( $wp_upload_dir['basedir'] . "/wordpress-popular-posts" ) ) {
-		$files = glob( $wp_upload_dir['basedir'] . "/wordpress-popular-posts/*" ); // get all file names
-		
-		if ( is_array($files) && !empty($files) ) {					
-			foreach($files as $file){ // iterate files
-				if ( is_file($file) )
-					@unlink($file); // delete file
-			}
-		}
-		
-		// Finally, delete wpp's upload directory
-		@rmdir( $wp_upload_dir['basedir'] . "/wordpress-popular-posts" );
-	
-	}
-}
-
-function uninstall(){
-	
-	global $wpdb;
-
-	// Delete db tables
-	$prefix = $wpdb->prefix . "popularposts";
-	$wpdb->query( "DROP TABLE IF EXISTS {$prefix}data;" );
-	$wpdb->query( "DROP TABLE IF EXISTS {$prefix}datacache;" );
-	$wpdb->query( "DROP TABLE IF EXISTS {$prefix}datacache_backup;" );
-	$wpdb->query( "DROP TABLE IF EXISTS {$prefix}log;" );
-	$wpdb->query( "DROP TABLE IF EXISTS {$prefix}summary" );
-	
+<?php
+/**
+ * Fired when the plugin is uninstalled.
+ *
+ * @package   WordpressPopularPosts
+ * @author    Hector Cabrera <hcabrerab@gmail.com>
+ * @license   GPL-2.0+
+ * @link      http://cabrerahector.com
+ * @copyright 2013 Hector Cabrera
+ */
+
+// If uninstall, not called from WordPress, then exit
+if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) {
+	exit;
+}
+
+// Run uninstall for each blog in the network
+if ( function_exists( 'is_multisite' ) && is_multisite() ) {
+	
+	global $wpdb;
+	
+	$original_blog_id = get_current_blog_id();
+	$blogs_ids = $wpdb->get_col( "SELECT blog_id FROM {$wpdb->blogs}" );
+
+	foreach( $blogs_ids as $blog_id ) {
+		
+		switch_to_blog( $blog_id );
+		
+		// Delete plugin's options
+		delete_site_option( 'wpp_ver' );
+		delete_site_option( 'wpp_settings_config' );
+		delete_site_option( 'wpp_rand' );
+		delete_site_option( 'wpp_transients' );
+		
+		// delete tables
+		uninstall();
+		
+		// delete thumbnails cache and its directory
+		delete_thumb_cache();
+
+	}
+
+	// Switch back to current blog
+	switch_to_blog( $original_blog_id );
+
+} else {
+	
+	// Delete plugin's options
+	delete_option( 'wpp_ver' );
+	delete_option( 'wpp_settings_config' );
+	delete_option( 'wpp_rand' );
+	delete_option( 'wpp_transients' );
+	
+	// delete tables
+	uninstall();
+	
+	// delete thumbnails cache and its directory
+	delete_thumb_cache();
+
+}
+
+function delete_thumb_cache() {
+	$wp_upload_dir = wp_upload_dir();
+				
+	if ( is_dir( $wp_upload_dir['basedir'] . "/wordpress-popular-posts" ) ) {
+		$files = glob( $wp_upload_dir['basedir'] . "/wordpress-popular-posts/*" ); // get all file names
+		
+		if ( is_array($files) && !empty($files) ) {					
+			foreach($files as $file){ // iterate files
+				if ( is_file($file) )
+					@unlink($file); // delete file
+			}
+		}
+		
+		// Finally, delete wpp's upload directory
+		@rmdir( $wp_upload_dir['basedir'] . "/wordpress-popular-posts" );
+	
+	}
+}
+
+function uninstall(){
+	
+	global $wpdb;
+
+	// Delete db tables
+	$prefix = $wpdb->prefix . "popularposts";
+	$wpdb->query( "DROP TABLE IF EXISTS {$prefix}data;" );
+	$wpdb->query( "DROP TABLE IF EXISTS {$prefix}datacache;" );
+	$wpdb->query( "DROP TABLE IF EXISTS {$prefix}datacache_backup;" );
+	$wpdb->query( "DROP TABLE IF EXISTS {$prefix}log;" );
+	$wpdb->query( "DROP TABLE IF EXISTS {$prefix}summary" );
+	
 }
\ No newline at end of file
diff --git a/wp-content/plugins/wordpress-popular-posts/views/admin.php b/wp-content/plugins/wordpress-popular-posts/views/admin.php
index b4e66da76b4abdbb427a824f0180f4f73d375f06..23bd486d5cd037cfefa110bc61913e4c2f9adbb3 100644
--- a/wp-content/plugins/wordpress-popular-posts/views/admin.php
+++ b/wp-content/plugins/wordpress-popular-posts/views/admin.php
@@ -1,749 +1,813 @@
-<?php
-if (basename($_SERVER['SCRIPT_NAME']) == basename(__FILE__))
-	exit('Please do not load this page directly');
-
-define('WPP_ADMIN', true);
-
-// Set active tab
-if ( isset($_GET['tab']) )
-	$current = $_GET['tab'];
-else
-	$current = 'stats';
-
-// Update options on form submission
-if ( isset($_POST['section']) ) {
-	
-	if ( "stats" == $_POST['section'] ) {		
-		$current = 'stats';
-		
-		$this->user_settings['stats']['order_by'] = $_POST['stats_order'];
-		$this->user_settings['stats']['limit'] = (is_numeric($_POST['stats_limit']) && $_POST['stats_limit'] > 0) ? $_POST['stats_limit'] : 10;
-		$this->user_settings['stats']['post_type'] = empty($_POST['stats_type']) ? "post,page" : $_POST['stats_type'];
-		$this->user_settings['stats']['freshness'] = empty($_POST['stats_freshness']) ? false : $_POST['stats_freshness'];
-		
-		update_site_option('wpp_settings_config', $this->user_settings);			
-		echo "<div class=\"updated\"><p><strong>" . __('Settings saved.', $this->plugin_slug ) . "</strong></p></div>";		
-	}
-	elseif ( "misc" == $_POST['section'] ) {		
-		$current = 'tools';
-			
-		$this->user_settings['tools']['link']['target'] = $_POST['link_target'];		
-		$this->user_settings['tools']['css'] = $_POST['css'];
-		
-		update_site_option('wpp_settings_config', $this->user_settings);
-		echo "<div class=\"updated\"><p><strong>" . __('Settings saved.', $this->plugin_slug ) . "</strong></p></div>";		
-	}	
-	elseif ( "thumb" == $_POST['section'] ) {		
-		$current = 'tools';
-		
-		if ($_POST['thumb_source'] == "custom_field" && (!isset($_POST['thumb_field']) || empty($_POST['thumb_field']))) {
-			echo '<div id="wpp-message" class="error fade"><p>'.__('Please provide the name of your custom field.', $this->plugin_slug).'</p></div>';
-		} else {				
-			$this->user_settings['tools']['thumbnail']['source'] = $_POST['thumb_source'];
-			$this->user_settings['tools']['thumbnail']['field'] = ( !empty( $_POST['thumb_field']) ) ? $_POST['thumb_field'] : "wpp_thumbnail";
-			$this->user_settings['tools']['thumbnail']['default'] = ( !empty( $_POST['upload_thumb_src']) ) ? $_POST['upload_thumb_src'] : "";
-			$this->user_settings['tools']['thumbnail']['resize'] = $_POST['thumb_field_resize'];
-			
-			update_site_option('wpp_settings_config', $this->user_settings);				
-			echo "<div class=\"updated\"><p><strong>" . __('Settings saved.', $this->plugin_slug ) . "</strong></p></div>";
-		}
-	}
-	elseif ( "data" == $_POST['section'] ) {		
-		$current = 'tools';
-		
-		$this->user_settings['tools']['log']['level'] = $_POST['log_option'];
-		$this->user_settings['tools']['ajax'] = $_POST['ajax'];
-		
-		// if any of the caching settings was updated, destroy all transients created by the plugin
-		if ( $this->user_settings['tools']['cache']['active'] != $_POST['cache'] || $this->user_settings['tools']['cache']['interval']['time'] != $_POST['cache_interval_time'] || $this->user_settings['tools']['cache']['interval']['value'] != $_POST['cache_interval_value'] ) {
-			$this->__flush_transients();
-		}
-		
-		$this->user_settings['tools']['cache']['active'] = $_POST['cache'];			
-		$this->user_settings['tools']['cache']['interval']['time'] = $_POST['cache_interval_time'];
-		$this->user_settings['tools']['cache']['interval']['value'] = ( isset($_POST['cache_interval_value']) && is_numeric($_POST['cache_interval_value']) && $_POST['cache_interval_value'] > 0 ) 
-		  ? $_POST['cache_interval_value']
-		  : 1;
-		
-		update_site_option('wpp_settings_config', $this->user_settings);
-		echo "<div class=\"updated\"><p><strong>" . __('Settings saved.', $this->plugin_slug ) . "</strong></p></div>";		
-	}
-		
-}
-
-if ( $this->user_settings['tools']['css'] && !file_exists( get_stylesheet_directory() . '/wpp.css' ) ) {
-	echo '<div id="wpp-message" class="error fade"><p>'. __('Any changes made to WPP\'s default stylesheet will be lost after every plugin update. In order to prevent this from happening, please copy the wpp.css file (located at wp-content/plugins/wordpress-popular-posts/style) into your theme\'s directory', $this->plugin_slug) .'.</p></div>';
-}
-
-$rand = md5(uniqid(rand(), true));	
-$wpp_rand = get_site_option("wpp_rand");	
-if (empty($wpp_rand)) {
-	add_site_option("wpp_rand", $rand);
-} else {
-	update_site_option("wpp_rand", $rand);
-}
-
-?>
-<script type="text/javascript">
-	// TOOLS
-	function confirm_reset_cache() {
-		if (confirm("<?php _e("This operation will delete all entries from WordPress Popular Posts' cache table and cannot be undone.", $this->plugin_slug); ?> \n\n" + "<?php _e("Do you want to continue?", $this->plugin_slug); ?>")) {
-			jQuery.post(ajaxurl, {action: 'wpp_clear_data', token: '<?php echo get_site_option("wpp_rand"); ?>', clear: 'cache'}, function(data){
-				alert(data);
-			});
-		}
-	}
-	
-	function confirm_reset_all() {
-		if (confirm("<?php _e("This operation will delete all stored info from WordPress Popular Posts' data tables and cannot be undone.", $this->plugin_slug); ?> \n\n" + "<?php _e("Do you want to continue?", $this->plugin_slug); ?>")) {
-			jQuery.post(ajaxurl, {action: 'wpp_clear_data', token: '<?php echo get_site_option("wpp_rand"); ?>', clear: 'all'}, function(data){
-				alert(data);
-			});
-		}
-	}
-	
-	function confirm_clear_image_cache() {
-		if (confirm("<?php _e("This operation will delete all cached thumbnails and cannot be undone.", $this->plugin_slug); ?> \n\n" + "<?php _e("Do you want to continue?", $this->plugin_slug); ?>")) {
-			jQuery.post(ajaxurl, {action: 'wpp_clear_thumbnail', token: '<?php echo get_site_option("wpp_rand"); ?>'}, function(data){
-				alert(data);
-			});
-		}
-	}
-	
-</script>
-
-<div class="wrap">
-    <div id="icon-options-general" class="icon32"><br /></div>
-    <h2>WordPress Popular Posts</h2>
-    
-    <h2 class="nav-tab-wrapper">
-    <?php
-    // build tabs    
-    $tabs = array( 
-        'stats' => __('Stats', $this->plugin_slug),
-		'tools' => __('Tools', $this->plugin_slug),
-		'params' => __('Parameters', $this->plugin_slug),
-        'faq' => __('FAQ', $this->plugin_slug),
-		'about' => __('About', $this->plugin_slug)
-    );
-    foreach( $tabs as $tab => $name ){
-        $class = ( $tab == $current ) ? ' nav-tab-active' : '';
-        echo "<a class='nav-tab$class' href='?page=wordpress-popular-posts&tab=$tab'>$name</a>";
-    }    
-    ?>
-    </h2>
-    
-    <!-- Start stats -->
-    <div id="wpp_stats" class="wpp_boxes"<?php if ( "stats" == $current ) {?> style="display:block;"<?php } ?>>
-    	<p><?php _e("Click on each tab to see what are the most popular entries on your blog in the last 24 hours, this week, last 30 days or all time since WordPress Popular Posts was installed.", $this->plugin_slug); ?></p>
-        
-        <div class="tablenav top">
-            <div class="alignleft actions">
-                <form action="" method="post" id="wpp_stats_options" name="wpp_stats_options">
-                    <select name="stats_order">
-                        <option <?php if ($this->user_settings['stats']['order_by'] == "comments") {?>selected="selected"<?php } ?> value="comments"><?php _e("Order by comments", $this->plugin_slug); ?></option>
-                        <option <?php if ($this->user_settings['stats']['order_by'] == "views") {?>selected="selected"<?php } ?> value="views"><?php _e("Order by views", $this->plugin_slug); ?></option>
-                        <option <?php if ($this->user_settings['stats']['order_by'] == "avg") {?>selected="selected"<?php } ?> value="avg"><?php _e("Order by avg. daily views", $this->plugin_slug); ?></option>
-                    </select>
-                    <label for="stats_type"><?php _e("Post type", $this->plugin_slug); ?>:</label> <input type="text" name="stats_type" value="<?php echo $this->user_settings['stats']['post_type']; ?>" size="15" />
-                    <label for="stats_limits"><?php _e("Limit", $this->plugin_slug); ?>:</label> <input type="text" name="stats_limit" value="<?php echo $this->user_settings['stats']['limit']; ?>" size="5" />
-                    &nbsp;&nbsp;&nbsp;<label for="stats_freshness"><input type="checkbox" class="checkbox" <?php echo ($this->user_settings['stats']['freshness']) ? 'checked="checked"' : ''; ?> id="stats_freshness" name="stats_freshness" /> <?php _e('Display only posts published within the selected Time Range', 'wordpress-popular-posts'); ?></label>&nbsp;&nbsp;&nbsp;&nbsp;
-                    <input type="hidden" name="section" value="stats" />
-                    <input type="submit" class="button-secondary action" value="<?php _e("Apply", $this->plugin_slug); ?>" name="" />
-                </form>
-            </div>
-        </div>
-        <br />
-        <div id="wpp-stats-tabs">            
-            <a href="#" class="button-primary" rel="wpp-daily"><?php _e("Last 24 hours", $this->plugin_slug); ?></a>
-            <a href="#" class="button-secondary" rel="wpp-weekly"><?php _e("Last 7 days", $this->plugin_slug); ?></a>
-            <a href="#" class="button-secondary" rel="wpp-monthly"><?php _e("Last 30 days", $this->plugin_slug); ?></a>
-            <a href="#" class="button-secondary" rel="wpp-all"><?php _e("All-time", $this->plugin_slug); ?></a>
-        </div>
-        <div id="wpp-stats-canvas">            
-            <div class="wpp-stats wpp-stats-active" id="wpp-daily">            	
-                <?php echo do_shortcode("[wpp range='daily' post_type='".$this->user_settings['stats']['post_type']."' stats_comments=1 stats_views=1 order_by='".$this->user_settings['stats']['order_by']."' wpp_start='<ol>' wpp_end='</ol>' post_html='<li>{title} <span class=\"post-stats\">{stats}</span></li>' limit=".$this->user_settings['stats']['limit']." freshness=" . $this->user_settings['stats']['freshness'] . "]"); ?>
-            </div>
-            <div class="wpp-stats" id="wpp-weekly">
-                <?php echo do_shortcode("[wpp range='weekly' post_type='".$this->user_settings['stats']['post_type']."' stats_comments=1 stats_views=1 order_by='".$this->user_settings['stats']['order_by']."' wpp_start='<ol>' wpp_end='</ol>' post_html='<li>{title} <span class=\"post-stats\">{stats}</span></li>' limit=".$this->user_settings['stats']['limit']." freshness=" . $this->user_settings['stats']['freshness'] . "]"); ?>
-            </div>
-            <div class="wpp-stats" id="wpp-monthly">
-                <?php echo do_shortcode("[wpp range='monthly' post_type='".$this->user_settings['stats']['post_type']."' stats_comments=1 stats_views=1 order_by='".$this->user_settings['stats']['order_by']."' wpp_start='<ol>' wpp_end='</ol>' post_html='<li>{title} <span class=\"post-stats\">{stats}</span></li>' limit=".$this->user_settings['stats']['limit']." freshness=" . $this->user_settings['stats']['freshness'] . "]"); ?>
-            </div>
-            <div class="wpp-stats" id="wpp-all">
-                <?php echo do_shortcode("[wpp range='all' post_type='".$this->user_settings['stats']['post_type']."' stats_comments=1 stats_views=1 order_by='".$this->user_settings['stats']['order_by']."' wpp_start='<ol>' wpp_end='</ol>' post_html='<li>{title} <span class=\"post-stats\">{stats}</span></li>' limit=".$this->user_settings['stats']['limit']." freshness=" . $this->user_settings['stats']['freshness'] . "]"); ?>
-            </div>
-        </div>
-    </div>
-    <!-- End stats -->
-    
-    <!-- Start tools -->
-    <div id="wpp_tools" class="wpp_boxes"<?php if ( "tools" == $current ) {?> style="display:block;"<?php } ?>>
-        
-        <h3 class="wmpp-subtitle"><?php _e("Thumbnails", $this->plugin_slug); ?></h3>        	
-        <form action="" method="post" id="wpp_thumbnail_options" name="wpp_thumbnail_options">            
-            <table class="form-table">
-                <tbody>
-                	<tr valign="top">
-                        <th scope="row"><label for="thumb_default"><?php _e("Default thumbnail", $this->plugin_slug); ?>:</label></th>
-                        <td>                        	
-                            <div id="thumb-review">
-                                <img src="<?php echo $this->user_settings['tools']['thumbnail']['default']; ?>" alt="" border="0" />
-                            </div>
-                            <input id="upload_thumb_button" type="button" class="button" value="<?php _e( "Upload thumbnail", $this->plugin_slug ); ?>" />
-                            <input type="hidden" id="upload_thumb_src" name="upload_thumb_src" value="" />
-                            <p class="description"><?php _e("How-to: upload (or select) an image, set Size to Full and click on Upload. After it's done, hit on Apply to save changes", $this->plugin_slug); ?></p>
-                        </td>
-                    </tr>                    
-                    <tr valign="top">
-                        <th scope="row"><label for="thumb_source"><?php _e("Pick image from", $this->plugin_slug); ?>:</label></th>
-                        <td>
-                            <select name="thumb_source" id="thumb_source">
-                                <option <?php if ($this->user_settings['tools']['thumbnail']['source'] == "featured") {?>selected="selected"<?php } ?> value="featured"><?php _e("Featured image", $this->plugin_slug); ?></option>
-                                <option <?php if ($this->user_settings['tools']['thumbnail']['source'] == "first_image") {?>selected="selected"<?php } ?> value="first_image"><?php _e("First image on post", $this->plugin_slug); ?></option>
-                                <option <?php if ($this->user_settings['tools']['thumbnail']['source'] == "custom_field") {?>selected="selected"<?php } ?> value="custom_field"><?php _e("Custom field", $this->plugin_slug); ?></option>
-                            </select>
-                            <br />
-                            <p class="description"><?php _e("Tell WordPress Popular Posts where it should get thumbnails from", $this->plugin_slug); ?></p>
-                        </td>
-                    </tr>
-                    <tr valign="top" <?php if ($this->user_settings['tools']['thumbnail']['source'] != "custom_field") {?>style="display:none;"<?php } ?> id="row_custom_field">
-                        <th scope="row"><label for="thumb_field"><?php _e("Custom field name", $this->plugin_slug); ?>:</label></th>
-                        <td>
-                            <input type="text" id="thumb_field" name="thumb_field" value="<?php echo $this->user_settings['tools']['thumbnail']['field']; ?>" size="10" <?php if ($this->user_settings['tools']['thumbnail']['source'] != "custom_field") {?>style="display:none;"<?php } ?> />
-                        </td>
-                    </tr>
-                    <tr valign="top" <?php if ($this->user_settings['tools']['thumbnail']['source'] != "custom_field") {?>style="display:none;"<?php } ?> id="row_custom_field_resize">
-                        <th scope="row"><label for="thumb_field_resize"><?php _e("Resize image from Custom field?", $this->plugin_slug); ?>:</label></th>
-                        <td>
-                            <select name="thumb_field_resize" id="thumb_field_resize">
-                                <option <?php if ( !$this->user_settings['tools']['thumbnail']['resize'] ) {?>selected="selected"<?php } ?> value="0"><?php _e("No, I will upload my own thumbnail", $this->plugin_slug); ?></option>
-                                <option <?php if ( $this->user_settings['tools']['thumbnail']['resize'] == 1 ) {?>selected="selected"<?php } ?> value="1"><?php _e("Yes", $this->plugin_slug); ?></option>                        
-                            </select>
-                        </td>
-                    </tr>
-                    <?php
-					$wp_upload_dir = wp_upload_dir();					
-					if ( is_dir( $wp_upload_dir['basedir'] . "/" . $this->plugin_slug ) ) :
-					?>
-                    <tr valign="top">
-                        <th scope="row"></th>
-                        <td>                        	
-                            <input type="button" name="wpp-reset-cache" id="wpp-reset-cache" class="button-secondary" value="<?php _e("Empty image cache", $this->plugin_slug); ?>" onclick="confirm_clear_image_cache()" />                            
-                            <p class="description"><?php _e("Use this button to clear WPP's thumbnails cache", $this->plugin_slug); ?></p>
-                        </td>
-                    </tr>
-                    <?php
-					endif;
-					?>
-                    <tr valign="top">                            	
-                        <td colspan="2">
-                            <input type="hidden" name="section" value="thumb" />
-                            <input type="submit" class="button-secondary action" id="btn_th_ops" value="<?php _e("Apply", $this->plugin_slug); ?>" name="" />
-                        </td>
-                    </tr>
-                </tbody>
-            </table>
-        </form>
-        <br />
-        <p style="display:block; float:none; clear:both">&nbsp;</p>
-                
-        <h3 class="wmpp-subtitle"><?php _e("Data", $this->plugin_slug); ?></h3>
-        <form action="" method="post" id="wpp_ajax_options" name="wpp_ajax_options">
-        	<table class="form-table">
-                <tbody>
-                	<tr valign="top">
-                        <th scope="row"><label for="log_option"><?php _e("Log views from", $this->plugin_slug); ?>:</label></th>
-                        <td>
-                            <select name="log_option" id="log_option">
-                                <option <?php if ($this->user_settings['tools']['log']['level'] == 0) {?>selected="selected"<?php } ?> value="0"><?php _e("Visitors only", $this->plugin_slug); ?></option>
-                                <option <?php if ($this->user_settings['tools']['log']['level'] == 2) {?>selected="selected"<?php } ?> value="2"><?php _e("Logged-in users only", $this->plugin_slug); ?></option>
-                                <option <?php if ($this->user_settings['tools']['log']['level'] == 1) {?>selected="selected"<?php } ?> value="1"><?php _e("Everyone", $this->plugin_slug); ?></option>
-                            </select>
-                            <br />
-                        </td>
-                    </tr>
-                    <tr valign="top">
-                        <th scope="row"><label for="ajax"><?php _e("Ajaxify widget", $this->plugin_slug); ?>:</label></th>
-                        <td>
-                            <select name="ajax" id="ajax">                                
-                                <option <?php if (!$this->user_settings['tools']['ajax']) {?>selected="selected"<?php } ?> value="0"><?php _e("Disabled", $this->plugin_slug); ?></option>
-                                <option <?php if ($this->user_settings['tools']['ajax']) {?>selected="selected"<?php } ?> value="1"><?php _e("Enabled", $this->plugin_slug); ?></option>
-                            </select>
-                    
-                            <br />
-                            <p class="description"><?php _e("If you are using a caching plugin such as WP Super Cache, enabling this feature will keep the popular list from being cached by it", $this->plugin_slug); ?></p>
-                        </td>
-                    </tr>
-                    <tr valign="top">
-                        <th scope="row"><label for="cache"><?php _e("Listing refresh interval", $this->plugin_slug); ?>:</label></th>
-                        <td>
-                            <select name="cache" id="cache">
-                                <option <?php if ( !$this->user_settings['tools']['cache']['active'] ) { ?>selected="selected"<?php } ?> value="0"><?php _e("Live", $this->plugin_slug); ?></option>
-                                <option <?php if ( $this->user_settings['tools']['cache']['active'] ) { ?>selected="selected"<?php } ?> value="1"><?php _e("Custom interval", $this->plugin_slug); ?></option>
-                            </select>
-                    
-                            <br />
-                            <p class="description"><?php _e("Sets how often the listing should be updated. For most sites the Live option should be fine, however if you are experiencing slowdowns or your blog gets a lot of visitors then you might want to change the refresh rate", $this->plugin_slug); ?></p>
-                        </td>
-                    </tr>
-                    <tr valign="top" <?php if ( !$this->user_settings['tools']['cache']['active'] ) { ?>style="display:none;"<?php } ?> id="cache_refresh_interval">
-                        <th scope="row"><label for="cache_interval_value"><?php _e("Refresh list every", $this->plugin_slug); ?>:</label></th>
-                        <td>
-                        	<input name="cache_interval_value" type="text" id="cache_interval_value" value="<?php echo ( isset($this->user_settings['tools']['cache']['interval']['value']) ) ? (int) $this->user_settings['tools']['cache']['interval']['value'] : 1; ?>" class="small-text">
-                            <select name="cache_interval_time" id="cache_interval_time">
-                                <option <?php if ($this->user_settings['tools']['cache']['interval']['time'] == "hour") {?>selected="selected"<?php } ?> value="hour"><?php _e("Hour(s)", $this->plugin_slug); ?></option>
-                                <option <?php if ($this->user_settings['tools']['cache']['interval']['time'] == "day") {?>selected="selected"<?php } ?> value="day"><?php _e("Day(s)", $this->plugin_slug); ?></option>                                
-                                <option <?php if ($this->user_settings['tools']['cache']['interval']['time'] == "week") {?>selected="selected"<?php } ?> value="week"><?php _e("Week(s)", $this->plugin_slug); ?></option>
-                                <option <?php if ($this->user_settings['tools']['cache']['interval']['time'] == "month") {?>selected="selected"<?php } ?> value="month"><?php _e("Month(s)", $this->plugin_slug); ?></option>
-                                <option <?php if ($this->user_settings['tools']['cache']['interval']['time'] == "year") {?>selected="selected"<?php } ?> value="month"><?php _e("Year(s)", $this->plugin_slug); ?></option>
-                            </select>                            
-                            <br />
-                            <p class="description" style="display:none;" id="cache_too_long"><?php _e("Really? That long?", $this->plugin_slug); ?></p>
-                        </td>
-                    </tr>
-                    <tr valign="top">                            	
-                        <td colspan="2">
-                            <input type="hidden" name="section" value="data" />
-                    		<input type="submit" class="button-secondary action" id="btn_ajax_ops" value="<?php _e("Apply", $this->plugin_slug); ?>" name="" />
-                        </td>
-                    </tr>
-                </tbody>
-            </table>
-        </form>
-        <br />
-        <p style="display:block; float:none; clear:both">&nbsp;</p>
-        
-        <h3 class="wmpp-subtitle"><?php _e("Miscellaneous", $this->plugin_slug); ?></h3>
-        <form action="" method="post" id="wpp_link_options" name="wpp_link_options">
-            <table class="form-table">
-                <tbody>
-                    <tr valign="top">
-                        <th scope="row"><label for="link_target"><?php _e("Open links in", $this->plugin_slug); ?>:</label></th>
-                        <td>
-                            <select name="link_target" id="link_target">
-                                <option <?php if ( $this->user_settings['tools']['link']['target'] == '_self' ) {?>selected="selected"<?php } ?> value="_self"><?php _e("Current window", $this->plugin_slug); ?></option>
-                                <option <?php if ( $this->user_settings['tools']['link']['target'] == '_blank' ) {?>selected="selected"<?php } ?> value="_blank"><?php _e("New tab/window", $this->plugin_slug); ?></option>
-                            </select>
-                            <br />
-                        </td>
-                    </tr>                    
-                    <tr valign="top">
-                        <th scope="row"><label for="css"><?php _e("Use plugin's stylesheet", $this->plugin_slug); ?>:</label></th>
-                        <td>
-                            <select name="css" id="css">
-                                <option <?php if ($this->user_settings['tools']['css']) {?>selected="selected"<?php } ?> value="1"><?php _e("Enabled", $this->plugin_slug); ?></option>
-                                <option <?php if (!$this->user_settings['tools']['css']) {?>selected="selected"<?php } ?> value="0"><?php _e("Disabled", $this->plugin_slug); ?></option>
-                            </select>
-                            <br />
-                            <p class="description"><?php _e("By default, the plugin includes a stylesheet called wpp.css which you can use to style your popular posts listing. If you wish to use your own stylesheet or do not want it to have it included in the header section of your site, use this.", $this->plugin_slug); ?></p>
-                        </td>
-                    </tr>
-                    <tr valign="top">
-                        <td colspan="2">
-                            <input type="hidden" name="section" value="misc" />
-                            <input type="submit" class="button-secondary action" value="<?php _e("Apply", $this->plugin_slug); ?>" name="" />
-                        </td>
-                    </tr>
-                </tbody>
-            </table>
-        </form>
-        <br />
-        <p style="display:block; float:none; clear:both">&nbsp;</p>
-        
-        <br /><br />
-        
-        <p><?php _e('WordPress Popular Posts maintains data in two separate tables: one for storing the most popular entries on a daily basis (from now on, "cache"), and another one to keep the All-time data (from now on, "historical data" or just "data"). If for some reason you need to clear the cache table, or even both historical and cache tables, please use the buttons below to do so.', $this->plugin_slug) ?></p>
-        <p><input type="button" name="wpp-reset-cache" id="wpp-reset-cache" class="button-secondary" value="<?php _e("Empty cache", $this->plugin_slug); ?>" onclick="confirm_reset_cache()" /> <label for="wpp-reset-cache"><small><?php _e('Use this button to manually clear entries from WPP cache only', $this->plugin_slug); ?></small></label></p>
-        <p><input type="button" name="wpp-reset-all" id="wpp-reset-all" class="button-secondary" value="<?php _e("Clear all data", $this->plugin_slug); ?>" onclick="confirm_reset_all()" /> <label for="wpp-reset-all"><small><?php _e('Use this button to manually clear entries from all WPP data tables', $this->plugin_slug); ?></small></label></p>
-    </div>
-    <!-- End tools -->
-    
-    <!-- Start params -->
-    <div id="wpp_params" class="wpp_boxes"<?php if ( "params" == $current ) {?> style="display:block;"<?php } ?>>        
-        <div>
-            <p><?php printf( __('With the following parameters you can customize the popular posts list when using either the <a href="%1$s">wpp_get_most_popular() template tag</a> or the <a href="%2$s">[wpp] shortcode</a>.', $this->plugin_slug),
-				admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#template-tags'),
-				admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#shortcode')
-			); ?></p>
-            <br />
-            <table cellspacing="0" class="wp-list-table widefat fixed posts">
-                <thead>
-                    <tr>
-                        <th class="manage-column column-title"><?php _e('Parameter', $this->plugin_slug); ?></th>
-                        <th class="manage-column column-title"><?php _e('What it does ', $this->plugin_slug); ?></th>
-                        <th class="manage-column column-title"><?php _e('Possible values', $this->plugin_slug); ?></th>
-                        <th class="manage-column column-title"><?php _e('Defaults to', $this->plugin_slug); ?></th>
-                        <th class="manage-column column-title"><?php _e('Example', $this->plugin_slug); ?></th>
-                    </tr>
-                </thead>
-                <tbody>
-                    <tr>
-                        <td><strong>header</strong></td>
-                        <td><?php _e('Sets a heading for the list', $this->plugin_slug); ?></td>
-                        <td><?php _e('Text string', $this->plugin_slug); ?></td>
-                        <td><?php _e('Popular Posts', $this->plugin_slug); ?></td>
-                        <td>header="Popular Posts"</td>
-                    </tr>
-                    <tr class="alternate">
-                        <td><strong>header_start</strong></td>
-                        <td><?php _e('Set the opening tag for the heading of the list', $this->plugin_slug); ?></td>
-                        <td><?php _e('Text string', $this->plugin_slug); ?></td>
-                        <td>&lt;h2&gt;</td>
-                        <td>header_start="&lt;h2&gt;"</td>
-                    </tr>
-                    <tr>
-                        <td><strong>header_end</strong></td>
-                        <td><?php _e('Set the closing tag for the heading of the list', $this->plugin_slug); ?></td>
-                        <td><?php _e('Text string', $this->plugin_slug); ?></td>
-                        <td>&lt;/h2&gt;</td>
-                        <td>header_end="&lt;/h2&gt;"</td>
-                    </tr>
-                    <tr class="alternate">
-                        <td><strong>limit</strong></td>
-                        <td><?php _e('Sets the maximum number of popular posts to be shown on the listing', $this->plugin_slug); ?></td>
-                        <td><?php _e('Positive integer', $this->plugin_slug); ?></td>
-                        <td>10</td>
-                        <td>limit=10</td>
-                    </tr>
-                    <tr>
-                        <td><strong>range</strong></td>
-                        <td><?php _e('Tells WordPress Popular Posts to retrieve the most popular entries within the time range specified by you', $this->plugin_slug); ?></td>
-                        <td>"daily", "weekly", "monthly", "all"</td>
-                        <td>daily</td>
-                        <td>range="daily"</td>
-                    </tr>
-                    <tr class="alternate">
-                        <td><strong>freshness</strong></td>
-                        <td><?php _e('Tells WordPress Popular Posts to retrieve the most popular entries published within the time range specified by you', $this->plugin_slug); ?></td>
-                        <td>1 (true), 0 (false)</td>
-                        <td>0</td>
-                        <td>freshness=1</td>
-                    </tr>
-                    <tr>
-                        <td><strong>order_by</strong></td>
-                        <td><?php _e('Sets the sorting option of the popular posts', $this->plugin_slug); ?></td>
-                        <td>"comments", "views", "avg" <?php _e('(for average views per day)', $this->plugin_slug); ?></td>
-                        <td>views</td>
-                        <td>order_by="comments"</td>
-                    </tr>
-                    <tr class="alternate">
-                        <td><strong>post_type</strong></td>
-                        <td><?php _e('Defines the type of posts to show on the listing', $this->plugin_slug); ?></td>
-                        <td><?php _e('Text string', $this->plugin_slug); ?></td>
-                        <td>post,page</td>
-                        <td>post_type="post,page,your-custom-post-type"</td>
-                    </tr>
-                    <tr>
-                        <td><strong>pid</strong></td>
-                        <td><?php _e('If set, WordPress Popular Posts will exclude the specified post(s) ID(s) form the listing.', $this->plugin_slug); ?></td>
-                        <td><?php _e('Text string', $this->plugin_slug); ?></td>
-                        <td><?php _e('None', $this->plugin_slug); ?></td>
-                        <td>pid="60,25,31"</td>
-                    </tr>
-                    <tr class="alternate">
-                        <td><strong>cat</strong></td>
-                        <td><?php _e('If set, WordPress Popular Posts will retrieve all entries that belong to the specified category(ies) ID(s). If a minus sign is used, the category(ies) will be excluded instead.', $this->plugin_slug); ?></td>
-                        <td><?php _e('Text string', $this->plugin_slug); ?></td>
-                        <td><?php _e('None', $this->plugin_slug); ?></td>
-                        <td>cat="1,55,-74"</td>
-                    </tr>
-                    <tr>
-                        <td><strong>author</strong></td>
-                        <td><?php _e('If set, WordPress Popular Posts will retrieve all entries created by specified author(s) ID(s).', $this->plugin_slug); ?></td>
-                        <td><?php _e('Text string', $this->plugin_slug); ?></td>
-                        <td><?php _e('None', $this->plugin_slug); ?></td>
-                        <td>author="75,8,120"</td>
-                    </tr>
-                    <tr class="alternate">
-                        <td><strong>title_length</strong></td>
-                        <td><?php _e('If set, WordPress Popular Posts will shorten each post title to "n" characters whenever possible', $this->plugin_slug); ?></td>
-                        <td><?php _e('Positive integer', $this->plugin_slug); ?></td>
-                        <td>25</td>
-                        <td>title_length=25</td>
-                    </tr>
-                    <tr>
-                        <td><strong>title_by_words</strong></td>
-                        <td><?php _e('If set to 1, WordPress Popular Posts will shorten each post title to "n" words instead of characters', $this->plugin_slug); ?></td>
-                        <td>1 (true), (0) false</td>
-                        <td>0</td>
-                        <td>title_by_words=1</td>
-                    </tr>
-                    <tr class="alternate">
-                        <td><strong>excerpt_length</strong></td>
-                        <td><?php _e('If set, WordPress Popular Posts will build and include an excerpt of "n" characters long from the content of each post listed as popular', $this->plugin_slug); ?></td>
-                        <td><?php _e('Positive integer', $this->plugin_slug); ?></td>
-                        <td>0</td>
-                        <td>excerpt_length=55</td>
-                    </tr>
-                    <tr>
-                        <td><strong>excerpt_format</strong></td>
-                        <td><?php _e('If set, WordPress Popular Posts will maintaing all styling tags (strong, italic, etc) and hyperlinks found in the excerpt', $this->plugin_slug); ?></td>
-                        <td>1 (true), (0) false</td>
-                        <td>0</td>
-                        <td>excerpt_format=1</td>
-                    </tr>
-                    <tr class="alternate">
-                        <td><strong>excerpt_by_words</strong></td>
-                        <td><?php _e('If set to 1, WordPress Popular Posts will shorten the excerpt to "n" words instead of characters', $this->plugin_slug); ?></td>
-                        <td>1 (true), (0) false</td>
-                        <td>0</td>
-                        <td>excerpt_by_words=1</td>
-                    </tr>
-                    <tr>
-                        <td><strong>thumbnail_width</strong></td>
-                        <td><?php _e('If set, and if your current server configuration allows it, you will be able to display thumbnails of your posts. This attribute sets the width for thumbnails', $this->plugin_slug); ?></td>
-                        <td><?php _e('Positive integer', $this->plugin_slug); ?></td>
-                        <td>15</td>
-                        <td>thumbnail_width=30</td>
-                    </tr>
-                    <tr class="alternate">
-                        <td><strong>thumbnail_height</strong></td>
-                        <td><?php _e('If set, and if your current server configuration allows it, you will be able to display thumbnails of your posts. This attribute sets the height for thumbnails', $this->plugin_slug); ?></td>
-                        <td><?php _e('Positive integer', $this->plugin_slug); ?></td>
-                        <td>15</td>
-                        <td>thumbnail_height=30</td>
-                    </tr>
-                    <tr>
-                        <td><strong>rating</strong></td>
-                        <td><?php _e('If set, and if the WP-PostRatings plugin is installed and enabled on your blog, WordPress Popular Posts will show how your visitors are rating your entries', $this->plugin_slug); ?></td>
-                        <td>1 (true), (0) false</td>
-                        <td>0</td>
-                        <td>rating=1</td>
-                    </tr>
-                    <tr class="alternate">
-                        <td><strong>stats_comments</strong></td>
-                        <td><?php _e('If set, WordPress Popular Posts will show how many comments each popular post has got until now', $this->plugin_slug); ?></td>
-                        <td>1 (true), 0 (false)</td>
-                        <td>1</td>
-                        <td>stats_comments=1</td>
-                    </tr>
-                    <tr>
-                        <td><strong>stats_views</strong></td>
-                        <td><?php _e('If set, WordPress Popular Posts will show how many views each popular post has got since it was installed', $this->plugin_slug); ?></td>
-                        <td>1 (true), (0) false</td>
-                        <td>0</td>
-                        <td>stats_views=1</td>
-                    </tr>
-                    <tr class="alternate">
-                        <td><strong>stats_author</strong></td>
-                        <td><?php _e('If set, WordPress Popular Posts will show who published each popular post on the list', $this->plugin_slug); ?></td>
-                        <td>1 (true), (0) false</td>
-                        <td>0</td>
-                        <td>stats_author=1</td>
-                    </tr>
-                    <tr>
-                        <td><strong>stats_date</strong></td>
-                        <td><?php _e('If set, WordPress Popular Posts will display the date when each popular post on the list was published', $this->plugin_slug); ?></td>
-                        <td>1 (true), (0) false</td>
-                        <td>0</td>
-                        <td>stats_date=1</td>
-                    </tr>
-                    <tr class="alternate">
-                        <td><strong>stats_date_format</strong></td>
-                        <td><?php _e('Sets the date format', $this->plugin_slug); ?></td>
-                        <td><?php _e('Text string', $this->plugin_slug); ?></td>
-                        <td>0</td>
-                        <td>stats_date_format='F j, Y'</td>
-                    </tr>
-                    <tr>
-                        <td><strong>stats_category</strong></td>
-                        <td><?php _e('If set, WordPress Popular Posts will display the category', $this->plugin_slug); ?></td>
-                        <td>1 (true), (0) false</td>
-                        <td>0</td>
-                        <td>stats_category=1</td>
-                    </tr>
-                    <tr class="alternate">
-                        <td><strong>wpp_start</strong></td>
-                        <td><?php _e('Sets the opening tag for the listing', $this->plugin_slug); ?></td>
-                        <td><?php _e('Text string', $this->plugin_slug); ?></td>
-                        <td>&lt;ul&gt;</td>
-                        <td>wpp_start="&lt;ul&gt;"</td>
-                    </tr>
-                    <tr>
-                        <td><strong>wpp_end</strong></td>
-                        <td><?php _e('Sets the closing tag for the listing', $this->plugin_slug); ?></td>
-                        <td><?php _e('Text string', $this->plugin_slug); ?></td>
-                        <td>&lt;/ul&gt;</td>
-                        <td>wpp_end="&lt;/ul&gt;"</td>
-                    </tr>
-                    <tr class="alternate">
-                        <td><strong>post_html</strong></td>
-                        <td><?php _e('Sets the HTML structure of each post', $this->plugin_slug); ?></td>
-                        <td><?php _e('Text string, custom HTML', $this->plugin_slug); ?>.<br /><br /><strong><?php _e('Available Content Tags', $this->plugin_slug); ?>:</strong> <br /><em>{thumb}</em> (<?php _e('displays thumbnail linked to post/page', $this->plugin_slug); ?>)<br /> <em>{title}</em> (<?php _e('displays linked post/page title', $this->plugin_slug); ?>)<br /> <em>{summary}</em> (<?php _e('displays post/page excerpt, and requires excerpt_length to be greater than 0', $this->plugin_slug); ?>)<br /> <em>{stats}</em> (<?php _e('displays the default stats tags', $this->plugin_slug); ?>)<br /> <em>{rating}</em> (<?php _e('displays post/page current rating, requires WP-PostRatings installed and enabled', $this->plugin_slug); ?>)<br /> <em>{score}</em> (<?php _e('displays post/page current rating as an integer, requires WP-PostRatings installed and enabled', $this->plugin_slug); ?>)<br /> <em>{url}</em> (<?php _e('outputs the URL of the post/page', $this->plugin_slug); ?>)<br /> <em>{text_title}</em> (<?php _e('displays post/page title, no link', $this->plugin_slug); ?>)<br /> <em>{author}</em> (<?php _e('displays linked author name, requires stats_author=1', $this->plugin_slug); ?>)<br /> <em>{category}</em> (<?php _e('displays linked category name, requires stats_category=1', $this->plugin_slug); ?>)<br /> <em>{views}</em> (<?php _e('displays views count only, no text', $this->plugin_slug); ?>)<br /> <em>{comments}</em> (<?php _e('displays comments count only, no text, requires stats_comments=1', $this->plugin_slug); ?>)</td>
-                        <td>&lt;li&gt;{thumb} {title} {stats}&lt;/li&gt;</td>
-                        <td>post_html="&lt;li&gt;{thumb} &lt;a href='{url}'&gt;{text_title}&lt;/a&gt; &lt;/li&gt;"</td>
-                    </tr>
-                </tbody>
-            </table>
-        </div>
-    </div>
-    <!-- End params -->
-    
-    <!-- Start faq -->
-    <div id="wpp_faq" class="wpp_boxes"<?php if ( "faq" == $current ) {?> style="display:block;"<?php } ?>>    	
-        <h4 id="widget-title">&raquo; <a href="#" rel="q-1"><?php _e('What does "Title" do?', $this->plugin_slug); ?></a></h4>
-        
-        <div class="wpp-ans" id="q-1">
-            <p><?php _e('It allows you to show a heading for your most popular posts listing. If left empty, no heading will be displayed at all.', $this->plugin_slug); ?></p>
-        </div>
-        
-        <h4 id="time-range">&raquo; <a href="#" rel="q-2"><?php _e('What is Time Range for?', $this->plugin_slug); ?></a></h4>
-        <div class="wpp-ans" id="q-2">
-            <p><?php _e('It will tell WordPress Popular Posts to retrieve all posts with most views / comments within the selected time range.', $this->plugin_slug); ?></p>
-        </div>
-        
-        <h4 id="sorting">&raquo; <a href="#" rel="q-3"><?php _e('What is "Sort post by" for?', $this->plugin_slug); ?></a></h4>
-        <div class="wpp-ans" id="q-3">
-            <p><?php _e('It allows you to decide whether to order your popular posts listing by total views, comments, or average views per day.', $this->plugin_slug); ?></p>
-        </div>                    
-        
-        <h4 id="display-rating">&raquo; <a href="#" rel="q-4"><?php _e('What does "Display post rating" do?', $this->plugin_slug); ?></a></h4>
-        <div class="wpp-ans" id="q-4">
-            <p><?php _e('If checked, WordPress Popular Posts will show how your readers are rating your most popular posts. This feature requires having WP-PostRatings plugin installed and enabled on your blog for it to work.', $this->plugin_slug); ?></p>
-        </div>
-        
-        <h4 id="shorten-title">&raquo; <a href="#" rel="q-5"><?php _e('What does "Shorten title" do?', $this->plugin_slug); ?></a></h4>
-        <div class="wpp-ans" id="q-5">
-            <p><?php _e('If checked, all posts titles will be shortened to "n" characters/words. A new "Shorten title to" option will appear so you can set it to whatever you like.', $this->plugin_slug); ?></p>
-        </div>
-        
-        <h4 id="display-excerpt">&raquo; <a href="#" rel="q-6"><?php _e('What does "Display post excerpt" do?', $this->plugin_slug); ?></a></h4>
-        <div class="wpp-ans" id="q-6">
-            <p><?php _e('If checked, WordPress Popular Posts will also include a small extract of your posts in the list. Similarly to the previous option, you will be able to decide how long the post excerpt should be.', $this->plugin_slug); ?></p>
-        </div>
-        
-        <h4 id="keep-format">&raquo; <a href="#" rel="q-7"><?php _e('What does "Keep text format and links" do?', $this->plugin_slug); ?></a></h4>
-        <div class="wpp-ans" id="q-7">
-            <p><?php _e('If checked, and if the Post Excerpt feature is enabled, WordPress Popular Posts will keep the styling tags (eg. bold, italic, etc) that were found in the excerpt. Hyperlinks will remain intact, too.', $this->plugin_slug); ?></p>
-        </div>
-        
-        <h4 id="filter-post-type">&raquo; <a href="#" rel="q-8"><?php _e('What is "Post type" for?', $this->plugin_slug); ?></a></h4>
-        <div class="wpp-ans" id="q-8">
-            <p><?php _e('This filter allows you to decide which post types to show on the listing. By default, it will retrieve only posts and pages (which should be fine for most cases).', $this->plugin_slug); ?></p>
-        </div>
-        
-        <h4 id="filter_category">&raquo; <a href="#" rel="q-9"><?php _e('What is "Category(ies) ID(s)" for?', $this->plugin_slug); ?></a></h4>
-        <div class="wpp-ans" id="q-9">
-            <p><?php _e('This filter allows you to select which categories should be included or excluded from the listing. A negative sign in front of the category ID number will exclude posts belonging to it from the list, for example. You can specify more than one ID with a comma separated list.', $this->plugin_slug); ?></p>
-        </div>
-        
-        <h4 id="filter-author">&raquo; <a href="#" rel="q-10"><?php _e('What is "Author(s) ID(s)" for?', $this->plugin_slug); ?></a></h4>
-        <div class="wpp-ans" id="q-10">
-            <p><?php _e('Just like the Category filter, this one lets you filter posts by author ID. You can specify more than one ID with a comma separated list.', $this->plugin_slug); ?></p>
-        </div>
-        
-        <h4 id="display-thumb">&raquo; <a href="#" rel="q-11"><?php _e('What does "Display post thumbnail" do?', $this->plugin_slug); ?></a></h4>
-        <div class="wpp-ans" id="q-11">
-            <p><?php _e('If checked, WordPress Popular Posts will attempt to retrieve the thumbnail of each post. You can set up the source of the thumbnail via Settings - WordPress Popular Posts - Tools.', $this->plugin_slug); ?></p>
-        </div>
-        
-        <h4 id="stats-comments">&raquo; <a href="#" rel="q-12"><?php _e('What does "Display comment count" do?', $this->plugin_slug); ?></a></h4>
-        <div class="wpp-ans" id="q-12">
-            <p><?php _e('If checked, WordPress Popular Posts will display how many comments each popular post has got in the selected Time Range.', $this->plugin_slug); ?></p>
-        </div>
-        
-        <h4 id="stats-views">&raquo; <a href="#" rel="q-13"><?php _e('What does "Display views" do?', $this->plugin_slug); ?></a></h4>
-        <div class="wpp-ans" id="q-13">
-            <p><?php _e('If checked, WordPress Popular Posts will show how many pageviews a single post has gotten in the selected Time Range.', $this->plugin_slug); ?></p>
-        </div>
-        
-        <h4 id="stats-author">&raquo; <a href="#" rel="q-14"><?php _e('What does "Display author" do?', $this->plugin_slug); ?></a></h4>
-        <div class="wpp-ans" id="q-14">
-            <p><?php _e('If checked, WordPress Popular Posts will display the name of the author of each entry listed.', $this->plugin_slug); ?></p>
-        </div>
-        
-        <h4 id="stats-date">&raquo; <a href="#" rel="q-15"><?php _e('What does "Display date" do?', $this->plugin_slug); ?></a></h4>
-        <div class="wpp-ans" id="q-15">
-            <p><?php _e('If checked, WordPress Popular Posts will display the date when each popular posts was published.', $this->plugin_slug); ?></p>
-        </div>
-        
-        <h4 id="stats-cat">&raquo; <a href="#" rel="q-16"><?php _e('What does "Display category" do?', $this->plugin_slug); ?></a></h4>
-        <div class="wpp-ans" id="q-16">
-            <p><?php _e('If checked, WordPress Popular Posts will display the category of each post.', $this->plugin_slug); ?></p>
-        </div>
-        
-        <h4 id="custom-html-markup">&raquo; <a href="#" rel="q-17"><?php _e('What does "Use custom HTML Markup" do?', $this->plugin_slug); ?></a></h4>
-        <div class="wpp-ans" id="q-17">
-            <p><?php _e('If checked, you will be able to customize the HTML markup of your popular posts listing. For example, you can decide whether to wrap your posts in an unordered list, an ordered list, a div, etc. If you know xHTML/CSS, this is for you!', $this->plugin_slug); ?></p>
-        </div>
-        
-        <h4>&raquo; <a href="#" rel="q-18"><?php _e('What are "Content Tags"?', $this->plugin_slug); ?></a></h4>
-        <div class="wpp-ans" id="q-18">            
-            <p><?php echo sprintf( __('Content Tags are codes to display a variety of items on your popular posts custom HTML structure. For example, setting it to "{title}: {summary}" (without the quotes) would display "Post title: excerpt of the post here". For more Content Tags, see the <a href="%s" target="_blank">Parameters</a> section.', $this->plugin_slug), admin_url('options-general.php?page=wordpress-popular-posts&tab=params') ); ?></p>
-        </div>
-        
-        <h4 id="template-tags">&raquo; <a href="#" rel="q-19"><?php _e('What are "Template Tags"?', $this->plugin_slug); ?></a></h4>
-        <div class="wpp-ans" id="q-19">
-            <p><?php _e('Template Tags are simply php functions that allow you to perform certain actions. For example, WordPress Popular Posts currently supports two different template tags: wpp_get_mostpopular() and wpp_get_views().', $this->plugin_slug); ?></p>
-        </div>
-        
-        <h4>&raquo; <a href="#" rel="q-20"><?php _e('What are the template tags that WordPress Popular Posts supports?', $this->plugin_slug); ?></a></h4>
-        <div class="wpp-ans" id="q-20">
-            <p><?php _e('The following are the template tags supported by WordPress Popular Posts', $this->plugin_slug); ?>:</p>
-            <table cellspacing="0" class="wp-list-table widefat fixed posts">
-                <thead>
-                    <tr>
-                        <th class="manage-column column-title"><?php _e('Template tag', $this->plugin_slug); ?></th>
-                        <th class="manage-column column-title"><?php _e('What it does ', $this->plugin_slug); ?></th>
-                        <th class="manage-column column-title"><?php _e('Parameters', $this->plugin_slug); ?></th>
-                        <th class="manage-column column-title"><?php _e('Example', $this->plugin_slug); ?></th>
-                    </tr>
-                </thead>
-                <tbody>
-                    <tr>
-                        <td><strong>wpp_get_mostpopular()</strong></td>
-                        <td><?php printf( __('Similar to the widget functionality, this tag retrieves the most popular posts on your blog. This function also accepts <a href="%1$s">parameters</a> so you can customize your popular listing, but these are not required.', $this->plugin_slug), admin_url('options-general.php?page=wordpress-popular-posts&tab=params') ); ?></td>
-                        <td><?php printf( __('Please refer to the <a href="%1$s">Parameters section</a> for a complete list of attributes.', $this->plugin_slug), admin_url('options-general.php?page=wordpress-popular-posts&tab=params') ); ?></td>
-                        <td>&lt;?php wpp_get_mostpopular(); ?&gt;<br />&lt;?php wpp_get_mostpopular("range=weekly&amp;limit=7"); ?&gt;</td>
-                    </tr>
-                    <tr class="alternate">
-                        <td><strong>wpp_get_views()</strong></td>
-                        <td><?php _e('Displays the number of views of a single post. Post ID is required or it will return false.', $this->plugin_slug); ?></td>
-                        <td><?php _e('Post ID', $this->plugin_slug); ?>, range ("daily", "weekly", "monthly", "all")</td>
-                        <td>&lt;?php echo wpp_get_views($post->ID); ?&gt;<br />&lt;?php echo wpp_get_views(15, 'weekly'); ?&gt;</td>
-                    </tr>
-                </tbody>
-            </table>
-        </div>
-        
-        <h4 id="shortcode">&raquo; <a href="#" rel="q-21"><?php _e('What are "shortcodes"?', $this->plugin_slug); ?></a></h4>
-        <div class="wpp-ans" id="q-21">
-            <p><?php echo sprintf( __('Shortcodes are similar to BB Codes, these allow us to call a php function by simply typing something like [shortcode]. With WordPress Popular Posts, the shortcode [wpp] will let you insert a list of the most popular posts in posts content and pages too! For more information about shortcodes, please visit the <a href="%s" target="_blank">WordPress Shortcode API</a> page.', $this->plugin_slug), 'http://codex.wordpress.org/Shortcode_API' ); ?></p>
-        </div>        
-    </div>
-    <!-- End faq -->
-    
-    <!-- Start about -->
-    <div id="wpp_faq" class="wpp_boxes"<?php if ( "about" == $current ) {?> style="display:block;"<?php } ?>>    	
-        
-        <div style="float:left; width:800px;">
-            <h3><?php echo sprintf( __('About WordPress Popular Posts %s', $this->plugin_slug), $this->version); ?></h3>
-            <p><?php _e( 'This version includes the following changes', $this->plugin_slug ); ?>:</p>
-            <ul>
-            	<li>Adds check for exif extension availability.</li>
-                <li>Rolls back check for user's default thumbnail.</li>
-            </ul>
-        </div>
-        
-        <div style="display:inline; float:right; margin:15px 0 0 0; padding:10px; width:230px; background:#f9f9f9; border: 1px solid #ccc;">
-        	<h3 style="margin-top:0; text-align:center;"><?php _e('Do you like this plugin?', $this->plugin_slug); ?></h3>
-        	<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
-                <input type="hidden" name="cmd" value="_s-xclick">
-                <input type="hidden" name="hosted_button_id" value="RP9SK8KVQHRKS">
-                <input type="image" src="//www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!" style="display:block; margin:0 auto;">
-                <img alt="" border="0" src="//www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
-            </form>
-            <p><?php _e( 'Each donation motivates me to keep releasing free stuff for the WordPress community!', $this->plugin_slug ); ?></p>
-            <p><?php echo sprintf( __('You can <a href="%s" target="_blank">leave a review</a>, too!', $this->plugin_slug), 'http://wordpress.org/support/view/plugin-reviews/wordpress-popular-posts' ); ?></p>
-        </div>
-        
-        <div style="display:inline; float:right; clear:right; margin:15px 0 0 0; padding:10px; width:230px; background:#f9f9f9; border: 1px solid #ccc;">
-        	<h3 style="margin-top:0; text-align:center;"><?php _e('Need help?', $this->plugin_slug); ?></h3>
-            <p><?php echo sprintf( __('Visit <a href="%s" target="_blank">the forum</a> for support, questions and feedback.', $this->plugin_slug), 'http://wordpress.org/support/plugin/wordpress-popular-posts' ); ?></p>
-            <p><?php _e('Let\'s make this plugin even better!', $this->plugin_slug); ?></p>
-        </div>
-    </div>
-    <!-- End about -->
-        
+<?php
+if (basename($_SERVER['SCRIPT_NAME']) == basename(__FILE__))
+	exit('Please do not load this page directly');
+
+define('WPP_ADMIN', true);
+
+// Set active tab
+if ( isset($_GET['tab']) )
+	$current = $_GET['tab'];
+else
+	$current = 'stats';
+
+// Update options on form submission
+if ( isset($_POST['section']) ) {
+	
+	if ( "stats" == $_POST['section'] ) {		
+		$current = 'stats';
+		
+		$this->user_settings['stats']['order_by'] = $_POST['stats_order'];
+		$this->user_settings['stats']['limit'] = (is_numeric($_POST['stats_limit']) && $_POST['stats_limit'] > 0) ? $_POST['stats_limit'] : 10;
+		$this->user_settings['stats']['post_type'] = empty($_POST['stats_type']) ? "post,page" : $_POST['stats_type'];
+		$this->user_settings['stats']['freshness'] = empty($_POST['stats_freshness']) ? false : $_POST['stats_freshness'];
+		
+		update_site_option('wpp_settings_config', $this->user_settings);			
+		echo "<div class=\"updated\"><p><strong>" . __('Settings saved.', $this->plugin_slug ) . "</strong></p></div>";		
+	}
+	elseif ( "misc" == $_POST['section'] ) {		
+		$current = 'tools';
+			
+		$this->user_settings['tools']['link']['target'] = $_POST['link_target'];		
+		$this->user_settings['tools']['css'] = $_POST['css'];
+		
+		update_site_option('wpp_settings_config', $this->user_settings);
+		echo "<div class=\"updated\"><p><strong>" . __('Settings saved.', $this->plugin_slug ) . "</strong></p></div>";		
+	}	
+	elseif ( "thumb" == $_POST['section'] ) {		
+		$current = 'tools';
+		
+		if ($_POST['thumb_source'] == "custom_field" && (!isset($_POST['thumb_field']) || empty($_POST['thumb_field']))) {
+			echo '<div id="wpp-message" class="error fade"><p>'.__('Please provide the name of your custom field.', $this->plugin_slug).'</p></div>';
+		} else {				
+			$this->user_settings['tools']['thumbnail']['source'] = $_POST['thumb_source'];
+			$this->user_settings['tools']['thumbnail']['field'] = ( !empty( $_POST['thumb_field']) ) ? $_POST['thumb_field'] : "wpp_thumbnail";
+			$this->user_settings['tools']['thumbnail']['default'] = ( !empty( $_POST['upload_thumb_src']) ) ? $_POST['upload_thumb_src'] : "";
+			$this->user_settings['tools']['thumbnail']['resize'] = $_POST['thumb_field_resize'];
+			$this->user_settings['tools']['thumbnail']['responsive'] = $_POST['thumb_responsive'];
+			
+			update_site_option('wpp_settings_config', $this->user_settings);				
+			echo "<div class=\"updated\"><p><strong>" . __('Settings saved.', $this->plugin_slug ) . "</strong></p></div>";
+		}
+	}
+	elseif ( "data" == $_POST['section'] ) {		
+		$current = 'tools';
+		
+		$this->user_settings['tools']['log']['level'] = $_POST['log_option'];
+		$this->user_settings['tools']['ajax'] = $_POST['ajax'];
+		
+		// if any of the caching settings was updated, destroy all transients created by the plugin
+		if ( $this->user_settings['tools']['cache']['active'] != $_POST['cache'] || $this->user_settings['tools']['cache']['interval']['time'] != $_POST['cache_interval_time'] || $this->user_settings['tools']['cache']['interval']['value'] != $_POST['cache_interval_value'] ) {
+			$this->__flush_transients();
+		}
+		
+		$this->user_settings['tools']['cache']['active'] = $_POST['cache'];			
+		$this->user_settings['tools']['cache']['interval']['time'] = $_POST['cache_interval_time'];
+		$this->user_settings['tools']['cache']['interval']['value'] = ( isset($_POST['cache_interval_value']) && is_numeric($_POST['cache_interval_value']) && $_POST['cache_interval_value'] > 0 ) 
+		  ? $_POST['cache_interval_value']
+		  : 1;
+		
+		$this->user_settings['tools']['sampling']['active'] = $_POST['sampling'];			
+		$this->user_settings['tools']['sampling']['rate'] = ( isset($_POST['sample_rate']) && is_numeric($_POST['sample_rate']) && $_POST['sample_rate'] > 0 ) 
+		  ? $_POST['sample_rate']
+		  : 100;
+		
+		update_site_option('wpp_settings_config', $this->user_settings);
+		echo "<div class=\"updated\"><p><strong>" . __('Settings saved.', $this->plugin_slug ) . "</strong></p></div>";		
+	}
+		
+}
+
+if ( $this->user_settings['tools']['css'] && !file_exists( get_stylesheet_directory() . '/wpp.css' ) ) {
+	echo '<div id="wpp-message" class="update-nag">'. __('Any changes made to WPP\'s default stylesheet will be lost after every plugin update. In order to prevent this from happening, please copy the wpp.css file (located at wp-content/plugins/wordpress-popular-posts/style) into your theme\'s directory', $this->plugin_slug) .'.</div>';
+}
+
+$rand = md5(uniqid(rand(), true));	
+$wpp_rand = get_site_option("wpp_rand");	
+if (empty($wpp_rand)) {
+	add_site_option("wpp_rand", $rand);
+} else {
+	update_site_option("wpp_rand", $rand);
+}
+
+?>
+<script type="text/javascript">
+	// TOOLS
+	function confirm_reset_cache() {
+		if (confirm("<?php _e("This operation will delete all entries from WordPress Popular Posts' cache table and cannot be undone.", $this->plugin_slug); ?> \n\n" + "<?php _e("Do you want to continue?", $this->plugin_slug); ?>")) {
+			jQuery.post(ajaxurl, {action: 'wpp_clear_data', token: '<?php echo get_site_option("wpp_rand"); ?>', clear: 'cache'}, function(data){
+				alert(data);
+			});
+		}
+	}
+	
+	function confirm_reset_all() {
+		if (confirm("<?php _e("This operation will delete all stored info from WordPress Popular Posts' data tables and cannot be undone.", $this->plugin_slug); ?> \n\n" + "<?php _e("Do you want to continue?", $this->plugin_slug); ?>")) {
+			jQuery.post(ajaxurl, {action: 'wpp_clear_data', token: '<?php echo get_site_option("wpp_rand"); ?>', clear: 'all'}, function(data){
+				alert(data);
+			});
+		}
+	}
+	
+	function confirm_clear_image_cache() {
+		if (confirm("<?php _e("This operation will delete all cached thumbnails and cannot be undone.", $this->plugin_slug); ?> \n\n" + "<?php _e("Do you want to continue?", $this->plugin_slug); ?>")) {
+			jQuery.post(ajaxurl, {action: 'wpp_clear_thumbnail', token: '<?php echo get_site_option("wpp_rand"); ?>'}, function(data){
+				alert(data);
+			});
+		}
+	}
+	
+	jQuery(document).ready(function($){
+		<?php if ( "params" != $current ) : ?>
+		$('.wpp_boxes:visible').css({
+			display: 'inline',
+			float: 'left'
+		}).width( $('.wpp_boxes:visible').parent().width() - $('.wpp_box').outerWidth() - 15 );
+		
+		$(window).on('resize', function(){
+			$('.wpp_boxes:visible').css({
+				display: 'inline',
+				float: 'left'
+			}).width( $('.wpp_boxes:visible').parent().width() - $('.wpp_box').outerWidth() - 15 );
+		});
+		<?php else: ?>
+		$('.wpp_box').hide();
+		<?php endif; ?>
+	});
+</script>
+
+<div class="wrap">
+    <div id="icon-options-general" class="icon32"><br /></div>
+    <h2>WordPress Popular Posts</h2>
+    
+    <h2 class="nav-tab-wrapper">
+    <?php
+    // build tabs    
+    $tabs = array( 
+        'stats' => __('Stats', $this->plugin_slug),
+		'tools' => __('Tools', $this->plugin_slug),
+		'params' => __('Parameters', $this->plugin_slug),
+        'faq' => __('FAQ', $this->plugin_slug),
+		'about' => __('About', $this->plugin_slug)
+    );
+    foreach( $tabs as $tab => $name ){
+        $class = ( $tab == $current ) ? ' nav-tab-active' : '';
+        echo "<a class='nav-tab$class' href='?page=wordpress-popular-posts&tab=$tab'>$name</a>";
+    }    
+    ?>
+    </h2>
+    
+    <!-- Start stats -->
+    <div id="wpp_stats" class="wpp_boxes"<?php if ( "stats" == $current ) {?> style="display:block;"<?php } ?>>
+    	<p><?php _e("Click on each tab to see what are the most popular entries on your blog in the last 24 hours, this week, last 30 days or all time since WordPress Popular Posts was installed.", $this->plugin_slug); ?></p>
+        
+        <div class="tablenav top">
+            <div class="alignleft actions">
+                <form action="" method="post" id="wpp_stats_options" name="wpp_stats_options">
+                    <select name="stats_order">
+                        <option <?php if ($this->user_settings['stats']['order_by'] == "comments") {?>selected="selected"<?php } ?> value="comments"><?php _e("Order by comments", $this->plugin_slug); ?></option>
+                        <option <?php if ($this->user_settings['stats']['order_by'] == "views") {?>selected="selected"<?php } ?> value="views"><?php _e("Order by views", $this->plugin_slug); ?></option>
+                        <option <?php if ($this->user_settings['stats']['order_by'] == "avg") {?>selected="selected"<?php } ?> value="avg"><?php _e("Order by avg. daily views", $this->plugin_slug); ?></option>
+                    </select>
+                    <label for="stats_type"><?php _e("Post type", $this->plugin_slug); ?>:</label> <input type="text" name="stats_type" value="<?php echo $this->user_settings['stats']['post_type']; ?>" size="15" />
+                    <label for="stats_limits"><?php _e("Limit", $this->plugin_slug); ?>:</label> <input type="text" name="stats_limit" value="<?php echo $this->user_settings['stats']['limit']; ?>" size="5" />
+                    <input type="hidden" name="section" value="stats" />
+                    <input type="submit" class="button-secondary action" value="<?php _e("Apply", $this->plugin_slug); ?>" name="" />
+                    
+                    <div class="clear"></div>
+                    <label for="stats_freshness"><input type="checkbox" class="checkbox" <?php echo ($this->user_settings['stats']['freshness']) ? 'checked="checked"' : ''; ?> id="stats_freshness" name="stats_freshness" /> <?php _e('Display only posts published within the selected Time Range', 'wordpress-popular-posts'); ?></label>
+                </form>
+            </div>
+        </div>
+        <div class="clear"></div>
+        <br />
+        <div id="wpp-stats-tabs">            
+            <a href="#" class="button-primary" rel="wpp-daily"><?php _e("Last 24 hours", $this->plugin_slug); ?></a>
+            <a href="#" class="button-secondary" rel="wpp-weekly"><?php _e("Last 7 days", $this->plugin_slug); ?></a>
+            <a href="#" class="button-secondary" rel="wpp-monthly"><?php _e("Last 30 days", $this->plugin_slug); ?></a>
+            <a href="#" class="button-secondary" rel="wpp-all"><?php _e("All-time", $this->plugin_slug); ?></a>
+        </div>
+        <div id="wpp-stats-canvas">            
+            <div class="wpp-stats wpp-stats-active" id="wpp-daily">            	
+                <?php echo do_shortcode("[wpp range='daily' post_type='".$this->user_settings['stats']['post_type']."' stats_comments=1 stats_views=1 order_by='".$this->user_settings['stats']['order_by']."' wpp_start='<ol>' wpp_end='</ol>' post_html='<li><a href=\"{url}\" target=\"_blank\" class=\"wpp-post-title\">{text_title}</a> <span class=\"post-stats\">{stats}</span></li>' limit=".$this->user_settings['stats']['limit']." freshness=" . $this->user_settings['stats']['freshness'] . "]"); ?>
+            </div>
+            <div class="wpp-stats" id="wpp-weekly">
+                <?php echo do_shortcode("[wpp range='weekly' post_type='".$this->user_settings['stats']['post_type']."' stats_comments=1 stats_views=1 order_by='".$this->user_settings['stats']['order_by']."' wpp_start='<ol>' wpp_end='</ol>' post_html='<li><a href=\"{url}\" target=\"_blank\" class=\"wpp-post-title\">{text_title}</a> <span class=\"post-stats\">{stats}</span></li>' limit=".$this->user_settings['stats']['limit']." freshness=" . $this->user_settings['stats']['freshness'] . "]"); ?>
+            </div>
+            <div class="wpp-stats" id="wpp-monthly">
+                <?php echo do_shortcode("[wpp range='monthly' post_type='".$this->user_settings['stats']['post_type']."' stats_comments=1 stats_views=1 order_by='".$this->user_settings['stats']['order_by']."' wpp_start='<ol>' wpp_end='</ol>' post_html='<li><a href=\"{url}\" target=\"_blank\" class=\"wpp-post-title\">{text_title}</a> <span class=\"post-stats\">{stats}</span></li>' limit=".$this->user_settings['stats']['limit']." freshness=" . $this->user_settings['stats']['freshness'] . "]"); ?>
+            </div>
+            <div class="wpp-stats" id="wpp-all">
+                <?php echo do_shortcode("[wpp range='all' post_type='".$this->user_settings['stats']['post_type']."' stats_comments=1 stats_views=1 order_by='".$this->user_settings['stats']['order_by']."' wpp_start='<ol>' wpp_end='</ol>' post_html='<li><a href=\"{url}\" target=\"_blank\" class=\"wpp-post-title\">{text_title}</a> <span class=\"post-stats\">{stats}</span></li>' limit=".$this->user_settings['stats']['limit']." freshness=" . $this->user_settings['stats']['freshness'] . "]"); ?>
+            </div>
+        </div>
+    </div>
+    <!-- End stats -->
+    
+    <!-- Start tools -->
+    <div id="wpp_tools" class="wpp_boxes"<?php if ( "tools" == $current ) {?> style="display:block;"<?php } ?>>
+        
+        <h3 class="wmpp-subtitle"><?php _e("Thumbnails", $this->plugin_slug); ?></h3>        	
+        <form action="" method="post" id="wpp_thumbnail_options" name="wpp_thumbnail_options">            
+            <table class="form-table">
+                <tbody>
+                	<tr valign="top">
+                        <th scope="row"><label for="thumb_default"><?php _e("Default thumbnail", $this->plugin_slug); ?>:</label></th>
+                        <td>                        	
+                            <div id="thumb-review">
+                                <img src="<?php echo $this->user_settings['tools']['thumbnail']['default']; ?>" alt="" border="0" />
+                            </div>
+                            <input id="upload_thumb_button" type="button" class="button" value="<?php _e( "Upload thumbnail", $this->plugin_slug ); ?>" />
+                            <input type="hidden" id="upload_thumb_src" name="upload_thumb_src" value="" />
+                            <p class="description"><?php _e("How-to: upload (or select) an image, set Size to Full and click on Upload. After it's done, hit on Apply to save changes", $this->plugin_slug); ?>.</p>
+                        </td>
+                    </tr>                    
+                    <tr valign="top">
+                        <th scope="row"><label for="thumb_source"><?php _e("Pick image from", $this->plugin_slug); ?>:</label></th>
+                        <td>
+                            <select name="thumb_source" id="thumb_source">
+                                <option <?php if ($this->user_settings['tools']['thumbnail']['source'] == "featured") {?>selected="selected"<?php } ?> value="featured"><?php _e("Featured image", $this->plugin_slug); ?></option>
+                                <option <?php if ($this->user_settings['tools']['thumbnail']['source'] == "first_image") {?>selected="selected"<?php } ?> value="first_image"><?php _e("First image on post", $this->plugin_slug); ?></option>
+                                <option <?php if ($this->user_settings['tools']['thumbnail']['source'] == "custom_field") {?>selected="selected"<?php } ?> value="custom_field"><?php _e("Custom field", $this->plugin_slug); ?></option>
+                            </select>
+                            <br />
+                            <p class="description"><?php _e("Tell WordPress Popular Posts where it should get thumbnails from", $this->plugin_slug); ?>.</p>
+                        </td>
+                    </tr>
+                    <tr valign="top" <?php if ($this->user_settings['tools']['thumbnail']['source'] != "custom_field") {?>style="display:none;"<?php } ?> id="row_custom_field">
+                        <th scope="row"><label for="thumb_field"><?php _e("Custom field name", $this->plugin_slug); ?>:</label></th>
+                        <td>
+                            <input type="text" id="thumb_field" name="thumb_field" value="<?php echo $this->user_settings['tools']['thumbnail']['field']; ?>" size="10" <?php if ($this->user_settings['tools']['thumbnail']['source'] != "custom_field") {?>style="display:none;"<?php } ?> />
+                        </td>
+                    </tr>
+                    <tr valign="top" <?php if ($this->user_settings['tools']['thumbnail']['source'] != "custom_field") {?>style="display:none;"<?php } ?> id="row_custom_field_resize">
+                        <th scope="row"><label for="thumb_field_resize"><?php _e("Resize image from Custom field?", $this->plugin_slug); ?>:</label></th>
+                        <td>
+                            <select name="thumb_field_resize" id="thumb_field_resize">
+                                <option <?php if ( !$this->user_settings['tools']['thumbnail']['resize'] ) {?>selected="selected"<?php } ?> value="0"><?php _e("No, I will upload my own thumbnail", $this->plugin_slug); ?></option>
+                                <option <?php if ( $this->user_settings['tools']['thumbnail']['resize'] == 1 ) {?>selected="selected"<?php } ?> value="1"><?php _e("Yes", $this->plugin_slug); ?></option>                        
+                            </select>
+                        </td>
+                    </tr>
+                    <tr valign="top">
+                        <th scope="row"><label for="thumb_responsive"><?php _e("Responsive support", $this->plugin_slug); ?>:</label></th>
+                        <td>
+                            <select name="thumb_responsive" id="thumb_responsive">
+                                <option <?php if ($this->user_settings['tools']['thumbnail']['responsive']) {?>selected="selected"<?php } ?> value="1"><?php _e("Enabled", $this->plugin_slug); ?></option>
+                                <option <?php if (!$this->user_settings['tools']['thumbnail']['responsive']) {?>selected="selected"<?php } ?> value="0"><?php _e("Disabled", $this->plugin_slug); ?></option>
+                            </select>
+                            <br />
+                            <p class="description"><?php _e("If enabled, WordPress Popular Posts will strip height and width attributes out of thumbnails' image tags", $this->plugin_slug); ?>.</p>
+                        </td>
+                    </tr>
+                    <?php
+					$wp_upload_dir = wp_upload_dir();					
+					if ( is_dir( $wp_upload_dir['basedir'] . "/" . $this->plugin_slug ) ) :
+					?>
+                    <tr valign="top">
+                        <th scope="row"></th>
+                        <td>                        	
+                            <input type="button" name="wpp-reset-cache" id="wpp-reset-cache" class="button-secondary" value="<?php _e("Empty image cache", $this->plugin_slug); ?>" onclick="confirm_clear_image_cache()" />                            
+                            <p class="description"><?php _e("Use this button to clear WPP's thumbnails cache", $this->plugin_slug); ?>.</p>
+                        </td>
+                    </tr>
+                    <?php
+					endif;
+					?>
+                    <tr valign="top">                            	
+                        <td colspan="2">
+                            <input type="hidden" name="section" value="thumb" />
+                            <input type="submit" class="button-secondary action" id="btn_th_ops" value="<?php _e("Apply", $this->plugin_slug); ?>" name="" />
+                        </td>
+                    </tr>
+                </tbody>
+            </table>
+        </form>
+        <br />
+        <p style="display:block; float:none; clear:both">&nbsp;</p>
+                
+        <h3 class="wmpp-subtitle"><?php _e("Data", $this->plugin_slug); ?></h3>
+        <form action="" method="post" id="wpp_ajax_options" name="wpp_ajax_options">
+        	<table class="form-table">
+                <tbody>
+                	<tr valign="top">
+                        <th scope="row"><label for="log_option"><?php _e("Log views from", $this->plugin_slug); ?>:</label></th>
+                        <td>
+                            <select name="log_option" id="log_option">
+                                <option <?php if ($this->user_settings['tools']['log']['level'] == 0) {?>selected="selected"<?php } ?> value="0"><?php _e("Visitors only", $this->plugin_slug); ?></option>
+                                <option <?php if ($this->user_settings['tools']['log']['level'] == 2) {?>selected="selected"<?php } ?> value="2"><?php _e("Logged-in users only", $this->plugin_slug); ?></option>
+                                <option <?php if ($this->user_settings['tools']['log']['level'] == 1) {?>selected="selected"<?php } ?> value="1"><?php _e("Everyone", $this->plugin_slug); ?></option>
+                            </select>
+                            <br />
+                        </td>
+                    </tr>
+                    <tr valign="top">
+                        <th scope="row"><label for="ajax"><?php _e("Ajaxify widget", $this->plugin_slug); ?>:</label></th>
+                        <td>
+                            <select name="ajax" id="ajax">                                
+                                <option <?php if (!$this->user_settings['tools']['ajax']) {?>selected="selected"<?php } ?> value="0"><?php _e("Disabled", $this->plugin_slug); ?></option>
+                                <option <?php if ($this->user_settings['tools']['ajax']) {?>selected="selected"<?php } ?> value="1"><?php _e("Enabled", $this->plugin_slug); ?></option>
+                            </select>
+                    
+                            <br />
+                            <p class="description"><?php _e("If you are using a caching plugin such as WP Super Cache, enabling this feature will keep the popular list from being cached by it", $this->plugin_slug); ?>.</p>
+                        </td>
+                    </tr>
+                    <tr valign="top">
+                        <th scope="row"><label for="cache"><?php _e("WPP Cache Expiry Policy", $this->plugin_slug); ?>:</label> <small>[<a href="https://github.com/cabrerahector/wordpress-popular-posts/wiki/7.-Performance#caching" target="_blank" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small></th>
+                        <td>
+                            <select name="cache" id="cache">
+                                <option <?php if ( !$this->user_settings['tools']['cache']['active'] ) { ?>selected="selected"<?php } ?> value="0"><?php _e("Never cache", $this->plugin_slug); ?></option>
+                                <option <?php if ( $this->user_settings['tools']['cache']['active'] ) { ?>selected="selected"<?php } ?> value="1"><?php _e("Enable caching", $this->plugin_slug); ?></option>
+                            </select>
+                    
+                            <br />
+                            <p class="description"><?php _e("Sets WPP's cache expiration time. WPP can cache the popular list for a specified amount of time. Recommended for large / high traffic sites", $this->plugin_slug); ?>.</p>
+                        </td>
+                    </tr>
+                    <tr valign="top" <?php if ( !$this->user_settings['tools']['cache']['active'] ) { ?>style="display:none;"<?php } ?> id="cache_refresh_interval">
+                        <th scope="row"><label for="cache_interval_value"><?php _e("Refresh cache every", $this->plugin_slug); ?>:</label></th>
+                        <td>
+                        	<input name="cache_interval_value" type="text" id="cache_interval_value" value="<?php echo ( isset($this->user_settings['tools']['cache']['interval']['value']) ) ? (int) $this->user_settings['tools']['cache']['interval']['value'] : 1; ?>" class="small-text">
+                            <select name="cache_interval_time" id="cache_interval_time">
+                            	<option <?php if ($this->user_settings['tools']['cache']['interval']['time'] == "minute") {?>selected="selected"<?php } ?> value="minute"><?php _e("Minute(s)", $this->plugin_slug); ?></option>
+                                <option <?php if ($this->user_settings['tools']['cache']['interval']['time'] == "hour") {?>selected="selected"<?php } ?> value="hour"><?php _e("Hour(s)", $this->plugin_slug); ?></option>
+                                <option <?php if ($this->user_settings['tools']['cache']['interval']['time'] == "day") {?>selected="selected"<?php } ?> value="day"><?php _e("Day(s)", $this->plugin_slug); ?></option>                                
+                                <option <?php if ($this->user_settings['tools']['cache']['interval']['time'] == "week") {?>selected="selected"<?php } ?> value="week"><?php _e("Week(s)", $this->plugin_slug); ?></option>
+                                <option <?php if ($this->user_settings['tools']['cache']['interval']['time'] == "month") {?>selected="selected"<?php } ?> value="month"><?php _e("Month(s)", $this->plugin_slug); ?></option>
+                                <option <?php if ($this->user_settings['tools']['cache']['interval']['time'] == "year") {?>selected="selected"<?php } ?> value="month"><?php _e("Year(s)", $this->plugin_slug); ?></option>
+                            </select>                            
+                            <br />
+                            <p class="description" style="display:none;" id="cache_too_long"><?php _e("Really? That long?", $this->plugin_slug); ?></p>
+                        </td>
+                    </tr>
+                    <tr valign="top">
+                        <th scope="row"><label for="sampling"><?php _e("Data Sampling", $this->plugin_slug); ?>:</label> <small>[<a href="https://github.com/cabrerahector/wordpress-popular-posts/wiki/7.-Performance#data-sampling" target="_blank" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small></th>
+                        <td>
+                            <select name="sampling" id="sampling">
+                                <option <?php if ( !$this->user_settings['tools']['sampling']['active'] ) { ?>selected="selected"<?php } ?> value="0"><?php _e("Disabled", $this->plugin_slug); ?></option>
+                                <option <?php if ( $this->user_settings['tools']['sampling']['active'] ) { ?>selected="selected"<?php } ?> value="1"><?php _e("Enabled", $this->plugin_slug); ?></option>
+                            </select>
+                    
+                            <br />
+                            <p class="description"><?php echo sprintf( __('By default, WordPress Popular Posts stores in database every single visit your site receives. For small / medium sites this is generally OK, but on large / high traffic sites the constant writing to the database may have an impact on performance. With <a href="%1$s" target="_blank">data sampling</a>, WordPress Popular Posts will store only a subset of your traffic and report on the tendencies detected in that sample set (for more, <a href="%2$s" target="_blank">please read here</a>)', $this->plugin_slug), 'http://en.wikipedia.org/wiki/Sample_%28statistics%29', 'https://github.com/cabrerahector/wordpress-popular-posts/wiki/7.-Performance#data-sampling' ); ?>.</p>
+                        </td>
+                    </tr>
+                    <tr valign="top" <?php if ( !$this->user_settings['tools']['sampling']['active'] ) { ?>style="display:none;"<?php } ?>>
+                        <th scope="row"><label for="sample_rate"><?php _e("Sample Rate", $this->plugin_slug); ?>:</label></th>
+                        <td>
+                        	<input name="sample_rate" type="text" id="sample_rate" value="<?php echo ( isset($this->user_settings['tools']['sampling']['rate']) ) ? (int) $this->user_settings['tools']['sampling']['rate'] : 100; ?>" class="small-text">
+                            <br />
+                            <p class="description"><?php echo sprintf( __("A sampling rate of %d is recommended for large / high traffic sites. For lower traffic sites, you should lower the value", $this->plugin_slug), $this->default_user_settings['tools']['sampling']['rate'] ); ?>.</p>
+                        </td>
+                    </tr>
+                    <tr valign="top">                            	
+                        <td colspan="2">
+                            <input type="hidden" name="section" value="data" />
+                    		<input type="submit" class="button-secondary action" id="btn_ajax_ops" value="<?php _e("Apply", $this->plugin_slug); ?>" name="" />
+                        </td>
+                    </tr>
+                </tbody>
+            </table>
+        </form>
+        <br />
+        <p style="display:block; float:none; clear:both">&nbsp;</p>
+        
+        <h3 class="wmpp-subtitle"><?php _e("Miscellaneous", $this->plugin_slug); ?></h3>
+        <form action="" method="post" id="wpp_link_options" name="wpp_link_options">
+            <table class="form-table">
+                <tbody>
+                    <tr valign="top">
+                        <th scope="row"><label for="link_target"><?php _e("Open links in", $this->plugin_slug); ?>:</label></th>
+                        <td>
+                            <select name="link_target" id="link_target">
+                                <option <?php if ( $this->user_settings['tools']['link']['target'] == '_self' ) {?>selected="selected"<?php } ?> value="_self"><?php _e("Current window", $this->plugin_slug); ?></option>
+                                <option <?php if ( $this->user_settings['tools']['link']['target'] == '_blank' ) {?>selected="selected"<?php } ?> value="_blank"><?php _e("New tab/window", $this->plugin_slug); ?></option>
+                            </select>
+                            <br />
+                        </td>
+                    </tr>                    
+                    <tr valign="top">
+                        <th scope="row"><label for="css"><?php _e("Use plugin's stylesheet", $this->plugin_slug); ?>:</label></th>
+                        <td>
+                            <select name="css" id="css">
+                                <option <?php if ($this->user_settings['tools']['css']) {?>selected="selected"<?php } ?> value="1"><?php _e("Enabled", $this->plugin_slug); ?></option>
+                                <option <?php if (!$this->user_settings['tools']['css']) {?>selected="selected"<?php } ?> value="0"><?php _e("Disabled", $this->plugin_slug); ?></option>
+                            </select>
+                            <br />
+                            <p class="description"><?php _e("By default, the plugin includes a stylesheet called wpp.css which you can use to style your popular posts listing. If you wish to use your own stylesheet or do not want it to have it included in the header section of your site, use this.", $this->plugin_slug); ?></p>
+                        </td>
+                    </tr>
+                    <tr valign="top">
+                        <td colspan="2">
+                            <input type="hidden" name="section" value="misc" />
+                            <input type="submit" class="button-secondary action" value="<?php _e("Apply", $this->plugin_slug); ?>" name="" />
+                        </td>
+                    </tr>
+                </tbody>
+            </table>
+        </form>
+        <br />
+        <p style="display:block; float:none; clear:both">&nbsp;</p>
+        
+        <br /><br />
+        
+        <p><?php _e('WordPress Popular Posts maintains data in two separate tables: one for storing the most popular entries on a daily basis (from now on, "cache"), and another one to keep the All-time data (from now on, "historical data" or just "data"). If for some reason you need to clear the cache table, or even both historical and cache tables, please use the buttons below to do so.', $this->plugin_slug) ?></p>
+        <p><input type="button" name="wpp-reset-cache" id="wpp-reset-cache" class="button-secondary" value="<?php _e("Empty cache", $this->plugin_slug); ?>" onclick="confirm_reset_cache()" /> <label for="wpp-reset-cache"><small><?php _e('Use this button to manually clear entries from WPP cache only', $this->plugin_slug); ?></small></label></p>
+        <p><input type="button" name="wpp-reset-all" id="wpp-reset-all" class="button-secondary" value="<?php _e("Clear all data", $this->plugin_slug); ?>" onclick="confirm_reset_all()" /> <label for="wpp-reset-all"><small><?php _e('Use this button to manually clear entries from all WPP data tables', $this->plugin_slug); ?></small></label></p>
+    </div>
+    <!-- End tools -->
+    
+    <!-- Start params -->
+    <div id="wpp_params" class="wpp_boxes"<?php if ( "params" == $current ) {?> style="display:block;"<?php } ?>>        
+        <div>
+            <p><?php printf( __('With the following parameters you can customize the popular posts list when using either the <a href="%1$s">wpp_get_most_popular() template tag</a> or the <a href="%2$s">[wpp] shortcode</a>.', $this->plugin_slug),
+				admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#template-tags'),
+				admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#shortcode')
+			); ?></p>
+            <br />
+            <table cellspacing="0" class="wp-list-table widefat fixed posts">
+                <thead>
+                    <tr>
+                        <th class="manage-column column-title"><?php _e('Parameter', $this->plugin_slug); ?></th>
+                        <th class="manage-column column-title"><?php _e('What it does ', $this->plugin_slug); ?></th>
+                        <th class="manage-column column-title"><?php _e('Possible values', $this->plugin_slug); ?></th>
+                        <th class="manage-column column-title"><?php _e('Defaults to', $this->plugin_slug); ?></th>
+                        <th class="manage-column column-title"><?php _e('Example', $this->plugin_slug); ?></th>
+                    </tr>
+                </thead>
+                <tbody>
+                    <tr>
+                        <td><strong>header</strong></td>
+                        <td><?php _e('Sets a heading for the list', $this->plugin_slug); ?></td>
+                        <td><?php _e('Text string', $this->plugin_slug); ?></td>
+                        <td><?php _e('None', $this->plugin_slug); ?></td>
+                        <td>&lt;?php wpp_get_mostpopular( 'header="Popular Posts"' ); ?&gt;</td>
+                    </tr>
+                    <tr class="alternate">
+                        <td><strong>header_start</strong></td>
+                        <td><?php _e('Set the opening tag for the heading of the list', $this->plugin_slug); ?></td>
+                        <td><?php _e('Text string', $this->plugin_slug); ?></td>
+                        <td>&lt;h2&gt;</td>
+                        <td>&lt;?php wpp_get_mostpopular( 'header_start="&lt;h2&gt;"&amp;header_end="&lt;/h2&gt;"' ); ?&gt;</td>
+                    </tr>
+                    <tr>
+                        <td><strong>header_end</strong></td>
+                        <td><?php _e('Set the closing tag for the heading of the list', $this->plugin_slug); ?></td>
+                        <td><?php _e('Text string', $this->plugin_slug); ?></td>
+                        <td>&lt;/h2&gt;</td>
+                        <td>&lt;?php wpp_get_mostpopular( 'header_start="&lt;h2&gt;"&amp;header_end="&lt;/h2&gt;"' ); ?&gt;</td>
+                    </tr>
+                    <tr class="alternate">
+                        <td><strong>limit</strong></td>
+                        <td><?php _e('Sets the maximum number of popular posts to be shown on the listing', $this->plugin_slug); ?></td>
+                        <td><?php _e('Positive integer', $this->plugin_slug); ?></td>
+                        <td>10</td>
+                        <td>&lt;?php wpp_get_mostpopular( 'limit=10' ); ?&gt;</td>
+                    </tr>
+                    <tr>
+                        <td><strong>range</strong></td>
+                        <td><?php _e('Tells WordPress Popular Posts to retrieve the most popular entries within the time range specified by you', $this->plugin_slug); ?></td>
+                        <td>"daily", "weekly", "monthly", "all"</td>
+                        <td>daily</td>
+                        <td>&lt;?php wpp_get_mostpopular( 'range="daily"' ); ?&gt;</td>
+                    </tr>
+                    <tr class="alternate">
+                        <td><strong>freshness</strong></td>
+                        <td><?php _e('Tells WordPress Popular Posts to retrieve the most popular entries published within the time range specified by you', $this->plugin_slug); ?></td>
+                        <td>1 (true), 0 (false)</td>
+                        <td>0</td>
+                        <td>&lt;?php wpp_get_mostpopular( 'freshness=1' ); ?&gt;</td>
+                    </tr>
+                    <tr>
+                        <td><strong>order_by</strong></td>
+                        <td><?php _e('Sets the sorting option of the popular posts', $this->plugin_slug); ?></td>
+                        <td>"comments", "views", "avg" <?php _e('(for average views per day)', $this->plugin_slug); ?></td>
+                        <td>views</td>
+                        <td>&lt;?php wpp_get_mostpopular( 'order_by="comments"' ); ?&gt;</td>
+                    </tr>
+                    <tr class="alternate">
+                        <td><strong>post_type</strong></td>
+                        <td><?php _e('Defines the type of posts to show on the listing', $this->plugin_slug); ?></td>
+                        <td><?php _e('Text string', $this->plugin_slug); ?></td>
+                        <td>post,page</td>
+                        <td>&lt;?php wpp_get_mostpopular( 'post_type="post,page,your-custom-post-type"' ); ?&gt;</td>
+                    </tr>
+                    <tr>
+                        <td><strong>pid</strong></td>
+                        <td><?php _e('If set, WordPress Popular Posts will exclude the specified post(s) ID(s) form the listing.', $this->plugin_slug); ?></td>
+                        <td><?php _e('Text string', $this->plugin_slug); ?></td>
+                        <td><?php _e('None', $this->plugin_slug); ?></td>
+                        <td>&lt;?php wpp_get_mostpopular( 'pid="60,25,31"' ); ?&gt;</td>
+                    </tr>
+                    <tr class="alternate">
+                        <td><strong>cat</strong></td>
+                        <td><?php _e('If set, WordPress Popular Posts will retrieve all entries that belong to the specified category(ies) ID(s). If a minus sign is used, the category(ies) will be excluded instead.', $this->plugin_slug); ?></td>
+                        <td><?php _e('Text string', $this->plugin_slug); ?></td>
+                        <td><?php _e('None', $this->plugin_slug); ?></td>
+                        <td>&lt;?php wpp_get_mostpopular( 'cat="1,55,-74"' ); ?&gt;</td>
+                    </tr>
+                    <tr>
+                        <td><strong>author</strong></td>
+                        <td><?php _e('If set, WordPress Popular Posts will retrieve all entries created by specified author(s) ID(s).', $this->plugin_slug); ?></td>
+                        <td><?php _e('Text string', $this->plugin_slug); ?></td>
+                        <td><?php _e('None', $this->plugin_slug); ?></td>
+                        <td>&lt;?php wpp_get_mostpopular( 'author="75,8,120"' ); ?&gt;</td>
+                    </tr>
+                    <tr class="alternate">
+                        <td><strong>title_length</strong></td>
+                        <td><?php _e('If set, WordPress Popular Posts will shorten each post title to "n" characters whenever possible', $this->plugin_slug); ?></td>
+                        <td><?php _e('Positive integer', $this->plugin_slug); ?></td>
+                        <td>25</td>
+                        <td>&lt;?php wpp_get_mostpopular( 'title_length=25' ); ?&gt;</td>
+                    </tr>
+                    <tr>
+                        <td><strong>title_by_words</strong></td>
+                        <td><?php _e('If set to 1, WordPress Popular Posts will shorten each post title to "n" words instead of characters', $this->plugin_slug); ?></td>
+                        <td>1 (true), (0) false</td>
+                        <td>0</td>
+                        <td>&lt;?php wpp_get_mostpopular( 'title_by_words=1' ); ?&gt;</td>
+                    </tr>
+                    <tr class="alternate">
+                        <td><strong>excerpt_length</strong></td>
+                        <td><?php _e('If set, WordPress Popular Posts will build and include an excerpt of "n" characters long from the content of each post listed as popular', $this->plugin_slug); ?></td>
+                        <td><?php _e('Positive integer', $this->plugin_slug); ?></td>
+                        <td>0</td>
+                        <td>&lt;?php wpp_get_mostpopular( 'excerpt_length=55&amp;post_html="&lt;li&gt;{thumb} {title} {summary}&lt;/li&gt;"' ); ?&gt;</td>
+                    </tr>
+                    <tr>
+                        <td><strong>excerpt_format</strong></td>
+                        <td><?php _e('If set, WordPress Popular Posts will maintaing all styling tags (strong, italic, etc) and hyperlinks found in the excerpt', $this->plugin_slug); ?></td>
+                        <td>1 (true), (0) false</td>
+                        <td>0</td>
+                        <td>&lt;?php wpp_get_mostpopular( 'excerpt_format=1&amp;excerpt_length=55&amp;post_html="&lt;li&gt;{thumb} {title} {summary}&lt;/li&gt;"' ); ?&gt;</td>
+                    </tr>
+                    <tr class="alternate">
+                        <td><strong>excerpt_by_words</strong></td>
+                        <td><?php _e('If set to 1, WordPress Popular Posts will shorten the excerpt to "n" words instead of characters', $this->plugin_slug); ?></td>
+                        <td>1 (true), (0) false</td>
+                        <td>0</td>
+                        <td>&lt;?php wpp_get_mostpopular( 'excerpt_by_words=1&amp;excerpt_length=55&amp;post_html="&lt;li&gt;{thumb} {title} {summary}&lt;/li&gt;"' ); ?&gt;</td>
+                    </tr>
+                    <tr>
+                        <td><strong>thumbnail_width</strong></td>
+                        <td><?php _e('If set, and if your current server configuration allows it, you will be able to display thumbnails of your posts. This attribute sets the width for thumbnails', $this->plugin_slug); ?></td>
+                        <td><?php _e('Positive integer', $this->plugin_slug); ?></td>
+                        <td>0</td>
+                        <td>&lt;?php wpp_get_mostpopular( 'thumbnail_width=30&amp;thumbnail_height=30' ); ?&gt;</td>
+                    </tr>
+                    <tr class="alternate">
+                        <td><strong>thumbnail_height</strong></td>
+                        <td><?php _e('If set, and if your current server configuration allows it, you will be able to display thumbnails of your posts. This attribute sets the height for thumbnails', $this->plugin_slug); ?></td>
+                        <td><?php _e('Positive integer', $this->plugin_slug); ?></td>
+                        <td>0</td>
+                        <td>&lt;?php wpp_get_mostpopular( 'thumbnail_width=30&amp;thumbnail_height=30' ); ?&gt;</td>
+                    </tr>
+                    <tr>
+                        <td><strong>rating</strong></td>
+                        <td><?php _e('If set, and if the WP-PostRatings plugin is installed and enabled on your blog, WordPress Popular Posts will show how your visitors are rating your entries', $this->plugin_slug); ?></td>
+                        <td>1 (true), (0) false</td>
+                        <td>0</td>
+                        <td>&lt;?php wpp_get_mostpopular( 'rating=1&amp;post_html="&lt;li&gt;{thumb} {title} {rating}&lt;/li&gt;"' ); ?&gt;</td>
+                    </tr>
+                    <tr class="alternate">
+                        <td><strong>stats_comments</strong></td>
+                        <td><?php _e('If set, WordPress Popular Posts will show how many comments each popular post has got until now', $this->plugin_slug); ?></td>
+                        <td>1 (true), 0 (false)</td>
+                        <td>1</td>
+                        <td>&lt;?php wpp_get_mostpopular( 'stats_comments=1' ); ?&gt;</td>
+                    </tr>
+                    <tr>
+                        <td><strong>stats_views</strong></td>
+                        <td><?php _e('If set, WordPress Popular Posts will show how many views each popular post has got since it was installed', $this->plugin_slug); ?></td>
+                        <td>1 (true), (0) false</td>
+                        <td>0</td>
+                        <td>&lt;?php wpp_get_mostpopular( 'stats_views=1' ); ?&gt;</td>
+                    </tr>
+                    <tr class="alternate">
+                        <td><strong>stats_author</strong></td>
+                        <td><?php _e('If set, WordPress Popular Posts will show who published each popular post on the list', $this->plugin_slug); ?></td>
+                        <td>1 (true), (0) false</td>
+                        <td>0</td>
+                        <td>&lt;?php wpp_get_mostpopular( 'stats_author=1' ); ?&gt;</td>
+                    </tr>
+                    <tr>
+                        <td><strong>stats_date</strong></td>
+                        <td><?php _e('If set, WordPress Popular Posts will display the date when each popular post on the list was published', $this->plugin_slug); ?></td>
+                        <td>1 (true), (0) false</td>
+                        <td>0</td>
+                        <td>&lt;?php wpp_get_mostpopular( 'stats_date=1' ); ?&gt;</td>
+                    </tr>
+                    <tr class="alternate">
+                        <td><strong>stats_date_format</strong></td>
+                        <td><?php _e('Sets the date format', $this->plugin_slug); ?></td>
+                        <td><?php _e('Text string', $this->plugin_slug); ?></td>
+                        <td>0</td>
+                        <td>&lt;?php wpp_get_mostpopular( 'stats_date_format="F j, Y"' ); ?&gt;</td>
+                    </tr>
+                    <tr>
+                        <td><strong>stats_category</strong></td>
+                        <td><?php _e('If set, WordPress Popular Posts will display the category', $this->plugin_slug); ?></td>
+                        <td>1 (true), (0) false</td>
+                        <td>0</td>
+                        <td>&lt;?php wpp_get_mostpopular( 'stats_category=1' ); ?&gt;</td>
+                    </tr>
+                    <tr class="alternate">
+                        <td><strong>wpp_start</strong></td>
+                        <td><?php _e('Sets the opening tag for the listing', $this->plugin_slug); ?></td>
+                        <td><?php _e('Text string', $this->plugin_slug); ?></td>
+                        <td>&lt;ul&gt;</td>
+                        <td>&lt;?php wpp_get_mostpopular( 'wpp_start="&lt;ol&gt;"&amp;wpp_end="&lt;/ol&gt;"' ); ?&gt;</td>
+                    </tr>
+                    <tr>
+                        <td><strong>wpp_end</strong></td>
+                        <td><?php _e('Sets the closing tag for the listing', $this->plugin_slug); ?></td>
+                        <td><?php _e('Text string', $this->plugin_slug); ?></td>
+                        <td>&lt;/ul&gt;</td>
+                        <td>&lt;?php wpp_get_mostpopular( 'wpp_start="&lt;ol&gt;"&amp;wpp_end="&lt;/ol&gt;"' ); ?&gt;</td>
+                    </tr>
+                    <tr class="alternate">
+                        <td><strong>post_html</strong></td>
+                        <td><?php _e('Sets the HTML structure of each post', $this->plugin_slug); ?></td>
+                        <td><?php _e('Text string, custom HTML', $this->plugin_slug); ?>.<br /><br /><strong><?php _e('Available Content Tags', $this->plugin_slug); ?>:</strong> <br /><br /><em>{thumb}</em> (<?php _e('displays thumbnail linked to post/page, requires thumbnail_width & thumbnail_height', $this->plugin_slug); ?>)<br /><br /> <em>{thumb_img}</em> (<?php _e('displays thumbnail image without linking to post/page, requires thumbnail_width & thumbnail_height', $this->plugin_slug); ?>)<br /><br /> <em>{title}</em> (<?php _e('displays linked post/page title', $this->plugin_slug); ?>)<br /><br /> <em>{summary}</em> (<?php _e('displays post/page excerpt, and requires excerpt_length to be greater than 0', $this->plugin_slug); ?>)<br /><br /> <em>{stats}</em> (<?php _e('displays the default stats tags', $this->plugin_slug); ?>)<br /><br /> <em>{rating}</em> (<?php _e('displays post/page current rating, requires WP-PostRatings installed and enabled', $this->plugin_slug); ?>)<br /><br /> <em>{score}</em> (<?php _e('displays post/page current rating as an integer, requires WP-PostRatings installed and enabled', $this->plugin_slug); ?>)<br /><br /> <em>{url}</em> (<?php _e('outputs the URL of the post/page', $this->plugin_slug); ?>)<br /><br /> <em>{text_title}</em> (<?php _e('displays post/page title, no link', $this->plugin_slug); ?>)<br /><br /> <em>{author}</em> (<?php _e('displays linked author name, requires stats_author=1', $this->plugin_slug); ?>)<br /><br /> <em>{category}</em> (<?php _e('displays linked category name, requires stats_category=1', $this->plugin_slug); ?>)<br /><br /> <em>{views}</em> (<?php _e('displays views count only, no text', $this->plugin_slug); ?>)<br /><br /> <em>{comments}</em> (<?php _e('displays comments count only, no text, requires stats_comments=1', $this->plugin_slug); ?>)<br /><br /> <em>{date}</em> (<?php _e('displays post/page date, requires stats_date=1', $this->plugin_slug); ?>)</td>
+                        <td>&lt;li&gt;{thumb} {title} {stats}&lt;/li&gt;</td>
+                        <td>&lt;?php wpp_get_mostpopular( 'post_html="&lt;li&gt;{thumb} &lt;a href=\'{url}\'&gt;{text_title}&lt;/a&gt;&lt;/li&gt;"' ); ?&gt;</td>
+                    </tr>
+                </tbody>
+            </table>
+        </div>
+    </div>
+    <!-- End params -->
+    
+    <!-- Start faq -->
+    <div id="wpp_faq" class="wpp_boxes"<?php if ( "faq" == $current ) {?> style="display:block;"<?php } ?>>    	
+        <h4 id="widget-title">&raquo; <a href="#" rel="q-1"><?php _e('What does "Title" do?', $this->plugin_slug); ?></a></h4>
+        
+        <div class="wpp-ans" id="q-1">
+            <p><?php _e('It allows you to show a heading for your most popular posts listing. If left empty, no heading will be displayed at all.', $this->plugin_slug); ?></p>
+        </div>
+        
+        <h4 id="time-range">&raquo; <a href="#" rel="q-2"><?php _e('What is Time Range for?', $this->plugin_slug); ?></a></h4>
+        <div class="wpp-ans" id="q-2">
+            <p><?php _e('It will tell WordPress Popular Posts to retrieve all posts with most views / comments within the selected time range.', $this->plugin_slug); ?></p>
+        </div>
+        
+        <h4 id="sorting">&raquo; <a href="#" rel="q-3"><?php _e('What is "Sort post by" for?', $this->plugin_slug); ?></a></h4>
+        <div class="wpp-ans" id="q-3">
+            <p><?php _e('It allows you to decide whether to order your popular posts listing by total views, comments, or average views per day.', $this->plugin_slug); ?></p>
+        </div>                    
+        
+        <h4 id="display-rating">&raquo; <a href="#" rel="q-4"><?php _e('What does "Display post rating" do?', $this->plugin_slug); ?></a></h4>
+        <div class="wpp-ans" id="q-4">
+            <p><?php _e('If checked, WordPress Popular Posts will show how your readers are rating your most popular posts. This feature requires having WP-PostRatings plugin installed and enabled on your blog for it to work.', $this->plugin_slug); ?></p>
+        </div>
+        
+        <h4 id="shorten-title">&raquo; <a href="#" rel="q-5"><?php _e('What does "Shorten title" do?', $this->plugin_slug); ?></a></h4>
+        <div class="wpp-ans" id="q-5">
+            <p><?php _e('If checked, all posts titles will be shortened to "n" characters/words. A new "Shorten title to" option will appear so you can set it to whatever you like.', $this->plugin_slug); ?></p>
+        </div>
+        
+        <h4 id="display-excerpt">&raquo; <a href="#" rel="q-6"><?php _e('What does "Display post excerpt" do?', $this->plugin_slug); ?></a></h4>
+        <div class="wpp-ans" id="q-6">
+            <p><?php _e('If checked, WordPress Popular Posts will also include a small extract of your posts in the list. Similarly to the previous option, you will be able to decide how long the post excerpt should be.', $this->plugin_slug); ?></p>
+        </div>
+        
+        <h4 id="keep-format">&raquo; <a href="#" rel="q-7"><?php _e('What does "Keep text format and links" do?', $this->plugin_slug); ?></a></h4>
+        <div class="wpp-ans" id="q-7">
+            <p><?php _e('If checked, and if the Post Excerpt feature is enabled, WordPress Popular Posts will keep the styling tags (eg. bold, italic, etc) that were found in the excerpt. Hyperlinks will remain intact, too.', $this->plugin_slug); ?></p>
+        </div>
+        
+        <h4 id="filter-post-type">&raquo; <a href="#" rel="q-8"><?php _e('What is "Post type" for?', $this->plugin_slug); ?></a></h4>
+        <div class="wpp-ans" id="q-8">
+            <p><?php _e('This filter allows you to decide which post types to show on the listing. By default, it will retrieve only posts and pages (which should be fine for most cases).', $this->plugin_slug); ?></p>
+        </div>
+        
+        <h4 id="filter-category">&raquo; <a href="#" rel="q-9"><?php _e('What is "Category(ies) ID(s)" for?', $this->plugin_slug); ?></a></h4>
+        <div class="wpp-ans" id="q-9">
+            <p><?php _e('This filter allows you to select which categories should be included or excluded from the listing. A negative sign in front of the category ID number will exclude posts belonging to it from the list, for example. You can specify more than one ID with a comma separated list.', $this->plugin_slug); ?></p>
+        </div>
+        
+        <h4 id="filter-author">&raquo; <a href="#" rel="q-10"><?php _e('What is "Author(s) ID(s)" for?', $this->plugin_slug); ?></a></h4>
+        <div class="wpp-ans" id="q-10">
+            <p><?php _e('Just like the Category filter, this one lets you filter posts by author ID. You can specify more than one ID with a comma separated list.', $this->plugin_slug); ?></p>
+        </div>
+        
+        <h4 id="display-thumb">&raquo; <a href="#" rel="q-11"><?php _e('What does "Display post thumbnail" do?', $this->plugin_slug); ?></a></h4>
+        <div class="wpp-ans" id="q-11">
+            <p><?php _e('If checked, WordPress Popular Posts will attempt to retrieve the thumbnail of each post. You can set up the source of the thumbnail via Settings - WordPress Popular Posts - Tools.', $this->plugin_slug); ?></p>
+        </div>
+        
+        <h4 id="stats-comments">&raquo; <a href="#" rel="q-12"><?php _e('What does "Display comment count" do?', $this->plugin_slug); ?></a></h4>
+        <div class="wpp-ans" id="q-12">
+            <p><?php _e('If checked, WordPress Popular Posts will display how many comments each popular post has got in the selected Time Range.', $this->plugin_slug); ?></p>
+        </div>
+        
+        <h4 id="stats-views">&raquo; <a href="#" rel="q-13"><?php _e('What does "Display views" do?', $this->plugin_slug); ?></a></h4>
+        <div class="wpp-ans" id="q-13">
+            <p><?php _e('If checked, WordPress Popular Posts will show how many pageviews a single post has gotten in the selected Time Range.', $this->plugin_slug); ?></p>
+        </div>
+        
+        <h4 id="stats-author">&raquo; <a href="#" rel="q-14"><?php _e('What does "Display author" do?', $this->plugin_slug); ?></a></h4>
+        <div class="wpp-ans" id="q-14">
+            <p><?php _e('If checked, WordPress Popular Posts will display the name of the author of each entry listed.', $this->plugin_slug); ?></p>
+        </div>
+        
+        <h4 id="stats-date">&raquo; <a href="#" rel="q-15"><?php _e('What does "Display date" do?', $this->plugin_slug); ?></a></h4>
+        <div class="wpp-ans" id="q-15">
+            <p><?php _e('If checked, WordPress Popular Posts will display the date when each popular posts was published.', $this->plugin_slug); ?></p>
+        </div>
+        
+        <h4 id="stats-cat">&raquo; <a href="#" rel="q-16"><?php _e('What does "Display category" do?', $this->plugin_slug); ?></a></h4>
+        <div class="wpp-ans" id="q-16">
+            <p><?php _e('If checked, WordPress Popular Posts will display the category of each post.', $this->plugin_slug); ?></p>
+        </div>
+        
+        <h4 id="custom-html-markup">&raquo; <a href="#" rel="q-17"><?php _e('What does "Use custom HTML Markup" do?', $this->plugin_slug); ?></a></h4>
+        <div class="wpp-ans" id="q-17">
+            <p><?php _e('If checked, you will be able to customize the HTML markup of your popular posts listing. For example, you can decide whether to wrap your posts in an unordered list, an ordered list, a div, etc. If you know xHTML/CSS, this is for you!', $this->plugin_slug); ?></p>
+        </div>
+        
+        <h4>&raquo; <a href="#" rel="q-18"><?php _e('What are "Content Tags"?', $this->plugin_slug); ?></a></h4>
+        <div class="wpp-ans" id="q-18">            
+            <p><?php echo sprintf( __('Content Tags are codes to display a variety of items on your popular posts custom HTML structure. For example, setting it to "{title}: {summary}" (without the quotes) would display "Post title: excerpt of the post here". For more Content Tags, see the <a href="%s" target="_blank">Parameters</a> section.', $this->plugin_slug), admin_url('options-general.php?page=wordpress-popular-posts&tab=params') ); ?></p>
+        </div>
+        
+        <h4 id="template-tags">&raquo; <a href="#" rel="q-19"><?php _e('What are "Template Tags"?', $this->plugin_slug); ?></a></h4>
+        <div class="wpp-ans" id="q-19">
+            <p><?php _e('Template Tags are simply php functions that allow you to perform certain actions. For example, WordPress Popular Posts currently supports two different template tags: wpp_get_mostpopular() and wpp_get_views().', $this->plugin_slug); ?></p>
+        </div>
+        
+        <h4>&raquo; <a href="#" rel="q-20"><?php _e('What are the template tags that WordPress Popular Posts supports?', $this->plugin_slug); ?></a></h4>
+        <div class="wpp-ans" id="q-20">
+            <p><?php _e('The following are the template tags supported by WordPress Popular Posts', $this->plugin_slug); ?>:</p>
+            <table cellspacing="0" class="wp-list-table widefat fixed posts">
+                <thead>
+                    <tr>
+                        <th class="manage-column column-title"><?php _e('Template tag', $this->plugin_slug); ?></th>
+                        <th class="manage-column column-title"><?php _e('What it does ', $this->plugin_slug); ?></th>
+                        <th class="manage-column column-title"><?php _e('Parameters', $this->plugin_slug); ?></th>
+                        <th class="manage-column column-title"><?php _e('Example', $this->plugin_slug); ?></th>
+                    </tr>
+                </thead>
+                <tbody>
+                    <tr>
+                        <td><strong>wpp_get_mostpopular()</strong></td>
+                        <td><?php printf( __('Similar to the widget functionality, this tag retrieves the most popular posts on your blog. This function also accepts <a href="%1$s">parameters</a> so you can customize your popular listing, but these are not required.', $this->plugin_slug), admin_url('options-general.php?page=wordpress-popular-posts&tab=params') ); ?></td>
+                        <td><?php printf( __('Please refer to the <a href="%1$s">Parameters section</a> for a complete list of attributes.', $this->plugin_slug), admin_url('options-general.php?page=wordpress-popular-posts&tab=params') ); ?></td>
+                        <td>&lt;?php wpp_get_mostpopular(); ?&gt;<br />&lt;?php wpp_get_mostpopular("range=weekly&amp;limit=7"); ?&gt;</td>
+                    </tr>
+                    <tr class="alternate">
+                        <td><strong>wpp_get_views()</strong></td>
+                        <td><?php _e('Displays the number of views of a single post. Post ID is required or it will return false.', $this->plugin_slug); ?></td>
+                        <td><?php _e('Post ID', $this->plugin_slug); ?>, range ("daily", "weekly", "monthly", "all")</td>
+                        <td>&lt;?php echo wpp_get_views($post->ID); ?&gt;<br />&lt;?php echo wpp_get_views(15, 'weekly'); ?&gt;</td>
+                    </tr>
+                </tbody>
+            </table>
+        </div>
+        
+        <h4 id="shortcode">&raquo; <a href="#" rel="q-21"><?php _e('What are "shortcodes"?', $this->plugin_slug); ?></a></h4>
+        <div class="wpp-ans" id="q-21">
+            <p><?php echo sprintf( __('Shortcodes are similar to BB Codes, these allow us to call a php function by simply typing something like [shortcode]. With WordPress Popular Posts, the shortcode [wpp] will let you insert a list of the most popular posts in posts content and pages too! For more information about shortcodes, please visit the <a href="%s" target="_blank">WordPress Shortcode API</a> page.', $this->plugin_slug), 'http://codex.wordpress.org/Shortcode_API' ); ?></p>
+        </div>        
+    </div>
+    <!-- End faq -->
+    
+    <!-- Start about -->
+    <div id="wpp_faq" class="wpp_boxes"<?php if ( "about" == $current ) {?> style="display:block;"<?php } ?>>
+        
+        <h3><?php echo sprintf( __('About WordPress Popular Posts %s', $this->plugin_slug), $this->version); ?></h3>
+        <p><?php _e( 'This version includes the following changes', $this->plugin_slug ); ?>:</p>
+        
+        <p><strong>If you're using a caching plugin, flushing its cache after installing / upgrading to this version is strongly recommended.</strong></p>
+        
+        <ul>
+            <li>Fixes a potential bug that might affect other plugins & themes (thanks , @<a href="https://github.com/pippinsplugins">pippinsplugins</a>!)</li>
+            <li>Defines INNODB as default storage engine.</li>
+            <li>Adds the wpp-no-data CSS class to style the "Sorry, no data so far" message.</li>
+            <li>Adds a new index to summary table.</li>
+            <li>Updates plugin's documentation.</li>
+            <li>Other small bug fixes and improvements.</li>
+        </ul>
+                
+    </div>
+    <!-- End about -->
+    
+    <div id="wpp_donate" class="wpp_box" style="">
+        <h3 style="margin-top:0; text-align:center;"><?php _e('Do you like this plugin?', $this->plugin_slug); ?></h3>
+        <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
+            <input type="hidden" name="cmd" value="_s-xclick">
+            <input type="hidden" name="hosted_button_id" value="RP9SK8KVQHRKS">
+            <input type="image" src="//www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!" style="display:block; margin:0 auto;">
+            <img alt="" border="0" src="//www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
+        </form>
+        <p><?php _e( 'Each donation motivates me to keep releasing free stuff for the WordPress community!', $this->plugin_slug ); ?></p>
+        <p><?php echo sprintf( __('You can <a href="%s" target="_blank">leave a review</a>, too!', $this->plugin_slug), 'https://wordpress.org/support/view/plugin-reviews/wordpress-popular-posts?rate=5#postform' ); ?></p>
+    </div>
+    
+    <div id="wpp_support" class="wpp_box" style="">
+        <h3 style="margin-top:0; text-align:center;"><?php _e('Need help?', $this->plugin_slug); ?></h3>
+        <p><?php echo sprintf( __('Visit <a href="%s" target="_blank">the forum</a> for support, questions and feedback.', $this->plugin_slug), 'https://wordpress.org/support/plugin/wordpress-popular-posts' ); ?></p>
+        <p><?php _e('Let\'s make this plugin even better!', $this->plugin_slug); ?></p>
+    </div>
+        
 </div>
\ No newline at end of file
diff --git a/wp-content/plugins/wordpress-popular-posts/views/form.php b/wp-content/plugins/wordpress-popular-posts/views/form.php
index c722edac2e61cb1029bf17de9dc40e51aedd0e47..30134e085343f047bd2d6d22553f8e1184e93a24 100644
--- a/wp-content/plugins/wordpress-popular-posts/views/form.php
+++ b/wp-content/plugins/wordpress-popular-posts/views/form.php
@@ -1,123 +1,137 @@
-<p>
-	<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title', 'wordpress-popular-posts'); ?>:</label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#widget-title'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small> <br />
-    <input id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" class="widefat" />
-</p>
-
-<p>
-	<label for="<?php echo $this->get_field_id( 'limit' ); ?>"><?php _e('Show up to', 'wordpress-popular-posts'); ?>:</label><br />
-    <input id="<?php echo $this->get_field_id( 'limit' ); ?>" name="<?php echo $this->get_field_name( 'limit' ); ?>" value="<?php echo $instance['limit']; ?>"  class="widefat" style="width:50px!important" /> <?php _e('posts', 'wordpress-popular-posts'); ?>
-</p>
-
-<p>
-	<label for="<?php echo $this->get_field_id( 'order_by' ); ?>"><?php _e('Sort posts by', 'wordpress-popular-posts'); ?>:</label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#sorting'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small> <br />
-    <select id="<?php echo $this->get_field_id( 'order_by' ); ?>" name="<?php echo $this->get_field_name( 'order_by' ); ?>" class="widefat">
-        <option value="comments" <?php if ( 'comments' == $instance['order_by'] ) echo 'selected="selected"'; ?>><?php _e('Comments', 'wordpress-popular-posts'); ?></option>
-        <option value="views" <?php if ( 'views' == $instance['order_by'] ) echo 'selected="selected"'; ?>><?php _e('Total views', 'wordpress-popular-posts'); ?></option>
-        <option value="avg" <?php if ( 'avg' == $instance['order_by'] ) echo 'selected="selected"'; ?>><?php _e('Avg. daily views', 'wordpress-popular-posts'); ?></option>
-    </select>
-</p>
-
-<br /><hr /><br />
-
-<legend><strong><?php _e('Filters', 'wordpress-popular-posts'); ?></strong></legend><br />
-
-<label for="<?php echo $this->get_field_id( 'range' ); ?>"><?php _e('Time Range', 'wordpress-popular-posts'); ?>:</label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#time-range'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
-<select id="<?php echo $this->get_field_id( 'range' ); ?>" name="<?php echo $this->get_field_name( 'range' ); ?>" class="widefat" style="margin-bottom:5px;">
-    <option value="daily" <?php if ( 'daily' == $instance['range'] ) echo 'selected="selected"'; ?>><?php _e('Last 24 hours', 'wordpress-popular-posts'); ?></option>
-    <option value="weekly" <?php if ( 'weekly' == $instance['range'] ) echo 'selected="selected"'; ?>><?php _e('Last 7 days', 'wordpress-popular-posts'); ?></option>
-    <option value="monthly" <?php if ( 'monthly' == $instance['range'] ) echo 'selected="selected"'; ?>><?php _e('Last 30 days', 'wordpress-popular-posts'); ?></option>
-    <option value="all" <?php if ( 'all' == $instance['range'] ) echo 'selected="selected"'; ?>><?php _e('All-time', 'wordpress-popular-posts'); ?></option>
-</select><br />
-
-<input type="checkbox" class="checkbox" <?php echo ($instance['freshness']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'freshness' ); ?>" name="<?php echo $this->get_field_name( 'freshness' ); ?>" /> <label for="<?php echo $this->get_field_id( 'freshness' ); ?>"><small><?php _e('Display only posts published within the selected Time Range', 'wordpress-popular-posts'); ?></small></label><br /><br />
-
-<label for="<?php echo $this->get_field_id( 'post_type' ); ?>"><?php _e('Post type(s)', 'wordpress-popular-posts'); ?>:</label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#filter-post-type'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small>
-<input id="<?php echo $this->get_field_id( 'post_type' ); ?>" name="<?php echo $this->get_field_name( 'post_type' ); ?>" value="<?php echo $instance['post_type']; ?>" class="widefat" /><br /><br />
-
-<label for="<?php echo $this->get_field_id( 'pid' ); ?>"><?php _e('Post(s) ID(s) to exclude', 'wordpress-popular-posts'); ?>:</label>
-<input id="<?php echo $this->get_field_id( 'pid' ); ?>" name="<?php echo $this->get_field_name( 'pid' ); ?>" value="<?php echo $instance['pid']; ?>" class="widefat" /><br /><br />
-
-<label for="<?php echo $this->get_field_id( 'cat' ); ?>"><?php _e('Category(ies) ID(s)', 'wordpress-popular-posts'); ?>:</label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#filter-category'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small>
-<input id="<?php echo $this->get_field_id( 'cat' ); ?>" name="<?php echo $this->get_field_name( 'cat' ); ?>" value="<?php echo $instance['cat']; ?>" class="widefat" /><br /><br />
-
-<label for="<?php echo $this->get_field_id( 'uid' ); ?>"><?php _e('Author(s) ID(s)', 'wordpress-popular-posts'); ?>:</label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#filter-author'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small>
-<input id="<?php echo $this->get_field_id( 'uid' ); ?>" name="<?php echo $this->get_field_name( 'uid' ); ?>" value="<?php echo $instance['author']; ?>" class="widefat" /><br /><br />
-
-<br /><hr /><br />
-
-<legend><strong><?php _e('Posts settings', 'wordpress-popular-posts'); ?></strong></legend>
-<br />
-
-<div style="display:<?php if ( function_exists('the_ratings_results') ) : ?>block<?php else: ?>none<?php endif; ?>;">
-    <input type="checkbox" class="checkbox" <?php echo ($instance['rating']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'rating' ); ?>" name="<?php echo $this->get_field_name( 'rating' ); ?>" /> <label for="<?php echo $this->get_field_id( 'rating' ); ?>"><?php _e('Display post rating', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#display-rating'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small>
-</div>
-
-<input type="checkbox" class="checkbox" <?php echo ($instance['shorten_title']['active']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'shorten_title-active' ); ?>" name="<?php echo $this->get_field_name( 'shorten_title-active' ); ?>" /> <label for="<?php echo $this->get_field_id( 'shorten_title-active' ); ?>"><?php _e('Shorten title', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#shorten-title'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
-
-<div style="display:<?php if ($instance['shorten_title']['active']) : ?>block<?php else: ?>none<?php endif; ?>; width:90%; margin:10px 0; padding:3% 5%; background:#f5f5f5;">    
-    <label for="<?php echo $this->get_field_id( 'shorten_title-length' ); ?>"><?php _e('Shorten title to', 'wordpress-popular-posts'); ?> <input id="<?php echo $this->get_field_id( 'shorten_title-length' ); ?>" name="<?php echo $this->get_field_name( 'shorten_title-length' ); ?>" value="<?php echo $instance['shorten_title']['length']; ?>" class="widefat" style="width:50px!important" /></label><br />
-    <label for="<?php echo $this->get_field_id( 'shorten_title-words' ); ?>"><input type="radio" name="<?php echo $this->get_field_name( 'shorten_title-words' ); ?>" value="0" <?php echo (!isset($instance['shorten_title']['words']) || !$instance['shorten_title']['words']) ? 'checked="checked"' : ''; ?> /> <?php _e('characters', 'wordpress-popular-posts'); ?></label><br />
-    <label for="<?php echo $this->get_field_id( 'shorten_title-words' ); ?>"><input type="radio" name="<?php echo $this->get_field_name( 'shorten_title-words' ); ?>" value="1" <?php echo (isset($instance['shorten_title']['words']) && $instance['shorten_title']['words']) ? 'checked="checked"' : ''; ?> /> <?php _e('words', 'wordpress-popular-posts'); ?></label>
-</div>
-
-<input type="checkbox" class="checkbox" <?php echo ($instance['post-excerpt']['active']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'post-excerpt-active' ); ?>" name="<?php echo $this->get_field_name( 'post-excerpt-active' ); ?>" /> <label for="<?php echo $this->get_field_id( 'post-excerpt-active' ); ?>"><?php _e('Display post excerpt', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#display-excerpt'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
-
-<div style="display:<?php if ($instance['post-excerpt']['active']) : ?>block<?php else: ?>none<?php endif; ?>; width:90%; margin:10px 0; padding:3% 5%; background:#f5f5f5;">
-    <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id( 'post-excerpt-format' ); ?>" name="<?php echo $this->get_field_name( 'post-excerpt-format' ); ?>" <?php echo ($instance['post-excerpt']['keep_format']) ? 'checked="checked"' : ''; ?> /> <label for="<?php echo $this->get_field_id( 'post-excerpt-format' ); ?>"><?php _e('Keep text format and links', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#keep-format'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br /><br />
-    <label for="<?php echo $this->get_field_id( 'post-excerpt-length' ); ?>"><?php _e('Excerpt length', 'wordpress-popular-posts'); ?>: <input id="<?php echo $this->get_field_id( 'post-excerpt-length' ); ?>" name="<?php echo $this->get_field_name( 'post-excerpt-length' ); ?>" value="<?php echo $instance['post-excerpt']['length']; ?>" class="widefat" style="width:50px!important" /></label><br  />
-    
-    <label for="<?php echo $this->get_field_id( 'post-excerpt-words' ); ?>"><input type="radio" name="<?php echo $this->get_field_name( 'post-excerpt-words' ); ?>" value="0" <?php echo (!isset($instance['post-excerpt']['words']) || !$instance['post-excerpt']['words']) ? 'checked="checked"' : ''; ?> /> <?php _e('characters', 'wordpress-popular-posts'); ?></label><br />
-    <label for="<?php echo $this->get_field_id( 'post-excerpt-words' ); ?>"><input type="radio" name="<?php echo $this->get_field_name( 'post-excerpt-words' ); ?>" value="1" <?php echo (isset($instance['post-excerpt']['words']) && $instance['post-excerpt']['words']) ? 'checked="checked"' : ''; ?> /> <?php _e('words', 'wordpress-popular-posts'); ?></label>
-</div>
-
-<input type="checkbox" class="checkbox" <?php echo ($instance['thumbnail']['active'] && $this->thumbnailing) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'thumbnail-active' ); ?>" name="<?php echo $this->get_field_name( 'thumbnail-active' ); ?>" /> <label for="<?php echo $this->get_field_id( 'thumbnail-active' ); ?>"><?php _e('Display post thumbnail', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#display-thumb'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small>
-
-<div style="display:<?php if ($instance['thumbnail']['active']) : ?>block<?php else: ?>none<?php endif; ?>; width:90%; margin:10px 0; padding:3% 5%; background:#f5f5f5;">
-    <label for="<?php echo $this->get_field_id( 'thumbnail-width' ); ?>"><?php _e('Width', 'wordpress-popular-posts'); ?>:</label> 
-    <input id="<?php echo $this->get_field_id( 'thumbnail-width' ); ?>" name="<?php echo $this->get_field_name( 'thumbnail-width' ); ?>" value="<?php echo $instance['thumbnail']['width']; ?>"  class="widefat" style="width:50px!important" <?php echo ($this->thumbnailing) ? '' : 'disabled="disabled"' ?> /> <?php _e('px', 'wordpress-popular-posts'); ?><br />
-    
-    <label for="<?php echo $this->get_field_id( 'thumbnail-height' ); ?>"><?php _e('Height', 'wordpress-popular-posts'); ?>:</label> 
-    <input id="<?php echo $this->get_field_id( 'thumbnail-height' ); ?>" name="<?php echo $this->get_field_name( 'thumbnail-height' ); ?>" value="<?php echo $instance['thumbnail']['height']; ?>"  class="widefat" style="width:50px!important" <?php echo ($this->thumbnailing) ? '' : 'disabled="disabled"' ?> /> <?php _e('px', 'wordpress-popular-posts'); ?>
-</div>
-    
-<br /><hr /><br />
-
-<legend><strong><?php _e('Stats Tag settings', 'wordpress-popular-posts'); ?></strong></legend><br />
-
-<input type="checkbox" class="checkbox" <?php echo ($instance['stats_tag']['comment_count']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'comment_count' ); ?>" name="<?php echo $this->get_field_name( 'comment_count' ); ?>" /> <label for="<?php echo $this->get_field_id( 'comment_count' ); ?>"><?php _e('Display comment count', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#stats-comments'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />  
-              
-<input type="checkbox" class="checkbox" <?php echo ($instance['stats_tag']['views']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'views' ); ?>" name="<?php echo $this->get_field_name( 'views' ); ?>" /> <label for="<?php echo $this->get_field_id( 'views' ); ?>"><?php _e('Display views', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#stats-views'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
-
-<input type="checkbox" class="checkbox" <?php echo ($instance['stats_tag']['author']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'author' ); ?>" name="<?php echo $this->get_field_name( 'author' ); ?>" /> <label for="<?php echo $this->get_field_id( 'author' ); ?>"><?php _e('Display author', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#stats-author'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
-
-<input type="checkbox" class="checkbox" <?php echo ($instance['stats_tag']['date']['active']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'date' ); ?>" name="<?php echo $this->get_field_name( 'date' ); ?>" /> <label for="<?php echo $this->get_field_id( 'date' ); ?>"><?php _e('Display date', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#stats-date'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
-
-<div style="display:<?php if ($instance['stats_tag']['date']['active']) : ?>block<?php else: ?>none<?php endif; ?>; width:90%; margin:10px 0; padding:3% 5%; background:#f5f5f5;">    
-    <legend><strong><?php _e('Date Format', 'wordpress-popular-posts'); ?></strong></legend><br />
-    
-    <label title='<?php echo get_option('date_format'); ?>'><input type='radio' name='<?php echo $this->get_field_name( 'date_format' ); ?>' value='<?php echo get_option('date_format'); ?>' <?php echo ($instance['stats_tag']['date']['format'] == get_option('date_format')) ? 'checked="checked"' : ''; ?> /><?php echo date_i18n(get_option('date_format'), time()); ?></label> <small>(<a href="<?php echo admin_url('options-general.php'); ?>" title="<?php _e('WordPress Date Format', 'wordpress-popular-posts'); ?>" target="_blank"><?php _e('WordPress Date Format', 'wordpress-popular-posts'); ?></a>)</small><br />
-    <label title='F j, Y'><input type='radio' name='<?php echo $this->get_field_name( 'date_format' ); ?>' value='F j, Y' <?php echo ($instance['stats_tag']['date']['format'] == 'F j, Y') ? 'checked="checked"' : ''; ?> /><?php echo date_i18n('F j, Y', time()); ?></label><br />
-    <label title='Y/m/d'><input type='radio' name='<?php echo $this->get_field_name( 'date_format' ); ?>' value='Y/m/d' <?php echo ($instance['stats_tag']['date']['format'] == 'Y/m/d') ? 'checked="checked"' : ''; ?> /><?php echo date_i18n('Y/m/d', time()); ?></label><br />
-    <label title='m/d/Y'><input type='radio' name='<?php echo $this->get_field_name( 'date_format' ); ?>' value='m/d/Y' <?php echo ($instance['stats_tag']['date']['format'] == 'm/d/Y') ? 'checked="checked"' : ''; ?> /><?php echo date_i18n('m/d/Y', time()); ?></label><br />
-    <label title='d/m/Y'><input type='radio' name='<?php echo $this->get_field_name( 'date_format' ); ?>' value='d/m/Y' <?php echo ($instance['stats_tag']['date']['format'] == 'd/m/Y') ? 'checked="checked"' : ''; ?> /><?php echo date_i18n('d/m/Y', time()); ?></label>
-</div>
-    
-<input type="checkbox" class="checkbox" <?php echo ($instance['stats_tag']['category']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'category' ); ?>" name="<?php echo $this->get_field_name( 'category' ); ?>" /> <label for="<?php echo $this->get_field_id( 'category' ); ?>"><?php _e('Display category', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#stats-cat'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
-    
-<br /><hr /><br />
-
-<legend><strong><?php _e('HTML Markup settings', 'wordpress-popular-posts'); ?></strong></legend><br />
-
-<input type="checkbox" class="checkbox" <?php echo ($instance['markup']['custom_html']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'custom_html' ); ?>" name="<?php echo $this->get_field_name( 'custom_html' ); ?>" /> <label for="<?php echo $this->get_field_id( 'custom_html' ); ?>"><?php _e('Use custom HTML Markup', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#custom-html-markup'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
-
-<div style="display:<?php if ($instance['markup']['custom_html']) : ?>block<?php else: ?>none<?php endif; ?>; width:90%; margin:10px 0; padding:3% 5%; background:#f5f5f5;">
-    <p style="font-size:11px"><label for="<?php echo $this->get_field_id( 'title-start' ); ?>"><?php _e('Before / after title', 'wordpress-popular-posts'); ?>:</label> <br />
-    <input type="text" id="<?php echo $this->get_field_id( 'title-start' ); ?>" name="<?php echo $this->get_field_name( 'title-start' ); ?>" value="<?php echo $instance['markup']['title-start']; ?>" class="widefat" style="width:49%!important" <?php echo ($instance['markup']['custom_html']) ? '' : 'disabled="disabled"' ?> /> <input type="text" id="<?php echo $this->get_field_id( 'title-end' ); ?>" name="<?php echo $this->get_field_name( 'title-end' ); ?>" value="<?php echo $instance['markup']['title-end']; ?>" class="widefat" style="width:49%!important" <?php echo ($instance['markup']['custom_html']) ? '' : 'disabled="disabled"' ?> /></p>
-    
-    <p style="font-size:11px"><label for="<?php echo $this->get_field_id( 'wpp_start' ); ?>"><?php _e('Before / after Popular Posts', 'wordpress-popular-posts'); ?>:</label> <br />
-    <input type="text" id="<?php echo $this->get_field_id( 'wpp-start' ); ?>" name="<?php echo $this->get_field_name( 'wpp-start' ); ?>" value="<?php echo $instance['markup']['wpp-start']; ?>" class="widefat" style="width:49%!important" <?php echo ($instance['markup']['custom_html']) ? '' : 'disabled="disabled"' ?> /> <input type="text" id="<?php echo $this->get_field_id( 'wpp-end' ); ?>" name="<?php echo $this->get_field_name( 'wpp-end' ); ?>" value="<?php echo $instance['markup']['wpp-end']; ?>" class="widefat" style="width:49%!important" <?php echo ($instance['markup']['custom_html']) ? '' : 'disabled="disabled"' ?> /></p>
-    
-    <p style="font-size:11px"><label for="<?php echo $this->get_field_id( 'post-html' ); ?>"><?php _e('Post HTML Markup', 'wordpress-popular-posts'); ?>:</label> <br />
-    <textarea class="widefat" rows="10" id="<?php echo $this->get_field_id( 'post-html' ); ?>" name="<?php echo $this->get_field_name( 'post-html' ); ?>"><?php echo $instance['markup']['post-html']; ?></textarea>
-</div>
+<p>
+	<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title', 'wordpress-popular-posts'); ?>:</label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#widget-title'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small> <br />
+    <input type="text" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" class="widefat" />
+</p>
+
+<p>
+	<label for="<?php echo $this->get_field_id( 'limit' ); ?>"><?php _e('Show up to', 'wordpress-popular-posts'); ?>:</label><br />
+    <input type="text" id="<?php echo $this->get_field_id( 'limit' ); ?>" name="<?php echo $this->get_field_name( 'limit' ); ?>" value="<?php echo $instance['limit']; ?>" class="widefat" style="width:50px!important" /> <?php _e('posts', 'wordpress-popular-posts'); ?>
+</p>
+
+<p>
+	<label for="<?php echo $this->get_field_id( 'order_by' ); ?>"><?php _e('Sort posts by', 'wordpress-popular-posts'); ?>:</label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#sorting'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small> <br />
+    <select id="<?php echo $this->get_field_id( 'order_by' ); ?>" name="<?php echo $this->get_field_name( 'order_by' ); ?>" class="widefat">
+        <option value="comments" <?php if ( 'comments' == $instance['order_by'] ) echo 'selected="selected"'; ?>><?php _e('Comments', 'wordpress-popular-posts'); ?></option>
+        <option value="views" <?php if ( 'views' == $instance['order_by'] ) echo 'selected="selected"'; ?>><?php _e('Total views', 'wordpress-popular-posts'); ?></option>
+        <option value="avg" <?php if ( 'avg' == $instance['order_by'] ) echo 'selected="selected"'; ?>><?php _e('Avg. daily views', 'wordpress-popular-posts'); ?></option>
+    </select>
+</p>
+
+<br /><hr /><br />
+
+<legend><strong><?php _e('Filters', 'wordpress-popular-posts'); ?></strong></legend><br />
+
+<label for="<?php echo $this->get_field_id( 'range' ); ?>"><?php _e('Time Range', 'wordpress-popular-posts'); ?>:</label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#time-range'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
+<select id="<?php echo $this->get_field_id( 'range' ); ?>" name="<?php echo $this->get_field_name( 'range' ); ?>" class="widefat" style="margin-bottom:5px;">
+    <option value="daily" <?php if ( 'daily' == $instance['range'] ) echo 'selected="selected"'; ?>><?php _e('Last 24 hours', 'wordpress-popular-posts'); ?></option>
+    <option value="weekly" <?php if ( 'weekly' == $instance['range'] ) echo 'selected="selected"'; ?>><?php _e('Last 7 days', 'wordpress-popular-posts'); ?></option>
+    <option value="monthly" <?php if ( 'monthly' == $instance['range'] ) echo 'selected="selected"'; ?>><?php _e('Last 30 days', 'wordpress-popular-posts'); ?></option>
+    <option value="all" <?php if ( 'all' == $instance['range'] ) echo 'selected="selected"'; ?>><?php _e('All-time', 'wordpress-popular-posts'); ?></option>
+</select><br />
+
+<input type="checkbox" class="checkbox" <?php echo ($instance['freshness']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'freshness' ); ?>" name="<?php echo $this->get_field_name( 'freshness' ); ?>" /> <label for="<?php echo $this->get_field_id( 'freshness' ); ?>"><small><?php _e('Display only posts published within the selected Time Range', 'wordpress-popular-posts'); ?></small></label><br /><br />
+
+<label for="<?php echo $this->get_field_id( 'post_type' ); ?>"><?php _e('Post type(s)', 'wordpress-popular-posts'); ?>:</label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#filter-post-type'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small>
+<input type="text" id="<?php echo $this->get_field_id( 'post_type' ); ?>" name="<?php echo $this->get_field_name( 'post_type' ); ?>" value="<?php echo $instance['post_type']; ?>" class="widefat" /><br /><br />
+
+<label for="<?php echo $this->get_field_id( 'pid' ); ?>"><?php _e('Post(s) ID(s) to exclude', 'wordpress-popular-posts'); ?>:</label>
+<input type="text" id="<?php echo $this->get_field_id( 'pid' ); ?>" name="<?php echo $this->get_field_name( 'pid' ); ?>" value="<?php echo $instance['pid']; ?>" class="widefat" /><br /><br />
+
+<label for="<?php echo $this->get_field_id( 'cat' ); ?>"><?php _e('Category(ies) ID(s)', 'wordpress-popular-posts'); ?>:</label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#filter-category'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small>
+<input type="text" id="<?php echo $this->get_field_id( 'cat' ); ?>" name="<?php echo $this->get_field_name( 'cat' ); ?>" value="<?php echo $instance['cat']; ?>" class="widefat" /><br /><br />
+
+<label for="<?php echo $this->get_field_id( 'uid' ); ?>"><?php _e('Author(s) ID(s)', 'wordpress-popular-posts'); ?>:</label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#filter-author'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small>
+<input type="text" id="<?php echo $this->get_field_id( 'uid' ); ?>" name="<?php echo $this->get_field_name( 'uid' ); ?>" value="<?php echo $instance['author']; ?>" class="widefat" /><br /><br />
+
+<br /><hr /><br />
+
+<legend><strong><?php _e('Posts settings', 'wordpress-popular-posts'); ?></strong></legend>
+<br />
+
+<div style="display:<?php if ( function_exists('the_ratings_results') ) : ?>block<?php else: ?>none<?php endif; ?>;">
+    <input type="checkbox" class="checkbox" <?php echo ($instance['rating']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'rating' ); ?>" name="<?php echo $this->get_field_name( 'rating' ); ?>" /> <label for="<?php echo $this->get_field_id( 'rating' ); ?>"><?php _e('Display post rating', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#display-rating'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small>
+</div>
+
+<input type="checkbox" class="checkbox" <?php echo ($instance['shorten_title']['active']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'shorten_title-active' ); ?>" name="<?php echo $this->get_field_name( 'shorten_title-active' ); ?>" /> <label for="<?php echo $this->get_field_id( 'shorten_title-active' ); ?>"><?php _e('Shorten title', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#shorten-title'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
+
+<div style="display:<?php if ($instance['shorten_title']['active']) : ?>block<?php else: ?>none<?php endif; ?>; width:90%; margin:10px 0; padding:3% 5%; background:#f5f5f5;">    
+    <label for="<?php echo $this->get_field_id( 'shorten_title-length' ); ?>"><?php _e('Shorten title to', 'wordpress-popular-posts'); ?> <input type="text" id="<?php echo $this->get_field_id( 'shorten_title-length' ); ?>" name="<?php echo $this->get_field_name( 'shorten_title-length' ); ?>" value="<?php echo $instance['shorten_title']['length']; ?>" class="widefat" style="width:50px!important" /></label><br />
+    <label for="<?php echo $this->get_field_id( 'shorten_title-words' ); ?>"><input type="radio" name="<?php echo $this->get_field_name( 'shorten_title-words' ); ?>" value="0" <?php echo (!isset($instance['shorten_title']['words']) || !$instance['shorten_title']['words']) ? 'checked="checked"' : ''; ?> /> <?php _e('characters', 'wordpress-popular-posts'); ?></label><br />
+    <label for="<?php echo $this->get_field_id( 'shorten_title-words' ); ?>"><input type="radio" name="<?php echo $this->get_field_name( 'shorten_title-words' ); ?>" value="1" <?php echo (isset($instance['shorten_title']['words']) && $instance['shorten_title']['words']) ? 'checked="checked"' : ''; ?> /> <?php _e('words', 'wordpress-popular-posts'); ?></label>
+</div>
+
+<input type="checkbox" class="checkbox" <?php echo ($instance['post-excerpt']['active']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'post-excerpt-active' ); ?>" name="<?php echo $this->get_field_name( 'post-excerpt-active' ); ?>" /> <label for="<?php echo $this->get_field_id( 'post-excerpt-active' ); ?>"><?php _e('Display post excerpt', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#display-excerpt'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
+
+<div style="display:<?php if ($instance['post-excerpt']['active']) : ?>block<?php else: ?>none<?php endif; ?>; width:90%; margin:10px 0; padding:3% 5%; background:#f5f5f5;">
+    <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id( 'post-excerpt-format' ); ?>" name="<?php echo $this->get_field_name( 'post-excerpt-format' ); ?>" <?php echo ($instance['post-excerpt']['keep_format']) ? 'checked="checked"' : ''; ?> /> <label for="<?php echo $this->get_field_id( 'post-excerpt-format' ); ?>"><?php _e('Keep text format and links', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#keep-format'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br /><br />
+    <label for="<?php echo $this->get_field_id( 'post-excerpt-length' ); ?>"><?php _e('Excerpt length', 'wordpress-popular-posts'); ?>: <input type="text" id="<?php echo $this->get_field_id( 'post-excerpt-length' ); ?>" name="<?php echo $this->get_field_name( 'post-excerpt-length' ); ?>" value="<?php echo $instance['post-excerpt']['length']; ?>" class="widefat" style="width:50px!important" /></label><br  />
+    
+    <label for="<?php echo $this->get_field_id( 'post-excerpt-words' ); ?>"><input type="radio" name="<?php echo $this->get_field_name( 'post-excerpt-words' ); ?>" value="0" <?php echo (!isset($instance['post-excerpt']['words']) || !$instance['post-excerpt']['words']) ? 'checked="checked"' : ''; ?> /> <?php _e('characters', 'wordpress-popular-posts'); ?></label><br />
+    <label for="<?php echo $this->get_field_id( 'post-excerpt-words' ); ?>"><input type="radio" name="<?php echo $this->get_field_name( 'post-excerpt-words' ); ?>" value="1" <?php echo (isset($instance['post-excerpt']['words']) && $instance['post-excerpt']['words']) ? 'checked="checked"' : ''; ?> /> <?php _e('words', 'wordpress-popular-posts'); ?></label>
+</div>
+
+<input type="checkbox" class="checkbox" <?php echo ($instance['thumbnail']['active'] && $this->thumbnailing) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'thumbnail-active' ); ?>" name="<?php echo $this->get_field_name( 'thumbnail-active' ); ?>" /> <label for="<?php echo $this->get_field_id( 'thumbnail-active' ); ?>"><?php _e('Display post thumbnail', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#display-thumb'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small>
+
+<div style="display:<?php if ($instance['thumbnail']['active']) : ?>block<?php else: ?>none<?php endif; ?>; width:90%; margin:10px 0; padding:3% 5%; background:#f5f5f5;">
+	<label><input type='radio' id='<?php echo $this->get_field_name( 'thumbnail-size-source' ); ?>' name='<?php echo $this->get_field_name( 'thumbnail-size-source' ); ?>' value='predefined' <?php echo ($instance['thumbnail']['build'] == 'predefined') ? 'checked="checked"' : ''; ?> /><?php _e('Use predefined size', 'wordpress-popular-posts'); ?></label><br />
+    
+    <select id="<?php echo $this->get_field_id( 'thumbnail-size' ); ?>" name="<?php echo $this->get_field_name( 'thumbnail-size' ); ?>" class="widefat" style="margin:5px 0;">
+    	<?php		
+		foreach ( $this->default_thumbnail_sizes as $name => $attr ) :
+			echo '<option value="' . $name . '"' . ( ($instance['thumbnail']['build'] == 'predefined' && $attr['width'] == $instance['thumbnail']['width'] && $attr['height'] == $instance['thumbnail']['height'] ) ? ' selected="selected"' : '' ) . '>' . $name . ' (' . $attr['width'] . ' x ' . $attr['height'] . ( $attr['crop'] ? ', hard crop' : ', soft crop' ) . ')</option>';
+		endforeach;
+		?>
+    </select>
+    
+    <hr />
+    
+    <label><input type='radio' id='<?php echo $this->get_field_name( 'thumbnail-size-source' ); ?>' name='<?php echo $this->get_field_name( 'thumbnail-size-source' ); ?>' value='manual' <?php echo ($instance['thumbnail']['build'] == 'manual') ? 'checked="checked"' : ''; ?> /><?php _e('Set size manually', 'wordpress-popular-posts'); ?></label><br />
+
+    <label for="<?php echo $this->get_field_id( 'thumbnail-width' ); ?>"><?php _e('Width', 'wordpress-popular-posts'); ?>:</label> 
+    <input type="text" id="<?php echo $this->get_field_id( 'thumbnail-width' ); ?>" name="<?php echo $this->get_field_name( 'thumbnail-width' ); ?>" value="<?php echo $instance['thumbnail']['width']; ?>" class="widefat" style="margin:3px 0; width:50px!important" <?php echo ($this->thumbnailing) ? '' : 'disabled="disabled"' ?> /> px<br />
+    
+    <label for="<?php echo $this->get_field_id( 'thumbnail-height' ); ?>"><?php _e('Height', 'wordpress-popular-posts'); ?>:</label> 
+    <input type="text" id="<?php echo $this->get_field_id( 'thumbnail-height' ); ?>" name="<?php echo $this->get_field_name( 'thumbnail-height' ); ?>" value="<?php echo $instance['thumbnail']['height']; ?>" class="widefat" style="width:50px!important" <?php echo ($this->thumbnailing) ? '' : 'disabled="disabled"' ?> /> px
+</div><br />
+    
+<br /><hr /><br />
+
+<legend><strong><?php _e('Stats Tag settings', 'wordpress-popular-posts'); ?></strong></legend><br />
+
+<input type="checkbox" class="checkbox" <?php echo ($instance['stats_tag']['comment_count']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'comment_count' ); ?>" name="<?php echo $this->get_field_name( 'comment_count' ); ?>" /> <label for="<?php echo $this->get_field_id( 'comment_count' ); ?>"><?php _e('Display comment count', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#stats-comments'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />  
+              
+<input type="checkbox" class="checkbox" <?php echo ($instance['stats_tag']['views']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'views' ); ?>" name="<?php echo $this->get_field_name( 'views' ); ?>" /> <label for="<?php echo $this->get_field_id( 'views' ); ?>"><?php _e('Display views', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#stats-views'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
+
+<input type="checkbox" class="checkbox" <?php echo ($instance['stats_tag']['author']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'author' ); ?>" name="<?php echo $this->get_field_name( 'author' ); ?>" /> <label for="<?php echo $this->get_field_id( 'author' ); ?>"><?php _e('Display author', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#stats-author'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
+
+<input type="checkbox" class="checkbox" <?php echo ($instance['stats_tag']['date']['active']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'date' ); ?>" name="<?php echo $this->get_field_name( 'date' ); ?>" /> <label for="<?php echo $this->get_field_id( 'date' ); ?>"><?php _e('Display date', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#stats-date'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
+
+<div style="display:<?php if ($instance['stats_tag']['date']['active']) : ?>block<?php else: ?>none<?php endif; ?>; width:90%; margin:10px 0; padding:3% 5%; background:#f5f5f5;">    
+    <legend><strong><?php _e('Date Format', 'wordpress-popular-posts'); ?></strong></legend><br />
+    
+    <label title='<?php echo get_option('date_format'); ?>'><input type='radio' name='<?php echo $this->get_field_name( 'date_format' ); ?>' value='<?php echo get_option('date_format'); ?>' <?php echo ($instance['stats_tag']['date']['format'] == get_option('date_format')) ? 'checked="checked"' : ''; ?> /><?php echo date_i18n(get_option('date_format'), time()); ?></label> <small>(<a href="<?php echo admin_url('options-general.php'); ?>" title="<?php _e('WordPress Date Format', 'wordpress-popular-posts'); ?>" target="_blank"><?php _e('WordPress Date Format', 'wordpress-popular-posts'); ?></a>)</small><br />
+    <label title='F j, Y'><input type='radio' name='<?php echo $this->get_field_name( 'date_format' ); ?>' value='F j, Y' <?php echo ($instance['stats_tag']['date']['format'] == 'F j, Y') ? 'checked="checked"' : ''; ?> /><?php echo date_i18n('F j, Y', time()); ?></label><br />
+    <label title='Y/m/d'><input type='radio' name='<?php echo $this->get_field_name( 'date_format' ); ?>' value='Y/m/d' <?php echo ($instance['stats_tag']['date']['format'] == 'Y/m/d') ? 'checked="checked"' : ''; ?> /><?php echo date_i18n('Y/m/d', time()); ?></label><br />
+    <label title='m/d/Y'><input type='radio' name='<?php echo $this->get_field_name( 'date_format' ); ?>' value='m/d/Y' <?php echo ($instance['stats_tag']['date']['format'] == 'm/d/Y') ? 'checked="checked"' : ''; ?> /><?php echo date_i18n('m/d/Y', time()); ?></label><br />
+    <label title='d/m/Y'><input type='radio' name='<?php echo $this->get_field_name( 'date_format' ); ?>' value='d/m/Y' <?php echo ($instance['stats_tag']['date']['format'] == 'd/m/Y') ? 'checked="checked"' : ''; ?> /><?php echo date_i18n('d/m/Y', time()); ?></label>
+</div>
+    
+<input type="checkbox" class="checkbox" <?php echo ($instance['stats_tag']['category']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'category' ); ?>" name="<?php echo $this->get_field_name( 'category' ); ?>" /> <label for="<?php echo $this->get_field_id( 'category' ); ?>"><?php _e('Display category', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#stats-cat'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
+    
+<br /><hr /><br />
+
+<legend><strong><?php _e('HTML Markup settings', 'wordpress-popular-posts'); ?></strong></legend><br />
+
+<input type="checkbox" class="checkbox" <?php echo ($instance['markup']['custom_html']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'custom_html' ); ?>" name="<?php echo $this->get_field_name( 'custom_html' ); ?>" /> <label for="<?php echo $this->get_field_id( 'custom_html' ); ?>"><?php _e('Use custom HTML Markup', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#custom-html-markup'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
+
+<div style="display:<?php if ($instance['markup']['custom_html']) : ?>block<?php else: ?>none<?php endif; ?>; width:90%; margin:10px 0; padding:3% 5%; background:#f5f5f5;">
+    <p style="font-size:11px"><label for="<?php echo $this->get_field_id( 'title-start' ); ?>"><?php _e('Before / after title', 'wordpress-popular-posts'); ?>:</label> <br />
+    <input type="text" id="<?php echo $this->get_field_id( 'title-start' ); ?>" name="<?php echo $this->get_field_name( 'title-start' ); ?>" value="<?php echo $instance['markup']['title-start']; ?>" class="widefat" style="width:49%!important" <?php echo ($instance['markup']['custom_html']) ? '' : 'disabled="disabled"' ?> /> <input type="text" id="<?php echo $this->get_field_id( 'title-end' ); ?>" name="<?php echo $this->get_field_name( 'title-end' ); ?>" value="<?php echo $instance['markup']['title-end']; ?>" class="widefat" style="width:49%!important" <?php echo ($instance['markup']['custom_html']) ? '' : 'disabled="disabled"' ?> /></p>
+    
+    <p style="font-size:11px"><label for="<?php echo $this->get_field_id( 'wpp_start' ); ?>"><?php _e('Before / after Popular Posts', 'wordpress-popular-posts'); ?>:</label> <br />
+    <input type="text" id="<?php echo $this->get_field_id( 'wpp-start' ); ?>" name="<?php echo $this->get_field_name( 'wpp-start' ); ?>" value="<?php echo $instance['markup']['wpp-start']; ?>" class="widefat" style="width:49%!important" <?php echo ($instance['markup']['custom_html']) ? '' : 'disabled="disabled"' ?> /> <input type="text" id="<?php echo $this->get_field_id( 'wpp-end' ); ?>" name="<?php echo $this->get_field_name( 'wpp-end' ); ?>" value="<?php echo $instance['markup']['wpp-end']; ?>" class="widefat" style="width:49%!important" <?php echo ($instance['markup']['custom_html']) ? '' : 'disabled="disabled"' ?> /></p>
+    
+    <p style="font-size:11px"><label for="<?php echo $this->get_field_id( 'post-html' ); ?>"><?php _e('Post HTML Markup', 'wordpress-popular-posts'); ?>:</label> <br />
+    <textarea class="widefat" rows="10" id="<?php echo $this->get_field_id( 'post-html' ); ?>" name="<?php echo $this->get_field_name( 'post-html' ); ?>"><?php echo $instance['markup']['post-html']; ?></textarea>
+</div>
 <br />
\ No newline at end of file
diff --git a/wp-content/plugins/wordpress-popular-posts/wordpress-popular-posts.php b/wp-content/plugins/wordpress-popular-posts/wordpress-popular-posts.php
index 52b3b17339f9c760ff06379f0f91884d77b2368f..20dd124de69f01c0c6c772e9622250f3d894630f 100644
--- a/wp-content/plugins/wordpress-popular-posts/wordpress-popular-posts.php
+++ b/wp-content/plugins/wordpress-popular-posts/wordpress-popular-posts.php
@@ -1,3070 +1,3275 @@
-<?php
-/*
-Plugin Name: WordPress Popular Posts
-Plugin URI: http://wordpress.org/extend/plugins/wordpress-popular-posts
-Description: WordPress Popular Posts is a highly customizable widget that displays the most popular posts on your blog
-Version: 3.1.1
-Author: Hector Cabrera
-Author URI: http://cabrerahector.com
-Author Email: hcabrerab@gmail.com
-Text Domain: wordpress-popular-posts
-Domain Path: /lang/
-Network: false
-License: GPLv2 or later
-License URI: http://www.gnu.org/licenses/gpl-2.0.html
-
-Copyright 2014 Hector Cabrera (hcabrerab@gmail.com)
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License, version 2, as
-published by the Free Software Foundation.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-if ( !defined('ABSPATH') )
-	exit('Please do not load this file directly.');
-
-/**
- * WordPress Popular Posts class.
- */
-if ( !class_exists('WordpressPopularPosts') ) {
-
-	/**
-	 * Register plugin's activation / deactivation functions
-	 * @since 1.3
-	 */
-	register_activation_hook( __FILE__, array( 'WordpressPopularPosts', 'activate' ) );
-	register_deactivation_hook( __FILE__, array( 'WordpressPopularPosts', 'deactivate' ) );
-
-	/**
-	 * Add function to widgets_init that'll load WPP.
-	 * @since 2.0
-	 */
-	function load_wpp() {
-		register_widget( 'WordpressPopularPosts' );
-	}
-	add_action( 'widgets_init', 'load_wpp' );
-
-	class WordpressPopularPosts extends WP_Widget {
-
-		/**
-		 * Plugin version, used for cache-busting of style and script file references.
-		 *
-		 * @since	1.3.0
-		 * @var		string
-		 */
-		private $version = '3.1.1';
-
-		/**
-		 * Plugin identifier.
-		 *
-		 * @since	3.0.0
-		 * @var		string
-		 */
-		private $plugin_slug = 'wordpress-popular-posts';
-
-		/**
-		 * Instance of this class.
-		 *
-		 * @since    3.0.0
-		 * @var      object
-		 */
-		protected static $instance = NULL;
-
-		/**
-		 * Slug of the plugin screen.
-		 *
-		 * @since	3.0.0
-		 * @var		string
-		 */
-		protected $plugin_screen_hook_suffix = NULL;
-
-		/**
-		 * Plugin directory.
-		 *
-		 * @since	1.4.6
-		 * @var		string
-		 */
-		private $plugin_dir = '';
-		
-		/**
-		 * Plugin uploads directory.
-		 *
-		 * @since	3.0.4
-		 * @var		array
-		 */
-		private $uploads_dir = array();
-
-		/**
-		 * Default thumbnail.
-		 *
-		 * @since	2.2.0
-		 * @var		string
-		 */
-		private $default_thumbnail = '';
-
-		/**
-		 * Flag to verify if thumbnails can be created or not.
-		 *
-		 * @since	1.4.6
-		 * @var		bool
-		 */
-		private $thumbnailing = false;
-
-		/**
-		 * Flag to verify if qTrans is present.
-		 *
-		 * @since	1.4.6
-		 * @var		bool
-		 */
-		private $qTrans = false;
-
-		/**
-		 * Default charset.
-		 *
-		 * @since	2.1.4
-		 * @var		string
-		 */
-		private $charset = "UTF-8";
-
-		/**
-		 * Plugin defaults.
-		 *
-		 * @since	2.3.3
-		 * @var		array
-		 */
-		protected $defaults = array(
-			'title' => '',
-			'limit' => 10,
-			'range' => 'daily',
-			'freshness' => false,
-			'order_by' => 'views',
-			'post_type' => 'post,page',
-			'pid' => '',
-			'author' => '',
-			'cat' => '',
-			'shorten_title' => array(
-				'active' => false,
-				'length' => 25,
-				'words'	=> false
-			),
-			'post-excerpt' => array(
-				'active' => false,
-				'length' => 55,
-				'keep_format' => false,
-				'words' => false
-			),
-			'thumbnail' => array(
-				'active' => false,
-				'width' => 15,
-				'height' => 15
-			),
-			'rating' => false,
-			'stats_tag' => array(
-				'comment_count' => false,
-				'views' => true,
-				'author' => false,
-				'date' => array(
-					'active' => false,
-					'format' => 'F j, Y'
-				),
-				'category' => false
-			),
-			'markup' => array(
-				'custom_html' => false,
-				'wpp-start' => '&lt;ul class="wpp-list"&gt;',
-				'wpp-end' => '&lt;/ul&gt;',
-				'post-html' => '&lt;li&gt;{thumb} {title} {stats}&lt;/li&gt;',
-				'post-start' => '&lt;li&gt;',
-				'post-end' => '&lt;/li&gt;',
-				'title-start' => '&lt;h2&gt;',
-				'title-end' => '&lt;/h2&gt;'
-			)
-		);
-
-		/**
-		 * Admin page user settings defaults.
-		 *
-		 * @since	2.3.3
-		 * @var		array
-		 */
-		protected $default_user_settings = array(
-			'stats' => array(
-				'order_by' => 'views',
-				'limit' => 10,
-				'post_type' => 'post,page',
-				'freshness' => false
-			),
-			'tools' => array(
-				'ajax' => false,
-				'css' => true,
-				'link' => array(
-					'target' => '_self'
-				),
-				'thumbnail' => array(
-					'source' => 'featured',
-					'field' => '',
-					'resize' => false,
-					'default' => ''
-				),
-				'log' => array(
-					'level' => 1
-				),
-				'cache' => array(
-					'active' => false,
-					'interval' => array(
-						'time' => 'hour',
-						'value' => 1
-					)
-				)
-			)
-		);
-
-		/**
-		 * Admin page user settings.
-		 *
-		 * @since	2.3.3
-		 * @var		array
-		 */
-		private $user_settings = array();
-
-		/**
-		 * Bots list.
-		 *
-		 * @since	3.0.0
-		 * @var		array
-		 */
-		protected $botlist = array( 'bot', 'crawl', 'curl', 'facebookexternalhit', 'geturl', 'google', 'java', 'msn', 'perl', 'slurp', 'spider', 'sqworm', 'search', 'wget' );
-
-		/*--------------------------------------------------*/
-		/* Constructor
-		/*--------------------------------------------------*/
-
-		/**
-		 * Initialize the widget by setting localization, filters, and administration functions.
-		 *
-		 * @since	1.0.0
-		 */
-		public function __construct() {
-
-			// Load plugin text domain
-			add_action( 'init', array( $this, 'widget_textdomain' ) );
-
-			// Upgrade check
-			add_action( 'init', array( $this, 'upgrade_check' ) );
-
-			// Hook fired when a new blog is activated on WP Multisite
-			add_action( 'wpmu_new_blog', array( $this, 'activate_new_site' ) );
-
-			// Notices check
-			add_action( 'admin_notices', array( $this, 'check_admin_notices' ) );
-
-			// Create the widget
-			parent::__construct(
-				'wpp',
-				'WordPress Popular Posts',
-				array(
-					'classname'		=>	'popular-posts',
-					'description'	=>	__( 'The most Popular Posts on your blog.', $this->plugin_slug )
-				)
-			);
-
-			// Get user options
-			$this->user_settings = get_site_option('wpp_settings_config');
-			if ( !$this->user_settings ) {
-				add_site_option('wpp_settings_config', $this->default_user_settings);
-				$this->user_settings = $this->default_user_settings;
-			} else {
-				$this->user_settings = $this->__merge_array_r( $this->default_user_settings, $this->user_settings );
-			}
-
-			// Add the options page and menu item.
-			add_action( 'admin_menu', array( $this, 'add_plugin_admin_menu' ) );
-
-			// Register admin styles and scripts
-			add_action( 'admin_print_styles', array( $this, 'register_admin_styles' ) );
-			add_action( 'admin_enqueue_scripts', array( $this, 'register_admin_scripts' ) );
-			add_action( 'admin_init', array( $this, 'thickbox_setup' ) );
-
-			// Register site styles and scripts
-			if ( $this->user_settings['tools']['css'] )
-				add_action( 'wp_enqueue_scripts', array( $this, 'register_widget_styles' ) );
-			add_action( 'wp_enqueue_scripts', array( $this, 'register_widget_scripts' ) );
-
-			// Add plugin settings link
-			add_filter( 'plugin_action_links', array( $this, 'add_plugin_settings_link' ), 10, 2 );
-
-			// Set plugin directory
-			$this->plugin_dir = plugin_dir_url(__FILE__);
-
-			// Get blog charset
-			$this->charset = get_bloginfo('charset');
-
-			// Add ajax table truncation to wp_ajax_ hook
-			add_action('wp_ajax_wpp_clear_data', array( $this, 'clear_data' ));
-			
-			// Add thumbnail cache truncation to wp_ajax_ hook
-			add_action('wp_ajax_wpp_clear_thumbnail', array( $this, 'clear_thumbnails' ));
-
-			// Add ajax hook for widget
-			add_action('wp_ajax_wpp_get_popular', array( $this, 'get_popular') );
-			add_action('wp_ajax_nopriv_wpp_get_popular', array( $this, 'get_popular') );
-
-			// Check if images can be created
-			if ( extension_loaded('ImageMagick') || (extension_loaded('GD') && function_exists('gd_info')) )
-				$this->thumbnailing = true;
-
-			// Set default thumbnail
-			$this->default_thumbnail = $this->plugin_dir . "no_thumb.jpg";
-			$this->default_user_settings['tools']['thumbnail']['default'] = $this->default_thumbnail;
-
-			if ( !empty($this->user_settings['tools']['thumbnail']['default']) )
-				$this->default_thumbnail = $this->user_settings['tools']['thumbnail']['default'];
-			else
-				$this->user_settings['tools']['thumbnail']['default'] = $this->default_thumbnail;
-			
-			// Set uploads folder
-			$wp_upload_dir = wp_upload_dir();
-			$this->uploads_dir['basedir'] = $wp_upload_dir['basedir'] . "/" . $this->plugin_slug;
-			$this->uploads_dir['baseurl'] = $wp_upload_dir['baseurl'] . "/" . $this->plugin_slug;
-
-			if ( !is_dir($this->uploads_dir['basedir']) ) {
-				if ( !wp_mkdir_p($this->uploads_dir['basedir']) ) {
-					$this->uploads_dir['basedir'] = $wp_upload_dir['basedir'];
-					$this->uploads_dir['baseurl'] = $wp_upload_dir['baseurl'];
-				}
-			}
-
-			// qTrans plugin support
-			if ( function_exists('qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage') )
-				$this->qTrans = true;
-
-			// Remove post/page prefetching!
-			remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head' );
-			// Add the update hooks only if the logging conditions are met
-			if ( (0 == $this->user_settings['tools']['log']['level'] && !is_user_logged_in()) || (1 == $this->user_settings['tools']['log']['level']) || (2 == $this->user_settings['tools']['log']['level'] && is_user_logged_in()) ) {
-				// Log views on page load via AJAX
-				add_action( 'wp_head', array(&$this, 'print_ajax') );
-
-				// Register views from everyone and/or connected users
-				if ( 0 != $this->user_settings['tools']['log']['level'] )
-					add_action( 'wp_ajax_update_views_ajax', array($this, 'update_views_ajax') );
-				// Register views from everyone and/or visitors only
-				if ( 2 != $this->user_settings['tools']['log']['level'] )
-					add_action( 'wp_ajax_nopriv_update_views_ajax', array($this, 'update_views_ajax') );
-			}
-
-			// Add shortcode
-			add_shortcode('wpp', array(&$this, 'shortcode'));
-
-			// Enable data purging at midnight
-			add_action( 'wpp_cache_event', array($this, 'purge_data') );
-			if ( !wp_next_scheduled('wpp_cache_event') ) {
-				$tomorrow = time() + 86400;
-				$midnight  = mktime(0, 0, 0,
-					date("m", $tomorrow),
-					date("d", $tomorrow),
-					date("Y", $tomorrow));
-				wp_schedule_event( $midnight, 'daily', 'wpp_cache_event' );
-			}
-
-		} // end constructor
-
-		/*--------------------------------------------------*/
-		/* Widget API Functions
-		/*--------------------------------------------------*/
-
-		/**
-		 * Outputs the content of the widget.
-		 *
-		 * @since	1.0.0
-		 * @param	array	args		The array of form elements
-		 * @param	array	instance	The current instance of the widget
-		 */
-		public function widget( $args, $instance ) {
-
-			$this->__debug($args);
-
-			/**
-		     * @var String $name
-		     * @var String $id
-		     * @var String $description
-		     * @var String $class
-		     * @var String $before_widget
-		     * @var String $after_widget
-		     * @var String $before_title
-		     * @var String $after_title
-		     * @var String $widget_id
-		     * @var String $widget_name
-		     */
-			extract( $args, EXTR_SKIP );
-
-			$markup = ( $instance['markup']['custom_html'] || has_filter('wpp_custom_html') || has_filter('wpp_post') )
-			  ? 'custom'
-			  : 'regular';
-
-			echo "\n". "<!-- WordPress Popular Posts Plugin v{$this->version} [W] [{$instance['range']}] [{$instance['order_by']}] [{$markup}] -->" . "\n";
-
-			echo $before_widget . "\n";
-
-			// has user set a title?
-			if ( '' != $instance['title'] ) {
-
-				$title = apply_filters( 'widget_title', $instance['title'] );
-
-				if ($instance['markup']['custom_html'] && $instance['markup']['title-start'] != "" && $instance['markup']['title-end'] != "" ) {
-					echo htmlspecialchars_decode($instance['markup']['title-start'], ENT_QUOTES) . $title . htmlspecialchars_decode($instance['markup']['title-end'], ENT_QUOTES);
-				} else {
-					echo $before_title . $title . $after_title;
-				}
-			}
-
-			if ( $this->user_settings['tools']['ajax'] ) {
-				if ( empty($before_widget) || !preg_match('/id="[^"]*"/', $before_widget) ) {
-				?>
-                <p><?php _e('Error: cannot ajaxify WordPress Popular Posts on this theme. It\'s missing the <em>id</em> attribute on before_widget (see <a href="http://codex.wordpress.org/Function_Reference/register_sidebar" target="_blank" rel="nofollow">register_sidebar</a> for more).', $this->plugin_slug ); ?></p>
-                <?php
-				} else {
-				?>
-                <script type="text/javascript">//<![CDATA[
-                    jQuery(document).ready(function(){
-                        jQuery.get('<?php echo admin_url('admin-ajax.php'); ?>', {
-							action: 'wpp_get_popular',
-							id: '<?php echo $this->number; ?>'
-						}, function(data){
-							jQuery('#<?php echo $widget_id; ?>').append(data);
-						});
-                    });
-                //]]></script>
-                <?php
-				}
-			} else {
-				echo $this->__get_popular_posts( $instance );
-			}
-
-			echo $after_widget . "\n";
-			echo "<!-- End WordPress Popular Posts Plugin v{$this->version} -->"."\n";
-
-		} // end widget
-
-		/**
-		 * Processes the widget's options to be saved.
-		 *
-		 * @since	1.0.0
-		 * @param	array	new_instance	The previous instance of values before the update.
-		 * @param	array	old_instance	The new instance of values to be generated via the update.
-		 * @return	array	instance		Updated instance.
-		 */
-		public function update( $new_instance, $old_instance ) {
-
-			$instance = $old_instance;
-
-			$instance['title'] = htmlspecialchars( stripslashes_deep(strip_tags( $new_instance['title'] )), ENT_QUOTES );
-			$instance['limit'] = ( $this->__is_numeric($new_instance['limit']) && $new_instance['limit'] > 0 )
-			  ? $new_instance['limit']
-			  : 10;
-			$instance['range'] = $new_instance['range'];
-			$instance['order_by'] = $new_instance['order_by'];
-
-			// FILTERS
-			// user did not define the custom post type name, so we fall back to default
-			$instance['post_type'] = ( '' == $new_instance['post_type'] )
-			  ? 'post,page'
-			  : $new_instance['post_type'];
-
-			$instance['freshness'] = isset( $new_instance['freshness'] );
-
-			$instance['pid'] = implode(",", array_filter(explode(",", preg_replace( '|[^0-9,]|', '', $new_instance['pid'] ))));
-			$instance['cat'] = implode(",", array_filter(explode(",", preg_replace( '|[^0-9,-]|', '', $new_instance['cat'] ))));
-			$instance['author'] = implode(",", array_filter(explode(",", preg_replace( '|[^0-9,]|', '', $new_instance['uid'] ))));
-
-			$instance['shorten_title']['words'] = $new_instance['shorten_title-words'];
-			$instance['shorten_title']['active'] = isset( $new_instance['shorten_title-active'] );
-			$instance['shorten_title']['length'] = ( $this->__is_numeric($new_instance['shorten_title-length']) && $new_instance['shorten_title-length'] > 0 )
-			  ? $new_instance['shorten_title-length']
-			  : 25;
-
-			$instance['post-excerpt']['keep_format'] = isset( $new_instance['post-excerpt-format'] );
-			$instance['post-excerpt']['words'] = $new_instance['post-excerpt-words'];
-			$instance['post-excerpt']['active'] = isset( $new_instance['post-excerpt-active'] );
-			$instance['post-excerpt']['length'] = ( $this->__is_numeric($new_instance['post-excerpt-length']) && $new_instance['post-excerpt-length'] > 0 )
-			  ? $new_instance['post-excerpt-length']
-			  : 55;
-
-			$instance['thumbnail']['active'] = false;
-			$instance['thumbnail']['width'] = 15;
-			$instance['thumbnail']['height'] = 15;
-
-			// can create thumbnails
-			if ( $this->thumbnailing ) {
-
-				$instance['thumbnail']['active'] = isset( $new_instance['thumbnail-active'] );
-
-				if ($this->__is_numeric($new_instance['thumbnail-width']) && $this->__is_numeric($new_instance['thumbnail-height'])) {
-					$instance['thumbnail']['width'] = $new_instance['thumbnail-width'];
-					$instance['thumbnail']['height'] = $new_instance['thumbnail-height'];
-				}
-
-			}
-
-			$instance['rating'] = isset( $new_instance['rating'] );
-			$instance['stats_tag']['comment_count'] = isset( $new_instance['comment_count'] );
-			$instance['stats_tag']['views'] = isset( $new_instance['views'] );
-			$instance['stats_tag']['author'] = isset( $new_instance['author'] );
-			$instance['stats_tag']['date']['active'] = isset( $new_instance['date'] );
-			$instance['stats_tag']['date']['format'] = empty($new_instance['date_format'])
-			  ? 'F j, Y'
-			  : $new_instance['date_format'];
-
-			$instance['stats_tag']['category'] = isset( $new_instance['category'] );
-			$instance['markup']['custom_html'] = isset( $new_instance['custom_html'] );
-			$instance['markup']['wpp-start'] = empty($new_instance['wpp-start'])
-			  ? htmlspecialchars( '<ul class="wpp-list">', ENT_QUOTES )
-			  : htmlspecialchars( $new_instance['wpp-start'], ENT_QUOTES );
-
-			$instance['markup']['wpp-end'] = empty($new_instance['wpp-end'])
-			  ? htmlspecialchars( '</ul>', ENT_QUOTES )
-			  : htmlspecialchars( $new_instance['wpp-end'], ENT_QUOTES );
-
-			$instance['markup']['post-html'] = empty($new_instance['post-html'])
-			  ? htmlspecialchars( '<li>{thumb} {title} {stats}</li>', ENT_QUOTES )
-			  : htmlspecialchars( $new_instance['post-html'], ENT_QUOTES );
-
-			$instance['markup']['title-start'] = empty($new_instance['title-start'])
-			  ? ''
-			  : htmlspecialchars( $new_instance['title-start'], ENT_QUOTES );
-
-			$instance['markup']['title-end'] = empty($new_instance['title-end'])
-			  ? '' :
-			  htmlspecialchars( $new_instance['title-end'], ENT_QUOTES );
-
-			return $instance;
-
-		} // end widget
-
-		/**
-		 * Generates the administration form for the widget.
-		 *
-		 * @since	1.0.0
-		 * @param	array	instance	The array of keys and values for the widget.
-		 */
-		public function form( $instance ) {
-
-			// parse instance values
-			$instance = $this->__merge_array_r(
-				$this->defaults,
-				$instance
-			);
-
-			// Display the admin form
-			include( plugin_dir_path(__FILE__) . '/views/form.php' );
-
-		} // end form
-
-		/*--------------------------------------------------*/
-		/* Public methods
-		/*--------------------------------------------------*/
-
-		/**
-		 * Loads the Widget's text domain for localization and translation.
-		 *
-		 * @since	1.0.0
-		 */
-		public function widget_textdomain() {
-
-			$domain = $this->plugin_slug;
-			$locale = apply_filters( 'plugin_locale', get_locale(), $domain );
-
-			load_textdomain( $domain, WP_LANG_DIR . '/' . $domain . '/' . $domain . '-' . $locale . '.mo' );
-			load_plugin_textdomain( $domain, FALSE, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
-
-		} // end widget_textdomain
-
-		/**
-		 * Registers and enqueues admin-specific styles.
-		 *
-		 * @since	1.0.0
-		 */
-		public function register_admin_styles() {
-
-			if ( ! isset( $this->plugin_screen_hook_suffix ) ) {
-				return;
-			}
-
-			$screen = get_current_screen();
-			if ( $screen->id == $this->plugin_screen_hook_suffix ) {
-				wp_enqueue_style( $this->plugin_slug .'-admin-styles', plugins_url( 'style/admin.css', __FILE__ ), array(), $this->version );
-			}
-
-		} // end register_admin_styles
-
-		/**
-		 * Registers and enqueues admin-specific JavaScript.
-		 *
-		 * @since	2.3.4
-		 */
-		public function register_admin_scripts() {
-
-			if ( ! isset( $this->plugin_screen_hook_suffix ) ) {
-				return;
-			}
-
-			$screen = get_current_screen();
-			if ( $screen->id == $this->plugin_screen_hook_suffix ) {
-				wp_enqueue_script( 'thickbox' );
-				wp_enqueue_style( 'thickbox' );
-				wp_enqueue_script( 'media-upload' );
-				wp_enqueue_script( $this->plugin_slug .'-admin-script', plugins_url( 'js/admin.js', __FILE__ ), array('jquery'), $this->version );
-			}
-
-		} // end register_admin_scripts
-
-		/**
-		 * Hooks into getttext to change upload button text when uploader is called by WPP.
-		 *
-		 * @since	2.3.4
-		 */
-		function thickbox_setup() {
-
-			global $pagenow;
-			if ( 'media-upload.php' == $pagenow || 'async-upload.php' == $pagenow ) {
-				add_filter( 'gettext', array( $this, 'replace_thickbox_text' ), 1, 3 );
-			}
-
-		} // end thickbox_setup
-
-		/**
-		 * Replaces upload button text when uploader is called by WPP.
-		 *
-		 * @since	2.3.4
-		 * @param	string	translated_text
-		 * @param	string	text
-		 * @param	string	domain
-		 * @return	string
-		 */
-		function replace_thickbox_text($translated_text, $text, $domain) {
-
-			if ('Insert into Post' == $text) {
-				$referer = strpos( wp_get_referer(), 'wpp_admin' );
-				if ( $referer != '' ) {
-					return __('Upload', $this->plugin_slug );
-				}
-			}
-
-			return $translated_text;
-
-		} // end replace_thickbox_text
-
-		/**
-		 * Registers and enqueues widget-specific styles.
-		 *
-		 * @since	1.0.0
-		 */
-		public function register_widget_styles() {
-
-			$theme_file = get_stylesheet_directory() . '/wpp.css';
-			$plugin_file = plugin_dir_path(__FILE__) . 'style/wpp.css';
-
-			if ( @file_exists($theme_file) ) { // user stored a custom wpp.css on theme's directory, so use it
-				wp_enqueue_style( $this->plugin_slug, get_stylesheet_directory_uri() . "/wpp.css", array(), $this->version );
-			} elseif ( @file_exists($plugin_file) ) { // no custom wpp.css, use plugin's instead
-				wp_enqueue_style( $this->plugin_slug, plugins_url( 'style/wpp.css', __FILE__ ), array(), $this->version );
-			}
-
-		} // end register_widget_styles
-		
-		/**
-		 * Registers and enqueues widget-specific scripts.
-		 */
-		public function register_widget_scripts() {	
-			wp_enqueue_script( 'jquery' );	
-		} // end register_widget_scripts
-
-		/**
-		 * Register the administration menu for this plugin into the WordPress Dashboard menu.
-		 *
-		 * @since    1.0.0
-		 */
-		public function add_plugin_admin_menu() {
-
-			$this->plugin_screen_hook_suffix = add_options_page(
-				'WordPress Popular Posts',
-				'WordPress Popular Posts',
-				'manage_options',
-				$this->plugin_slug,
-				array( $this, 'display_plugin_admin_page' )
-			);
-
-		}
-
-		/**
-		 * Render the settings page for this plugin.
-		 *
-		 * @since    1.0.0
-		 */
-		public function display_plugin_admin_page() {
-			include_once( 'views/admin.php' );
-		}
-
-		/**
-		 * Registers Settings link on plugin description.
-		 *
-		 * @since	2.3.3
-		 * @param	array	links
-		 * @param	string	file
-		 * @return	array
-		 */
-		public function add_plugin_settings_link( $links, $file ){
-
-			$this_plugin = plugin_basename(__FILE__);
-
-			if ( is_plugin_active($this_plugin) && $file == $this_plugin ) {
-				$links[] = '<a href="' . admin_url( 'options-general.php?page=wordpress-popular-posts' ) . '">Settings</a>';
-			}
-
-			return $links;
-
-		} // end add_plugin_settings_link
-
-		/*--------------------------------------------------*/
-		/* Install / activation / deactivation methods
-		/*--------------------------------------------------*/
-
-		/**
-		 * Return an instance of this class.
-		 *
-		 * @since     3.0.0
-		 * @return    object    A single instance of this class.
-		 */
-		public static function get_instance() {
-
-			// If the single instance hasn't been set, set it now.
-			if ( NULL == self::$instance ) {
-				self::$instance = new self;
-			}
-
-			return self::$instance;
-
-		} // end get_instance
-
-		/**
-		 * Fired when the plugin is activated.
-		 *
-		 * @since	1.0.0
-		 * @global	object	wpdb
-		 * @param	bool	network_wide	True if WPMU superadmin uses "Network Activate" action, false if WPMU is disabled or plugin is activated on an individual blog.
-		 */
-		public static function activate( $network_wide ) {
-
-			global $wpdb;
-
-			if ( function_exists( 'is_multisite' ) && is_multisite() ) {
-
-				// run activation for each blog in the network
-				if ( $network_wide ) {
-
-					$original_blog_id = get_current_blog_id();
-					$blogs_ids = $wpdb->get_col( "SELECT blog_id FROM {$wpdb->blogs}" );
-
-					foreach( $blogs_ids as $blog_id ) {
-						switch_to_blog( $blog_id );
-						self::__activate();
-					}
-
-					// switch back to current blog
-					switch_to_blog( $original_blog_id );
-
-					return;
-
-				}
-
-			}
-
-			self::__activate();
-
-		} // end activate
-
-		/**
-		 * Fired when a new blog is activated on WP Multisite.
-		 *
-		 * @since	3.0.0
-		 * @param	int	blog_id	New blog ID
-		 */
-		public function activate_new_site( $blog_id ){
-
-			if ( 1 !== did_action( 'wpmu_new_blog' ) )
-				return;
-
-			// run activation for the new blog
-			switch_to_blog( $blog_id );
-			self::__activate();
-
-			// switch back to current blog
-			restore_current_blog();
-
-		} // end activate_new_site
-
-		/**
-		 * On plugin activation, checks that the WPP database tables are present.
-		 *
-		 * @since	2.4.0
-		 * @global	object	wpdb
-		 */
-		private static function __activate() {
-
-			global $wpdb;
-
-			// set table name
-			$prefix = $wpdb->prefix . "popularposts";
-
-			// fresh setup
-			if ( $prefix != $wpdb->get_var("SHOW TABLES LIKE '{$prefix}data'") ) {
-				self::__do_db_tables( $prefix );
-			}
-
-		} // end __activate
-
-		/**
-		 * Fired when the plugin is deactivated.
-		 *
-		 * @since	1.0.0
-		 * @global	object	wpbd
-		 * @param	bool	network_wide	True if WPMU superadmin uses "Network Activate" action, false if WPMU is disabled or plugin is activated on an individual blog
-		 */
-		public static function deactivate( $network_wide ) {
-
-			global $wpdb;
-
-			if ( function_exists( 'is_multisite' ) && is_multisite() ) {
-
-				// Run deactivation for each blog in the network
-				if ( $network_wide ) {
-
-					$original_blog_id = get_current_blog_id();
-					$blogs_ids = $wpdb->get_col( "SELECT blog_id FROM {$wpdb->blogs}" );
-
-					foreach( $blogs_ids as $blog_id ) {
-						switch_to_blog( $blog_id );
-						self::__deactivate();
-					}
-
-					// Switch back to current blog
-					switch_to_blog( $original_blog_id );
-
-					return;
-
-				}
-
-			}
-
-			self::__deactivate();
-
-		} // end deactivate
-
-		/**
-		 * On plugin deactivation, disables the shortcode and removes the scheduled task.
-		 *
-		 * @since	2.4.0
-		 */
-		private static function __deactivate() {
-
-			remove_shortcode('wpp');
-			wp_clear_scheduled_hook('wpp_cache_event');
-
-		} // end __deactivate
-
-		/**
-		 * Checks if an upgrade procedure is required.
-		 *
-		 * @since	2.4.0
-		 */
-		public function upgrade_check(){
-
-			// Get WPP version
-			$wpp_ver = get_site_option('wpp_ver');
-
-			if ( !$wpp_ver ) {
-				add_site_option('wpp_ver', $this->version);
-			} elseif ( version_compare($wpp_ver, $this->version, '<') ) {
-				$this->__upgrade();
-			}
-
-		} // end upgrade_check
-
-		/**
-		 * On plugin upgrade, performs a number of actions: update WPP database tables structures (if needed),
-		 * run the setup wizard (if needed), and some other checks.
-		 *
-		 * @since	2.4.0
-		 * @global	object	wpdb
-		 */
-		private function __upgrade() {
-
-			global $wpdb;
-
-			// set table name
-			$prefix = $wpdb->prefix . "popularposts";
-
-			// validate the structure of the tables and create missing tables
-			self::__do_db_tables( $prefix );
-
-			// If summary is empty, import data from popularpostsdatacache
-			if ( !$wpdb->get_var("SELECT COUNT(*) FROM {$prefix}summary") ) {
-
-				// popularpostsdatacache table is still there
-				if ( $wpdb->get_var("SHOW TABLES LIKE '{$prefix}datacache'") ) {
-
-					$sql = "
-					INSERT INTO {$prefix}summary (postid, pageviews, view_date, last_viewed)
-					SELECT id, pageviews, day_no_time, day
-					FROM {$prefix}datacache
-					GROUP BY day_no_time, id
-					ORDER BY day_no_time DESC";
-
-					$result = $wpdb->query( $sql );
-
-					// Rename old caching table
-					if ( $result ) {
-						$result = $wpdb->query( "RENAME TABLE {$prefix}datacache TO {$prefix}datacache_backup;" );
-					}
-
-				}
-
-			}
-
-			// Check indexes and fields
-			$dataFields = $wpdb->get_results( "SHOW FIELDS FROM {$prefix}data;" );
-
-			// Update fields, if needed
-			foreach ( $dataFields as $column ) {
-				if ( "postid" == $column->Field && "bigint(20)" != $column->Type ) {
-					$wpdb->query("ALTER TABLE {$prefix}data CHANGE postid postid bigint(20) NOT NULL;");
-				}
-
-				if ( "pageviews" == $column->Field && "bigint(20)" != $column->Type ) {
-					$wpdb->query("ALTER TABLE {$prefix}data CHANGE pageviews pageviews bigint(20) DEFAULT 1;");
-				}
-			}
-
-			// Update index, if needed
-			$dataIndex = $wpdb->get_results("SHOW INDEX FROM {$prefix}data;", ARRAY_A);
-
-			if ( "PRIMARY" != $dataIndex[0]['Key_name'] ) {
-				$wpdb->query("ALTER TABLE {$prefix}data DROP INDEX id, ADD PRIMARY KEY (postid);");
-			}
-
-			// Update WPP version
-			update_site_option('wpp_ver', $this->version);
-
-		} // end __upgrade
-
-		/**
-		 * Creates/updates the WPP database tables.
-		 *
-		 * @since	2.4.0
-		 * @global	object	wpdb
-		 */
-		private static function __do_db_tables( $prefix ) {
-
-			global $wpdb;
-
-			$sql = "";
-			$charset_collate = "";
-
-			if ( !empty($wpdb->charset) )
-				$charset_collate = "DEFAULT CHARACTER SET {$wpdb->charset} ";
-
-			if ( !empty($wpdb->collate) )
-				$charset_collate .= "COLLATE {$wpdb->collate}";
-
-			$sql = "
-				CREATE TABLE {$prefix}data (
-					postid bigint(20) NOT NULL,
-					day datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
-					last_viewed datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
-					pageviews bigint(20) DEFAULT 1,
-					PRIMARY KEY  (postid)
-				) {$charset_collate};
-				CREATE TABLE {$prefix}summary (
-					ID bigint(20) NOT NULL AUTO_INCREMENT,
-					postid bigint(20) NOT NULL,
-					pageviews bigint(20) NOT NULL DEFAULT 1,
-					view_date date NOT NULL DEFAULT '0000-00-00',
-					last_viewed datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
-					PRIMARY KEY  (ID),
-					UNIQUE KEY ID_date (postid,view_date),
-					KEY postid (postid),
-					KEY last_viewed (last_viewed)
-				) {$charset_collate};";
-
-			require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
-			dbDelta($sql);
-
-		} // end __do_db_tables
-
-		/**
-		 * Checks if the technical requirements are met.
-		 *
-		 * @since	2.4.0
-		 * @link	http://wordpress.stackexchange.com/questions/25910/uninstall-activate-deactivate-a-plugin-typical-features-how-to/25979#25979
-		 * @global	string $wp_version
-		 * @return	array
-		 */
-		private function __check_requirements() {
-
-			global $wp_version;
-
-			$php_min_version = '5.2';
-			$wp_min_version = '3.8';
-			$php_current_version = phpversion();
-			$errors = array();
-
-			if ( version_compare( $php_min_version, $php_current_version, '>' ) ) {
-				$errors[] = sprintf(
-					__( 'Your PHP installation is too old. WordPress Popular Posts requires at least PHP version %1$s to function correctly. Please contact your hosting provider and ask them to upgrade PHP to %1$s or higher.', $this->plugin_slug ),
-					$php_min_version
-				);
-			}
-
-			if ( version_compare( $wp_min_version, $wp_version, '>' ) ) {
-				$errors[] = sprintf(
-					__( 'Your WordPress version is too old. WordPress Popular Posts requires at least WordPress version %1$s to function correctly. Please update your blog via Dashboard &gt; Update.', $this->plugin_slug ),
-					$wp_min_version
-				);
-			}
-
-			return $errors;
-
-		} // end __check_requirements
-
-		/**
-		 * Outputs error messages to wp-admin.
-		 *
-		 * @since	2.4.0
-		 */
-		public function check_admin_notices() {
-
-			$errors = $this->__check_requirements();
-
-			if ( empty($errors) )
-				return;
-
-			if ( isset($_GET['activate']) )
-				unset($_GET['activate']);
-
-			printf(
-				__('<div class="error"><p>%1$s</p><p><i>%2$s</i> has been <strong>deactivated</strong>.</p></div>', $this->plugin_slug),
-				join( '</p><p>', $errors ),
-				'WordPress Popular Posts'
-			);
-
-			deactivate_plugins( plugin_basename( __FILE__ ) );
-
-		} // end check_admin_notices
-
-
-		/*--------------------------------------------------*/
-		/* Plugin methods / functions
-		/*--------------------------------------------------*/
-
-		/**
-		 * Purges deleted posts from data/summary tables.
-		 *
-		 * @since	2.0.0
-		 * @global	object	$wpdb
-		 */
-		public function purge_data() {
-
-			global $wpdb;
-
-			if ( $missing = $wpdb->get_results( "SELECT v.postid AS id FROM {$wpdb->prefix}popularpostsdata v WHERE NOT EXISTS (SELECT p.ID FROM {$wpdb->posts} p WHERE v.postid = p.ID);" ) ) {
-				$to_be_deleted = '';
-
-				foreach ( $missing as $deleted )
-					$to_be_deleted .= $deleted->id . ",";
-
-				$to_be_deleted = rtrim( $to_be_deleted, "," );
-
-				$wpdb->query( "DELETE FROM {$wpdb->prefix}popularpostsdata WHERE postid IN({$to_be_deleted});" );
-				$wpdb->query( "DELETE FROM {$wpdb->prefix}popularpostssummary WHERE postid IN({$to_be_deleted});" );
-			}
-
-		} // end purge_data
-
-		/**
-		 * Truncates data and cache on demand.
-		 *
-		 * @since	2.0.0
-		 * @global	object	wpdb
-		 */
-		public function clear_data() {
-
-			$token = $_POST['token'];
-			$clear = isset($_POST['clear']) ? $_POST['clear'] : '';
-			$key = get_site_option("wpp_rand");
-
-			if (current_user_can('manage_options') && ($token === $key) && !empty($clear)) {
-				global $wpdb;
-
-				// set table name
-				$prefix = $wpdb->prefix . "popularposts";
-
-				if ($clear == 'cache') {
-					if ( $wpdb->get_var("SHOW TABLES LIKE '{$prefix}summary'") ) {
-						$wpdb->query("TRUNCATE TABLE {$prefix}summary;");
-						$this->__flush_transients();
-						_e('Success! The cache table has been cleared!', $this->plugin_slug);
-					} else {
-						_e('Error: cache table does not exist.', $this->plugin_slug);
-					}
-				} else if ($clear == 'all') {
-					if ( $wpdb->get_var("SHOW TABLES LIKE '{$prefix}data'") && $wpdb->get_var("SHOW TABLES LIKE '{$prefix}summary'") ) {
-						$wpdb->query("TRUNCATE TABLE {$prefix}data;");
-						$wpdb->query("TRUNCATE TABLE {$prefix}summary;");
-						$this->__flush_transients();
-						_e('Success! All data have been cleared!', $this->plugin_slug);
-					} else {
-						_e('Error: one or both data tables are missing.', $this->plugin_slug);
-					}
-				} else {
-					_e('Invalid action.', $this->plugin_slug);
-				}
-			} else {
-				_e('Sorry, you do not have enough permissions to do this. Please contact the site administrator for support.', $this->plugin_slug);
-			}
-
-			die();
-
-		} // end clear_data
-		
-		/**
-		 * Truncates thumbnails cache on demand.
-		 *
-		 * @since	2.0.0
-		 * @global	object	wpdb
-		 */
-		public function clear_thumbnails() {
-
-			$token = $_POST['token'];			
-			$key = get_site_option("wpp_rand");			
-
-			if ( current_user_can('manage_options') && ($token === $key) ) {
-				$wp_upload_dir = wp_upload_dir();
-				
-				if ( is_dir( $wp_upload_dir['basedir'] . "/" . $this->plugin_slug ) ) {
-					$files = glob( $wp_upload_dir['basedir'] . "/" . $this->plugin_slug . "/*" ); // get all file names
-					
-					if ( is_array($files) && !empty($files) ) {					
-						foreach($files as $file){ // iterate files
-							if ( is_file($file) )
-								@unlink($file); // delete file
-						}
-						
-						_e('Success! All files have been deleted!', $this->plugin_slug);
-					} else {
-						_e('The thumbnail cache is already empty!', $this->plugin_slug);
-					}
-				} else {
-					_e('Invalid action.', $this->plugin_slug);
-				}
-			} else {
-				_e('Sorry, you do not have enough permissions to do this. Please contact the site administrator for support.', $this->plugin_slug);
-			}
-
-			die();
-
-		} // end clear_data
-
-		/**
-		 * Updates views count on page load via AJAX.
-		 *
-		 * @since	2.0.0
-		 */
-		public function update_views_ajax(){
-
-			if ( !wp_verify_nonce($_GET['token'], 'wpp-token') || !$this->__is_numeric($_GET['id']) )
-				die("WPP: Oops, invalid request!");
-
-			$nonce = $_GET['token'];
-			$post_ID = $_GET['id'];
-
-			$exec_time = 0;
-
-			$start = $this->__microtime_float();
-			$result = $this->__update_views($post_ID);
-			$end = $this->__microtime_float();
-
-			$exec_time += round($end - $start, 6);
-
-			if ( $result ) {
-				die( "WPP: OK. Execution time: " . $exec_time . " seconds" );
-			}
-
-			die( "WPP: Oops, could not update the views count!" );
-
-		} // end update_views_ajax
-
-		/**
-		 * Outputs script to update views via AJAX.
-		 *
-		 * @since	2.0.0
-		 * @global	object	post
-		 */
-		public function print_ajax(){
-
-			if ( (is_single() || is_page()) && !is_front_page() && !is_preview() && !is_trackback() && !is_feed() && !is_robots() ) {
-
-				global $post;
-				$nonce = wp_create_nonce('wpp-token');
-
-				?>
-				<!-- WordPress Popular Posts v<?php echo $this->version; ?> -->
-				<script type="text/javascript">//<![CDATA[
-					jQuery(document).ready(function(){
-						jQuery.get('<?php echo admin_url('admin-ajax.php'); ?>', {
-							action: 'update_views_ajax',
-							token: '<?php echo $nonce; ?>',
-							id: <?php echo $post->ID; ?>
-						}, function(response){
-							if ( console && console.log )
-								console.log(response);
-						});
-					});
-				//]]></script>
-				<!-- End WordPress Popular Posts v<?php echo $this->version; ?> -->
-				<?php
-			}
-
-		} // end print_ajax
-
-		/**
-		 * Deletes cached (transient) data.
-		 *
-		 * @since	3.0.0
-		 */
-		private function __flush_transients() {
-
-			$wpp_transients = get_site_option('wpp_transients');
-
-			if ( $wpp_transients && is_array($wpp_transients) && !empty($wpp_transients) ) {
-				for ($t=0; $t < count($wpp_transients); $t++)
-					delete_transient( $wpp_transients[$t] );
-
-				update_site_option('wpp_transients', array());
-			}
-
-		} // end __flush_transients
-
-		/**
-		 * Updates views count.
-		 *
-		 * @since	1.4.0
-		 * @global	object	$wpdb
-		 * @param	int				Post ID
-		 * @return	bool|int		FALSE if query failed, TRUE on success
-		 */
-		private function __update_views($id) {
-
-			/*
-			TODO:
-			For WordPress Multisite, we must define the DIEONDBERROR constant for database errors to display like so:
-			<?php define( 'DIEONDBERROR', true ); ?>
-			*/
-
-			global $wpdb;
-			$table = $wpdb->prefix . "popularposts";
-			$wpdb->show_errors();
-
-			// WPML support, get original post/page ID
-			if ( defined('ICL_LANGUAGE_CODE') && function_exists('icl_object_id') ) {
-				global $sitepress;
-				$id = icl_object_id( $id, get_post_type( $id ), false, $sitepress->get_default_language() );
-			}
-
-			$now = $this->__now();
-			$curdate = $this->__curdate();
-
-			// Update all-time table
-			$result1 = $wpdb->query( $wpdb->prepare(
-				"INSERT INTO {$table}data
-				(postid, day, last_viewed, pageviews) VALUES (%d, %s, %s, %d)
-				ON DUPLICATE KEY UPDATE pageviews = pageviews + 1, last_viewed = '%3\$s';",
-				$id,
-				$now,
-				$now,
-				1
-			));
-
-			// Update range (summary) table
-			$result2 = $wpdb->query( $wpdb->prepare(
-				"INSERT INTO {$table}summary
-				(postid, pageviews, view_date, last_viewed) VALUES (%d, %d, %s, %s)
-				ON DUPLICATE KEY UPDATE pageviews = pageviews + 1, last_viewed = '%4\$s';",
-				$id,
-				1,
-				$curdate,
-				$now
-			));
-
-			if ( !$result1 || !$result2 )
-				return false;
-
-			// Allow WP themers / coders perform an action
-			// after updating views count
-			if ( has_action( 'wpp_update_views' ) )
-				do_action( 'wpp_update_views', $id );
-
-			return true;
-
-		} // end __update_views
-
-		/**
-		 * Queries the database and returns the posts (if any met the criteria set by the user).
-		 *
-		 * @since	1.4.0
-		 * @global	object 		$wpdb
-		 * @param	array		Widget instance
-		 * @return	null|array	Array of posts, or null if nothing was found
-		 */
-		protected function _query_posts($instance) {
-
-			global $wpdb;
-
-			// parse instance values
-			$instance = $this->__merge_array_r(
-				$this->defaults,
-				$instance
-			);
-
-			$prefix = $wpdb->prefix . "popularposts";
-			$fields = "p.ID AS 'id', p.post_title AS 'title', p.post_date AS 'date', p.post_author AS 'uid'";
-			$from = "";
-			$where = "WHERE 1 = 1";
-			$orderby = "";
-			$groupby = "";
-			$limit = "LIMIT {$instance['limit']}";
-
-			$post_types = "";
-			$pids = "";
-			$cats = "";
-			$authors = "";
-			$content = "";
-
-			$now = $this->__now();
-
-			// post filters
-			// * freshness - get posts published within the selected time range only
-			if ( $instance['freshness'] ) {
-				switch( $instance['range'] ){
-					case "yesterday":
-						$where .= " AND p.post_date > DATE_SUB('{$now}', INTERVAL 1 DAY) ";
-					break;
-
-					case "daily":
-						$where .= " AND p.post_date > DATE_SUB('{$now}', INTERVAL 1 DAY) ";
-					break;
-
-					case "weekly":
-						$where .= " AND p.post_date > DATE_SUB('{$now}', INTERVAL 1 WEEK) ";
-					break;
-
-					case "monthly":
-						$where .= " AND p.post_date > DATE_SUB('{$now}', INTERVAL 1 MONTH) ";
-					break;
-
-					default:
-						$where .= "";
-					break;
-				}
-			}
-
-			// * post types - based on code seen at https://github.com/williamsba/WordPress-Popular-Posts-with-Custom-Post-Type-Support
-			$types = explode(",", $instance['post_type']);
-			$sql_post_types = "";
-			$join_cats = true;
-
-			// if we're getting just pages, why join the categories table?
-			if ( 'page' == strtolower($instance['post_type']) ) {
-
-				$join_cats = false;
-				$where .= " AND p.post_type = '{$instance['post_type']}'";
-
-			}
-			// we're listing other custom type(s)
-			else {
-
-				if ( count($types) > 1 ) {
-
-					foreach ( $types as $post_type ) {
-						$sql_post_types .= "'{$post_type}',";
-					}
-
-					$sql_post_types = rtrim( $sql_post_types, ",");
-					$where .= " AND p.post_type IN({$sql_post_types})";
-
-				} else {
-					$where .= " AND p.post_type = '{$instance['post_type']}'";
-				}
-
-			}
-
-			// * posts exclusion
-			if ( !empty($instance['pid']) ) {
-
-				$ath = explode(",", $instance['pid']);
-
-				$where .= ( count($ath) > 1 )
-				  ? " AND p.ID NOT IN({$instance['pid']})"
-				  : " AND p.ID <> '{$instance['pid']}'";
-
-			}
-
-			// * categories
-			if ( !empty($instance['cat']) && $join_cats ) {
-
-				$cat_ids = explode(",", $instance['cat']);
-				$in = array();
-				$out = array();
-				$not_in = "";
-
-				usort($cat_ids, array(&$this, '__sorter'));
-
-				for ($i=0; $i < count($cat_ids); $i++) {
-					if ($cat_ids[$i] >= 0) $in[] = $cat_ids[$i];
-					if ($cat_ids[$i] < 0) $out[] = $cat_ids[$i];
-				}
-
-				$in_cats = implode(",", $in);
-				$out_cats = implode(",", $out);
-				$out_cats = preg_replace( '|[^0-9,]|', '', $out_cats );
-
-				if ($in_cats != "" && $out_cats == "") { // get posts from from given cats only
-					$where .= " AND p.ID IN (
-						SELECT object_id
-						FROM {$wpdb->term_relationships} AS r
-							 JOIN {$wpdb->term_taxonomy} AS x ON x.term_taxonomy_id = r.term_taxonomy_id
-							 JOIN {$wpdb->terms} AS t ON t.term_id = x.term_id
-						WHERE x.taxonomy = 'category' AND t.term_id IN({$in_cats})
-						)";
-				} else if ($in_cats == "" && $out_cats != "") { // exclude posts from given cats only
-					$where .= " AND p.ID NOT IN (
-						SELECT object_id
-						FROM {$wpdb->term_relationships} AS r
-							 JOIN {$wpdb->term_taxonomy} AS x ON x.term_taxonomy_id = r.term_taxonomy_id
-							 JOIN {$wpdb->terms} AS t ON t.term_id = x.term_id
-						WHERE x.taxonomy = 'category' AND t.term_id IN({$out_cats})
-						)";
-				} else { // mixed, and possibly a heavy load on the DB
-					$where .= " AND p.ID IN (
-						SELECT object_id
-						FROM {$wpdb->term_relationships} AS r
-							 JOIN {$wpdb->term_taxonomy} AS x ON x.term_taxonomy_id = r.term_taxonomy_id
-							 JOIN {$wpdb->terms} AS t ON t.term_id = x.term_id
-						WHERE x.taxonomy = 'category' AND t.term_id IN({$in_cats})
-						) AND p.ID NOT IN (
-						SELECT object_id
-						FROM {$wpdb->term_relationships} AS r
-							 JOIN {$wpdb->term_taxonomy} AS x ON x.term_taxonomy_id = r.term_taxonomy_id
-							 JOIN {$wpdb->terms} AS t ON t.term_id = x.term_id
-						WHERE x.taxonomy = 'category' AND t.term_id IN({$out_cats})
-						)";
-				}
-
-			}
-
-			// * authors
-			if ( !empty($instance['author']) ) {
-
-				$ath = explode(",", $instance['author']);
-
-				$where .= ( count($ath) > 1 )
-				  ? " AND p.post_author IN({$instance['author']})"
-				  : " AND p.post_author = '{$instance['author']}'";
-
-			}
-
-			// All-time range
-			if ( "all" == $instance['range'] ) {
-
-				$fields .= ", p.comment_count AS 'comment_count'";
-
-				// order by comments
-				if ( "comments" == $instance['order_by'] ) {
-
-					$from = "{$wpdb->posts} p";
-					$where .= " AND p.comment_count > 0 AND p.post_password = '' AND p.post_status = 'publish'";
-					$orderby = " ORDER BY p.comment_count DESC";
-
-					// get views, too
-					if ( $instance['stats_tag']['views'] ) {
-
-						$fields .= ", IFNULL(v.pageviews, 0) AS 'pageviews'";
-						$from .= " LEFT JOIN {$prefix}data v ON p.ID = v.postid";
-
-					}
-
-				}
-				// order by (avg) views
-				else {
-
-					$from = "{$prefix}data v LEFT JOIN {$wpdb->posts} p ON v.postid = p.ID";
-					$where .= " AND p.post_password = '' AND p.post_status = 'publish'";
-
-					// order by views
-					if ( "views" == $instance['order_by'] ) {
-
-						$fields .= ", v.pageviews AS 'pageviews'";
-						$orderby = "ORDER BY pageviews DESC";
-
-					}
-					// order by avg views
-					elseif ( "avg" == $instance['order_by'] ) {
-
-						$fields .= ", ( v.pageviews/(IF ( DATEDIFF('{$now}', MIN(v.day)) > 0, DATEDIFF('{$now}', MIN(v.day)), 1) ) ) AS 'avg_views'";
-						$orderby = "ORDER BY avg_views DESC";
-
-					}
-
-				}
-
-			} else { // CUSTOM RANGE
-
-				$interval = "";
-
-				switch( $instance['range'] ){
-					case "yesterday":
-						$interval = "1 DAY";
-					break;
-
-					case "daily":
-						$interval = "1 DAY";
-					break;
-
-					case "weekly":
-						$interval = "1 WEEK";
-					break;
-
-					case "monthly":
-						$interval = "1 MONTH";
-					break;
-
-					default:
-						$interval = "1 DAY";
-					break;
-				}
-
-				// order by comments
-				if ( "comments" == $instance['order_by'] ) {
-
-					$fields .= ", c.comment_count AS 'comment_count'";
-					$from = "(SELECT comment_post_ID AS 'id', COUNT(comment_post_ID) AS 'comment_count' FROM {$wpdb->comments} WHERE comment_date > DATE_SUB('{$now}', INTERVAL {$interval}) AND comment_approved = 1 GROUP BY id ORDER BY comment_count DESC) c LEFT JOIN {$wpdb->posts} p ON c.id = p.ID";
-					$where .= " AND p.post_password = '' AND p.post_status = 'publish'";
-
-					if ( $instance['stats_tag']['views'] ) { // get views, too
-
-						$fields .= ", IFNULL(v.pageviews, 0) AS 'pageviews'";
-						$from .= " LEFT JOIN (SELECT postid, SUM(pageviews) AS pageviews FROM {$prefix}summary WHERE last_viewed > DATE_SUB('{$now}', INTERVAL {$interval}) GROUP BY postid ORDER BY pageviews DESC) v ON p.ID = v.postid";
-
-					}
-
-				}
-				// ordered by views / avg
-				else {
-
-					$from = "(SELECT postid, IFNULL(SUM(pageviews), 0) AS pageviews FROM {$prefix}summary WHERE last_viewed > DATE_SUB('{$now}', INTERVAL {$interval}) GROUP BY postid ORDER BY pageviews DESC) v LEFT JOIN {$wpdb->posts} p ON v.postid = p.ID";
-					$where .= " AND p.post_password = '' AND p.post_status = 'publish'";
-
-					// ordered by views
-					if ( "views" == $instance['order_by'] ) {
-						$fields .= ", v.pageviews AS 'pageviews'";
-					}
-					// ordered by avg views
-					elseif ( "avg" == $instance['order_by'] ) {
-
-						$fields .= ", ( v.pageviews/(IF ( DATEDIFF('{$now}', DATE_SUB('{$now}', INTERVAL {$interval})) > 0, DATEDIFF('{$now}', DATE_SUB('{$now}', INTERVAL {$interval})), 1) ) ) AS 'avg_views' ";
-						$groupby = "GROUP BY v.postid";
-						$orderby = "ORDER BY avg_views DESC";
-
-					}
-
-					// get comments, too
-					if ( $instance['stats_tag']['comment_count'] ) {
-
-						$fields .= ", IFNULL(c.comment_count, 0) AS 'comment_count'";
-						$from .= " LEFT JOIN (SELECT comment_post_ID AS 'id', COUNT(comment_post_ID) AS 'comment_count' FROM {$wpdb->comments} WHERE comment_date > DATE_SUB('{$now}', INTERVAL {$interval}) AND comment_approved = 1 GROUP BY id ORDER BY comment_count DESC) c ON p.ID = c.id";
-
-					}
-
-				}
-
-			}
-
-			$query = "SELECT {$fields} FROM {$from} {$where} {$groupby} {$orderby} {$limit};";
-			$this->__debug( $query );
-
-			$result = $wpdb->get_results($query);
-
-			return apply_filters( 'wpp_query_posts', $result, $instance );
-
-		} // end query_posts
-
-		/**
-		 * Returns the formatted list of posts.
-		 *
-		 * @since	3.0.0
-		 * @param	array	instance	The current instance of the widget / shortcode parameters
-		 * @return	string	HTML list of popular posts
-		 */
-		private function __get_popular_posts( $instance ) {
-
-			// Parse instance values
-			$instance = $this->__merge_array_r(
-				$this->defaults,
-				$instance
-			);
-
-			$content = "";
-
-			// Fetch posts
-			if ( !defined('WPP_ADMIN') && $this->user_settings['tools']['cache']['active'] ) {
-				$transient_name = md5(json_encode($instance));
-				$mostpopular = ( function_exists( 'is_multisite' ) && is_multisite() )
-				  ? get_site_transient( $transient_name )
-				  : get_transient( $transient_name );
-
-				$content = "\n" . "<!-- cached -->" . "\n";
-
-				// It wasn't there, so regenerate the data and save the transient
-				if ( false === $mostpopular ) {
-					$mostpopular = $this->_query_posts( $instance );
-
-					switch($this->user_settings['tools']['cache']['interval']['time']){
-						case 'hour':
-							$time = 60 * 60;
-						break;
-
-						case 'day':
-							$time = 60 * 60 * 24;
-						break;
-
-						case 'week':
-							$time = 60 * 60 * 24 * 7;
-						break;
-
-						case 'month':
-							$time = 60 * 60 * 24 * 30;
-						break;
-
-						case 'year':
-							$time = 60 * 60 * 24 * 365;
-						break;
-					}
-
-					$expiration = $time * $this->user_settings['tools']['cache']['interval']['value'];
-
-					if ( function_exists( 'is_multisite' ) && is_multisite() )
-						set_site_transient( $transient_name, $mostpopular, $expiration );
-					else
-						set_transient( $transient_name, $mostpopular, $expiration );
-
-					$wpp_transients = get_site_option('wpp_transients');
-
-					if ( !$wpp_transients ) {
-						$wpp_transients = array( $transient_name );
-						add_site_option('wpp_transients', $wpp_transients);
-					} else {
-						if ( !in_array($transient_name, $wpp_transients) ) {
-							$wpp_transients[] = $transient_name;
-							update_site_option('wpp_transients', $wpp_transients);
-						}
-					}
-				}
-			} else {
-				$mostpopular = $this->_query_posts( $instance );
-			}
-
-			// No posts to show
-			if ( !is_array($mostpopular) || empty($mostpopular) ) {
-				return "<p>".__('Sorry. No data so far.', $this->plugin_slug)."</p>";
-			}
-
-			// Allow WP themers / coders access to raw data
-			// so they can build their own output
-			if ( has_filter( 'wpp_custom_html' ) && !defined('WPP_ADMIN') ) {
-				return apply_filters( 'wpp_custom_html', $mostpopular, $instance );
-			}
-
-			// HTML wrapper
-			if ($instance['markup']['custom_html']) {
-				$content .= "\n" . htmlspecialchars_decode($instance['markup']['wpp-start'], ENT_QUOTES) ."\n";
-			} else {
-				$content .= "\n" . "<ul class=\"wpp-list\">" . "\n";
-			}
-
-			// Loop through posts
-			foreach($mostpopular as $p) {
-				$content .= $this->__render_popular_post( $p, $instance );
-			}
-
-			// END HTML wrapper
-			if ($instance['markup']['custom_html']) {
-				$content .= "\n". htmlspecialchars_decode($instance['markup']['wpp-end'], ENT_QUOTES) ."\n";
-			} else {
-				$content .= "\n". "</ul>". "\n";
-			}
-
-			return $content;
-
-		} // end __get_popular_posts
-
-		/**
-		 * Returns the formatted post.
-		 *
-		 * @since	3.0.0
-		 * @param	object	p
-		 * @param	array	instance	The current instance of the widget / shortcode parameters
-		 * @return	string
-		 */
-		private function __render_popular_post($p, $instance) {
-
-			// WPML support, based on Serhat Evren's suggestion - see http://wordpress.org/support/topic/wpml-trick#post-5452607
-			if ( defined('ICL_LANGUAGE_CODE') && function_exists('icl_object_id') ) {
-				$current_id = icl_object_id( $p->id, get_post_type( $p->id ), true, ICL_LANGUAGE_CODE );
-				$permalink = get_permalink( $current_id );
-			} // Get original permalink
-			else {
-				$permalink = get_permalink($p->id);
-			}
-
-			$title = $this->_get_title($p, $instance);
-			$title_sub = $this->_get_title_sub($p, $instance);
-
-			$author = $this->_get_author($p, $instance);
-			$post_cat = $this->_get_post_cat($p, $instance);
-
-			$thumb = $this->_get_thumb($p, $instance);
-			$excerpt = $this->_get_excerpt($p, $instance);
-
-			$pageviews = $this->_get_pageviews($p, $instance);
-			$comments = $this->_get_comments($p, $instance);
-			$rating = $this->_get_rating($p, $instance);
-
-			$_stats = join(' | ', $this->_get_stats($p, $instance));
-
-			// PUTTING IT ALL TOGETHER
-			// build custom layout
-			if ($instance['markup']['custom_html']) {
-
-				$data = array(
-					'title' => '<a href="'.$permalink.'" title="'. esc_attr($title) .'">'.$title_sub.'</a>',
-					'summary' => $excerpt,
-					'stats' => $_stats,
-					'img' => $thumb,
-					'id' => $p->id,
-					'url' => $permalink,
-					'text_title' => $title,
-					'category' => $post_cat,
-					'author' => '<a href="' . get_author_posts_url($p->uid) . '">' . $author . '</a>',
-					'views' => $pageviews,
-					'comments' => $comments
-				);
-
-				$content = htmlspecialchars_decode( $this->__format_content($instance['markup']['post-html'], $data, $instance['rating']), ENT_QUOTES ) . "\n";
-
-			}
-			// build regular layout
-			else {
-				$content =
-					'<li>'
-					. $thumb
-					. '<a href="' . $permalink . '" title="' . esc_attr($title) . '" class="wpp-post-title" target="' . $this->user_settings['tools']['link']['target'] . '">' . $title_sub . '</a> '
-					. $excerpt . ' <span class="post-stats">' . $_stats . '</span> '
-					. $rating
-					. "</li>\n";
-			}
-
-			return apply_filters('wpp_post', $content, $p, $instance);
-
-		} // end __render_popular_post
-
-		/**
-		 * Cache.
-		 *
-		 * @since	3.0.0
-		 * @param	string $func function name
-		 * @param	mixed $default
-		 * @return	mixed
-		 */
-		private function &__cache($func, $default = null) {
-
-			static $cache;
-
-			if ( !isset($cache) ) {
-				$cache = array();
-			}
-
-			if ( !isset($cache[$func]) ) {
-				$cache[$func] = $default;
-			}
-
-			return $cache[$func];
-
-		} // end __cache
-
-		/**
-		 * Gets post title.
-		 *
-		 * @since	3.0.0
-		 * @param	object	p
-		 * @param	array	instance	The current instance of the widget / shortcode parameters
-		 * @return	string
-		 */
-		protected function _get_title($p, $instance) {
-
-			$cache = &$this->__cache(__FUNCTION__, array());
-
-			if ( isset($cache[$p->id]) ) {
-				return $cache[$p->id];
-			}
-
-			// WPML support, based on Serhat Evren's suggestion - see http://wordpress.org/support/topic/wpml-trick#post-5452607
-			if ( defined('ICL_LANGUAGE_CODE') && function_exists('icl_object_id') ) {
-				$current_id = icl_object_id( $p->id, get_post_type( $p->id ), true, ICL_LANGUAGE_CODE );
-				$title = get_the_title( $current_id );
-			} // Check for qTranslate
-			else if ( $this->qTrans && function_exists('qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage') ) {
-				$title = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage( $p->title );
-			} // Use ol' plain title
-			else {
-				$title = $p->title;
-			}
-
-			// Strip HTML tags
-			$title = strip_tags($title);
-
-			return $cache[$p->id] = apply_filters('the_title', $title, $p->id);
-
-		} // end _get_title
-
-		/**
-		 * Gets substring of post title.
-		 *
-		 * @since	3.0.0
-		 * @param	object	p
-		 * @param	array	instance	The current instance of the widget / shortcode parameters
-		 * @return	string
-		 */
-		protected function _get_title_sub($p, $instance) {
-
-			$cache = &$this->__cache(__FUNCTION__, array());
-
-			if ( isset($cache[$p->id]) ) {
-				return $cache[$p->id];
-			}
-
-			// TITLE
-			$title_sub = $this->_get_title($p, $instance);
-
-			// truncate title
-			if ($instance['shorten_title']['active']) {
-				// by words
-				if (isset($instance['shorten_title']['words']) && $instance['shorten_title']['words']) {
-
-					$words = explode(" ", $title_sub, $instance['shorten_title']['length'] + 1);
-					if (count($words) > $instance['shorten_title']['length']) {
-						array_pop($words);
-						$title_sub = implode(" ", $words) . "...";
-					}
-
-				}
-				elseif (strlen($title_sub) > $instance['shorten_title']['length']) {
-					$title_sub = mb_substr($title_sub, 0, $instance['shorten_title']['length'], $this->charset) . "...";
-				}
-			}
-
-			return $cache[$p->id] = $title_sub;
-
-		} // end _get_title_sub
-
-		/**
-		 * Gets post's excerpt.
-		 *
-		 * @since	3.0.0
-		 * @param	object	p
-		 * @param	array	instance	The current instance of the widget / shortcode parameters
-		 * @return	string
-		 */
-		protected function _get_excerpt($p, $instance) {
-
-			$excerpt = '';
-
-			// EXCERPT
-			if ($instance['post-excerpt']['active']) {
-
-				$excerpt = trim($this->_get_summary($p->id, $instance));
-
-				if (!empty($excerpt) && !$instance['markup']['custom_html']) {
-					$excerpt = '<span class="wpp-excerpt">' . $excerpt . '</span>';
-				}
-
-			}
-
-			return $excerpt;
-
-		} // end _get_excerpt
-
-		/**
-		 * Gets post's thumbnail.
-		 *
-		 * @since	3.0.0
-		 * @param	object	p
-		 * @param	array	instance	The current instance of the widget / shortcode parameters
-		 * @return	string
-		 */
-		protected function _get_thumb($p, $instance) {
-
-			if ( !$instance['thumbnail']['active'] || !$this->thumbnailing ) {
-				return '';
-			}
-
-			$tbWidth = $instance['thumbnail']['width'];
-			$tbHeight = $instance['thumbnail']['height'];
-			$permalink = get_permalink($p->id);
-			$title = $this->_get_title($p, $instance);
-
-			$thumb = '<a href="' . $permalink . '" title="' . esc_attr($title) . '" target="' . $this->user_settings['tools']['link']['target'] . '">';
-
-			// get image from custom field
-			if ($this->user_settings['tools']['thumbnail']['source'] == "custom_field") {
-				$path = get_post_meta($p->id, $this->user_settings['tools']['thumbnail']['field'], true);
-
-				if ($path != '') {
-					// user has requested to resize cf image
-					if ( $this->user_settings['tools']['thumbnail']['resize'] ) {
-						$thumb .= $this->__get_img($p, null, $path, array($tbWidth, $tbHeight), $this->user_settings['tools']['thumbnail']['source'], $title);
-					}
-					// use original size
-					else {
-						$thumb .= $this->_render_image($path, array($tbWidth, $tbHeight), 'wpp-thumbnail wpp_cf', $title);
-					}
-				}
-				else {
-					$thumb .= $this->_render_image($this->default_thumbnail, array($tbWidth, $tbHeight), 'wpp-thumbnail wpp_cf_def', $title);
-				}
-			}
-			// get image from post / Featured Image
-			else {
-				$thumb .= $this->__get_img($p, $p->id, null, array($tbWidth, $tbHeight), $this->user_settings['tools']['thumbnail']['source'], $title);
-			}
-
-			$thumb .= "</a>";
-
-			return $cache[$p->id] = $thumb;
-
-		} // end _get_thumb
-
-		/**
-		 * Gets post's views.
-		 *
-		 * @since	3.0.0
-		 * @param	object	p
-		 * @param	array	instance	The current instance of the widget / shortcode parameters
-		 * @return	int|float
-		 */
-		protected function _get_pageviews($p, $instance) {
-
-			$pageviews = 0;
-
-			if (
-				$instance['order_by'] == "views"
-				|| $instance['order_by'] == "avg"
-				|| $instance['stats_tag']['views']
-			) {
-				$pageviews = ($instance['order_by'] == "views" || $instance['order_by'] == "comments")
-				? $p->pageviews
-				: $p->avg_views;
-			}
-
-			return $pageviews;
-
-		} // end _get_pageviews
-
-		/**
-		 * Gets post's comment count.
-		 *
-		 * @since	3.0.0
-		 * @param	object	p
-		 * @param	array	instance	The current instance of the widget / shortcode parameters
-		 * @return	int
-		 */
-		protected function _get_comments($p, $instance) {
-
-			$comments = ($instance['order_by'] == "comments" || $instance['stats_tag']['comment_count'])
-			  ? $p->comment_count
-			  : 0;
-
-			return $comments;
-
-		} // end _get_comments
-
-		/**
-		 * Gets post's rating.
-		 *
-		 * @since	3.0.0
-		 * @param	object	p
-		 * @param	array	instance	The current instance of the widget / shortcode parameters
-		 * @return	string
-		 */
-		protected function _get_rating($p, $instance) {
-
-			$cache = &$this->__cache(__FUNCTION__, array());
-
-			if ( isset($cache[$p->id]) ) {
-				return $cache[$p->id];
-			}
-
-			$rating = '';
-
-			// RATING
-			if (function_exists('the_ratings') && $instance['rating']) {
-				$rating = '<span class="wpp-rating">' . the_ratings('span', $p->id, false) . '</span>';
-			}
-
-			return $cache[$p->id] = $rating;
-		} // end _get_rating
-
-		/**
-		 * Gets post's author.
-		 *
-		 * @since	3.0.0
-		 * @param	object	p
-		 * @param	array	instance	The current instance of the widget / shortcode parameters
-		 * @return	string
-		 */
-		protected function _get_author($p, $instance) {
-
-			$cache = &$this->__cache(__FUNCTION__, array());
-
-			if ( isset($cache[$p->id]) ) {
-				return $cache[$p->id];
-			}
-
-			$author = ($instance['stats_tag']['author'])
-			  ? get_the_author_meta('display_name', $p->uid)
-			  : "";
-
-			return $cache[$p->id] = $author;
-
-		} // end _get_author
-
-		/**
-		 * Gets post's date.
-		 *
-		 * @since	3.0.0
-		 * @param	object	p
-		 * @param	array	instance	The current instance of the widget / shortcode parameters
-		 * @return	string
-		 */
-		protected function _get_date($p, $instance) {
-
-			$cache = &$this->__cache(__FUNCTION__, array());
-
-			if ( isset($cache[$p->id]) ) {
-				return $cache[$p->id];
-			}
-
-			$date = date_i18n($instance['stats_tag']['date']['format'], strtotime($p->date));
-			return $cache[$p->id] = $date;
-
-		} // end _get_date
-
-		/**
-		 * Gets post's category.
-		 *
-		 * @since	3.0.0
-		 * @param	object	p
-		 * @param	array	instance	The current instance of the widget / shortcode parameters
-		 * @return	string
-		 */
-		protected function _get_post_cat($p, $instance) {
-
-			$post_cat = '';
-
-            if ($instance['stats_tag']['category']) {
-				
-				$cache = &$this->__cache(__FUNCTION__, array());
-
-				if ( isset($cache[$p->id]) ) {
-					return $cache[$p->id];
-				}
-
-                // Try and get parent category
-                $cats = get_the_category($p->id);
-
-                foreach( $cats as $cat ) {
-                    if( $cat->category_parent == 0) {
-                        $post_cat = $cat;
-                    }
-                }
-
-                // Default to first category avaliable
-                if ( $post_cat == "" && isset($cats[0]) && isset($cats[0]->slug) ) {
-                    $post_cat = $cats[0];
-                }
-
-				$post_cat = ( "" != $post_cat )
-				  ? '<a href="' . get_category_link($post_cat->term_id) . '" class="cat-id-' . $post_cat->cat_ID . '">' . $post_cat->cat_name . '</a>'
-				  : '';
-				
-				return $cache[$p->id] = $post_cat;
-
-			}
-
-			return $post_cat;
-
-		} // end _get_post_cat
-
-		/**
-		 * Gets statistics data.
-		 *
-		 * @since	3.0.0
-		 * @param	object	p
-		 * @param	array	instance	The current instance of the widget / shortcode parameters
-		 * @return	array
-		 */
-		protected function _get_stats($p, $instance) {
-
-			$cache = &$this->__cache(__FUNCTION__ . md5(json_encode($instance)), array());
-
-			if ( isset($cache[$p->id]) ) {
-				return $cache[$p->id];
-			}
-
-			$stats = array();
-
-			// STATS
-			// comments
-			if ($instance['stats_tag']['comment_count']) {
-				$comments = $this->_get_comments($p, $instance);
-
-				$comments_text = sprintf(
-				_n('1 comment', '%s comments', $comments, $this->plugin_slug),
-				number_format_i18n($comments));
-
-				$stats[] = '<span class="wpp-comments">' . $comments_text . '</span>';
-			}
-
-			// views
-			if ($instance['stats_tag']['views']) {
-				$pageviews = $this->_get_pageviews($p, $instance);
-
-				if ($instance['order_by'] == 'avg') {
-					$views_text = sprintf(
-					_n('1 view per day', '%s views per day', intval($pageviews), $this->plugin_slug),
-					number_format_i18n($pageviews, 2)
-					);
-				}
-				else {
-					$views_text = sprintf(
-					_n('1 view', '%s views', intval($pageviews), $this->plugin_slug),
-					number_format_i18n($pageviews)
-					);
-				}
-
-				$stats[] = '<span class="wpp-views">' . $views_text . "</span>";
-			}
-
-			// author
-			if ($instance['stats_tag']['author']) {
-				$author = $this->_get_author($p, $instance);
-				$display_name = '<a href="' . get_author_posts_url($p->uid) . '">' . $author . '</a>';
-				$stats[] = '<span class="wpp-author">' . sprintf(__('by %s', $this->plugin_slug), $display_name).'</span>';
-			}
-
-			// date
-			if ($instance['stats_tag']['date']['active']) {
-				$date = $this->_get_date($p, $instance);
-				$stats[] = '<span class="wpp-date">' . sprintf(__('posted on %s', $this->plugin_slug), $date) . '</span>';
-			}
-
-			// category
-			if ($instance['stats_tag']['category']) {
-				$post_cat = $this->_get_post_cat($p, $instance);
-
-				if ($post_cat != '') {
-					$stats[] = '<span class="wpp-category">' . sprintf(__('under %s', $this->plugin_slug), $post_cat) . '</span>';
-				}
-			}
-
-			return $cache[$p->id] = $stats;
-
-		} // end _get_stats
-
-		/**
-		 * Retrieves / creates the post thumbnail.
-		 *
-		 * @since	2.3.3
-		 * @param	int	id			Post ID
-		 * @param	string	url		Image URL
-		 * @param	array	dim		Thumbnail width & height
-		 * @param	string	source	Image source
-		 * @return	string
-		 */
-		private function __get_img($p, $id = null, $url = null, $dim = array(80, 80), $source = "featured", $title) {
-
-			if ( (!$id || empty($id) || !$this->__is_numeric($id)) && (!$url || empty($url)) ) {
-				return $this->_render_image($this->default_thumbnail, $dim, 'wpp-thumbnail wpp_def_noID', $title);
-			}
-
-			// Get image by post ID (parent)
-			if ( $id ) {
-				$file_path = $this->__get_image_file_paths($id, $source);
-
-				// No images found, return default thumbnail
-				if ( !$file_path ) {
-					return $this->_render_image($this->default_thumbnail, $dim, 'wpp-thumbnail wpp_def_noPath wpp_' . $source, $title);
-				}
-			}
-			// Get image from URL
-			else {
-				// sanitize URL, just in case
-				$image_url = esc_url( $url );
-				// remove querystring
-				preg_match('/[^\?]+\.(jpg|JPG|jpe|JPE|jpeg|JPEG|gif|GIF|png|PNG)/', $image_url, $matches);
-				$image_url = $matches[0];
-
-				$attachment_id = $this->__get_attachment_id($image_url);
-
-				// Image is hosted locally
-				if ( $attachment_id ) {
-					$file_path = get_attached_file($attachment_id);
-				}
-				// Image is hosted outside WordPress
-				else {
-					$external_image = $this->__fetch_external_image($p->id, $image_url);
-
-					if ( !$external_image ) {
-						return $this->_render_image($this->default_thumbnail, $dim, 'wpp-thumbnail wpp_def_noPath wpp_no_external', $title);
-					}
-
-					$file_path = $external_image;
-				}
-			}
-
-			$file_info = pathinfo($file_path);
-
-			// there is a thumbnail already
-			if ( file_exists(trailingslashit($this->uploads_dir['basedir']) . $p->id . '-' . $dim[0] . 'x' . $dim[1] . '.' . $file_info['extension']) ) {
-				return $this->_render_image( trailingslashit($this->uploads_dir['baseurl']) . $p->id . '-' . $dim[0] . 'x' . $dim[1] . '.' . $file_info['extension'], $dim, 'wpp-thumbnail wpp_cached_thumb wpp_' . $source, $title );
-			}
-
-			return $this->__image_resize($p, $file_path, $dim, $source);
-
-		} // end __get_img
-
-		/**
-		 * Resizes image.
-		 *
-		 * @since	3.0.0
-		 * @param	object	p			Post object
-		 * @param	string	path		Image path		 
-		 * @param	array	dimension	Image's width and height
-		 * @param	string	source		Image source
-		 * @return	string
-		 */
-		private function __image_resize($p, $path, $dimension, $source) {
-
-			$image = wp_get_image_editor($path);
-
-			// valid image, create thumbnail
-			if ( !is_wp_error($image) ) {
-				$file_info = pathinfo($path);
-
-				$image->resize($dimension[0], $dimension[1], true);
-				$new_img = $image->save( trailingslashit($this->uploads_dir['basedir']) . $p->id . '-' . $dimension[0] . 'x' . $dimension[1] . '.' . $file_info['extension'] );
-
-				if ( is_wp_error($new_img) ) {
-					return $this->_render_image($this->default_thumbnail, $dimension, 'wpp-thumbnail wpp_imgeditor_error wpp_' . $source, '', $new_img->get_error_message());
-				}
-
-				return $this->_render_image( trailingslashit($this->uploads_dir['baseurl']) . $new_img['file'], $dimension, 'wpp-thumbnail wpp_imgeditor_thumb wpp_' . $source, '');
-			}
-
-			// ELSE
-			// image file path is invalid
-			return $this->_render_image($this->default_thumbnail, $dimension, 'wpp-thumbnail wpp_imgeditor_error wpp_' . $source, '', $image->get_error_message());
-
-		} // end __image_resize
-
-		/**
-		 * Get image absolute path / URL.
-		 *
-		 * @since	3.0.0
-		 * @param	int	id			Post ID
-		 * @param	string	source	Image source
-		 * @return	array
-		 */
-		private function __get_image_file_paths($id, $source) {
-
-			$file_path = '';
-
-			// get thumbnail path from the Featured Image
-			if ($source == "featured") {
-
-				// thumb attachment ID
-				$thumbnail_id = get_post_thumbnail_id($id);
-
-				if ($thumbnail_id) {
-					// image path
-					return get_attached_file($thumbnail_id);
-				}
-
-			}
-			// get thumbnail path from post content
-			elseif ($source == "first_image") {
-
-				/** @var wpdb $wpdb */
-				global $wpdb;
-
-				$content = $wpdb->get_results("SELECT post_content FROM {$wpdb->posts} WHERE ID = " . $id, ARRAY_A);
-				$count = substr_count($content[0]['post_content'], '<img');
-
-				// images have been found
-				// TODO: try to merge these conditions into one IF.
-				if ($count > 0) {
-
-					preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $content[0]['post_content'], $content_images);
-
-					if (isset($content_images[1][0])) {
-						$attachment_id = $this->__get_attachment_id($content_images[1][0]);
-
-						// image from Media Library
-						if ($attachment_id) {
-							$file_path = get_attached_file($attachment_id);
-							// There's a file path, so return it
-							if ( !empty($file_path) )
-								return $file_path;
-						} // external image?
-						else {
-							$external_image = $this->__fetch_external_image($id, $content_images[1][0]);
-							if ( $external_image ) {
-								return $external_image;
-							}
-						}
-					}
-				}
-
-			}
-
-			return false;
-
-		} // end __get_image_file_paths
-
-		/**
-		 * Render image tag.
-		 *
-		 * @since	3.0.0
-		 * @param	string	src			Image URL
-		 * @param	array	dimension	Image's width and height
-		 * @param	string	class		CSS class
-		 * @param	string	title		Image's title/alt attribute
-		 * @param	string	error		Error, if the image could not be created
-		 * @return	string
-		 */
-		protected function _render_image($src, $dimension, $class, $title = "", $error = null) {
-
-			$msg = '';
-
-			if ($error) {
-				$msg = '<!-- ' . $error . ' --> ';
-			}
-
-			return $msg .
-			'<img src="' . $src . '" title="' . esc_attr($title) . '" alt="' . esc_attr($title) . '" width="' . $dimension[0] . '" height="' . $dimension[1] . '" class="' . $class . '" />';
-
-		} // _render_image
-
-		/**
-		* Get the Attachment ID for a given image URL.
-		*
-		* @since	3.0.0
-		* @author	Frankie Jarrett
-		* @link		http://frankiejarrett.com/get-an-attachment-id-by-url-in-wordpress/
-		* @param	string	url
-		* @return	bool|int
-		*/
-		private function __get_attachment_id($url) {
-
-			// Split the $url into two parts with the wp-content directory as the separator.
-			$parse_url  = explode( parse_url( WP_CONTENT_URL, PHP_URL_PATH ), $url );
-
-			// Get the host of the current site and the host of the $url, ignoring www.
-			$this_host = str_ireplace( 'www.', '', parse_url( home_url(), PHP_URL_HOST ) );
-			$file_host = str_ireplace( 'www.', '', parse_url( $url, PHP_URL_HOST ) );
-
-			// Return nothing if there aren't any $url parts or if the current host and $url host do not match.
-			if ( ! isset( $parse_url[1] ) || empty( $parse_url[1] ) || ( $this_host != $file_host ) ) {
-				return false;
-			}
-
-			// Now we're going to quickly search the DB for any attachment GUID with a partial path match.
-			// Example: /uploads/2013/05/test-image.jpg
-			global $wpdb;
-
-			if ( !$attachment = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM {$wpdb->prefix}posts WHERE guid RLIKE %s;", $parse_url[1] ) ) ) {
-				// Maybe it's a resized image, so try to get the full one
-				$parse_url[1] = preg_replace( '/-[0-9]{1,4}x[0-9]{1,4}\.(jpg|jpeg|png|gif|bmp)$/i', '.$1', $parse_url[1] );
-				$attachment = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM {$wpdb->prefix}posts WHERE guid RLIKE %s;", $parse_url[1] ) );
-			}
-
-			// Returns null if no attachment is found.
-			return $attachment[0];
-
-		} // __get_attachment_id
-
-		/**
-		* Fetchs external images.
-		*
-		* @since 2.3.3
-		* @param	string	url
-		* @return	bool|int
-		*/
-		private function __fetch_external_image($id, $url){
-
-			$full_image_path = trailingslashit( $this->uploads_dir['basedir'] ) . "{$id}_". sanitize_file_name( rawurldecode(wp_basename( $url )) );
-
-			// if the file exists already, return URL and path
-			if ( file_exists($full_image_path) )
-				return $full_image_path;
-
-			$accepted_status_codes = array( 200, 301, 302 );
-			$response = wp_remote_head( $url, array( 'timeout' => 5, 'sslverify' => false ) );
-
-			if ( !is_wp_error($response) && in_array(wp_remote_retrieve_response_code($response), $accepted_status_codes) ) {
-				
-				if ( function_exists('exif_imagetype') ) {
-					$image_type = exif_imagetype( $url );
-				} else {
-					$image_type = getimagesize( $url );
-					$image_type = ( isset($image_type[2]) ) ? $image_type[2] : NULL;
-				}
-
-				if ( in_array($image_type, array(IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG)) ) {
-					require_once( ABSPATH . 'wp-admin/includes/file.php' );
-
-					$url = str_replace( 'https://', 'http://', $url );
-					$tmp = download_url( $url );
-
-					// move file to Uploads
-					if ( !is_wp_error( $tmp ) && rename($tmp, $full_image_path) ) {
-						// borrowed from WP - set correct file permissions
-						$stat = stat( dirname( $full_image_path ));
-						$perms = $stat['mode'] & 0000644;
-						@chmod( $full_image_path, $perms );
-
-						return $full_image_path;
-					}
-				}
-			}
-
-			return false;
-
-		} // end __fetch_external_image
-
-		/**
-		 * Builds post's excerpt
-		 *
-		 * @since	1.4.6
-		 * @global	object	wpdb
-		 * @param	int	post ID
-		 * @param	array	widget instance
-		 * @return	string
-		 */
-		protected function _get_summary($id, $instance){
-
-			if ( !$this->__is_numeric($id) )
-				return false;
-
-			global $wpdb;
-
-			$excerpt = "";
-
-			// WPML support, get excerpt for current language
-			if ( defined('ICL_LANGUAGE_CODE') && function_exists('icl_object_id') ) {
-				$current_id = icl_object_id( $id, get_post_type( $id ), true, ICL_LANGUAGE_CODE );
-
-				$the_post = get_post( $current_id );
-				$excerpt = ( empty($the_post->post_excerpt) )
-				  ? $the_post->post_content
-				  : $the_post->post_excerpt;
-			} // Use ol' plain excerpt
-			else {
-				$the_post = get_post( $id );
-				$excerpt = ( empty($the_post->post_excerpt) )
-				  ? $the_post->post_content
-				  : $the_post->post_excerpt;
-
-				// RRR added call to the_content filters, allows qTranslate to hook in.
-				if ( $this->qTrans )
-					$excerpt = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage( $excerpt );
-			}
-
-			// remove caption tags
-			$excerpt = preg_replace( "/\[caption.*\[\/caption\]/", "", $excerpt );
-
-			// remove Flash objects
-			$excerpt = preg_replace( "/<object[0-9 a-z_?*=\":\-\/\.#\,\\n\\r\\t]+/smi", "", $excerpt );
-
-			// remove Iframes
-			$excerpt = preg_replace( "/<iframe.*?\/iframe>/i", "", $excerpt);
-
-			// remove WP shortcodes
-			$excerpt = strip_shortcodes( $excerpt );
-
-			// remove HTML tags if requested
-			if ( $instance['post-excerpt']['keep_format'] ) {
-				$excerpt = strip_tags($excerpt, '<a><b><i><em><strong>');
-			} else {
-				$excerpt = strip_tags($excerpt);
-				// remove URLs, too
-				$excerpt = preg_replace( '_^(?:(?:https?|ftp)://)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\x{00a1}-\x{ffff}0-9]+-?)*[a-z\x{00a1}-\x{ffff}0-9]+)(?:\.(?:[a-z\x{00a1}-\x{ffff}0-9]+-?)*[a-z\x{00a1}-\x{ffff}0-9]+)*(?:\.(?:[a-z\x{00a1}-\x{ffff}]{2,})))(?::\d{2,5})?(?:/[^\s]*)?$_iuS', '', $excerpt );
-			}
-
-			// Fix RSS CDATA tags
-			$excerpt = str_replace( ']]>', ']]&gt;', $excerpt );
-
-			// do we still have something to display?
-			if ( !empty($excerpt) ) {
-
-				// truncate excerpt
-				if ( isset($instance['post-excerpt']['words']) && $instance['post-excerpt']['words'] ) { // by words
-
-					$words = explode(" ", $excerpt, $instance['post-excerpt']['length'] + 1);
-
-					if ( count($words) > $instance['post-excerpt']['length'] ) {
-						array_pop($words);
-						$excerpt = implode(" ", $words) . "...";
-					}
-
-				} else { // by characters
-
-					if ( strlen($excerpt) > $instance['post-excerpt']['length'] ) {
-						$excerpt = mb_substr( $excerpt, 0, $instance['post-excerpt']['length'], $this->charset ) . "...";
-					}
-
-				}
-
-			}
-
-			// Balance tags, if needed
-			if ( $instance['post-excerpt']['keep_format'] ) {
-				$excerpt = force_balance_tags($excerpt);
-			}
-
-			return $excerpt;
-
-		} // _get_summary
-
-		/**
-		 * WPP shortcode handler
-		 * Since 2.0.0
-		 */
-		public function shortcode($atts = null, $content = null) {
-			/**
-			* @var String $header
-			* @var Int $limit
-			* @var String $range
-			* @var Bool $freshness
-			* @var String $order_by
-			* @var String $post_type
-			* @var String $pid
-			* @var String $cat
-			* @var String $author
-			* @var Int $title_length
-			* @var Int $title_by_words
-			* @var Int $excerpt_length
-			* @var Int $excerpt_format
-			* @var Int $excerpt_by_words
-			* @var Int $thumbnail_width
-			* @var Int $thumbnail_height
-			* @var Bool $rating
-			* @var Bool $stats_comments
-			* @var Bool $stats_views
-			* @var Bool $stats_author
-			* @var Bool $stats_date
-			* @var String $stats_date_format
-			* @var Bool $stats_category
-			* @var String $wpp_start
-			* @var String $wpp_end
-			* @var String $header_start
-			* @var String $header_end
-			* @var String $post_html
-			*/
-			extract( shortcode_atts( array(
-				'header' => '',
-				'limit' => 10,
-				'range' => 'daily',
-				'freshness' => false,
-				'order_by' => 'views',
-				'post_type' => 'post,page',
-				'pid' => '',
-				'cat' => '',
-				'author' => '',
-				'title_length' => 0,
-				'title_by_words' => 0,
-				'excerpt_length' => 0,
-				'excerpt_format' => 0,
-				'excerpt_by_words' => 0,
-				'thumbnail_width' => 0,
-				'thumbnail_height' => 0,
-				'rating' => false,
-				'stats_comments' => false,
-				'stats_views' => true,
-				'stats_author' => false,
-				'stats_date' => false,
-				'stats_date_format' => 'F j, Y',
-				'stats_category' => false,
-				'wpp_start' => '<ul class="wpp-list">',
-				'wpp_end' => '</ul>',
-				'header_start' => '<h2>',
-				'header_end' => '</h2>',
-				'post_html' => ''
-			),$atts));
-
-			// possible values for "Time Range" and "Order by"
-			$range_values = array("yesterday", "daily", "weekly", "monthly", "all");
-			$order_by_values = array("comments", "views", "avg");
-
-			$shortcode_ops = array(
-				'title' => strip_tags($header),
-				'limit' => (!empty($limit) && $this->__is_numeric($limit) && $limit > 0) ? $limit : 10,
-				'range' => (in_array($range, $range_values)) ? $range : 'daily',
-				'freshness' => empty($freshness) ? false : $freshness,
-				'order_by' => (in_array($order_by, $order_by_values)) ? $order_by : 'views',
-				'post_type' => empty($post_type) ? 'post,page' : $post_type,
-				'pid' => preg_replace('|[^0-9,]|', '', $pid),
-				'cat' => preg_replace('|[^0-9,-]|', '', $cat),
-				'author' => preg_replace('|[^0-9,]|', '', $author),
-				'shorten_title' => array(
-					'active' => (!empty($title_length) && $this->__is_numeric($title_length) && $title_length > 0),
-					'length' => (!empty($title_length) && $this->__is_numeric($title_length)) ? $title_length : 0,
-					'words' => (!empty($title_by_words) && $this->__is_numeric($title_by_words) && $title_by_words > 0),
-				),
-				'post-excerpt' => array(
-					'active' => (!empty($excerpt_length) && $this->__is_numeric($excerpt_length) && ($excerpt_length > 0)),
-					'length' => (!empty($excerpt_length) && $this->__is_numeric($excerpt_length)) ? $excerpt_length : 0,
-					'keep_format' => (!empty($excerpt_format) && $this->__is_numeric($excerpt_format) && ($excerpt_format > 0)),
-					'words' => (!empty($excerpt_by_words) && $this->__is_numeric($excerpt_by_words) && $excerpt_by_words > 0),
-				),
-				'thumbnail' => array(
-					'active' => (!empty($thumbnail_width) && $this->__is_numeric($thumbnail_width) && $thumbnail_width > 0),
-					'width' => (!empty($thumbnail_width) && $this->__is_numeric($thumbnail_width) && $thumbnail_width > 0) ? $thumbnail_width : 0,
-					'height' => (!empty($thumbnail_height) && $this->__is_numeric($thumbnail_height) && $thumbnail_height > 0) ? $thumbnail_height : 0,
-				),
-				'rating' => empty($rating) || $rating = "false" ? false : true,
-				'stats_tag' => array(
-					'comment_count' => empty($stats_comments) ? false : $stats_comments,
-					'views' => empty($stats_views) ? false : $stats_views,
-					'author' => empty($stats_author) ? false : $stats_author,
-					'date' => array(
-						'active' => empty($stats_date) ? false : $stats_date,
-						'format' => empty($stats_date_format) ? 'F j, Y' : $stats_date_format
-					),
-					'category' => empty($stats_category) ? false : $stats_category,
-				),
-				'markup' => array(
-					'custom_html' => true,
-					'wpp-start' => empty($wpp_start) ? '<ul class="wpp-list">' : $wpp_start,
-					'wpp-end' => empty($wpp_end) ? '</ul>' : $wpp_end,
-					'title-start' => empty($header_start) ? '' : $header_start,
-					'title-end' => empty($header_end) ? '' : $header_end,
-					'post-html' => empty($post_html) ? '<li>{thumb} {title} {stats}</li>' : $post_html
-				)
-			);
-
-			$shortcode_content = "\n". "<!-- WordPress Popular Posts Plugin v". $this->version ." [SC] [".$shortcode_ops['range']."] [".$shortcode_ops['order_by']."]  [custom] -->"."\n";
-
-			// is there a title defined by user?
-			if (!empty($header) && !empty($header_start) && !empty($header_end)) {
-				$shortcode_content .= htmlspecialchars_decode($header_start, ENT_QUOTES) . apply_filters('widget_title', $header) . htmlspecialchars_decode($header_end, ENT_QUOTES);
-			}
-
-			// print popular posts list
-			$shortcode_content .= $this->__get_popular_posts($shortcode_ops);
-			$shortcode_content .= "\n". "<!-- End WordPress Popular Posts Plugin v". $this->version ." -->"."\n";
-
-			return $shortcode_content;
-
-		} // end shortcode
-
-		/**
-		 * Parses content tags
-		 *
-		 * @since	1.4.6
-		 * @param	string	HTML string with content tags
-		 * @param	array	Post data
-		 * @param	bool	Used to display post rating (if functionality is available)
-		 * @return	string
-		 */
-		private function __format_content($string, $data = array(), $rating) {
-
-			if (empty($string) || (empty($data) || !is_array($data)))
-				return false;
-
-			$params = array();
-			$pattern = '/\{(excerpt|summary|stats|title|image|thumb|rating|score|url|text_title|author|category|views|comments)\}/i';
-			preg_match_all($pattern, $string, $matches);
-
-			array_map('strtolower', $matches[0]);
-
-			if ( in_array("{title}", $matches[0]) ) {
-				$string = str_replace( "{title}", $data['title'], $string );
-			}
-
-			if ( in_array("{stats}", $matches[0]) ) {
-				$string = str_replace( "{stats}", $data['stats'], $string );
-			}
-
-			if ( in_array("{excerpt}", $matches[0]) ) {
-				$string = str_replace( "{excerpt}", htmlentities($data['summary'], ENT_QUOTES, $this->charset), $string );
-			}
-
-			if ( in_array("{summary}", $matches[0]) ) {
-				$string = str_replace( "{summary}", htmlentities($data['summary'], ENT_QUOTES, $this->charset), $string );
-			}
-
-			if ( in_array("{image}", $matches[0]) ) {
-				$string = str_replace( "{image}", $data['img'], $string );
-			}
-
-			if ( in_array("{thumb}", $matches[0]) ) {
-				$string = str_replace( "{thumb}", $data['img'], $string );
-			}
-
-			// WP-PostRatings check
-			if ( $rating ) {
-				if ( function_exists('the_ratings_results') && in_array("{rating}", $matches[0]) ) {
-					$string = str_replace( "{rating}", the_ratings_results($data['id']), $string );
-				}
-
-				if ( function_exists('expand_ratings_template') && in_array("{score}", $matches[0]) ) {
-					$string = str_replace( "{score}", expand_ratings_template('%RATINGS_SCORE%', $data['id']), $string);
-					// removing the redundant plus sign
-					$string = str_replace('+', '', $string);
-				}
-			}
-
-			if ( in_array("{url}", $matches[0]) ) {
-				$string = str_replace( "{url}", $data['url'], $string );
-			}
-
-			if ( in_array("{text_title}", $matches[0]) ) {
-				$string = str_replace( "{text_title}", $data['text_title'], $string );
-			}
-
-			if ( in_array("{author}", $matches[0]) ) {
-				$string = str_replace( "{author}", $data['author'], $string );
-			}
-
-			if ( in_array("{category}", $matches[0]) ) {
-				$string = str_replace( "{category}", $data['category'], $string );
-			}
-
-			if ( in_array("{views}", $matches[0]) ) {
-				$string = str_replace( "{views}", $data['views'], $string );
-			}
-
-			if ( in_array("{comments}", $matches[0]) ) {
-				$string = str_replace( "{comments}", $data['comments'], $string );
-			}
-
-			return $string;
-
-		} // end __format_content
-
-		/**
-		 * Returns HTML list via AJAX
-		 *
-		 * @since	2.3.3
-		 * @return	string
-		 */
-		public function get_popular( ) {
-
-			if ( $this->__is_numeric($_GET['id']) && ($_GET['id'] != '') ) {
-				$id = $_GET['id'];
-			} else {
-				die("Invalid ID");
-			}
-
-			$widget_instances = $this->get_settings();
-
-			if ( isset($widget_instances[$id]) ) {
-
-				echo $this->__get_popular_posts( $widget_instances[$id] );
-
-			} else {
-
-				echo "Invalid Widget ID";
-			}
-
-			exit();
-
-		} // end get_popular
-
-		/*--------------------------------------------------*/
-		/* Helper functions
-		/*--------------------------------------------------*/
-
-		/**
-		 * Checks for valid number
-		 *
-		 * @since	2.1.6
-		 * @param	int	number
-		 * @return	bool
-		 */
-		private function __is_numeric($number){
-			return !empty($number) && is_numeric($number) && (intval($number) == floatval($number));
-		}
-
-		/**
-		 * Returns server datetime
-		 *
-		 * @since	2.1.6
-		 * @return	string
-		 */
-		private function __curdate() {
-			return gmdate( 'Y-m-d', ( time() + ( get_site_option( 'gmt_offset' ) * 3600 ) ));
-		} // end __curdate
-
-		/**
-		 * Returns mysql datetime
-		 *
-		 * @since	2.1.6
-		 * @return	string
-		 */
-		private function __now() {
-			return current_time('mysql');
-		} // end __now
-
-		/**
-		 * Returns time
-		 *
-		 * @since	2.3.0
-		 * @return	string
-		 */
-		private function __microtime_float() {
-
-			list( $msec, $sec ) = explode( ' ', microtime() );
-
-			$microtime = (float) $msec + (float) $sec;
-			return $microtime;
-
-		} // end __microtime_float
-
-		/**
-		 * Compares values
-		 *
-		 * @since	2.3.4
-		 * @param	int	a
-		 * @param	int	b
-		 * @return	int
-		 */
-		private function __sorter($a, $b) {
-
-			if ($a > 0 && $b > 0) {
-				return $a - $b;
-			} else {
-				return $b - $a;
-			}
-
-		} // end __sorter
-
-		/**
-		 * Merges two associative arrays recursively
-		 *
-		 * @since	2.3.4
-		 * @link	http://www.php.net/manual/en/function.array-merge-recursive.php#92195
-		 * @param	array	array1
-		 * @param	array	array2
-		 * @return	array
-		 */
-		private function __merge_array_r( array &$array1, array &$array2 ) {
-
-			$merged = $array1;
-
-			foreach ( $array2 as $key => &$value ) {
-
-				if ( is_array( $value ) && isset ( $merged[$key] ) && is_array( $merged[$key] ) ) {
-					$merged[$key] = $this->__merge_array_r( $merged[$key], $value );
-				} else {
-					$merged[$key] = $value;
-				}
-			}
-
-			return $merged;
-
-		} // end __merge_array_r
-
-		/**
-		 * Checks if visitor is human or bot.
-		 *
-		 * @since	3.0.0
-		 * @return	bool	FALSE if human, TRUE if bot
-		 */
-		private function __is_bot() {
-
-			if ( !isset($_SERVER['HTTP_USER_AGENT']) || empty($_SERVER['HTTP_USER_AGENT']) )
-				return true; // No UA? Bot (probably)
-
-			$user_agent = strtolower($_SERVER['HTTP_USER_AGENT']);
-
-			foreach ( $this->botlist as $bot ) {
-				if ( false !== strpos($user_agent, $bot) ) {
-					return true; // Bot
-				}
-			}
-
-			return false; // Human, I guess...
-
-		} // end __is_bot
-
-		/**
-		 * Debug function.
-		 *
-		 * @since	3.0.0
-		 * @param	mixed $v variable to display with var_dump()
-		 * @param	mixed $v,... unlimited optional number of variables to display with var_dump()
-		 */
-		private function __debug($v) {
-
-			if ( !defined('WPP_DEBUG') || !WPP_DEBUG )
-				return;
-
-			foreach (func_get_args() as $arg) {
-
-				print "<pre>";
-				var_dump($arg);
-				print "</pre>";
-
-			}
-
-		} // end __debug
-
-	} // end class
-
-}
-
-/**
- * WordPress Popular Posts template tags for use in themes.
- */
-
-/**
- * Template tag - gets views count.
- *
- * @since	2.0.3
- * @global	object	wpdb
- * @param	int		id
- * @param	string	range
- * @param	bool	number_format
- * @return	string
- */
-function wpp_get_views($id = NULL, $range = NULL, $number_format = true) {
-
-	// have we got an id?
-	if ( empty($id) || is_null($id) || !is_numeric($id) ) {
-		return "-1";
-	} else {
-		global $wpdb;
-
-		$table_name = $wpdb->prefix . "popularposts";
-
-		if ( !$range || 'all' == $range ) {
-			$query = "SELECT pageviews FROM {$table_name}data WHERE postid = '{$id}'";
-		} else {
-			$interval = "";
-
-			switch( $range ){
-				case "yesterday":
-					$interval = "1 DAY";
-				break;
-
-				case "daily":
-					$interval = "1 DAY";
-				break;
-
-				case "weekly":
-					$interval = "1 WEEK";
-				break;
-
-				case "monthly":
-					$interval = "1 MONTH";
-				break;
-
-				default:
-					$interval = "1 DAY";
-				break;
-			}
-
-			$now = current_time('mysql');
-
-			$query = "SELECT SUM(pageviews) FROM {$table_name}summary WHERE postid = '{$id}' AND last_viewed > DATE_SUB('{$now}', INTERVAL {$interval}) LIMIT 1;";
-		}
-
-		$result = $wpdb->get_var($query);
-
-		if ( !$result ) {
-			return "0";
-		}
-
-		return ($number_format) ? number_format_i18n( intval($result) ) : $result;
-	}
-
-}
-
-/**
- * Template tag - gets popular posts.
- *
- * @since	2.0.3
- * @param	mixed	args
- */
-function wpp_get_mostpopular($args = NULL) {
-
-	$shortcode = '[wpp';
-
-	if ( is_null( $args ) ) {
-		$shortcode .= ']';
-	} else {
-		if( is_array( $args ) ){
-			$atts = '';
-			foreach( $args as $key => $arg ){
-				$atts .= ' ' . $key . '="' . htmlspecialchars($arg, ENT_QUOTES, false) . '"';
-			}
-		} else {
-			$atts = trim( str_replace( "&", " ", $args  ) );
-		}
-
-		$shortcode .= ' ' . $atts . ']';
-	}
-
-	echo do_shortcode( $shortcode );
-
-}
-
-/**
- * Template tag - gets popular posts. Deprecated in 2.0.3, use wpp_get_mostpopular instead.
- *
- * @since	1.0
- * @param	mixed	args
- */
-function get_mostpopular($args = NULL) {
-	trigger_error( 'The get_mostpopular() has been deprecated since 2.0.3. Please use wpp_get_mostpopular() instead.', E_USER_WARNING );
-	return wpp_get_mostpopular($args);
-}
+<?php
+/*
+Plugin Name: WordPress Popular Posts
+Plugin URI: http://wordpress.org/extend/plugins/wordpress-popular-posts
+Description: WordPress Popular Posts is a highly customizable widget that displays the most popular posts on your blog
+Version: 3.2.3
+Author: Hector Cabrera
+Author URI: http://cabrerahector.com
+Author Email: hcabrerab@gmail.com
+Text Domain: wordpress-popular-posts
+Domain Path: /lang/
+Network: false
+License: GPLv2 or later
+License URI: http://www.gnu.org/licenses/gpl-2.0.html
+
+Copyright 2008-2015 Hector Cabrera (hcabrerab@gmail.com)
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License, version 2, as
+published by the Free Software Foundation.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+*/
+
+if ( !defined('ABSPATH') )
+	exit('Please do not load this file directly.');
+
+/**
+ * WordPress Popular Posts class.
+ */
+if ( !class_exists('WordpressPopularPosts') ) {
+
+	/**
+	 * Register plugin's activation / deactivation functions
+	 * @since 1.3
+	 */
+	register_activation_hook( __FILE__, array( 'WordpressPopularPosts', 'activate' ) );
+	register_deactivation_hook( __FILE__, array( 'WordpressPopularPosts', 'deactivate' ) );
+
+	/**
+	 * Add function to widgets_init that'll load WPP.
+	 * @since 2.0
+	 */
+	function load_wpp() {
+		register_widget( 'WordpressPopularPosts' );
+	}
+	add_action( 'widgets_init', 'load_wpp' );
+
+	class WordpressPopularPosts extends WP_Widget {
+
+		/**
+		 * Plugin version, used for cache-busting of style and script file references.
+		 *
+		 * @since	1.3.0
+		 * @var		string
+		 */
+		private $version = '3.2.3';
+
+		/**
+		 * Plugin identifier.
+		 *
+		 * @since	3.0.0
+		 * @var		string
+		 */
+		private $plugin_slug = 'wordpress-popular-posts';
+
+		/**
+		 * Instance of this class.
+		 *
+		 * @since    3.0.0
+		 * @var      object
+		 */
+		protected static $instance = NULL;
+
+		/**
+		 * Slug of the plugin screen.
+		 *
+		 * @since	3.0.0
+		 * @var		string
+		 */
+		protected $plugin_screen_hook_suffix = NULL;
+		
+		/**
+		 * Flag for singular pages.
+		 *
+		 * @since	3.1.2
+		 * @var		int
+		 */
+		private $current_post_id = 0;
+
+		/**
+		 * Plugin directory.
+		 *
+		 * @since	1.4.6
+		 * @var		string
+		 */
+		private $plugin_dir = '';
+		
+		/**
+		 * Plugin uploads directory.
+		 *
+		 * @since	3.0.4
+		 * @var		array
+		 */
+		private $uploads_dir = array();
+
+		/**
+		 * Default thumbnail.
+		 *
+		 * @since	2.2.0
+		 * @var		string
+		 */
+		private $default_thumbnail = '';
+		
+		/**
+		 * Default thumbnail sizes
+		 *
+		 * @since	3.2.2
+		 * @var		array
+		 */
+		private $default_thumbnail_sizes = array();
+
+		/**
+		 * Flag to verify if thumbnails can be created or not.
+		 *
+		 * @since	1.4.6
+		 * @var		bool
+		 */
+		private $thumbnailing = false;
+
+		/**
+		 * Flag to verify if qTrans is present.
+		 *
+		 * @since	1.4.6
+		 * @var		bool
+		 */
+		private $qTrans = false;
+
+		/**
+		 * Default charset.
+		 *
+		 * @since	2.1.4
+		 * @var		string
+		 */
+		private $charset = "UTF-8";
+
+		/**
+		 * Plugin defaults.
+		 *
+		 * @since	2.3.3
+		 * @var		array
+		 */
+		protected $defaults = array(
+			'title' => '',
+			'limit' => 10,
+			'range' => 'daily',
+			'freshness' => false,
+			'order_by' => 'views',
+			'post_type' => 'post,page',
+			'pid' => '',
+			'author' => '',
+			'cat' => '',
+			'shorten_title' => array(
+				'active' => false,
+				'length' => 25,
+				'words'	=> false
+			),
+			'post-excerpt' => array(
+				'active' => false,
+				'length' => 55,
+				'keep_format' => false,
+				'words' => false
+			),
+			'thumbnail' => array(
+				'active' => false,
+				'build' => 'manual',
+				'width' => 15,
+				'height' => 15,
+				'crop' => true
+			),
+			'rating' => false,
+			'stats_tag' => array(
+				'comment_count' => false,
+				'views' => true,
+				'author' => false,
+				'date' => array(
+					'active' => false,
+					'format' => 'F j, Y'
+				),
+				'category' => false
+			),
+			'markup' => array(
+				'custom_html' => false,
+				'wpp-start' => '&lt;ul class="wpp-list"&gt;',
+				'wpp-end' => '&lt;/ul&gt;',
+				'post-html' => '&lt;li&gt;{thumb} {title} {stats}&lt;/li&gt;',
+				'post-start' => '&lt;li&gt;',
+				'post-end' => '&lt;/li&gt;',
+				'title-start' => '&lt;h2&gt;',
+				'title-end' => '&lt;/h2&gt;'
+			)
+		);
+
+		/**
+		 * Admin page user settings defaults.
+		 *
+		 * @since	2.3.3
+		 * @var		array
+		 */
+		protected $default_user_settings = array(
+			'stats' => array(
+				'order_by' => 'views',
+				'limit' => 10,
+				'post_type' => 'post,page',
+				'freshness' => false
+			),
+			'tools' => array(
+				'ajax' => false,
+				'css' => true,
+				'link' => array(
+					'target' => '_self'
+				),
+				'thumbnail' => array(
+					'source' => 'featured',
+					'field' => '',
+					'resize' => false,
+					'default' => '',
+					'responsive' => false
+				),
+				'log' => array(
+					'level' => 1
+				),
+				'cache' => array(
+					'active' => false,
+					'interval' => array(
+						'time' => 'hour',
+						'value' => 1
+					)
+				),
+				'sampling' => array(
+					'active' => false,
+					'rate' => 100
+				)
+			)
+		);
+
+		/**
+		 * Admin page user settings.
+		 *
+		 * @since	2.3.3
+		 * @var		array
+		 */
+		private $user_settings = array();
+
+		/**
+		 * Bots list.
+		 *
+		 * @since	3.0.0
+		 * @var		array
+		 */
+		protected $botlist = array( 'bot', 'crawl', 'curl', 'facebookexternalhit', 'geturl', 'google', 'java', 'msn', 'perl', 'slurp', 'spider', 'sqworm', 'search', 'wget' );
+
+		/*--------------------------------------------------*/
+		/* Constructor
+		/*--------------------------------------------------*/
+
+		/**
+		 * Initialize the widget by setting localization, filters, and administration functions.
+		 *
+		 * @since	1.0.0
+		 */
+		public function __construct() {
+
+			// Load plugin text domain
+			add_action( 'init', array( $this, 'widget_textdomain' ) );
+
+			// Upgrade check
+			add_action( 'init', array( $this, 'upgrade_check' ) );
+			
+			// Check location on template redirect
+			add_action( 'template_redirect',  array( $this, 'is_single' ) );
+
+			// Hook fired when a new blog is activated on WP Multisite
+			add_action( 'wpmu_new_blog', array( $this, 'activate_new_site' ) );
+
+			// Notices check
+			add_action( 'admin_notices', array( $this, 'check_admin_notices' ) );
+
+			// Create the widget
+			parent::__construct(
+				'wpp',
+				'WordPress Popular Posts',
+				array(
+					'classname'		=>	'popular-posts',
+					'description'	=>	__( 'The most Popular Posts on your blog.', $this->plugin_slug )
+				)
+			);
+
+			// Get user options
+			$this->user_settings = get_site_option('wpp_settings_config');
+			if ( !$this->user_settings ) {
+				add_site_option('wpp_settings_config', $this->default_user_settings);
+				$this->user_settings = $this->default_user_settings;
+			} else {
+				$this->user_settings = $this->__merge_array_r( $this->default_user_settings, $this->user_settings );
+			}
+			
+			// Allow WP themers / coders to override data sampling status (active/inactive)
+			$this->user_settings['tools']['sampling']['active'] = apply_filters( 'wpp_data_sampling', $this->user_settings['tools']['sampling']['active'] );
+
+			// Add the options page and menu item.
+			add_action( 'admin_menu', array( $this, 'add_plugin_admin_menu' ) );
+
+			// Register admin styles and scripts
+			add_action( 'admin_print_styles', array( $this, 'register_admin_styles' ) );
+			add_action( 'admin_enqueue_scripts', array( $this, 'register_admin_scripts' ) );
+			add_action( 'admin_init', array( $this, 'thickbox_setup' ) );
+
+			// Register site styles and scripts
+			if ( $this->user_settings['tools']['css'] )
+				add_action( 'wp_enqueue_scripts', array( $this, 'register_widget_styles' ) );
+			add_action( 'wp_enqueue_scripts', array( $this, 'register_widget_scripts' ) );
+
+			// Add plugin settings link
+			add_filter( 'plugin_action_links', array( $this, 'add_plugin_settings_link' ), 10, 2 );
+
+			// Set plugin directory
+			$this->plugin_dir = plugin_dir_url(__FILE__);
+
+			// Get blog charset
+			$this->charset = get_bloginfo('charset');
+
+			// Add ajax table truncation to wp_ajax_ hook
+			add_action('wp_ajax_wpp_clear_data', array( $this, 'clear_data' ));
+			
+			// Add thumbnail cache truncation to wp_ajax_ hook
+			add_action('wp_ajax_wpp_clear_thumbnail', array( $this, 'clear_thumbnails' ));
+
+			// Add ajax hook for widget
+			add_action('wp_ajax_wpp_get_popular', array( $this, 'get_popular') );
+			add_action('wp_ajax_nopriv_wpp_get_popular', array( $this, 'get_popular') );
+
+			// Check if images can be created
+			if ( extension_loaded('ImageMagick') || (extension_loaded('GD') && function_exists('gd_info')) ) {
+				// Enable thumbnail feature
+				$this->thumbnailing = true;				
+				// Get available thumbnail size(s)
+				$this->default_thumbnail_sizes = $this->__get_image_sizes();
+			}
+
+			// Set default thumbnail
+			$this->default_thumbnail = $this->plugin_dir . "no_thumb.jpg";
+			$this->default_user_settings['tools']['thumbnail']['default'] = $this->default_thumbnail;
+
+			if ( !empty($this->user_settings['tools']['thumbnail']['default']) )
+				$this->default_thumbnail = $this->user_settings['tools']['thumbnail']['default'];
+			else
+				$this->user_settings['tools']['thumbnail']['default'] = $this->default_thumbnail;
+			
+			// Set uploads folder
+			$wp_upload_dir = wp_upload_dir();
+			$this->uploads_dir['basedir'] = $wp_upload_dir['basedir'] . "/" . $this->plugin_slug;
+			$this->uploads_dir['baseurl'] = $wp_upload_dir['baseurl'] . "/" . $this->plugin_slug;
+
+			if ( !is_dir($this->uploads_dir['basedir']) ) {
+				if ( !wp_mkdir_p($this->uploads_dir['basedir']) ) {
+					$this->uploads_dir['basedir'] = $wp_upload_dir['basedir'];
+					$this->uploads_dir['baseurl'] = $wp_upload_dir['baseurl'];
+				}
+			}
+
+			// qTrans plugin support
+			if ( function_exists('qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage') )
+				$this->qTrans = true;
+
+			// Remove post/page prefetching!
+			remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head' );
+			// Add the update hooks only if the logging conditions are met
+			if ( (0 == $this->user_settings['tools']['log']['level'] && !is_user_logged_in()) || (1 == $this->user_settings['tools']['log']['level']) || (2 == $this->user_settings['tools']['log']['level'] && is_user_logged_in()) ) {
+				
+				add_action( 'wp_head', array(&$this, 'print_ajax') );
+
+				// Register views from everyone and/or connected users
+				if ( 0 != $this->user_settings['tools']['log']['level'] )
+					add_action( 'wp_ajax_update_views_ajax', array($this, 'update_views_ajax') );
+				// Register views from everyone and/or visitors only
+				if ( 2 != $this->user_settings['tools']['log']['level'] )
+					add_action( 'wp_ajax_nopriv_update_views_ajax', array($this, 'update_views_ajax') );
+
+			}
+
+			// Add shortcode
+			add_shortcode('wpp', array(&$this, 'shortcode'));
+
+			// Enable data purging at midnight
+			add_action( 'wpp_cache_event', array($this, 'purge_data') );
+			if ( !wp_next_scheduled('wpp_cache_event') ) {
+				$tomorrow = time() + 86400;
+				$midnight  = mktime(0, 0, 0,
+					date("m", $tomorrow),
+					date("d", $tomorrow),
+					date("Y", $tomorrow));
+				wp_schedule_event( $midnight, 'daily', 'wpp_cache_event' );
+			}
+
+		} // end constructor
+
+		/*--------------------------------------------------*/
+		/* Widget API Functions
+		/*--------------------------------------------------*/
+
+		/**
+		 * Outputs the content of the widget.
+		 *
+		 * @since	1.0.0
+		 * @param	array	args		The array of form elements
+		 * @param	array	instance	The current instance of the widget
+		 */
+		public function widget( $args, $instance ) {
+
+			$this->__debug($args);
+
+			/**
+		     * @var String $name
+		     * @var String $id
+		     * @var String $description
+		     * @var String $class
+		     * @var String $before_widget
+		     * @var String $after_widget
+		     * @var String $before_title
+		     * @var String $after_title
+		     * @var String $widget_id
+		     * @var String $widget_name
+		     */
+			extract( $args, EXTR_SKIP );
+
+			$markup = ( $instance['markup']['custom_html'] || has_filter('wpp_custom_html') || has_filter('wpp_post') )
+			  ? 'custom'
+			  : 'regular';
+
+			echo "\n". "<!-- WordPress Popular Posts Plugin v{$this->version} [W] [{$instance['range']}] [{$instance['order_by']}] [{$markup}]" . ( !empty($instance['pid']) ? " [PID]" : "" ) . ( !empty($instance['cat']) ? " [CAT]" : "" ) . ( !empty($instance['author']) ? " [UID]" : "" ) . " -->" . "\n";
+
+			echo $before_widget . "\n";
+
+			// has user set a title?
+			if ( '' != $instance['title'] ) {
+
+				$title = apply_filters( 'widget_title', $instance['title'] );
+
+				if ($instance['markup']['custom_html'] && $instance['markup']['title-start'] != "" && $instance['markup']['title-end'] != "" ) {
+					echo htmlspecialchars_decode($instance['markup']['title-start'], ENT_QUOTES) . $title . htmlspecialchars_decode($instance['markup']['title-end'], ENT_QUOTES);
+				} else {
+					echo $before_title . $title . $after_title;
+				}
+			}
+
+			if ( $this->user_settings['tools']['ajax'] ) {
+				if ( empty($before_widget) || !preg_match('/id="[^"]*"/', $before_widget) ) {
+				?>
+                <p><?php _e('Error: cannot ajaxify WordPress Popular Posts on this theme. It\'s missing the <em>id</em> attribute on before_widget (see <a href="http://codex.wordpress.org/Function_Reference/register_sidebar" target="_blank" rel="nofollow">register_sidebar</a> for more).', $this->plugin_slug ); ?></p>
+                <?php
+				} else {
+				?>
+                <script type="text/javascript">//<![CDATA[
+					// jQuery is available, so proceed
+					if ( window.jQuery ) {
+						
+						jQuery(document).ready(function($){
+							$.get('<?php echo admin_url('admin-ajax.php'); ?>', {
+								action: 'wpp_get_popular',
+								id: '<?php echo $this->number; ?>'
+							}, function(data){
+								$('#<?php echo $widget_id; ?>').append(data);
+							});
+						});
+					
+					} else { // jQuery is not defined
+						if ( window.console && window.console.log )
+							window.console.log('WordPress Popular Posts: jQuery is not defined!');						
+					}
+                //]]></script>
+                <?php
+				}
+			} else {
+				echo $this->__get_popular_posts( $instance );
+			}
+
+			echo $after_widget . "\n";
+			echo "<!-- End WordPress Popular Posts Plugin v{$this->version} -->"."\n";
+
+		} // end widget
+
+		/**
+		 * Processes the widget's options to be saved.
+		 *
+		 * @since	1.0.0
+		 * @param	array	new_instance	The previous instance of values before the update.
+		 * @param	array	old_instance	The new instance of values to be generated via the update.
+		 * @return	array	instance		Updated instance.
+		 */
+		public function update( $new_instance, $old_instance ) {
+
+			$instance = $old_instance;
+
+			$instance['title'] = htmlspecialchars( stripslashes_deep(strip_tags( $new_instance['title'] )), ENT_QUOTES );
+			$instance['limit'] = ( $this->__is_numeric($new_instance['limit']) && $new_instance['limit'] > 0 )
+			  ? $new_instance['limit']
+			  : 10;
+			$instance['range'] = $new_instance['range'];
+			$instance['order_by'] = $new_instance['order_by'];
+
+			// FILTERS
+			// user did not define the custom post type name, so we fall back to default
+			$instance['post_type'] = ( '' == $new_instance['post_type'] )
+			  ? 'post,page'
+			  : $new_instance['post_type'];
+
+			$instance['freshness'] = isset( $new_instance['freshness'] );
+
+			$instance['pid'] = implode(",", array_filter(explode(",", preg_replace( '|[^0-9,]|', '', $new_instance['pid'] ))));
+			$instance['cat'] = implode(",", array_filter(explode(",", preg_replace( '|[^0-9,-]|', '', $new_instance['cat'] ))));
+			$instance['author'] = implode(",", array_filter(explode(",", preg_replace( '|[^0-9,]|', '', $new_instance['uid'] ))));
+
+			$instance['shorten_title']['words'] = $new_instance['shorten_title-words'];
+			$instance['shorten_title']['active'] = isset( $new_instance['shorten_title-active'] );
+			$instance['shorten_title']['length'] = ( $this->__is_numeric($new_instance['shorten_title-length']) && $new_instance['shorten_title-length'] > 0 )
+			  ? $new_instance['shorten_title-length']
+			  : 25;
+
+			$instance['post-excerpt']['keep_format'] = isset( $new_instance['post-excerpt-format'] );
+			$instance['post-excerpt']['words'] = $new_instance['post-excerpt-words'];
+			$instance['post-excerpt']['active'] = isset( $new_instance['post-excerpt-active'] );
+			$instance['post-excerpt']['length'] = ( $this->__is_numeric($new_instance['post-excerpt-length']) && $new_instance['post-excerpt-length'] > 0 )
+			  ? $new_instance['post-excerpt-length']
+			  : 55;
+
+			$instance['thumbnail']['active'] = false;
+			$instance['thumbnail']['width'] = 15;
+			$instance['thumbnail']['height'] = 15;
+
+			// can create thumbnails
+			if ( $this->thumbnailing ) {
+
+				$instance['thumbnail']['active'] = isset( $new_instance['thumbnail-active'] );
+				$instance['thumbnail']['build'] = $new_instance['thumbnail-size-source'];
+				
+				// Use predefined thumbnail sizes
+				if ( 'predefined' == $new_instance['thumbnail-size-source'] ) {
+					$size = $this->default_thumbnail_sizes[ $new_instance['thumbnail-size'] ];
+					$instance['thumbnail']['width'] = $size['width'];
+					$instance['thumbnail']['height'] = $size['height'];
+					$instance['thumbnail']['crop'] = $size['crop'];
+				} // Set thumbnail size manually
+				else {
+					if ($this->__is_numeric($new_instance['thumbnail-width']) && $this->__is_numeric($new_instance['thumbnail-height'])) {
+						$instance['thumbnail']['width'] = $new_instance['thumbnail-width'];
+						$instance['thumbnail']['height'] = $new_instance['thumbnail-height'];
+						$instance['thumbnail']['crop'] = true;
+					}
+				}
+
+			}
+
+			$instance['rating'] = isset( $new_instance['rating'] );
+			$instance['stats_tag']['comment_count'] = isset( $new_instance['comment_count'] );
+			$instance['stats_tag']['views'] = isset( $new_instance['views'] );
+			$instance['stats_tag']['author'] = isset( $new_instance['author'] );
+			$instance['stats_tag']['date']['active'] = isset( $new_instance['date'] );
+			$instance['stats_tag']['date']['format'] = empty($new_instance['date_format'])
+			  ? 'F j, Y'
+			  : $new_instance['date_format'];
+
+			$instance['stats_tag']['category'] = isset( $new_instance['category'] );
+			$instance['markup']['custom_html'] = isset( $new_instance['custom_html'] );
+			$instance['markup']['wpp-start'] = empty($new_instance['wpp-start'])
+			  ? htmlspecialchars( '<ul class="wpp-list">', ENT_QUOTES )
+			  : htmlspecialchars( $new_instance['wpp-start'], ENT_QUOTES );
+
+			$instance['markup']['wpp-end'] = empty($new_instance['wpp-end'])
+			  ? htmlspecialchars( '</ul>', ENT_QUOTES )
+			  : htmlspecialchars( $new_instance['wpp-end'], ENT_QUOTES );
+
+			$instance['markup']['post-html'] = empty($new_instance['post-html'])
+			  ? htmlspecialchars( '<li>{thumb} {title} {stats}</li>', ENT_QUOTES )
+			  : htmlspecialchars( $new_instance['post-html'], ENT_QUOTES );
+
+			$instance['markup']['title-start'] = empty($new_instance['title-start'])
+			  ? ''
+			  : htmlspecialchars( $new_instance['title-start'], ENT_QUOTES );
+
+			$instance['markup']['title-end'] = empty($new_instance['title-end'])
+			  ? '' :
+			  htmlspecialchars( $new_instance['title-end'], ENT_QUOTES );
+
+			return $instance;
+
+		} // end widget
+
+		/**
+		 * Generates the administration form for the widget.
+		 *
+		 * @since	1.0.0
+		 * @param	array	instance	The array of keys and values for the widget.
+		 */
+		public function form( $instance ) {
+
+			// parse instance values
+			$instance = $this->__merge_array_r(
+				$this->defaults,
+				$instance
+			);
+
+			// Display the admin form
+			include( plugin_dir_path(__FILE__) . '/views/form.php' );
+
+		} // end form
+
+		/*--------------------------------------------------*/
+		/* Public methods
+		/*--------------------------------------------------*/
+
+		/**
+		 * Loads the Widget's text domain for localization and translation.
+		 *
+		 * @since	1.0.0
+		 */
+		public function widget_textdomain() {
+
+			$domain = $this->plugin_slug;
+			$locale = apply_filters( 'plugin_locale', get_locale(), $domain );
+
+			load_textdomain( $domain, WP_LANG_DIR . '/' . $domain . '/' . $domain . '-' . $locale . '.mo' );
+			load_plugin_textdomain( $domain, FALSE, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
+
+		} // end widget_textdomain
+
+		/**
+		 * Registers and enqueues admin-specific styles.
+		 *
+		 * @since	1.0.0
+		 */
+		public function register_admin_styles() {
+
+			if ( ! isset( $this->plugin_screen_hook_suffix ) ) {
+				return;
+			}
+
+			$screen = get_current_screen();
+			if ( $screen->id == $this->plugin_screen_hook_suffix ) {
+				wp_enqueue_style( $this->plugin_slug .'-admin-styles', plugins_url( 'style/admin.css', __FILE__ ), array(), $this->version );
+			}
+
+		} // end register_admin_styles
+
+		/**
+		 * Registers and enqueues admin-specific JavaScript.
+		 *
+		 * @since	2.3.4
+		 */
+		public function register_admin_scripts() {
+
+			if ( ! isset( $this->plugin_screen_hook_suffix ) ) {
+				return;
+			}
+
+			$screen = get_current_screen();
+			if ( $screen->id == $this->plugin_screen_hook_suffix ) {
+				wp_enqueue_script( 'thickbox' );
+				wp_enqueue_style( 'thickbox' );
+				wp_enqueue_script( 'media-upload' );
+				wp_enqueue_script( $this->plugin_slug .'-admin-script', plugins_url( 'js/admin.js', __FILE__ ), array('jquery'), $this->version );
+			}
+
+		} // end register_admin_scripts
+
+		/**
+		 * Hooks into getttext to change upload button text when uploader is called by WPP.
+		 *
+		 * @since	2.3.4
+		 */
+		function thickbox_setup() {
+
+			global $pagenow;
+			if ( 'media-upload.php' == $pagenow || 'async-upload.php' == $pagenow ) {
+				add_filter( 'gettext', array( $this, 'replace_thickbox_text' ), 1, 3 );
+			}
+
+		} // end thickbox_setup
+
+		/**
+		 * Replaces upload button text when uploader is called by WPP.
+		 *
+		 * @since	2.3.4
+		 * @param	string	translated_text
+		 * @param	string	text
+		 * @param	string	domain
+		 * @return	string
+		 */
+		function replace_thickbox_text($translated_text, $text, $domain) {
+
+			if ('Insert into Post' == $text) {
+				$referer = strpos( wp_get_referer(), 'wpp_admin' );
+				if ( $referer != '' ) {
+					return __('Upload', $this->plugin_slug );
+				}
+			}
+
+			return $translated_text;
+
+		} // end replace_thickbox_text
+
+		/**
+		 * Registers and enqueues widget-specific styles.
+		 *
+		 * @since	1.0.0
+		 */
+		public function register_widget_styles() {
+
+			$theme_file = get_stylesheet_directory() . '/wpp.css';
+			$plugin_file = plugin_dir_path(__FILE__) . 'style/wpp.css';
+
+			if ( @file_exists($theme_file) ) { // user stored a custom wpp.css on theme's directory, so use it
+				wp_enqueue_style( $this->plugin_slug, get_stylesheet_directory_uri() . "/wpp.css", array(), $this->version );
+			} elseif ( @file_exists($plugin_file) ) { // no custom wpp.css, use plugin's instead
+				wp_enqueue_style( $this->plugin_slug, plugins_url( 'style/wpp.css', __FILE__ ), array(), $this->version );
+			}
+
+		} // end register_widget_styles
+		
+		/**
+		 * Registers and enqueues widget-specific scripts.
+		 */
+		public function register_widget_scripts() {
+			// We need jQuery in the front-end only when ajaxifying the widget
+			if ( $this->user_settings['tools']['ajax'] )
+				wp_enqueue_script( 'jquery' );
+		} // end register_widget_scripts
+
+		/**
+		 * Register the administration menu for this plugin into the WordPress Dashboard menu.
+		 *
+		 * @since    1.0.0
+		 */
+		public function add_plugin_admin_menu() {
+
+			$this->plugin_screen_hook_suffix = add_options_page(
+				'WordPress Popular Posts',
+				'WordPress Popular Posts',
+				'manage_options',
+				$this->plugin_slug,
+				array( $this, 'display_plugin_admin_page' )
+			);
+
+		}
+
+		/**
+		 * Render the settings page for this plugin.
+		 *
+		 * @since    1.0.0
+		 */
+		public function display_plugin_admin_page() {
+			include_once( 'views/admin.php' );
+		}
+
+		/**
+		 * Registers Settings link on plugin description.
+		 *
+		 * @since	2.3.3
+		 * @param	array	links
+		 * @param	string	file
+		 * @return	array
+		 */
+		public function add_plugin_settings_link( $links, $file ){
+
+			$this_plugin = plugin_basename(__FILE__);
+
+			if ( is_plugin_active($this_plugin) && $file == $this_plugin ) {
+				$links[] = '<a href="' . admin_url( 'options-general.php?page=wordpress-popular-posts' ) . '">Settings</a>';
+			}
+
+			return $links;
+
+		} // end add_plugin_settings_link
+
+		/*--------------------------------------------------*/
+		/* Install / activation / deactivation methods
+		/*--------------------------------------------------*/
+
+		/**
+		 * Return an instance of this class.
+		 *
+		 * @since     3.0.0
+		 * @return    object    A single instance of this class.
+		 */
+		public static function get_instance() {
+
+			// If the single instance hasn't been set, set it now.
+			if ( NULL == self::$instance ) {
+				self::$instance = new self;
+			}
+
+			return self::$instance;
+
+		} // end get_instance
+
+		/**
+		 * Fired when the plugin is activated.
+		 *
+		 * @since	1.0.0
+		 * @global	object	wpdb
+		 * @param	bool	network_wide	True if WPMU superadmin uses "Network Activate" action, false if WPMU is disabled or plugin is activated on an individual blog.
+		 */
+		public static function activate( $network_wide ) {
+
+			global $wpdb;
+
+			if ( function_exists( 'is_multisite' ) && is_multisite() ) {
+
+				// run activation for each blog in the network
+				if ( $network_wide ) {
+
+					$original_blog_id = get_current_blog_id();
+					$blogs_ids = $wpdb->get_col( "SELECT blog_id FROM {$wpdb->blogs}" );
+
+					foreach( $blogs_ids as $blog_id ) {
+						switch_to_blog( $blog_id );
+						self::__activate();
+					}
+
+					// switch back to current blog
+					switch_to_blog( $original_blog_id );
+
+					return;
+
+				}
+
+			}
+
+			self::__activate();
+
+		} // end activate
+
+		/**
+		 * Fired when a new blog is activated on WP Multisite.
+		 *
+		 * @since	3.0.0
+		 * @param	int	blog_id	New blog ID
+		 */
+		public function activate_new_site( $blog_id ){
+
+			if ( 1 !== did_action( 'wpmu_new_blog' ) )
+				return;
+
+			// run activation for the new blog
+			switch_to_blog( $blog_id );
+			self::__activate();
+
+			// switch back to current blog
+			restore_current_blog();
+
+		} // end activate_new_site
+
+		/**
+		 * On plugin activation, checks that the WPP database tables are present.
+		 *
+		 * @since	2.4.0
+		 * @global	object	wpdb
+		 */
+		private static function __activate() {
+
+			global $wpdb;
+
+			// set table name
+			$prefix = $wpdb->prefix . "popularposts";
+
+			// fresh setup
+			if ( $prefix != $wpdb->get_var("SHOW TABLES LIKE '{$prefix}data'") ) {
+				self::__do_db_tables( $prefix );
+			}
+
+		} // end __activate
+
+		/**
+		 * Fired when the plugin is deactivated.
+		 *
+		 * @since	1.0.0
+		 * @global	object	wpbd
+		 * @param	bool	network_wide	True if WPMU superadmin uses "Network Activate" action, false if WPMU is disabled or plugin is activated on an individual blog
+		 */
+		public static function deactivate( $network_wide ) {
+
+			global $wpdb;
+
+			if ( function_exists( 'is_multisite' ) && is_multisite() ) {
+
+				// Run deactivation for each blog in the network
+				if ( $network_wide ) {
+
+					$original_blog_id = get_current_blog_id();
+					$blogs_ids = $wpdb->get_col( "SELECT blog_id FROM {$wpdb->blogs}" );
+
+					foreach( $blogs_ids as $blog_id ) {
+						switch_to_blog( $blog_id );
+						self::__deactivate();
+					}
+
+					// Switch back to current blog
+					switch_to_blog( $original_blog_id );
+
+					return;
+
+				}
+
+			}
+
+			self::__deactivate();
+
+		} // end deactivate
+
+		/**
+		 * On plugin deactivation, disables the shortcode and removes the scheduled task.
+		 *
+		 * @since	2.4.0
+		 */
+		private static function __deactivate() {
+
+			remove_shortcode('wpp');
+			wp_clear_scheduled_hook('wpp_cache_event');
+
+		} // end __deactivate
+
+		/**
+		 * Checks if an upgrade procedure is required.
+		 *
+		 * @since	2.4.0
+		 */
+		public function upgrade_check(){
+
+			// Get WPP version
+			$wpp_ver = get_site_option('wpp_ver');
+
+			if ( !$wpp_ver ) {
+				add_site_option('wpp_ver', $this->version);
+			} elseif ( version_compare($wpp_ver, $this->version, '<') ) {
+				$this->__upgrade();
+			}
+
+		} // end upgrade_check
+
+		/**
+		 * On plugin upgrade, performs a number of actions: update WPP database tables structures (if needed),
+		 * run the setup wizard (if needed), and some other checks.
+		 *
+		 * @since	2.4.0
+		 * @global	object	wpdb
+		 */
+		private function __upgrade() {
+
+			global $wpdb;
+
+			// set table name
+			$prefix = $wpdb->prefix . "popularposts";
+
+			// validate the structure of the tables and create missing tables
+			self::__do_db_tables( $prefix );
+
+			// If summary is empty, import data from popularpostsdatacache
+			if ( !$wpdb->get_var("SELECT COUNT(*) FROM {$prefix}summary") ) {
+
+				// popularpostsdatacache table is still there
+				if ( $wpdb->get_var("SHOW TABLES LIKE '{$prefix}datacache'") ) {
+
+					$sql = "
+					INSERT INTO {$prefix}summary (postid, pageviews, view_date, last_viewed)
+					SELECT id, pageviews, day_no_time, day
+					FROM {$prefix}datacache
+					GROUP BY day_no_time, id
+					ORDER BY day_no_time DESC";
+
+					$result = $wpdb->query( $sql );
+
+					// Rename old caching table
+					if ( $result ) {
+						$result = $wpdb->query( "RENAME TABLE {$prefix}datacache TO {$prefix}datacache_backup;" );
+					}
+
+				}
+
+			}
+
+			// Check storage engine
+			$storage_engine_data = $wpdb->get_var("SELECT `ENGINE` FROM `information_schema`.`TABLES` WHERE `TABLE_SCHEMA`='{$wpdb->dbname}' AND `TABLE_NAME`='{$prefix}data';");
+			
+			if ( 'MyISAM' == $storage_engine_data ) {
+				$wpdb->query("ALTER TABLE {$prefix}data ENGINE=INNODB;");
+			}
+			
+			$storage_engine_summary = $wpdb->get_var("SELECT `ENGINE` FROM `information_schema`.`TABLES` WHERE `TABLE_SCHEMA`='{$wpdb->dbname}' AND `TABLE_NAME`='{$prefix}summary';");
+			
+			if ( 'MyISAM' == $storage_engine_summary ) {
+				$wpdb->query("ALTER TABLE {$prefix}summary ENGINE=INNODB;");
+			}
+
+			// Update WPP version
+			update_site_option('wpp_ver', $this->version);
+
+		} // end __upgrade
+
+		/**
+		 * Creates/updates the WPP database tables.
+		 *
+		 * @since	2.4.0
+		 * @global	object	wpdb
+		 */
+		private static function __do_db_tables( $prefix ) {
+
+			global $wpdb;
+
+			$sql = "";
+			$charset_collate = "";
+
+			if ( !empty($wpdb->charset) )
+				$charset_collate = "DEFAULT CHARACTER SET {$wpdb->charset} ";
+
+			if ( !empty($wpdb->collate) )
+				$charset_collate .= "COLLATE {$wpdb->collate}";
+
+			$sql = "
+				CREATE TABLE {$prefix}data (
+					postid bigint(20) NOT NULL,
+					day datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+					last_viewed datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+					pageviews bigint(20) DEFAULT 1,
+					PRIMARY KEY  (postid)
+				) {$charset_collate} ENGINE=INNODB;
+				CREATE TABLE {$prefix}summary (
+					ID bigint(20) NOT NULL AUTO_INCREMENT,
+					postid bigint(20) NOT NULL,
+					pageviews bigint(20) NOT NULL DEFAULT 1,
+					view_date date NOT NULL DEFAULT '0000-00-00',
+					last_viewed datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+					PRIMARY KEY  (ID),
+					UNIQUE KEY ID_date (postid,view_date),
+					KEY postid (postid),
+					KEY view_date (view_date),
+					KEY last_viewed (last_viewed)
+				) {$charset_collate} ENGINE=INNODB;";
+
+			require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
+			dbDelta($sql);
+
+		} // end __do_db_tables
+
+		/**
+		 * Checks if the technical requirements are met.
+		 *
+		 * @since	2.4.0
+		 * @link	http://wordpress.stackexchange.com/questions/25910/uninstall-activate-deactivate-a-plugin-typical-features-how-to/25979#25979
+		 * @global	string $wp_version
+		 * @return	array
+		 */
+		private function __check_requirements() {
+
+			global $wp_version;
+
+			$php_min_version = '5.2';
+			$wp_min_version = '3.8';
+			$php_current_version = phpversion();
+			$errors = array();
+
+			if ( version_compare( $php_min_version, $php_current_version, '>' ) ) {
+				$errors[] = sprintf(
+					__( 'Your PHP installation is too old. WordPress Popular Posts requires at least PHP version %1$s to function correctly. Please contact your hosting provider and ask them to upgrade PHP to %1$s or higher.', $this->plugin_slug ),
+					$php_min_version
+				);
+			}
+
+			if ( version_compare( $wp_min_version, $wp_version, '>' ) ) {
+				$errors[] = sprintf(
+					__( 'Your WordPress version is too old. WordPress Popular Posts requires at least WordPress version %1$s to function correctly. Please update your blog via Dashboard &gt; Update.', $this->plugin_slug ),
+					$wp_min_version
+				);
+			}
+
+			return $errors;
+
+		} // end __check_requirements
+
+		/**
+		 * Outputs error messages to wp-admin.
+		 *
+		 * @since	2.4.0
+		 */
+		public function check_admin_notices() {
+
+			$errors = $this->__check_requirements();
+
+			if ( empty($errors) )
+				return;
+
+			if ( isset($_GET['activate']) )
+				unset($_GET['activate']);
+
+			printf(
+				__('<div class="error"><p>%1$s</p><p><i>%2$s</i> has been <strong>deactivated</strong>.</p></div>', $this->plugin_slug),
+				join( '</p><p>', $errors ),
+				'WordPress Popular Posts'
+			);
+
+			deactivate_plugins( plugin_basename( __FILE__ ) );
+
+		} // end check_admin_notices
+
+
+		/*--------------------------------------------------*/
+		/* Plugin methods / functions
+		/*--------------------------------------------------*/
+
+		/**
+		 * Purges deleted posts from data/summary tables.
+		 *
+		 * @since	2.0.0
+		 * @global	object	$wpdb
+		 */
+		public function purge_data() {
+
+			global $wpdb;
+
+			if ( $missing = $wpdb->get_results( "SELECT v.postid AS id FROM {$wpdb->prefix}popularpostsdata v WHERE NOT EXISTS (SELECT p.ID FROM {$wpdb->posts} p WHERE v.postid = p.ID);" ) ) {
+				$to_be_deleted = '';
+
+				foreach ( $missing as $deleted )
+					$to_be_deleted .= $deleted->id . ",";
+
+				$to_be_deleted = rtrim( $to_be_deleted, "," );
+
+				$wpdb->query( "DELETE FROM {$wpdb->prefix}popularpostsdata WHERE postid IN({$to_be_deleted});" );
+				$wpdb->query( "DELETE FROM {$wpdb->prefix}popularpostssummary WHERE postid IN({$to_be_deleted});" );
+			}
+
+		} // end purge_data
+
+		/**
+		 * Truncates data and cache on demand.
+		 *
+		 * @since	2.0.0
+		 * @global	object	wpdb
+		 */
+		public function clear_data() {
+
+			$token = $_POST['token'];
+			$clear = isset($_POST['clear']) ? $_POST['clear'] : '';
+			$key = get_site_option("wpp_rand");
+
+			if (current_user_can('manage_options') && ($token === $key) && !empty($clear)) {
+				global $wpdb;
+
+				// set table name
+				$prefix = $wpdb->prefix . "popularposts";
+
+				if ($clear == 'cache') {
+					if ( $wpdb->get_var("SHOW TABLES LIKE '{$prefix}summary'") ) {
+						$wpdb->query("TRUNCATE TABLE {$prefix}summary;");
+						$this->__flush_transients();
+						_e('Success! The cache table has been cleared!', $this->plugin_slug);
+					} else {
+						_e('Error: cache table does not exist.', $this->plugin_slug);
+					}
+				} else if ($clear == 'all') {
+					if ( $wpdb->get_var("SHOW TABLES LIKE '{$prefix}data'") && $wpdb->get_var("SHOW TABLES LIKE '{$prefix}summary'") ) {
+						$wpdb->query("TRUNCATE TABLE {$prefix}data;");
+						$wpdb->query("TRUNCATE TABLE {$prefix}summary;");
+						$this->__flush_transients();
+						_e('Success! All data have been cleared!', $this->plugin_slug);
+					} else {
+						_e('Error: one or both data tables are missing.', $this->plugin_slug);
+					}
+				} else {
+					_e('Invalid action.', $this->plugin_slug);
+				}
+			} else {
+				_e('Sorry, you do not have enough permissions to do this. Please contact the site administrator for support.', $this->plugin_slug);
+			}
+
+			die();
+
+		} // end clear_data
+		
+		/**
+		 * Truncates thumbnails cache on demand.
+		 *
+		 * @since	2.0.0
+		 * @global	object	wpdb
+		 */
+		public function clear_thumbnails() {
+
+			$token = $_POST['token'];			
+			$key = get_site_option("wpp_rand");			
+
+			if ( current_user_can('manage_options') && ($token === $key) ) {
+				$wp_upload_dir = wp_upload_dir();
+				
+				if ( is_dir( $wp_upload_dir['basedir'] . "/" . $this->plugin_slug ) ) {
+					$files = glob( $wp_upload_dir['basedir'] . "/" . $this->plugin_slug . "/*" ); // get all file names
+					
+					if ( is_array($files) && !empty($files) ) {					
+						foreach($files as $file){ // iterate files
+							if ( is_file($file) )
+								@unlink($file); // delete file
+						}
+						
+						_e('Success! All files have been deleted!', $this->plugin_slug);
+					} else {
+						_e('The thumbnail cache is already empty!', $this->plugin_slug);
+					}
+				} else {
+					_e('Invalid action.', $this->plugin_slug);
+				}
+			} else {
+				_e('Sorry, you do not have enough permissions to do this. Please contact the site administrator for support.', $this->plugin_slug);
+			}
+
+			die();
+
+		} // end clear_data
+
+		/**
+		 * Updates views count on page load via AJAX.
+		 *
+		 * @since	2.0.0
+		 */
+		public function update_views_ajax(){
+
+			if ( !wp_verify_nonce($_POST['token'], 'wpp-token') || !$this->__is_numeric($_POST['wpp_id']) )
+				die("WPP: Oops, invalid request!");
+
+			$nonce = $_POST['token'];
+			$post_ID = $_POST['wpp_id'];
+
+			$exec_time = 0;
+
+			$start = $this->__microtime_float();
+			$result = $this->__update_views($post_ID);
+			$end = $this->__microtime_float();
+
+			$exec_time += round($end - $start, 6);
+
+			if ( $result ) {
+				die( "WPP: OK. Execution time: " . $exec_time . " seconds" );
+			}
+
+			die( "WPP: Oops, could not update the views count!" );
+
+		} // end update_views_ajax
+
+		/**
+		 * Outputs script to update views via AJAX.
+		 *
+		 * @since	2.0.0
+		 * @global	object	post
+		 */
+		public function print_ajax(){
+
+			if ( $this->current_post_id ) {
+				?>
+				<!-- WordPress Popular Posts v<?php echo $this->version; ?> -->
+				<script type="text/javascript">//<![CDATA[
+
+					var sampling_active = <?php echo ( $this->user_settings['tools']['sampling']['active'] ) ? 1 : 0; ?>;
+					var sampling_rate   = <?php echo intval( $this->user_settings['tools']['sampling']['rate'] ); ?>;
+					var do_request = false;
+
+					if ( !sampling_active ) {
+						do_request = true;
+					} else {
+						var num = Math.floor(Math.random() * sampling_rate) + 1;
+						do_request = ( 1 === num );
+					}
+
+					if ( do_request ) {
+
+						// Create XMLHttpRequest object and set variables
+						var xhr = ( window.XMLHttpRequest )
+						  ? new XMLHttpRequest()
+						  : new ActiveXObject( "Microsoft.XMLHTTP" ),
+						url = '<?php echo admin_url('admin-ajax.php', is_ssl() ? 'https' : 'http'); ?>',
+						params = 'action=update_views_ajax&token=<?php echo wp_create_nonce('wpp-token') ?>&wpp_id=<?php echo $this->current_post_id; ?>';
+						// Set request method and target URL
+						xhr.open( "POST", url, true );
+						// Set request header
+						xhr.setRequestHeader( "Content-type", "application/x-www-form-urlencoded" );
+						// Hook into onreadystatechange
+						xhr.onreadystatechange = function() {
+							if ( 4 === xhr.readyState && 200 === xhr.status ) {
+								if ( window.console && window.console.log ) {
+									window.console.log( xhr.responseText );
+								}
+							}
+						};
+						// Send request
+						xhr.send( params );
+
+					}
+
+				//]]></script>
+				<!-- End WordPress Popular Posts v<?php echo $this->version; ?> -->
+				<?php
+			}
+
+		} // end print_ajax
+
+		/**
+		 * Deletes cached (transient) data.
+		 *
+		 * @since	3.0.0
+		 */
+		private function __flush_transients() {
+
+			$wpp_transients = get_site_option('wpp_transients');
+
+			if ( $wpp_transients && is_array($wpp_transients) && !empty($wpp_transients) ) {
+				for ($t=0; $t < count($wpp_transients); $t++)
+					delete_transient( $wpp_transients[$t] );
+
+				update_site_option('wpp_transients', array());
+			}
+
+		} // end __flush_transients
+
+		/**
+		 * Updates views count.
+		 *
+		 * @since	1.4.0
+		 * @global	object	$wpdb
+		 * @param	int				Post ID
+		 * @return	bool|int		FALSE if query failed, TRUE on success
+		 */
+		private function __update_views($id) {
+
+			/*
+			TODO:
+			For WordPress Multisite, we must define the DIEONDBERROR constant for database errors to display like so:
+			<?php define( 'DIEONDBERROR', true ); ?>
+			*/
+
+			global $wpdb;
+			$table = $wpdb->prefix . "popularposts";
+			$wpdb->show_errors();
+
+			// WPML support, get original post/page ID
+			if ( defined('ICL_LANGUAGE_CODE') && function_exists('icl_object_id') ) {
+				global $sitepress;
+				$id = icl_object_id( $id, get_post_type( $id ), true, $sitepress->get_default_language() );
+			}
+
+			$now = $this->__now();
+			$curdate = $this->__curdate();
+			$views = ( $this->user_settings['tools']['sampling']['active'] )
+			  ? $this->user_settings['tools']['sampling']['rate']
+			  : 1;
+			
+			// Allow WP themers / coders perform an action
+			// before updating views count
+			if ( has_action( 'wpp_pre_update_views' ) )
+				do_action( 'wpp_pre_update_views', $id, $views );
+
+			// Update all-time table
+			$result1 = $wpdb->query( $wpdb->prepare(
+				"INSERT INTO {$table}data
+				(postid, day, last_viewed, pageviews) VALUES (%d, %s, %s, %d)
+				ON DUPLICATE KEY UPDATE pageviews = pageviews + %4\$d, last_viewed = '%3\$s';",
+				$id,
+				$now,
+				$now,
+				$views
+			));
+
+			// Update range (summary) table
+			$result2 = $wpdb->query( $wpdb->prepare(
+				"INSERT INTO {$table}summary
+				(postid, pageviews, view_date, last_viewed) VALUES (%d, %d, %s, %s)
+				ON DUPLICATE KEY UPDATE pageviews = pageviews + %2\$d, last_viewed = '%4\$s';",
+				$id,
+				$views,
+				$curdate,
+				$now
+			));
+
+			if ( !$result1 || !$result2 )
+				return false;
+
+			// Allow WP themers / coders perform an action
+			// after updating views count
+			if ( has_action( 'wpp_post_update_views' ) )
+				do_action( 'wpp_post_update_views', $id );
+
+			return true;
+
+		} // end __update_views
+
+		/**
+		 * Queries the database and returns the posts (if any met the criteria set by the user).
+		 *
+		 * @since	1.4.0
+		 * @global	object 		$wpdb
+		 * @param	array		Widget instance
+		 * @return	null|array	Array of posts, or null if nothing was found
+		 */
+		protected function _query_posts($instance) {
+
+			global $wpdb;
+
+			// parse instance values
+			$instance = $this->__merge_array_r(
+				$this->defaults,
+				$instance
+			);
+
+			$prefix = $wpdb->prefix . "popularposts";
+			$fields = "p.ID AS 'id', p.post_title AS 'title', p.post_date AS 'date', p.post_author AS 'uid'";
+			$from = "";
+			$where = "WHERE 1 = 1";
+			$orderby = "";
+			$groupby = "";
+			$limit = "LIMIT {$instance['limit']}";
+
+			$post_types = "";
+			$pids = "";
+			$cats = "";
+			$authors = "";
+			$content = "";
+
+			$now = $this->__now();
+
+			// post filters
+			// * freshness - get posts published within the selected time range only
+			if ( $instance['freshness'] ) {
+				switch( $instance['range'] ){
+					case "daily":
+						$where .= " AND p.post_date > DATE_SUB('{$now}', INTERVAL 1 DAY) ";
+					break;
+
+					case "weekly":
+						$where .= " AND p.post_date > DATE_SUB('{$now}', INTERVAL 1 WEEK) ";
+					break;
+
+					case "monthly":
+						$where .= " AND p.post_date > DATE_SUB('{$now}', INTERVAL 1 MONTH) ";
+					break;
+
+					default:
+						$where .= "";
+					break;
+				}
+			}
+
+			// * post types - based on code seen at https://github.com/williamsba/WordPress-Popular-Posts-with-Custom-Post-Type-Support
+			$types = explode(",", $instance['post_type']);
+			$sql_post_types = "";
+			$join_cats = true;
+
+			// if we're getting just pages, why join the categories table?
+			if ( 'page' == strtolower($instance['post_type']) ) {
+
+				$join_cats = false;
+				$where .= " AND p.post_type = '{$instance['post_type']}'";
+
+			}
+			// we're listing other custom type(s)
+			else {
+
+				if ( count($types) > 1 ) {
+
+					foreach ( $types as $post_type ) {
+						$sql_post_types .= "'{$post_type}',";
+					}
+
+					$sql_post_types = rtrim( $sql_post_types, ",");
+					$where .= " AND p.post_type IN({$sql_post_types})";
+
+				} else {
+					$where .= " AND p.post_type = '{$instance['post_type']}'";
+				}
+
+			}
+
+			// * posts exclusion
+			if ( !empty($instance['pid']) ) {
+
+				$ath = explode(",", $instance['pid']);
+
+				$where .= ( count($ath) > 1 )
+				  ? " AND p.ID NOT IN({$instance['pid']})"
+				  : " AND p.ID <> '{$instance['pid']}'";
+
+			}
+
+			// * categories
+			if ( !empty($instance['cat']) && $join_cats ) {
+
+				$cat_ids = explode(",", $instance['cat']);
+				$in = array();
+				$out = array();
+
+				for ($i=0; $i < count($cat_ids); $i++) {
+					if ($cat_ids[$i] >= 0)
+						$in[] = $cat_ids[$i];
+					else
+						$out[] = $cat_ids[$i];
+				}
+
+				$in_cats = implode(",", $in);
+				$out_cats = implode(",", $out);
+				$out_cats = preg_replace( '|[^0-9,]|', '', $out_cats );
+
+				if ($in_cats != "" && $out_cats == "") { // get posts from from given cats only
+					$where .= " AND p.ID IN (
+						SELECT object_id
+						FROM {$wpdb->term_relationships} AS r
+							 JOIN {$wpdb->term_taxonomy} AS x ON x.term_taxonomy_id = r.term_taxonomy_id
+						WHERE x.taxonomy = 'category' AND x.term_id IN({$in_cats})
+						)";
+				} else if ($in_cats == "" && $out_cats != "") { // exclude posts from given cats only
+					$where .= " AND p.ID NOT IN (
+						SELECT object_id
+						FROM {$wpdb->term_relationships} AS r
+							 JOIN {$wpdb->term_taxonomy} AS x ON x.term_taxonomy_id = r.term_taxonomy_id
+						WHERE x.taxonomy = 'category' AND x.term_id IN({$out_cats})
+						)";
+				} else { // mixed
+					$where .= " AND p.ID IN (
+						SELECT object_id
+						FROM {$wpdb->term_relationships} AS r
+							 JOIN {$wpdb->term_taxonomy} AS x ON x.term_taxonomy_id = r.term_taxonomy_id
+						WHERE x.taxonomy = 'category' AND x.term_id IN({$in_cats}) AND x.term_id NOT IN({$out_cats})
+						) ";
+				}
+
+			}
+
+			// * authors
+			if ( !empty($instance['author']) ) {
+
+				$ath = explode(",", $instance['author']);
+
+				$where .= ( count($ath) > 1 )
+				  ? " AND p.post_author IN({$instance['author']})"
+				  : " AND p.post_author = '{$instance['author']}'";
+
+			}
+
+			// All-time range
+			if ( "all" == $instance['range'] ) {
+
+				$fields .= ", p.comment_count AS 'comment_count'";
+
+				// order by comments
+				if ( "comments" == $instance['order_by'] ) {
+
+					$from = "{$wpdb->posts} p";
+					$where .= " AND p.comment_count > 0 ";
+					$orderby = " ORDER BY p.comment_count DESC";
+
+					// get views, too
+					if ( $instance['stats_tag']['views'] ) {
+
+						$fields .= ", IFNULL(v.pageviews, 0) AS 'pageviews'";
+						$from .= " LEFT JOIN {$prefix}data v ON p.ID = v.postid";
+
+					}
+
+				}
+				// order by (avg) views
+				else {
+
+					$from = "{$prefix}data v LEFT JOIN {$wpdb->posts} p ON v.postid = p.ID";
+
+					// order by views
+					if ( "views" == $instance['order_by'] ) {
+
+						$fields .= ", v.pageviews AS 'pageviews'";
+						$orderby = "ORDER BY pageviews DESC";
+
+					}
+					// order by avg views
+					elseif ( "avg" == $instance['order_by'] ) {
+
+						$fields .= ", ( v.pageviews/(IF ( DATEDIFF('{$now}', MIN(v.day)) > 0, DATEDIFF('{$now}', MIN(v.day)), 1) ) ) AS 'avg_views'";
+						$groupby = "GROUP BY v.postid";
+						$orderby = "ORDER BY avg_views DESC";
+
+					}
+
+				}
+
+			} else { // CUSTOM RANGE
+
+				$interval = "";
+
+				switch( $instance['range'] ){
+					case "daily":
+						$interval = "1 DAY";
+					break;
+
+					case "weekly":
+						$interval = "1 WEEK";
+					break;
+
+					case "monthly":
+						$interval = "1 MONTH";
+					break;
+
+					default:
+						$interval = "1 DAY";
+					break;
+				}
+
+				// order by comments
+				if ( "comments" == $instance['order_by'] ) {
+
+					$fields .= ", COUNT(c.comment_post_ID) AS 'comment_count'";
+					$from = "{$wpdb->comments} c LEFT JOIN {$wpdb->posts} p ON c.comment_post_ID = p.ID";
+					$where .= " AND c.comment_date_gmt > DATE_SUB('{$now}', INTERVAL {$interval}) AND c.comment_approved = 1 ";
+					$groupby = "GROUP BY c.comment_post_ID";
+					$orderby = "ORDER BY comment_count DESC";
+
+					if ( $instance['stats_tag']['views'] ) { // get views, too
+
+						$fields .= ", IFNULL(v.pageviews, 0) AS 'pageviews'";
+						$from .= " LEFT JOIN (SELECT postid, SUM(pageviews) AS pageviews FROM {$prefix}summary WHERE last_viewed > DATE_SUB('{$now}', INTERVAL {$interval}) GROUP BY postid) v ON p.ID = v.postid";
+
+					}
+
+				}
+				// ordered by views / avg
+				else {
+
+					$from = "{$prefix}summary v LEFT JOIN {$wpdb->posts} p ON v.postid = p.ID";
+					$where .= " AND v.last_viewed > DATE_SUB('{$now}', INTERVAL {$interval}) ";
+					$groupby = "GROUP BY v.postid";
+
+					// ordered by views
+					if ( "views" == $instance['order_by'] ) {
+						
+						$fields .= ", SUM(v.pageviews) AS 'pageviews'";
+						$orderby = "ORDER BY pageviews DESC";
+						
+					}
+					// ordered by avg views
+					elseif ( "avg" == $instance['order_by'] ) {
+
+						$fields .= ", ( SUM(v.pageviews)/(IF ( DATEDIFF('{$now}', DATE_SUB('{$now}', INTERVAL {$interval})) > 0, DATEDIFF('{$now}', DATE_SUB('{$now}', INTERVAL {$interval})), 1) ) ) AS 'avg_views' ";						
+						$orderby = "ORDER BY avg_views DESC";
+
+					}
+
+					// get comments, too
+					if ( $instance['stats_tag']['comment_count'] ) {
+
+						$fields .= ", IFNULL(c.comment_count, 0) AS 'comment_count'";
+						$from .= " LEFT JOIN (SELECT comment_post_ID, COUNT(comment_post_ID) AS 'comment_count' FROM {$wpdb->comments} WHERE comment_date_gmt > DATE_SUB('{$now}', INTERVAL {$interval}) AND comment_approved = 1 GROUP BY comment_post_ID) c ON p.ID = c.comment_post_ID";
+
+					}
+
+				}
+
+			}
+
+			// List only published, non password-protected posts
+			$where .= " AND p.post_password = '' AND p.post_status = 'publish'";
+
+			// Build query
+			$query = "SELECT {$fields} FROM {$from} {$where} {$groupby} {$orderby} {$limit};";
+
+			$this->__debug( $query );
+
+			$result = $wpdb->get_results($query);
+
+			return apply_filters( 'wpp_query_posts', $result, $instance );
+
+		} // end query_posts
+
+		/**
+		 * Returns the formatted list of posts.
+		 *
+		 * @since	3.0.0
+		 * @param	array	instance	The current instance of the widget / shortcode parameters
+		 * @return	string	HTML list of popular posts
+		 */
+		private function __get_popular_posts( $instance ) {
+
+			// Parse instance values
+			$instance = $this->__merge_array_r(
+				$this->defaults,
+				$instance
+			);
+
+			$content = "";
+
+			// Fetch posts
+			if ( !defined('WPP_ADMIN') && $this->user_settings['tools']['cache']['active'] ) {
+				$transient_name = md5(json_encode($instance));
+				$mostpopular = ( function_exists( 'is_multisite' ) && is_multisite() )
+				  ? get_site_transient( $transient_name )
+				  : get_transient( $transient_name );
+
+				$content = "\n" . "<!-- cached -->" . "\n";
+
+				// It wasn't there, so regenerate the data and save the transient
+				if ( false === $mostpopular ) {
+					$mostpopular = $this->_query_posts( $instance );
+
+					switch($this->user_settings['tools']['cache']['interval']['time']){
+						case 'minute':
+							$time = 60;
+						break;
+
+						case 'hour':
+							$time = 60 * 60;
+						break;
+
+						case 'day':
+							$time = 60 * 60 * 24;
+						break;
+
+						case 'week':
+							$time = 60 * 60 * 24 * 7;
+						break;
+
+						case 'month':
+							$time = 60 * 60 * 24 * 30;
+						break;
+
+						case 'year':
+							$time = 60 * 60 * 24 * 365;
+						break;
+					}
+
+					$expiration = $time * $this->user_settings['tools']['cache']['interval']['value'];
+
+					if ( function_exists( 'is_multisite' ) && is_multisite() )
+						set_site_transient( $transient_name, $mostpopular, $expiration );
+					else
+						set_transient( $transient_name, $mostpopular, $expiration );
+
+					$wpp_transients = get_site_option('wpp_transients');
+
+					if ( !$wpp_transients ) {
+						$wpp_transients = array( $transient_name );
+						add_site_option('wpp_transients', $wpp_transients);
+					} else {
+						if ( !in_array($transient_name, $wpp_transients) ) {
+							$wpp_transients[] = $transient_name;
+							update_site_option('wpp_transients', $wpp_transients);
+						}
+					}
+				}
+			} else {
+				$mostpopular = $this->_query_posts( $instance );
+			}
+
+			// No posts to show
+			if ( !is_array($mostpopular) || empty($mostpopular) ) {
+				return "<p class=\"wpp-no-data\">".__('Sorry. No data so far.', $this->plugin_slug)."</p>";
+			}
+
+			// Allow WP themers / coders access to raw data
+			// so they can build their own output
+			if ( has_filter( 'wpp_custom_html' ) && !defined('WPP_ADMIN') ) {
+				return apply_filters( 'wpp_custom_html', $mostpopular, $instance );
+			}
+
+			// HTML wrapper
+			if ($instance['markup']['custom_html']) {
+				$content .= "\n" . htmlspecialchars_decode($instance['markup']['wpp-start'], ENT_QUOTES) ."\n";
+			} else {
+				$content .= "\n" . "<ul class=\"wpp-list\">" . "\n";
+			}
+
+			// Loop through posts
+			foreach($mostpopular as $p) {
+				$content .= $this->__render_popular_post( $p, $instance );
+			}
+
+			// END HTML wrapper
+			if ($instance['markup']['custom_html']) {
+				$content .= "\n". htmlspecialchars_decode($instance['markup']['wpp-end'], ENT_QUOTES) ."\n";
+			} else {
+				$content .= "\n". "</ul>". "\n";
+			}
+
+			return $content;
+
+		} // end __get_popular_posts
+
+		/**
+		 * Returns the formatted post.
+		 *
+		 * @since	3.0.0
+		 * @param	object	p
+		 * @param	array	instance	The current instance of the widget / shortcode parameters
+		 * @return	string
+		 */
+		private function __render_popular_post($p, $instance) {
+
+			// WPML support, based on Serhat Evren's suggestion - see http://wordpress.org/support/topic/wpml-trick#post-5452607
+			if ( defined('ICL_LANGUAGE_CODE') && function_exists('icl_object_id') ) {
+				$current_id = icl_object_id( $p->id, get_post_type( $p->id ), true, ICL_LANGUAGE_CODE );
+				$permalink = get_permalink( $current_id );
+			} // Get original permalink
+			else {
+				$permalink = get_permalink($p->id);
+			}
+
+			$title = $this->_get_title($p, $instance);
+			$title_sub = $this->_get_title_sub($p, $instance);
+
+			$author = $this->_get_author($p, $instance);
+			$post_cat = $this->_get_post_cat($p, $instance);
+
+			$thumb = $this->_get_thumb($p, $instance);
+			$excerpt = $this->_get_excerpt($p, $instance);
+
+			$pageviews = $this->_get_pageviews($p, $instance);
+			$comments = $this->_get_comments($p, $instance);
+			$rating = $this->_get_rating($p, $instance);
+			$date = $this->_get_date($p, $instance);
+
+			$_stats = join(' | ', $this->_get_stats($p, $instance));
+
+			// PUTTING IT ALL TOGETHER
+			// build custom layout
+			if ($instance['markup']['custom_html']) {
+
+				$data = array(
+					'title' => '<a href="'.$permalink.'" title="'. esc_attr($title) .'" class="wpp-post-title" target="' . $this->user_settings['tools']['link']['target'] . '">'.$title_sub.'</a>',
+					'summary' => $excerpt,
+					'stats' => $_stats,
+					'img' => ( !empty($thumb) ) ? '<a href="'.$permalink.'" title="'. esc_attr($title) .'" target="' . $this->user_settings['tools']['link']['target'] . '">' . $thumb . '</a>' : '',
+					'img_no_link' => $thumb,
+					'id' => $p->id,
+					'url' => $permalink,
+					'text_title' => esc_attr($title),
+					'category' => $post_cat,
+					'author' => '<a href="' . get_author_posts_url($p->uid) . '">' . $author . '</a>',
+					'views' => ($instance['order_by'] == "views" || $instance['order_by'] == "comments") ? number_format_i18n( $pageviews ) : number_format_i18n( $pageviews, 2 ),
+					'comments' => number_format_i18n( $comments ),
+					'date' => $date
+				);
+
+				$content = $this->__format_content( htmlspecialchars_decode($instance['markup']['post-html'], ENT_QUOTES ), $data, $instance['rating'] ). "\n";
+
+			}
+			// build regular layout
+			else {
+				$thumb = ( !empty($thumb) ) 
+				  ? '<a ' . ( ( $this->current_post_id == $p->id ) ? '' : 'href="' . $permalink . '"' ) . ' title="' . esc_attr($title) . '" target="' . $this->user_settings['tools']['link']['target'] . '">' . $thumb . '</a> '
+				  : '';
+				
+				$_stats = ( !empty($_stats) ) 
+				  ? ' <span class="post-stats">' . $_stats . '</span> '
+				  : '';
+				
+				$content =
+					'<li>'
+					. $thumb
+					. '<a ' . ( ( $this->current_post_id == $p->id ) ? '' : 'href="' . $permalink . '"' ) . ' title="' . esc_attr($title) . '" class="wpp-post-title" target="' . $this->user_settings['tools']['link']['target'] . '">' . $title_sub . '</a> '
+					. $excerpt . $_stats
+					. $rating
+					. "</li>\n";
+			}
+
+			return apply_filters('wpp_post', $content, $p, $instance);
+
+		} // end __render_popular_post
+
+		/**
+		 * Cache.
+		 *
+		 * @since	3.0.0
+		 * @param	string $func function name
+		 * @param	mixed $default
+		 * @return	mixed
+		 */
+		private function &__cache($func, $default = null) {
+
+			static $cache;
+
+			if ( !isset($cache) ) {
+				$cache = array();
+			}
+
+			if ( !isset($cache[$func]) ) {
+				$cache[$func] = $default;
+			}
+
+			return $cache[$func];
+
+		} // end __cache
+
+		/**
+		 * Gets post title.
+		 *
+		 * @since	3.0.0
+		 * @param	object	p
+		 * @param	array	instance	The current instance of the widget / shortcode parameters
+		 * @return	string
+		 */
+		protected function _get_title($p, $instance) {
+
+			$cache = &$this->__cache(__FUNCTION__, array());
+
+			if ( isset($cache[$p->id]) ) {
+				return $cache[$p->id];
+			}
+
+			// WPML support, based on Serhat Evren's suggestion - see http://wordpress.org/support/topic/wpml-trick#post-5452607
+			if ( defined('ICL_LANGUAGE_CODE') && function_exists('icl_object_id') ) {
+				$current_id = icl_object_id( $p->id, get_post_type( $p->id ), true, ICL_LANGUAGE_CODE );
+				$title = get_the_title( $current_id );
+			} // Check for qTranslate
+			else if ( $this->qTrans && function_exists('qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage') ) {
+				$title = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage( $p->title );
+			} // Use ol' plain title
+			else {
+				$title = $p->title;
+			}
+
+			// Strip HTML tags
+			$title = strip_tags($title);
+
+			return $cache[$p->id] = apply_filters('the_title', $title, $p->id);
+
+		} // end _get_title
+
+		/**
+		 * Gets substring of post title.
+		 *
+		 * @since	3.0.0
+		 * @param	object	p
+		 * @param	array	instance	The current instance of the widget / shortcode parameters
+		 * @return	string
+		 */
+		protected function _get_title_sub($p, $instance) {
+
+			$cache = &$this->__cache(__FUNCTION__, array());
+
+			if ( isset($cache[$p->id]) ) {
+				return $cache[$p->id];
+			}
+
+			// TITLE
+			$title_sub = $this->_get_title($p, $instance);
+
+			// truncate title
+			if ($instance['shorten_title']['active']) {
+				// by words
+				if (isset($instance['shorten_title']['words']) && $instance['shorten_title']['words']) {
+
+					$words = explode(" ", $title_sub, $instance['shorten_title']['length'] + 1);
+					if (count($words) > $instance['shorten_title']['length']) {
+						array_pop($words);
+						$title_sub = implode(" ", $words) . "...";
+					}
+
+				}
+				elseif (strlen($title_sub) > $instance['shorten_title']['length']) {
+					$title_sub = mb_substr($title_sub, 0, $instance['shorten_title']['length'], $this->charset) . "...";
+				}
+			}
+
+			return $cache[$p->id] = $title_sub;
+
+		} // end _get_title_sub
+
+		/**
+		 * Gets post's excerpt.
+		 *
+		 * @since	3.0.0
+		 * @param	object	p
+		 * @param	array	instance	The current instance of the widget / shortcode parameters
+		 * @return	string
+		 */
+		protected function _get_excerpt($p, $instance) {
+
+			$excerpt = '';
+
+			// EXCERPT
+			if ($instance['post-excerpt']['active']) {
+
+				$excerpt = trim($this->_get_summary($p->id, $instance));
+
+				if (!empty($excerpt) && !$instance['markup']['custom_html']) {
+					$excerpt = '<span class="wpp-excerpt">' . $excerpt . '</span>';
+				}
+
+			}
+
+			return $excerpt;
+
+		} // end _get_excerpt
+
+		/**
+		 * Gets post's thumbnail.
+		 *
+		 * @since	3.0.0
+		 * @param	object	p
+		 * @param	array	instance	The current instance of the widget / shortcode parameters
+		 * @return	string
+		 */
+		protected function _get_thumb($p, $instance) {
+
+			if ( !$instance['thumbnail']['active'] || !$this->thumbnailing ) {
+				return '';
+			}
+
+			$tbWidth = $instance['thumbnail']['width'];
+			$tbHeight = $instance['thumbnail']['height'];
+			$crop = $instance['thumbnail']['crop'];
+			$title = $this->_get_title($p, $instance);
+
+			$thumb = '';
+
+			// get image from custom field
+			if ($this->user_settings['tools']['thumbnail']['source'] == "custom_field") {
+				$path = get_post_meta($p->id, $this->user_settings['tools']['thumbnail']['field'], true);
+
+				if ($path != '') {
+					// user has requested to resize cf image
+					if ( $this->user_settings['tools']['thumbnail']['resize'] ) {
+						$thumb .= $this->__get_img($p, null, $path, array($tbWidth, $tbHeight), $crop, $this->user_settings['tools']['thumbnail']['source'], $title);
+					}
+					// use original size
+					else {
+						$thumb .= $this->_render_image($path, array($tbWidth, $tbHeight), 'wpp-thumbnail wpp_cf', $title);
+					}
+				}
+				else {
+					$thumb .= $this->_render_image($this->default_thumbnail, array($tbWidth, $tbHeight), 'wpp-thumbnail wpp_cf_def', $title);
+				}
+			}
+			// get image from post / Featured Image
+			else {
+
+				// User wants to use the Featured Image using the 'stock' sizes, get stock thumbnails
+				if ( 'predefined' == $instance['thumbnail']['build'] && 'featured' == $this->user_settings['tools']['thumbnail']['source'] ) {
+
+					// The has_post_thumbnail() functions requires theme's 'post-thumbnails' support, otherwise an error will be thrown
+					if ( current_theme_supports( 'post-thumbnails' ) ) {
+
+						// Featured image found, retrieve it
+						if ( has_post_thumbnail($p->id) ) {
+							$size = null;
+
+							foreach ( $this->default_thumbnail_sizes as $name => $attr ) :
+								if ( $attr['width'] == $tbWidth && $attr['height'] == $tbHeight && $attr['crop'] == $crop ) {
+									$size = $name;
+									break;
+								}
+							endforeach;
+
+							// Couldn't find a matching size (this should like never happen, but...) let's use width & height instead
+							if ( null == $size ) {
+								$size = array( $tbWidth, $tbHeight );
+							}
+							
+							if ( $this->user_settings['tools']['thumbnail']['responsive'] )
+								$thumb .= preg_replace( '/(width|height)=["\']\d*["\']\s?/', "", get_the_post_thumbnail($p->id, $size, array( 'class' => 'wpp-thumbnail wpp_featured_stock' )) );
+							else
+								$thumb .= get_the_post_thumbnail( $p->id, $size, array( 'class' => 'wpp-thumbnail wpp_featured_stock' ) );
+						}
+						// No featured image found
+						else {
+							$thumb .= $this->_render_image($this->default_thumbnail, array($tbWidth, $tbHeight), 'wpp-thumbnail wpp_featured_def', $title);
+						}
+
+					} // Current theme does not support 'post-thumbnails' feature
+					else {
+						$thumb .= $this->_render_image($this->default_thumbnail, array($tbWidth, $tbHeight), 'wpp-thumbnail wpp_featured_def', $title, 'No post-thumbnail support?');
+					}
+
+				}
+				// Get/generate custom thumbnail
+				else {
+					$thumb .= $this->__get_img($p, $p->id, null, array($tbWidth, $tbHeight), $crop, $this->user_settings['tools']['thumbnail']['source'], $title);
+				}
+
+			}
+
+			return $thumb;
+
+		} // end _get_thumb
+
+		/**
+		 * Gets post's views.
+		 *
+		 * @since	3.0.0
+		 * @param	object	p
+		 * @param	array	instance	The current instance of the widget / shortcode parameters
+		 * @return	int|float
+		 */
+		protected function _get_pageviews($p, $instance) {
+
+			$pageviews = 0;
+
+			if (
+				$instance['order_by'] == "views"
+				|| $instance['order_by'] == "avg"
+				|| $instance['stats_tag']['views']
+			) {
+				$pageviews = ($instance['order_by'] == "views" || $instance['order_by'] == "comments")
+				? $p->pageviews
+				: $p->avg_views;
+			}
+
+			return $pageviews;
+
+		} // end _get_pageviews
+
+		/**
+		 * Gets post's comment count.
+		 *
+		 * @since	3.0.0
+		 * @param	object	p
+		 * @param	array	instance	The current instance of the widget / shortcode parameters
+		 * @return	int
+		 */
+		protected function _get_comments($p, $instance) {
+
+			$comments = ($instance['order_by'] == "comments" || $instance['stats_tag']['comment_count'])
+			  ? $p->comment_count 
+			  : 0;
+
+			return $comments;
+
+		} // end _get_comments
+
+		/**
+		 * Gets post's rating.
+		 *
+		 * @since	3.0.0
+		 * @param	object	p
+		 * @param	array	instance	The current instance of the widget / shortcode parameters
+		 * @return	string
+		 */
+		protected function _get_rating($p, $instance) {
+
+			$cache = &$this->__cache(__FUNCTION__, array());
+
+			if ( isset($cache[$p->id]) ) {
+				return $cache[$p->id];
+			}
+
+			$rating = '';
+
+			// RATING
+			if (function_exists('the_ratings') && $instance['rating']) {
+				$rating = '<span class="wpp-rating">' . the_ratings('span', $p->id, false) . '</span>';
+			}
+
+			return $cache[$p->id] = $rating;
+		} // end _get_rating
+
+		/**
+		 * Gets post's author.
+		 *
+		 * @since	3.0.0
+		 * @param	object	p
+		 * @param	array	instance	The current instance of the widget / shortcode parameters
+		 * @return	string
+		 */
+		protected function _get_author($p, $instance) {
+
+			$cache = &$this->__cache(__FUNCTION__, array());
+
+			if ( isset($cache[$p->id]) ) {
+				return $cache[$p->id];
+			}
+
+			$author = ($instance['stats_tag']['author'])
+			  ? get_the_author_meta('display_name', $p->uid)
+			  : "";
+
+			return $cache[$p->id] = $author;
+
+		} // end _get_author
+
+		/**
+		 * Gets post's date.
+		 *
+		 * @since	3.0.0
+		 * @param	object	p
+		 * @param	array	instance	The current instance of the widget / shortcode parameters
+		 * @return	string
+		 */
+		protected function _get_date($p, $instance) {
+
+			$cache = &$this->__cache(__FUNCTION__, array());
+
+			if ( isset($cache[$p->id]) ) {
+				return $cache[$p->id];
+			}
+
+			$date = date_i18n($instance['stats_tag']['date']['format'], strtotime($p->date));
+			return $cache[$p->id] = $date;
+
+		} // end _get_date
+
+		/**
+		 * Gets post's category.
+		 *
+		 * @since	3.0.0
+		 * @param	object	p
+		 * @param	array	instance	The current instance of the widget / shortcode parameters
+		 * @return	string
+		 */
+		protected function _get_post_cat($p, $instance) {
+
+			$post_cat = '';
+
+            if ($instance['stats_tag']['category']) {
+				
+				$cache = &$this->__cache(__FUNCTION__, array());
+
+				if ( isset($cache[$p->id]) ) {
+					return $cache[$p->id];
+				}
+
+                // Try and get parent category
+                $cats = get_the_category($p->id);
+
+                foreach( $cats as $cat ) {
+                    if( $cat->category_parent == 0) {
+                        $post_cat = $cat;
+                    }
+                }
+
+                // Default to first category avaliable
+                if ( $post_cat == "" && isset($cats[0]) && isset($cats[0]->slug) ) {
+                    $post_cat = $cats[0];
+                }
+				
+				// Build category tag
+				if ( "" != $post_cat ) {
+					
+					$category_id = $post_cat->term_id;
+					$category_name = $post_cat->cat_name;
+					
+					// WPML support, based on Serhat Evren's suggestion - see http://wordpress.org/support/topic/wpml-trick#post-5452607
+					if ( defined('ICL_LANGUAGE_CODE') && function_exists('icl_object_id') ) {
+						$category_id = icl_object_id( $category_id, 'category', true, ICL_LANGUAGE_CODE );
+						$category_name = get_the_category_by_ID( $category_id );
+					}
+					
+					$post_cat = '<a href="' . get_category_link( $category_id ) . '" class="cat-id-' . $category_id . '">' . $category_name . '</a>';
+					
+				}
+				
+				return $cache[$p->id] = $post_cat;
+
+			}
+
+			return $post_cat;
+
+		} // end _get_post_cat
+
+		/**
+		 * Gets statistics data.
+		 *
+		 * @since	3.0.0
+		 * @param	object	p
+		 * @param	array	instance	The current instance of the widget / shortcode parameters
+		 * @return	array
+		 */
+		protected function _get_stats($p, $instance) {
+
+			$cache = &$this->__cache(__FUNCTION__ . md5(json_encode($instance)), array());
+
+			if ( isset($cache[$p->id]) ) {
+				return $cache[$p->id];
+			}
+
+			$stats = array();
+
+			// STATS
+			// comments
+			if ($instance['stats_tag']['comment_count']) {
+				$comments = $this->_get_comments($p, $instance);
+
+				$comments_text = sprintf(
+				_n('1 comment', '%s comments', $comments, $this->plugin_slug),
+				number_format_i18n( $comments )
+				);
+				
+			}
+
+			// views
+			if ($instance['stats_tag']['views']) {
+				$pageviews = $this->_get_pageviews($p, $instance);
+
+				if ($instance['order_by'] == 'avg') {
+					$views_text = sprintf(
+					_n('1 view per day', '%s views per day', $pageviews, $this->plugin_slug),
+					number_format_i18n( $pageviews, 2 )
+					);
+				}
+				else {
+					$views_text = sprintf(
+					_n('1 view', '%s views', $pageviews, $this->plugin_slug),
+					number_format_i18n( $pageviews )
+					);
+				}
+				
+			}
+			
+			if ( "comments" == $instance['order_by'] ) {
+				if ($instance['stats_tag']['comment_count'])
+					$stats[] = '<span class="wpp-comments">' . $comments_text . '</span>'; // First comments count
+				if ($instance['stats_tag']['views'])
+					$stats[] = '<span class="wpp-views">' . $views_text . "</span>"; // ... then views
+			} else {
+				if ($instance['stats_tag']['views'])
+					$stats[] = '<span class="wpp-views">' . $views_text . "</span>"; // First views count
+				if ($instance['stats_tag']['comment_count'])
+					$stats[] = '<span class="wpp-comments">' . $comments_text . '</span>'; // ... then comments
+			}
+
+			// author
+			if ($instance['stats_tag']['author']) {
+				$author = $this->_get_author($p, $instance);
+				$display_name = '<a href="' . get_author_posts_url($p->uid) . '">' . $author . '</a>';
+				$stats[] = '<span class="wpp-author">' . sprintf(__('by %s', $this->plugin_slug), $display_name).'</span>';
+			}
+
+			// date
+			if ($instance['stats_tag']['date']['active']) {
+				$date = $this->_get_date($p, $instance);
+				$stats[] = '<span class="wpp-date">' . sprintf(__('posted on %s', $this->plugin_slug), $date) . '</span>';
+			}
+
+			// category
+			if ($instance['stats_tag']['category']) {
+				$post_cat = $this->_get_post_cat($p, $instance);
+
+				if ($post_cat != '') {
+					$stats[] = '<span class="wpp-category">' . sprintf(__('under %s', $this->plugin_slug), $post_cat) . '</span>';
+				}
+			}
+
+			return $cache[$p->id] = $stats;
+
+		} // end _get_stats
+
+		/**
+		 * Retrieves / creates the post thumbnail.
+		 *
+		 * @since	2.3.3
+		 * @param	int	id			Post ID
+		 * @param	string	url		Image URL
+		 * @param	array	dim		Thumbnail width & height
+		 * @param	string	source	Image source
+		 * @return	string
+		 */
+		private function __get_img($p, $id = null, $url = null, $dim = array(80, 80), $crop = true, $source = "featured", $title) {
+
+			if ( (!$id || empty($id) || !$this->__is_numeric($id)) && (!$url || empty($url)) ) {
+				return $this->_render_image($this->default_thumbnail, $dim, 'wpp-thumbnail wpp_def_noID', $title);
+			}
+
+			// Get image by post ID (parent)
+			if ( $id ) {
+				$file_path = $this->__get_image_file_paths($id, $source);
+
+				// No images found, return default thumbnail
+				if ( !$file_path ) {
+					return $this->_render_image($this->default_thumbnail, $dim, 'wpp-thumbnail wpp_def_noPath wpp_' . $source, $title);
+				}
+			}
+			// Get image from URL
+			else {
+				// sanitize URL, just in case
+				$image_url = esc_url( $url );
+				// remove querystring
+				preg_match('/[^\?]+\.(jpg|JPG|jpe|JPE|jpeg|JPEG|gif|GIF|png|PNG)/', $image_url, $matches);
+				$image_url = $matches[0];
+
+				$attachment_id = $this->__get_attachment_id($image_url);
+
+				// Image is hosted locally
+				if ( $attachment_id ) {
+					$file_path = get_attached_file($attachment_id);
+				}
+				// Image is hosted outside WordPress
+				else {
+					$external_image = $this->__fetch_external_image($p->id, $image_url);
+
+					if ( !$external_image ) {
+						return $this->_render_image($this->default_thumbnail, $dim, 'wpp-thumbnail wpp_def_noPath wpp_no_external', $title);
+					}
+
+					$file_path = $external_image;
+				}
+			}
+
+			$file_info = pathinfo($file_path);
+
+			// there is a thumbnail already
+			if ( file_exists(trailingslashit($this->uploads_dir['basedir']) . $p->id . '-' . $source . '-' . $dim[0] . 'x' . $dim[1] . '.' . $file_info['extension']) ) {
+				return $this->_render_image( trailingslashit($this->uploads_dir['baseurl']) . $p->id . '-' . $source . '-' . $dim[0] . 'x' . $dim[1] . '.' . $file_info['extension'], $dim, 'wpp-thumbnail wpp_cached_thumb wpp_' . $source, $title );
+			}
+
+			return $this->__image_resize($p, $file_path, $dim, $crop, $source);
+
+		} // end __get_img
+
+		/**
+		 * Resizes image.
+		 *
+		 * @since	3.0.0
+		 * @param	object	p			Post object
+		 * @param	string	path		Image path		 
+		 * @param	array	dimension	Image's width and height
+		 * @param	string	source		Image source
+		 * @return	string
+		 */
+		private function __image_resize($p, $path, $dimension, $crop, $source) {
+
+			$image = wp_get_image_editor($path);
+
+			// valid image, create thumbnail
+			if ( !is_wp_error($image) ) {
+				$file_info = pathinfo($path);
+
+				$image->resize($dimension[0], $dimension[1], $crop);
+				$new_img = $image->save( trailingslashit($this->uploads_dir['basedir']) . $p->id . '-' . $source . '-' . $dimension[0] . 'x' . $dimension[1] . '.' . $file_info['extension'] );
+
+				if ( is_wp_error($new_img) ) {
+					return $this->_render_image($this->default_thumbnail, $dimension, 'wpp-thumbnail wpp_imgeditor_error wpp_' . $source, '', $new_img->get_error_message());
+				}
+
+				return $this->_render_image( trailingslashit($this->uploads_dir['baseurl']) . $new_img['file'], $dimension, 'wpp-thumbnail wpp_imgeditor_thumb wpp_' . $source, '');
+			}
+
+			// ELSE
+			// image file path is invalid
+			return $this->_render_image($this->default_thumbnail, $dimension, 'wpp-thumbnail wpp_imgeditor_error wpp_' . $source, '', $image->get_error_message());
+
+		} // end __image_resize
+
+		/**
+		 * Get image absolute path / URL.
+		 *
+		 * @since	3.0.0
+		 * @param	int	id			Post ID
+		 * @param	string	source	Image source
+		 * @return	array
+		 */
+		private function __get_image_file_paths($id, $source) {
+
+			$file_path = '';
+
+			// get thumbnail path from the Featured Image
+			if ($source == "featured") {
+
+				// thumb attachment ID
+				$thumbnail_id = get_post_thumbnail_id($id);
+
+				if ($thumbnail_id) {
+					// image path
+					return get_attached_file($thumbnail_id);
+				}
+
+			}
+			// get thumbnail path from post content
+			elseif ($source == "first_image") {
+
+				/** @var wpdb $wpdb */
+				global $wpdb;
+
+				$content = $wpdb->get_results("SELECT post_content FROM {$wpdb->posts} WHERE ID = " . $id, ARRAY_A);
+				$count = substr_count($content[0]['post_content'], '<img');
+
+				// images have been found
+				// TODO: try to merge these conditions into one IF.
+				if ($count > 0) {
+
+					preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $content[0]['post_content'], $content_images);
+
+					if (isset($content_images[1][0])) {
+						$attachment_id = $this->__get_attachment_id($content_images[1][0]);
+
+						// image from Media Library
+						if ($attachment_id) {
+							$file_path = get_attached_file($attachment_id);
+							// There's a file path, so return it
+							if ( !empty($file_path) )
+								return $file_path;
+						} // external image?
+						else {
+							$external_image = $this->__fetch_external_image($id, $content_images[1][0]);
+							if ( $external_image ) {
+								return $external_image;
+							}
+						}
+					}
+				}
+
+			}
+
+			return false;
+
+		} // end __get_image_file_paths
+
+		/**
+		 * Render image tag.
+		 *
+		 * @since	3.0.0
+		 * @param	string	src			Image URL
+		 * @param	array	dimension	Image's width and height
+		 * @param	string	class		CSS class
+		 * @param	string	title		Image's title/alt attribute
+		 * @param	string	error		Error, if the image could not be created
+		 * @return	string
+		 */
+		protected function _render_image($src, $dimension, $class, $title = "", $error = null) {
+
+			$msg = '';
+
+			if ($error) {
+				$msg = '<!-- ' . $error . ' --> ';
+			}
+
+			return apply_filters( 'wpp_render_image', $msg .
+			'<img src="' . $src . '" ' . ( false == $this->user_settings['tools']['thumbnail']['responsive'] ? 'width=' . $dimension[0] . ' height=' . $dimension[1] : '' ) . ' title="' . esc_attr($title) . '" alt="' . esc_attr($title) . '" class="' . $class . '" />' );
+
+		} // _render_image
+
+		/**
+		* Get the Attachment ID for a given image URL.
+		*
+		* @since	3.0.0
+		* @author	Frankie Jarrett
+		* @link		http://frankiejarrett.com/get-an-attachment-id-by-url-in-wordpress/
+		* @param	string	url
+		* @return	bool|int
+		*/
+		private function __get_attachment_id($url) {
+
+			// Split the $url into two parts with the wp-content directory as the separator.
+			$parse_url  = explode( parse_url( WP_CONTENT_URL, PHP_URL_PATH ), $url );
+
+			// Get the host of the current site and the host of the $url, ignoring www.
+			$this_host = str_ireplace( 'www.', '', parse_url( home_url(), PHP_URL_HOST ) );
+			$file_host = str_ireplace( 'www.', '', parse_url( $url, PHP_URL_HOST ) );
+
+			// Return nothing if there aren't any $url parts or if the current host and $url host do not match.
+			if ( ! isset( $parse_url[1] ) || empty( $parse_url[1] ) || ( $this_host != $file_host ) ) {
+				return false;
+			}
+
+			// Now we're going to quickly search the DB for any attachment GUID with a partial path match.
+			// Example: /uploads/2013/05/test-image.jpg
+			global $wpdb;
+
+			if ( !$attachment = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM {$wpdb->prefix}posts WHERE guid RLIKE %s;", $parse_url[1] ) ) ) {
+				// Maybe it's a resized image, so try to get the full one
+				$parse_url[1] = preg_replace( '/-[0-9]{1,4}x[0-9]{1,4}\.(jpg|jpeg|png|gif|bmp)$/i', '.$1', $parse_url[1] );
+				$attachment = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM {$wpdb->prefix}posts WHERE guid RLIKE %s;", $parse_url[1] ) );
+			}
+
+			// Returns null if no attachment is found.
+			return isset($attachment[0]) ? $attachment[0] : NULL;
+
+		} // __get_attachment_id
+
+		/**
+		* Fetchs external images.
+		*
+		* @since 2.3.3
+		* @param	string	url
+		* @return	bool|int
+		*/
+		private function __fetch_external_image($id, $url){
+
+			$full_image_path = trailingslashit( $this->uploads_dir['basedir'] ) . "{$id}_". sanitize_file_name( rawurldecode(wp_basename( $url )) );
+
+			// if the file exists already, return URL and path
+			if ( file_exists($full_image_path) )
+				return $full_image_path;
+
+			$accepted_status_codes = array( 200, 301, 302 );
+			$response = wp_remote_head( $url, array( 'timeout' => 5, 'sslverify' => false ) );
+
+			if ( !is_wp_error($response) && in_array(wp_remote_retrieve_response_code($response), $accepted_status_codes) ) {
+				
+				if ( function_exists('exif_imagetype') ) {
+					$image_type = exif_imagetype( $url );
+				} else {
+					$image_type = getimagesize( $url );
+					$image_type = ( isset($image_type[2]) ) ? $image_type[2] : NULL;
+				}
+
+				if ( in_array($image_type, array(IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG)) ) {
+					require_once( ABSPATH . 'wp-admin/includes/file.php' );
+
+					$url = str_replace( 'https://', 'http://', $url );
+					$tmp = download_url( $url );
+
+					// move file to Uploads
+					if ( !is_wp_error( $tmp ) && rename($tmp, $full_image_path) ) {
+						// borrowed from WP - set correct file permissions
+						$stat = stat( dirname( $full_image_path ));
+						$perms = $stat['mode'] & 0000644;
+						@chmod( $full_image_path, $perms );
+
+						return $full_image_path;
+					}
+				}
+			}
+
+			return false;
+
+		} // end __fetch_external_image
+
+		/**
+		 * Builds post's excerpt
+		 *
+		 * @since	1.4.6
+		 * @global	object	wpdb
+		 * @param	int	post ID
+		 * @param	array	widget instance
+		 * @return	string
+		 */
+		protected function _get_summary($id, $instance){
+
+			if ( !$this->__is_numeric($id) )
+				return false;
+
+			global $wpdb;
+
+			$excerpt = "";
+
+			// WPML support, get excerpt for current language
+			if ( defined('ICL_LANGUAGE_CODE') && function_exists('icl_object_id') ) {
+				$current_id = icl_object_id( $id, get_post_type( $id ), true, ICL_LANGUAGE_CODE );
+
+				$the_post = get_post( $current_id );
+				$excerpt = ( empty($the_post->post_excerpt) )
+				  ? $the_post->post_content
+				  : $the_post->post_excerpt;
+			} // Use ol' plain excerpt
+			else {
+				$the_post = get_post( $id );
+				$excerpt = ( empty($the_post->post_excerpt) )
+				  ? $the_post->post_content
+				  : $the_post->post_excerpt;
+
+				// RRR added call to the_content filters, allows qTranslate to hook in.
+				if ( $this->qTrans )
+					$excerpt = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage( $excerpt );
+			}
+
+			// remove caption tags
+			$excerpt = preg_replace( "/\[caption.*\[\/caption\]/", "", $excerpt );
+
+			// remove Flash objects
+			$excerpt = preg_replace( "/<object[0-9 a-z_?*=\":\-\/\.#\,\\n\\r\\t]+/smi", "", $excerpt );
+
+			// remove Iframes
+			$excerpt = preg_replace( "/<iframe.*?\/iframe>/i", "", $excerpt);
+
+			// remove WP shortcodes
+			$excerpt = strip_shortcodes( $excerpt );
+
+			// remove HTML tags if requested
+			if ( $instance['post-excerpt']['keep_format'] ) {
+				$excerpt = strip_tags($excerpt, '<a><b><i><em><strong>');
+			} else {
+				$excerpt = strip_tags($excerpt);
+				// remove URLs, too
+				$excerpt = preg_replace( '_^(?:(?:https?|ftp)://)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\x{00a1}-\x{ffff}0-9]+-?)*[a-z\x{00a1}-\x{ffff}0-9]+)(?:\.(?:[a-z\x{00a1}-\x{ffff}0-9]+-?)*[a-z\x{00a1}-\x{ffff}0-9]+)*(?:\.(?:[a-z\x{00a1}-\x{ffff}]{2,})))(?::\d{2,5})?(?:/[^\s]*)?$_iuS', '', $excerpt );
+			}
+
+			// Fix RSS CDATA tags
+			$excerpt = str_replace( ']]>', ']]&gt;', $excerpt );
+
+			// do we still have something to display?
+			if ( !empty($excerpt) ) {
+
+				// truncate excerpt
+				if ( isset($instance['post-excerpt']['words']) && $instance['post-excerpt']['words'] ) { // by words
+
+					$words = explode(" ", $excerpt, $instance['post-excerpt']['length'] + 1);
+
+					if ( count($words) > $instance['post-excerpt']['length'] ) {
+						array_pop($words);
+						$excerpt = implode(" ", $words) . "...";
+					}
+
+				} else { // by characters
+
+					if ( strlen($excerpt) > $instance['post-excerpt']['length'] ) {
+						$excerpt = mb_substr( $excerpt, 0, $instance['post-excerpt']['length'], $this->charset ) . "...";
+					}
+
+				}
+
+			}
+
+			// Balance tags, if needed
+			if ( $instance['post-excerpt']['keep_format'] ) {
+				$excerpt = force_balance_tags($excerpt);
+			}
+
+			return $excerpt;
+
+		} // _get_summary
+
+		/**
+		 * WPP shortcode handler
+		 * Since 2.0.0
+		 */
+		public function shortcode($atts = null, $content = null) {
+			/**
+			* @var String $header
+			* @var Int $limit
+			* @var String $range
+			* @var Bool $freshness
+			* @var String $order_by
+			* @var String $post_type
+			* @var String $pid
+			* @var String $cat
+			* @var String $author
+			* @var Int $title_length
+			* @var Int $title_by_words
+			* @var Int $excerpt_length
+			* @var Int $excerpt_format
+			* @var Int $excerpt_by_words
+			* @var Int $thumbnail_width
+			* @var Int $thumbnail_height
+			* @var Bool $rating
+			* @var Bool $stats_comments
+			* @var Bool $stats_views
+			* @var Bool $stats_author
+			* @var Bool $stats_date
+			* @var String $stats_date_format
+			* @var Bool $stats_category
+			* @var String $wpp_start
+			* @var String $wpp_end
+			* @var String $header_start
+			* @var String $header_end
+			* @var String $post_html
+			* @var Bool $php
+			*/
+			extract( shortcode_atts( array(
+				'header' => '',
+				'limit' => 10,
+				'range' => 'daily',
+				'freshness' => false,
+				'order_by' => 'views',
+				'post_type' => 'post,page',
+				'pid' => '',
+				'cat' => '',
+				'author' => '',
+				'title_length' => 0,
+				'title_by_words' => 0,
+				'excerpt_length' => 0,
+				'excerpt_format' => 0,
+				'excerpt_by_words' => 0,
+				'thumbnail_width' => 0,
+				'thumbnail_height' => 0,
+				'rating' => false,
+				'stats_comments' => false,
+				'stats_views' => true,
+				'stats_author' => false,
+				'stats_date' => false,
+				'stats_date_format' => 'F j, Y',
+				'stats_category' => false,
+				'wpp_start' => '<ul class="wpp-list">',
+				'wpp_end' => '</ul>',
+				'header_start' => '<h2>',
+				'header_end' => '</h2>',
+				'post_html' => '',
+				'php' => false
+			),$atts));
+
+			// possible values for "Time Range" and "Order by"
+			$range_values = array("yesterday", "daily", "weekly", "monthly", "all");
+			$order_by_values = array("comments", "views", "avg");
+
+			$shortcode_ops = array(
+				'title' => strip_tags($header),
+				'limit' => (!empty($limit) && $this->__is_numeric($limit) && $limit > 0) ? $limit : 10,
+				'range' => (in_array($range, $range_values)) ? $range : 'daily',
+				'freshness' => empty($freshness) ? false : $freshness,
+				'order_by' => (in_array($order_by, $order_by_values)) ? $order_by : 'views',
+				'post_type' => empty($post_type) ? 'post,page' : $post_type,
+				'pid' => preg_replace('|[^0-9,]|', '', $pid),
+				'cat' => preg_replace('|[^0-9,-]|', '', $cat),
+				'author' => preg_replace('|[^0-9,]|', '', $author),
+				'shorten_title' => array(
+					'active' => (!empty($title_length) && $this->__is_numeric($title_length) && $title_length > 0),
+					'length' => (!empty($title_length) && $this->__is_numeric($title_length)) ? $title_length : 0,
+					'words' => (!empty($title_by_words) && $this->__is_numeric($title_by_words) && $title_by_words > 0),
+				),
+				'post-excerpt' => array(
+					'active' => (!empty($excerpt_length) && $this->__is_numeric($excerpt_length) && ($excerpt_length > 0)),
+					'length' => (!empty($excerpt_length) && $this->__is_numeric($excerpt_length)) ? $excerpt_length : 0,
+					'keep_format' => (!empty($excerpt_format) && $this->__is_numeric($excerpt_format) && ($excerpt_format > 0)),
+					'words' => (!empty($excerpt_by_words) && $this->__is_numeric($excerpt_by_words) && $excerpt_by_words > 0),
+				),
+				'thumbnail' => array(
+					'active' => (!empty($thumbnail_width) && $this->__is_numeric($thumbnail_width) && $thumbnail_width > 0),
+					'width' => (!empty($thumbnail_width) && $this->__is_numeric($thumbnail_width) && $thumbnail_width > 0) ? $thumbnail_width : 0,
+					'height' => (!empty($thumbnail_height) && $this->__is_numeric($thumbnail_height) && $thumbnail_height > 0) ? $thumbnail_height : 0,
+				),
+				'rating' => empty($rating) ? false : $rating,
+				'stats_tag' => array(
+					'comment_count' => empty($stats_comments) ? false : $stats_comments,
+					'views' => empty($stats_views) ? false : $stats_views,
+					'author' => empty($stats_author) ? false : $stats_author,
+					'date' => array(
+						'active' => empty($stats_date) ? false : $stats_date,
+						'format' => empty($stats_date_format) ? 'F j, Y' : $stats_date_format
+					),
+					'category' => empty($stats_category) ? false : $stats_category,
+				),
+				'markup' => array(
+					'custom_html' => true,
+					'wpp-start' => empty($wpp_start) ? '<ul class="wpp-list">' : $wpp_start,
+					'wpp-end' => empty($wpp_end) ? '</ul>' : $wpp_end,
+					'title-start' => empty($header_start) ? '' : $header_start,
+					'title-end' => empty($header_end) ? '' : $header_end,
+					'post-html' => empty($post_html) ? '<li>{thumb} {title} {stats}</li>' : $post_html
+				)
+			);
+
+			$shortcode_content = "\n". "<!-- WordPress Popular Posts Plugin v". $this->version ." [" . ( $php ? "PHP" : "SC" ) . "] [".$shortcode_ops['range']."] [".$shortcode_ops['order_by']."] [custom]" . ( !empty($shortcode_ops['pid']) ? " [PID]" : "" ) . ( !empty($shortcode_ops['cat']) ? " [CAT]" : "" ) . ( !empty($shortcode_ops['author']) ? " [UID]" : "" ) . " -->"."\n";
+
+			// is there a title defined by user?
+			if (!empty($header) && !empty($header_start) && !empty($header_end)) {
+				$shortcode_content .= htmlspecialchars_decode($header_start, ENT_QUOTES) . apply_filters('widget_title', $header) . htmlspecialchars_decode($header_end, ENT_QUOTES);
+			}
+
+			// print popular posts list
+			$shortcode_content .= $this->__get_popular_posts($shortcode_ops);
+			$shortcode_content .= "\n". "<!-- End WordPress Popular Posts Plugin v". $this->version ." -->"."\n";
+
+			return $shortcode_content;
+
+		} // end shortcode
+
+		/**
+		 * Parses content tags
+		 *
+		 * @since	1.4.6
+		 * @param	string	HTML string with content tags
+		 * @param	array	Post data
+		 * @param	bool	Used to display post rating (if functionality is available)
+		 * @return	string
+		 */
+		private function __format_content($string, $data = array(), $rating) {
+
+			if (empty($string) || (empty($data) || !is_array($data)))
+				return false;
+
+			$params = array();
+			$pattern = '/\{(excerpt|summary|stats|title|image|thumb|thumb_img|rating|score|url|text_title|author|category|views|comments|date)\}/i';
+			preg_match_all($pattern, $string, $matches);
+
+			array_map('strtolower', $matches[0]);
+
+			if ( in_array("{title}", $matches[0]) ) {
+				$string = str_replace( "{title}", $data['title'], $string );
+			}
+
+			if ( in_array("{stats}", $matches[0]) ) {
+				$string = str_replace( "{stats}", $data['stats'], $string );
+			}
+
+			if ( in_array("{excerpt}", $matches[0]) ) {
+				$string = str_replace( "{excerpt}", htmlentities($data['summary'], ENT_QUOTES, $this->charset), $string );
+			}
+
+			if ( in_array("{summary}", $matches[0]) ) {
+				$string = str_replace( "{summary}", htmlentities($data['summary'], ENT_QUOTES, $this->charset), $string );
+			}
+
+			if ( in_array("{image}", $matches[0]) ) {
+				$string = str_replace( "{image}", $data['img'], $string );
+			}
+
+			if ( in_array("{thumb}", $matches[0]) ) {
+				$string = str_replace( "{thumb}", $data['img'], $string );
+			}
+			
+			if ( in_array("{thumb_img}", $matches[0]) ) {
+				$string = str_replace( "{thumb_img}", $data['img_no_link'], $string );
+			}
+
+			// WP-PostRatings check
+			if ( $rating ) {
+				if ( function_exists('the_ratings_results') && in_array("{rating}", $matches[0]) ) {
+					$string = str_replace( "{rating}", the_ratings_results($data['id']), $string );
+				}
+
+				if ( function_exists('expand_ratings_template') && in_array("{score}", $matches[0]) ) {
+					$string = str_replace( "{score}", expand_ratings_template('%RATINGS_SCORE%', $data['id']), $string);
+					// removing the redundant plus sign
+					$string = str_replace('+', '', $string);
+				}
+			}
+
+			if ( in_array("{url}", $matches[0]) ) {
+				$string = str_replace( "{url}", $data['url'], $string );
+			}
+
+			if ( in_array("{text_title}", $matches[0]) ) {
+				$string = str_replace( "{text_title}", $data['text_title'], $string );
+			}
+
+			if ( in_array("{author}", $matches[0]) ) {
+				$string = str_replace( "{author}", $data['author'], $string );
+			}
+
+			if ( in_array("{category}", $matches[0]) ) {
+				$string = str_replace( "{category}", $data['category'], $string );
+			}
+
+			if ( in_array("{views}", $matches[0]) ) {
+				$string = str_replace( "{views}", $data['views'], $string );
+			}
+
+			if ( in_array("{comments}", $matches[0]) ) {
+				$string = str_replace( "{comments}", $data['comments'], $string );
+			}
+
+			if ( in_array("{date}", $matches[0]) ) {
+				$string = str_replace( "{date}", $data['date'], $string );
+			}
+
+			return $string;
+
+		} // end __format_content
+
+		/**
+		 * Returns HTML list via AJAX
+		 *
+		 * @since	2.3.3
+		 * @return	string
+		 */
+		public function get_popular( ) {
+
+			if ( $this->__is_numeric($_GET['id']) && ($_GET['id'] != '') ) {
+				$id = $_GET['id'];
+			} else {
+				die("Invalid ID");
+			}
+
+			$widget_instances = $this->get_settings();
+
+			if ( isset($widget_instances[$id]) ) {
+
+				echo $this->__get_popular_posts( $widget_instances[$id] );
+
+			} else {
+
+				echo "Invalid Widget ID";
+			}
+
+			exit();
+
+		} // end get_popular
+
+		/*--------------------------------------------------*/
+		/* Helper functions
+		/*--------------------------------------------------*/
+
+		/**
+		 * Gets list of available thumbnails sizes
+		 *
+		 * @since	3.2.0
+		 * @link	http://codex.wordpress.org/Function_Reference/get_intermediate_image_sizes
+		 * @param	string	$size
+		 * @return	array|bool
+		 */
+		private function __get_image_sizes( $size = '' ) {
+
+			global $_wp_additional_image_sizes;
+	
+			$sizes = array();
+			$get_intermediate_image_sizes = get_intermediate_image_sizes();
+	
+			// Create the full array with sizes and crop info
+			foreach( $get_intermediate_image_sizes as $_size ) {
+	
+				if ( in_array( $_size, array( 'thumbnail', 'medium', 'large' ) ) ) {
+
+					$sizes[ $_size ]['width'] = get_option( $_size . '_size_w' );
+					$sizes[ $_size ]['height'] = get_option( $_size . '_size_h' );
+					$sizes[ $_size ]['crop'] = (bool) get_option( $_size . '_crop' );
+
+				} elseif ( isset( $_wp_additional_image_sizes[ $_size ] ) ) {
+
+					$sizes[ $_size ] = array( 
+						'width' => $_wp_additional_image_sizes[ $_size ]['width'],
+						'height' => $_wp_additional_image_sizes[ $_size ]['height'],
+						'crop' =>  $_wp_additional_image_sizes[ $_size ]['crop']
+					);
+
+				}
+	
+			}
+	
+			// Get only 1 size if found
+			if ( $size ) {
+	
+				if( isset( $sizes[ $size ] ) ) {
+					return $sizes[ $size ];
+				} else {
+					return false;
+				}
+	
+			}
+	
+			return $sizes;
+		}
+		
+		/**
+		 * Gets post/page ID if current page is singular
+		 *
+		 * @since	3.1.2
+		 */
+		public function is_single() {
+			if ( (is_single() || is_page()) && !is_front_page() && !is_preview() && !is_trackback() && !is_feed() && !is_robots() ) {
+				global $post;				
+				$this->current_post_id = ( is_object($post) ) ? $post->ID : 0;
+			} else {
+				$this->current_post_id = 0;
+			}
+		} // end is_single
+
+		/**
+		 * Checks for valid number
+		 *
+		 * @since	2.1.6
+		 * @param	int	number
+		 * @return	bool
+		 */
+		private function __is_numeric($number){
+			return !empty($number) && is_numeric($number) && (intval($number) == floatval($number));
+		}
+
+		/**
+		 * Returns server datetime
+		 *
+		 * @since	2.1.6
+		 * @return	string
+		 */
+		private function __curdate() {
+			return gmdate( 'Y-m-d', ( time() + ( get_site_option( 'gmt_offset' ) * 3600 ) ));
+		} // end __curdate
+
+		/**
+		 * Returns mysql datetime
+		 *
+		 * @since	2.1.6
+		 * @return	string
+		 */
+		private function __now() {
+			return current_time('mysql');
+		} // end __now
+
+		/**
+		 * Returns time
+		 *
+		 * @since	2.3.0
+		 * @return	string
+		 */
+		private function __microtime_float() {
+
+			list( $msec, $sec ) = explode( ' ', microtime() );
+
+			$microtime = (float) $msec + (float) $sec;
+			return $microtime;
+
+		} // end __microtime_float
+
+		/**
+		 * Merges two associative arrays recursively
+		 *
+		 * @since	2.3.4
+		 * @link	http://www.php.net/manual/en/function.array-merge-recursive.php#92195
+		 * @param	array	array1
+		 * @param	array	array2
+		 * @return	array
+		 */
+		private function __merge_array_r( array &$array1, array &$array2 ) {
+
+			$merged = $array1;
+
+			foreach ( $array2 as $key => &$value ) {
+
+				if ( is_array( $value ) && isset ( $merged[$key] ) && is_array( $merged[$key] ) ) {
+					$merged[$key] = $this->__merge_array_r( $merged[$key], $value );
+				} else {
+					$merged[$key] = $value;
+				}
+			}
+
+			return $merged;
+
+		} // end __merge_array_r
+
+		/**
+		 * Checks if visitor is human or bot.
+		 *
+		 * @since	3.0.0
+		 * @return	bool	FALSE if human, TRUE if bot
+		 */
+		private function __is_bot() {
+
+			if ( !isset($_SERVER['HTTP_USER_AGENT']) || empty($_SERVER['HTTP_USER_AGENT']) )
+				return true; // No UA? Bot (probably)
+
+			$user_agent = strtolower($_SERVER['HTTP_USER_AGENT']);
+
+			foreach ( $this->botlist as $bot ) {
+				if ( false !== strpos($user_agent, $bot) ) {
+					return true; // Bot
+				}
+			}
+
+			return false; // Human, I guess...
+
+		} // end __is_bot
+
+		/**
+		 * Debug function.
+		 *
+		 * @since	3.0.0
+		 * @param	mixed $v variable to display with var_dump()
+		 * @param	mixed $v,... unlimited optional number of variables to display with var_dump()
+		 */
+		private function __debug($v) {
+
+			if ( !defined('WPP_DEBUG') || !WPP_DEBUG )
+				return;
+
+			foreach (func_get_args() as $arg) {
+
+				print "<pre>";
+				var_dump($arg);
+				print "</pre>";
+
+			}
+
+		} // end __debug
+
+	} // end class
+
+}
+
+/**
+ * WordPress Popular Posts template tags for use in themes.
+ */
+
+/**
+ * Template tag - gets views count.
+ *
+ * @since	2.0.3
+ * @global	object	wpdb
+ * @param	int		id
+ * @param	string	range
+ * @param	bool	number_format
+ * @return	string
+ */
+function wpp_get_views($id = NULL, $range = NULL, $number_format = true) {
+
+	// have we got an id?
+	if ( empty($id) || is_null($id) || !is_numeric($id) ) {
+		return "-1";
+	} else {
+		global $wpdb;
+
+		$table_name = $wpdb->prefix . "popularposts";
+
+		if ( !$range || 'all' == $range ) {
+			$query = "SELECT pageviews FROM {$table_name}data WHERE postid = '{$id}'";
+		} else {
+			$interval = "";
+
+			switch( $range ){
+				case "yesterday":
+					$interval = "1 DAY";
+				break;
+
+				case "daily":
+					$interval = "1 DAY";
+				break;
+
+				case "weekly":
+					$interval = "1 WEEK";
+				break;
+
+				case "monthly":
+					$interval = "1 MONTH";
+				break;
+
+				default:
+					$interval = "1 DAY";
+				break;
+			}
+
+			$now = current_time('mysql');
+
+			$query = "SELECT SUM(pageviews) FROM {$table_name}summary WHERE postid = '{$id}' AND last_viewed > DATE_SUB('{$now}', INTERVAL {$interval}) LIMIT 1;";
+		}
+
+		$result = $wpdb->get_var($query);
+
+		if ( !$result ) {
+			return "0";
+		}
+
+		return ($number_format) ? number_format_i18n( intval($result) ) : $result;
+	}
+
+}
+
+/**
+ * Template tag - gets popular posts.
+ *
+ * @since	2.0.3
+ * @param	mixed	args
+ */
+function wpp_get_mostpopular($args = NULL) {
+
+	$shortcode = '[wpp';
+
+	if ( is_null( $args ) ) {
+		$shortcode .= ']';
+	} else {
+		if( is_array( $args ) ){
+			$atts = '';
+			foreach( $args as $key => $arg ){
+				$atts .= ' ' . $key . '="' . htmlspecialchars($arg, ENT_QUOTES, $encoding = ini_get("default_charset"), false) . '"';
+			}
+		} else {
+			$atts = trim( str_replace( "&", " ", $args  ) );
+		}
+
+		$shortcode .= ' ' . $atts . ' php=true]';
+	}
+
+	echo do_shortcode( $shortcode );
+
+}
+
+/**
+ * Template tag - gets popular posts. Deprecated in 2.0.3, use wpp_get_mostpopular instead.
+ *
+ * @since	1.0
+ * @param	mixed	args
+ */
+function get_mostpopular($args = NULL) {
+	trigger_error( 'The get_mostpopular() template tag has been deprecated since 2.0.3. Please use wpp_get_mostpopular() instead.', E_USER_WARNING );
+}