PHPackages                             dof-dss/nicsdru\_nidirect\_theme - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. dof-dss/nicsdru\_nidirect\_theme

AbandonedArchivedDrupal-custom-theme[Utility &amp; Helpers](/categories/utility)

dof-dss/nicsdru\_nidirect\_theme
================================

Drupal theme for nidirect website

2.1.7(3y ago)28.4k1[10 PRs](https://github.com/dof-dss/nicsdru_nidirect_theme/pulls)MITTwigPHP &gt;=7.0

Since Aug 13Pushed 2y ago3 watchersCompare

[ Source](https://github.com/dof-dss/nicsdru_nidirect_theme)[ Packagist](https://packagist.org/packages/dof-dss/nicsdru_nidirect_theme)[ Docs](https://github.com/dof-dss/nicsdru_nidirect_theme)[ RSS](/packages/dof-dss-nicsdru-nidirect-theme/feed)WikiDiscussions development Synced 2d ago

READMEChangelog (10)DependenciesVersions (148)Used By (0)

[![CircleCI](https://camo.githubusercontent.com/444a856c4e98150e4d356e1b26dff56529ac5d6b913d124f416f3931d7dffd84/68747470733a2f2f636972636c6563692e636f6d2f67682f646f662d6473732f6e6963736472755f6e696469726563745f7468656d652e7376673f7374796c653d737667)](https://circleci.com/gh/dof-dss/nicsdru_nidirect_theme)

DEPRECATED
==========

[](#deprecated)

This theme has been merged into the main repo. Any changes to this repo will not appear on the site.

nicsdru\_nidirect\_theme
========================

[](#nicsdru_nidirect_theme)

This repository contains code for nidirect Drupal 8 site theme.

Table of contents
-----------------

[](#table-of-contents)

- [Quick start](#quick-start)
- [What's included](#whats-included)
- [Bugs and feature requests](#bugs-and-feature-requests)
- [Using the NPM scripts](#using-the-npm-scripts)
- [Theme hooks](#theme-hooks)
- [Helpers](#helpers)
- [Sub-theming](#sub-theming)
- [Documentation](#documentation)

Quick start
-----------

[](#quick-start)

- `composer config repositories.repo-name vcs git@github.com:dof-dss/nicsdru_nidirect_theme.git`
- `composer require dof-dss/nicsdru_nidirect_theme:dev-`
- in terminal cd to the directory (`[DRUPAL_ROOT]/themes/custom/nicsdru_nidirect_theme`) and run `npm install`

What's included
---------------

[](#whats-included)

The kit uses [NPM scripts](https://docs.npmjs.com/misc/scripts) and packages to create tooling to:

- write and compile scss to css
- apply appropriate prefixing for css rules
- write and uglify js
- detect features the user’s browser has to offer (via Modernizr)
- code linting
- optimise and compress images for the web
- living style guide for the code via kss

Within the download you'll find the following directories and files, logically grouping common assets, you'll see something like this:

```
nicsdru_origins_theme/
└── config/
└── css/
└── docs/
└── inc/
└── js/
└── src/
│   ├── images/
│   ├── js/
│   ├── scss/
│   ├── styleguide/
└── templates/
└── .gitignore
└── composer.json
└── mkdocs.yml
└── nicsdru_nidirect_theme.breakpoints.yml
└── nicsdru_nidirect_theme.info.yml
└── nicsdru_nidirect_theme.layouts.yml
└── nicsdru_nidirect_theme.libraries.yml
└── nicsdru_nidirect_theme.theme
└── package.json
└── README.md
└── screenshot.png

```

Using the NPM scripts
---------------------

[](#using-the-npm-scripts)

The `package.json` includes the following commands and tasks:

TaskDescription`npm run build``npm run build` compiles files into their build directories ready for use in a production environment. **Uses [Sass](https://sass-lang.com/), [Autoprefixer](https://github.com/postcss/autoprefixer), [Modernizr](https://modernizr.com) and [UglifyJS](https://github.com/mishoo/UglifyJS2).**`npm run watch`Watches for changes to scss and js files &amp; compiles them for development purposes.`npm run lint`Will run all `.scss` and `.js` files through their respective linting tools - eslint &amp; [sass-lint](https://github.com/sasstools/sass-lint)`npm run lint-scss`Will run all `.scss` files through [sass-lint](https://github.com/sasstools/sass-lint). The command can also accept a parameter to lint an individual file. To do this `npm run lint-scss -- scssfile:name-of-file` where `name-of-file` is the file you want to lint relative to the package.json for the project.Run `npm run` to see all the npm scripts.

Theme hooks
-----------

[](#theme-hooks)

Common theme hooks such as hook\_preprocess, hook\_alter should not be added to the `.theme` file but to their respective include file under the /inc directory There are currently hook files for:

- alter
- preprocess
- process
- theme

Utility classes
---------------

[](#utility-classes)

The src/LayoutClasses.php class provides static constants for commonly used CSS class groups.

The src/Helpers.php class includes commonly reused or helpful functions. The 'blockContent' method will load a block and return the viewBuilder render array.

Documentation
-------------

[](#documentation)

### Page title handling

[](#page-title-handling)

Drupal normally adds the label or title variable to the `page.twig.html` template, and where this needs to appear in a separate location for other content variants it requires the use of a secondary template variable + preprocessing to show/hide the correct value.

Drupal 8 introduces a page title block that is rendered in a given template with the `{{ drupal_block('page_title_block', wrapper=false) }}`Twig extension to render Drupal blocks in-situ. This approach offers maximum flexibility and moves any conditional logic from preprocess hooks into the block configuration itself.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 56.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~13 days

Recently: every ~67 days

Total

83

Last Release

1163d ago

Major Versions

0.15.2 → 1.0.02021-07-05

1.0.3 → 2.0.02021-11-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/a67438e27fd8061ae770b700d15597ae997d6b0b444cbdb18f463edde8b18e23?d=identicon)[nics-digital-dev](/maintainers/nics-digital-dev)

---

Top Contributors

[![neilblair](https://avatars.githubusercontent.com/u/52457988?v=4)](https://github.com/neilblair "neilblair (972 commits)")[![David-Corbett](https://avatars.githubusercontent.com/u/1025711?v=4)](https://github.com/David-Corbett "David-Corbett (238 commits)")[![omahm](https://avatars.githubusercontent.com/u/1013025?v=4)](https://github.com/omahm "omahm (232 commits)")[![DuttonMa](https://avatars.githubusercontent.com/u/348030?v=4)](https://github.com/DuttonMa "DuttonMa (150 commits)")[![johangant](https://avatars.githubusercontent.com/u/451261?v=4)](https://github.com/johangant "johangant (121 commits)")[![ooneill547](https://avatars.githubusercontent.com/u/52583631?v=4)](https://github.com/ooneill547 "ooneill547 (5 commits)")

---

Tags

drupalnidirectdrupaltheme

### Embed Badge

![Health badge](/badges/dof-dss-nicsdru-nidirect-theme/health.svg)

```
[![Health](https://phpackages.com/badges/dof-dss-nicsdru-nidirect-theme/health.svg)](https://phpackages.com/packages/dof-dss-nicsdru-nidirect-theme)
```

###  Alternatives

[tgmpa/tgm-plugin-activation

TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins).

1.8k222.5k13](/packages/tgmpa-tgm-plugin-activation)[lullabot/amp

A set of useful classes and utilities to convert html to AMP html (See https://www.ampproject.org/)

3802.9M10](/packages/lullabot-amp)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5341.9M446](/packages/drupal-core-composer-scaffold)[qirolab/laravel-themer

A Laravel theme manager, that will help you organize and maintain your themes inside Laravel projects.

402240.2k8](/packages/qirolab-laravel-themer)[drupal/core-project-message

Adds a message after Composer installation.

2122.6M172](/packages/drupal-core-project-message)[freemius/wordpress-sdk

Freemius WordPress SDK

303101.4k4](/packages/freemius-wordpress-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
