diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index 6e145bf..2a70cf2 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -113,6 +113,7 @@ module: theme: seven: 0 adminimal_theme: 0 + eql: 0 profile: figli_starter_kit _core: default_config_hash: R4IF-ClDHXxblLcG0L7MgsLvfBIMAvi_skumNFQwkDc diff --git a/config/sync/system.theme.yml b/config/sync/system.theme.yml index 5712381..d966419 100644 --- a/config/sync/system.theme.yml +++ b/config/sync/system.theme.yml @@ -2,3 +2,4 @@ admin: adminimal_theme langcode: fr _core: default_config_hash: TpdA4rsOBAawnqeon9A-Ooht_4VO3hHKib79xyHcTyg +default: eql diff --git a/web/themes/custom/eql/config/schema/eql.schema.yml b/web/themes/custom/eql/config/schema/eql.schema.yml new file mode 100644 index 0000000..10fe1ea --- /dev/null +++ b/web/themes/custom/eql/config/schema/eql.schema.yml @@ -0,0 +1,5 @@ +# Schema for the configuration files of the eql theme. + +eql.settings: + type: theme_settings + label: 'EQL settings' \ No newline at end of file diff --git a/web/themes/custom/eql/eql.breakpoints.yml b/web/themes/custom/eql/eql.breakpoints.yml new file mode 100644 index 0000000..7fe7c8e --- /dev/null +++ b/web/themes/custom/eql/eql.breakpoints.yml @@ -0,0 +1,18 @@ +eql.mobile: + label: mobile + mediaQuery: '(min-width: 0px)' + weight: 0 + multipliers: + - 1x +eql.narrow: + label: narrow + mediaQuery: 'all and (min-width: 480px) and (max-width: 959px)' + weight: 1 + multipliers: + - 1x +eql.wide: + label: wide + mediaQuery: 'all and (min-width: 960px)' + weight: 2 + multipliers: + - 1x \ No newline at end of file diff --git a/web/themes/custom/eql/eql.info.yml b/web/themes/custom/eql/eql.info.yml new file mode 100644 index 0000000..dca9e6d --- /dev/null +++ b/web/themes/custom/eql/eql.info.yml @@ -0,0 +1,22 @@ +name: EQL +type: theme +description: 'EQL theme.' +package: Core +version: VERSION +core_version_requirement: ^8.8 || ^9 +base theme: false + +regions: + header_top_left: 'Header top left' + header_top_rigth: 'Header top right' + header_bottom: 'Header Bottom' + help: Help + page_top: 'Page top' + content: Content + sidebar_first: 'Sidebar first' + sidebar_second: 'Sidebar second' + page_bottom: 'Page bottom' + footer_top: 'Footer top' + footer_bottom_left: 'Footer bottom left' + footer_bottom_middle: 'Footer bottom middle' + footer_bottom_right: 'Footer bottom right' \ No newline at end of file diff --git a/web/themes/custom/eql/templates/layout/html.html.twig b/web/themes/custom/eql/templates/layout/html.html.twig new file mode 100644 index 0000000..ce96853 --- /dev/null +++ b/web/themes/custom/eql/templates/layout/html.html.twig @@ -0,0 +1,55 @@ +{# +/** + * @file + * Theme override for the basic structure of a single Drupal page. + * + * Variables: + * - logged_in: A flag indicating if user is logged in. + * - root_path: The root path of the current page (e.g., node, admin, user). + * - node_type: The content type for the current node, if the page is a node. + * - head_title: List of text elements that make up the head_title variable. + * May contain one or more of the following: + * - title: The title of the page. + * - name: The name of the site. + * - slogan: The slogan of the site. + * - page_top: Initial rendered markup. This should be printed before 'page'. + * - page: The rendered page markup. + * - page_bottom: Closing rendered markup. This variable should be printed after + * 'page'. + * - db_offline: A flag indicating if the database is offline. + * - placeholder_token: The token for generating head, css, js and js-bottom + * placeholders. + * + * @see template_preprocess_html() + */ +#} +{% + set body_classes = [ + logged_in ? 'user-logged-in', + not root_path ? 'path-frontpage' : 'path-' ~ root_path|clean_class, + node_type ? 'page-node-type-' ~ node_type|clean_class, + db_offline ? 'db-offline', + ] +%} + + +
+