\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 SE637303570345486297().executeScript();
2020-07-14 20:57:16,298 [19] INFO - ---------
2020-07-14 20:57:16,298 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1087.
2020-07-14 20:57:16,299 [19] INFO - ---------
2020-07-14 20:57:16,300 [19] INFO - About to execute the following script:
2020-07-14 20:57:16,300 [19] INFO - ---------
2020-07-14 20:57:16,301 [19] INFO - function SE637303570363007300() {}
SE637303570363007300.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 SE637303570363007300().executeScript();
2020-07-14 20:57:16,301 [19] INFO - ---------
2020-07-14 20:57:16,309 [19] INFO - About to execute the following script:
2020-07-14 20:57:16,309 [19] INFO - ---------
2020-07-14 20:57:16,309 [19] INFO - function SE637303570363097305() {}
SE637303570363097305.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 SE637303570363097305().executeScript();
2020-07-14 20:57:16,310 [19] INFO - ---------
2020-07-14 20:57:16,313 [19] INFO - About to execute the following script:
2020-07-14 20:57:16,313 [19] INFO - ---------
2020-07-14 20:57:16,314 [19] INFO - function SE637303570363137307() {}
SE637303570363137307.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-submenu1-aktiv.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-submenu1.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570363377321().executeScript();
2020-07-14 20:57:16,341 [19] INFO - ---------
2020-07-14 20:57:16,342 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1092.
2020-07-14 20:57:16,342 [19] INFO - ---------
2020-07-14 20:57:16,343 [19] INFO - Finished executing the following script:
2020-07-14 20:57:16,343 [19] INFO - ---------
2020-07-14 20:57:16,343 [19] INFO - function SE637303570363097305() {}
SE637303570363097305.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 SE637303570363097305().executeScript();
2020-07-14 20:57:16,344 [19] INFO - ---------
2020-07-14 20:57:16,344 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1093.
2020-07-14 20:57:16,344 [19] INFO - ---------
2020-07-14 20:57:16,357 [19] INFO - Finished executing the following script:
2020-07-14 20:57:16,357 [19] INFO - ---------
2020-07-14 20:57:16,357 [19] INFO - function SE637303570363007300() {}
SE637303570363007300.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 SE637303570363007300().executeScript();
2020-07-14 20:57:16,359 [19] INFO - ---------
2020-07-14 20:57:16,360 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1094.
2020-07-14 20:57:16,360 [19] INFO - ---------
2020-07-14 20:57:16,362 [19] INFO - About to execute the following script:
2020-07-14 20:57:16,362 [19] INFO - ---------
2020-07-14 20:57:16,362 [19] INFO - function SE637303570363627335() {}
SE637303570363627335.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 SE637303570367047531().executeScript();
2020-07-14 20:57:16,732 [19] INFO - ---------
2020-07-14 20:57:16,732 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1107.
2020-07-14 20:57:16,732 [19] INFO - ---------
2020-07-14 20:57:16,735 [19] INFO - Finished executing the following script:
2020-07-14 20:57:16,735 [19] INFO - ---------
2020-07-14 20:57:16,735 [19] INFO - function SE637303570367007528() {}
SE637303570367007528.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 SE637303570367007528().executeScript();
2020-07-14 20:57:16,736 [19] INFO - ---------
2020-07-14 20:57:16,736 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1108.
2020-07-14 20:57:16,736 [19] INFO - ---------
2020-07-14 20:57:16,738 [19] INFO - About to execute the following script:
2020-07-14 20:57:16,738 [19] INFO - ---------
2020-07-14 20:57:16,739 [19] INFO - function SE637303570367387550() {}
SE637303570367387550.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 SE637303570367387550().executeScript();
2020-07-14 20:57:16,739 [19] INFO - ---------
2020-07-14 20:57:16,745 [19] INFO - About to execute the following script:
2020-07-14 20:57:16,746 [19] INFO - ---------
2020-07-14 20:57:16,746 [19] INFO - function SE637303570367457554() {}
SE637303570367457554.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 SE637303570367947582().executeScript();
2020-07-14 20:57:16,797 [19] INFO - ---------
2020-07-14 20:57:16,798 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1115.
2020-07-14 20:57:16,798 [19] INFO - ---------
2020-07-14 20:57:16,799 [19] INFO - Finished executing the following script:
2020-07-14 20:57:16,799 [19] INFO - ---------
2020-07-14 20:57:16,799 [19] INFO - function SE637303570367387550() {}
SE637303570367387550.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 SE637303570367387550().executeScript();
2020-07-14 20:57:16,800 [19] INFO - ---------
2020-07-14 20:57:16,800 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1116.
2020-07-14 20:57:16,801 [19] INFO - ---------
2020-07-14 20:57:16,801 [19] INFO - About to execute the following script:
2020-07-14 20:57:16,802 [19] INFO - ---------
2020-07-14 20:57:16,802 [19] INFO - function SE637303570368017586() {}
SE637303570368017586.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 SE637303570368017586().executeScript();
2020-07-14 20:57:16,803 [19] INFO - ---------
2020-07-14 20:57:16,804 [19] INFO - Finished executing the following script:
2020-07-14 20:57:16,804 [19] INFO - ---------
2020-07-14 20:57:16,804 [19] INFO - function SE637303570368017586() {}
SE637303570368017586.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 SE637303570368017586().executeScript();
2020-07-14 20:57:16,806 [19] INFO - ---------
2020-07-14 20:57:16,806 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1117.
2020-07-14 20:57:16,806 [19] INFO - ---------
2020-07-14 20:57:16,807 [19] INFO - About to execute the following script:
2020-07-14 20:57:16,808 [19] INFO - ---------
2020-07-14 20:57:16,808 [19] INFO - function SE637303570368077590() {}
SE637303570368077590.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 SE637303570368077590().executeScript();
2020-07-14 20:57:16,809 [19] INFO - ---------
2020-07-14 20:57:16,815 [19] INFO - Finished executing the following script:
2020-07-14 20:57:16,815 [19] INFO - ---------
2020-07-14 20:57:16,815 [19] INFO - function SE637303570368077590() {}
SE637303570368077590.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 SE637303570368077590().executeScript();
2020-07-14 20:57:16,816 [19] INFO - ---------
2020-07-14 20:57:16,816 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1118.
2020-07-14 20:57:16,816 [19] INFO - ---------
2020-07-14 20:57:16,818 [19] INFO - About to execute the following script:
2020-07-14 20:57:16,819 [19] INFO - ---------
2020-07-14 20:57:16,819 [19] INFO - function SE637303570368187596() {}
SE637303570368187596.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 SE637303570368187596().executeScript();
2020-07-14 20:57:17,245 [19] INFO - ---------
2020-07-14 20:57:17,245 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1141.
2020-07-14 20:57:17,245 [19] INFO - ---------
2020-07-14 20:57:17,247 [19] INFO - About to execute the following script:
2020-07-14 20:57:17,247 [19] INFO - ---------
2020-07-14 20:57:17,247 [19] INFO - function SE637303570372477841() {}
SE637303570372477841.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 SE637303570372477841().executeScript();
2020-07-14 20:57:17,248 [19] INFO - ---------
2020-07-14 20:57:17,255 [19] INFO - About to execute the following script:
2020-07-14 20:57:17,256 [19] INFO - ---------
2020-07-14 20:57:17,256 [19] INFO - function SE637303570372557846() {}
SE637303570372557846.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 SE637303570372557846().executeScript();
2020-07-14 20:57:17,256 [19] INFO - ---------
2020-07-14 20:57:17,260 [19] INFO - About to execute the following script:
2020-07-14 20:57:17,260 [19] INFO - ---------
2020-07-14 20:57:17,260 [19] INFO - function SE637303570372597848() {}
SE637303570372597848.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-submenu1-aktiv.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-submenu1.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570372867864().executeScript();
2020-07-14 20:57:17,290 [19] INFO - ---------
2020-07-14 20:57:17,290 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1146.
2020-07-14 20:57:17,291 [19] INFO - ---------
2020-07-14 20:57:17,292 [19] INFO - Finished executing the following script:
2020-07-14 20:57:17,292 [19] INFO - ---------
2020-07-14 20:57:17,292 [19] INFO - function SE637303570372557846() {}
SE637303570372557846.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 SE637303570372557846().executeScript();
2020-07-14 20:57:17,293 [19] INFO - ---------
2020-07-14 20:57:17,293 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1147.
2020-07-14 20:57:17,293 [19] INFO - ---------
2020-07-14 20:57:17,306 [19] INFO - Finished executing the following script:
2020-07-14 20:57:17,307 [19] INFO - ---------
2020-07-14 20:57:17,307 [19] INFO - function SE637303570372477841() {}
SE637303570372477841.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 SE637303570372477841().executeScript();
2020-07-14 20:57:17,307 [19] INFO - ---------
2020-07-14 20:57:17,308 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1148.
2020-07-14 20:57:17,308 [19] INFO - ---------
2020-07-14 20:57:17,310 [19] INFO - About to execute the following script:
2020-07-14 20:57:17,310 [19] INFO - ---------
2020-07-14 20:57:17,310 [19] INFO - function SE637303570373097877() {}
SE637303570373097877.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 SE637303570375978041().executeScript();
2020-07-14 20:57:19,253 [19] INFO - ---------
2020-07-14 20:57:19,253 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1161.
2020-07-14 20:57:19,253 [19] INFO - ---------
2020-07-14 20:57:19,255 [19] INFO - Finished executing the following script:
2020-07-14 20:57:19,256 [19] INFO - ---------
2020-07-14 20:57:19,256 [19] INFO - function SE637303570375898037() {}
SE637303570375898037.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 SE637303570375898037().executeScript();
2020-07-14 20:57:19,256 [19] INFO - ---------
2020-07-14 20:57:19,257 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1162.
2020-07-14 20:57:19,257 [19] INFO - ---------
2020-07-14 20:57:19,258 [19] INFO - About to execute the following script:
2020-07-14 20:57:19,258 [19] INFO - ---------
2020-07-14 20:57:19,259 [19] INFO - function SE637303570392588992() {}
SE637303570392588992.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 SE637303570392588992().executeScript();
2020-07-14 20:57:19,259 [19] INFO - ---------
2020-07-14 20:57:19,267 [19] INFO - About to execute the following script:
2020-07-14 20:57:19,267 [19] INFO - ---------
2020-07-14 20:57:19,268 [19] INFO - function SE637303570392678997() {}
SE637303570392678997.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 SE637303570393199026().executeScript();
2020-07-14 20:57:19,323 [19] INFO - ---------
2020-07-14 20:57:19,323 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1169.
2020-07-14 20:57:19,323 [19] INFO - ---------
2020-07-14 20:57:19,324 [19] INFO - Finished executing the following script:
2020-07-14 20:57:19,324 [19] INFO - ---------
2020-07-14 20:57:19,325 [19] INFO - function SE637303570392588992() {}
SE637303570392588992.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 SE637303570392588992().executeScript();
2020-07-14 20:57:19,325 [19] INFO - ---------
2020-07-14 20:57:19,325 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1170.
2020-07-14 20:57:19,326 [19] INFO - ---------
2020-07-14 20:57:19,327 [19] INFO - About to execute the following script:
2020-07-14 20:57:19,327 [19] INFO - ---------
2020-07-14 20:57:19,327 [19] INFO - function SE637303570393279031() {}
SE637303570393279031.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 SE637303570393279031().executeScript();
2020-07-14 20:57:19,328 [19] INFO - ---------
2020-07-14 20:57:19,329 [19] INFO - Finished executing the following script:
2020-07-14 20:57:19,329 [19] INFO - ---------
2020-07-14 20:57:19,329 [19] INFO - function SE637303570393279031() {}
SE637303570393279031.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 SE637303570393279031().executeScript();
2020-07-14 20:57:19,330 [19] INFO - ---------
2020-07-14 20:57:19,330 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1171.
2020-07-14 20:57:19,331 [19] INFO - ---------
2020-07-14 20:57:19,331 [19] INFO - About to execute the following script:
2020-07-14 20:57:19,332 [19] INFO - ---------
2020-07-14 20:57:19,332 [19] INFO - function SE637303570393319033() {}
SE637303570393319033.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 SE637303570393319033().executeScript();
2020-07-14 20:57:19,333 [19] INFO - ---------
2020-07-14 20:57:19,339 [19] INFO - Finished executing the following script:
2020-07-14 20:57:19,340 [19] INFO - ---------
2020-07-14 20:57:19,340 [19] INFO - function SE637303570393319033() {}
SE637303570393319033.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 SE637303570393319033().executeScript();
2020-07-14 20:57:19,340 [19] INFO - ---------
2020-07-14 20:57:19,341 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1172.
2020-07-14 20:57:19,341 [19] INFO - ---------
2020-07-14 20:57:19,343 [19] INFO - About to execute the following script:
2020-07-14 20:57:19,343 [19] INFO - ---------
2020-07-14 20:57:19,344 [19] INFO - function SE637303570393439040() {}
SE637303570393439040.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 SE637303570393439040().executeScript();
2020-07-14 20:57:19,966 [19] INFO - ---------
2020-07-14 20:57:19,967 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1204.
2020-07-14 20:57:19,967 [19] INFO - ---------
2020-07-14 20:57:19,968 [19] INFO - About to execute the following script:
2020-07-14 20:57:19,969 [19] INFO - ---------
2020-07-14 20:57:19,969 [19] INFO - function SE637303570399689398() {}
SE637303570399689398.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 SE637303570399689398().executeScript();
2020-07-14 20:57:19,969 [19] INFO - ---------
2020-07-14 20:57:19,978 [19] INFO - About to execute the following script:
2020-07-14 20:57:19,978 [19] INFO - ---------
2020-07-14 20:57:19,978 [19] INFO - function SE637303570399789403() {}
SE637303570399789403.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 SE637303570399789403().executeScript();
2020-07-14 20:57:19,979 [19] INFO - ---------
2020-07-14 20:57:19,982 [19] INFO - About to execute the following script:
2020-07-14 20:57:19,982 [19] INFO - ---------
2020-07-14 20:57:19,983 [19] INFO - function SE637303570399829406() {}
SE637303570399829406.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 SE637303570400129423().executeScript();
2020-07-14 20:57:20,017 [19] INFO - ---------
2020-07-14 20:57:20,017 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1209.
2020-07-14 20:57:20,018 [19] INFO - ---------
2020-07-14 20:57:20,018 [19] INFO - Finished executing the following script:
2020-07-14 20:57:20,019 [19] INFO - ---------
2020-07-14 20:57:20,019 [19] INFO - function SE637303570399789403() {}
SE637303570399789403.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 SE637303570399789403().executeScript();
2020-07-14 20:57:20,020 [19] INFO - ---------
2020-07-14 20:57:20,020 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1210.
2020-07-14 20:57:20,020 [19] INFO - ---------
2020-07-14 20:57:20,033 [19] INFO - Finished executing the following script:
2020-07-14 20:57:20,034 [19] INFO - ---------
2020-07-14 20:57:20,034 [19] INFO - function SE637303570399689398() {}
SE637303570399689398.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 SE637303570399689398().executeScript();
2020-07-14 20:57:20,035 [19] INFO - ---------
2020-07-14 20:57:20,035 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1211.
2020-07-14 20:57:20,035 [19] INFO - ---------
2020-07-14 20:57:20,038 [19] INFO - About to execute the following script:
2020-07-14 20:57:20,039 [19] INFO - ---------
2020-07-14 20:57:20,039 [19] INFO - function SE637303570400389438() {}
SE637303570400389438.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 SE637303570402659568().executeScript();
2020-07-14 20:57:20,294 [19] INFO - ---------
2020-07-14 20:57:20,295 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1224.
2020-07-14 20:57:20,295 [19] INFO - ---------
2020-07-14 20:57:20,297 [19] INFO - Finished executing the following script:
2020-07-14 20:57:20,297 [19] INFO - ---------
2020-07-14 20:57:20,297 [19] INFO - function SE637303570402619565() {}
SE637303570402619565.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 SE637303570402619565().executeScript();
2020-07-14 20:57:20,298 [19] INFO - ---------
2020-07-14 20:57:20,298 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1225.
2020-07-14 20:57:20,298 [19] INFO - ---------
2020-07-14 20:57:20,299 [19] INFO - About to execute the following script:
2020-07-14 20:57:20,300 [19] INFO - ---------
2020-07-14 20:57:20,300 [19] INFO - function SE637303570402999587() {}
SE637303570402999587.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 SE637303570402999587().executeScript();
2020-07-14 20:57:20,301 [19] INFO - ---------
2020-07-14 20:57:20,307 [19] INFO - About to execute the following script:
2020-07-14 20:57:20,307 [19] INFO - ---------
2020-07-14 20:57:20,307 [19] INFO - function SE637303570403079592() {}
SE637303570403079592.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 SE637303570403579620().executeScript();
2020-07-14 20:57:20,361 [19] INFO - ---------
2020-07-14 20:57:20,361 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1232.
2020-07-14 20:57:20,362 [19] INFO - ---------
2020-07-14 20:57:20,362 [19] INFO - Finished executing the following script:
2020-07-14 20:57:20,363 [19] INFO - ---------
2020-07-14 20:57:20,363 [19] INFO - function SE637303570402999587() {}
SE637303570402999587.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 SE637303570402999587().executeScript();
2020-07-14 20:57:20,364 [19] INFO - ---------
2020-07-14 20:57:20,364 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1233.
2020-07-14 20:57:20,365 [19] INFO - ---------
2020-07-14 20:57:20,366 [19] INFO - About to execute the following script:
2020-07-14 20:57:20,366 [19] INFO - ---------
2020-07-14 20:57:20,366 [19] INFO - function SE637303570403669625() {}
SE637303570403669625.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 SE637303570403669625().executeScript();
2020-07-14 20:57:20,372 [19] INFO - ---------
2020-07-14 20:57:20,373 [19] INFO - Finished executing the following script:
2020-07-14 20:57:20,374 [19] INFO - ---------
2020-07-14 20:57:20,374 [19] INFO - function SE637303570403669625() {}
SE637303570403669625.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 SE637303570403669625().executeScript();
2020-07-14 20:57:20,374 [19] INFO - ---------
2020-07-14 20:57:20,375 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1234.
2020-07-14 20:57:20,375 [19] INFO - ---------
2020-07-14 20:57:20,376 [19] INFO - About to execute the following script:
2020-07-14 20:57:20,376 [19] INFO - ---------
2020-07-14 20:57:20,377 [19] INFO - function SE637303570403769631() {}
SE637303570403769631.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 SE637303570403769631().executeScript();
2020-07-14 20:57:20,377 [19] INFO - ---------
2020-07-14 20:57:20,382 [19] INFO - Finished executing the following script:
2020-07-14 20:57:20,383 [19] INFO - ---------
2020-07-14 20:57:20,383 [19] INFO - function SE637303570403769631() {}
SE637303570403769631.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 SE637303570403769631().executeScript();
2020-07-14 20:57:20,384 [19] INFO - ---------
2020-07-14 20:57:20,384 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1235.
2020-07-14 20:57:20,384 [19] INFO - ---------
2020-07-14 20:57:20,386 [19] INFO - About to execute the following script:
2020-07-14 20:57:20,386 [19] INFO - ---------
2020-07-14 20:57:20,387 [19] INFO - function SE637303570403869637() {}
SE637303570403869637.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 SE637303570403869637().executeScript();
2020-07-14 20:57:21,429 [19] INFO - ---------
2020-07-14 20:57:21,429 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1267.
2020-07-14 20:57:21,429 [19] INFO - ---------
2020-07-14 20:57:21,431 [19] INFO - About to execute the following script:
2020-07-14 20:57:21,431 [19] INFO - ---------
2020-07-14 20:57:21,431 [19] INFO - function SE637303570414300233() {}
SE637303570414300233.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 SE637303570414300233().executeScript();
2020-07-14 20:57:21,432 [19] INFO - ---------
2020-07-14 20:57:21,440 [19] INFO - About to execute the following script:
2020-07-14 20:57:21,441 [19] INFO - ---------
2020-07-14 20:57:21,441 [19] INFO - function SE637303570414400239() {}
SE637303570414400239.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 SE637303570414400239().executeScript();
2020-07-14 20:57:21,441 [19] INFO - ---------
2020-07-14 20:57:21,445 [19] INFO - About to execute the following script:
2020-07-14 20:57:21,445 [19] INFO - ---------
2020-07-14 20:57:21,445 [19] INFO - function SE637303570414450242() {}
SE637303570414450242.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 SE637303570414700256().executeScript();
2020-07-14 20:57:21,474 [19] INFO - ---------
2020-07-14 20:57:21,474 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1272.
2020-07-14 20:57:21,475 [19] INFO - ---------
2020-07-14 20:57:21,475 [19] INFO - Finished executing the following script:
2020-07-14 20:57:21,476 [19] INFO - ---------
2020-07-14 20:57:21,476 [19] INFO - function SE637303570414400239() {}
SE637303570414400239.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 SE637303570414400239().executeScript();
2020-07-14 20:57:21,476 [19] INFO - ---------
2020-07-14 20:57:21,477 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1273.
2020-07-14 20:57:21,477 [19] INFO - ---------
2020-07-14 20:57:21,490 [19] INFO - Finished executing the following script:
2020-07-14 20:57:21,490 [19] INFO - ---------
2020-07-14 20:57:21,491 [19] INFO - function SE637303570414300233() {}
SE637303570414300233.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 SE637303570414300233().executeScript();
2020-07-14 20:57:21,491 [19] INFO - ---------
2020-07-14 20:57:21,491 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1274.
2020-07-14 20:57:21,492 [19] INFO - ---------
2020-07-14 20:57:21,493 [19] INFO - About to execute the following script:
2020-07-14 20:57:21,494 [19] INFO - ---------
2020-07-14 20:57:21,494 [19] INFO - function SE637303570414930269() {}
SE637303570414930269.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 SE637303570417050391().executeScript();
2020-07-14 20:57:21,758 [19] INFO - ---------
2020-07-14 20:57:23,614 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1287.
2020-07-14 20:57:23,614 [19] INFO - ---------
2020-07-14 20:57:23,616 [19] INFO - Finished executing the following script:
2020-07-14 20:57:23,617 [19] INFO - ---------
2020-07-14 20:57:23,618 [19] INFO - function SE637303570416970386() {}
SE637303570416970386.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 SE637303570416970386().executeScript();
2020-07-14 20:57:23,618 [19] INFO - ---------
2020-07-14 20:57:23,618 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1288.
2020-07-14 20:57:23,619 [19] INFO - ---------
2020-07-14 20:57:23,621 [19] INFO - About to execute the following script:
2020-07-14 20:57:23,621 [19] INFO - ---------
2020-07-14 20:57:23,621 [19] INFO - function SE637303570436211487() {}
SE637303570436211487.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 SE637303570436211487().executeScript();
2020-07-14 20:57:23,622 [19] INFO - ---------
2020-07-14 20:57:23,628 [19] INFO - About to execute the following script:
2020-07-14 20:57:23,628 [19] INFO - ---------
2020-07-14 20:57:23,629 [19] INFO - function SE637303570436281491() {}
SE637303570436281491.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 SE637303570436751517().executeScript();
2020-07-14 20:57:23,679 [19] INFO - ---------
2020-07-14 20:57:23,679 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1295.
2020-07-14 20:57:23,680 [19] INFO - ---------
2020-07-14 20:57:23,680 [19] INFO - Finished executing the following script:
2020-07-14 20:57:23,681 [19] INFO - ---------
2020-07-14 20:57:23,681 [19] INFO - function SE637303570436211487() {}
SE637303570436211487.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 SE637303570436211487().executeScript();
2020-07-14 20:57:23,681 [19] INFO - ---------
2020-07-14 20:57:23,682 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1296.
2020-07-14 20:57:23,682 [19] INFO - ---------
2020-07-14 20:57:23,683 [19] INFO - About to execute the following script:
2020-07-14 20:57:23,683 [19] INFO - ---------
2020-07-14 20:57:23,683 [19] INFO - function SE637303570436831522() {}
SE637303570436831522.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 SE637303570436831522().executeScript();
2020-07-14 20:57:23,684 [19] INFO - ---------
2020-07-14 20:57:23,685 [19] INFO - Finished executing the following script:
2020-07-14 20:57:23,685 [19] INFO - ---------
2020-07-14 20:57:23,685 [19] INFO - function SE637303570436831522() {}
SE637303570436831522.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 SE637303570436831522().executeScript();
2020-07-14 20:57:23,686 [19] INFO - ---------
2020-07-14 20:57:23,686 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1297.
2020-07-14 20:57:23,686 [19] INFO - ---------
2020-07-14 20:57:23,687 [19] INFO - About to execute the following script:
2020-07-14 20:57:23,688 [19] INFO - ---------
2020-07-14 20:57:23,688 [19] INFO - function SE637303570436871524() {}
SE637303570436871524.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 SE637303570436871524().executeScript();
2020-07-14 20:57:23,688 [19] INFO - ---------
2020-07-14 20:57:23,694 [19] INFO - Finished executing the following script:
2020-07-14 20:57:23,694 [19] INFO - ---------
2020-07-14 20:57:23,695 [19] INFO - function SE637303570436871524() {}
SE637303570436871524.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 SE637303570436871524().executeScript();
2020-07-14 20:57:23,695 [19] INFO - ---------
2020-07-14 20:57:23,695 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1298.
2020-07-14 20:57:23,696 [19] INFO - ---------
2020-07-14 20:57:23,701 [19] INFO - About to execute the following script:
2020-07-14 20:57:23,701 [19] INFO - ---------
2020-07-14 20:57:23,702 [19] INFO - function SE637303570437011532() {}
SE637303570437011532.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 SE637303570437011532().executeScript();
2020-07-14 20:57:24,426 [19] INFO - ---------
2020-07-14 20:57:24,426 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1328.
2020-07-14 20:57:24,426 [19] INFO - ---------
2020-07-14 20:57:24,427 [19] INFO - About to execute the following script:
2020-07-14 20:57:24,428 [19] INFO - ---------
2020-07-14 20:57:24,428 [19] INFO - function SE637303570444271948() {}
SE637303570444271948.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 SE637303570444271948().executeScript();
2020-07-14 20:57:24,428 [19] INFO - ---------
2020-07-14 20:57:24,437 [19] INFO - About to execute the following script:
2020-07-14 20:57:24,437 [19] INFO - ---------
2020-07-14 20:57:24,438 [19] INFO - function SE637303570444371953() {}
SE637303570444371953.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 SE637303570444371953().executeScript();
2020-07-14 20:57:24,438 [19] INFO - ---------
2020-07-14 20:57:24,442 [19] INFO - About to execute the following script:
2020-07-14 20:57:24,443 [19] INFO - ---------
2020-07-14 20:57:24,443 [19] INFO - function SE637303570444421956() {}
SE637303570444421956.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 SE637303570444661970().executeScript();
2020-07-14 20:57:24,470 [19] INFO - ---------
2020-07-14 20:57:24,470 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1333.
2020-07-14 20:57:24,471 [19] INFO - ---------
2020-07-14 20:57:24,471 [19] INFO - Finished executing the following script:
2020-07-14 20:57:24,472 [19] INFO - ---------
2020-07-14 20:57:24,472 [19] INFO - function SE637303570444371953() {}
SE637303570444371953.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 SE637303570444371953().executeScript();
2020-07-14 20:57:24,472 [19] INFO - ---------
2020-07-14 20:57:24,473 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1334.
2020-07-14 20:57:24,473 [19] INFO - ---------
2020-07-14 20:57:24,485 [19] INFO - Finished executing the following script:
2020-07-14 20:57:24,485 [19] INFO - ---------
2020-07-14 20:57:24,486 [19] INFO - function SE637303570444271948() {}
SE637303570444271948.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 SE637303570444271948().executeScript();
2020-07-14 20:57:24,486 [19] INFO - ---------
2020-07-14 20:57:24,486 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1335.
2020-07-14 20:57:24,487 [19] INFO - ---------
2020-07-14 20:57:24,489 [19] INFO - About to execute the following script:
2020-07-14 20:57:24,489 [19] INFO - ---------
2020-07-14 20:57:24,489 [19] INFO - function SE637303570444891983() {}
SE637303570444891983.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