Skip to content

Instantly share code, notes, and snippets.

@nyankichi-n-n

nyankichi-n-n/author.php

Last active Oct 16, 2017
Embed
What would you like to do?
concrete5 のコメント欄の表示変更
<?php
defined('C5_EXECUTE') or die("Access Denied.");
$u = new User();
?>
<?php if ($u->isRegistered()) {
$ui = $u->getUserInfoObject();
?>
<div class="ccm-conversation-avatar"><?php echo $ui->getUserAvatar()->output()?></div>
<?php
} else {
// non-logged-in posting. ?>
<div class="form-group">
<label class="control-label" for="cnvMessageAuthorName"><?php echo t('Nickname (Required)')?></label>
<input type="text" class="form-control" name="cnvMessageAuthorName" />
</div>
<div class="form-group">
<label class="control-label" for="cnvMessageAuthorEmail"><?php echo t('Email Address (Required)')?></label>
<input type="text" class="form-control" name="cnvMessageAuthorEmail" />
</div>
<div class="form-group">
<label class="control-label" for="cnvMessageAuthorWebsite"><?php echo t('Website')?></label>
<input type="text" class="form-control" name="cnvMessageAuthorWebsite" />
</div>
<?php
// $captcha = Core::make('captcha');
$captcha = Core::make('captcha');
?>
<div class="form-group">
<?php $captcha->label()?>
<?php $captcha->showInput();
?>
<?php $captcha->display();
?>
</div>
<?php
} ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.