
<patTemplate:tmpl name="pageoutput" unusedvars="strip">
	<script type="text/javascript">
		<!--
		var plugins_to_upgrade = '{PLUGINS_TO_UPGRADE}';
		var all_installed_plugins = '{INSTALLED_PLUGINS}';
		
		var ajax_url = '{JOMRES_SITEPAGE_URL_ADMIN_AJAX}';
		
		
		
		function block_interface()	{
			jomresJquery.blockUI({ 
			message: '<h3>Upgrading plugins, please wait, this may take a few minutes depending on internet speed.</h3>Currently updating : <div id="plugin_name_being_updated" class="bg-success" ></div><br/> The page will reload when the plugins have been updated, but it is important that you do not interrupt the process.',
			baseZ: 1030,
			css: { 
				border: 'none', 
				padding: '15px', 
				backgroundColor: '#000', 
				'-webkit-border-radius': '10px', 
				'-moz-border-radius': '10px', 
				opacity: .8, 
				color: '#fff' 
			} });
		};
		
		function upgrade_core_plugins(){
			upgrade_plugins(plugins_to_upgrade);
		}
		
		function reinstall_all_plugins(){
			upgrade_plugins(all_installed_plugins);
		}
		
		function upgrade_plugins(plugins_array){
			block_interface();
			if (plugins_array.length ){
				setTimeout(function(){
					plugins = plugins_array.split(",");
					for (var i = 0, l = plugins.length; i < l; i++) {
						plugin = plugins[i];
						if (plugin != '') {
							jomresJquery( "#plugin_name_being_updated" ).html( plugin );
							jomresJquery.ajax({ url: '{JOMRES_SITEPAGE_URL_ADMIN_AJAX}&task=addplugin&plugin=' + plugin + '&autoupgrade=1', success: function (data) {
								//console.log(data);
							}, async: false
							});
						}
						 if ( i ==plugins.length-1)
				  			window.location.reload();
					}
				},3000);
			}
			else 
	 			jomresJquery.unblockUI();

	 		return false;
		}

		//-->
	</script>

	<h2 class="page-header">{PAGETITLE}</h2>
	<style>
	.modal-body {
		max-height: 600px;
		overflow-y: auto;
		}
		
	</style>

	<div class="row-fluid">
		<div class="col-md-9">
		<patTemplate:tmpl name="developer_users" type="simpleCondition" requiredVars="dummy">
			<p class="alert alert-warning">Please do not install all plugins with the hope that they will come in
				useful later. They are not all mutually exclusive, I.E. one plug may interfere with another, so it
				is recommended that you only install a plugin when you\'ve identified a requirement that the
				individual plugin fulfills. <br/>Bold items in the core plugins list are generally essential when
				building a portal, and if you have upgraded from v4 you should consider installing those plugins to
				continue working as before.</p>
		</patTemplate:tmpl>
		
		<patTemplate:tmpl name="encoded_on_full_license" type="simpleCondition" requiredVars="encoding_warning">
        <script type="text/javascript">
            jomresJquery(document).ready(function(){
                jomresJquery('#encoded_plugins_warning').modal('show');
            });
        </script>
        <div class="modal hide fade" id="encoded_plugins_warning">
            <div class="modal-header">
                <a class="close" data-dismiss="modal">×</a>
                <h3>Encoded plugins remain</h3>
            </div>
            <div class="modal-body">
                <p class="alert alert-warning">{ENCODING_WARNING}</p>
            </div>
        </div>
			
		</patTemplate:tmpl>
        
		<patTemplate:tmpl name="bronze_users" type="simpleCondition" requiredVars="license_server_username">
		<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#shopping_cart">
			Plugin Shop cart
		</button>
		<button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#shop_information">
			Plugin Shop T&C
		</button>
		
		<div id="license_server_account_details" class="modal hide fade " tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			<div class="modal-dialog modal-sm">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
					<h3 id="cart_label">Your cart</h3>
				</div>
				<div class="modal-body">
					<div id="username_input" >
					
						<p class="alert alert-info">Before you can purchase plugins, you need a Username and Password, which you can get by registering for free at Jomres.net.<br/> If you already have a username and password please enter them here. When you've done that, click the Purchase Plugins! button.</p>
						<p><a href="https://license-server.jomres.net/index.php?cmd=register" target="_blank" class="btn btn-primary">Register here if you haven't already</a></p>
						
						
						<form class="form-inline">
							<fieldset>
								<div class="control-group">
									<label class="control-label" for="name">License server Username</label>
									<div class="controls">
										<input class="input-medium" type="text" id="license_server_username" name="name" value="{LICENSE_SERVER_USERNAME}" placeholder="Your username" required autofocus/>
									</div>
								</div>

								<div class="control-group">
									<label class="control-label" for="license_server_password">License server Password</label>
									<div class="controls">
										<input class="input-medium" type="password" id="license_server_password" name="password" value="{LICENSE_SERVER_PASSWORD}" required/>
									</div>
								</div>
							</fieldset>
						</form>
						<p>Once you have paid your invoice, Jomres will automatically offer you an installation link next to your purchased plugin(s), click that link to install the plugin(s). You may need to reload the plugin manager page if you can't see the Install button.</p>
						<p>Note that purchase of a plugin download does not entitle you to support for Jomres, only for the purchased plugin.</p>
						
					</div>
				</div>
				<div class="modal-footer">
					<a class="btn btn-default" data-dismiss="modal">Close</a>
					<button class="btn btn-primary" id="purchase_button" onClick="sumbint();">Let's do this!</button>
				</div>
			</div>
		</div>
		
		<div id="license_server_message"></div>

		<div id="shopping_cart" class="modal hide fade " tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			<div class="modal-dialog modal-sm">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
					<h3 id="cart_label">Your cart</h3>
				</div>
				<div class="modal-body">
					<div id="cart_wrapper">
						<div class="row-fluid">
							<div class="col-md-9">
								<h3>Total &pound;<span id="total">0.00</span></h3>
							</div>
							<div class="col-md-3">
								<h3 class="page-header"><img src = "{JOMRES_IMAGES_RELPATH}cart_red_transparent.png"/>Your shopping cart</h3>
							</div>
						</div>

						<div id="cart" class="well"></div>
						
						<p class="alert alert-info">Prices do not include VAT. If you are liable to pay VAT this will show on your invoice once you have placed your order.</p>
						<p class="alert alert-warning">Note, if you have a Jomres Starter, Business or Enterprise license number you don't need to fill these fields, instead please make sure you've entered it in the <i>Site Configuration -> Misc tab -> Support key</i> field, otherwise you will not be able to download plugins that you are entitled to.</p>
					</div>
				</div>
				<div class="modal-footer">
					<a class="btn btn-default" data-dismiss="modal">Close</a>
					<button id="purchase" class="btn btn-primary" onClick="purchase();">Order plugin(s)</button>
				</div>
			</div>
		</div>
		

		<div id="shop_information" class="modal hide fade " tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			<div class="modal-dialog modal-sm">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
					<h3>The Jomres Plugin Shop Terms and Conditions</h3>
				</div>
				<div class="modal-body">
					
					<p class="alert alert-info">The Jomres Plugin Manager Shop allows you to purchase individual plugins for Jomres without needing to purchase a full license, and to install those plugins direct into your Jomres installation through the Jomres Plugin Manager. To use the Plugin Manager Shop you will first need a verified account on our License Server. If you already have an account that's great, you can enter your details during the purchase process.</p>
					
					<a href="https://license-server.jomres.net/index.php?cmd=register" target="_blank" class="btn btn-primary">Register here if you haven't already</a>
					
					<h2>Terms & Conditions</h2>

					<h3>1. Software License</h3>

					<p>All software available from the Jomres Plugin Manager Shop (the Shop) is released under the GPL v2 ( GNU General Public License version 2 <a href="http://www.gnu.org/licenses/old-licenses/gpl-2.0.html" target="_blank">http://www.gnu.org/licenses/old-licenses/gpl-2.0.html</a>), unless otherwise stated. Ordering a download from the Jomres Plugin Manager grants you a non-exclusive limited license to download the plugin through the plugin manager. </p>

					<h3>2. Delivery</h3>

					<p class="alert alert-warning">
					Plugins are often updated when Jomres is updated, so older versions of plugins <i>may</i> not work with newer versions of Jomres. This means that if you purchased a plugin 8 months ago, we cannot guarantee that it will work with the newest version of Jomres. This may require that you will need to purchase access to that plugin again if the download license has expired. This is unavoidable, so consider carefully before upgrading Jomres. If you expect to upgrade Jomres continuously, we would ask you to consider purchasing a <strong><a href="https://www.jomres.net/pricing" target="_blank">Jomres Business or Enterprise license</a></strong> instead of a plugin license or licenses.
					</p>
					
					<p>Upon purchasing access to plugins from the Shop, an email will be sent to the email account associated with your account on the license server confirming creation of an invoice.  Once this invoice has been paid, then you will be able to download the plugin from the Jomres Plugin Manager.  Normally this is virtually instantaneous after payment, however in exceptional circumstances some invoices may need to be manually approved so may take a little longer. </p>

					<p>If you are in any doubt as to whether or not your hosting service will allow you to install plugins remotely through this plugin shop, we urge you to "purchase" one of the free plugins first to confirm that the functionality will work as expected before you purchase any paid products.</p>
					
					<p>On purchase approval you will be able to download any purchased plugins for 6 months after purchase. If you should uninstall that plugin after that time, you will need to purchase it again, including for updates to that plugin. <strong>Plugins are ONLY available for download through the Jomres Plugin Manager</strong>, they are not available through your account on the license server.</p>
					
					<p>Some plugins require the installation of other plugins, for example any plugin that mentions Jomres ASAModule in the description requires that you also have the Jomres ASAModule/Jomres Shortcodes (Wordpress equivalent) Plugin installed to be able to use it, so please ensure that you've purchased that plugin first.</p>

					<h3>3. Ownership</h3>

					<p>You may not claim intellectual or exclusive ownership to any of our products, modified or unmodified. All products are property of Woollyinwales IT Ltd.</p>

					<h3>4. Refund Policy</h3>

					<p>If you purchase a plugin from our Shop, you are entitled to a 7 days Cooling Off Period during which you can withdraw from your purchase. You will lose your right of withdrawal if you start downloading the purchased plugin(s) from the Jomres Plugin Manager, before the end of the Cooling Off Period.</p>

					<p>Jomres and it's plugins are provided completely un-encoded, and are licensed under the GPL and MIT licenses. As a result, it's not possible to provide "trial" copies ( we would like to, but we can't ) for you to experiment with on your own server. This is one of the reasons we supply the Core and selected plugins for free, it allows you to install the basic system on your own servers to ensure that it'll run without a hitch.</p>

					<p>It's your responsibility to ensure that Jomres supplies all of the features you need before purchasing. If you are in doubt as to whether Jomres is suitable for you, please contact us via the Contact page on Jomres.net or via our ticket system.</p>

					<h3>5. Support Policy</h3>

					<p>Woollyinwales IT offers Jomres Plugins “as is” and with no implied meaning that they will function exactly as you would like or will be compatible with all 3rd-party plugins, themes or other components. If you purchase a plugin, we will only supply support for that plugin, not Jomres in general.</p>

					<h3>6. Price Changes</h3>

					<p>Woollyinwales IT reserve the right, at any time, to modify or discontinue, temporarily or permanently, the product prices with or without notice.</p>

					<h3>7. Warranty</h3>

					<p>THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.</p>

					<h3>8. Liability</h3>

					<p>IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.</p>

					<h3>9. Notice</h3>

					<p>Woollyinwales IT reserve the right to change or modify the Terms and Conditions at any time with or without any prior notice.</p>

					<h3>10. Acceptance</h3>

					<p>Purchase of plugins from the Shop indicates that you have read and agree to these Terms & Conditions of sale.</p>

				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
				</div>
			</div>
		</div>
		
		<div id="hidden_inputs"  class="hide"></div>
		</patTemplate:tmpl>
		
		<p class="alert alert-{LICENSE_MESSAGE_CLASS}">
			{LICENSE_MESSAGE}
		</p>
		
		<patTemplate:tmpl name="plugins_require_upgrade" type="simpleCondition" requiredVars="upgrade_text">
		<a href="javascript:void(0);" onclick="upgrade_core_plugins();" id="upgrade_core_plugins" class="btn btn-primary btn-large">{UPGRADE_TEXT}</a>
		</patTemplate:tmpl>
		
		<patTemplate:tmpl name="reinstall_plugins" type="simpleCondition" requiredVars="reinstall_text">
		<a href="javascript:void(0);" onclick="reinstall_all_plugins();" id="reinstall_all_plugins" class="btn btn-default btn-large">{REINSTALL_TEXT}</a>
		</patTemplate:tmpl>
		
		</div>
		<div class="col-md-3">
			<h3 class="page-header">Legend</h3>
			<table width="100%" class="">
				<tr class="alert alert-success">
					<td align="center">Already installed</td>
				</tr>
				<tr class="alert alert-warning">
					<td align="center">Upgrade is available</td>
				</tr>
				<tr class="alert alert-danger">
					<td align="center">Plugin retired, uninstall it</td>
				</tr>
				<!--<tr class="alert alert-info">
					<td align="center">Free plugin</td>
				</tr>
				<tr class="alert">
					<td align="center">Third party plugin</td>
				</tr>-->
			</table>
			<p>Plugins with the <i class="fa fa-lock"></i> icon are encoded.</p>
		</div>
	</div>
	<h3 class="page-header">Plugins</h3>

	<div class="tabbable">
		<ul class="nav nav-tabs">
			<li class="active"><a href="#coreplugins" data-toggle="tab">Core plugins</a></li>
			<li><a href="#apiplugins" data-toggle="tab">Core API plugins</a></li>
			<li><a href="#webhooksplugins" data-toggle="tab">Webhooks plugins</a></li>
			<li><a href="#3rdpplugins" data-toggle="tab">Third party plugins</a></li>
			<li><a href="#install3rdpplugin" data-toggle="tab">Install third party plugin</a></li>
		</ul>
		<div class="tab-content">
			<div class="tab-pane active" id="coreplugins">
				<table width="100%" class="table table-hover ">
					<tr>
						<th>Name</th>
						<th></th>
						<th>Add/reinstall/upgrade plugin</th>
						<th>Remove plugin</th>
						<th>{HPLUGINPRICE}</th>
					</tr>
					<patTemplate:tmpl name="jomresdotnet_plugins" unusedvars="strip">
					<tr>
						<td class="{ROWCLASS}"><a name="{PLUGIN_NAME}"></a>{STRONG1}{READABLE_NAME}{STRONG2}</td>
						<!--<td><a href="#" class="thumbnail"><img src="{IMAGE}" alt=""></a></td>-->
						<td>
							<button type="button" class="btn btn-info" data-toggle="modal" data-target="#modal_trigger_{PLUGIN_NAME}">{ENCODED_ICON} More info</button>
						</td>
						<td>{INSTALL} {LATERVERSION}</td>
						<td>{UNINSTALL}</td>
						<td>{ADD_TO_CART_BUTTON}</td>
					</tr>
					<!-- Modal -->
					<div id="modal_trigger_{PLUGIN_NAME}" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
							<h3 id="myModalLabel">{READABLE_NAME}</h3>
						</div>
						<div class="modal-body">
							<div class="row-fluid">
								<div class="col-md-6">
									<img src="{IMAGE}" class="img-responsive" alt="{READABLE_NAME}"/>
								</div>
								<div class="col-md-6">
									<div class="alert alert-info">
										<p>Minimum Jomres version {MIN_JOMRES_VER}</p>
										<p>Your Version {LOCAL_VER}</p>
										<p>Current Version {REMOTE_VER}</p>
										<p>Last updated {LASTUPDATE}</p>
										<p>
											<a href="{MANUAL_LINK}" target="_blank" class="{MANUAL_CLASS}">{MANUAL_TEXT}</a>
											<a href="{DEMO_LINK}" target="_blank" class="{DEMO_CLASS}">{DEMO_TEXT}</a>
										</p>
									</div>
								</div>
							</div>
							<p class="text-info">{PLUGIN_DESC}</p>
							<p class="{HIGHLIGHT_CLASS}">{HIGHLIGHT}</p>
							<button type="button" class="btn" data-toggle="collapse" data-target="#collapse_{PLUGIN_NAME}">
								Changelog
							</button>
							<div id="collapse_{PLUGIN_NAME}" class="collapse">
								<div class="row-fluid">
									<div class="col-md-12">
										<p class="muted">{CHANGELOG}</p>
									</div>
								</div>
							</div>
						</div>
						<div class="modal-footer">
							<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
						</div>
					</div>
					</patTemplate:tmpl>
				</table>
			</div>
			<div class="tab-pane" id="apiplugins">
				<table width="100%" class="table table-hover ">
					<tr>
						<th>Name</th>
						<th></th>
						<th>Add/reinstall/upgrade plugin</th>
						<th>Remove plugin</th>
						<th>{HPLUGINPRICE}</th>
					</tr>
					<patTemplate:tmpl name="jomresdotnet_apiplugins" unusedvars="strip">
					<tr>
						<td class="{ROWCLASS}"><a name="{PLUGIN_NAME}"></a>{STRONG1}{READABLE_NAME}{STRONG2}</td>
						<!--<td><a href="#" class="thumbnail"><img src="{IMAGE}" alt=""></a></td>-->
						<td>
							<button type="button" class="btn btn-info" data-toggle="modal" data-target="#modal_trigger_{PLUGIN_NAME}">{ENCODED_ICON} More info</button>
						</td>
						<td>{INSTALL} {LATERVERSION}</td>
						<td>{UNINSTALL}</td>
						<td>{ADD_TO_CART_BUTTON}</td>
					</tr>
					<!-- Modal -->
					<div id="modal_trigger_{PLUGIN_NAME}" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
							<h3 id="myModalLabel">{READABLE_NAME}</h3>
						</div>
						<div class="modal-body">
							<div class="row-fluid">
								<div class="col-md-6">
									<img src="{IMAGE}" class="img-responsive" alt="{READABLE_NAME}"/>
								</div>
								<div class="col-md-6">
									<div class="alert alert-info">
										<p>Minimum Jomres version {MIN_JOMRES_VER}</p>
										<p>Your Version {LOCAL_VER}</p>
										<p>Current Version {REMOTE_VER}</p>
										<p>Last updated {LASTUPDATE}</p>
										<p>
											<a href="{MANUAL_LINK}" target="_blank" class="{MANUAL_CLASS}">{MANUAL_TEXT}</a>
											<a href="{DEMO_LINK}" target="_blank" class="{DEMO_CLASS}">{DEMO_TEXT}</a>
										</p>
									</div>
								</div>
							</div>
							<p>{PLUGIN_DESC}</p>
							<p class="{HIGHLIGHT_CLASS}">{HIGHLIGHT}</p>
							<button type="button" class="btn" data-toggle="collapse" data-target="#collapse_{PLUGIN_NAME}">
								Changelog
							</button>
							<div id="collapse_{PLUGIN_NAME}" class="collapse">
								<div class="row-fluid">
									<div class="col-md-12">
										<p class="muted">{CHANGELOG}</p>
									</div>
								</div>
							</div>
						</div>
						<div class="modal-footer">
							<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
						</div>
					</div>
					</patTemplate:tmpl>
				</table>
			</div>
			<div class="tab-pane" id="webhooksplugins">
				<table width="100%" class="table table-hover ">
					<tr>
						<th>Name</th>
						<th></th>
						<th>Add/reinstall/upgrade plugin</th>
						<th>Remove plugin</th>
						<th>{HPLUGINPRICE}</th>
					</tr>
					<patTemplate:tmpl name="jomresdotnet_webhooksplugins" unusedvars="strip">
					<tr>
						<td class="{ROWCLASS}"><a name="{PLUGIN_NAME}"></a>{STRONG1}{READABLE_NAME}{STRONG2}</td>
						<!--<td><a href="#" class="thumbnail"><img src="{IMAGE}" alt=""></a></td>-->
						<td>
							<button type="button" class="btn btn-info" data-toggle="modal" data-target="#modal_trigger_{PLUGIN_NAME}">{ENCODED_ICON} More info</button>
						</td>
						<td>{INSTALL} {LATERVERSION}</td>
						<td>{UNINSTALL}</td>
						<td>{ADD_TO_CART_BUTTON}</td>
					</tr>
					<!-- Modal -->
					<div id="modal_trigger_{PLUGIN_NAME}" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
							<h3 id="myModalLabel">{READABLE_NAME}</h3>
						</div>
						<div class="modal-body">
							<div class="row-fluid">
								<div class="col-md-6">
									<img src="{IMAGE}" class="img-responsive" alt="{READABLE_NAME}"/>
								</div>
								<div class="col-md-6">
									<div class="alert alert-info">
										<p>Minimum Jomres version {MIN_JOMRES_VER}</p>
										<p>Your Version {LOCAL_VER}</p>
										<p>Current Version {REMOTE_VER}</p>
										<p>Last updated {LASTUPDATE}</p>
										<p>
											<a href="{MANUAL_LINK}" target="_blank" class="{MANUAL_CLASS}">{MANUAL_TEXT}</a>
											<a href="{DEMO_LINK}" target="_blank" class="{DEMO_CLASS}">{DEMO_TEXT}</a>
										</p>
									</div>
								</div>
							</div>
							<p>{PLUGIN_DESC}</p>
							<p class="{HIGHLIGHT_CLASS}">{HIGHLIGHT}</p>
							<button type="button" class="btn" data-toggle="collapse" data-target="#collapse_{PLUGIN_NAME}">
								Changelog
							</button>
							<div id="collapse_{PLUGIN_NAME}" class="collapse">
								<div class="row-fluid">
									<div class="col-md-12">
										<p class="muted">{CHANGELOG}</p>
									</div>
								</div>
							</div>
						</div>
						<div class="modal-footer">
							<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
						</div>
					</div>
					</patTemplate:tmpl>
				</table>
			</div>
			<div class="tab-pane" id="3rdpplugins">
				<table width="100%" class="table table-striped">
					<thead>
					<tr>
						<th colspan="6"></th>
					</tr>
					</thead>
					<tbody>
					<tr>
						<th>Name</th>
						<th>Your Version</th>
						<th>Current version</th>
						<th>Released</th>
						<th>Description</th>
						<th>Author</th>
						<th>Author email</th>
						<th>Website</th>
						<th>Remove plugin</th>
					</tr>
					<patTemplate:tmpl name="thirdpartyplugins" unusedvars="nbsp" type="simpleCondition" requiredVars="name">
						<tr>
							<td>{NAME}</td>
							<td>{LOCALVERSION}</td>
							<td>{THIRD_PARTY_PLUGIN_LATEST_AVAILABLE_VERSION}</td>
							<td>{LATEST_RELEASE}</td>
							<td>{DESCRIPTION}</td>
							<td>{AUTHOR}</td>
							<td><a href="mailto:{AUTHOREMAIL}?subject={NAME}">{AUTHOREMAIL}</a></td>
							<td>{DEVELOPER_PAGE}</td>
							<td><a href="{UNINSTALLLINK}" class="btn btn-danger">{UNINSTALL}</a></td>
						</tr>
					</patTemplate:tmpl>
					</tbody>
				</table>
			</div>
			<div class="tab-pane" id="install3rdpplugin">
				<form enctype="multipart/form-data" action="{JOMRES_SITEPAGE_URL_ADMIN}&task=addplugin&thirdparty=1"
					  method="post" class="form-horizontal">
					<fieldset>
						<div class="control-group">
							<label class="control-label" for="pluginfile">Install third party plugin</label>

							<div class="controls">
								<input type="file" name="pluginfile" class="input-file"/>
							</div>
						</div>
						<div class="form-actions">
							<input type="submit" value="Install" class="btn btn-primary"/>
						</div>
						<input type="hidden" name="no_html" value="1"/>
					</fieldset>
					{CSRF_TOKEN}
				</form>
			</div>
		</div>
	</div>
</patTemplate:tmpl>