<?php \thebuggenie\core\framework\Context::loadLibrary('publish/publish'); ?> <div class="article syntax_<?php echo \thebuggenie\core\framework\Settings::getSyntaxClass($article->getContentSyntax()); ?> "> <?php if ($show_title) { ?> <?php include_component('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)), get_spaced_name($redirected_from)))); ?> </div> <?php } ?>
?> </div> </div> <?php if ($issue->isEditable() && $issue->canEditReproductionSteps()) { ?> <div id="reproduction_steps_change" style="display: none;" class="editor_container"> <form id="reproduction_steps_form" action="<?php echo make_url('issue_setfield', array('project_key' => $issue->getProject()->getKey(), 'issue_id' => $issue->getID(), 'field' => 'reproduction_steps')); ?> " method="post" onSubmit="TBG.Issues.Field.set('<?php echo make_url('issue_setfield', array('project_key' => $issue->getProject()->getKey(), 'issue_id' => $issue->getID(), 'field' => 'reproduction_steps')); ?> ', 'reproduction_steps'); return false;"> <?php include_component('main/textarea', array('area_name' => 'value', 'target_type' => 'issue', 'target_id' => $issue->getID(), 'area_id' => 'reproduction_steps_form_value', 'syntax' => \thebuggenie\core\framework\Settings::getSyntaxClass($issue->getReproductionStepsSyntax()), 'height' => '250px', 'width' => '100%', 'value' => htmlentities($issue->getReproductionSteps(), ENT_COMPAT, \thebuggenie\core\framework\Context::getI18n()->getCharset()))); ?> <div class="textarea_save_container"> <?php echo __('%cancel or %save', array('%save' => '<input class="button button-silver" type="submit" value="' . __('Save') . '">', '%cancel' => javascript_link_tag(__('Cancel'), array('onclick' => "\$('reproduction_steps_change').hide();" . ($issue->getReproductionSteps() != '' ? "\$('reproduction_steps_name').show();" : "\$('no_reproduction_steps').show();") . "return false;")))); ?> </div> </form> <?php echo image_tag('spinning_16.gif', array('style' => 'display: none; float: left; margin-right: 5px;', 'id' => 'reproduction_steps_spinning')); ?> <div id="reproduction_steps_change_error" class="error_message" style="display: none;"></div> </div> <?php } ?>
?> </option> <option value="0"<?php if (!$comment->isPublic()) { ?> selected="selected" <?php } ?> ><?php echo __('Visible for me, developers and administrators only'); ?> </option> </select> <br /> <?php include_component('main/textarea', array('area_name' => 'comment_body', 'target_type' => $comment->getTargetType(), 'target_id' => $comment->getTargetId(), 'area_id' => 'comment_reply_' . $comment->getID() . '_bodybox', 'height' => '200px', 'width' => '100%', 'syntax' => \thebuggenie\core\framework\Settings::getSyntaxClass($comment->getSyntax()), 'value' => tbg_decodeUTF8("\n\n\n'''" . __('%user wrote:', array('%user' => $comment->getPostedBy() instanceof \thebuggenie\core\entities\common\Identifiable ? $comment->getPostedBy()->getName() : __('Unknown user'))) . "'''\n>" . str_replace("\n", "\n> ", wordwrap(html_entity_decode(strip_tags(tbg_decodeUTF8($comment->getContent(), true)), ENT_COMPAT, \thebuggenie\core\framework\Context::getI18n()->getCharset()), 75, "\n")) . "\n", true))); ?> <div id="comment_reply_indicator_<?php echo $comment->getID(); ?> " style="display: none;"> <?php echo image_tag('spinning_16.gif', array('class' => 'spinning')); ?> </div> <div id="comment_reply_controls_<?php echo $comment->getID(); ?> " class="comment_controls"> <?php echo __('%post_reply or %cancel', array('%post_reply' => '<input type="submit" class="comment_replysave button button-silver" value="' . __('Post reply') . '" />', '%cancel' => javascript_link_tag(__('cancel'), array('onclick' => "\$('comment_reply_{$comment->getID()}').hide();\$('comment_view_{$comment->getID()}').show();"))));
public function getPreferredCommentsSyntax($real_value = false) { if ($real_value) { return $this->_preferred_comments_syntax; } return framework\Settings::getSyntaxClass($this->_preferred_comments_syntax); }
<?php $markuppable = !isset($markuppable) ? true : $markuppable; if ($markuppable) { $syntax = isset($syntax) ? $syntax : \thebuggenie\core\framework\Settings::SYNTAX_MW; if (is_numeric($syntax)) { $syntax = \thebuggenie\core\framework\Settings::getSyntaxClass($syntax); } } else { $syntax = \thebuggenie\core\framework\Settings::getSyntaxClass(\thebuggenie\core\framework\Settings::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