`;
// TITLE
if (SETTINGS.SHOWTITLE)
{
article += `${key.to_properCase()} `;
}
// LINK END
if (SETTINGS.SHOWLINK && main.util.isDefined(value.LINK))
{
if (main.util.isObject(value.LINK))
{
for (let l = 0; l < value.LINK.length; l++)
{
article += ``;
article += ``;
}
}
else
{
article += ``;
}
}
// TYPE
if (SETTINGS.SHOWTYPE || SETTINGS.SHOWDONE)
{
article += `
`;
}
// IMAGE - for image-type-article
if (articleIsImageType
&& main.util.isDefined(value.FILE)
&& main.util.isImage(value.FILE))
{
// IMAGE ARTICLE
article += `${main.util.buildIcon('link')}
${main.util.extractRootDomain(value.LINK[l])}
${main.util.buildIcon('link')}
${main.util.extractRootDomain(value.LINK)}
`;
if (SETTINGS.SHOWTYPE && main.util.isDefined(value.TYPE))
{
for (let tc = 0; tc < value.TYPE.length; tc++)
{
article += ``;
article += main.util.buildIcon(value.TYPE[tc], value.TYPE[tc], 'article-typeicon');
article += ``;
}
}
if (SETTINGS.SHOWDONE)
{
let done = main.util.isDefined(value.DONE) ? value.DONE : 'false';
article += ``;
article += main.util.buildIcon(done, done, 'article-typeicon');
article += ``;
}
article += `
`;
}
// UPPER CONTENT END
article += ``;
if (SETTINGS.SHOWOVERLAY)
{
article += ``;
}
article += ``;
article += this.doLower(value, articleIsImageType, onclickImage);
article += `
`;
article += ``;
// TERM
if (SETTINGS.SHOWTERM && main.util.isDefined(value.TERM))
{
article += this.doRowMulti('term', value.TERM);
}
// NOTE
if (SETTINGS.SHOWNOTE && main.util.isDefined(value.NOTE))
{
article += this.doRowMulti('note', value.NOTE);
}
// QUOTE
if (SETTINGS.SHOWQOTE && main.util.isDefined(value.QOTE))
{
article += this.doRowMulti('quote', value.QOTE);
}
// PROGRESS
if (SETTINGS.SHOWPROG && main.util.isDefined(value.PROG))
{
article += this.doRowMulti('progress', value.PROG);
}
article += `
`;
}
else
{
// NORMAL ARTICLE (NON-IMAGE)
article += this.doLower(value, articleIsImageType, onclickImage);
}
article += `