Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Pollora/theme-default

Repository files navigation

Pollora Default Theme

The default theme template for Pollora. This repository contains placeholder files that are processed by pollora:make-theme when creating a new project.

For End Users

You don't interact with this repository directly. When you create a Pollora project, the theme is generated automatically:

composer create-project pollora/pollora my-project
# or manually:
php artisan pollora:make-theme my-theme

Contributing

Development Setup

Theme development happens in a Pollora test project using the code name pollora-starter. This name is unique enough to avoid accidental replacements during packaging.

  1. Generate the dev theme in your test project:
php artisan pollora:make-theme pollora-starter \
 --theme-author="Pollora" \
 --theme-author-uri="https://pollora.dev" \
 --theme-uri="https://pollora.dev" \
 --theme-description="Pollora starter theme" \
 --theme-version="1.0.0"
  1. Develop in themes/pollora-starter/ — modify views, CSS, config, etc.

  2. Package your changes back into this repository:

cd /path/to/theme-default
./bin/package-theme.sh /path/to/your-project/themes/pollora-starter

The script replaces all pollora-starter / PolloraStarter / %theme_namespace% references with the appropriate %placeholder% tokens.

  1. Review, commit, tag and push:
git diff
git add -A && git commit -m "feat: description of changes"
git tag x.y.z
git push origin main --tags
  1. Verify by regenerating the theme from the updated tag:
rm -rf themes/pollora-starter
php artisan pollora:make-theme pollora-starter ...

Placeholders

The following placeholders are replaced by pollora:make-theme:

Placeholder Replaced with
pollora-starter Theme slug (e.g. my-theme)
%theme_namespace% PSR-4 namespace (e.g. Theme\MyTheme)
https://pollora.dev Theme URL
Pollora Author name
https://pollora.dev Author URL
Pollora starter theme Theme description
1.0.0 Version number

Important

  • Always use pollora-starter as the dev theme name — the packaging script depends on it
  • Never commit files with concrete theme names (check with grep -r "pollora-starter" --include="*.php" --include="*.css" before pushing)
  • The bin/ directory is excluded when the theme is downloaded by pollora:make-theme

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /