Updates and fixes for wordpress integration
This commit is contained in:
parent
8d3e4a72a4
commit
f6eabf0f13
@ -57,9 +57,9 @@ function add_search_box($items, $args) {
|
||||
add_filter('wp_nav_menu_items','add_search_box', 10, 2);
|
||||
|
||||
function set_title($title) {
|
||||
$urlargspos = strpos($_SERVER[REQUEST_URI], '?');
|
||||
$urlargspos = strpos($_SERVER['REQUEST_URI'], '?');
|
||||
if ($urlargspos > 0) {
|
||||
$urlargs = substr($_SERVER[REQUEST_URI], $urlargspos + 1);
|
||||
$urlargs = substr($_SERVER['REQUEST_URI'], $urlargspos + 1);
|
||||
parse_str($urlargs, $args);
|
||||
$newtitle = $title;
|
||||
if ($args['arch']) {
|
||||
@ -220,9 +220,9 @@ add_shortcode('openmamba_download', 'openmamba_download_func');
|
||||
|
||||
function openmamba_webbuild_func( $atts ) {
|
||||
|
||||
$urlargspos = strpos($_SERVER[REQUEST_URI], '?');
|
||||
$urlargspos = strpos($_SERVER['REQUEST_URI'], '?');
|
||||
if ($urlargspos > 0) {
|
||||
$urlargs = substr($_SERVER[REQUEST_URI], $urlargspos);
|
||||
$urlargs = substr($_SERVER['REQUEST_URI'], $urlargspos);
|
||||
}
|
||||
|
||||
$a = shortcode_atts( array(
|
||||
@ -242,22 +242,23 @@ add_shortcode('openmamba_webbuild', 'openmamba_webbuild_func');
|
||||
|
||||
function openmamba_webbuild_status_func() {
|
||||
|
||||
$urlargspos = strpos($_SERVER[REQUEST_URI], '?');
|
||||
$urlargspos = strpos($_SERVER['REQUEST_URI'], '?');
|
||||
if ($urlargspos > 0) {
|
||||
$urlargs = substr($_SERVER[REQUEST_URI], $urlargspos);
|
||||
$urlargs = substr($_SERVER['REQUEST_URI'], $urlargspos);
|
||||
}
|
||||
// print "<table width=\"100%\" style=\"border:0;\"><tr><td>";
|
||||
print "<div id=\"noajax_msg\"><p>AJAX support is not enabled in your browser. Live page updates will not be available, press Reload to update.</p></div>";
|
||||
print "<span class=webbuild id=\"output\">Loading, please wait...</span>";
|
||||
// print "<div id=\"noajax_msg\"><p>AJAX support is not enabled in your browser. Live page updates will not be available, press Reload to update.</p></div>";
|
||||
print "<div id=\"noajax_msg\"></div>";
|
||||
print "<span class=webbuild id=\"output\">" . __("Loading, please wait...", "responsive") . "</span>";
|
||||
print "<script>$(document).ready(function(){ webbuild_status_getvalues(\"" . $urlargs . "\"); })</script>";//</td></tr></table>";
|
||||
}
|
||||
add_shortcode('openmamba_webbuild_status', 'openmamba_webbuild_status_func');
|
||||
|
||||
function openmamba_distroquery_func() {
|
||||
|
||||
$urlargspos = strpos($_SERVER[REQUEST_URI], '?');
|
||||
$urlargspos = strpos($_SERVER['REQUEST_URI'], '?');
|
||||
if ($urlargspos > 0) {
|
||||
$urlargs = substr($_SERVER[REQUEST_URI], $urlargspos + 1);
|
||||
$urlargs = substr($_SERVER['REQUEST_URI'], $urlargspos + 1);
|
||||
}
|
||||
|
||||
$outputlang = get_bloginfo("language");
|
||||
@ -266,7 +267,8 @@ function openmamba_distroquery_func() {
|
||||
else
|
||||
$outputlang = "en_US.UTF-8";
|
||||
|
||||
$ret = "<span id=\"queryform\">Loading, please wait...</span><br>";
|
||||
$ret = "<div id=\"noajax_msg\"></div>";
|
||||
$ret .= "<span id=\"queryform\">Loading, please wait...</span><br>";
|
||||
$ret .= "<span id=\"querystatus\"></span><br><span id=\"queryreply\"> </span>";
|
||||
$ret .= "<script>$(document).ready(function(){ distroquery_request(\"" . $urlargs . "\"); })</script>";
|
||||
|
||||
@ -276,9 +278,9 @@ add_shortcode('openmamba_distroquery', 'openmamba_distroquery_func');
|
||||
|
||||
function openmamba_distromatic_func() {
|
||||
|
||||
$urlargspos = strpos($_SERVER[REQUEST_URI], '?');
|
||||
$urlargspos = strpos($_SERVER['REQUEST_URI'], '?');
|
||||
if ($urlargspos > 0) {
|
||||
$urlargs = substr($_SERVER[REQUEST_URI], $urlargspos + 1);
|
||||
$urlargs = substr($_SERVER['REQUEST_URI'], $urlargspos + 1);
|
||||
}
|
||||
|
||||
$outputlang = get_bloginfo("language");
|
||||
@ -287,7 +289,7 @@ function openmamba_distromatic_func() {
|
||||
else
|
||||
$outputlang = "en_US.UTF-8";
|
||||
|
||||
$ret = "<span id=\"distromatic\">" . "Loading, please wait..." . "</span><br>";
|
||||
$ret = "<span id=\"distromatic\">" . __("Loading, please wait...", "responsive") . "</span><br>";
|
||||
$ret .= "<script>$(document).ready(function(){ $('#distromatic').load('/distribution/distromatic.naked.html?" . $urlargs . "'); })</script>";
|
||||
|
||||
return $ret;
|
||||
@ -296,9 +298,9 @@ add_shortcode('openmamba_distromatic', 'openmamba_distromatic_func');
|
||||
|
||||
function openmamba_showfile_func() {
|
||||
|
||||
$urlargspos = strpos($_SERVER[REQUEST_URI], '?');
|
||||
$urlargspos = strpos($_SERVER['REQUEST_URI'], '?');
|
||||
if ($urlargspos > 0) {
|
||||
$urlargs = substr($_SERVER[REQUEST_URI], $urlargspos + 1);
|
||||
$urlargs = substr($_SERVER['REQUEST_URI'], $urlargspos + 1);
|
||||
}
|
||||
|
||||
$ret = "<span id=\"distromatic\">" . "Loading, please wait..." . "</span><br>";
|
||||
@ -310,12 +312,12 @@ add_shortcode('openmamba_showfile', 'openmamba_showfile_func');
|
||||
|
||||
function openmamba_downloadfile_func() {
|
||||
|
||||
$urlargspos = strpos($_SERVER[REQUEST_URI], '?');
|
||||
$urlargspos = strpos($_SERVER['REQUEST_URI'], '?');
|
||||
if ($urlargspos > 0) {
|
||||
$urlargs = substr($_SERVER[REQUEST_URI], $urlargspos + 1);
|
||||
$urlargs = substr($_SERVER['REQUEST_URI'], $urlargspos + 1);
|
||||
parse_str($urlargs, $args);
|
||||
if ($args['file']) {
|
||||
$ret = "<span id=\"distromatic\">" . "Starting download of <strong>" . basename($args['file']) . "</strong>, please wait..." . "</span><br><br>";
|
||||
$ret = "<span id=\"distromatic\">" . __("Starting download of", "responsive") . " <strong>" . basename($args['file']) . "</strong>, " . __("please wait...", "responsive") . "</span><br><br>";
|
||||
$ret .= "<script>$(document).ready(function(){ window.location.href='" . $args['file'] . "'; })</script>";
|
||||
}
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ print '<link rel="shortcut icon" type="image/x-icon" href="' . get_stylesheet_di
|
||||
# webbuild css
|
||||
print '<link rel="stylesheet" type="text/css" href="' . get_stylesheet_directory_uri() . '/styles/webbuild.css">' . PHP_EOL;
|
||||
# webbuild
|
||||
#print '<script type="text/javascript" src="' . get_stylesheet_directory_uri() . '/scripts/webbuild.js"></script>';
|
||||
print '<script type="text/javascript" src="' . get_stylesheet_directory_uri() . '/scripts/webbuild/webbuild.js"></script>';
|
||||
# distroquery
|
||||
print '<script type="text/javascript" src="' . get_stylesheet_directory_uri() . '/scripts/distroquery.js"></script>' . PHP_EOL;
|
||||
|
||||
|
Binary file not shown.
@ -7,7 +7,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Responsive Theme\n"
|
||||
"Report-Msgid-Bugs-To: bugs@openmamba.org\n"
|
||||
"POT-Creation-Date: 2015-10-17 14:10+0200\n"
|
||||
"POT-Creation-Date: 2020-06-27 13:56+0200\n"
|
||||
"PO-Revision-Date: 2014-12-08 16:25+0100\n"
|
||||
"Last-Translator: Silvan Calarco <silvan.calarco@mambasoft.it>\n"
|
||||
"Language-Team: Italian, Italy\n"
|
||||
@ -30,19 +30,19 @@ msgstr "Pagine:"
|
||||
msgid "↑"
|
||||
msgstr "↑"
|
||||
|
||||
#: ../functions.php:73 ../functions.php:84
|
||||
#: ../functions.php:107 ../functions.php:118
|
||||
msgid "for"
|
||||
msgstr "per"
|
||||
|
||||
#: ../functions.php:75
|
||||
#: ../functions.php:109
|
||||
msgid "File size:"
|
||||
msgstr "Dimensione file:"
|
||||
|
||||
#: ../functions.php:76
|
||||
#: ../functions.php:110
|
||||
msgid "Date"
|
||||
msgstr "Data"
|
||||
|
||||
#: ../functions.php:86
|
||||
#: ../functions.php:120
|
||||
msgid ""
|
||||
"Sorry, download is temporary unavailable. If the problem persists please "
|
||||
"report the problem."
|
||||
@ -50,37 +50,49 @@ msgstr ""
|
||||
"Il download non è temporaneamente disponibile. Se il problema persiste ti "
|
||||
"ringraziamo se ci puoi segnalare il problema."
|
||||
|
||||
#: ../functions.php:167
|
||||
#: ../functions.php:201
|
||||
msgid "More languages..."
|
||||
msgstr "Altre lingue..."
|
||||
|
||||
#: ../functions.php:170
|
||||
#: ../functions.php:204
|
||||
msgid "Features"
|
||||
msgstr "Caratteristiche"
|
||||
|
||||
#: ../functions.php:174
|
||||
#: ../functions.php:208
|
||||
msgid "Requirements"
|
||||
msgstr "Requisiti"
|
||||
|
||||
#: ../functions.php:178
|
||||
#: ../functions.php:212
|
||||
msgid "Preparation"
|
||||
msgstr "Preparazione"
|
||||
|
||||
#: ../functions.php:258
|
||||
#: ../functions.php:251 ../functions.php:290
|
||||
msgid "Loading, please wait..."
|
||||
msgstr "Caricamento in corso, attendi..."
|
||||
|
||||
#: ../functions.php:318
|
||||
msgid "Starting download of"
|
||||
msgstr "Avvio dello scaricamento di"
|
||||
|
||||
#: ../functions.php:318
|
||||
msgid "please wait..."
|
||||
msgstr "attendere prego..."
|
||||
|
||||
#: ../functions.php:342
|
||||
msgid "This website uses cookies to improve user experience."
|
||||
msgstr ""
|
||||
"Questo sito utilizza i cookie per migliorare l'esperienza di navigazione "
|
||||
"dell'utente."
|
||||
|
||||
#: ../functions.php:259
|
||||
#: ../functions.php:343
|
||||
msgid "I Understand"
|
||||
msgstr "Ho capito"
|
||||
|
||||
#: ../functions.php:260
|
||||
#: ../functions.php:344
|
||||
msgid "Cookie policy"
|
||||
msgstr "Informativa sui cookie"
|
||||
|
||||
#: ../header-webbuild.php:108
|
||||
#: ../header-webbuild-status.php:77 ../header-webbuild.php:108
|
||||
msgid "↓ Skip to Main Content"
|
||||
msgstr "↓ Salta al contenuto principale"
|
||||
|
||||
@ -92,20 +104,20 @@ msgstr "Taggato con:"
|
||||
msgid "Edit"
|
||||
msgstr "Modifica"
|
||||
|
||||
#: ../sidebar-top.php:34
|
||||
#: ../sidebar-top.php:35
|
||||
msgid "Login"
|
||||
msgstr "Accedi"
|
||||
|
||||
#: ../sidebar-top.php:35
|
||||
#: ../sidebar-top.php:36
|
||||
msgid "Register"
|
||||
msgstr "Registrati"
|
||||
|
||||
#: ../sidebar-top.php:38
|
||||
#: ../sidebar-top.php:39
|
||||
#, php-format
|
||||
msgid "Howdy, %1$s"
|
||||
msgstr "Salve, %1$s"
|
||||
|
||||
#: ../sidebar-top.php:40
|
||||
#: ../sidebar-top.php:41
|
||||
msgid "Logout"
|
||||
msgstr "Esci"
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR Silvan Calarco
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# This file is distributed under the same license as the openmamba package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: openmamba 1.0\n"
|
||||
"Report-Msgid-Bugs-To: bugs@openmamba.org\n"
|
||||
"POT-Creation-Date: 2015-10-17 14:10+0200\n"
|
||||
"POT-Creation-Date: 2020-06-27 13:56+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
@ -31,53 +31,65 @@ msgstr ""
|
||||
msgid "↑"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:73 ../functions.php:84
|
||||
#: ../functions.php:107 ../functions.php:118
|
||||
msgid "for"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:75
|
||||
#: ../functions.php:109
|
||||
msgid "File size:"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:76
|
||||
#: ../functions.php:110
|
||||
msgid "Date"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:86
|
||||
#: ../functions.php:120
|
||||
msgid ""
|
||||
"Sorry, download is temporary unavailable. If the problem persists please "
|
||||
"report the problem."
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:167
|
||||
#: ../functions.php:201
|
||||
msgid "More languages..."
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:170
|
||||
#: ../functions.php:204
|
||||
msgid "Features"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:174
|
||||
#: ../functions.php:208
|
||||
msgid "Requirements"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:178
|
||||
#: ../functions.php:212
|
||||
msgid "Preparation"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:258
|
||||
#: ../functions.php:251 ../functions.php:290
|
||||
msgid "Loading, please wait..."
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:318
|
||||
msgid "Starting download of"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:318
|
||||
msgid "please wait..."
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:342
|
||||
msgid "This website uses cookies to improve user experience."
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:259
|
||||
#: ../functions.php:343
|
||||
msgid "I Understand"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:260
|
||||
#: ../functions.php:344
|
||||
msgid "Cookie policy"
|
||||
msgstr ""
|
||||
|
||||
#: ../header-webbuild.php:108
|
||||
#: ../header-webbuild-status.php:77 ../header-webbuild.php:108
|
||||
msgid "↓ Skip to Main Content"
|
||||
msgstr ""
|
||||
|
||||
@ -89,19 +101,19 @@ msgstr ""
|
||||
msgid "Edit"
|
||||
msgstr ""
|
||||
|
||||
#: ../sidebar-top.php:34
|
||||
#: ../sidebar-top.php:35
|
||||
msgid "Login"
|
||||
msgstr ""
|
||||
|
||||
#: ../sidebar-top.php:35
|
||||
#: ../sidebar-top.php:36
|
||||
msgid "Register"
|
||||
msgstr ""
|
||||
|
||||
#: ../sidebar-top.php:38
|
||||
#: ../sidebar-top.php:39
|
||||
#, php-format
|
||||
msgid "Howdy, %1$s"
|
||||
msgstr ""
|
||||
|
||||
#: ../sidebar-top.php:40
|
||||
#: ../sidebar-top.php:41
|
||||
msgid "Logout"
|
||||
msgstr ""
|
||||
|
@ -22,7 +22,7 @@ Template Name: Search Page (no sidebar, no title)
|
||||
*/
|
||||
|
||||
|
||||
get_header("webbuild"); ?>
|
||||
get_header("webbuild-status"); ?>
|
||||
|
||||
<div id="content-full" class="grid col-940">
|
||||
|
||||
|
45
style.css
45
style.css
@ -240,6 +240,11 @@ div#ag-terms {
|
||||
margin-bottom:10px;
|
||||
}
|
||||
|
||||
#bbpress-forums #bbp-search-form {
|
||||
margin-top: 0;
|
||||
margin-right:5px;
|
||||
}
|
||||
|
||||
/* Distromatic */
|
||||
span#distromatic table,
|
||||
span#distromatic table tr,
|
||||
@ -259,3 +264,43 @@ span#distromatic table td hr {
|
||||
margin-top: 5px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
/* Distroquery */
|
||||
.querytag {
|
||||
display:inline;
|
||||
color:white;
|
||||
border-radius:5px;
|
||||
padding-left:5px;
|
||||
padding-right:5px;
|
||||
padding-top:3px;
|
||||
padding-bottom:3px;
|
||||
margin-bottom:5px;
|
||||
}
|
||||
|
||||
.querytag-green {
|
||||
background-color:green;
|
||||
}
|
||||
|
||||
.querytag-red {
|
||||
background-color:red;
|
||||
}
|
||||
|
||||
.querytag-yellow {
|
||||
color:black;
|
||||
background-color:yellow;
|
||||
}
|
||||
|
||||
.querytag-orange {
|
||||
color:black;
|
||||
background-color:orange;
|
||||
}
|
||||
|
||||
.querytag-lightblue {
|
||||
color:black;
|
||||
background-color:lightblue;
|
||||
}
|
||||
|
||||
table.queryfiletable td {
|
||||
padding:1px;
|
||||
font-family:courier;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user