feat(rail-ads): Add more format options with multiple widths

- Added width options: 130px, 140px, 150px, 160px, 300px, 400px, 500px, 600px
- Each width has multiple height options (300, 400, 500, 600, etc.)
- Total of 31 format combinations available
- Updated Schema, Renderer and FormBuilder

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
FrankZamora
2025-11-27 21:44:18 -06:00
parent 1b9910165b
commit ce19345f78
3 changed files with 102 additions and 19 deletions

View File

@@ -295,16 +295,47 @@ final class AdsensePlacementRenderer
$delayEnabled = ($settings['forms']['delay_enabled'] ?? true) === true;
// Dimensiones segun formato
// Opciones de 160px de ancho con diferentes alturas + opciones anchas
// Soporta anchos: 130, 140, 150, 160, 300, 400, 500, 600px
[$width, $height] = match($format) {
// 130px width
'w130-h300' => [130, 300],
'w130-h400' => [130, 400],
'w130-h500' => [130, 500],
'w130-h600' => [130, 600],
// 140px width
'w140-h300' => [140, 300],
'w140-h400' => [140, 400],
'w140-h500' => [140, 500],
'w140-h600' => [140, 600],
// 150px width
'w150-h300' => [150, 300],
'w150-h400' => [150, 400],
'w150-h500' => [150, 500],
'w150-h600' => [150, 600],
// 160px width (legacy keys)
'slim-small' => [160, 300],
'slim-medium' => [160, 400],
'slim-large' => [160, 500],
'slim-xlarge' => [160, 700],
'wide-skyscraper' => [160, 800],
// 300px width
'w300-h250' => [300, 250],
'half-page' => [300, 600],
'large-skyscraper' => [300, 1050],
default => [160, 600], // skyscraper
// 400px width
'w400-h300' => [400, 300],
'w400-h400' => [400, 400],
'w400-h600' => [400, 600],
// 500px width
'w500-h300' => [500, 300],
'w500-h400' => [500, 400],
'w500-h600' => [500, 600],
// 600px width
'w600-h300' => [600, 300],
'w600-h400' => [600, 400],
'w600-h600' => [600, 600],
// Default: skyscraper 160x600
default => [160, 600],
};
$scriptType = $delayEnabled ? 'text/plain' : 'text/javascript';