Create theme for CinemaPress
Go to file
Zelda Root 12cf64897e
Update README.md
2021-05-26 23:07:10 +03:00
default Add uncss 2020-09-13 14:32:12 +03:00
lib Fix uncss 2020-09-13 16:16:04 +03:00
.gitignore Create theme for CinemaPress 2020-03-07 18:27:11 +02:00
README.md Update README.md 2021-05-26 23:07:10 +03:00
cinematheme.js Add uncss 2020-09-13 14:32:12 +03:00
index.js Add uncss 2020-09-13 14:32:12 +03:00
package.json Update package.json 2021-03-16 15:29:05 +02:00

README.md

Create theme for CinemaPress

Install (NodeJS)

npm i cinematheme -g

Usage

cinematheme --name "mytheme" --index "https://example.com"
  • https://example.com - donor website;
  • mytheme - name theme (lowercase).

After generation and editing (recommended use Visual Studio Code and EJS extensions), you can send mytheme folder to the server in themes folder.

  • /themes/mytheme/default/ - all functions in theme (help);
  • /themes/mytheme/public/ - static files;
  • /themes/mytheme/views/ - theme files;

File to URL:

  • index.ejs - /
  • movie.ejs - /movie/[id]
  • episode.ejs - /movie/[id]/s11e22
  • picture.ejs - /movie/[id]/picture
  • trailer.ejs - /movie/[id]/trailer
  • online.ejs - /movie/[id]/online
  • download.ejs - /movie/[id]/download
  • categories.ejs
    • /year
    • /genre
    • /actor
    • /country
    • /director
    • /content
  • category.ejs
    • /year/[year]
    • /genre/[genre]
    • /actor/[actor]
    • /country/[country]
    • /director/[director]
    • /content/[content]

Help

~# cinematheme -h

Usage: cinematheme <command> [options]

Create theme for CinemaPress

Options:
  -i, --index <url>       index url
  -m, --movie [url]       movie url
  -c, --category [url]    category url
  -s, --categories [url]  categories url
  -e, --episode [url]     episode url
  -p, --picture [url]     picture url
  -t, --trailer [url]     trailer url
  -o, --online [url]      online url
  -d, --download [url]    download url
  -n, --name [name]       name theme
  -u, --uncss             removes unused CSS
  -V, --version           output the version number
  -h, --help              output usage information