The Filmmakers for Future theme is a multi-page theme for Urlaube.
Place the folder containing the theme into your themes directory located at ./user/themes/
.
Finally, add the following line to your configuration file located at ./user/config/config.php
to select the theme:
Main::set(THEMENAME, FM4FTheme::class);
To configure the theme you can change the corresponding settings in your configuration file located at ./user/config/config.php
.
You can overwrite the auto-generated author header:
Themes::set(AUTHOR, static::getDefaultAttribute(AUTHOR));
You can overwrite the auto-generated canonical URL header:
Themes::set(CANONICAL, static::getDefaultCanonical());
You can overwrite the auto-generated charset header:
Themes::set(CHARSET, static::getDefaultCharset());
You can add HTML content to the header:
Themes::set(CONTENT, static::getDefaultAttribute(CONTENT));
You can overwrite the auto-generated date information:
Themes::set(DATE, static::getDefaultAttribute(DATE));
Set this value to none
if you want to hide the date information in the header.
You can set the following values to change the copyright text in the footer area. You can either choose auto-escaped text by setting COPYRIGHT
or you can choose HTML by setting "copyright_html"
:
Themes::set(COPYRIGHT, static::getDefaultCopyright());
Themes::set("copyright_html", null);
You can overwrite the auto-generated description header:
Themes::set(DESCRIPTION, static::getDefaultAttribute(DESCRIPTION));
You can set the URL of the favicon:
Themes::set(FAVICON, null);
You can overwrite the auto-generated keywords header:
Themes::set(KEYWORDS, static::getDefaultAttribute(KEYWORDS));
You can overwrite the auto-generated language header:
Themes::set(LANGUAGE, static::getDefaultLanguage());
You can set the content of the site's menu:
Themes::set(MENU, null);
The menu content has to be set as an array containing associative arrays for each element:
Themes::set(MENU, [[TITLE => "Linktext", URI => "https://example.com/"],
[TITLE => "Linktext 2", URI => "https://example.net/"]]);
The menu also support submenus by assigning an array containing associative to the MENU
field of a menu element:
Themes::set(MENU, [[TITLE => "Linktext",
URI => "https://example.com/"],
[TITLE => "Linktext 2",
URI => "#",
MENU => [[TITLE => "Linktext 2.A",
URI => "https://example.net/"]]]]);
You can set the following value to define the og:image
meta header:
Themes::set("page_image", static::getDefaultAttribute("PageImage"));
You can set the following value to define the descriptive sentence in the heading section:
Themes::set("page_info", static::getDefaultAttribute("PageInfo"));
You can overwrite the auto-generated page name that is used as an H1 headline:
Themes::set(PAGENAME, static::getDefaultAttribute(PAGENAME));
You can set the following value to define the og:type
meta header:
Themes::set("page_image", static::getDefaultAttribute("PageType"));
You can set the following value to define that the default heading shall be completely replaced with the content:
Themes::set("replace_heading", static::getDefaultAttribute("ReplaceHeading"));
You can set the following value to define that the section block shall be completely replaced with the content:
Themes::set("replace_section", static::getDefaultAttribute("ReplaceSection"));
You can set the following value to define the alignment of sections:
Themes::set("section_alignment", static::getDefaultAttribute("SectionAlignment"));
Valid values are:
alternate
center
left
right
You can set the following value to define the background color of sections:
Themes::set("section_background", static::getDefaultAttribute("SectionBackground"));
Valid values are:
alternate
dark
primary
You can overwrite the preset site name that is used a text logo and in the auto-generated title header:
Themes::set(SITENAME, "Filmmakers for Future");
You can overwrite the preset site slogan that is used in the auto-generated title header:
Themes::set(SITESLOGAN, null);
You can set the time format used to display the DATE value of the content:
Themes::set(TIMEFORMAT, "d F Y");
The value specified here has to be supported by PHP's date() function.
You can overwrite the auto-generated title header:
Themes::set(TITLE, static::getDefaultAttribute(TITLE));
The theme implements a special handling for categories. If a category example
is used in content files and there exists a corresponding content file called ./user/content/example.md
, then the fields in the corresponding content file overwrite the theme configurations.
The theme implements a special handling for pages. If a content file ./user/content/example.md
does not set the CATEGORY
field, then the fields in the content file overwrite the theme configurations. Furthermore, the content of that content file is used in the heading section. For such a page the corresponding content folder ./user/content/example/
is searched for *.md
files. If these are found and set the SECTION
field to true
then their content is used as individual sections of the rendered page. The sections will be sorted by filename.