<?xml version="1.0" encoding="utf-8"?>
<extension version="4.2.0" type="plugin" group="system" method="upgrade">
    <name>System - Membership Schedule Content</name>
    <author>Tuan Pham Ngoc</author>
    <authorEmail>tuanpn@joomdonation.com</authorEmail>
    <authorUrl>https://joomdonation.com</authorUrl>
    <copyright>Copyright (C) 2012 - 2025 Ossolution Team</copyright>
    <license>GNU General Public License version 3, or later</license>
    <creationDate>July 2016</creationDate>
    <version>4.3.1</version>
    <description>This plugin allows you to manage and release articles for your subscribers in the schedule you want
    </description>
    <files>
        <filename plugin="schedulecontent">schedulecontent.php</filename>
        <folder>form</folder>
    </files>
	<languages folder="language">
		<language tag="en-GB">en-GB/en-GB.plg_system_schedulecontent.ini</language>		
	</languages>
    <config>
        <fields name="params" addfieldprefix="Joomla\Component\Menus\Administrator\Field" addfieldpath="/administrator/components/com_menus/models/fields">
            <fieldset name="basic">
                <field name="number_new_articles_each_time" type="text" size="60" default="5"
                       label="Number New Articles Each Time" description="Number new articles you can setup each time"/>
                <field name="release_article_older_than_x_days" type="text" size="60" default="0"
                       label="Release Articles Older Than X Days"
                       description="If enter a number here, articles older than this entered number days will be free to access to everyone"/>
                <field name="open_article" type="radio" class="btn-group" label="Open The Article" default="0">
                    <option value="0">On new Window</option>
                    <option value="1">On same Window</option>
                </field>
                <field
                        name="redirect_menu_item"
                        type="modal_menu"
                        label="Redirect Menu Item"
                        description="Choose the menu item which users will be redirected to when they try to access to an article which is not allowed to access yet"
                        disable="separator,alias,heading,url"
                        select="true"
                        clear="true"
                />
                <field
                        name="show_on_frontend"
                        type="radio"
                        label="Show On Frontend"
                        description="If set to Yes, this plugin will be available on frontend add/edit plan form"
                        class="btn-group btn-group-yesno"
                        default="0"
                >
                    <option value="1">JYES</option>
                    <option value="0">JNO</option>
                </field>
            </fieldset>
        </fields>
    </config>
</extension>