This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show a message if logging in is required to comment (see #7031)
- Loading branch information
Showing
5 changed files
with
24 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 8 additions & 17 deletions
25
system/modules/comments/templates/modules/mod_comment_form.html5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,42 @@ | ||
<?php if (!$this->requireLogin): ?> | ||
|
||
<!-- indexer::stop --> | ||
<div class="form"> | ||
|
||
<!-- indexer::stop --> | ||
<div class="form"> | ||
<?php if ($this->requireLogin): ?> | ||
<p class="info"><?php echo $this->login; ?></p> | ||
<?php else: ?> | ||
<?php if ($this->confirm): ?> | ||
<p class="confirm"><?php echo $this->confirm; ?></p> | ||
<?php elseif ($this->allowComments): ?> | ||
<form<?php if ($this->action): ?> action="<?php echo $this->action; ?>"<?php endif; ?> id="<?php echo $this->formId; ?>" method="post"> | ||
<div class="formbody"> | ||
<input type="hidden" name="FORM_SUBMIT" value="<?php echo $this->formId; ?>"> | ||
<input type="hidden" name="REQUEST_TOKEN" value="{{request_token}}"> | ||
|
||
<div class="widget"> | ||
<?php echo $this->fields['name']->generateWithError(); ?> <?php echo $this->fields['name']->generateLabel(); ?> | ||
</div> | ||
|
||
<div class="widget"> | ||
<?php echo $this->fields['email']->generateWithError(); ?> <?php echo $this->fields['email']->generateLabel(); ?> | ||
</div> | ||
|
||
<div class="widget"> | ||
<?php echo $this->fields['website']->generateWithError(); ?> <?php echo $this->fields['website']->generateLabel(); ?> | ||
</div> | ||
|
||
<?php if (isset($this->fields['captcha'])): ?> | ||
<div class="widget"> | ||
<?php echo $this->fields['captcha']->generateWithError(); ?> <label for="ctrl_captcha"><?php echo $this->fields['captcha']->generateQuestion(); ?><span class="mandatory">*</span></label> | ||
</div> | ||
<?php endif; ?> | ||
|
||
<div class="widget"> | ||
<?php echo $this->fields['comment']->generateWithError(); ?> <label for="ctrl_<?php echo $this->fields['comment']->id; ?>" class="invisible"><?php echo $this->fields['comment']->label; ?></label> | ||
</div> | ||
|
||
<div class="widget"> | ||
<?php echo $this->fields['notify']->generateWithError(); ?> | ||
</div> | ||
|
||
<div class="submit_container"> | ||
<input type="submit" class="submit" value="<?php echo $this->submit; ?>"> | ||
</div> | ||
|
||
</div> | ||
</form> | ||
<?php endif; ?> | ||
|
||
</div> | ||
<!-- indexer::continue --> | ||
|
||
<?php endif; ?> | ||
<?php endif; ?> | ||
</div> | ||
<!-- indexer::continue --> |
25 changes: 8 additions & 17 deletions
25
system/modules/comments/templates/modules/mod_comment_form.xhtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,42 @@ | ||
<?php if (!$this->requireLogin): ?> | ||
|
||
<!-- indexer::stop --> | ||
<div class="form"> | ||
|
||
<!-- indexer::stop --> | ||
<div class="form"> | ||
<?php if ($this->requireLogin): ?> | ||
<p class="info"><?php echo $this->login; ?></p> | ||
<?php else: ?> | ||
<?php if ($this->confirm): ?> | ||
<p class="confirm"><?php echo $this->confirm; ?></p> | ||
<?php elseif ($this->allowComments): ?> | ||
<form action="<?php echo $this->action; ?>" id="<?php echo $this->formId; ?>" method="post"> | ||
<div class="formbody"> | ||
<input type="hidden" name="FORM_SUBMIT" value="<?php echo $this->formId; ?>" /> | ||
<input type="hidden" name="REQUEST_TOKEN" value="{{request_token}}" /> | ||
|
||
<div class="widget"> | ||
<?php echo $this->fields['name']->generateWithError(); ?> <?php echo $this->fields['name']->generateLabel(); ?> | ||
</div> | ||
|
||
<div class="widget"> | ||
<?php echo $this->fields['email']->generateWithError(); ?> <?php echo $this->fields['email']->generateLabel(); ?> | ||
</div> | ||
|
||
<div class="widget"> | ||
<?php echo $this->fields['website']->generateWithError(); ?> <?php echo $this->fields['website']->generateLabel(); ?> | ||
</div> | ||
|
||
<?php if (isset($this->fields['captcha'])): ?> | ||
<div class="widget"> | ||
<?php echo $this->fields['captcha']->generateWithError(); ?> <label for="ctrl_captcha"><?php echo $this->fields['captcha']->generateQuestion(); ?><span class="mandatory">*</span></label> | ||
</div> | ||
<?php endif; ?> | ||
|
||
<div class="widget"> | ||
<?php echo $this->fields['comment']->generateWithError(); ?> <label for="ctrl_<?php echo $this->fields['comment']->id; ?>" class="invisible"><?php echo $this->fields['comment']->label; ?></label> | ||
</div> | ||
|
||
<div class="widget"> | ||
<?php echo $this->fields['notify']->generateWithError(); ?> | ||
</div> | ||
|
||
<div class="submit_container"> | ||
<input type="submit" class="submit" value="<?php echo $this->submit; ?>" /> | ||
</div> | ||
|
||
</div> | ||
</form> | ||
<?php endif; ?> | ||
|
||
</div> | ||
<!-- indexer::continue --> | ||
|
||
<?php endif; ?> | ||
<?php endif; ?> | ||
</div> | ||
<!-- indexer::continue --> |