# Core Classes

## CodePressCMS.php

Main CMS class in `cms/core/class/CodePressCMS.php`:

```php
$cms = new CodePressCMS();
$cms->init();
$cms->renderPage($pagePath);
```

## ThemeManager.php

Theme management in `cms/core/class/ThemeManager.php`:

```php
$themeManager = new ThemeManager($config);
$themeManager->getActiveTheme();
$themeManager->renderTwig($template, $data);
$themeManager->compileCss($force);
```

## PluginManager.php

Plugin system in `cms/core/class/PluginManager.php`:

```php
$pluginManager = new PluginManager();
$pluginManager->loadPlugins($enabledPlugins);
$pluginManager->executeHook($name, $params);
```