[ticket/12530] Show logo and policy in responsive

PHPBB3-12530
This commit is contained in:
PayBas 2014-09-19 11:57:20 +02:00
parent 66ecbd8545
commit 757c67b7d8
4 changed files with 19 additions and 19 deletions

View file

@ -1,5 +1,5 @@
<!-- IF S_TYPE == 1 --> <!-- IF S_TYPE == 1 -->
<div class="panel"> <div class="panel captcha-panel">
<div class="inner"> <div class="inner">
<h3 class="captcha-title">{L_CONFIRMATION}</h3> <h3 class="captcha-title">{L_CONFIRMATION}</h3>

View file

@ -1,5 +1,5 @@
<!-- IF S_TYPE == 1 --> <!-- IF S_TYPE == 1 -->
<div class="panel"> <div class="panel captcha-panel">
<div class="inner"> <div class="inner">
<h3 class="captcha-title">{L_CONFIRMATION}</h3> <h3 class="captcha-title">{L_CONFIRMATION}</h3>

View file

@ -1,5 +1,5 @@
<!-- IF S_TYPE == 1 --> <!-- IF S_TYPE == 1 -->
<div class="panel"> <div class="panel captcha-panel">
<div class="inner"> <div class="inner">
<h3 class="captcha-title">{L_CONFIRMATION}</h3> <h3 class="captcha-title">{L_CONFIRMATION}</h3>
@ -12,23 +12,15 @@
<dl> <dl>
<dt><label>{L_CONFIRM_CODE}{L_COLON}</label><br /><span>{L_RECAPTCHA_EXPLAIN}</span></dt> <dt><label>{L_CONFIRM_CODE}{L_COLON}</label><br /><span>{L_RECAPTCHA_EXPLAIN}</span></dt>
<dd class="captcha"> <dd class="captcha">
<script type="text/javascript"> <script>
// <![CDATA[
var RecaptchaOptions = { var RecaptchaOptions = {
lang : '{LA_RECAPTCHA_LANG}', lang : '{LA_RECAPTCHA_LANG}',
theme : 'clean', theme : 'clean',
tabindex : <!-- IF $CAPTCHA_TAB_INDEX -->{$CAPTCHA_TAB_INDEX}<!-- ELSE -->10<!-- ENDIF --> tabindex : <!-- IF $CAPTCHA_TAB_INDEX -->{$CAPTCHA_TAB_INDEX}<!-- ELSE -->10<!-- ENDIF -->
}; };
// ]]>
</script>
<script type="text/javascript" src="{RECAPTCHA_SERVER}/challenge?k={RECAPTCHA_PUBKEY}{RECAPTCHA_ERRORGET}"></script>
<script type="text/javascript">
// <![CDATA[
<!-- IF S_CONTENT_DIRECTION eq 'rtl' -->
document.getElementById('recaptcha_table').style.direction = 'ltr';
<!-- ENDIF -->
// ]]>
</script> </script>
<script src="{RECAPTCHA_SERVER}/challenge?k={RECAPTCHA_PUBKEY}{RECAPTCHA_ERRORGET}"></script>
<noscript> <noscript>
<div> <div>
<object data="{RECAPTCHA_SERVER}/noscript?k={RECAPTCHA_PUBKEY}{RECAPTCHA_ERRORGET}" type="text/html" height="300" width="500"></object><br /> <object data="{RECAPTCHA_SERVER}/noscript?k={RECAPTCHA_PUBKEY}{RECAPTCHA_ERRORGET}" type="text/html" height="300" width="500"></object><br />
@ -37,6 +29,8 @@
</div> </div>
</noscript> </noscript>
<img class="recaptcha-responsive" style="display: none" alt="" width="71" height="36" src="{RECAPTCHA_SERVER}/img/clean/logo.png">
<span class="recaptcha-responsive" style="display: none"><a href="http://www.google.com/intl/{LA_RECAPTCHA_LANG}/policies/" target="_blank">Privacy &amp; Terms</a></span>
</dd> </dd>
</dl> </dl>
<!-- ELSE --> <!-- ELSE -->

View file

@ -351,23 +351,29 @@ fieldset.quick-login label[for="autologin"] {
max-width: 260px; max-width: 260px;
} }
dd.captcha { .captcha-panel dd.captcha {
margin-left: 0; margin-left: 0;
} }
dd.captcha-image img { .captcha-panel dd.captcha-image img {
width: 100%; width: 100%;
} }
#recaptcha_challenge_image, #recaptcha_challenge_image,
#recaptcha_response_field, #recaptcha_response_field,
.recaptchatable #recaptcha_image { .recaptchatable #recaptcha_image {
margin: 0 !important;
width: 100% !important; width: 100% !important;
height: auto !important; height: auto !important;
} }
.recaptchatable #recaptcha_logo {
display: none !important; .recaptchatable tr td:last-child {
display: none;
}
.captcha-panel .recaptcha-responsive {
display: inline-block !important;
margin-top: 10px;
vertical-align: middle;
} }
} }