if (!$isArticle) {
         if ($aclf->checkAccessToFunction("DELETE_CL")) {
             $clustereditbar->add("action", $lang->get("CL_DEL"), "submit", getWaitupScreen() . "; document.form1.processing.value='';", "", !getDBCell("channel_articles", "CHID", "ARTICLE_ID = " . $clnid));
         }
         if ($aclf->checkAccessToFunction("LAUNCH_CL")) {
             $clustereditbar->addAction('separator');
             $clustereditbar->addAction($lang->get("cl_launch", "Launch Cluster"));
             $clustereditbar->addAction($lang->get("cl_expire", "Expire Cluster"));
         }
     } else {
         if ($aclf->checkAccessToFunction("CHANNEL_LAUNCH")) {
             $clustereditbar->add("laction", $lang->get("ar_launch", "Launch Article"), "submit", getWaitupScreen());
             $clustereditbar->add("laction", $lang->get("ar_expire", "Expire Article"), "submit", getWaitupScreen());
         }
         if ($aclf->checkAccessToFunction("CHANNEL_DELETE")) {
             $clustereditbar->addConfirm("action", $lang->get("delete"), $lang->get("del_article", "Do you really want to delete this article in all variations?"), $c["docroot"] . "modules/channels/overview.php?sid={$sid}&action=deletearticle&article={$oid}");
         }
     }
     // add compound preview...
     if (getDBCell("cluster_templates", "CLT_TYPE_ID", "CLT_ID=" . $clt) == 1) {
         if ($aclf->checkAccessToFunction("B_PREVIEW_PAGE")) {
             $clustereditbar->addAction($lang->get("preview", "Preview"), "window.open('" . $c["docroot"] . "modules/common/previewcpcl.php?sid={$sid}&oid={$clnid}', 'Preview','Width=400px,Height=400px,help=no,status=yes,scrollbars=yes,resizable=yes');");
         }
     }
 }
 if ($sitepage) {
     // draw customized job buttons...
     $path = getDBCell("sitepage_master", "TEMPLATE_PATH", "SPM_ID = {$spm}");
     if ($aclf->checkAccessToFunction("B_LIVE_AUTHORING")) {
         $clustereditbar->addAction($lang->get("wysiwyg", 'WYSIWYG Editor'), "window.open('" . $c["docroot"] . "modules/sma/sma.php?page={$spid}&v={$variation}&sid={$sid}', 'Preview','Width=800px,Height=700px,help=no,status=yes,scrollbars=yes,resizable=yes');");
     }