diff --git a/functions.php b/functions.php
index 1cab4de..1fca34c 100644
--- a/functions.php
+++ b/functions.php
@@ -190,12 +190,34 @@ function openmamba_webbuild_status_func() {
$urlargs = substr($_SERVER[REQUEST_URI], $urlargspos);
}
// print "
";
- print "Il supporto per AJAX non è abilitato nel tuo browser. L'aggiornamento live non sarà disponibile, premi Ricarica per aggiornare la pagina. ";
- print "Caricamento in corso, attendere...";
+ print "AJAX support is not enabled in your browser. Live page updates will not be available, press Reload to update. ";
+ print "Loading, please wait...";
print "";// |
";
}
add_shortcode('openmamba_webbuild_status', 'openmamba_webbuild_status_func');
+function openmamba_distroquery_func() {
+
+ $urlargspos = strpos($_SERVER[REQUEST_URI], '?');
+ if ($urlargspos > 0) {
+ $urlargs = substr($_SERVER[REQUEST_URI], $urlargspos + 1);
+ }
+
+ $outputlang = get_bloginfo("language");
+ if ($outputlang == "it")
+ $outputlang = "it_IT.UTF-8";
+ else
+ $outputlang = "en_US.UTF-8";
+
+ print "AJAX support is not enabled in your browser. Live page updates will not be available, press Reload to update.
";
+ print "
";
+ print "
";
+
+
+ print "";
+}
+add_shortcode('openmamba_distroquery', 'openmamba_distroquery_func');
+
// bbpress tag cloud
add_filter('widget_tag_cloud_args','set_number_tags');
function set_number_tags($args) {
diff --git a/header-webbuild.php b/header-webbuild.php
index 9b0f205..96c9324 100644
--- a/header-webbuild.php
+++ b/header-webbuild.php
@@ -63,6 +63,8 @@ print '';
+# distroquery
+print '';
$file = fopen(get_stylesheet_directory() . "/webbuild.js.inc", "r");
print fread($file, 20000);