----------------------------------------
2020-07-14 20:57:24,745 [19] INFO - ---------
2020-07-14 20:57:26,461 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1348.
2020-07-14 20:57:26,462 [19] INFO - ---------
2020-07-14 20:57:26,464 [19] INFO - Finished executing the following script:
2020-07-14 20:57:26,464 [19] INFO - ---------
2020-07-14 20:57:26,464 [19] INFO - function SE637303570447102109() {}
SE637303570447102109.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\header.html'.
var areaName = "Header";
var headers = page.articlesInArea(areaName);
var headerShown = false;
for ( var ihead = 0; ihead < headers.count; ++ihead ){
// in a header-area, we only render the first active container/row/article
if ( headerShown && ihead > 0 ){
break;
}
context.write(headers.item(ihead).render());
headerShown = true;
}
context.write("\r\n\r\n\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\header.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570447102109().executeScript();
2020-07-14 20:57:26,465 [19] INFO - ---------
2020-07-14 20:57:26,465 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1349.
2020-07-14 20:57:26,466 [19] INFO - ---------
2020-07-14 20:57:26,466 [19] INFO - About to execute the following script:
2020-07-14 20:57:26,467 [19] INFO - ---------
2020-07-14 20:57:26,467 [19] INFO - function SE637303570464663114() {}
SE637303570464663114.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\hauptmenu.html'.
var pageId = context.param(0, 0);
var level = context.param(1, 1);
var p = project.getPage(pageId);
var childPages = isNull(p) ? page.projectFolder.pages : p.pages;
if ( childPages.count<=0 || (!isNull(p) && !hasVisibleChildPages(p.id)) ) { return; }
if ( !isNull(p) && p.level!=1 ) { return; }
context.write("\r\n
\r\n\r\n\r\n ");
for ( var i = 0; i < childPages.count; ++i ) {
var p = childPages.item(i);
if ( p.visible && p.active ) {
context.write("\r\n\r\n ");
if ( p.id==page.id || hasActiveChildPage(p.id) ) {
context.write("\r\n ");
context.write( system.partial("item-hauptmenu-aktiv.html", p.id, 1) );
context.write("\r\n ");
} else {
context.write("\r\n ");
context.write( system.partial("item-hauptmenu.html", p.id, 1) );
context.write("\r\n ");
}
context.write("\r\n\r\n ");
}
}
context.write("\r\n\r\n
\r\n\r\n ");
function hasActiveChildPage(pageId) {
var p = project.getPage(pageId);
var childPages = p.pages;
for ( var i = 0; i < childPages.count; ++i ) {
var childPage = childPages.item(i);
if ( childPage.id === page.id || hasActiveChildPage(childPage.id) ) {
return true;
}
}
return false;
}
function hasVisibleChildPages(pageId) {
var p = project.getPage(pageId);
if ( !isNull(p) ) {
var cps = p.pages;
for ( var i = 0; i < cps.count; ++i ) {
var cp = cps.item(i);
if ( cp.visible && cp.active ) {
return true;
}
}
}
return false;
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\hauptmenu.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570464663114().executeScript();
2020-07-14 20:57:26,468 [19] INFO - ---------
2020-07-14 20:57:26,474 [19] INFO - About to execute the following script:
2020-07-14 20:57:26,474 [19] INFO - ---------
2020-07-14 20:57:26,474 [19] INFO - function SE637303570464743119() {}
SE637303570464743119.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-hauptmenu.html'.
var pageId = context.param(0, 0);
var p = project.getPage(pageId);
context.write("\r\n\r\n
\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-hauptmenu.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570465213145().executeScript();
2020-07-14 20:57:26,524 [19] INFO - ---------
2020-07-14 20:57:26,525 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1356.
2020-07-14 20:57:26,525 [19] INFO - ---------
2020-07-14 20:57:26,526 [19] INFO - Finished executing the following script:
2020-07-14 20:57:26,527 [19] INFO - ---------
2020-07-14 20:57:26,527 [19] INFO - function SE637303570464663114() {}
SE637303570464663114.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\hauptmenu.html'.
var pageId = context.param(0, 0);
var level = context.param(1, 1);
var p = project.getPage(pageId);
var childPages = isNull(p) ? page.projectFolder.pages : p.pages;
if ( childPages.count<=0 || (!isNull(p) && !hasVisibleChildPages(p.id)) ) { return; }
if ( !isNull(p) && p.level!=1 ) { return; }
context.write("\r\n
\r\n\r\n\r\n ");
for ( var i = 0; i < childPages.count; ++i ) {
var p = childPages.item(i);
if ( p.visible && p.active ) {
context.write("\r\n\r\n ");
if ( p.id==page.id || hasActiveChildPage(p.id) ) {
context.write("\r\n ");
context.write( system.partial("item-hauptmenu-aktiv.html", p.id, 1) );
context.write("\r\n ");
} else {
context.write("\r\n ");
context.write( system.partial("item-hauptmenu.html", p.id, 1) );
context.write("\r\n ");
}
context.write("\r\n\r\n ");
}
}
context.write("\r\n\r\n
\r\n\r\n ");
function hasActiveChildPage(pageId) {
var p = project.getPage(pageId);
var childPages = p.pages;
for ( var i = 0; i < childPages.count; ++i ) {
var childPage = childPages.item(i);
if ( childPage.id === page.id || hasActiveChildPage(childPage.id) ) {
return true;
}
}
return false;
}
function hasVisibleChildPages(pageId) {
var p = project.getPage(pageId);
if ( !isNull(p) ) {
var cps = p.pages;
for ( var i = 0; i < cps.count; ++i ) {
var cp = cps.item(i);
if ( cp.visible && cp.active ) {
return true;
}
}
}
return false;
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\hauptmenu.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570464663114().executeScript();
2020-07-14 20:57:26,527 [19] INFO - ---------
2020-07-14 20:57:26,528 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1357.
2020-07-14 20:57:26,528 [19] INFO - ---------
2020-07-14 20:57:26,529 [19] INFO - About to execute the following script:
2020-07-14 20:57:26,530 [19] INFO - ---------
2020-07-14 20:57:26,530 [19] INFO - function SE637303570465293150() {}
SE637303570465293150.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\inline-editing-breadcrumb.html'.
context.write(" \r\n\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\inline-editing-breadcrumb.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570465293150().executeScript();
2020-07-14 20:57:26,530 [19] INFO - ---------
2020-07-14 20:57:26,532 [19] INFO - Finished executing the following script:
2020-07-14 20:57:26,532 [19] INFO - ---------
2020-07-14 20:57:26,533 [19] INFO - function SE637303570465293150() {}
SE637303570465293150.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\inline-editing-breadcrumb.html'.
context.write(" \r\n\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\inline-editing-breadcrumb.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570465293150().executeScript();
2020-07-14 20:57:26,533 [19] INFO - ---------
2020-07-14 20:57:26,533 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1358.
2020-07-14 20:57:26,534 [19] INFO - ---------
2020-07-14 20:57:26,535 [19] INFO - About to execute the following script:
2020-07-14 20:57:26,535 [19] INFO - ---------
2020-07-14 20:57:26,535 [19] INFO - function SE637303570465353153() {}
SE637303570465353153.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\breadcrumbs.html'.
var breadcrumb = context.param(0, "");
var breadcrumb_separator = context.param(1, "");
var pageId = page.id;
var parentPage = page;
var pagesArray = [];
var startpage = projectFolder.startPage;
// walk the page-tree upwards and store ids of pages which are visible in navigation
while ( pageId !== 0 ){
if ( parentPage.type=="projectFolder" ){
break; // A project folder is currently always the top element in the page hierarchy chain, so it is safe to break here since no further pages can exist
}
else if ( parentPage.visible || parentPage.id == page.id ){
// add the current page (ignoring visibility) and all visible paren pages to the pagesArray
pagesArray.unshift(parentPage.id);
}
var p = project.getPage(pageId);
pageId = p.parentPageId;
parentPage = project.getPage(pageId);
}
if ( pagesArray.length > 0 ){
context.write("\r\n\t");
context.write( breadcrumb );
context.write("\r\n\t\r\n\t");
}
// if startPage isn't the displayed page already and is visible,
// prefix the breadcrumbs with a link to it
if ( startpage && startpage.visible && page.id !== startpage.id ){
context.write("\r\n\t
\r\n\t\t");
}
}
if ( pagesArray.length > 0 ){
context.write("");
}
context.write("\r\n\t\t\t\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\breadcrumbs.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570465353153().executeScript();
2020-07-14 20:57:26,536 [19] INFO - ---------
2020-07-14 20:57:26,541 [19] INFO - Finished executing the following script:
2020-07-14 20:57:26,542 [19] INFO - ---------
2020-07-14 20:57:26,542 [19] INFO - function SE637303570465353153() {}
SE637303570465353153.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\breadcrumbs.html'.
var breadcrumb = context.param(0, "");
var breadcrumb_separator = context.param(1, "");
var pageId = page.id;
var parentPage = page;
var pagesArray = [];
var startpage = projectFolder.startPage;
// walk the page-tree upwards and store ids of pages which are visible in navigation
while ( pageId !== 0 ){
if ( parentPage.type=="projectFolder" ){
break; // A project folder is currently always the top element in the page hierarchy chain, so it is safe to break here since no further pages can exist
}
else if ( parentPage.visible || parentPage.id == page.id ){
// add the current page (ignoring visibility) and all visible paren pages to the pagesArray
pagesArray.unshift(parentPage.id);
}
var p = project.getPage(pageId);
pageId = p.parentPageId;
parentPage = project.getPage(pageId);
}
if ( pagesArray.length > 0 ){
context.write("\r\n\t");
context.write( breadcrumb );
context.write("\r\n\t\r\n\t");
}
// if startPage isn't the displayed page already and is visible,
// prefix the breadcrumbs with a link to it
if ( startpage && startpage.visible && page.id !== startpage.id ){
context.write("\r\n\t
\r\n\t\t");
}
}
if ( pagesArray.length > 0 ){
context.write("");
}
context.write("\r\n\t\t\t\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\breadcrumbs.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570465353153().executeScript();
2020-07-14 20:57:26,543 [19] INFO - ---------
2020-07-14 20:57:26,543 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1359.
2020-07-14 20:57:26,543 [19] INFO - ---------
2020-07-14 20:57:26,546 [19] INFO - About to execute the following script:
2020-07-14 20:57:26,546 [19] INFO - ---------
2020-07-14 20:57:26,546 [19] INFO - function SE637303570465453159() {}
SE637303570465453159.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\area.html'.
var areaName = context.param(0, "Standard");
var areaNameLc = areaName.toLowerCase();
var maxColumns = context.param(1, "0");
var cssRowClass = context.param(2, "");
var displayNumColumns = context.param(3, "12"); // number of columns to display. We always calculate with 12, but can display less
var cssAreaClass = context.param(4, "");
var noBreakoutWithNews = context.param(5, true);
var hideIeForArea = context.param(6, false);
var canContainer = project.canContainer;
var showEmptyArticleAreas = (system.preview && system.showEmptyPreviewAreas);
var hasNews = page.hasArea("News") && (page.anyAreaArticles("News") || showEmptyArticleAreas);
var hasNonSymlinkContainer = false;
var lastContainerIsSymlink = false;
if ( maxColumns == "1" ){
if ( cssRowClass == "" || cssRowClass == "noresize" ){
cssRowClass = "noresize";
}
else{
cssRowClass += " noresize";
}
}
var intPreviewData = '';
if ( system.preview ){
// if internal preview, we add some additional data-attributes to the area
// for access in JS (non internal scripting)
intPreviewData += ' data-showemptyarticleareas="' + showEmptyArticleAreas + '"';
}
context.write("\n\n
\n\t");
var containers = page.containers(areaName);
var firstC = 0;
var lastC = containers.count-1;
//system.log("last: " + lastC + " of " + containers.count);
if ( lastC > firstC && !containers.item(lastC).hasArticles ){
// last container has no articles and is not rendered, so find last visible one
for ( var ilcon = lastC; ilcon > 1; --ilcon ){
var lastContainer = containers.item(ilcon);
if ( lastContainer.hasArticles ){
lastC = ilcon;
break;
}
}
}
for ( var icon = 0; icon < containers.count; ++icon ){
var container = containers.item(icon);
// if current container doesn't contain any articles, we skip this loop
// we do not skip when on impressum page and the container ist the last one, as we need to insert freeware content
if ( !container.hasArticles && !(icon == containers.count-1 && page.isSpecialPage("legal")) ){
firstC++;
continue;
}
// append container styles to head via css
var cid = container.id;
var output = "";
var isSection = container.value("issection") == "1";
var isStyled = false;
if ( container.value("fontcolor", "") !== "" && container.value("fontcolor") !== "transparent" ){
var cssSelector = "#container_" + cid;
output = cssSelector;
output += ", " + cssSelector + " p";
output += ", " + cssSelector + " h1";
output += ", " + cssSelector + " h2";
output += ", " + cssSelector + " h3{";
output += "color: " + container.value("fontcolor") + ";";
output += "}\n";
}
if ( container.value("linkcolor", "") !== "" && container.value("linkcolor") !== "transparent" ){
var cssSelector = "#container_" + cid;
output += "\n\n" + cssSelector + " a:not(.button):not(.fancybox):not(.zpSO-Uplink-Flat):not(.zpnolayoutlinkstyles)";
output += ", " + cssSelector + " a:not(.button):not(.fancybox):not(.zpSO-Uplink-Flat):not(.zpnolayoutlinkstyles):hover{";
output += "color: " + container.value("linkcolor") + ";";
output += "}\n";
}
if ( container.value("margin", "") !== "" ){
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
if ( container.value("margin-top") ){
output += "margin-top: " + container.value("margin-top") + " !important;";
}
if ( container.value("margin-bottom") ){
output += "margin-bottom: " + container.value("margin-bottom") + " !important;" ;
}
output += "}\n";
}
if ( container.value("padding", "") !== "" ){
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
if ( container.value("padding-top") ){
output += "padding-top: " + container.value("padding-top") + " !important;";
}
if ( container.value("padding-bottom") ){
output += "padding-bottom: " + container.value("padding-bottom") + " !important;";
}
if ( container.value("padding-left") ){
output += "padding-left: " + container.value("padding-left") + " !important;";
}
if ( container.value("padding-right") ){
output += "padding-right: " + container.value("padding-right") + " !important;";
}
output += "}\n";
}
if ( container.value("bgcolor", "") !== "" && container.value("bgcolor", "") !== "transparent" ){
isStyled = true;
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
output += "background-color: " + container.value("bgcolor") + " !important;";
output += "}\n";
}
var image = container.cssBackgroundImage("bgimage");
if ( image.imageUrl ){
isStyled = true;
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
output += "background-image: url(" + image.imageUrl + ") !important;";
output += "background-repeat: " + image.repeat + " !important;";
output += "background-size: " + image.size + " !important;";
output += "background-position: " + (image.position !== "" ? image.position : "center center") + " !important;";
output += "background-attachment: " + (image.attachment !== "" ? image.attachment : "scroll") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
var containerstyle = container.inlineCss || "";
containerstyle = containerstyle.toString().replace(/^\s+|\s+$/gm,''); // trim()
// make sure the users inlineCss properly ends with a semicolon as we attach more styles later below
if ( containerstyle && containerstyle.slice(-1) !== ";" ){
containerstyle += ";";
}
var initialContainerstyle = containerstyle;
containerstyle = containerstyle.replace(/^\s+|\s+$/gm,''); // trim()
if ( containerstyle ){
containerstyle = ' style="' + containerstyle + '"';
}
if ( noBreakoutWithNews && system.preview && container.value("breakout") == "1" && hasNews ){
system.warn("Die 'Randlos-Option' für einen Container kann nicht berücksichtigt werden, weil der 'Einfügen-Schalter' auf an steht oder die Seite auch Artikel im News-Bereich enthält.");
}
var containerTag = "div";
if ( isSection ){
containerTag = "section";
}
var containerIsSymlink = container.symlink ? true : false;
if ( !containerIsSymlink ){
hasNonSymlinkContainer = true;
}
else if ( icon == containers.count-1 ){
lastContainerIsSymlink = true;
}
context.write("\n\t\t\t<");
context.write( containerTag );
context.write(" id=\"container_");
context.write( container.id );
context.write("\" class=\"zpContainer");
if (icon==firstC){
context.write(" first");
}
if (icon==lastC){
context.write(" last");
}
if( container.value("animate", "") !== "" && container.value("animate") !== "off" ){
context.write(" zpanimate ");
context.write( container.value("animate"));
}
if( isStyled ){
context.write(" styled");
}
context.write(" ");
if ( container.value("breakout") == "1" ){
context.write("zpBreakout ");
}
if( noBreakoutWithNews && hasNews ) {
context.write(" hasNews");
}
context.write(" ");
context.write( container.cssClass );
context.write("\"");
context.write( containerstyle );
context.write(" \n\t\t\t\t data-zpeleel=\"container\" data-zpleid=\"");
context.write( container.id );
context.write("\">\n\t\t\t");
var paragraphs = container.paragraphs;
for ( var ipar = 0; ipar < paragraphs.count; ++ipar ){
var additionalRowClass = "";
var paragraph = paragraphs.item(ipar);
var columns = paragraph.columns;
// if current paragraph doesn't contain articles, we skip the loop, so we don't print empty paragraphs
// we do not skip when on impressum page and the container ist the last one, as we need to insert freeware content
var articleCount = paragraph.articles.count;
if ( articleCount < 1 && !(icon == containers.count-1 && page.isSpecialPage("legal")) ){
continue;
}
else if ( articleCount > 0 ){
// set special rowClass for Articles which are not visible, so we can remove any margins which might not be desired
var firstWidgetName = paragraph.articles.item(0).widgetName;
switch(firstWidgetName) {
case "Info-Banner":
additionalRowClass = " alertbanner";
break;
case "Quelltext":
additionalRowClass = " quelltext";
break;
case "Slider":
additionalRowClass = " zpwSlider";
break;
case "Carousel":
additionalRowClass = " zpwCarousel";
break;
case "Navigationsmenü":
if ( paragraph.articles.item(0).value("menufixed") ){
additionalRowClass = " zpwNavmenu zpwNavmenuFixed";
}
else{
additionalRowClass = " zpwNavmenu";
}
break;
case "Navigationsmenü manuell":
if ( paragraph.articles.item(0).value("menufixed") ){
additionalRowClass = " zpwNavmenu zpwNavmenuFixed";
}
else{
additionalRowClass = " zpwNavmenu";
}
break;
case "Video-Hintergrund":
additionalRowClass = " zpvideobg";
break;
}
// append row styles to head via css
var rid = paragraph.id;
var output = "";
if ( paragraph.value("margin", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
if ( paragraph.value("margin-top") ){
output += "margin-top: " + paragraph.value("margin-top", "initial") + " !important;";
}
if ( paragraph.value("margin-bottom") ){
output += "margin-bottom: " + paragraph.value("margin-bottom", "initial") + " !important;" ;
}
output += "}\n";
}
if ( paragraph.value("padding", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
if ( paragraph.value("padding-top") ){
output += "padding-top: " + paragraph.value("padding-top") + " !important;";
}
if ( paragraph.value("padding-bottom") ){
output += "padding-bottom: " + paragraph.value("padding-bottom") + " !important;";
}
if ( paragraph.value("padding-left") ){
output += "padding-left: " + paragraph.value("padding-left") + " !important;";
}
if ( paragraph.value("padding-right") ){
output += "padding-right: " + paragraph.value("padding-right") + " !important;";
}
output += "}\n";
}
if ( paragraph.value("bgcolor", "") !== "" && paragraph.value("bgcolor", "") !== "transparent" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "background-color: " + paragraph.value("bgcolor") + " !important;";
output += "}\n";
}
var pimage = paragraph.cssBackgroundImage("bgimage");
if ( pimage.imageUrl ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "background-image: url(" + pimage.imageUrl + ") !important;";
output += "background-repeat: " + pimage.repeat + " !important;";
output += "background-size: " + pimage.size + " !important;";
output += "background-position: " + (pimage.position !== "" ? pimage.position : "center center") + " !important;";
output += "background-attachment: " + (pimage.attachment !== "" ? pimage.attachment : "scroll") + ";";
output += "}\n";
}
if ( paragraph.value("justifycontent", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "justify-content: " + paragraph.value("justifycontent") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
// paragraph styles
var rowstyle = paragraph.inlineCss || "";
rowstyle = rowstyle.toString().replace(/^\s+|\s+$/gm,''); // trim();
// make sure the users inlineCss properly ends with a semicolon as we attach more styles later below
if ( rowstyle && rowstyle.slice(-1) !== ";" ){
rowstyle += ";";
}
context.write("\n\t\t\n\t\t\t\t\t");
if ( paragraph.value("breakout") == "1" ){
context.write("\n\t\t\t\t\t\t
\n\t\t\t\t\t>\n\t\t\n\t\t\t\t\t");
var evenodd = "even";
for ( var icol = 0; icol < columns.count; ++icol ){
var column = columns.item(icol);
var articles = column.articles;
var coid = column.id;
var output = "";
var isStyled = false;
var selectorPrefix = "#container_" + cid + " ";
if ( column.value("bgcolor", "") !== "" && column.value("bgcolor", "") !== "transparent" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "background-color: " + column.value("bgcolor") + ";";
output += "padding-top: 15px;";
output += "padding-bottom: 15px;";
output += "}\n";
isStyled = true;
}
if ( column.value("fontcolor", "") !== "" && column.value("fontcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector;
output += ", " + cssSelector + " p";
output += ", " + cssSelector + " h1";
output += ", " + cssSelector + " h2";
output += ", " + cssSelector + " h3{";
output += "color: " + column.value("fontcolor") + ";";
output += "}\n";
}
if ( column.value("linkcolor", "") !== "" && column.value("linkcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += "\n\n" + cssSelector + " a:not(.button)";
output += ", " + cssSelector + " a:not(.button):hover{";
output += "color: " + column.value("linkcolor") + ";";
output += "}\n";
}
if ( column.value("align-self", "") !== "" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "align-self: " + column.value("align-self") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
var clearCss = column.value("clearLeft") ? "clear: left;" : "";
if ( column.articles.count > 0 ){
var firstWidgetName = articles.item(0).widgetName;
}
else{
var firstWidgetName = "";
}
// used in a className, alternate between even and odd, not taking into account zpSpacer-Columns
if( firstWidgetName !== "Spacer" ){
if( evenodd === "even" ){
evenodd = "odd";
}
else{
evenodd = "even";
}
var additionalColumnClass = " " + evenodd;
}
else{
var additionalColumnClass = "";
}
// if a spacer-widget is alone in a column, we set a class .zpSpacer, so we can set the width of spacer-widgets responsively in zpgrid.less accordingly
if ( firstWidgetName == "Spacer" && column.articles.count < 2 ){
additionalColumnClass += " zpSpacer";
}
else if ( firstWidgetName == "Navigationsmenü" ){
additionalColumnClass += " zpnavmenu";
}
// TODO move adding of missing classes to converter and remove next 4 lines
var columnCssClass = column.cssClass;
if ( !column.cssClass || !column.cssClass.match(/\bc[1-9][0-2]?\b/) ){
columnCssClass = "c" + String(Math.round(12 / columns.count - 0.1)) ;
}
if ( column.value("clearLeft") ){
context.write("\n\t\t\t\t\t\t\n\t\t\t\t\t\t");
}
context.write("\n\t\t\t\t\t\t
\n\t\t\t\t\t\t>\n\t\t\t\n\t\t\t\t\t\t\t");
for ( var iart = 0; iart < articles.count; ++iart ){
var a = articles.item(iart);
context.write(a.render());
}
context.write("\n\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\n\t\t\t\t\t\t");
}
// insert zp-ad-box in last row of last container on impressum pages
if ( system.isFreeware && areaName.toLowerCase() == "standard" && page.isSpecialPage("legal") && icon == containers.count-1 && ipar == paragraphs.count-1 ){
context.write("\n\t\t\t\t\t\t\t
\n\t\t\t\t\t>\n\t\t\n\t\t\t\t\t");
var evenodd = "even";
for ( var icol = 0; icol < columns.count; ++icol ){
var column = columns.item(icol);
var articles = column.articles;
var coid = column.id;
var output = "";
var isStyled = false;
var selectorPrefix = "#container_" + cid + " ";
if ( column.value("bgcolor", "") !== "" && column.value("bgcolor", "") !== "transparent" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "background-color: " + column.value("bgcolor") + ";";
output += "padding-top: 15px;";
output += "padding-bottom: 15px;";
output += "}\n";
isStyled = true;
}
if ( column.value("fontcolor", "") !== "" && column.value("fontcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector;
output += ", " + cssSelector + " p";
output += ", " + cssSelector + " h1";
output += ", " + cssSelector + " h2";
output += ", " + cssSelector + " h3{";
output += "color: " + column.value("fontcolor") + ";";
output += "}\n";
}
if ( column.value("linkcolor", "") !== "" && column.value("linkcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += "\n\n" + cssSelector + " a:not(.button)";
output += ", " + cssSelector + " a:not(.button):hover{";
output += "color: " + column.value("linkcolor") + ";";
output += "}\n";
}
if ( column.value("align-self", "") !== "" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "align-self: " + column.value("align-self") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
var clearCss = column.value("clearLeft") ? "clear: left;" : "";
if ( column.articles.count > 0 ){
var firstWidgetName = articles.item(0).widgetName;
}
else{
var firstWidgetName = "";
}
// used in a className, alternate between even and odd, not taking into account zpSpacer-Columns
if( firstWidgetName !== "Spacer" ){
if( evenodd === "even" ){
evenodd = "odd";
}
else{
evenodd = "even";
}
var additionalColumnClass = " " + evenodd;
}
else{
var additionalColumnClass = "";
}
// if a spacer-widget is alone in a column, we set a class .zpSpacer, so we can set the width of spacer-widgets responsively in zpgrid.less accordingly
if ( firstWidgetName == "Spacer" && column.articles.count < 2 ){
additionalColumnClass += " zpSpacer";
}
else if ( firstWidgetName == "Navigationsmenü" ){
additionalColumnClass += " zpnavmenu";
}
// TODO move adding of missing classes to converter and remove next 4 lines
var columnCssClass = column.cssClass;
if ( !column.cssClass || !column.cssClass.match(/\bc[1-9][0-2]?\b/) ){
columnCssClass = "c" + String(Math.round(12 / columns.count - 0.1)) ;
}
if ( column.value("clearLeft") ){
context.write("\n\t\t\t\t\t\t\n\t\t\t\t\t\t");
}
context.write("\n\t\t\t\t\t\t
\n\t\t\t\t\t\t>\n\t\t\t\n\t\t\t\t\t\t\t");
for ( var iart = 0; iart < articles.count; ++iart ){
var a = articles.item(iart);
context.write(a.render());
}
context.write("\n\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\n\t\t\t\t\t\t");
}
// insert zp-ad-box in last row of last container on impressum pages
if ( system.isFreeware && areaName.toLowerCase() == "standard" && page.isSpecialPage("legal") && icon == containers.count-1 && ipar == paragraphs.count-1 ){
context.write("\n\t\t\t\t\t\t\t
\n\n");
// insert overlay on startpage
if ( !system.preview && system.isFreeware && areaName.toLowerCase() == "standard" && projectFolder.startPage && projectFolder.startPage.id == page.id ){
context.write("\n\t\t");
context.write( system.partial("zpinfooverlay.html") );
context.write("\n\t\t");
}
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\area.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570465453159().executeScript();
2020-07-14 20:57:28,502 [19] INFO - ---------
2020-07-14 20:57:28,502 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1389.
2020-07-14 20:57:28,502 [19] INFO - ---------
2020-07-14 20:57:28,504 [19] INFO - About to execute the following script:
2020-07-14 20:57:28,504 [19] INFO - ---------
2020-07-14 20:57:28,505 [19] INFO - function SE637303570485044280() {}
SE637303570485044280.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu-layout.html'.
var pageId = context.param(0, 0);
var level = context.param(1, 1);
var p = project.getPage(pageId);
var childPages = isNull(p) ? page.projectFolder.pages : p.pages;
if ( childPages.count<=0 || (!isNull(p) && !hasVisibleChildPages(p.id)) ) { return; }
if ( !isNull(p) && p.level!=2 ) { return; }
context.write("\r\n\r\n\r\n\t");
for ( var i = 0; i < childPages.count; ++i ) {
var p = childPages.item(i);
if ( p.visible && p.active ) {
context.write("\r\n\r\n\t\t\t");
if ( p.id==page.id || hasActiveChildPage(p.id) ) {
context.write("\r\n\t\t\t ");
context.write( system.partial("submenu1.html", p.id, 2) );
context.write("\r\n\t\t\t");
}
context.write("\r\n\r\n\t");
}
}
context.write("\r\n\r\n\r\n ");
function hasActiveChildPage(pageId) {
var p = project.getPage(pageId);
var childPages = p.pages;
for ( var i = 0; i < childPages.count; ++i ) {
var childPage = childPages.item(i);
if ( childPage.id === page.id || hasActiveChildPage(childPage.id) ) {
return true;
}
}
return false;
}
function hasVisibleChildPages(pageId) {
var p = project.getPage(pageId);
if ( !isNull(p) ) {
var cps = p.pages;
for ( var i = 0; i < cps.count; ++i ) {
var cp = cps.item(i);
if ( cp.visible && cp.active ) {
return true;
}
}
}
return false;
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu-layout.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570485044280().executeScript();
2020-07-14 20:57:28,505 [19] INFO - ---------
2020-07-14 20:57:28,515 [19] INFO - About to execute the following script:
2020-07-14 20:57:28,515 [19] INFO - ---------
2020-07-14 20:57:28,515 [19] INFO - function SE637303570485154286() {}
SE637303570485154286.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu1.html'.
var pageId = context.param(0, 0);
var level = context.param(1, 1);
var p = project.getPage(pageId);
var childPages = isNull(p) ? page.projectFolder.pages : p.pages;
if ( childPages.count<=0 || (!isNull(p) && !hasVisibleChildPages(p.id)) ) { return; }
if ( !isNull(p) && p.level!=1 ) { return; }
context.write("\r\n
\r\n\t
\r\n\r\n\r\n ");
for ( var i = 0; i < childPages.count; ++i ) {
var p = childPages.item(i);
if ( p.visible && p.active ) {
context.write("\r\n\r\n ");
if ( p.id==page.id || hasActiveChildPage(p.id) ) {
context.write("\r\n ");
context.write( system.partial("item-submenu1-aktiv.html", p.id, 2) );
context.write("\r\n ");
} else {
context.write("\r\n ");
context.write( system.partial("item-submenu1.html", p.id, 2) );
context.write("\r\n ");
}
context.write("\r\n\r\n ");
}
}
context.write("\r\n\r\n\t
\r\n
\r\n\r\n ");
function hasActiveChildPage(pageId) {
var p = project.getPage(pageId);
var childPages = p.pages;
for ( var i = 0; i < childPages.count; ++i ) {
var childPage = childPages.item(i);
if ( childPage.id === page.id || hasActiveChildPage(childPage.id) ) {
return true;
}
}
return false;
}
function hasVisibleChildPages(pageId) {
var p = project.getPage(pageId);
if ( !isNull(p) ) {
var cps = p.pages;
for ( var i = 0; i < cps.count; ++i ) {
var cp = cps.item(i);
if ( cp.visible && cp.active ) {
return true;
}
}
}
return false;
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu1.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570485154286().executeScript();
2020-07-14 20:57:28,516 [19] INFO - ---------
2020-07-14 20:57:28,519 [19] INFO - About to execute the following script:
2020-07-14 20:57:28,520 [19] INFO - ---------
2020-07-14 20:57:28,520 [19] INFO - function SE637303570485194288() {}
SE637303570485194288.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-submenu1.html'.
var pageId = context.param(0, 0);
var p = project.getPage(pageId);
context.write("\r\n\r\n\t
\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-submenu1.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570485444303().executeScript();
2020-07-14 20:57:28,549 [19] INFO - ---------
2020-07-14 20:57:28,549 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1394.
2020-07-14 20:57:28,550 [19] INFO - ---------
2020-07-14 20:57:28,551 [19] INFO - Finished executing the following script:
2020-07-14 20:57:28,551 [19] INFO - ---------
2020-07-14 20:57:28,551 [19] INFO - function SE637303570485154286() {}
SE637303570485154286.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu1.html'.
var pageId = context.param(0, 0);
var level = context.param(1, 1);
var p = project.getPage(pageId);
var childPages = isNull(p) ? page.projectFolder.pages : p.pages;
if ( childPages.count<=0 || (!isNull(p) && !hasVisibleChildPages(p.id)) ) { return; }
if ( !isNull(p) && p.level!=1 ) { return; }
context.write("\r\n
\r\n\t
\r\n\r\n\r\n ");
for ( var i = 0; i < childPages.count; ++i ) {
var p = childPages.item(i);
if ( p.visible && p.active ) {
context.write("\r\n\r\n ");
if ( p.id==page.id || hasActiveChildPage(p.id) ) {
context.write("\r\n ");
context.write( system.partial("item-submenu1-aktiv.html", p.id, 2) );
context.write("\r\n ");
} else {
context.write("\r\n ");
context.write( system.partial("item-submenu1.html", p.id, 2) );
context.write("\r\n ");
}
context.write("\r\n\r\n ");
}
}
context.write("\r\n\r\n\t
\r\n
\r\n\r\n ");
function hasActiveChildPage(pageId) {
var p = project.getPage(pageId);
var childPages = p.pages;
for ( var i = 0; i < childPages.count; ++i ) {
var childPage = childPages.item(i);
if ( childPage.id === page.id || hasActiveChildPage(childPage.id) ) {
return true;
}
}
return false;
}
function hasVisibleChildPages(pageId) {
var p = project.getPage(pageId);
if ( !isNull(p) ) {
var cps = p.pages;
for ( var i = 0; i < cps.count; ++i ) {
var cp = cps.item(i);
if ( cp.visible && cp.active ) {
return true;
}
}
}
return false;
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu1.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570485154286().executeScript();
2020-07-14 20:57:28,552 [19] INFO - ---------
2020-07-14 20:57:28,552 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1395.
2020-07-14 20:57:28,552 [19] INFO - ---------
2020-07-14 20:57:28,566 [19] INFO - Finished executing the following script:
2020-07-14 20:57:28,567 [19] INFO - ---------
2020-07-14 20:57:28,567 [19] INFO - function SE637303570485044280() {}
SE637303570485044280.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu-layout.html'.
var pageId = context.param(0, 0);
var level = context.param(1, 1);
var p = project.getPage(pageId);
var childPages = isNull(p) ? page.projectFolder.pages : p.pages;
if ( childPages.count<=0 || (!isNull(p) && !hasVisibleChildPages(p.id)) ) { return; }
if ( !isNull(p) && p.level!=2 ) { return; }
context.write("\r\n\r\n\r\n\t");
for ( var i = 0; i < childPages.count; ++i ) {
var p = childPages.item(i);
if ( p.visible && p.active ) {
context.write("\r\n\r\n\t\t\t");
if ( p.id==page.id || hasActiveChildPage(p.id) ) {
context.write("\r\n\t\t\t ");
context.write( system.partial("submenu1.html", p.id, 2) );
context.write("\r\n\t\t\t");
}
context.write("\r\n\r\n\t");
}
}
context.write("\r\n\r\n\r\n ");
function hasActiveChildPage(pageId) {
var p = project.getPage(pageId);
var childPages = p.pages;
for ( var i = 0; i < childPages.count; ++i ) {
var childPage = childPages.item(i);
if ( childPage.id === page.id || hasActiveChildPage(childPage.id) ) {
return true;
}
}
return false;
}
function hasVisibleChildPages(pageId) {
var p = project.getPage(pageId);
if ( !isNull(p) ) {
var cps = p.pages;
for ( var i = 0; i < cps.count; ++i ) {
var cp = cps.item(i);
if ( cp.visible && cp.active ) {
return true;
}
}
}
return false;
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu-layout.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570485044280().executeScript();
2020-07-14 20:57:28,567 [19] INFO - ---------
2020-07-14 20:57:28,568 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1396.
2020-07-14 20:57:28,568 [19] INFO - ---------
2020-07-14 20:57:28,570 [19] INFO - About to execute the following script:
2020-07-14 20:57:28,570 [19] INFO - ---------
2020-07-14 20:57:28,571 [19] INFO - function SE637303570485694317() {}
SE637303570485694317.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\area.html'.
var areaName = context.param(0, "Standard");
var areaNameLc = areaName.toLowerCase();
var maxColumns = context.param(1, "0");
var cssRowClass = context.param(2, "");
var displayNumColumns = context.param(3, "12"); // number of columns to display. We always calculate with 12, but can display less
var cssAreaClass = context.param(4, "");
var noBreakoutWithNews = context.param(5, true);
var hideIeForArea = context.param(6, false);
var canContainer = project.canContainer;
var showEmptyArticleAreas = (system.preview && system.showEmptyPreviewAreas);
var hasNews = page.hasArea("News") && (page.anyAreaArticles("News") || showEmptyArticleAreas);
var hasNonSymlinkContainer = false;
var lastContainerIsSymlink = false;
if ( maxColumns == "1" ){
if ( cssRowClass == "" || cssRowClass == "noresize" ){
cssRowClass = "noresize";
}
else{
cssRowClass += " noresize";
}
}
var intPreviewData = '';
if ( system.preview ){
// if internal preview, we add some additional data-attributes to the area
// for access in JS (non internal scripting)
intPreviewData += ' data-showemptyarticleareas="' + showEmptyArticleAreas + '"';
}
context.write("\n\n
\n\t");
var containers = page.containers(areaName);
var firstC = 0;
var lastC = containers.count-1;
//system.log("last: " + lastC + " of " + containers.count);
if ( lastC > firstC && !containers.item(lastC).hasArticles ){
// last container has no articles and is not rendered, so find last visible one
for ( var ilcon = lastC; ilcon > 1; --ilcon ){
var lastContainer = containers.item(ilcon);
if ( lastContainer.hasArticles ){
lastC = ilcon;
break;
}
}
}
for ( var icon = 0; icon < containers.count; ++icon ){
var container = containers.item(icon);
// if current container doesn't contain any articles, we skip this loop
// we do not skip when on impressum page and the container ist the last one, as we need to insert freeware content
if ( !container.hasArticles && !(icon == containers.count-1 && page.isSpecialPage("legal")) ){
firstC++;
continue;
}
// append container styles to head via css
var cid = container.id;
var output = "";
var isSection = container.value("issection") == "1";
var isStyled = false;
if ( container.value("fontcolor", "") !== "" && container.value("fontcolor") !== "transparent" ){
var cssSelector = "#container_" + cid;
output = cssSelector;
output += ", " + cssSelector + " p";
output += ", " + cssSelector + " h1";
output += ", " + cssSelector + " h2";
output += ", " + cssSelector + " h3{";
output += "color: " + container.value("fontcolor") + ";";
output += "}\n";
}
if ( container.value("linkcolor", "") !== "" && container.value("linkcolor") !== "transparent" ){
var cssSelector = "#container_" + cid;
output += "\n\n" + cssSelector + " a:not(.button):not(.fancybox):not(.zpSO-Uplink-Flat):not(.zpnolayoutlinkstyles)";
output += ", " + cssSelector + " a:not(.button):not(.fancybox):not(.zpSO-Uplink-Flat):not(.zpnolayoutlinkstyles):hover{";
output += "color: " + container.value("linkcolor") + ";";
output += "}\n";
}
if ( container.value("margin", "") !== "" ){
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
if ( container.value("margin-top") ){
output += "margin-top: " + container.value("margin-top") + " !important;";
}
if ( container.value("margin-bottom") ){
output += "margin-bottom: " + container.value("margin-bottom") + " !important;" ;
}
output += "}\n";
}
if ( container.value("padding", "") !== "" ){
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
if ( container.value("padding-top") ){
output += "padding-top: " + container.value("padding-top") + " !important;";
}
if ( container.value("padding-bottom") ){
output += "padding-bottom: " + container.value("padding-bottom") + " !important;";
}
if ( container.value("padding-left") ){
output += "padding-left: " + container.value("padding-left") + " !important;";
}
if ( container.value("padding-right") ){
output += "padding-right: " + container.value("padding-right") + " !important;";
}
output += "}\n";
}
if ( container.value("bgcolor", "") !== "" && container.value("bgcolor", "") !== "transparent" ){
isStyled = true;
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
output += "background-color: " + container.value("bgcolor") + " !important;";
output += "}\n";
}
var image = container.cssBackgroundImage("bgimage");
if ( image.imageUrl ){
isStyled = true;
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
output += "background-image: url(" + image.imageUrl + ") !important;";
output += "background-repeat: " + image.repeat + " !important;";
output += "background-size: " + image.size + " !important;";
output += "background-position: " + (image.position !== "" ? image.position : "center center") + " !important;";
output += "background-attachment: " + (image.attachment !== "" ? image.attachment : "scroll") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
var containerstyle = container.inlineCss || "";
containerstyle = containerstyle.toString().replace(/^\s+|\s+$/gm,''); // trim()
// make sure the users inlineCss properly ends with a semicolon as we attach more styles later below
if ( containerstyle && containerstyle.slice(-1) !== ";" ){
containerstyle += ";";
}
var initialContainerstyle = containerstyle;
containerstyle = containerstyle.replace(/^\s+|\s+$/gm,''); // trim()
if ( containerstyle ){
containerstyle = ' style="' + containerstyle + '"';
}
if ( noBreakoutWithNews && system.preview && container.value("breakout") == "1" && hasNews ){
system.warn("Die 'Randlos-Option' für einen Container kann nicht berücksichtigt werden, weil der 'Einfügen-Schalter' auf an steht oder die Seite auch Artikel im News-Bereich enthält.");
}
var containerTag = "div";
if ( isSection ){
containerTag = "section";
}
var containerIsSymlink = container.symlink ? true : false;
if ( !containerIsSymlink ){
hasNonSymlinkContainer = true;
}
else if ( icon == containers.count-1 ){
lastContainerIsSymlink = true;
}
context.write("\n\t\t\t<");
context.write( containerTag );
context.write(" id=\"container_");
context.write( container.id );
context.write("\" class=\"zpContainer");
if (icon==firstC){
context.write(" first");
}
if (icon==lastC){
context.write(" last");
}
if( container.value("animate", "") !== "" && container.value("animate") !== "off" ){
context.write(" zpanimate ");
context.write( container.value("animate"));
}
if( isStyled ){
context.write(" styled");
}
context.write(" ");
if ( container.value("breakout") == "1" ){
context.write("zpBreakout ");
}
if( noBreakoutWithNews && hasNews ) {
context.write(" hasNews");
}
context.write(" ");
context.write( container.cssClass );
context.write("\"");
context.write( containerstyle );
context.write(" \n\t\t\t\t data-zpeleel=\"container\" data-zpleid=\"");
context.write( container.id );
context.write("\">\n\t\t\t");
var paragraphs = container.paragraphs;
for ( var ipar = 0; ipar < paragraphs.count; ++ipar ){
var additionalRowClass = "";
var paragraph = paragraphs.item(ipar);
var columns = paragraph.columns;
// if current paragraph doesn't contain articles, we skip the loop, so we don't print empty paragraphs
// we do not skip when on impressum page and the container ist the last one, as we need to insert freeware content
var articleCount = paragraph.articles.count;
if ( articleCount < 1 && !(icon == containers.count-1 && page.isSpecialPage("legal")) ){
continue;
}
else if ( articleCount > 0 ){
// set special rowClass for Articles which are not visible, so we can remove any margins which might not be desired
var firstWidgetName = paragraph.articles.item(0).widgetName;
switch(firstWidgetName) {
case "Info-Banner":
additionalRowClass = " alertbanner";
break;
case "Quelltext":
additionalRowClass = " quelltext";
break;
case "Slider":
additionalRowClass = " zpwSlider";
break;
case "Carousel":
additionalRowClass = " zpwCarousel";
break;
case "Navigationsmenü":
if ( paragraph.articles.item(0).value("menufixed") ){
additionalRowClass = " zpwNavmenu zpwNavmenuFixed";
}
else{
additionalRowClass = " zpwNavmenu";
}
break;
case "Navigationsmenü manuell":
if ( paragraph.articles.item(0).value("menufixed") ){
additionalRowClass = " zpwNavmenu zpwNavmenuFixed";
}
else{
additionalRowClass = " zpwNavmenu";
}
break;
case "Video-Hintergrund":
additionalRowClass = " zpvideobg";
break;
}
// append row styles to head via css
var rid = paragraph.id;
var output = "";
if ( paragraph.value("margin", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
if ( paragraph.value("margin-top") ){
output += "margin-top: " + paragraph.value("margin-top", "initial") + " !important;";
}
if ( paragraph.value("margin-bottom") ){
output += "margin-bottom: " + paragraph.value("margin-bottom", "initial") + " !important;" ;
}
output += "}\n";
}
if ( paragraph.value("padding", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
if ( paragraph.value("padding-top") ){
output += "padding-top: " + paragraph.value("padding-top") + " !important;";
}
if ( paragraph.value("padding-bottom") ){
output += "padding-bottom: " + paragraph.value("padding-bottom") + " !important;";
}
if ( paragraph.value("padding-left") ){
output += "padding-left: " + paragraph.value("padding-left") + " !important;";
}
if ( paragraph.value("padding-right") ){
output += "padding-right: " + paragraph.value("padding-right") + " !important;";
}
output += "}\n";
}
if ( paragraph.value("bgcolor", "") !== "" && paragraph.value("bgcolor", "") !== "transparent" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "background-color: " + paragraph.value("bgcolor") + " !important;";
output += "}\n";
}
var pimage = paragraph.cssBackgroundImage("bgimage");
if ( pimage.imageUrl ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "background-image: url(" + pimage.imageUrl + ") !important;";
output += "background-repeat: " + pimage.repeat + " !important;";
output += "background-size: " + pimage.size + " !important;";
output += "background-position: " + (pimage.position !== "" ? pimage.position : "center center") + " !important;";
output += "background-attachment: " + (pimage.attachment !== "" ? pimage.attachment : "scroll") + ";";
output += "}\n";
}
if ( paragraph.value("justifycontent", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "justify-content: " + paragraph.value("justifycontent") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
// paragraph styles
var rowstyle = paragraph.inlineCss || "";
rowstyle = rowstyle.toString().replace(/^\s+|\s+$/gm,''); // trim();
// make sure the users inlineCss properly ends with a semicolon as we attach more styles later below
if ( rowstyle && rowstyle.slice(-1) !== ";" ){
rowstyle += ";";
}
context.write("\n\t\t\n\t\t\t\t\t");
if ( paragraph.value("breakout") == "1" ){
context.write("\n\t\t\t\t\t\t
\n\t\t\t\t\t>\n\t\t\n\t\t\t\t\t");
var evenodd = "even";
for ( var icol = 0; icol < columns.count; ++icol ){
var column = columns.item(icol);
var articles = column.articles;
var coid = column.id;
var output = "";
var isStyled = false;
var selectorPrefix = "#container_" + cid + " ";
if ( column.value("bgcolor", "") !== "" && column.value("bgcolor", "") !== "transparent" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "background-color: " + column.value("bgcolor") + ";";
output += "padding-top: 15px;";
output += "padding-bottom: 15px;";
output += "}\n";
isStyled = true;
}
if ( column.value("fontcolor", "") !== "" && column.value("fontcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector;
output += ", " + cssSelector + " p";
output += ", " + cssSelector + " h1";
output += ", " + cssSelector + " h2";
output += ", " + cssSelector + " h3{";
output += "color: " + column.value("fontcolor") + ";";
output += "}\n";
}
if ( column.value("linkcolor", "") !== "" && column.value("linkcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += "\n\n" + cssSelector + " a:not(.button)";
output += ", " + cssSelector + " a:not(.button):hover{";
output += "color: " + column.value("linkcolor") + ";";
output += "}\n";
}
if ( column.value("align-self", "") !== "" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "align-self: " + column.value("align-self") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
var clearCss = column.value("clearLeft") ? "clear: left;" : "";
if ( column.articles.count > 0 ){
var firstWidgetName = articles.item(0).widgetName;
}
else{
var firstWidgetName = "";
}
// used in a className, alternate between even and odd, not taking into account zpSpacer-Columns
if( firstWidgetName !== "Spacer" ){
if( evenodd === "even" ){
evenodd = "odd";
}
else{
evenodd = "even";
}
var additionalColumnClass = " " + evenodd;
}
else{
var additionalColumnClass = "";
}
// if a spacer-widget is alone in a column, we set a class .zpSpacer, so we can set the width of spacer-widgets responsively in zpgrid.less accordingly
if ( firstWidgetName == "Spacer" && column.articles.count < 2 ){
additionalColumnClass += " zpSpacer";
}
else if ( firstWidgetName == "Navigationsmenü" ){
additionalColumnClass += " zpnavmenu";
}
// TODO move adding of missing classes to converter and remove next 4 lines
var columnCssClass = column.cssClass;
if ( !column.cssClass || !column.cssClass.match(/\bc[1-9][0-2]?\b/) ){
columnCssClass = "c" + String(Math.round(12 / columns.count - 0.1)) ;
}
if ( column.value("clearLeft") ){
context.write("\n\t\t\t\t\t\t\n\t\t\t\t\t\t");
}
context.write("\n\t\t\t\t\t\t
\n\t\t\t\t\t\t>\n\t\t\t\n\t\t\t\t\t\t\t");
for ( var iart = 0; iart < articles.count; ++iart ){
var a = articles.item(iart);
context.write(a.render());
}
context.write("\n\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\n\t\t\t\t\t\t");
}
// insert zp-ad-box in last row of last container on impressum pages
if ( system.isFreeware && areaName.toLowerCase() == "standard" && page.isSpecialPage("legal") && icon == containers.count-1 && ipar == paragraphs.count-1 ){
context.write("\n\t\t\t\t\t\t\t
\n\t\t\t\t\t>\n\t\t\n\t\t\t\t\t");
var evenodd = "even";
for ( var icol = 0; icol < columns.count; ++icol ){
var column = columns.item(icol);
var articles = column.articles;
var coid = column.id;
var output = "";
var isStyled = false;
var selectorPrefix = "#container_" + cid + " ";
if ( column.value("bgcolor", "") !== "" && column.value("bgcolor", "") !== "transparent" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "background-color: " + column.value("bgcolor") + ";";
output += "padding-top: 15px;";
output += "padding-bottom: 15px;";
output += "}\n";
isStyled = true;
}
if ( column.value("fontcolor", "") !== "" && column.value("fontcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector;
output += ", " + cssSelector + " p";
output += ", " + cssSelector + " h1";
output += ", " + cssSelector + " h2";
output += ", " + cssSelector + " h3{";
output += "color: " + column.value("fontcolor") + ";";
output += "}\n";
}
if ( column.value("linkcolor", "") !== "" && column.value("linkcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += "\n\n" + cssSelector + " a:not(.button)";
output += ", " + cssSelector + " a:not(.button):hover{";
output += "color: " + column.value("linkcolor") + ";";
output += "}\n";
}
if ( column.value("align-self", "") !== "" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "align-self: " + column.value("align-self") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
var clearCss = column.value("clearLeft") ? "clear: left;" : "";
if ( column.articles.count > 0 ){
var firstWidgetName = articles.item(0).widgetName;
}
else{
var firstWidgetName = "";
}
// used in a className, alternate between even and odd, not taking into account zpSpacer-Columns
if( firstWidgetName !== "Spacer" ){
if( evenodd === "even" ){
evenodd = "odd";
}
else{
evenodd = "even";
}
var additionalColumnClass = " " + evenodd;
}
else{
var additionalColumnClass = "";
}
// if a spacer-widget is alone in a column, we set a class .zpSpacer, so we can set the width of spacer-widgets responsively in zpgrid.less accordingly
if ( firstWidgetName == "Spacer" && column.articles.count < 2 ){
additionalColumnClass += " zpSpacer";
}
else if ( firstWidgetName == "Navigationsmenü" ){
additionalColumnClass += " zpnavmenu";
}
// TODO move adding of missing classes to converter and remove next 4 lines
var columnCssClass = column.cssClass;
if ( !column.cssClass || !column.cssClass.match(/\bc[1-9][0-2]?\b/) ){
columnCssClass = "c" + String(Math.round(12 / columns.count - 0.1)) ;
}
if ( column.value("clearLeft") ){
context.write("\n\t\t\t\t\t\t\n\t\t\t\t\t\t");
}
context.write("\n\t\t\t\t\t\t
\n\t\t\t\t\t\t>\n\t\t\t\n\t\t\t\t\t\t\t");
for ( var iart = 0; iart < articles.count; ++iart ){
var a = articles.item(iart);
context.write(a.render());
}
context.write("\n\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\n\t\t\t\t\t\t");
}
// insert zp-ad-box in last row of last container on impressum pages
if ( system.isFreeware && areaName.toLowerCase() == "standard" && page.isSpecialPage("legal") && icon == containers.count-1 && ipar == paragraphs.count-1 ){
context.write("\n\t\t\t\t\t\t\t
\r\n\r\n");
var nextText = system.htmlEncode(page.attribute("header_next_text")) || "weiter";
var prevText = system.htmlEncode(page.attribute("header_prev_text")) || "zurück";
var inlineEditingInitDelay = 50;
var useSmoothHeight = "true" === "false" ? "false" : "true";
if ( useSmoothHeight === "true" ){
inlineEditingInitDelay = 1000;
}
context.write("\r\n\r\n");
if ( numHeaders > 0 ) {
context.write("\r\n\t\r\n");
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\widgets\singleheader\standard.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570500895186().executeScript();
2020-07-14 20:57:30,154 [19] INFO - ---------
2020-07-14 20:57:30,155 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1409.
2020-07-14 20:57:30,155 [19] INFO - ---------
2020-07-14 20:57:30,156 [19] INFO - Finished executing the following script:
2020-07-14 20:57:30,157 [19] INFO - ---------
2020-07-14 20:57:30,157 [19] INFO - function SE637303570500795181() {}
SE637303570500795181.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\header.html'.
var areaName = "Header";
var headers = page.articlesInArea(areaName);
var headerShown = false;
for ( var ihead = 0; ihead < headers.count; ++ihead ){
// in a header-area, we only render the first active container/row/article
if ( headerShown && ihead > 0 ){
break;
}
context.write(headers.item(ihead).render());
headerShown = true;
}
context.write("\r\n\r\n\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\header.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570500795181().executeScript();
2020-07-14 20:57:30,157 [19] INFO - ---------
2020-07-14 20:57:30,158 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1410.
2020-07-14 20:57:30,158 [19] INFO - ---------
2020-07-14 20:57:30,159 [19] INFO - About to execute the following script:
2020-07-14 20:57:30,159 [19] INFO - ---------
2020-07-14 20:57:30,159 [19] INFO - function SE637303570501595226() {}
SE637303570501595226.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\hauptmenu.html'.
var pageId = context.param(0, 0);
var level = context.param(1, 1);
var p = project.getPage(pageId);
var childPages = isNull(p) ? page.projectFolder.pages : p.pages;
if ( childPages.count<=0 || (!isNull(p) && !hasVisibleChildPages(p.id)) ) { return; }
if ( !isNull(p) && p.level!=1 ) { return; }
context.write("\r\n
\r\n\r\n\r\n ");
for ( var i = 0; i < childPages.count; ++i ) {
var p = childPages.item(i);
if ( p.visible && p.active ) {
context.write("\r\n\r\n ");
if ( p.id==page.id || hasActiveChildPage(p.id) ) {
context.write("\r\n ");
context.write( system.partial("item-hauptmenu-aktiv.html", p.id, 1) );
context.write("\r\n ");
} else {
context.write("\r\n ");
context.write( system.partial("item-hauptmenu.html", p.id, 1) );
context.write("\r\n ");
}
context.write("\r\n\r\n ");
}
}
context.write("\r\n\r\n
\r\n\r\n ");
function hasActiveChildPage(pageId) {
var p = project.getPage(pageId);
var childPages = p.pages;
for ( var i = 0; i < childPages.count; ++i ) {
var childPage = childPages.item(i);
if ( childPage.id === page.id || hasActiveChildPage(childPage.id) ) {
return true;
}
}
return false;
}
function hasVisibleChildPages(pageId) {
var p = project.getPage(pageId);
if ( !isNull(p) ) {
var cps = p.pages;
for ( var i = 0; i < cps.count; ++i ) {
var cp = cps.item(i);
if ( cp.visible && cp.active ) {
return true;
}
}
}
return false;
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\hauptmenu.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570501595226().executeScript();
2020-07-14 20:57:30,160 [19] INFO - ---------
2020-07-14 20:57:30,167 [19] INFO - About to execute the following script:
2020-07-14 20:57:30,167 [19] INFO - ---------
2020-07-14 20:57:30,167 [19] INFO - function SE637303570501675231() {}
SE637303570501675231.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-hauptmenu.html'.
var pageId = context.param(0, 0);
var p = project.getPage(pageId);
context.write("\r\n\r\n
\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-hauptmenu.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570502195261().executeScript();
2020-07-14 20:57:30,224 [19] INFO - ---------
2020-07-14 20:57:30,224 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1417.
2020-07-14 20:57:30,225 [19] INFO - ---------
2020-07-14 20:57:30,225 [19] INFO - Finished executing the following script:
2020-07-14 20:57:30,226 [19] INFO - ---------
2020-07-14 20:57:30,226 [19] INFO - function SE637303570501595226() {}
SE637303570501595226.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\hauptmenu.html'.
var pageId = context.param(0, 0);
var level = context.param(1, 1);
var p = project.getPage(pageId);
var childPages = isNull(p) ? page.projectFolder.pages : p.pages;
if ( childPages.count<=0 || (!isNull(p) && !hasVisibleChildPages(p.id)) ) { return; }
if ( !isNull(p) && p.level!=1 ) { return; }
context.write("\r\n
\r\n\r\n\r\n ");
for ( var i = 0; i < childPages.count; ++i ) {
var p = childPages.item(i);
if ( p.visible && p.active ) {
context.write("\r\n\r\n ");
if ( p.id==page.id || hasActiveChildPage(p.id) ) {
context.write("\r\n ");
context.write( system.partial("item-hauptmenu-aktiv.html", p.id, 1) );
context.write("\r\n ");
} else {
context.write("\r\n ");
context.write( system.partial("item-hauptmenu.html", p.id, 1) );
context.write("\r\n ");
}
context.write("\r\n\r\n ");
}
}
context.write("\r\n\r\n
\r\n\r\n ");
function hasActiveChildPage(pageId) {
var p = project.getPage(pageId);
var childPages = p.pages;
for ( var i = 0; i < childPages.count; ++i ) {
var childPage = childPages.item(i);
if ( childPage.id === page.id || hasActiveChildPage(childPage.id) ) {
return true;
}
}
return false;
}
function hasVisibleChildPages(pageId) {
var p = project.getPage(pageId);
if ( !isNull(p) ) {
var cps = p.pages;
for ( var i = 0; i < cps.count; ++i ) {
var cp = cps.item(i);
if ( cp.visible && cp.active ) {
return true;
}
}
}
return false;
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\hauptmenu.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570501595226().executeScript();
2020-07-14 20:57:30,226 [19] INFO - ---------
2020-07-14 20:57:30,227 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1418.
2020-07-14 20:57:30,227 [19] INFO - ---------
2020-07-14 20:57:30,228 [19] INFO - About to execute the following script:
2020-07-14 20:57:30,228 [19] INFO - ---------
2020-07-14 20:57:30,228 [19] INFO - function SE637303570502285266() {}
SE637303570502285266.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\inline-editing-breadcrumb.html'.
context.write(" \r\n\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\inline-editing-breadcrumb.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570502285266().executeScript();
2020-07-14 20:57:30,229 [19] INFO - ---------
2020-07-14 20:57:30,230 [19] INFO - Finished executing the following script:
2020-07-14 20:57:30,230 [19] INFO - ---------
2020-07-14 20:57:30,231 [19] INFO - function SE637303570502285266() {}
SE637303570502285266.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\inline-editing-breadcrumb.html'.
context.write(" \r\n\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\inline-editing-breadcrumb.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570502285266().executeScript();
2020-07-14 20:57:30,231 [19] INFO - ---------
2020-07-14 20:57:30,231 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1419.
2020-07-14 20:57:30,232 [19] INFO - ---------
2020-07-14 20:57:30,233 [19] INFO - About to execute the following script:
2020-07-14 20:57:30,234 [19] INFO - ---------
2020-07-14 20:57:30,234 [19] INFO - function SE637303570502335269() {}
SE637303570502335269.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\breadcrumbs.html'.
var breadcrumb = context.param(0, "");
var breadcrumb_separator = context.param(1, "");
var pageId = page.id;
var parentPage = page;
var pagesArray = [];
var startpage = projectFolder.startPage;
// walk the page-tree upwards and store ids of pages which are visible in navigation
while ( pageId !== 0 ){
if ( parentPage.type=="projectFolder" ){
break; // A project folder is currently always the top element in the page hierarchy chain, so it is safe to break here since no further pages can exist
}
else if ( parentPage.visible || parentPage.id == page.id ){
// add the current page (ignoring visibility) and all visible paren pages to the pagesArray
pagesArray.unshift(parentPage.id);
}
var p = project.getPage(pageId);
pageId = p.parentPageId;
parentPage = project.getPage(pageId);
}
if ( pagesArray.length > 0 ){
context.write("\r\n\t");
context.write( breadcrumb );
context.write("\r\n\t\r\n\t");
}
// if startPage isn't the displayed page already and is visible,
// prefix the breadcrumbs with a link to it
if ( startpage && startpage.visible && page.id !== startpage.id ){
context.write("\r\n\t
\r\n\t\t");
}
}
if ( pagesArray.length > 0 ){
context.write("");
}
context.write("\r\n\t\t\t\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\breadcrumbs.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570502335269().executeScript();
2020-07-14 20:57:30,235 [19] INFO - ---------
2020-07-14 20:57:30,240 [19] INFO - Finished executing the following script:
2020-07-14 20:57:30,241 [19] INFO - ---------
2020-07-14 20:57:30,241 [19] INFO - function SE637303570502335269() {}
SE637303570502335269.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\breadcrumbs.html'.
var breadcrumb = context.param(0, "");
var breadcrumb_separator = context.param(1, "");
var pageId = page.id;
var parentPage = page;
var pagesArray = [];
var startpage = projectFolder.startPage;
// walk the page-tree upwards and store ids of pages which are visible in navigation
while ( pageId !== 0 ){
if ( parentPage.type=="projectFolder" ){
break; // A project folder is currently always the top element in the page hierarchy chain, so it is safe to break here since no further pages can exist
}
else if ( parentPage.visible || parentPage.id == page.id ){
// add the current page (ignoring visibility) and all visible paren pages to the pagesArray
pagesArray.unshift(parentPage.id);
}
var p = project.getPage(pageId);
pageId = p.parentPageId;
parentPage = project.getPage(pageId);
}
if ( pagesArray.length > 0 ){
context.write("\r\n\t");
context.write( breadcrumb );
context.write("\r\n\t\r\n\t");
}
// if startPage isn't the displayed page already and is visible,
// prefix the breadcrumbs with a link to it
if ( startpage && startpage.visible && page.id !== startpage.id ){
context.write("\r\n\t
\r\n\t\t");
}
}
if ( pagesArray.length > 0 ){
context.write("");
}
context.write("\r\n\t\t\t\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\breadcrumbs.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570502335269().executeScript();
2020-07-14 20:57:30,242 [19] INFO - ---------
2020-07-14 20:57:30,242 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1420.
2020-07-14 20:57:30,242 [19] INFO - ---------
2020-07-14 20:57:30,244 [19] INFO - About to execute the following script:
2020-07-14 20:57:30,245 [19] INFO - ---------
2020-07-14 20:57:30,245 [19] INFO - function SE637303570502445275() {}
SE637303570502445275.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\area.html'.
var areaName = context.param(0, "Standard");
var areaNameLc = areaName.toLowerCase();
var maxColumns = context.param(1, "0");
var cssRowClass = context.param(2, "");
var displayNumColumns = context.param(3, "12"); // number of columns to display. We always calculate with 12, but can display less
var cssAreaClass = context.param(4, "");
var noBreakoutWithNews = context.param(5, true);
var hideIeForArea = context.param(6, false);
var canContainer = project.canContainer;
var showEmptyArticleAreas = (system.preview && system.showEmptyPreviewAreas);
var hasNews = page.hasArea("News") && (page.anyAreaArticles("News") || showEmptyArticleAreas);
var hasNonSymlinkContainer = false;
var lastContainerIsSymlink = false;
if ( maxColumns == "1" ){
if ( cssRowClass == "" || cssRowClass == "noresize" ){
cssRowClass = "noresize";
}
else{
cssRowClass += " noresize";
}
}
var intPreviewData = '';
if ( system.preview ){
// if internal preview, we add some additional data-attributes to the area
// for access in JS (non internal scripting)
intPreviewData += ' data-showemptyarticleareas="' + showEmptyArticleAreas + '"';
}
context.write("\n\n
\n\t");
var containers = page.containers(areaName);
var firstC = 0;
var lastC = containers.count-1;
//system.log("last: " + lastC + " of " + containers.count);
if ( lastC > firstC && !containers.item(lastC).hasArticles ){
// last container has no articles and is not rendered, so find last visible one
for ( var ilcon = lastC; ilcon > 1; --ilcon ){
var lastContainer = containers.item(ilcon);
if ( lastContainer.hasArticles ){
lastC = ilcon;
break;
}
}
}
for ( var icon = 0; icon < containers.count; ++icon ){
var container = containers.item(icon);
// if current container doesn't contain any articles, we skip this loop
// we do not skip when on impressum page and the container ist the last one, as we need to insert freeware content
if ( !container.hasArticles && !(icon == containers.count-1 && page.isSpecialPage("legal")) ){
firstC++;
continue;
}
// append container styles to head via css
var cid = container.id;
var output = "";
var isSection = container.value("issection") == "1";
var isStyled = false;
if ( container.value("fontcolor", "") !== "" && container.value("fontcolor") !== "transparent" ){
var cssSelector = "#container_" + cid;
output = cssSelector;
output += ", " + cssSelector + " p";
output += ", " + cssSelector + " h1";
output += ", " + cssSelector + " h2";
output += ", " + cssSelector + " h3{";
output += "color: " + container.value("fontcolor") + ";";
output += "}\n";
}
if ( container.value("linkcolor", "") !== "" && container.value("linkcolor") !== "transparent" ){
var cssSelector = "#container_" + cid;
output += "\n\n" + cssSelector + " a:not(.button):not(.fancybox):not(.zpSO-Uplink-Flat):not(.zpnolayoutlinkstyles)";
output += ", " + cssSelector + " a:not(.button):not(.fancybox):not(.zpSO-Uplink-Flat):not(.zpnolayoutlinkstyles):hover{";
output += "color: " + container.value("linkcolor") + ";";
output += "}\n";
}
if ( container.value("margin", "") !== "" ){
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
if ( container.value("margin-top") ){
output += "margin-top: " + container.value("margin-top") + " !important;";
}
if ( container.value("margin-bottom") ){
output += "margin-bottom: " + container.value("margin-bottom") + " !important;" ;
}
output += "}\n";
}
if ( container.value("padding", "") !== "" ){
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
if ( container.value("padding-top") ){
output += "padding-top: " + container.value("padding-top") + " !important;";
}
if ( container.value("padding-bottom") ){
output += "padding-bottom: " + container.value("padding-bottom") + " !important;";
}
if ( container.value("padding-left") ){
output += "padding-left: " + container.value("padding-left") + " !important;";
}
if ( container.value("padding-right") ){
output += "padding-right: " + container.value("padding-right") + " !important;";
}
output += "}\n";
}
if ( container.value("bgcolor", "") !== "" && container.value("bgcolor", "") !== "transparent" ){
isStyled = true;
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
output += "background-color: " + container.value("bgcolor") + " !important;";
output += "}\n";
}
var image = container.cssBackgroundImage("bgimage");
if ( image.imageUrl ){
isStyled = true;
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
output += "background-image: url(" + image.imageUrl + ") !important;";
output += "background-repeat: " + image.repeat + " !important;";
output += "background-size: " + image.size + " !important;";
output += "background-position: " + (image.position !== "" ? image.position : "center center") + " !important;";
output += "background-attachment: " + (image.attachment !== "" ? image.attachment : "scroll") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
var containerstyle = container.inlineCss || "";
containerstyle = containerstyle.toString().replace(/^\s+|\s+$/gm,''); // trim()
// make sure the users inlineCss properly ends with a semicolon as we attach more styles later below
if ( containerstyle && containerstyle.slice(-1) !== ";" ){
containerstyle += ";";
}
var initialContainerstyle = containerstyle;
containerstyle = containerstyle.replace(/^\s+|\s+$/gm,''); // trim()
if ( containerstyle ){
containerstyle = ' style="' + containerstyle + '"';
}
if ( noBreakoutWithNews && system.preview && container.value("breakout") == "1" && hasNews ){
system.warn("Die 'Randlos-Option' für einen Container kann nicht berücksichtigt werden, weil der 'Einfügen-Schalter' auf an steht oder die Seite auch Artikel im News-Bereich enthält.");
}
var containerTag = "div";
if ( isSection ){
containerTag = "section";
}
var containerIsSymlink = container.symlink ? true : false;
if ( !containerIsSymlink ){
hasNonSymlinkContainer = true;
}
else if ( icon == containers.count-1 ){
lastContainerIsSymlink = true;
}
context.write("\n\t\t\t<");
context.write( containerTag );
context.write(" id=\"container_");
context.write( container.id );
context.write("\" class=\"zpContainer");
if (icon==firstC){
context.write(" first");
}
if (icon==lastC){
context.write(" last");
}
if( container.value("animate", "") !== "" && container.value("animate") !== "off" ){
context.write(" zpanimate ");
context.write( container.value("animate"));
}
if( isStyled ){
context.write(" styled");
}
context.write(" ");
if ( container.value("breakout") == "1" ){
context.write("zpBreakout ");
}
if( noBreakoutWithNews && hasNews ) {
context.write(" hasNews");
}
context.write(" ");
context.write( container.cssClass );
context.write("\"");
context.write( containerstyle );
context.write(" \n\t\t\t\t data-zpeleel=\"container\" data-zpleid=\"");
context.write( container.id );
context.write("\">\n\t\t\t");
var paragraphs = container.paragraphs;
for ( var ipar = 0; ipar < paragraphs.count; ++ipar ){
var additionalRowClass = "";
var paragraph = paragraphs.item(ipar);
var columns = paragraph.columns;
// if current paragraph doesn't contain articles, we skip the loop, so we don't print empty paragraphs
// we do not skip when on impressum page and the container ist the last one, as we need to insert freeware content
var articleCount = paragraph.articles.count;
if ( articleCount < 1 && !(icon == containers.count-1 && page.isSpecialPage("legal")) ){
continue;
}
else if ( articleCount > 0 ){
// set special rowClass for Articles which are not visible, so we can remove any margins which might not be desired
var firstWidgetName = paragraph.articles.item(0).widgetName;
switch(firstWidgetName) {
case "Info-Banner":
additionalRowClass = " alertbanner";
break;
case "Quelltext":
additionalRowClass = " quelltext";
break;
case "Slider":
additionalRowClass = " zpwSlider";
break;
case "Carousel":
additionalRowClass = " zpwCarousel";
break;
case "Navigationsmenü":
if ( paragraph.articles.item(0).value("menufixed") ){
additionalRowClass = " zpwNavmenu zpwNavmenuFixed";
}
else{
additionalRowClass = " zpwNavmenu";
}
break;
case "Navigationsmenü manuell":
if ( paragraph.articles.item(0).value("menufixed") ){
additionalRowClass = " zpwNavmenu zpwNavmenuFixed";
}
else{
additionalRowClass = " zpwNavmenu";
}
break;
case "Video-Hintergrund":
additionalRowClass = " zpvideobg";
break;
}
// append row styles to head via css
var rid = paragraph.id;
var output = "";
if ( paragraph.value("margin", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
if ( paragraph.value("margin-top") ){
output += "margin-top: " + paragraph.value("margin-top", "initial") + " !important;";
}
if ( paragraph.value("margin-bottom") ){
output += "margin-bottom: " + paragraph.value("margin-bottom", "initial") + " !important;" ;
}
output += "}\n";
}
if ( paragraph.value("padding", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
if ( paragraph.value("padding-top") ){
output += "padding-top: " + paragraph.value("padding-top") + " !important;";
}
if ( paragraph.value("padding-bottom") ){
output += "padding-bottom: " + paragraph.value("padding-bottom") + " !important;";
}
if ( paragraph.value("padding-left") ){
output += "padding-left: " + paragraph.value("padding-left") + " !important;";
}
if ( paragraph.value("padding-right") ){
output += "padding-right: " + paragraph.value("padding-right") + " !important;";
}
output += "}\n";
}
if ( paragraph.value("bgcolor", "") !== "" && paragraph.value("bgcolor", "") !== "transparent" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "background-color: " + paragraph.value("bgcolor") + " !important;";
output += "}\n";
}
var pimage = paragraph.cssBackgroundImage("bgimage");
if ( pimage.imageUrl ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "background-image: url(" + pimage.imageUrl + ") !important;";
output += "background-repeat: " + pimage.repeat + " !important;";
output += "background-size: " + pimage.size + " !important;";
output += "background-position: " + (pimage.position !== "" ? pimage.position : "center center") + " !important;";
output += "background-attachment: " + (pimage.attachment !== "" ? pimage.attachment : "scroll") + ";";
output += "}\n";
}
if ( paragraph.value("justifycontent", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "justify-content: " + paragraph.value("justifycontent") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
// paragraph styles
var rowstyle = paragraph.inlineCss || "";
rowstyle = rowstyle.toString().replace(/^\s+|\s+$/gm,''); // trim();
// make sure the users inlineCss properly ends with a semicolon as we attach more styles later below
if ( rowstyle && rowstyle.slice(-1) !== ";" ){
rowstyle += ";";
}
context.write("\n\t\t\n\t\t\t\t\t");
if ( paragraph.value("breakout") == "1" ){
context.write("\n\t\t\t\t\t\t
\n\t\t\t\t\t>\n\t\t\n\t\t\t\t\t");
var evenodd = "even";
for ( var icol = 0; icol < columns.count; ++icol ){
var column = columns.item(icol);
var articles = column.articles;
var coid = column.id;
var output = "";
var isStyled = false;
var selectorPrefix = "#container_" + cid + " ";
if ( column.value("bgcolor", "") !== "" && column.value("bgcolor", "") !== "transparent" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "background-color: " + column.value("bgcolor") + ";";
output += "padding-top: 15px;";
output += "padding-bottom: 15px;";
output += "}\n";
isStyled = true;
}
if ( column.value("fontcolor", "") !== "" && column.value("fontcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector;
output += ", " + cssSelector + " p";
output += ", " + cssSelector + " h1";
output += ", " + cssSelector + " h2";
output += ", " + cssSelector + " h3{";
output += "color: " + column.value("fontcolor") + ";";
output += "}\n";
}
if ( column.value("linkcolor", "") !== "" && column.value("linkcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += "\n\n" + cssSelector + " a:not(.button)";
output += ", " + cssSelector + " a:not(.button):hover{";
output += "color: " + column.value("linkcolor") + ";";
output += "}\n";
}
if ( column.value("align-self", "") !== "" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "align-self: " + column.value("align-self") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
var clearCss = column.value("clearLeft") ? "clear: left;" : "";
if ( column.articles.count > 0 ){
var firstWidgetName = articles.item(0).widgetName;
}
else{
var firstWidgetName = "";
}
// used in a className, alternate between even and odd, not taking into account zpSpacer-Columns
if( firstWidgetName !== "Spacer" ){
if( evenodd === "even" ){
evenodd = "odd";
}
else{
evenodd = "even";
}
var additionalColumnClass = " " + evenodd;
}
else{
var additionalColumnClass = "";
}
// if a spacer-widget is alone in a column, we set a class .zpSpacer, so we can set the width of spacer-widgets responsively in zpgrid.less accordingly
if ( firstWidgetName == "Spacer" && column.articles.count < 2 ){
additionalColumnClass += " zpSpacer";
}
else if ( firstWidgetName == "Navigationsmenü" ){
additionalColumnClass += " zpnavmenu";
}
// TODO move adding of missing classes to converter and remove next 4 lines
var columnCssClass = column.cssClass;
if ( !column.cssClass || !column.cssClass.match(/\bc[1-9][0-2]?\b/) ){
columnCssClass = "c" + String(Math.round(12 / columns.count - 0.1)) ;
}
if ( column.value("clearLeft") ){
context.write("\n\t\t\t\t\t\t\n\t\t\t\t\t\t");
}
context.write("\n\t\t\t\t\t\t
\n\t\t\t\t\t\t>\n\t\t\t\n\t\t\t\t\t\t\t");
for ( var iart = 0; iart < articles.count; ++iart ){
var a = articles.item(iart);
context.write(a.render());
}
context.write("\n\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\n\t\t\t\t\t\t");
}
// insert zp-ad-box in last row of last container on impressum pages
if ( system.isFreeware && areaName.toLowerCase() == "standard" && page.isSpecialPage("legal") && icon == containers.count-1 && ipar == paragraphs.count-1 ){
context.write("\n\t\t\t\t\t\t\t
\n\t\t\t\t\t>\n\t\t\n\t\t\t\t\t");
var evenodd = "even";
for ( var icol = 0; icol < columns.count; ++icol ){
var column = columns.item(icol);
var articles = column.articles;
var coid = column.id;
var output = "";
var isStyled = false;
var selectorPrefix = "#container_" + cid + " ";
if ( column.value("bgcolor", "") !== "" && column.value("bgcolor", "") !== "transparent" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "background-color: " + column.value("bgcolor") + ";";
output += "padding-top: 15px;";
output += "padding-bottom: 15px;";
output += "}\n";
isStyled = true;
}
if ( column.value("fontcolor", "") !== "" && column.value("fontcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector;
output += ", " + cssSelector + " p";
output += ", " + cssSelector + " h1";
output += ", " + cssSelector + " h2";
output += ", " + cssSelector + " h3{";
output += "color: " + column.value("fontcolor") + ";";
output += "}\n";
}
if ( column.value("linkcolor", "") !== "" && column.value("linkcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += "\n\n" + cssSelector + " a:not(.button)";
output += ", " + cssSelector + " a:not(.button):hover{";
output += "color: " + column.value("linkcolor") + ";";
output += "}\n";
}
if ( column.value("align-self", "") !== "" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "align-self: " + column.value("align-self") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
var clearCss = column.value("clearLeft") ? "clear: left;" : "";
if ( column.articles.count > 0 ){
var firstWidgetName = articles.item(0).widgetName;
}
else{
var firstWidgetName = "";
}
// used in a className, alternate between even and odd, not taking into account zpSpacer-Columns
if( firstWidgetName !== "Spacer" ){
if( evenodd === "even" ){
evenodd = "odd";
}
else{
evenodd = "even";
}
var additionalColumnClass = " " + evenodd;
}
else{
var additionalColumnClass = "";
}
// if a spacer-widget is alone in a column, we set a class .zpSpacer, so we can set the width of spacer-widgets responsively in zpgrid.less accordingly
if ( firstWidgetName == "Spacer" && column.articles.count < 2 ){
additionalColumnClass += " zpSpacer";
}
else if ( firstWidgetName == "Navigationsmenü" ){
additionalColumnClass += " zpnavmenu";
}
// TODO move adding of missing classes to converter and remove next 4 lines
var columnCssClass = column.cssClass;
if ( !column.cssClass || !column.cssClass.match(/\bc[1-9][0-2]?\b/) ){
columnCssClass = "c" + String(Math.round(12 / columns.count - 0.1)) ;
}
if ( column.value("clearLeft") ){
context.write("\n\t\t\t\t\t\t\n\t\t\t\t\t\t");
}
context.write("\n\t\t\t\t\t\t
\n\t\t\t\t\t\t>\n\t\t\t\n\t\t\t\t\t\t\t");
for ( var iart = 0; iart < articles.count; ++iart ){
var a = articles.item(iart);
context.write(a.render());
}
context.write("\n\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\n\t\t\t\t\t\t");
}
// insert zp-ad-box in last row of last container on impressum pages
if ( system.isFreeware && areaName.toLowerCase() == "standard" && page.isSpecialPage("legal") && icon == containers.count-1 && ipar == paragraphs.count-1 ){
context.write("\n\t\t\t\t\t\t\t
\n\n");
// insert overlay on startpage
if ( !system.preview && system.isFreeware && areaName.toLowerCase() == "standard" && projectFolder.startPage && projectFolder.startPage.id == page.id ){
context.write("\n\t\t");
context.write( system.partial("zpinfooverlay.html") );
context.write("\n\t\t");
}
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\area.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570502445275().executeScript();
2020-07-14 20:57:30,551 [19] INFO - ---------
2020-07-14 20:57:30,551 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1435.
2020-07-14 20:57:30,551 [19] INFO - ---------
2020-07-14 20:57:30,552 [19] INFO - About to execute the following script:
2020-07-14 20:57:30,553 [19] INFO - ---------
2020-07-14 20:57:30,553 [19] INFO - function SE637303570505525451() {}
SE637303570505525451.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu-layout.html'.
var pageId = context.param(0, 0);
var level = context.param(1, 1);
var p = project.getPage(pageId);
var childPages = isNull(p) ? page.projectFolder.pages : p.pages;
if ( childPages.count<=0 || (!isNull(p) && !hasVisibleChildPages(p.id)) ) { return; }
if ( !isNull(p) && p.level!=2 ) { return; }
context.write("\r\n\r\n\r\n\t");
for ( var i = 0; i < childPages.count; ++i ) {
var p = childPages.item(i);
if ( p.visible && p.active ) {
context.write("\r\n\r\n\t\t\t");
if ( p.id==page.id || hasActiveChildPage(p.id) ) {
context.write("\r\n\t\t\t ");
context.write( system.partial("submenu1.html", p.id, 2) );
context.write("\r\n\t\t\t");
}
context.write("\r\n\r\n\t");
}
}
context.write("\r\n\r\n\r\n ");
function hasActiveChildPage(pageId) {
var p = project.getPage(pageId);
var childPages = p.pages;
for ( var i = 0; i < childPages.count; ++i ) {
var childPage = childPages.item(i);
if ( childPage.id === page.id || hasActiveChildPage(childPage.id) ) {
return true;
}
}
return false;
}
function hasVisibleChildPages(pageId) {
var p = project.getPage(pageId);
if ( !isNull(p) ) {
var cps = p.pages;
for ( var i = 0; i < cps.count; ++i ) {
var cp = cps.item(i);
if ( cp.visible && cp.active ) {
return true;
}
}
}
return false;
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu-layout.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570505525451().executeScript();
2020-07-14 20:57:30,553 [19] INFO - ---------
2020-07-14 20:57:30,564 [19] INFO - About to execute the following script:
2020-07-14 20:57:30,564 [19] INFO - ---------
2020-07-14 20:57:30,564 [19] INFO - function SE637303570505635457() {}
SE637303570505635457.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu1.html'.
var pageId = context.param(0, 0);
var level = context.param(1, 1);
var p = project.getPage(pageId);
var childPages = isNull(p) ? page.projectFolder.pages : p.pages;
if ( childPages.count<=0 || (!isNull(p) && !hasVisibleChildPages(p.id)) ) { return; }
if ( !isNull(p) && p.level!=1 ) { return; }
context.write("\r\n
\r\n\t
\r\n\r\n\r\n ");
for ( var i = 0; i < childPages.count; ++i ) {
var p = childPages.item(i);
if ( p.visible && p.active ) {
context.write("\r\n\r\n ");
if ( p.id==page.id || hasActiveChildPage(p.id) ) {
context.write("\r\n ");
context.write( system.partial("item-submenu1-aktiv.html", p.id, 2) );
context.write("\r\n ");
} else {
context.write("\r\n ");
context.write( system.partial("item-submenu1.html", p.id, 2) );
context.write("\r\n ");
}
context.write("\r\n\r\n ");
}
}
context.write("\r\n\r\n\t
\r\n
\r\n\r\n ");
function hasActiveChildPage(pageId) {
var p = project.getPage(pageId);
var childPages = p.pages;
for ( var i = 0; i < childPages.count; ++i ) {
var childPage = childPages.item(i);
if ( childPage.id === page.id || hasActiveChildPage(childPage.id) ) {
return true;
}
}
return false;
}
function hasVisibleChildPages(pageId) {
var p = project.getPage(pageId);
if ( !isNull(p) ) {
var cps = p.pages;
for ( var i = 0; i < cps.count; ++i ) {
var cp = cps.item(i);
if ( cp.visible && cp.active ) {
return true;
}
}
}
return false;
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu1.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570505635457().executeScript();
2020-07-14 20:57:30,565 [19] INFO - ---------
2020-07-14 20:57:30,569 [19] INFO - About to execute the following script:
2020-07-14 20:57:30,569 [19] INFO - ---------
2020-07-14 20:57:30,569 [19] INFO - function SE637303570505695461() {}
SE637303570505695461.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-submenu1.html'.
var pageId = context.param(0, 0);
var p = project.getPage(pageId);
context.write("\r\n\r\n\t
\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-submenu1-aktiv.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570505935475().executeScript();
2020-07-14 20:57:30,603 [19] INFO - ---------
2020-07-14 20:57:30,603 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1440.
2020-07-14 20:57:30,604 [19] INFO - ---------
2020-07-14 20:57:30,604 [19] INFO - Finished executing the following script:
2020-07-14 20:57:30,605 [19] INFO - ---------
2020-07-14 20:57:30,605 [19] INFO - function SE637303570505635457() {}
SE637303570505635457.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu1.html'.
var pageId = context.param(0, 0);
var level = context.param(1, 1);
var p = project.getPage(pageId);
var childPages = isNull(p) ? page.projectFolder.pages : p.pages;
if ( childPages.count<=0 || (!isNull(p) && !hasVisibleChildPages(p.id)) ) { return; }
if ( !isNull(p) && p.level!=1 ) { return; }
context.write("\r\n
\r\n\t
\r\n\r\n\r\n ");
for ( var i = 0; i < childPages.count; ++i ) {
var p = childPages.item(i);
if ( p.visible && p.active ) {
context.write("\r\n\r\n ");
if ( p.id==page.id || hasActiveChildPage(p.id) ) {
context.write("\r\n ");
context.write( system.partial("item-submenu1-aktiv.html", p.id, 2) );
context.write("\r\n ");
} else {
context.write("\r\n ");
context.write( system.partial("item-submenu1.html", p.id, 2) );
context.write("\r\n ");
}
context.write("\r\n\r\n ");
}
}
context.write("\r\n\r\n\t
\r\n
\r\n\r\n ");
function hasActiveChildPage(pageId) {
var p = project.getPage(pageId);
var childPages = p.pages;
for ( var i = 0; i < childPages.count; ++i ) {
var childPage = childPages.item(i);
if ( childPage.id === page.id || hasActiveChildPage(childPage.id) ) {
return true;
}
}
return false;
}
function hasVisibleChildPages(pageId) {
var p = project.getPage(pageId);
if ( !isNull(p) ) {
var cps = p.pages;
for ( var i = 0; i < cps.count; ++i ) {
var cp = cps.item(i);
if ( cp.visible && cp.active ) {
return true;
}
}
}
return false;
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu1.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570505635457().executeScript();
2020-07-14 20:57:30,605 [19] INFO - ---------
2020-07-14 20:57:30,606 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1441.
2020-07-14 20:57:30,606 [19] INFO - ---------
2020-07-14 20:57:30,621 [19] INFO - Finished executing the following script:
2020-07-14 20:57:30,622 [19] INFO - ---------
2020-07-14 20:57:30,623 [19] INFO - function SE637303570505525451() {}
SE637303570505525451.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu-layout.html'.
var pageId = context.param(0, 0);
var level = context.param(1, 1);
var p = project.getPage(pageId);
var childPages = isNull(p) ? page.projectFolder.pages : p.pages;
if ( childPages.count<=0 || (!isNull(p) && !hasVisibleChildPages(p.id)) ) { return; }
if ( !isNull(p) && p.level!=2 ) { return; }
context.write("\r\n\r\n\r\n\t");
for ( var i = 0; i < childPages.count; ++i ) {
var p = childPages.item(i);
if ( p.visible && p.active ) {
context.write("\r\n\r\n\t\t\t");
if ( p.id==page.id || hasActiveChildPage(p.id) ) {
context.write("\r\n\t\t\t ");
context.write( system.partial("submenu1.html", p.id, 2) );
context.write("\r\n\t\t\t");
}
context.write("\r\n\r\n\t");
}
}
context.write("\r\n\r\n\r\n ");
function hasActiveChildPage(pageId) {
var p = project.getPage(pageId);
var childPages = p.pages;
for ( var i = 0; i < childPages.count; ++i ) {
var childPage = childPages.item(i);
if ( childPage.id === page.id || hasActiveChildPage(childPage.id) ) {
return true;
}
}
return false;
}
function hasVisibleChildPages(pageId) {
var p = project.getPage(pageId);
if ( !isNull(p) ) {
var cps = p.pages;
for ( var i = 0; i < cps.count; ++i ) {
var cp = cps.item(i);
if ( cp.visible && cp.active ) {
return true;
}
}
}
return false;
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu-layout.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570505525451().executeScript();
2020-07-14 20:57:30,624 [19] INFO - ---------
2020-07-14 20:57:30,624 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1442.
2020-07-14 20:57:30,624 [19] INFO - ---------
2020-07-14 20:57:30,626 [19] INFO - About to execute the following script:
2020-07-14 20:57:30,626 [19] INFO - ---------
2020-07-14 20:57:30,627 [19] INFO - function SE637303570506265493() {}
SE637303570506265493.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\area.html'.
var areaName = context.param(0, "Standard");
var areaNameLc = areaName.toLowerCase();
var maxColumns = context.param(1, "0");
var cssRowClass = context.param(2, "");
var displayNumColumns = context.param(3, "12"); // number of columns to display. We always calculate with 12, but can display less
var cssAreaClass = context.param(4, "");
var noBreakoutWithNews = context.param(5, true);
var hideIeForArea = context.param(6, false);
var canContainer = project.canContainer;
var showEmptyArticleAreas = (system.preview && system.showEmptyPreviewAreas);
var hasNews = page.hasArea("News") && (page.anyAreaArticles("News") || showEmptyArticleAreas);
var hasNonSymlinkContainer = false;
var lastContainerIsSymlink = false;
if ( maxColumns == "1" ){
if ( cssRowClass == "" || cssRowClass == "noresize" ){
cssRowClass = "noresize";
}
else{
cssRowClass += " noresize";
}
}
var intPreviewData = '';
if ( system.preview ){
// if internal preview, we add some additional data-attributes to the area
// for access in JS (non internal scripting)
intPreviewData += ' data-showemptyarticleareas="' + showEmptyArticleAreas + '"';
}
context.write("\n\n
\n\t");
var containers = page.containers(areaName);
var firstC = 0;
var lastC = containers.count-1;
//system.log("last: " + lastC + " of " + containers.count);
if ( lastC > firstC && !containers.item(lastC).hasArticles ){
// last container has no articles and is not rendered, so find last visible one
for ( var ilcon = lastC; ilcon > 1; --ilcon ){
var lastContainer = containers.item(ilcon);
if ( lastContainer.hasArticles ){
lastC = ilcon;
break;
}
}
}
for ( var icon = 0; icon < containers.count; ++icon ){
var container = containers.item(icon);
// if current container doesn't contain any articles, we skip this loop
// we do not skip when on impressum page and the container ist the last one, as we need to insert freeware content
if ( !container.hasArticles && !(icon == containers.count-1 && page.isSpecialPage("legal")) ){
firstC++;
continue;
}
// append container styles to head via css
var cid = container.id;
var output = "";
var isSection = container.value("issection") == "1";
var isStyled = false;
if ( container.value("fontcolor", "") !== "" && container.value("fontcolor") !== "transparent" ){
var cssSelector = "#container_" + cid;
output = cssSelector;
output += ", " + cssSelector + " p";
output += ", " + cssSelector + " h1";
output += ", " + cssSelector + " h2";
output += ", " + cssSelector + " h3{";
output += "color: " + container.value("fontcolor") + ";";
output += "}\n";
}
if ( container.value("linkcolor", "") !== "" && container.value("linkcolor") !== "transparent" ){
var cssSelector = "#container_" + cid;
output += "\n\n" + cssSelector + " a:not(.button):not(.fancybox):not(.zpSO-Uplink-Flat):not(.zpnolayoutlinkstyles)";
output += ", " + cssSelector + " a:not(.button):not(.fancybox):not(.zpSO-Uplink-Flat):not(.zpnolayoutlinkstyles):hover{";
output += "color: " + container.value("linkcolor") + ";";
output += "}\n";
}
if ( container.value("margin", "") !== "" ){
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
if ( container.value("margin-top") ){
output += "margin-top: " + container.value("margin-top") + " !important;";
}
if ( container.value("margin-bottom") ){
output += "margin-bottom: " + container.value("margin-bottom") + " !important;" ;
}
output += "}\n";
}
if ( container.value("padding", "") !== "" ){
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
if ( container.value("padding-top") ){
output += "padding-top: " + container.value("padding-top") + " !important;";
}
if ( container.value("padding-bottom") ){
output += "padding-bottom: " + container.value("padding-bottom") + " !important;";
}
if ( container.value("padding-left") ){
output += "padding-left: " + container.value("padding-left") + " !important;";
}
if ( container.value("padding-right") ){
output += "padding-right: " + container.value("padding-right") + " !important;";
}
output += "}\n";
}
if ( container.value("bgcolor", "") !== "" && container.value("bgcolor", "") !== "transparent" ){
isStyled = true;
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
output += "background-color: " + container.value("bgcolor") + " !important;";
output += "}\n";
}
var image = container.cssBackgroundImage("bgimage");
if ( image.imageUrl ){
isStyled = true;
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
output += "background-image: url(" + image.imageUrl + ") !important;";
output += "background-repeat: " + image.repeat + " !important;";
output += "background-size: " + image.size + " !important;";
output += "background-position: " + (image.position !== "" ? image.position : "center center") + " !important;";
output += "background-attachment: " + (image.attachment !== "" ? image.attachment : "scroll") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
var containerstyle = container.inlineCss || "";
containerstyle = containerstyle.toString().replace(/^\s+|\s+$/gm,''); // trim()
// make sure the users inlineCss properly ends with a semicolon as we attach more styles later below
if ( containerstyle && containerstyle.slice(-1) !== ";" ){
containerstyle += ";";
}
var initialContainerstyle = containerstyle;
containerstyle = containerstyle.replace(/^\s+|\s+$/gm,''); // trim()
if ( containerstyle ){
containerstyle = ' style="' + containerstyle + '"';
}
if ( noBreakoutWithNews && system.preview && container.value("breakout") == "1" && hasNews ){
system.warn("Die 'Randlos-Option' für einen Container kann nicht berücksichtigt werden, weil der 'Einfügen-Schalter' auf an steht oder die Seite auch Artikel im News-Bereich enthält.");
}
var containerTag = "div";
if ( isSection ){
containerTag = "section";
}
var containerIsSymlink = container.symlink ? true : false;
if ( !containerIsSymlink ){
hasNonSymlinkContainer = true;
}
else if ( icon == containers.count-1 ){
lastContainerIsSymlink = true;
}
context.write("\n\t\t\t<");
context.write( containerTag );
context.write(" id=\"container_");
context.write( container.id );
context.write("\" class=\"zpContainer");
if (icon==firstC){
context.write(" first");
}
if (icon==lastC){
context.write(" last");
}
if( container.value("animate", "") !== "" && container.value("animate") !== "off" ){
context.write(" zpanimate ");
context.write( container.value("animate"));
}
if( isStyled ){
context.write(" styled");
}
context.write(" ");
if ( container.value("breakout") == "1" ){
context.write("zpBreakout ");
}
if( noBreakoutWithNews && hasNews ) {
context.write(" hasNews");
}
context.write(" ");
context.write( container.cssClass );
context.write("\"");
context.write( containerstyle );
context.write(" \n\t\t\t\t data-zpeleel=\"container\" data-zpleid=\"");
context.write( container.id );
context.write("\">\n\t\t\t");
var paragraphs = container.paragraphs;
for ( var ipar = 0; ipar < paragraphs.count; ++ipar ){
var additionalRowClass = "";
var paragraph = paragraphs.item(ipar);
var columns = paragraph.columns;
// if current paragraph doesn't contain articles, we skip the loop, so we don't print empty paragraphs
// we do not skip when on impressum page and the container ist the last one, as we need to insert freeware content
var articleCount = paragraph.articles.count;
if ( articleCount < 1 && !(icon == containers.count-1 && page.isSpecialPage("legal")) ){
continue;
}
else if ( articleCount > 0 ){
// set special rowClass for Articles which are not visible, so we can remove any margins which might not be desired
var firstWidgetName = paragraph.articles.item(0).widgetName;
switch(firstWidgetName) {
case "Info-Banner":
additionalRowClass = " alertbanner";
break;
case "Quelltext":
additionalRowClass = " quelltext";
break;
case "Slider":
additionalRowClass = " zpwSlider";
break;
case "Carousel":
additionalRowClass = " zpwCarousel";
break;
case "Navigationsmenü":
if ( paragraph.articles.item(0).value("menufixed") ){
additionalRowClass = " zpwNavmenu zpwNavmenuFixed";
}
else{
additionalRowClass = " zpwNavmenu";
}
break;
case "Navigationsmenü manuell":
if ( paragraph.articles.item(0).value("menufixed") ){
additionalRowClass = " zpwNavmenu zpwNavmenuFixed";
}
else{
additionalRowClass = " zpwNavmenu";
}
break;
case "Video-Hintergrund":
additionalRowClass = " zpvideobg";
break;
}
// append row styles to head via css
var rid = paragraph.id;
var output = "";
if ( paragraph.value("margin", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
if ( paragraph.value("margin-top") ){
output += "margin-top: " + paragraph.value("margin-top", "initial") + " !important;";
}
if ( paragraph.value("margin-bottom") ){
output += "margin-bottom: " + paragraph.value("margin-bottom", "initial") + " !important;" ;
}
output += "}\n";
}
if ( paragraph.value("padding", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
if ( paragraph.value("padding-top") ){
output += "padding-top: " + paragraph.value("padding-top") + " !important;";
}
if ( paragraph.value("padding-bottom") ){
output += "padding-bottom: " + paragraph.value("padding-bottom") + " !important;";
}
if ( paragraph.value("padding-left") ){
output += "padding-left: " + paragraph.value("padding-left") + " !important;";
}
if ( paragraph.value("padding-right") ){
output += "padding-right: " + paragraph.value("padding-right") + " !important;";
}
output += "}\n";
}
if ( paragraph.value("bgcolor", "") !== "" && paragraph.value("bgcolor", "") !== "transparent" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "background-color: " + paragraph.value("bgcolor") + " !important;";
output += "}\n";
}
var pimage = paragraph.cssBackgroundImage("bgimage");
if ( pimage.imageUrl ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "background-image: url(" + pimage.imageUrl + ") !important;";
output += "background-repeat: " + pimage.repeat + " !important;";
output += "background-size: " + pimage.size + " !important;";
output += "background-position: " + (pimage.position !== "" ? pimage.position : "center center") + " !important;";
output += "background-attachment: " + (pimage.attachment !== "" ? pimage.attachment : "scroll") + ";";
output += "}\n";
}
if ( paragraph.value("justifycontent", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "justify-content: " + paragraph.value("justifycontent") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
// paragraph styles
var rowstyle = paragraph.inlineCss || "";
rowstyle = rowstyle.toString().replace(/^\s+|\s+$/gm,''); // trim();
// make sure the users inlineCss properly ends with a semicolon as we attach more styles later below
if ( rowstyle && rowstyle.slice(-1) !== ";" ){
rowstyle += ";";
}
context.write("\n\t\t\n\t\t\t\t\t");
if ( paragraph.value("breakout") == "1" ){
context.write("\n\t\t\t\t\t\t
\n\t\t\t\t\t>\n\t\t\n\t\t\t\t\t");
var evenodd = "even";
for ( var icol = 0; icol < columns.count; ++icol ){
var column = columns.item(icol);
var articles = column.articles;
var coid = column.id;
var output = "";
var isStyled = false;
var selectorPrefix = "#container_" + cid + " ";
if ( column.value("bgcolor", "") !== "" && column.value("bgcolor", "") !== "transparent" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "background-color: " + column.value("bgcolor") + ";";
output += "padding-top: 15px;";
output += "padding-bottom: 15px;";
output += "}\n";
isStyled = true;
}
if ( column.value("fontcolor", "") !== "" && column.value("fontcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector;
output += ", " + cssSelector + " p";
output += ", " + cssSelector + " h1";
output += ", " + cssSelector + " h2";
output += ", " + cssSelector + " h3{";
output += "color: " + column.value("fontcolor") + ";";
output += "}\n";
}
if ( column.value("linkcolor", "") !== "" && column.value("linkcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += "\n\n" + cssSelector + " a:not(.button)";
output += ", " + cssSelector + " a:not(.button):hover{";
output += "color: " + column.value("linkcolor") + ";";
output += "}\n";
}
if ( column.value("align-self", "") !== "" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "align-self: " + column.value("align-self") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
var clearCss = column.value("clearLeft") ? "clear: left;" : "";
if ( column.articles.count > 0 ){
var firstWidgetName = articles.item(0).widgetName;
}
else{
var firstWidgetName = "";
}
// used in a className, alternate between even and odd, not taking into account zpSpacer-Columns
if( firstWidgetName !== "Spacer" ){
if( evenodd === "even" ){
evenodd = "odd";
}
else{
evenodd = "even";
}
var additionalColumnClass = " " + evenodd;
}
else{
var additionalColumnClass = "";
}
// if a spacer-widget is alone in a column, we set a class .zpSpacer, so we can set the width of spacer-widgets responsively in zpgrid.less accordingly
if ( firstWidgetName == "Spacer" && column.articles.count < 2 ){
additionalColumnClass += " zpSpacer";
}
else if ( firstWidgetName == "Navigationsmenü" ){
additionalColumnClass += " zpnavmenu";
}
// TODO move adding of missing classes to converter and remove next 4 lines
var columnCssClass = column.cssClass;
if ( !column.cssClass || !column.cssClass.match(/\bc[1-9][0-2]?\b/) ){
columnCssClass = "c" + String(Math.round(12 / columns.count - 0.1)) ;
}
if ( column.value("clearLeft") ){
context.write("\n\t\t\t\t\t\t\n\t\t\t\t\t\t");
}
context.write("\n\t\t\t\t\t\t
\n\t\t\t\t\t\t>\n\t\t\t\n\t\t\t\t\t\t\t");
for ( var iart = 0; iart < articles.count; ++iart ){
var a = articles.item(iart);
context.write(a.render());
}
context.write("\n\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\n\t\t\t\t\t\t");
}
// insert zp-ad-box in last row of last container on impressum pages
if ( system.isFreeware && areaName.toLowerCase() == "standard" && page.isSpecialPage("legal") && icon == containers.count-1 && ipar == paragraphs.count-1 ){
context.write("\n\t\t\t\t\t\t\t
\n\t\t\t\t\t>\n\t\t\n\t\t\t\t\t");
var evenodd = "even";
for ( var icol = 0; icol < columns.count; ++icol ){
var column = columns.item(icol);
var articles = column.articles;
var coid = column.id;
var output = "";
var isStyled = false;
var selectorPrefix = "#container_" + cid + " ";
if ( column.value("bgcolor", "") !== "" && column.value("bgcolor", "") !== "transparent" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "background-color: " + column.value("bgcolor") + ";";
output += "padding-top: 15px;";
output += "padding-bottom: 15px;";
output += "}\n";
isStyled = true;
}
if ( column.value("fontcolor", "") !== "" && column.value("fontcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector;
output += ", " + cssSelector + " p";
output += ", " + cssSelector + " h1";
output += ", " + cssSelector + " h2";
output += ", " + cssSelector + " h3{";
output += "color: " + column.value("fontcolor") + ";";
output += "}\n";
}
if ( column.value("linkcolor", "") !== "" && column.value("linkcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += "\n\n" + cssSelector + " a:not(.button)";
output += ", " + cssSelector + " a:not(.button):hover{";
output += "color: " + column.value("linkcolor") + ";";
output += "}\n";
}
if ( column.value("align-self", "") !== "" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "align-self: " + column.value("align-self") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
var clearCss = column.value("clearLeft") ? "clear: left;" : "";
if ( column.articles.count > 0 ){
var firstWidgetName = articles.item(0).widgetName;
}
else{
var firstWidgetName = "";
}
// used in a className, alternate between even and odd, not taking into account zpSpacer-Columns
if( firstWidgetName !== "Spacer" ){
if( evenodd === "even" ){
evenodd = "odd";
}
else{
evenodd = "even";
}
var additionalColumnClass = " " + evenodd;
}
else{
var additionalColumnClass = "";
}
// if a spacer-widget is alone in a column, we set a class .zpSpacer, so we can set the width of spacer-widgets responsively in zpgrid.less accordingly
if ( firstWidgetName == "Spacer" && column.articles.count < 2 ){
additionalColumnClass += " zpSpacer";
}
else if ( firstWidgetName == "Navigationsmenü" ){
additionalColumnClass += " zpnavmenu";
}
// TODO move adding of missing classes to converter and remove next 4 lines
var columnCssClass = column.cssClass;
if ( !column.cssClass || !column.cssClass.match(/\bc[1-9][0-2]?\b/) ){
columnCssClass = "c" + String(Math.round(12 / columns.count - 0.1)) ;
}
if ( column.value("clearLeft") ){
context.write("\n\t\t\t\t\t\t\n\t\t\t\t\t\t");
}
context.write("\n\t\t\t\t\t\t
\n\t\t\t\t\t\t>\n\t\t\t\n\t\t\t\t\t\t\t");
for ( var iart = 0; iart < articles.count; ++iart ){
var a = articles.item(iart);
context.write(a.render());
}
context.write("\n\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\n\t\t\t\t\t\t");
}
// insert zp-ad-box in last row of last container on impressum pages
if ( system.isFreeware && areaName.toLowerCase() == "standard" && page.isSpecialPage("legal") && icon == containers.count-1 && ipar == paragraphs.count-1 ){
context.write("\n\t\t\t\t\t\t\t
\r\n\r\n");
var nextText = system.htmlEncode(page.attribute("header_next_text")) || "weiter";
var prevText = system.htmlEncode(page.attribute("header_prev_text")) || "zurück";
var inlineEditingInitDelay = 50;
var useSmoothHeight = "true" === "false" ? "false" : "true";
if ( useSmoothHeight === "true" ){
inlineEditingInitDelay = 1000;
}
context.write("\r\n\r\n");
if ( numHeaders > 0 ) {
context.write("\r\n\t\r\n");
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\widgets\singleheader\standard.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570508665631().executeScript();
2020-07-14 20:57:30,890 [19] INFO - ---------
2020-07-14 20:57:30,890 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1455.
2020-07-14 20:57:30,890 [19] INFO - ---------
2020-07-14 20:57:30,893 [19] INFO - Finished executing the following script:
2020-07-14 20:57:30,893 [19] INFO - ---------
2020-07-14 20:57:30,894 [19] INFO - function SE637303570508625628() {}
SE637303570508625628.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\header.html'.
var areaName = "Header";
var headers = page.articlesInArea(areaName);
var headerShown = false;
for ( var ihead = 0; ihead < headers.count; ++ihead ){
// in a header-area, we only render the first active container/row/article
if ( headerShown && ihead > 0 ){
break;
}
context.write(headers.item(ihead).render());
headerShown = true;
}
context.write("\r\n\r\n\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\header.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570508625628().executeScript();
2020-07-14 20:57:30,894 [19] INFO - ---------
2020-07-14 20:57:30,894 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1456.
2020-07-14 20:57:30,894 [19] INFO - ---------
2020-07-14 20:57:30,895 [19] INFO - About to execute the following script:
2020-07-14 20:57:30,896 [19] INFO - ---------
2020-07-14 20:57:30,896 [19] INFO - function SE637303570508955647() {}
SE637303570508955647.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\hauptmenu.html'.
var pageId = context.param(0, 0);
var level = context.param(1, 1);
var p = project.getPage(pageId);
var childPages = isNull(p) ? page.projectFolder.pages : p.pages;
if ( childPages.count<=0 || (!isNull(p) && !hasVisibleChildPages(p.id)) ) { return; }
if ( !isNull(p) && p.level!=1 ) { return; }
context.write("\r\n
\r\n\r\n\r\n ");
for ( var i = 0; i < childPages.count; ++i ) {
var p = childPages.item(i);
if ( p.visible && p.active ) {
context.write("\r\n\r\n ");
if ( p.id==page.id || hasActiveChildPage(p.id) ) {
context.write("\r\n ");
context.write( system.partial("item-hauptmenu-aktiv.html", p.id, 1) );
context.write("\r\n ");
} else {
context.write("\r\n ");
context.write( system.partial("item-hauptmenu.html", p.id, 1) );
context.write("\r\n ");
}
context.write("\r\n\r\n ");
}
}
context.write("\r\n\r\n
\r\n\r\n ");
function hasActiveChildPage(pageId) {
var p = project.getPage(pageId);
var childPages = p.pages;
for ( var i = 0; i < childPages.count; ++i ) {
var childPage = childPages.item(i);
if ( childPage.id === page.id || hasActiveChildPage(childPage.id) ) {
return true;
}
}
return false;
}
function hasVisibleChildPages(pageId) {
var p = project.getPage(pageId);
if ( !isNull(p) ) {
var cps = p.pages;
for ( var i = 0; i < cps.count; ++i ) {
var cp = cps.item(i);
if ( cp.visible && cp.active ) {
return true;
}
}
}
return false;
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\hauptmenu.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570508955647().executeScript();
2020-07-14 20:57:30,897 [19] INFO - ---------
2020-07-14 20:57:30,903 [19] INFO - About to execute the following script:
2020-07-14 20:57:30,903 [19] INFO - ---------
2020-07-14 20:57:30,903 [19] INFO - function SE637303570509035652() {}
SE637303570509035652.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-hauptmenu.html'.
var pageId = context.param(0, 0);
var p = project.getPage(pageId);
context.write("\r\n\r\n
\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-hauptmenu.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570509535680().executeScript();
2020-07-14 20:57:30,956 [19] INFO - ---------
2020-07-14 20:57:30,957 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1463.
2020-07-14 20:57:30,957 [19] INFO - ---------
2020-07-14 20:57:30,958 [19] INFO - Finished executing the following script:
2020-07-14 20:57:30,958 [19] INFO - ---------
2020-07-14 20:57:30,958 [19] INFO - function SE637303570508955647() {}
SE637303570508955647.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\hauptmenu.html'.
var pageId = context.param(0, 0);
var level = context.param(1, 1);
var p = project.getPage(pageId);
var childPages = isNull(p) ? page.projectFolder.pages : p.pages;
if ( childPages.count<=0 || (!isNull(p) && !hasVisibleChildPages(p.id)) ) { return; }
if ( !isNull(p) && p.level!=1 ) { return; }
context.write("\r\n
\r\n\r\n\r\n ");
for ( var i = 0; i < childPages.count; ++i ) {
var p = childPages.item(i);
if ( p.visible && p.active ) {
context.write("\r\n\r\n ");
if ( p.id==page.id || hasActiveChildPage(p.id) ) {
context.write("\r\n ");
context.write( system.partial("item-hauptmenu-aktiv.html", p.id, 1) );
context.write("\r\n ");
} else {
context.write("\r\n ");
context.write( system.partial("item-hauptmenu.html", p.id, 1) );
context.write("\r\n ");
}
context.write("\r\n\r\n ");
}
}
context.write("\r\n\r\n
\r\n\r\n ");
function hasActiveChildPage(pageId) {
var p = project.getPage(pageId);
var childPages = p.pages;
for ( var i = 0; i < childPages.count; ++i ) {
var childPage = childPages.item(i);
if ( childPage.id === page.id || hasActiveChildPage(childPage.id) ) {
return true;
}
}
return false;
}
function hasVisibleChildPages(pageId) {
var p = project.getPage(pageId);
if ( !isNull(p) ) {
var cps = p.pages;
for ( var i = 0; i < cps.count; ++i ) {
var cp = cps.item(i);
if ( cp.visible && cp.active ) {
return true;
}
}
}
return false;
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\hauptmenu.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570508955647().executeScript();
2020-07-14 20:57:30,959 [19] INFO - ---------
2020-07-14 20:57:30,959 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1464.
2020-07-14 20:57:30,959 [19] INFO - ---------
2020-07-14 20:57:30,960 [19] INFO - About to execute the following script:
2020-07-14 20:57:30,960 [19] INFO - ---------
2020-07-14 20:57:30,961 [19] INFO - function SE637303570509605684() {}
SE637303570509605684.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\inline-editing-breadcrumb.html'.
context.write(" \r\n\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\inline-editing-breadcrumb.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570509605684().executeScript();
2020-07-14 20:57:30,961 [19] INFO - ---------
2020-07-14 20:57:30,962 [19] INFO - Finished executing the following script:
2020-07-14 20:57:30,963 [19] INFO - ---------
2020-07-14 20:57:30,963 [19] INFO - function SE637303570509605684() {}
SE637303570509605684.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\inline-editing-breadcrumb.html'.
context.write(" \r\n\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\inline-editing-breadcrumb.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570509605684().executeScript();
2020-07-14 20:57:30,963 [19] INFO - ---------
2020-07-14 20:57:30,964 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1465.
2020-07-14 20:57:30,964 [19] INFO - ---------
2020-07-14 20:57:30,965 [19] INFO - About to execute the following script:
2020-07-14 20:57:30,965 [19] INFO - ---------
2020-07-14 20:57:30,966 [19] INFO - function SE637303570509655687() {}
SE637303570509655687.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\breadcrumbs.html'.
var breadcrumb = context.param(0, "");
var breadcrumb_separator = context.param(1, "");
var pageId = page.id;
var parentPage = page;
var pagesArray = [];
var startpage = projectFolder.startPage;
// walk the page-tree upwards and store ids of pages which are visible in navigation
while ( pageId !== 0 ){
if ( parentPage.type=="projectFolder" ){
break; // A project folder is currently always the top element in the page hierarchy chain, so it is safe to break here since no further pages can exist
}
else if ( parentPage.visible || parentPage.id == page.id ){
// add the current page (ignoring visibility) and all visible paren pages to the pagesArray
pagesArray.unshift(parentPage.id);
}
var p = project.getPage(pageId);
pageId = p.parentPageId;
parentPage = project.getPage(pageId);
}
if ( pagesArray.length > 0 ){
context.write("\r\n\t");
context.write( breadcrumb );
context.write("\r\n\t\r\n\t");
}
// if startPage isn't the displayed page already and is visible,
// prefix the breadcrumbs with a link to it
if ( startpage && startpage.visible && page.id !== startpage.id ){
context.write("\r\n\t
\r\n\t\t");
}
}
if ( pagesArray.length > 0 ){
context.write("");
}
context.write("\r\n\t\t\t\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\breadcrumbs.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570509655687().executeScript();
2020-07-14 20:57:30,966 [19] INFO - ---------
2020-07-14 20:57:30,972 [19] INFO - Finished executing the following script:
2020-07-14 20:57:30,972 [19] INFO - ---------
2020-07-14 20:57:30,972 [19] INFO - function SE637303570509655687() {}
SE637303570509655687.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\breadcrumbs.html'.
var breadcrumb = context.param(0, "");
var breadcrumb_separator = context.param(1, "");
var pageId = page.id;
var parentPage = page;
var pagesArray = [];
var startpage = projectFolder.startPage;
// walk the page-tree upwards and store ids of pages which are visible in navigation
while ( pageId !== 0 ){
if ( parentPage.type=="projectFolder" ){
break; // A project folder is currently always the top element in the page hierarchy chain, so it is safe to break here since no further pages can exist
}
else if ( parentPage.visible || parentPage.id == page.id ){
// add the current page (ignoring visibility) and all visible paren pages to the pagesArray
pagesArray.unshift(parentPage.id);
}
var p = project.getPage(pageId);
pageId = p.parentPageId;
parentPage = project.getPage(pageId);
}
if ( pagesArray.length > 0 ){
context.write("\r\n\t");
context.write( breadcrumb );
context.write("\r\n\t\r\n\t");
}
// if startPage isn't the displayed page already and is visible,
// prefix the breadcrumbs with a link to it
if ( startpage && startpage.visible && page.id !== startpage.id ){
context.write("\r\n\t
\r\n\t\t");
}
}
if ( pagesArray.length > 0 ){
context.write("");
}
context.write("\r\n\t\t\t\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\breadcrumbs.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570509655687().executeScript();
2020-07-14 20:57:30,973 [19] INFO - ---------
2020-07-14 20:57:30,973 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1466.
2020-07-14 20:57:30,974 [19] INFO - ---------
2020-07-14 20:57:30,975 [19] INFO - About to execute the following script:
2020-07-14 20:57:30,976 [19] INFO - ---------
2020-07-14 20:57:30,976 [19] INFO - function SE637303570509755693() {}
SE637303570509755693.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\area.html'.
var areaName = context.param(0, "Standard");
var areaNameLc = areaName.toLowerCase();
var maxColumns = context.param(1, "0");
var cssRowClass = context.param(2, "");
var displayNumColumns = context.param(3, "12"); // number of columns to display. We always calculate with 12, but can display less
var cssAreaClass = context.param(4, "");
var noBreakoutWithNews = context.param(5, true);
var hideIeForArea = context.param(6, false);
var canContainer = project.canContainer;
var showEmptyArticleAreas = (system.preview && system.showEmptyPreviewAreas);
var hasNews = page.hasArea("News") && (page.anyAreaArticles("News") || showEmptyArticleAreas);
var hasNonSymlinkContainer = false;
var lastContainerIsSymlink = false;
if ( maxColumns == "1" ){
if ( cssRowClass == "" || cssRowClass == "noresize" ){
cssRowClass = "noresize";
}
else{
cssRowClass += " noresize";
}
}
var intPreviewData = '';
if ( system.preview ){
// if internal preview, we add some additional data-attributes to the area
// for access in JS (non internal scripting)
intPreviewData += ' data-showemptyarticleareas="' + showEmptyArticleAreas + '"';
}
context.write("\n\n
\n\t");
var containers = page.containers(areaName);
var firstC = 0;
var lastC = containers.count-1;
//system.log("last: " + lastC + " of " + containers.count);
if ( lastC > firstC && !containers.item(lastC).hasArticles ){
// last container has no articles and is not rendered, so find last visible one
for ( var ilcon = lastC; ilcon > 1; --ilcon ){
var lastContainer = containers.item(ilcon);
if ( lastContainer.hasArticles ){
lastC = ilcon;
break;
}
}
}
for ( var icon = 0; icon < containers.count; ++icon ){
var container = containers.item(icon);
// if current container doesn't contain any articles, we skip this loop
// we do not skip when on impressum page and the container ist the last one, as we need to insert freeware content
if ( !container.hasArticles && !(icon == containers.count-1 && page.isSpecialPage("legal")) ){
firstC++;
continue;
}
// append container styles to head via css
var cid = container.id;
var output = "";
var isSection = container.value("issection") == "1";
var isStyled = false;
if ( container.value("fontcolor", "") !== "" && container.value("fontcolor") !== "transparent" ){
var cssSelector = "#container_" + cid;
output = cssSelector;
output += ", " + cssSelector + " p";
output += ", " + cssSelector + " h1";
output += ", " + cssSelector + " h2";
output += ", " + cssSelector + " h3{";
output += "color: " + container.value("fontcolor") + ";";
output += "}\n";
}
if ( container.value("linkcolor", "") !== "" && container.value("linkcolor") !== "transparent" ){
var cssSelector = "#container_" + cid;
output += "\n\n" + cssSelector + " a:not(.button):not(.fancybox):not(.zpSO-Uplink-Flat):not(.zpnolayoutlinkstyles)";
output += ", " + cssSelector + " a:not(.button):not(.fancybox):not(.zpSO-Uplink-Flat):not(.zpnolayoutlinkstyles):hover{";
output += "color: " + container.value("linkcolor") + ";";
output += "}\n";
}
if ( container.value("margin", "") !== "" ){
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
if ( container.value("margin-top") ){
output += "margin-top: " + container.value("margin-top") + " !important;";
}
if ( container.value("margin-bottom") ){
output += "margin-bottom: " + container.value("margin-bottom") + " !important;" ;
}
output += "}\n";
}
if ( container.value("padding", "") !== "" ){
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
if ( container.value("padding-top") ){
output += "padding-top: " + container.value("padding-top") + " !important;";
}
if ( container.value("padding-bottom") ){
output += "padding-bottom: " + container.value("padding-bottom") + " !important;";
}
if ( container.value("padding-left") ){
output += "padding-left: " + container.value("padding-left") + " !important;";
}
if ( container.value("padding-right") ){
output += "padding-right: " + container.value("padding-right") + " !important;";
}
output += "}\n";
}
if ( container.value("bgcolor", "") !== "" && container.value("bgcolor", "") !== "transparent" ){
isStyled = true;
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
output += "background-color: " + container.value("bgcolor") + " !important;";
output += "}\n";
}
var image = container.cssBackgroundImage("bgimage");
if ( image.imageUrl ){
isStyled = true;
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
output += "background-image: url(" + image.imageUrl + ") !important;";
output += "background-repeat: " + image.repeat + " !important;";
output += "background-size: " + image.size + " !important;";
output += "background-position: " + (image.position !== "" ? image.position : "center center") + " !important;";
output += "background-attachment: " + (image.attachment !== "" ? image.attachment : "scroll") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
var containerstyle = container.inlineCss || "";
containerstyle = containerstyle.toString().replace(/^\s+|\s+$/gm,''); // trim()
// make sure the users inlineCss properly ends with a semicolon as we attach more styles later below
if ( containerstyle && containerstyle.slice(-1) !== ";" ){
containerstyle += ";";
}
var initialContainerstyle = containerstyle;
containerstyle = containerstyle.replace(/^\s+|\s+$/gm,''); // trim()
if ( containerstyle ){
containerstyle = ' style="' + containerstyle + '"';
}
if ( noBreakoutWithNews && system.preview && container.value("breakout") == "1" && hasNews ){
system.warn("Die 'Randlos-Option' für einen Container kann nicht berücksichtigt werden, weil der 'Einfügen-Schalter' auf an steht oder die Seite auch Artikel im News-Bereich enthält.");
}
var containerTag = "div";
if ( isSection ){
containerTag = "section";
}
var containerIsSymlink = container.symlink ? true : false;
if ( !containerIsSymlink ){
hasNonSymlinkContainer = true;
}
else if ( icon == containers.count-1 ){
lastContainerIsSymlink = true;
}
context.write("\n\t\t\t<");
context.write( containerTag );
context.write(" id=\"container_");
context.write( container.id );
context.write("\" class=\"zpContainer");
if (icon==firstC){
context.write(" first");
}
if (icon==lastC){
context.write(" last");
}
if( container.value("animate", "") !== "" && container.value("animate") !== "off" ){
context.write(" zpanimate ");
context.write( container.value("animate"));
}
if( isStyled ){
context.write(" styled");
}
context.write(" ");
if ( container.value("breakout") == "1" ){
context.write("zpBreakout ");
}
if( noBreakoutWithNews && hasNews ) {
context.write(" hasNews");
}
context.write(" ");
context.write( container.cssClass );
context.write("\"");
context.write( containerstyle );
context.write(" \n\t\t\t\t data-zpeleel=\"container\" data-zpleid=\"");
context.write( container.id );
context.write("\">\n\t\t\t");
var paragraphs = container.paragraphs;
for ( var ipar = 0; ipar < paragraphs.count; ++ipar ){
var additionalRowClass = "";
var paragraph = paragraphs.item(ipar);
var columns = paragraph.columns;
// if current paragraph doesn't contain articles, we skip the loop, so we don't print empty paragraphs
// we do not skip when on impressum page and the container ist the last one, as we need to insert freeware content
var articleCount = paragraph.articles.count;
if ( articleCount < 1 && !(icon == containers.count-1 && page.isSpecialPage("legal")) ){
continue;
}
else if ( articleCount > 0 ){
// set special rowClass for Articles which are not visible, so we can remove any margins which might not be desired
var firstWidgetName = paragraph.articles.item(0).widgetName;
switch(firstWidgetName) {
case "Info-Banner":
additionalRowClass = " alertbanner";
break;
case "Quelltext":
additionalRowClass = " quelltext";
break;
case "Slider":
additionalRowClass = " zpwSlider";
break;
case "Carousel":
additionalRowClass = " zpwCarousel";
break;
case "Navigationsmenü":
if ( paragraph.articles.item(0).value("menufixed") ){
additionalRowClass = " zpwNavmenu zpwNavmenuFixed";
}
else{
additionalRowClass = " zpwNavmenu";
}
break;
case "Navigationsmenü manuell":
if ( paragraph.articles.item(0).value("menufixed") ){
additionalRowClass = " zpwNavmenu zpwNavmenuFixed";
}
else{
additionalRowClass = " zpwNavmenu";
}
break;
case "Video-Hintergrund":
additionalRowClass = " zpvideobg";
break;
}
// append row styles to head via css
var rid = paragraph.id;
var output = "";
if ( paragraph.value("margin", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
if ( paragraph.value("margin-top") ){
output += "margin-top: " + paragraph.value("margin-top", "initial") + " !important;";
}
if ( paragraph.value("margin-bottom") ){
output += "margin-bottom: " + paragraph.value("margin-bottom", "initial") + " !important;" ;
}
output += "}\n";
}
if ( paragraph.value("padding", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
if ( paragraph.value("padding-top") ){
output += "padding-top: " + paragraph.value("padding-top") + " !important;";
}
if ( paragraph.value("padding-bottom") ){
output += "padding-bottom: " + paragraph.value("padding-bottom") + " !important;";
}
if ( paragraph.value("padding-left") ){
output += "padding-left: " + paragraph.value("padding-left") + " !important;";
}
if ( paragraph.value("padding-right") ){
output += "padding-right: " + paragraph.value("padding-right") + " !important;";
}
output += "}\n";
}
if ( paragraph.value("bgcolor", "") !== "" && paragraph.value("bgcolor", "") !== "transparent" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "background-color: " + paragraph.value("bgcolor") + " !important;";
output += "}\n";
}
var pimage = paragraph.cssBackgroundImage("bgimage");
if ( pimage.imageUrl ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "background-image: url(" + pimage.imageUrl + ") !important;";
output += "background-repeat: " + pimage.repeat + " !important;";
output += "background-size: " + pimage.size + " !important;";
output += "background-position: " + (pimage.position !== "" ? pimage.position : "center center") + " !important;";
output += "background-attachment: " + (pimage.attachment !== "" ? pimage.attachment : "scroll") + ";";
output += "}\n";
}
if ( paragraph.value("justifycontent", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "justify-content: " + paragraph.value("justifycontent") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
// paragraph styles
var rowstyle = paragraph.inlineCss || "";
rowstyle = rowstyle.toString().replace(/^\s+|\s+$/gm,''); // trim();
// make sure the users inlineCss properly ends with a semicolon as we attach more styles later below
if ( rowstyle && rowstyle.slice(-1) !== ";" ){
rowstyle += ";";
}
context.write("\n\t\t\n\t\t\t\t\t");
if ( paragraph.value("breakout") == "1" ){
context.write("\n\t\t\t\t\t\t
\n\t\t\t\t\t>\n\t\t\n\t\t\t\t\t");
var evenodd = "even";
for ( var icol = 0; icol < columns.count; ++icol ){
var column = columns.item(icol);
var articles = column.articles;
var coid = column.id;
var output = "";
var isStyled = false;
var selectorPrefix = "#container_" + cid + " ";
if ( column.value("bgcolor", "") !== "" && column.value("bgcolor", "") !== "transparent" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "background-color: " + column.value("bgcolor") + ";";
output += "padding-top: 15px;";
output += "padding-bottom: 15px;";
output += "}\n";
isStyled = true;
}
if ( column.value("fontcolor", "") !== "" && column.value("fontcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector;
output += ", " + cssSelector + " p";
output += ", " + cssSelector + " h1";
output += ", " + cssSelector + " h2";
output += ", " + cssSelector + " h3{";
output += "color: " + column.value("fontcolor") + ";";
output += "}\n";
}
if ( column.value("linkcolor", "") !== "" && column.value("linkcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += "\n\n" + cssSelector + " a:not(.button)";
output += ", " + cssSelector + " a:not(.button):hover{";
output += "color: " + column.value("linkcolor") + ";";
output += "}\n";
}
if ( column.value("align-self", "") !== "" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "align-self: " + column.value("align-self") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
var clearCss = column.value("clearLeft") ? "clear: left;" : "";
if ( column.articles.count > 0 ){
var firstWidgetName = articles.item(0).widgetName;
}
else{
var firstWidgetName = "";
}
// used in a className, alternate between even and odd, not taking into account zpSpacer-Columns
if( firstWidgetName !== "Spacer" ){
if( evenodd === "even" ){
evenodd = "odd";
}
else{
evenodd = "even";
}
var additionalColumnClass = " " + evenodd;
}
else{
var additionalColumnClass = "";
}
// if a spacer-widget is alone in a column, we set a class .zpSpacer, so we can set the width of spacer-widgets responsively in zpgrid.less accordingly
if ( firstWidgetName == "Spacer" && column.articles.count < 2 ){
additionalColumnClass += " zpSpacer";
}
else if ( firstWidgetName == "Navigationsmenü" ){
additionalColumnClass += " zpnavmenu";
}
// TODO move adding of missing classes to converter and remove next 4 lines
var columnCssClass = column.cssClass;
if ( !column.cssClass || !column.cssClass.match(/\bc[1-9][0-2]?\b/) ){
columnCssClass = "c" + String(Math.round(12 / columns.count - 0.1)) ;
}
if ( column.value("clearLeft") ){
context.write("\n\t\t\t\t\t\t\n\t\t\t\t\t\t");
}
context.write("\n\t\t\t\t\t\t
\n\t\t\t\t\t\t>\n\t\t\t\n\t\t\t\t\t\t\t");
for ( var iart = 0; iart < articles.count; ++iart ){
var a = articles.item(iart);
context.write(a.render());
}
context.write("\n\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\n\t\t\t\t\t\t");
}
// insert zp-ad-box in last row of last container on impressum pages
if ( system.isFreeware && areaName.toLowerCase() == "standard" && page.isSpecialPage("legal") && icon == containers.count-1 && ipar == paragraphs.count-1 ){
context.write("\n\t\t\t\t\t\t\t
\n\t\t\t\t\t>\n\t\t\n\t\t\t\t\t");
var evenodd = "even";
for ( var icol = 0; icol < columns.count; ++icol ){
var column = columns.item(icol);
var articles = column.articles;
var coid = column.id;
var output = "";
var isStyled = false;
var selectorPrefix = "#container_" + cid + " ";
if ( column.value("bgcolor", "") !== "" && column.value("bgcolor", "") !== "transparent" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "background-color: " + column.value("bgcolor") + ";";
output += "padding-top: 15px;";
output += "padding-bottom: 15px;";
output += "}\n";
isStyled = true;
}
if ( column.value("fontcolor", "") !== "" && column.value("fontcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector;
output += ", " + cssSelector + " p";
output += ", " + cssSelector + " h1";
output += ", " + cssSelector + " h2";
output += ", " + cssSelector + " h3{";
output += "color: " + column.value("fontcolor") + ";";
output += "}\n";
}
if ( column.value("linkcolor", "") !== "" && column.value("linkcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += "\n\n" + cssSelector + " a:not(.button)";
output += ", " + cssSelector + " a:not(.button):hover{";
output += "color: " + column.value("linkcolor") + ";";
output += "}\n";
}
if ( column.value("align-self", "") !== "" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "align-self: " + column.value("align-self") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
var clearCss = column.value("clearLeft") ? "clear: left;" : "";
if ( column.articles.count > 0 ){
var firstWidgetName = articles.item(0).widgetName;
}
else{
var firstWidgetName = "";
}
// used in a className, alternate between even and odd, not taking into account zpSpacer-Columns
if( firstWidgetName !== "Spacer" ){
if( evenodd === "even" ){
evenodd = "odd";
}
else{
evenodd = "even";
}
var additionalColumnClass = " " + evenodd;
}
else{
var additionalColumnClass = "";
}
// if a spacer-widget is alone in a column, we set a class .zpSpacer, so we can set the width of spacer-widgets responsively in zpgrid.less accordingly
if ( firstWidgetName == "Spacer" && column.articles.count < 2 ){
additionalColumnClass += " zpSpacer";
}
else if ( firstWidgetName == "Navigationsmenü" ){
additionalColumnClass += " zpnavmenu";
}
// TODO move adding of missing classes to converter and remove next 4 lines
var columnCssClass = column.cssClass;
if ( !column.cssClass || !column.cssClass.match(/\bc[1-9][0-2]?\b/) ){
columnCssClass = "c" + String(Math.round(12 / columns.count - 0.1)) ;
}
if ( column.value("clearLeft") ){
context.write("\n\t\t\t\t\t\t\n\t\t\t\t\t\t");
}
context.write("\n\t\t\t\t\t\t
\n\t\t\t\t\t\t>\n\t\t\t\n\t\t\t\t\t\t\t");
for ( var iart = 0; iart < articles.count; ++iart ){
var a = articles.item(iart);
context.write(a.render());
}
context.write("\n\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\n\t\t\t\t\t\t");
}
// insert zp-ad-box in last row of last container on impressum pages
if ( system.isFreeware && areaName.toLowerCase() == "standard" && page.isSpecialPage("legal") && icon == containers.count-1 && ipar == paragraphs.count-1 ){
context.write("\n\t\t\t\t\t\t\t
\n\n");
// insert overlay on startpage
if ( !system.preview && system.isFreeware && areaName.toLowerCase() == "standard" && projectFolder.startPage && projectFolder.startPage.id == page.id ){
context.write("\n\t\t");
context.write( system.partial("zpinfooverlay.html") );
context.write("\n\t\t");
}
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\area.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570509755693().executeScript();
2020-07-14 20:57:31,129 [19] INFO - ---------
2020-07-14 20:57:31,129 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1481.
2020-07-14 20:57:31,129 [19] INFO - ---------
2020-07-14 20:57:31,130 [19] INFO - About to execute the following script:
2020-07-14 20:57:31,130 [19] INFO - ---------
2020-07-14 20:57:31,131 [19] INFO - function SE637303570511305782() {}
SE637303570511305782.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu-layout.html'.
var pageId = context.param(0, 0);
var level = context.param(1, 1);
var p = project.getPage(pageId);
var childPages = isNull(p) ? page.projectFolder.pages : p.pages;
if ( childPages.count<=0 || (!isNull(p) && !hasVisibleChildPages(p.id)) ) { return; }
if ( !isNull(p) && p.level!=2 ) { return; }
context.write("\r\n\r\n\r\n\t");
for ( var i = 0; i < childPages.count; ++i ) {
var p = childPages.item(i);
if ( p.visible && p.active ) {
context.write("\r\n\r\n\t\t\t");
if ( p.id==page.id || hasActiveChildPage(p.id) ) {
context.write("\r\n\t\t\t ");
context.write( system.partial("submenu1.html", p.id, 2) );
context.write("\r\n\t\t\t");
}
context.write("\r\n\r\n\t");
}
}
context.write("\r\n\r\n\r\n ");
function hasActiveChildPage(pageId) {
var p = project.getPage(pageId);
var childPages = p.pages;
for ( var i = 0; i < childPages.count; ++i ) {
var childPage = childPages.item(i);
if ( childPage.id === page.id || hasActiveChildPage(childPage.id) ) {
return true;
}
}
return false;
}
function hasVisibleChildPages(pageId) {
var p = project.getPage(pageId);
if ( !isNull(p) ) {
var cps = p.pages;
for ( var i = 0; i < cps.count; ++i ) {
var cp = cps.item(i);
if ( cp.visible && cp.active ) {
return true;
}
}
}
return false;
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu-layout.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570511305782().executeScript();
2020-07-14 20:57:31,131 [19] INFO - ---------
2020-07-14 20:57:31,141 [19] INFO - About to execute the following script:
2020-07-14 20:57:31,141 [19] INFO - ---------
2020-07-14 20:57:31,141 [19] INFO - function SE637303570511415788() {}
SE637303570511415788.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu1.html'.
var pageId = context.param(0, 0);
var level = context.param(1, 1);
var p = project.getPage(pageId);
var childPages = isNull(p) ? page.projectFolder.pages : p.pages;
if ( childPages.count<=0 || (!isNull(p) && !hasVisibleChildPages(p.id)) ) { return; }
if ( !isNull(p) && p.level!=1 ) { return; }
context.write("\r\n
\r\n\t
\r\n\r\n\r\n ");
for ( var i = 0; i < childPages.count; ++i ) {
var p = childPages.item(i);
if ( p.visible && p.active ) {
context.write("\r\n\r\n ");
if ( p.id==page.id || hasActiveChildPage(p.id) ) {
context.write("\r\n ");
context.write( system.partial("item-submenu1-aktiv.html", p.id, 2) );
context.write("\r\n ");
} else {
context.write("\r\n ");
context.write( system.partial("item-submenu1.html", p.id, 2) );
context.write("\r\n ");
}
context.write("\r\n\r\n ");
}
}
context.write("\r\n\r\n\t
\r\n
\r\n\r\n ");
function hasActiveChildPage(pageId) {
var p = project.getPage(pageId);
var childPages = p.pages;
for ( var i = 0; i < childPages.count; ++i ) {
var childPage = childPages.item(i);
if ( childPage.id === page.id || hasActiveChildPage(childPage.id) ) {
return true;
}
}
return false;
}
function hasVisibleChildPages(pageId) {
var p = project.getPage(pageId);
if ( !isNull(p) ) {
var cps = p.pages;
for ( var i = 0; i < cps.count; ++i ) {
var cp = cps.item(i);
if ( cp.visible && cp.active ) {
return true;
}
}
}
return false;
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu1.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570511415788().executeScript();
2020-07-14 20:57:31,142 [19] INFO - ---------
2020-07-14 20:57:31,145 [19] INFO - About to execute the following script:
2020-07-14 20:57:31,145 [19] INFO - ---------
2020-07-14 20:57:31,146 [19] INFO - function SE637303570511455790() {}
SE637303570511455790.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-submenu1.html'.
var pageId = context.param(0, 0);
var p = project.getPage(pageId);
context.write("\r\n\r\n\t
\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-submenu1-aktiv.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570511645801().executeScript();
2020-07-14 20:57:31,173 [19] INFO - ---------
2020-07-14 20:57:31,173 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1486.
2020-07-14 20:57:31,174 [19] INFO - ---------
2020-07-14 20:57:31,174 [19] INFO - Finished executing the following script:
2020-07-14 20:57:31,175 [19] INFO - ---------
2020-07-14 20:57:31,175 [19] INFO - function SE637303570511415788() {}
SE637303570511415788.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu1.html'.
var pageId = context.param(0, 0);
var level = context.param(1, 1);
var p = project.getPage(pageId);
var childPages = isNull(p) ? page.projectFolder.pages : p.pages;
if ( childPages.count<=0 || (!isNull(p) && !hasVisibleChildPages(p.id)) ) { return; }
if ( !isNull(p) && p.level!=1 ) { return; }
context.write("\r\n
\r\n\t
\r\n\r\n\r\n ");
for ( var i = 0; i < childPages.count; ++i ) {
var p = childPages.item(i);
if ( p.visible && p.active ) {
context.write("\r\n\r\n ");
if ( p.id==page.id || hasActiveChildPage(p.id) ) {
context.write("\r\n ");
context.write( system.partial("item-submenu1-aktiv.html", p.id, 2) );
context.write("\r\n ");
} else {
context.write("\r\n ");
context.write( system.partial("item-submenu1.html", p.id, 2) );
context.write("\r\n ");
}
context.write("\r\n\r\n ");
}
}
context.write("\r\n\r\n\t
\r\n
\r\n\r\n ");
function hasActiveChildPage(pageId) {
var p = project.getPage(pageId);
var childPages = p.pages;
for ( var i = 0; i < childPages.count; ++i ) {
var childPage = childPages.item(i);
if ( childPage.id === page.id || hasActiveChildPage(childPage.id) ) {
return true;
}
}
return false;
}
function hasVisibleChildPages(pageId) {
var p = project.getPage(pageId);
if ( !isNull(p) ) {
var cps = p.pages;
for ( var i = 0; i < cps.count; ++i ) {
var cp = cps.item(i);
if ( cp.visible && cp.active ) {
return true;
}
}
}
return false;
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu1.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570511415788().executeScript();
2020-07-14 20:57:31,176 [19] INFO - ---------
2020-07-14 20:57:31,176 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1487.
2020-07-14 20:57:31,176 [19] INFO - ---------
2020-07-14 20:57:31,189 [19] INFO - Finished executing the following script:
2020-07-14 20:57:31,189 [19] INFO - ---------
2020-07-14 20:57:31,189 [19] INFO - function SE637303570511305782() {}
SE637303570511305782.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu-layout.html'.
var pageId = context.param(0, 0);
var level = context.param(1, 1);
var p = project.getPage(pageId);
var childPages = isNull(p) ? page.projectFolder.pages : p.pages;
if ( childPages.count<=0 || (!isNull(p) && !hasVisibleChildPages(p.id)) ) { return; }
if ( !isNull(p) && p.level!=2 ) { return; }
context.write("\r\n\r\n\r\n\t");
for ( var i = 0; i < childPages.count; ++i ) {
var p = childPages.item(i);
if ( p.visible && p.active ) {
context.write("\r\n\r\n\t\t\t");
if ( p.id==page.id || hasActiveChildPage(p.id) ) {
context.write("\r\n\t\t\t ");
context.write( system.partial("submenu1.html", p.id, 2) );
context.write("\r\n\t\t\t");
}
context.write("\r\n\r\n\t");
}
}
context.write("\r\n\r\n\r\n ");
function hasActiveChildPage(pageId) {
var p = project.getPage(pageId);
var childPages = p.pages;
for ( var i = 0; i < childPages.count; ++i ) {
var childPage = childPages.item(i);
if ( childPage.id === page.id || hasActiveChildPage(childPage.id) ) {
return true;
}
}
return false;
}
function hasVisibleChildPages(pageId) {
var p = project.getPage(pageId);
if ( !isNull(p) ) {
var cps = p.pages;
for ( var i = 0; i < cps.count; ++i ) {
var cp = cps.item(i);
if ( cp.visible && cp.active ) {
return true;
}
}
}
return false;
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu-layout.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570511305782().executeScript();
2020-07-14 20:57:31,190 [19] INFO - ---------
2020-07-14 20:57:31,190 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1488.
2020-07-14 20:57:31,190 [19] INFO - ---------
2020-07-14 20:57:31,192 [19] INFO - About to execute the following script:
2020-07-14 20:57:31,192 [19] INFO - ---------
2020-07-14 20:57:31,193 [19] INFO - function SE637303570511925817() {}
SE637303570511925817.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\area.html'.
var areaName = context.param(0, "Standard");
var areaNameLc = areaName.toLowerCase();
var maxColumns = context.param(1, "0");
var cssRowClass = context.param(2, "");
var displayNumColumns = context.param(3, "12"); // number of columns to display. We always calculate with 12, but can display less
var cssAreaClass = context.param(4, "");
var noBreakoutWithNews = context.param(5, true);
var hideIeForArea = context.param(6, false);
var canContainer = project.canContainer;
var showEmptyArticleAreas = (system.preview && system.showEmptyPreviewAreas);
var hasNews = page.hasArea("News") && (page.anyAreaArticles("News") || showEmptyArticleAreas);
var hasNonSymlinkContainer = false;
var lastContainerIsSymlink = false;
if ( maxColumns == "1" ){
if ( cssRowClass == "" || cssRowClass == "noresize" ){
cssRowClass = "noresize";
}
else{
cssRowClass += " noresize";
}
}
var intPreviewData = '';
if ( system.preview ){
// if internal preview, we add some additional data-attributes to the area
// for access in JS (non internal scripting)
intPreviewData += ' data-showemptyarticleareas="' + showEmptyArticleAreas + '"';
}
context.write("\n\n
\n\t");
var containers = page.containers(areaName);
var firstC = 0;
var lastC = containers.count-1;
//system.log("last: " + lastC + " of " + containers.count);
if ( lastC > firstC && !containers.item(lastC).hasArticles ){
// last container has no articles and is not rendered, so find last visible one
for ( var ilcon = lastC; ilcon > 1; --ilcon ){
var lastContainer = containers.item(ilcon);
if ( lastContainer.hasArticles ){
lastC = ilcon;
break;
}
}
}
for ( var icon = 0; icon < containers.count; ++icon ){
var container = containers.item(icon);
// if current container doesn't contain any articles, we skip this loop
// we do not skip when on impressum page and the container ist the last one, as we need to insert freeware content
if ( !container.hasArticles && !(icon == containers.count-1 && page.isSpecialPage("legal")) ){
firstC++;
continue;
}
// append container styles to head via css
var cid = container.id;
var output = "";
var isSection = container.value("issection") == "1";
var isStyled = false;
if ( container.value("fontcolor", "") !== "" && container.value("fontcolor") !== "transparent" ){
var cssSelector = "#container_" + cid;
output = cssSelector;
output += ", " + cssSelector + " p";
output += ", " + cssSelector + " h1";
output += ", " + cssSelector + " h2";
output += ", " + cssSelector + " h3{";
output += "color: " + container.value("fontcolor") + ";";
output += "}\n";
}
if ( container.value("linkcolor", "") !== "" && container.value("linkcolor") !== "transparent" ){
var cssSelector = "#container_" + cid;
output += "\n\n" + cssSelector + " a:not(.button):not(.fancybox):not(.zpSO-Uplink-Flat):not(.zpnolayoutlinkstyles)";
output += ", " + cssSelector + " a:not(.button):not(.fancybox):not(.zpSO-Uplink-Flat):not(.zpnolayoutlinkstyles):hover{";
output += "color: " + container.value("linkcolor") + ";";
output += "}\n";
}
if ( container.value("margin", "") !== "" ){
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
if ( container.value("margin-top") ){
output += "margin-top: " + container.value("margin-top") + " !important;";
}
if ( container.value("margin-bottom") ){
output += "margin-bottom: " + container.value("margin-bottom") + " !important;" ;
}
output += "}\n";
}
if ( container.value("padding", "") !== "" ){
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
if ( container.value("padding-top") ){
output += "padding-top: " + container.value("padding-top") + " !important;";
}
if ( container.value("padding-bottom") ){
output += "padding-bottom: " + container.value("padding-bottom") + " !important;";
}
if ( container.value("padding-left") ){
output += "padding-left: " + container.value("padding-left") + " !important;";
}
if ( container.value("padding-right") ){
output += "padding-right: " + container.value("padding-right") + " !important;";
}
output += "}\n";
}
if ( container.value("bgcolor", "") !== "" && container.value("bgcolor", "") !== "transparent" ){
isStyled = true;
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
output += "background-color: " + container.value("bgcolor") + " !important;";
output += "}\n";
}
var image = container.cssBackgroundImage("bgimage");
if ( image.imageUrl ){
isStyled = true;
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
output += "background-image: url(" + image.imageUrl + ") !important;";
output += "background-repeat: " + image.repeat + " !important;";
output += "background-size: " + image.size + " !important;";
output += "background-position: " + (image.position !== "" ? image.position : "center center") + " !important;";
output += "background-attachment: " + (image.attachment !== "" ? image.attachment : "scroll") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
var containerstyle = container.inlineCss || "";
containerstyle = containerstyle.toString().replace(/^\s+|\s+$/gm,''); // trim()
// make sure the users inlineCss properly ends with a semicolon as we attach more styles later below
if ( containerstyle && containerstyle.slice(-1) !== ";" ){
containerstyle += ";";
}
var initialContainerstyle = containerstyle;
containerstyle = containerstyle.replace(/^\s+|\s+$/gm,''); // trim()
if ( containerstyle ){
containerstyle = ' style="' + containerstyle + '"';
}
if ( noBreakoutWithNews && system.preview && container.value("breakout") == "1" && hasNews ){
system.warn("Die 'Randlos-Option' für einen Container kann nicht berücksichtigt werden, weil der 'Einfügen-Schalter' auf an steht oder die Seite auch Artikel im News-Bereich enthält.");
}
var containerTag = "div";
if ( isSection ){
containerTag = "section";
}
var containerIsSymlink = container.symlink ? true : false;
if ( !containerIsSymlink ){
hasNonSymlinkContainer = true;
}
else if ( icon == containers.count-1 ){
lastContainerIsSymlink = true;
}
context.write("\n\t\t\t<");
context.write( containerTag );
context.write(" id=\"container_");
context.write( container.id );
context.write("\" class=\"zpContainer");
if (icon==firstC){
context.write(" first");
}
if (icon==lastC){
context.write(" last");
}
if( container.value("animate", "") !== "" && container.value("animate") !== "off" ){
context.write(" zpanimate ");
context.write( container.value("animate"));
}
if( isStyled ){
context.write(" styled");
}
context.write(" ");
if ( container.value("breakout") == "1" ){
context.write("zpBreakout ");
}
if( noBreakoutWithNews && hasNews ) {
context.write(" hasNews");
}
context.write(" ");
context.write( container.cssClass );
context.write("\"");
context.write( containerstyle );
context.write(" \n\t\t\t\t data-zpeleel=\"container\" data-zpleid=\"");
context.write( container.id );
context.write("\">\n\t\t\t");
var paragraphs = container.paragraphs;
for ( var ipar = 0; ipar < paragraphs.count; ++ipar ){
var additionalRowClass = "";
var paragraph = paragraphs.item(ipar);
var columns = paragraph.columns;
// if current paragraph doesn't contain articles, we skip the loop, so we don't print empty paragraphs
// we do not skip when on impressum page and the container ist the last one, as we need to insert freeware content
var articleCount = paragraph.articles.count;
if ( articleCount < 1 && !(icon == containers.count-1 && page.isSpecialPage("legal")) ){
continue;
}
else if ( articleCount > 0 ){
// set special rowClass for Articles which are not visible, so we can remove any margins which might not be desired
var firstWidgetName = paragraph.articles.item(0).widgetName;
switch(firstWidgetName) {
case "Info-Banner":
additionalRowClass = " alertbanner";
break;
case "Quelltext":
additionalRowClass = " quelltext";
break;
case "Slider":
additionalRowClass = " zpwSlider";
break;
case "Carousel":
additionalRowClass = " zpwCarousel";
break;
case "Navigationsmenü":
if ( paragraph.articles.item(0).value("menufixed") ){
additionalRowClass = " zpwNavmenu zpwNavmenuFixed";
}
else{
additionalRowClass = " zpwNavmenu";
}
break;
case "Navigationsmenü manuell":
if ( paragraph.articles.item(0).value("menufixed") ){
additionalRowClass = " zpwNavmenu zpwNavmenuFixed";
}
else{
additionalRowClass = " zpwNavmenu";
}
break;
case "Video-Hintergrund":
additionalRowClass = " zpvideobg";
break;
}
// append row styles to head via css
var rid = paragraph.id;
var output = "";
if ( paragraph.value("margin", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
if ( paragraph.value("margin-top") ){
output += "margin-top: " + paragraph.value("margin-top", "initial") + " !important;";
}
if ( paragraph.value("margin-bottom") ){
output += "margin-bottom: " + paragraph.value("margin-bottom", "initial") + " !important;" ;
}
output += "}\n";
}
if ( paragraph.value("padding", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
if ( paragraph.value("padding-top") ){
output += "padding-top: " + paragraph.value("padding-top") + " !important;";
}
if ( paragraph.value("padding-bottom") ){
output += "padding-bottom: " + paragraph.value("padding-bottom") + " !important;";
}
if ( paragraph.value("padding-left") ){
output += "padding-left: " + paragraph.value("padding-left") + " !important;";
}
if ( paragraph.value("padding-right") ){
output += "padding-right: " + paragraph.value("padding-right") + " !important;";
}
output += "}\n";
}
if ( paragraph.value("bgcolor", "") !== "" && paragraph.value("bgcolor", "") !== "transparent" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "background-color: " + paragraph.value("bgcolor") + " !important;";
output += "}\n";
}
var pimage = paragraph.cssBackgroundImage("bgimage");
if ( pimage.imageUrl ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "background-image: url(" + pimage.imageUrl + ") !important;";
output += "background-repeat: " + pimage.repeat + " !important;";
output += "background-size: " + pimage.size + " !important;";
output += "background-position: " + (pimage.position !== "" ? pimage.position : "center center") + " !important;";
output += "background-attachment: " + (pimage.attachment !== "" ? pimage.attachment : "scroll") + ";";
output += "}\n";
}
if ( paragraph.value("justifycontent", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "justify-content: " + paragraph.value("justifycontent") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
// paragraph styles
var rowstyle = paragraph.inlineCss || "";
rowstyle = rowstyle.toString().replace(/^\s+|\s+$/gm,''); // trim();
// make sure the users inlineCss properly ends with a semicolon as we attach more styles later below
if ( rowstyle && rowstyle.slice(-1) !== ";" ){
rowstyle += ";";
}
context.write("\n\t\t\n\t\t\t\t\t");
if ( paragraph.value("breakout") == "1" ){
context.write("\n\t\t\t\t\t\t
\n\t\t\t\t\t>\n\t\t\n\t\t\t\t\t");
var evenodd = "even";
for ( var icol = 0; icol < columns.count; ++icol ){
var column = columns.item(icol);
var articles = column.articles;
var coid = column.id;
var output = "";
var isStyled = false;
var selectorPrefix = "#container_" + cid + " ";
if ( column.value("bgcolor", "") !== "" && column.value("bgcolor", "") !== "transparent" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "background-color: " + column.value("bgcolor") + ";";
output += "padding-top: 15px;";
output += "padding-bottom: 15px;";
output += "}\n";
isStyled = true;
}
if ( column.value("fontcolor", "") !== "" && column.value("fontcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector;
output += ", " + cssSelector + " p";
output += ", " + cssSelector + " h1";
output += ", " + cssSelector + " h2";
output += ", " + cssSelector + " h3{";
output += "color: " + column.value("fontcolor") + ";";
output += "}\n";
}
if ( column.value("linkcolor", "") !== "" && column.value("linkcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += "\n\n" + cssSelector + " a:not(.button)";
output += ", " + cssSelector + " a:not(.button):hover{";
output += "color: " + column.value("linkcolor") + ";";
output += "}\n";
}
if ( column.value("align-self", "") !== "" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "align-self: " + column.value("align-self") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
var clearCss = column.value("clearLeft") ? "clear: left;" : "";
if ( column.articles.count > 0 ){
var firstWidgetName = articles.item(0).widgetName;
}
else{
var firstWidgetName = "";
}
// used in a className, alternate between even and odd, not taking into account zpSpacer-Columns
if( firstWidgetName !== "Spacer" ){
if( evenodd === "even" ){
evenodd = "odd";
}
else{
evenodd = "even";
}
var additionalColumnClass = " " + evenodd;
}
else{
var additionalColumnClass = "";
}
// if a spacer-widget is alone in a column, we set a class .zpSpacer, so we can set the width of spacer-widgets responsively in zpgrid.less accordingly
if ( firstWidgetName == "Spacer" && column.articles.count < 2 ){
additionalColumnClass += " zpSpacer";
}
else if ( firstWidgetName == "Navigationsmenü" ){
additionalColumnClass += " zpnavmenu";
}
// TODO move adding of missing classes to converter and remove next 4 lines
var columnCssClass = column.cssClass;
if ( !column.cssClass || !column.cssClass.match(/\bc[1-9][0-2]?\b/) ){
columnCssClass = "c" + String(Math.round(12 / columns.count - 0.1)) ;
}
if ( column.value("clearLeft") ){
context.write("\n\t\t\t\t\t\t\n\t\t\t\t\t\t");
}
context.write("\n\t\t\t\t\t\t
\n\t\t\t\t\t\t>\n\t\t\t\n\t\t\t\t\t\t\t");
for ( var iart = 0; iart < articles.count; ++iart ){
var a = articles.item(iart);
context.write(a.render());
}
context.write("\n\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\n\t\t\t\t\t\t");
}
// insert zp-ad-box in last row of last container on impressum pages
if ( system.isFreeware && areaName.toLowerCase() == "standard" && page.isSpecialPage("legal") && icon == containers.count-1 && ipar == paragraphs.count-1 ){
context.write("\n\t\t\t\t\t\t\t
\n\t\t\t\t\t>\n\t\t\n\t\t\t\t\t");
var evenodd = "even";
for ( var icol = 0; icol < columns.count; ++icol ){
var column = columns.item(icol);
var articles = column.articles;
var coid = column.id;
var output = "";
var isStyled = false;
var selectorPrefix = "#container_" + cid + " ";
if ( column.value("bgcolor", "") !== "" && column.value("bgcolor", "") !== "transparent" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "background-color: " + column.value("bgcolor") + ";";
output += "padding-top: 15px;";
output += "padding-bottom: 15px;";
output += "}\n";
isStyled = true;
}
if ( column.value("fontcolor", "") !== "" && column.value("fontcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector;
output += ", " + cssSelector + " p";
output += ", " + cssSelector + " h1";
output += ", " + cssSelector + " h2";
output += ", " + cssSelector + " h3{";
output += "color: " + column.value("fontcolor") + ";";
output += "}\n";
}
if ( column.value("linkcolor", "") !== "" && column.value("linkcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += "\n\n" + cssSelector + " a:not(.button)";
output += ", " + cssSelector + " a:not(.button):hover{";
output += "color: " + column.value("linkcolor") + ";";
output += "}\n";
}
if ( column.value("align-self", "") !== "" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "align-self: " + column.value("align-self") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
var clearCss = column.value("clearLeft") ? "clear: left;" : "";
if ( column.articles.count > 0 ){
var firstWidgetName = articles.item(0).widgetName;
}
else{
var firstWidgetName = "";
}
// used in a className, alternate between even and odd, not taking into account zpSpacer-Columns
if( firstWidgetName !== "Spacer" ){
if( evenodd === "even" ){
evenodd = "odd";
}
else{
evenodd = "even";
}
var additionalColumnClass = " " + evenodd;
}
else{
var additionalColumnClass = "";
}
// if a spacer-widget is alone in a column, we set a class .zpSpacer, so we can set the width of spacer-widgets responsively in zpgrid.less accordingly
if ( firstWidgetName == "Spacer" && column.articles.count < 2 ){
additionalColumnClass += " zpSpacer";
}
else if ( firstWidgetName == "Navigationsmenü" ){
additionalColumnClass += " zpnavmenu";
}
// TODO move adding of missing classes to converter and remove next 4 lines
var columnCssClass = column.cssClass;
if ( !column.cssClass || !column.cssClass.match(/\bc[1-9][0-2]?\b/) ){
columnCssClass = "c" + String(Math.round(12 / columns.count - 0.1)) ;
}
if ( column.value("clearLeft") ){
context.write("\n\t\t\t\t\t\t\n\t\t\t\t\t\t");
}
context.write("\n\t\t\t\t\t\t
\n\t\t\t\t\t\t>\n\t\t\t\n\t\t\t\t\t\t\t");
for ( var iart = 0; iart < articles.count; ++iart ){
var a = articles.item(iart);
context.write(a.render());
}
context.write("\n\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\n\t\t\t\t\t\t");
}
// insert zp-ad-box in last row of last container on impressum pages
if ( system.isFreeware && areaName.toLowerCase() == "standard" && page.isSpecialPage("legal") && icon == containers.count-1 && ipar == paragraphs.count-1 ){
context.write("\n\t\t\t\t\t\t\t
\r\n\r\n");
var nextText = system.htmlEncode(page.attribute("header_next_text")) || "weiter";
var prevText = system.htmlEncode(page.attribute("header_prev_text")) || "zurück";
var inlineEditingInitDelay = 50;
var useSmoothHeight = "true" === "false" ? "false" : "true";
if ( useSmoothHeight === "true" ){
inlineEditingInitDelay = 1000;
}
context.write("\r\n\r\n");
if ( numHeaders > 0 ) {
context.write("\r\n\t\r\n");
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\widgets\singleheader\standard.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570514035938().executeScript();
2020-07-14 20:57:31,435 [19] INFO - ---------
2020-07-14 20:57:31,436 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1501.
2020-07-14 20:57:31,436 [19] INFO - ---------
2020-07-14 20:57:31,438 [19] INFO - Finished executing the following script:
2020-07-14 20:57:31,439 [19] INFO - ---------
2020-07-14 20:57:31,439 [19] INFO - function SE637303570513955933() {}
SE637303570513955933.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\header.html'.
var areaName = "Header";
var headers = page.articlesInArea(areaName);
var headerShown = false;
for ( var ihead = 0; ihead < headers.count; ++ihead ){
// in a header-area, we only render the first active container/row/article
if ( headerShown && ihead > 0 ){
break;
}
context.write(headers.item(ihead).render());
headerShown = true;
}
context.write("\r\n\r\n\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\header.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570513955933().executeScript();
2020-07-14 20:57:31,439 [19] INFO - ---------
2020-07-14 20:57:31,440 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1502.
2020-07-14 20:57:31,440 [19] INFO - ---------
2020-07-14 20:57:31,441 [19] INFO - About to execute the following script:
2020-07-14 20:57:31,441 [19] INFO - ---------
2020-07-14 20:57:31,442 [19] INFO - function SE637303570514415960() {}
SE637303570514415960.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\hauptmenu.html'.
var pageId = context.param(0, 0);
var level = context.param(1, 1);
var p = project.getPage(pageId);
var childPages = isNull(p) ? page.projectFolder.pages : p.pages;
if ( childPages.count<=0 || (!isNull(p) && !hasVisibleChildPages(p.id)) ) { return; }
if ( !isNull(p) && p.level!=1 ) { return; }
context.write("\r\n
\r\n\r\n\r\n ");
for ( var i = 0; i < childPages.count; ++i ) {
var p = childPages.item(i);
if ( p.visible && p.active ) {
context.write("\r\n\r\n ");
if ( p.id==page.id || hasActiveChildPage(p.id) ) {
context.write("\r\n ");
context.write( system.partial("item-hauptmenu-aktiv.html", p.id, 1) );
context.write("\r\n ");
} else {
context.write("\r\n ");
context.write( system.partial("item-hauptmenu.html", p.id, 1) );
context.write("\r\n ");
}
context.write("\r\n\r\n ");
}
}
context.write("\r\n\r\n
\r\n\r\n ");
function hasActiveChildPage(pageId) {
var p = project.getPage(pageId);
var childPages = p.pages;
for ( var i = 0; i < childPages.count; ++i ) {
var childPage = childPages.item(i);
if ( childPage.id === page.id || hasActiveChildPage(childPage.id) ) {
return true;
}
}
return false;
}
function hasVisibleChildPages(pageId) {
var p = project.getPage(pageId);
if ( !isNull(p) ) {
var cps = p.pages;
for ( var i = 0; i < cps.count; ++i ) {
var cp = cps.item(i);
if ( cp.visible && cp.active ) {
return true;
}
}
}
return false;
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\hauptmenu.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570514415960().executeScript();
2020-07-14 20:57:31,442 [19] INFO - ---------
2020-07-14 20:57:31,449 [19] INFO - About to execute the following script:
2020-07-14 20:57:31,449 [19] INFO - ---------
2020-07-14 20:57:31,449 [19] INFO - function SE637303570514495964() {}
SE637303570514495964.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-hauptmenu.html'.
var pageId = context.param(0, 0);
var p = project.getPage(pageId);
context.write("\r\n\r\n
\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-hauptmenu.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570514915988().executeScript();
2020-07-14 20:57:31,495 [19] INFO - ---------
2020-07-14 20:57:31,495 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1509.
2020-07-14 20:57:31,495 [19] INFO - ---------
2020-07-14 20:57:31,496 [19] INFO - Finished executing the following script:
2020-07-14 20:57:31,497 [19] INFO - ---------
2020-07-14 20:57:31,497 [19] INFO - function SE637303570514415960() {}
SE637303570514415960.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\hauptmenu.html'.
var pageId = context.param(0, 0);
var level = context.param(1, 1);
var p = project.getPage(pageId);
var childPages = isNull(p) ? page.projectFolder.pages : p.pages;
if ( childPages.count<=0 || (!isNull(p) && !hasVisibleChildPages(p.id)) ) { return; }
if ( !isNull(p) && p.level!=1 ) { return; }
context.write("\r\n
\r\n\r\n\r\n ");
for ( var i = 0; i < childPages.count; ++i ) {
var p = childPages.item(i);
if ( p.visible && p.active ) {
context.write("\r\n\r\n ");
if ( p.id==page.id || hasActiveChildPage(p.id) ) {
context.write("\r\n ");
context.write( system.partial("item-hauptmenu-aktiv.html", p.id, 1) );
context.write("\r\n ");
} else {
context.write("\r\n ");
context.write( system.partial("item-hauptmenu.html", p.id, 1) );
context.write("\r\n ");
}
context.write("\r\n\r\n ");
}
}
context.write("\r\n\r\n
\r\n\r\n ");
function hasActiveChildPage(pageId) {
var p = project.getPage(pageId);
var childPages = p.pages;
for ( var i = 0; i < childPages.count; ++i ) {
var childPage = childPages.item(i);
if ( childPage.id === page.id || hasActiveChildPage(childPage.id) ) {
return true;
}
}
return false;
}
function hasVisibleChildPages(pageId) {
var p = project.getPage(pageId);
if ( !isNull(p) ) {
var cps = p.pages;
for ( var i = 0; i < cps.count; ++i ) {
var cp = cps.item(i);
if ( cp.visible && cp.active ) {
return true;
}
}
}
return false;
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\hauptmenu.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570514415960().executeScript();
2020-07-14 20:57:31,497 [19] INFO - ---------
2020-07-14 20:57:31,498 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1510.
2020-07-14 20:57:31,498 [19] INFO - ---------
2020-07-14 20:57:31,499 [19] INFO - About to execute the following script:
2020-07-14 20:57:31,499 [19] INFO - ---------
2020-07-14 20:57:31,499 [19] INFO - function SE637303570514995993() {}
SE637303570514995993.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\inline-editing-breadcrumb.html'.
context.write(" \r\n\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\inline-editing-breadcrumb.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570514995993().executeScript();
2020-07-14 20:57:31,500 [19] INFO - ---------
2020-07-14 20:57:31,501 [19] INFO - Finished executing the following script:
2020-07-14 20:57:31,501 [19] INFO - ---------
2020-07-14 20:57:31,501 [19] INFO - function SE637303570514995993() {}
SE637303570514995993.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\inline-editing-breadcrumb.html'.
context.write(" \r\n\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\inline-editing-breadcrumb.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570514995993().executeScript();
2020-07-14 20:57:31,502 [19] INFO - ---------
2020-07-14 20:57:31,502 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1511.
2020-07-14 20:57:31,502 [19] INFO - ---------
2020-07-14 20:57:31,503 [19] INFO - About to execute the following script:
2020-07-14 20:57:31,504 [19] INFO - ---------
2020-07-14 20:57:31,504 [19] INFO - function SE637303570515035995() {}
SE637303570515035995.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\breadcrumbs.html'.
var breadcrumb = context.param(0, "");
var breadcrumb_separator = context.param(1, "");
var pageId = page.id;
var parentPage = page;
var pagesArray = [];
var startpage = projectFolder.startPage;
// walk the page-tree upwards and store ids of pages which are visible in navigation
while ( pageId !== 0 ){
if ( parentPage.type=="projectFolder" ){
break; // A project folder is currently always the top element in the page hierarchy chain, so it is safe to break here since no further pages can exist
}
else if ( parentPage.visible || parentPage.id == page.id ){
// add the current page (ignoring visibility) and all visible paren pages to the pagesArray
pagesArray.unshift(parentPage.id);
}
var p = project.getPage(pageId);
pageId = p.parentPageId;
parentPage = project.getPage(pageId);
}
if ( pagesArray.length > 0 ){
context.write("\r\n\t");
context.write( breadcrumb );
context.write("\r\n\t\r\n\t");
}
// if startPage isn't the displayed page already and is visible,
// prefix the breadcrumbs with a link to it
if ( startpage && startpage.visible && page.id !== startpage.id ){
context.write("\r\n\t
\r\n\t\t");
}
}
if ( pagesArray.length > 0 ){
context.write("");
}
context.write("\r\n\t\t\t\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\breadcrumbs.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570515035995().executeScript();
2020-07-14 20:57:31,504 [19] INFO - ---------
2020-07-14 20:57:31,508 [19] INFO - Finished executing the following script:
2020-07-14 20:57:31,509 [19] INFO - ---------
2020-07-14 20:57:31,509 [19] INFO - function SE637303570515035995() {}
SE637303570515035995.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\breadcrumbs.html'.
var breadcrumb = context.param(0, "");
var breadcrumb_separator = context.param(1, "");
var pageId = page.id;
var parentPage = page;
var pagesArray = [];
var startpage = projectFolder.startPage;
// walk the page-tree upwards and store ids of pages which are visible in navigation
while ( pageId !== 0 ){
if ( parentPage.type=="projectFolder" ){
break; // A project folder is currently always the top element in the page hierarchy chain, so it is safe to break here since no further pages can exist
}
else if ( parentPage.visible || parentPage.id == page.id ){
// add the current page (ignoring visibility) and all visible paren pages to the pagesArray
pagesArray.unshift(parentPage.id);
}
var p = project.getPage(pageId);
pageId = p.parentPageId;
parentPage = project.getPage(pageId);
}
if ( pagesArray.length > 0 ){
context.write("\r\n\t");
context.write( breadcrumb );
context.write("\r\n\t\r\n\t");
}
// if startPage isn't the displayed page already and is visible,
// prefix the breadcrumbs with a link to it
if ( startpage && startpage.visible && page.id !== startpage.id ){
context.write("\r\n\t
\r\n\t\t");
}
}
if ( pagesArray.length > 0 ){
context.write("");
}
context.write("\r\n\t\t\t\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\breadcrumbs.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570515035995().executeScript();
2020-07-14 20:57:31,509 [19] INFO - ---------
2020-07-14 20:57:31,510 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1512.
2020-07-14 20:57:31,510 [19] INFO - ---------
2020-07-14 20:57:31,512 [19] INFO - About to execute the following script:
2020-07-14 20:57:31,512 [19] INFO - ---------
2020-07-14 20:57:31,512 [19] INFO - function SE637303570515116000() {}
SE637303570515116000.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\area.html'.
var areaName = context.param(0, "Standard");
var areaNameLc = areaName.toLowerCase();
var maxColumns = context.param(1, "0");
var cssRowClass = context.param(2, "");
var displayNumColumns = context.param(3, "12"); // number of columns to display. We always calculate with 12, but can display less
var cssAreaClass = context.param(4, "");
var noBreakoutWithNews = context.param(5, true);
var hideIeForArea = context.param(6, false);
var canContainer = project.canContainer;
var showEmptyArticleAreas = (system.preview && system.showEmptyPreviewAreas);
var hasNews = page.hasArea("News") && (page.anyAreaArticles("News") || showEmptyArticleAreas);
var hasNonSymlinkContainer = false;
var lastContainerIsSymlink = false;
if ( maxColumns == "1" ){
if ( cssRowClass == "" || cssRowClass == "noresize" ){
cssRowClass = "noresize";
}
else{
cssRowClass += " noresize";
}
}
var intPreviewData = '';
if ( system.preview ){
// if internal preview, we add some additional data-attributes to the area
// for access in JS (non internal scripting)
intPreviewData += ' data-showemptyarticleareas="' + showEmptyArticleAreas + '"';
}
context.write("\n\n
\n\t");
var containers = page.containers(areaName);
var firstC = 0;
var lastC = containers.count-1;
//system.log("last: " + lastC + " of " + containers.count);
if ( lastC > firstC && !containers.item(lastC).hasArticles ){
// last container has no articles and is not rendered, so find last visible one
for ( var ilcon = lastC; ilcon > 1; --ilcon ){
var lastContainer = containers.item(ilcon);
if ( lastContainer.hasArticles ){
lastC = ilcon;
break;
}
}
}
for ( var icon = 0; icon < containers.count; ++icon ){
var container = containers.item(icon);
// if current container doesn't contain any articles, we skip this loop
// we do not skip when on impressum page and the container ist the last one, as we need to insert freeware content
if ( !container.hasArticles && !(icon == containers.count-1 && page.isSpecialPage("legal")) ){
firstC++;
continue;
}
// append container styles to head via css
var cid = container.id;
var output = "";
var isSection = container.value("issection") == "1";
var isStyled = false;
if ( container.value("fontcolor", "") !== "" && container.value("fontcolor") !== "transparent" ){
var cssSelector = "#container_" + cid;
output = cssSelector;
output += ", " + cssSelector + " p";
output += ", " + cssSelector + " h1";
output += ", " + cssSelector + " h2";
output += ", " + cssSelector + " h3{";
output += "color: " + container.value("fontcolor") + ";";
output += "}\n";
}
if ( container.value("linkcolor", "") !== "" && container.value("linkcolor") !== "transparent" ){
var cssSelector = "#container_" + cid;
output += "\n\n" + cssSelector + " a:not(.button):not(.fancybox):not(.zpSO-Uplink-Flat):not(.zpnolayoutlinkstyles)";
output += ", " + cssSelector + " a:not(.button):not(.fancybox):not(.zpSO-Uplink-Flat):not(.zpnolayoutlinkstyles):hover{";
output += "color: " + container.value("linkcolor") + ";";
output += "}\n";
}
if ( container.value("margin", "") !== "" ){
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
if ( container.value("margin-top") ){
output += "margin-top: " + container.value("margin-top") + " !important;";
}
if ( container.value("margin-bottom") ){
output += "margin-bottom: " + container.value("margin-bottom") + " !important;" ;
}
output += "}\n";
}
if ( container.value("padding", "") !== "" ){
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
if ( container.value("padding-top") ){
output += "padding-top: " + container.value("padding-top") + " !important;";
}
if ( container.value("padding-bottom") ){
output += "padding-bottom: " + container.value("padding-bottom") + " !important;";
}
if ( container.value("padding-left") ){
output += "padding-left: " + container.value("padding-left") + " !important;";
}
if ( container.value("padding-right") ){
output += "padding-right: " + container.value("padding-right") + " !important;";
}
output += "}\n";
}
if ( container.value("bgcolor", "") !== "" && container.value("bgcolor", "") !== "transparent" ){
isStyled = true;
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
output += "background-color: " + container.value("bgcolor") + " !important;";
output += "}\n";
}
var image = container.cssBackgroundImage("bgimage");
if ( image.imageUrl ){
isStyled = true;
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
output += "background-image: url(" + image.imageUrl + ") !important;";
output += "background-repeat: " + image.repeat + " !important;";
output += "background-size: " + image.size + " !important;";
output += "background-position: " + (image.position !== "" ? image.position : "center center") + " !important;";
output += "background-attachment: " + (image.attachment !== "" ? image.attachment : "scroll") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
var containerstyle = container.inlineCss || "";
containerstyle = containerstyle.toString().replace(/^\s+|\s+$/gm,''); // trim()
// make sure the users inlineCss properly ends with a semicolon as we attach more styles later below
if ( containerstyle && containerstyle.slice(-1) !== ";" ){
containerstyle += ";";
}
var initialContainerstyle = containerstyle;
containerstyle = containerstyle.replace(/^\s+|\s+$/gm,''); // trim()
if ( containerstyle ){
containerstyle = ' style="' + containerstyle + '"';
}
if ( noBreakoutWithNews && system.preview && container.value("breakout") == "1" && hasNews ){
system.warn("Die 'Randlos-Option' für einen Container kann nicht berücksichtigt werden, weil der 'Einfügen-Schalter' auf an steht oder die Seite auch Artikel im News-Bereich enthält.");
}
var containerTag = "div";
if ( isSection ){
containerTag = "section";
}
var containerIsSymlink = container.symlink ? true : false;
if ( !containerIsSymlink ){
hasNonSymlinkContainer = true;
}
else if ( icon == containers.count-1 ){
lastContainerIsSymlink = true;
}
context.write("\n\t\t\t<");
context.write( containerTag );
context.write(" id=\"container_");
context.write( container.id );
context.write("\" class=\"zpContainer");
if (icon==firstC){
context.write(" first");
}
if (icon==lastC){
context.write(" last");
}
if( container.value("animate", "") !== "" && container.value("animate") !== "off" ){
context.write(" zpanimate ");
context.write( container.value("animate"));
}
if( isStyled ){
context.write(" styled");
}
context.write(" ");
if ( container.value("breakout") == "1" ){
context.write("zpBreakout ");
}
if( noBreakoutWithNews && hasNews ) {
context.write(" hasNews");
}
context.write(" ");
context.write( container.cssClass );
context.write("\"");
context.write( containerstyle );
context.write(" \n\t\t\t\t data-zpeleel=\"container\" data-zpleid=\"");
context.write( container.id );
context.write("\">\n\t\t\t");
var paragraphs = container.paragraphs;
for ( var ipar = 0; ipar < paragraphs.count; ++ipar ){
var additionalRowClass = "";
var paragraph = paragraphs.item(ipar);
var columns = paragraph.columns;
// if current paragraph doesn't contain articles, we skip the loop, so we don't print empty paragraphs
// we do not skip when on impressum page and the container ist the last one, as we need to insert freeware content
var articleCount = paragraph.articles.count;
if ( articleCount < 1 && !(icon == containers.count-1 && page.isSpecialPage("legal")) ){
continue;
}
else if ( articleCount > 0 ){
// set special rowClass for Articles which are not visible, so we can remove any margins which might not be desired
var firstWidgetName = paragraph.articles.item(0).widgetName;
switch(firstWidgetName) {
case "Info-Banner":
additionalRowClass = " alertbanner";
break;
case "Quelltext":
additionalRowClass = " quelltext";
break;
case "Slider":
additionalRowClass = " zpwSlider";
break;
case "Carousel":
additionalRowClass = " zpwCarousel";
break;
case "Navigationsmenü":
if ( paragraph.articles.item(0).value("menufixed") ){
additionalRowClass = " zpwNavmenu zpwNavmenuFixed";
}
else{
additionalRowClass = " zpwNavmenu";
}
break;
case "Navigationsmenü manuell":
if ( paragraph.articles.item(0).value("menufixed") ){
additionalRowClass = " zpwNavmenu zpwNavmenuFixed";
}
else{
additionalRowClass = " zpwNavmenu";
}
break;
case "Video-Hintergrund":
additionalRowClass = " zpvideobg";
break;
}
// append row styles to head via css
var rid = paragraph.id;
var output = "";
if ( paragraph.value("margin", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
if ( paragraph.value("margin-top") ){
output += "margin-top: " + paragraph.value("margin-top", "initial") + " !important;";
}
if ( paragraph.value("margin-bottom") ){
output += "margin-bottom: " + paragraph.value("margin-bottom", "initial") + " !important;" ;
}
output += "}\n";
}
if ( paragraph.value("padding", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
if ( paragraph.value("padding-top") ){
output += "padding-top: " + paragraph.value("padding-top") + " !important;";
}
if ( paragraph.value("padding-bottom") ){
output += "padding-bottom: " + paragraph.value("padding-bottom") + " !important;";
}
if ( paragraph.value("padding-left") ){
output += "padding-left: " + paragraph.value("padding-left") + " !important;";
}
if ( paragraph.value("padding-right") ){
output += "padding-right: " + paragraph.value("padding-right") + " !important;";
}
output += "}\n";
}
if ( paragraph.value("bgcolor", "") !== "" && paragraph.value("bgcolor", "") !== "transparent" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "background-color: " + paragraph.value("bgcolor") + " !important;";
output += "}\n";
}
var pimage = paragraph.cssBackgroundImage("bgimage");
if ( pimage.imageUrl ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "background-image: url(" + pimage.imageUrl + ") !important;";
output += "background-repeat: " + pimage.repeat + " !important;";
output += "background-size: " + pimage.size + " !important;";
output += "background-position: " + (pimage.position !== "" ? pimage.position : "center center") + " !important;";
output += "background-attachment: " + (pimage.attachment !== "" ? pimage.attachment : "scroll") + ";";
output += "}\n";
}
if ( paragraph.value("justifycontent", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "justify-content: " + paragraph.value("justifycontent") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
// paragraph styles
var rowstyle = paragraph.inlineCss || "";
rowstyle = rowstyle.toString().replace(/^\s+|\s+$/gm,''); // trim();
// make sure the users inlineCss properly ends with a semicolon as we attach more styles later below
if ( rowstyle && rowstyle.slice(-1) !== ";" ){
rowstyle += ";";
}
context.write("\n\t\t\n\t\t\t\t\t");
if ( paragraph.value("breakout") == "1" ){
context.write("\n\t\t\t\t\t\t
\n\t\t\t\t\t>\n\t\t\n\t\t\t\t\t");
var evenodd = "even";
for ( var icol = 0; icol < columns.count; ++icol ){
var column = columns.item(icol);
var articles = column.articles;
var coid = column.id;
var output = "";
var isStyled = false;
var selectorPrefix = "#container_" + cid + " ";
if ( column.value("bgcolor", "") !== "" && column.value("bgcolor", "") !== "transparent" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "background-color: " + column.value("bgcolor") + ";";
output += "padding-top: 15px;";
output += "padding-bottom: 15px;";
output += "}\n";
isStyled = true;
}
if ( column.value("fontcolor", "") !== "" && column.value("fontcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector;
output += ", " + cssSelector + " p";
output += ", " + cssSelector + " h1";
output += ", " + cssSelector + " h2";
output += ", " + cssSelector + " h3{";
output += "color: " + column.value("fontcolor") + ";";
output += "}\n";
}
if ( column.value("linkcolor", "") !== "" && column.value("linkcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += "\n\n" + cssSelector + " a:not(.button)";
output += ", " + cssSelector + " a:not(.button):hover{";
output += "color: " + column.value("linkcolor") + ";";
output += "}\n";
}
if ( column.value("align-self", "") !== "" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "align-self: " + column.value("align-self") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
var clearCss = column.value("clearLeft") ? "clear: left;" : "";
if ( column.articles.count > 0 ){
var firstWidgetName = articles.item(0).widgetName;
}
else{
var firstWidgetName = "";
}
// used in a className, alternate between even and odd, not taking into account zpSpacer-Columns
if( firstWidgetName !== "Spacer" ){
if( evenodd === "even" ){
evenodd = "odd";
}
else{
evenodd = "even";
}
var additionalColumnClass = " " + evenodd;
}
else{
var additionalColumnClass = "";
}
// if a spacer-widget is alone in a column, we set a class .zpSpacer, so we can set the width of spacer-widgets responsively in zpgrid.less accordingly
if ( firstWidgetName == "Spacer" && column.articles.count < 2 ){
additionalColumnClass += " zpSpacer";
}
else if ( firstWidgetName == "Navigationsmenü" ){
additionalColumnClass += " zpnavmenu";
}
// TODO move adding of missing classes to converter and remove next 4 lines
var columnCssClass = column.cssClass;
if ( !column.cssClass || !column.cssClass.match(/\bc[1-9][0-2]?\b/) ){
columnCssClass = "c" + String(Math.round(12 / columns.count - 0.1)) ;
}
if ( column.value("clearLeft") ){
context.write("\n\t\t\t\t\t\t\n\t\t\t\t\t\t");
}
context.write("\n\t\t\t\t\t\t
\n\t\t\t\t\t\t>\n\t\t\t\n\t\t\t\t\t\t\t");
for ( var iart = 0; iart < articles.count; ++iart ){
var a = articles.item(iart);
context.write(a.render());
}
context.write("\n\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\n\t\t\t\t\t\t");
}
// insert zp-ad-box in last row of last container on impressum pages
if ( system.isFreeware && areaName.toLowerCase() == "standard" && page.isSpecialPage("legal") && icon == containers.count-1 && ipar == paragraphs.count-1 ){
context.write("\n\t\t\t\t\t\t\t
\n\t\t\t\t\t>\n\t\t\n\t\t\t\t\t");
var evenodd = "even";
for ( var icol = 0; icol < columns.count; ++icol ){
var column = columns.item(icol);
var articles = column.articles;
var coid = column.id;
var output = "";
var isStyled = false;
var selectorPrefix = "#container_" + cid + " ";
if ( column.value("bgcolor", "") !== "" && column.value("bgcolor", "") !== "transparent" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "background-color: " + column.value("bgcolor") + ";";
output += "padding-top: 15px;";
output += "padding-bottom: 15px;";
output += "}\n";
isStyled = true;
}
if ( column.value("fontcolor", "") !== "" && column.value("fontcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector;
output += ", " + cssSelector + " p";
output += ", " + cssSelector + " h1";
output += ", " + cssSelector + " h2";
output += ", " + cssSelector + " h3{";
output += "color: " + column.value("fontcolor") + ";";
output += "}\n";
}
if ( column.value("linkcolor", "") !== "" && column.value("linkcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += "\n\n" + cssSelector + " a:not(.button)";
output += ", " + cssSelector + " a:not(.button):hover{";
output += "color: " + column.value("linkcolor") + ";";
output += "}\n";
}
if ( column.value("align-self", "") !== "" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "align-self: " + column.value("align-self") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
var clearCss = column.value("clearLeft") ? "clear: left;" : "";
if ( column.articles.count > 0 ){
var firstWidgetName = articles.item(0).widgetName;
}
else{
var firstWidgetName = "";
}
// used in a className, alternate between even and odd, not taking into account zpSpacer-Columns
if( firstWidgetName !== "Spacer" ){
if( evenodd === "even" ){
evenodd = "odd";
}
else{
evenodd = "even";
}
var additionalColumnClass = " " + evenodd;
}
else{
var additionalColumnClass = "";
}
// if a spacer-widget is alone in a column, we set a class .zpSpacer, so we can set the width of spacer-widgets responsively in zpgrid.less accordingly
if ( firstWidgetName == "Spacer" && column.articles.count < 2 ){
additionalColumnClass += " zpSpacer";
}
else if ( firstWidgetName == "Navigationsmenü" ){
additionalColumnClass += " zpnavmenu";
}
// TODO move adding of missing classes to converter and remove next 4 lines
var columnCssClass = column.cssClass;
if ( !column.cssClass || !column.cssClass.match(/\bc[1-9][0-2]?\b/) ){
columnCssClass = "c" + String(Math.round(12 / columns.count - 0.1)) ;
}
if ( column.value("clearLeft") ){
context.write("\n\t\t\t\t\t\t\n\t\t\t\t\t\t");
}
context.write("\n\t\t\t\t\t\t
\n\t\t\t\t\t\t>\n\t\t\t\n\t\t\t\t\t\t\t");
for ( var iart = 0; iart < articles.count; ++iart ){
var a = articles.item(iart);
context.write(a.render());
}
context.write("\n\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\n\t\t\t\t\t\t");
}
// insert zp-ad-box in last row of last container on impressum pages
if ( system.isFreeware && areaName.toLowerCase() == "standard" && page.isSpecialPage("legal") && icon == containers.count-1 && ipar == paragraphs.count-1 ){
context.write("\n\t\t\t\t\t\t\t
\n\n");
// insert overlay on startpage
if ( !system.preview && system.isFreeware && areaName.toLowerCase() == "standard" && projectFolder.startPage && projectFolder.startPage.id == page.id ){
context.write("\n\t\t");
context.write( system.partial("zpinfooverlay.html") );
context.write("\n\t\t");
}
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\area.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570515116000().executeScript();
2020-07-14 20:57:31,798 [19] INFO - ---------
2020-07-14 20:57:32,340 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1527.
2020-07-14 20:57:32,340 [19] INFO - ---------
2020-07-14 20:57:32,341 [19] INFO - About to execute the following script:
2020-07-14 20:57:32,342 [19] INFO - ---------
2020-07-14 20:57:32,342 [19] INFO - function SE637303570523416474() {}
SE637303570523416474.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu-layout.html'.
var pageId = context.param(0, 0);
var level = context.param(1, 1);
var p = project.getPage(pageId);
var childPages = isNull(p) ? page.projectFolder.pages : p.pages;
if ( childPages.count<=0 || (!isNull(p) && !hasVisibleChildPages(p.id)) ) { return; }
if ( !isNull(p) && p.level!=2 ) { return; }
context.write("\r\n\r\n\r\n\t");
for ( var i = 0; i < childPages.count; ++i ) {
var p = childPages.item(i);
if ( p.visible && p.active ) {
context.write("\r\n\r\n\t\t\t");
if ( p.id==page.id || hasActiveChildPage(p.id) ) {
context.write("\r\n\t\t\t ");
context.write( system.partial("submenu1.html", p.id, 2) );
context.write("\r\n\t\t\t");
}
context.write("\r\n\r\n\t");
}
}
context.write("\r\n\r\n\r\n ");
function hasActiveChildPage(pageId) {
var p = project.getPage(pageId);
var childPages = p.pages;
for ( var i = 0; i < childPages.count; ++i ) {
var childPage = childPages.item(i);
if ( childPage.id === page.id || hasActiveChildPage(childPage.id) ) {
return true;
}
}
return false;
}
function hasVisibleChildPages(pageId) {
var p = project.getPage(pageId);
if ( !isNull(p) ) {
var cps = p.pages;
for ( var i = 0; i < cps.count; ++i ) {
var cp = cps.item(i);
if ( cp.visible && cp.active ) {
return true;
}
}
}
return false;
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu-layout.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570523416474().executeScript();
2020-07-14 20:57:32,342 [19] INFO - ---------
2020-07-14 20:57:32,353 [19] INFO - About to execute the following script:
2020-07-14 20:57:32,353 [19] INFO - ---------
2020-07-14 20:57:32,354 [19] INFO - function SE637303570523536481() {}
SE637303570523536481.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu1.html'.
var pageId = context.param(0, 0);
var level = context.param(1, 1);
var p = project.getPage(pageId);
var childPages = isNull(p) ? page.projectFolder.pages : p.pages;
if ( childPages.count<=0 || (!isNull(p) && !hasVisibleChildPages(p.id)) ) { return; }
if ( !isNull(p) && p.level!=1 ) { return; }
context.write("\r\n
\r\n\t
\r\n\r\n\r\n ");
for ( var i = 0; i < childPages.count; ++i ) {
var p = childPages.item(i);
if ( p.visible && p.active ) {
context.write("\r\n\r\n ");
if ( p.id==page.id || hasActiveChildPage(p.id) ) {
context.write("\r\n ");
context.write( system.partial("item-submenu1-aktiv.html", p.id, 2) );
context.write("\r\n ");
} else {
context.write("\r\n ");
context.write( system.partial("item-submenu1.html", p.id, 2) );
context.write("\r\n ");
}
context.write("\r\n\r\n ");
}
}
context.write("\r\n\r\n\t
\r\n
\r\n\r\n ");
function hasActiveChildPage(pageId) {
var p = project.getPage(pageId);
var childPages = p.pages;
for ( var i = 0; i < childPages.count; ++i ) {
var childPage = childPages.item(i);
if ( childPage.id === page.id || hasActiveChildPage(childPage.id) ) {
return true;
}
}
return false;
}
function hasVisibleChildPages(pageId) {
var p = project.getPage(pageId);
if ( !isNull(p) ) {
var cps = p.pages;
for ( var i = 0; i < cps.count; ++i ) {
var cp = cps.item(i);
if ( cp.visible && cp.active ) {
return true;
}
}
}
return false;
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu1.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570523536481().executeScript();
2020-07-14 20:57:32,354 [19] INFO - ---------
2020-07-14 20:57:32,357 [19] INFO - About to execute the following script:
2020-07-14 20:57:32,358 [19] INFO - ---------
2020-07-14 20:57:32,358 [19] INFO - function SE637303570523576484() {}
SE637303570523576484.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-submenu1.html'.
var pageId = context.param(0, 0);
var p = project.getPage(pageId);
context.write("\r\n\r\n\t
\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-submenu1.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570524176518().executeScript();
2020-07-14 20:57:32,424 [19] INFO - ---------
2020-07-14 20:57:32,425 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1536.
2020-07-14 20:57:32,425 [19] INFO - ---------
2020-07-14 20:57:32,426 [19] INFO - Finished executing the following script:
2020-07-14 20:57:32,426 [19] INFO - ---------
2020-07-14 20:57:32,426 [19] INFO - function SE637303570523536481() {}
SE637303570523536481.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu1.html'.
var pageId = context.param(0, 0);
var level = context.param(1, 1);
var p = project.getPage(pageId);
var childPages = isNull(p) ? page.projectFolder.pages : p.pages;
if ( childPages.count<=0 || (!isNull(p) && !hasVisibleChildPages(p.id)) ) { return; }
if ( !isNull(p) && p.level!=1 ) { return; }
context.write("\r\n
\r\n\t
\r\n\r\n\r\n ");
for ( var i = 0; i < childPages.count; ++i ) {
var p = childPages.item(i);
if ( p.visible && p.active ) {
context.write("\r\n\r\n ");
if ( p.id==page.id || hasActiveChildPage(p.id) ) {
context.write("\r\n ");
context.write( system.partial("item-submenu1-aktiv.html", p.id, 2) );
context.write("\r\n ");
} else {
context.write("\r\n ");
context.write( system.partial("item-submenu1.html", p.id, 2) );
context.write("\r\n ");
}
context.write("\r\n\r\n ");
}
}
context.write("\r\n\r\n\t
\r\n
\r\n\r\n ");
function hasActiveChildPage(pageId) {
var p = project.getPage(pageId);
var childPages = p.pages;
for ( var i = 0; i < childPages.count; ++i ) {
var childPage = childPages.item(i);
if ( childPage.id === page.id || hasActiveChildPage(childPage.id) ) {
return true;
}
}
return false;
}
function hasVisibleChildPages(pageId) {
var p = project.getPage(pageId);
if ( !isNull(p) ) {
var cps = p.pages;
for ( var i = 0; i < cps.count; ++i ) {
var cp = cps.item(i);
if ( cp.visible && cp.active ) {
return true;
}
}
}
return false;
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu1.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570523536481().executeScript();
2020-07-14 20:57:32,427 [19] INFO - ---------
2020-07-14 20:57:32,427 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1537.
2020-07-14 20:57:32,427 [19] INFO - ---------
2020-07-14 20:57:32,432 [19] INFO - Finished executing the following script:
2020-07-14 20:57:32,433 [19] INFO - ---------
2020-07-14 20:57:32,433 [19] INFO - function SE637303570523416474() {}
SE637303570523416474.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu-layout.html'.
var pageId = context.param(0, 0);
var level = context.param(1, 1);
var p = project.getPage(pageId);
var childPages = isNull(p) ? page.projectFolder.pages : p.pages;
if ( childPages.count<=0 || (!isNull(p) && !hasVisibleChildPages(p.id)) ) { return; }
if ( !isNull(p) && p.level!=2 ) { return; }
context.write("\r\n\r\n\r\n\t");
for ( var i = 0; i < childPages.count; ++i ) {
var p = childPages.item(i);
if ( p.visible && p.active ) {
context.write("\r\n\r\n\t\t\t");
if ( p.id==page.id || hasActiveChildPage(p.id) ) {
context.write("\r\n\t\t\t ");
context.write( system.partial("submenu1.html", p.id, 2) );
context.write("\r\n\t\t\t");
}
context.write("\r\n\r\n\t");
}
}
context.write("\r\n\r\n\r\n ");
function hasActiveChildPage(pageId) {
var p = project.getPage(pageId);
var childPages = p.pages;
for ( var i = 0; i < childPages.count; ++i ) {
var childPage = childPages.item(i);
if ( childPage.id === page.id || hasActiveChildPage(childPage.id) ) {
return true;
}
}
return false;
}
function hasVisibleChildPages(pageId) {
var p = project.getPage(pageId);
if ( !isNull(p) ) {
var cps = p.pages;
for ( var i = 0; i < cps.count; ++i ) {
var cp = cps.item(i);
if ( cp.visible && cp.active ) {
return true;
}
}
}
return false;
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu-layout.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570523416474().executeScript();
2020-07-14 20:57:32,433 [19] INFO - ---------
2020-07-14 20:57:32,434 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1538.
2020-07-14 20:57:32,434 [19] INFO - ---------
2020-07-14 20:57:32,436 [19] INFO - About to execute the following script:
2020-07-14 20:57:32,436 [19] INFO - ---------
2020-07-14 20:57:32,436 [19] INFO - function SE637303570524356528() {}
SE637303570524356528.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\area.html'.
var areaName = context.param(0, "Standard");
var areaNameLc = areaName.toLowerCase();
var maxColumns = context.param(1, "0");
var cssRowClass = context.param(2, "");
var displayNumColumns = context.param(3, "12"); // number of columns to display. We always calculate with 12, but can display less
var cssAreaClass = context.param(4, "");
var noBreakoutWithNews = context.param(5, true);
var hideIeForArea = context.param(6, false);
var canContainer = project.canContainer;
var showEmptyArticleAreas = (system.preview && system.showEmptyPreviewAreas);
var hasNews = page.hasArea("News") && (page.anyAreaArticles("News") || showEmptyArticleAreas);
var hasNonSymlinkContainer = false;
var lastContainerIsSymlink = false;
if ( maxColumns == "1" ){
if ( cssRowClass == "" || cssRowClass == "noresize" ){
cssRowClass = "noresize";
}
else{
cssRowClass += " noresize";
}
}
var intPreviewData = '';
if ( system.preview ){
// if internal preview, we add some additional data-attributes to the area
// for access in JS (non internal scripting)
intPreviewData += ' data-showemptyarticleareas="' + showEmptyArticleAreas + '"';
}
context.write("\n\n
\n\t");
var containers = page.containers(areaName);
var firstC = 0;
var lastC = containers.count-1;
//system.log("last: " + lastC + " of " + containers.count);
if ( lastC > firstC && !containers.item(lastC).hasArticles ){
// last container has no articles and is not rendered, so find last visible one
for ( var ilcon = lastC; ilcon > 1; --ilcon ){
var lastContainer = containers.item(ilcon);
if ( lastContainer.hasArticles ){
lastC = ilcon;
break;
}
}
}
for ( var icon = 0; icon < containers.count; ++icon ){
var container = containers.item(icon);
// if current container doesn't contain any articles, we skip this loop
// we do not skip when on impressum page and the container ist the last one, as we need to insert freeware content
if ( !container.hasArticles && !(icon == containers.count-1 && page.isSpecialPage("legal")) ){
firstC++;
continue;
}
// append container styles to head via css
var cid = container.id;
var output = "";
var isSection = container.value("issection") == "1";
var isStyled = false;
if ( container.value("fontcolor", "") !== "" && container.value("fontcolor") !== "transparent" ){
var cssSelector = "#container_" + cid;
output = cssSelector;
output += ", " + cssSelector + " p";
output += ", " + cssSelector + " h1";
output += ", " + cssSelector + " h2";
output += ", " + cssSelector + " h3{";
output += "color: " + container.value("fontcolor") + ";";
output += "}\n";
}
if ( container.value("linkcolor", "") !== "" && container.value("linkcolor") !== "transparent" ){
var cssSelector = "#container_" + cid;
output += "\n\n" + cssSelector + " a:not(.button):not(.fancybox):not(.zpSO-Uplink-Flat):not(.zpnolayoutlinkstyles)";
output += ", " + cssSelector + " a:not(.button):not(.fancybox):not(.zpSO-Uplink-Flat):not(.zpnolayoutlinkstyles):hover{";
output += "color: " + container.value("linkcolor") + ";";
output += "}\n";
}
if ( container.value("margin", "") !== "" ){
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
if ( container.value("margin-top") ){
output += "margin-top: " + container.value("margin-top") + " !important;";
}
if ( container.value("margin-bottom") ){
output += "margin-bottom: " + container.value("margin-bottom") + " !important;" ;
}
output += "}\n";
}
if ( container.value("padding", "") !== "" ){
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
if ( container.value("padding-top") ){
output += "padding-top: " + container.value("padding-top") + " !important;";
}
if ( container.value("padding-bottom") ){
output += "padding-bottom: " + container.value("padding-bottom") + " !important;";
}
if ( container.value("padding-left") ){
output += "padding-left: " + container.value("padding-left") + " !important;";
}
if ( container.value("padding-right") ){
output += "padding-right: " + container.value("padding-right") + " !important;";
}
output += "}\n";
}
if ( container.value("bgcolor", "") !== "" && container.value("bgcolor", "") !== "transparent" ){
isStyled = true;
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
output += "background-color: " + container.value("bgcolor") + " !important;";
output += "}\n";
}
var image = container.cssBackgroundImage("bgimage");
if ( image.imageUrl ){
isStyled = true;
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
output += "background-image: url(" + image.imageUrl + ") !important;";
output += "background-repeat: " + image.repeat + " !important;";
output += "background-size: " + image.size + " !important;";
output += "background-position: " + (image.position !== "" ? image.position : "center center") + " !important;";
output += "background-attachment: " + (image.attachment !== "" ? image.attachment : "scroll") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
var containerstyle = container.inlineCss || "";
containerstyle = containerstyle.toString().replace(/^\s+|\s+$/gm,''); // trim()
// make sure the users inlineCss properly ends with a semicolon as we attach more styles later below
if ( containerstyle && containerstyle.slice(-1) !== ";" ){
containerstyle += ";";
}
var initialContainerstyle = containerstyle;
containerstyle = containerstyle.replace(/^\s+|\s+$/gm,''); // trim()
if ( containerstyle ){
containerstyle = ' style="' + containerstyle + '"';
}
if ( noBreakoutWithNews && system.preview && container.value("breakout") == "1" && hasNews ){
system.warn("Die 'Randlos-Option' für einen Container kann nicht berücksichtigt werden, weil der 'Einfügen-Schalter' auf an steht oder die Seite auch Artikel im News-Bereich enthält.");
}
var containerTag = "div";
if ( isSection ){
containerTag = "section";
}
var containerIsSymlink = container.symlink ? true : false;
if ( !containerIsSymlink ){
hasNonSymlinkContainer = true;
}
else if ( icon == containers.count-1 ){
lastContainerIsSymlink = true;
}
context.write("\n\t\t\t<");
context.write( containerTag );
context.write(" id=\"container_");
context.write( container.id );
context.write("\" class=\"zpContainer");
if (icon==firstC){
context.write(" first");
}
if (icon==lastC){
context.write(" last");
}
if( container.value("animate", "") !== "" && container.value("animate") !== "off" ){
context.write(" zpanimate ");
context.write( container.value("animate"));
}
if( isStyled ){
context.write(" styled");
}
context.write(" ");
if ( container.value("breakout") == "1" ){
context.write("zpBreakout ");
}
if( noBreakoutWithNews && hasNews ) {
context.write(" hasNews");
}
context.write(" ");
context.write( container.cssClass );
context.write("\"");
context.write( containerstyle );
context.write(" \n\t\t\t\t data-zpeleel=\"container\" data-zpleid=\"");
context.write( container.id );
context.write("\">\n\t\t\t");
var paragraphs = container.paragraphs;
for ( var ipar = 0; ipar < paragraphs.count; ++ipar ){
var additionalRowClass = "";
var paragraph = paragraphs.item(ipar);
var columns = paragraph.columns;
// if current paragraph doesn't contain articles, we skip the loop, so we don't print empty paragraphs
// we do not skip when on impressum page and the container ist the last one, as we need to insert freeware content
var articleCount = paragraph.articles.count;
if ( articleCount < 1 && !(icon == containers.count-1 && page.isSpecialPage("legal")) ){
continue;
}
else if ( articleCount > 0 ){
// set special rowClass for Articles which are not visible, so we can remove any margins which might not be desired
var firstWidgetName = paragraph.articles.item(0).widgetName;
switch(firstWidgetName) {
case "Info-Banner":
additionalRowClass = " alertbanner";
break;
case "Quelltext":
additionalRowClass = " quelltext";
break;
case "Slider":
additionalRowClass = " zpwSlider";
break;
case "Carousel":
additionalRowClass = " zpwCarousel";
break;
case "Navigationsmenü":
if ( paragraph.articles.item(0).value("menufixed") ){
additionalRowClass = " zpwNavmenu zpwNavmenuFixed";
}
else{
additionalRowClass = " zpwNavmenu";
}
break;
case "Navigationsmenü manuell":
if ( paragraph.articles.item(0).value("menufixed") ){
additionalRowClass = " zpwNavmenu zpwNavmenuFixed";
}
else{
additionalRowClass = " zpwNavmenu";
}
break;
case "Video-Hintergrund":
additionalRowClass = " zpvideobg";
break;
}
// append row styles to head via css
var rid = paragraph.id;
var output = "";
if ( paragraph.value("margin", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
if ( paragraph.value("margin-top") ){
output += "margin-top: " + paragraph.value("margin-top", "initial") + " !important;";
}
if ( paragraph.value("margin-bottom") ){
output += "margin-bottom: " + paragraph.value("margin-bottom", "initial") + " !important;" ;
}
output += "}\n";
}
if ( paragraph.value("padding", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
if ( paragraph.value("padding-top") ){
output += "padding-top: " + paragraph.value("padding-top") + " !important;";
}
if ( paragraph.value("padding-bottom") ){
output += "padding-bottom: " + paragraph.value("padding-bottom") + " !important;";
}
if ( paragraph.value("padding-left") ){
output += "padding-left: " + paragraph.value("padding-left") + " !important;";
}
if ( paragraph.value("padding-right") ){
output += "padding-right: " + paragraph.value("padding-right") + " !important;";
}
output += "}\n";
}
if ( paragraph.value("bgcolor", "") !== "" && paragraph.value("bgcolor", "") !== "transparent" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "background-color: " + paragraph.value("bgcolor") + " !important;";
output += "}\n";
}
var pimage = paragraph.cssBackgroundImage("bgimage");
if ( pimage.imageUrl ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "background-image: url(" + pimage.imageUrl + ") !important;";
output += "background-repeat: " + pimage.repeat + " !important;";
output += "background-size: " + pimage.size + " !important;";
output += "background-position: " + (pimage.position !== "" ? pimage.position : "center center") + " !important;";
output += "background-attachment: " + (pimage.attachment !== "" ? pimage.attachment : "scroll") + ";";
output += "}\n";
}
if ( paragraph.value("justifycontent", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "justify-content: " + paragraph.value("justifycontent") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
// paragraph styles
var rowstyle = paragraph.inlineCss || "";
rowstyle = rowstyle.toString().replace(/^\s+|\s+$/gm,''); // trim();
// make sure the users inlineCss properly ends with a semicolon as we attach more styles later below
if ( rowstyle && rowstyle.slice(-1) !== ";" ){
rowstyle += ";";
}
context.write("\n\t\t\n\t\t\t\t\t");
if ( paragraph.value("breakout") == "1" ){
context.write("\n\t\t\t\t\t\t
\n\t\t\t\t\t>\n\t\t\n\t\t\t\t\t");
var evenodd = "even";
for ( var icol = 0; icol < columns.count; ++icol ){
var column = columns.item(icol);
var articles = column.articles;
var coid = column.id;
var output = "";
var isStyled = false;
var selectorPrefix = "#container_" + cid + " ";
if ( column.value("bgcolor", "") !== "" && column.value("bgcolor", "") !== "transparent" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "background-color: " + column.value("bgcolor") + ";";
output += "padding-top: 15px;";
output += "padding-bottom: 15px;";
output += "}\n";
isStyled = true;
}
if ( column.value("fontcolor", "") !== "" && column.value("fontcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector;
output += ", " + cssSelector + " p";
output += ", " + cssSelector + " h1";
output += ", " + cssSelector + " h2";
output += ", " + cssSelector + " h3{";
output += "color: " + column.value("fontcolor") + ";";
output += "}\n";
}
if ( column.value("linkcolor", "") !== "" && column.value("linkcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += "\n\n" + cssSelector + " a:not(.button)";
output += ", " + cssSelector + " a:not(.button):hover{";
output += "color: " + column.value("linkcolor") + ";";
output += "}\n";
}
if ( column.value("align-self", "") !== "" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "align-self: " + column.value("align-self") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
var clearCss = column.value("clearLeft") ? "clear: left;" : "";
if ( column.articles.count > 0 ){
var firstWidgetName = articles.item(0).widgetName;
}
else{
var firstWidgetName = "";
}
// used in a className, alternate between even and odd, not taking into account zpSpacer-Columns
if( firstWidgetName !== "Spacer" ){
if( evenodd === "even" ){
evenodd = "odd";
}
else{
evenodd = "even";
}
var additionalColumnClass = " " + evenodd;
}
else{
var additionalColumnClass = "";
}
// if a spacer-widget is alone in a column, we set a class .zpSpacer, so we can set the width of spacer-widgets responsively in zpgrid.less accordingly
if ( firstWidgetName == "Spacer" && column.articles.count < 2 ){
additionalColumnClass += " zpSpacer";
}
else if ( firstWidgetName == "Navigationsmenü" ){
additionalColumnClass += " zpnavmenu";
}
// TODO move adding of missing classes to converter and remove next 4 lines
var columnCssClass = column.cssClass;
if ( !column.cssClass || !column.cssClass.match(/\bc[1-9][0-2]?\b/) ){
columnCssClass = "c" + String(Math.round(12 / columns.count - 0.1)) ;
}
if ( column.value("clearLeft") ){
context.write("\n\t\t\t\t\t\t\n\t\t\t\t\t\t");
}
context.write("\n\t\t\t\t\t\t
\n\t\t\t\t\t\t>\n\t\t\t\n\t\t\t\t\t\t\t");
for ( var iart = 0; iart < articles.count; ++iart ){
var a = articles.item(iart);
context.write(a.render());
}
context.write("\n\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\n\t\t\t\t\t\t");
}
// insert zp-ad-box in last row of last container on impressum pages
if ( system.isFreeware && areaName.toLowerCase() == "standard" && page.isSpecialPage("legal") && icon == containers.count-1 && ipar == paragraphs.count-1 ){
context.write("\n\t\t\t\t\t\t\t
\n\t\t\t\t\t>\n\t\t\n\t\t\t\t\t");
var evenodd = "even";
for ( var icol = 0; icol < columns.count; ++icol ){
var column = columns.item(icol);
var articles = column.articles;
var coid = column.id;
var output = "";
var isStyled = false;
var selectorPrefix = "#container_" + cid + " ";
if ( column.value("bgcolor", "") !== "" && column.value("bgcolor", "") !== "transparent" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "background-color: " + column.value("bgcolor") + ";";
output += "padding-top: 15px;";
output += "padding-bottom: 15px;";
output += "}\n";
isStyled = true;
}
if ( column.value("fontcolor", "") !== "" && column.value("fontcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector;
output += ", " + cssSelector + " p";
output += ", " + cssSelector + " h1";
output += ", " + cssSelector + " h2";
output += ", " + cssSelector + " h3{";
output += "color: " + column.value("fontcolor") + ";";
output += "}\n";
}
if ( column.value("linkcolor", "") !== "" && column.value("linkcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += "\n\n" + cssSelector + " a:not(.button)";
output += ", " + cssSelector + " a:not(.button):hover{";
output += "color: " + column.value("linkcolor") + ";";
output += "}\n";
}
if ( column.value("align-self", "") !== "" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "align-self: " + column.value("align-self") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
var clearCss = column.value("clearLeft") ? "clear: left;" : "";
if ( column.articles.count > 0 ){
var firstWidgetName = articles.item(0).widgetName;
}
else{
var firstWidgetName = "";
}
// used in a className, alternate between even and odd, not taking into account zpSpacer-Columns
if( firstWidgetName !== "Spacer" ){
if( evenodd === "even" ){
evenodd = "odd";
}
else{
evenodd = "even";
}
var additionalColumnClass = " " + evenodd;
}
else{
var additionalColumnClass = "";
}
// if a spacer-widget is alone in a column, we set a class .zpSpacer, so we can set the width of spacer-widgets responsively in zpgrid.less accordingly
if ( firstWidgetName == "Spacer" && column.articles.count < 2 ){
additionalColumnClass += " zpSpacer";
}
else if ( firstWidgetName == "Navigationsmenü" ){
additionalColumnClass += " zpnavmenu";
}
// TODO move adding of missing classes to converter and remove next 4 lines
var columnCssClass = column.cssClass;
if ( !column.cssClass || !column.cssClass.match(/\bc[1-9][0-2]?\b/) ){
columnCssClass = "c" + String(Math.round(12 / columns.count - 0.1)) ;
}
if ( column.value("clearLeft") ){
context.write("\n\t\t\t\t\t\t\n\t\t\t\t\t\t");
}
context.write("\n\t\t\t\t\t\t
\n\t\t\t\t\t\t>\n\t\t\t\n\t\t\t\t\t\t\t");
for ( var iart = 0; iart < articles.count; ++iart ){
var a = articles.item(iart);
context.write(a.render());
}
context.write("\n\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\n\t\t\t\t\t\t");
}
// insert zp-ad-box in last row of last container on impressum pages
if ( system.isFreeware && areaName.toLowerCase() == "standard" && page.isSpecialPage("legal") && icon == containers.count-1 && ipar == paragraphs.count-1 ){
context.write("\n\t\t\t\t\t\t\t
\r\n\r\n");
var nextText = system.htmlEncode(page.attribute("header_next_text")) || "weiter";
var prevText = system.htmlEncode(page.attribute("header_prev_text")) || "zurück";
var inlineEditingInitDelay = 50;
var useSmoothHeight = "true" === "false" ? "false" : "true";
if ( useSmoothHeight === "true" ){
inlineEditingInitDelay = 1000;
}
context.write("\r\n\r\n");
if ( numHeaders > 0 ) {
context.write("\r\n\t\r\n");
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\widgets\singleheader\standard.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570526516652().executeScript();
2020-07-14 20:57:32,675 [19] INFO - ---------
2020-07-14 20:57:32,675 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1551.
2020-07-14 20:57:32,676 [19] INFO - ---------
2020-07-14 20:57:32,677 [19] INFO - Finished executing the following script:
2020-07-14 20:57:32,677 [19] INFO - ---------
2020-07-14 20:57:32,678 [19] INFO - function SE637303570526486650() {}
SE637303570526486650.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\header.html'.
var areaName = "Header";
var headers = page.articlesInArea(areaName);
var headerShown = false;
for ( var ihead = 0; ihead < headers.count; ++ihead ){
// in a header-area, we only render the first active container/row/article
if ( headerShown && ihead > 0 ){
break;
}
context.write(headers.item(ihead).render());
headerShown = true;
}
context.write("\r\n\r\n\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\header.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570526486650().executeScript();
2020-07-14 20:57:32,678 [19] INFO - ---------
2020-07-14 20:57:32,678 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1552.
2020-07-14 20:57:32,679 [19] INFO - ---------
2020-07-14 20:57:32,680 [19] INFO - About to execute the following script:
2020-07-14 20:57:32,680 [19] INFO - ---------
2020-07-14 20:57:32,680 [19] INFO - function SE637303570526806668() {}
SE637303570526806668.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\hauptmenu.html'.
var pageId = context.param(0, 0);
var level = context.param(1, 1);
var p = project.getPage(pageId);
var childPages = isNull(p) ? page.projectFolder.pages : p.pages;
if ( childPages.count<=0 || (!isNull(p) && !hasVisibleChildPages(p.id)) ) { return; }
if ( !isNull(p) && p.level!=1 ) { return; }
context.write("\r\n
\r\n\r\n\r\n ");
for ( var i = 0; i < childPages.count; ++i ) {
var p = childPages.item(i);
if ( p.visible && p.active ) {
context.write("\r\n\r\n ");
if ( p.id==page.id || hasActiveChildPage(p.id) ) {
context.write("\r\n ");
context.write( system.partial("item-hauptmenu-aktiv.html", p.id, 1) );
context.write("\r\n ");
} else {
context.write("\r\n ");
context.write( system.partial("item-hauptmenu.html", p.id, 1) );
context.write("\r\n ");
}
context.write("\r\n\r\n ");
}
}
context.write("\r\n\r\n
\r\n\r\n ");
function hasActiveChildPage(pageId) {
var p = project.getPage(pageId);
var childPages = p.pages;
for ( var i = 0; i < childPages.count; ++i ) {
var childPage = childPages.item(i);
if ( childPage.id === page.id || hasActiveChildPage(childPage.id) ) {
return true;
}
}
return false;
}
function hasVisibleChildPages(pageId) {
var p = project.getPage(pageId);
if ( !isNull(p) ) {
var cps = p.pages;
for ( var i = 0; i < cps.count; ++i ) {
var cp = cps.item(i);
if ( cp.visible && cp.active ) {
return true;
}
}
}
return false;
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\hauptmenu.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570526806668().executeScript();
2020-07-14 20:57:32,681 [19] INFO - ---------
2020-07-14 20:57:32,688 [19] INFO - About to execute the following script:
2020-07-14 20:57:32,688 [19] INFO - ---------
2020-07-14 20:57:32,689 [19] INFO - function SE637303570526886673() {}
SE637303570526886673.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-hauptmenu.html'.
var pageId = context.param(0, 0);
var p = project.getPage(pageId);
context.write("\r\n\r\n
\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-hauptmenu.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570527296696().executeScript();
2020-07-14 20:57:32,732 [19] INFO - ---------
2020-07-14 20:57:32,733 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1559.
2020-07-14 20:57:32,733 [19] INFO - ---------
2020-07-14 20:57:32,734 [19] INFO - Finished executing the following script:
2020-07-14 20:57:32,734 [19] INFO - ---------
2020-07-14 20:57:32,734 [19] INFO - function SE637303570526806668() {}
SE637303570526806668.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\hauptmenu.html'.
var pageId = context.param(0, 0);
var level = context.param(1, 1);
var p = project.getPage(pageId);
var childPages = isNull(p) ? page.projectFolder.pages : p.pages;
if ( childPages.count<=0 || (!isNull(p) && !hasVisibleChildPages(p.id)) ) { return; }
if ( !isNull(p) && p.level!=1 ) { return; }
context.write("\r\n
\r\n\r\n\r\n ");
for ( var i = 0; i < childPages.count; ++i ) {
var p = childPages.item(i);
if ( p.visible && p.active ) {
context.write("\r\n\r\n ");
if ( p.id==page.id || hasActiveChildPage(p.id) ) {
context.write("\r\n ");
context.write( system.partial("item-hauptmenu-aktiv.html", p.id, 1) );
context.write("\r\n ");
} else {
context.write("\r\n ");
context.write( system.partial("item-hauptmenu.html", p.id, 1) );
context.write("\r\n ");
}
context.write("\r\n\r\n ");
}
}
context.write("\r\n\r\n
\r\n\r\n ");
function hasActiveChildPage(pageId) {
var p = project.getPage(pageId);
var childPages = p.pages;
for ( var i = 0; i < childPages.count; ++i ) {
var childPage = childPages.item(i);
if ( childPage.id === page.id || hasActiveChildPage(childPage.id) ) {
return true;
}
}
return false;
}
function hasVisibleChildPages(pageId) {
var p = project.getPage(pageId);
if ( !isNull(p) ) {
var cps = p.pages;
for ( var i = 0; i < cps.count; ++i ) {
var cp = cps.item(i);
if ( cp.visible && cp.active ) {
return true;
}
}
}
return false;
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\hauptmenu.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570526806668().executeScript();
2020-07-14 20:57:32,735 [19] INFO - ---------
2020-07-14 20:57:32,735 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1560.
2020-07-14 20:57:32,736 [19] INFO - ---------
2020-07-14 20:57:32,736 [19] INFO - About to execute the following script:
2020-07-14 20:57:32,737 [19] INFO - ---------
2020-07-14 20:57:32,737 [19] INFO - function SE637303570527366700() {}
SE637303570527366700.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\inline-editing-breadcrumb.html'.
context.write(" \r\n\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\inline-editing-breadcrumb.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570527366700().executeScript();
2020-07-14 20:57:32,738 [19] INFO - ---------
2020-07-14 20:57:32,739 [19] INFO - Finished executing the following script:
2020-07-14 20:57:32,740 [19] INFO - ---------
2020-07-14 20:57:32,740 [19] INFO - function SE637303570527366700() {}
SE637303570527366700.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\inline-editing-breadcrumb.html'.
context.write(" \r\n\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\inline-editing-breadcrumb.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570527366700().executeScript();
2020-07-14 20:57:32,740 [19] INFO - ---------
2020-07-14 20:57:32,740 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1561.
2020-07-14 20:57:32,741 [19] INFO - ---------
2020-07-14 20:57:32,742 [19] INFO - About to execute the following script:
2020-07-14 20:57:32,742 [19] INFO - ---------
2020-07-14 20:57:32,742 [19] INFO - function SE637303570527426704() {}
SE637303570527426704.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\breadcrumbs.html'.
var breadcrumb = context.param(0, "");
var breadcrumb_separator = context.param(1, "");
var pageId = page.id;
var parentPage = page;
var pagesArray = [];
var startpage = projectFolder.startPage;
// walk the page-tree upwards and store ids of pages which are visible in navigation
while ( pageId !== 0 ){
if ( parentPage.type=="projectFolder" ){
break; // A project folder is currently always the top element in the page hierarchy chain, so it is safe to break here since no further pages can exist
}
else if ( parentPage.visible || parentPage.id == page.id ){
// add the current page (ignoring visibility) and all visible paren pages to the pagesArray
pagesArray.unshift(parentPage.id);
}
var p = project.getPage(pageId);
pageId = p.parentPageId;
parentPage = project.getPage(pageId);
}
if ( pagesArray.length > 0 ){
context.write("\r\n\t");
context.write( breadcrumb );
context.write("\r\n\t\r\n\t");
}
// if startPage isn't the displayed page already and is visible,
// prefix the breadcrumbs with a link to it
if ( startpage && startpage.visible && page.id !== startpage.id ){
context.write("\r\n\t
\r\n\t\t");
}
}
if ( pagesArray.length > 0 ){
context.write("");
}
context.write("\r\n\t\t\t\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\breadcrumbs.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570527426704().executeScript();
2020-07-14 20:57:32,743 [19] INFO - ---------
2020-07-14 20:57:32,747 [19] INFO - Finished executing the following script:
2020-07-14 20:57:32,747 [19] INFO - ---------
2020-07-14 20:57:32,748 [19] INFO - function SE637303570527426704() {}
SE637303570527426704.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\breadcrumbs.html'.
var breadcrumb = context.param(0, "");
var breadcrumb_separator = context.param(1, "");
var pageId = page.id;
var parentPage = page;
var pagesArray = [];
var startpage = projectFolder.startPage;
// walk the page-tree upwards and store ids of pages which are visible in navigation
while ( pageId !== 0 ){
if ( parentPage.type=="projectFolder" ){
break; // A project folder is currently always the top element in the page hierarchy chain, so it is safe to break here since no further pages can exist
}
else if ( parentPage.visible || parentPage.id == page.id ){
// add the current page (ignoring visibility) and all visible paren pages to the pagesArray
pagesArray.unshift(parentPage.id);
}
var p = project.getPage(pageId);
pageId = p.parentPageId;
parentPage = project.getPage(pageId);
}
if ( pagesArray.length > 0 ){
context.write("\r\n\t");
context.write( breadcrumb );
context.write("\r\n\t\r\n\t");
}
// if startPage isn't the displayed page already and is visible,
// prefix the breadcrumbs with a link to it
if ( startpage && startpage.visible && page.id !== startpage.id ){
context.write("\r\n\t
\r\n\t\t");
}
}
if ( pagesArray.length > 0 ){
context.write("");
}
context.write("\r\n\t\t\t\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\breadcrumbs.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570527426704().executeScript();
2020-07-14 20:57:32,748 [19] INFO - ---------
2020-07-14 20:57:32,748 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1562.
2020-07-14 20:57:32,749 [19] INFO - ---------
2020-07-14 20:57:32,751 [19] INFO - About to execute the following script:
2020-07-14 20:57:32,751 [19] INFO - ---------
2020-07-14 20:57:32,751 [19] INFO - function SE637303570527506708() {}
SE637303570527506708.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\area.html'.
var areaName = context.param(0, "Standard");
var areaNameLc = areaName.toLowerCase();
var maxColumns = context.param(1, "0");
var cssRowClass = context.param(2, "");
var displayNumColumns = context.param(3, "12"); // number of columns to display. We always calculate with 12, but can display less
var cssAreaClass = context.param(4, "");
var noBreakoutWithNews = context.param(5, true);
var hideIeForArea = context.param(6, false);
var canContainer = project.canContainer;
var showEmptyArticleAreas = (system.preview && system.showEmptyPreviewAreas);
var hasNews = page.hasArea("News") && (page.anyAreaArticles("News") || showEmptyArticleAreas);
var hasNonSymlinkContainer = false;
var lastContainerIsSymlink = false;
if ( maxColumns == "1" ){
if ( cssRowClass == "" || cssRowClass == "noresize" ){
cssRowClass = "noresize";
}
else{
cssRowClass += " noresize";
}
}
var intPreviewData = '';
if ( system.preview ){
// if internal preview, we add some additional data-attributes to the area
// for access in JS (non internal scripting)
intPreviewData += ' data-showemptyarticleareas="' + showEmptyArticleAreas + '"';
}
context.write("\n\n
\n\t");
var containers = page.containers(areaName);
var firstC = 0;
var lastC = containers.count-1;
//system.log("last: " + lastC + " of " + containers.count);
if ( lastC > firstC && !containers.item(lastC).hasArticles ){
// last container has no articles and is not rendered, so find last visible one
for ( var ilcon = lastC; ilcon > 1; --ilcon ){
var lastContainer = containers.item(ilcon);
if ( lastContainer.hasArticles ){
lastC = ilcon;
break;
}
}
}
for ( var icon = 0; icon < containers.count; ++icon ){
var container = containers.item(icon);
// if current container doesn't contain any articles, we skip this loop
// we do not skip when on impressum page and the container ist the last one, as we need to insert freeware content
if ( !container.hasArticles && !(icon == containers.count-1 && page.isSpecialPage("legal")) ){
firstC++;
continue;
}
// append container styles to head via css
var cid = container.id;
var output = "";
var isSection = container.value("issection") == "1";
var isStyled = false;
if ( container.value("fontcolor", "") !== "" && container.value("fontcolor") !== "transparent" ){
var cssSelector = "#container_" + cid;
output = cssSelector;
output += ", " + cssSelector + " p";
output += ", " + cssSelector + " h1";
output += ", " + cssSelector + " h2";
output += ", " + cssSelector + " h3{";
output += "color: " + container.value("fontcolor") + ";";
output += "}\n";
}
if ( container.value("linkcolor", "") !== "" && container.value("linkcolor") !== "transparent" ){
var cssSelector = "#container_" + cid;
output += "\n\n" + cssSelector + " a:not(.button):not(.fancybox):not(.zpSO-Uplink-Flat):not(.zpnolayoutlinkstyles)";
output += ", " + cssSelector + " a:not(.button):not(.fancybox):not(.zpSO-Uplink-Flat):not(.zpnolayoutlinkstyles):hover{";
output += "color: " + container.value("linkcolor") + ";";
output += "}\n";
}
if ( container.value("margin", "") !== "" ){
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
if ( container.value("margin-top") ){
output += "margin-top: " + container.value("margin-top") + " !important;";
}
if ( container.value("margin-bottom") ){
output += "margin-bottom: " + container.value("margin-bottom") + " !important;" ;
}
output += "}\n";
}
if ( container.value("padding", "") !== "" ){
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
if ( container.value("padding-top") ){
output += "padding-top: " + container.value("padding-top") + " !important;";
}
if ( container.value("padding-bottom") ){
output += "padding-bottom: " + container.value("padding-bottom") + " !important;";
}
if ( container.value("padding-left") ){
output += "padding-left: " + container.value("padding-left") + " !important;";
}
if ( container.value("padding-right") ){
output += "padding-right: " + container.value("padding-right") + " !important;";
}
output += "}\n";
}
if ( container.value("bgcolor", "") !== "" && container.value("bgcolor", "") !== "transparent" ){
isStyled = true;
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
output += "background-color: " + container.value("bgcolor") + " !important;";
output += "}\n";
}
var image = container.cssBackgroundImage("bgimage");
if ( image.imageUrl ){
isStyled = true;
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
output += "background-image: url(" + image.imageUrl + ") !important;";
output += "background-repeat: " + image.repeat + " !important;";
output += "background-size: " + image.size + " !important;";
output += "background-position: " + (image.position !== "" ? image.position : "center center") + " !important;";
output += "background-attachment: " + (image.attachment !== "" ? image.attachment : "scroll") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
var containerstyle = container.inlineCss || "";
containerstyle = containerstyle.toString().replace(/^\s+|\s+$/gm,''); // trim()
// make sure the users inlineCss properly ends with a semicolon as we attach more styles later below
if ( containerstyle && containerstyle.slice(-1) !== ";" ){
containerstyle += ";";
}
var initialContainerstyle = containerstyle;
containerstyle = containerstyle.replace(/^\s+|\s+$/gm,''); // trim()
if ( containerstyle ){
containerstyle = ' style="' + containerstyle + '"';
}
if ( noBreakoutWithNews && system.preview && container.value("breakout") == "1" && hasNews ){
system.warn("Die 'Randlos-Option' für einen Container kann nicht berücksichtigt werden, weil der 'Einfügen-Schalter' auf an steht oder die Seite auch Artikel im News-Bereich enthält.");
}
var containerTag = "div";
if ( isSection ){
containerTag = "section";
}
var containerIsSymlink = container.symlink ? true : false;
if ( !containerIsSymlink ){
hasNonSymlinkContainer = true;
}
else if ( icon == containers.count-1 ){
lastContainerIsSymlink = true;
}
context.write("\n\t\t\t<");
context.write( containerTag );
context.write(" id=\"container_");
context.write( container.id );
context.write("\" class=\"zpContainer");
if (icon==firstC){
context.write(" first");
}
if (icon==lastC){
context.write(" last");
}
if( container.value("animate", "") !== "" && container.value("animate") !== "off" ){
context.write(" zpanimate ");
context.write( container.value("animate"));
}
if( isStyled ){
context.write(" styled");
}
context.write(" ");
if ( container.value("breakout") == "1" ){
context.write("zpBreakout ");
}
if( noBreakoutWithNews && hasNews ) {
context.write(" hasNews");
}
context.write(" ");
context.write( container.cssClass );
context.write("\"");
context.write( containerstyle );
context.write(" \n\t\t\t\t data-zpeleel=\"container\" data-zpleid=\"");
context.write( container.id );
context.write("\">\n\t\t\t");
var paragraphs = container.paragraphs;
for ( var ipar = 0; ipar < paragraphs.count; ++ipar ){
var additionalRowClass = "";
var paragraph = paragraphs.item(ipar);
var columns = paragraph.columns;
// if current paragraph doesn't contain articles, we skip the loop, so we don't print empty paragraphs
// we do not skip when on impressum page and the container ist the last one, as we need to insert freeware content
var articleCount = paragraph.articles.count;
if ( articleCount < 1 && !(icon == containers.count-1 && page.isSpecialPage("legal")) ){
continue;
}
else if ( articleCount > 0 ){
// set special rowClass for Articles which are not visible, so we can remove any margins which might not be desired
var firstWidgetName = paragraph.articles.item(0).widgetName;
switch(firstWidgetName) {
case "Info-Banner":
additionalRowClass = " alertbanner";
break;
case "Quelltext":
additionalRowClass = " quelltext";
break;
case "Slider":
additionalRowClass = " zpwSlider";
break;
case "Carousel":
additionalRowClass = " zpwCarousel";
break;
case "Navigationsmenü":
if ( paragraph.articles.item(0).value("menufixed") ){
additionalRowClass = " zpwNavmenu zpwNavmenuFixed";
}
else{
additionalRowClass = " zpwNavmenu";
}
break;
case "Navigationsmenü manuell":
if ( paragraph.articles.item(0).value("menufixed") ){
additionalRowClass = " zpwNavmenu zpwNavmenuFixed";
}
else{
additionalRowClass = " zpwNavmenu";
}
break;
case "Video-Hintergrund":
additionalRowClass = " zpvideobg";
break;
}
// append row styles to head via css
var rid = paragraph.id;
var output = "";
if ( paragraph.value("margin", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
if ( paragraph.value("margin-top") ){
output += "margin-top: " + paragraph.value("margin-top", "initial") + " !important;";
}
if ( paragraph.value("margin-bottom") ){
output += "margin-bottom: " + paragraph.value("margin-bottom", "initial") + " !important;" ;
}
output += "}\n";
}
if ( paragraph.value("padding", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
if ( paragraph.value("padding-top") ){
output += "padding-top: " + paragraph.value("padding-top") + " !important;";
}
if ( paragraph.value("padding-bottom") ){
output += "padding-bottom: " + paragraph.value("padding-bottom") + " !important;";
}
if ( paragraph.value("padding-left") ){
output += "padding-left: " + paragraph.value("padding-left") + " !important;";
}
if ( paragraph.value("padding-right") ){
output += "padding-right: " + paragraph.value("padding-right") + " !important;";
}
output += "}\n";
}
if ( paragraph.value("bgcolor", "") !== "" && paragraph.value("bgcolor", "") !== "transparent" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "background-color: " + paragraph.value("bgcolor") + " !important;";
output += "}\n";
}
var pimage = paragraph.cssBackgroundImage("bgimage");
if ( pimage.imageUrl ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "background-image: url(" + pimage.imageUrl + ") !important;";
output += "background-repeat: " + pimage.repeat + " !important;";
output += "background-size: " + pimage.size + " !important;";
output += "background-position: " + (pimage.position !== "" ? pimage.position : "center center") + " !important;";
output += "background-attachment: " + (pimage.attachment !== "" ? pimage.attachment : "scroll") + ";";
output += "}\n";
}
if ( paragraph.value("justifycontent", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "justify-content: " + paragraph.value("justifycontent") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
// paragraph styles
var rowstyle = paragraph.inlineCss || "";
rowstyle = rowstyle.toString().replace(/^\s+|\s+$/gm,''); // trim();
// make sure the users inlineCss properly ends with a semicolon as we attach more styles later below
if ( rowstyle && rowstyle.slice(-1) !== ";" ){
rowstyle += ";";
}
context.write("\n\t\t\n\t\t\t\t\t");
if ( paragraph.value("breakout") == "1" ){
context.write("\n\t\t\t\t\t\t
\n\t\t\t\t\t>\n\t\t\n\t\t\t\t\t");
var evenodd = "even";
for ( var icol = 0; icol < columns.count; ++icol ){
var column = columns.item(icol);
var articles = column.articles;
var coid = column.id;
var output = "";
var isStyled = false;
var selectorPrefix = "#container_" + cid + " ";
if ( column.value("bgcolor", "") !== "" && column.value("bgcolor", "") !== "transparent" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "background-color: " + column.value("bgcolor") + ";";
output += "padding-top: 15px;";
output += "padding-bottom: 15px;";
output += "}\n";
isStyled = true;
}
if ( column.value("fontcolor", "") !== "" && column.value("fontcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector;
output += ", " + cssSelector + " p";
output += ", " + cssSelector + " h1";
output += ", " + cssSelector + " h2";
output += ", " + cssSelector + " h3{";
output += "color: " + column.value("fontcolor") + ";";
output += "}\n";
}
if ( column.value("linkcolor", "") !== "" && column.value("linkcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += "\n\n" + cssSelector + " a:not(.button)";
output += ", " + cssSelector + " a:not(.button):hover{";
output += "color: " + column.value("linkcolor") + ";";
output += "}\n";
}
if ( column.value("align-self", "") !== "" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "align-self: " + column.value("align-self") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
var clearCss = column.value("clearLeft") ? "clear: left;" : "";
if ( column.articles.count > 0 ){
var firstWidgetName = articles.item(0).widgetName;
}
else{
var firstWidgetName = "";
}
// used in a className, alternate between even and odd, not taking into account zpSpacer-Columns
if( firstWidgetName !== "Spacer" ){
if( evenodd === "even" ){
evenodd = "odd";
}
else{
evenodd = "even";
}
var additionalColumnClass = " " + evenodd;
}
else{
var additionalColumnClass = "";
}
// if a spacer-widget is alone in a column, we set a class .zpSpacer, so we can set the width of spacer-widgets responsively in zpgrid.less accordingly
if ( firstWidgetName == "Spacer" && column.articles.count < 2 ){
additionalColumnClass += " zpSpacer";
}
else if ( firstWidgetName == "Navigationsmenü" ){
additionalColumnClass += " zpnavmenu";
}
// TODO move adding of missing classes to converter and remove next 4 lines
var columnCssClass = column.cssClass;
if ( !column.cssClass || !column.cssClass.match(/\bc[1-9][0-2]?\b/) ){
columnCssClass = "c" + String(Math.round(12 / columns.count - 0.1)) ;
}
if ( column.value("clearLeft") ){
context.write("\n\t\t\t\t\t\t\n\t\t\t\t\t\t");
}
context.write("\n\t\t\t\t\t\t
\n\t\t\t\t\t\t>\n\t\t\t\n\t\t\t\t\t\t\t");
for ( var iart = 0; iart < articles.count; ++iart ){
var a = articles.item(iart);
context.write(a.render());
}
context.write("\n\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\n\t\t\t\t\t\t");
}
// insert zp-ad-box in last row of last container on impressum pages
if ( system.isFreeware && areaName.toLowerCase() == "standard" && page.isSpecialPage("legal") && icon == containers.count-1 && ipar == paragraphs.count-1 ){
context.write("\n\t\t\t\t\t\t\t
\n\t\t\t\t\t>\n\t\t\n\t\t\t\t\t");
var evenodd = "even";
for ( var icol = 0; icol < columns.count; ++icol ){
var column = columns.item(icol);
var articles = column.articles;
var coid = column.id;
var output = "";
var isStyled = false;
var selectorPrefix = "#container_" + cid + " ";
if ( column.value("bgcolor", "") !== "" && column.value("bgcolor", "") !== "transparent" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "background-color: " + column.value("bgcolor") + ";";
output += "padding-top: 15px;";
output += "padding-bottom: 15px;";
output += "}\n";
isStyled = true;
}
if ( column.value("fontcolor", "") !== "" && column.value("fontcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector;
output += ", " + cssSelector + " p";
output += ", " + cssSelector + " h1";
output += ", " + cssSelector + " h2";
output += ", " + cssSelector + " h3{";
output += "color: " + column.value("fontcolor") + ";";
output += "}\n";
}
if ( column.value("linkcolor", "") !== "" && column.value("linkcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += "\n\n" + cssSelector + " a:not(.button)";
output += ", " + cssSelector + " a:not(.button):hover{";
output += "color: " + column.value("linkcolor") + ";";
output += "}\n";
}
if ( column.value("align-self", "") !== "" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "align-self: " + column.value("align-self") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
var clearCss = column.value("clearLeft") ? "clear: left;" : "";
if ( column.articles.count > 0 ){
var firstWidgetName = articles.item(0).widgetName;
}
else{
var firstWidgetName = "";
}
// used in a className, alternate between even and odd, not taking into account zpSpacer-Columns
if( firstWidgetName !== "Spacer" ){
if( evenodd === "even" ){
evenodd = "odd";
}
else{
evenodd = "even";
}
var additionalColumnClass = " " + evenodd;
}
else{
var additionalColumnClass = "";
}
// if a spacer-widget is alone in a column, we set a class .zpSpacer, so we can set the width of spacer-widgets responsively in zpgrid.less accordingly
if ( firstWidgetName == "Spacer" && column.articles.count < 2 ){
additionalColumnClass += " zpSpacer";
}
else if ( firstWidgetName == "Navigationsmenü" ){
additionalColumnClass += " zpnavmenu";
}
// TODO move adding of missing classes to converter and remove next 4 lines
var columnCssClass = column.cssClass;
if ( !column.cssClass || !column.cssClass.match(/\bc[1-9][0-2]?\b/) ){
columnCssClass = "c" + String(Math.round(12 / columns.count - 0.1)) ;
}
if ( column.value("clearLeft") ){
context.write("\n\t\t\t\t\t\t\n\t\t\t\t\t\t");
}
context.write("\n\t\t\t\t\t\t
\n\t\t\t\t\t\t>\n\t\t\t\n\t\t\t\t\t\t\t");
for ( var iart = 0; iart < articles.count; ++iart ){
var a = articles.item(iart);
context.write(a.render());
}
context.write("\n\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\n\t\t\t\t\t\t");
}
// insert zp-ad-box in last row of last container on impressum pages
if ( system.isFreeware && areaName.toLowerCase() == "standard" && page.isSpecialPage("legal") && icon == containers.count-1 && ipar == paragraphs.count-1 ){
context.write("\n\t\t\t\t\t\t\t
\n\n");
// insert overlay on startpage
if ( !system.preview && system.isFreeware && areaName.toLowerCase() == "standard" && projectFolder.startPage && projectFolder.startPage.id == page.id ){
context.write("\n\t\t");
context.write( system.partial("zpinfooverlay.html") );
context.write("\n\t\t");
}
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\area.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570527506708().executeScript();
2020-07-14 20:57:32,892 [19] INFO - ---------
2020-07-14 20:57:32,892 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1577.
2020-07-14 20:57:32,893 [19] INFO - ---------
2020-07-14 20:57:32,894 [19] INFO - About to execute the following script:
2020-07-14 20:57:32,894 [19] INFO - ---------
2020-07-14 20:57:32,894 [19] INFO - function SE637303570528946791() {}
SE637303570528946791.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu-layout.html'.
var pageId = context.param(0, 0);
var level = context.param(1, 1);
var p = project.getPage(pageId);
var childPages = isNull(p) ? page.projectFolder.pages : p.pages;
if ( childPages.count<=0 || (!isNull(p) && !hasVisibleChildPages(p.id)) ) { return; }
if ( !isNull(p) && p.level!=2 ) { return; }
context.write("\r\n\r\n\r\n\t");
for ( var i = 0; i < childPages.count; ++i ) {
var p = childPages.item(i);
if ( p.visible && p.active ) {
context.write("\r\n\r\n\t\t\t");
if ( p.id==page.id || hasActiveChildPage(p.id) ) {
context.write("\r\n\t\t\t ");
context.write( system.partial("submenu1.html", p.id, 2) );
context.write("\r\n\t\t\t");
}
context.write("\r\n\r\n\t");
}
}
context.write("\r\n\r\n\r\n ");
function hasActiveChildPage(pageId) {
var p = project.getPage(pageId);
var childPages = p.pages;
for ( var i = 0; i < childPages.count; ++i ) {
var childPage = childPages.item(i);
if ( childPage.id === page.id || hasActiveChildPage(childPage.id) ) {
return true;
}
}
return false;
}
function hasVisibleChildPages(pageId) {
var p = project.getPage(pageId);
if ( !isNull(p) ) {
var cps = p.pages;
for ( var i = 0; i < cps.count; ++i ) {
var cp = cps.item(i);
if ( cp.visible && cp.active ) {
return true;
}
}
}
return false;
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu-layout.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570528946791().executeScript();
2020-07-14 20:57:32,895 [19] INFO - ---------
2020-07-14 20:57:32,908 [19] INFO - About to execute the following script:
2020-07-14 20:57:32,908 [19] INFO - ---------
2020-07-14 20:57:32,908 [19] INFO - function SE637303570529086799() {}
SE637303570529086799.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu1.html'.
var pageId = context.param(0, 0);
var level = context.param(1, 1);
var p = project.getPage(pageId);
var childPages = isNull(p) ? page.projectFolder.pages : p.pages;
if ( childPages.count<=0 || (!isNull(p) && !hasVisibleChildPages(p.id)) ) { return; }
if ( !isNull(p) && p.level!=1 ) { return; }
context.write("\r\n
\r\n\t
\r\n\r\n\r\n ");
for ( var i = 0; i < childPages.count; ++i ) {
var p = childPages.item(i);
if ( p.visible && p.active ) {
context.write("\r\n\r\n ");
if ( p.id==page.id || hasActiveChildPage(p.id) ) {
context.write("\r\n ");
context.write( system.partial("item-submenu1-aktiv.html", p.id, 2) );
context.write("\r\n ");
} else {
context.write("\r\n ");
context.write( system.partial("item-submenu1.html", p.id, 2) );
context.write("\r\n ");
}
context.write("\r\n\r\n ");
}
}
context.write("\r\n\r\n\t
\r\n
\r\n\r\n ");
function hasActiveChildPage(pageId) {
var p = project.getPage(pageId);
var childPages = p.pages;
for ( var i = 0; i < childPages.count; ++i ) {
var childPage = childPages.item(i);
if ( childPage.id === page.id || hasActiveChildPage(childPage.id) ) {
return true;
}
}
return false;
}
function hasVisibleChildPages(pageId) {
var p = project.getPage(pageId);
if ( !isNull(p) ) {
var cps = p.pages;
for ( var i = 0; i < cps.count; ++i ) {
var cp = cps.item(i);
if ( cp.visible && cp.active ) {
return true;
}
}
}
return false;
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu1.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570529086799().executeScript();
2020-07-14 20:57:32,909 [19] INFO - ---------
2020-07-14 20:57:32,913 [19] INFO - About to execute the following script:
2020-07-14 20:57:32,913 [19] INFO - ---------
2020-07-14 20:57:32,914 [19] INFO - function SE637303570529136802() {}
SE637303570529136802.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-submenu1.html'.
var pageId = context.param(0, 0);
var p = project.getPage(pageId);
context.write("\r\n\r\n\t
\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-submenu1.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570529646831().executeScript();
2020-07-14 20:57:32,968 [19] INFO - ---------
2020-07-14 20:57:32,968 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1586.
2020-07-14 20:57:32,969 [19] INFO - ---------
2020-07-14 20:57:32,969 [19] INFO - Finished executing the following script:
2020-07-14 20:57:32,970 [19] INFO - ---------
2020-07-14 20:57:32,970 [19] INFO - function SE637303570529086799() {}
SE637303570529086799.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu1.html'.
var pageId = context.param(0, 0);
var level = context.param(1, 1);
var p = project.getPage(pageId);
var childPages = isNull(p) ? page.projectFolder.pages : p.pages;
if ( childPages.count<=0 || (!isNull(p) && !hasVisibleChildPages(p.id)) ) { return; }
if ( !isNull(p) && p.level!=1 ) { return; }
context.write("\r\n
\r\n\t
\r\n\r\n\r\n ");
for ( var i = 0; i < childPages.count; ++i ) {
var p = childPages.item(i);
if ( p.visible && p.active ) {
context.write("\r\n\r\n ");
if ( p.id==page.id || hasActiveChildPage(p.id) ) {
context.write("\r\n ");
context.write( system.partial("item-submenu1-aktiv.html", p.id, 2) );
context.write("\r\n ");
} else {
context.write("\r\n ");
context.write( system.partial("item-submenu1.html", p.id, 2) );
context.write("\r\n ");
}
context.write("\r\n\r\n ");
}
}
context.write("\r\n\r\n\t
\r\n
\r\n\r\n ");
function hasActiveChildPage(pageId) {
var p = project.getPage(pageId);
var childPages = p.pages;
for ( var i = 0; i < childPages.count; ++i ) {
var childPage = childPages.item(i);
if ( childPage.id === page.id || hasActiveChildPage(childPage.id) ) {
return true;
}
}
return false;
}
function hasVisibleChildPages(pageId) {
var p = project.getPage(pageId);
if ( !isNull(p) ) {
var cps = p.pages;
for ( var i = 0; i < cps.count; ++i ) {
var cp = cps.item(i);
if ( cp.visible && cp.active ) {
return true;
}
}
}
return false;
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu1.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570529086799().executeScript();
2020-07-14 20:57:32,970 [19] INFO - ---------
2020-07-14 20:57:32,971 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1587.
2020-07-14 20:57:32,971 [19] INFO - ---------
2020-07-14 20:57:32,976 [19] INFO - Finished executing the following script:
2020-07-14 20:57:32,977 [19] INFO - ---------
2020-07-14 20:57:32,977 [19] INFO - function SE637303570528946791() {}
SE637303570528946791.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu-layout.html'.
var pageId = context.param(0, 0);
var level = context.param(1, 1);
var p = project.getPage(pageId);
var childPages = isNull(p) ? page.projectFolder.pages : p.pages;
if ( childPages.count<=0 || (!isNull(p) && !hasVisibleChildPages(p.id)) ) { return; }
if ( !isNull(p) && p.level!=2 ) { return; }
context.write("\r\n\r\n\r\n\t");
for ( var i = 0; i < childPages.count; ++i ) {
var p = childPages.item(i);
if ( p.visible && p.active ) {
context.write("\r\n\r\n\t\t\t");
if ( p.id==page.id || hasActiveChildPage(p.id) ) {
context.write("\r\n\t\t\t ");
context.write( system.partial("submenu1.html", p.id, 2) );
context.write("\r\n\t\t\t");
}
context.write("\r\n\r\n\t");
}
}
context.write("\r\n\r\n\r\n ");
function hasActiveChildPage(pageId) {
var p = project.getPage(pageId);
var childPages = p.pages;
for ( var i = 0; i < childPages.count; ++i ) {
var childPage = childPages.item(i);
if ( childPage.id === page.id || hasActiveChildPage(childPage.id) ) {
return true;
}
}
return false;
}
function hasVisibleChildPages(pageId) {
var p = project.getPage(pageId);
if ( !isNull(p) ) {
var cps = p.pages;
for ( var i = 0; i < cps.count; ++i ) {
var cp = cps.item(i);
if ( cp.visible && cp.active ) {
return true;
}
}
}
return false;
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu-layout.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570528946791().executeScript();
2020-07-14 20:57:32,977 [19] INFO - ---------
2020-07-14 20:57:32,978 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1588.
2020-07-14 20:57:32,978 [19] INFO - ---------
2020-07-14 20:57:32,980 [19] INFO - About to execute the following script:
2020-07-14 20:57:32,980 [19] INFO - ---------
2020-07-14 20:57:32,980 [19] INFO - function SE637303570529796839() {}
SE637303570529796839.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\area.html'.
var areaName = context.param(0, "Standard");
var areaNameLc = areaName.toLowerCase();
var maxColumns = context.param(1, "0");
var cssRowClass = context.param(2, "");
var displayNumColumns = context.param(3, "12"); // number of columns to display. We always calculate with 12, but can display less
var cssAreaClass = context.param(4, "");
var noBreakoutWithNews = context.param(5, true);
var hideIeForArea = context.param(6, false);
var canContainer = project.canContainer;
var showEmptyArticleAreas = (system.preview && system.showEmptyPreviewAreas);
var hasNews = page.hasArea("News") && (page.anyAreaArticles("News") || showEmptyArticleAreas);
var hasNonSymlinkContainer = false;
var lastContainerIsSymlink = false;
if ( maxColumns == "1" ){
if ( cssRowClass == "" || cssRowClass == "noresize" ){
cssRowClass = "noresize";
}
else{
cssRowClass += " noresize";
}
}
var intPreviewData = '';
if ( system.preview ){
// if internal preview, we add some additional data-attributes to the area
// for access in JS (non internal scripting)
intPreviewData += ' data-showemptyarticleareas="' + showEmptyArticleAreas + '"';
}
context.write("\n\n
\n\t");
var containers = page.containers(areaName);
var firstC = 0;
var lastC = containers.count-1;
//system.log("last: " + lastC + " of " + containers.count);
if ( lastC > firstC && !containers.item(lastC).hasArticles ){
// last container has no articles and is not rendered, so find last visible one
for ( var ilcon = lastC; ilcon > 1; --ilcon ){
var lastContainer = containers.item(ilcon);
if ( lastContainer.hasArticles ){
lastC = ilcon;
break;
}
}
}
for ( var icon = 0; icon < containers.count; ++icon ){
var container = containers.item(icon);
// if current container doesn't contain any articles, we skip this loop
// we do not skip when on impressum page and the container ist the last one, as we need to insert freeware content
if ( !container.hasArticles && !(icon == containers.count-1 && page.isSpecialPage("legal")) ){
firstC++;
continue;
}
// append container styles to head via css
var cid = container.id;
var output = "";
var isSection = container.value("issection") == "1";
var isStyled = false;
if ( container.value("fontcolor", "") !== "" && container.value("fontcolor") !== "transparent" ){
var cssSelector = "#container_" + cid;
output = cssSelector;
output += ", " + cssSelector + " p";
output += ", " + cssSelector + " h1";
output += ", " + cssSelector + " h2";
output += ", " + cssSelector + " h3{";
output += "color: " + container.value("fontcolor") + ";";
output += "}\n";
}
if ( container.value("linkcolor", "") !== "" && container.value("linkcolor") !== "transparent" ){
var cssSelector = "#container_" + cid;
output += "\n\n" + cssSelector + " a:not(.button):not(.fancybox):not(.zpSO-Uplink-Flat):not(.zpnolayoutlinkstyles)";
output += ", " + cssSelector + " a:not(.button):not(.fancybox):not(.zpSO-Uplink-Flat):not(.zpnolayoutlinkstyles):hover{";
output += "color: " + container.value("linkcolor") + ";";
output += "}\n";
}
if ( container.value("margin", "") !== "" ){
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
if ( container.value("margin-top") ){
output += "margin-top: " + container.value("margin-top") + " !important;";
}
if ( container.value("margin-bottom") ){
output += "margin-bottom: " + container.value("margin-bottom") + " !important;" ;
}
output += "}\n";
}
if ( container.value("padding", "") !== "" ){
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
if ( container.value("padding-top") ){
output += "padding-top: " + container.value("padding-top") + " !important;";
}
if ( container.value("padding-bottom") ){
output += "padding-bottom: " + container.value("padding-bottom") + " !important;";
}
if ( container.value("padding-left") ){
output += "padding-left: " + container.value("padding-left") + " !important;";
}
if ( container.value("padding-right") ){
output += "padding-right: " + container.value("padding-right") + " !important;";
}
output += "}\n";
}
if ( container.value("bgcolor", "") !== "" && container.value("bgcolor", "") !== "transparent" ){
isStyled = true;
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
output += "background-color: " + container.value("bgcolor") + " !important;";
output += "}\n";
}
var image = container.cssBackgroundImage("bgimage");
if ( image.imageUrl ){
isStyled = true;
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
output += "background-image: url(" + image.imageUrl + ") !important;";
output += "background-repeat: " + image.repeat + " !important;";
output += "background-size: " + image.size + " !important;";
output += "background-position: " + (image.position !== "" ? image.position : "center center") + " !important;";
output += "background-attachment: " + (image.attachment !== "" ? image.attachment : "scroll") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
var containerstyle = container.inlineCss || "";
containerstyle = containerstyle.toString().replace(/^\s+|\s+$/gm,''); // trim()
// make sure the users inlineCss properly ends with a semicolon as we attach more styles later below
if ( containerstyle && containerstyle.slice(-1) !== ";" ){
containerstyle += ";";
}
var initialContainerstyle = containerstyle;
containerstyle = containerstyle.replace(/^\s+|\s+$/gm,''); // trim()
if ( containerstyle ){
containerstyle = ' style="' + containerstyle + '"';
}
if ( noBreakoutWithNews && system.preview && container.value("breakout") == "1" && hasNews ){
system.warn("Die 'Randlos-Option' für einen Container kann nicht berücksichtigt werden, weil der 'Einfügen-Schalter' auf an steht oder die Seite auch Artikel im News-Bereich enthält.");
}
var containerTag = "div";
if ( isSection ){
containerTag = "section";
}
var containerIsSymlink = container.symlink ? true : false;
if ( !containerIsSymlink ){
hasNonSymlinkContainer = true;
}
else if ( icon == containers.count-1 ){
lastContainerIsSymlink = true;
}
context.write("\n\t\t\t<");
context.write( containerTag );
context.write(" id=\"container_");
context.write( container.id );
context.write("\" class=\"zpContainer");
if (icon==firstC){
context.write(" first");
}
if (icon==lastC){
context.write(" last");
}
if( container.value("animate", "") !== "" && container.value("animate") !== "off" ){
context.write(" zpanimate ");
context.write( container.value("animate"));
}
if( isStyled ){
context.write(" styled");
}
context.write(" ");
if ( container.value("breakout") == "1" ){
context.write("zpBreakout ");
}
if( noBreakoutWithNews && hasNews ) {
context.write(" hasNews");
}
context.write(" ");
context.write( container.cssClass );
context.write("\"");
context.write( containerstyle );
context.write(" \n\t\t\t\t data-zpeleel=\"container\" data-zpleid=\"");
context.write( container.id );
context.write("\">\n\t\t\t");
var paragraphs = container.paragraphs;
for ( var ipar = 0; ipar < paragraphs.count; ++ipar ){
var additionalRowClass = "";
var paragraph = paragraphs.item(ipar);
var columns = paragraph.columns;
// if current paragraph doesn't contain articles, we skip the loop, so we don't print empty paragraphs
// we do not skip when on impressum page and the container ist the last one, as we need to insert freeware content
var articleCount = paragraph.articles.count;
if ( articleCount < 1 && !(icon == containers.count-1 && page.isSpecialPage("legal")) ){
continue;
}
else if ( articleCount > 0 ){
// set special rowClass for Articles which are not visible, so we can remove any margins which might not be desired
var firstWidgetName = paragraph.articles.item(0).widgetName;
switch(firstWidgetName) {
case "Info-Banner":
additionalRowClass = " alertbanner";
break;
case "Quelltext":
additionalRowClass = " quelltext";
break;
case "Slider":
additionalRowClass = " zpwSlider";
break;
case "Carousel":
additionalRowClass = " zpwCarousel";
break;
case "Navigationsmenü":
if ( paragraph.articles.item(0).value("menufixed") ){
additionalRowClass = " zpwNavmenu zpwNavmenuFixed";
}
else{
additionalRowClass = " zpwNavmenu";
}
break;
case "Navigationsmenü manuell":
if ( paragraph.articles.item(0).value("menufixed") ){
additionalRowClass = " zpwNavmenu zpwNavmenuFixed";
}
else{
additionalRowClass = " zpwNavmenu";
}
break;
case "Video-Hintergrund":
additionalRowClass = " zpvideobg";
break;
}
// append row styles to head via css
var rid = paragraph.id;
var output = "";
if ( paragraph.value("margin", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
if ( paragraph.value("margin-top") ){
output += "margin-top: " + paragraph.value("margin-top", "initial") + " !important;";
}
if ( paragraph.value("margin-bottom") ){
output += "margin-bottom: " + paragraph.value("margin-bottom", "initial") + " !important;" ;
}
output += "}\n";
}
if ( paragraph.value("padding", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
if ( paragraph.value("padding-top") ){
output += "padding-top: " + paragraph.value("padding-top") + " !important;";
}
if ( paragraph.value("padding-bottom") ){
output += "padding-bottom: " + paragraph.value("padding-bottom") + " !important;";
}
if ( paragraph.value("padding-left") ){
output += "padding-left: " + paragraph.value("padding-left") + " !important;";
}
if ( paragraph.value("padding-right") ){
output += "padding-right: " + paragraph.value("padding-right") + " !important;";
}
output += "}\n";
}
if ( paragraph.value("bgcolor", "") !== "" && paragraph.value("bgcolor", "") !== "transparent" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "background-color: " + paragraph.value("bgcolor") + " !important;";
output += "}\n";
}
var pimage = paragraph.cssBackgroundImage("bgimage");
if ( pimage.imageUrl ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "background-image: url(" + pimage.imageUrl + ") !important;";
output += "background-repeat: " + pimage.repeat + " !important;";
output += "background-size: " + pimage.size + " !important;";
output += "background-position: " + (pimage.position !== "" ? pimage.position : "center center") + " !important;";
output += "background-attachment: " + (pimage.attachment !== "" ? pimage.attachment : "scroll") + ";";
output += "}\n";
}
if ( paragraph.value("justifycontent", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "justify-content: " + paragraph.value("justifycontent") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
// paragraph styles
var rowstyle = paragraph.inlineCss || "";
rowstyle = rowstyle.toString().replace(/^\s+|\s+$/gm,''); // trim();
// make sure the users inlineCss properly ends with a semicolon as we attach more styles later below
if ( rowstyle && rowstyle.slice(-1) !== ";" ){
rowstyle += ";";
}
context.write("\n\t\t\n\t\t\t\t\t");
if ( paragraph.value("breakout") == "1" ){
context.write("\n\t\t\t\t\t\t
\n\t\t\t\t\t>\n\t\t\n\t\t\t\t\t");
var evenodd = "even";
for ( var icol = 0; icol < columns.count; ++icol ){
var column = columns.item(icol);
var articles = column.articles;
var coid = column.id;
var output = "";
var isStyled = false;
var selectorPrefix = "#container_" + cid + " ";
if ( column.value("bgcolor", "") !== "" && column.value("bgcolor", "") !== "transparent" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "background-color: " + column.value("bgcolor") + ";";
output += "padding-top: 15px;";
output += "padding-bottom: 15px;";
output += "}\n";
isStyled = true;
}
if ( column.value("fontcolor", "") !== "" && column.value("fontcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector;
output += ", " + cssSelector + " p";
output += ", " + cssSelector + " h1";
output += ", " + cssSelector + " h2";
output += ", " + cssSelector + " h3{";
output += "color: " + column.value("fontcolor") + ";";
output += "}\n";
}
if ( column.value("linkcolor", "") !== "" && column.value("linkcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += "\n\n" + cssSelector + " a:not(.button)";
output += ", " + cssSelector + " a:not(.button):hover{";
output += "color: " + column.value("linkcolor") + ";";
output += "}\n";
}
if ( column.value("align-self", "") !== "" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "align-self: " + column.value("align-self") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
var clearCss = column.value("clearLeft") ? "clear: left;" : "";
if ( column.articles.count > 0 ){
var firstWidgetName = articles.item(0).widgetName;
}
else{
var firstWidgetName = "";
}
// used in a className, alternate between even and odd, not taking into account zpSpacer-Columns
if( firstWidgetName !== "Spacer" ){
if( evenodd === "even" ){
evenodd = "odd";
}
else{
evenodd = "even";
}
var additionalColumnClass = " " + evenodd;
}
else{
var additionalColumnClass = "";
}
// if a spacer-widget is alone in a column, we set a class .zpSpacer, so we can set the width of spacer-widgets responsively in zpgrid.less accordingly
if ( firstWidgetName == "Spacer" && column.articles.count < 2 ){
additionalColumnClass += " zpSpacer";
}
else if ( firstWidgetName == "Navigationsmenü" ){
additionalColumnClass += " zpnavmenu";
}
// TODO move adding of missing classes to converter and remove next 4 lines
var columnCssClass = column.cssClass;
if ( !column.cssClass || !column.cssClass.match(/\bc[1-9][0-2]?\b/) ){
columnCssClass = "c" + String(Math.round(12 / columns.count - 0.1)) ;
}
if ( column.value("clearLeft") ){
context.write("\n\t\t\t\t\t\t\n\t\t\t\t\t\t");
}
context.write("\n\t\t\t\t\t\t
\n\t\t\t\t\t\t>\n\t\t\t\n\t\t\t\t\t\t\t");
for ( var iart = 0; iart < articles.count; ++iart ){
var a = articles.item(iart);
context.write(a.render());
}
context.write("\n\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\n\t\t\t\t\t\t");
}
// insert zp-ad-box in last row of last container on impressum pages
if ( system.isFreeware && areaName.toLowerCase() == "standard" && page.isSpecialPage("legal") && icon == containers.count-1 && ipar == paragraphs.count-1 ){
context.write("\n\t\t\t\t\t\t\t
\n\t\t\t\t\t>\n\t\t\n\t\t\t\t\t");
var evenodd = "even";
for ( var icol = 0; icol < columns.count; ++icol ){
var column = columns.item(icol);
var articles = column.articles;
var coid = column.id;
var output = "";
var isStyled = false;
var selectorPrefix = "#container_" + cid + " ";
if ( column.value("bgcolor", "") !== "" && column.value("bgcolor", "") !== "transparent" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "background-color: " + column.value("bgcolor") + ";";
output += "padding-top: 15px;";
output += "padding-bottom: 15px;";
output += "}\n";
isStyled = true;
}
if ( column.value("fontcolor", "") !== "" && column.value("fontcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector;
output += ", " + cssSelector + " p";
output += ", " + cssSelector + " h1";
output += ", " + cssSelector + " h2";
output += ", " + cssSelector + " h3{";
output += "color: " + column.value("fontcolor") + ";";
output += "}\n";
}
if ( column.value("linkcolor", "") !== "" && column.value("linkcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += "\n\n" + cssSelector + " a:not(.button)";
output += ", " + cssSelector + " a:not(.button):hover{";
output += "color: " + column.value("linkcolor") + ";";
output += "}\n";
}
if ( column.value("align-self", "") !== "" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "align-self: " + column.value("align-self") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
var clearCss = column.value("clearLeft") ? "clear: left;" : "";
if ( column.articles.count > 0 ){
var firstWidgetName = articles.item(0).widgetName;
}
else{
var firstWidgetName = "";
}
// used in a className, alternate between even and odd, not taking into account zpSpacer-Columns
if( firstWidgetName !== "Spacer" ){
if( evenodd === "even" ){
evenodd = "odd";
}
else{
evenodd = "even";
}
var additionalColumnClass = " " + evenodd;
}
else{
var additionalColumnClass = "";
}
// if a spacer-widget is alone in a column, we set a class .zpSpacer, so we can set the width of spacer-widgets responsively in zpgrid.less accordingly
if ( firstWidgetName == "Spacer" && column.articles.count < 2 ){
additionalColumnClass += " zpSpacer";
}
else if ( firstWidgetName == "Navigationsmenü" ){
additionalColumnClass += " zpnavmenu";
}
// TODO move adding of missing classes to converter and remove next 4 lines
var columnCssClass = column.cssClass;
if ( !column.cssClass || !column.cssClass.match(/\bc[1-9][0-2]?\b/) ){
columnCssClass = "c" + String(Math.round(12 / columns.count - 0.1)) ;
}
if ( column.value("clearLeft") ){
context.write("\n\t\t\t\t\t\t\n\t\t\t\t\t\t");
}
context.write("\n\t\t\t\t\t\t
\n\t\t\t\t\t\t>\n\t\t\t\n\t\t\t\t\t\t\t");
for ( var iart = 0; iart < articles.count; ++iart ){
var a = articles.item(iart);
context.write(a.render());
}
context.write("\n\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\n\t\t\t\t\t\t");
}
// insert zp-ad-box in last row of last container on impressum pages
if ( system.isFreeware && areaName.toLowerCase() == "standard" && page.isSpecialPage("legal") && icon == containers.count-1 && ipar == paragraphs.count-1 ){
context.write("\n\t\t\t\t\t\t\t
\r\n\r\n");
var nextText = system.htmlEncode(page.attribute("header_next_text")) || "weiter";
var prevText = system.htmlEncode(page.attribute("header_prev_text")) || "zurück";
var inlineEditingInitDelay = 50;
var useSmoothHeight = "true" === "false" ? "false" : "true";
if ( useSmoothHeight === "true" ){
inlineEditingInitDelay = 1000;
}
context.write("\r\n\r\n");
if ( numHeaders > 0 ) {
context.write("\r\n\t\r\n");
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\widgets\singleheader\standard.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570531906960().executeScript();
2020-07-14 20:57:33,231 [19] INFO - ---------
2020-07-14 20:57:33,232 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1601.
2020-07-14 20:57:33,232 [19] INFO - ---------
2020-07-14 20:57:33,235 [19] INFO - Finished executing the following script:
2020-07-14 20:57:33,236 [19] INFO - ---------
2020-07-14 20:57:33,236 [19] INFO - function SE637303570531816955() {}
SE637303570531816955.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\header.html'.
var areaName = "Header";
var headers = page.articlesInArea(areaName);
var headerShown = false;
for ( var ihead = 0; ihead < headers.count; ++ihead ){
// in a header-area, we only render the first active container/row/article
if ( headerShown && ihead > 0 ){
break;
}
context.write(headers.item(ihead).render());
headerShown = true;
}
context.write("\r\n\r\n\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\header.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570531816955().executeScript();
2020-07-14 20:57:33,237 [19] INFO - ---------
2020-07-14 20:57:33,238 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1602.
2020-07-14 20:57:33,238 [19] INFO - ---------
2020-07-14 20:57:33,239 [19] INFO - About to execute the following script:
2020-07-14 20:57:33,239 [19] INFO - ---------
2020-07-14 20:57:33,240 [19] INFO - function SE637303570532396988() {}
SE637303570532396988.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\hauptmenu.html'.
var pageId = context.param(0, 0);
var level = context.param(1, 1);
var p = project.getPage(pageId);
var childPages = isNull(p) ? page.projectFolder.pages : p.pages;
if ( childPages.count<=0 || (!isNull(p) && !hasVisibleChildPages(p.id)) ) { return; }
if ( !isNull(p) && p.level!=1 ) { return; }
context.write("\r\n
\r\n\r\n\r\n ");
for ( var i = 0; i < childPages.count; ++i ) {
var p = childPages.item(i);
if ( p.visible && p.active ) {
context.write("\r\n\r\n ");
if ( p.id==page.id || hasActiveChildPage(p.id) ) {
context.write("\r\n ");
context.write( system.partial("item-hauptmenu-aktiv.html", p.id, 1) );
context.write("\r\n ");
} else {
context.write("\r\n ");
context.write( system.partial("item-hauptmenu.html", p.id, 1) );
context.write("\r\n ");
}
context.write("\r\n\r\n ");
}
}
context.write("\r\n\r\n
\r\n\r\n ");
function hasActiveChildPage(pageId) {
var p = project.getPage(pageId);
var childPages = p.pages;
for ( var i = 0; i < childPages.count; ++i ) {
var childPage = childPages.item(i);
if ( childPage.id === page.id || hasActiveChildPage(childPage.id) ) {
return true;
}
}
return false;
}
function hasVisibleChildPages(pageId) {
var p = project.getPage(pageId);
if ( !isNull(p) ) {
var cps = p.pages;
for ( var i = 0; i < cps.count; ++i ) {
var cp = cps.item(i);
if ( cp.visible && cp.active ) {
return true;
}
}
}
return false;
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\hauptmenu.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570532396988().executeScript();
2020-07-14 20:57:33,240 [19] INFO - ---------
2020-07-14 20:57:33,246 [19] INFO - About to execute the following script:
2020-07-14 20:57:33,247 [19] INFO - ---------
2020-07-14 20:57:33,247 [19] INFO - function SE637303570532466992() {}
SE637303570532466992.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-hauptmenu.html'.
var pageId = context.param(0, 0);
var p = project.getPage(pageId);
context.write("\r\n\r\n
\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-hauptmenu.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570532917018().executeScript();
2020-07-14 20:57:33,294 [19] INFO - ---------
2020-07-14 20:57:33,295 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1609.
2020-07-14 20:57:33,295 [19] INFO - ---------
2020-07-14 20:57:33,296 [19] INFO - Finished executing the following script:
2020-07-14 20:57:33,296 [19] INFO - ---------
2020-07-14 20:57:33,297 [19] INFO - function SE637303570532396988() {}
SE637303570532396988.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\hauptmenu.html'.
var pageId = context.param(0, 0);
var level = context.param(1, 1);
var p = project.getPage(pageId);
var childPages = isNull(p) ? page.projectFolder.pages : p.pages;
if ( childPages.count<=0 || (!isNull(p) && !hasVisibleChildPages(p.id)) ) { return; }
if ( !isNull(p) && p.level!=1 ) { return; }
context.write("\r\n
\r\n\r\n\r\n ");
for ( var i = 0; i < childPages.count; ++i ) {
var p = childPages.item(i);
if ( p.visible && p.active ) {
context.write("\r\n\r\n ");
if ( p.id==page.id || hasActiveChildPage(p.id) ) {
context.write("\r\n ");
context.write( system.partial("item-hauptmenu-aktiv.html", p.id, 1) );
context.write("\r\n ");
} else {
context.write("\r\n ");
context.write( system.partial("item-hauptmenu.html", p.id, 1) );
context.write("\r\n ");
}
context.write("\r\n\r\n ");
}
}
context.write("\r\n\r\n
\r\n\r\n ");
function hasActiveChildPage(pageId) {
var p = project.getPage(pageId);
var childPages = p.pages;
for ( var i = 0; i < childPages.count; ++i ) {
var childPage = childPages.item(i);
if ( childPage.id === page.id || hasActiveChildPage(childPage.id) ) {
return true;
}
}
return false;
}
function hasVisibleChildPages(pageId) {
var p = project.getPage(pageId);
if ( !isNull(p) ) {
var cps = p.pages;
for ( var i = 0; i < cps.count; ++i ) {
var cp = cps.item(i);
if ( cp.visible && cp.active ) {
return true;
}
}
}
return false;
}
context.write("\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\hauptmenu.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570532396988().executeScript();
2020-07-14 20:57:33,297 [19] INFO - ---------
2020-07-14 20:57:33,297 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1610.
2020-07-14 20:57:33,298 [19] INFO - ---------
2020-07-14 20:57:33,299 [19] INFO - About to execute the following script:
2020-07-14 20:57:33,299 [19] INFO - ---------
2020-07-14 20:57:33,299 [19] INFO - function SE637303570532997022() {}
SE637303570532997022.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\inline-editing-breadcrumb.html'.
context.write(" \r\n\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\inline-editing-breadcrumb.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570532997022().executeScript();
2020-07-14 20:57:33,300 [19] INFO - ---------
2020-07-14 20:57:33,301 [19] INFO - Finished executing the following script:
2020-07-14 20:57:33,301 [19] INFO - ---------
2020-07-14 20:57:33,302 [19] INFO - function SE637303570532997022() {}
SE637303570532997022.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\inline-editing-breadcrumb.html'.
context.write(" \r\n\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\inline-editing-breadcrumb.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570532997022().executeScript();
2020-07-14 20:57:33,302 [19] INFO - ---------
2020-07-14 20:57:33,302 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1611.
2020-07-14 20:57:33,302 [19] INFO - ---------
2020-07-14 20:57:33,303 [19] INFO - About to execute the following script:
2020-07-14 20:57:33,304 [19] INFO - ---------
2020-07-14 20:57:33,304 [19] INFO - function SE637303570533037025() {}
SE637303570533037025.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\breadcrumbs.html'.
var breadcrumb = context.param(0, "");
var breadcrumb_separator = context.param(1, "");
var pageId = page.id;
var parentPage = page;
var pagesArray = [];
var startpage = projectFolder.startPage;
// walk the page-tree upwards and store ids of pages which are visible in navigation
while ( pageId !== 0 ){
if ( parentPage.type=="projectFolder" ){
break; // A project folder is currently always the top element in the page hierarchy chain, so it is safe to break here since no further pages can exist
}
else if ( parentPage.visible || parentPage.id == page.id ){
// add the current page (ignoring visibility) and all visible paren pages to the pagesArray
pagesArray.unshift(parentPage.id);
}
var p = project.getPage(pageId);
pageId = p.parentPageId;
parentPage = project.getPage(pageId);
}
if ( pagesArray.length > 0 ){
context.write("\r\n\t");
context.write( breadcrumb );
context.write("\r\n\t\r\n\t");
}
// if startPage isn't the displayed page already and is visible,
// prefix the breadcrumbs with a link to it
if ( startpage && startpage.visible && page.id !== startpage.id ){
context.write("\r\n\t
\r\n\t\t");
}
}
if ( pagesArray.length > 0 ){
context.write("");
}
context.write("\r\n\t\t\t\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\breadcrumbs.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570533037025().executeScript();
2020-07-14 20:57:33,304 [19] INFO - ---------
2020-07-14 20:57:33,310 [19] INFO - Finished executing the following script:
2020-07-14 20:57:33,311 [19] INFO - ---------
2020-07-14 20:57:33,311 [19] INFO - function SE637303570533037025() {}
SE637303570533037025.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\breadcrumbs.html'.
var breadcrumb = context.param(0, "");
var breadcrumb_separator = context.param(1, "");
var pageId = page.id;
var parentPage = page;
var pagesArray = [];
var startpage = projectFolder.startPage;
// walk the page-tree upwards and store ids of pages which are visible in navigation
while ( pageId !== 0 ){
if ( parentPage.type=="projectFolder" ){
break; // A project folder is currently always the top element in the page hierarchy chain, so it is safe to break here since no further pages can exist
}
else if ( parentPage.visible || parentPage.id == page.id ){
// add the current page (ignoring visibility) and all visible paren pages to the pagesArray
pagesArray.unshift(parentPage.id);
}
var p = project.getPage(pageId);
pageId = p.parentPageId;
parentPage = project.getPage(pageId);
}
if ( pagesArray.length > 0 ){
context.write("\r\n\t");
context.write( breadcrumb );
context.write("\r\n\t\r\n\t");
}
// if startPage isn't the displayed page already and is visible,
// prefix the breadcrumbs with a link to it
if ( startpage && startpage.visible && page.id !== startpage.id ){
context.write("\r\n\t
\r\n\t\t");
}
}
if ( pagesArray.length > 0 ){
context.write("");
}
context.write("\r\n\t\t\t\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\breadcrumbs.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570533037025().executeScript();
2020-07-14 20:57:33,312 [19] INFO - ---------
2020-07-14 20:57:33,312 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1612.
2020-07-14 20:57:33,312 [19] INFO - ---------
2020-07-14 20:57:33,314 [19] INFO - About to execute the following script:
2020-07-14 20:57:33,314 [19] INFO - ---------
2020-07-14 20:57:33,315 [19] INFO - function SE637303570533147031() {}
SE637303570533147031.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\area.html'.
var areaName = context.param(0, "Standard");
var areaNameLc = areaName.toLowerCase();
var maxColumns = context.param(1, "0");
var cssRowClass = context.param(2, "");
var displayNumColumns = context.param(3, "12"); // number of columns to display. We always calculate with 12, but can display less
var cssAreaClass = context.param(4, "");
var noBreakoutWithNews = context.param(5, true);
var hideIeForArea = context.param(6, false);
var canContainer = project.canContainer;
var showEmptyArticleAreas = (system.preview && system.showEmptyPreviewAreas);
var hasNews = page.hasArea("News") && (page.anyAreaArticles("News") || showEmptyArticleAreas);
var hasNonSymlinkContainer = false;
var lastContainerIsSymlink = false;
if ( maxColumns == "1" ){
if ( cssRowClass == "" || cssRowClass == "noresize" ){
cssRowClass = "noresize";
}
else{
cssRowClass += " noresize";
}
}
var intPreviewData = '';
if ( system.preview ){
// if internal preview, we add some additional data-attributes to the area
// for access in JS (non internal scripting)
intPreviewData += ' data-showemptyarticleareas="' + showEmptyArticleAreas + '"';
}
context.write("\n\n
\n\t");
var containers = page.containers(areaName);
var firstC = 0;
var lastC = containers.count-1;
//system.log("last: " + lastC + " of " + containers.count);
if ( lastC > firstC && !containers.item(lastC).hasArticles ){
// last container has no articles and is not rendered, so find last visible one
for ( var ilcon = lastC; ilcon > 1; --ilcon ){
var lastContainer = containers.item(ilcon);
if ( lastContainer.hasArticles ){
lastC = ilcon;
break;
}
}
}
for ( var icon = 0; icon < containers.count; ++icon ){
var container = containers.item(icon);
// if current container doesn't contain any articles, we skip this loop
// we do not skip when on impressum page and the container ist the last one, as we need to insert freeware content
if ( !container.hasArticles && !(icon == containers.count-1 && page.isSpecialPage("legal")) ){
firstC++;
continue;
}
// append container styles to head via css
var cid = container.id;
var output = "";
var isSection = container.value("issection") == "1";
var isStyled = false;
if ( container.value("fontcolor", "") !== "" && container.value("fontcolor") !== "transparent" ){
var cssSelector = "#container_" + cid;
output = cssSelector;
output += ", " + cssSelector + " p";
output += ", " + cssSelector + " h1";
output += ", " + cssSelector + " h2";
output += ", " + cssSelector + " h3{";
output += "color: " + container.value("fontcolor") + ";";
output += "}\n";
}
if ( container.value("linkcolor", "") !== "" && container.value("linkcolor") !== "transparent" ){
var cssSelector = "#container_" + cid;
output += "\n\n" + cssSelector + " a:not(.button):not(.fancybox):not(.zpSO-Uplink-Flat):not(.zpnolayoutlinkstyles)";
output += ", " + cssSelector + " a:not(.button):not(.fancybox):not(.zpSO-Uplink-Flat):not(.zpnolayoutlinkstyles):hover{";
output += "color: " + container.value("linkcolor") + ";";
output += "}\n";
}
if ( container.value("margin", "") !== "" ){
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
if ( container.value("margin-top") ){
output += "margin-top: " + container.value("margin-top") + " !important;";
}
if ( container.value("margin-bottom") ){
output += "margin-bottom: " + container.value("margin-bottom") + " !important;" ;
}
output += "}\n";
}
if ( container.value("padding", "") !== "" ){
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
if ( container.value("padding-top") ){
output += "padding-top: " + container.value("padding-top") + " !important;";
}
if ( container.value("padding-bottom") ){
output += "padding-bottom: " + container.value("padding-bottom") + " !important;";
}
if ( container.value("padding-left") ){
output += "padding-left: " + container.value("padding-left") + " !important;";
}
if ( container.value("padding-right") ){
output += "padding-right: " + container.value("padding-right") + " !important;";
}
output += "}\n";
}
if ( container.value("bgcolor", "") !== "" && container.value("bgcolor", "") !== "transparent" ){
isStyled = true;
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
output += "background-color: " + container.value("bgcolor") + " !important;";
output += "}\n";
}
var image = container.cssBackgroundImage("bgimage");
if ( image.imageUrl ){
isStyled = true;
var cssSelector = "#container_" + cid;
output += cssSelector + "{";
output += "background-image: url(" + image.imageUrl + ") !important;";
output += "background-repeat: " + image.repeat + " !important;";
output += "background-size: " + image.size + " !important;";
output += "background-position: " + (image.position !== "" ? image.position : "center center") + " !important;";
output += "background-attachment: " + (image.attachment !== "" ? image.attachment : "scroll") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
var containerstyle = container.inlineCss || "";
containerstyle = containerstyle.toString().replace(/^\s+|\s+$/gm,''); // trim()
// make sure the users inlineCss properly ends with a semicolon as we attach more styles later below
if ( containerstyle && containerstyle.slice(-1) !== ";" ){
containerstyle += ";";
}
var initialContainerstyle = containerstyle;
containerstyle = containerstyle.replace(/^\s+|\s+$/gm,''); // trim()
if ( containerstyle ){
containerstyle = ' style="' + containerstyle + '"';
}
if ( noBreakoutWithNews && system.preview && container.value("breakout") == "1" && hasNews ){
system.warn("Die 'Randlos-Option' für einen Container kann nicht berücksichtigt werden, weil der 'Einfügen-Schalter' auf an steht oder die Seite auch Artikel im News-Bereich enthält.");
}
var containerTag = "div";
if ( isSection ){
containerTag = "section";
}
var containerIsSymlink = container.symlink ? true : false;
if ( !containerIsSymlink ){
hasNonSymlinkContainer = true;
}
else if ( icon == containers.count-1 ){
lastContainerIsSymlink = true;
}
context.write("\n\t\t\t<");
context.write( containerTag );
context.write(" id=\"container_");
context.write( container.id );
context.write("\" class=\"zpContainer");
if (icon==firstC){
context.write(" first");
}
if (icon==lastC){
context.write(" last");
}
if( container.value("animate", "") !== "" && container.value("animate") !== "off" ){
context.write(" zpanimate ");
context.write( container.value("animate"));
}
if( isStyled ){
context.write(" styled");
}
context.write(" ");
if ( container.value("breakout") == "1" ){
context.write("zpBreakout ");
}
if( noBreakoutWithNews && hasNews ) {
context.write(" hasNews");
}
context.write(" ");
context.write( container.cssClass );
context.write("\"");
context.write( containerstyle );
context.write(" \n\t\t\t\t data-zpeleel=\"container\" data-zpleid=\"");
context.write( container.id );
context.write("\">\n\t\t\t");
var paragraphs = container.paragraphs;
for ( var ipar = 0; ipar < paragraphs.count; ++ipar ){
var additionalRowClass = "";
var paragraph = paragraphs.item(ipar);
var columns = paragraph.columns;
// if current paragraph doesn't contain articles, we skip the loop, so we don't print empty paragraphs
// we do not skip when on impressum page and the container ist the last one, as we need to insert freeware content
var articleCount = paragraph.articles.count;
if ( articleCount < 1 && !(icon == containers.count-1 && page.isSpecialPage("legal")) ){
continue;
}
else if ( articleCount > 0 ){
// set special rowClass for Articles which are not visible, so we can remove any margins which might not be desired
var firstWidgetName = paragraph.articles.item(0).widgetName;
switch(firstWidgetName) {
case "Info-Banner":
additionalRowClass = " alertbanner";
break;
case "Quelltext":
additionalRowClass = " quelltext";
break;
case "Slider":
additionalRowClass = " zpwSlider";
break;
case "Carousel":
additionalRowClass = " zpwCarousel";
break;
case "Navigationsmenü":
if ( paragraph.articles.item(0).value("menufixed") ){
additionalRowClass = " zpwNavmenu zpwNavmenuFixed";
}
else{
additionalRowClass = " zpwNavmenu";
}
break;
case "Navigationsmenü manuell":
if ( paragraph.articles.item(0).value("menufixed") ){
additionalRowClass = " zpwNavmenu zpwNavmenuFixed";
}
else{
additionalRowClass = " zpwNavmenu";
}
break;
case "Video-Hintergrund":
additionalRowClass = " zpvideobg";
break;
}
// append row styles to head via css
var rid = paragraph.id;
var output = "";
if ( paragraph.value("margin", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
if ( paragraph.value("margin-top") ){
output += "margin-top: " + paragraph.value("margin-top", "initial") + " !important;";
}
if ( paragraph.value("margin-bottom") ){
output += "margin-bottom: " + paragraph.value("margin-bottom", "initial") + " !important;" ;
}
output += "}\n";
}
if ( paragraph.value("padding", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
if ( paragraph.value("padding-top") ){
output += "padding-top: " + paragraph.value("padding-top") + " !important;";
}
if ( paragraph.value("padding-bottom") ){
output += "padding-bottom: " + paragraph.value("padding-bottom") + " !important;";
}
if ( paragraph.value("padding-left") ){
output += "padding-left: " + paragraph.value("padding-left") + " !important;";
}
if ( paragraph.value("padding-right") ){
output += "padding-right: " + paragraph.value("padding-right") + " !important;";
}
output += "}\n";
}
if ( paragraph.value("bgcolor", "") !== "" && paragraph.value("bgcolor", "") !== "transparent" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "background-color: " + paragraph.value("bgcolor") + " !important;";
output += "}\n";
}
var pimage = paragraph.cssBackgroundImage("bgimage");
if ( pimage.imageUrl ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "background-image: url(" + pimage.imageUrl + ") !important;";
output += "background-repeat: " + pimage.repeat + " !important;";
output += "background-size: " + pimage.size + " !important;";
output += "background-position: " + (pimage.position !== "" ? pimage.position : "center center") + " !important;";
output += "background-attachment: " + (pimage.attachment !== "" ? pimage.attachment : "scroll") + ";";
output += "}\n";
}
if ( paragraph.value("justifycontent", "") !== "" ){
var cssSelector = ".zpRow[data-row-id=\"" + rid + "\"]";
output += cssSelector + "{";
output += "justify-content: " + paragraph.value("justifycontent") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
// paragraph styles
var rowstyle = paragraph.inlineCss || "";
rowstyle = rowstyle.toString().replace(/^\s+|\s+$/gm,''); // trim();
// make sure the users inlineCss properly ends with a semicolon as we attach more styles later below
if ( rowstyle && rowstyle.slice(-1) !== ";" ){
rowstyle += ";";
}
context.write("\n\t\t\n\t\t\t\t\t");
if ( paragraph.value("breakout") == "1" ){
context.write("\n\t\t\t\t\t\t
\n\t\t\t\t\t>\n\t\t\n\t\t\t\t\t");
var evenodd = "even";
for ( var icol = 0; icol < columns.count; ++icol ){
var column = columns.item(icol);
var articles = column.articles;
var coid = column.id;
var output = "";
var isStyled = false;
var selectorPrefix = "#container_" + cid + " ";
if ( column.value("bgcolor", "") !== "" && column.value("bgcolor", "") !== "transparent" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "background-color: " + column.value("bgcolor") + ";";
output += "padding-top: 15px;";
output += "padding-bottom: 15px;";
output += "}\n";
isStyled = true;
}
if ( column.value("fontcolor", "") !== "" && column.value("fontcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector;
output += ", " + cssSelector + " p";
output += ", " + cssSelector + " h1";
output += ", " + cssSelector + " h2";
output += ", " + cssSelector + " h3{";
output += "color: " + column.value("fontcolor") + ";";
output += "}\n";
}
if ( column.value("linkcolor", "") !== "" && column.value("linkcolor") !== "transparent" ){
var cssSelector = selectorPrefix + "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += "\n\n" + cssSelector + " a:not(.button)";
output += ", " + cssSelector + " a:not(.button):hover{";
output += "color: " + column.value("linkcolor") + ";";
output += "}\n";
}
if ( column.value("align-self", "") !== "" ){
var cssSelector = "div.zpRow .zpColumn[data-column-id='" + coid + "']";
output += cssSelector + "{";
output += "align-self: " + column.value("align-self") + ";";
output += "}\n";
}
if ( output !== "" ){
system.addHtmlHeadElement("\n" + output.replace(/^\s+|\s+$/gm,'') + "\n");
}
var clearCss = column.value("clearLeft") ? "clear: left;" : "";
if ( column.articles.count > 0 ){
var firstWidgetName = articles.item(0).widgetName;
}
else{
var firstWidgetName = "";
}
// used in a className, alternate between even and odd, not taking into account zpSpacer-Columns
if( firstWidgetName !== "Spacer" ){
if( evenodd === "even" ){
evenodd = "odd";
}
else{
evenodd = "even";
}
var additionalColumnClass = " " + evenodd;
}
else{
var additionalColumnClass = "";
}
// if a spacer-widget is alone in a column, we set a class .zpSpacer, so we can set the width of spacer-widgets responsively in zpgrid.less accordingly
if ( firstWidgetName == "Spacer" && column.articles.count < 2 ){
additionalColumnClass += " zpSpacer";
}
else if ( firstWidgetName == "Navigationsmenü" ){
additionalColumnClass += " zpnavmenu";
}
// TODO move adding of missing classes to converter and remove next 4 lines
var columnCssClass = column.cssClass;
if ( !column.cssClass || !column.cssClass.match(/\bc[1-9][0-2]?\b/) ){
columnCssClass = "c" + String(Math.round(12 / columns.count - 0.1)) ;
}
if ( column.value("clearLeft") ){
context.write("\n\t\t\t\t\t\t\n\t\t\t\t\t\t");
}
context.write("\n\t\t\t\t\t\t
\n\t\t\t\t\t\t>\n\t\t\t\n\t\t\t\t\t\t\t");
for ( var iart = 0; iart < articles.count; ++iart ){
var a = articles.item(iart);
context.write(a.render());
}
context.write("\n\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\n\t\t\t\t\t\t");
}
// insert zp-ad-box in last row of last container on impressum pages
if ( system.isFreeware && areaName.toLowerCase() == "standard" && page.isSpecialPage("legal") && icon == containers.count-1 && ipar == paragraphs.count-1 ){
context.write("\n\t\t\t\t\t\t\t