<?php $markuppable = !isset($markuppable) ? true : $markuppable; if ($markuppable) { $syntax = isset($syntax) ? $syntax : TBGSettings::SYNTAX_MW; if (is_numeric($syntax)) { $syntax = TBGSettings::getSyntaxClass($syntax); } } else { $syntax = TBGSettings::getSyntaxClass(TBGSettings::SYNTAX_MD); } switch ($syntax) { case 'mw': $syntaxname = __('Mediawiki'); break; case 'md': $syntaxname = __('Markdown'); break; case 'pt': $syntaxname = __('Plaintext'); break; } $base_id = isset($area_id) ? $area_id : $area_name; $mentionable = isset($target_type) && isset($target_id); ?> <div class="textarea_container syntax_<?php echo $syntax; ?> "> <div class="syntax_picker_container"> <input type="hidden" id="<?php
</div> </div> <div id="comment_edit_<?php echo $comment->getID(); ?> " class="comment_edit comment_editor" style="display: none;"> <div class="comment_add_title"><?php echo __('Edit comment %comment_number', array('%comment_number' => "<a href='#comment_{$comment->getID()}'>#" . $comment->getCommentNumber() . '</a>')); ?> </div><br> <form id="comment_edit_form_<?php echo $comment->getID(); ?> " class="syntax_<?php echo TBGSettings::getSyntaxClass($comment->getSyntax()); ?> " action="<?php echo make_url('comment_update', array('comment_id' => $comment->getID())); ?> " method="post" onSubmit="TBG.Main.Comment.update('<?php echo make_url('comment_update', array('comment_id' => $comment->getID())); ?> ', '<?php echo $comment->getID(); ?> '); return false;"> <input type="hidden" name="comment_id" value="<?php echo $comment->getID(); ?> " />
public function getPreferredCommentsSyntax($real_value = false) { if ($real_value) { return $this->_preferred_comments_syntax; } return TBGSettings::getSyntaxClass($this->_preferred_comments_syntax); }
<?php TBGContext::loadLibrary('publish/publish'); ?> <div class="article syntax_<?php echo TBGSettings::getSyntaxClass($article->getContentSyntax()); ?> "> <?php if ($show_title) { ?> <?php include_template('publish/header', array('article_name' => $article->getName(), 'article' => $article, 'show_actions' => $show_actions, 'mode' => $mode, 'embedded' => $embedded)); ?> <?php } ?> <?php if ($show_details && $show_article) { ?> <div class="details"> <?php if (isset($redirected_from)) { ?> <div class="redirected_from">→ <?php echo __('Redirected from %article_name', array('%article_name' => link_tag(make_url('publish_article_edit', array('article_name' => $redirected_from)), $redirected_from))); ?> </div> <?php } ?>