<smms_extension type="smms_ext" version="1.5.0">
	<name>ICON Metadata Module</name>
	<author>Joel Bassett</author>
	<creationDate>10/01/2010</creationDate>
	<copyright>(C) 2005-2010 Australian Quality Solutions Group. All rights reserved.</copyright>
	<license>AGPLv3 - http://www.aqsg.com.au/products/simple-meta-management-suite/licence.html</license>
	<authorEmail>joel@aqsg.com.au</authorEmail>
	<authorUrl>http://www.aqsg.com.au</authorUrl>
	<version>1.5.4 [Dragonbane]</version>
	<description>Extension to manage ICON metadata</description>
	<files>
		<filename smms_ext="ext.icon">ext.icon.php</filename>
	</files>
	<smms_install>
		<database>
			<category>advanced</category>
			<databasename>#__smms_miscmeta</databasename>
			<pregmatch>~&lt;link[^&gt;]*href=["|'](.*)["|'][^&gt;]*rel=["|']shortcut[^&gt;]*icon["|'][^&gt;]*type=["|']image/x-icon["|']\s*/&gt;~Ui</pregmatch>
			<pregmatch2></pregmatch2>
			<html>  &lt;link rel="shortcut icon" type="image/x-icon" href="{VALUE}" /&gt;</html>
			<formfield>&lt;input class="inputbox" type="text" name="icon" id="icon" size="70" maxlength="255" value="{VALUE}" /&gt;</formfield>
			<databasefield>e.custom_icon</databasefield>
			<sqlselect>e.custom_icon AS custom_icon, e.icon AS icon</sqlselect>
			<sqljoin>{DATABASENAME} AS e ON e.site_id = a.id</sqljoin>
			<sqlupdatewithvalue>UPDATE {DATABASENAME} SET custom_icon = '{SWITCH}', icon = '{VALUE}' WHERE site_id = '{ID}'</sqlupdatewithvalue>
			<sqlupdatenovalue>UPDATE {DATABASENAME} SET custom_icon = '{SWITCH}' WHERE site_id = '{ID}'</sqlupdatenovalue>
		</database>
	</smms_install>
    <settings>

    </settings>
    <default_values>
		<default_value name="use_defaulticon" value="0">{CHOICELIST}</default_value>
		<default_value name="default_icon" value="">&lt;input class="inputbox" type="text" name="default_icon" id="default_icon" size="70" maxlength="255" value="{VALUE}" /&gt;</default_value>
    </default_values>
</smms_extension>