=== Connect Drive - File Manager for Google Drive ===
Contributors: WPCloudMaster, AhmedAkash10
Tags: google drive, file manager, gallery, embed, media library
Requires at least: 5.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect Google Drive to WordPress to browse, uploads, manage, display and share files with different modules on your WordPress site.

== Description ==

Connect your Google Drive to WordPress to browse, uploads, manage, display and share files with galleries, and different modules on your WordPress site.

== VIDEO OVERVIEW ==
https://www.youtube.com/watch?v=XZzxT3q-Vlc

[Visit Website](https://wpconnectdrive.com) | [Get PRO](https://wpconnectdrive.com/pricing/)

== Free Features ==

**Quick Google Drive Connection**
Connect your Google Drive account to WordPress in just a few clicks. The plugin uses a simple authorization flow, so you can start managing and displaying Drive files without complicated setup.

**Flexible Access Modes**
Choose how the plugin can access your Google Drive files. You can connect an application folder, selected folders, or your entire Drive depending on how much control your website needs.

**Advanced File Manager**
Browse, preview, upload, organize, and manage Google Drive files directly from your WordPress dashboard. It gives you a familiar file management experience without leaving your site.

**Module Builder**
Build reusable Google Drive modules with custom layouts, access rules, display options, and file actions. After creating a module, place it on any page, post, or widget area using a shortcode.

**Google Drive File Uploads**
Upload files from your WordPress site directly to Google Drive. This helps you collect, store, and organize files in the cloud instead of using only your server storage.

**Advanced File Search**
Find Google Drive files faster by searching file names, extensions, and supported file content. It helps admins and users quickly locate the files they need.

**Embed Google Drive Documents**
Embed Google Drive documents directly into WordPress pages or posts, making it easy to share files with visitors in a readable format.

**File List Module**
Display selected Google Drive files in a simple list layout with useful actions such as preview and download.

**Gallery Module**
Create a responsive gallery using images and videos from Google Drive folders. The gallery opens files in a lightbox and can be embedded anywhere with a shortcode.

**Contact Form 7 Upload Integration**
Add a Google Drive upload field to Contact Form 7 forms and save submitted files directly to your Drive account.

**Direct Download Links**
Insert Google Drive file download links into your content, giving visitors quick access to selected files.

**ZIP Download for Multiple Files**
Allow selected Google Drive files to be downloaded together as a ZIP archive. This is useful when users need to download multiple documents, images, or other files at once.

**Built-in File Preview**
Preview supported Google Drive files in a clean lightbox interface. Visitors can view documents, images, and other supported file types without downloading them first.

**Custom Google App Support**
Use your own Google app credentials if you want more control over the Google API connection and branding.

**Multilingual Ready**
The plugin is translation-ready and works with popular translation tools such as Loco Translate, helping you localize the interface for different languages.

**Performance Friendly Asset Loading**
Plugin scripts and styles are loaded only where needed. This helps reduce unnecessary page assets and keeps your website faster.

**Responsive Layouts**
Modules such as File Browser, Gallery, Upload Box, and Media Player are designed to work smoothly across desktop, tablet, and mobile devices.


== PRO Features ==

**Specific Folder Access**
Limit plugin access to selected Google Drive folders only. This is useful when you want to keep the plugin focused on certain folders instead of the full Drive account.

**Private User Files**
Create private file areas where users or clients can only access files assigned to them. This is ideal for client portals, student files, member downloads, and secure document sharing.

**Frontend File Uploader**
Let users, clients, or customers upload files directly from your website to your Google Drive account using a customizable uploader module.

**Media Player Module**
Play audio and video files stored in Google Drive using an embeddable media player. You can create playlists from selected files or folders and control download availability.

**Review & Approve Module**
Allow users or clients to review, select, and confirm Google Drive files. This is helpful for proofing workflows, file selection, approval processes, and client reviews.

**Search Box Module**
Add a standalone Google Drive search box to your website so visitors can search available files from the frontend.

**Slider Carousel Module**
Display Google Drive images, videos, and documents in an interactive slider carousel. It is useful for portfolios, media showcases, and visual file presentations.

**Photo and File Proofing**
Let clients select preferred images or files from a gallery-style interface. Selected files can be downloaded as a ZIP file or sent to the site admin by email.

**One-click Import to Media Library**
Import Google Drive files into the WordPress Media Library with a single click, making it easier to reuse Drive files in posts, pages, and theme content.

**Multiple Google Accounts**
Connect and manage files from multiple Google Drive accounts. Switch between accounts when building modules or managing files.

**File Activity Analytics**
Track important file actions such as downloads, uploads, previews, and streams. The analytics dashboard helps you understand how users interact with your Google Drive files.

**Watermark Protection**
Protect image previews, shared image links, and downloaded images with configurable text or image watermarks while keeping the original Google Drive files unchanged.

**Statistics Email Reports**
Receive scheduled email reports with Google Drive file usage summaries. Reports can be sent daily, weekly, or monthly.

**Email Notifications**
Get notified when users perform important file actions such as uploads, downloads, previews, or deletions.

**Sell Digital Downloads**
Use Google Drive files as downloadable products with WooCommerce or Easy Digital Downloads. This helps you deliver digital products without storing all files on your WordPress server.

**WooCommerce Uploads to Google Drive**
Allow customers to upload files to Google Drive during checkout or order submission.

**Form Uploads to Google Drive**
Receive file uploads from popular form plugins and store them directly in Google Drive. Supported integrations include Gravity Forms, WPForms, Ninja Forms, Formidable Forms, Fluent Forms, Contact Form 7, Elementor Forms, and MetForm.


== 🧩 Integrations with Popular WordPress Plugins ==

Connect Drive works smoothly with popular WordPress plugins and builders, so you can use Google Drive files across your website, forms, products, media library, and page builder content.

**Media Library Integration**
Use Google Drive files as WordPress media attachments. Upload, import, and synchronize files between WordPress and Google Drive.

**Classic Editor Integration**
Add Google Drive files directly inside the Classic Editor. Insert file browser modules, embed documents, and add download or preview links using the Google Drive button.

**Gutenberg Editor Integration**
Use dedicated Gutenberg blocks for File Browser, Gallery, Media Player, File Search, File Uploader, and file link modules.

**Elementor Integration**
Add Google Drive content to Elementor pages using ready-made widgets for File Browser, Gallery, Media Player, File Search, File Uploader, and file links.

**Elementor Pro Form Integration**
Send files uploaded through Elementor Pro forms directly to your Google Drive account.

**Divi Builder Integration**
Use Google Drive modules inside Divi Builder, including File Browser, Gallery, Media Player, File Search, File Uploader, and file link modules.

**Advanced Custom Fields Integration**
Select Google Drive files and folders using ACF fields and display them in your theme templates.

**WooCommerce Integration**
Serve downloadable product files from Google Drive and allow customers to upload files to your Drive account during purchase or checkout.

**Dokan Multi-vendor Marketplace Integration**
Let vendors use Google Drive files for product images and downloadable products. Customers can also upload files to Google Drive after purchase.

**Easy Digital Downloads Integration**
Deliver digital products directly from Google Drive using Easy Digital Downloads.

**Contact Form 7 Integration**
Upload files from Contact Form 7 forms directly to Google Drive.

**Gravity Forms Integration**
Send files uploaded through Gravity Forms file upload fields directly to Google Drive.

**Tutor LMS Integration**
Allow instructors to connect their Google accounts and use Google Drive videos or files as course materials and attachments.

**WPForms Integration**
Upload files from WPForms file upload fields directly to Google Drive.

**Ninja Forms Integration**
Upload files from Ninja Forms file upload fields directly to Google Drive.

**Fluent Forms Integration**
Upload files from Fluent Forms directly to Google Drive.

**Formidable Forms Integration**
Upload files from Formidable Forms file upload fields directly to Google Drive.

**MetForm Integration**
Upload files from MetForm directly to Google Drive for easy file collection and storage.

= Privacy and data handling =

Connect Drive does not store your Google Drive files on our servers.

Your site connects directly to Google to request authorization, fetch files, generate previews, and perform actions you approve. Access and refresh tokens are stored in your WordPress database so the plugin can continue working after authorization.

= Google Drive permissions =

You can choose the access level that fits your setup:

* **Application Folder:** access only to the plugin folder created in Drive.
* **Specific Folders:** access only to the folders you explicitly select.
* **Entire Drive:** access to the connected Drive account for full browsing and management features.

Google shows the exact permissions on the authorization screen before access is granted. You can revoke access at any time from your Google account or by disconnecting the account in WordPress.

== External services ==

* **Google APIs** - [Terms of Service](https://policies.google.com/terms) | [Privacy Policy](https://policies.google.com/privacy)
    This plugin connects to Google APIs so it can authorize your Google account and then browse, preview, upload, download, stream, embed, and manage Google Drive files from your WordPress site.

* **Gravatar** – [Terms of Service](https://gravatar.com/site/terms-of-service) | [Privacy Policy](https://automattic.com/privacy/)
    This plugin can request avatar images from Gravatar at gravatar.com, a service provided by Automattic, for WordPress users shown inside the plugin interface.

* **Freemius** – [Terms of Service](https://freemius.com/terms/) | [Privacy Policy](https://freemius.com/privacy-policy/)
    Used for managing premium upgrades, license activation and validation, automatic plugin updates, billing, and customer support.


== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/cloudmaster-connect-drive` directory, or install the plugin through the WordPress plugins screen.
2. Activate the plugin through the `Plugins` screen in WordPress.
3. Open `Connect Drive` from the WordPress admin menu.
4. Enter your Google OAuth Client ID and Client Secret in the plugin settings.
5. Connect your Google account and create the modules you want to use.

== Frequently Asked Questions ==

= Do I need my own Google API credentials? =

No. Connect Drive can use the built-in secure connection flow to help you connect quickly. If you prefer full control over your Google OAuth app, you can also enter your own Google Client ID and Client Secret in the plugin settings.

= Can I limit the plugin to specific Google Drive folders? =

Yes. You can choose the access mode that fits your site. The plugin supports an application folder, selected folders, or broader Drive access depending on your configuration and feature requirements.

= Can I show Google Drive files on the front end of my website? =

Yes. You can create modules such as File Browser, File List, Gallery, Embed, Upload Box, Media Player, Search Box, Slider Carousel, and Review & Approve modules, then place them on pages or posts using shortcodes or supported builder widgets.

= Can users upload files from my website to Google Drive? =

Yes. Connect Drive supports Google Drive uploads from WordPress. Depending on your module and integration settings, users can upload files through frontend upload modules, WooCommerce upload fields, and supported form plugins.

= Does Connect Drive store my Google Drive files on my WordPress server? =

No. Your files remain in Google Drive. Connect Drive displays, previews, uploads, downloads, and manages files through the Google Drive API based on the permissions you grant.

= Where are tokens and settings stored? =

Connection tokens and plugin settings are stored in your WordPress database so the plugin can continue working after your Google account is connected.

= Can I revoke Google Drive access later? =

Yes. You can disconnect the account from the plugin settings or revoke access from your Google account security settings at any time.

== Screenshots ==
1. Advanced File Manager
2. Shortcode Module Builder
3. Easy & Secure Google Drive Connection
4. File Uploader Module
5. Gallery Module
6. Media Player Module
7. Popular Third-party Integrations

== Changelog ==

= 1.0.1 =
* New: Added Media Library integration to use Google Drive files as WordPress media attachments.
* New: Added Watermark Protection for Google Drive image previews and downloads.
* Improvement: Improved overall plugin performance and security.

= 1.0.0 =

* Initial release.
* New: Added Watermark Protection for Google Drive image previews, shared image links, and downloads.
