Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dic-global-dev
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Manzar Hussain
dic-global-dev
Commits
c3b9d62f
Commit
c3b9d62f
authored
Jan 19, 2021
by
Manzar Hussain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
custom theme function
parent
80ad5696
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
envigo.theme
themes/custom/envigo/envigo.theme
+8
-2
No files found.
themes/custom/envigo/envigo.theme
View file @
c3b9d62f
...
@@ -31,14 +31,20 @@ function envigo_form_search_block_form_alter(&$form, &$form_state) {
...
@@ -31,14 +31,20 @@ function envigo_form_search_block_form_alter(&$form, &$form_state) {
$form['actions']['submit']['#attributes']['class'][] = 'search-button';
$form['actions']['submit']['#attributes']['class'][] = 'search-button';
}
}
function envigo_theme_suggestions_views_view_alter(array &$suggestions, array $variables) {
/*
function envigo_theme_suggestions_views_view_alter(array &$suggestions, array $variables) {
// If you want you can add a template suggestion for all views
// If you want you can add a template suggestion for all views
// based on their ID:
// based on their ID:
$suggestions[] = sprintf('views_view__%s', $variables['view']->id());
$suggestions[] = sprintf('views_view__%s', $variables['view']->id());
// Or you can check the ID, add suggestions, do whatever you want
// Or you can check the ID, add suggestions, do whatever you want
// ...
// ...
}
}*/
function envigo_theme_suggestions_views_view(array $variables) {
return [
'views_view_display__' . $variables['view']->current_display,
];
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment