本文整理汇总了PHP中captcha::image_tag方法的典型用法代码示例。如果您正苦于以下问题:PHP captcha::image_tag方法的具体用法?PHP captcha::image_tag怎么用?PHP captcha::image_tag使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类captcha
的用法示例。
在下文中一共展示了captcha::image_tag方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __
</div>
<?php
}
?>
<?php
if (core::config('advertisement.captcha') != FALSE) {
?>
<div class="form-group">
<div class="col-xs-10">
<?php
echo __('Captcha');
?>
*:<br />
<?php
echo captcha::image_tag('contact');
?>
<br />
<?php
echo FORM::input('captcha', "", array('class' => 'form-control', 'id' => 'captcha', 'required'));
?>
</div>
</div>
<?php
}
?>
<div class="modal-footer">
<?php
echo FORM::button('submit', __('Send Message'), array('type' => 'submit', 'class' => 'btn btn-success', 'action' => Route::url('default', array('controller' => 'contact', 'action' => 'user_contact', 'id' => $widget->id_ad))));
?>
示例2: __
<div class="form-group">
<div class="col-md-4">
<?php
if (Core::config('general.recaptcha_active')) {
?>
<?php
echo Captcha::recaptcha_display();
?>
<?php
} else {
?>
<?php
echo FORM::label('captcha', __('Captcha'), array('for' => 'captcha'));
?>
<span id="helpBlock" class="help-block"><?php
echo captcha::image_tag('publish_new');
?>
</span>
<?php
echo FORM::input('captcha', "", array('class' => 'form-control', 'id' => 'captcha', 'required', 'data-error' => __('Captcha is not correct')));
?>
<?php
}
?>
</div>
</div>
<?php
}
?>
<div class="form-actions">
<?php
示例3: __
if (Core::config('general.recaptcha_active')) {
?>
<?php
echo Captcha::recaptcha_display();
?>
<div id="recaptcha1"></div>
<?php
} else {
?>
<div class="row">
<div class="col-md-4">
<?php
echo FORM::label('captcha', __('Captcha'), array('for' => 'captcha'));
?>
<span id="helpBlock" class="help-block"><?php
echo captcha::image_tag('review');
?>
</span>
<?php
echo FORM::input('captcha', "", array('class' => 'form-control', 'id' => 'captcha', 'required'));
?>
</div>
</div>
<?php
}
?>
</div>
<div class="clearfix"></div>
<?php
}
?>
示例4: __
</div>
<?if (core::config('advertisement.captcha') != FALSE):?>
<div class="form-group">
<div class="col-md-4">
<?if (Core::config('general.recaptcha_active')):?>
<?php
echo Captcha::recaptcha_display();
?>
<?else:?>
<?php
echo __('Captcha');
?>
*:<br />
<?php
echo captcha::image_tag('new-reply-topic');
?>
<br />
<?php
echo FORM::input('captcha', "", array('class' => 'form-control', 'id' => 'captcha', 'required'));
?>
<?endif?>
</div>
</div>
<?endif?>
<button type="submit" class="btn btn-primary" name="submit"><?php
echo __('Reply');
?>
</button>
</form>
示例5: isset
echo Captcha::recaptcha_display();
?>
<div id="<?php
echo isset($recaptcha_placeholder) ? $recaptcha_placeholder : 'recaptcha3';
?>
"></div>
</div>
<?else:?>
<label class="col-sm-2 control-label"><?php
echo _e('Captcha');
?>
*:</label>
<div class="col-md-5 col-sm-6">
<span id="helpBlock" class="help-block"><?php
echo captcha::image_tag('register');
?>
</span>
<?php
echo FORM::input('captcha', "", array('class' => 'form-control', 'id' => 'captcha', 'required', 'data-error' => __('Captcha is not correct')));
?>
</div>
<?endif?>
<?endif?>
</div>
</div>
<div class="modal-foot-controls clearfix">
<a class="btn btn-base-dark pull-left log-btn" data-dismiss="modal" data-toggle="modal" href="<?php
echo Route::url('oc-panel', array('directory' => 'user', 'controller' => 'auth', 'action' => 'login'));
?>
#login-modal">
示例6: _e
?>
<?php
echo Captcha::recaptcha_display();
?>
<div id="recaptcha1"></div>
<?php
} else {
?>
<div class="form-captcha wide-view">
<span class="cap_note text-center"><?php
echo FORM::label('captcha', _e('Captcha'), array('for' => 'captcha'));
?>
</span>
<span class="cap_img"><?php
echo captcha::image_tag('new-forum');
?>
</span>
<span class="cap_ans"><?php
echo FORM::input('captcha', "", array('class' => 'form-control', 'id' => 'captcha', 'required'));
?>
</span>
</div>
<?php
}
?>
</dl>
<?php
}
?>