Ad Area System
# Ad Area System Guide The Ad Area System is a conditional advertising feature that displays promotional content only when the CMS is in hosting service mode. This system provides hosting providers with a professional way to showcase their services while maintaining a clean experience for self-hosted users. ## ๐ Table of Contents - [Overview](#overview) - [How It Works](#how-it-works) - [CMS Mode Integration](#cms-mode-integration) - [Template System](#template-system) - [Theme Integration](#theme-integration) - [Customization](#customization) - [Testing](#testing) - [Troubleshooting](#troubleshooting) - [Advanced Features](#advanced-features) ## ๐ฏ Overview The Ad Area System provides: - **Conditional Display**: Ads only appear in hosting service modes - **Theme Consistency**: Same ad appearance across all themes - **Professional Design**: Modern, responsive advertising interface - **User Control**: Close button for user preference - **Easy Maintenance**: Single template file for all themes ### When Ads Are Visible | CMS Mode | Ad Area Status | |----------|----------------| | Full Featured | โ Hidden | | Hosting Service (Plugin Mode) | โ Visible | | Hosting Service (No Plugin Management) | โ Visible | ## ๐ง How It Works ### Conditional Logic The ad area uses template conditional syntax to determine visibility: ```html {{#if isHostingServiceMode}}
Debug Info:
CMS Mode: full-featured
Is Hosting Service: false
Mode Name: Full Featured
```
## ๐ Advanced Features
### A/B Testing
Implement different ad variations:
```html
{{#if isHostingServiceMode}}
{{#if themeOptions.adVariation}}
{{include=ad-area-variation-b.html}}
{{else}}
{{include=ad-area.html}}
{{/if}}
{{/if}}
```
### Analytics Integration
Track ad performance:
```html
```
### Dynamic Content
Load ad content dynamically:
```html
{{#if isHostingServiceMode}}
CMS Mode: full-featured
Is Hosting Service: false
Mode Name: Full Featured