diff options
Diffstat (limited to 'phpBB')
| -rw-r--r-- | phpBB/phpbb/event/php_exporter.php | 14 | ||||
| -rw-r--r-- | phpBB/styles/prosilver/template/captcha_default.html | 4 | ||||
| -rw-r--r-- | phpBB/styles/prosilver/template/captcha_qa.html | 4 | ||||
| -rw-r--r-- | phpBB/styles/prosilver/template/captcha_recaptcha.html | 19 | ||||
| -rw-r--r-- | phpBB/styles/prosilver/template/ucp_pm_viewmessage.html | 1 | ||||
| -rw-r--r-- | phpBB/styles/prosilver/theme/bidi.css | 16 | ||||
| -rw-r--r-- | phpBB/styles/prosilver/theme/responsive.css | 25 | ||||
| -rw-r--r-- | phpBB/viewtopic.php | 2 | 
8 files changed, 60 insertions, 25 deletions
diff --git a/phpBB/phpbb/event/php_exporter.php b/phpBB/phpbb/event/php_exporter.php index badbbb48fd..35144eeeec 100644 --- a/phpBB/phpbb/event/php_exporter.php +++ b/phpBB/phpbb/event/php_exporter.php @@ -253,7 +253,7 @@ class php_exporter  	public function get_event_name($event_line, $is_dispatch)  	{  		$event_text_line = $this->file_lines[$event_line]; -		$event_text_line = ltrim($event_text_line, "\t"); +		$event_text_line = ltrim($event_text_line, "\t ");  		if ($is_dispatch)  		{ @@ -389,7 +389,7 @@ class php_exporter  		$found_comment_end = false;  		while (ltrim($this->file_lines[$this->current_event_line - $current_doc_line], "\t") !== '/**')  		{ -			if (ltrim($this->file_lines[$this->current_event_line - $current_doc_line], "\t") === '*/') +			if (ltrim($this->file_lines[$this->current_event_line - $current_doc_line], "\t ") === '*/')  			{  				$found_comment_end = true;  			} @@ -471,7 +471,7 @@ class php_exporter  	{  		$find_tag_line = 0;  		$found_comment_end = false; -		while (strpos(ltrim($this->file_lines[$this->current_event_line - $find_tag_line], "\t"), '* @' . $find_tag . ' ') !== 0) +		while (strpos(ltrim($this->file_lines[$this->current_event_line - $find_tag_line], "\t "), '* @' . $find_tag . ' ') !== 0)  		{  			if ($found_comment_end && ltrim($this->file_lines[$this->current_event_line - $find_tag_line], "\t") === '/**')  			{ @@ -482,7 +482,7 @@ class php_exporter  			foreach ($disallowed_tags as $disallowed_tag)  			{ -				if ($found_comment_end && strpos(ltrim($this->file_lines[$this->current_event_line - $find_tag_line], "\t"), '* @' . $disallowed_tag) === 0) +				if ($found_comment_end && strpos(ltrim($this->file_lines[$this->current_event_line - $find_tag_line], "\t "), '* @' . $disallowed_tag) === 0)  				{  					// Found @var after the @since  					throw new \LogicException("Found '@{$disallowed_tag}' information after '@{$find_tag}' for event " @@ -490,7 +490,7 @@ class php_exporter  				}  			} -			if (ltrim($this->file_lines[$this->current_event_line - $find_tag_line], "\t") === '*/') +			if (ltrim($this->file_lines[$this->current_event_line - $find_tag_line], "\t ") === '*/')  			{  				$found_comment_end = true;  			} @@ -550,7 +550,7 @@ class php_exporter  	public function validate_since($line)  	{  		$match = array(); -		preg_match('#^\* @since (\d+\.\d+\.\d+(?:-(?:a|b|RC|pl)\d+)?)$#', ltrim($line, "\t"), $match); +		preg_match('#^\* @since (\d+\.\d+\.\d+(?:-(?:a|b|RC|pl)\d+)?)$#', ltrim($line, "\t "), $match);  		if (!isset($match[1]))  		{  			throw new \LogicException("Invalid '@since' information for event " @@ -570,7 +570,7 @@ class php_exporter  	*/  	public function validate_event($event_name, $line)  	{ -		$event = substr(ltrim($line, "\t"), strlen('* @event ')); +		$event = substr(ltrim($line, "\t "), strlen('* @event '));  		if ($event !== trim($event))  		{ diff --git a/phpBB/styles/prosilver/template/captcha_default.html b/phpBB/styles/prosilver/template/captcha_default.html index 550962db67..02899bcafd 100644 --- a/phpBB/styles/prosilver/template/captcha_default.html +++ b/phpBB/styles/prosilver/template/captcha_default.html @@ -1,5 +1,5 @@  <!-- IF S_TYPE == 1 --> -<div class="panel"> +<div class="panel captcha-panel">  	<div class="inner">  	<h3 class="captcha-title">{L_CONFIRMATION}</h3> @@ -10,7 +10,7 @@  	<dl>  		<dt><label for="confirm_code">{L_CONFIRM_CODE}{L_COLON}</label></dt> -		<dd><img src="{CONFIRM_IMAGE_LINK}" alt="{L_CONFIRM_CODE}" /></dd> +		<dd class="captcha captcha-image"><img src="{CONFIRM_IMAGE_LINK}" alt="{L_CONFIRM_CODE}" /></dd>  		<dd><input type="text" name="confirm_code" id="confirm_code" size="8" maxlength="8" tabindex="{$CAPTCHA_TAB_INDEX}" class="inputbox narrow" title="{L_CONFIRM_CODE}" />  		<!-- IF S_CONFIRM_REFRESH --><input type="submit" name="refresh_vc" id="refresh_vc" class="button2" value="{L_VC_REFRESH}" /><!-- ENDIF -->  		<input type="hidden" name="confirm_id" id="confirm_id" value="{CONFIRM_ID}" /></dd> diff --git a/phpBB/styles/prosilver/template/captcha_qa.html b/phpBB/styles/prosilver/template/captcha_qa.html index 1671987f63..b8c6678066 100644 --- a/phpBB/styles/prosilver/template/captcha_qa.html +++ b/phpBB/styles/prosilver/template/captcha_qa.html @@ -1,5 +1,5 @@  <!-- IF S_TYPE == 1 --> -<div class="panel"> +<div class="panel captcha-panel">  	<div class="inner">  	<h3 class="captcha-title">{L_CONFIRMATION}</h3> @@ -8,7 +8,7 @@  	<dl>  	<dt><label>{QA_CONFIRM_QUESTION}{L_COLON}</label><br /><span>{L_CONFIRM_QUESTION_EXPLAIN}</span></dt> -	<dd> +	<dd class="captcha">  		<input type="text" tabindex="{$CAPTCHA_TAB_INDEX}" name="qa_answer" id="answer" size="45"  class="inputbox autowidth" title="{L_ANSWER}" />  		<input type="hidden" name="qa_confirm_id" id="qa_confirm_id" value="{QA_CONFIRM_ID}" />  	</dd> diff --git a/phpBB/styles/prosilver/template/captcha_recaptcha.html b/phpBB/styles/prosilver/template/captcha_recaptcha.html index bde0c9df13..fee0f7423e 100644 --- a/phpBB/styles/prosilver/template/captcha_recaptcha.html +++ b/phpBB/styles/prosilver/template/captcha_recaptcha.html @@ -1,5 +1,5 @@  <!-- IF S_TYPE == 1 --> -<div class="panel"> +<div class="panel captcha-panel">  	<div class="inner">  	<h3 class="captcha-title">{L_CONFIRMATION}</h3> @@ -11,24 +11,16 @@  <!-- IF S_RECAPTCHA_AVAILABLE -->  	<dl>  	<dt><label>{L_CONFIRM_CODE}{L_COLON}</label><br /><span>{L_RECAPTCHA_EXPLAIN}</span></dt> -	<dd> -		<script type="text/javascript"> -		// <![CDATA[ +	<dd class="captcha"> +		<script>  		var RecaptchaOptions = {  			lang : '{LA_RECAPTCHA_LANG}',  			theme : 'clean',  			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 src="{RECAPTCHA_SERVER}/challenge?k={RECAPTCHA_PUBKEY}{RECAPTCHA_ERRORGET}"></script> +  		<noscript>  		<div>  			<object data="{RECAPTCHA_SERVER}/noscript?k={RECAPTCHA_PUBKEY}{RECAPTCHA_ERRORGET}" type="text/html" height="300" width="500"></object><br /> @@ -37,6 +29,7 @@  		</div>  		</noscript> +		<a href="http://www.google.com/intl/{LA_RECAPTCHA_LANG}/policies/" target="_blank" class="recaptcha-responsive" style="display: none"><img alt="" width="71" height="36" src="{RECAPTCHA_SERVER}/img/clean/logo.png"></a>  	</dd>  	</dl>  <!-- ELSE --> diff --git a/phpBB/styles/prosilver/template/ucp_pm_viewmessage.html b/phpBB/styles/prosilver/template/ucp_pm_viewmessage.html index ddd95780d7..8a6ea1a0bb 100644 --- a/phpBB/styles/prosilver/template/ucp_pm_viewmessage.html +++ b/phpBB/styles/prosilver/template/ucp_pm_viewmessage.html @@ -62,6 +62,7 @@  									</div>  								<!-- ENDIF -->  							<!-- END contact --> +						</div>  					</div>  				</div>  			</dd> diff --git a/phpBB/styles/prosilver/theme/bidi.css b/phpBB/styles/prosilver/theme/bidi.css index 65123af4e5..2d79a78ccb 100644 --- a/phpBB/styles/prosilver/theme/bidi.css +++ b/phpBB/styles/prosilver/theme/bidi.css @@ -1121,4 +1121,20 @@ li.breadcrumbs span:first-child > a {  	.rtl .has-profile .post-buttons {  		left: 20px;  	} + +	/* Forms +	----------------------------------------*/ +	.rtl fieldset dt, .rtl fieldset.fields1 dt, .rtl fieldset.fields2 dt { +		float: none; +	} + +	.rtl fieldset dd, .rtl fieldset.fields1 dd, .rtl fieldset.fields2 dd { +		margin-right: 20px; +	} + +	@media only screen and (max-width: 500px), only screen and (max-device-width: 500px) { +		.captcha-panel dd.captcha { +			margin-right: 0; +		} +	}  } diff --git a/phpBB/styles/prosilver/theme/responsive.css b/phpBB/styles/prosilver/theme/responsive.css index ed3ba61334..8653042a69 100644 --- a/phpBB/styles/prosilver/theme/responsive.css +++ b/phpBB/styles/prosilver/theme/responsive.css @@ -350,6 +350,31 @@ fieldset.quick-login label[for="autologin"] {  	select, .inputbox {  		max-width: 260px;  	} + +	.captcha-panel dd.captcha { +		margin-left: 0; +	} + +	.captcha-panel dd.captcha-image img { +		width: 100%; +	} + +	#recaptcha_challenge_image, +	#recaptcha_response_field, +	.recaptchatable #recaptcha_image { +		width: 100% !important; +		height: auto !important; +	} + +	.recaptchatable tr td:last-child { +		display: none; +	} + +	.captcha-panel .recaptcha-responsive { +		display: inline-block !important; +		margin-top: 10px; +		vertical-align: middle; +	}  }  @media only screen and (max-width: 430px), only screen and (max-device-width: 430px) { diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index a340dbe5ad..75276d7bfc 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -1270,7 +1270,7 @@ while ($row = $db->sql_fetchrow($result))  			$user_cache[$poster_id] = $user_cache_data; -			$user_rank_data = phpbb_get_user_rank($row, false); +			$user_rank_data = phpbb_get_user_rank($row, $row['user_posts']);  			$user_cache[$poster_id]['rank_title'] = $user_rank_data['title'];  			$user_cache[$poster_id]['rank_image'] = $user_rank_data['img'];  			$user_cache[$poster_id]['rank_image_src'] = $user_rank_data['img_src'];  | 
