Skip to content

Clear documentation for themes #3106

Open
@lonesomewalker

Description

@lonesomewalker

Is your feature request related to a problem? Please describe.
We need a clear design guide how to properly generate an own theme.
Also only ONE place to save would be nice.

As stated in:
https://support.chamilo.org/projects/chamilo-18/wiki/Design_conventions

CSS files¶
CSS files MUST be placed in their own folder in app/Resources/public/css/themes/{theme}/ and MUST be named by lowercase-only filenames (and obviously have the ".css" extension).

Now we have /main/inc/lib/template.lib.php:
` // Base CSS
$css[] = api_get_cdn_path(api_get_path(WEB_CSS_PATH).'base.css');

    if ($this->show_learnpath) {
        $css[] = api_get_cdn_path(api_get_path(WEB_CSS_PATH).'scorm.css');
        if (is_file(api_get_path(SYS_CSS_PATH).$this->themeDir.'learnpath.css')) {
            $css[] = api_get_path(WEB_CSS_PATH).$this->themeDir.'learnpath.css';
        }
    }

    $css[] = api_get_cdn_path(api_get_path(WEB_CSS_PATH).$this->themeDir.'default.css');
    $css[] = api_get_cdn_path(ChamiloApi::getEditorBlockStylePath());

`

This goes to /web/css/ where the file gets copied...?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions