\r\n");
context.write( dataAttributes );
context.write(" class=\"articlearea zpw");
context.write( validClassName(article.widgetName) );
context.write( additionalClass );
context.write("\"");
context.write( inlineCss );
context.write(" ");
if ( !isNull(article) ) {
context.write("\r\n\t\r\n\t");
}
context.write(">\r\n\t");
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\layouts\_shared\templates\partials\article-begin.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303571347363602().executeScript();
2020-07-14 20:58:54,747 [19] INFO - ---------
2020-07-14 20:58:54,747 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 2353.
2020-07-14 20:58:54,747 [19] INFO - ---------
2020-07-14 20:58:54,750 [19] INFO - Finished executing the following script:
2020-07-14 20:58:54,750 [19] INFO - ---------
2020-07-14 20:58:54,751 [19] INFO - function SE637303571333702820() {}
SE637303571333702820.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\widgets\singleimage\standard.html'.
var image = project.getImage(article.value("image"));
var contentImageWidth = "890";
var defaultImageWidth = 960;
var cssClass = article.cssClass || "";
var isBreakout = cssClass.indexOf("zpBreakout") !== -1 ? true : false;
// Kann auch "700px" sein, deshalb mit parseInt nur die Zahl holen und trimmen - falls leer, auf default 960 setzen.
contentImageWidth = parseInt(contentImageWidth) || defaultImageWidth;
var gridCols = article.column.cssClass;
if ( gridCols ){
gridCols = parseInt((gridCols.match(/\bc[1-9][0-2]?\b\s?/) || 12).toString().replace("c", ""));
}
else{
gridCols = 12;
}
var columnMargin = 30;
var columnWidth = ((contentImageWidth + columnMargin) / 12) * gridCols;
// minimum width needed for 100% width display on 1-column breakpoint
var minwidth = parseInt(479 - columnMargin);
var contentCopyWidth = parseInt(columnWidth - columnMargin) || defaultImageWidth;
if ( minwidth > contentCopyWidth ){
contentCopyWidth = minwidth;
}
//system.log("contentCopyWidth: " + contentCopyWidth + " - image: " + image.name + "( Page " + article.page.name +")");
var imageError = false;
if ( !isNull(image) ) {
if ( isBreakout ){
contentCopyWidth = image.workingCopyWidth;
}
try {
var iresult = image.ensureContentCopy(article, contentCopyWidth);
var thumbImageWidth = image.contentCopyWidth;
var thumbImageHeight = image.contentCopyHeight;
var description = image.description;
var altText = system.htmlEncode(system.removeHtmlTags(image.altText));
var oldAltText = system.htmlEncode(system.removeHtmlTags(article.valueExpanded("alt", "")));
if ( altText == "" && oldAltText !== "" ){
altText = oldAltText;
}
var encodedDescription = system.htmlEncode(image.description);
var stripDescription = system.htmlEncode(system.removeHtmlTags(image.description));
// strip
-Tags from description as
is not valid inside SPAN
description = description.toString().replace(/
/g,"");
description = description.toString().replace(/<\/p>/g," ");
//system.log(" Image Width: " + contentCopyWidth +" / Returned contentCopyWidth:" + thumbImageWidth + " / Image Result: " + iresult);
}
catch(err) {
imageError = true;
}
}
if ( stripDescription !== "" ) {
var showCaption = "1";
}
else {
var showCaption = "0";
}
var lightBox = article.value("lightbox", "lightbox");
var clickURL = article.value("clickurl");
var effect = article.value("effect", "none");
var effectClass = "";
switch ( effect ) {
case "hoverzoom":
effectClass = " zpeffect zphoverscale";
break;
default:
effectClass = "";
}
context.write("\r\n\r\n");
if ( isNull(image) || imageError ) {
context.write("\r\n\t");
if ( system.preview ) {
context.write("\r\n\t\t
\r\n\t\t\t\tDas gewählte Bild ist anscheinend gelöscht worden. Bearbeiten Sie diesen Artikel und wählen Sie erneut ein Bild aus.\r\n\t\t\t\r\n\t\t
\r\n\t");
}
context.write("\r\n");
} else {
context.write("\r\n\t");
if ( lightBox == "zoom" ) {
context.write("\r\n\t\t");
context.write( system.partial("article-begin.html", "popupimage") );
context.write("\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t");
if ( image.isSvgImage ){
context.write("\r\n\t\t\t\t
\r\n\t\t\t\t");
} else if ( image.isAnimatedGif ) {
context.write("\r\n\t\t\t\t
\r\n\t\t\t\t");
} else {
context.write("\r\n\t\t\t\t
\r\n\t\t\t\t");
}
context.write("\r\n\t\t\t
\r\n\r\n\t\t\t");
if ( showCaption == "1" && description ) {
context.write("\r\n\t\t\t\t
");
context.write( description );
context.write(" \r\n\t\t\t");
}
context.write("\r\n\t\t\r\n\t\t\t
\r\n\t\t");
context.write( system.partial("article-end.html") );
context.write(" \r\n\t");
} else if ( lightBox == true || lightBox == "lightbox" ) {
context.write("\r\n\t\t");
context.write( system.partial("article-begin.html", "popupimage") );
context.write("\r\n\t\t\t
\r\n\t\t");
context.write( system.partial("article-end.html") );
context.write("\r\n\t");
} else if ( lightBox == "off" ) {
context.write("\r\n\t\t");
context.write( system.partial("article-begin.html") );
context.write("\r\n\t\t\t");
if ( image.isSvgImage ){
context.write("\r\n\t\t\t
\r\n\t\t\t");
} else if ( image.isAnimatedGif ) {
context.write("\r\n\t\t\t
\r\n\t\t\t");
} else {
context.write("\r\n\t\t\t
\r\n\t\t\t");
}
context.write("\r\n\r\n\t\t\t");
if ( showCaption == "1" && description ) {
context.write("\r\n\t\t\t\t
");
context.write( description );
context.write(" \r\n\t\t\t");
}
context.write("\r\n\t\t");
context.write( system.partial("article-end.html") );
context.write("\r\n\t");
} else {
context.write("\r\n\t\t");
context.write( system.partial("article-begin.html") );
context.write("\r\n\t\t\t");
if ( clickURL !== "" ) {
context.write("\r\n\t\t\t\t
\r\n\t\t\t\t\t");
if ( image.isSvgImage ){
context.write("\r\n\t\t\t\t\t \r\n\t\t\t\t\t");
} else if ( image.isAnimatedGif ) {
context.write("\r\n\t\t\t\t\t \r\n\t\t\t\t\t");
} else {
context.write("\r\n\t\t\t\t\t \r\n\t\t\t\t\t");
}
context.write("\r\n\t\t\t\t\tGehe zu URL (go to url). \r\n\t\t\t\t \r\n\t\t\t");
} else {
context.write("\r\n\t\t\t\t
\r\n\t\t\t");
}
context.write("\r\n\r\n\t\t\t");
if ( showCaption == "1" && description ) {
context.write("\r\n\t\t\t\t
");
context.write( description );
context.write(" \r\n\t\t\t");
}
context.write("\r\n\t\t");
context.write( system.partial("article-end.html") );
context.write("\r\n\t");
}
context.write("\r\n");
}
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\widgets\singleimage\standard.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303571333702820().executeScript();
2020-07-14 20:58:54,753 [19] INFO - ---------
2020-07-14 20:58:54,753 [19] INFO - Statistiken — Gesamte Skript-Aufrufe: 2354.
2020-07-14 20:58:54,754 [19] INFO - ---------
2020-07-14 20:58:54,755 [19] INFO - About to execute the following script:
2020-07-14 20:58:54,755 [19] INFO - ---------
2020-07-14 20:58:54,756 [19] INFO - function SE637303571347553612() {}
SE637303571347553612.prototype.executeScript = function(){
// Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\widgets\singleimage\standard.html'.
var image = project.getImage(article.value("image"));
var contentImageWidth = "890";
var defaultImageWidth = 960;
var cssClass = article.cssClass || "";
var isBreakout = cssClass.indexOf("zpBreakout") !== -1 ? true : false;
// Kann auch "700px" sein, deshalb mit parseInt nur die Zahl holen und trimmen - falls leer, auf default 960 setzen.
contentImageWidth = parseInt(contentImageWidth) || defaultImageWidth;
var gridCols = article.column.cssClass;
if ( gridCols ){
gridCols = parseInt((gridCols.match(/\bc[1-9][0-2]?\b\s?/) || 12).toString().replace("c", ""));
}
else{
gridCols = 12;
}
var columnMargin = 30;
var columnWidth = ((contentImageWidth + columnMargin) / 12) * gridCols;
// minimum width needed for 100% width display on 1-column breakpoint
var minwidth = parseInt(479 - columnMargin);
var contentCopyWidth = parseInt(columnWidth - columnMargin) || defaultImageWidth;
if ( minwidth > contentCopyWidth ){
contentCopyWidth = minwidth;
}
//system.log("contentCopyWidth: " + contentCopyWidth + " - image: " + image.name + "( Page " + article.page.name +")");
var imageError = false;
if ( !isNull(image) ) {
if ( isBreakout ){
contentCopyWidth = image.workingCopyWidth;
}
try {
var iresult = image.ensureContentCopy(article, contentCopyWidth);
var thumbImageWidth = image.contentCopyWidth;
var thumbImageHeight = image.contentCopyHeight;
var description = image.description;
var altText = system.htmlEncode(system.removeHtmlTags(image.altText));
var oldAltText = system.htmlEncode(system.removeHtmlTags(article.valueExpanded("alt", "")));
if ( altText == "" && oldAltText !== "" ){
altText = oldAltText;
}
var encodedDescription = system.htmlEncode(image.description);
var stripDescription = system.htmlEncode(system.removeHtmlTags(image.description));
// strip
-Tags from description as
is not valid inside SPAN
description = description.toString().replace(/
/g,"");
description = description.toString().replace(/<\/p>/g," ");
//system.log(" Image Width: " + contentCopyWidth +" / Returned contentCopyWidth:" + thumbImageWidth + " / Image Result: " + iresult);
}
catch(err) {
imageError = true;
}
}
if ( stripDescription !== "" ) {
var showCaption = "1";
}
else {
var showCaption = "0";
}
var lightBox = article.value("lightbox", "lightbox");
var clickURL = article.value("clickurl");
var effect = article.value("effect", "none");
var effectClass = "";
switch ( effect ) {
case "hoverzoom":
effectClass = " zpeffect zphoverscale";
break;
default:
effectClass = "";
}
context.write("\r\n\r\n");
if ( isNull(image) || imageError ) {
context.write("\r\n\t");
if ( system.preview ) {
context.write("\r\n\t\t
\r\n\t\t\t\tDas gewählte Bild ist anscheinend gelöscht worden. Bearbeiten Sie diesen Artikel und wählen Sie erneut ein Bild aus.\r\n\t\t\t\r\n\t\t
\r\n\t");
}
context.write("\r\n");
} else {
context.write("\r\n\t");
if ( lightBox == "zoom" ) {
context.write("\r\n\t\t");
context.write( system.partial("article-begin.html", "popupimage") );
context.write("\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t");
if ( image.isSvgImage ){
context.write("\r\n\t\t\t\t
\r\n\t\t\t\t");
} else if ( image.isAnimatedGif ) {
context.write("\r\n\t\t\t\t
\r\n\t\t\t\t");
} else {
context.write("\r\n\t\t\t\t
\r\n\t\t\t\t");
}
context.write("\r\n\t\t\t
\r\n\r\n\t\t\t");
if ( showCaption == "1" && description ) {
context.write("\r\n\t\t\t\t
");
context.write( description );
context.write(" \r\n\t\t\t");
}
context.write("\r\n\t\t\r\n\t\t\t
\r\n\t\t");
context.write( system.partial("article-end.html") );
context.write(" \r\n\t");
} else if ( lightBox == true || lightBox == "lightbox" ) {
context.write("\r\n\t\t");
context.write( system.partial("article-begin.html", "popupimage") );
context.write("\r\n\t\t\t
\r\n\t\t");
context.write( system.partial("article-end.html") );
context.write("\r\n\t");
} else if ( lightBox == "off" ) {
context.write("\r\n\t\t");
context.write( system.partial("article-begin.html") );
context.write("\r\n\t\t\t");
if ( image.isSvgImage ){
context.write("\r\n\t\t\t
\r\n\t\t\t");
} else if ( image.isAnimatedGif ) {
context.write("\r\n\t\t\t
\r\n\t\t\t");
} else {
context.write("\r\n\t\t\t
\r\n\t\t\t");
}
context.write("\r\n\r\n\t\t\t");
if ( showCaption == "1" && description ) {
context.write("\r\n\t\t\t\t
");
context.write( description );
context.write(" \r\n\t\t\t");
}
context.write("\r\n\t\t");
context.write( system.partial("article-end.html") );
context.write("\r\n\t");
} else {
context.write("\r\n\t\t");
context.write( system.partial("article-begin.html") );
context.write("\r\n\t\t\t");
if ( clickURL !== "" ) {
context.write("\r\n\t\t\t\t
\r\n\t\t\t\t\t");
if ( image.isSvgImage ){
context.write("\r\n\t\t\t\t\t \r\n\t\t\t\t\t");
} else if ( image.isAnimatedGif ) {
context.write("\r\n\t\t\t\t\t \r\n\t\t\t\t\t");
} else {
context.write("\r\n\t\t\t\t\t \r\n\t\t\t\t\t");
}
context.write("\r\n\t\t\t\t\tGehe zu URL (go to url). \r\n\t\t\t\t \r\n\t\t\t");
} else {
context.write("\r\n\t\t\t\t
\r\n\t\t\t");
}
context.write("\r\n\r\n\t\t\t");
if ( showCaption == "1" && description ) {
context.write("\r\n\t\t\t\t
");
context.write( description );
context.write(" \r\n\t\t\t");
}
context.write("\r\n\t\t");
context.write( system.partial("article-end.html") );
context.write("\r\n\t");
}
context.write("\r\n");
}
// End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\widgets\singleimage\standard.html'.
};
/* Shortcuts. */
article = context.article;
page = context.page;
projectFolder = context.projectFolder;
project = context.project;
system = context.system;
new SE637303571347553612().executeScript();
2020-07-14 20:58:54,757 [19] INFO - ---------
2020-07-14 20:58:56,232 [19] INFO - IActiveScriptSite.OnScriptError was called with this exception:
2020-07-14 20:58:56,233 [19] INFO - ---------
2020-07-14 20:58:56,234 [19] INFO - ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngineException
-----------------
3472389472389
-----------------
SlimScriptEngineException
{
ExcepInfo=EXCEPINFO
{
},
Description="3472389472389",
LineNumber=228,
ColumnNumber=0,
SourceLine="",
FullSourceCode=null,
SourceContext=0,
WasCanceled=True,
Message="3472389472389",
Data=
[
]
,
InnerException=null,
TargetSite=null,
StackTrace=null,
HelpLink=null,
Source="ActiveScriptSite.ScriptError",
HResult=-2146233088
}
ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngineException: 3472389472389
2020-07-14 20:58:56,234 [19] INFO - ---------
2020-07-14 20:58:56,243 [19] INFO - Caught executing the following COM exception:
2020-07-14 20:58:56,244 [19] INFO - ---------
2020-07-14 20:58:56,259 [19] INFO - System.Runtime.InteropServices.COMException
-----------------
Ausnahme von HRESULT: 0x80020101
-----------------
bei ZetaProducer.SuperSlimScriptingEngine.Infrastructure.IActiveScriptParse32.ParseScriptText(String code, String itemName, Object context, String delimiter, IntPtr sourceContextCookie, UInt32 startingLineNumber, ScriptText flags, IntPtr result, EXCEPINFO& exceptionInfo)
bei ZetaProducer.SuperSlimScriptingEngine.Infrastructure.ActiveScriptParseWrapper.ParseScriptText(String code, String itemName, Object context, String delimiter, IntPtr sourceContextCookie, UInt32 startingLineNumber, ScriptText flags, IntPtr result, EXCEPINFO& exceptionInfo) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\SuperSlimScriptingEngine\Infrastructure\ActiveScriptComInterfaces.cs:Zeile 371.
bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.doExecute(String script) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\SuperSlimScriptingEngine\SlimScriptEngine.cs:Zeile 118.
COMException
{
ErrorCode=-2147352319,
Message="Ausnahme von HRESULT: 0x80020101",
Data=
[
]
,
InnerException=null,
TargetSite=RuntimeMethodInfo: ParseScriptText,
StackTrace=" bei ZetaProducer.SuperSlimScriptingEngine.Infrastructure.IActiveScriptParse32.ParseScriptText(String code, String itemName, Object context, String delimiter, IntPtr sourceContextCookie, UInt32 startingLineNumber, ScriptText flags, IntPtr result, EXCEPINFO& exceptionInfo)\\r\\n bei ZetaProducer.SuperSlimScriptingEngine.Infrastructure.ActiveScriptParseWrapper.ParseScriptText(String code, String itemName, Object context, String delimiter, IntPtr sourceContextCookie, UInt32 startingLineNumber, ScriptText flags, IntPtr result, EXCEPINFO& exceptionInfo) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\Infrastructure\\ActiveScriptComInterfaces.cs:Zeile 371.\\r\\n bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.doExecute(String script) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 118.",
HelpLink=null,
Source="ZetaProducer.SuperSlimScriptingEngine",
HResult=-2147352319
}
System.Runtime.InteropServices.COMException (0x80020101): Ausnahme von HRESULT: 0x80020101
bei ZetaProducer.SuperSlimScriptingEngine.Infrastructure.IActiveScriptParse32.ParseScriptText(String code, String itemName, Object context, String delimiter, IntPtr sourceContextCookie, UInt32 startingLineNumber, ScriptText flags, IntPtr result, EXCEPINFO& exceptionInfo)
bei ZetaProducer.SuperSlimScriptingEngine.Infrastructure.ActiveScriptParseWrapper.ParseScriptText(String code, String itemName, Object context, String delimiter, IntPtr sourceContextCookie, UInt32 startingLineNumber, ScriptText flags, IntPtr result, EXCEPINFO& exceptionInfo) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\SuperSlimScriptingEngine\Infrastructure\ActiveScriptComInterfaces.cs:Zeile 371.
bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.doExecute(String script) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\SuperSlimScriptingEngine\SlimScriptEngine.cs:Zeile 118.
2020-07-14 20:58:56,260 [19] INFO - ---------
2020-07-14 20:58:56,283 [19] INFO - Script error.
ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngineException
-----------------
3472389472389
-----------------
bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.doExecute(String script) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\SuperSlimScriptingEngine\SlimScriptEngine.cs:Zeile 174.
bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.Execute(String script) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\SuperSlimScriptingEngine\SlimScriptEngine.cs:Zeile 71.
bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreterHelper.GuardEngineRun(SlimScriptEngine engine, String scriptToExecute, RenderingContext renderingContext, String runString) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\Engine\RenderingInterpreterHelper.cs:Zeile 179.
SlimScriptEngineException
{
ExcepInfo=EXCEPINFO
{
},
Description="3472389472389",
LineNumber=228,
ColumnNumber=0,
SourceLine="context.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );",
FullSourceCode="function SE637303571347553612() {}\\r\\n\\r\\n\\r\\nSE637303571347553612.prototype.executeScript = function(){\\r\\n// Start source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n\\r\\n\\r\\n\\tvar image = project.getImage(article.value(\\"image\\"));\\r\\n\\tvar contentImageWidth = \\"890\\";\\r\\n\\tvar defaultImageWidth = 960;\\r\\n\\tvar cssClass = article.cssClass || \\"\\";\\r\\n\\tvar isBreakout = cssClass.indexOf(\\"zpBreakout\\") !== -1 ? true : false;\\r\\n\\t\\r\\n\\t// Kann auch \\"700px\\" sein, deshalb mit parseInt nur die Zahl holen und trimmen - falls leer, auf default 960 setzen.\\r\\n\\tcontentImageWidth = parseInt(contentImageWidth) || defaultImageWidth;\\r\\n\\r\\n\\tvar gridCols = article.column.cssClass;\\r\\n\\tif ( gridCols ){\\r\\n\\t\\tgridCols = parseInt((gridCols.match(/\\bc[1-9][0-2]?\\b\\s?/) || 12).toString().replace(\\"c\\", \\"\\"));\\r\\n\\t}\\r\\n\\telse{\\r\\n\\t\\tgridCols = 12;\\r\\n\\t}\\r\\n\\tvar columnMargin = 30;\\r\\n\\tvar columnWidth = ((contentImageWidth + columnMargin) / 12) * gridCols;\\r\\n\\t// minimum width needed for 100% width display on 1-column breakpoint\\r\\n\\tvar minwidth = parseInt(479 - columnMargin);\\r\\n\\tvar contentCopyWidth = parseInt(columnWidth - columnMargin) || defaultImageWidth;\\r\\n\\tif ( minwidth > contentCopyWidth ){\\r\\n\\t\\tcontentCopyWidth = minwidth;\\r\\n\\t}\\r\\n\\t\\t\\r\\n\\t//system.log(\\"contentCopyWidth: \\" + contentCopyWidth + \\" - image: \\" + image.name + \\"( Page \\" + article.page.name +\\")\\");\\r\\n\\t\\r\\n\\tvar imageError = false;\\r\\n\\tif ( !isNull(image) ) {\\r\\n\\t\\tif ( isBreakout ){\\r\\n\\t\\t\\tcontentCopyWidth = image.workingCopyWidth;\\r\\n\\t\\t}\\r\\n\\t\\ttry {\\r\\n\\t\\t\\tvar iresult = image.ensureContentCopy(article, contentCopyWidth);\\r\\n\\t\\t\\tvar thumbImageWidth = image.contentCopyWidth;\\r\\n\\t\\t\\tvar thumbImageHeight = image.contentCopyHeight;\\r\\n\\t\\t\\tvar description = image.description;\\r\\n\\t\\t\\tvar altText = system.htmlEncode(system.removeHtmlTags(image.altText));\\r\\n\\t\\t\\tvar oldAltText = system.htmlEncode(system.removeHtmlTags(article.valueExpanded(\\"alt\\", \\"\\")));\\r\\n\\t\\t\\tif ( altText == \\"\\" && oldAltText !== \\"\\" ){\\r\\n\\t\\t\\t\\taltText = oldAltText;\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\tvar encodedDescription = system.htmlEncode(image.description);\\r\\n\\t\\t\\tvar stripDescription = system.htmlEncode(system.removeHtmlTags(image.description));\\r\\n\\t\\t\\t// strip
-Tags from description as
is not valid inside SPAN\\r\\n\\t\\t\\tdescription = description.toString().replace(/
/g,\\"\\");\\r\\n\\t\\t\\tdescription = description.toString().replace(/<\\/p>/g,\\" \\");\\r\\n\\t\\t\\t//system.log(\\" Image Width: \\" + contentCopyWidth +\\" / Returned contentCopyWidth:\\" + thumbImageWidth + \\" / Image Result: \\" + iresult);\\r\\n\\t\\t}\\r\\n\\t\\tcatch(err) {\\r\\n\\t\\t\\timageError = true;\\r\\n\\t\\t}\\r\\n\\t}\\r\\n\\t\\r\\n\\tif ( stripDescription !== \\"\\" ) {\\r\\n\\t\\tvar showCaption = \\"1\\";\\r\\n\\t}\\r\\n\\telse {\\r\\n\\t\\tvar showCaption = \\"0\\";\\r\\n\\t}\\r\\n\\r\\n\\tvar lightBox = article.value(\\"lightbox\\", \\"lightbox\\");\\r\\n\\tvar clickURL = article.value(\\"clickurl\\");\\r\\n\\tvar effect = article.value(\\"effect\\", \\"none\\");\\r\\n\\tvar effectClass = \\"\\";\\r\\n\\tswitch ( effect ) {\\r\\n\\t\\tcase \\"hoverzoom\\":\\r\\n\\t\\t\\teffectClass = \\" zpeffect zphoverscale\\";\\r\\n\\t\\t\\tbreak;\\r\\n\\t\\t\\r\\n\\t\\tdefault:\\r\\n\\t\\t\\teffectClass = \\"\\";\\r\\n\\t}\\r\\n \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\");\\r\\n\\r\\n if ( isNull(image) || imageError ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n if ( system.preview ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t
\\r\\n\\t\\t\\t\\tDas gewählte Bild ist anscheinend gelöscht worden. Bearbeiten Sie diesen Artikel und wählen Sie erneut ein Bild aus.\\r\\n\\t\\t\\t\\r\\n\\t\\t
\\r\\n\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n if ( lightBox == \\"zoom\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( image.isSvgImage ){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } else if ( image.isAnimatedGif ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\");\\r\\n\\r\\n } else if ( lightBox == true || lightBox == \\"lightbox\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n } else if ( lightBox == \\"off\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( image.isSvgImage ){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } else if ( image.isAnimatedGif ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( clickURL !== \\"\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( image.isSvgImage ){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n } else if ( image.isAnimatedGif ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\tGehe zu URL (go to url). \\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\");\\r\\n\\r\\n } \\r\\n\\r\\n// End source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n};\\r\\n\\r\\n/* Shortcuts. */\\r\\narticle = context.article;\\r\\npage = context.page;\\r\\nprojectFolder = context.projectFolder;\\r\\nproject = context.project;\\r\\nsystem = context.system;\\r\\n\\r\\n\\r\\nnew SE637303571347553612().executeScript();\\r\\n",
SourceContext=0,
WasCanceled=True,
Message="3472389472389",
Data=
[
"COM Exception" = COMException
{
ErrorCode=-2147352319,
Message="Ausnahme von HRESULT: 0x80020101",
Data=
[
]
,
InnerException=null,
TargetSite=RuntimeMethodInfo: ParseScriptText,
StackTrace=" bei ZetaProducer.SuperSlimScriptingEngine.Infrastructure.IActiveScriptParse32.ParseScriptText(String code, String itemName, Object context, String delimiter, IntPtr sourceContextCookie, UInt32 startingLineNumber, ScriptText flags, IntPtr result, EXCEPINFO& exceptionInfo)\\r\\n bei ZetaProducer.SuperSlimScriptingEngine.Infrastructure.ActiveScriptParseWrapper.ParseScriptText(String code, String itemName, Object context, String delimiter, IntPtr sourceContextCookie, UInt32 startingLineNumber, ScriptText flags, IntPtr result, EXCEPINFO& exceptionInfo) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\Infrastructure\\ActiveScriptComInterfaces.cs:Zeile 371.\\r\\n bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.doExecute(String script) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 118.",
HelpLink=null,
Source="ZetaProducer.SuperSlimScriptingEngine",
HResult=-2147352319
}
]
,
InnerException=null,
TargetSite=RuntimeMethodInfo: Throw,
StackTrace=" bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.doExecute(String script) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 174.\\r\\n bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.Execute(String script) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 71.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreterHelper.GuardEngineRun(SlimScriptEngine engine, String scriptToExecute, RenderingContext renderingContext, String runString) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Engine\\RenderingInterpreterHelper.cs:Zeile 179.",
HelpLink=null,
Source="ActiveScriptSite.ScriptError",
HResult=-2146233088
}
ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngineException: 3472389472389
bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.doExecute(String script) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\SuperSlimScriptingEngine\SlimScriptEngine.cs:Zeile 174.
bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.Execute(String script) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\SuperSlimScriptingEngine\SlimScriptEngine.cs:Zeile 71.
bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreterHelper.GuardEngineRun(SlimScriptEngine engine, String scriptToExecute, RenderingContext renderingContext, String runString) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\Engine\RenderingInterpreterHelper.cs:Zeile 179.
2020-07-14 20:58:56,296 [19] INFO - About to throw the following host exception:
2020-07-14 20:58:56,296 [19] INFO - ---------
2020-07-14 20:58:56,312 [19] INFO - ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.ErrorHandling.InterpreterException
-----------------
Skript-Fehler:
---------------
3472389472389
---------------
Zeile 229, Spalte 1: context.write( system.partial("article-begin.html", "popupimage") );
---------------
Datei: C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\widgets\singleimage\standard.html
---------------
Quelltext:
001: function SE637303571347553612() {}
002:
003:
004: SE637303571347553612.prototype.executeScript = function(){
005: // Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\widgets\singleimage\standard.html'.
006:
007:
008: var image = project.getImage(article.value("image"));
009: var contentImageWidth = "890";
010: var defaultImageWidth = 960;
011: var cssClass = article.cssClass || "";
012: var isBreakout = cssClass.indexOf("zpBreakout") !== -1 ? true : false;
013:
014: // Kann auch "700px" sein, deshalb mit parseInt nur die Zahl holen und trimmen - falls leer, auf default 960 setzen.
015: contentImageWidth = parseInt(contentImageWidth) || defaultImageWidth;
016:
017: var gridCols = article.column.cssClass;
018: if ( gridCols ){
019: gridCols = parseInt((gridCols.match(/\bc[1-9][0-2]?\b\s?/) || 12).toString().replace("c", ""));
020: }
021: else{
022: gridCols = 12;
023: }
024: var columnMargin = 30;
025: var columnWidth = ((contentImageWidth + columnMargin) / 12) * gridCols;
026: // minimum width needed for 100% width display on 1-column breakpoint
027: var minwidth = parseInt(479 - columnMargin);
028: var contentCopyWidth = parseInt(columnWidth - columnMargin) || defaultImageWidth;
029: if ( minwidth > contentCopyWidth ){
030: contentCopyWidth = minwidth;
031: }
032:
033: //system.log("contentCopyWidth: " + contentCopyWidth + " - image: " + image.name + "( Page " + article.page.name +")");
034:
035: var imageError = false;
036: if ( !isNull(image) ) {
037: if ( isBreakout ){
038: contentCopyWidth = image.workingCopyWidth;
039: }
040: try {
041: var iresult = image.ensureContentCopy(article, contentCopyWidth);
042: var thumbImageWidth = image.contentCopyWidth;
043: var thumbImageHeight = image.contentCopyHeight;
044: var description = image.description;
045: var altText = system.htmlEncode(system.removeHtmlTags(image.altText));
046: var oldAltText = system.htmlEncode(system.removeHtmlTags(article.valueExpanded("alt", "")));
047: if ( altText == "" && oldAltText !== "" ){
048: altText = oldAltText;
049: }
050: var encodedDescription = system.htmlEncode(image.description);
051: var stripDescription = system.htmlEncode(system.removeHtmlTags(image.description));
052: // strip
-Tags from description as
is not valid inside SPAN
053: description = description.toString().replace(/
/g,"");
054: description = description.toString().replace(/<\/p>/g," ");
055: //system.log(" Image Width: " + contentCopyWidth +" / Returned contentCopyWidth:" + thumbImageWidth + " / Image Result: " + iresult);
056: }
057: catch(err) {
058: imageError = true;
059: }
060: }
061:
062: if ( stripDescription !== "" ) {
063: var showCaption = "1";
064: }
065: else {
066: var showCaption = "0";
067: }
068:
069: var lightBox = article.value("lightbox", "lightbox");
070: var clickURL = article.value("clickurl");
071: var effect = article.value("effect", "none");
072: var effectClass = "";
073: switch ( effect ) {
074: case "hoverzoom":
075: effectClass = " zpeffect zphoverscale";
076: break;
077:
078: default:
079: effectClass = "";
080: }
081:
082:
083: context.write("\r\n\r\n");
084:
085: if ( isNull(image) || imageError ) {
086:
087: context.write("\r\n\t");
088:
089: if ( system.preview ) {
090:
091: context.write("\r\n\t\t
\r\n\t\t\t\tDas gewählte Bild ist anscheinend gelöscht worden. Bearbeiten Sie diesen Artikel und wählen Sie erneut ein Bild aus.\r\n\t\t\t\r\n\t\t
\r\n\t");
096:
097: }
098:
099: context.write("\r\n");
100:
101: } else {
102:
103: context.write("\r\n\t");
104:
105: if ( lightBox == "zoom" ) {
106:
107: context.write("\r\n\t\t");
108:
109: context.write( system.partial("article-begin.html", "popupimage") );
110:
111: context.write("\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t");
140:
141: if ( image.isSvgImage ){
142:
143: context.write("\r\n\t\t\t\t
\r\n\t\t\t\t");
156:
157: } else if ( image.isAnimatedGif ) {
158:
159: context.write("\r\n\t\t\t\t
\r\n\t\t\t\t");
180:
181: } else {
182:
183: context.write("\r\n\t\t\t\t
\r\n\t\t\t\t");
204:
205: }
206:
207: context.write("\r\n\t\t\t
\r\n\r\n\t\t\t");
208:
209: if ( showCaption == "1" && description ) {
210:
211: context.write("\r\n\t\t\t\t
");
212:
213: context.write( description );
214:
215: context.write(" \r\n\t\t\t");
216:
217: }
218:
219: context.write("\r\n\t\t\r\n\t\t\t
\r\n\t\t");
220:
221: context.write( system.partial("article-end.html") );
222:
223: context.write(" \r\n\t");
224:
225: } else if ( lightBox == true || lightBox == "lightbox" ) {
226:
227: context.write("\r\n\t\t");
228:
229: context.write( system.partial("article-begin.html", "popupimage") );
230:
231: context.write("\r\n\t\t\t
\r\n\t\t");
340:
341: context.write( system.partial("article-end.html") );
342:
343: context.write("\r\n\t");
344:
345: } else if ( lightBox == "off" ) {
346:
347: context.write("\r\n\t\t");
348:
349: context.write( system.partial("article-begin.html") );
350:
351: context.write("\r\n\t\t\t");
352:
353: if ( image.isSvgImage ){
354:
355: context.write("\r\n\t\t\t
\r\n\t\t\t");
368:
369: } else if ( image.isAnimatedGif ) {
370:
371: context.write("\r\n\t\t\t
\r\n\t\t\t");
392:
393: } else {
394:
395: context.write("\r\n\t\t\t
\r\n\t\t\t");
416:
417: }
418:
419: context.write("\r\n\r\n\t\t\t");
420:
421: if ( showCaption == "1" && description ) {
422:
423: context.write("\r\n\t\t\t\t
");
424:
425: context.write( description );
426:
427: context.write(" \r\n\t\t\t");
428:
429: }
430:
431: context.write("\r\n\t\t");
432:
433: context.write( system.partial("article-end.html") );
434:
435: context.write("\r\n\t");
436:
437: } else {
438:
439: context.write("\r\n\t\t");
440:
441: context.write( system.partial("article-begin.html") );
442:
443: context.write("\r\n\t\t\t");
444:
445: if ( clickURL !== "" ) {
446:
447: context.write("\r\n\t\t\t\t
\r\n\t\t\t\t\t");
459:
460: if ( image.isSvgImage ){
461:
462: context.write("\r\n\t\t\t\t\t \r\n\t\t\t\t\t");
475:
476: } else if ( image.isAnimatedGif ) {
477:
478: context.write("\r\n\t\t\t\t\t \r\n\t\t\t\t\t");
499:
500: } else {
501:
502: context.write("\r\n\t\t\t\t\t \r\n\t\t\t\t\t");
523:
524: }
525:
526: context.write("\r\n\t\t\t\t\tGehe zu URL (go to url). \r\n\t\t\t\t \r\n\t\t\t");
527:
528: } else {
529:
530: context.write("\r\n\t\t\t\t
\r\n\t\t\t");
551:
552: }
553:
554: context.write("\r\n\r\n\t\t\t");
555:
556: if ( showCaption == "1" && description ) {
557:
558: context.write("\r\n\t\t\t\t
");
559:
560: context.write( description );
561:
562: context.write(" \r\n\t\t\t");
563:
564: }
565:
566: context.write("\r\n\t\t");
567:
568: context.write( system.partial("article-end.html") );
569:
570: context.write("\r\n\t");
571:
572: }
573:
574: context.write("\r\n");
575:
576: }
577:
578: // End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\widgets\singleimage\standard.html'.
579: };
580:
581: /* Shortcuts. */
582: article = context.article;
583: page = context.page;
584: projectFolder = context.projectFolder;
585: project = context.project;
586: system = context.system;
587:
588:
589: new SE637303571347553612().executeScript();
-----------------
InterpreterException
{
ErrorDetailsWithStack="3472389472389",
CompleteSourceTextWithHiddenRegions="001: function SE637303571347553612() {}\\r\\n002: \\r\\n003: \\r\\n004: SE637303571347553612.prototype.executeScript = function(){\\r\\n005: // Start source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n006: \\r\\n007: \\r\\n008: \\tvar image = project.getImage(article.value(\\"image\\"));\\r\\n009: \\tvar contentImageWidth = \\"890\\";\\r\\n010: \\tvar defaultImageWidth = 960;\\r\\n011: \\tvar cssClass = article.cssClass || \\"\\";\\r\\n012: \\tvar isBreakout = cssClass.indexOf(\\"zpBreakout\\") !== -1 ? true : false;\\r\\n013: \\t\\r\\n014: \\t// Kann auch \\"700px\\" sein, deshalb mit parseInt nur die Zahl holen und trimmen - falls leer, auf default 960 setzen.\\r\\n015: \\tcontentImageWidth = parseInt(contentImageWidth) || defaultImageWidth;\\r\\n016: \\r\\n017: \\tvar gridCols = article.column.cssClass;\\r\\n018: \\tif ( gridCols ){\\r\\n019: \\t\\tgridCols = parseInt((gridCols.match(/\\bc[1-9][0-2]?\\b\\s?/) || 12).toString().replace(\\"c\\", \\"\\"));\\r\\n020: \\t}\\r\\n021: \\telse{\\r\\n022: \\t\\tgridCols = 12;\\r\\n023: \\t}\\r\\n024: \\tvar columnMargin = 30;\\r\\n025: \\tvar columnWidth = ((contentImageWidth + columnMargin) / 12) * gridCols;\\r\\n026: \\t// minimum width needed for 100% width display on 1-column breakpoint\\r\\n027: \\tvar minwidth = parseInt(479 - columnMargin);\\r\\n028: \\tvar contentCopyWidth = parseInt(columnWidth - columnMargin) || defaultImageWidth;\\r\\n029: \\tif ( minwidth > contentCopyWidth ){\\r\\n030: \\t\\tcontentCopyWidth = minwidth;\\r\\n031: \\t}\\r\\n032: \\t\\t\\r\\n033: \\t//system.log(\\"contentCopyWidth: \\" + contentCopyWidth + \\" - image: \\" + image.name + \\"( Page \\" + article.page.name +\\")\\");\\r\\n034: \\t\\r\\n035: \\tvar imageError = false;\\r\\n036: \\tif ( !isNull(image) ) {\\r\\n037: \\t\\tif ( isBreakout ){\\r\\n038: \\t\\t\\tcontentCopyWidth = image.workingCopyWidth;\\r\\n039: \\t\\t}\\r\\n040: \\t\\ttry {\\r\\n041: \\t\\t\\tvar iresult = image.ensureContentCopy(article, contentCopyWidth);\\r\\n042: \\t\\t\\tvar thumbImageWidth = image.contentCopyWidth;\\r\\n043: \\t\\t\\tvar thumbImageHeight = image.contentCopyHeight;\\r\\n044: \\t\\t\\tvar description = image.description;\\r\\n045: \\t\\t\\tvar altText = system.htmlEncode(system.removeHtmlTags(image.altText));\\r\\n046: \\t\\t\\tvar oldAltText = system.htmlEncode(system.removeHtmlTags(article.valueExpanded(\\"alt\\", \\"\\")));\\r\\n047: \\t\\t\\tif ( altText == \\"\\" && oldAltText !== \\"\\" ){\\r\\n048: \\t\\t\\t\\taltText = oldAltText;\\r\\n049: \\t\\t\\t}\\r\\n050: \\t\\t\\tvar encodedDescription = system.htmlEncode(image.description);\\r\\n051: \\t\\t\\tvar stripDescription = system.htmlEncode(system.removeHtmlTags(image.description));\\r\\n052: \\t\\t\\t// strip
-Tags from description as
is not valid inside SPAN\\r\\n053: \\t\\t\\tdescription = description.toString().replace(/
/g,\\"\\");\\r\\n054: \\t\\t\\tdescription = description.toString().replace(/<\\/p>/g,\\" \\");\\r\\n055: \\t\\t\\t//system.log(\\" Image Width: \\" + contentCopyWidth +\\" / Returned contentCopyWidth:\\" + thumbImageWidth + \\" / Image Result: \\" + iresult);\\r\\n056: \\t\\t}\\r\\n057: \\t\\tcatch(err) {\\r\\n058: \\t\\t\\timageError = true;\\r\\n059: \\t\\t}\\r\\n060: \\t}\\r\\n061: \\t\\r\\n062: \\tif ( stripDescription !== \\"\\" ) {\\r\\n063: \\t\\tvar showCaption = \\"1\\";\\r\\n064: \\t}\\r\\n065: \\telse {\\r\\n066: \\t\\tvar showCaption = \\"0\\";\\r\\n067: \\t}\\r\\n068: \\r\\n069: \\tvar lightBox = article.value(\\"lightbox\\", \\"lightbox\\");\\r\\n070: \\tvar clickURL = article.value(\\"clickurl\\");\\r\\n071: \\tvar effect = article.value(\\"effect\\", \\"none\\");\\r\\n072: \\tvar effectClass = \\"\\";\\r\\n073: \\tswitch ( effect ) {\\r\\n074: \\t\\tcase \\"hoverzoom\\":\\r\\n075: \\t\\t\\teffectClass = \\" zpeffect zphoverscale\\";\\r\\n076: \\t\\t\\tbreak;\\r\\n077: \\t\\t\\r\\n078: \\t\\tdefault:\\r\\n079: \\t\\t\\teffectClass = \\"\\";\\r\\n080: \\t}\\r\\n081: \\r\\n082: \\r\\n083: context.write(\\"\\r\\n\\r\\n\\");\\r\\n084: \\r\\n085: if ( isNull(image) || imageError ) { \\r\\n086: \\r\\n087: context.write(\\"\\r\\n\\t\\");\\r\\n088: \\r\\n089: if ( system.preview ) { \\r\\n090: \\r\\n091: context.write(\\"\\r\\n\\t\\t
\\r\\n\\t\\t\\t\\tDas gewählte Bild ist anscheinend gelöscht worden. Bearbeiten Sie diesen Artikel und wählen Sie erneut ein Bild aus.\\r\\n\\t\\t\\t\\r\\n\\t\\t
\\r\\n\\t\\");\\r\\n096: \\r\\n097: } \\r\\n098: \\r\\n099: context.write(\\"\\r\\n\\");\\r\\n100: \\r\\n101: } else { \\r\\n102: \\r\\n103: context.write(\\"\\r\\n\\t\\");\\r\\n104: \\r\\n105: if ( lightBox == \\"zoom\\" ) { \\r\\n106: \\r\\n107: context.write(\\"\\r\\n\\t\\t\\");\\r\\n108: \\r\\n109: context.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n110: \\r\\n111: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n140: \\r\\n141: if ( image.isSvgImage ){ \\r\\n142: \\r\\n143: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n156: \\r\\n157: } else if ( image.isAnimatedGif ) { \\r\\n158: \\r\\n159: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n180: \\r\\n181: } else { \\r\\n182: \\r\\n183: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n204: \\r\\n205: } \\r\\n206: \\r\\n207: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n208: \\r\\n209: if ( showCaption == \\"1\\" && description ) { \\r\\n210: \\r\\n211: context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n212: \\r\\n213: context.write( description );\\r\\n214: \\r\\n215: context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n216: \\r\\n217: } \\r\\n218: \\r\\n219: context.write(\\"\\r\\n\\t\\t\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n220: \\r\\n221: context.write( system.partial(\\"article-end.html\\") );\\r\\n222: \\r\\n223: context.write(\\" \\r\\n\\t\\");\\r\\n224: \\r\\n225: } else if ( lightBox == true || lightBox == \\"lightbox\\" ) { \\r\\n226: \\r\\n227: context.write(\\"\\r\\n\\t\\t\\");\\r\\n228: \\r\\n229: context.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n230: \\r\\n231: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n340: \\r\\n341: context.write( system.partial(\\"article-end.html\\") );\\r\\n342: \\r\\n343: context.write(\\"\\r\\n\\t\\");\\r\\n344: \\r\\n345: } else if ( lightBox == \\"off\\" ) { \\r\\n346: \\r\\n347: context.write(\\"\\r\\n\\t\\t\\");\\r\\n348: \\r\\n349: context.write( system.partial(\\"article-begin.html\\") );\\r\\n350: \\r\\n351: context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n352: \\r\\n353: if ( image.isSvgImage ){ \\r\\n354: \\r\\n355: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n368: \\r\\n369: } else if ( image.isAnimatedGif ) { \\r\\n370: \\r\\n371: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n392: \\r\\n393: } else { \\r\\n394: \\r\\n395: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n416: \\r\\n417: } \\r\\n418: \\r\\n419: context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n420: \\r\\n421: if ( showCaption == \\"1\\" && description ) { \\r\\n422: \\r\\n423: context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n424: \\r\\n425: context.write( description );\\r\\n426: \\r\\n427: context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n428: \\r\\n429: } \\r\\n430: \\r\\n431: context.write(\\"\\r\\n\\t\\t\\");\\r\\n432: \\r\\n433: context.write( system.partial(\\"article-end.html\\") );\\r\\n434: \\r\\n435: context.write(\\"\\r\\n\\t\\");\\r\\n436: \\r\\n437: } else { \\r\\n438: \\r\\n439: context.write(\\"\\r\\n\\t\\t\\");\\r\\n440: \\r\\n441: context.write( system.partial(\\"article-begin.html\\") );\\r\\n442: \\r\\n443: context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n444: \\r\\n445: if ( clickURL !== \\"\\" ) { \\r\\n446: \\r\\n447: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n459: \\r\\n460: if ( image.isSvgImage ){ \\r\\n461: \\r\\n462: context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n475: \\r\\n476: } else if ( image.isAnimatedGif ) { \\r\\n477: \\r\\n478: context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n499: \\r\\n500: } else { \\r\\n501: \\r\\n502: context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n523: \\r\\n524: } \\r\\n525: \\r\\n526: context.write(\\"\\r\\n\\t\\t\\t\\t\\tGehe zu URL (go to url). \\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\");\\r\\n527: \\r\\n528: } else { \\r\\n529: \\r\\n530: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n551: \\r\\n552: } \\r\\n553: \\r\\n554: context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n555: \\r\\n556: if ( showCaption == \\"1\\" && description ) { \\r\\n557: \\r\\n558: context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n559: \\r\\n560: context.write( description );\\r\\n561: \\r\\n562: context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n563: \\r\\n564: } \\r\\n565: \\r\\n566: context.write(\\"\\r\\n\\t\\t\\");\\r\\n567: \\r\\n568: context.write( system.partial(\\"article-end.html\\") );\\r\\n569: \\r\\n570: context.write(\\"\\r\\n\\t\\");\\r\\n571: \\r\\n572: } \\r\\n573: \\r\\n574: context.write(\\"\\r\\n\\");\\r\\n575: \\r\\n576: } \\r\\n577: \\r\\n578: // End source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n579: };\\r\\n580: \\r\\n581: /* Shortcuts. */\\r\\n582: article = context.article;\\r\\n583: page = context.page;\\r\\n584: projectFolder = context.projectFolder;\\r\\n585: project = context.project;\\r\\n586: system = context.system;\\r\\n587: \\r\\n588: \\r\\n589: new SE637303571347553612().executeScript();\\r\\n",
CompleteSourceText="001: function SE637303571347553612() {}\\r\\n002: \\r\\n003: \\r\\n004: SE637303571347553612.prototype.executeScript = function(){\\r\\n005: // Start source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n006: \\r\\n007: \\r\\n008: \\tvar image = project.getImage(article.value(\\"image\\"));\\r\\n009: \\tvar contentImageWidth = \\"890\\";\\r\\n010: \\tvar defaultImageWidth = 960;\\r\\n011: \\tvar cssClass = article.cssClass || \\"\\";\\r\\n012: \\tvar isBreakout = cssClass.indexOf(\\"zpBreakout\\") !== -1 ? true : false;\\r\\n013: \\t\\r\\n014: \\t// Kann auch \\"700px\\" sein, deshalb mit parseInt nur die Zahl holen und trimmen - falls leer, auf default 960 setzen.\\r\\n015: \\tcontentImageWidth = parseInt(contentImageWidth) || defaultImageWidth;\\r\\n016: \\r\\n017: \\tvar gridCols = article.column.cssClass;\\r\\n018: \\tif ( gridCols ){\\r\\n019: \\t\\tgridCols = parseInt((gridCols.match(/\\bc[1-9][0-2]?\\b\\s?/) || 12).toString().replace(\\"c\\", \\"\\"));\\r\\n020: \\t}\\r\\n021: \\telse{\\r\\n022: \\t\\tgridCols = 12;\\r\\n023: \\t}\\r\\n024: \\tvar columnMargin = 30;\\r\\n025: \\tvar columnWidth = ((contentImageWidth + columnMargin) / 12) * gridCols;\\r\\n026: \\t// minimum width needed for 100% width display on 1-column breakpoint\\r\\n027: \\tvar minwidth = parseInt(479 - columnMargin);\\r\\n028: \\tvar contentCopyWidth = parseInt(columnWidth - columnMargin) || defaultImageWidth;\\r\\n029: \\tif ( minwidth > contentCopyWidth ){\\r\\n030: \\t\\tcontentCopyWidth = minwidth;\\r\\n031: \\t}\\r\\n032: \\t\\t\\r\\n033: \\t//system.log(\\"contentCopyWidth: \\" + contentCopyWidth + \\" - image: \\" + image.name + \\"( Page \\" + article.page.name +\\")\\");\\r\\n034: \\t\\r\\n035: \\tvar imageError = false;\\r\\n036: \\tif ( !isNull(image) ) {\\r\\n037: \\t\\tif ( isBreakout ){\\r\\n038: \\t\\t\\tcontentCopyWidth = image.workingCopyWidth;\\r\\n039: \\t\\t}\\r\\n040: \\t\\ttry {\\r\\n041: \\t\\t\\tvar iresult = image.ensureContentCopy(article, contentCopyWidth);\\r\\n042: \\t\\t\\tvar thumbImageWidth = image.contentCopyWidth;\\r\\n043: \\t\\t\\tvar thumbImageHeight = image.contentCopyHeight;\\r\\n044: \\t\\t\\tvar description = image.description;\\r\\n045: \\t\\t\\tvar altText = system.htmlEncode(system.removeHtmlTags(image.altText));\\r\\n046: \\t\\t\\tvar oldAltText = system.htmlEncode(system.removeHtmlTags(article.valueExpanded(\\"alt\\", \\"\\")));\\r\\n047: \\t\\t\\tif ( altText == \\"\\" && oldAltText !== \\"\\" ){\\r\\n048: \\t\\t\\t\\taltText = oldAltText;\\r\\n049: \\t\\t\\t}\\r\\n050: \\t\\t\\tvar encodedDescription = system.htmlEncode(image.description);\\r\\n051: \\t\\t\\tvar stripDescription = system.htmlEncode(system.removeHtmlTags(image.description));\\r\\n052: \\t\\t\\t// strip
-Tags from description as
is not valid inside SPAN\\r\\n053: \\t\\t\\tdescription = description.toString().replace(/
/g,\\"\\");\\r\\n054: \\t\\t\\tdescription = description.toString().replace(/<\\/p>/g,\\" \\");\\r\\n055: \\t\\t\\t//system.log(\\" Image Width: \\" + contentCopyWidth +\\" / Returned contentCopyWidth:\\" + thumbImageWidth + \\" / Image Result: \\" + iresult);\\r\\n056: \\t\\t}\\r\\n057: \\t\\tcatch(err) {\\r\\n058: \\t\\t\\timageError = true;\\r\\n059: \\t\\t}\\r\\n060: \\t}\\r\\n061: \\t\\r\\n062: \\tif ( stripDescription !== \\"\\" ) {\\r\\n063: \\t\\tvar showCaption = \\"1\\";\\r\\n064: \\t}\\r\\n065: \\telse {\\r\\n066: \\t\\tvar showCaption = \\"0\\";\\r\\n067: \\t}\\r\\n068: \\r\\n069: \\tvar lightBox = article.value(\\"lightbox\\", \\"lightbox\\");\\r\\n070: \\tvar clickURL = article.value(\\"clickurl\\");\\r\\n071: \\tvar effect = article.value(\\"effect\\", \\"none\\");\\r\\n072: \\tvar effectClass = \\"\\";\\r\\n073: \\tswitch ( effect ) {\\r\\n074: \\t\\tcase \\"hoverzoom\\":\\r\\n075: \\t\\t\\teffectClass = \\" zpeffect zphoverscale\\";\\r\\n076: \\t\\t\\tbreak;\\r\\n077: \\t\\t\\r\\n078: \\t\\tdefault:\\r\\n079: \\t\\t\\teffectClass = \\"\\";\\r\\n080: \\t}\\r\\n081: \\r\\n082: \\r\\n083: context.write(\\"\\r\\n\\r\\n\\");\\r\\n084: \\r\\n085: if ( isNull(image) || imageError ) { \\r\\n086: \\r\\n087: context.write(\\"\\r\\n\\t\\");\\r\\n088: \\r\\n089: if ( system.preview ) { \\r\\n090: \\r\\n091: context.write(\\"\\r\\n\\t\\t
\\r\\n\\t\\t\\t\\tDas gewählte Bild ist anscheinend gelöscht worden. Bearbeiten Sie diesen Artikel und wählen Sie erneut ein Bild aus.\\r\\n\\t\\t\\t\\r\\n\\t\\t
\\r\\n\\t\\");\\r\\n096: \\r\\n097: } \\r\\n098: \\r\\n099: context.write(\\"\\r\\n\\");\\r\\n100: \\r\\n101: } else { \\r\\n102: \\r\\n103: context.write(\\"\\r\\n\\t\\");\\r\\n104: \\r\\n105: if ( lightBox == \\"zoom\\" ) { \\r\\n106: \\r\\n107: context.write(\\"\\r\\n\\t\\t\\");\\r\\n108: \\r\\n109: context.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n110: \\r\\n111: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n140: \\r\\n141: if ( image.isSvgImage ){ \\r\\n142: \\r\\n143: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n156: \\r\\n157: } else if ( image.isAnimatedGif ) { \\r\\n158: \\r\\n159: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n180: \\r\\n181: } else { \\r\\n182: \\r\\n183: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n204: \\r\\n205: } \\r\\n206: \\r\\n207: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n208: \\r\\n209: if ( showCaption == \\"1\\" && description ) { \\r\\n210: \\r\\n211: context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n212: \\r\\n213: context.write( description );\\r\\n214: \\r\\n215: context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n216: \\r\\n217: } \\r\\n218: \\r\\n219: context.write(\\"\\r\\n\\t\\t\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n220: \\r\\n221: context.write( system.partial(\\"article-end.html\\") );\\r\\n222: \\r\\n223: context.write(\\" \\r\\n\\t\\");\\r\\n224: \\r\\n225: } else if ( lightBox == true || lightBox == \\"lightbox\\" ) { \\r\\n226: \\r\\n227: context.write(\\"\\r\\n\\t\\t\\");\\r\\n228: \\r\\n229: context.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n230: \\r\\n231: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n340: \\r\\n341: context.write( system.partial(\\"article-end.html\\") );\\r\\n342: \\r\\n343: context.write(\\"\\r\\n\\t\\");\\r\\n344: \\r\\n345: } else if ( lightBox == \\"off\\" ) { \\r\\n346: \\r\\n347: context.write(\\"\\r\\n\\t\\t\\");\\r\\n348: \\r\\n349: context.write( system.partial(\\"article-begin.html\\") );\\r\\n350: \\r\\n351: context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n352: \\r\\n353: if ( image.isSvgImage ){ \\r\\n354: \\r\\n355: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n368: \\r\\n369: } else if ( image.isAnimatedGif ) { \\r\\n370: \\r\\n371: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n392: \\r\\n393: } else { \\r\\n394: \\r\\n395: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n416: \\r\\n417: } \\r\\n418: \\r\\n419: context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n420: \\r\\n421: if ( showCaption == \\"1\\" && description ) { \\r\\n422: \\r\\n423: context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n424: \\r\\n425: context.write( description );\\r\\n426: \\r\\n427: context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n428: \\r\\n429: } \\r\\n430: \\r\\n431: context.write(\\"\\r\\n\\t\\t\\");\\r\\n432: \\r\\n433: context.write( system.partial(\\"article-end.html\\") );\\r\\n434: \\r\\n435: context.write(\\"\\r\\n\\t\\");\\r\\n436: \\r\\n437: } else { \\r\\n438: \\r\\n439: context.write(\\"\\r\\n\\t\\t\\");\\r\\n440: \\r\\n441: context.write( system.partial(\\"article-begin.html\\") );\\r\\n442: \\r\\n443: context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n444: \\r\\n445: if ( clickURL !== \\"\\" ) { \\r\\n446: \\r\\n447: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n459: \\r\\n460: if ( image.isSvgImage ){ \\r\\n461: \\r\\n462: context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n475: \\r\\n476: } else if ( image.isAnimatedGif ) { \\r\\n477: \\r\\n478: context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n499: \\r\\n500: } else { \\r\\n501: \\r\\n502: context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n523: \\r\\n524: } \\r\\n525: \\r\\n526: context.write(\\"\\r\\n\\t\\t\\t\\t\\tGehe zu URL (go to url). \\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\");\\r\\n527: \\r\\n528: } else { \\r\\n529: \\r\\n530: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n551: \\r\\n552: } \\r\\n553: \\r\\n554: context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n555: \\r\\n556: if ( showCaption == \\"1\\" && description ) { \\r\\n557: \\r\\n558: context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n559: \\r\\n560: context.write( description );\\r\\n561: \\r\\n562: context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n563: \\r\\n564: } \\r\\n565: \\r\\n566: context.write(\\"\\r\\n\\t\\t\\");\\r\\n567: \\r\\n568: context.write( system.partial(\\"article-end.html\\") );\\r\\n569: \\r\\n570: context.write(\\"\\r\\n\\t\\");\\r\\n571: \\r\\n572: } \\r\\n573: \\r\\n574: context.write(\\"\\r\\n\\");\\r\\n575: \\r\\n576: } \\r\\n577: \\r\\n578: // End source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n579: };\\r\\n580: \\r\\n581: /* Shortcuts. */\\r\\n582: article = context.article;\\r\\n583: page = context.page;\\r\\n584: projectFolder = context.projectFolder;\\r\\n585: project = context.project;\\r\\n586: system = context.system;\\r\\n587: \\r\\n588: \\r\\n589: new SE637303571347553612().executeScript();",
CompleteSourceLines=String[]
{
Length=589,
LongLength=589,
Rank=1,
,
IsReadOnly=False,
IsFixedSize=True,
IsSynchronized=False
"001: function SE637303571347553612() {}",
"002: ",
"003: ",
"004: SE637303571347553612.prototype.executeScript = function(){",
"005: // Start source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.",
"006: ",
"007: ",
"008: \\tvar image = project.getImage(article.value(\\"image\\"));",
"009: \\tvar contentImageWidth = \\"890\\";",
"010: \\tvar defaultImageWidth = 960;",
"011: \\tvar cssClass = article.cssClass || \\"\\";",
"012: \\tvar isBreakout = cssClass.indexOf(\\"zpBreakout\\") !== -1 ? true : false;",
"013: \\t",
"014: \\t// Kann auch \\"700px\\" sein, deshalb mit parseInt nur die Zahl holen und trimmen - falls leer, auf default 960 setzen.",
"015: \\tcontentImageWidth = parseInt(contentImageWidth) || defaultImageWidth;",
"016: ",
"017: \\tvar gridCols = article.column.cssClass;",
"018: \\tif ( gridCols ){",
"019: \\t\\tgridCols = parseInt((gridCols.match(/\\bc[1-9][0-2]?\\b\\s?/) || 12).toString().replace(\\"c\\", \\"\\"));",
"020: \\t}",
"021: \\telse{",
"022: \\t\\tgridCols = 12;",
"023: \\t}",
"024: \\tvar columnMargin = 30;",
"025: \\tvar columnWidth = ((contentImageWidth + columnMargin) / 12) * gridCols;",
"026: \\t// minimum width needed for 100% width display on 1-column breakpoint",
"027: \\tvar minwidth = parseInt(479 - columnMargin);",
"028: \\tvar contentCopyWidth = parseInt(columnWidth - columnMargin) || defaultImageWidth;",
"029: \\tif ( minwidth > contentCopyWidth ){",
"030: \\t\\tcontentCopyWidth = minwidth;",
"031: \\t}",
"032: \\t\\t",
"033: \\t//system.log(\\"contentCopyWidth: \\" + contentCopyWidth + \\" - image: \\" + image.name + \\"( Page \\" + article.page.name +\\")\\");",
"034: \\t",
"035: \\tvar imageError = false;",
"036: \\tif ( !isNull(image) ) {",
"037: \\t\\tif ( isBreakout ){",
"038: \\t\\t\\tcontentCopyWidth = image.workingCopyWidth;",
"039: \\t\\t}",
"040: \\t\\ttry {",
"041: \\t\\t\\tvar iresult = image.ensureContentCopy(article, contentCopyWidth);",
"042: \\t\\t\\tvar thumbImageWidth = image.contentCopyWidth;",
"043: \\t\\t\\tvar thumbImageHeight = image.contentCopyHeight;",
"044: \\t\\t\\tvar description = image.description;",
"045: \\t\\t\\tvar altText = system.htmlEncode(system.removeHtmlTags(image.altText));",
"046: \\t\\t\\tvar oldAltText = system.htmlEncode(system.removeHtmlTags(article.valueExpanded(\\"alt\\", \\"\\")));",
"047: \\t\\t\\tif ( altText == \\"\\" && oldAltText !== \\"\\" ){",
"048: \\t\\t\\t\\taltText = oldAltText;",
"049: \\t\\t\\t}",
"050: \\t\\t\\tvar encodedDescription = system.htmlEncode(image.description);",
"051: \\t\\t\\tvar stripDescription = system.htmlEncode(system.removeHtmlTags(image.description));",
"052: \\t\\t\\t// strip
-Tags from description as
is not valid inside SPAN",
"053: \\t\\t\\tdescription = description.toString().replace(/
/g,\\"\\");",
"054: \\t\\t\\tdescription = description.toString().replace(/<\\/p>/g,\\" \\");",
"055: \\t\\t\\t//system.log(\\" Image Width: \\" + contentCopyWidth +\\" / Returned contentCopyWidth:\\" + thumbImageWidth + \\" / Image Result: \\" + iresult);",
"056: \\t\\t}",
"057: \\t\\tcatch(err) {",
"058: \\t\\t\\timageError = true;",
"059: \\t\\t}",
"060: \\t}",
"061: \\t",
"062: \\tif ( stripDescription !== \\"\\" ) {",
"063: \\t\\tvar showCaption = \\"1\\";",
"064: \\t}",
"065: \\telse {",
"066: \\t\\tvar showCaption = \\"0\\";",
"067: \\t}",
"068: ",
"069: \\tvar lightBox = article.value(\\"lightbox\\", \\"lightbox\\");",
"070: \\tvar clickURL = article.value(\\"clickurl\\");",
"071: \\tvar effect = article.value(\\"effect\\", \\"none\\");",
"072: \\tvar effectClass = \\"\\";",
"073: \\tswitch ( effect ) {",
"074: \\t\\tcase \\"hoverzoom\\":",
"075: \\t\\t\\teffectClass = \\" zpeffect zphoverscale\\";",
"076: \\t\\t\\tbreak;",
"077: \\t\\t",
"078: \\t\\tdefault:",
"079: \\t\\t\\teffectClass = \\"\\";",
"080: \\t}",
"081: ",
"082: ",
"083: context.write(\\"\\r\\n\\r\\n\\");",
"084: ",
"085: if ( isNull(image) || imageError ) { ",
"086: ",
"087: context.write(\\"\\r\\n\\t\\");",
"088: ",
"089: if ( system.preview ) { ",
"090: ",
"091: context.write(\\"\\r\\n\\t\\t
\\r\\n\\t\\t\\t\\tDas gewählte Bild ist anscheinend gelöscht worden. Bearbeiten Sie diesen Artikel und wählen Sie erneut ein Bild aus.\\r\\n\\t\\t\\t\\r\\n\\t\\t
\\r\\n\\t\\");",
"096: ",
"097: } ",
"098: ",
"099: context.write(\\"\\r\\n\\");",
"100: ",
"101: } else { ",
"102: ",
"103: context.write(\\"\\r\\n\\t\\");",
"104: ",
"105: if ( lightBox == \\"zoom\\" ) { ",
"106: ",
"107: context.write(\\"\\r\\n\\t\\t\\");",
"108: ",
"109: context.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );",
"110: ",
"111: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");",
"140: ",
"141: if ( image.isSvgImage ){ ",
"142: ",
"143: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");",
"156: ",
"157: } else if ( image.isAnimatedGif ) { ",
"158: ",
"159: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");",
"180: ",
"181: } else { ",
"182: ",
"183: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");",
"204: ",
"205: } ",
"206: ",
"207: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\r\\n\\t\\t\\t\\");",
"208: ",
"209: if ( showCaption == \\"1\\" && description ) { ",
"210: ",
"211: context.write(\\"\\r\\n\\t\\t\\t\\t
\\");",
"212: ",
"213: context.write( description );",
"214: ",
"215: context.write(\\" \\r\\n\\t\\t\\t\\");",
"216: ",
"217: } ",
"218: ",
"219: context.write(\\"\\r\\n\\t\\t\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");",
"220: ",
"221: context.write( system.partial(\\"article-end.html\\") );",
"222: ",
"223: context.write(\\" \\r\\n\\t\\");",
"224: ",
"225: } else if ( lightBox == true || lightBox == \\"lightbox\\" ) { ",
"226: ",
"227: context.write(\\"\\r\\n\\t\\t\\");",
"228: ",
"229: context.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );",
"230: ",
"231: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");",
"260: ",
"261: if ( image.isSvgImage ){ ",
"262: ",
"263: context.write(\\"\\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\");",
"276: ",
"277: } else if ( image.isAnimatedGif ) { ",
"278: ",
"279: context.write(\\"\\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\");",
"300: ",
"301: } else { ",
"302: ",
"303: context.write(\\"\\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\");",
"324: ",
"325: } ",
"326: ",
"327: context.write(\\"\\r\\n\\t\\t\\t\\tBild in Lightbox öffnen (open image in lightbox). \\r\\n\\t\\t\\t \\r\\n\\r\\n\\t\\t\\t\\");",
"328: ",
"329: if ( showCaption == \\"1\\" && description ) { ",
"330: ",
"331: context.write(\\"\\r\\n\\t\\t\\t\\t
\\");",
"332: ",
"333: context.write( description );",
"334: ",
"335: context.write(\\" \\r\\n\\t\\t\\t\\");",
"336: ",
"337: } ",
"338: ",
"339: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");",
"340: ",
"341: context.write( system.partial(\\"article-end.html\\") );",
"342: ",
"343: context.write(\\"\\r\\n\\t\\");",
"344: ",
"345: } else if ( lightBox == \\"off\\" ) { ",
"346: ",
"347: context.write(\\"\\r\\n\\t\\t\\");",
"348: ",
"349: context.write( system.partial(\\"article-begin.html\\") );",
"350: ",
"351: context.write(\\"\\r\\n\\t\\t\\t\\");",
"352: ",
"353: if ( image.isSvgImage ){ ",
"354: ",
"355: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");",
"368: ",
"369: } else if ( image.isAnimatedGif ) { ",
"370: ",
"371: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");",
"392: ",
"393: } else { ",
"394: ",
"395: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");",
"416: ",
"417: } ",
"418: ",
"419: context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");",
"420: ",
"421: if ( showCaption == \\"1\\" && description ) { ",
"422: ",
"423: context.write(\\"\\r\\n\\t\\t\\t\\t
\\");",
"424: ",
"425: context.write( description );",
"426: ",
"427: context.write(\\" \\r\\n\\t\\t\\t\\");",
"428: ",
"429: } ",
"430: ",
"431: context.write(\\"\\r\\n\\t\\t\\");",
"432: ",
"433: context.write( system.partial(\\"article-end.html\\") );",
"434: ",
"435: context.write(\\"\\r\\n\\t\\");",
"436: ",
"437: } else { ",
"438: ",
"439: context.write(\\"\\r\\n\\t\\t\\");",
"440: ",
"441: context.write( system.partial(\\"article-begin.html\\") );",
"442: ",
"443: context.write(\\"\\r\\n\\t\\t\\t\\");",
"444: ",
"445: if ( clickURL !== \\"\\" ) { ",
"446: ",
"447: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\");",
"459: ",
"460: if ( image.isSvgImage ){ ",
"461: ",
"462: context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");",
"475: ",
"476: } else if ( image.isAnimatedGif ) { ",
"477: ",
"478: context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");",
"499: ",
"500: } else { ",
"501: ",
"502: context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");",
"523: ",
"524: } ",
"525: ",
"526: context.write(\\"\\r\\n\\t\\t\\t\\t\\tGehe zu URL (go to url). \\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\");",
"527: ",
"528: } else { ",
"529: ",
"530: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\");",
"551: ",
"552: } ",
"553: ",
"554: context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");",
"555: ",
"556: if ( showCaption == \\"1\\" && description ) { ",
"557: ",
"558: context.write(\\"\\r\\n\\t\\t\\t\\t
\\");",
"559: ",
"560: context.write( description );",
"561: ",
"562: context.write(\\" \\r\\n\\t\\t\\t\\");",
"563: ",
"564: } ",
"565: ",
"566: context.write(\\"\\r\\n\\t\\t\\");",
"567: ",
"568: context.write( system.partial(\\"article-end.html\\") );",
"569: ",
"570: context.write(\\"\\r\\n\\t\\");",
"571: ",
"572: } ",
"573: ",
"574: context.write(\\"\\r\\n\\");",
"575: ",
"576: } ",
"577: ",
"578: // End source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.",
"579: };",
"580: ",
"581: /* Shortcuts. */",
"582: article = context.article;",
"583: page = context.page;",
"584: projectFolder = context.projectFolder;",
"585: project = context.project;",
"586: system = context.system;",
"587: ",
"588: ",
"589: new SE637303571347553612().executeScript();"
},
LineNumber=228,
ColumnNumber=0,
SourceLine="context.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );",
Description="3472389472389",
SourceFilePath="C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html",
WasCanceled=True,
Message="3472389472389",
Data=
[
]
,
InnerException=SlimScriptEngineException
{
ExcepInfo=EXCEPINFO
{
},
Description="3472389472389",
LineNumber=228,
ColumnNumber=0,
SourceLine="context.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );",
FullSourceCode="function SE637303571347553612() {}\\r\\n\\r\\n\\r\\nSE637303571347553612.prototype.executeScript = function(){\\r\\n// Start source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n\\r\\n\\r\\n\\tvar image = project.getImage(article.value(\\"image\\"));\\r\\n\\tvar contentImageWidth = \\"890\\";\\r\\n\\tvar defaultImageWidth = 960;\\r\\n\\tvar cssClass = article.cssClass || \\"\\";\\r\\n\\tvar isBreakout = cssClass.indexOf(\\"zpBreakout\\") !== -1 ? true : false;\\r\\n\\t\\r\\n\\t// Kann auch \\"700px\\" sein, deshalb mit parseInt nur die Zahl holen und trimmen - falls leer, auf default 960 setzen.\\r\\n\\tcontentImageWidth = parseInt(contentImageWidth) || defaultImageWidth;\\r\\n\\r\\n\\tvar gridCols = article.column.cssClass;\\r\\n\\tif ( gridCols ){\\r\\n\\t\\tgridCols = parseInt((gridCols.match(/\\bc[1-9][0-2]?\\b\\s?/) || 12).toString().replace(\\"c\\", \\"\\"));\\r\\n\\t}\\r\\n\\telse{\\r\\n\\t\\tgridCols = 12;\\r\\n\\t}\\r\\n\\tvar columnMargin = 30;\\r\\n\\tvar columnWidth = ((contentImageWidth + columnMargin) / 12) * gridCols;\\r\\n\\t// minimum width needed for 100% width display on 1-column breakpoint\\r\\n\\tvar minwidth = parseInt(479 - columnMargin);\\r\\n\\tvar contentCopyWidth = parseInt(columnWidth - columnMargin) || defaultImageWidth;\\r\\n\\tif ( minwidth > contentCopyWidth ){\\r\\n\\t\\tcontentCopyWidth = minwidth;\\r\\n\\t}\\r\\n\\t\\t\\r\\n\\t//system.log(\\"contentCopyWidth: \\" + contentCopyWidth + \\" - image: \\" + image.name + \\"( Page \\" + article.page.name +\\")\\");\\r\\n\\t\\r\\n\\tvar imageError = false;\\r\\n\\tif ( !isNull(image) ) {\\r\\n\\t\\tif ( isBreakout ){\\r\\n\\t\\t\\tcontentCopyWidth = image.workingCopyWidth;\\r\\n\\t\\t}\\r\\n\\t\\ttry {\\r\\n\\t\\t\\tvar iresult = image.ensureContentCopy(article, contentCopyWidth);\\r\\n\\t\\t\\tvar thumbImageWidth = image.contentCopyWidth;\\r\\n\\t\\t\\tvar thumbImageHeight = image.contentCopyHeight;\\r\\n\\t\\t\\tvar description = image.description;\\r\\n\\t\\t\\tvar altText = system.htmlEncode(system.removeHtmlTags(image.altText));\\r\\n\\t\\t\\tvar oldAltText = system.htmlEncode(system.removeHtmlTags(article.valueExpanded(\\"alt\\", \\"\\")));\\r\\n\\t\\t\\tif ( altText == \\"\\" && oldAltText !== \\"\\" ){\\r\\n\\t\\t\\t\\taltText = oldAltText;\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\tvar encodedDescription = system.htmlEncode(image.description);\\r\\n\\t\\t\\tvar stripDescription = system.htmlEncode(system.removeHtmlTags(image.description));\\r\\n\\t\\t\\t// strip
-Tags from description as
is not valid inside SPAN\\r\\n\\t\\t\\tdescription = description.toString().replace(/
/g,\\"\\");\\r\\n\\t\\t\\tdescription = description.toString().replace(/<\\/p>/g,\\" \\");\\r\\n\\t\\t\\t//system.log(\\" Image Width: \\" + contentCopyWidth +\\" / Returned contentCopyWidth:\\" + thumbImageWidth + \\" / Image Result: \\" + iresult);\\r\\n\\t\\t}\\r\\n\\t\\tcatch(err) {\\r\\n\\t\\t\\timageError = true;\\r\\n\\t\\t}\\r\\n\\t}\\r\\n\\t\\r\\n\\tif ( stripDescription !== \\"\\" ) {\\r\\n\\t\\tvar showCaption = \\"1\\";\\r\\n\\t}\\r\\n\\telse {\\r\\n\\t\\tvar showCaption = \\"0\\";\\r\\n\\t}\\r\\n\\r\\n\\tvar lightBox = article.value(\\"lightbox\\", \\"lightbox\\");\\r\\n\\tvar clickURL = article.value(\\"clickurl\\");\\r\\n\\tvar effect = article.value(\\"effect\\", \\"none\\");\\r\\n\\tvar effectClass = \\"\\";\\r\\n\\tswitch ( effect ) {\\r\\n\\t\\tcase \\"hoverzoom\\":\\r\\n\\t\\t\\teffectClass = \\" zpeffect zphoverscale\\";\\r\\n\\t\\t\\tbreak;\\r\\n\\t\\t\\r\\n\\t\\tdefault:\\r\\n\\t\\t\\teffectClass = \\"\\";\\r\\n\\t}\\r\\n \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\");\\r\\n\\r\\n if ( isNull(image) || imageError ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n if ( system.preview ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t
\\r\\n\\t\\t\\t\\tDas gewählte Bild ist anscheinend gelöscht worden. Bearbeiten Sie diesen Artikel und wählen Sie erneut ein Bild aus.\\r\\n\\t\\t\\t\\r\\n\\t\\t
\\r\\n\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n if ( lightBox == \\"zoom\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( image.isSvgImage ){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } else if ( image.isAnimatedGif ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\");\\r\\n\\r\\n } else if ( lightBox == true || lightBox == \\"lightbox\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n } else if ( lightBox == \\"off\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( image.isSvgImage ){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } else if ( image.isAnimatedGif ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( clickURL !== \\"\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( image.isSvgImage ){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n } else if ( image.isAnimatedGif ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\tGehe zu URL (go to url). \\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\");\\r\\n\\r\\n } \\r\\n\\r\\n// End source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n};\\r\\n\\r\\n/* Shortcuts. */\\r\\narticle = context.article;\\r\\npage = context.page;\\r\\nprojectFolder = context.projectFolder;\\r\\nproject = context.project;\\r\\nsystem = context.system;\\r\\n\\r\\n\\r\\nnew SE637303571347553612().executeScript();\\r\\n",
SourceContext=0,
WasCanceled=True,
Message="3472389472389",
Data=
[
"COM Exception" = COMException
{
ErrorCode=-2147352319,
Message="Ausnahme von HRESULT: 0x80020101",
Data=
[
]
,
InnerException=null,
TargetSite=RuntimeMethodInfo: ParseScriptText,
StackTrace=" bei ZetaProducer.SuperSlimScriptingEngine.Infrastructure.IActiveScriptParse32.ParseScriptText(String code, String itemName, Object context, String delimiter, IntPtr sourceContextCookie, UInt32 startingLineNumber, ScriptText flags, IntPtr result, EXCEPINFO& exceptionInfo)\\r\\n bei ZetaProducer.SuperSlimScriptingEngine.Infrastructure.ActiveScriptParseWrapper.ParseScriptText(String code, String itemName, Object context, String delimiter, IntPtr sourceContextCookie, UInt32 startingLineNumber, ScriptText flags, IntPtr result, EXCEPINFO& exceptionInfo) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\Infrastructure\\ActiveScriptComInterfaces.cs:Zeile 371.\\r\\n bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.doExecute(String script) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 118.",
HelpLink=null,
Source="ZetaProducer.SuperSlimScriptingEngine",
HResult=-2147352319
}
]
,
InnerException=null,
TargetSite=RuntimeMethodInfo: Throw,
StackTrace=" bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.doExecute(String script) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 174.\\r\\n bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.Execute(String script) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 71.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreterHelper.GuardEngineRun(SlimScriptEngine engine, String scriptToExecute, RenderingContext renderingContext, String runString) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Engine\\RenderingInterpreterHelper.cs:Zeile 179.",
HelpLink=null,
Source="ActiveScriptSite.ScriptError",
HResult=-2146233088
},
TargetSite=null,
StackTrace=null,
HelpLink=null,
Source="function SE637303571347553612() {}\\r\\n\\r\\n\\r\\nSE637303571347553612.prototype.executeScript = function(){\\r\\n// Start source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n\\r\\n\\r\\n\\tvar image = project.getImage(article.value(\\"image\\"));\\r\\n\\tvar contentImageWidth = \\"890\\";\\r\\n\\tvar defaultImageWidth = 960;\\r\\n\\tvar cssClass = article.cssClass || \\"\\";\\r\\n\\tvar isBreakout = cssClass.indexOf(\\"zpBreakout\\") !== -1 ? true : false;\\r\\n\\t\\r\\n\\t// Kann auch \\"700px\\" sein, deshalb mit parseInt nur die Zahl holen und trimmen - falls leer, auf default 960 setzen.\\r\\n\\tcontentImageWidth = parseInt(contentImageWidth) || defaultImageWidth;\\r\\n\\r\\n\\tvar gridCols = article.column.cssClass;\\r\\n\\tif ( gridCols ){\\r\\n\\t\\tgridCols = parseInt((gridCols.match(/\\bc[1-9][0-2]?\\b\\s?/) || 12).toString().replace(\\"c\\", \\"\\"));\\r\\n\\t}\\r\\n\\telse{\\r\\n\\t\\tgridCols = 12;\\r\\n\\t}\\r\\n\\tvar columnMargin = 30;\\r\\n\\tvar columnWidth = ((contentImageWidth + columnMargin) / 12) * gridCols;\\r\\n\\t// minimum width needed for 100% width display on 1-column breakpoint\\r\\n\\tvar minwidth = parseInt(479 - columnMargin);\\r\\n\\tvar contentCopyWidth = parseInt(columnWidth - columnMargin) || defaultImageWidth;\\r\\n\\tif ( minwidth > contentCopyWidth ){\\r\\n\\t\\tcontentCopyWidth = minwidth;\\r\\n\\t}\\r\\n\\t\\t\\r\\n\\t//system.log(\\"contentCopyWidth: \\" + contentCopyWidth + \\" - image: \\" + image.name + \\"( Page \\" + article.page.name +\\")\\");\\r\\n\\t\\r\\n\\tvar imageError = false;\\r\\n\\tif ( !isNull(image) ) {\\r\\n\\t\\tif ( isBreakout ){\\r\\n\\t\\t\\tcontentCopyWidth = image.workingCopyWidth;\\r\\n\\t\\t}\\r\\n\\t\\ttry {\\r\\n\\t\\t\\tvar iresult = image.ensureContentCopy(article, contentCopyWidth);\\r\\n\\t\\t\\tvar thumbImageWidth = image.contentCopyWidth;\\r\\n\\t\\t\\tvar thumbImageHeight = image.contentCopyHeight;\\r\\n\\t\\t\\tvar description = image.description;\\r\\n\\t\\t\\tvar altText = system.htmlEncode(system.removeHtmlTags(image.altText));\\r\\n\\t\\t\\tvar oldAltText = system.htmlEncode(system.removeHtmlTags(article.valueExpanded(\\"alt\\", \\"\\")));\\r\\n\\t\\t\\tif ( altText == \\"\\" && oldAltText !== \\"\\" ){\\r\\n\\t\\t\\t\\taltText = oldAltText;\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\tvar encodedDescription = system.htmlEncode(image.description);\\r\\n\\t\\t\\tvar stripDescription = system.htmlEncode(system.removeHtmlTags(image.description));\\r\\n\\t\\t\\t// strip
-Tags from description as
is not valid inside SPAN\\r\\n\\t\\t\\tdescription = description.toString().replace(/
/g,\\"\\");\\r\\n\\t\\t\\tdescription = description.toString().replace(/<\\/p>/g,\\" \\");\\r\\n\\t\\t\\t//system.log(\\" Image Width: \\" + contentCopyWidth +\\" / Returned contentCopyWidth:\\" + thumbImageWidth + \\" / Image Result: \\" + iresult);\\r\\n\\t\\t}\\r\\n\\t\\tcatch(err) {\\r\\n\\t\\t\\timageError = true;\\r\\n\\t\\t}\\r\\n\\t}\\r\\n\\t\\r\\n\\tif ( stripDescription !== \\"\\" ) {\\r\\n\\t\\tvar showCaption = \\"1\\";\\r\\n\\t}\\r\\n\\telse {\\r\\n\\t\\tvar showCaption = \\"0\\";\\r\\n\\t}\\r\\n\\r\\n\\tvar lightBox = article.value(\\"lightbox\\", \\"lightbox\\");\\r\\n\\tvar clickURL = article.value(\\"clickurl\\");\\r\\n\\tvar effect = article.value(\\"effect\\", \\"none\\");\\r\\n\\tvar effectClass = \\"\\";\\r\\n\\tswitch ( effect ) {\\r\\n\\t\\tcase \\"hoverzoom\\":\\r\\n\\t\\t\\teffectClass = \\" zpeffect zphoverscale\\";\\r\\n\\t\\t\\tbreak;\\r\\n\\t\\t\\r\\n\\t\\tdefault:\\r\\n\\t\\t\\teffectClass = \\"\\";\\r\\n\\t}\\r\\n \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\");\\r\\n\\r\\n if ( isNull(image) || imageError ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n if ( system.preview ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t
\\r\\n\\t\\t\\t\\tDas gewählte Bild ist anscheinend gelöscht worden. Bearbeiten Sie diesen Artikel und wählen Sie erneut ein Bild aus.\\r\\n\\t\\t\\t\\r\\n\\t\\t
\\r\\n\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n if ( lightBox == \\"zoom\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( image.isSvgImage ){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } else if ( image.isAnimatedGif ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\");\\r\\n\\r\\n } else if ( lightBox == true || lightBox == \\"lightbox\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n } else if ( lightBox == \\"off\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( image.isSvgImage ){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } else if ( image.isAnimatedGif ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( clickURL !== \\"\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( image.isSvgImage ){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n } else if ( image.isAnimatedGif ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\tGehe zu URL (go to url). \\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\");\\r\\n\\r\\n } \\r\\n\\r\\n// End source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n};\\r\\n\\r\\n/* Shortcuts. */\\r\\narticle = context.article;\\r\\npage = context.page;\\r\\nprojectFolder = context.projectFolder;\\r\\nproject = context.project;\\r\\nsystem = context.system;\\r\\n\\r\\n\\r\\nnew SE637303571347553612().executeScript();\\r\\n",
HResult=-2146233088
}
-->3472389472389
ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngineException
-----------------
3472389472389
-----------------
bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.doExecute(String script) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\SuperSlimScriptingEngine\SlimScriptEngine.cs:Zeile 174.
bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.Execute(String script) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\SuperSlimScriptingEngine\SlimScriptEngine.cs:Zeile 71.
bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreterHelper.GuardEngineRun(SlimScriptEngine engine, String scriptToExecute, RenderingContext renderingContext, String runString) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\Engine\RenderingInterpreterHelper.cs:Zeile 179.
SlimScriptEngineException
{
ExcepInfo=EXCEPINFO
{
},
Description="3472389472389",
LineNumber=228,
ColumnNumber=0,
SourceLine="context.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );",
FullSourceCode="function SE637303571347553612() {}\\r\\n\\r\\n\\r\\nSE637303571347553612.prototype.executeScript = function(){\\r\\n// Start source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n\\r\\n\\r\\n\\tvar image = project.getImage(article.value(\\"image\\"));\\r\\n\\tvar contentImageWidth = \\"890\\";\\r\\n\\tvar defaultImageWidth = 960;\\r\\n\\tvar cssClass = article.cssClass || \\"\\";\\r\\n\\tvar isBreakout = cssClass.indexOf(\\"zpBreakout\\") !== -1 ? true : false;\\r\\n\\t\\r\\n\\t// Kann auch \\"700px\\" sein, deshalb mit parseInt nur die Zahl holen und trimmen - falls leer, auf default 960 setzen.\\r\\n\\tcontentImageWidth = parseInt(contentImageWidth) || defaultImageWidth;\\r\\n\\r\\n\\tvar gridCols = article.column.cssClass;\\r\\n\\tif ( gridCols ){\\r\\n\\t\\tgridCols = parseInt((gridCols.match(/\\bc[1-9][0-2]?\\b\\s?/) || 12).toString().replace(\\"c\\", \\"\\"));\\r\\n\\t}\\r\\n\\telse{\\r\\n\\t\\tgridCols = 12;\\r\\n\\t}\\r\\n\\tvar columnMargin = 30;\\r\\n\\tvar columnWidth = ((contentImageWidth + columnMargin) / 12) * gridCols;\\r\\n\\t// minimum width needed for 100% width display on 1-column breakpoint\\r\\n\\tvar minwidth = parseInt(479 - columnMargin);\\r\\n\\tvar contentCopyWidth = parseInt(columnWidth - columnMargin) || defaultImageWidth;\\r\\n\\tif ( minwidth > contentCopyWidth ){\\r\\n\\t\\tcontentCopyWidth = minwidth;\\r\\n\\t}\\r\\n\\t\\t\\r\\n\\t//system.log(\\"contentCopyWidth: \\" + contentCopyWidth + \\" - image: \\" + image.name + \\"( Page \\" + article.page.name +\\")\\");\\r\\n\\t\\r\\n\\tvar imageError = false;\\r\\n\\tif ( !isNull(image) ) {\\r\\n\\t\\tif ( isBreakout ){\\r\\n\\t\\t\\tcontentCopyWidth = image.workingCopyWidth;\\r\\n\\t\\t}\\r\\n\\t\\ttry {\\r\\n\\t\\t\\tvar iresult = image.ensureContentCopy(article, contentCopyWidth);\\r\\n\\t\\t\\tvar thumbImageWidth = image.contentCopyWidth;\\r\\n\\t\\t\\tvar thumbImageHeight = image.contentCopyHeight;\\r\\n\\t\\t\\tvar description = image.description;\\r\\n\\t\\t\\tvar altText = system.htmlEncode(system.removeHtmlTags(image.altText));\\r\\n\\t\\t\\tvar oldAltText = system.htmlEncode(system.removeHtmlTags(article.valueExpanded(\\"alt\\", \\"\\")));\\r\\n\\t\\t\\tif ( altText == \\"\\" && oldAltText !== \\"\\" ){\\r\\n\\t\\t\\t\\taltText = oldAltText;\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\tvar encodedDescription = system.htmlEncode(image.description);\\r\\n\\t\\t\\tvar stripDescription = system.htmlEncode(system.removeHtmlTags(image.description));\\r\\n\\t\\t\\t// strip
-Tags from description as
is not valid inside SPAN\\r\\n\\t\\t\\tdescription = description.toString().replace(/
/g,\\"\\");\\r\\n\\t\\t\\tdescription = description.toString().replace(/<\\/p>/g,\\" \\");\\r\\n\\t\\t\\t//system.log(\\" Image Width: \\" + contentCopyWidth +\\" / Returned contentCopyWidth:\\" + thumbImageWidth + \\" / Image Result: \\" + iresult);\\r\\n\\t\\t}\\r\\n\\t\\tcatch(err) {\\r\\n\\t\\t\\timageError = true;\\r\\n\\t\\t}\\r\\n\\t}\\r\\n\\t\\r\\n\\tif ( stripDescription !== \\"\\" ) {\\r\\n\\t\\tvar showCaption = \\"1\\";\\r\\n\\t}\\r\\n\\telse {\\r\\n\\t\\tvar showCaption = \\"0\\";\\r\\n\\t}\\r\\n\\r\\n\\tvar lightBox = article.value(\\"lightbox\\", \\"lightbox\\");\\r\\n\\tvar clickURL = article.value(\\"clickurl\\");\\r\\n\\tvar effect = article.value(\\"effect\\", \\"none\\");\\r\\n\\tvar effectClass = \\"\\";\\r\\n\\tswitch ( effect ) {\\r\\n\\t\\tcase \\"hoverzoom\\":\\r\\n\\t\\t\\teffectClass = \\" zpeffect zphoverscale\\";\\r\\n\\t\\t\\tbreak;\\r\\n\\t\\t\\r\\n\\t\\tdefault:\\r\\n\\t\\t\\teffectClass = \\"\\";\\r\\n\\t}\\r\\n \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\");\\r\\n\\r\\n if ( isNull(image) || imageError ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n if ( system.preview ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t
\\r\\n\\t\\t\\t\\tDas gewählte Bild ist anscheinend gelöscht worden. Bearbeiten Sie diesen Artikel und wählen Sie erneut ein Bild aus.\\r\\n\\t\\t\\t\\r\\n\\t\\t
\\r\\n\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n if ( lightBox == \\"zoom\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( image.isSvgImage ){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } else if ( image.isAnimatedGif ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\");\\r\\n\\r\\n } else if ( lightBox == true || lightBox == \\"lightbox\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n } else if ( lightBox == \\"off\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( image.isSvgImage ){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } else if ( image.isAnimatedGif ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( clickURL !== \\"\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( image.isSvgImage ){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n } else if ( image.isAnimatedGif ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\tGehe zu URL (go to url). \\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\");\\r\\n\\r\\n } \\r\\n\\r\\n// End source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n};\\r\\n\\r\\n/* Shortcuts. */\\r\\narticle = context.article;\\r\\npage = context.page;\\r\\nprojectFolder = context.projectFolder;\\r\\nproject = context.project;\\r\\nsystem = context.system;\\r\\n\\r\\n\\r\\nnew SE637303571347553612().executeScript();\\r\\n",
SourceContext=0,
WasCanceled=True,
Message="3472389472389",
Data=
[
"COM Exception" = COMException
{
ErrorCode=-2147352319,
Message="Ausnahme von HRESULT: 0x80020101",
Data=
[
]
,
InnerException=null,
TargetSite=RuntimeMethodInfo: ParseScriptText,
StackTrace=" bei ZetaProducer.SuperSlimScriptingEngine.Infrastructure.IActiveScriptParse32.ParseScriptText(String code, String itemName, Object context, String delimiter, IntPtr sourceContextCookie, UInt32 startingLineNumber, ScriptText flags, IntPtr result, EXCEPINFO& exceptionInfo)\\r\\n bei ZetaProducer.SuperSlimScriptingEngine.Infrastructure.ActiveScriptParseWrapper.ParseScriptText(String code, String itemName, Object context, String delimiter, IntPtr sourceContextCookie, UInt32 startingLineNumber, ScriptText flags, IntPtr result, EXCEPINFO& exceptionInfo) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\Infrastructure\\ActiveScriptComInterfaces.cs:Zeile 371.\\r\\n bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.doExecute(String script) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 118.",
HelpLink=null,
Source="ZetaProducer.SuperSlimScriptingEngine",
HResult=-2147352319
}
]
,
InnerException=null,
TargetSite=RuntimeMethodInfo: Throw,
StackTrace=" bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.doExecute(String script) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 174.\\r\\n bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.Execute(String script) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 71.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreterHelper.GuardEngineRun(SlimScriptEngine engine, String scriptToExecute, RenderingContext renderingContext, String runString) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Engine\\RenderingInterpreterHelper.cs:Zeile 179.",
HelpLink=null,
Source="ActiveScriptSite.ScriptError",
HResult=-2146233088
}
Ignoring inner exception because of previous OutOfMemoryException. See https://stackoverflow.com/a/25010668/107625
ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.ErrorHandling.InterpreterException: 3472389472389 ---> ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngineException: 3472389472389
bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.doExecute(String script) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\SuperSlimScriptingEngine\SlimScriptEngine.cs:Zeile 174.
bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.Execute(String script) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\SuperSlimScriptingEngine\SlimScriptEngine.cs:Zeile 71.
bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreterHelper.GuardEngineRun(SlimScriptEngine engine, String scriptToExecute, RenderingContext renderingContext, String runString) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\Engine\RenderingInterpreterHelper.cs:Zeile 179.
--- Ende der internen Ausnahmestapelüberwachung ---
2020-07-14 20:58:56,324 [19] INFO - ---------
2020-07-14 20:58:56,325 [19] INFO - IActiveScriptSite.OnScriptError was called with this exception:
2020-07-14 20:58:56,325 [19] INFO - ---------
2020-07-14 20:58:56,362 [19] INFO - ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngineException
-----------------
3472389472389
-----------------
SlimScriptEngineException
{
ExcepInfo=EXCEPINFO
{
},
Description="3472389472389",
LineNumber=686,
ColumnNumber=8,
SourceLine="",
FullSourceCode=null,
SourceContext=0,
WasCanceled=True,
Message="3472389472389",
Data=
[
]
,
InnerException=InterpreterException
{
ErrorDetailsWithStack="3472389472389",
CompleteSourceTextWithHiddenRegions="001: function SE637303571347553612() {}\\r\\n002: \\r\\n003: \\r\\n004: SE637303571347553612.prototype.executeScript = function(){\\r\\n005: // Start source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n006: \\r\\n007: \\r\\n008: \\tvar image = project.getImage(article.value(\\"image\\"));\\r\\n009: \\tvar contentImageWidth = \\"890\\";\\r\\n010: \\tvar defaultImageWidth = 960;\\r\\n011: \\tvar cssClass = article.cssClass || \\"\\";\\r\\n012: \\tvar isBreakout = cssClass.indexOf(\\"zpBreakout\\") !== -1 ? true : false;\\r\\n013: \\t\\r\\n014: \\t// Kann auch \\"700px\\" sein, deshalb mit parseInt nur die Zahl holen und trimmen - falls leer, auf default 960 setzen.\\r\\n015: \\tcontentImageWidth = parseInt(contentImageWidth) || defaultImageWidth;\\r\\n016: \\r\\n017: \\tvar gridCols = article.column.cssClass;\\r\\n018: \\tif ( gridCols ){\\r\\n019: \\t\\tgridCols = parseInt((gridCols.match(/\\bc[1-9][0-2]?\\b\\s?/) || 12).toString().replace(\\"c\\", \\"\\"));\\r\\n020: \\t}\\r\\n021: \\telse{\\r\\n022: \\t\\tgridCols = 12;\\r\\n023: \\t}\\r\\n024: \\tvar columnMargin = 30;\\r\\n025: \\tvar columnWidth = ((contentImageWidth + columnMargin) / 12) * gridCols;\\r\\n026: \\t// minimum width needed for 100% width display on 1-column breakpoint\\r\\n027: \\tvar minwidth = parseInt(479 - columnMargin);\\r\\n028: \\tvar contentCopyWidth = parseInt(columnWidth - columnMargin) || defaultImageWidth;\\r\\n029: \\tif ( minwidth > contentCopyWidth ){\\r\\n030: \\t\\tcontentCopyWidth = minwidth;\\r\\n031: \\t}\\r\\n032: \\t\\t\\r\\n033: \\t//system.log(\\"contentCopyWidth: \\" + contentCopyWidth + \\" - image: \\" + image.name + \\"( Page \\" + article.page.name +\\")\\");\\r\\n034: \\t\\r\\n035: \\tvar imageError = false;\\r\\n036: \\tif ( !isNull(image) ) {\\r\\n037: \\t\\tif ( isBreakout ){\\r\\n038: \\t\\t\\tcontentCopyWidth = image.workingCopyWidth;\\r\\n039: \\t\\t}\\r\\n040: \\t\\ttry {\\r\\n041: \\t\\t\\tvar iresult = image.ensureContentCopy(article, contentCopyWidth);\\r\\n042: \\t\\t\\tvar thumbImageWidth = image.contentCopyWidth;\\r\\n043: \\t\\t\\tvar thumbImageHeight = image.contentCopyHeight;\\r\\n044: \\t\\t\\tvar description = image.description;\\r\\n045: \\t\\t\\tvar altText = system.htmlEncode(system.removeHtmlTags(image.altText));\\r\\n046: \\t\\t\\tvar oldAltText = system.htmlEncode(system.removeHtmlTags(article.valueExpanded(\\"alt\\", \\"\\")));\\r\\n047: \\t\\t\\tif ( altText == \\"\\" && oldAltText !== \\"\\" ){\\r\\n048: \\t\\t\\t\\taltText = oldAltText;\\r\\n049: \\t\\t\\t}\\r\\n050: \\t\\t\\tvar encodedDescription = system.htmlEncode(image.description);\\r\\n051: \\t\\t\\tvar stripDescription = system.htmlEncode(system.removeHtmlTags(image.description));\\r\\n052: \\t\\t\\t// strip
-Tags from description as
is not valid inside SPAN\\r\\n053: \\t\\t\\tdescription = description.toString().replace(/
/g,\\"\\");\\r\\n054: \\t\\t\\tdescription = description.toString().replace(/<\\/p>/g,\\" \\");\\r\\n055: \\t\\t\\t//system.log(\\" Image Width: \\" + contentCopyWidth +\\" / Returned contentCopyWidth:\\" + thumbImageWidth + \\" / Image Result: \\" + iresult);\\r\\n056: \\t\\t}\\r\\n057: \\t\\tcatch(err) {\\r\\n058: \\t\\t\\timageError = true;\\r\\n059: \\t\\t}\\r\\n060: \\t}\\r\\n061: \\t\\r\\n062: \\tif ( stripDescription !== \\"\\" ) {\\r\\n063: \\t\\tvar showCaption = \\"1\\";\\r\\n064: \\t}\\r\\n065: \\telse {\\r\\n066: \\t\\tvar showCaption = \\"0\\";\\r\\n067: \\t}\\r\\n068: \\r\\n069: \\tvar lightBox = article.value(\\"lightbox\\", \\"lightbox\\");\\r\\n070: \\tvar clickURL = article.value(\\"clickurl\\");\\r\\n071: \\tvar effect = article.value(\\"effect\\", \\"none\\");\\r\\n072: \\tvar effectClass = \\"\\";\\r\\n073: \\tswitch ( effect ) {\\r\\n074: \\t\\tcase \\"hoverzoom\\":\\r\\n075: \\t\\t\\teffectClass = \\" zpeffect zphoverscale\\";\\r\\n076: \\t\\t\\tbreak;\\r\\n077: \\t\\t\\r\\n078: \\t\\tdefault:\\r\\n079: \\t\\t\\teffectClass = \\"\\";\\r\\n080: \\t}\\r\\n081: \\r\\n082: \\r\\n083: context.write(\\"\\r\\n\\r\\n\\");\\r\\n084: \\r\\n085: if ( isNull(image) || imageError ) { \\r\\n086: \\r\\n087: context.write(\\"\\r\\n\\t\\");\\r\\n088: \\r\\n089: if ( system.preview ) { \\r\\n090: \\r\\n091: context.write(\\"\\r\\n\\t\\t
\\r\\n\\t\\t\\t\\tDas gewählte Bild ist anscheinend gelöscht worden. Bearbeiten Sie diesen Artikel und wählen Sie erneut ein Bild aus.\\r\\n\\t\\t\\t\\r\\n\\t\\t
\\r\\n\\t\\");\\r\\n096: \\r\\n097: } \\r\\n098: \\r\\n099: context.write(\\"\\r\\n\\");\\r\\n100: \\r\\n101: } else { \\r\\n102: \\r\\n103: context.write(\\"\\r\\n\\t\\");\\r\\n104: \\r\\n105: if ( lightBox == \\"zoom\\" ) { \\r\\n106: \\r\\n107: context.write(\\"\\r\\n\\t\\t\\");\\r\\n108: \\r\\n109: context.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n110: \\r\\n111: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n140: \\r\\n141: if ( image.isSvgImage ){ \\r\\n142: \\r\\n143: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n156: \\r\\n157: } else if ( image.isAnimatedGif ) { \\r\\n158: \\r\\n159: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n180: \\r\\n181: } else { \\r\\n182: \\r\\n183: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n204: \\r\\n205: } \\r\\n206: \\r\\n207: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n208: \\r\\n209: if ( showCaption == \\"1\\" && description ) { \\r\\n210: \\r\\n211: context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n212: \\r\\n213: context.write( description );\\r\\n214: \\r\\n215: context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n216: \\r\\n217: } \\r\\n218: \\r\\n219: context.write(\\"\\r\\n\\t\\t\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n220: \\r\\n221: context.write( system.partial(\\"article-end.html\\") );\\r\\n222: \\r\\n223: context.write(\\" \\r\\n\\t\\");\\r\\n224: \\r\\n225: } else if ( lightBox == true || lightBox == \\"lightbox\\" ) { \\r\\n226: \\r\\n227: context.write(\\"\\r\\n\\t\\t\\");\\r\\n228: \\r\\n229: context.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n230: \\r\\n231: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n340: \\r\\n341: context.write( system.partial(\\"article-end.html\\") );\\r\\n342: \\r\\n343: context.write(\\"\\r\\n\\t\\");\\r\\n344: \\r\\n345: } else if ( lightBox == \\"off\\" ) { \\r\\n346: \\r\\n347: context.write(\\"\\r\\n\\t\\t\\");\\r\\n348: \\r\\n349: context.write( system.partial(\\"article-begin.html\\") );\\r\\n350: \\r\\n351: context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n352: \\r\\n353: if ( image.isSvgImage ){ \\r\\n354: \\r\\n355: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n368: \\r\\n369: } else if ( image.isAnimatedGif ) { \\r\\n370: \\r\\n371: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n392: \\r\\n393: } else { \\r\\n394: \\r\\n395: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n416: \\r\\n417: } \\r\\n418: \\r\\n419: context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n420: \\r\\n421: if ( showCaption == \\"1\\" && description ) { \\r\\n422: \\r\\n423: context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n424: \\r\\n425: context.write( description );\\r\\n426: \\r\\n427: context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n428: \\r\\n429: } \\r\\n430: \\r\\n431: context.write(\\"\\r\\n\\t\\t\\");\\r\\n432: \\r\\n433: context.write( system.partial(\\"article-end.html\\") );\\r\\n434: \\r\\n435: context.write(\\"\\r\\n\\t\\");\\r\\n436: \\r\\n437: } else { \\r\\n438: \\r\\n439: context.write(\\"\\r\\n\\t\\t\\");\\r\\n440: \\r\\n441: context.write( system.partial(\\"article-begin.html\\") );\\r\\n442: \\r\\n443: context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n444: \\r\\n445: if ( clickURL !== \\"\\" ) { \\r\\n446: \\r\\n447: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n459: \\r\\n460: if ( image.isSvgImage ){ \\r\\n461: \\r\\n462: context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n475: \\r\\n476: } else if ( image.isAnimatedGif ) { \\r\\n477: \\r\\n478: context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n499: \\r\\n500: } else { \\r\\n501: \\r\\n502: context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n523: \\r\\n524: } \\r\\n525: \\r\\n526: context.write(\\"\\r\\n\\t\\t\\t\\t\\tGehe zu URL (go to url). \\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\");\\r\\n527: \\r\\n528: } else { \\r\\n529: \\r\\n530: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n551: \\r\\n552: } \\r\\n553: \\r\\n554: context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n555: \\r\\n556: if ( showCaption == \\"1\\" && description ) { \\r\\n557: \\r\\n558: context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n559: \\r\\n560: context.write( description );\\r\\n561: \\r\\n562: context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n563: \\r\\n564: } \\r\\n565: \\r\\n566: context.write(\\"\\r\\n\\t\\t\\");\\r\\n567: \\r\\n568: context.write( system.partial(\\"article-end.html\\") );\\r\\n569: \\r\\n570: context.write(\\"\\r\\n\\t\\");\\r\\n571: \\r\\n572: } \\r\\n573: \\r\\n574: context.write(\\"\\r\\n\\");\\r\\n575: \\r\\n576: } \\r\\n577: \\r\\n578: // End source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n579: };\\r\\n580: \\r\\n581: /* Shortcuts. */\\r\\n582: article = context.article;\\r\\n583: page = context.page;\\r\\n584: projectFolder = context.projectFolder;\\r\\n585: project = context.project;\\r\\n586: system = context.system;\\r\\n587: \\r\\n588: \\r\\n589: new SE637303571347553612().executeScript();\\r\\n",
CompleteSourceText="001: function SE637303571347553612() {}\\r\\n002: \\r\\n003: \\r\\n004: SE637303571347553612.prototype.executeScript = function(){\\r\\n005: // Start source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n006: \\r\\n007: \\r\\n008: \\tvar image = project.getImage(article.value(\\"image\\"));\\r\\n009: \\tvar contentImageWidth = \\"890\\";\\r\\n010: \\tvar defaultImageWidth = 960;\\r\\n011: \\tvar cssClass = article.cssClass || \\"\\";\\r\\n012: \\tvar isBreakout = cssClass.indexOf(\\"zpBreakout\\") !== -1 ? true : false;\\r\\n013: \\t\\r\\n014: \\t// Kann auch \\"700px\\" sein, deshalb mit parseInt nur die Zahl holen und trimmen - falls leer, auf default 960 setzen.\\r\\n015: \\tcontentImageWidth = parseInt(contentImageWidth) || defaultImageWidth;\\r\\n016: \\r\\n017: \\tvar gridCols = article.column.cssClass;\\r\\n018: \\tif ( gridCols ){\\r\\n019: \\t\\tgridCols = parseInt((gridCols.match(/\\bc[1-9][0-2]?\\b\\s?/) || 12).toString().replace(\\"c\\", \\"\\"));\\r\\n020: \\t}\\r\\n021: \\telse{\\r\\n022: \\t\\tgridCols = 12;\\r\\n023: \\t}\\r\\n024: \\tvar columnMargin = 30;\\r\\n025: \\tvar columnWidth = ((contentImageWidth + columnMargin) / 12) * gridCols;\\r\\n026: \\t// minimum width needed for 100% width display on 1-column breakpoint\\r\\n027: \\tvar minwidth = parseInt(479 - columnMargin);\\r\\n028: \\tvar contentCopyWidth = parseInt(columnWidth - columnMargin) || defaultImageWidth;\\r\\n029: \\tif ( minwidth > contentCopyWidth ){\\r\\n030: \\t\\tcontentCopyWidth = minwidth;\\r\\n031: \\t}\\r\\n032: \\t\\t\\r\\n033: \\t//system.log(\\"contentCopyWidth: \\" + contentCopyWidth + \\" - image: \\" + image.name + \\"( Page \\" + article.page.name +\\")\\");\\r\\n034: \\t\\r\\n035: \\tvar imageError = false;\\r\\n036: \\tif ( !isNull(image) ) {\\r\\n037: \\t\\tif ( isBreakout ){\\r\\n038: \\t\\t\\tcontentCopyWidth = image.workingCopyWidth;\\r\\n039: \\t\\t}\\r\\n040: \\t\\ttry {\\r\\n041: \\t\\t\\tvar iresult = image.ensureContentCopy(article, contentCopyWidth);\\r\\n042: \\t\\t\\tvar thumbImageWidth = image.contentCopyWidth;\\r\\n043: \\t\\t\\tvar thumbImageHeight = image.contentCopyHeight;\\r\\n044: \\t\\t\\tvar description = image.description;\\r\\n045: \\t\\t\\tvar altText = system.htmlEncode(system.removeHtmlTags(image.altText));\\r\\n046: \\t\\t\\tvar oldAltText = system.htmlEncode(system.removeHtmlTags(article.valueExpanded(\\"alt\\", \\"\\")));\\r\\n047: \\t\\t\\tif ( altText == \\"\\" && oldAltText !== \\"\\" ){\\r\\n048: \\t\\t\\t\\taltText = oldAltText;\\r\\n049: \\t\\t\\t}\\r\\n050: \\t\\t\\tvar encodedDescription = system.htmlEncode(image.description);\\r\\n051: \\t\\t\\tvar stripDescription = system.htmlEncode(system.removeHtmlTags(image.description));\\r\\n052: \\t\\t\\t// strip
-Tags from description as
is not valid inside SPAN\\r\\n053: \\t\\t\\tdescription = description.toString().replace(/
/g,\\"\\");\\r\\n054: \\t\\t\\tdescription = description.toString().replace(/<\\/p>/g,\\" \\");\\r\\n055: \\t\\t\\t//system.log(\\" Image Width: \\" + contentCopyWidth +\\" / Returned contentCopyWidth:\\" + thumbImageWidth + \\" / Image Result: \\" + iresult);\\r\\n056: \\t\\t}\\r\\n057: \\t\\tcatch(err) {\\r\\n058: \\t\\t\\timageError = true;\\r\\n059: \\t\\t}\\r\\n060: \\t}\\r\\n061: \\t\\r\\n062: \\tif ( stripDescription !== \\"\\" ) {\\r\\n063: \\t\\tvar showCaption = \\"1\\";\\r\\n064: \\t}\\r\\n065: \\telse {\\r\\n066: \\t\\tvar showCaption = \\"0\\";\\r\\n067: \\t}\\r\\n068: \\r\\n069: \\tvar lightBox = article.value(\\"lightbox\\", \\"lightbox\\");\\r\\n070: \\tvar clickURL = article.value(\\"clickurl\\");\\r\\n071: \\tvar effect = article.value(\\"effect\\", \\"none\\");\\r\\n072: \\tvar effectClass = \\"\\";\\r\\n073: \\tswitch ( effect ) {\\r\\n074: \\t\\tcase \\"hoverzoom\\":\\r\\n075: \\t\\t\\teffectClass = \\" zpeffect zphoverscale\\";\\r\\n076: \\t\\t\\tbreak;\\r\\n077: \\t\\t\\r\\n078: \\t\\tdefault:\\r\\n079: \\t\\t\\teffectClass = \\"\\";\\r\\n080: \\t}\\r\\n081: \\r\\n082: \\r\\n083: context.write(\\"\\r\\n\\r\\n\\");\\r\\n084: \\r\\n085: if ( isNull(image) || imageError ) { \\r\\n086: \\r\\n087: context.write(\\"\\r\\n\\t\\");\\r\\n088: \\r\\n089: if ( system.preview ) { \\r\\n090: \\r\\n091: context.write(\\"\\r\\n\\t\\t
\\r\\n\\t\\t\\t\\tDas gewählte Bild ist anscheinend gelöscht worden. Bearbeiten Sie diesen Artikel und wählen Sie erneut ein Bild aus.\\r\\n\\t\\t\\t\\r\\n\\t\\t
\\r\\n\\t\\");\\r\\n096: \\r\\n097: } \\r\\n098: \\r\\n099: context.write(\\"\\r\\n\\");\\r\\n100: \\r\\n101: } else { \\r\\n102: \\r\\n103: context.write(\\"\\r\\n\\t\\");\\r\\n104: \\r\\n105: if ( lightBox == \\"zoom\\" ) { \\r\\n106: \\r\\n107: context.write(\\"\\r\\n\\t\\t\\");\\r\\n108: \\r\\n109: context.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n110: \\r\\n111: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n140: \\r\\n141: if ( image.isSvgImage ){ \\r\\n142: \\r\\n143: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n156: \\r\\n157: } else if ( image.isAnimatedGif ) { \\r\\n158: \\r\\n159: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n180: \\r\\n181: } else { \\r\\n182: \\r\\n183: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n204: \\r\\n205: } \\r\\n206: \\r\\n207: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n208: \\r\\n209: if ( showCaption == \\"1\\" && description ) { \\r\\n210: \\r\\n211: context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n212: \\r\\n213: context.write( description );\\r\\n214: \\r\\n215: context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n216: \\r\\n217: } \\r\\n218: \\r\\n219: context.write(\\"\\r\\n\\t\\t\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n220: \\r\\n221: context.write( system.partial(\\"article-end.html\\") );\\r\\n222: \\r\\n223: context.write(\\" \\r\\n\\t\\");\\r\\n224: \\r\\n225: } else if ( lightBox == true || lightBox == \\"lightbox\\" ) { \\r\\n226: \\r\\n227: context.write(\\"\\r\\n\\t\\t\\");\\r\\n228: \\r\\n229: context.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n230: \\r\\n231: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n340: \\r\\n341: context.write( system.partial(\\"article-end.html\\") );\\r\\n342: \\r\\n343: context.write(\\"\\r\\n\\t\\");\\r\\n344: \\r\\n345: } else if ( lightBox == \\"off\\" ) { \\r\\n346: \\r\\n347: context.write(\\"\\r\\n\\t\\t\\");\\r\\n348: \\r\\n349: context.write( system.partial(\\"article-begin.html\\") );\\r\\n350: \\r\\n351: context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n352: \\r\\n353: if ( image.isSvgImage ){ \\r\\n354: \\r\\n355: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n368: \\r\\n369: } else if ( image.isAnimatedGif ) { \\r\\n370: \\r\\n371: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n392: \\r\\n393: } else { \\r\\n394: \\r\\n395: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n416: \\r\\n417: } \\r\\n418: \\r\\n419: context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n420: \\r\\n421: if ( showCaption == \\"1\\" && description ) { \\r\\n422: \\r\\n423: context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n424: \\r\\n425: context.write( description );\\r\\n426: \\r\\n427: context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n428: \\r\\n429: } \\r\\n430: \\r\\n431: context.write(\\"\\r\\n\\t\\t\\");\\r\\n432: \\r\\n433: context.write( system.partial(\\"article-end.html\\") );\\r\\n434: \\r\\n435: context.write(\\"\\r\\n\\t\\");\\r\\n436: \\r\\n437: } else { \\r\\n438: \\r\\n439: context.write(\\"\\r\\n\\t\\t\\");\\r\\n440: \\r\\n441: context.write( system.partial(\\"article-begin.html\\") );\\r\\n442: \\r\\n443: context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n444: \\r\\n445: if ( clickURL !== \\"\\" ) { \\r\\n446: \\r\\n447: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n459: \\r\\n460: if ( image.isSvgImage ){ \\r\\n461: \\r\\n462: context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n475: \\r\\n476: } else if ( image.isAnimatedGif ) { \\r\\n477: \\r\\n478: context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n499: \\r\\n500: } else { \\r\\n501: \\r\\n502: context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n523: \\r\\n524: } \\r\\n525: \\r\\n526: context.write(\\"\\r\\n\\t\\t\\t\\t\\tGehe zu URL (go to url). \\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\");\\r\\n527: \\r\\n528: } else { \\r\\n529: \\r\\n530: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n551: \\r\\n552: } \\r\\n553: \\r\\n554: context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n555: \\r\\n556: if ( showCaption == \\"1\\" && description ) { \\r\\n557: \\r\\n558: context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n559: \\r\\n560: context.write( description );\\r\\n561: \\r\\n562: context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n563: \\r\\n564: } \\r\\n565: \\r\\n566: context.write(\\"\\r\\n\\t\\t\\");\\r\\n567: \\r\\n568: context.write( system.partial(\\"article-end.html\\") );\\r\\n569: \\r\\n570: context.write(\\"\\r\\n\\t\\");\\r\\n571: \\r\\n572: } \\r\\n573: \\r\\n574: context.write(\\"\\r\\n\\");\\r\\n575: \\r\\n576: } \\r\\n577: \\r\\n578: // End source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n579: };\\r\\n580: \\r\\n581: /* Shortcuts. */\\r\\n582: article = context.article;\\r\\n583: page = context.page;\\r\\n584: projectFolder = context.projectFolder;\\r\\n585: project = context.project;\\r\\n586: system = context.system;\\r\\n587: \\r\\n588: \\r\\n589: new SE637303571347553612().executeScript();",
CompleteSourceLines=String[]
{
Length=589,
LongLength=589,
Rank=1,
,
IsReadOnly=False,
IsFixedSize=True,
IsSynchronized=False
"001: function SE637303571347553612() {}",
"002: ",
"003: ",
"004: SE637303571347553612.prototype.executeScript = function(){",
"005: // Start source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.",
"006: ",
"007: ",
"008: \\tvar image = project.getImage(article.value(\\"image\\"));",
"009: \\tvar contentImageWidth = \\"890\\";",
"010: \\tvar defaultImageWidth = 960;",
"011: \\tvar cssClass = article.cssClass || \\"\\";",
"012: \\tvar isBreakout = cssClass.indexOf(\\"zpBreakout\\") !== -1 ? true : false;",
"013: \\t",
"014: \\t// Kann auch \\"700px\\" sein, deshalb mit parseInt nur die Zahl holen und trimmen - falls leer, auf default 960 setzen.",
"015: \\tcontentImageWidth = parseInt(contentImageWidth) || defaultImageWidth;",
"016: ",
"017: \\tvar gridCols = article.column.cssClass;",
"018: \\tif ( gridCols ){",
"019: \\t\\tgridCols = parseInt((gridCols.match(/\\bc[1-9][0-2]?\\b\\s?/) || 12).toString().replace(\\"c\\", \\"\\"));",
"020: \\t}",
"021: \\telse{",
"022: \\t\\tgridCols = 12;",
"023: \\t}",
"024: \\tvar columnMargin = 30;",
"025: \\tvar columnWidth = ((contentImageWidth + columnMargin) / 12) * gridCols;",
"026: \\t// minimum width needed for 100% width display on 1-column breakpoint",
"027: \\tvar minwidth = parseInt(479 - columnMargin);",
"028: \\tvar contentCopyWidth = parseInt(columnWidth - columnMargin) || defaultImageWidth;",
"029: \\tif ( minwidth > contentCopyWidth ){",
"030: \\t\\tcontentCopyWidth = minwidth;",
"031: \\t}",
"032: \\t\\t",
"033: \\t//system.log(\\"contentCopyWidth: \\" + contentCopyWidth + \\" - image: \\" + image.name + \\"( Page \\" + article.page.name +\\")\\");",
"034: \\t",
"035: \\tvar imageError = false;",
"036: \\tif ( !isNull(image) ) {",
"037: \\t\\tif ( isBreakout ){",
"038: \\t\\t\\tcontentCopyWidth = image.workingCopyWidth;",
"039: \\t\\t}",
"040: \\t\\ttry {",
"041: \\t\\t\\tvar iresult = image.ensureContentCopy(article, contentCopyWidth);",
"042: \\t\\t\\tvar thumbImageWidth = image.contentCopyWidth;",
"043: \\t\\t\\tvar thumbImageHeight = image.contentCopyHeight;",
"044: \\t\\t\\tvar description = image.description;",
"045: \\t\\t\\tvar altText = system.htmlEncode(system.removeHtmlTags(image.altText));",
"046: \\t\\t\\tvar oldAltText = system.htmlEncode(system.removeHtmlTags(article.valueExpanded(\\"alt\\", \\"\\")));",
"047: \\t\\t\\tif ( altText == \\"\\" && oldAltText !== \\"\\" ){",
"048: \\t\\t\\t\\taltText = oldAltText;",
"049: \\t\\t\\t}",
"050: \\t\\t\\tvar encodedDescription = system.htmlEncode(image.description);",
"051: \\t\\t\\tvar stripDescription = system.htmlEncode(system.removeHtmlTags(image.description));",
"052: \\t\\t\\t// strip
-Tags from description as
is not valid inside SPAN",
"053: \\t\\t\\tdescription = description.toString().replace(/
/g,\\"\\");",
"054: \\t\\t\\tdescription = description.toString().replace(/<\\/p>/g,\\" \\");",
"055: \\t\\t\\t//system.log(\\" Image Width: \\" + contentCopyWidth +\\" / Returned contentCopyWidth:\\" + thumbImageWidth + \\" / Image Result: \\" + iresult);",
"056: \\t\\t}",
"057: \\t\\tcatch(err) {",
"058: \\t\\t\\timageError = true;",
"059: \\t\\t}",
"060: \\t}",
"061: \\t",
"062: \\tif ( stripDescription !== \\"\\" ) {",
"063: \\t\\tvar showCaption = \\"1\\";",
"064: \\t}",
"065: \\telse {",
"066: \\t\\tvar showCaption = \\"0\\";",
"067: \\t}",
"068: ",
"069: \\tvar lightBox = article.value(\\"lightbox\\", \\"lightbox\\");",
"070: \\tvar clickURL = article.value(\\"clickurl\\");",
"071: \\tvar effect = article.value(\\"effect\\", \\"none\\");",
"072: \\tvar effectClass = \\"\\";",
"073: \\tswitch ( effect ) {",
"074: \\t\\tcase \\"hoverzoom\\":",
"075: \\t\\t\\teffectClass = \\" zpeffect zphoverscale\\";",
"076: \\t\\t\\tbreak;",
"077: \\t\\t",
"078: \\t\\tdefault:",
"079: \\t\\t\\teffectClass = \\"\\";",
"080: \\t}",
"081: ",
"082: ",
"083: context.write(\\"\\r\\n\\r\\n\\");",
"084: ",
"085: if ( isNull(image) || imageError ) { ",
"086: ",
"087: context.write(\\"\\r\\n\\t\\");",
"088: ",
"089: if ( system.preview ) { ",
"090: ",
"091: context.write(\\"\\r\\n\\t\\t
\\r\\n\\t\\t\\t\\tDas gewählte Bild ist anscheinend gelöscht worden. Bearbeiten Sie diesen Artikel und wählen Sie erneut ein Bild aus.\\r\\n\\t\\t\\t\\r\\n\\t\\t
\\r\\n\\t\\");",
"096: ",
"097: } ",
"098: ",
"099: context.write(\\"\\r\\n\\");",
"100: ",
"101: } else { ",
"102: ",
"103: context.write(\\"\\r\\n\\t\\");",
"104: ",
"105: if ( lightBox == \\"zoom\\" ) { ",
"106: ",
"107: context.write(\\"\\r\\n\\t\\t\\");",
"108: ",
"109: context.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );",
"110: ",
"111: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");",
"140: ",
"141: if ( image.isSvgImage ){ ",
"142: ",
"143: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");",
"156: ",
"157: } else if ( image.isAnimatedGif ) { ",
"158: ",
"159: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");",
"180: ",
"181: } else { ",
"182: ",
"183: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");",
"204: ",
"205: } ",
"206: ",
"207: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\r\\n\\t\\t\\t\\");",
"208: ",
"209: if ( showCaption == \\"1\\" && description ) { ",
"210: ",
"211: context.write(\\"\\r\\n\\t\\t\\t\\t
\\");",
"212: ",
"213: context.write( description );",
"214: ",
"215: context.write(\\" \\r\\n\\t\\t\\t\\");",
"216: ",
"217: } ",
"218: ",
"219: context.write(\\"\\r\\n\\t\\t\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");",
"220: ",
"221: context.write( system.partial(\\"article-end.html\\") );",
"222: ",
"223: context.write(\\" \\r\\n\\t\\");",
"224: ",
"225: } else if ( lightBox == true || lightBox == \\"lightbox\\" ) { ",
"226: ",
"227: context.write(\\"\\r\\n\\t\\t\\");",
"228: ",
"229: context.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );",
"230: ",
"231: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");",
"260: ",
"261: if ( image.isSvgImage ){ ",
"262: ",
"263: context.write(\\"\\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\");",
"276: ",
"277: } else if ( image.isAnimatedGif ) { ",
"278: ",
"279: context.write(\\"\\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\");",
"300: ",
"301: } else { ",
"302: ",
"303: context.write(\\"\\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\");",
"324: ",
"325: } ",
"326: ",
"327: context.write(\\"\\r\\n\\t\\t\\t\\tBild in Lightbox öffnen (open image in lightbox). \\r\\n\\t\\t\\t \\r\\n\\r\\n\\t\\t\\t\\");",
"328: ",
"329: if ( showCaption == \\"1\\" && description ) { ",
"330: ",
"331: context.write(\\"\\r\\n\\t\\t\\t\\t
\\");",
"332: ",
"333: context.write( description );",
"334: ",
"335: context.write(\\" \\r\\n\\t\\t\\t\\");",
"336: ",
"337: } ",
"338: ",
"339: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");",
"340: ",
"341: context.write( system.partial(\\"article-end.html\\") );",
"342: ",
"343: context.write(\\"\\r\\n\\t\\");",
"344: ",
"345: } else if ( lightBox == \\"off\\" ) { ",
"346: ",
"347: context.write(\\"\\r\\n\\t\\t\\");",
"348: ",
"349: context.write( system.partial(\\"article-begin.html\\") );",
"350: ",
"351: context.write(\\"\\r\\n\\t\\t\\t\\");",
"352: ",
"353: if ( image.isSvgImage ){ ",
"354: ",
"355: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");",
"368: ",
"369: } else if ( image.isAnimatedGif ) { ",
"370: ",
"371: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");",
"392: ",
"393: } else { ",
"394: ",
"395: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");",
"416: ",
"417: } ",
"418: ",
"419: context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");",
"420: ",
"421: if ( showCaption == \\"1\\" && description ) { ",
"422: ",
"423: context.write(\\"\\r\\n\\t\\t\\t\\t
\\");",
"424: ",
"425: context.write( description );",
"426: ",
"427: context.write(\\" \\r\\n\\t\\t\\t\\");",
"428: ",
"429: } ",
"430: ",
"431: context.write(\\"\\r\\n\\t\\t\\");",
"432: ",
"433: context.write( system.partial(\\"article-end.html\\") );",
"434: ",
"435: context.write(\\"\\r\\n\\t\\");",
"436: ",
"437: } else { ",
"438: ",
"439: context.write(\\"\\r\\n\\t\\t\\");",
"440: ",
"441: context.write( system.partial(\\"article-begin.html\\") );",
"442: ",
"443: context.write(\\"\\r\\n\\t\\t\\t\\");",
"444: ",
"445: if ( clickURL !== \\"\\" ) { ",
"446: ",
"447: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\");",
"459: ",
"460: if ( image.isSvgImage ){ ",
"461: ",
"462: context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");",
"475: ",
"476: } else if ( image.isAnimatedGif ) { ",
"477: ",
"478: context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");",
"499: ",
"500: } else { ",
"501: ",
"502: context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");",
"523: ",
"524: } ",
"525: ",
"526: context.write(\\"\\r\\n\\t\\t\\t\\t\\tGehe zu URL (go to url). \\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\");",
"527: ",
"528: } else { ",
"529: ",
"530: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\");",
"551: ",
"552: } ",
"553: ",
"554: context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");",
"555: ",
"556: if ( showCaption == \\"1\\" && description ) { ",
"557: ",
"558: context.write(\\"\\r\\n\\t\\t\\t\\t
\\");",
"559: ",
"560: context.write( description );",
"561: ",
"562: context.write(\\" \\r\\n\\t\\t\\t\\");",
"563: ",
"564: } ",
"565: ",
"566: context.write(\\"\\r\\n\\t\\t\\");",
"567: ",
"568: context.write( system.partial(\\"article-end.html\\") );",
"569: ",
"570: context.write(\\"\\r\\n\\t\\");",
"571: ",
"572: } ",
"573: ",
"574: context.write(\\"\\r\\n\\");",
"575: ",
"576: } ",
"577: ",
"578: // End source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.",
"579: };",
"580: ",
"581: /* Shortcuts. */",
"582: article = context.article;",
"583: page = context.page;",
"584: projectFolder = context.projectFolder;",
"585: project = context.project;",
"586: system = context.system;",
"587: ",
"588: ",
"589: new SE637303571347553612().executeScript();"
},
LineNumber=228,
ColumnNumber=0,
SourceLine="context.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );",
Description="3472389472389",
SourceFilePath="C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html",
WasCanceled=True,
Message="3472389472389",
Data=
[
]
,
InnerException=SlimScriptEngineException
{
ExcepInfo=EXCEPINFO
{
},
Description="3472389472389",
LineNumber=228,
ColumnNumber=0,
SourceLine="context.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );",
FullSourceCode="function SE637303571347553612() {}\\r\\n\\r\\n\\r\\nSE637303571347553612.prototype.executeScript = function(){\\r\\n// Start source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n\\r\\n\\r\\n\\tvar image = project.getImage(article.value(\\"image\\"));\\r\\n\\tvar contentImageWidth = \\"890\\";\\r\\n\\tvar defaultImageWidth = 960;\\r\\n\\tvar cssClass = article.cssClass || \\"\\";\\r\\n\\tvar isBreakout = cssClass.indexOf(\\"zpBreakout\\") !== -1 ? true : false;\\r\\n\\t\\r\\n\\t// Kann auch \\"700px\\" sein, deshalb mit parseInt nur die Zahl holen und trimmen - falls leer, auf default 960 setzen.\\r\\n\\tcontentImageWidth = parseInt(contentImageWidth) || defaultImageWidth;\\r\\n\\r\\n\\tvar gridCols = article.column.cssClass;\\r\\n\\tif ( gridCols ){\\r\\n\\t\\tgridCols = parseInt((gridCols.match(/\\bc[1-9][0-2]?\\b\\s?/) || 12).toString().replace(\\"c\\", \\"\\"));\\r\\n\\t}\\r\\n\\telse{\\r\\n\\t\\tgridCols = 12;\\r\\n\\t}\\r\\n\\tvar columnMargin = 30;\\r\\n\\tvar columnWidth = ((contentImageWidth + columnMargin) / 12) * gridCols;\\r\\n\\t// minimum width needed for 100% width display on 1-column breakpoint\\r\\n\\tvar minwidth = parseInt(479 - columnMargin);\\r\\n\\tvar contentCopyWidth = parseInt(columnWidth - columnMargin) || defaultImageWidth;\\r\\n\\tif ( minwidth > contentCopyWidth ){\\r\\n\\t\\tcontentCopyWidth = minwidth;\\r\\n\\t}\\r\\n\\t\\t\\r\\n\\t//system.log(\\"contentCopyWidth: \\" + contentCopyWidth + \\" - image: \\" + image.name + \\"( Page \\" + article.page.name +\\")\\");\\r\\n\\t\\r\\n\\tvar imageError = false;\\r\\n\\tif ( !isNull(image) ) {\\r\\n\\t\\tif ( isBreakout ){\\r\\n\\t\\t\\tcontentCopyWidth = image.workingCopyWidth;\\r\\n\\t\\t}\\r\\n\\t\\ttry {\\r\\n\\t\\t\\tvar iresult = image.ensureContentCopy(article, contentCopyWidth);\\r\\n\\t\\t\\tvar thumbImageWidth = image.contentCopyWidth;\\r\\n\\t\\t\\tvar thumbImageHeight = image.contentCopyHeight;\\r\\n\\t\\t\\tvar description = image.description;\\r\\n\\t\\t\\tvar altText = system.htmlEncode(system.removeHtmlTags(image.altText));\\r\\n\\t\\t\\tvar oldAltText = system.htmlEncode(system.removeHtmlTags(article.valueExpanded(\\"alt\\", \\"\\")));\\r\\n\\t\\t\\tif ( altText == \\"\\" && oldAltText !== \\"\\" ){\\r\\n\\t\\t\\t\\taltText = oldAltText;\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\tvar encodedDescription = system.htmlEncode(image.description);\\r\\n\\t\\t\\tvar stripDescription = system.htmlEncode(system.removeHtmlTags(image.description));\\r\\n\\t\\t\\t// strip
-Tags from description as
is not valid inside SPAN\\r\\n\\t\\t\\tdescription = description.toString().replace(/
/g,\\"\\");\\r\\n\\t\\t\\tdescription = description.toString().replace(/<\\/p>/g,\\" \\");\\r\\n\\t\\t\\t//system.log(\\" Image Width: \\" + contentCopyWidth +\\" / Returned contentCopyWidth:\\" + thumbImageWidth + \\" / Image Result: \\" + iresult);\\r\\n\\t\\t}\\r\\n\\t\\tcatch(err) {\\r\\n\\t\\t\\timageError = true;\\r\\n\\t\\t}\\r\\n\\t}\\r\\n\\t\\r\\n\\tif ( stripDescription !== \\"\\" ) {\\r\\n\\t\\tvar showCaption = \\"1\\";\\r\\n\\t}\\r\\n\\telse {\\r\\n\\t\\tvar showCaption = \\"0\\";\\r\\n\\t}\\r\\n\\r\\n\\tvar lightBox = article.value(\\"lightbox\\", \\"lightbox\\");\\r\\n\\tvar clickURL = article.value(\\"clickurl\\");\\r\\n\\tvar effect = article.value(\\"effect\\", \\"none\\");\\r\\n\\tvar effectClass = \\"\\";\\r\\n\\tswitch ( effect ) {\\r\\n\\t\\tcase \\"hoverzoom\\":\\r\\n\\t\\t\\teffectClass = \\" zpeffect zphoverscale\\";\\r\\n\\t\\t\\tbreak;\\r\\n\\t\\t\\r\\n\\t\\tdefault:\\r\\n\\t\\t\\teffectClass = \\"\\";\\r\\n\\t}\\r\\n \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\");\\r\\n\\r\\n if ( isNull(image) || imageError ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n if ( system.preview ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t
\\r\\n\\t\\t\\t\\tDas gewählte Bild ist anscheinend gelöscht worden. Bearbeiten Sie diesen Artikel und wählen Sie erneut ein Bild aus.\\r\\n\\t\\t\\t\\r\\n\\t\\t
\\r\\n\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n if ( lightBox == \\"zoom\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( image.isSvgImage ){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } else if ( image.isAnimatedGif ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\");\\r\\n\\r\\n } else if ( lightBox == true || lightBox == \\"lightbox\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n } else if ( lightBox == \\"off\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( image.isSvgImage ){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } else if ( image.isAnimatedGif ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( clickURL !== \\"\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( image.isSvgImage ){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n } else if ( image.isAnimatedGif ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\tGehe zu URL (go to url). \\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\");\\r\\n\\r\\n } \\r\\n\\r\\n// End source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n};\\r\\n\\r\\n/* Shortcuts. */\\r\\narticle = context.article;\\r\\npage = context.page;\\r\\nprojectFolder = context.projectFolder;\\r\\nproject = context.project;\\r\\nsystem = context.system;\\r\\n\\r\\n\\r\\nnew SE637303571347553612().executeScript();\\r\\n",
SourceContext=0,
WasCanceled=True,
Message="3472389472389",
Data=
[
"COM Exception" = COMException
]
,
InnerException=null,
TargetSite=RuntimeMethodInfo: Throw,
StackTrace=" bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.doExecute(String script) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 174.\\r\\n bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.Execute(String script) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 71.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreterHelper.GuardEngineRun(SlimScriptEngine engine, String scriptToExecute, RenderingContext renderingContext, String runString) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Engine\\RenderingInterpreterHelper.cs:Zeile 179.",
HelpLink=null,
Source="ActiveScriptSite.ScriptError",
HResult=-2146233088
},
TargetSite=RuntimeMethodInfo: ThrowHostException,
StackTrace=" bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.ThrowHostException(Exception exception) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 107.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreterHelper.GuardEngineRun(SlimScriptEngine engine, String scriptToExecute, RenderingContext renderingContext, String runString) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Engine\\RenderingInterpreterHelper.cs:Zeile 223.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreter.doRun(RenderingContext renderingContext, String runString) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Engine\\RenderingInterpreter.cs:Zeile 42.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreter.Run(RenderingContext renderingContext, String runString) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Engine\\RenderingInterpreter.cs:Zeile 21.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.HighLevel.RenderingScriptProcessor.Process(String textToProcess) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\HighLevel\\RenderingScriptProcessor.cs:Zeile 25.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Macros.RenderingScriptingMacrosNew.doProcess(String textToProcess) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Macros\\RenderingScriptingMacrosNew.cs:Zeile 38.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Macros.RenderingScriptingMacrosNew.Process(String textToProcess) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Macros\\RenderingScriptingMacrosNew.cs:Zeile 26.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Core.RenderingDispatcher.doProcess(String textToProcess) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Core\\RenderingDispatcher.cs:Zeile 48.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Core.RenderingDispatcher.Process(String textToProcess) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Core\\RenderingDispatcher.cs:Zeile 31.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Dom.WebArticleScriptObject.doDispatch(String textToProcess, String filePath, WebArticle article, Nullable`1 makeAllRenderedUrlsAbsolute) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Dom\\WebArticleScriptObject.cs:Zeile 365.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Dom.WebArticleScriptObject.render(Object makeAllRenderedUrlsAbsolute) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Dom\\WebArticleScriptObject.cs:Zeile 258.",
HelpLink=null,
Source="function SE637303571347553612() {}\\r\\n\\r\\n\\r\\nSE637303571347553612.prototype.executeScript = function(){\\r\\n// Start source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n\\r\\n\\r\\n\\tvar image = project.getImage(article.value(\\"image\\"));\\r\\n\\tvar contentImageWidth = \\"890\\";\\r\\n\\tvar defaultImageWidth = 960;\\r\\n\\tvar cssClass = article.cssClass || \\"\\";\\r\\n\\tvar isBreakout = cssClass.indexOf(\\"zpBreakout\\") !== -1 ? true : false;\\r\\n\\t\\r\\n\\t// Kann auch \\"700px\\" sein, deshalb mit parseInt nur die Zahl holen und trimmen - falls leer, auf default 960 setzen.\\r\\n\\tcontentImageWidth = parseInt(contentImageWidth) || defaultImageWidth;\\r\\n\\r\\n\\tvar gridCols = article.column.cssClass;\\r\\n\\tif ( gridCols ){\\r\\n\\t\\tgridCols = parseInt((gridCols.match(/\\bc[1-9][0-2]?\\b\\s?/) || 12).toString().replace(\\"c\\", \\"\\"));\\r\\n\\t}\\r\\n\\telse{\\r\\n\\t\\tgridCols = 12;\\r\\n\\t}\\r\\n\\tvar columnMargin = 30;\\r\\n\\tvar columnWidth = ((contentImageWidth + columnMargin) / 12) * gridCols;\\r\\n\\t// minimum width needed for 100% width display on 1-column breakpoint\\r\\n\\tvar minwidth = parseInt(479 - columnMargin);\\r\\n\\tvar contentCopyWidth = parseInt(columnWidth - columnMargin) || defaultImageWidth;\\r\\n\\tif ( minwidth > contentCopyWidth ){\\r\\n\\t\\tcontentCopyWidth = minwidth;\\r\\n\\t}\\r\\n\\t\\t\\r\\n\\t//system.log(\\"contentCopyWidth: \\" + contentCopyWidth + \\" - image: \\" + image.name + \\"( Page \\" + article.page.name +\\")\\");\\r\\n\\t\\r\\n\\tvar imageError = false;\\r\\n\\tif ( !isNull(image) ) {\\r\\n\\t\\tif ( isBreakout ){\\r\\n\\t\\t\\tcontentCopyWidth = image.workingCopyWidth;\\r\\n\\t\\t}\\r\\n\\t\\ttry {\\r\\n\\t\\t\\tvar iresult = image.ensureContentCopy(article, contentCopyWidth);\\r\\n\\t\\t\\tvar thumbImageWidth = image.contentCopyWidth;\\r\\n\\t\\t\\tvar thumbImageHeight = image.contentCopyHeight;\\r\\n\\t\\t\\tvar description = image.description;\\r\\n\\t\\t\\tvar altText = system.htmlEncode(system.removeHtmlTags(image.altText));\\r\\n\\t\\t\\tvar oldAltText = system.htmlEncode(system.removeHtmlTags(article.valueExpanded(\\"alt\\", \\"\\")));\\r\\n\\t\\t\\tif ( altText == \\"\\" && oldAltText !== \\"\\" ){\\r\\n\\t\\t\\t\\taltText = oldAltText;\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\tvar encodedDescription = system.htmlEncode(image.description);\\r\\n\\t\\t\\tvar stripDescription = system.htmlEncode(system.removeHtmlTags(image.description));\\r\\n\\t\\t\\t// strip
-Tags from description as
is not valid inside SPAN\\r\\n\\t\\t\\tdescription = description.toString().replace(/
/g,\\"\\");\\r\\n\\t\\t\\tdescription = description.toString().replace(/<\\/p>/g,\\" \\");\\r\\n\\t\\t\\t//system.log(\\" Image Width: \\" + contentCopyWidth +\\" / Returned contentCopyWidth:\\" + thumbImageWidth + \\" / Image Result: \\" + iresult);\\r\\n\\t\\t}\\r\\n\\t\\tcatch(err) {\\r\\n\\t\\t\\timageError = true;\\r\\n\\t\\t}\\r\\n\\t}\\r\\n\\t\\r\\n\\tif ( stripDescription !== \\"\\" ) {\\r\\n\\t\\tvar showCaption = \\"1\\";\\r\\n\\t}\\r\\n\\telse {\\r\\n\\t\\tvar showCaption = \\"0\\";\\r\\n\\t}\\r\\n\\r\\n\\tvar lightBox = article.value(\\"lightbox\\", \\"lightbox\\");\\r\\n\\tvar clickURL = article.value(\\"clickurl\\");\\r\\n\\tvar effect = article.value(\\"effect\\", \\"none\\");\\r\\n\\tvar effectClass = \\"\\";\\r\\n\\tswitch ( effect ) {\\r\\n\\t\\tcase \\"hoverzoom\\":\\r\\n\\t\\t\\teffectClass = \\" zpeffect zphoverscale\\";\\r\\n\\t\\t\\tbreak;\\r\\n\\t\\t\\r\\n\\t\\tdefault:\\r\\n\\t\\t\\teffectClass = \\"\\";\\r\\n\\t}\\r\\n \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\");\\r\\n\\r\\n if ( isNull(image) || imageError ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n if ( system.preview ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t
\\r\\n\\t\\t\\t\\tDas gewählte Bild ist anscheinend gelöscht worden. Bearbeiten Sie diesen Artikel und wählen Sie erneut ein Bild aus.\\r\\n\\t\\t\\t\\r\\n\\t\\t
\\r\\n\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n if ( lightBox == \\"zoom\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( image.isSvgImage ){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } else if ( image.isAnimatedGif ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\");\\r\\n\\r\\n } else if ( lightBox == true || lightBox == \\"lightbox\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n } else if ( lightBox == \\"off\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( image.isSvgImage ){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } else if ( image.isAnimatedGif ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( clickURL !== \\"\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( image.isSvgImage ){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n } else if ( image.isAnimatedGif ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\tGehe zu URL (go to url). \\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\");\\r\\n\\r\\n } \\r\\n\\r\\n// End source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n};\\r\\n\\r\\n/* Shortcuts. */\\r\\narticle = context.article;\\r\\npage = context.page;\\r\\nprojectFolder = context.projectFolder;\\r\\nproject = context.project;\\r\\nsystem = context.system;\\r\\n\\r\\n\\r\\nnew SE637303571347553612().executeScript();\\r\\n",
HResult=-2146233088
},
TargetSite=null,
StackTrace=null,
HelpLink=null,
Source="ActiveScriptSite.ScriptError",
HResult=-2146233088
}
-->Skript-Fehler:
---------------
3472389472389
---------------
Zeile 229, Spalte 1: context.write( system.partial("article-begin.html", "popupimage") );
---------------
Datei: C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\widgets\singleimage\standard.html
---------------
Quelltext:
001: function SE637303571347553612() {}
002:
003:
004: SE637303571347553612.prototype.executeScript = function(){
005: // Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\widgets\singleimage\standard.html'.
006:
007:
008: var image = project.getImage(article.value("image"));
009: var contentImageWidth = "890";
010: var defaultImageWidth = 960;
011: var cssClass = article.cssClass || "";
012: var isBreakout = cssClass.indexOf("zpBreakout") !== -1 ? true : false;
013:
014: // Kann auch "700px" sein, deshalb mit parseInt nur die Zahl holen und trimmen - falls leer, auf default 960 setzen.
015: contentImageWidth = parseInt(contentImageWidth) || defaultImageWidth;
016:
017: var gridCols = article.column.cssClass;
018: if ( gridCols ){
019: gridCols = parseInt((gridCols.match(/\bc[1-9][0-2]?\b\s?/) || 12).toString().replace("c", ""));
020: }
021: else{
022: gridCols = 12;
023: }
024: var columnMargin = 30;
025: var columnWidth = ((contentImageWidth + columnMargin) / 12) * gridCols;
026: // minimum width needed for 100% width display on 1-column breakpoint
027: var minwidth = parseInt(479 - columnMargin);
028: var contentCopyWidth = parseInt(columnWidth - columnMargin) || defaultImageWidth;
029: if ( minwidth > contentCopyWidth ){
030: contentCopyWidth = minwidth;
031: }
032:
033: //system.log("contentCopyWidth: " + contentCopyWidth + " - image: " + image.name + "( Page " + article.page.name +")");
034:
035: var imageError = false;
036: if ( !isNull(image) ) {
037: if ( isBreakout ){
038: contentCopyWidth = image.workingCopyWidth;
039: }
040: try {
041: var iresult = image.ensureContentCopy(article, contentCopyWidth);
042: var thumbImageWidth = image.contentCopyWidth;
043: var thumbImageHeight = image.contentCopyHeight;
044: var description = image.description;
045: var altText = system.htmlEncode(system.removeHtmlTags(image.altText));
046: var oldAltText = system.htmlEncode(system.removeHtmlTags(article.valueExpanded("alt", "")));
047: if ( altText == "" && oldAltText !== "" ){
048: altText = oldAltText;
049: }
050: var encodedDescription = system.htmlEncode(image.description);
051: var stripDescription = system.htmlEncode(system.removeHtmlTags(image.description));
052: // strip
-Tags from description as
is not valid inside SPAN
053: description = description.toString().replace(/
/g,"");
054: description = description.toString().replace(/<\/p>/g," ");
055: //system.log(" Image Width: " + contentCopyWidth +" / Returned contentCopyWidth:" + thumbImageWidth + " / Image Result: " + iresult);
056: }
057: catch(err) {
058: imageError = true;
059: }
060: }
061:
062: if ( stripDescription !== "" ) {
063: var showCaption = "1";
064: }
065: else {
066: var showCaption = "0";
067: }
068:
069: var lightBox = article.value("lightbox", "lightbox");
070: var clickURL = article.value("clickurl");
071: var effect = article.value("effect", "none");
072: var effectClass = "";
073: switch ( effect ) {
074: case "hoverzoom":
075: effectClass = " zpeffect zphoverscale";
076: break;
077:
078: default:
079: effectClass = "";
080: }
081:
082:
083: context.write("\r\n\r\n");
084:
085: if ( isNull(image) || imageError ) {
086:
087: context.write("\r\n\t");
088:
089: if ( system.preview ) {
090:
091: context.write("\r\n\t\t
\r\n\t\t\t\tDas gewählte Bild ist anscheinend gelöscht worden. Bearbeiten Sie diesen Artikel und wählen Sie erneut ein Bild aus.\r\n\t\t\t\r\n\t\t
\r\n\t");
096:
097: }
098:
099: context.write("\r\n");
100:
101: } else {
102:
103: context.write("\r\n\t");
104:
105: if ( lightBox == "zoom" ) {
106:
107: context.write("\r\n\t\t");
108:
109: context.write( system.partial("article-begin.html", "popupimage") );
110:
111: context.write("\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t");
140:
141: if ( image.isSvgImage ){
142:
143: context.write("\r\n\t\t\t\t
\r\n\t\t\t\t");
156:
157: } else if ( image.isAnimatedGif ) {
158:
159: context.write("\r\n\t\t\t\t
\r\n\t\t\t\t");
180:
181: } else {
182:
183: context.write("\r\n\t\t\t\t
\r\n\t\t\t\t");
204:
205: }
206:
207: context.write("\r\n\t\t\t
\r\n\r\n\t\t\t");
208:
209: if ( showCaption == "1" && description ) {
210:
211: context.write("\r\n\t\t\t\t
");
212:
213: context.write( description );
214:
215: context.write(" \r\n\t\t\t");
216:
217: }
218:
219: context.write("\r\n\t\t\r\n\t\t\t
\r\n\t\t");
220:
221: context.write( system.partial("article-end.html") );
222:
223: context.write(" \r\n\t");
224:
225: } else if ( lightBox == true || lightBox == "lightbox" ) {
226:
227: context.write("\r\n\t\t");
228:
229: context.write( system.partial("article-begin.html", "popupimage") );
230:
231: context.write("\r\n\t\t\t
\r\n\t\t");
340:
341: context.write( system.partial("article-end.html") );
342:
343: context.write("\r\n\t");
344:
345: } else if ( lightBox == "off" ) {
346:
347: context.write("\r\n\t\t");
348:
349: context.write( system.partial("article-begin.html") );
350:
351: context.write("\r\n\t\t\t");
352:
353: if ( image.isSvgImage ){
354:
355: context.write("\r\n\t\t\t
\r\n\t\t\t");
368:
369: } else if ( image.isAnimatedGif ) {
370:
371: context.write("\r\n\t\t\t
\r\n\t\t\t");
392:
393: } else {
394:
395: context.write("\r\n\t\t\t
\r\n\t\t\t");
416:
417: }
418:
419: context.write("\r\n\r\n\t\t\t");
420:
421: if ( showCaption == "1" && description ) {
422:
423: context.write("\r\n\t\t\t\t
");
424:
425: context.write( description );
426:
427: context.write(" \r\n\t\t\t");
428:
429: }
430:
431: context.write("\r\n\t\t");
432:
433: context.write( system.partial("article-end.html") );
434:
435: context.write("\r\n\t");
436:
437: } else {
438:
439: context.write("\r\n\t\t");
440:
441: context.write( system.partial("article-begin.html") );
442:
443: context.write("\r\n\t\t\t");
444:
445: if ( clickURL !== "" ) {
446:
447: context.write("\r\n\t\t\t\t
\r\n\t\t\t\t\t");
459:
460: if ( image.isSvgImage ){
461:
462: context.write("\r\n\t\t\t\t\t \r\n\t\t\t\t\t");
475:
476: } else if ( image.isAnimatedGif ) {
477:
478: context.write("\r\n\t\t\t\t\t \r\n\t\t\t\t\t");
499:
500: } else {
501:
502: context.write("\r\n\t\t\t\t\t \r\n\t\t\t\t\t");
523:
524: }
525:
526: context.write("\r\n\t\t\t\t\tGehe zu URL (go to url). \r\n\t\t\t\t \r\n\t\t\t");
527:
528: } else {
529:
530: context.write("\r\n\t\t\t\t
\r\n\t\t\t");
551:
552: }
553:
554: context.write("\r\n\r\n\t\t\t");
555:
556: if ( showCaption == "1" && description ) {
557:
558: context.write("\r\n\t\t\t\t
");
559:
560: context.write( description );
561:
562: context.write(" \r\n\t\t\t");
563:
564: }
565:
566: context.write("\r\n\t\t");
567:
568: context.write( system.partial("article-end.html") );
569:
570: context.write("\r\n\t");
571:
572: }
573:
574: context.write("\r\n");
575:
576: }
577:
578: // End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\widgets\singleimage\standard.html'.
579: };
580:
581: /* Shortcuts. */
582: article = context.article;
583: page = context.page;
584: projectFolder = context.projectFolder;
585: project = context.project;
586: system = context.system;
587:
588:
589: new SE637303571347553612().executeScript();--> 3472389472389
ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.ErrorHandling.InterpreterException
-----------------
Skript-Fehler:
---------------
3472389472389
---------------
Zeile 229, Spalte 1: context.write( system.partial("article-begin.html", "popupimage") );
---------------
Datei: C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\widgets\singleimage\standard.html
---------------
Quelltext:
001: function SE637303571347553612() {}
002:
003:
004: SE637303571347553612.prototype.executeScript = function(){
005: // Start source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\widgets\singleimage\standard.html'.
006:
007:
008: var image = project.getImage(article.value("image"));
009: var contentImageWidth = "890";
010: var defaultImageWidth = 960;
011: var cssClass = article.cssClass || "";
012: var isBreakout = cssClass.indexOf("zpBreakout") !== -1 ? true : false;
013:
014: // Kann auch "700px" sein, deshalb mit parseInt nur die Zahl holen und trimmen - falls leer, auf default 960 setzen.
015: contentImageWidth = parseInt(contentImageWidth) || defaultImageWidth;
016:
017: var gridCols = article.column.cssClass;
018: if ( gridCols ){
019: gridCols = parseInt((gridCols.match(/\bc[1-9][0-2]?\b\s?/) || 12).toString().replace("c", ""));
020: }
021: else{
022: gridCols = 12;
023: }
024: var columnMargin = 30;
025: var columnWidth = ((contentImageWidth + columnMargin) / 12) * gridCols;
026: // minimum width needed for 100% width display on 1-column breakpoint
027: var minwidth = parseInt(479 - columnMargin);
028: var contentCopyWidth = parseInt(columnWidth - columnMargin) || defaultImageWidth;
029: if ( minwidth > contentCopyWidth ){
030: contentCopyWidth = minwidth;
031: }
032:
033: //system.log("contentCopyWidth: " + contentCopyWidth + " - image: " + image.name + "( Page " + article.page.name +")");
034:
035: var imageError = false;
036: if ( !isNull(image) ) {
037: if ( isBreakout ){
038: contentCopyWidth = image.workingCopyWidth;
039: }
040: try {
041: var iresult = image.ensureContentCopy(article, contentCopyWidth);
042: var thumbImageWidth = image.contentCopyWidth;
043: var thumbImageHeight = image.contentCopyHeight;
044: var description = image.description;
045: var altText = system.htmlEncode(system.removeHtmlTags(image.altText));
046: var oldAltText = system.htmlEncode(system.removeHtmlTags(article.valueExpanded("alt", "")));
047: if ( altText == "" && oldAltText !== "" ){
048: altText = oldAltText;
049: }
050: var encodedDescription = system.htmlEncode(image.description);
051: var stripDescription = system.htmlEncode(system.removeHtmlTags(image.description));
052: // strip
-Tags from description as
is not valid inside SPAN
053: description = description.toString().replace(/
/g,"");
054: description = description.toString().replace(/<\/p>/g," ");
055: //system.log(" Image Width: " + contentCopyWidth +" / Returned contentCopyWidth:" + thumbImageWidth + " / Image Result: " + iresult);
056: }
057: catch(err) {
058: imageError = true;
059: }
060: }
061:
062: if ( stripDescription !== "" ) {
063: var showCaption = "1";
064: }
065: else {
066: var showCaption = "0";
067: }
068:
069: var lightBox = article.value("lightbox", "lightbox");
070: var clickURL = article.value("clickurl");
071: var effect = article.value("effect", "none");
072: var effectClass = "";
073: switch ( effect ) {
074: case "hoverzoom":
075: effectClass = " zpeffect zphoverscale";
076: break;
077:
078: default:
079: effectClass = "";
080: }
081:
082:
083: context.write("\r\n\r\n");
084:
085: if ( isNull(image) || imageError ) {
086:
087: context.write("\r\n\t");
088:
089: if ( system.preview ) {
090:
091: context.write("\r\n\t\t
\r\n\t\t\t\tDas gewählte Bild ist anscheinend gelöscht worden. Bearbeiten Sie diesen Artikel und wählen Sie erneut ein Bild aus.\r\n\t\t\t\r\n\t\t
\r\n\t");
096:
097: }
098:
099: context.write("\r\n");
100:
101: } else {
102:
103: context.write("\r\n\t");
104:
105: if ( lightBox == "zoom" ) {
106:
107: context.write("\r\n\t\t");
108:
109: context.write( system.partial("article-begin.html", "popupimage") );
110:
111: context.write("\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t");
140:
141: if ( image.isSvgImage ){
142:
143: context.write("\r\n\t\t\t\t
\r\n\t\t\t\t");
156:
157: } else if ( image.isAnimatedGif ) {
158:
159: context.write("\r\n\t\t\t\t
\r\n\t\t\t\t");
180:
181: } else {
182:
183: context.write("\r\n\t\t\t\t
\r\n\t\t\t\t");
204:
205: }
206:
207: context.write("\r\n\t\t\t
\r\n\r\n\t\t\t");
208:
209: if ( showCaption == "1" && description ) {
210:
211: context.write("\r\n\t\t\t\t
");
212:
213: context.write( description );
214:
215: context.write(" \r\n\t\t\t");
216:
217: }
218:
219: context.write("\r\n\t\t\r\n\t\t\t
\r\n\t\t");
220:
221: context.write( system.partial("article-end.html") );
222:
223: context.write(" \r\n\t");
224:
225: } else if ( lightBox == true || lightBox == "lightbox" ) {
226:
227: context.write("\r\n\t\t");
228:
229: context.write( system.partial("article-begin.html", "popupimage") );
230:
231: context.write("\r\n\t\t\t
\r\n\t\t");
340:
341: context.write( system.partial("article-end.html") );
342:
343: context.write("\r\n\t");
344:
345: } else if ( lightBox == "off" ) {
346:
347: context.write("\r\n\t\t");
348:
349: context.write( system.partial("article-begin.html") );
350:
351: context.write("\r\n\t\t\t");
352:
353: if ( image.isSvgImage ){
354:
355: context.write("\r\n\t\t\t
\r\n\t\t\t");
368:
369: } else if ( image.isAnimatedGif ) {
370:
371: context.write("\r\n\t\t\t
\r\n\t\t\t");
392:
393: } else {
394:
395: context.write("\r\n\t\t\t
\r\n\t\t\t");
416:
417: }
418:
419: context.write("\r\n\r\n\t\t\t");
420:
421: if ( showCaption == "1" && description ) {
422:
423: context.write("\r\n\t\t\t\t
");
424:
425: context.write( description );
426:
427: context.write(" \r\n\t\t\t");
428:
429: }
430:
431: context.write("\r\n\t\t");
432:
433: context.write( system.partial("article-end.html") );
434:
435: context.write("\r\n\t");
436:
437: } else {
438:
439: context.write("\r\n\t\t");
440:
441: context.write( system.partial("article-begin.html") );
442:
443: context.write("\r\n\t\t\t");
444:
445: if ( clickURL !== "" ) {
446:
447: context.write("\r\n\t\t\t\t
\r\n\t\t\t\t\t");
459:
460: if ( image.isSvgImage ){
461:
462: context.write("\r\n\t\t\t\t\t \r\n\t\t\t\t\t");
475:
476: } else if ( image.isAnimatedGif ) {
477:
478: context.write("\r\n\t\t\t\t\t \r\n\t\t\t\t\t");
499:
500: } else {
501:
502: context.write("\r\n\t\t\t\t\t \r\n\t\t\t\t\t");
523:
524: }
525:
526: context.write("\r\n\t\t\t\t\tGehe zu URL (go to url). \r\n\t\t\t\t \r\n\t\t\t");
527:
528: } else {
529:
530: context.write("\r\n\t\t\t\t
\r\n\t\t\t");
551:
552: }
553:
554: context.write("\r\n\r\n\t\t\t");
555:
556: if ( showCaption == "1" && description ) {
557:
558: context.write("\r\n\t\t\t\t
");
559:
560: context.write( description );
561:
562: context.write(" \r\n\t\t\t");
563:
564: }
565:
566: context.write("\r\n\t\t");
567:
568: context.write( system.partial("article-end.html") );
569:
570: context.write("\r\n\t");
571:
572: }
573:
574: context.write("\r\n");
575:
576: }
577:
578: // End source file: 'C:\Users\DieGohliser\AppData\Local\Zeta Producer 15\packaging\widgets\singleimage\standard.html'.
579: };
580:
581: /* Shortcuts. */
582: article = context.article;
583: page = context.page;
584: projectFolder = context.projectFolder;
585: project = context.project;
586: system = context.system;
587:
588:
589: new SE637303571347553612().executeScript();
-----------------
bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.ThrowHostException(Exception exception) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\SuperSlimScriptingEngine\SlimScriptEngine.cs:Zeile 107.
bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreterHelper.GuardEngineRun(SlimScriptEngine engine, String scriptToExecute, RenderingContext renderingContext, String runString) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\Engine\RenderingInterpreterHelper.cs:Zeile 223.
bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreter.doRun(RenderingContext renderingContext, String runString) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\Engine\RenderingInterpreter.cs:Zeile 42.
bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreter.Run(RenderingContext renderingContext, String runString) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\Engine\RenderingInterpreter.cs:Zeile 21.
bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.HighLevel.RenderingScriptProcessor.Process(String textToProcess) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\HighLevel\RenderingScriptProcessor.cs:Zeile 25.
bei ZetaProducer.RuntimeBusinessLogic.Rendering.Macros.RenderingScriptingMacrosNew.doProcess(String textToProcess) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Macros\RenderingScriptingMacrosNew.cs:Zeile 38.
bei ZetaProducer.RuntimeBusinessLogic.Rendering.Macros.RenderingScriptingMacrosNew.Process(String textToProcess) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Macros\RenderingScriptingMacrosNew.cs:Zeile 26.
bei ZetaProducer.RuntimeBusinessLogic.Rendering.Core.RenderingDispatcher.doProcess(String textToProcess) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Core\RenderingDispatcher.cs:Zeile 48.
bei ZetaProducer.RuntimeBusinessLogic.Rendering.Core.RenderingDispatcher.Process(String textToProcess) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Core\RenderingDispatcher.cs:Zeile 31.
bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Dom.WebArticleScriptObject.doDispatch(String textToProcess, String filePath, WebArticle article, Nullable`1 makeAllRenderedUrlsAbsolute) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\Dom\WebArticleScriptObject.cs:Zeile 365.
bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Dom.WebArticleScriptObject.render(Object makeAllRenderedUrlsAbsolute) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\Dom\WebArticleScriptObject.cs:Zeile 258.
InterpreterException
{
ErrorDetailsWithStack="3472389472389",
CompleteSourceTextWithHiddenRegions="001: function SE637303571347553612() {}\\r\\n002: \\r\\n003: \\r\\n004: SE637303571347553612.prototype.executeScript = function(){\\r\\n005: // Start source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n006: \\r\\n007: \\r\\n008: \\tvar image = project.getImage(article.value(\\"image\\"));\\r\\n009: \\tvar contentImageWidth = \\"890\\";\\r\\n010: \\tvar defaultImageWidth = 960;\\r\\n011: \\tvar cssClass = article.cssClass || \\"\\";\\r\\n012: \\tvar isBreakout = cssClass.indexOf(\\"zpBreakout\\") !== -1 ? true : false;\\r\\n013: \\t\\r\\n014: \\t// Kann auch \\"700px\\" sein, deshalb mit parseInt nur die Zahl holen und trimmen - falls leer, auf default 960 setzen.\\r\\n015: \\tcontentImageWidth = parseInt(contentImageWidth) || defaultImageWidth;\\r\\n016: \\r\\n017: \\tvar gridCols = article.column.cssClass;\\r\\n018: \\tif ( gridCols ){\\r\\n019: \\t\\tgridCols = parseInt((gridCols.match(/\\bc[1-9][0-2]?\\b\\s?/) || 12).toString().replace(\\"c\\", \\"\\"));\\r\\n020: \\t}\\r\\n021: \\telse{\\r\\n022: \\t\\tgridCols = 12;\\r\\n023: \\t}\\r\\n024: \\tvar columnMargin = 30;\\r\\n025: \\tvar columnWidth = ((contentImageWidth + columnMargin) / 12) * gridCols;\\r\\n026: \\t// minimum width needed for 100% width display on 1-column breakpoint\\r\\n027: \\tvar minwidth = parseInt(479 - columnMargin);\\r\\n028: \\tvar contentCopyWidth = parseInt(columnWidth - columnMargin) || defaultImageWidth;\\r\\n029: \\tif ( minwidth > contentCopyWidth ){\\r\\n030: \\t\\tcontentCopyWidth = minwidth;\\r\\n031: \\t}\\r\\n032: \\t\\t\\r\\n033: \\t//system.log(\\"contentCopyWidth: \\" + contentCopyWidth + \\" - image: \\" + image.name + \\"( Page \\" + article.page.name +\\")\\");\\r\\n034: \\t\\r\\n035: \\tvar imageError = false;\\r\\n036: \\tif ( !isNull(image) ) {\\r\\n037: \\t\\tif ( isBreakout ){\\r\\n038: \\t\\t\\tcontentCopyWidth = image.workingCopyWidth;\\r\\n039: \\t\\t}\\r\\n040: \\t\\ttry {\\r\\n041: \\t\\t\\tvar iresult = image.ensureContentCopy(article, contentCopyWidth);\\r\\n042: \\t\\t\\tvar thumbImageWidth = image.contentCopyWidth;\\r\\n043: \\t\\t\\tvar thumbImageHeight = image.contentCopyHeight;\\r\\n044: \\t\\t\\tvar description = image.description;\\r\\n045: \\t\\t\\tvar altText = system.htmlEncode(system.removeHtmlTags(image.altText));\\r\\n046: \\t\\t\\tvar oldAltText = system.htmlEncode(system.removeHtmlTags(article.valueExpanded(\\"alt\\", \\"\\")));\\r\\n047: \\t\\t\\tif ( altText == \\"\\" && oldAltText !== \\"\\" ){\\r\\n048: \\t\\t\\t\\taltText = oldAltText;\\r\\n049: \\t\\t\\t}\\r\\n050: \\t\\t\\tvar encodedDescription = system.htmlEncode(image.description);\\r\\n051: \\t\\t\\tvar stripDescription = system.htmlEncode(system.removeHtmlTags(image.description));\\r\\n052: \\t\\t\\t// strip
-Tags from description as
is not valid inside SPAN\\r\\n053: \\t\\t\\tdescription = description.toString().replace(/
/g,\\"\\");\\r\\n054: \\t\\t\\tdescription = description.toString().replace(/<\\/p>/g,\\" \\");\\r\\n055: \\t\\t\\t//system.log(\\" Image Width: \\" + contentCopyWidth +\\" / Returned contentCopyWidth:\\" + thumbImageWidth + \\" / Image Result: \\" + iresult);\\r\\n056: \\t\\t}\\r\\n057: \\t\\tcatch(err) {\\r\\n058: \\t\\t\\timageError = true;\\r\\n059: \\t\\t}\\r\\n060: \\t}\\r\\n061: \\t\\r\\n062: \\tif ( stripDescription !== \\"\\" ) {\\r\\n063: \\t\\tvar showCaption = \\"1\\";\\r\\n064: \\t}\\r\\n065: \\telse {\\r\\n066: \\t\\tvar showCaption = \\"0\\";\\r\\n067: \\t}\\r\\n068: \\r\\n069: \\tvar lightBox = article.value(\\"lightbox\\", \\"lightbox\\");\\r\\n070: \\tvar clickURL = article.value(\\"clickurl\\");\\r\\n071: \\tvar effect = article.value(\\"effect\\", \\"none\\");\\r\\n072: \\tvar effectClass = \\"\\";\\r\\n073: \\tswitch ( effect ) {\\r\\n074: \\t\\tcase \\"hoverzoom\\":\\r\\n075: \\t\\t\\teffectClass = \\" zpeffect zphoverscale\\";\\r\\n076: \\t\\t\\tbreak;\\r\\n077: \\t\\t\\r\\n078: \\t\\tdefault:\\r\\n079: \\t\\t\\teffectClass = \\"\\";\\r\\n080: \\t}\\r\\n081: \\r\\n082: \\r\\n083: context.write(\\"\\r\\n\\r\\n\\");\\r\\n084: \\r\\n085: if ( isNull(image) || imageError ) { \\r\\n086: \\r\\n087: context.write(\\"\\r\\n\\t\\");\\r\\n088: \\r\\n089: if ( system.preview ) { \\r\\n090: \\r\\n091: context.write(\\"\\r\\n\\t\\t
\\r\\n\\t\\t\\t\\tDas gewählte Bild ist anscheinend gelöscht worden. Bearbeiten Sie diesen Artikel und wählen Sie erneut ein Bild aus.\\r\\n\\t\\t\\t\\r\\n\\t\\t
\\r\\n\\t\\");\\r\\n096: \\r\\n097: } \\r\\n098: \\r\\n099: context.write(\\"\\r\\n\\");\\r\\n100: \\r\\n101: } else { \\r\\n102: \\r\\n103: context.write(\\"\\r\\n\\t\\");\\r\\n104: \\r\\n105: if ( lightBox == \\"zoom\\" ) { \\r\\n106: \\r\\n107: context.write(\\"\\r\\n\\t\\t\\");\\r\\n108: \\r\\n109: context.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n110: \\r\\n111: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n140: \\r\\n141: if ( image.isSvgImage ){ \\r\\n142: \\r\\n143: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n156: \\r\\n157: } else if ( image.isAnimatedGif ) { \\r\\n158: \\r\\n159: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n180: \\r\\n181: } else { \\r\\n182: \\r\\n183: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n204: \\r\\n205: } \\r\\n206: \\r\\n207: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n208: \\r\\n209: if ( showCaption == \\"1\\" && description ) { \\r\\n210: \\r\\n211: context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n212: \\r\\n213: context.write( description );\\r\\n214: \\r\\n215: context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n216: \\r\\n217: } \\r\\n218: \\r\\n219: context.write(\\"\\r\\n\\t\\t\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n220: \\r\\n221: context.write( system.partial(\\"article-end.html\\") );\\r\\n222: \\r\\n223: context.write(\\" \\r\\n\\t\\");\\r\\n224: \\r\\n225: } else if ( lightBox == true || lightBox == \\"lightbox\\" ) { \\r\\n226: \\r\\n227: context.write(\\"\\r\\n\\t\\t\\");\\r\\n228: \\r\\n229: context.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n230: \\r\\n231: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n340: \\r\\n341: context.write( system.partial(\\"article-end.html\\") );\\r\\n342: \\r\\n343: context.write(\\"\\r\\n\\t\\");\\r\\n344: \\r\\n345: } else if ( lightBox == \\"off\\" ) { \\r\\n346: \\r\\n347: context.write(\\"\\r\\n\\t\\t\\");\\r\\n348: \\r\\n349: context.write( system.partial(\\"article-begin.html\\") );\\r\\n350: \\r\\n351: context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n352: \\r\\n353: if ( image.isSvgImage ){ \\r\\n354: \\r\\n355: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n368: \\r\\n369: } else if ( image.isAnimatedGif ) { \\r\\n370: \\r\\n371: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n392: \\r\\n393: } else { \\r\\n394: \\r\\n395: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n416: \\r\\n417: } \\r\\n418: \\r\\n419: context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n420: \\r\\n421: if ( showCaption == \\"1\\" && description ) { \\r\\n422: \\r\\n423: context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n424: \\r\\n425: context.write( description );\\r\\n426: \\r\\n427: context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n428: \\r\\n429: } \\r\\n430: \\r\\n431: context.write(\\"\\r\\n\\t\\t\\");\\r\\n432: \\r\\n433: context.write( system.partial(\\"article-end.html\\") );\\r\\n434: \\r\\n435: context.write(\\"\\r\\n\\t\\");\\r\\n436: \\r\\n437: } else { \\r\\n438: \\r\\n439: context.write(\\"\\r\\n\\t\\t\\");\\r\\n440: \\r\\n441: context.write( system.partial(\\"article-begin.html\\") );\\r\\n442: \\r\\n443: context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n444: \\r\\n445: if ( clickURL !== \\"\\" ) { \\r\\n446: \\r\\n447: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n459: \\r\\n460: if ( image.isSvgImage ){ \\r\\n461: \\r\\n462: context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n475: \\r\\n476: } else if ( image.isAnimatedGif ) { \\r\\n477: \\r\\n478: context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n499: \\r\\n500: } else { \\r\\n501: \\r\\n502: context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n523: \\r\\n524: } \\r\\n525: \\r\\n526: context.write(\\"\\r\\n\\t\\t\\t\\t\\tGehe zu URL (go to url). \\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\");\\r\\n527: \\r\\n528: } else { \\r\\n529: \\r\\n530: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n551: \\r\\n552: } \\r\\n553: \\r\\n554: context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n555: \\r\\n556: if ( showCaption == \\"1\\" && description ) { \\r\\n557: \\r\\n558: context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n559: \\r\\n560: context.write( description );\\r\\n561: \\r\\n562: context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n563: \\r\\n564: } \\r\\n565: \\r\\n566: context.write(\\"\\r\\n\\t\\t\\");\\r\\n567: \\r\\n568: context.write( system.partial(\\"article-end.html\\") );\\r\\n569: \\r\\n570: context.write(\\"\\r\\n\\t\\");\\r\\n571: \\r\\n572: } \\r\\n573: \\r\\n574: context.write(\\"\\r\\n\\");\\r\\n575: \\r\\n576: } \\r\\n577: \\r\\n578: // End source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n579: };\\r\\n580: \\r\\n581: /* Shortcuts. */\\r\\n582: article = context.article;\\r\\n583: page = context.page;\\r\\n584: projectFolder = context.projectFolder;\\r\\n585: project = context.project;\\r\\n586: system = context.system;\\r\\n587: \\r\\n588: \\r\\n589: new SE637303571347553612().executeScript();\\r\\n",
CompleteSourceText="001: function SE637303571347553612() {}\\r\\n002: \\r\\n003: \\r\\n004: SE637303571347553612.prototype.executeScript = function(){\\r\\n005: // Start source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n006: \\r\\n007: \\r\\n008: \\tvar image = project.getImage(article.value(\\"image\\"));\\r\\n009: \\tvar contentImageWidth = \\"890\\";\\r\\n010: \\tvar defaultImageWidth = 960;\\r\\n011: \\tvar cssClass = article.cssClass || \\"\\";\\r\\n012: \\tvar isBreakout = cssClass.indexOf(\\"zpBreakout\\") !== -1 ? true : false;\\r\\n013: \\t\\r\\n014: \\t// Kann auch \\"700px\\" sein, deshalb mit parseInt nur die Zahl holen und trimmen - falls leer, auf default 960 setzen.\\r\\n015: \\tcontentImageWidth = parseInt(contentImageWidth) || defaultImageWidth;\\r\\n016: \\r\\n017: \\tvar gridCols = article.column.cssClass;\\r\\n018: \\tif ( gridCols ){\\r\\n019: \\t\\tgridCols = parseInt((gridCols.match(/\\bc[1-9][0-2]?\\b\\s?/) || 12).toString().replace(\\"c\\", \\"\\"));\\r\\n020: \\t}\\r\\n021: \\telse{\\r\\n022: \\t\\tgridCols = 12;\\r\\n023: \\t}\\r\\n024: \\tvar columnMargin = 30;\\r\\n025: \\tvar columnWidth = ((contentImageWidth + columnMargin) / 12) * gridCols;\\r\\n026: \\t// minimum width needed for 100% width display on 1-column breakpoint\\r\\n027: \\tvar minwidth = parseInt(479 - columnMargin);\\r\\n028: \\tvar contentCopyWidth = parseInt(columnWidth - columnMargin) || defaultImageWidth;\\r\\n029: \\tif ( minwidth > contentCopyWidth ){\\r\\n030: \\t\\tcontentCopyWidth = minwidth;\\r\\n031: \\t}\\r\\n032: \\t\\t\\r\\n033: \\t//system.log(\\"contentCopyWidth: \\" + contentCopyWidth + \\" - image: \\" + image.name + \\"( Page \\" + article.page.name +\\")\\");\\r\\n034: \\t\\r\\n035: \\tvar imageError = false;\\r\\n036: \\tif ( !isNull(image) ) {\\r\\n037: \\t\\tif ( isBreakout ){\\r\\n038: \\t\\t\\tcontentCopyWidth = image.workingCopyWidth;\\r\\n039: \\t\\t}\\r\\n040: \\t\\ttry {\\r\\n041: \\t\\t\\tvar iresult = image.ensureContentCopy(article, contentCopyWidth);\\r\\n042: \\t\\t\\tvar thumbImageWidth = image.contentCopyWidth;\\r\\n043: \\t\\t\\tvar thumbImageHeight = image.contentCopyHeight;\\r\\n044: \\t\\t\\tvar description = image.description;\\r\\n045: \\t\\t\\tvar altText = system.htmlEncode(system.removeHtmlTags(image.altText));\\r\\n046: \\t\\t\\tvar oldAltText = system.htmlEncode(system.removeHtmlTags(article.valueExpanded(\\"alt\\", \\"\\")));\\r\\n047: \\t\\t\\tif ( altText == \\"\\" && oldAltText !== \\"\\" ){\\r\\n048: \\t\\t\\t\\taltText = oldAltText;\\r\\n049: \\t\\t\\t}\\r\\n050: \\t\\t\\tvar encodedDescription = system.htmlEncode(image.description);\\r\\n051: \\t\\t\\tvar stripDescription = system.htmlEncode(system.removeHtmlTags(image.description));\\r\\n052: \\t\\t\\t// strip
-Tags from description as
is not valid inside SPAN\\r\\n053: \\t\\t\\tdescription = description.toString().replace(/
/g,\\"\\");\\r\\n054: \\t\\t\\tdescription = description.toString().replace(/<\\/p>/g,\\" \\");\\r\\n055: \\t\\t\\t//system.log(\\" Image Width: \\" + contentCopyWidth +\\" / Returned contentCopyWidth:\\" + thumbImageWidth + \\" / Image Result: \\" + iresult);\\r\\n056: \\t\\t}\\r\\n057: \\t\\tcatch(err) {\\r\\n058: \\t\\t\\timageError = true;\\r\\n059: \\t\\t}\\r\\n060: \\t}\\r\\n061: \\t\\r\\n062: \\tif ( stripDescription !== \\"\\" ) {\\r\\n063: \\t\\tvar showCaption = \\"1\\";\\r\\n064: \\t}\\r\\n065: \\telse {\\r\\n066: \\t\\tvar showCaption = \\"0\\";\\r\\n067: \\t}\\r\\n068: \\r\\n069: \\tvar lightBox = article.value(\\"lightbox\\", \\"lightbox\\");\\r\\n070: \\tvar clickURL = article.value(\\"clickurl\\");\\r\\n071: \\tvar effect = article.value(\\"effect\\", \\"none\\");\\r\\n072: \\tvar effectClass = \\"\\";\\r\\n073: \\tswitch ( effect ) {\\r\\n074: \\t\\tcase \\"hoverzoom\\":\\r\\n075: \\t\\t\\teffectClass = \\" zpeffect zphoverscale\\";\\r\\n076: \\t\\t\\tbreak;\\r\\n077: \\t\\t\\r\\n078: \\t\\tdefault:\\r\\n079: \\t\\t\\teffectClass = \\"\\";\\r\\n080: \\t}\\r\\n081: \\r\\n082: \\r\\n083: context.write(\\"\\r\\n\\r\\n\\");\\r\\n084: \\r\\n085: if ( isNull(image) || imageError ) { \\r\\n086: \\r\\n087: context.write(\\"\\r\\n\\t\\");\\r\\n088: \\r\\n089: if ( system.preview ) { \\r\\n090: \\r\\n091: context.write(\\"\\r\\n\\t\\t
\\r\\n\\t\\t\\t\\tDas gewählte Bild ist anscheinend gelöscht worden. Bearbeiten Sie diesen Artikel und wählen Sie erneut ein Bild aus.\\r\\n\\t\\t\\t\\r\\n\\t\\t
\\r\\n\\t\\");\\r\\n096: \\r\\n097: } \\r\\n098: \\r\\n099: context.write(\\"\\r\\n\\");\\r\\n100: \\r\\n101: } else { \\r\\n102: \\r\\n103: context.write(\\"\\r\\n\\t\\");\\r\\n104: \\r\\n105: if ( lightBox == \\"zoom\\" ) { \\r\\n106: \\r\\n107: context.write(\\"\\r\\n\\t\\t\\");\\r\\n108: \\r\\n109: context.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n110: \\r\\n111: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n140: \\r\\n141: if ( image.isSvgImage ){ \\r\\n142: \\r\\n143: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n156: \\r\\n157: } else if ( image.isAnimatedGif ) { \\r\\n158: \\r\\n159: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n180: \\r\\n181: } else { \\r\\n182: \\r\\n183: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n204: \\r\\n205: } \\r\\n206: \\r\\n207: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n208: \\r\\n209: if ( showCaption == \\"1\\" && description ) { \\r\\n210: \\r\\n211: context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n212: \\r\\n213: context.write( description );\\r\\n214: \\r\\n215: context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n216: \\r\\n217: } \\r\\n218: \\r\\n219: context.write(\\"\\r\\n\\t\\t\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n220: \\r\\n221: context.write( system.partial(\\"article-end.html\\") );\\r\\n222: \\r\\n223: context.write(\\" \\r\\n\\t\\");\\r\\n224: \\r\\n225: } else if ( lightBox == true || lightBox == \\"lightbox\\" ) { \\r\\n226: \\r\\n227: context.write(\\"\\r\\n\\t\\t\\");\\r\\n228: \\r\\n229: context.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n230: \\r\\n231: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n340: \\r\\n341: context.write( system.partial(\\"article-end.html\\") );\\r\\n342: \\r\\n343: context.write(\\"\\r\\n\\t\\");\\r\\n344: \\r\\n345: } else if ( lightBox == \\"off\\" ) { \\r\\n346: \\r\\n347: context.write(\\"\\r\\n\\t\\t\\");\\r\\n348: \\r\\n349: context.write( system.partial(\\"article-begin.html\\") );\\r\\n350: \\r\\n351: context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n352: \\r\\n353: if ( image.isSvgImage ){ \\r\\n354: \\r\\n355: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n368: \\r\\n369: } else if ( image.isAnimatedGif ) { \\r\\n370: \\r\\n371: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n392: \\r\\n393: } else { \\r\\n394: \\r\\n395: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n416: \\r\\n417: } \\r\\n418: \\r\\n419: context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n420: \\r\\n421: if ( showCaption == \\"1\\" && description ) { \\r\\n422: \\r\\n423: context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n424: \\r\\n425: context.write( description );\\r\\n426: \\r\\n427: context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n428: \\r\\n429: } \\r\\n430: \\r\\n431: context.write(\\"\\r\\n\\t\\t\\");\\r\\n432: \\r\\n433: context.write( system.partial(\\"article-end.html\\") );\\r\\n434: \\r\\n435: context.write(\\"\\r\\n\\t\\");\\r\\n436: \\r\\n437: } else { \\r\\n438: \\r\\n439: context.write(\\"\\r\\n\\t\\t\\");\\r\\n440: \\r\\n441: context.write( system.partial(\\"article-begin.html\\") );\\r\\n442: \\r\\n443: context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n444: \\r\\n445: if ( clickURL !== \\"\\" ) { \\r\\n446: \\r\\n447: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n459: \\r\\n460: if ( image.isSvgImage ){ \\r\\n461: \\r\\n462: context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n475: \\r\\n476: } else if ( image.isAnimatedGif ) { \\r\\n477: \\r\\n478: context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n499: \\r\\n500: } else { \\r\\n501: \\r\\n502: context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n523: \\r\\n524: } \\r\\n525: \\r\\n526: context.write(\\"\\r\\n\\t\\t\\t\\t\\tGehe zu URL (go to url). \\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\");\\r\\n527: \\r\\n528: } else { \\r\\n529: \\r\\n530: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n551: \\r\\n552: } \\r\\n553: \\r\\n554: context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n555: \\r\\n556: if ( showCaption == \\"1\\" && description ) { \\r\\n557: \\r\\n558: context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n559: \\r\\n560: context.write( description );\\r\\n561: \\r\\n562: context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n563: \\r\\n564: } \\r\\n565: \\r\\n566: context.write(\\"\\r\\n\\t\\t\\");\\r\\n567: \\r\\n568: context.write( system.partial(\\"article-end.html\\") );\\r\\n569: \\r\\n570: context.write(\\"\\r\\n\\t\\");\\r\\n571: \\r\\n572: } \\r\\n573: \\r\\n574: context.write(\\"\\r\\n\\");\\r\\n575: \\r\\n576: } \\r\\n577: \\r\\n578: // End source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n579: };\\r\\n580: \\r\\n581: /* Shortcuts. */\\r\\n582: article = context.article;\\r\\n583: page = context.page;\\r\\n584: projectFolder = context.projectFolder;\\r\\n585: project = context.project;\\r\\n586: system = context.system;\\r\\n587: \\r\\n588: \\r\\n589: new SE637303571347553612().executeScript();",
CompleteSourceLines=String[]
{
Length=589,
LongLength=589,
Rank=1,
,
IsReadOnly=False,
IsFixedSize=True,
IsSynchronized=False
"001: function SE637303571347553612() {}",
"002: ",
"003: ",
"004: SE637303571347553612.prototype.executeScript = function(){",
"005: // Start source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.",
"006: ",
"007: ",
"008: \\tvar image = project.getImage(article.value(\\"image\\"));",
"009: \\tvar contentImageWidth = \\"890\\";",
"010: \\tvar defaultImageWidth = 960;",
"011: \\tvar cssClass = article.cssClass || \\"\\";",
"012: \\tvar isBreakout = cssClass.indexOf(\\"zpBreakout\\") !== -1 ? true : false;",
"013: \\t",
"014: \\t// Kann auch \\"700px\\" sein, deshalb mit parseInt nur die Zahl holen und trimmen - falls leer, auf default 960 setzen.",
"015: \\tcontentImageWidth = parseInt(contentImageWidth) || defaultImageWidth;",
"016: ",
"017: \\tvar gridCols = article.column.cssClass;",
"018: \\tif ( gridCols ){",
"019: \\t\\tgridCols = parseInt((gridCols.match(/\\bc[1-9][0-2]?\\b\\s?/) || 12).toString().replace(\\"c\\", \\"\\"));",
"020: \\t}",
"021: \\telse{",
"022: \\t\\tgridCols = 12;",
"023: \\t}",
"024: \\tvar columnMargin = 30;",
"025: \\tvar columnWidth = ((contentImageWidth + columnMargin) / 12) * gridCols;",
"026: \\t// minimum width needed for 100% width display on 1-column breakpoint",
"027: \\tvar minwidth = parseInt(479 - columnMargin);",
"028: \\tvar contentCopyWidth = parseInt(columnWidth - columnMargin) || defaultImageWidth;",
"029: \\tif ( minwidth > contentCopyWidth ){",
"030: \\t\\tcontentCopyWidth = minwidth;",
"031: \\t}",
"032: \\t\\t",
"033: \\t//system.log(\\"contentCopyWidth: \\" + contentCopyWidth + \\" - image: \\" + image.name + \\"( Page \\" + article.page.name +\\")\\");",
"034: \\t",
"035: \\tvar imageError = false;",
"036: \\tif ( !isNull(image) ) {",
"037: \\t\\tif ( isBreakout ){",
"038: \\t\\t\\tcontentCopyWidth = image.workingCopyWidth;",
"039: \\t\\t}",
"040: \\t\\ttry {",
"041: \\t\\t\\tvar iresult = image.ensureContentCopy(article, contentCopyWidth);",
"042: \\t\\t\\tvar thumbImageWidth = image.contentCopyWidth;",
"043: \\t\\t\\tvar thumbImageHeight = image.contentCopyHeight;",
"044: \\t\\t\\tvar description = image.description;",
"045: \\t\\t\\tvar altText = system.htmlEncode(system.removeHtmlTags(image.altText));",
"046: \\t\\t\\tvar oldAltText = system.htmlEncode(system.removeHtmlTags(article.valueExpanded(\\"alt\\", \\"\\")));",
"047: \\t\\t\\tif ( altText == \\"\\" && oldAltText !== \\"\\" ){",
"048: \\t\\t\\t\\taltText = oldAltText;",
"049: \\t\\t\\t}",
"050: \\t\\t\\tvar encodedDescription = system.htmlEncode(image.description);",
"051: \\t\\t\\tvar stripDescription = system.htmlEncode(system.removeHtmlTags(image.description));",
"052: \\t\\t\\t// strip
-Tags from description as
is not valid inside SPAN",
"053: \\t\\t\\tdescription = description.toString().replace(/
/g,\\"\\");",
"054: \\t\\t\\tdescription = description.toString().replace(/<\\/p>/g,\\" \\");",
"055: \\t\\t\\t//system.log(\\" Image Width: \\" + contentCopyWidth +\\" / Returned contentCopyWidth:\\" + thumbImageWidth + \\" / Image Result: \\" + iresult);",
"056: \\t\\t}",
"057: \\t\\tcatch(err) {",
"058: \\t\\t\\timageError = true;",
"059: \\t\\t}",
"060: \\t}",
"061: \\t",
"062: \\tif ( stripDescription !== \\"\\" ) {",
"063: \\t\\tvar showCaption = \\"1\\";",
"064: \\t}",
"065: \\telse {",
"066: \\t\\tvar showCaption = \\"0\\";",
"067: \\t}",
"068: ",
"069: \\tvar lightBox = article.value(\\"lightbox\\", \\"lightbox\\");",
"070: \\tvar clickURL = article.value(\\"clickurl\\");",
"071: \\tvar effect = article.value(\\"effect\\", \\"none\\");",
"072: \\tvar effectClass = \\"\\";",
"073: \\tswitch ( effect ) {",
"074: \\t\\tcase \\"hoverzoom\\":",
"075: \\t\\t\\teffectClass = \\" zpeffect zphoverscale\\";",
"076: \\t\\t\\tbreak;",
"077: \\t\\t",
"078: \\t\\tdefault:",
"079: \\t\\t\\teffectClass = \\"\\";",
"080: \\t}",
"081: ",
"082: ",
"083: context.write(\\"\\r\\n\\r\\n\\");",
"084: ",
"085: if ( isNull(image) || imageError ) { ",
"086: ",
"087: context.write(\\"\\r\\n\\t\\");",
"088: ",
"089: if ( system.preview ) { ",
"090: ",
"091: context.write(\\"\\r\\n\\t\\t
\\r\\n\\t\\t\\t\\tDas gewählte Bild ist anscheinend gelöscht worden. Bearbeiten Sie diesen Artikel und wählen Sie erneut ein Bild aus.\\r\\n\\t\\t\\t\\r\\n\\t\\t
\\r\\n\\t\\");",
"096: ",
"097: } ",
"098: ",
"099: context.write(\\"\\r\\n\\");",
"100: ",
"101: } else { ",
"102: ",
"103: context.write(\\"\\r\\n\\t\\");",
"104: ",
"105: if ( lightBox == \\"zoom\\" ) { ",
"106: ",
"107: context.write(\\"\\r\\n\\t\\t\\");",
"108: ",
"109: context.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );",
"110: ",
"111: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");",
"140: ",
"141: if ( image.isSvgImage ){ ",
"142: ",
"143: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");",
"156: ",
"157: } else if ( image.isAnimatedGif ) { ",
"158: ",
"159: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");",
"180: ",
"181: } else { ",
"182: ",
"183: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");",
"204: ",
"205: } ",
"206: ",
"207: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\r\\n\\t\\t\\t\\");",
"208: ",
"209: if ( showCaption == \\"1\\" && description ) { ",
"210: ",
"211: context.write(\\"\\r\\n\\t\\t\\t\\t
\\");",
"212: ",
"213: context.write( description );",
"214: ",
"215: context.write(\\" \\r\\n\\t\\t\\t\\");",
"216: ",
"217: } ",
"218: ",
"219: context.write(\\"\\r\\n\\t\\t\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");",
"220: ",
"221: context.write( system.partial(\\"article-end.html\\") );",
"222: ",
"223: context.write(\\" \\r\\n\\t\\");",
"224: ",
"225: } else if ( lightBox == true || lightBox == \\"lightbox\\" ) { ",
"226: ",
"227: context.write(\\"\\r\\n\\t\\t\\");",
"228: ",
"229: context.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );",
"230: ",
"231: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");",
"260: ",
"261: if ( image.isSvgImage ){ ",
"262: ",
"263: context.write(\\"\\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\");",
"276: ",
"277: } else if ( image.isAnimatedGif ) { ",
"278: ",
"279: context.write(\\"\\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\");",
"300: ",
"301: } else { ",
"302: ",
"303: context.write(\\"\\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\");",
"324: ",
"325: } ",
"326: ",
"327: context.write(\\"\\r\\n\\t\\t\\t\\tBild in Lightbox öffnen (open image in lightbox). \\r\\n\\t\\t\\t \\r\\n\\r\\n\\t\\t\\t\\");",
"328: ",
"329: if ( showCaption == \\"1\\" && description ) { ",
"330: ",
"331: context.write(\\"\\r\\n\\t\\t\\t\\t
\\");",
"332: ",
"333: context.write( description );",
"334: ",
"335: context.write(\\" \\r\\n\\t\\t\\t\\");",
"336: ",
"337: } ",
"338: ",
"339: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");",
"340: ",
"341: context.write( system.partial(\\"article-end.html\\") );",
"342: ",
"343: context.write(\\"\\r\\n\\t\\");",
"344: ",
"345: } else if ( lightBox == \\"off\\" ) { ",
"346: ",
"347: context.write(\\"\\r\\n\\t\\t\\");",
"348: ",
"349: context.write( system.partial(\\"article-begin.html\\") );",
"350: ",
"351: context.write(\\"\\r\\n\\t\\t\\t\\");",
"352: ",
"353: if ( image.isSvgImage ){ ",
"354: ",
"355: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");",
"368: ",
"369: } else if ( image.isAnimatedGif ) { ",
"370: ",
"371: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");",
"392: ",
"393: } else { ",
"394: ",
"395: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");",
"416: ",
"417: } ",
"418: ",
"419: context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");",
"420: ",
"421: if ( showCaption == \\"1\\" && description ) { ",
"422: ",
"423: context.write(\\"\\r\\n\\t\\t\\t\\t
\\");",
"424: ",
"425: context.write( description );",
"426: ",
"427: context.write(\\" \\r\\n\\t\\t\\t\\");",
"428: ",
"429: } ",
"430: ",
"431: context.write(\\"\\r\\n\\t\\t\\");",
"432: ",
"433: context.write( system.partial(\\"article-end.html\\") );",
"434: ",
"435: context.write(\\"\\r\\n\\t\\");",
"436: ",
"437: } else { ",
"438: ",
"439: context.write(\\"\\r\\n\\t\\t\\");",
"440: ",
"441: context.write( system.partial(\\"article-begin.html\\") );",
"442: ",
"443: context.write(\\"\\r\\n\\t\\t\\t\\");",
"444: ",
"445: if ( clickURL !== \\"\\" ) { ",
"446: ",
"447: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\");",
"459: ",
"460: if ( image.isSvgImage ){ ",
"461: ",
"462: context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");",
"475: ",
"476: } else if ( image.isAnimatedGif ) { ",
"477: ",
"478: context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");",
"499: ",
"500: } else { ",
"501: ",
"502: context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");",
"523: ",
"524: } ",
"525: ",
"526: context.write(\\"\\r\\n\\t\\t\\t\\t\\tGehe zu URL (go to url). \\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\");",
"527: ",
"528: } else { ",
"529: ",
"530: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\");",
"551: ",
"552: } ",
"553: ",
"554: context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");",
"555: ",
"556: if ( showCaption == \\"1\\" && description ) { ",
"557: ",
"558: context.write(\\"\\r\\n\\t\\t\\t\\t
\\");",
"559: ",
"560: context.write( description );",
"561: ",
"562: context.write(\\" \\r\\n\\t\\t\\t\\");",
"563: ",
"564: } ",
"565: ",
"566: context.write(\\"\\r\\n\\t\\t\\");",
"567: ",
"568: context.write( system.partial(\\"article-end.html\\") );",
"569: ",
"570: context.write(\\"\\r\\n\\t\\");",
"571: ",
"572: } ",
"573: ",
"574: context.write(\\"\\r\\n\\");",
"575: ",
"576: } ",
"577: ",
"578: // End source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.",
"579: };",
"580: ",
"581: /* Shortcuts. */",
"582: article = context.article;",
"583: page = context.page;",
"584: projectFolder = context.projectFolder;",
"585: project = context.project;",
"586: system = context.system;",
"587: ",
"588: ",
"589: new SE637303571347553612().executeScript();"
},
LineNumber=228,
ColumnNumber=0,
SourceLine="context.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );",
Description="3472389472389",
SourceFilePath="C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html",
WasCanceled=True,
Message="3472389472389",
Data=
[
]
,
InnerException=SlimScriptEngineException
{
ExcepInfo=EXCEPINFO
{
},
Description="3472389472389",
LineNumber=228,
ColumnNumber=0,
SourceLine="context.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );",
FullSourceCode="function SE637303571347553612() {}\\r\\n\\r\\n\\r\\nSE637303571347553612.prototype.executeScript = function(){\\r\\n// Start source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n\\r\\n\\r\\n\\tvar image = project.getImage(article.value(\\"image\\"));\\r\\n\\tvar contentImageWidth = \\"890\\";\\r\\n\\tvar defaultImageWidth = 960;\\r\\n\\tvar cssClass = article.cssClass || \\"\\";\\r\\n\\tvar isBreakout = cssClass.indexOf(\\"zpBreakout\\") !== -1 ? true : false;\\r\\n\\t\\r\\n\\t// Kann auch \\"700px\\" sein, deshalb mit parseInt nur die Zahl holen und trimmen - falls leer, auf default 960 setzen.\\r\\n\\tcontentImageWidth = parseInt(contentImageWidth) || defaultImageWidth;\\r\\n\\r\\n\\tvar gridCols = article.column.cssClass;\\r\\n\\tif ( gridCols ){\\r\\n\\t\\tgridCols = parseInt((gridCols.match(/\\bc[1-9][0-2]?\\b\\s?/) || 12).toString().replace(\\"c\\", \\"\\"));\\r\\n\\t}\\r\\n\\telse{\\r\\n\\t\\tgridCols = 12;\\r\\n\\t}\\r\\n\\tvar columnMargin = 30;\\r\\n\\tvar columnWidth = ((contentImageWidth + columnMargin) / 12) * gridCols;\\r\\n\\t// minimum width needed for 100% width display on 1-column breakpoint\\r\\n\\tvar minwidth = parseInt(479 - columnMargin);\\r\\n\\tvar contentCopyWidth = parseInt(columnWidth - columnMargin) || defaultImageWidth;\\r\\n\\tif ( minwidth > contentCopyWidth ){\\r\\n\\t\\tcontentCopyWidth = minwidth;\\r\\n\\t}\\r\\n\\t\\t\\r\\n\\t//system.log(\\"contentCopyWidth: \\" + contentCopyWidth + \\" - image: \\" + image.name + \\"( Page \\" + article.page.name +\\")\\");\\r\\n\\t\\r\\n\\tvar imageError = false;\\r\\n\\tif ( !isNull(image) ) {\\r\\n\\t\\tif ( isBreakout ){\\r\\n\\t\\t\\tcontentCopyWidth = image.workingCopyWidth;\\r\\n\\t\\t}\\r\\n\\t\\ttry {\\r\\n\\t\\t\\tvar iresult = image.ensureContentCopy(article, contentCopyWidth);\\r\\n\\t\\t\\tvar thumbImageWidth = image.contentCopyWidth;\\r\\n\\t\\t\\tvar thumbImageHeight = image.contentCopyHeight;\\r\\n\\t\\t\\tvar description = image.description;\\r\\n\\t\\t\\tvar altText = system.htmlEncode(system.removeHtmlTags(image.altText));\\r\\n\\t\\t\\tvar oldAltText = system.htmlEncode(system.removeHtmlTags(article.valueExpanded(\\"alt\\", \\"\\")));\\r\\n\\t\\t\\tif ( altText == \\"\\" && oldAltText !== \\"\\" ){\\r\\n\\t\\t\\t\\taltText = oldAltText;\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\tvar encodedDescription = system.htmlEncode(image.description);\\r\\n\\t\\t\\tvar stripDescription = system.htmlEncode(system.removeHtmlTags(image.description));\\r\\n\\t\\t\\t// strip
-Tags from description as
is not valid inside SPAN\\r\\n\\t\\t\\tdescription = description.toString().replace(/
/g,\\"\\");\\r\\n\\t\\t\\tdescription = description.toString().replace(/<\\/p>/g,\\" \\");\\r\\n\\t\\t\\t//system.log(\\" Image Width: \\" + contentCopyWidth +\\" / Returned contentCopyWidth:\\" + thumbImageWidth + \\" / Image Result: \\" + iresult);\\r\\n\\t\\t}\\r\\n\\t\\tcatch(err) {\\r\\n\\t\\t\\timageError = true;\\r\\n\\t\\t}\\r\\n\\t}\\r\\n\\t\\r\\n\\tif ( stripDescription !== \\"\\" ) {\\r\\n\\t\\tvar showCaption = \\"1\\";\\r\\n\\t}\\r\\n\\telse {\\r\\n\\t\\tvar showCaption = \\"0\\";\\r\\n\\t}\\r\\n\\r\\n\\tvar lightBox = article.value(\\"lightbox\\", \\"lightbox\\");\\r\\n\\tvar clickURL = article.value(\\"clickurl\\");\\r\\n\\tvar effect = article.value(\\"effect\\", \\"none\\");\\r\\n\\tvar effectClass = \\"\\";\\r\\n\\tswitch ( effect ) {\\r\\n\\t\\tcase \\"hoverzoom\\":\\r\\n\\t\\t\\teffectClass = \\" zpeffect zphoverscale\\";\\r\\n\\t\\t\\tbreak;\\r\\n\\t\\t\\r\\n\\t\\tdefault:\\r\\n\\t\\t\\teffectClass = \\"\\";\\r\\n\\t}\\r\\n \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\");\\r\\n\\r\\n if ( isNull(image) || imageError ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n if ( system.preview ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t
\\r\\n\\t\\t\\t\\tDas gewählte Bild ist anscheinend gelöscht worden. Bearbeiten Sie diesen Artikel und wählen Sie erneut ein Bild aus.\\r\\n\\t\\t\\t\\r\\n\\t\\t
\\r\\n\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n if ( lightBox == \\"zoom\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( image.isSvgImage ){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } else if ( image.isAnimatedGif ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\");\\r\\n\\r\\n } else if ( lightBox == true || lightBox == \\"lightbox\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n } else if ( lightBox == \\"off\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( image.isSvgImage ){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } else if ( image.isAnimatedGif ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( clickURL !== \\"\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( image.isSvgImage ){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n } else if ( image.isAnimatedGif ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\tGehe zu URL (go to url). \\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\");\\r\\n\\r\\n } \\r\\n\\r\\n// End source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n};\\r\\n\\r\\n/* Shortcuts. */\\r\\narticle = context.article;\\r\\npage = context.page;\\r\\nprojectFolder = context.projectFolder;\\r\\nproject = context.project;\\r\\nsystem = context.system;\\r\\n\\r\\n\\r\\nnew SE637303571347553612().executeScript();\\r\\n",
SourceContext=0,
WasCanceled=True,
Message="3472389472389",
Data=
[
"COM Exception" = COMException
{
ErrorCode=-2147352319,
Message="Ausnahme von HRESULT: 0x80020101",
Data=
[
]
,
InnerException=null,
TargetSite=RuntimeMethodInfo: ParseScriptText,
StackTrace=" bei ZetaProducer.SuperSlimScriptingEngine.Infrastructure.IActiveScriptParse32.ParseScriptText(String code, String itemName, Object context, String delimiter, IntPtr sourceContextCookie, UInt32 startingLineNumber, ScriptText flags, IntPtr result, EXCEPINFO& exceptionInfo)\\r\\n bei ZetaProducer.SuperSlimScriptingEngine.Infrastructure.ActiveScriptParseWrapper.ParseScriptText(String code, String itemName, Object context, String delimiter, IntPtr sourceContextCookie, UInt32 startingLineNumber, ScriptText flags, IntPtr result, EXCEPINFO& exceptionInfo) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\Infrastructure\\ActiveScriptComInterfaces.cs:Zeile 371.\\r\\n bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.doExecute(String script) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 118.",
HelpLink=null,
Source="ZetaProducer.SuperSlimScriptingEngine",
HResult=-2147352319
}
]
,
InnerException=null,
TargetSite=RuntimeMethodInfo: Throw,
StackTrace=" bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.doExecute(String script) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 174.\\r\\n bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.Execute(String script) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 71.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreterHelper.GuardEngineRun(SlimScriptEngine engine, String scriptToExecute, RenderingContext renderingContext, String runString) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Engine\\RenderingInterpreterHelper.cs:Zeile 179.",
HelpLink=null,
Source="ActiveScriptSite.ScriptError",
HResult=-2146233088
},
TargetSite=RuntimeMethodInfo: ThrowHostException,
StackTrace=" bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.ThrowHostException(Exception exception) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 107.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreterHelper.GuardEngineRun(SlimScriptEngine engine, String scriptToExecute, RenderingContext renderingContext, String runString) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Engine\\RenderingInterpreterHelper.cs:Zeile 223.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreter.doRun(RenderingContext renderingContext, String runString) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Engine\\RenderingInterpreter.cs:Zeile 42.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreter.Run(RenderingContext renderingContext, String runString) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Engine\\RenderingInterpreter.cs:Zeile 21.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.HighLevel.RenderingScriptProcessor.Process(String textToProcess) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\HighLevel\\RenderingScriptProcessor.cs:Zeile 25.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Macros.RenderingScriptingMacrosNew.doProcess(String textToProcess) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Macros\\RenderingScriptingMacrosNew.cs:Zeile 38.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Macros.RenderingScriptingMacrosNew.Process(String textToProcess) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Macros\\RenderingScriptingMacrosNew.cs:Zeile 26.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Core.RenderingDispatcher.doProcess(String textToProcess) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Core\\RenderingDispatcher.cs:Zeile 48.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Core.RenderingDispatcher.Process(String textToProcess) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Core\\RenderingDispatcher.cs:Zeile 31.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Dom.WebArticleScriptObject.doDispatch(String textToProcess, String filePath, WebArticle article, Nullable`1 makeAllRenderedUrlsAbsolute) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Dom\\WebArticleScriptObject.cs:Zeile 365.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Dom.WebArticleScriptObject.render(Object makeAllRenderedUrlsAbsolute) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Dom\\WebArticleScriptObject.cs:Zeile 258.",
HelpLink=null,
Source="function SE637303571347553612() {}\\r\\n\\r\\n\\r\\nSE637303571347553612.prototype.executeScript = function(){\\r\\n// Start source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n\\r\\n\\r\\n\\tvar image = project.getImage(article.value(\\"image\\"));\\r\\n\\tvar contentImageWidth = \\"890\\";\\r\\n\\tvar defaultImageWidth = 960;\\r\\n\\tvar cssClass = article.cssClass || \\"\\";\\r\\n\\tvar isBreakout = cssClass.indexOf(\\"zpBreakout\\") !== -1 ? true : false;\\r\\n\\t\\r\\n\\t// Kann auch \\"700px\\" sein, deshalb mit parseInt nur die Zahl holen und trimmen - falls leer, auf default 960 setzen.\\r\\n\\tcontentImageWidth = parseInt(contentImageWidth) || defaultImageWidth;\\r\\n\\r\\n\\tvar gridCols = article.column.cssClass;\\r\\n\\tif ( gridCols ){\\r\\n\\t\\tgridCols = parseInt((gridCols.match(/\\bc[1-9][0-2]?\\b\\s?/) || 12).toString().replace(\\"c\\", \\"\\"));\\r\\n\\t}\\r\\n\\telse{\\r\\n\\t\\tgridCols = 12;\\r\\n\\t}\\r\\n\\tvar columnMargin = 30;\\r\\n\\tvar columnWidth = ((contentImageWidth + columnMargin) / 12) * gridCols;\\r\\n\\t// minimum width needed for 100% width display on 1-column breakpoint\\r\\n\\tvar minwidth = parseInt(479 - columnMargin);\\r\\n\\tvar contentCopyWidth = parseInt(columnWidth - columnMargin) || defaultImageWidth;\\r\\n\\tif ( minwidth > contentCopyWidth ){\\r\\n\\t\\tcontentCopyWidth = minwidth;\\r\\n\\t}\\r\\n\\t\\t\\r\\n\\t//system.log(\\"contentCopyWidth: \\" + contentCopyWidth + \\" - image: \\" + image.name + \\"( Page \\" + article.page.name +\\")\\");\\r\\n\\t\\r\\n\\tvar imageError = false;\\r\\n\\tif ( !isNull(image) ) {\\r\\n\\t\\tif ( isBreakout ){\\r\\n\\t\\t\\tcontentCopyWidth = image.workingCopyWidth;\\r\\n\\t\\t}\\r\\n\\t\\ttry {\\r\\n\\t\\t\\tvar iresult = image.ensureContentCopy(article, contentCopyWidth);\\r\\n\\t\\t\\tvar thumbImageWidth = image.contentCopyWidth;\\r\\n\\t\\t\\tvar thumbImageHeight = image.contentCopyHeight;\\r\\n\\t\\t\\tvar description = image.description;\\r\\n\\t\\t\\tvar altText = system.htmlEncode(system.removeHtmlTags(image.altText));\\r\\n\\t\\t\\tvar oldAltText = system.htmlEncode(system.removeHtmlTags(article.valueExpanded(\\"alt\\", \\"\\")));\\r\\n\\t\\t\\tif ( altText == \\"\\" && oldAltText !== \\"\\" ){\\r\\n\\t\\t\\t\\taltText = oldAltText;\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\tvar encodedDescription = system.htmlEncode(image.description);\\r\\n\\t\\t\\tvar stripDescription = system.htmlEncode(system.removeHtmlTags(image.description));\\r\\n\\t\\t\\t// strip
-Tags from description as
is not valid inside SPAN\\r\\n\\t\\t\\tdescription = description.toString().replace(/
/g,\\"\\");\\r\\n\\t\\t\\tdescription = description.toString().replace(/<\\/p>/g,\\" \\");\\r\\n\\t\\t\\t//system.log(\\" Image Width: \\" + contentCopyWidth +\\" / Returned contentCopyWidth:\\" + thumbImageWidth + \\" / Image Result: \\" + iresult);\\r\\n\\t\\t}\\r\\n\\t\\tcatch(err) {\\r\\n\\t\\t\\timageError = true;\\r\\n\\t\\t}\\r\\n\\t}\\r\\n\\t\\r\\n\\tif ( stripDescription !== \\"\\" ) {\\r\\n\\t\\tvar showCaption = \\"1\\";\\r\\n\\t}\\r\\n\\telse {\\r\\n\\t\\tvar showCaption = \\"0\\";\\r\\n\\t}\\r\\n\\r\\n\\tvar lightBox = article.value(\\"lightbox\\", \\"lightbox\\");\\r\\n\\tvar clickURL = article.value(\\"clickurl\\");\\r\\n\\tvar effect = article.value(\\"effect\\", \\"none\\");\\r\\n\\tvar effectClass = \\"\\";\\r\\n\\tswitch ( effect ) {\\r\\n\\t\\tcase \\"hoverzoom\\":\\r\\n\\t\\t\\teffectClass = \\" zpeffect zphoverscale\\";\\r\\n\\t\\t\\tbreak;\\r\\n\\t\\t\\r\\n\\t\\tdefault:\\r\\n\\t\\t\\teffectClass = \\"\\";\\r\\n\\t}\\r\\n \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\");\\r\\n\\r\\n if ( isNull(image) || imageError ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n if ( system.preview ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t
\\r\\n\\t\\t\\t\\tDas gewählte Bild ist anscheinend gelöscht worden. Bearbeiten Sie diesen Artikel und wählen Sie erneut ein Bild aus.\\r\\n\\t\\t\\t\\r\\n\\t\\t
\\r\\n\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n if ( lightBox == \\"zoom\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( image.isSvgImage ){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } else if ( image.isAnimatedGif ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\");\\r\\n\\r\\n } else if ( lightBox == true || lightBox == \\"lightbox\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n } else if ( lightBox == \\"off\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( image.isSvgImage ){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } else if ( image.isAnimatedGif ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( clickURL !== \\"\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( image.isSvgImage ){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n } else if ( image.isAnimatedGif ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\tGehe zu URL (go to url). \\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\");\\r\\n\\r\\n } \\r\\n\\r\\n// End source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n};\\r\\n\\r\\n/* Shortcuts. */\\r\\narticle = context.article;\\r\\npage = context.page;\\r\\nprojectFolder = context.projectFolder;\\r\\nproject = context.project;\\r\\nsystem = context.system;\\r\\n\\r\\n\\r\\nnew SE637303571347553612().executeScript();\\r\\n",
HResult=-2146233088
}
Ignoring inner exception because of previous OutOfMemoryException. See https://stackoverflow.com/a/25010668/107625
ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngineException
-----------------
3472389472389
-----------------
bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.doExecute(String script) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\SuperSlimScriptingEngine\SlimScriptEngine.cs:Zeile 174.
bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.Execute(String script) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\SuperSlimScriptingEngine\SlimScriptEngine.cs:Zeile 71.
bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreterHelper.GuardEngineRun(SlimScriptEngine engine, String scriptToExecute, RenderingContext renderingContext, String runString) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\Engine\RenderingInterpreterHelper.cs:Zeile 179.
SlimScriptEngineException
{
ExcepInfo=EXCEPINFO
{
},
Description="3472389472389",
LineNumber=228,
ColumnNumber=0,
SourceLine="context.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );",
FullSourceCode="function SE637303571347553612() {}\\r\\n\\r\\n\\r\\nSE637303571347553612.prototype.executeScript = function(){\\r\\n// Start source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n\\r\\n\\r\\n\\tvar image = project.getImage(article.value(\\"image\\"));\\r\\n\\tvar contentImageWidth = \\"890\\";\\r\\n\\tvar defaultImageWidth = 960;\\r\\n\\tvar cssClass = article.cssClass || \\"\\";\\r\\n\\tvar isBreakout = cssClass.indexOf(\\"zpBreakout\\") !== -1 ? true : false;\\r\\n\\t\\r\\n\\t// Kann auch \\"700px\\" sein, deshalb mit parseInt nur die Zahl holen und trimmen - falls leer, auf default 960 setzen.\\r\\n\\tcontentImageWidth = parseInt(contentImageWidth) || defaultImageWidth;\\r\\n\\r\\n\\tvar gridCols = article.column.cssClass;\\r\\n\\tif ( gridCols ){\\r\\n\\t\\tgridCols = parseInt((gridCols.match(/\\bc[1-9][0-2]?\\b\\s?/) || 12).toString().replace(\\"c\\", \\"\\"));\\r\\n\\t}\\r\\n\\telse{\\r\\n\\t\\tgridCols = 12;\\r\\n\\t}\\r\\n\\tvar columnMargin = 30;\\r\\n\\tvar columnWidth = ((contentImageWidth + columnMargin) / 12) * gridCols;\\r\\n\\t// minimum width needed for 100% width display on 1-column breakpoint\\r\\n\\tvar minwidth = parseInt(479 - columnMargin);\\r\\n\\tvar contentCopyWidth = parseInt(columnWidth - columnMargin) || defaultImageWidth;\\r\\n\\tif ( minwidth > contentCopyWidth ){\\r\\n\\t\\tcontentCopyWidth = minwidth;\\r\\n\\t}\\r\\n\\t\\t\\r\\n\\t//system.log(\\"contentCopyWidth: \\" + contentCopyWidth + \\" - image: \\" + image.name + \\"( Page \\" + article.page.name +\\")\\");\\r\\n\\t\\r\\n\\tvar imageError = false;\\r\\n\\tif ( !isNull(image) ) {\\r\\n\\t\\tif ( isBreakout ){\\r\\n\\t\\t\\tcontentCopyWidth = image.workingCopyWidth;\\r\\n\\t\\t}\\r\\n\\t\\ttry {\\r\\n\\t\\t\\tvar iresult = image.ensureContentCopy(article, contentCopyWidth);\\r\\n\\t\\t\\tvar thumbImageWidth = image.contentCopyWidth;\\r\\n\\t\\t\\tvar thumbImageHeight = image.contentCopyHeight;\\r\\n\\t\\t\\tvar description = image.description;\\r\\n\\t\\t\\tvar altText = system.htmlEncode(system.removeHtmlTags(image.altText));\\r\\n\\t\\t\\tvar oldAltText = system.htmlEncode(system.removeHtmlTags(article.valueExpanded(\\"alt\\", \\"\\")));\\r\\n\\t\\t\\tif ( altText == \\"\\" && oldAltText !== \\"\\" ){\\r\\n\\t\\t\\t\\taltText = oldAltText;\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\tvar encodedDescription = system.htmlEncode(image.description);\\r\\n\\t\\t\\tvar stripDescription = system.htmlEncode(system.removeHtmlTags(image.description));\\r\\n\\t\\t\\t// strip
-Tags from description as
is not valid inside SPAN\\r\\n\\t\\t\\tdescription = description.toString().replace(/
/g,\\"\\");\\r\\n\\t\\t\\tdescription = description.toString().replace(/<\\/p>/g,\\" \\");\\r\\n\\t\\t\\t//system.log(\\" Image Width: \\" + contentCopyWidth +\\" / Returned contentCopyWidth:\\" + thumbImageWidth + \\" / Image Result: \\" + iresult);\\r\\n\\t\\t}\\r\\n\\t\\tcatch(err) {\\r\\n\\t\\t\\timageError = true;\\r\\n\\t\\t}\\r\\n\\t}\\r\\n\\t\\r\\n\\tif ( stripDescription !== \\"\\" ) {\\r\\n\\t\\tvar showCaption = \\"1\\";\\r\\n\\t}\\r\\n\\telse {\\r\\n\\t\\tvar showCaption = \\"0\\";\\r\\n\\t}\\r\\n\\r\\n\\tvar lightBox = article.value(\\"lightbox\\", \\"lightbox\\");\\r\\n\\tvar clickURL = article.value(\\"clickurl\\");\\r\\n\\tvar effect = article.value(\\"effect\\", \\"none\\");\\r\\n\\tvar effectClass = \\"\\";\\r\\n\\tswitch ( effect ) {\\r\\n\\t\\tcase \\"hoverzoom\\":\\r\\n\\t\\t\\teffectClass = \\" zpeffect zphoverscale\\";\\r\\n\\t\\t\\tbreak;\\r\\n\\t\\t\\r\\n\\t\\tdefault:\\r\\n\\t\\t\\teffectClass = \\"\\";\\r\\n\\t}\\r\\n \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\");\\r\\n\\r\\n if ( isNull(image) || imageError ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n if ( system.preview ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t
\\r\\n\\t\\t\\t\\tDas gewählte Bild ist anscheinend gelöscht worden. Bearbeiten Sie diesen Artikel und wählen Sie erneut ein Bild aus.\\r\\n\\t\\t\\t\\r\\n\\t\\t
\\r\\n\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n if ( lightBox == \\"zoom\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( image.isSvgImage ){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } else if ( image.isAnimatedGif ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\");\\r\\n\\r\\n } else if ( lightBox == true || lightBox == \\"lightbox\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n } else if ( lightBox == \\"off\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( image.isSvgImage ){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } else if ( image.isAnimatedGif ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( clickURL !== \\"\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( image.isSvgImage ){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n } else if ( image.isAnimatedGif ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\tGehe zu URL (go to url). \\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\");\\r\\n\\r\\n } \\r\\n\\r\\n// End source file: \\'C:\\Users\\DieGohliser\\AppData\\Local\\Zeta Producer 15\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n};\\r\\n\\r\\n/* Shortcuts. */\\r\\narticle = context.article;\\r\\npage = context.page;\\r\\nprojectFolder = context.projectFolder;\\r\\nproject = context.project;\\r\\nsystem = context.system;\\r\\n\\r\\n\\r\\nnew SE637303571347553612().executeScript();\\r\\n",
SourceContext=0,
WasCanceled=True,
Message="3472389472389",
Data=
[
"COM Exception" = COMException
{
ErrorCode=-2147352319,
Message="Ausnahme von HRESULT: 0x80020101",
Data=
[
]
,
InnerException=null,
TargetSite=RuntimeMethodInfo: ParseScriptText,
StackTrace=" bei ZetaProducer.SuperSlimScriptingEngine.Infrastructure.IActiveScriptParse32.ParseScriptText(String code, String itemName, Object context, String delimiter, IntPtr sourceContextCookie, UInt32 startingLineNumber, ScriptText flags, IntPtr result, EXCEPINFO& exceptionInfo)\\r\\n bei ZetaProducer.SuperSlimScriptingEngine.Infrastructure.ActiveScriptParseWrapper.ParseScriptText(String code, String itemName, Object context, String delimiter, IntPtr sourceContextCookie, UInt32 startingLineNumber, ScriptText flags, IntPtr result, EXCEPINFO& exceptionInfo) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\Infrastructure\\ActiveScriptComInterfaces.cs:Zeile 371.\\r\\n bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.doExecute(String script) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 118.",
HelpLink=null,
Source="ZetaProducer.SuperSlimScriptingEngine",
HResult=-2147352319
}
]
,
InnerException=null,
TargetSite=RuntimeMethodInfo: Throw,
StackTrace=" bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.doExecute(String script) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 174.\\r\\n bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.Execute(String script) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 71.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreterHelper.GuardEngineRun(SlimScriptEngine engine, String scriptToExecute, RenderingContext renderingContext, String runString) in c:\\P\\ZP\\15.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Engine\\RenderingInterpreterHelper.cs:Zeile 179.",
HelpLink=null,
Source="ActiveScriptSite.ScriptError",
HResult=-2146233088
}
Ignoring inner exception because of previous OutOfMemoryException. See https://stackoverflow.com/a/25010668/107625
ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngineException: 3472389472389 ---> ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.ErrorHandling.InterpreterException: 3472389472389 ---> ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngineException: 3472389472389
bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.doExecute(String script) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\SuperSlimScriptingEngine\SlimScriptEngine.cs:Zeile 174.
bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.Execute(String script) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\SuperSlimScriptingEngine\SlimScriptEngine.cs:Zeile 71.
bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreterHelper.GuardEngineRun(SlimScriptEngine engine, String scriptToExecute, RenderingContext renderingContext, String runString) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\Engine\RenderingInterpreterHelper.cs:Zeile 179.
--- Ende der internen Ausnahmestapelüberwachung ---
bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.ThrowHostException(Exception exception) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\SuperSlimScriptingEngine\SlimScriptEngine.cs:Zeile 107.
bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreterHelper.GuardEngineRun(SlimScriptEngine engine, String scriptToExecute, RenderingContext renderingContext, String runString) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\Engine\RenderingInterpreterHelper.cs:Zeile 223.
bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreter.doRun(RenderingContext renderingContext, String runString) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\Engine\RenderingInterpreter.cs:Zeile 42.
bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreter.Run(RenderingContext renderingContext, String runString) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\Engine\RenderingInterpreter.cs:Zeile 21.
bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.HighLevel.RenderingScriptProcessor.Process(String textToProcess) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\HighLevel\RenderingScriptProcessor.cs:Zeile 25.
bei ZetaProducer.RuntimeBusinessLogic.Rendering.Macros.RenderingScriptingMacrosNew.doProcess(String textToProcess) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Macros\RenderingScriptingMacrosNew.cs:Zeile 38.
bei ZetaProducer.RuntimeBusinessLogic.Rendering.Macros.RenderingScriptingMacrosNew.Process(String textToProcess) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Macros\RenderingScriptingMacrosNew.cs:Zeile 26.
bei ZetaProducer.RuntimeBusinessLogic.Rendering.Core.RenderingDispatcher.doProcess(String textToProcess) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Core\RenderingDispatcher.cs:Zeile 48.
bei ZetaProducer.RuntimeBusinessLogic.Rendering.Core.RenderingDispatcher.Process(String textToProcess) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Core\RenderingDispatcher.cs:Zeile 31.
bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Dom.WebArticleScriptObject.doDispatch(String textToProcess, String filePath, WebArticle article, Nullable`1 makeAllRenderedUrlsAbsolute) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\Dom\WebArticleScriptObject.cs:Zeile 365.
bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Dom.WebArticleScriptObject.render(Object makeAllRenderedUrlsAbsolute) in c:\P\ZP\15.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\Dom\WebArticleScriptObject.cs:Zeile 258.
--- Ende der internen Ausnahmestapelüberwachung ---
----------------------------------------