NearDark Template

From TNG Wiki
Jump to: navigation, search

Purpose

NearDark is a 'drop-in' alternative to Template 8 that has a brighter, higher contrast, color palette, more legible fonts, conserves space better, and comes with a number of useful features that support customization without changing any PHP code. Mom and Dad Side links from Template 8, surname clouds from Template 12, and scrollable content sections can all be customized in template settings or turned off entirely. The template is internationalized and supports Danish, Dutch, English, French, German, Italian, Norwegian, Portuguese, Spanish, and Swedish out-of-the-box.

A new installation mod, NearD Support, can be used to make all the required changes to templateconfig.php and the language support files without editing. Left-side icon/link clustering, which used to be supported by the Icon Gravity Mod, is included as part of the installation.

The designer's own genealogy site, Lindell-Herndon Genealogy, uses a variant of NearDark that incorporates ad banners and his own custom footers.

Designer

Bill Herndon

Download

v10.1.0.3 for TNG 10.1.0 through 11.1.1 is the latest version of NearDark.

Features

Mom's Side / Dad's Side Links

This is same feature supported by Template 8 but with the ability to turn it on and off from template settings. The heading for each can also be set in template settings.

Surname Cloud

This is the same feature supported by Template 12. The number of surnames displayed can be set in template settings, and the feature can also be turned on or off. When turned off, the template will recalculate distances so that the home page maintains the same approximate size. The default number of surnames is 40, and the template is sized to handle up to 50 surnames when scrollable content (see below) is turned on.

Scrollable Content

By default, this feature is turned on and causes the index page's three main content sections to scroll their content while maintaining a maximum size. Turning the feature off in template settings will cause the page height to accommodate all content without scrolling.

Three-part Headers

Three-part headers from Template 8 are supported.

Internationalization

NearDark is fully localized for Danish, Dutch, English, French, German, Italian, Norwegian, Portuguese, Spanish, and Swedish out-of-the-box, and many page items can be changed by the user. For example the 'Site Menu' has default settings for each of the supported languages, but these can be changed by the user in template settings.

NearDawn Palette

For an alternate color palette, but one that has all the same features, check out NearDawn.

Preview

NearDark

NearDark-home.jpg   NearDark-indi.jpg

(Click for full size views.)

Template 8

Template8-1.jpg   Template8-2.jpg

Requirements

  • A working TNG installation (10.1.0 - 11.1.1)

Installation

Automatic

The template designer recommends automatic installation using the NearD Support mod. This mod makes all the necessary changes to templateconfig.php, updates TNG's language files, and installs left-hand icon/link clustering.

  • Download the template's .zip file to your TNG templates directory and unpack it.
  • Download, unpack, and install the NearD Support mod.
  • From NearDark's template configuration page, make any changes you'd like to customize NearDark.

Manual

  • Download the template's .zip file to your TNG templates directory and unpack it.
  • Download, unpack, and install the Icon Gravity mod.
  • Edit your templateconfig.php file adding the code in the box below. (These variables are really just placeholders for the parameters you can set in template configuration):
