<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="./xsl/modx.prosilver.en.xsl"?>
<!-- 
	NOTICE: Please open this file in your web browser. If presented with a security warning, you may safely tell it to allow the blocked content.
-->
<!--For security purposes, please check: http://www.phpbb.com/mods/ for the latest version of this MOD. Although MODs are checked before being allowed in the MODs Database there is no guarantee that there are no security problems within the MOD. No support will be given for MODs not found within the MODs Database which can be found at http://www.phpbb.com/mods/-->
<mod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.phpbb.com/mods/xml/modx-1.2.5.xsd">
	<header>
		<license>http://opensource.org/licenses/gpl-license.php GNU General Public License v2</license>
		<title lang="en">Prime Multi-Quote</title>
		<description lang="en">This file provides instructions for installing the subsilver2 template portions of this MOD. See the main install file for any additional information about the MOD.</description>
	    <author-notes lang="en">This file provides instructions for installing the subsilver2 template portions of this MOD. See the main install file for any additional information about the MOD.</author-notes>
		<author-group>
			<author>
				<realname>Ken F. Innes IV</realname>
				<email>primehalo@gmail.com</email>
				<username>primehalo</username>
			</author>
		</author-group>
		<mod-version>1.0.1a</mod-version>
		<installation>
			<level>easy</level>
			<time>120</time>
			<target-version>3.0.1</target-version>
		</installation>
		<link-group>
			<link type="parent" href="../install.xml" lang="en">Main Install File</link>
		</link-group>
	</header>
	<action-group>
		<copy>
 			<file from="root/styles/subsilver2/template/prime_multi_quote.js" to="styles/subsilver2/template/prime_multi_quote.js" />
		</copy>

		<open src="styles/subsilver2/template/viewtopic_body.html">
			<edit>
				<find><![CDATA[<!-- INCLUDE overall_header.html -->]]></find>
				<action type="after-add"><![CDATA[<!-- IF PRIME_MULTI_QUOTE -->
	<!-- DEFINE $PRIME_MULTI_QUOTE = TRUE -->
	<script type="text/javascript" src="{T_TEMPLATE_PATH}/prime_multi_quote.js"></script>
<!-- ENDIF -->]]></action>
			</edit>

			<edit>
				<comment lang="en">This is the first of two identical lines in this file.</comment>
				<find><![CDATA[<a href="{U_POST_REPLY_TOPIC}"]]></find>
				<inline-edit>
					<inline-find><![CDATA[{U_POST_REPLY_TOPIC}"]]></inline-find>
					<inline-action type="after-add"><![CDATA[<!-- IF $PRIME_MULTI_QUOTE --> onclick="prime_multi_quote(this);"<!-- ENDIF -->]]></inline-action>
				</inline-edit>
			</edit>

			<edit>
				<find><![CDATA[<!-- BEGIN postrow -->]]></find>
				<action type="before-add"><![CDATA[<!-- IF $PRIME_MULTI_QUOTE --><form action="{U_POST_REPLY_TOPIC}" method="get" name="prime_multi_quote_form" id="prime_multi_quote_form"><!-- ENDIF -->]]></action>
			</edit>

			<edit>
				<comment lang="en">If you want the checkboxes to work only for the Reply buttons and NOT for the Quote buttons, then skip this step.</comment>
				<find><![CDATA[<a href="{postrow.U_QUOTE}"]]></find>
				<inline-edit>
					<inline-find><![CDATA[<a href="{postrow.U_QUOTE}"]]></inline-find>
					<inline-action type="after-add"><![CDATA[<!-- IF $PRIME_MULTI_QUOTE --> onclick="prime_multi_quote(this);"<!-- ENDIF -->]]></inline-action>
				</inline-edit>
			</edit>

			<edit>
				<find><![CDATA[{QUOTE_IMG}</a> ]]></find>
				<inline-edit>
					<inline-find><![CDATA[{QUOTE_IMG}</a> ]]></inline-find>
					<inline-action type="after-add"><![CDATA[<!-- IF $PRIME_MULTI_QUOTE --><input type="checkbox" class="radio" name="quotes" value="{postrow.POST_ID}" style="position:relative;top:-3px;" title="{L_REPLY_WITH_QUOTE}" /><!-- ENDIF -->]]></inline-action>
				</inline-edit>
			</edit>

			<edit>
				<find><![CDATA[<!-- END postrow -->]]></find>
				<action type="after-add"><![CDATA[<!-- IF $PRIME_MULTI_QUOTE --></form><!-- ENDIF -->]]></action>
			</edit>

			<edit>
				<comment lang="en">This is the second of two identical lines in this file.</comment>
				<find><![CDATA[<a href="{U_POST_REPLY_TOPIC}"]]></find>
				<inline-edit>
					<inline-find><![CDATA[{U_POST_REPLY_TOPIC}"]]></inline-find>
					<inline-action type="after-add"><![CDATA[<!-- IF $PRIME_MULTI_QUOTE --> onclick="prime_multi_quote(this);"<!-- ENDIF -->]]></inline-action>
				</inline-edit>
			</edit>
		</open>
	</action-group>
</mod>
