# ContentZavod WordPress Plugin

![Version](https://img.shields.io/badge/version-2.4.3-blue.svg)
![WordPress](https://img.shields.io/badge/WordPress-5.0%2B-blue.svg)
![PHP](https://img.shields.io/badge/PHP-7.4%2B-blue.svg)
![License](https://img.shields.io/badge/license-GPLv2-blue.svg)

Professional plugin for integrating quality content into your WordPress site through ContentZavod API.

[Русский](README.md) | **English** | [Español](README-es.md) | [Deutsch](README-de.md) | [Français](README-fr.md) | [中文](README-zh.md)

## 🎯 Description

ContentZavod is a powerful WordPress plugin that automatically integrates quality content into your website, helping improve SEO and increase traffic. The plugin works through a secure API and requires no technical knowledge to set up.

## ✨ Key Features

- 🔄 **Automatic Content Retrieval** - content is loaded through API in real-time
- 🗺️ **Sitemap Integration** - automatic addition to robots.txt
- ⚙️ **Easy Setup** - intuitive multilingual admin panel
- 🔐 **Security** - secure API token storage
- 📱 **Responsive** - full mobile device support
- 🚀 **SEO Optimization** - proper URL structure and meta tags
- ⚡ **Caching** - built-in caching for fast loading
- 🎨 **Link Processing** - automatic adaptation of all links to your domain

## 📋 Requirements

- WordPress 5.0 or higher
- PHP 7.4 or higher
- Valid ContentZavod API token
- Enabled `wp_remote_get()` function

## 📦 Installation

### Through WordPress Admin Panel (Recommended)

1. Log in to WordPress admin panel
2. Go to **Plugins → Add New**
3. Click **"Upload Plugin"**
4. Select `contentzavod.zip` file
5. Click **"Install Now"**, then **"Activate"**

### Manually via FTP

1. Unzip `contentzavod.zip`
2. Upload `contentzavod` folder to `/wp-content/plugins/`
3. Activate the plugin in WordPress admin panel

## ⚙️ Configuration

### Step 1: Get API Token

Register at [contentzavod.fittin.ru](https://contentzavod.fittin.ru) and get an API token in your personal account.

### Step 2: Configure Plugin

1. Go to **Settings → ContentZavod**
2. Enter API token in the field
3. Click **"Save Settings"**

### Step 3: Update Permalinks

1. Go to **Settings → Permalinks**
2. Click **"Save Changes"** (no need to change anything)

### Step 4: Verify Operation

Open `https://your-site.com/contentzavod/` - you should see a news page.

## 🔗 URL Structure

After installation, content will be available at the following addresses:

| Content Type | URL | Description |
|--------------|-----|-------------|
| Main Page | `/contentzavod/` | List of all news |
| Single Article | `/contentzavod/view/{slug}` | Full article text |
| Sitemap | `/contentzavod-sitemap.xml` | XML sitemap |

## 🛠️ Troubleshooting

### 404 Page

**Solution:** Update permalinks (Settings → Permalinks → Save)

### Blank Page

**Solution:**

1. Check API token correctness
2. Ensure token is active on contentzavod.fittin.ru
3. Check WordPress error logs

### Conflict with Other Plugins

**Solution:** Temporarily deactivate other plugins to identify the conflict

## 📊 Compatibility

The plugin is tested and compatible with:

- ✅ Yoast SEO
- ✅ All in One SEO Pack
- ✅ WP Super Cache
- ✅ W3 Total Cache
- ✅ LiteSpeed Cache
- ✅ Most WordPress themes

## 🔒 Security

- API token is stored encrypted in WordPress database
- All API requests use HTTPS
- Protection against SQL injection and XSS attacks
- Regular security updates

## 📈 Performance

- Built-in caching (30 minutes)
- Optimized API requests
- Minimal server load
- Fast page loading

## 📞 Support

**Official Website:** [contentzavod.fittin.ru](https://contentzavod.fittin.ru)  
**Email:** <support@fittin.ru>  
**Documentation:** [contentzavod.fittin.ru/docs](https://contentzavod.fittin.ru/docs)

## 📝 License

GPLv2 or later - [https://www.gnu.org/licenses/gpl-2.0.html](https://www.gnu.org/licenses/gpl-2.0.html)

This plugin is free software. You can redistribute and/or modify it under the terms of the GNU General Public License version 2 or later, published by the Free Software Foundation.

**Note:** The plugin requires an API token, which can be obtained at [contentzavod.fittin.ru](https://contentzavod.fittin.ru)

## 🔄 Changelog

### Version 2.4.3 (2025-10-28)

- ✅ Added multilingual support (10 languages)
- ✅ Improved localization system
- ✅ Updated documentation in multiple languages
- ✅ Performance optimization
- ✅ Enhanced admin panel
- ✅ Bug fixes

---

**Made with ❤️ by [Fittin](https://contentzavod.fittin.ru) team**

