<?xml version="1.0" encoding="utf-8"?>
<extension type = "module" version = "1.0" client = "site" method="upgrade">
  <name>EB Instagram Stream</name>
  <author>Extnbakers</author>
  <version>1.19</version>
  <creationDate>2021-Sep-16</creationDate>
  <copyright>Copyright (C) 2022 extnbakers.com. All rights reserved.</copyright>
  <authorEmail>hello@extnbakers.com</authorEmail>
  <authorUrl>https://www.extnbakers.com</authorUrl>
  <license>http://www.gnu.org/licenses/gpl-3.0.html</license>
  <description><![CDATA[<p>This module displays Instagram photos from your instagram account.</p><br><p>Instagram disabling the Instagram Legacy API permission ("Basic") on June 29, 2020. As of June 29, 2020, all Legacy API capabilities will be fulfilled by the Instagram Graph API and the Instagram Basic Display API.</p><br>We encourage you to update your app to use these new APIs. You may do this with the User Token Generator on the Instagram Basic Display API. It will only work for your owned Instagram accounts.<br>Please refer to the <strong><a href="https://www.extnbakers.com/how-to-use-eb-instagram-stream-basic-api" target="_blank">developer documentation</a></strong> to learn more.
  <hr /><strong><a style="color: #fff;background-color: #3071a9;padding: 10px;" href="javascript:void(0);" class="insta-default"> Click here to get your Access Token </a></strong>
  <style>.insta_access_token {max-width:400px; width:400px;}.spacer_class label{ font-size: 16px;font-weight: 600; }</style>  <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
  <script type="text/javascript" src="../modules/mod_ebinstagramstream/assets/js/admin_insta.js"></script>]]>
</description>
<namespace>Joomla\Module\debug</namespace>
<updateservers>
  <server type="extension" priority="1" name="EB Instagram Stream">https://www.extnbakers.com/Joomla-Ext-Updates/updates.php?token=6f4922f45568161a8cdf4ad2299f6d23</server>
</updateservers>
<files>
  <filename>mod_ebinstagramstream.xml</filename>
    <filename module="mod_ebinstagramstream">mod_ebinstagramstream.php</filename>
    <filename>index.html</filename>
    <filename>tmpl/default.php</filename>
    <filename>tmpl/index.html</filename>
    <filename>assets/index.html</filename>
    <filename>assets/css/index.html</filename>
    <filename>helper.php</filename>
    <folder>assets</folder>
    <folder>language</folder>
    <folder>tmpl</folder>
    <folder>elements</folder>
  <filename>LICENSE.txt</filename>
