コード例 #1
0
ファイル: Issue.php プロジェクト: AzerothShard/thebuggenie
 /**
  * Set the reproduction steps syntax
  *
  * @param integer $syntax
  */
 public function setReproductionStepsSyntax($syntax)
 {
     if (!is_numeric($syntax)) {
         $syntax = \thebuggenie\core\framework\Settings::getSyntaxValue($syntax);
     }
     $this->_addChangedProperty('_reproduction_steps_syntax', $syntax);
 }
コード例 #2
0
ファイル: Article.php プロジェクト: JonathanRH/thebuggenie
 public function setContentSyntax($syntax)
 {
     if (!is_numeric($syntax)) {
         $syntax = framework\Settings::getSyntaxValue($syntax);
     }
     $this->_content_syntax = $syntax;
 }
コード例 #3
0
$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 
echo $base_id;
?>
_syntax" name="<?php 
echo $area_name;
?>
_syntax" value="<?php 
echo \thebuggenie\core\framework\Settings::getSyntaxValue($syntax);
?>
">
        <a id="<?php 
echo $base_id;
?>
_toggle_syntax_button" class="button button-silver syntax_picker dropper"><?php 
echo __('Selected syntax: %selected_syntax', array('%selected_syntax' => '<span id="' . $base_id . '_selected_syntax">' . $syntaxname . '</span>'));
?>
&nbsp;&nbsp;<span style="font-size: 0.8em; float: right;">&#x25BC;</span></a>
        <ul id="<?php 
echo $base_id;
?>
_syntax_picker" class="simple_list rounded_box white shadowed more_actions_dropdown popup_box" onclick="$(this).previous().toggleClassName('button-pressed');TBG.Main.Profile.clearPopupsAndButtons();" style="display: none;">
            <li class="mw <?php 
if ($syntax == 'mw') {