\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 SE637303570279382516().executeScript();
2020-07-14 20:57:07,962 [19] INFO - ---------
2020-07-14 20:57:07,963 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 798.
2020-07-14 20:57:07,963 [19] INFO - ---------
2020-07-14 20:57:07,965 [19] INFO - Finished executing the following script:
2020-07-14 20:57:07,965 [19] INFO - ---------
2020-07-14 20:57:07,966 [19] INFO - function SE637303570279352515() {}
SE637303570279352515.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 SE637303570279352515().executeScript();
2020-07-14 20:57:07,966 [19] INFO - ---------
2020-07-14 20:57:07,966 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 799.
2020-07-14 20:57:07,967 [19] INFO - ---------
2020-07-14 20:57:07,967 [19] INFO - About to execute the following script:
2020-07-14 20:57:07,968 [19] INFO - ---------
2020-07-14 20:57:07,968 [19] INFO - function SE637303570279672533() {}
SE637303570279672533.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 SE637303570279672533().executeScript();
2020-07-14 20:57:07,968 [19] INFO - ---------
2020-07-14 20:57:07,974 [19] INFO - About to execute the following script:
2020-07-14 20:57:07,974 [19] INFO - ---------
2020-07-14 20:57:07,974 [19] INFO - function SE637303570279732537() {}
SE637303570279732537.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 SE637303570280202563().executeScript();
2020-07-14 20:57:08,024 [19] INFO - ---------
2020-07-14 20:57:08,024 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 806.
2020-07-14 20:57:08,025 [19] INFO - ---------
2020-07-14 20:57:08,025 [19] INFO - Finished executing the following script:
2020-07-14 20:57:08,026 [19] INFO - ---------
2020-07-14 20:57:08,026 [19] INFO - function SE637303570279672533() {}
SE637303570279672533.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 SE637303570279672533().executeScript();
2020-07-14 20:57:08,026 [19] INFO - ---------
2020-07-14 20:57:08,027 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 807.
2020-07-14 20:57:08,027 [19] INFO - ---------
2020-07-14 20:57:08,028 [19] INFO - About to execute the following script:
2020-07-14 20:57:08,028 [19] INFO - ---------
2020-07-14 20:57:08,028 [19] INFO - function SE637303570280282568() {}
SE637303570280282568.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 SE637303570280282568().executeScript();
2020-07-14 20:57:08,029 [19] INFO - ---------
2020-07-14 20:57:08,030 [19] INFO - Finished executing the following script:
2020-07-14 20:57:08,030 [19] INFO - ---------
2020-07-14 20:57:08,030 [19] INFO - function SE637303570280282568() {}
SE637303570280282568.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 SE637303570280282568().executeScript();
2020-07-14 20:57:08,031 [19] INFO - ---------
2020-07-14 20:57:08,031 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 808.
2020-07-14 20:57:08,031 [19] INFO - ---------
2020-07-14 20:57:08,032 [19] INFO - About to execute the following script:
2020-07-14 20:57:08,033 [19] INFO - ---------
2020-07-14 20:57:08,033 [19] INFO - function SE637303570280322570() {}
SE637303570280322570.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 SE637303570280322570().executeScript();
2020-07-14 20:57:08,034 [19] INFO - ---------
2020-07-14 20:57:08,040 [19] INFO - Finished executing the following script:
2020-07-14 20:57:08,040 [19] INFO - ---------
2020-07-14 20:57:08,041 [19] INFO - function SE637303570280322570() {}
SE637303570280322570.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 SE637303570280322570().executeScript();
2020-07-14 20:57:08,041 [19] INFO - ---------
2020-07-14 20:57:08,041 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 809.
2020-07-14 20:57:08,042 [19] INFO - ---------
2020-07-14 20:57:08,044 [19] INFO - About to execute the following script:
2020-07-14 20:57:08,044 [19] INFO - ---------
2020-07-14 20:57:08,044 [19] INFO - function SE637303570280432577() {}
SE637303570280432577.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 SE637303570281332628().executeScript();
2020-07-14 20:57:08,135 [19] INFO - ---------
2020-07-14 20:57:08,137 [19] INFO - Finished executing the following script:
2020-07-14 20:57:08,138 [19] INFO - ---------
2020-07-14 20:57:08,138 [19] INFO - function SE637303570281332628() {}
SE637303570281332628.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 SE637303570281332628().executeScript();
2020-07-14 20:57:08,139 [19] INFO - ---------
2020-07-14 20:57:08,139 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 820.
2020-07-14 20:57:08,139 [19] INFO - ---------
2020-07-14 20:57:08,147 [19] INFO - About to execute the following script:
2020-07-14 20:57:08,147 [19] INFO - ---------
2020-07-14 20:57:08,148 [19] INFO - function SE637303570281472636() {}
SE637303570281472636.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 SE637303570281802655().executeScript();
2020-07-14 20:57:08,181 [19] INFO - ---------
2020-07-14 20:57:08,183 [19] INFO - Finished executing the following script:
2020-07-14 20:57:08,183 [19] INFO - ---------
2020-07-14 20:57:08,184 [19] INFO - function SE637303570281802655() {}
SE637303570281802655.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 SE637303570281802655().executeScript();
2020-07-14 20:57:08,184 [19] INFO - ---------
2020-07-14 20:57:08,185 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 826.
2020-07-14 20:57:08,185 [19] INFO - ---------
2020-07-14 20:57:08,193 [19] INFO - About to execute the following script:
2020-07-14 20:57:08,193 [19] INFO - ---------
2020-07-14 20:57:08,193 [19] INFO - function SE637303570281932662() {}
SE637303570281932662.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 SE637303570280432577().executeScript();
2020-07-14 20:57:08,317 [19] INFO - ---------
2020-07-14 20:57:08,317 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 841.
2020-07-14 20:57:08,318 [19] INFO - ---------
2020-07-14 20:57:08,319 [19] INFO - About to execute the following script:
2020-07-14 20:57:08,319 [19] INFO - ---------
2020-07-14 20:57:08,319 [19] INFO - function SE637303570283192734() {}
SE637303570283192734.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 SE637303570283192734().executeScript();
2020-07-14 20:57:08,320 [19] INFO - ---------
2020-07-14 20:57:08,325 [19] INFO - About to execute the following script:
2020-07-14 20:57:08,325 [19] INFO - ---------
2020-07-14 20:57:08,325 [19] INFO - function SE637303570283252738() {}
SE637303570283252738.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 SE637303570283252738().executeScript();
2020-07-14 20:57:08,326 [19] INFO - ---------
2020-07-14 20:57:08,331 [19] INFO - About to execute the following script:
2020-07-14 20:57:08,331 [19] INFO - ---------
2020-07-14 20:57:08,331 [19] INFO - function SE637303570283312741() {}
SE637303570283312741.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 SE637303570283312741().executeScript();
2020-07-14 20:57:08,332 [19] INFO - ---------
2020-07-14 20:57:08,334 [19] INFO - About to execute the following script:
2020-07-14 20:57:08,334 [19] INFO - ---------
2020-07-14 20:57:08,334 [19] INFO - function SE637303570283342743() {}
SE637303570283342743.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 SE637303570283342743().executeScript();
2020-07-14 20:57:08,335 [19] INFO - ---------
2020-07-14 20:57:08,338 [19] INFO - About to execute the following script:
2020-07-14 20:57:08,339 [19] INFO - ---------
2020-07-14 20:57:08,339 [19] INFO - function SE637303570283382745() {}
SE637303570283382745.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 SE637303570283312741().executeScript();
2020-07-14 20:57:08,372 [19] INFO - ---------
2020-07-14 20:57:08,372 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 848.
2020-07-14 20:57:08,372 [19] INFO - ---------
2020-07-14 20:57:08,373 [19] INFO - Finished executing the following script:
2020-07-14 20:57:08,373 [19] INFO - ---------
2020-07-14 20:57:08,374 [19] INFO - function SE637303570283252738() {}
SE637303570283252738.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 SE637303570283252738().executeScript();
2020-07-14 20:57:08,374 [19] INFO - ---------
2020-07-14 20:57:08,375 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 849.
2020-07-14 20:57:08,375 [19] INFO - ---------
2020-07-14 20:57:08,391 [19] INFO - Finished executing the following script:
2020-07-14 20:57:08,392 [19] INFO - ---------
2020-07-14 20:57:08,392 [19] INFO - function SE637303570283192734() {}
SE637303570283192734.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 SE637303570283192734().executeScript();
2020-07-14 20:57:08,393 [19] INFO - ---------
2020-07-14 20:57:08,393 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 850.
2020-07-14 20:57:08,393 [19] INFO - ---------
2020-07-14 20:57:08,395 [19] INFO - About to execute the following script:
2020-07-14 20:57:08,395 [19] INFO - ---------
2020-07-14 20:57:08,396 [19] INFO - function SE637303570283952778() {}
SE637303570283952778.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 SE637303570286132903().executeScript();
2020-07-14 20:57:08,657 [19] INFO - ---------
2020-07-14 20:57:08,658 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 863.
2020-07-14 20:57:08,658 [19] INFO - ---------
2020-07-14 20:57:08,659 [19] INFO - Finished executing the following script:
2020-07-14 20:57:08,660 [19] INFO - ---------
2020-07-14 20:57:08,660 [19] INFO - function SE637303570286042897() {}
SE637303570286042897.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 SE637303570286042897().executeScript();
2020-07-14 20:57:08,661 [19] INFO - ---------
2020-07-14 20:57:08,661 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 864.
2020-07-14 20:57:08,661 [19] INFO - ---------
2020-07-14 20:57:08,662 [19] INFO - About to execute the following script:
2020-07-14 20:57:08,662 [19] INFO - ---------
2020-07-14 20:57:08,663 [19] INFO - function SE637303570286622931() {}
SE637303570286622931.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 SE637303570286622931().executeScript();
2020-07-14 20:57:08,663 [19] INFO - ---------
2020-07-14 20:57:08,669 [19] INFO - About to execute the following script:
2020-07-14 20:57:08,670 [19] INFO - ---------
2020-07-14 20:57:08,670 [19] INFO - function SE637303570286692935() {}
SE637303570286692935.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 SE637303570287262967().executeScript();
2020-07-14 20:57:08,730 [19] INFO - ---------
2020-07-14 20:57:08,730 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 871.
2020-07-14 20:57:08,730 [19] INFO - ---------
2020-07-14 20:57:08,731 [19] INFO - Finished executing the following script:
2020-07-14 20:57:08,732 [19] INFO - ---------
2020-07-14 20:57:08,732 [19] INFO - function SE637303570286622931() {}
SE637303570286622931.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 SE637303570286622931().executeScript();
2020-07-14 20:57:08,733 [19] INFO - ---------
2020-07-14 20:57:08,733 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 872.
2020-07-14 20:57:08,733 [19] INFO - ---------
2020-07-14 20:57:08,735 [19] INFO - About to execute the following script:
2020-07-14 20:57:08,735 [19] INFO - ---------
2020-07-14 20:57:08,735 [19] INFO - function SE637303570287352972() {}
SE637303570287352972.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 SE637303570287352972().executeScript();
2020-07-14 20:57:08,736 [19] INFO - ---------
2020-07-14 20:57:08,738 [19] INFO - Finished executing the following script:
2020-07-14 20:57:08,738 [19] INFO - ---------
2020-07-14 20:57:08,739 [19] INFO - function SE637303570287352972() {}
SE637303570287352972.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 SE637303570287352972().executeScript();
2020-07-14 20:57:08,739 [19] INFO - ---------
2020-07-14 20:57:08,740 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 873.
2020-07-14 20:57:08,740 [19] INFO - ---------
2020-07-14 20:57:08,741 [19] INFO - About to execute the following script:
2020-07-14 20:57:08,742 [19] INFO - ---------
2020-07-14 20:57:08,742 [19] INFO - function SE637303570287412976() {}
SE637303570287412976.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 SE637303570287412976().executeScript();
2020-07-14 20:57:08,742 [19] INFO - ---------
2020-07-14 20:57:08,750 [19] INFO - Finished executing the following script:
2020-07-14 20:57:08,750 [19] INFO - ---------
2020-07-14 20:57:08,751 [19] INFO - function SE637303570287412976() {}
SE637303570287412976.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 SE637303570287412976().executeScript();
2020-07-14 20:57:08,751 [19] INFO - ---------
2020-07-14 20:57:08,752 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 874.
2020-07-14 20:57:08,752 [19] INFO - ---------
2020-07-14 20:57:08,754 [19] INFO - About to execute the following script:
2020-07-14 20:57:08,754 [19] INFO - ---------
2020-07-14 20:57:08,755 [19] INFO - function SE637303570287542983() {}
SE637303570287542983.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 SE637303570287542983().executeScript();
2020-07-14 20:57:09,122 [19] INFO - ---------
2020-07-14 20:57:09,123 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 894.
2020-07-14 20:57:09,123 [19] INFO - ---------
2020-07-14 20:57:09,124 [19] INFO - About to execute the following script:
2020-07-14 20:57:09,124 [19] INFO - ---------
2020-07-14 20:57:09,125 [19] INFO - function SE637303570291243195() {}
SE637303570291243195.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 SE637303570291243195().executeScript();
2020-07-14 20:57:09,125 [19] INFO - ---------
2020-07-14 20:57:09,131 [19] INFO - About to execute the following script:
2020-07-14 20:57:09,131 [19] INFO - ---------
2020-07-14 20:57:09,132 [19] INFO - function SE637303570291313199() {}
SE637303570291313199.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 SE637303570291313199().executeScript();
2020-07-14 20:57:09,132 [19] INFO - ---------
2020-07-14 20:57:09,138 [19] INFO - About to execute the following script:
2020-07-14 20:57:09,139 [19] INFO - ---------
2020-07-14 20:57:09,139 [19] INFO - function SE637303570291383203() {}
SE637303570291383203.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 SE637303570291383203().executeScript();
2020-07-14 20:57:09,139 [19] INFO - ---------
2020-07-14 20:57:09,141 [19] INFO - About to execute the following script:
2020-07-14 20:57:09,141 [19] INFO - ---------
2020-07-14 20:57:09,142 [19] INFO - function SE637303570291413205() {}
SE637303570291413205.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 SE637303570291413205().executeScript();
2020-07-14 20:57:09,142 [19] INFO - ---------
2020-07-14 20:57:09,145 [19] INFO - About to execute the following script:
2020-07-14 20:57:09,146 [19] INFO - ---------
2020-07-14 20:57:09,146 [19] INFO - function SE637303570291453207() {}
SE637303570291453207.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 SE637303570291383203().executeScript();
2020-07-14 20:57:09,178 [19] INFO - ---------
2020-07-14 20:57:09,178 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 901.
2020-07-14 20:57:09,179 [19] INFO - ---------
2020-07-14 20:57:09,179 [19] INFO - Finished executing the following script:
2020-07-14 20:57:09,180 [19] INFO - ---------
2020-07-14 20:57:09,180 [19] INFO - function SE637303570291313199() {}
SE637303570291313199.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 SE637303570291313199().executeScript();
2020-07-14 20:57:09,181 [19] INFO - ---------
2020-07-14 20:57:09,181 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 902.
2020-07-14 20:57:09,181 [19] INFO - ---------
2020-07-14 20:57:09,197 [19] INFO - Finished executing the following script:
2020-07-14 20:57:09,198 [19] INFO - ---------
2020-07-14 20:57:09,198 [19] INFO - function SE637303570291243195() {}
SE637303570291243195.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 SE637303570291243195().executeScript();
2020-07-14 20:57:09,199 [19] INFO - ---------
2020-07-14 20:57:09,199 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 903.
2020-07-14 20:57:09,199 [19] INFO - ---------
2020-07-14 20:57:09,204 [19] INFO - About to execute the following script:
2020-07-14 20:57:09,204 [19] INFO - ---------
2020-07-14 20:57:09,205 [19] INFO - function SE637303570292033240() {}
SE637303570292033240.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 SE637303570306224052().executeScript();
2020-07-14 20:57:10,684 [19] INFO - ---------
2020-07-14 20:57:10,684 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 916.
2020-07-14 20:57:10,684 [19] INFO - ---------
2020-07-14 20:57:10,686 [19] INFO - Finished executing the following script:
2020-07-14 20:57:10,686 [19] INFO - ---------
2020-07-14 20:57:10,687 [19] INFO - function SE637303570306184049() {}
SE637303570306184049.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 SE637303570306184049().executeScript();
2020-07-14 20:57:10,688 [19] INFO - ---------
2020-07-14 20:57:10,688 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 917.
2020-07-14 20:57:10,688 [19] INFO - ---------
2020-07-14 20:57:10,689 [19] INFO - About to execute the following script:
2020-07-14 20:57:10,690 [19] INFO - ---------
2020-07-14 20:57:10,690 [19] INFO - function SE637303570306894090() {}
SE637303570306894090.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 SE637303570306894090().executeScript();
2020-07-14 20:57:10,690 [19] INFO - ---------
2020-07-14 20:57:10,696 [19] INFO - About to execute the following script:
2020-07-14 20:57:10,697 [19] INFO - ---------
2020-07-14 20:57:10,697 [19] INFO - function SE637303570306964094() {}
SE637303570306964094.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 SE637303570307494124().executeScript();
2020-07-14 20:57:10,753 [19] INFO - ---------
2020-07-14 20:57:10,753 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 924.
2020-07-14 20:57:10,753 [19] INFO - ---------
2020-07-14 20:57:10,754 [19] INFO - Finished executing the following script:
2020-07-14 20:57:10,755 [19] INFO - ---------
2020-07-14 20:57:10,755 [19] INFO - function SE637303570306894090() {}
SE637303570306894090.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 SE637303570306894090().executeScript();
2020-07-14 20:57:10,755 [19] INFO - ---------
2020-07-14 20:57:10,756 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 925.
2020-07-14 20:57:10,756 [19] INFO - ---------
2020-07-14 20:57:10,757 [19] INFO - About to execute the following script:
2020-07-14 20:57:10,757 [19] INFO - ---------
2020-07-14 20:57:10,758 [19] INFO - function SE637303570307574129() {}
SE637303570307574129.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 SE637303570307574129().executeScript();
2020-07-14 20:57:10,759 [19] INFO - ---------
2020-07-14 20:57:10,760 [19] INFO - Finished executing the following script:
2020-07-14 20:57:10,760 [19] INFO - ---------
2020-07-14 20:57:10,760 [19] INFO - function SE637303570307574129() {}
SE637303570307574129.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 SE637303570307574129().executeScript();
2020-07-14 20:57:10,761 [19] INFO - ---------
2020-07-14 20:57:10,761 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 926.
2020-07-14 20:57:10,761 [19] INFO - ---------
2020-07-14 20:57:10,763 [19] INFO - About to execute the following script:
2020-07-14 20:57:10,764 [19] INFO - ---------
2020-07-14 20:57:10,764 [19] INFO - function SE637303570307634132() {}
SE637303570307634132.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 SE637303570307634132().executeScript();
2020-07-14 20:57:10,765 [19] INFO - ---------
2020-07-14 20:57:10,771 [19] INFO - Finished executing the following script:
2020-07-14 20:57:10,772 [19] INFO - ---------
2020-07-14 20:57:10,772 [19] INFO - function SE637303570307634132() {}
SE637303570307634132.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 SE637303570307634132().executeScript();
2020-07-14 20:57:10,772 [19] INFO - ---------
2020-07-14 20:57:10,773 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 927.
2020-07-14 20:57:10,773 [19] INFO - ---------
2020-07-14 20:57:10,775 [19] INFO - About to execute the following script:
2020-07-14 20:57:10,775 [19] INFO - ---------
2020-07-14 20:57:10,776 [19] INFO - function SE637303570307754139() {}
SE637303570307754139.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 SE637303570307754139().executeScript();
2020-07-14 20:57:10,976 [19] INFO - ---------
2020-07-14 20:57:10,977 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 947.
2020-07-14 20:57:10,977 [19] INFO - ---------
2020-07-14 20:57:10,978 [19] INFO - About to execute the following script:
2020-07-14 20:57:10,978 [19] INFO - ---------
2020-07-14 20:57:10,979 [19] INFO - function SE637303570309784255() {}
SE637303570309784255.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 SE637303570309784255().executeScript();
2020-07-14 20:57:10,979 [19] INFO - ---------
2020-07-14 20:57:10,986 [19] INFO - About to execute the following script:
2020-07-14 20:57:10,987 [19] INFO - ---------
2020-07-14 20:57:10,988 [19] INFO - function SE637303570309864260() {}
SE637303570309864260.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 SE637303570309864260().executeScript();
2020-07-14 20:57:10,988 [19] INFO - ---------
2020-07-14 20:57:10,994 [19] INFO - About to execute the following script:
2020-07-14 20:57:10,995 [19] INFO - ---------
2020-07-14 20:57:10,995 [19] INFO - function SE637303570309944265() {}
SE637303570309944265.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 SE637303570309944265().executeScript();
2020-07-14 20:57:10,996 [19] INFO - ---------
2020-07-14 20:57:11,000 [19] INFO - About to execute the following script:
2020-07-14 20:57:11,000 [19] INFO - ---------
2020-07-14 20:57:11,001 [19] INFO - function SE637303570310004268() {}
SE637303570310004268.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 SE637303570310004268().executeScript();
2020-07-14 20:57:11,001 [19] INFO - ---------
2020-07-14 20:57:11,005 [19] INFO - About to execute the following script:
2020-07-14 20:57:11,005 [19] INFO - ---------
2020-07-14 20:57:11,005 [19] INFO - function SE637303570310054271() {}
SE637303570310054271.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 SE637303570309944265().executeScript();
2020-07-14 20:57:11,043 [19] INFO - ---------
2020-07-14 20:57:11,043 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 954.
2020-07-14 20:57:11,043 [19] INFO - ---------
2020-07-14 20:57:11,044 [19] INFO - Finished executing the following script:
2020-07-14 20:57:11,044 [19] INFO - ---------
2020-07-14 20:57:11,045 [19] INFO - function SE637303570309864260() {}
SE637303570309864260.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 SE637303570309864260().executeScript();
2020-07-14 20:57:11,045 [19] INFO - ---------
2020-07-14 20:57:11,045 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 955.
2020-07-14 20:57:11,046 [19] INFO - ---------
2020-07-14 20:57:11,063 [19] INFO - Finished executing the following script:
2020-07-14 20:57:11,063 [19] INFO - ---------
2020-07-14 20:57:11,064 [19] INFO - function SE637303570309784255() {}
SE637303570309784255.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 SE637303570309784255().executeScript();
2020-07-14 20:57:11,064 [19] INFO - ---------
2020-07-14 20:57:11,064 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 956.
2020-07-14 20:57:11,065 [19] INFO - ---------
2020-07-14 20:57:11,066 [19] INFO - About to execute the following script:
2020-07-14 20:57:11,067 [19] INFO - ---------
2020-07-14 20:57:11,067 [19] INFO - function SE637303570310664306() {}
SE637303570310664306.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 SE637303570313824486().executeScript();
2020-07-14 20:57:11,418 [19] INFO - ---------
2020-07-14 20:57:11,418 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 969.
2020-07-14 20:57:11,419 [19] INFO - ---------
2020-07-14 20:57:11,420 [19] INFO - Finished executing the following script:
2020-07-14 20:57:11,420 [19] INFO - ---------
2020-07-14 20:57:11,421 [19] INFO - function SE637303570313744482() {}
SE637303570313744482.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 SE637303570313744482().executeScript();
2020-07-14 20:57:11,421 [19] INFO - ---------
2020-07-14 20:57:11,421 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 970.
2020-07-14 20:57:11,422 [19] INFO - ---------
2020-07-14 20:57:11,422 [19] INFO - About to execute the following script:
2020-07-14 20:57:11,423 [19] INFO - ---------
2020-07-14 20:57:11,423 [19] INFO - function SE637303570314224509() {}
SE637303570314224509.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 SE637303570314224509().executeScript();
2020-07-14 20:57:11,424 [19] INFO - ---------
2020-07-14 20:57:11,430 [19] INFO - About to execute the following script:
2020-07-14 20:57:11,430 [19] INFO - ---------
2020-07-14 20:57:11,430 [19] INFO - function SE637303570314294513() {}
SE637303570314294513.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-hauptmenu.html'.
var pageId = context.param(0, 0);
var p = project.getPage(pageId);
context.write("\r\n\r\n
\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-hauptmenu.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570315144562().executeScript();
2020-07-14 20:57:11,518 [19] INFO - ---------
2020-07-14 20:57:11,518 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 977.
2020-07-14 20:57:11,518 [19] INFO - ---------
2020-07-14 20:57:11,519 [19] INFO - Finished executing the following script:
2020-07-14 20:57:11,519 [19] INFO - ---------
2020-07-14 20:57:11,520 [19] INFO - function SE637303570314224509() {}
SE637303570314224509.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 SE637303570314224509().executeScript();
2020-07-14 20:57:11,520 [19] INFO - ---------
2020-07-14 20:57:11,521 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 978.
2020-07-14 20:57:11,521 [19] INFO - ---------
2020-07-14 20:57:11,522 [19] INFO - About to execute the following script:
2020-07-14 20:57:11,522 [19] INFO - ---------
2020-07-14 20:57:11,523 [19] INFO - function SE637303570315224567() {}
SE637303570315224567.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 SE637303570315224567().executeScript();
2020-07-14 20:57:11,523 [19] INFO - ---------
2020-07-14 20:57:11,524 [19] INFO - Finished executing the following script:
2020-07-14 20:57:11,524 [19] INFO - ---------
2020-07-14 20:57:11,525 [19] INFO - function SE637303570315224567() {}
SE637303570315224567.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 SE637303570315224567().executeScript();
2020-07-14 20:57:11,525 [19] INFO - ---------
2020-07-14 20:57:11,525 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 979.
2020-07-14 20:57:11,526 [19] INFO - ---------
2020-07-14 20:57:11,527 [19] INFO - About to execute the following script:
2020-07-14 20:57:11,527 [19] INFO - ---------
2020-07-14 20:57:11,527 [19] INFO - function SE637303570315274569() {}
SE637303570315274569.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 SE637303570315274569().executeScript();
2020-07-14 20:57:11,528 [19] INFO - ---------
2020-07-14 20:57:11,532 [19] INFO - Finished executing the following script:
2020-07-14 20:57:11,532 [19] INFO - ---------
2020-07-14 20:57:11,532 [19] INFO - function SE637303570315274569() {}
SE637303570315274569.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 SE637303570315274569().executeScript();
2020-07-14 20:57:11,533 [19] INFO - ---------
2020-07-14 20:57:11,533 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 980.
2020-07-14 20:57:11,534 [19] INFO - ---------
2020-07-14 20:57:11,536 [19] INFO - About to execute the following script:
2020-07-14 20:57:11,536 [19] INFO - ---------
2020-07-14 20:57:11,536 [19] INFO - function SE637303570315354574() {}
SE637303570315354574.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 SE637303570315354574().executeScript();
2020-07-14 20:57:11,878 [19] INFO - ---------
2020-07-14 20:57:11,878 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 992.
2020-07-14 20:57:11,878 [19] INFO - ---------
2020-07-14 20:57:11,878 [19] INFO - About to execute the following script:
2020-07-14 20:57:11,878 [19] INFO - ---------
2020-07-14 20:57:11,879 [19] INFO - function SE637303570318784770() {}
SE637303570318784770.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 SE637303570318784770().executeScript();
2020-07-14 20:57:11,879 [19] INFO - ---------
2020-07-14 20:57:11,885 [19] INFO - About to execute the following script:
2020-07-14 20:57:11,886 [19] INFO - ---------
2020-07-14 20:57:11,886 [19] INFO - function SE637303570318854774() {}
SE637303570318854774.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 SE637303570318854774().executeScript();
2020-07-14 20:57:11,886 [19] INFO - ---------
2020-07-14 20:57:11,889 [19] INFO - About to execute the following script:
2020-07-14 20:57:11,889 [19] INFO - ---------
2020-07-14 20:57:11,889 [19] INFO - function SE637303570318894776() {}
SE637303570318894776.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-submenu1.html'.
var pageId = context.param(0, 0);
var p = project.getPage(pageId);
context.write("\r\n\r\n\t
\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-submenu1.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570319034784().executeScript();
2020-07-14 20:57:11,906 [19] INFO - ---------
2020-07-14 20:57:11,906 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 996.
2020-07-14 20:57:11,906 [19] INFO - ---------
2020-07-14 20:57:11,906 [19] INFO - Finished executing the following script:
2020-07-14 20:57:11,906 [19] INFO - ---------
2020-07-14 20:57:11,907 [19] INFO - function SE637303570318854774() {}
SE637303570318854774.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 SE637303570318854774().executeScript();
2020-07-14 20:57:11,907 [19] INFO - ---------
2020-07-14 20:57:11,907 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 997.
2020-07-14 20:57:11,907 [19] INFO - ---------
2020-07-14 20:57:11,919 [19] INFO - Finished executing the following script:
2020-07-14 20:57:11,920 [19] INFO - ---------
2020-07-14 20:57:11,920 [19] INFO - function SE637303570318784770() {}
SE637303570318784770.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 SE637303570318784770().executeScript();
2020-07-14 20:57:11,920 [19] INFO - ---------
2020-07-14 20:57:11,920 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 998.
2020-07-14 20:57:11,920 [19] INFO - ---------
2020-07-14 20:57:11,921 [19] INFO - About to execute the following script:
2020-07-14 20:57:11,922 [19] INFO - ---------
2020-07-14 20:57:11,922 [19] INFO - function SE637303570319214795() {}
SE637303570319214795.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 SE637303570321294914().executeScript();
2020-07-14 20:57:12,153 [19] INFO - ---------
2020-07-14 20:57:12,153 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1011.
2020-07-14 20:57:12,153 [19] INFO - ---------
2020-07-14 20:57:12,154 [19] INFO - Finished executing the following script:
2020-07-14 20:57:12,155 [19] INFO - ---------
2020-07-14 20:57:12,155 [19] INFO - function SE637303570321264912() {}
SE637303570321264912.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 SE637303570321264912().executeScript();
2020-07-14 20:57:12,155 [19] INFO - ---------
2020-07-14 20:57:12,156 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1012.
2020-07-14 20:57:12,156 [19] INFO - ---------
2020-07-14 20:57:12,157 [19] INFO - About to execute the following script:
2020-07-14 20:57:12,157 [19] INFO - ---------
2020-07-14 20:57:12,157 [19] INFO - function SE637303570321574930() {}
SE637303570321574930.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 SE637303570321574930().executeScript();
2020-07-14 20:57:12,158 [19] INFO - ---------
2020-07-14 20:57:12,164 [19] INFO - About to execute the following script:
2020-07-14 20:57:12,165 [19] INFO - ---------
2020-07-14 20:57:12,165 [19] INFO - function SE637303570321644934() {}
SE637303570321644934.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-hauptmenu.html'.
var pageId = context.param(0, 0);
var p = project.getPage(pageId);
context.write("\r\n\r\n
\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-hauptmenu.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570322164964().executeScript();
2020-07-14 20:57:12,220 [19] INFO - ---------
2020-07-14 20:57:12,220 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1019.
2020-07-14 20:57:12,221 [19] INFO - ---------
2020-07-14 20:57:12,221 [19] INFO - Finished executing the following script:
2020-07-14 20:57:12,222 [19] INFO - ---------
2020-07-14 20:57:12,222 [19] INFO - function SE637303570321574930() {}
SE637303570321574930.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 SE637303570321574930().executeScript();
2020-07-14 20:57:12,224 [19] INFO - ---------
2020-07-14 20:57:12,224 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1020.
2020-07-14 20:57:12,225 [19] INFO - ---------
2020-07-14 20:57:12,226 [19] INFO - About to execute the following script:
2020-07-14 20:57:12,226 [19] INFO - ---------
2020-07-14 20:57:12,226 [19] INFO - function SE637303570322254969() {}
SE637303570322254969.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 SE637303570322254969().executeScript();
2020-07-14 20:57:12,226 [19] INFO - ---------
2020-07-14 20:57:12,228 [19] INFO - Finished executing the following script:
2020-07-14 20:57:12,228 [19] INFO - ---------
2020-07-14 20:57:12,228 [19] INFO - function SE637303570322254969() {}
SE637303570322254969.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 SE637303570322254969().executeScript();
2020-07-14 20:57:12,229 [19] INFO - ---------
2020-07-14 20:57:12,229 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1021.
2020-07-14 20:57:12,229 [19] INFO - ---------
2020-07-14 20:57:12,230 [19] INFO - About to execute the following script:
2020-07-14 20:57:12,231 [19] INFO - ---------
2020-07-14 20:57:12,231 [19] INFO - function SE637303570322304972() {}
SE637303570322304972.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 SE637303570322304972().executeScript();
2020-07-14 20:57:12,231 [19] INFO - ---------
2020-07-14 20:57:12,235 [19] INFO - Finished executing the following script:
2020-07-14 20:57:12,236 [19] INFO - ---------
2020-07-14 20:57:12,236 [19] INFO - function SE637303570322304972() {}
SE637303570322304972.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 SE637303570322304972().executeScript();
2020-07-14 20:57:12,237 [19] INFO - ---------
2020-07-14 20:57:12,237 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1022.
2020-07-14 20:57:12,237 [19] INFO - ---------
2020-07-14 20:57:12,240 [19] INFO - About to execute the following script:
2020-07-14 20:57:12,240 [19] INFO - ---------
2020-07-14 20:57:12,240 [19] INFO - function SE637303570322394977() {}
SE637303570322394977.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 SE637303570322394977().executeScript();
2020-07-14 20:57:12,354 [19] INFO - ---------
2020-07-14 20:57:12,354 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1034.
2020-07-14 20:57:12,355 [19] INFO - ---------
2020-07-14 20:57:12,355 [19] INFO - About to execute the following script:
2020-07-14 20:57:12,356 [19] INFO - ---------
2020-07-14 20:57:12,356 [19] INFO - function SE637303570323555043() {}
SE637303570323555043.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 SE637303570323555043().executeScript();
2020-07-14 20:57:12,356 [19] INFO - ---------
2020-07-14 20:57:12,363 [19] INFO - About to execute the following script:
2020-07-14 20:57:12,364 [19] INFO - ---------
2020-07-14 20:57:12,364 [19] INFO - function SE637303570323635048() {}
SE637303570323635048.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 SE637303570323635048().executeScript();
2020-07-14 20:57:12,364 [19] INFO - ---------
2020-07-14 20:57:12,368 [19] INFO - About to execute the following script:
2020-07-14 20:57:12,368 [19] INFO - ---------
2020-07-14 20:57:12,369 [19] INFO - function SE637303570323685050() {}
SE637303570323685050.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-submenu1.html'.
var pageId = context.param(0, 0);
var p = project.getPage(pageId);
context.write("\r\n\r\n\t
\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-submenu1.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570323875061().executeScript();
2020-07-14 20:57:12,391 [19] INFO - ---------
2020-07-14 20:57:12,391 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1038.
2020-07-14 20:57:12,392 [19] INFO - ---------
2020-07-14 20:57:12,392 [19] INFO - Finished executing the following script:
2020-07-14 20:57:12,393 [19] INFO - ---------
2020-07-14 20:57:12,393 [19] INFO - function SE637303570323635048() {}
SE637303570323635048.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 SE637303570323635048().executeScript();
2020-07-14 20:57:12,393 [19] INFO - ---------
2020-07-14 20:57:12,394 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1039.
2020-07-14 20:57:12,394 [19] INFO - ---------
2020-07-14 20:57:12,406 [19] INFO - Finished executing the following script:
2020-07-14 20:57:12,406 [19] INFO - ---------
2020-07-14 20:57:12,407 [19] INFO - function SE637303570323555043() {}
SE637303570323555043.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 SE637303570323555043().executeScript();
2020-07-14 20:57:12,407 [19] INFO - ---------
2020-07-14 20:57:12,407 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1040.
2020-07-14 20:57:12,408 [19] INFO - ---------
2020-07-14 20:57:12,410 [19] INFO - About to execute the following script:
2020-07-14 20:57:12,411 [19] INFO - ---------
2020-07-14 20:57:12,411 [19] INFO - function SE637303570324105074() {}
SE637303570324105074.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 SE637303570344156221().executeScript();
2020-07-14 20:57:14,457 [19] INFO - ---------
2020-07-14 20:57:14,458 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1053.
2020-07-14 20:57:14,458 [19] INFO - ---------
2020-07-14 20:57:14,461 [19] INFO - Finished executing the following script:
2020-07-14 20:57:14,461 [19] INFO - ---------
2020-07-14 20:57:14,462 [19] INFO - function SE637303570344066216() {}
SE637303570344066216.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 SE637303570344066216().executeScript();
2020-07-14 20:57:14,463 [19] INFO - ---------
2020-07-14 20:57:14,463 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1054.
2020-07-14 20:57:14,464 [19] INFO - ---------
2020-07-14 20:57:14,465 [19] INFO - About to execute the following script:
2020-07-14 20:57:14,465 [19] INFO - ---------
2020-07-14 20:57:14,465 [19] INFO - function SE637303570344656250() {}
SE637303570344656250.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 SE637303570344656250().executeScript();
2020-07-14 20:57:14,466 [19] INFO - ---------
2020-07-14 20:57:14,472 [19] INFO - About to execute the following script:
2020-07-14 20:57:14,472 [19] INFO - ---------
2020-07-14 20:57:14,472 [19] INFO - function SE637303570344726254() {}
SE637303570344726254.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-hauptmenu.html'.
var pageId = context.param(0, 0);
var p = project.getPage(pageId);
context.write("\r\n\r\n
\r\n");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\Simple Responsive\templates\partials\item-hauptmenu.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303570345206281().executeScript();
2020-07-14 20:57:14,527 [19] INFO - ---------
2020-07-14 20:57:14,527 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1061.
2020-07-14 20:57:14,528 [19] INFO - ---------
2020-07-14 20:57:14,529 [19] INFO - Finished executing the following script:
2020-07-14 20:57:14,529 [19] INFO - ---------
2020-07-14 20:57:14,529 [19] INFO - function SE637303570344656250() {}
SE637303570344656250.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 SE637303570344656250().executeScript();
2020-07-14 20:57:14,530 [19] INFO - ---------
2020-07-14 20:57:14,530 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1062.
2020-07-14 20:57:14,530 [19] INFO - ---------
2020-07-14 20:57:14,531 [19] INFO - About to execute the following script:
2020-07-14 20:57:14,532 [19] INFO - ---------
2020-07-14 20:57:14,532 [19] INFO - function SE637303570345316288() {}
SE637303570345316288.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 SE637303570345316288().executeScript();
2020-07-14 20:57:14,532 [19] INFO - ---------
2020-07-14 20:57:14,533 [19] INFO - Finished executing the following script:
2020-07-14 20:57:14,534 [19] INFO - ---------
2020-07-14 20:57:14,534 [19] INFO - function SE637303570345316288() {}
SE637303570345316288.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 SE637303570345316288().executeScript();
2020-07-14 20:57:14,534 [19] INFO - ---------
2020-07-14 20:57:14,535 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1063.
2020-07-14 20:57:14,536 [19] INFO - ---------
2020-07-14 20:57:14,537 [19] INFO - About to execute the following script:
2020-07-14 20:57:14,538 [19] INFO - ---------
2020-07-14 20:57:14,539 [19] INFO - function SE637303570345376291() {}
SE637303570345376291.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 SE637303570345376291().executeScript();
2020-07-14 20:57:14,539 [19] INFO - ---------
2020-07-14 20:57:14,545 [19] INFO - Finished executing the following script:
2020-07-14 20:57:14,545 [19] INFO - ---------
2020-07-14 20:57:14,545 [19] INFO - function SE637303570345376291() {}
SE637303570345376291.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 SE637303570345376291().executeScript();
2020-07-14 20:57:14,546 [19] INFO - ---------
2020-07-14 20:57:14,546 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 1064.
2020-07-14 20:57:14,546 [19] INFO - ---------
2020-07-14 20:57:14,548 [19] INFO - About to execute the following script:
2020-07-14 20:57:14,549 [19] INFO - ---------
2020-07-14 20:57:14,549 [19] INFO - function SE637303570345486297() {}
SE637303570345486297.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