Template Settings - Template1
Settings
The following illustrates how you can use the new TNG V8 Template Settings to change the photos for Template 1. Also included are instructions that were extracted from the index.php and topmenu.php for Template 1 on how to use text instead of images for the page heading.
TNG V8 Template Settings allows you to change what images will be used for
for Template 1 |
![]() |
Images
If you create your own images, you should use the same dimensions as used by Template 1 as shown below for the default images provided.
|
![]() |
|
|
Home Page Title
The Home Page title is generated by the $text['ourpages'] variable passed on the tng_header function call.
tng_header( $text['ourhist'], $flags );
To change it copy it variable from the English/text.php file
$text['ourhist'] = "Our Family History";
paste it in your languages/English/cust_text.php (or languages/English-UTF8/cust_text.php) file and modify it to reflect your Home Page title, for example
$text['ourhist'] = "Martin Family History";
Optional Text Title
index.php
Optionally, you can comment out line 37 of template 1 index.php as shown below (Note that the text was wrapped for display)
<!-- <img src="<?php echo $cms['tngpath']; ?><?php echo $tmp['t1_titleimage']; ?>" alt="" width="395" height="159" hspace="10" border="0" /> -->
and remove the start comments ( <!-- ) on line 47 and end comments ( --> ) on line 53, and change the Our Family<br />History text on line 53 to your own personal text rather than creating a text image.
This option also allows you to use a $text['ourhist'] variable by changing line 50 to use
<?php echo "$text['ourhist'] \n"; ?>
which will echo the $text variable from the language text.php files so your home page title changes with a dynamic language switch.
The languages/English/text.php or languages/English-UTF8/text.php file has
$text['ourhist'] = "Our Family History";
which you can override in your languages/English/cust_text.php or languages/English-UTF8/text.php file to use a different text value.
The languages/French/text.php or languages/French-UTF8/text.php file has
$text['ourhist'] = "L'histoire de notre famille";
which you can override in your languages/French/cust_text.php or languages/French-UTF8/text.php file to use a different text value.
You can also optionallycomment line 12 of template 1 topmenu.php as shown below (Note that the text was wrapped for display)
<!-- <a href="<?php echo $cms['tngpath']; ?>index.php"><img src="<?php echo $cms['tngpath']; ?><?php echo $tmp['t1_headimgplustitle']; ?>" alt="" width="620" height="72" border="0" /></a> -->
and remove the start comments ( <!-- ) on line 22 and end comments ( --> ) on line 53, and change the Our Family<br />History text on line 31 to your own personal text rather than creating a text image.
|
Return to Template Settings