diff options
Diffstat (limited to 'phpBB/styles')
13 files changed, 47 insertions, 27 deletions
diff --git a/phpBB/styles/prosilver/template/editor.js b/phpBB/styles/prosilver/template/editor.js index c4c3483766..ddc862bb8c 100644 --- a/phpBB/styles/prosilver/template/editor.js +++ b/phpBB/styles/prosilver/template/editor.js @@ -200,6 +200,12 @@ function addquote(post_id, username, l_wrote)  	var theSelection = '';  	var divarea = false; +	if (l_wrote === undefined) +	{ +		// Backwards compatibility +		l_wrote = 'wrote'; +	} +  	if (document.all)  	{  		divarea = document.all[message_name]; diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index 6fb3778952..4a85858df5 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -98,16 +98,21 @@ function viewableArea(e, itself)  /**  * Set display of page element  * s[-1,0,1] = hide,toggle display,show +* type = string: inline, block, inline-block or other CSS "display" type  */ -function dE(n, s) +function dE(n, s, type)  { -	var e = document.getElementById(n); +	if (!type) +	{ +		type = 'block'; +	} +	var e = document.getElementById(n);  	if (!s)  	{ -		s = (e.style.display == '' || e.style.display == 'block') ? -1 : 1; +		s = (e.style.display == '' || e.style.display == type) ? -1 : 1;  	} -	e.style.display = (s == 1) ? 'block' : 'none'; +	e.style.display = (s == 1) ? type : 'none';  }  /** diff --git a/phpBB/styles/prosilver/template/posting_topic_review.html b/phpBB/styles/prosilver/template/posting_topic_review.html index 879e6bb7fc..a05f057e21 100644 --- a/phpBB/styles/prosilver/template/posting_topic_review.html +++ b/phpBB/styles/prosilver/template/posting_topic_review.html @@ -24,7 +24,7 @@  		<div class="postbody" id="pr{topic_review_row.POST_ID}">  			<!-- IF topic_review_row.POSTER_QUOTE and topic_review_row.DECODED_MESSAGE -->  			<ul class="profile-icons"> -				<li class="quote-icon"><a href="#postingbox" onclick="addquote({topic_review_row.POST_ID}, '{topic_review_row.POSTER_QUOTE}', '{L_WROTE}');" title="{L_QUOTE} {topic_review_row.POST_AUTHOR}"><span>{L_QUOTE} {topic_review_row.POST_AUTHOR}</span></a></li> +				<li class="quote-icon"><a href="#postingbox" onclick="addquote({topic_review_row.POST_ID}, '{topic_review_row.POSTER_QUOTE}', '{LA_WROTE}');" title="{L_QUOTE} {topic_review_row.POST_AUTHOR}"><span>{L_QUOTE} {topic_review_row.POST_AUTHOR}</span></a></li>  			</ul>  			<!-- ENDIF -->  			<!-- IF topic_review_row.U_MCP_DETAILS --><div class="right-box"><a href="{topic_review_row.U_MCP_DETAILS}">{L_POST_DETAILS}</a></div><!-- ENDIF --> diff --git a/phpBB/styles/prosilver/template/ucp_pm_history.html b/phpBB/styles/prosilver/template/ucp_pm_history.html index 32b8072082..9051eb2ee0 100644 --- a/phpBB/styles/prosilver/template/ucp_pm_history.html +++ b/phpBB/styles/prosilver/template/ucp_pm_history.html @@ -1,7 +1,7 @@  <h3 id="review">  	<span class="right-box"><a href="#review" onclick="viewableArea(getElementById('topicreview'), true); var rev_text = getElementById('review').getElementsByTagName('a').item(0).firstChild; if (rev_text.data == '{LA_EXPAND_VIEW}'){rev_text.data = '{LA_COLLAPSE_VIEW}'; } else if (rev_text.data == '{LA_COLLAPSE_VIEW}'){rev_text.data = '{LA_EXPAND_VIEW}'};">{L_EXPAND_VIEW}</a></span> -	{L_MESSAGE_HISTORY}: {HISTORY_TITLE} +	{L_MESSAGE_HISTORY}:  </h3>  <div id="topicreview"> @@ -17,7 +17,7 @@  		<div class="postbody" id="pr{history_row.MSG_ID}">  			<!-- IF history_row.U_QUOTE or history_row.MESSAGE_AUTHOR_QUOTE -->  			<ul class="profile-icons"> -				<li class="quote-icon"><a <!-- IF history_row.U_QUOTE -->href="{history_row.U_QUOTE}"<!-- ELSE -->href="#postingbox" onclick="addquote({history_row.MSG_ID}, '{history_row.MESSAGE_AUTHOR_QUOTE}', '{L_WROTE}');"<!-- ENDIF --> title="{L_QUOTE} {history_row.MESSAGE_AUTHOR}"><span>{L_QUOTE} {history_row.MESSAGE_AUTHOR}</span></a></li> +				<li class="quote-icon"><a <!-- IF history_row.U_QUOTE -->href="{history_row.U_QUOTE}"<!-- ELSE -->href="#postingbox" onclick="addquote({history_row.MSG_ID}, '{history_row.MESSAGE_AUTHOR_QUOTE}', '{LA_WROTE}');"<!-- ENDIF --> title="{L_QUOTE} {history_row.MESSAGE_AUTHOR}"><span>{L_QUOTE} {history_row.MESSAGE_AUTHOR}</span></a></li>  			</ul>  			<!-- ENDIF --> diff --git a/phpBB/styles/prosilver/template/viewforum_body.html b/phpBB/styles/prosilver/template/viewforum_body.html index 309375c269..12073a39d2 100644 --- a/phpBB/styles/prosilver/template/viewforum_body.html +++ b/phpBB/styles/prosilver/template/viewforum_body.html @@ -39,7 +39,7 @@  	<!-- IF not S_IS_BOT and S_DISPLAY_POST_INFO -->  		<div class="buttons"> -			<div class="<!-- IF S_IS_LOCKED -->locked-icon<!-- ELSE -->post-icon<!-- ENDIF -->"><a href="{U_POST_NEW_TOPIC}" title="<!-- IF S_IS_LOCKED -->{L_FORUM_LOCKED}<!-- ELSE -->{L_POST_TOPIC}<!-- ENDIF -->"><span></span><!-- IF S_IS_LOCKED -->{L_FORUM_LOCKED}<!-- ELSE -->{L_POST_TOPIC}<!-- ENDIF --></a></div> +			<div class="<!-- IF S_IS_LOCKED -->locked-icon<!-- ELSE -->post-icon<!-- ENDIF -->" title="<!-- IF S_IS_LOCKED -->{L_FORUM_LOCKED}<!-- ELSE -->{L_POST_TOPIC}<!-- ENDIF -->"><a href="{U_POST_NEW_TOPIC}"><span></span><!-- IF S_IS_LOCKED -->{L_FORUM_LOCKED}<!-- ELSE -->{L_POST_TOPIC}<!-- ENDIF --></a></div>  		</div>  	<!-- ENDIF --> diff --git a/phpBB/styles/prosilver/theme/bidi.css b/phpBB/styles/prosilver/theme/bidi.css index 109312ac1b..f441784d85 100644 --- a/phpBB/styles/prosilver/theme/bidi.css +++ b/phpBB/styles/prosilver/theme/bidi.css @@ -236,6 +236,7 @@  }  .rtl a.top2 { +	background-position: 100% 50%;  	padding-left: 0;  	padding-right: 15px;  } diff --git a/phpBB/styles/subsilver2/template/attachment.html b/phpBB/styles/subsilver2/template/attachment.html index d54994fe67..833bd4d55f 100644 --- a/phpBB/styles/subsilver2/template/attachment.html +++ b/phpBB/styles/subsilver2/template/attachment.html @@ -58,13 +58,13 @@  		<!-- ELSEIF _file.S_FLASH_FILE -->  			<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=5,0,0,0" width="{_file.WIDTH}" height="{_file.HEIGHT}"> -				<param name="movie" value="{_file.U_DOWNLOAD_LINK}" /> +				<param name="movie" value="{_file.U_VIEW_LINK}" />  				<param name="play" value="true" />  				<param name="loop" value="true" />  				<param name="quality" value="high" />  				<param name="allowScriptAccess" value="never" />  				<param name="allowNetworking" value="internal" /> -				<embed src="{_file.U_DOWNLOAD_LINK}" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" width="{_file.WIDTH}" height="{_file.HEIGHT}" play="true" loop="true" quality="high" allowscriptaccess="never" allownetworking="internal"></embed> +				<embed src="{_file.U_VIEW_LINK}" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" width="{_file.WIDTH}" height="{_file.HEIGHT}" play="true" loop="true" quality="high" allowscriptaccess="never" allownetworking="internal"></embed>  			</object>  		<!-- ELSEIF _file.S_QUICKTIME_FILE -->  			<object id="qtstream_{_file.ATTACH_ID}" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0" width="0" height="16"> diff --git a/phpBB/styles/subsilver2/template/editor.js b/phpBB/styles/subsilver2/template/editor.js index 54bd3450d0..cd22812bab 100644 --- a/phpBB/styles/subsilver2/template/editor.js +++ b/phpBB/styles/subsilver2/template/editor.js @@ -202,6 +202,12 @@ function addquote(post_id, username, l_wrote)  	var theSelection = '';  	var divarea = false; +	if (l_wrote === undefined) +	{ +		// Backwards compatibility +		l_wrote = 'wrote'; +	} +  	if (document.all)  	{  		divarea = document.all[message_name]; @@ -234,6 +240,7 @@ function addquote(post_id, username, l_wrote)  			theSelection = theSelection.replace(/<\;/ig, '<');  			theSelection = theSelection.replace(/>\;/ig, '>');  			theSelection = theSelection.replace(/&\;/ig, '&'); +			theSelection = theSelection.replace(/ \;/ig, ' ');  		}  		else if (document.all)  		{ @@ -381,8 +388,8 @@ function colorPalette(dir, width, height)  			for (b = 0; b < 5; b++)  			{  				color = String(numberList[r]) + String(numberList[g]) + String(numberList[b]); -				document.write('<td bgcolor="#' + color + '">'); -				document.write('<a href="#" onclick="bbfontstyle(\'[color=#' + color + ']\', \'[/color]\'); return false;" onmouseover="helpline(\'s\');"  onmouseout="helpline(\'tip\');"><img src="images/spacer.gif" width="' + width + '" height="' + height + '" alt="#' + color + '" title="#' + color + '" /></a>'); +				document.write('<td bgcolor="#' + color + '" style="width: ' + width + 'px; height: ' + height + 'px;">'); +				document.write('<a href="#" onclick="bbfontstyle(\'[color=#' + color + ']\', \'[/color]\'); return false;"><img src="images/spacer.gif" width="' + width + '" height="' + height + '" alt="#' + color + '" title="#' + color + '" /></a>');  				document.writeln('</td>');  			} diff --git a/phpBB/styles/subsilver2/template/index_body.html b/phpBB/styles/subsilver2/template/index_body.html index 863e4f7bee..8faf76e9ee 100644 --- a/phpBB/styles/subsilver2/template/index_body.html +++ b/phpBB/styles/subsilver2/template/index_body.html @@ -89,11 +89,11 @@  <table class="legend">  <tr> -	<td width="20" align="center">{FORUM_NEW_IMG}</td> -	<td><span class="gensmall">{L_NEW_POSTS}</span></td> +	<td width="20" align="center">{FORUM_UNREAD_IMG}</td> +	<td><span class="gensmall">{L_UNREAD_POSTS}</span></td>  	<td>  </td>  	<td width="20" align="center">{FORUM_IMG}</td> -	<td><span class="gensmall">{L_NO_NEW_POSTS}</span></td> +	<td><span class="gensmall">{L_NO_UNREAD_POSTS}</span></td>  	<td>  </td>  	<td width="20" align="center">{FORUM_LOCKED_IMG}</td>  	<td><span class="gensmall">{L_FORUM_LOCKED}</span></td> diff --git a/phpBB/styles/subsilver2/template/posting_buttons.html b/phpBB/styles/subsilver2/template/posting_buttons.html index 0aab79b7aa..2fff9c1991 100644 --- a/phpBB/styles/subsilver2/template/posting_buttons.html +++ b/phpBB/styles/subsilver2/template/posting_buttons.html @@ -19,6 +19,7 @@  			o: '{LA_BBCODE_O_HELP}',  			p: '{LA_BBCODE_P_HELP}',  			w: '{LA_BBCODE_W_HELP}', +			a: '{LA_BBCODE_A_HELP}',  			s: '{LA_BBCODE_S_HELP}',  			f: '{LA_BBCODE_F_HELP}',  			e: '{LA_BBCODE_E_HELP}', diff --git a/phpBB/styles/subsilver2/template/posting_topic_review.html b/phpBB/styles/subsilver2/template/posting_topic_review.html index 5456ad09b6..54bbf6e553 100644 --- a/phpBB/styles/subsilver2/template/posting_topic_review.html +++ b/phpBB/styles/subsilver2/template/posting_topic_review.html @@ -36,7 +36,7 @@  						<td> </td>  						<td class="gensmall" valign="middle" nowrap="nowrap"><b>{L_POST_SUBJECT}:</b> </td>  						<td class="gensmall" width="100%" valign="middle">{topic_review_row.POST_SUBJECT}</td> -						<td valign="top" nowrap="nowrap"> <!-- IF topic_review_row.POSTER_QUOTE and topic_review_row.DECODED_MESSAGE --><a href="#" onclick="addquote({topic_review_row.POST_ID},'{topic_review_row.POSTER_QUOTE}', '{L_WROTE}'); return false;">{QUOTE_IMG}</a><!-- ENDIF --></td> +						<td valign="top" nowrap="nowrap"> <!-- IF topic_review_row.POSTER_QUOTE and topic_review_row.DECODED_MESSAGE --><a href="#" onclick="addquote({topic_review_row.POST_ID},'{topic_review_row.POSTER_QUOTE}', '{LA_WROTE}'); return false;">{QUOTE_IMG}</a><!-- ENDIF --></td>  					</tr>  					</table>  				</td> diff --git a/phpBB/styles/subsilver2/template/ucp_pm_history.html b/phpBB/styles/subsilver2/template/ucp_pm_history.html index d11822cc39..8754acaaa2 100644 --- a/phpBB/styles/subsilver2/template/ucp_pm_history.html +++ b/phpBB/styles/subsilver2/template/ucp_pm_history.html @@ -6,7 +6,7 @@  <table class="tablebg" width="100%" cellspacing="1">  <tr> -	<th align="center">{L_MESSAGE_HISTORY} - {HISTORY_TITLE}</th> +	<th align="center">{L_MESSAGE_HISTORY}</th>  </tr>  <tr>  	<td class="row1"><div style="overflow: auto; width: 100%; height: 300px;"> @@ -59,7 +59,7 @@  		<!-- IF history_row.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row2"><!-- ENDIF -->  			<td class="gensmall"><a href="{history_row.U_VIEW_MESSAGE}">{L_VIEW_PM}</a></td> -			<td><div class="gensmall" style="float: {S_CONTENT_FLOW_BEGIN};"> <!-- IF history_row.U_PROFILE --><a href="{history_row.U_PROFILE}">{PROFILE_IMG}</a> <!-- ENDIF --> <!-- IF history_row.U_EMAIL --><a href="{history_row.U_EMAIL}">{EMAIL_IMG}</a> <!-- ENDIF --> </div> <div class="gensmall" style="float: {S_CONTENT_FLOW_END};"><!-- IF history_row.U_QUOTE or history_row.MESSAGE_AUTHOR_QUOTE --><a <!-- IF history_row.U_QUOTE -->href="{history_row.U_QUOTE}"<!-- ELSE -->href="#" onclick="addquote({history_row.MSG_ID}, '{history_row.MESSAGE_AUTHOR_QUOTE}', '{L_WROTE}'); return false;"<!-- ENDIF -->>{QUOTE_IMG}</a> <!-- ENDIF --> <!-- IF history_row.U_POST_REPLY_PM --><a href="{history_row.U_POST_REPLY_PM}">{REPLY_IMG}</a><!-- ENDIF --> </div></td> +			<td><div class="gensmall" style="float: {S_CONTENT_FLOW_BEGIN};"> <!-- IF history_row.U_PROFILE --><a href="{history_row.U_PROFILE}">{PROFILE_IMG}</a> <!-- ENDIF --> <!-- IF history_row.U_EMAIL --><a href="{history_row.U_EMAIL}">{EMAIL_IMG}</a> <!-- ENDIF --> </div> <div class="gensmall" style="float: {S_CONTENT_FLOW_END};"><!-- IF history_row.U_QUOTE or history_row.MESSAGE_AUTHOR_QUOTE --><a <!-- IF history_row.U_QUOTE -->href="{history_row.U_QUOTE}"<!-- ELSE -->href="#" onclick="addquote({history_row.MSG_ID}, '{history_row.MESSAGE_AUTHOR_QUOTE}', '{LA_WROTE}'); return false;"<!-- ENDIF -->>{QUOTE_IMG}</a> <!-- ENDIF --> <!-- IF history_row.U_POST_REPLY_PM --><a href="{history_row.U_POST_REPLY_PM}">{REPLY_IMG}</a><!-- ENDIF --> </div></td>  		</tr>  		<tr>  			<td class="spacer" colspan="2"><img src="images/spacer.gif" alt="" width="1" height="1" /></td> diff --git a/phpBB/styles/subsilver2/template/viewforum_body.html b/phpBB/styles/subsilver2/template/viewforum_body.html index 387a749e24..6511fa5349 100644 --- a/phpBB/styles/subsilver2/template/viewforum_body.html +++ b/phpBB/styles/subsilver2/template/viewforum_body.html @@ -281,31 +281,31 @@  		<td align="{S_CONTENT_FLOW_BEGIN}" valign="top">  			<table cellspacing="3" cellpadding="0" border="0">  			<tr> -				<td width="20" style="text-align: center;">{FOLDER_NEW_IMG}</td> -				<td class="gensmall">{L_NEW_POSTS}</td> +				<td width="20" style="text-align: center;">{FOLDER_UNREAD_IMG}</td> +				<td class="gensmall">{L_UNREAD_POSTS}</td>  				<td>  </td>  				<td width="20" style="text-align: center;">{FOLDER_IMG}</td> -				<td class="gensmall">{L_NO_NEW_POSTS}</td> +				<td class="gensmall">{L_NO_UNREAD_POSTS}</td>  				<td>  </td>  				<td width="20" style="text-align: center;">{FOLDER_ANNOUNCE_IMG}</td>  				<td class="gensmall">{L_ICON_ANNOUNCEMENT}</td>  			</tr>  			<tr> -				<td style="text-align: center;">{FOLDER_HOT_NEW_IMG}</td> -				<td class="gensmall">{L_NEW_POSTS_HOT}</td> +				<td style="text-align: center;">{FOLDER_HOT_UNREAD_IMG}</td> +				<td class="gensmall">{L_UNREAD_POSTS_HOT}</td>  				<td>  </td>  				<td style="text-align: center;">{FOLDER_HOT_IMG}</td> -				<td class="gensmall">{L_NO_NEW_POSTS_HOT}</td> +				<td class="gensmall">{L_NO_UNREAD_POSTS_HOT}</td>  				<td>  </td>  				<td style="text-align: center;">{FOLDER_STICKY_IMG}</td>  				<td class="gensmall">{L_ICON_STICKY}</td>  			</tr>  			<tr> -				<td style="text-align: center;">{FOLDER_LOCKED_NEW_IMG}</td> -				<td class="gensmall">{L_NEW_POSTS_LOCKED}</td> +				<td style="text-align: center;">{FOLDER_LOCKED_UNREAD_IMG}</td> +				<td class="gensmall">{L_UNREAD_POSTS_LOCKED}</td>  				<td>  </td>  				<td style="text-align: center;">{FOLDER_LOCKED_IMG}</td> -				<td class="gensmall">{L_NO_NEW_POSTS_LOCKED}</td> +				<td class="gensmall">{L_NO_UNREAD_POSTS_LOCKED}</td>  				<td>  </td>  				<td style="text-align: center;">{FOLDER_MOVED_IMG}</td>  				<td class="gensmall">{L_TOPIC_MOVED}</td>  | 
