<?php
/**
 * CodePress CMS Version Information
 * 
 * This file contains version information and changelog for CodePress CMS.
 */

return [
    'version' => '1.6.0',
    'release_date' => '2026-06-24',
    'codename' => 'Enhanced',
    'status' => 'stable',

    'changelog' => [
        '1.6.0' => [
            'date' => '2026-06-24',
            'changes' => [
                'Media browser modal with upload and recursive content tree scan',
                'CodeMirror editor with formatting toolbar (bold, italic, heading, link, image, list)',
                'Media button in editor toolbar with image size prompt (Markdown vs HTML mode)',
                'Inline file rename in content-edit page (no separate rename page)',
                'Content move and directory management in admin',
                'Theme management subdirectory structure (themes/naam/theme.json)',
                'Theme CRUD in admin (create, activate, edit, delete)',
                'Unsaved changes detection: Back button turns into red Cancel',
                'Disabled state on upload and create buttons until input is valid',
                'Editor mode switching for new pages (Markdown/PHP/HTML)',
                '/-media/ URL prefix for media files from any content subdirectory',
                'Backward-compatible /-assets/ media serving',
                'Improved breadcrumb handling (no more stray dots)',
                'Numerous security and code quality improvements',
            ]
        ],
        '1.5.0' => [
            'date' => '2025-11-26',
            'changes' => [
                'Complete guide documentation rewrite with comprehensive examples',
                'Implement plugin system with HTMLBlock and MQTTTracker plugins',
                'Enhanced bilingual support (NL/EN) throughout the system',
                'Improved template system with better layout options',
                'Enhanced security headers and code quality improvements',
                'Updated documentation and configuration examples',
                'Plugin architecture for extensibility',
                'Real-time analytics and tracking capabilities',
            ]
        ],
        '1.0.0' => [
            'date' => '2025-11-24',
            'changes' => [
                'Initial stable release',
                'Complete security hardening (100/100 pentest score)',
                'Multi-language support (NL/EN)',
                'Responsive design with Bootstrap 5',
                'Automatic navigation and breadcrumbs',
                'Search functionality',
                'Markdown, HTML, and PHP content support',
                'Mustache templating system',
                'Comprehensive security headers',
                'XSS and path traversal protection',
                'Automated penetration test suite',
                'Functional test coverage',
            ]
        ]
    ],
    
    'system_requirements' => [
        'php' => '>=8.0',
        'extensions' => ['json', 'mbstring'],
        'optional' => ['opcache' => 'Recommended for performance']
    ],
    
    'credits' => [
        'author' => 'E.Noorlander / CodePress Development Team',
        'license' => 'AGPL v3 / Commercial',
        'license_info' => 'Dual-licensed: AGPL v3 for open-source, Commercial license for proprietary use',
        'repository' => 'https://git.noorlander.info/E.Noorlander/CodePress.git',
        'contact' => 'commercial@noorlander.info'
    ]
];