<?xml version="1.0" encoding="utf-8"?>
<extension type="plugin" group="content" method="upgrade">
    <name>PLG_CONTENT_OSVIMEO</name>
    <author>Joomlashack</author>
    <authorEmail>help@joomlashack.com</authorEmail>
    <authorUrl>https://www.joomlashack.com/</authorUrl>
    <copyright>Copyright 2016-2024 Joomlashack</copyright>
    <license>GNU GPL; see LICENSE file</license>
    <description>PLG_CONTENT_OSVIMEO_DESCRIPTION</description>
    <version>2.0.4</version>
    <creationDate>August 29 2024</creationDate>
    <variant>PRO</variant>

    <scriptfile>script.installer.php</scriptfile>

    <files>
        <folder>language</folder>
        <folder>library</folder>
        <folder>views</folder>
        <folder>form</folder>

        <filename plugin="osvimeo">osvimeo.php</filename>
        <filename>include.php</filename>
    </files>

    <media destination="plg_content_osvimeo" folder="media">
        <folder>css</folder>
        <folder>images</folder>
    </media>

    <config>
        <fields name="params">
            <fieldset name="basic"
                      addfieldpath="/plugins/content/osvimeo/form/fields/">
                <field name="responsive"
                       type="radio"
                       class="btn-group btn-group-yesno"
                       default="1"
                       label="PLG_CONTENT_OSVIMEO_FIELD_RESPONSIVE_LABEL"
                       description="PLG_CONTENT_OSVIMEO_FIELD_RESPONSIVE_DESC">
                    <option value="1">JYES</option>
                    <option value="0">JNO</option>
                </field>

                <field name="width"
                       type="text"
                       default="425"
                       label="PLG_CONTENT_OSVIMEO_FIELD_WIDTH_LABEL"
                       description="PLG_CONTENT_OSVIMEO_FIELD_WIDTH_DESC"
                       showon="responsive:0"/>

                <field name="height"
                       type="text"
                       default="344"
                       label="PLG_CONTENT_OSVIMEO_FIELD_HEIGHT_LABEL"
                       description="PLG_CONTENT_OSVIMEO_FIELD_HEIGHT_DESC"
                       showon="responsive:0"/>

                <field name="title"
                       type="radio"
                       class="btn-group btn-group-yesno"
                       default="1"
                       label="PLG_CONTENT_OSVIMEO_FIELD_TITLE_LABEL"
                       description="PLG_CONTENT_OSVIMEO_FIELD_TITLE_DESC">
                    <option value="1">JYES</option>
                    <option value="0">JNO</option>
                </field>

                <field name="byline"
                       type="radio"
                       class="btn-group btn-group-yesno"
                       default="1"
                       label="PLG_CONTENT_OSVIMEO_FIELD_BYLINE_LABEL"
                       description="PLG_CONTENT_OSVIMEO_FIELD_BYLINE_DESC">
                    <option value="1">JYES</option>
                    <option value="0">JNO</option>
                </field>

                <field name="title"
                       type="radio"
                       class="btn-group btn-group-yesno"
                       default="1"
                       label="PLG_CONTENT_OSVIMEO_FIELD_TITLE_LABEL"
                       description="PLG_CONTENT_OSVIMEO_FIELD_TITLE_DESC">
                    <option value="1">JYES</option>
                    <option value="0">JNO</option>
                </field>

                <field name="portrait"
                       type="radio"
                       class="btn-group btn-group-yesno"
                       default="1"
                       label="PLG_CONTENT_OSVIMEO_FIELD_PORTRAIT_LABEL"
                       description="PLG_CONTENT_OSVIMEO_FIELD_PORTRAIT_DESC">
                    <option value="1">JYES</option>
                    <option value="0">JNO</option>
                </field>

                <field name="color"
                       type="color"
                       default="#00adef"
                       label="PLG_CONTENT_OSVIMEO_FIELD_COLOR_LABEL"
                       description="PLG_CONTENT_OSVIMEO_FIELD_COLOR_DESC"/>

                <field type="customfooter"
                       name="customfooter"
                       media="plg_content_osvimeo"
                       showgoproad="0"
                       jedurl="https://extensions.joomla.org/extension/osvimeo/"/>
            </fieldset>
        </fields>
    </config>

    <updateservers>
        <server type="extension" priority="1" name="OSVimeo Pro"><![CDATA[https://deploy.ostraining.com/client/update/pro/stable/plg_content_osvimeo]]></server>
    </updateservers>

    <alledia>
        <element publish="true">osvimeo</element>
        <namespace>OSVimeo</namespace>
        <license>pro</license>
        <targetplatform>3.9</targetplatform>
        <phpminimum>7.2.5</phpminimum>

        <relatedExtensions>
            <extension type="library"
                       element="allediaframework">ShackFramework</extension>

            <extension type="plugin"
                       group="system"
                       element="osmylicensesmanager"
                       publish="true"
                       ordering="last">ShackExtensionSupport</extension>
        </relatedExtensions>

        <include>ShackDefaultFiles</include>

        <obsolete>
            <file>/plugins/content/osvimeo/style.css</file>
        </obsolete>
    </alledia>
</extension>
