Skip to content
苹果CMS · AppleCMS 苹果CMS · AppleCMS v12
Home / Themes
Templates

If you know a bit of Blade, you can restyle the front

V10 mixed Mac tags and ThinkPHP tags. V12 front templates use @vod* — normal Blade. Themes live in resources/views/themes/default/.

Common tags

  • @vodSeo page title / meta
  • @vodType / @vod types and video lists
  • @vodPaginate pager (lists need page)
  • @vodBreadcrumb breadcrumb
  • @vodPrev / @vodNext prev / next
  • @vodDate / @vodSubstr formatters

Admin tag wizard

The wizard lists options per page type and generates paste-ready Blade. After paging, add @vodPaginate or you only get page one.

With the code-editor plugin on, the theme page highlights Blade and @vod. Off still uses a textarea — themes are not locked.

Example

A typical list page

blade
@vod(['type' => $typeId, 'num' => 12, 'page' => true])
    {{ $item->title }}
@endvod
@vodPaginate

Theme folder

Edit the default theme only in themes/default/. Copy a set before you switch, so upgrades do not wipe your edits.

Pages

Home, types, filters, search, detail, play, topics, actors, news, and the member area each have a Blade file.

Vs this official-site theme

This official site uses @cms* tags. The video site uses @vod*. Do not mix them.

Full tag list Theme folder docs

Group @sanpang