<div class="reply-content" data-reply-display-content> <?php echo $reply->getContent(); ?> </div> <form data-reply-form class="reply-form reply-content-edit"> <div class="alert alert-error alert-empty" style="display:none;"> <button type="button" class="close" data-bs-dismiss="alert">×</button> <?php echo JText::_('APP_GROUP_DISCUSSIONS_EMPTY_REPLY_ERROR'); ?> </div> <?php echo FD::bbcode()->editor('reply_content', $reply->content, array(), array('data-reply-content' => '')); ?> <div class="form-actions"> <button type="button" class="pull-left btn btn-es-danger btn-sm" data-reply-edit-cancel><?php echo JText::_('COM_EASYSOCIAL_CANCEL_BUTTON'); ?> </a> <button type="button" class="pull-right btn btn-es-primary btn-sm" data-reply-edit-update><?php echo JText::_('COM_EASYSOCIAL_UPDATE_BUTTON'); ?> </a> </div> </form> <div class="reply-footer">
<hr /> <div> <input type="text" name="title" value="<?php echo $this->html('string.escape', $discussion->title); ?> " placeholder="<?php echo JText::_('APP_GROUP_DISCUSSIONS_TITLE_PLACEHOLDER', true); ?> " class="form-control discussion-title mb-10" /> <div class="editor-wrap fd-cf"> <?php echo FD::bbcode()->editor('content', $discussion->content, array('files' => $files, 'uid' => $group->id, 'type' => SOCIAL_TYPE_GROUP)); ?> </div> </div> <div class="form-actions"> <a href="<?php echo FRoute::groups(array('layout' => 'item', 'id' => $group->getAlias())); ?> " class="pull-left btn btn-es-danger btn-sm"><?php echo JText::_('COM_EASYSOCIAL_CANCEL_BUTTON'); ?> </a> <button type="submit" class="pull-right btn btn-es-primary btn-sm"><?php echo JText::_('COM_EASYSOCIAL_SUBMIT_BUTTON'); ?>
echo JText::_('APP_EVENT_DISCUSSIONS_YOUR_RESPONSE'); ?> </h4> <hr /> <a id="reply"></a> <form data-reply-form class="reply-form"> <div class="alert alert-error alert-empty"> <button type="button" class="close" data-bs-dismiss="alert">×</button> <?php echo JText::_('APP_EVENT_DISCUSSIONS_EMPTY_REPLY_ERROR'); ?> </div> <?php echo FD::bbcode()->editor('reply_content', '', array('files' => $files, 'uid' => $event->id, 'type' => SOCIAL_TYPE_EVENT, 'controllerName' => 'events'), array('data-reply-content' => '')); ?> <div class="form-actions"> <button type="button" class="pull-right btn btn-es-primary btn-large" data-reply-submit><?php echo JText::_('APP_EVENT_DISCUSSIONS_SUBMIT_REPLY'); ?> →</a> </div> </form> <div class="locked-form"> <i class="ies-locked"></i> <?php echo JText::_('APP_EVENT_DISCUSSIONS_IS_LOCKED'); ?>
/** * Convert bbcode data into valid html codes * * @param string * @return string (in html) */ public function parseBBCode($string, $options = array()) { // Configurable option to determine if the bbcode should perform the following $options = array_merge(array('censor' => false, 'emoticons' => true), $options); $bbcode = FD::bbcode(); $string = $bbcode->parse($string, $options); return $string; }
<hr /> <div> <input type="text" name="title" value="<?php echo $this->html('string.escape', $discussion->title); ?> " placeholder="<?php echo JText::_('APP_EVENT_DISCUSSIONS_TITLE_PLACEHOLDER', true); ?> " class="form-control discussion-title mb-10" /> <div class="editor-wrap fd-cf"> <?php echo FD::bbcode()->editor('content', $discussion->content, array('files' => $files, 'uid' => $event->id, 'type' => SOCIAL_TYPE_EVENT, 'controllerName' => 'events')); ?> </div> </div> <div class="form-actions"> <a href="<?php echo FRoute::events(array('layout' => 'item', 'id' => $event->getAlias())); ?> " class="pull-left btn btn-es-danger btn-sm"><?php echo JText::_('COM_EASYSOCIAL_CANCEL_BUTTON'); ?> </a> <button type="submit" class="pull-right btn btn-es-primary btn-sm"><?php echo JText::_('COM_EASYSOCIAL_SUBMIT_BUTTON'); ?>
echo JText::_('APP_GROUP_DISCUSSIONS_YOUR_RESPONSE'); ?> </h4> <hr /> <a id="reply"></a> <form data-reply-form class="reply-form"> <div class="alert alert-error alert-empty"> <button type="button" class="close" data-bs-dismiss="alert">×</button> <?php echo JText::_('APP_GROUP_DISCUSSIONS_EMPTY_ERROR'); ?> </div> <?php echo FD::bbcode()->editor('reply_content', '', array('files' => $files, 'uid' => $group->id, 'type' => SOCIAL_TYPE_GROUP), array('data-reply-content' => '')); ?> <div class="form-actions"> <button type="button" class="pull-right btn btn-es-primary btn-large" data-reply-submit><?php echo JText::_('APP_GROUP_DISCUSSIONS_SUBMIT_REPLY'); ?> →</a> </div> </form> <div class="locked-form"> <i class="ies-locked"></i> <?php echo JText::_('APP_GROUP_DISCUSSIONS_IS_LOCKED'); ?>
?> </select> </div> <div class="col-sm-6"> <?php echo $this->html('form.calendar', 'due', $milestone->due, 'due', array('placeholder="' . JText::_('APP_EVENT_TASKS_DUE_DATE_FOR_MILESTONE', true) . '"')); ?> </div> </div> <div class="mt-15" style="clear:both;"> <div class="editor-wrap fd-cf"> <?php echo FD::bbcode()->editor('description', $milestone->description, array('uid' => $event->id, 'type' => SOCIAL_TYPE_EVENT)); ?> </div> </div> </div> <div class="form-actions"> <a href="<?php echo FRoute::events(array('layout' => 'item', 'id' => $event->getAlias())); ?> " class="pull-left btn btn-es-danger btn-sm"><?php echo JText::_('COM_EASYSOCIAL_CANCEL_BUTTON'); ?> </a> <button type="submit" class="pull-right btn btn-es-primary btn-sm"><?php echo JText::_('COM_EASYSOCIAL_SUBMIT_BUTTON');
?> </select> </div> <div class="col-sm-6"> <?php echo $this->html('form.calendar', 'due', $milestone->due, 'due', array('placeholder="' . JText::_('APP_GROUP_TASKS_DUE_DATE_FOR_MILESTONE', true) . '"')); ?> </div> </div> <div class="mt-15" style="clear:both;"> <div class="editor-wrap fd-cf"> <?php echo FD::bbcode()->editor('description', $milestone->description, array('uid' => $group->id, 'type' => SOCIAL_TYPE_GROUP)); ?> </div> </div> </div> <div class="form-actions"> <a href="<?php echo FRoute::groups(array('layout' => 'item', 'id' => $group->getAlias())); ?> " class="pull-left btn btn-es-danger btn-sm"><?php echo JText::_('COM_EASYSOCIAL_CANCEL_BUTTON'); ?> </a> <button type="submit" class="pull-right btn btn-es-primary btn-sm"><?php echo JText::_('COM_EASYSOCIAL_SUBMIT_BUTTON');