Source Code Structure
# Introduction
Sits CMS provides a clean and well-organized codebase with no encryption. Built on Laravel's modular architecture, the system is designed to be highly extensible and maintainable. The source code follows Laravel best practices and coding standards to ensure code quality and readability.
# Modular Architecture
Sits CMS utilizes Laravel's modular architecture to organize code into self-contained modules. Each module handles specific functionality like pages, users, or media. The modular design promotes clean separation of concerns, making the code easier to maintain and extend. New features can be added by creating additional modules without modifying existing code.
# Source Code Location
The main source code is located in the /sits directory. This directory contains all
the core modules, packages, plugins, and themes that make up Sits CMS.
# Directory Structure
The platform directory is organized into several key directories:
core: Contains the core modules of the Sits CMSpackages: Contains reusable packages that can be used across different projectsplugins: Contains feature-specific plugins that extend the CMS functionalitythemes: Contains the frontend themes for the Sits CMS
# Module Structure Example
Let's take the Blog plugin as an example to understand the structure of a module:
sits/plugins/blog/database/migrations: Contains the database migrationssits/plugins/blog/helpers: Contains the reusable functionalitysits/plugins/blog/resources/views: Contains the viewssits/plugins/blog/routes/web.php: Contains the routessits/plugins/blog/src/Http/Controllers: Contains the controllerssits/plugins/blog/src/Models: Contains the modelssits/plugins/blog/src/Providers: Contains the providerssits/plugins/blog/plugin.json: Contains the plugin information
Each module follows a similar structure, making it easy to understand and navigate the codebase.
# Frontend Themes
- Frontend themes are located in the
sits/themesdirectory. - Each theme is a separate directory containing all the necessary files for the theme, including views, assets, and configuration files.
- Each theme is designed to give your website a unique look while keeping content and functionality consistent. Switching themes does not affect your data or site content.
- Themes can be switched easily from the admin panel, allowing you to update the site design quickly and safely.
On this Page
On this Page
