diff --git a/functions.php b/functions.php index aec20b2..7089968 100644 --- a/functions.php +++ b/functions.php @@ -172,18 +172,18 @@ function openmamba_download_func( $atts ) { $out .= openmamba_download_link($milestone,$medium,$currarch,$ext,$lang,$l); } } - $ret .= do_shortcode("[expand title=\"". __("More languages...",responsive) . "\"]". $out ."[/expand]"); + $ret .= do_shortcode("[expand title=\"". __("More languages...","responsive") . "\"]". $out ."[/expand]"); } - $ret .= do_shortcode("   [expand title=\"".__("Features",responsive)."\"]". + $ret .= do_shortcode("   [expand title=\"".__("Features","responsive")."\"]". openmamba_infofile($mediaprefix,$milestone,$fallbackmilestone,$medium,$outputlang,"features"). "[/expand]"); - $ret .= do_shortcode("   [expand title=\"".__("Requirements",responsive)."\"]". + $ret .= do_shortcode("   [expand title=\"".__("Requirements","responsive")."\"]". openmamba_infofile($mediaprefix,$milestone,$fallbackmilestone,$medium,$outputlang,"requirements"). "[/expand]"); - $ret .= do_shortcode("   [expand title=\"".__("Preparation",responsive)."\"]". + $ret .= do_shortcode("   [expand title=\"".__("Preparation","responsive")."\"]". openmamba_infofile($mediaprefix,$milestone,$fallbackmilestone,$medium,$outputlang,"howto"). "[/expand]"); diff --git a/images/openmamba-256x256.png b/images/openmamba-256x256.png new file mode 100644 index 0000000..ea3478a Binary files /dev/null and b/images/openmamba-256x256.png differ diff --git a/images/openmamba-64x64.png b/images/openmamba-64x64.png new file mode 100644 index 0000000..6590caa Binary files /dev/null and b/images/openmamba-64x64.png differ diff --git a/images/refresh.png b/images/refresh.png new file mode 100644 index 0000000..b51e03d Binary files /dev/null and b/images/refresh.png differ diff --git a/scripts/socialbox.js b/scripts/socialbox.js index b02fb99..e621fa4 100644 --- a/scripts/socialbox.js +++ b/scripts/socialbox.js @@ -93,11 +93,13 @@ function ajax_getvalues_refresh(request,user,user_email,secret) { return; } var xmldoc = xmlhttp1.responseXML.documentElement; - var nodes = xmldoc.getElementsByTagName("socialbox")[0].childNodes; - for (var i = 0; i < nodes.length; i++) { - var id = nodes[i].attributes[0].value; - $("" + nodes[i].childNodes[0].nodeValue + "") - .clone().hide().prependTo("#socialbox").slideDown(); + if (xmldoc.getElementsByTagName("socialbox")[0] != undefined) { + var nodes = xmldoc.getElementsByTagName("socialbox")[0].childNodes; + for (var i = 0; i < nodes.length; i++) { + var id = nodes[i].attributes[0].value; + $("" + nodes[i].childNodes[0].nodeValue + "") + .clone().hide().prependTo("#socialbox").slideDown(); + } } if (xmldoc.getElementsByTagName("processes")[0] != undefined) { document.getElementById("processes").innerHTML = xmldoc.getElementsByTagName("processes")[0].childNodes[0].nodeValue;