getVar('comment-object_id'); $objectGroup = $displayData->getVar('comment-object_group'); if ($displayData->getVar('comments-form-link', 0) == 1): ?>
getVar('comments-form-policy', 0) == 1): ?>
getVar('comments-policy'); ?>
getVar('comments-html-before-form'); ?>
getFormFields($displayData->getVar('comments-form-html-prepend')); if ($displayData->getVar('comments-form-user-name', 1) == 1): $required = $displayData->getVar('comments-form-user-name-required', 1); $requiredInput = !$required ? '' : ' required'; $text = !$required ? Text::_('FORM_NAME') : Text::_('FORM_NAME_REQUIRED'); ?>
/>
getVar('comments-form-user-email', 1) == 1): $required = $displayData->getVar('comments-form-email-required', 1); $requiredInput = !$required ? '' : ' required'; $text = !$required ? Text::_('FORM_EMAIL') : Text::_('FORM_EMAIL_REQUIRED'); ?>
/>
getVar('comments-form-user-homepage', 0) == 1): $required = $displayData->getVar('comments-form-homepage-required', 1); $requiredInput = !$required ? '' : ' required'; $text = !$required ? Text::_('FORM_HOMEPAGE') : Text::_('FORM_HOMEPAGE_REQUIRED'); ?>
/>
getVar('comments-form-title', 0) == 1): $required = $displayData->getVar('comments-form-title-required', 1); $requiredInput = !$required ? '' : ' required'; $text = !$required ? Text::_('FORM_TITLE') : Text::_('FORM_TITLE_REQUIRED'); ?>
/>
getVar('comments-form-subscribe', 0) == 1): ?>

getVar('var_show_checkbox_terms_of_use', 0) == 1): ?>
getVar('comments-form-captcha', 0) == 1): $html = (!extension_loaded('gd') || !function_exists('imagecreatefrompng')) ? '' : $displayData->getVar('comments-form-captcha-html'); if ($html == 'kcaptcha') { $link = JCommentsFactory::getLink('captcha'); ?>
<?php echo Text::_('FORM_CAPTCHA'); ?>
'jcomments')); echo $recaptcha->display('recaptcha', 'dynamic_recaptcha_1', 'g-recaptcha'); } elseif ($html == 'recaptcha_invisible') { $recaptcha = Captcha::getInstance($html, array('namespace' => 'jcomments')); echo $recaptcha->display('recaptcha', 'dynamic_recaptcha_invisible_1', 'g-recaptcha'); } elseif ($html == 'hcaptcha') { $hcaptcha = Captcha::getInstance($html, array('namespace' => 'jcomments')); echo $hcaptcha->display('hcaptcha', 'dynamic_hcaptcha_1', 'hcaptcha'); } endif; ?> getFormFields($displayData->getVar('comments-form-html-append')); ?>

getVar('comments-form-bbcode', 0) == 1) { $bbcodes = array( 'b' => array(0 => Text::_('FORM_BBCODE_B'), 1 => Text::_('BBCODE_HINT_ENTER_TEXT')), 'i' => array(0 => Text::_('FORM_BBCODE_I'), 1 => Text::_('BBCODE_HINT_ENTER_TEXT')), 'u' => array(0 => Text::_('FORM_BBCODE_U'), 1 => Text::_('BBCODE_HINT_ENTER_TEXT')), 's' => array(0 => Text::_('FORM_BBCODE_S'), 1 => Text::_('BBCODE_HINT_ENTER_TEXT')), 'img' => array(0 => Text::_('FORM_BBCODE_IMG'), 1 => Text::_('BBCODE_HINT_ENTER_FULL_URL_TO_THE_IMAGE')), 'url' => array(0 => Text::_('FORM_BBCODE_URL'), 1 => Text::_('BBCODE_HINT_ENTER_FULL_URL')), 'hide' => array(0 => Text::_('FORM_BBCODE_HIDE'), 1 => Text::_('BBCODE_HINT_ENTER_TEXT_TO_HIDE_IT_FROM_UNREGISTERED')), 'quote' => array(0 => Text::_('FORM_BBCODE_QUOTE'), 1 => Text::_('BBCODE_HINT_ENTER_TEXT_TO_QUOTE')), 'list' => array(0 => Text::_('FORM_BBCODE_LIST'), 1 => Text::_('BBCODE_HINT_ENTER_LIST_ITEM_TEXT')) ); foreach ($bbcodes as $k => $v) { if ($displayData->getVar('comments-form-bbcode-' . $k, 0) == 1) { $title = trim(JCommentsText::jsEscape($v[0])); $text = trim(JCommentsText::jsEscape($v[1])); $script .= " jcEditor.addButton('$k','$title','$text'); "; } } } $customBBCodes = $displayData->getVar('comments-form-custombbcodes'); if (!empty($customBBCodes)) { foreach ($customBBCodes as $code) { if ($code->button_enabled) { $k = 'custombbcode' . $code->id; $title = trim(JCommentsText::jsEscape($code->button_title)); $text = empty($code->button_prompt) ? Text::_('BBCODE_HINT_ENTER_TEXT') : Text::_($code->button_prompt); $open_tag = $code->button_open_tag; $close_tag = $code->button_close_tag; $icon = $code->button_image; $css = $code->button_css; $script .= " jcEditor.addButton('$k','$title','$text','$open_tag','$close_tag','$css','$icon'); "; } } } $smiles = $displayData->getVar('comment-form-smiles'); if (!empty($smiles)) { $script .= " jcEditor.initSmiles('" . $displayData->getVar("smilesurl") . "'); "; foreach ($smiles as $code => $icon) { $code = trim(JCommentsText::jsEscape($code)); $icon = trim(JCommentsText::jsEscape($icon)); $script .= " jcEditor.addSmile('$code','$icon'); "; } } if ($displayData->getVar('comments-form-showlength-counter', 0) == 1) { $script .= " jcEditor.addCounter(" . $displayData->getVar('comment-maxlength') . ", '" . Text::_('FORM_CHARSLEFT_PREFIX') . "', '" . Text::_('FORM_CHARSLEFT_SUFFIX') . "', 'counter'); "; } $script .= " jcomments.setForm(new JCommentsForm('comments-form', jcEditor)); } "; if ($displayData->getVar('comments-form-ajax', 0) == 1) { $script .= " setTimeout(JCommentsInitializeForm, 100); "; } else { $script .= " if (window.addEventListener) {window.addEventListener('load',JCommentsInitializeForm,false);} else if (document.addEventListener){document.addEventListener('load',JCommentsInitializeForm,false);} else if (window.attachEvent){window.attachEvent('onload',JCommentsInitializeForm);} else {if (typeof window.onload=='function'){var oldload=window.onload;window.onload=function(){oldload();JCommentsInitializeForm();}} else window.onload=JCommentsInitializeForm;} "; } echo ''; ?> getVar('comments-html-after-form'); ?>