=== SharpLaunch Property Search Engine ===
Contributors: sharplaunch
Tags: properties, real-estate, listings, sync, api
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 2.0.1
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect your SharpLaunch properties with your WordPress site. Automatically sync property listings with SEO optimization.

== Description ==

The SharpLaunch Property Search Engine plugin seamlessly integrates your SharpLaunch property marketplace with your WordPress website. This plugin automatically syncs your property listings, creating SEO-optimized pages for each property.

**Key Features:**

* **Automatic Sync**: Keep your WordPress site updated with your latest SharpLaunch properties
* **SEO Optimized**: Custom meta titles and descriptions for better search engine visibility  
* **Custom Post Type**: Properties are organized as a dedicated post type in WordPress
* **REST API Integration**: Secure API connection with your SharpLaunch account
* **Template Override**: Customize how property pages display on your site
* **Manual & Automatic Sync**: Sync on-demand or set up automated updates

**Perfect For:**
* Real estate agents and brokers
* Property management companies
* Anyone using SharpLaunch for property listings

**Requirements:**
* Active SharpLaunch account with API access
* SharpLaunch PSE Key (provided by SharpLaunch)

== Installation ==

1. Upload the plugin files to `/wp-content/plugins/sharplaunch-property-search-engine/` directory
2. Activate the plugin through the 'Plugins' screen in WordPress
3. Go to Settings > SharpLaunch PSE Settings
4. Enter your SharpLaunch PSE Key and slug
5. Click "Sync Properties" to import your listings

== Frequently Asked Questions ==

= Do I need a SharpLaunch account? =

Yes, you need an active SharpLaunch account with API access. Contact SharpLaunch to get your PSE Key.

= How often does the sync happen? =

You can manually sync anytime from the admin panel. For automatic sync, provide your REST API endpoint to SharpLaunch.

= Will this affect my existing WordPress content? =

No, the plugin only creates and manages property posts. Your existing content remains untouched.

= Can I customize how properties display? =

Yes, you can override the template by creating a custom `single-sl_properties.php` template in your theme.

= What happens if I deactivate the plugin? =

All synced properties will be deleted from WordPress when you deactivate the plugin.

= How do I get a PSE key? =

Please contact SharpLaunch support to get a PSE key. It's not the same as the regular API key.

= Where can I view my properties? =

All properties are displayed in your WordPress admin Properties section. Each property can be accessed at: `https://yourwebsite.com/sl_properties/property-slug`

== Screenshots ==

1. Plugin settings page where you enter your SharpLaunch credentials
2. Properties post type in WordPress admin
3. Example property page on the frontend
4. Manual sync interface

== External services ==

This plugin connects to the SharpLaunch server in order to fetch the client API.

== Changelog ==

= 2.0.1 =
* Security improvements and WordPress.org compliance
* Enhanced input sanitization and output escaping
* Added timeout protection for API calls
* Improved error handling

= 2.0 =
* Complete plugin rewrite
* Added REST API integration
* Improved sync functionality
* Enhanced SEO features
* Better admin interface
* Create a settings page to configure the PSE key and slug
* Create a button to sync properties manually
* Sync properties from SharpLaunch
* Create a view page for each property with SEO metadata
* Create an API endpoint to trigger property sync
* Protect API endpoint with token authentication

= 1.0 =
* Initial release

== Upgrade Notice ==

= 2.0.1 =
Security update recommended for all users. No functionality changes.

== Roadmap ==

**Phase 2 (Coming Soon):**
* Create a page under configured slug to display PSE automatically
* Improve token generation with more secure method
* Improve sync process performance

== Support ==

For support with this plugin, please contact SharpLaunch support or visit our documentation at https://sharplaunch.com/support