Lines Matching defs:WebCodeTag

23 class WebCodeTag
42 public const CANONICAL = WebCodeTag::TAG;
49 public const MARKIS = [WebCodeTag::MARKI_LANG, WebCodeTag::DOKUWIKI_LANG];
62 return StyleAttribute::addComboStrapSuffix(WebCodeTag::TAG);
97 $renderingMode = $openingTag->getAttribute(WebCodeTag::RENDERING_MODE_ATTRIBUTE);
104 if ($type === WebCodeTag::RENDERING_ONLY_RESULT_DEPRECATED) {
106 $type = WebCodeTag::RESULT_TYPE;
123 if (in_array($tagName, WebCodeTag::CODE_TAGS)) {
129 if (in_array($type, [WebCodeTag::RESULT_TYPE, self::INJECT_TYPE])) {
147 $actualCodeType = WebCodeTag::MARKI_LANG;
162 LogUtility::msg("The type of the code should not be null for the code content " . $codeContent, LogUtility::LVL_MSG_WARNING, WebCodeTag::TAG);
195 array_key_exists(WebCodeTag::MARKI_LANG, $codes)
197 && $openingTag->getAttribute(WebCodeTag::IFRAME_BOOLEAN_ATTRIBUTE) === null
204 WebCodeTag::CODES_ATTRIBUTE => $codes,
205 WebCodeTag::USE_CONSOLE_ATTRIBUTE => $useConsole,
216 $codes = $data[WebCodeTag::CODES_ATTRIBUTE];
227 $tagAttributes->removeComponentAttributeIfPresent(WebCodeTag::RENDERING_MODE_ATTRIBUTE);
237 $snippetSystem->attachCssInternalStyleSheet(WebCodeTag::TAG);
238 $snippetSystem->attachJavascriptFromComponentId(WebCodeTag::TAG);
258 if (array_key_exists(WebCodeTag::MARKI_LANG, $codes)) {
260 $markupCode = $codes[WebCodeTag::MARKI_LANG];
281 LogUtility::log2file("Error while rendering webcode", LogUtility::LVL_MSG_ERROR, WebCodeTag::CANONICAL, $e);
290 $tagAttributes->removeComponentAttribute(WebCodeTag::IFRAME_BOOLEAN_ATTRIBUTE);
302 LogUtility::internalError("We were unable to set the iframe URL. Error:{$e->getMessage()}", WebCodeTag::CANONICAL);
328 if ($tagAttributes->hasComponentAttribute(WebCodeTag::EXTERNAL_RESOURCES_ATTRIBUTE_KEY)) {
329 LogUtility::warning("The (" . WebCodeTag::EXTERNAL_RESOURCES_ATTRIBUTE_KEY . ") has been deprecated. You should put your script/link in a code block with the `display` attribute set to `none`.");
330 $resources = $tagAttributes->getValueAndRemove(WebCodeTag::EXTERNAL_RESOURCES_ATTRIBUTE_KEY);
358 $webcodeClass = WebCodeTag::getClass();
370 $useConsole = $data[WebCodeTag::USE_CONSOLE_ATTRIBUTE];
394 $bar .= '<div class="webcode-bar-item">' . PluginUtility::getDocumentationHyperLink(WebCodeTag::TAG, "Rendered by WebCode", false) . '</div>';
430 LogUtility::internalError("We were unable to add the firebug css and js. Error: {$e->getMessage()}", WebCodeTag::CANONICAL);
508 $frameBorder = $tagAttributes->getValueAndRemoveIfPresent(WebCodeTag::FRAMEBORDER_ATTRIBUTE);