" tabindex="2" /></p><div class="clear"></div> <p>你的网站(选填)<br /><input type="text" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?> " tabindex="3" /></p><div class="clear"></div> </div> <?php } ?> <div id="form_text"> <p>评论内容(必填)<br /><textarea name="comment" id="comment" tabindex="4" rows="40" cols="43"></textarea></p> </div> <div class="clear"></div> <p id="bq"><?php wp_smilies(); ?> </p> <p><input type="submit" name="submit" value="提交评论" class="red" tabindex="5" /> <input class="red" name="reset" type="reset" id="reset" tabindex="6" value="<?php esc_attr_e('重写'); ?> " /> <?php comment_id_fields(); ?> </p> <?php do_action('comment_form', $post->ID); ?> </form>
function bymt_comm_tools() { echo '<div id="comment-tools"><ul>'; if (bymt_c('tools_smile')) { echo '<li id="smilies-box">' . wp_smilies() . '</li>'; } if (bymt_c('tools_smile')) { echo '<li id="tools-smilies" title="表情"><i class="icon-smile"></i></li>'; } if (bymt_c('tools_b')) { echo '<li id="tools-strong" title="粗体"><i class="icon-bold"></i></li>'; } if (bymt_c('tools_i')) { echo '<li id="tools-em" title="斜体"><i class="icon-italic"></i></li>'; } if (bymt_c('tools_u')) { echo '<li id="tools-underline" title="下划线"><i class="icon-underline"></i></li>'; } if (bymt_c('tools_s')) { echo '<li id="tools-del" title="删除线"><i class="icon-strike"></i></li>'; } if (bymt_c('tools_q')) { echo '<li id="tools-quote" title="引用"><i class="icon-quote-left"></i></li>'; } if (bymt_c('tools_code')) { echo '<li id="tools-code" title="代码"><i class="icon-code"></i></li>'; } if (bymt_c('tools_img')) { echo '<li id="tools-image" title="图片"><i class="icon-picture"></i></li>'; } if (bymt_c('tools_come')) { echo '<li id="tools-come" title="签到"><i class="icon-pencil"></i></li>'; } if (bymt_c('tools_good')) { echo '<li id="tools-good" title="赞美"><i class="icon-up"></i></li>'; } if (bymt_c('tools_bad')) { echo '<li id="tools-bad" title="埋怨"><i class="icon-down"></i></li>'; } if (bymt_c('tools_admin')) { echo '<li id="tools-admin" title="私信给管理员"><i class="icon-mail"></i></li>'; } echo '</ul>'; if (bymt_c('tools_code')) { echo ' <div id="add-code"> <p>选择代码语言: <select id="add-codelang-s"> <option value="actionScript">ActionScript</option> <option value="appleScript">AppleScript</option> <option value="bash">Bash</option> <option value="c#">C#</option> <option value="c++">C++</option> <option value="css">CSS</option> <option value="delphi">Delphi</option> <option value="diff">Diff</option> <option value="haml">Haml</option> <option value="xml">HTML,XML</option> <option value="ini">Ini</option> <option value="json">JSON</option> <option value="java">Java</option> <option value="JavaScript">JavaScript</option> <option value="php">PHP</option> <option value="perl">Perl</option> <option value="python">Python</option> <option value="ruby">Ruby</option> <option value="scala">Scala</option> <option value="scss">SCSS</option> <option value="sql">SQL</option> </select> 或者手动填写:<input type="text" id="add-codelang-i" class="input" placeholder="请输入代码语言" /> </p> <p><textarea id="add-codetext" class="textarea" placeholder="请在这里贴入代码" /></textarea></p> <p id="add-code-ok"><small>无需对代码进行转义,程序会自动转义</small><a class="btn">插入</a></p> </div>'; } if (bymt_c('tools_img')) { echo ' <div id="add-image"> <p>图片地址:<input type="text" id="add-imgurl" class="input" placeholder="请输入图片地址" /></p> <p>图片描述:<input type="text" id="add-imgalt" class="input" placeholder="请输入图片描述" /></p> <p id="add-image-ok"><small>仅支持 .jpg .png .gif 格式的图片</small><a class="btn">插入</a></p> </div>'; } echo '</div>'; }