/**
* @name build.js
* @author Philipp Maurer
* @author Tobias Reich
* @copyright 2012 by Philipp Maurer, Tobias Reich
*/
/*
Build Functions
This functions are used to generate HTML-Code.
*/
function buildDivider(title) {
return "
";
if (photo.public==1) photo.public = "Public"; else photo.public = "Private";
infos = [
["", "Basics"],
["Name", photo.title],
["Uploaded", photo.sysdate],
["Description", photo.description + "
"],
["", "Image"],
["Size", photo.size],
["Format", photo.type],
["Resolution", photo.width + " x " + photo.height],
["", "Camera"],
["Captured", photo.takedate],
["Make", photo.make],
["Type/Model", photo.model],
["Shutter Speed", photo.shutter],
["Aperture", photo.aperture],
["Focal Length", photo.focal],
["ISO", photo.iso],
["", "Share"],
["Privacy", photo.public],
["Short Link", photo.shortlink]
];
$.each(infos, function(index) {
if (infos[index][1]==""||infos[index][1]==undefined||infos[index][1]==null) infos[index][1] = "-";
if (infos[index][0]=="") {
infobox += "";
infobox += "
" + infos[index][1] + "
";
infobox += "
";
} else {
infobox += "";
infobox += "" + infos[index][0] + " | ";
infobox += "" + infos[index][1] + " | ";
infobox += "
";
}
});
infobox += "
";
infobox += "
";
infobox += "
";
return infobox;
}