Lines Matching full:tag
34 $this->Lexer->addSpecialPattern('\{\{tag-button>.+?\}\}', $mode, 'plugin_tagbutton');
43 // Split the tag, parameter, and label
45 list($tag, $param) = array_pad(explode(':', $tagParam, 2), 2, null);
47 return array(trim($tag), trim($param), trim($label));
56 // list($tag, $label) = $data;
57 list($tag, $param, $label) = $data;
58 $buttonId = 'tagbutton-' . md5($tag);
60 // If the label is null or empty, use the tag as the label
62 $label = $tag;
68 $buttonClass .= ' tag' . htmlspecialchars($param);
71 // Check if the configuration indicates to hide the button if the tag exists
75 // Check if the tag already exists in the page
76 if (preg_match('/\{\{tag>(.*?)\}\}/', $pageContent, $matches)) {
79 // If the tag already exists, do not render the button
80 if (in_array(strtolower($tag), $existingTags)) {
86 // Render the button if the tag doesn't exist or the configuration doesn't hide it
87 …ton class="' . $buttonClass . '" id="' . $buttonId . '" data-tag="' . htmlspecialchars($tag) . '">'