Esempio n. 1
0
 public function getInput($fieldValue = null)
 {
     if (!$this->isPublished()) {
         return "";
     }
     $app = JFactory::getApplication();
     if ($app->isAdmin()) {
         return "";
     }
     return JUDirectoryFrontHelperCaptcha::getCaptcha(false, null, false, $this->getName(), $this->getId(), $this->getId() . "_captcha_namespace");
 }
    ?>
">
									<input name="subscribe" id="comment-reply-subscribe-<?php 
    echo $this->commentObj->id;
    ?>
"
									       class="comment-subscribe" type="checkbox" value="1"/>
									<?php 
    echo JText::_('COM_JUDIRECTORY_COMMENT_SUBSCRIBE');
    ?>
								</label>
							</div>
						<?php 
}
if (JUDirectoryFrontHelperPermission::showCaptchaWhenComment($this->item->id)) {
    echo JUDirectoryFrontHelperCaptcha::getCaptcha(true);
}
?>
					</div>

					<div class="comment-form-submit clearfix">
						<button type="button" class="btn btn-primary"
							onclick="Joomla.submitbutton('listing.addComment', 'judir-comment-reply-form-<?php 
echo $this->commentObj->id;
?>
');"><?php 
echo JText::_('COM_JUDIRECTORY_SUBMIT');
?>
						</button>
						<input type="reset" name="reply-reset" class="btn"
						       value="<?php 
Esempio n. 3
0
			<div class="col-sm-10">
				<input type="text" class="required email" name="jform[email]" value="" id="inputEmail" size="32"/>
			</div>
		</div>

		<div class="form-group">
			<label for="security_code" class="control-label col-sm-2">
				<?php 
echo JText::_('COM_JUDIRECTORY_CAPTCHA');
?>
<span style="color: red">*</span>
			</label>
			<div class="col-sm-10">
				<?php 
echo JUDirectoryFrontHelperCaptcha::getCaptcha(false, null, false);
?>
			</div>
		</div>

		<div class="form-group">
			<label class="control-label col-sm-2"></label>

			<div class="col-sm-10">
				<button type="button" class="btn btn-default btn-primary" onclick="Joomla.submitbutton('subscribe.save')">
					<?php 
echo JText::_('COM_JUDIRECTORY_SUBMIT');
?>
				</button>
				<button type="button" class="btn btn-default"  onclick="Joomla.submitbutton('subscribe.cancel')">
					<?php