<?xml version="1.0" encoding="utf-8"?>

<!DOCTYPE install SYSTEM "http://dev.joomla.org/xml/1.5/plugin-install.dtd">

<install type="plugin" version="1.5" method="upgrade" group="acymailing">

	<name>K2 content integration for AcyMailing</name>

	<creationDate>May 2010</creationDate>

	<version>2.5.2</version>

	<author>Acyba</author>

	<authorEmail>dev@acyba.com</authorEmail>

	<authorUrl>http://www.acyba.com</authorUrl>

	<copyright>Copyright (C) 2009-2016 ACYBA SAS - All rights reserved..</copyright>

	<license>GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html</license>

	<description>This AcyMailing plugin enables you to include k2 articles in AcyMailing</description>

	<files>

		<filename plugin="k2element">k2element.php</filename>

		<filename>index.html</filename>

	</files>

	<params addpath="/components/com_acymailing/params">

		<param name="help" type="help" label="Help" description="Click on the help button to get some help" default="plugin-k2element"/>

		<param name="wordwrap" type="text" size="10" default="0" label="Intro Word Wrapping" description="If you insert only the introduction and you didn't insert the read more link, AcyMailing will only load the first XX characters of your content. If you specify 0, AcyMailing won't wrap your content" />

		<param name="displayart" type="radio" default="all" label="Display articles" description="Select if you want to display all articles in the popup for article selection or only published articles">

			<option value="all">All articles</option>

			<option value="onlypub">Only published articles</option>

			<option value="owned">Only articles created by the currently logged in user</option>

		</param>

		<param name="contentaccess" type="radio" default="registered" label="Content Access" description="If you use the automatic K2 element insertion (via the categories tab), AcyMailing will only include items having the selected access in your Newsletter">

			<option value="public">Public only</option>

			<option value="registered">Public and Registered</option>

			<option value="all">All</option>

		</param>

		<param name="itemid" size="10" type="text" default="" label="Default Itemid" description="ID of the menu attached to K2" />



		<param name="maxwidth" type="text" size="10" default="150" label="Max picture width" description="FIELD_DEFAULT" />

		<param name="maxheight" type="text" size="10" default="150" label="Max picture height" description="FIELD_DEFAULT" />

	</params>

	<config>

		<fields name="params" addfieldpath="/components/com_acymailing/params">

			<fieldset name="basic">

				<field name="help" type="help" label="Help" description="Click on the help button to get some help" default="plugin-k2element"/>

				<field name="wordwrap" type="text" size="10" default="0" label="Intro Word Wrapping" description="If you insert only the introduction and you didn't insert the read more link, AcyMailing will only load the first XX characters of your content. If you specify 0, AcyMailing won't wrap your content" />

				<field name="displayart" type="radio" default="all" label="Display articles" description="Select if you want to display all articles in the popup for article selection or only published articles">

					<option value="all">All articles</option>

					<option value="onlypub">Only published articles</option>

					<option value="owned">Only articles created by the currently logged in user</option>

				</field>

				<field name="itemid" size="10" type="text" default="" label="Default Itemid" description="ID of the menu attached to K2" />



				<field name="maxwidth" type="text" size="10" default="150" label="Max picture width" description="FIELD_DEFAULT" />

				<field name="maxheight" type="text" size="10" default="150" label="Max picture height" description="FIELD_DEFAULT" />

			</fieldset>

		</fields>

	</config>

    <updateservers>

        <server type="extension" priority="2" name="K2 content integration for AcyMailing">http://www.acyba.com/media/com_updateme/xmlfiles/k2element.xml</server>

    </updateservers>

</install>

