Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Developer Documentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Documentation
Docs
Developer Documentation
Commits
26c2f3b9
Commit
26c2f3b9
authored
8 years ago
by
totten
Browse files
Options
Downloads
Patches
Plain Diff
theme.md - Tweak callback spec
parent
c20a3b85
No related branches found
Branches containing commit
No related tags found
1 merge request
!580
Adding theming information
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/theme.md
+5
-1
5 additions, 1 deletion
docs/theme.md
with
5 additions
and
1 deletion
docs/theme.md
+
5
−
1
View file @
26c2f3b9
...
...
@@ -310,6 +310,8 @@ function newyork_civicrm_themes(&$themes) {
}
/**
* Determine the URL for a CSS resource file.
*
* @param \Civi\Core\Themes $themes
* @param string $themeKey
* Identify the active theme (ex: 'newyork-blue', 'newyork-hicontrast').
...
...
@@ -317,8 +319,10 @@ function newyork_civicrm_themes(&$themes) {
* Identify the requested CSS file (ex: 'civicrm', 'org.civicrm.volunteer').
* @param string $cssFile
* Identify the requested CSS file (ex: 'css/civicrm.css', 'css/bootstrap.css').
* @return array
* @return array
|\Civi\Core\Themes::PASSTHRU
* A list of zero or more CSS URLs.
* To pass responsibility to another URL callback, return
* the constant \Civi\Core\Themes::PASSTHRU.
*/
function
_newyork_css_url
(
$themes
,
$themeKey
,
$cssExt
,
$cssFile
)
{
return
array
(
'http://example.com/css/myfile.css'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment