public function toString() { $content = $this->getParamManager()->getParam('content'); ?> <style type="text/css"> .markdown { margin:30px auto; max-width:900px; background: #FFF; color: #444; padding: 10px 40px; border: 2px solid #6A836F; font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif; font-size:14px; } .markdown h1 { margin: 18px 0 15px; padding: 10px 0; border-bottom: 2px solid #888; } .markdown h2 { margin: 18px 0 8px; padding: 3px; border-bottom: 1px solid #AAA; } .markdown h3 { margin: 12px 0; } .markdown h4 { margin: 8px 0; } .markdown p { margin-bottom: 12px; font-size:1.1em; line-height:150%; } .markdown li { margin-bottom: 6px; line-height:150%; } .markdown code { font-weight: normal; color: #555; } .markdown pre { font-weight: normal; color: #555; max-width: 100%; word-wrap: break-word; } .markdown pre code { font-weight: normal; color: #555; width: 100%; } .markdown a { color: #0480be !important } </style> <div class="markdown"> <?php echo \Foolz\Foolframe\Model\Markdown::parse($content); ?> </div> <?php }
public function toString() { $backend_vars = $this->getBuilderParamManager()->getParam('backend_vars'); $radix = $this->getBuilderParamManager()->getParam('radix'); $user_name = $this->getBuilderParamManager()->getParam('user_name'); $user_pass = $this->getBuilderParamManager()->getParam('user_pass'); $user_email = $this->getBuilderParamManager()->getParam('user_email'); $thread_id = $this->getBuilderParamManager()->getParam('thread_id', 0); $reply_errors = $this->getBuilderParamManager()->getParam('reply_errors', false); $form = $this->getForm(); \Foolz\Plugin\Hook::forge('foolfuuka.themes.default_after_op_open')->setObject($this)->setParam('board', $radix)->execute(); ?> <?php echo $form->open(['enctype' => 'multipart/form-data', 'onsubmit' => 'fuel_set_csrf_token(this);', 'action' => $this->getUri()->create([$radix->shortname, 'submit'])]); ?> <?php echo $form->hidden('csrf_token', $this->getSecurity()->getCsrfToken()); ?> <?php echo $form->hidden('reply_numero', isset($thread_id) ? $thread_id : 0, array('id' => 'reply_numero')); ?> <?php echo isset($backend_vars['last_limit']) ? $form->hidden('reply_last_limit', $backend_vars['last_limit']) : ''; ?> <table id="reply"> <tbody> <tr> <td><?php echo _i('Name'); ?> </td> <td><?php echo $form->input(['name' => 'name', 'id' => 'reply_name_yep', 'style' => 'display:none']); echo $form->input(['name' => 'reply_bokunonome', 'id' => 'reply_bokunonome', 'value' => $user_name]); ?> </td> </tr> <tr> <td><?php echo _i('E-mail'); ?> </td> <td><?php echo $form->input(['name' => 'email', 'id' => 'reply_email_yep', 'style' => 'display:none']); echo $form->input(['name' => 'reply_elitterae', 'id' => 'reply_elitterae', 'value' => $user_email]); ?> </td> </tr> <tr> <td><?php echo _i('Subject'); ?> </td> <td> <?php echo $form->input(['name' => 'reply_talkingde', 'id' => 'reply_talkingde']); ?> <?php $submit_array = ['data-function' => 'comment', 'name' => 'reply_gattai', 'value' => _i('Submit'), 'class' => 'btn']; echo $form->submit($submit_array); ?> <?php if (!$this->getBuilderParamManager()->getParam('disable_image_upload', false)) { ?> [ <label><?php echo $form->checkbox(['name' => 'reply_spoiler', 'id' => 'reply_spoiler', 'value' => 1]); ?> Spoiler Image?</label> ] <?php } ?> </td> </tr> <tr> <td><?php echo _i('Comment'); ?> </td> <td><?php echo $form->textarea(['name' => 'reply', 'id' => 'reply_comment_yep', 'style' => 'display:none']); echo $form->textarea(['name' => 'reply_chennodiscursus', 'id' => 'reply_chennodiscursus', 'placeholder' => !$radix->archive && isset($thread_dead) && $thread_dead ? _i('This thread has entered ghost mode. Your reply will be marked as a ghost post and will only affect the ghost index.') : '']); ?> </td> </tr> <?php if ($this->getPreferences()->get('foolframe.auth.recaptcha_public', false)) { ?> <script> var RecaptchaOptions = { theme : 'custom', custom_theme_widget: 'recaptcha_widget' }; </script> <tr class="recaptcha_widget" style="display:none"> <td><?php echo _i('Verification'); ?> </td> <td><div><p><?php echo e(_i('You might be a bot! Enter a reCAPTCHA to continue.')); ?> </p></div> <div id="recaptcha_image" style="background: #fff; border: 1px solid #ccc; padding: 3px 6px; margin: 4px 0;"></div> <input type="text" id="recaptcha_response_field" name="recaptcha_response_field" /> <div class="btn-group"> <a class="btn btn-mini" href="javascript:Recaptcha.reload()">Get another CAPTCHA</a> <a class="recaptcha_only_if_image btn btn-mini" href="javascript:Recaptcha.switch_type('audio')">Get an audio CAPTCHA</a> <a class="recaptcha_only_if_audio btn btn-mini" href="javascript:Recaptcha.switch_type('image')">Get an image CAPTCHA</a> <a class="btn btn-mini" href="javascript:Recaptcha.showhelp()">Help</a> </div> <script type="text/javascript" src="//www.google.com/recaptcha/api/challenge?k=<?php echo $this->getPreferences()->get('foolframe.auth.recaptcha_public'); ?> "></script> <noscript> <iframe src="//www.google.com/recaptcha/api/noscript?k=<?php echo $this->getPreferences()->get('foolframe.auth.recaptcha_public'); ?> " height="300" width="500" frameborder="0"></iframe><br> <textarea name="recaptcha_challenge_field" rows="3" cols="40"> </textarea> <input type="hidden" name="recaptcha_response_field" value="manual_challenge"> </noscript></td> </tr> <?php } ?> <?php if (!$this->getBuilderParamManager()->getParam('disable_image_upload', false)) { ?> <tr> <td><?php echo _i('File'); ?> </td> <td><?php echo $form->file(['name' => 'file_image', 'id' => 'file_image']); ?> </td> </tr> <tr> <td><?php echo _i('Progress'); ?> </td> <td><div class="progress progress-info progress-striped active" style="width: 300px; margin-bottom: 2px"><div class="bar" style="width: 0%"></div></div></td> </tr> <?php } ?> <tr> <td><?php echo _i('Password'); ?> </td> <td><?php echo $form->password(['name' => 'reply_nymphassword', 'id' => 'reply_nymphassword', 'value' => $user_pass, 'required' => 'required']); ?> <span style="font-size: smaller;">(Password used for file deletion)</span> </td> </tr> <?php $postas = ['N' => _i('User')]; if ($this->getAuth()->hasAccess('comment.mod_capcode')) { $postas['M'] = _i('Moderator'); } if ($this->getAuth()->hasAccess('comment.admin_capcode')) { $postas['A'] = _i('Administrator'); } if ($this->getAuth()->hasAccess('comment.dev_capcode')) { $postas['D'] = _i('Developer'); } if (count($postas) > 1) { ?> <tr> <td><?php echo _i('Post as'); ?> </td> <td><?php echo $form->select('reply_postas', 'User', $postas, array('id' => 'reply_postas')); ?> </td> </tr> <?php } ?> <?php if ($radix->getValue('posting_rules')) { ?> <tr class="rules"> <td></td> <td> <?php echo \Foolz\FoolFrame\Model\Markdown::parse($radix->getValue('posting_rules')); ?> </td> </tr> <tr class="rules"> <td colspan="2"> <div id="reply_ajax_notices"></div> <?php if (isset($reply_errors)) { ?> <span style="color: red"><?php echo $reply_errors; ?> </span> <?php } ?> </td> </tr> <?php } ?> </tbody> </table> <?php echo $form->close(); ?> <?php }
public function toString() { $backend_vars = $this->getBuilderParamManager()->getParam('backend_vars'); $radix = $this->getBuilderParamManager()->getParam('radix'); $user_name = $this->getBuilderParamManager()->getParam('user_name'); $user_pass = $this->getBuilderParamManager()->getParam('user_pass'); $user_email = $this->getBuilderParamManager()->getParam('user_email'); $thread_id = $this->getBuilderParamManager()->getParam('thread_id', 0); $reply_errors = $this->getBuilderParamManager()->getParam('reply_errors', false); $form = $this->getForm(); ?> <div id="reply" class="thread_form_wrap clearfix"> <section class="thread_form clearfix"> <?php echo $form->open(['enctype' => 'multipart/form-data', 'onsubmit' => 'fuel_set_csrf_token(this);', 'action' => $radix->shortname . '/submit']); ?> <?php echo $form->hidden('csrf_token', $this->getSecurity()->getCsrfToken()); ?> <?php echo $form->hidden('reply_numero', $thread_id, ['id' => 'reply_numero']); ?> <?php echo isset($backend_vars['last_limit']) ? $form->hidden('reply_last_limit', $backend_vars['last_limit']) : ''; ?> <fieldset> <div class="progress progress-info progress-striped active" style="height:8px; margin-top:0px; margin-bottom: 3px; background: #fff; width: 660px; opacity: 0;"><div class="bar" style="width: 0%"></div></div> <?php /*<label class="comment_label" for="reply_chennodiscursus"><?= _i('Comment') ?></label>*/ ?> <div class="pull-left"> <div class="input-prepend"> <label class="add-on" for="reply_talkingde"><?php echo _i('Subject'); ?> </label><?php echo $form->input(['name' => 'reply_talkingde', 'id' => 'reply_talkingde']); ?> </div> <div class="input-prepend"> <label class="add-on" for="reply_bokunonome"><?php echo _i('Name'); ?> </label><?php echo $form->input(['name' => 'name', 'id' => 'reply_name_yep', 'style' => 'display:none']); echo $form->input(['name' => 'reply_bokunonome', 'id' => 'reply_bokunonome', 'value' => $user_name]); ?> </div> <div class="input-prepend"> <label class="add-on" for="reply_elitterae"><?php echo _i('E-mail'); ?> </label><?php echo $form->input(['name' => 'email', 'id' => 'reply_email_yep', 'style' => 'display:none']); echo $form->input(['name' => 'reply_elitterae', 'id' => 'reply_elitterae', 'value' => $user_email]); ?> </div> <div class="input-prepend"> <label class="add-on" for="reply_nymphassword"><?php echo _i('Password'); ?> </label><?php echo $form->password(['name' => 'reply_nymphassword', 'id' => 'reply_nymphassword', 'value' => $user_pass, 'required' => 'required']); ?> </div> <?php if (!$this->getBuilderParamManager()->getParam('disable_image_upload', false)) { ?> <div class="input-prepend"> <label class="add-on" for="file_image"><?php echo _i('File'); ?> </label><input type="file" name="file_image" id="file_image" /> </div> <?php } ?> <?php $postas = ['N' => _i('User')]; if ($this->getAuth()->hasAccess('comment.mod_capcode')) { $postas['M'] = _i('Moderator'); } if ($this->getAuth()->hasAccess('comment.admin_capcode')) { $postas['A'] = _i('Administrator'); } if ($this->getAuth()->hasAccess('comment.dev_capcode')) { $postas['D'] = _i('Developer'); } if (count($postas) > 1) { ?> <div class="input-prepend"> <label class="add-on" for="reply_postas"><?php echo _i('Post As'); ?> </label> <?php echo $form->select('reply_postas', 'User', $postas, ['id' => 'reply_postas']); ?> </div> <?php } ?> </div> <div class="input-append pull-left"> <?php echo $form->textarea(['name' => 'reply', 'id' => 'reply_comment_yep', 'style' => 'display:none']); echo $form->textarea(['name' => 'reply_chennodiscursus', 'id' => 'reply_chennodiscursus', 'placeholder' => !$radix->archive && isset($thread_dead) && $thread_dead ? _i('This thread has entered ghost mode. Your reply will be marked as a ghost post and will only affect the ghost index.') : '', 'rows' => 3, 'style' => 'height:132px; width:320px;']); ?> <div class="btn-group"> <?php $submit_array = ['data-function' => 'comment', 'name' => 'reply_gattai', 'value' => _i('Submit'), 'class' => 'btn btn-primary']; echo $form->submit($submit_array); if (!$this->getBuilderParamManager()->getParam('disable_image_upload', false)) { $submit_array = ['data-function' => 'comment', 'name' => 'reply_gattai_spoilered', 'value' => _i('Submit Spoilered'), 'class' => 'btn']; echo $form->submit($submit_array); } echo $form->reset(['class' => 'btn', 'name' => 'reset', 'value' => _i('Reset')]); ?> </div> </div> <div class="rules pull-left"> <div class="rules_box"> <?php if ($radix->getValue('posting_rules')) { echo Markdown::parse($radix->getValue('posting_rules')); } ?> </div> <?php if ($this->getPreferences()->get('foolframe.auth.recaptcha_public', false)) { ?> <script> var RecaptchaOptions = { theme : 'custom', custom_theme_widget: 'recaptcha_widget' }; </script> <div class="recaptcha_widget" style="display:none"> <div><p><?php echo e(_i('You might be a bot! Enter a reCAPTCHA to continue.')); ?> </p></div> <div id="recaptcha_image" style="background: #fff; border: 1px solid #ccc; padding: 3px 6px; margin: 4px 0;"></div> <div class="input-prepend"> <label class="add-on" for="recaptcha_response_field"><?php echo e(_i('Solution')); ?> </label> <input type="text" id="recaptcha_response_field" name="recaptcha_response_field" /> </div> <div class="btn-group"> <a class="btn btn-mini" href="javascript:Recaptcha.reload()">Get another CAPTCHA</a> <a class="recaptcha_only_if_image btn btn-mini" href="javascript:Recaptcha.switch_type('audio')">Get an audio CAPTCHA</a> <a class="recaptcha_only_if_audio btn btn-mini" href="javascript:Recaptcha.switch_type('image')">Get an image CAPTCHA</a> <a class="btn btn-mini" href="javascript:Recaptcha.showhelp()">Help</a> </div> </div> <script type="text/javascript" src="//www.google.com/recaptcha/api/challenge?k=<?php echo $this->getPreferences()->get('foolframe.auth.recaptcha_public'); ?> "></script> <noscript> <iframe src="//www.google.com/recaptcha/api/noscript?k=<?php echo $this->getPreferences()->get('foolframe.auth.recaptcha_public'); ?> " height="300" width="500" frameborder="0"></iframe><br> <textarea name="recaptcha_challenge_field" rows="3" cols="40"> </textarea> <input type="hidden" name="recaptcha_response_field" value="manual_challenge"> </noscript> <?php } ?> </div> <div id="reply_ajax_notices"></div> <?php if ($reply_errors) { ?> <span style="color:red"><?php echo $reply_errors; ?> </span> <?php } ?> </fieldset> <?php echo $form->close(); ?> </section> </div> <?php }