diff options
Diffstat (limited to 'phpBB/styles')
46 files changed, 604 insertions, 160 deletions
diff --git a/phpBB/styles/prosilver/template/ajax.js b/phpBB/styles/prosilver/template/ajax.js index 2528b96ece..394aca749b 100644 --- a/phpBB/styles/prosilver/template/ajax.js +++ b/phpBB/styles/prosilver/template/ajax.js @@ -126,11 +126,19 @@ phpbb.addAjaxCallback('post_delete', function() {  });  // This callback removes the approve / disapprove div or link. -phpbb.addAjaxCallback('post_approve', function(res) { -	var remove = (res.approved) ? $(this) : $(this).parents('.post'); +phpbb.addAjaxCallback('post_visibility', function(res) { +	var remove = (res.visible) ? $(this) : $(this).parents('.post');  	$(remove).css('pointer-events', 'none').fadeOut(function() {  		$(this).remove();  	}); + +	if (res.visible) +	{ +		// Remove the "Deleted by" message from the post on restoring. +		remove.parents('.post').find('.post_deleted_msg').css('pointer-events', 'none').fadeOut(function() { +			$(this).remove(); +		}); +	}  });  // This removes the parent row of the link or form that fired the callback. @@ -178,6 +186,20 @@ $('#qr_full_editor').click(function() {  }); +/** + * Make the display post links to use JS + */ +$('.display_post').click(function(e) { +	// Do not follow the link +	e.preventDefault(); + +	var post_id = $(this).attr('data-post-id'); +	$('#post_content' + post_id).show(); +	$('#profile' + post_id).show(); +	$('#post_hidden' + post_id).hide(); +}); + +  /**   * This AJAXifies the quick-mod tools. The reason it cannot be a standard @@ -208,6 +230,14 @@ $('#quick-mod-select').change(function () {  	$('#quickmodform').submit();  }); +$('#delete_permanent').click(function () { +	if ($(this).attr('checked')) { +		$('#delete_reason').hide(); +	} else { +		$('#delete_reason').show(); +	} +}); +  /**  * Toggle the member search panel in memberlist.php.  * diff --git a/phpBB/styles/prosilver/template/bbcode.html b/phpBB/styles/prosilver/template/bbcode.html index c0c0a2da46..909c09df5a 100644 --- a/phpBB/styles/prosilver/template/bbcode.html +++ b/phpBB/styles/prosilver/template/bbcode.html @@ -12,8 +12,8 @@  <!-- BEGIN quote_open --><blockquote class="uncited"><div><!-- END quote_open -->  <!-- BEGIN quote_close --></div></blockquote><!-- END quote_close --> -<!-- BEGIN code_open --><dl class="codebox"><dt>{L_CODE}{L_COLON} <a href="#" onclick="selectCode(this); return false;">{L_SELECT_ALL_CODE}</a></dt><dd><code><!-- END code_open --> -<!-- BEGIN code_close --></code></dd></dl><!-- END code_close --> +<!-- BEGIN code_open --><div class="codebox"><p>{L_CODE}{L_COLON} <a href="#" onclick="selectCode(this); return false;">{L_SELECT_ALL_CODE}</a></p><code><!-- END code_open --> +<!-- BEGIN code_close --></code></div><!-- END code_close -->  <!-- BEGIN inline_attachment_open --><div class="inline-attachment"><!-- END inline_attachment_open -->  <!-- BEGIN inline_attachment_close --></div><!-- END inline_attachment_close --> diff --git a/phpBB/styles/prosilver/template/confirm_delete_body.html b/phpBB/styles/prosilver/template/confirm_delete_body.html new file mode 100644 index 0000000000..759b6b46b2 --- /dev/null +++ b/phpBB/styles/prosilver/template/confirm_delete_body.html @@ -0,0 +1,72 @@ +<!-- IF S_AJAX_REQUEST --> +	<p>{MESSAGE_TEXT}</p> + +	<!-- IF not S_SOFTDELETED and (S_DELETE_REASON or (S_ALLOWED_DELETE and S_ALLOWED_SOFTDELETE)) --> +		<!-- IF S_ALLOWED_DELETE and S_ALLOWED_SOFTDELETE --> +			<label> +				<strong>{L_DELETE_PERMANENTLY}{L_COLON}</strong> +				<input id="delete_permanent" name="delete_permanent" type="checkbox" value="1" {S_CHECKED_PERMANENT} /> +				<!-- IF S_TOPIC_MODE -->{L_DELETE_TOPIC_PERMANENTLY}<!-- ELSE -->{L_DELETE_POST_PERMANENTLY}<!-- ENDIF --> +			</label> +		<!-- ENDIF --> + +		<!-- IF S_DELETE_REASON --> +			<label for="delete_reason"> +				<strong>{L_DELETE_REASON}{L_COLON}</strong><br /><span>{L_DELETE_REASON_EXPLAIN}</span><br /> +				<input type="text" name="delete_reason" value="" class="inputbox autowidth" maxlength="120" size="45" /> +			</label> +		<!-- ENDIF --> +	<!-- ENDIF --> + +	<fieldset class="submit-buttons"> +		<input type="button" name="confirm" value="{L_YES}" class="button1" />  +		<input type="button" name="cancel" value="{L_NO}" class="button2" /> +	</fieldset> + +<!-- ELSE --> + +<!-- INCLUDE overall_header.html --> + +<form id="confirm" action="{S_CONFIRM_ACTION}" method="post"> +<div class="panel"> +	<div class="inner"> + +	<h2>{MESSAGE_TITLE}</h2> + +	<p>{MESSAGE_TEXT}</p> + +	<!-- IF not S_SOFTDELETED and (S_DELETE_REASON or (S_ALLOWED_DELETE and S_ALLOWED_SOFTDELETE)) --> +	<fieldset class="fields1"> +		<!-- IF S_ALLOWED_DELETE and S_ALLOWED_SOFTDELETE --> +			<dl> +				<dt><label for="delete_permanent">{L_DELETE_PERMANENTLY}{L_COLON}</label></dt> +				<dd> +					<label for="delete_permanent"> +						<input id="delete_permanent" name="delete_permanent" type="checkbox" value="1" {S_CHECKED_PERMANENT} /> +						<!-- IF S_TOPIC_MODE -->{L_DELETE_TOPIC_PERMANENTLY}<!-- ELSE -->{L_DELETE_POST_PERMANENTLY}<!-- ENDIF --> +					</label> +				</dd> +			</dl> +		<!-- ENDIF --> + +		<!-- IF S_DELETE_REASON --> +			<dl> +				<dt><label for="delete_reason">{L_DELETE_REASON}{L_COLON}</label><br /><span>{L_DELETE_REASON_EXPLAIN}</span></dt> +				<dd><input type="text" name="delete_reason" id="delete_reason" value="" class="inputbox autowidth" maxlength="120" size="45" /></dd> +			</dl> +		<!-- ENDIF --> +	</fieldset> +	<!-- ENDIF --> + +	<fieldset class="submit-buttons"> +		{S_HIDDEN_FIELDS} +		<input type="submit" name="confirm" value="{L_YES}" class="button1" />   +		<input type="submit" name="cancel" value="{L_NO}" class="button2" /> +	</fieldset> + +	</div> +</div> +</form> + +<!-- INCLUDE overall_footer.html --> +<!-- ENDIF --> diff --git a/phpBB/styles/prosilver/template/editor.js b/phpBB/styles/prosilver/template/editor.js index 235cc0025b..4c70ee345f 100644 --- a/phpBB/styles/prosilver/template/editor.js +++ b/phpBB/styles/prosilver/template/editor.js @@ -301,7 +301,7 @@ function colorPalette(dir, width, height) {  	var r = 0,   		g = 0,   		b = 0, -		numberList = new Array(6); +		numberList = new Array(6),  		color = '',  		html = ''; diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index bb29f00490..eccb12e827 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -106,32 +106,51 @@ function dE(n, s, type) {  /**  * Alternate display of subPanels  */ -function subPanels(p) { -	var i, e, t; +jQuery(document).ready(function() { +	jQuery('.sub-panels').each(function() { + +		var panels = [], +			childNodes = jQuery('a[data-subpanel]', this).each(function() { +				panels.push(this.getAttribute('data-subpanel')); +			}), +			show_panel = this.getAttribute('data-show-panel'); + +		if (panels.length) { +			subPanels(show_panel); +			childNodes.click(function () { +				subPanels(this.getAttribute('data-subpanel')); +				return false; +			}); +		} -	if (typeof(p) === 'string') { -		show_panel = p; -	} +		function subPanels(p) { +			var i, e, t; -	for (i = 0; i < panels.length; i++) { -		e = document.getElementById(panels[i]); -		t = document.getElementById(panels[i] + '-tab'); +			if (typeof(p) === 'string') { +				show_panel = p; +			} -		if (e) { -			if (panels[i] === show_panel) { -				e.style.display = 'block'; -				if (t) { -					t.className = 'activetab'; -				} -			} else { -				e.style.display = 'none'; -				if (t) { -					t.className = ''; +			for (i = 0; i < panels.length; i++) { +				e = document.getElementById(panels[i]); +				t = document.getElementById(panels[i] + '-tab'); + +				if (e) { +					if (panels[i] === show_panel) { +						e.style.display = 'block'; +						if (t) { +							t.className = 'activetab'; +						} +					} else { +						e.style.display = 'none'; +						if (t) { +							t.className = ''; +						} +					}  				}  			}  		} -	} -} +	}); +});  /**  * Call print preview @@ -385,3 +404,22 @@ function apply_onkeypress_event() {  }  jQuery(document).ready(apply_onkeypress_event); + +/** +* Adjust HTML code for IE8 and older versions +*/ +(function($) { +	$(document).ready(function() { +		var test = document.createElement('div'), +			oldBrowser = (typeof test.style.borderRadius == 'undefined'); +		delete test; + +		if (!oldBrowser) { +			return; +		} + +		// Fix .linkslist.bulletin lists +		$('ul.linklist.bulletin li:first-child, ul.linklist.bulletin li.rightside:last-child').addClass('no-bulletin'); +	}); +})(jQuery); + diff --git a/phpBB/styles/prosilver/template/forumlist_body.html b/phpBB/styles/prosilver/template/forumlist_body.html index 0c67de76ec..9fb6b3d951 100644 --- a/phpBB/styles/prosilver/template/forumlist_body.html +++ b/phpBB/styles/prosilver/template/forumlist_body.html @@ -50,7 +50,11 @@  					<dd class="topics">{forumrow.TOPICS} <dfn>{L_TOPICS}</dfn></dd>  					<dd class="posts">{forumrow.POSTS} <dfn>{L_POSTS}</dfn></dd>  					<dd class="lastpost"><span> -						<!-- IF forumrow.U_UNAPPROVED_TOPICS --><a href="{forumrow.U_UNAPPROVED_TOPICS}">{UNAPPROVED_IMG}</a><!-- ENDIF --> +						<!-- IF forumrow.U_UNAPPROVED_TOPICS --> +							<a href="{forumrow.U_UNAPPROVED_TOPICS}">{UNAPPROVED_IMG}</a> +						<!-- ELSEIF forumrow.U_UNAPPROVED_POSTS --> +							<a href="{forumrow.U_UNAPPROVED_POSTS}">{UNAPPROVED_POST_IMG}</a> +						<!-- ENDIF -->  						<!-- IF forumrow.LAST_POST_TIME --><dfn>{L_LAST_POST}</dfn>  						<!-- IF forumrow.S_DISPLAY_SUBJECT -->  							<!-- EVENT forumlist_body_last_post_title_prepend --> diff --git a/phpBB/styles/prosilver/template/index_body.html b/phpBB/styles/prosilver/template/index_body.html index 57ad540a4a..e0a9279738 100644 --- a/phpBB/styles/prosilver/template/index_body.html +++ b/phpBB/styles/prosilver/template/index_body.html @@ -4,9 +4,16 @@  <!-- IF U_MCP --><p>{CURRENT_TIME} <br />[ <a href="{U_MCP}">{L_MCP}</a> ]</p><!-- ELSEIF S_USER_LOGGED_IN --><p>{CURRENT_TIME}</p><!-- ENDIF -->  <!-- IF S_DISPLAY_SEARCH or (S_USER_LOGGED_IN and not S_IS_BOT) --> -<ul class="linklist"> +<ul class="linklist bulletin">  	<!-- IF S_DISPLAY_SEARCH --> -		<li><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a><!-- IF S_LOAD_UNREADS --> • <a href="{U_SEARCH_UNREAD}">{L_SEARCH_UNREAD}</a><!-- ENDIF --><!-- IF S_USER_LOGGED_IN --> • <a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><!-- ENDIF --> • <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></li> +		<li><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a></li> +		<!-- IF S_LOAD_UNREADS -->  +			<li><a href="{U_SEARCH_UNREAD}">{L_SEARCH_UNREAD}</a></li> +		<!-- ENDIF --> +		<!-- IF S_USER_LOGGED_IN --> +			<li><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a></li> +		<!-- ENDIF --> +		<li><a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></li>  	<!-- ENDIF -->  	<!-- IF not S_IS_BOT and U_MARK_FORUMS --><li class="rightside"><a href="{U_MARK_FORUMS}" accesskey="m" data-ajax="mark_forums_read" data-overlay="false">{L_MARK_FORUMS_READ}</a></li><!-- ENDIF -->  </ul> diff --git a/phpBB/styles/prosilver/template/mcp_approve.html b/phpBB/styles/prosilver/template/mcp_approve.html index 6c8215c7c6..ab7f92e262 100644 --- a/phpBB/styles/prosilver/template/mcp_approve.html +++ b/phpBB/styles/prosilver/template/mcp_approve.html @@ -7,7 +7,7 @@  		<label><input type="checkbox" name="notify_poster" checked="checked" /> <!-- IF S_APPROVE -->{L_NOTIFY_POSTER_APPROVAL}<!-- ELSE -->{L_NOTIFY_POSTER_DISAPPROVAL}<!-- ENDIF --></label>  	<!-- ENDIF --> -	<!-- IF not S_APPROVE --> +	<!-- IF not S_APPROVE and not S_RESTORE and .reason -->  		<label><strong>{L_DISAPPROVE_REASON}{L_COLON}</strong>  		<select name="reason_id">  			<!-- BEGIN reason --><option value="{reason.ID}"<!-- IF reason.S_SELECTED --> selected="selected"<!-- ENDIF -->>{reason.DESCRIPTION}</option><!-- END reason --> @@ -45,7 +45,7 @@  			</dl>  		<!-- ENDIF --> -		<!-- IF not S_APPROVE --> +		<!-- IF not S_APPROVE and not S_RESTORE and .reason -->  			<dl class="fields2 nobg">  				<dt><label>{L_DISAPPROVE_REASON}{L_COLON}</label></dt>  				<dd><select name="reason_id"> diff --git a/phpBB/styles/prosilver/template/mcp_forum.html b/phpBB/styles/prosilver/template/mcp_forum.html index db5525fcd0..45e6c10d46 100644 --- a/phpBB/styles/prosilver/template/mcp_forum.html +++ b/phpBB/styles/prosilver/template/mcp_forum.html @@ -45,6 +45,7 @@  					<!-- IF topicrow.S_SELECT_TOPIC --><a href="{topicrow.U_SELECT_TOPIC}" class="topictitle">[ {L_SELECT_MERGE} ]</a>   <!-- ENDIF -->  					<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a>  					<!-- IF topicrow.S_TOPIC_UNAPPROVED or topicrow.S_POSTS_UNAPPROVED --><a href="{topicrow.U_MCP_QUEUE}">{topicrow.UNAPPROVED_IMG}</a> <!-- ENDIF --> +					<!-- IF topicrow.S_TOPIC_DELETED or topicrow.S_POSTS_DELETED --><a href="{topicrow.U_MCP_QUEUE}">{topicrow.DELETED_IMG}</a> <!-- ENDIF -->  					<!-- IF topicrow.S_TOPIC_REPORTED --><a href="{topicrow.U_MCP_REPORT}">{REPORTED_IMG}</a><!-- ENDIF -->  					<!-- IF topicrow.S_MOVED_TOPIC and S_CAN_DELETE --> <a href="{topicrow.U_DELETE_TOPIC}" class="topictitle">[ {L_DELETE_SHADOW_TOPIC} ]</a><!-- ENDIF -->  					<br /> @@ -128,6 +129,7 @@  	<select name="action">  		<option value="" selected="selected">{L_SELECT_ACTION}</option>  		<!-- IF S_CAN_DELETE --><option value="delete_topic">{L_DELETE}</option><!-- ENDIF --> +		<!-- IF S_CAN_RESTORE --><option value="restore_topic">{L_RESTORE}</option><!-- ENDIF -->  		<!-- IF S_CAN_MERGE --><option value="merge_topics">{L_MERGE}</option><!-- ENDIF -->  		<!-- IF S_CAN_MOVE --><option value="move">{L_MOVE}</option><!-- ENDIF -->  		<!-- IF S_CAN_FORK --><option value="fork">{L_FORK}</option><!-- ENDIF --> diff --git a/phpBB/styles/prosilver/template/mcp_post.html b/phpBB/styles/prosilver/template/mcp_post.html index 756a6eb114..4cdd62957c 100644 --- a/phpBB/styles/prosilver/template/mcp_post.html +++ b/phpBB/styles/prosilver/template/mcp_post.html @@ -79,6 +79,17 @@  				{S_FORM_TOKEN}  			</p>  			</form> +		<!-- ELSEIF S_POST_DELETED --> +			<form method="post" id="mcp_approve" action="{U_APPROVE_ACTION}"> + +			<p class="rules"> +				<input class="button2" type="submit" value="{L_DELETE}" name="action[disapprove]" />   +				<input class="button1" type="submit" value="{L_RESTORE}" name="action[restore]" /> +				<!-- IF not S_FIRST_POST --><input type="hidden" name="mode" value="unapproved_posts" /><!-- ENDIF --> +				<input type="hidden" name="post_id_list[]" value="{POST_ID}" /> +				{S_FORM_TOKEN} +			</p> +			</form>  		<!-- ENDIF -->  		<!-- IF S_MESSAGE_REPORTED --> @@ -100,6 +111,13 @@  			</dl>  		<!-- ENDIF --> +		<!-- IF DELETED_MESSAGE or DELETE_REASON --> +			<div class="notice"> +				{DELETED_MESSAGE} +				<!-- IF DELETE_REASON --><br /><strong>{L_REASON}{L_COLON}</strong> <em>{DELETE_REASON}</em><!-- ENDIF --> +			</div> +		<!-- ENDIF --> +  		<!-- IF SIGNATURE -->  			<div id="sig{POST_ID}" class="signature">{SIGNATURE}</div>  		<!-- ENDIF --> diff --git a/phpBB/styles/prosilver/template/mcp_queue.html b/phpBB/styles/prosilver/template/mcp_queue.html index d630606175..c2d39eff98 100644 --- a/phpBB/styles/prosilver/template/mcp_queue.html +++ b/phpBB/styles/prosilver/template/mcp_queue.html @@ -59,7 +59,13 @@  				</dd> -		 		<dd class="mark"><input type="checkbox" name="post_id_list[]" value="{postrow.POST_ID}" /></dd> +		 		<dd class="mark"> +					<!-- IF S_TOPICS --> +						<input type="checkbox" name="topic_id_list[]" value="{postrow.TOPIC_ID}" /> +					<!-- ELSE --> +						<input type="checkbox" name="post_id_list[]" value="{postrow.POST_ID}" /> +					<!-- ENDIF --> +				</dd>  			</dl>  		</li>  		<!-- ENDIF --> @@ -88,7 +94,13 @@  			</li>  		</ul>  	<!-- ELSE --> -		<p class="notopics"><strong><!-- IF S_TOPICS -->{L_NO_TOPICS_QUEUE}<!-- ELSE -->{L_NO_POSTS_QUEUE}<!-- ENDIF --></strong></p> +		<p class="notopics"><strong> +			<!-- IF S_RESTORE --> +				<!-- IF S_TOPICS -->{L_NO_TOPICS_DELETED}<!-- ELSE -->{L_NO_POSTS_DELETED}<!-- ENDIF --> +			<!-- ELSE --> +				<!-- IF S_TOPICS -->{L_NO_TOPICS_QUEUE}<!-- ELSE -->{L_NO_POSTS_QUEUE}<!-- ENDIF --> +			<!-- ENDIF --> +		</strong></p>  	<!-- ENDIF -->  	</div> @@ -96,9 +108,20 @@  <!-- IF .postrow -->  	<fieldset class="display-actions"> +		<!-- IF S_RESTORE --> +		<input class="button2" type="submit" name="action[delete]" value="{L_DELETE}" />  +		<input class="button1" type="submit" name="action[restore]" value="{L_RESTORE}" /> +		<!-- ELSE -->  		<input class="button2" type="submit" name="action[disapprove]" value="{L_DISAPPROVE}" />   		<input class="button1" type="submit" name="action[approve]" value="{L_APPROVE}" /> -		<div><a href="#" onclick="marklist('mcp', 'post_id_list', true); return false;">{L_MARK_ALL}</a> :: <a href="#" onclick="marklist('mcp', 'post_id_list', false); return false;">{L_UNMARK_ALL}</a></div> +		<!-- ENDIF --> +		<div> +			<!-- IF S_TOPICS --> +				<a href="#" onclick="marklist('mcp', 'topic_id_list', true); return false;">{L_MARK_ALL}</a> :: <a href="#" onclick="marklist('mcp', 'topic_id_list', false); return false;">{L_UNMARK_ALL}</a> +			<!-- ELSE --> +				<a href="#" onclick="marklist('mcp', 'post_id_list', true); return false;">{L_MARK_ALL}</a> :: <a href="#" onclick="marklist('mcp', 'post_id_list', false); return false;">{L_UNMARK_ALL}</a> +			<!-- ENDIF --> +		</div>  	</fieldset>  <!-- ENDIF -->  </form> diff --git a/phpBB/styles/prosilver/template/mcp_topic.html b/phpBB/styles/prosilver/template/mcp_topic.html index 8dfee55cbf..0fd5a9455f 100644 --- a/phpBB/styles/prosilver/template/mcp_topic.html +++ b/phpBB/styles/prosilver/template/mcp_topic.html @@ -3,33 +3,24 @@  <div class="tabs-container">  <h2><a href="{U_VIEW_TOPIC}">{L_TOPIC}{L_COLON} {TOPIC_TITLE}</a></h2> -<script type="text/javascript"> -// <![CDATA[ -var panels = new Array('display-panel', 'split-panel', 'merge-panel'); -  <!-- IF S_MERGE_VIEW --> -	var show_panel = 'merge-panel'; +	<!-- DEFINE $SHOW_PANEL = 'merge-panel' -->  <!-- ELSEIF S_SPLIT_VIEW --> -	var show_panel = 'split-panel'; +	<!-- DEFINE $SHOW_PANEL = 'split-panel' -->  <!-- ELSE --> -	var show_panel = 'display-panel'; +	<!-- DEFINE $SHOW_PANEL = 'display-panel' -->  <!-- ENDIF --> -onload_functions.push('subPanels()'); - -// ]]> -</script> - -<div id="minitabs"> +<div id="minitabs" class="sub-panels" data-show-panel="{$SHOW_PANEL}">  	<ul>  		<li id="display-panel-tab"<!-- IF not S_MERGE_VIEW --> class="activetab"<!-- ENDIF -->> -			<a href="#minitabs" onclick="subPanels('display-panel'); return false;"><span>{L_DISPLAY_OPTIONS}</span></a> +			<a href="#minitabs" data-subpanel="display-panel"><span>{L_DISPLAY_OPTIONS}</span></a>  		</li>  		<li id="split-panel-tab"> -			<a href="#minitabs" onclick="subPanels('split-panel'); return false;"><span>{L_SPLIT_TOPIC}</span></a> +			<a href="#minitabs" data-subpanel="split-panel"><span>{L_SPLIT_TOPIC}</span></a>  		</li>  		<li id="merge-panel-tab"<!-- IF S_MERGE_VIEW --> class="activetab"<!-- ENDIF -->> -			<a href="#minitabs" onclick="subPanels('merge-panel'); return false;"><span>{L_MERGE_POSTS}</span></a> +			<a href="#minitabs" data-subpanel="merge-panel"><span>{L_MERGE_POSTS}</span></a>  		</li>  	</ul>  </div> @@ -110,9 +101,10 @@ onload_functions.push('subPanels()');  				<h3><a href="{postrow.U_POST_DETAILS}">{postrow.POST_SUBJECT}</a></h3>  				<p class="author"><a href="#pr{postrow.POST_ID}">{postrow.MINI_POST_IMG}</a> {L_POSTED} {postrow.POST_DATE} {L_POST_BY_AUTHOR} <strong>{postrow.POST_AUTHOR_FULL}</strong><!-- IF postrow.U_MCP_DETAILS --> [ <a href="{postrow.U_MCP_DETAILS}">{L_POST_DETAILS}</a> ]<!-- ENDIF --></p> -				<!-- IF postrow.S_POST_UNAPPROVED or postrow.S_POST_REPORTED --> +				<!-- IF postrow.S_POST_UNAPPROVED or postrow.S_POST_DELETED or postrow.S_POST_REPORTED -->  				<p class="rules">  					<!-- IF postrow.S_POST_UNAPPROVED -->{UNAPPROVED_IMG} <a href="{postrow.U_MCP_APPROVE}"><strong>{L_POST_UNAPPROVED}</strong></a><br /><!-- ENDIF --> +					<!-- IF postrow.S_POST_DELETED -->{DELETED_IMG} <a href="{postrow.U_MCP_APPROVE}"><strong>{L_POST_DELETED}</strong></a><br /><!-- ENDIF -->  					<!-- IF postrow.S_POST_REPORTED -->{REPORTED_IMG} <a href="{postrow.U_MCP_REPORT}"><strong>{L_POST_REPORTED}</strong></a><!-- ENDIF -->  				</p>  				<!-- ENDIF --> @@ -159,6 +151,7 @@ onload_functions.push('subPanels()');  		<!-- IF S_CAN_APPROVE --><option value="approve">{L_APPROVE_POSTS}</option><!-- ENDIF -->  		<!-- IF S_CAN_LOCK --><option value="lock_post">{L_LOCK_POST_POSTS} [ {L_LOCK_POST_EXPLAIN} ]</option><option value="unlock_post">{L_UNLOCK_POST_POSTS}</option><!-- ENDIF -->  		<!-- IF S_CAN_DELETE --><option value="delete_post">{L_DELETE_POSTS}</option><!-- ENDIF --> +		<!-- IF S_CAN_RESTORE --><option value="restore">{L_RESTORE_POSTS}</option><!-- ENDIF -->  		<!-- IF S_CAN_MERGE --><option value="merge_posts"<!-- IF S_MERGE_VIEW --> selected="selected"<!-- ENDIF -->>{L_MERGE_POSTS}</option><!-- ENDIF -->  		<!-- IF S_CAN_SPLIT --><option value="split_all"<!-- IF S_SPLIT_VIEW --> selected="selected"<!-- ENDIF -->>{L_SPLIT_POSTS}</option><option value="split_beyond">{L_SPLIT_AFTER}</option><!-- ENDIF -->  		<!-- IF S_CAN_SYNC --><option value="resync">{L_RESYNC}</option><!-- ENDIF --> diff --git a/phpBB/styles/prosilver/template/overall_footer.html b/phpBB/styles/prosilver/template/overall_footer.html index eef9f53409..b948d9f627 100644 --- a/phpBB/styles/prosilver/template/overall_footer.html +++ b/phpBB/styles/prosilver/template/overall_footer.html @@ -5,16 +5,21 @@  	<div class="navbar">  		<div class="inner"> -		<ul class="linklist"> +		<ul class="linklist leftside bulletin">  			<li class="icon-home"><!-- IF U_SITE_HOME --><a href="{U_SITE_HOME}">{L_SITE_HOME}</a> <strong>‹</strong> <!-- ENDIF --><a href="{U_INDEX}" accesskey="h">{L_INDEX}</a> -				<!-- EVENT overall_footer_breadcrumb_append --></li> -				<!-- IF not S_IS_BOT --> -					<!-- IF U_WATCH_FORUM_LINK --><li <!-- IF S_WATCHING_FORUM -->class="icon-unsubscribe"<!-- ELSE -->class="icon-subscribe"<!-- ENDIF -->><a href="{U_WATCH_FORUM_LINK}" title="{S_WATCH_FORUM_TITLE}" data-ajax="toggle_link" data-toggle-class="icon-<!-- IF not S_WATCHING_FORUM -->unsubscribe<!-- ELSE -->subscribe<!-- ENDIF -->" data-toggle-text="{S_WATCH_FORUM_TOGGLE}" data-toggle-url="{U_WATCH_FORUM_TOGGLE}">{S_WATCH_FORUM_TITLE}</a></li><!-- ENDIF --> -					<!-- IF U_WATCH_TOPIC --><li <!-- IF S_WATCHING_TOPIC -->class="icon-unsubscribe"<!-- ELSE -->class="icon-subscribe"<!-- ENDIF -->><a href="{U_WATCH_TOPIC}" title="{S_WATCH_TOPIC_TITLE}" data-ajax="toggle_link" data-toggle-class="<!-- IF not S_WATCHING_TOPIC -->icon-unsubscribe<!-- ELSE -->icon-subscribe<!-- ENDIF -->" data-toggle-text="{S_WATCH_TOPIC_TOGGLE}" data-toggle-url="{U_WATCH_TOPIC_TOGGLE}">{S_WATCH_TOPIC_TITLE}</a></li><!-- ENDIF --> -					<!-- IF U_BOOKMARK_TOPIC --><li class="icon-bookmark"><a href="{U_BOOKMARK_TOPIC}" title="{L_BOOKMARK_TOPIC}" data-ajax="alt_text" data-alt-text="{S_BOOKMARK_TOGGLE}">{S_BOOKMARK_TOPIC}</a></li><!-- ENDIF --> -					<!-- IF U_BUMP_TOPIC --><li class="icon-bump"><a href="{U_BUMP_TOPIC}" title="{L_BUMP_TOPIC}" data-ajax="true">{L_BUMP_TOPIC}</a></li><!-- ENDIF --> -				<!-- ENDIF --> -			<li class="rightside"><!-- IF U_TEAM --><a href="{U_TEAM}">{L_THE_TEAM}</a> • <!-- ENDIF --><!-- IF not S_IS_BOT --><a href="{U_DELETE_COOKIES}" data-ajax="true" data-refresh="true">{L_DELETE_COOKIES}</a> • <!-- ENDIF -->{S_TIMEZONE}</li> +				<!-- EVENT overall_footer_breadcrumb_append --> +			</li> +			<!-- IF not S_IS_BOT --> +				<!-- IF U_WATCH_FORUM_LINK --><li <!-- IF S_WATCHING_FORUM -->class="icon-unsubscribe"<!-- ELSE -->class="icon-subscribe"<!-- ENDIF -->><a href="{U_WATCH_FORUM_LINK}" title="{S_WATCH_FORUM_TITLE}" data-ajax="toggle_link" data-toggle-class="icon-<!-- IF not S_WATCHING_FORUM -->unsubscribe<!-- ELSE -->subscribe<!-- ENDIF -->" data-toggle-text="{S_WATCH_FORUM_TOGGLE}" data-toggle-url="{U_WATCH_FORUM_TOGGLE}">{S_WATCH_FORUM_TITLE}</a></li><!-- ENDIF --> +				<!-- IF U_WATCH_TOPIC --><li <!-- IF S_WATCHING_TOPIC -->class="icon-unsubscribe"<!-- ELSE -->class="icon-subscribe"<!-- ENDIF -->><a href="{U_WATCH_TOPIC}" title="{S_WATCH_TOPIC_TITLE}" data-ajax="toggle_link" data-toggle-class="<!-- IF not S_WATCHING_TOPIC -->icon-unsubscribe<!-- ELSE -->icon-subscribe<!-- ENDIF -->" data-toggle-text="{S_WATCH_TOPIC_TOGGLE}" data-toggle-url="{U_WATCH_TOPIC_TOGGLE}">{S_WATCH_TOPIC_TITLE}</a></li><!-- ENDIF --> +				<!-- IF U_BOOKMARK_TOPIC --><li class="icon-bookmark"><a href="{U_BOOKMARK_TOPIC}" title="{L_BOOKMARK_TOPIC}" data-ajax="alt_text" data-alt-text="{S_BOOKMARK_TOGGLE}">{S_BOOKMARK_TOPIC}</a></li><!-- ENDIF --> +				<!-- IF U_BUMP_TOPIC --><li class="icon-bump"><a href="{U_BUMP_TOPIC}" title="{L_BUMP_TOPIC}" data-ajax="true">{L_BUMP_TOPIC}</a></li><!-- ENDIF --> +			<!-- ENDIF --> +		</ul> +		<ul class="linklist rightside bulletin"> +			<!-- IF U_TEAM --><li><a href="{U_TEAM}">{L_THE_TEAM}</a><!-- ENDIF --> +			<!-- IF not S_IS_BOT --><li><a href="{U_DELETE_COOKIES}" data-ajax="true" data-refresh="true">{L_DELETE_COOKIES}</a></li><!-- ENDIF --> +			<li>{S_TIMEZONE}</li>  		</ul>  		</div> diff --git a/phpBB/styles/prosilver/template/overall_header.html b/phpBB/styles/prosilver/template/overall_header.html index 25094bbf5d..ddbd917bd6 100644 --- a/phpBB/styles/prosilver/template/overall_header.html +++ b/phpBB/styles/prosilver/template/overall_header.html @@ -127,7 +127,7 @@  			</ul>  			<!-- IF not S_IS_BOT and S_USER_LOGGED_IN --> -			<ul class="linklist leftside"> +			<ul class="linklist leftside bulletin">  				<!-- IF S_NOTIFICATIONS_DISPLAY -->  				<li class="icon-notification">  					<a href="{U_VIEW_ALL_NOTIFICATIONS}" id="notification_list_button">{NOTIFICATIONS_COUNT}</a> @@ -170,12 +170,13 @@  				<li class="icon-ucp">  					<a href="{U_PROFILE}" title="{L_PROFILE}" accesskey="e">{L_PROFILE}</a>  						<!-- IF S_DISPLAY_PM --> (<a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD -->, {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --></a>)<!-- ENDIF --> -					<!-- IF S_DISPLAY_SEARCH --> • -					<a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a> -					<!-- ENDIF --> -					<!-- IF U_RESTORE_PERMISSIONS --> • -					<a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a> -					<!-- ENDIF --> +				</li> +				<!-- IF S_DISPLAY_SEARCH --> +					<li class="icon-search-self"><a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></li> +				<!-- ENDIF --> +				<!-- IF U_RESTORE_PERMISSIONS --> +					<li class="icon-restore-permissions"><a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a></li> +				<!-- ENDIF -->  				</li>  			</ul>  			<!-- ENDIF --> diff --git a/phpBB/styles/prosilver/template/posting_buttons.html b/phpBB/styles/prosilver/template/posting_buttons.html index 8a153a5ee8..798faa2ff7 100644 --- a/phpBB/styles/prosilver/template/posting_buttons.html +++ b/phpBB/styles/prosilver/template/posting_buttons.html @@ -32,9 +32,6 @@  		<!-- END custom_tags -->  	} -	var panels = new Array('options-panel', 'attach-panel', 'poll-panel'); -	var show_panel = 'options-panel'; -  	function change_palette()  	{  		dE('colour_palette'); diff --git a/phpBB/styles/prosilver/template/posting_editor.html b/phpBB/styles/prosilver/template/posting_editor.html index 3eac8fb03a..62e64a821e 100644 --- a/phpBB/styles/prosilver/template/posting_editor.html +++ b/phpBB/styles/prosilver/template/posting_editor.html @@ -67,14 +67,6 @@  		<!-- ENDIF -->  		<div class="clear"></div> - -	<!-- ENDIF --> - -	<!-- IF S_DELETE_ALLOWED --> -	<dl> -		<dt><label for="delete">{L_DELETE_POST}{L_COLON}</label></dt> -		<dd><label for="delete"><input type="checkbox" name="delete" id="delete" /> {L_DELETE_POST_WARN}</label></dd> -	</dl>  	<!-- ENDIF -->  	<!-- IF S_SHOW_TOPIC_ICONS or S_SHOW_PM_ICONS --> @@ -193,11 +185,11 @@  	<!-- ENDIF -->  	<!-- IF not S_PRIVMSGS and not S_SHOW_DRAFTS and not $SIG_EDIT eq 1 --> -		<div id="tabs"> +		<div id="tabs" class="sub-panels" data-show-panel="options-panel">  			<ul> -				<li id="options-panel-tab" class="activetab"><a href="#tabs" onclick="subPanels('options-panel'); return false;"><span>{L_OPTIONS}</span></a></li> -				<!-- IF S_SHOW_ATTACH_BOX --><li id="attach-panel-tab"><a href="#tabs" onclick="subPanels('attach-panel'); return false;"><span>{L_ADD_ATTACHMENT}</span></a></li><!-- ENDIF --> -				<!-- IF S_SHOW_POLL_BOX || S_POLL_DELETE --><li id="poll-panel-tab"><a href="#tabs" onclick="subPanels('poll-panel'); return false;"><span>{L_ADD_POLL}</span></a></li><!-- ENDIF --> +				<li id="options-panel-tab" class="activetab"><a href="#tabs" data-subpanel="options-panel"><span>{L_OPTIONS}</span></a></li> +				<!-- IF S_SHOW_ATTACH_BOX --><li id="attach-panel-tab"><a href="#tabs" data-subpanel="attach-panel"><span>{L_ADD_ATTACHMENT}</span></a></li><!-- ENDIF --> +				<!-- IF S_SHOW_POLL_BOX || S_POLL_DELETE --><li id="poll-panel-tab"><a href="#tabs" data-subpanel="poll-panel"><span>{L_ADD_POLL}</span></a></li><!-- ENDIF -->  			</ul>  		</div>  	<!-- ENDIF --> @@ -249,6 +241,17 @@  			</dl>  			<!-- ENDIF --> +			<!-- IF S_SOFTDELETE_ALLOWED or S_DELETE_ALLOWED --> +				<hr class="dashed" /> +				<dl> +					<dt><label for="delete">{L_DELETE_POST}{L_COLON}</label></dt> +					<dd><label for="delete"><input type="checkbox" name="delete" id="delete" {S_SOFTDELETE_CHECKED} /> {L_DELETE_POST_WARN}</label></dd> +					<!-- IF S_DELETE_ALLOWED and S_SOFTDELETE_ALLOWED --> +						<dd><label for="delete_permanent"><input type="checkbox" name="delete_permanent" id="delete_permanent" /> {L_DELETE_POST_PERMANENTLY}</label></dd> +					<!-- ENDIF --> +				</dl> +			<!-- ENDIF --> +  			<!-- IF S_EDIT_REASON -->  			<dl>  				<dt><label for="edit_reason">{L_EDIT_REASON}{L_COLON}</label></dt> diff --git a/phpBB/styles/prosilver/template/posting_layout.html b/phpBB/styles/prosilver/template/posting_layout.html index 4e9954ef81..c0bd0225de 100644 --- a/phpBB/styles/prosilver/template/posting_layout.html +++ b/phpBB/styles/prosilver/template/posting_layout.html @@ -79,12 +79,5 @@  <!-- IF S_DISPLAY_REVIEW --><!-- INCLUDE posting_topic_review.html --><!-- ENDIF -->  </form> -<!-- IF not S_PRIVMSGS --> -<script type="text/javascript"> -// <![CDATA[ -	subPanels(show_panel); -// ]]> -</script> -<!-- ENDIF -->  <!-- INCLUDE overall_footer.html --> diff --git a/phpBB/styles/prosilver/template/posting_smilies.html b/phpBB/styles/prosilver/template/posting_smilies.html index 01b74c710c..3d56a932b7 100644 --- a/phpBB/styles/prosilver/template/posting_smilies.html +++ b/phpBB/styles/prosilver/template/posting_smilies.html @@ -2,8 +2,8 @@  <script type="text/javascript">  // <![CDATA[ -	var form_name = 'postform'; -	var text_name = 'message'; +	var form_name = opener.form_name; +	var text_name = opener.text_name;  // ]]>  </script>  <script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/editor.js"></script> diff --git a/phpBB/styles/prosilver/template/search_results.html b/phpBB/styles/prosilver/template/search_results.html index e31c278a4b..54e8867526 100644 --- a/phpBB/styles/prosilver/template/search_results.html +++ b/phpBB/styles/prosilver/template/search_results.html @@ -63,9 +63,11 @@  					<dt <!-- IF searchresults.TOPIC_ICON_IMG -->style="background-image: url({T_ICONS_PATH}{searchresults.TOPIC_ICON_IMG}); background-repeat: no-repeat;"<!-- ENDIF --> title="{searchresults.TOPIC_FOLDER_IMG_ALT}">  						<div class="list-inner"> +							<!-- EVENT topiclist_row_prepend -->  							<!-- IF searchresults.S_UNREAD_TOPIC --><a href="{searchresults.U_NEWEST_POST}">{NEWEST_POST_IMG}</a> <!-- ENDIF -->  							<a href="{searchresults.U_VIEW_TOPIC}" class="topictitle">{searchresults.TOPIC_TITLE}</a> {searchresults.ATTACH_ICON_IMG}  							<!-- IF searchresults.S_TOPIC_UNAPPROVED or searchresults.S_POSTS_UNAPPROVED --><a href="{searchresults.U_MCP_QUEUE}">{searchresults.UNAPPROVED_IMG}</a> <!-- ENDIF --> +							<!-- IF searchresults.S_TOPIC_DELETED --><a href="{searchresults.U_MCP_QUEUE}">{DELETED_IMG}</a> <!-- ENDIF -->  							<!-- IF searchresults.S_TOPIC_REPORTED --><a href="{searchresults.U_MCP_REPORT}">{REPORTED_IMG}</a><!-- ENDIF --><br />  							<!-- IF .searchresults.pagination -->  							<div class="pagination"> @@ -82,6 +84,7 @@  							</div>  							<!-- ENDIF -->  							{L_POST_BY_AUTHOR} {searchresults.TOPIC_AUTHOR_FULL} » {searchresults.FIRST_POST_TIME} » {L_IN} <a href="{searchresults.U_VIEW_FORUM}">{searchresults.FORUM_TITLE}</a> +							<!-- EVENT topiclist_row_append -->  						</div>  					</dt> diff --git a/phpBB/styles/prosilver/template/viewforum_body.html b/phpBB/styles/prosilver/template/viewforum_body.html index 9cbe7bc45a..ecd993d7fb 100644 --- a/phpBB/styles/prosilver/template/viewforum_body.html +++ b/phpBB/styles/prosilver/template/viewforum_body.html @@ -144,8 +144,10 @@  			<dl class="icon {topicrow.TOPIC_IMG_STYLE}">  				<dt<!-- IF topicrow.TOPIC_ICON_IMG and S_TOPIC_ICONS --> style="background-image: url({T_ICONS_PATH}{topicrow.TOPIC_ICON_IMG}); background-repeat: no-repeat;"<!-- ENDIF --> title="{topicrow.TOPIC_FOLDER_IMG_ALT}">  					<div class="list-inner"> +						<!-- EVENT topiclist_row_prepend -->  						<!-- IF topicrow.S_UNREAD_TOPIC --><a href="{topicrow.U_NEWEST_POST}">{NEWEST_POST_IMG}</a> <!-- ENDIF --><a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a>  						<!-- IF topicrow.S_TOPIC_UNAPPROVED or topicrow.S_POSTS_UNAPPROVED --><a href="{topicrow.U_MCP_QUEUE}">{topicrow.UNAPPROVED_IMG}</a> <!-- ENDIF --> +						<!-- IF topicrow.S_TOPIC_DELETED --><a href="{topicrow.U_MCP_QUEUE}">{DELETED_IMG}</a> <!-- ENDIF -->  						<!-- IF topicrow.S_TOPIC_REPORTED --><a href="{topicrow.U_MCP_REPORT}">{REPORTED_IMG}</a><!-- ENDIF --><br />  						<!-- IF .topicrow.pagination -->  						<div class="pagination"> @@ -163,6 +165,7 @@  						<!-- ENDIF -->  						<!-- IF topicrow.ATTACH_ICON_IMG -->{topicrow.ATTACH_ICON_IMG} <!-- ENDIF -->{L_POST_BY_AUTHOR} {topicrow.TOPIC_AUTHOR_FULL} » {topicrow.FIRST_POST_TIME}  						<!-- IF topicrow.S_POST_GLOBAL and FORUM_ID != topicrow.FORUM_ID --> » {L_IN} <a href="{topicrow.U_VIEW_FORUM}">{topicrow.FORUM_NAME}</a><!-- ENDIF --> +						<!-- EVENT topiclist_row_append -->  					</div>  				</dt>  				<dd class="posts">{topicrow.REPLIES} <dfn>{L_REPLIES}</dfn></dd> diff --git a/phpBB/styles/prosilver/template/viewtopic_body.html b/phpBB/styles/prosilver/template/viewtopic_body.html index 9c0743d04d..a8bac42842 100644 --- a/phpBB/styles/prosilver/template/viewtopic_body.html +++ b/phpBB/styles/prosilver/template/viewtopic_body.html @@ -114,19 +114,30 @@  <!-- BEGIN postrow -->  	<!-- IF postrow.S_FIRST_UNREAD --><a id="unread"></a><!-- ENDIF --> -	<div id="p{postrow.POST_ID}" class="post <!-- IF postrow.S_ROW_COUNT is odd -->bg1<!-- ELSE -->bg2<!-- ENDIF --><!-- IF postrow.S_UNREAD_POST --> unreadpost<!-- ENDIF --><!-- IF postrow.S_POST_REPORTED --> reported<!-- ENDIF --><!-- IF postrow.S_ONLINE and not postrow.S_IGNORE_POST --> online<!-- ENDIF -->"> +	<div id="p{postrow.POST_ID}" class="post <!-- IF postrow.S_ROW_COUNT is odd -->bg1<!-- ELSE -->bg2<!-- ENDIF --><!-- IF postrow.S_UNREAD_POST --> unreadpost<!-- ENDIF --><!-- IF postrow.S_POST_REPORTED --> reported<!-- ENDIF --><!-- IF postrow.S_POST_DELETED --> deleted<!-- ENDIF --><!-- IF postrow.S_ONLINE and not postrow.S_POST_HIDDEN --> online<!-- ENDIF -->">  		<div class="inner">  		<div class="postbody"> -			<!-- IF postrow.S_IGNORE_POST --> -				<div class="ignore">{postrow.L_IGNORE_POST}</div> -			<!-- ELSE --> +			<!-- IF postrow.S_POST_HIDDEN --> +				<!-- IF postrow.S_POST_DELETED --> +					<div class="ignore" id="post_hidden{postrow.POST_ID}"> +						{postrow.L_POST_DELETED_MESSAGE}<br /> +						{postrow.L_POST_DISPLAY} +					</div> +				<!-- ELSEIF postrow.S_IGNORE_POST --> +					<div class="ignore" id="post_hidden{postrow.POST_ID}"> +						{postrow.L_IGNORE_POST}<br /> +						{postrow.L_POST_DISPLAY} +					</div> +				<!-- ENDIF --> +			<!-- ENDIF --> +			<div id="post_content{postrow.POST_ID}"<!-- IF postrow.S_POST_HIDDEN --> style="display: none;"<!-- ENDIF -->>  		<!-- IF not S_IS_BOT -->  			<!-- IF postrow.U_EDIT or postrow.U_DELETE or postrow.U_REPORT or postrow.U_WARN or postrow.U_INFO or postrow.U_QUOTE -->  				<ul class="profile-icons">  					<!-- IF postrow.U_EDIT --><li class="edit-icon"><a href="{postrow.U_EDIT}" title="{L_EDIT_POST}"><span>{L_EDIT_POST}</span></a></li><!-- ENDIF --> -					<!-- IF postrow.U_DELETE --><li class="delete-icon"><a href="{postrow.U_DELETE}" title="{L_DELETE_POST}" data-ajax="post_delete"<!-- IF postrow.POST_NUMBER == 1 --> data-refresh="true"<!-- ENDIF -->><span>{L_DELETE_POST}</span></a></li><!-- ENDIF --> +					<!-- IF postrow.U_DELETE --><li class="delete-icon"><a href="{postrow.U_DELETE}" title="{L_DELETE_POST}"><span>{L_DELETE_POST}</span></a></li><!-- ENDIF -->  					<!-- IF postrow.U_REPORT --><li class="report-icon"><a href="{postrow.U_REPORT}" title="{L_REPORT_POST}"><span>{L_REPORT_POST}</span></a></li><!-- ENDIF -->  					<!-- IF postrow.U_WARN --><li class="warn-icon"><a href="{postrow.U_WARN}" title="{L_WARN_USER}"><span>{L_WARN_USER}</span></a></li><!-- ENDIF -->  					<!-- IF postrow.U_INFO --><li class="info-icon"><a href="{postrow.U_INFO}" title="{L_INFORMATION}"><span>{L_INFORMATION}</span></a></li><!-- ENDIF --> @@ -138,8 +149,8 @@  			<h3 <!-- IF postrow.S_FIRST_ROW -->class="first"<!-- ENDIF -->><!-- IF postrow.POST_ICON_IMG --><img src="{T_ICONS_PATH}{postrow.POST_ICON_IMG}" width="{postrow.POST_ICON_IMG_WIDTH}" height="{postrow.POST_ICON_IMG_HEIGHT}" alt="" /> <!-- ENDIF --><a href="#p{postrow.POST_ID}">{postrow.POST_SUBJECT}</a></h3>  			<p class="author"><!-- IF S_IS_BOT -->{postrow.MINI_POST_IMG}<!-- ELSE --><a href="{postrow.U_MINI_POST}">{postrow.MINI_POST_IMG}</a><!-- ENDIF -->{L_POST_BY_AUTHOR} <strong>{postrow.POST_AUTHOR_FULL}</strong> » {postrow.POST_DATE} </p> -			<!-- IF postrow.S_POST_UNAPPROVED or postrow.S_POST_REPORTED --> -			<form method="post" class="mcp_approve" action="{postrow.U_APPROVE_ACTION}" data-ajax="post_approve"> +			<!-- IF postrow.S_POST_UNAPPROVED or postrow.S_POST_DELETED or postrow.S_POST_REPORTED --> +			<form method="post" class="mcp_approve" action="{postrow.U_APPROVE_ACTION}">  				<p class="rules">  					<!-- IF postrow.S_POST_UNAPPROVED -->  						{UNAPPROVED_IMG} <strong>{L_POST_UNAPPROVED}</strong> @@ -147,8 +158,18 @@  						<input class="button1" type="submit" value="{L_APPROVE}" name="action[approve]" />  						<input type="hidden" name="post_id_list[]" value="{postrow.POST_ID}" />  						{S_FORM_TOKEN} -					<br /><!-- ENDIF --> -					<!-- IF postrow.S_POST_REPORTED -->{REPORTED_IMG} <a href="{postrow.U_MCP_REPORT}"><strong>{L_POST_REPORTED}</strong></a><!-- ENDIF --> +						<br /> +					<!-- ELSEIF postrow.S_POST_DELETED --> +						{DELETED_IMG} <strong>{L_POST_DELETED}</strong> +						<input class="button2" type="submit" value="{L_DELETE}" name="action[disapprove]" /> +						<input class="button1" type="submit" value="{L_RESTORE}" name="action[restore]" /> +						<input type="hidden" name="post_id_list[]" value="{postrow.POST_ID}" /> +						{S_FORM_TOKEN} +						<br /> +					<!-- ENDIF --> +					<!-- IF postrow.S_POST_REPORTED --> +						{REPORTED_IMG} <a href="{postrow.U_MCP_REPORT}"><strong>{L_POST_REPORTED}</strong></a> +					<!-- ENDIF -->  				</p>  			</form>  			<!-- ENDIF --> @@ -177,20 +198,25 @@  			<!-- ENDIF -->  			<!-- IF postrow.S_DISPLAY_NOTICE --><div class="rules">{L_DOWNLOAD_NOTICE}</div><!-- ENDIF --> -			<!-- IF postrow.EDITED_MESSAGE or postrow.EDIT_REASON --> -				<div class="notice">{postrow.EDITED_MESSAGE} +			<!-- IF postrow.DELETED_MESSAGE or postrow.DELETE_REASON --> +				<div class="notice post_deleted_msg"> +					{postrow.DELETED_MESSAGE} +					<!-- IF postrow.DELETE_REASON --><br /><strong>{L_REASON}{L_COLON}</strong> <em>{postrow.DELETE_REASON}</em><!-- ENDIF --> +				</div> +			<!-- ELSEIF postrow.EDITED_MESSAGE or postrow.EDIT_REASON --> +				<div class="notice"> +					{postrow.EDITED_MESSAGE}  					<!-- IF postrow.EDIT_REASON --><br /><strong>{L_REASON}{L_COLON}</strong> <em>{postrow.EDIT_REASON}</em><!-- ENDIF -->  				</div>  			<!-- ENDIF -->  			<!-- IF postrow.BUMPED_MESSAGE --><div class="notice"><br /><br />{postrow.BUMPED_MESSAGE}</div><!-- ENDIF -->  			<!-- IF postrow.SIGNATURE --><div id="sig{postrow.POST_ID}" class="signature">{postrow.SIGNATURE}</div><!-- ENDIF --> -		<!-- ENDIF --> +			</div>  		</div> -		<!-- IF not postrow.S_IGNORE_POST --> -			<dl class="postprofile" id="profile{postrow.POST_ID}"> +		<dl class="postprofile" id="profile{postrow.POST_ID}"<!-- IF postrow.S_POST_HIDDEN --> style="display: none;"<!-- ENDIF -->>  			<dt>  				<!-- IF postrow.POSTER_AVATAR -->  					<!-- IF postrow.U_POST_AUTHOR --><a href="{postrow.U_POST_AUTHOR}">{postrow.POSTER_AVATAR}</a><!-- ELSE -->{postrow.POSTER_AVATAR}<!-- ENDIF --><br /> @@ -233,7 +259,6 @@  		<!-- ENDIF -->  		</dl> -	<!-- ENDIF -->  		<div class="back2top"><a href="#wrap" class="top" title="{L_BACK_TO_TOP}">{L_BACK_TO_TOP}</a></div> diff --git a/phpBB/styles/prosilver/theme/bidi.css b/phpBB/styles/prosilver/theme/bidi.css index f617428565..a921805327 100644 --- a/phpBB/styles/prosilver/theme/bidi.css +++ b/phpBB/styles/prosilver/theme/bidi.css @@ -422,7 +422,7 @@  	margin-left: 0;  } -.rtl blockquote dl.codebox { +.rtl blockquote .codebox {  	margin-right: 0;  } diff --git a/phpBB/styles/prosilver/theme/buttons.css b/phpBB/styles/prosilver/theme/buttons.css index 09021c771f..9336dd09f8 100644 --- a/phpBB/styles/prosilver/theme/buttons.css +++ b/phpBB/styles/prosilver/theme/buttons.css @@ -97,17 +97,9 @@ a.sendemail {  	padding: 1px 0 0 17px;  } -.icon-notification:before, .icon-notification:after { -	display: inline; -	font: inherit; -} - -.icon-notification:before { -	content: '['; -} - -.icon-notification:after { -	content: ']'; +ul.linklist.bulletin li.icon-home:before, ul.linklist.bulletin li.icon-ucp:before, +ul.linklist.bulletin li.icon-bookmark:before, ul.linklist.bulletin li.icon-bump:before, ul.linklist.bulletin li.icon-subscribe:before, ul.linklist.bulletin li.icon-unsubscribe:before { +	display: none;  }  /* Poster profile icons diff --git a/phpBB/styles/prosilver/theme/colours.css b/phpBB/styles/prosilver/theme/colours.css index 7d0462be1b..5548905ede 100644 --- a/phpBB/styles/prosilver/theme/colours.css +++ b/phpBB/styles/prosilver/theme/colours.css @@ -470,16 +470,16 @@ blockquote blockquote blockquote {  }  /* Code block */ -dl.codebox { +.codebox {  	background-color: #FFFFFF;  	border-color: #C9D2D8;  } -dl.codebox dt { +.codebox p {  	border-bottom-color:  #CCCCCC;  } -dl.codebox code { +.codebox code {  	color: #2E8B57;  } diff --git a/phpBB/styles/prosilver/theme/common.css b/phpBB/styles/prosilver/theme/common.css index 89b3ab7ada..a2b8034187 100644 --- a/phpBB/styles/prosilver/theme/common.css +++ b/phpBB/styles/prosilver/theme/common.css @@ -356,6 +356,38 @@ ul.rightside {  	text-align: right;  } +/* Bulletin icons for list items +----------------------------------------*/ +ul.linklist.bulletin li:before { +	display: inline-block; +	content: "\2022"; +	font-size: inherit; +	line-height: inherit; +	padding-right: 4px; +} + +ul.linklist.bulletin li:first-child:before, ul.linklist.bulletin li.rightside:last-child:before { +	display: none; +} + +ul.linklist.bulletin li.no-bulletin:before { +	display: none; +} + +.icon-notification:before, ul.linklist.bulletin li.icon-notification:before, .icon-notification:after { +	display: inline; +	font: inherit; +} + +.icon-notification:before, ul.linklist.bulletin li.icon-notification:before { +	content: '['; +	padding-right: 0; +} + +.icon-notification:after { +	content: ']'; +} +  /* Table styles  ----------------------------------------*/  table.table1 { @@ -726,6 +758,10 @@ p.rules a {  	clear: both;  } +#notification_list ul li:before, #notification_list ul li:after { +	display: none; +} +  #notification_list > .header {  	padding: 0 10px;  	font-family: Arial, "Helvetica Neue", Helvetica, Arial, sans-serif; diff --git a/phpBB/styles/prosilver/theme/content.css b/phpBB/styles/prosilver/theme/content.css index 4b8c972697..c56c7f9ef8 100644 --- a/phpBB/styles/prosilver/theme/content.css +++ b/phpBB/styles/prosilver/theme/content.css @@ -472,13 +472,13 @@ blockquote.uncited {  }  /* Code block */ -dl.codebox { +.codebox {  	padding: 3px;  	border: 1px solid transparent;  	font-size: 1em;  } -dl.codebox dt { +.codebox p {  	text-transform: uppercase;  	border-bottom: 1px solid transparent;  	margin-bottom: 3px; @@ -487,11 +487,11 @@ dl.codebox dt {  	display: block;  } -blockquote dl.codebox { +blockquote .codebox {  	margin-left: 0;  } -dl.codebox code { +.codebox code {  	/* Also see tweaks.css */  	overflow: auto;  	display: block; diff --git a/phpBB/styles/prosilver/theme/images/icon_topic_deleted.png b/phpBB/styles/prosilver/theme/images/icon_topic_deleted.png Binary files differnew file mode 100644 index 0000000000..494b4fb563 --- /dev/null +++ b/phpBB/styles/prosilver/theme/images/icon_topic_deleted.png diff --git a/phpBB/styles/prosilver/theme/imageset.css b/phpBB/styles/prosilver/theme/imageset.css index cb99e9e715..296c617f17 100644 --- a/phpBB/styles/prosilver/theme/imageset.css +++ b/phpBB/styles/prosilver/theme/imageset.css @@ -340,6 +340,11 @@ span.imageset {  	padding-left: 16px;  	padding-top: 14px;  } +.imageset.icon_topic_deleted { +	background-image: url("./images/icon_topic_deleted.png"); +	padding-left: 16px; +	padding-top: 14px; +}  .imageset.icon_topic_unapproved {  	background-image: url("./images/icon_topic_unapproved.gif");  	padding-left: 16px; diff --git a/phpBB/styles/prosilver/theme/print.css b/phpBB/styles/prosilver/theme/print.css index bc3ca80fdc..88de620493 100644 --- a/phpBB/styles/prosilver/theme/print.css +++ b/phpBB/styles/prosilver/theme/print.css @@ -136,4 +136,4 @@ div.spacer { clear: both; }  /* Accessibility tweaks: Mozilla.org */  .skip_link { display: none; } -dl.codebox dt { display: none; } +.codebox p { display: none; } diff --git a/phpBB/styles/subsilver2/template/bbcode.html b/phpBB/styles/subsilver2/template/bbcode.html index efcf5e1acb..5558716cad 100644 --- a/phpBB/styles/subsilver2/template/bbcode.html +++ b/phpBB/styles/subsilver2/template/bbcode.html @@ -21,11 +21,11 @@  <!-- END quote_close -->  <!-- BEGIN code_open --> -<div class="codetitle"><b>{L_CODE}{L_COLON}</b></div><div class="codecontent"> +<div class="codetitle"><b>{L_CODE}{L_COLON}</b></div><pre class="codecontent">  <!-- END code_open -->  <!-- BEGIN code_close --> -</div> +</pre>  <!-- END code_close -->  <!-- BEGIN inline_attachment_open --> diff --git a/phpBB/styles/subsilver2/template/confirm_delete_body.html b/phpBB/styles/subsilver2/template/confirm_delete_body.html new file mode 100644 index 0000000000..9e416f5195 --- /dev/null +++ b/phpBB/styles/subsilver2/template/confirm_delete_body.html @@ -0,0 +1,56 @@ +<!-- INCLUDE overall_header.html --> + +<div id="pagecontent"> + +	<form name="confirm" action="{S_CONFIRM_ACTION}" method="post"> +	 +	<table class="tablebg" width="100%" cellspacing="1"> +	<tr> +		<th>{MESSAGE_TITLE}</th> +	</tr> +	<tr> +		<td class="row1" align="center"> +			<br /> +			<p class="gen">{MESSAGE_TEXT}</p> +			<br /> + +			<!-- IF not S_SOFTDELETED and (S_DELETE_REASON or (S_ALLOWED_DELETE and S_ALLOWED_SOFTDELETE)) --> +				<table border="0" width="90%" cellspacing="2" cellpadding="1"> +				<!-- IF S_ALLOWED_DELETE and S_ALLOWED_SOFTDELETE --> +					<tr> +						<td class="row1" width="22%"><b class="gen">{L_DELETE_PERMANENTLY}{L_COLON}</b></td> +						<td class="row1" width="78%"> +							<input id="delete_permanent" name="delete_permanent" type="checkbox" value="1" {S_CHECKED_PERMANENT} /> +							<!-- IF S_TOPIC_MODE -->{L_DELETE_TOPIC_PERMANENTLY}<!-- ELSE -->{L_DELETE_POST_PERMANENTLY}<!-- ENDIF --> +						</td> +					</tr> +				<!-- ENDIF --> +				<!-- IF S_DELETE_REASON --> +					<tr> +						<td class="row1" valign="top"><span class="gen"><b>{L_DELETE_REASON}{L_COLON}</b></span><br /><span class="gensmall">{L_DELETE_REASON_EXPLAIN}</span></td> +						<td class="row1"><input type="text" name="delete_reason" value="" class="inputbox autowidth" maxlength="120" size="45" /></td> +					</tr> +				<!-- ENDIF --> +				</table> +				<br /> +			<!-- ENDIF --> +			{S_HIDDEN_FIELDS} +			<input type="submit" name="confirm" value="{L_YES}" class="btnmain" />   +			<input type="submit" name="cancel" value="{L_NO}" class="btnlite" /> +		</td> +	</tr> +	</table> +	 +	</form> +	 +</div> + +<br clear="all" /> + +<!-- INCLUDE breadcrumbs.html --> + +<br clear="all" /> + +<div align="{S_CONTENT_FLOW_END}"><!-- INCLUDE jumpbox.html --></div> + +<!-- INCLUDE overall_footer.html --> diff --git a/phpBB/styles/subsilver2/template/forumlist_body.html b/phpBB/styles/subsilver2/template/forumlist_body.html index 3e30561f3a..a222607ae8 100644 --- a/phpBB/styles/subsilver2/template/forumlist_body.html +++ b/phpBB/styles/subsilver2/template/forumlist_body.html @@ -64,7 +64,14 @@  						<!-- EVENT forumlist_body_last_post_title_prepend -->  						<p class="topicdetails"><a href="{forumrow.U_LAST_POST}" title="{forumrow.LAST_POST_SUBJECT}" class="lastsubject">{forumrow.LAST_POST_SUBJECT_TRUNCATED}</a></p>  					<!-- ENDIF --> -					<p class="topicdetails"><!-- IF forumrow.U_UNAPPROVED_TOPICS --><a href="{forumrow.U_UNAPPROVED_TOPICS}" class="imageset">{UNAPPROVED_IMG}</a> <!-- ENDIF -->{forumrow.LAST_POST_TIME}</p> +					<p class="topicdetails"> +						<!-- IF forumrow.U_UNAPPROVED_TOPICS --> +							<a href="{forumrow.U_UNAPPROVED_TOPICS}" class="imageset">{UNAPPROVED_IMG}</a>  +						<!-- ELSEIF forumrow.U_UNAPPROVED_POSTS --> +							<a href="{forumrow.U_UNAPPROVED_POSTS}" class="imageset">{UNAPPROVED_POST_IMG}</a>  +						<!-- ENDIF --> +						{forumrow.LAST_POST_TIME} +					</p>  					<p class="topicdetails">{forumrow.LAST_POSTER_FULL}  						<!-- IF not S_IS_BOT --><a href="{forumrow.U_LAST_POST}" class="imageset">{LAST_POST_IMG}</a><!-- ENDIF -->  					</p> diff --git a/phpBB/styles/subsilver2/template/mcp_approve.html b/phpBB/styles/subsilver2/template/mcp_approve.html index 5ad7d2f9b5..8c2ef0806b 100644 --- a/phpBB/styles/subsilver2/template/mcp_approve.html +++ b/phpBB/styles/subsilver2/template/mcp_approve.html @@ -16,7 +16,7 @@  			<!-- IF S_NOTIFY_POSTER -->  				<input type="checkbox" class="radio" name="notify_poster" checked="checked" /><span class="gen"><!-- IF S_APPROVE -->{L_NOTIFY_POSTER_APPROVAL}<!-- ELSE -->{L_NOTIFY_POSTER_DISAPPROVAL}<!-- ENDIF --></span><br />  			<!-- ENDIF --> -			<!-- IF not S_APPROVE --> +			<!-- IF not S_APPROVE and not S_RESTORE and .reason -->  				<br />  				<table border="0" width="90%" cellspacing="2" cellpadding="1">  				<tr> diff --git a/phpBB/styles/subsilver2/template/mcp_forum.html b/phpBB/styles/subsilver2/template/mcp_forum.html index 6972f14b79..b168bf3ac8 100644 --- a/phpBB/styles/subsilver2/template/mcp_forum.html +++ b/phpBB/styles/subsilver2/template/mcp_forum.html @@ -33,6 +33,9 @@  			<!-- IF topicrow.S_TOPIC_UNAPPROVED or topicrow.S_POSTS_UNAPPROVED -->  				<a href="{topicrow.U_MCP_QUEUE}" class="imageset">{topicrow.UNAPPROVED_IMG}</a>   			<!-- ENDIF --> +			<!-- IF topicrow.S_TOPIC_DELETED or topicrow.S_POSTS_DELETED --> +				<a href="{topicrow.U_MCP_QUEUE}" class="imageset">{topicrow.DELETED_IMG}</a>  +			<!-- ENDIF -->  			<!-- IF topicrow.S_TOPIC_REPORTED and topicrow.U_MCP_REPORT -->  				<a href="{topicrow.U_MCP_REPORT}" class="imageset">{REPORTED_IMG}</a>   			<!-- ENDIF --> @@ -58,6 +61,7 @@  		<select name="action">  			<option value="" selected="selected">{L_SELECT_ACTION}</option>  			<!-- IF S_CAN_DELETE --><option value="delete_topic">{L_DELETE}</option><!-- ENDIF --> +			<!-- IF S_CAN_RESTORE --><option value="restore_topic">{L_RESTORE}</option><!-- ENDIF -->  			<!-- IF S_CAN_MERGE --><option value="merge_topics">{L_MERGE}</option><!-- ENDIF -->  			<!-- IF S_CAN_MOVE --><option value="move">{L_MOVE}</option><!-- ENDIF -->  			<!-- IF S_CAN_FORK --><option value="fork">{L_FORK}</option><!-- ENDIF --> diff --git a/phpBB/styles/subsilver2/template/mcp_post.html b/phpBB/styles/subsilver2/template/mcp_post.html index 910accd09f..a3ebb00d06 100644 --- a/phpBB/styles/subsilver2/template/mcp_post.html +++ b/phpBB/styles/subsilver2/template/mcp_post.html @@ -50,7 +50,12 @@  </tr>  <tr>  	<td class="row1"><b class="gen"><!-- IF S_PM -->{L_PM_SUBJECT}<!-- ELSE -->{L_POST_SUBJECT}<!-- ENDIF -->{L_COLON} </b></td> -	<td class="row2"><span class="gen">{POST_SUBJECT}</span> <!-- IF S_POST_UNAPPROVED --><span class="postapprove">{UNAPPROVED_IMG} <a href="{U_MCP_APPROVE}">{L_POST_UNAPPROVED}</a></span> <!-- ENDIF --> <!-- IF S_POST_REPORTED and not S_MCP_REPORT --><span class="postreported">{REPORTED_IMG} <a href="{U_MCP_REPORT}">{L_POST_REPORTED}</a></span><!-- ENDIF --></td> +	<td class="row2"> +		<span class="gen">{POST_SUBJECT}</span> +		<!-- IF S_POST_UNAPPROVED --><span class="postapprove">{UNAPPROVED_IMG} <a href="{U_MCP_APPROVE}">{L_POST_UNAPPROVED}</a></span> <!-- ENDIF --> +		<!-- IF S_POST_DELETED --><span class="postapprove">{DELETED_IMG} <a href="{U_MCP_APPROVE}">{L_POST_DELETED}</a></span> <!-- ENDIF --> +		<!-- IF S_POST_REPORTED and not S_MCP_REPORT --><span class="postreported">{REPORTED_IMG} <a href="{U_MCP_REPORT}">{L_POST_REPORTED}</a></span><!-- ENDIF --> +	</td>  </tr>  <tr>  	<td class="row1" width="20%"><b class="gen"><!-- IF S_PM -->{L_PM_FROM}<!-- ELSE -->{L_POSTER}<!-- ENDIF -->{L_COLON} </b></td> diff --git a/phpBB/styles/subsilver2/template/mcp_queue.html b/phpBB/styles/subsilver2/template/mcp_queue.html index febde7e59c..7ca659b5da 100644 --- a/phpBB/styles/subsilver2/template/mcp_queue.html +++ b/phpBB/styles/subsilver2/template/mcp_queue.html @@ -23,15 +23,37 @@  		<td style="padding: 4px;" align="{S_CONTENT_FLOW_BEGIN}" valign="top" nowrap="nowrap"><span class="gen">{postrow.POST_AUTHOR_FULL}</span><br />  			<span class="gensmall">[ <a href="{postrow.U_VIEW_DETAILS}">{L_VIEW_DETAILS}</a> ]</span></td>  		<td class="postdetails" style="padding: 4px;" align="{S_CONTENT_FLOW_BEGIN}" valign="top" nowrap="nowrap">{postrow.POST_TIME}</td> -		<td align="center"><input type="checkbox" class="radio" name="post_id_list[]" value="{postrow.POST_ID}" /></td> +		<td align="center"> +			<!-- IF S_TOPICS --> +				<input type="checkbox" class="radio" name="topic_id_list[]" value="{postrow.TOPIC_ID}" /> +			<!-- ELSE --> +				<input type="checkbox" class="radio" name="post_id_list[]" value="{postrow.POST_ID}" /> +			<!-- ENDIF --> +		</td>  	</tr>  <!-- BEGINELSE -->  	<tr> -		<td class="row1" colspan="4" height="30" align="center" valign="middle"><span class="gen"><!-- IF S_TOPICS -->{L_NO_TOPICS_QUEUE}<!-- ELSE -->{L_NO_POSTS_QUEUE}<!-- ENDIF --></span></td> +		<td class="row1" colspan="4" height="30" align="center" valign="middle"> +			<span class="gen"> +				<!-- IF S_RESTORE --> +					<!-- IF S_TOPICS -->{L_NO_TOPICS_DELETED}<!-- ELSE -->{L_NO_POSTS_DELETED}<!-- ENDIF --> +				<!-- ELSE --> +					<!-- IF S_TOPICS -->{L_NO_TOPICS_QUEUE}<!-- ELSE -->{L_NO_POSTS_QUEUE}<!-- ENDIF --> +				<!-- ENDIF --> +			</span> +		</td>  	</tr>  <!-- END postrow -->  <tr> -	<td class="cat" colspan="4" align="center"><input class="btnmain" type="submit" name="action[approve]" value="{L_APPROVE}" />  <input class="btnlite" type="submit" name="action[disapprove]" value="{L_DISAPPROVE}" /></td> +	<td class="cat" colspan="4" align="center"> +		<!-- IF S_RESTORE --> +			<input class="btnlite" type="submit" name="action[delete]" value="{L_DELETE}" />   +			<input class="btnmain" type="submit" name="action[restore]" value="{L_RESTORE}" /> +		<!-- ELSE --> +			<input class="btnmain" type="submit" name="action[approve]" value="{L_APPROVE}" />   +			<input class="btnlite" type="submit" name="action[disapprove]" value="{L_DISAPPROVE}" /> +		<!-- ENDIF --> +	</td>  </tr>  </table>  {S_FORM_TOKEN} @@ -39,7 +61,15 @@  <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">  <tr> -	<td align="{S_CONTENT_FLOW_END}" valign="top" nowrap="nowrap"><b class="gensmall"><a href="#" onclick="marklist('mcp', '', true); return false;">{L_MARK_ALL}</a> :: <a href="#" onclick="marklist('mcp', '', false); return false;">{L_UNMARK_ALL}</a></b></td> +	<td align="{S_CONTENT_FLOW_END}" valign="top" nowrap="nowrap"> +		<b class="gensmall"> +			<!-- IF S_TOPICS --> +				<a href="#" onclick="marklist('mcp', 'topic_id_list', true); return false;">{L_MARK_ALL}</a> :: <a href="#" onclick="marklist('mcp', 'topic_id_list', false); return false;">{L_UNMARK_ALL}</a> +			<!-- ELSE --> +				<a href="#" onclick="marklist('mcp', 'post_id_list', true); return false;">{L_MARK_ALL}</a> :: <a href="#" onclick="marklist('mcp', 'post_id_list', false); return false;">{L_UNMARK_ALL}</a> +			<!-- ENDIF --> +		</b> +	</td>  </tr>  </table> diff --git a/phpBB/styles/subsilver2/template/mcp_topic.html b/phpBB/styles/subsilver2/template/mcp_topic.html index 014d8b9468..d3b4408243 100644 --- a/phpBB/styles/subsilver2/template/mcp_topic.html +++ b/phpBB/styles/subsilver2/template/mcp_topic.html @@ -112,6 +112,7 @@  					<tr valign="middle">  						<td width="100%">  							<!-- IF postrow.S_POST_UNAPPROVED and postrow.U_MCP_APPROVE --><span class="postapprove">{UNAPPROVED_IMG} <a href="{postrow.U_MCP_APPROVE}">{L_POST_UNAPPROVED}</a></span><br /><!-- ENDIF --> +							<!-- IF postrow.S_POST_DELETED and postrow.U_MCP_APPROVE --><span class="postapprove">{DELETED_IMG} <a href="{postrow.U_MCP_APPROVE}">{L_POST_DELETED}</a></span><br /><!-- ENDIF -->  							<!-- IF postrow.S_POST_REPORTED and postrow.U_MCP_REPORT --><span class="postreported">{REPORTED_IMG} <a href="{postrow.U_MCP_REPORT}">{L_POST_REPORTED}</a></span><!-- ENDIF -->  						</td>  						<td width="10" nowrap="nowrap">{postrow.MINI_POST_IMG}</td> @@ -133,6 +134,7 @@  		<!-- IF S_CAN_APPROVE --><option value="approve">{L_APPROVE_POSTS}</option><!-- ENDIF -->  		<!-- IF S_CAN_LOCK --><option value="lock_post">{L_LOCK_POST_POSTS} [ {L_LOCK_POST_EXPLAIN} ]</option><option value="unlock_post">{L_UNLOCK_POST_POSTS}</option><!-- ENDIF -->  		<!-- IF S_CAN_DELETE --><option value="delete_post">{L_DELETE_POSTS}</option><!-- ENDIF --> +		<!-- IF S_CAN_RESTORE --><option value="restore">{L_RESTORE_POSTS}</option><!-- ENDIF -->  		<!-- IF S_CAN_MERGE --><option value="merge_posts"<!-- IF ACTION eq 'merge' --> selected="selected"<!-- ENDIF -->>{L_MERGE_POSTS}</option><!-- ENDIF -->  		<!-- IF S_CAN_SPLIT --><option value="split_all"<!-- IF ACTION eq 'split' --> selected="selected"<!-- ENDIF -->>{L_SPLIT_POSTS}</option><option value="split_beyond">{L_SPLIT_AFTER}</option><!-- ENDIF -->  		<!-- IF S_CAN_SYNC --><option value="resync">{L_RESYNC}</option><!-- ENDIF --> diff --git a/phpBB/styles/subsilver2/template/overall_header.html b/phpBB/styles/subsilver2/template/overall_header.html index bc2307154b..b0d7ce6fab 100644 --- a/phpBB/styles/subsilver2/template/overall_header.html +++ b/phpBB/styles/subsilver2/template/overall_header.html @@ -154,8 +154,8 @@ function marklist(id, name, state)  		<table width="100%" cellspacing="0">  		<tr>  			<td class="genmed"> -				<!-- IF S_NOTIFICATIONS_DISPLAY --> -					[ <a href="{U_VIEW_ALL_NOTIFICATIONS}" id="notification_list_button">{NOTIFICATIONS_COUNT}</a> ] • +				<!-- IF S_NOTIFICATIONS_DISPLAY and not S_IS_BOT and S_USER_LOGGED_IN --> +					[ <a href="{U_VIEW_ALL_NOTIFICATIONS}" id="notification_list_button">{NOTIFICATIONS_COUNT}</a> ]   					<div id="notification_list" class="notification_list">  						<div class="row1 header">  							{L_NOTIFICATIONS} diff --git a/phpBB/styles/subsilver2/template/posting_body.html b/phpBB/styles/subsilver2/template/posting_body.html index 4feb4e955a..635b05aaa0 100644 --- a/phpBB/styles/subsilver2/template/posting_body.html +++ b/phpBB/styles/subsilver2/template/posting_body.html @@ -114,13 +114,6 @@  	</tr>  <!-- ENDIF --> -<!-- IF S_DELETE_ALLOWED --> -	<tr> -		<td class="row1"><b class="genmed">{L_DELETE_POST}{L_COLON}</b></td> -		<td class="row2"><input type="checkbox" class="radio" name="delete" /> <span class="gensmall">[ {L_DELETE_POST_WARN} ]</span></td> -	</tr> -<!-- ENDIF --> -  <!-- IF S_SHOW_TOPIC_ICONS or S_SHOW_PM_ICONS -->  	<tr>  		<td class="row1"><b class="genmed">{L_ICON}{L_COLON}</b></td> @@ -310,7 +303,7 @@  			<!-- IF S_TYPE_TOGGLE -->  				<tr> -					<td> </td> +					<td></td>  					<td class="gen"><!-- IF S_EDIT_POST -->{L_CHANGE_TOPIC_TO}<!-- ELSE -->{L_POST_TOPIC_AS}<!-- ENDIF -->{L_COLON} <!-- BEGIN topic_type --><input type="radio" class="radio" name="topic_type" value="{topic_type.VALUE}"{topic_type.S_CHECKED} />{topic_type.L_TOPIC_TYPE}  <!-- END topic_type --></td>  				</tr>  			<!-- ENDIF --> @@ -319,6 +312,26 @@  	</td>  </tr> +<!-- IF S_SOFTDELETE_ALLOWED or S_DELETE_ALLOWED --> +	<tr> +		<td class="row1" valign="top"><b class="genmed">{L_DELETE_POST}{L_COLON}</b></td> +		<td class="row2"> +			<table cellpadding="1"> +				<tr> +					<td><input type="checkbox" class="radio" name="delete" /></td> +					<td class="gen">{L_DELETE_POST_WARN}</td> +				</tr> +				<!-- IF S_SOFTDELETE_ALLOWED and S_DELETE_ALLOWED --> +					<tr> +						<td><input type="checkbox" class="radio" name="delete_permanent" /></td> +						<td class="gen">{L_DELETE_POST_PERMANENTLY}</td> +					</tr> +				<!-- ENDIF --> +			</table> +		</td> +	</tr> +<!-- ENDIF --> +  <!-- IF S_TOPIC_TYPE_ANNOUNCE or S_TOPIC_TYPE_STICKY -->  	<tr>  		<td class="row1"><b class="genmed">{L_STICK_TOPIC_FOR}{L_COLON}</b><br /><span class="gensmall">{L_STICKY_ANNOUNCE_TIME_LIMIT}</span></td> diff --git a/phpBB/styles/subsilver2/template/posting_smilies.html b/phpBB/styles/subsilver2/template/posting_smilies.html index 30a80e26ab..d0ced9ff12 100644 --- a/phpBB/styles/subsilver2/template/posting_smilies.html +++ b/phpBB/styles/subsilver2/template/posting_smilies.html @@ -2,8 +2,8 @@  <script type="text/javascript">  // <![CDATA[ -	var form_name = 'postform'; -	var text_name = 'message'; +	var form_name = opener.form_name; +	var text_name = opener.text_name;  // ]]>  </script>  <script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/editor.js"></script> diff --git a/phpBB/styles/subsilver2/template/search_results.html b/phpBB/styles/subsilver2/template/search_results.html index 8ced5a5301..19ba0b196a 100644 --- a/phpBB/styles/subsilver2/template/search_results.html +++ b/phpBB/styles/subsilver2/template/search_results.html @@ -34,11 +34,15 @@  			<!-- ENDIF -->  			</td>  			<td class="row1"> +				<!-- EVENT topiclist_row_prepend -->  				<!-- IF searchresults.S_UNREAD_TOPIC --><a href="{searchresults.U_NEWEST_POST}" class="imageset">{NEWEST_POST_IMG}</a><!-- ENDIF -->  				{searchresults.ATTACH_ICON_IMG} <a href="{searchresults.U_VIEW_TOPIC}" class="topictitle">{searchresults.TOPIC_TITLE}</a>  				<!-- IF searchresults.S_TOPIC_UNAPPROVED or searchresults.S_POSTS_UNAPPROVED -->  					<a href="{searchresults.U_MCP_QUEUE}" class="imageset">{searchresults.UNAPPROVED_IMG}</a>   				<!-- ENDIF --> +				<!-- IF searchresults.S_TOPIC_DELETED --> +					<a href="{searchresults.U_MCP_QUEUE}" class="imageset">{DELETED_IMG}</a>  +				<!-- ENDIF -->  				<!-- IF searchresults.S_TOPIC_REPORTED -->  					<a href="{searchresults.U_MCP_REPORT}" class="imageset">{REPORTED_IMG}</a>   				<!-- ENDIF --> @@ -55,6 +59,7 @@  					] </p>  				<!-- ENDIF -->  				<p class="gensmall">{L_IN} <a href="{searchresults.U_VIEW_FORUM}">{searchresults.FORUM_TITLE}</a></p> +				<!-- EVENT topiclist_row_append -->  			</td>  			<td class="row2" width="100" align="center"><p class="topicauthor">{searchresults.TOPIC_AUTHOR_FULL}</p></td>  			<td class="row1" width="50" align="center"><p class="topicdetails">{searchresults.TOPIC_REPLIES}</p></td> diff --git a/phpBB/styles/subsilver2/template/ucp_profile_signature.html b/phpBB/styles/subsilver2/template/ucp_profile_signature.html index 467018dd1c..85c8b0f616 100644 --- a/phpBB/styles/subsilver2/template/ucp_profile_signature.html +++ b/phpBB/styles/subsilver2/template/ucp_profile_signature.html @@ -1,13 +1,22 @@  <!-- INCLUDE ucp_header.html --> +<script type="text/javascript"> +// <![CDATA[ +	var form_name = 'ucp'; +	var text_name = 'signature'; +// ]]> +</script> +  <!-- DEFINE $S_SIGNATURE = 1 -->  <table class="tablebg" width="100%" cellspacing="1">  <tr>  	<th colspan="2">{L_TITLE}</th>  </tr> +<!-- IF not S_SMILIES_ALLOWED -->  <tr>  	<td colspan="2" class="row1">{L_SIGNATURE_EXPLAIN}</td>  </tr> +<!-- ENDIF -->  <!-- IF ERROR -->  	<tr> @@ -16,14 +25,32 @@  <!-- ENDIF -->  <tr> -	<td colspan="2" class="row2"> -		<script type="text/javascript"> -		// <![CDATA[ -			var form_name = 'ucp'; -			var text_name = 'signature'; -		// ]]> -		</script> -		 +	<!-- IF S_SMILIES_ALLOWED --> +	<td class="row1" width="22%" valign="top"> +		{L_SIGNATURE_EXPLAIN} +		<table width="100%" cellspacing="5" cellpadding="0" border="0" align="center"> +			<tr> +				<td class="gensmall" align="center"><b>{L_SMILIES}</b></td> +			</tr> +			<tr> +				<td align="center"> +				<!-- BEGIN smiley --> +					<a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;" style="line-height: 20px;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" hspace="2" vspace="2" /></a> +				<!-- END smiley --> +				</td> +			</tr> +			<!-- IF S_SHOW_SMILEY_LINK --> +			<tr> +				<td align="center"><a class="nav" href="{U_MORE_SMILIES}" onclick="popup(this.href, 300, 350, '_phpbbsmilies'); return false;">{L_MORE_SMILIES}</a></td> +			</tr> +			<!-- ENDIF --> +		</table> +	</td> +	<td class="row2"> +	<!-- ELSE --> +	<td class="row2" colspan="2"> +	<!-- ENDIF --> +  		<table cellspacing="0" cellpadding="2" border="0" width="99%">  		<!-- INCLUDE posting_buttons.html -->  		<tr> diff --git a/phpBB/styles/subsilver2/template/viewforum_body.html b/phpBB/styles/subsilver2/template/viewforum_body.html index 664a6a26c5..dfbe0a605b 100644 --- a/phpBB/styles/subsilver2/template/viewforum_body.html +++ b/phpBB/styles/subsilver2/template/viewforum_body.html @@ -40,10 +40,14 @@  				<td class="row1" width="25" align="center"><!-- IF topicrow.TOPIC_ICON_IMG --><img src="{T_ICONS_PATH}{topicrow.TOPIC_ICON_IMG}" width="{topicrow.TOPIC_ICON_IMG_WIDTH}" height="{topicrow.TOPIC_ICON_IMG_HEIGHT}" alt="" title="" /><!-- ENDIF --></td>  			<!-- ENDIF -->  			<td class="row1"> +				<!-- EVENT topiclist_row_prepend -->  				<!-- IF topicrow.S_UNREAD_TOPIC --><a href="{topicrow.U_NEWEST_POST}" class="imageset">{NEWEST_POST_IMG}</a><!-- ENDIF -->  				{topicrow.ATTACH_ICON_IMG} <!-- IF topicrow.S_HAS_POLL or topicrow.S_TOPIC_MOVED --><b>{topicrow.TOPIC_TYPE}</b> <!-- ENDIF --><a title="{L_POSTED}{L_COLON} {topicrow.FIRST_POST_TIME}" href="{topicrow.U_VIEW_TOPIC}"class="topictitle">{topicrow.TOPIC_TITLE}</a>  				<!-- IF topicrow.S_TOPIC_UNAPPROVED or topicrow.S_POSTS_UNAPPROVED --> -					<a href="{topicrow.U_MCP_QUEUE}" class="imageset">{UNAPPROVED_IMG}</a>  +					<a href="{topicrow.U_MCP_QUEUE}" class="imageset">{topicrow.UNAPPROVED_IMG}</a>  +				<!-- ENDIF --> +				<!-- IF topicrow.S_TOPIC_DELETED --> +					<a href="{topicrow.U_MCP_QUEUE}" class="imageset">{DELETED_IMG}</a>   				<!-- ENDIF -->  				<!-- IF topicrow.S_TOPIC_REPORTED -->  					<a href="{topicrow.U_MCP_REPORT}" class="imageset">{REPORTED_IMG}</a>  @@ -60,6 +64,7 @@  					<!-- END pagination -->  					] </p>  				<!-- ENDIF --> +				<!-- EVENT topiclist_row_append -->  			</td>  			<td class="row2" width="130" align="center"><p class="topicauthor">{topicrow.TOPIC_AUTHOR_FULL}</p></td>  			<td class="row1" width="50" align="center"><p class="topicdetails">{topicrow.REPLIES}</p></td> @@ -200,11 +205,15 @@  					<td class="row1" width="25" align="center"><!-- IF topicrow.TOPIC_ICON_IMG --><img src="{T_ICONS_PATH}{topicrow.TOPIC_ICON_IMG}" width="{topicrow.TOPIC_ICON_IMG_WIDTH}" height="{topicrow.TOPIC_ICON_IMG_HEIGHT}" alt="" title="" /><!-- ENDIF --></td>  				<!-- ENDIF -->  				<td class="row1"> +					<!-- EVENT topiclist_row_prepend -->  					<!-- IF topicrow.S_UNREAD_TOPIC --><a href="{topicrow.U_NEWEST_POST}" class="imageset">{NEWEST_POST_IMG}</a><!-- ENDIF -->  					{topicrow.ATTACH_ICON_IMG} <!-- IF topicrow.S_HAS_POLL or topicrow.S_TOPIC_MOVED --><b>{topicrow.TOPIC_TYPE}</b> <!-- ENDIF --><a title="{L_POSTED}{L_COLON} {topicrow.FIRST_POST_TIME}" href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a>  					<!-- IF topicrow.S_TOPIC_UNAPPROVED or topicrow.S_POSTS_UNAPPROVED -->  						<a href="{topicrow.U_MCP_QUEUE}" class="imageset">{topicrow.UNAPPROVED_IMG}</a>   					<!-- ENDIF --> +					<!-- IF topicrow.S_TOPIC_DELETED --> +						<a href="{topicrow.U_MCP_QUEUE}" class="imageset">{DELETED_IMG}</a>  +					<!-- ENDIF -->  					<!-- IF topicrow.S_TOPIC_REPORTED -->  						<a href="{topicrow.U_MCP_REPORT}" class="imageset">{REPORTED_IMG}</a>   					<!-- ENDIF --> @@ -221,6 +230,7 @@  						] </p>  					<!-- ENDIF -->  					<!-- IF topicrow.S_POST_GLOBAL and FORUM_ID != topicrow.FORUM_ID --><p class="gensmall">{L_IN} <a href="{topicrow.U_VIEW_FORUM}">{topicrow.FORUM_NAME}</a></p><!-- ENDIF --> +					<!-- EVENT topiclist_row_append -->  				</td>  				<td class="row2" width="130" align="center"><p class="topicauthor">{topicrow.TOPIC_AUTHOR_FULL}</p></td>  				<td class="row1" width="50" align="center"><p class="topicdetails">{topicrow.REPLIES}</p></td> diff --git a/phpBB/styles/subsilver2/template/viewtopic_body.html b/phpBB/styles/subsilver2/template/viewtopic_body.html index b561b99abd..299b8219eb 100644 --- a/phpBB/styles/subsilver2/template/viewtopic_body.html +++ b/phpBB/styles/subsilver2/template/viewtopic_body.html @@ -136,8 +136,19 @@  	<!-- ENDIF -->  	<!-- IF postrow.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row2"><!-- ENDIF --> -	<!-- IF postrow.S_IGNORE_POST --> -			<td class="gensmall" colspan="2" height="25" align="center"><!-- IF postrow.S_FIRST_UNREAD --><a name="unread"></a><!-- ENDIF --><a name="p{postrow.POST_ID}"></a>{postrow.L_IGNORE_POST}</td> +	<!-- IF postrow.S_POST_HIDDEN --> +			<td class="gensmall" colspan="2" height="25" align="center"> +				<!-- IF postrow.S_FIRST_UNREAD --><a name="unread"></a><!-- ENDIF --> +				<a name="p{postrow.POST_ID}"></a> +				<!-- IF postrow.S_POST_HIDDEN --> +					<!-- IF postrow.S_POST_DELETED --> +						{postrow.L_POST_DELETED_MESSAGE} +					<!-- ELSEIF postrow.S_IGNORE_POST --> +						{postrow.L_IGNORE_POST} +					<!-- ENDIF --> +					<br />{postrow.L_POST_DISPLAY} +				<!-- ENDIF --> +			</td>  	<!-- ELSE -->  			<td align="center" valign="middle"> @@ -207,10 +218,14 @@  				<table width="100%" cellspacing="5">  				<tr>  					<td> -					<!-- IF postrow.S_POST_UNAPPROVED or postrow.S_POST_REPORTED --> +					<!-- IF postrow.S_POST_UNAPPROVED or postrow.S_POST_DELETED or postrow.S_POST_REPORTED -->  						<table width="100%" cellspacing="0">  						<tr> -							<td class="gensmall"><!-- IF postrow.S_POST_UNAPPROVED --><span class="postapprove">{UNAPPROVED_IMG} <a href="{postrow.U_MCP_APPROVE}">{L_POST_UNAPPROVED}</a></span><br /> <!-- ENDIF --> <!-- IF postrow.S_POST_REPORTED --><span class="postreported">{REPORTED_IMG} <a href="{postrow.U_MCP_REPORT}">{L_POST_REPORTED}</a></span><!-- ENDIF --></td> +							<td class="gensmall"> +								<!-- IF postrow.S_POST_UNAPPROVED --><span class="postapprove">{UNAPPROVED_IMG} <a href="{postrow.U_MCP_APPROVE}">{L_POST_UNAPPROVED}</a></span><br /> <!-- ENDIF --> +								<!-- IF postrow.S_POST_DELETED --><span class="postapprove">{DELETED_IMG} <a href="{postrow.U_MCP_RESTORE}">{L_POST_DELETED}</a></span><br /> <!-- ENDIF --> +								<!-- IF postrow.S_POST_REPORTED --><span class="postreported">{REPORTED_IMG} <a href="{postrow.U_MCP_REPORT}">{L_POST_REPORTED}</a></span><!-- ENDIF --> +							</td>  						</tr>  						</table> @@ -241,7 +256,22 @@  						<div class="postbody"><br />_________________<br />{postrow.SIGNATURE}</div>  					<!-- ENDIF --> -					<!-- IF postrow.EDITED_MESSAGE or postrow.EDIT_REASON --> +					<!-- IF postrow.DELETED_MESSAGE or postrow.DELETE_REASON --> +						<!-- IF postrow.DELETE_REASON --> +							<br /><br /> +							<table class="tablebg" width="100%" cellspacing="1"> +							<tr> +								<td class="row3"><span class="gensmall">{postrow.DELETED_MESSAGE}</span></td> +							</tr> +							<tr> +								<td class="row2"><span class="genmed">{postrow.DELETE_REASON}</span></td> +							</tr> +							</table> +						<!-- ELSE --> +							<br /><br /> +							<span class="gensmall">{postrow.DELETED_MESSAGE}</span> +						<!-- ENDIF --> +					<!-- ELSEIF postrow.EDITED_MESSAGE or postrow.EDIT_REASON -->  						<!-- IF postrow.EDIT_REASON -->  							<br /><br />  							<table class="tablebg" width="100%" cellspacing="1"> diff --git a/phpBB/styles/subsilver2/theme/images/icon_topic_deleted.png b/phpBB/styles/subsilver2/theme/images/icon_topic_deleted.png Binary files differnew file mode 100644 index 0000000000..494b4fb563 --- /dev/null +++ b/phpBB/styles/subsilver2/theme/images/icon_topic_deleted.png diff --git a/phpBB/styles/subsilver2/theme/stylesheet.css b/phpBB/styles/subsilver2/theme/stylesheet.css index df46c91d8d..bfb80a53b5 100644 --- a/phpBB/styles/subsilver2/theme/stylesheet.css +++ b/phpBB/styles/subsilver2/theme/stylesheet.css @@ -985,6 +985,11 @@ a.imageset {  	padding-left: 19px;  	padding-top: 18px;  } +.imageset.icon_topic_deleted { +	background-image: url("./images/icon_topic_deleted.png"); +	padding-left: 14px; +	padding-top: 14px; +}  /* English images for fallback */  | 
