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
9571d027
Commit
9571d027
authored
Jan 14, 2021
by
Manzar Hussain
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-theme' into 'develop'
sidebar investor menu See merge request manzarH/dic-global-dev!349
parents
13b30367
fbe1475d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
120 deletions
+0
-120
block--menu-block--sidebar-investor.html.twig
themes/custom/envigo/templates/block/block--menu-block--sidebar-investor.html.twig
+0
-58
menu--sidebar-investor.html.twig
themes/custom/envigo/templates/navigation/ menu--sidebar-investor.html.twig
+0
-62
No files found.
themes/custom/envigo/templates/block/block--menu-block--sidebar-investor.html.twig
deleted
100644 → 0
View file @
13b30367
{#
/**
* @file
* Theme override for a menu block.
*
* Available variables:
* - plugin_id: The ID of the block implementation.
* - label: The configured label of the block if visible.
* - configuration: A list of the block's configuration values.
* - label: The configured label for the block.
* - label_display: The display settings for the label.
* - provider: The module or other provider that provided this block plugin.
* - Block plugin specific settings will also be stored here.
* - content: The content of this block.
* - attributes: HTML attributes for the containing element.
* - id: A valid HTML ID and guaranteed unique.
* - title_attributes: HTML attributes for the title element.
* - content_attributes: HTML attributes for the content element.
* - title_prefix: Additional output populated by modules, intended to be
* displayed in front of the main title tag that appears in the template.
* - title_suffix: Additional output populated by modules, intended to be
* displayed after the main title tag that appears in the template.
*
* Headings should be used on navigation menus that consistently appear on
* multiple pages. When this menu block's label is configured to not be
* displayed, it is automatically made invisible using the 'visually-hidden' CSS
* class, which still keeps it visible for screen-readers and assistive
* technology. Headings allow screen-reader and keyboard only users to navigate
* to or skip the links.
* See http://juicystudio.com/article/screen-readers-display-none.php and
* http://www.w3.org/TR/WCAG-TECHS/H42.html for more information.
*/
#}
{%
set
classes
=
[
'block'
,
'block-menu'
,
'navigation'
,
'menu--'
~
derivative_plugin_id
|
clean_class
,
]
%}
{%
set
heading_id
=
attributes.id
~
'-menu'
|
clean_id
%}
{# Label. If not displayed, we still provide it for screen readers. #}
{%
if
not
configuration.label_display
%}
{%
set
title_attributes
=
title_attributes.addClass
(
'visually-hidden'
)
%}
{%
endif
%}
{{
title_prefix
}}
<h2
{{
title_attributes.setAttribute
(
'id'
,
heading_id
)
}}
>
{{
configuration.label
}}
</h2>
{{
title_suffix
}}
{# Menu. #}
{%
block
content
%}
{{
content
}}
{%
endblock
%}
</div>
</div>
themes/custom/envigo/templates/navigation/ menu--sidebar-investor.html.twig
deleted
100644 → 0
View file @
13b30367
{#
/**
* @file
* Theme override to display a menu.
*
* Available variables:
* - menu_name: The machine name of the menu.
* - items: A nested list of menu items. Each menu item contains:
* - attributes: HTML attributes for the menu item.
* - below: The menu item child items.
* - title: The menu link title.
* - url: The menu link url, instance of \Drupal\Core\Url
* - localized_options: Menu link localized options.
* - is_expanded: TRUE if the link has visible children within the current
* menu tree.
* - is_collapsed: TRUE if the link has children within the current menu tree
* that are not currently visible.
* - in_active_trail: TRUE if the link is in the active trail.
*/
#}
{%
import
_self
as
menus
%}
{#
We call a macro which calls itself to render the full tree.
@see https://twig.symfony.com/doc/1.x/tags/macro.html
#}
{{
menus.menu_links
(
items
,
attributes
,
0
)
}}
{%
macro
menu_links
(
items
,
attributes
,
menu_level
)
%}
{%
import
_self
as
menus
%}
{%
if
items
%}
{%
if
menu_level
==
0
%}
<div
class=
"ls_sbmenu sb_dd_m_data"
>
<ul>
{%
else
%}
<em><i
class=
"fa fa-angle-down"
aria-hidden=
"true"
></i></em>
<div
class=
"header-nav-item-child-list"
>
<ul
class=
"pure-g"
>
{%
endif
%}
{%
for
item
in
items
%}
{%
set
classes
=
[
'menu-item'
,
item.is_expanded
?
'menu-item--expanded'
,
item.is_collapsed
?
'menu-item--collapsed'
,
item.in_active_trail
?
'menu-item--active-trail'
,
]
%}
<li>
{{
link
(
item.title
,
item.url
)
}}
{%
if
item.below
%}
{{
menus.menu_links
(
item.below
,
attributes
,
menu_level
+
1
)
}}
{%
endif
%}
</li>
{%
endfor
%}
</ul>
</div>
{%
endif
%}
{%
endmacro
%}
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