----------------------------------------
2020-07-14 20:56:55,788 [19] INFO - ---------
2020-07-14 20:56:57,970 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 514.
2020-07-14 20:56:57,971 [19] INFO - ---------
2020-07-14 20:56:57,972 [19] INFO - About to execute the following script:
2020-07-14 20:56:57,972 [19] INFO - ---------
2020-07-14 20:56:57,973 [19] INFO - function SE637303570179726817() {}
SE637303570179726817.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 SE637303570179726817().executeScript();
2020-07-14 20:56:57,973 [19] INFO - ---------
2020-07-14 20:56:57,977 [19] INFO - About to execute the following script:
2020-07-14 20:56:57,978 [19] INFO - ---------
2020-07-14 20:56:57,978 [19] INFO - function SE637303570179776819() {}
SE637303570179776819.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 SE637303570179776819().executeScript();
2020-07-14 20:56:57,979 [19] INFO - ---------
2020-07-14 20:56:57,982 [19] INFO - About to execute the following script:
2020-07-14 20:56:57,983 [19] INFO - ---------
2020-07-14 20:56:57,983 [19] INFO - function SE637303570179826822() {}
SE637303570179826822.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-aktiv.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570179826822().executeScript();
2020-07-14 20:56:57,983 [19] INFO - ---------
2020-07-14 20:56:57,985 [19] INFO - About to execute the following script:
2020-07-14 20:56:57,986 [19] INFO - ---------
2020-07-14 20:56:57,986 [19] INFO - function SE637303570179856824() {}
SE637303570179856824.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu2.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!=3 ) { return; }
context.write("\r\n\t\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-submenu2-aktiv.html", p.id, 3) );
context.write("\r\n ");
} else {
context.write("\r\n ");
context.write( system.partial("item-submenu2.html", p.id, 3) );
context.write("\r\n ");
}
context.write("\r\n\r\n ");
}
}
context.write("\r\n\r\n\t\t
\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\submenu2.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570179856824().executeScript();
2020-07-14 20:56:57,987 [19] INFO - ---------
2020-07-14 20:56:57,990 [19] INFO - About to execute the following script:
2020-07-14 20:56:57,990 [19] INFO - ---------
2020-07-14 20:56:57,991 [19] INFO - function SE637303570179906827() {}
SE637303570179906827.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-submenu2.html'.
var pageId = context.param(0, 0);
var p = project.getPage(pageId);
context.write("\r\n\r\n\t\t
\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-submenu1-aktiv.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570179826822().executeScript();
2020-07-14 20:56:58,018 [19] INFO - ---------
2020-07-14 20:56:58,019 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 520.
2020-07-14 20:56:58,019 [19] INFO - ---------
2020-07-14 20:56:58,020 [19] INFO - Finished executing the following script:
2020-07-14 20:56:58,020 [19] INFO - ---------
2020-07-14 20:56:58,020 [19] INFO - function SE637303570179776819() {}
SE637303570179776819.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 SE637303570179776819().executeScript();
2020-07-14 20:56:58,021 [19] INFO - ---------
2020-07-14 20:56:58,021 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 521.
2020-07-14 20:56:58,022 [19] INFO - ---------
2020-07-14 20:56:58,038 [19] INFO - Finished executing the following script:
2020-07-14 20:56:58,039 [19] INFO - ---------
2020-07-14 20:56:58,039 [19] INFO - function SE637303570179726817() {}
SE637303570179726817.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 SE637303570179726817().executeScript();
2020-07-14 20:56:58,040 [19] INFO - ---------
2020-07-14 20:56:58,040 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 522.
2020-07-14 20:56:58,040 [19] INFO - ---------
2020-07-14 20:56:58,043 [19] INFO - About to execute the following script:
2020-07-14 20:56:58,043 [19] INFO - ---------
2020-07-14 20:56:58,044 [19] INFO - function SE637303570180436857() {}
SE637303570180436857.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 SE637303570199147927().executeScript();
2020-07-14 20:56:59,947 [19] INFO - ---------
2020-07-14 20:56:59,948 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 535.
2020-07-14 20:56:59,948 [19] INFO - ---------
2020-07-14 20:56:59,949 [19] INFO - Finished executing the following script:
2020-07-14 20:56:59,950 [19] INFO - ---------
2020-07-14 20:56:59,951 [19] INFO - function SE637303570199047922() {}
SE637303570199047922.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 SE637303570199047922().executeScript();
2020-07-14 20:56:59,951 [19] INFO - ---------
2020-07-14 20:56:59,951 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 536.
2020-07-14 20:56:59,952 [19] INFO - ---------
2020-07-14 20:56:59,953 [19] INFO - About to execute the following script:
2020-07-14 20:56:59,953 [19] INFO - ---------
2020-07-14 20:56:59,953 [19] INFO - function SE637303570199527949() {}
SE637303570199527949.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 SE637303570199527949().executeScript();
2020-07-14 20:56:59,954 [19] INFO - ---------
2020-07-14 20:56:59,958 [19] INFO - About to execute the following script:
2020-07-14 20:56:59,958 [19] INFO - ---------
2020-07-14 20:56:59,958 [19] INFO - function SE637303570199587952() {}
SE637303570199587952.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-hauptmenu-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-hauptmenu.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570200067980().executeScript();
2020-07-14 20:57:00,010 [19] INFO - ---------
2020-07-14 20:57:00,011 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 543.
2020-07-14 20:57:00,011 [19] INFO - ---------
2020-07-14 20:57:00,017 [19] INFO - Finished executing the following script:
2020-07-14 20:57:00,018 [19] INFO - ---------
2020-07-14 20:57:00,018 [19] INFO - function SE637303570199527949() {}
SE637303570199527949.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 SE637303570199527949().executeScript();
2020-07-14 20:57:00,018 [19] INFO - ---------
2020-07-14 20:57:00,019 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 544.
2020-07-14 20:57:00,019 [19] INFO - ---------
2020-07-14 20:57:00,020 [19] INFO - About to execute the following script:
2020-07-14 20:57:00,020 [19] INFO - ---------
2020-07-14 20:57:00,021 [19] INFO - function SE637303570200207988() {}
SE637303570200207988.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 SE637303570200207988().executeScript();
2020-07-14 20:57:00,021 [19] INFO - ---------
2020-07-14 20:57:00,022 [19] INFO - Finished executing the following script:
2020-07-14 20:57:00,023 [19] INFO - ---------
2020-07-14 20:57:00,023 [19] INFO - function SE637303570200207988() {}
SE637303570200207988.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 SE637303570200207988().executeScript();
2020-07-14 20:57:00,023 [19] INFO - ---------
2020-07-14 20:57:00,024 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 545.
2020-07-14 20:57:00,024 [19] INFO - ---------
2020-07-14 20:57:00,025 [19] INFO - About to execute the following script:
2020-07-14 20:57:00,026 [19] INFO - ---------
2020-07-14 20:57:00,026 [19] INFO - function SE637303570200257991() {}
SE637303570200257991.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 SE637303570200257991().executeScript();
2020-07-14 20:57:00,027 [19] INFO - ---------
2020-07-14 20:57:00,034 [19] INFO - Finished executing the following script:
2020-07-14 20:57:00,034 [19] INFO - ---------
2020-07-14 20:57:00,034 [19] INFO - function SE637303570200257991() {}
SE637303570200257991.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 SE637303570200257991().executeScript();
2020-07-14 20:57:00,035 [19] INFO - ---------
2020-07-14 20:57:00,035 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 546.
2020-07-14 20:57:00,035 [19] INFO - ---------
2020-07-14 20:57:00,037 [19] INFO - About to execute the following script:
2020-07-14 20:57:00,037 [19] INFO - ---------
2020-07-14 20:57:00,038 [19] INFO - function SE637303570200377998() {}
SE637303570200377998.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 SE637303570200377998().executeScript();
2020-07-14 20:57:00,344 [19] INFO - ---------
2020-07-14 20:57:00,344 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 561.
2020-07-14 20:57:00,345 [19] INFO - ---------
2020-07-14 20:57:00,346 [19] INFO - About to execute the following script:
2020-07-14 20:57:00,346 [19] INFO - ---------
2020-07-14 20:57:00,346 [19] INFO - function SE637303570203468174() {}
SE637303570203468174.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 SE637303570203468174().executeScript();
2020-07-14 20:57:00,347 [19] INFO - ---------
2020-07-14 20:57:00,351 [19] INFO - About to execute the following script:
2020-07-14 20:57:00,352 [19] INFO - ---------
2020-07-14 20:57:00,352 [19] INFO - function SE637303570203518177() {}
SE637303570203518177.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 SE637303570203518177().executeScript();
2020-07-14 20:57:00,353 [19] INFO - ---------
2020-07-14 20:57:00,356 [19] INFO - About to execute the following script:
2020-07-14 20:57:00,357 [19] INFO - ---------
2020-07-14 20:57:00,357 [19] INFO - function SE637303570203568180() {}
SE637303570203568180.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-aktiv.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570203568180().executeScript();
2020-07-14 20:57:00,357 [19] INFO - ---------
2020-07-14 20:57:00,359 [19] INFO - About to execute the following script:
2020-07-14 20:57:00,360 [19] INFO - ---------
2020-07-14 20:57:00,360 [19] INFO - function SE637303570203598182() {}
SE637303570203598182.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu2.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!=3 ) { return; }
context.write("\r\n\t\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-submenu2-aktiv.html", p.id, 3) );
context.write("\r\n ");
} else {
context.write("\r\n ");
context.write( system.partial("item-submenu2.html", p.id, 3) );
context.write("\r\n ");
}
context.write("\r\n\r\n ");
}
}
context.write("\r\n\r\n\t\t
\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\submenu2.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570203598182().executeScript();
2020-07-14 20:57:00,360 [19] INFO - ---------
2020-07-14 20:57:00,386 [19] INFO - About to execute the following script:
2020-07-14 20:57:00,387 [19] INFO - ---------
2020-07-14 20:57:00,387 [19] INFO - function SE637303570203868197() {}
SE637303570203868197.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-submenu2-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-aktiv.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570203568180().executeScript();
2020-07-14 20:57:00,422 [19] INFO - ---------
2020-07-14 20:57:00,422 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 568.
2020-07-14 20:57:00,422 [19] INFO - ---------
2020-07-14 20:57:00,423 [19] INFO - Finished executing the following script:
2020-07-14 20:57:00,423 [19] INFO - ---------
2020-07-14 20:57:00,424 [19] INFO - function SE637303570203518177() {}
SE637303570203518177.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 SE637303570203518177().executeScript();
2020-07-14 20:57:00,424 [19] INFO - ---------
2020-07-14 20:57:00,424 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 569.
2020-07-14 20:57:00,425 [19] INFO - ---------
2020-07-14 20:57:00,442 [19] INFO - Finished executing the following script:
2020-07-14 20:57:00,442 [19] INFO - ---------
2020-07-14 20:57:00,442 [19] INFO - function SE637303570203468174() {}
SE637303570203468174.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 SE637303570203468174().executeScript();
2020-07-14 20:57:00,443 [19] INFO - ---------
2020-07-14 20:57:00,443 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 570.
2020-07-14 20:57:00,443 [19] INFO - ---------
2020-07-14 20:57:00,445 [19] INFO - About to execute the following script:
2020-07-14 20:57:00,446 [19] INFO - ---------
2020-07-14 20:57:00,450 [19] INFO - function SE637303570204458231() {}
SE637303570204458231.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 SE637303570206528349().executeScript();
2020-07-14 20:57:00,677 [19] INFO - ---------
2020-07-14 20:57:00,677 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 583.
2020-07-14 20:57:00,678 [19] INFO - ---------
2020-07-14 20:57:00,679 [19] INFO - Finished executing the following script:
2020-07-14 20:57:00,680 [19] INFO - ---------
2020-07-14 20:57:00,681 [19] INFO - function SE637303570206488347() {}
SE637303570206488347.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 SE637303570206488347().executeScript();
2020-07-14 20:57:00,681 [19] INFO - ---------
2020-07-14 20:57:00,681 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 584.
2020-07-14 20:57:00,682 [19] INFO - ---------
2020-07-14 20:57:00,683 [19] INFO - About to execute the following script:
2020-07-14 20:57:00,683 [19] INFO - ---------
2020-07-14 20:57:00,684 [19] INFO - function SE637303570206838367() {}
SE637303570206838367.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 SE637303570206838367().executeScript();
2020-07-14 20:57:00,684 [19] INFO - ---------
2020-07-14 20:57:00,689 [19] INFO - About to execute the following script:
2020-07-14 20:57:00,689 [19] INFO - ---------
2020-07-14 20:57:00,690 [19] INFO - function SE637303570206898371() {}
SE637303570206898371.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-hauptmenu-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-hauptmenu.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570207388399().executeScript();
2020-07-14 20:57:00,741 [19] INFO - ---------
2020-07-14 20:57:00,742 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 591.
2020-07-14 20:57:00,742 [19] INFO - ---------
2020-07-14 20:57:00,743 [19] INFO - Finished executing the following script:
2020-07-14 20:57:00,743 [19] INFO - ---------
2020-07-14 20:57:00,743 [19] INFO - function SE637303570206838367() {}
SE637303570206838367.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 SE637303570206838367().executeScript();
2020-07-14 20:57:00,744 [19] INFO - ---------
2020-07-14 20:57:00,744 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 592.
2020-07-14 20:57:00,744 [19] INFO - ---------
2020-07-14 20:57:00,745 [19] INFO - About to execute the following script:
2020-07-14 20:57:00,745 [19] INFO - ---------
2020-07-14 20:57:00,746 [19] INFO - function SE637303570207458403() {}
SE637303570207458403.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 SE637303570207458403().executeScript();
2020-07-14 20:57:00,746 [19] INFO - ---------
2020-07-14 20:57:00,747 [19] INFO - Finished executing the following script:
2020-07-14 20:57:00,747 [19] INFO - ---------
2020-07-14 20:57:00,748 [19] INFO - function SE637303570207458403() {}
SE637303570207458403.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 SE637303570207458403().executeScript();
2020-07-14 20:57:00,748 [19] INFO - ---------
2020-07-14 20:57:00,748 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 593.
2020-07-14 20:57:00,749 [19] INFO - ---------
2020-07-14 20:57:00,750 [19] INFO - About to execute the following script:
2020-07-14 20:57:00,750 [19] INFO - ---------
2020-07-14 20:57:00,750 [19] INFO - function SE637303570207508406() {}
SE637303570207508406.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 SE637303570207508406().executeScript();
2020-07-14 20:57:00,752 [19] INFO - ---------
2020-07-14 20:57:00,758 [19] INFO - Finished executing the following script:
2020-07-14 20:57:00,758 [19] INFO - ---------
2020-07-14 20:57:00,758 [19] INFO - function SE637303570207508406() {}
SE637303570207508406.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 SE637303570207508406().executeScript();
2020-07-14 20:57:00,759 [19] INFO - ---------
2020-07-14 20:57:00,759 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 594.
2020-07-14 20:57:00,759 [19] INFO - ---------
2020-07-14 20:57:00,761 [19] INFO - About to execute the following script:
2020-07-14 20:57:00,761 [19] INFO - ---------
2020-07-14 20:57:00,762 [19] INFO - function SE637303570207618412() {}
SE637303570207618412.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 SE637303570207618412().executeScript();
2020-07-14 20:57:00,902 [19] INFO - ---------
2020-07-14 20:57:00,902 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 609.
2020-07-14 20:57:00,902 [19] INFO - ---------
2020-07-14 20:57:00,903 [19] INFO - About to execute the following script:
2020-07-14 20:57:00,904 [19] INFO - ---------
2020-07-14 20:57:00,904 [19] INFO - function SE637303570209038493() {}
SE637303570209038493.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 SE637303570209038493().executeScript();
2020-07-14 20:57:00,905 [19] INFO - ---------
2020-07-14 20:57:00,908 [19] INFO - About to execute the following script:
2020-07-14 20:57:00,909 [19] INFO - ---------
2020-07-14 20:57:00,909 [19] INFO - function SE637303570209088496() {}
SE637303570209088496.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 SE637303570209088496().executeScript();
2020-07-14 20:57:00,910 [19] INFO - ---------
2020-07-14 20:57:00,915 [19] INFO - About to execute the following script:
2020-07-14 20:57:00,915 [19] INFO - ---------
2020-07-14 20:57:00,915 [19] INFO - function SE637303570209158500() {}
SE637303570209158500.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-aktiv.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570209158500().executeScript();
2020-07-14 20:57:00,916 [19] INFO - ---------
2020-07-14 20:57:00,918 [19] INFO - About to execute the following script:
2020-07-14 20:57:00,918 [19] INFO - ---------
2020-07-14 20:57:00,919 [19] INFO - function SE637303570209188502() {}
SE637303570209188502.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu2.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!=3 ) { return; }
context.write("\r\n\t\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-submenu2-aktiv.html", p.id, 3) );
context.write("\r\n ");
} else {
context.write("\r\n ");
context.write( system.partial("item-submenu2.html", p.id, 3) );
context.write("\r\n ");
}
context.write("\r\n\r\n ");
}
}
context.write("\r\n\r\n\t\t
\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\submenu2.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570209188502().executeScript();
2020-07-14 20:57:00,919 [19] INFO - ---------
2020-07-14 20:57:00,922 [19] INFO - About to execute the following script:
2020-07-14 20:57:00,922 [19] INFO - ---------
2020-07-14 20:57:00,923 [19] INFO - function SE637303570209228504() {}
SE637303570209228504.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-submenu2-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-aktiv.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570209158500().executeScript();
2020-07-14 20:57:00,955 [19] INFO - ---------
2020-07-14 20:57:00,955 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 616.
2020-07-14 20:57:00,955 [19] INFO - ---------
2020-07-14 20:57:00,956 [19] INFO - Finished executing the following script:
2020-07-14 20:57:00,956 [19] INFO - ---------
2020-07-14 20:57:00,956 [19] INFO - function SE637303570209088496() {}
SE637303570209088496.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 SE637303570209088496().executeScript();
2020-07-14 20:57:00,957 [19] INFO - ---------
2020-07-14 20:57:00,957 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 617.
2020-07-14 20:57:00,957 [19] INFO - ---------
2020-07-14 20:57:00,974 [19] INFO - Finished executing the following script:
2020-07-14 20:57:00,974 [19] INFO - ---------
2020-07-14 20:57:00,975 [19] INFO - function SE637303570209038493() {}
SE637303570209038493.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 SE637303570209038493().executeScript();
2020-07-14 20:57:00,975 [19] INFO - ---------
2020-07-14 20:57:00,975 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 618.
2020-07-14 20:57:00,976 [19] INFO - ---------
2020-07-14 20:57:00,977 [19] INFO - About to execute the following script:
2020-07-14 20:57:00,978 [19] INFO - ---------
2020-07-14 20:57:00,978 [19] INFO - function SE637303570209778535() {}
SE637303570209778535.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 SE637303570211808651().executeScript();
2020-07-14 20:57:01,219 [19] INFO - ---------
2020-07-14 20:57:01,219 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 631.
2020-07-14 20:57:01,220 [19] INFO - ---------
2020-07-14 20:57:01,221 [19] INFO - Finished executing the following script:
2020-07-14 20:57:01,222 [19] INFO - ---------
2020-07-14 20:57:01,222 [19] INFO - function SE637303570211728647() {}
SE637303570211728647.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 SE637303570211728647().executeScript();
2020-07-14 20:57:01,223 [19] INFO - ---------
2020-07-14 20:57:01,223 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 632.
2020-07-14 20:57:01,223 [19] INFO - ---------
2020-07-14 20:57:01,225 [19] INFO - About to execute the following script:
2020-07-14 20:57:01,225 [19] INFO - ---------
2020-07-14 20:57:01,225 [19] INFO - function SE637303570212258677() {}
SE637303570212258677.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 SE637303570212258677().executeScript();
2020-07-14 20:57:01,227 [19] INFO - ---------
2020-07-14 20:57:01,231 [19] INFO - About to execute the following script:
2020-07-14 20:57:01,232 [19] INFO - ---------
2020-07-14 20:57:01,232 [19] INFO - function SE637303570212318681() {}
SE637303570212318681.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-hauptmenu-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-hauptmenu.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570212858712().executeScript();
2020-07-14 20:57:01,289 [19] INFO - ---------
2020-07-14 20:57:01,290 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 639.
2020-07-14 20:57:01,290 [19] INFO - ---------
2020-07-14 20:57:01,291 [19] INFO - Finished executing the following script:
2020-07-14 20:57:01,291 [19] INFO - ---------
2020-07-14 20:57:01,291 [19] INFO - function SE637303570212258677() {}
SE637303570212258677.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 SE637303570212258677().executeScript();
2020-07-14 20:57:01,292 [19] INFO - ---------
2020-07-14 20:57:01,292 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 640.
2020-07-14 20:57:01,293 [19] INFO - ---------
2020-07-14 20:57:01,293 [19] INFO - About to execute the following script:
2020-07-14 20:57:01,294 [19] INFO - ---------
2020-07-14 20:57:01,294 [19] INFO - function SE637303570212938716() {}
SE637303570212938716.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 SE637303570212938716().executeScript();
2020-07-14 20:57:01,294 [19] INFO - ---------
2020-07-14 20:57:01,296 [19] INFO - Finished executing the following script:
2020-07-14 20:57:01,296 [19] INFO - ---------
2020-07-14 20:57:01,296 [19] INFO - function SE637303570212938716() {}
SE637303570212938716.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 SE637303570212938716().executeScript();
2020-07-14 20:57:01,297 [19] INFO - ---------
2020-07-14 20:57:01,297 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 641.
2020-07-14 20:57:01,297 [19] INFO - ---------
2020-07-14 20:57:01,298 [19] INFO - About to execute the following script:
2020-07-14 20:57:01,299 [19] INFO - ---------
2020-07-14 20:57:01,299 [19] INFO - function SE637303570212988719() {}
SE637303570212988719.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 SE637303570212988719().executeScript();
2020-07-14 20:57:01,300 [19] INFO - ---------
2020-07-14 20:57:01,312 [19] INFO - Finished executing the following script:
2020-07-14 20:57:01,312 [19] INFO - ---------
2020-07-14 20:57:01,312 [19] INFO - function SE637303570212988719() {}
SE637303570212988719.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 SE637303570212988719().executeScript();
2020-07-14 20:57:01,313 [19] INFO - ---------
2020-07-14 20:57:01,314 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 642.
2020-07-14 20:57:01,314 [19] INFO - ---------
2020-07-14 20:57:01,316 [19] INFO - About to execute the following script:
2020-07-14 20:57:01,316 [19] INFO - ---------
2020-07-14 20:57:01,316 [19] INFO - function SE637303570213168729() {}
SE637303570213168729.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 SE637303570213168729().executeScript();
2020-07-14 20:57:02,924 [19] INFO - ---------
2020-07-14 20:57:02,925 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 660.
2020-07-14 20:57:02,925 [19] INFO - ---------
2020-07-14 20:57:02,926 [19] INFO - About to execute the following script:
2020-07-14 20:57:02,926 [19] INFO - ---------
2020-07-14 20:57:02,927 [19] INFO - function SE637303570229269650() {}
SE637303570229269650.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 SE637303570229269650().executeScript();
2020-07-14 20:57:02,927 [19] INFO - ---------
2020-07-14 20:57:02,932 [19] INFO - About to execute the following script:
2020-07-14 20:57:02,932 [19] INFO - ---------
2020-07-14 20:57:02,932 [19] INFO - function SE637303570229329654() {}
SE637303570229329654.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 SE637303570229329654().executeScript();
2020-07-14 20:57:02,933 [19] INFO - ---------
2020-07-14 20:57:02,937 [19] INFO - About to execute the following script:
2020-07-14 20:57:02,938 [19] INFO - ---------
2020-07-14 20:57:02,938 [19] INFO - function SE637303570229379656() {}
SE637303570229379656.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-aktiv.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570229379656().executeScript();
2020-07-14 20:57:02,938 [19] INFO - ---------
2020-07-14 20:57:02,940 [19] INFO - About to execute the following script:
2020-07-14 20:57:02,941 [19] INFO - ---------
2020-07-14 20:57:02,941 [19] INFO - function SE637303570229409658() {}
SE637303570229409658.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu2.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!=3 ) { return; }
context.write("\r\n\t\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-submenu2-aktiv.html", p.id, 3) );
context.write("\r\n ");
} else {
context.write("\r\n ");
context.write( system.partial("item-submenu2.html", p.id, 3) );
context.write("\r\n ");
}
context.write("\r\n\r\n ");
}
}
context.write("\r\n\r\n\t\t
\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\submenu2.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570229409658().executeScript();
2020-07-14 20:57:02,941 [19] INFO - ---------
2020-07-14 20:57:02,945 [19] INFO - About to execute the following script:
2020-07-14 20:57:02,945 [19] INFO - ---------
2020-07-14 20:57:02,945 [19] INFO - function SE637303570229459661() {}
SE637303570229459661.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-submenu2.html'.
var pageId = context.param(0, 0);
var p = project.getPage(pageId);
context.write("\r\n\r\n\t\t
\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-submenu1-aktiv.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570229379656().executeScript();
2020-07-14 20:57:02,977 [19] INFO - ---------
2020-07-14 20:57:02,978 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 667.
2020-07-14 20:57:02,978 [19] INFO - ---------
2020-07-14 20:57:02,979 [19] INFO - Finished executing the following script:
2020-07-14 20:57:02,979 [19] INFO - ---------
2020-07-14 20:57:02,979 [19] INFO - function SE637303570229329654() {}
SE637303570229329654.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 SE637303570229329654().executeScript();
2020-07-14 20:57:02,980 [19] INFO - ---------
2020-07-14 20:57:02,980 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 668.
2020-07-14 20:57:02,980 [19] INFO - ---------
2020-07-14 20:57:02,997 [19] INFO - Finished executing the following script:
2020-07-14 20:57:02,998 [19] INFO - ---------
2020-07-14 20:57:02,998 [19] INFO - function SE637303570229269650() {}
SE637303570229269650.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 SE637303570229269650().executeScript();
2020-07-14 20:57:02,998 [19] INFO - ---------
2020-07-14 20:57:02,999 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 669.
2020-07-14 20:57:02,999 [19] INFO - ---------
2020-07-14 20:57:03,001 [19] INFO - About to execute the following script:
2020-07-14 20:57:03,001 [19] INFO - ---------
2020-07-14 20:57:03,002 [19] INFO - function SE637303570230019693() {}
SE637303570230019693.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 SE637303570232239820().executeScript();
2020-07-14 20:57:03,251 [19] INFO - ---------
2020-07-14 20:57:03,251 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 682.
2020-07-14 20:57:03,252 [19] INFO - ---------
2020-07-14 20:57:03,253 [19] INFO - Finished executing the following script:
2020-07-14 20:57:03,254 [19] INFO - ---------
2020-07-14 20:57:03,254 [19] INFO - function SE637303570232199818() {}
SE637303570232199818.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 SE637303570232199818().executeScript();
2020-07-14 20:57:03,254 [19] INFO - ---------
2020-07-14 20:57:03,255 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 683.
2020-07-14 20:57:03,255 [19] INFO - ---------
2020-07-14 20:57:03,256 [19] INFO - About to execute the following script:
2020-07-14 20:57:03,256 [19] INFO - ---------
2020-07-14 20:57:03,257 [19] INFO - function SE637303570232569839() {}
SE637303570232569839.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 SE637303570232569839().executeScript();
2020-07-14 20:57:03,257 [19] INFO - ---------
2020-07-14 20:57:03,262 [19] INFO - About to execute the following script:
2020-07-14 20:57:03,262 [19] INFO - ---------
2020-07-14 20:57:03,262 [19] INFO - function SE637303570232619842() {}
SE637303570232619842.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-hauptmenu-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-hauptmenu.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570233099869().executeScript();
2020-07-14 20:57:03,312 [19] INFO - ---------
2020-07-14 20:57:03,313 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 690.
2020-07-14 20:57:03,313 [19] INFO - ---------
2020-07-14 20:57:03,314 [19] INFO - Finished executing the following script:
2020-07-14 20:57:03,315 [19] INFO - ---------
2020-07-14 20:57:03,315 [19] INFO - function SE637303570232569839() {}
SE637303570232569839.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 SE637303570232569839().executeScript();
2020-07-14 20:57:03,315 [19] INFO - ---------
2020-07-14 20:57:03,316 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 691.
2020-07-14 20:57:03,316 [19] INFO - ---------
2020-07-14 20:57:03,317 [19] INFO - About to execute the following script:
2020-07-14 20:57:03,317 [19] INFO - ---------
2020-07-14 20:57:03,318 [19] INFO - function SE637303570233179874() {}
SE637303570233179874.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 SE637303570233179874().executeScript();
2020-07-14 20:57:03,318 [19] INFO - ---------
2020-07-14 20:57:03,319 [19] INFO - Finished executing the following script:
2020-07-14 20:57:03,319 [19] INFO - ---------
2020-07-14 20:57:03,320 [19] INFO - function SE637303570233179874() {}
SE637303570233179874.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 SE637303570233179874().executeScript();
2020-07-14 20:57:03,320 [19] INFO - ---------
2020-07-14 20:57:03,320 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 692.
2020-07-14 20:57:03,321 [19] INFO - ---------
2020-07-14 20:57:03,322 [19] INFO - About to execute the following script:
2020-07-14 20:57:03,322 [19] INFO - ---------
2020-07-14 20:57:03,322 [19] INFO - function SE637303570233229877() {}
SE637303570233229877.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 SE637303570233229877().executeScript();
2020-07-14 20:57:03,323 [19] INFO - ---------
2020-07-14 20:57:03,329 [19] INFO - Finished executing the following script:
2020-07-14 20:57:03,330 [19] INFO - ---------
2020-07-14 20:57:03,330 [19] INFO - function SE637303570233229877() {}
SE637303570233229877.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 SE637303570233229877().executeScript();
2020-07-14 20:57:03,331 [19] INFO - ---------
2020-07-14 20:57:03,331 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 693.
2020-07-14 20:57:03,331 [19] INFO - ---------
2020-07-14 20:57:03,344 [19] INFO - About to execute the following script:
2020-07-14 20:57:03,345 [19] INFO - ---------
2020-07-14 20:57:03,345 [19] INFO - function SE637303570233449889() {}
SE637303570233449889.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 SE637303570233449889().executeScript();
2020-07-14 20:57:03,648 [19] INFO - ---------
2020-07-14 20:57:03,648 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 711.
2020-07-14 20:57:03,649 [19] INFO - ---------
2020-07-14 20:57:03,650 [19] INFO - About to execute the following script:
2020-07-14 20:57:03,650 [19] INFO - ---------
2020-07-14 20:57:03,650 [19] INFO - function SE637303570236500064() {}
SE637303570236500064.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 SE637303570236500064().executeScript();
2020-07-14 20:57:03,651 [19] INFO - ---------
2020-07-14 20:57:03,656 [19] INFO - About to execute the following script:
2020-07-14 20:57:03,656 [19] INFO - ---------
2020-07-14 20:57:03,656 [19] INFO - function SE637303570236550067() {}
SE637303570236550067.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 SE637303570236550067().executeScript();
2020-07-14 20:57:03,657 [19] INFO - ---------
2020-07-14 20:57:03,661 [19] INFO - About to execute the following script:
2020-07-14 20:57:03,662 [19] INFO - ---------
2020-07-14 20:57:03,662 [19] INFO - function SE637303570236610070() {}
SE637303570236610070.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-aktiv.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570236610070().executeScript();
2020-07-14 20:57:03,662 [19] INFO - ---------
2020-07-14 20:57:03,665 [19] INFO - About to execute the following script:
2020-07-14 20:57:03,665 [19] INFO - ---------
2020-07-14 20:57:03,665 [19] INFO - function SE637303570236650072() {}
SE637303570236650072.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu2.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!=3 ) { return; }
context.write("\r\n\t\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-submenu2-aktiv.html", p.id, 3) );
context.write("\r\n ");
} else {
context.write("\r\n ");
context.write( system.partial("item-submenu2.html", p.id, 3) );
context.write("\r\n ");
}
context.write("\r\n\r\n ");
}
}
context.write("\r\n\r\n\t\t
\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\submenu2.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570236650072().executeScript();
2020-07-14 20:57:03,666 [19] INFO - ---------
2020-07-14 20:57:03,669 [19] INFO - About to execute the following script:
2020-07-14 20:57:03,669 [19] INFO - ---------
2020-07-14 20:57:03,670 [19] INFO - function SE637303570236690075() {}
SE637303570236690075.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-submenu2.html'.
var pageId = context.param(0, 0);
var p = project.getPage(pageId);
context.write("\r\n\r\n\t\t
\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-submenu1-aktiv.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570236610070().executeScript();
2020-07-14 20:57:03,704 [19] INFO - ---------
2020-07-14 20:57:03,705 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 718.
2020-07-14 20:57:03,705 [19] INFO - ---------
2020-07-14 20:57:03,706 [19] INFO - Finished executing the following script:
2020-07-14 20:57:03,706 [19] INFO - ---------
2020-07-14 20:57:03,706 [19] INFO - function SE637303570236550067() {}
SE637303570236550067.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 SE637303570236550067().executeScript();
2020-07-14 20:57:03,707 [19] INFO - ---------
2020-07-14 20:57:03,707 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 719.
2020-07-14 20:57:03,707 [19] INFO - ---------
2020-07-14 20:57:03,723 [19] INFO - Finished executing the following script:
2020-07-14 20:57:03,724 [19] INFO - ---------
2020-07-14 20:57:03,724 [19] INFO - function SE637303570236500064() {}
SE637303570236500064.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 SE637303570236500064().executeScript();
2020-07-14 20:57:03,725 [19] INFO - ---------
2020-07-14 20:57:03,725 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 720.
2020-07-14 20:57:03,725 [19] INFO - ---------
2020-07-14 20:57:03,727 [19] INFO - About to execute the following script:
2020-07-14 20:57:03,727 [19] INFO - ---------
2020-07-14 20:57:03,728 [19] INFO - function SE637303570237270108() {}
SE637303570237270108.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 SE637303570239440232().executeScript();
2020-07-14 20:57:03,983 [19] INFO - ---------
2020-07-14 20:57:03,983 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 733.
2020-07-14 20:57:03,983 [19] INFO - ---------
2020-07-14 20:57:03,985 [19] INFO - Finished executing the following script:
2020-07-14 20:57:03,986 [19] INFO - ---------
2020-07-14 20:57:03,986 [19] INFO - function SE637303570239350227() {}
SE637303570239350227.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 SE637303570239350227().executeScript();
2020-07-14 20:57:03,986 [19] INFO - ---------
2020-07-14 20:57:03,987 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 734.
2020-07-14 20:57:03,987 [19] INFO - ---------
2020-07-14 20:57:03,988 [19] INFO - About to execute the following script:
2020-07-14 20:57:03,989 [19] INFO - ---------
2020-07-14 20:57:03,989 [19] INFO - function SE637303570239880257() {}
SE637303570239880257.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 SE637303570239880257().executeScript();
2020-07-14 20:57:03,990 [19] INFO - ---------
2020-07-14 20:57:03,995 [19] INFO - About to execute the following script:
2020-07-14 20:57:03,995 [19] INFO - ---------
2020-07-14 20:57:03,995 [19] INFO - function SE637303570239940261() {}
SE637303570239940261.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-hauptmenu-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-hauptmenu.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570240450290().executeScript();
2020-07-14 20:57:04,049 [19] INFO - ---------
2020-07-14 20:57:04,049 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 741.
2020-07-14 20:57:04,050 [19] INFO - ---------
2020-07-14 20:57:04,050 [19] INFO - Finished executing the following script:
2020-07-14 20:57:04,051 [19] INFO - ---------
2020-07-14 20:57:04,051 [19] INFO - function SE637303570239880257() {}
SE637303570239880257.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 SE637303570239880257().executeScript();
2020-07-14 20:57:04,051 [19] INFO - ---------
2020-07-14 20:57:04,052 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 742.
2020-07-14 20:57:04,052 [19] INFO - ---------
2020-07-14 20:57:04,053 [19] INFO - About to execute the following script:
2020-07-14 20:57:04,053 [19] INFO - ---------
2020-07-14 20:57:04,053 [19] INFO - function SE637303570240530294() {}
SE637303570240530294.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 SE637303570240530294().executeScript();
2020-07-14 20:57:04,054 [19] INFO - ---------
2020-07-14 20:57:04,055 [19] INFO - Finished executing the following script:
2020-07-14 20:57:04,055 [19] INFO - ---------
2020-07-14 20:57:04,056 [19] INFO - function SE637303570240530294() {}
SE637303570240530294.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 SE637303570240530294().executeScript();
2020-07-14 20:57:04,056 [19] INFO - ---------
2020-07-14 20:57:04,056 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 743.
2020-07-14 20:57:04,057 [19] INFO - ---------
2020-07-14 20:57:04,058 [19] INFO - About to execute the following script:
2020-07-14 20:57:04,058 [19] INFO - ---------
2020-07-14 20:57:04,058 [19] INFO - function SE637303570240580297() {}
SE637303570240580297.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 SE637303570240580297().executeScript();
2020-07-14 20:57:04,059 [19] INFO - ---------
2020-07-14 20:57:04,066 [19] INFO - Finished executing the following script:
2020-07-14 20:57:04,066 [19] INFO - ---------
2020-07-14 20:57:04,067 [19] INFO - function SE637303570240580297() {}
SE637303570240580297.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 SE637303570240580297().executeScript();
2020-07-14 20:57:04,067 [19] INFO - ---------
2020-07-14 20:57:04,067 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 744.
2020-07-14 20:57:04,068 [19] INFO - ---------
2020-07-14 20:57:04,069 [19] INFO - About to execute the following script:
2020-07-14 20:57:04,070 [19] INFO - ---------
2020-07-14 20:57:04,070 [19] INFO - function SE637303570240690303() {}
SE637303570240690303.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
Irgendwie passte der so garn nicht in das ürsprüngliche Zielbild.
\r\n
\r\n
Über einen Arbeitskollegen waren wir auf ein solches Gefährt gestoßen. \r\nInteressant, aber schied sehr schnell aus der Liste der Begehrlichkeiten wieder \r\naus.
\r\n\r\n\r\n\t\r\n\r\n\t
\r\n
\r\n\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\widgets\text\standard.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570242620414().executeScript();
2020-07-14 20:57:04,263 [19] INFO - ---------
2020-07-14 20:57:04,270 [19] INFO - Finished executing the following script:
2020-07-14 20:57:04,271 [19] INFO - ---------
2020-07-14 20:57:04,271 [19] INFO - function SE637303570242620414() {}
SE637303570242620414.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\widgets\text\standard.html'.
context.write("\r\n
Irgendwie passte der so garn nicht in das ürsprüngliche Zielbild.
\r\n
\r\n
Über einen Arbeitskollegen waren wir auf ein solches Gefährt gestoßen. \r\nInteressant, aber schied sehr schnell aus der Liste der Begehrlichkeiten wieder \r\naus.
\r\n\r\n\r\n\t\r\n\r\n\t
\r\n
\r\n\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\widgets\text\standard.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570242620414().executeScript();
2020-07-14 20:57:04,272 [19] INFO - ---------
2020-07-14 20:57:04,272 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 755.
2020-07-14 20:57:04,272 [19] INFO - ---------
2020-07-14 20:57:04,298 [19] INFO - About to execute the following script:
2020-07-14 20:57:04,299 [19] INFO - ---------
2020-07-14 20:57:04,299 [19] INFO - function SE637303570242980434() {}
SE637303570242980434.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\widgets\text\standard.html'.
context.write( system.partial("article-begin.html") );
context.write("\r\n\t");
if ( article.inArea("News") ) {
context.write("\r\n\t\t
Im Netz fanden sich im Sommer 2017 noch diverse IFA Modelle, \r\nwelche bereits als Fernreisemobil (teil-)umgebaut waren. Auch haben wir 3 \r\ninteressante W50 in Mitteldeutschland gefunden, welche sich zum Ausbau bestens \r\ngeeignet hätten.
\r\n
\r\n\r\n\r\n\t\r\n\r\n\t
\r\n
\r\n\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\widgets\text\standard.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570243380457().executeScript();
2020-07-14 20:57:04,339 [19] INFO - ---------
2020-07-14 20:57:04,344 [19] INFO - Finished executing the following script:
2020-07-14 20:57:04,344 [19] INFO - ---------
2020-07-14 20:57:04,345 [19] INFO - function SE637303570243380457() {}
SE637303570243380457.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\widgets\text\standard.html'.
context.write("\r\n
Im Netz fanden sich im Sommer 2017 noch diverse IFA Modelle, \r\nwelche bereits als Fernreisemobil (teil-)umgebaut waren. Auch haben wir 3 \r\ninteressante W50 in Mitteldeutschland gefunden, welche sich zum Ausbau bestens \r\ngeeignet hätten.
\r\n
\r\n\r\n\r\n\t\r\n\r\n\t
\r\n
\r\n\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\widgets\text\standard.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570243380457().executeScript();
2020-07-14 20:57:04,345 [19] INFO - ---------
2020-07-14 20:57:04,345 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 761.
2020-07-14 20:57:04,346 [19] INFO - ---------
2020-07-14 20:57:04,375 [19] INFO - About to execute the following script:
2020-07-14 20:57:04,375 [19] INFO - ---------
2020-07-14 20:57:04,376 [19] INFO - function SE637303570243750478() {}
SE637303570243750478.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\widgets\text\standard.html'.
context.write( system.partial("article-begin.html") );
context.write("\r\n\t");
if ( article.inArea("News") ) {
context.write("\r\n\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 SE637303570240690303().executeScript();
2020-07-14 20:57:04,552 [19] INFO - ---------
2020-07-14 20:57:04,552 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 776.
2020-07-14 20:57:04,552 [19] INFO - ---------
2020-07-14 20:57:04,553 [19] INFO - About to execute the following script:
2020-07-14 20:57:04,554 [19] INFO - ---------
2020-07-14 20:57:04,554 [19] INFO - function SE637303570245530580() {}
SE637303570245530580.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 SE637303570245530580().executeScript();
2020-07-14 20:57:04,554 [19] INFO - ---------
2020-07-14 20:57:04,560 [19] INFO - About to execute the following script:
2020-07-14 20:57:04,561 [19] INFO - ---------
2020-07-14 20:57:04,561 [19] INFO - function SE637303570245600584() {}
SE637303570245600584.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 SE637303570245600584().executeScript();
2020-07-14 20:57:04,561 [19] INFO - ---------
2020-07-14 20:57:04,566 [19] INFO - About to execute the following script:
2020-07-14 20:57:04,567 [19] INFO - ---------
2020-07-14 20:57:04,567 [19] INFO - function SE637303570245660588() {}
SE637303570245660588.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-aktiv.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570245660588().executeScript();
2020-07-14 20:57:04,568 [19] INFO - ---------
2020-07-14 20:57:04,570 [19] INFO - About to execute the following script:
2020-07-14 20:57:04,570 [19] INFO - ---------
2020-07-14 20:57:04,572 [19] INFO - function SE637303570245700590() {}
SE637303570245700590.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\submenu2.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!=3 ) { return; }
context.write("\r\n\t\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-submenu2-aktiv.html", p.id, 3) );
context.write("\r\n ");
} else {
context.write("\r\n ");
context.write( system.partial("item-submenu2.html", p.id, 3) );
context.write("\r\n ");
}
context.write("\r\n\r\n ");
}
}
context.write("\r\n\r\n\t\t
\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\submenu2.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570245700590().executeScript();
2020-07-14 20:57:04,572 [19] INFO - ---------
2020-07-14 20:57:04,576 [19] INFO - About to execute the following script:
2020-07-14 20:57:04,577 [19] INFO - ---------
2020-07-14 20:57:04,577 [19] INFO - function SE637303570245760593() {}
SE637303570245760593.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-submenu2.html'.
var pageId = context.param(0, 0);
var p = project.getPage(pageId);
context.write("\r\n\r\n\t\t
\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-submenu1-aktiv.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570245660588().executeScript();
2020-07-14 20:57:05,780 [19] INFO - ---------
2020-07-14 20:57:05,781 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 783.
2020-07-14 20:57:05,781 [19] INFO - ---------
2020-07-14 20:57:05,782 [19] INFO - Finished executing the following script:
2020-07-14 20:57:05,782 [19] INFO - ---------
2020-07-14 20:57:05,782 [19] INFO - function SE637303570245600584() {}
SE637303570245600584.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 SE637303570245600584().executeScript();
2020-07-14 20:57:05,783 [19] INFO - ---------
2020-07-14 20:57:05,783 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 784.
2020-07-14 20:57:05,784 [19] INFO - ---------
2020-07-14 20:57:05,800 [19] INFO - Finished executing the following script:
2020-07-14 20:57:05,800 [19] INFO - ---------
2020-07-14 20:57:05,801 [19] INFO - function SE637303570245530580() {}
SE637303570245530580.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 SE637303570245530580().executeScript();
2020-07-14 20:57:05,801 [19] INFO - ---------
2020-07-14 20:57:05,802 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 785.
2020-07-14 20:57:05,802 [19] INFO - ---------
2020-07-14 20:57:05,804 [19] INFO - About to execute the following script:
2020-07-14 20:57:05,804 [19] INFO - ---------
2020-07-14 20:57:05,805 [19] INFO - function SE637303570258031295() {}
SE637303570258031295.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