</files>
<languages />
<config>
  <fields name="params" addfieldpath="/modules/mod_ebinstagramstream/elements/">
    <fieldset name="basic">
      <field name="insta_client_id" type="text"
        label="MOD_INSTASTREAM_CLIENT_ID"
        class="insta_access_token instagram_app_id" />
        <field name="insta_client_secret" type="text"
          label="MOD_INSTASTREAM_CLIENT_SECRET"
          class="insta_access_token instagram_app_secret" />
          <field name="insta_access_token" type="textarea"
            label="MOD_INSTASTREAM_ACCESS_TOKEN"
            class="insta_access_token"
            description="MOD_INSTASTREAM_ACCESS_TOKEN_DESC"
            rows="3" cols="5" />
            <field name="insta_user_id" type="text"
              label="MOD_INSTASTREAM_USER_ID"
              class="insta_access_token" />
              <field name="insta_number_post" type="number"
                label="MOD_INSTASTREAM_POST_COUNT" />  
                <field type="spacer" label="MOD_INSTASTREAM_DISPLAY_OPTION" class="spacer_class" />
                <field
                 name="insta_list_type"
                 type="list"
                 label="MOD_INSTASTREAM_STREAM_TYPE" >
                 <option value="feed_style">MOD_INSTASTREAM_FEED_STYLE</option>
                 <option value="grid_style">MOD_INSTASTREAM_GRID_STYLE</option>
                 <option value="flip_style">MOD_INSTASTREAM_FLIP_STYLE</option>
                 <option value="carousel_slider">MOD_INSTASTREAM_CAROUSEL_SLIDER</option>
               </field>  
               <field name="feed_profile_image"
                 label="MOD_INSTASTREAM_FEED_STYLE_PROFILE_IMAGE"
                 preview="tooltip"
                 type="media"
                 showon="insta_list_type:feed_style"
                 description="MOD_INSTASTREAM_FEED_STYLE_PROFILE_IMAGE_DESC" />
                 <field
                  name="grid_style_design"
                  type="list"
                  showon="insta_list_type:grid_style"
                  label="MOD_INSTASTREAM_THUMB_TYPE" >
                  <option value="square_style">MOD_INSTASTREAM_GRID_SQUARE</option>
                  <option value="circle_style">MOD_INSTASTREAM_GRID_CIRCLE</option>
                </field>  
                <field
                  name="slider_autoplay"
                  type="radio"
                  label="MOD_INSTASTREAM_SLIDER_AUTOPLAY"
                  class="btn-group btn-group-yesno"
                  default="1"
                  filter="integer"
                  description=""
                  showon="insta_list_type:carousel_slider"
                  >
                  <option value="1">MOD_INSTAGRAM_YES</option>
                  <option value="0">MOD_INSTAGRAM_NO</option>
                </field>
                <field name="insta_row_grid_column_desktop" type="number" default="4" label="MOD_INSTASTREAM_ROW_COLUMN_GRID_DESKTOP" showon="insta_list_type:grid_style,flip_style,carousel_slider" />
                <field name="insta_row_grid_column_tablat" type="number" default="2" label="MOD_INSTASTREAM_ROW_COLUMN_GRID_TABLAT" showon="insta_list_type:grid_style,flip_style,carousel_slider" />
                <field name="insta_row_grid_column_mobile" type="number" default="1" label="MOD_INSTASTREAM_ROW_COLUMN_GRID_MOBILE" showon="insta_list_type:grid_style,flip_style,carousel_slider" />
                
                <field
                  name="display_text"
                  type="radio"
                  label="MOD_INSTAGRAM_DISPLAY_TEXT"
                  class="btn-group btn-group-yesno"
                  default="0"
                  filter="integer"
                  >
                  <option value="1">MOD_INSTAGRAM_YES</option>
                  <option value="0">MOD_INSTAGRAM_NO</option>
                </field>


                <field
                  name="set_image_height"
                  type="radio"
                  label="EB_INSTASTREAM_SET_IMAGE_HEIGHT"
                  class="btn-group btn-group-yesno"
                  default="1"
                  filter="integer"
                  description=""
                  showon="insta_list_type:grid_style,flip_style,carousel_slider"
                  >
                  <option value="1">EB_INSTASTREAM_IMG_HEIGHT_AUTO_ADJUST</option>
                  <option value="0">EB_INSTASTREAM_IMG_HEIGHT_CUSTOM_HEIGHT</option>
                </field>

                <field name="insta_img_height" type="number" label="EB_INSTASTREAM_IMG_HEIGHT" default="300" description="EB_INSTASTREAM_IMAGE_HEIGHT_DESC"  showon="insta_list_type:grid_style,flip_style,carousel_slider[AND]set_image_height:0" /> 

                <field type="spacer" label="MOD_INSTASTREAM_CACHE_OPTION" class="spacer_class" />
                <field
                  name="enable_cache"
                  type="radio"
                  label="MOD_INSTASTREAM_ENABLE_CACHE"
                  class="btn-group btn-group-yesno"
                  default="1"
                  filter="integer"
                  >
                  <option value="1">MOD_INSTASTREAM_ENABLE</option>
                  <option value="0">MOD_INSTASTREAM_DISABLE</option>
                </field>
                <field
                  name="enable_cache_list"
                  type="list"
                  label="MOD_INSTASTREAM_CACHE_TIME"
                  default="180"
                  showon="enable_cache:1" >
                  <option value="60">MOD_INSTASTREAM_1_HOUR</option>
                  <option value="180">MOD_INSTASTREAM_3_HOUR</option>
                  <option value="360">MOD_INSTASTREAM_6_HOURS</option>
                  <option value="720">MOD_INSTASTREAM_12_HOURS</option>
                  <option value="1440">MOD_INSTASTREAM_24_HOURS</option>
                </field>
              </fieldset>

              <fieldset name="eb_instastream_tab" label="EB_INSTASTREAM_PURCHASE_KEY"> 
                <field name="eb_instastream_purchase_key" type="secretkey" label="EB_INSTASTREAM_PURCHASE_KEY" description="EB_INSTASTREAM_PURCHASE_KEY_DESC" />      
            </fieldset>

            </fields>
          </config>
        </extension>