$tmp['tNearDark_headtitle1'] = "NearDark";
$tmp['tNearDark_headtitle2'] = "Template";
$tmp['tNearDark_headtitle3'] = "";
$tmp['tNearDark_headsubtitle'] = "Mom's family, Dad's family, and a whole bunch o' other families.";
$tmp['tNearDark_headimg'] = "img/titletop.jpg";
$tmp['tNearDark_showmom'] = "yes";
$tmp['tNearDark_momside'] = "Mother's Side";
$tmp['tNearDark_momside_Danish-UTF8'] = "Mors Side";
$tmp['tNearDark_momside_Dutch-UTF8'] = "Moederzijde";
$tmp['tNearDark_momside_French-UTF8'] = "Arbre de la Mère";
$tmp['tNearDark_momside_German-UTF8'] = "Mutters Seite";
$tmp['tNearDark_momside_Italian-UTF8'] = "Albero della Madre";
$tmp['tNearDark_momside_Norwegian-UTF8'] = "Morsiden";
$tmp['tNearDark_momside_PortugueseBR-UTF8'] = "Árvore da Mãe";
$tmp['tNearDark_momside_Spanish-UTF8'] = "Árbol de la Madre";
$tmp['tNearDark_momside_Swedish-UTF8'] = "Mors Sida";
$tmp['tNearDark_momsidenames'] = "Smith/Jones";
$tmp['tNearDark_momperson'] = "I1";
$tmp['tNearDark_momtree'] = "mytreeid";
$tmp['tNearDark_showdad'] = "no";
$tmp['tNearDark_dadside'] = "Father's Side";
$tmp['tNearDark_dadside_Danish-UTF8'] = "Fars Side";
$tmp['tNearDark_dadside_Dutch-UTF8'] = "Vaderzijde";
$tmp['tNearDark_dadside_French-UTF8'] = "Arbre du Père";
$tmp['tNearDark_dadside_German-UTF8'] = "Vaters Seite";
$tmp['tNearDark_dadside_Italian-UTF8'] = "Albero del Padre";
$tmp['tNearDark_dadside_Norwegian-UTF8'] = "Fars Side";
$tmp['tNearDark_dadside_PortugueseBR-UTF8'] = "Árvore do Pai";
$tmp['tNearDark_dadside_Spanish-UTF8'] = "Árbol del Padre";
$tmp['tNearDark_dadside_Swedish-UTF8'] = "Fars Sida";
$tmp['tNearDark_dadsidenames'] = "Johnson/Williams";
$tmp['tNearDark_dadperson'] = "I2";
$tmp['tNearDark_dadtree'] = "mytreeid";
$tmp['tNearDark_usescroll'] = "no";
$tmp['tNearDark_showcloud'] = "yes";
$tmp['tNearDark_cloudnames'] = "55";
$tmp['tNearDark_menutitle'] = "Site Menu";
$tmp['tNearDark_menutitle_Danish-UTF8'] = "Hjemmeside Menu";
$tmp['tNearDark_menutitle_Dutch-UTF8'] = "Website Menu";
$tmp['tNearDark_menutitle_French-UTF8'] = "Menu du Site";
$tmp['tNearDark_menutitle_German-UTF8'] = "Website-Menü";
$tmp['tNearDark_menutitle_Italian-UTF8'] = "Sitio Web Menu";
$tmp['tNearDark_menutitle_Norwegian-UTF8'] = "Nettstedmeny";
$tmp['tNearDark_menutitle_PortugueseBR-UTF8'] = "Menu do Site";
$tmp['tNearDark_menutitle_Spanish-UTF8'] = "Menú del Sitio";
$tmp['tNearDark_menutitle_Swedish-UTF8'] = "Webbplatsmeny";
$tmp['tNearDark_mainpara'] = "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam pharetra, tellus sit amet congue vulputate, nisi erat iaculis nibh,
vitae feugiat sapien ante eget mauris. Pellentesque ac felis tellus. Aenean sollicitudin imperdiet arcu, vitae dignissim est posuere id.
Duis placerat justo eu nunc interdum ultrices. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam pharetra, tellus sit amet
congue vulputate, nisi erat iaculis nibh, vitae feugiat sapien ante eget mauris. Pellentesque ac felis tellus. Aenean sollicitudin
imperdiet arcu, vitae dignissim est posuere id. Duis placerat justo eu nunc interdum ultrices.</p>";
$tmp['tNearDark_latestnews'] = "<p><b>Today</b> - You switch to the most stupendous template ever designed for TNG.</p>
<p><b>25 Dec 2008</b> - Years and years of family research result in a compilation without equal.</p>
<p><b>1 Jan 2003</b> - Darrin invents TNG, the be-all and end-all of genealogy software.</p>
<p><b>1 Jan 2000</b> - Once again...world does not end.  Experts blame Y2K.
<p><b>5 May 1821</b> - Napolean dies in exile on St. Helena.</p>
<p><b>19 Oct 1781</b> - Blaming, \"...that burrito I ate last night,\" Lord Cornwallis sends an aide to surrender his sword after Yorktown.</p>
<p><b>19 May 1536</b> - Anne Boleyn fails to keep a level head.</p>
<p><b>9 Sep 1492</b> - Columbus threatens to, '...turn this boat right around,' if the crew doesn't stop complaining about the food.</p>
<p><b>1013</b> - Sweyn Forkbeard invades England and Aethelred II \"The Unready\" flees to Normandy.</p>
<p><b>1 Jan 1000</b> - The world does not end-Catholic Church blames the Julian Calendar.</p>
<p><b>21 Apr 612</b> - Sir Robin bravely runs away.</p>
<p><b>3 Apr 33</b> - Brian takes one for the team.</p>
<p><b>15 Mar 44 BCE</b> - Julius Caesar murdered.</p>";
  • Edit your languages/English/cust_text.php (or languages/English-UTF8/cust_text.php) file adding the variables in the box below:
$admtext['showmom'] = "Show Mom's Side";
$admtext['showdad'] = "Show Dad's Side";
$admtext['showcloud'] = "Show Surname Cloud";
$admtext['cloudnames'] = "Number of Surnames";
$admtext['usescroll'] = "Scrolling Content";
$text['neards_by'] = "by";
$text['ndawn_tname'] = "NearDawn template";
$text['ndark_tname'] = "NearDark template";

Full internationalization requires adding variants of the above 8 variables for each supported language. For full language support consider using the automated procedure.

Compatibility

Unlike the previous version, this version of NearDark probably won't work with TNG r9. The template should, however, be mobile compatible, but if you find any issues, especially on mobile devices, please let me know.

Add any other compatibility issues here.

Notes and Caveats

(None)

Revision History

Version Release Date Comments
v10.1.0.3 20 Jun 2017 Added language support for Dutch, Danish, French, Italian, Norwegian, Portuguese, and Swedish. Also updated default values for configurable page titles and menus (all languages) and tested with TNG release 11.1.1.
v10.1.0.2 30 Oct 2016 Makes some minor changes to the index page to align menus and photographs. Adds built-in support for Spanish and German. Now supports turning off scrollable content in template configuration, and has been tested to work with the new installation mod, NearD Support.
v10.1.0.1 27 Feb 2016 This update brightens the color palette, adds the ability to turn the Mom's Side and Dad's Side on or off from the template settings, and adds the Surname Cloud feature from Template 12. The default font has been changed to Tahoma for readability, and most emboldened titles have been removed.
v10.1.0.0 17 Jul 2015 Initial release

Sites Using NearDark

If you download and install this template, please add your TNG site to the table below.

URL User Note Template Version TNG Version
Lindell-Herndon Genealogy Bill Herndon Template designer 10.1.0.1 11.1.1
Porterfield Junction 10.1.0.0 10.1.2