Skip to content
Snippets Groups Projects
Commit 56322e09 authored by Seamus Lee's avatar Seamus Lee
Browse files

Update examples to be simpler initially and a more detailed example

parent bdfa38e1
No related branches found
No related tags found
1 merge request!623Add Docs on new theme hooks
......@@ -46,19 +46,32 @@ This Hook is called when building a list of available themes for use within Civi
/*
* A theme is a set of CSS files which are loaded on CiviCRM pages.
*/
function civitest_civicrm_themes( &$themes ) {
$themes['civielection'] = [
'title' => 'civielection theme',
'ext' => 'au.org.greens.civielection',
];
}
```
a more detailed example
```php
/*
* A theme is a set of CSS files which are loaded on CiviCRM pages.
*/
function civitest_civicrm_themes( &$themes ) {
$themes['civielection'] = [
'name' => 'civielection',
'title' => 'civielection theme',
'ext' => 'au.org.greens.civielection',
'prefix' => NULL,
'name' => 'civielection',
'url_callback' => '\\Civi\\Core\\Themes\\Resolvers::simple',
'search_order' => [
0 => 'civielection',
1 => '_fallback_',
1 => Civi\Core\Themes::FALLBACK,
],
'excludes' => [],
'prefix' => 'election',
'excludes' => ['bootstrap.css'],
];
}
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment