img/titletop.jpg" alt="" /> </td> </tr> <tr> <td class="titlemid"> <img src="<?php echo $cms['tngpath'] . $templatepath; ?> img/titlebottom.jpg" width="559" height="60" alt="" /> </td> </tr> <tr> <td class="headerback"> <?php echo tng_icons(1); global $currentuser, $currentuserdesc, $flags; $flags['noicons'] = 1; if ($currentuser) { echo "<span class=\"headertext\">{$text['welcome']}, {$currentuserdesc}</span> "; echo "<a href=\"{$cms['tngpath']}logout.php\"><span class=\"headertext-sm\">{$text['mnulogout']}</span></a>"; } else { echo "<span class=\"headertext\">{$text['anon']}</span> "; echo "<a href=\"{$cms['tngpath']}login.php\"><span class=\"headertext-sm\">{$text['mnulogon']}</span></a>"; } ?> </td> </tr> <tr> <td class="gradient">
<?php include $cms['tngpath'] . "surname_cloud.class.php"; $flags['noicons'] = true; $flags['noheader'] = false; tng_header($sitename ? "" : $text['mnuheader'], $flags); $tngconfig['showshare'] = 0; $tngconfig['showprint'] = 1; $tngconfig['showbmarks'] = 1; if ($sitever != "mobile") { ?> <div class="cb-tng-area" style="height:24px"> <div style="margin-left: 10px; margin-right: 10px;"> <?php $title = getTemplateMessage('t12_maintitle'); echo tng_icons(1, $title = ""); ?> </div> </div> <?php } ?> <div class="cb-layout-wrapper clearfix"> <div class="cb-content-layout"> <div class="cb-content-layout-row"> <div class="cb-layout-cell cb-content clearfix"> <article class="cb-post cb-article"> <div class="cb-postcontent cb-postcontent-0 clearfix"> <div class="cb-content-layout layout-item-0"> <div class="cb-content-layout-row ">
?> " width="559" height="60" alt="" /> <?php //end HEADER IMAGE ?> </td> </tr> <tr> <td class="headerback"> <?php if (!isset($title) || !$title) { $title = getTemplateMessage('t6_maintitle'); } echo tng_icons(1, $title); global $currentuser, $currentuserdesc, $flags; $flags['noicons'] = 1; if ($currentuser) { echo "<span class=\"headertext\">{$text['welcome']}, {$currentuserdesc}</span> "; echo "<a href=\"{$cms['tngpath']}logout.php\"><span class=\"headertext-sm\">{$text['mnulogout']}</span></a>"; } else { echo "<span class=\"headertext\">{$text['anon']}</span> "; echo "<a href=\"{$cms['tngpath']}login.php\"><span class=\"headertext-sm\">{$text['mnulogon']}</span></a>"; } ?> </td> </tr> <tr> <td colspan="4" class="gradient">
function tng_header($title, $flags) { global $custommeta, $customheader, $cms, $session_charset, $tngprint, $sitename, $site_desc, $tngconfig, $tngdomain; global $text, $map, $browser, $templatepath, $tng_title, $tng_version, $tng_date, $tng_copyright, $sitever, $templatenum, $tmp; initMediaTypes(); //echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\">\n\n"; //echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n\n"; header("Content-type:text/html;charset=" . $session_charset); echo $tngconfig['doctype'] ? $tngconfig['doctype'] . "\n\n" : "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \n\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n\n"; if (!$cms['support']) { echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n"; } else { echo $cms['credits']; } //$siteprefix = $sitename ? ($title ? ": " . stripslashes($sitename) : stripslashes($sitename)) : ""; //$title = preg_replace("/\"/", "",$title); $siteprefix = $sitename ? htmlspecialchars($title ? ": " . $sitename : $sitename) : ""; $title = htmlspecialchars($title); echo "<title>{$title}{$siteprefix}</title>\n"; echo "<meta name=\"Keywords\" content=\"{$title}\" />\n"; //echo "<meta name=\"Description\" content=\"" . preg_replace("/\"/", "", $title . $siteprefix) . "\" />\n"; echo "<meta name=\"Description\" content=\"" . $title . $siteprefix . "\" />\n"; // page icon echo "<link rel=\"shortcut icon\" href=\"{$cms['tngpath']}img/icon.png\">"; if ($session_charset) { echo "<meta http-equiv=\"Content-type\" content=\"text/html; charset={$session_charset}\" />\n"; } if (isset($flags['norobots'])) { echo $flags['norobots']; } if (isset($flags['autorefresh']) && $flags['autorefresh'] == 1) { echo "<meta http-equiv=\"refresh\" content=\"30\" />\n"; } if ($sitever == "mobile") { echo "<meta name=\"HandheldFriendly\" content=\"True\" />\n"; echo "<meta name=\"MobileOptimized\" content=\"320\" />\n"; echo "<meta name=\"viewport\" content=\"initial-scale=1\" />\n"; echo "<meta name=\"apple-mobile-web-app-capable\" content=\"yes\" />\n"; echo "<meta http-equiv=\"cleartype\" content=\"on\" />\n"; echo "<link rel=\"apple-touch-icon-precomposed\" sizes=\"144x144\" href=\"{$tngdomain}/img/tng-apple-icon-144.png\">\n"; echo "<link rel=\"apple-touch-icon-precomposed\" sizes=\"114x114\" href=\"{$tngdomain}/img/tng-apple-icon-114.png\">\n"; echo "<link rel=\"apple-touch-icon-precomposed\" sizes=\"72x72\" href=\"{$tngdomain}/img/tng-apple-icon-72.png\">\n"; echo "<link rel=\"apple-touch-icon-precomposed\" href=\"{$tngdomain}/img/tng-apple-icon.png\">\n"; echo "<link rel=\"shortcut icon\" href=\"http://www.fold3.com/img/tng-apple-icon.png\">\n"; } if (!$tng_version) { $tng_version = "10.0.0"; } echo "<link href=\"{$cms['tngpath']}css/genstyle.css?v={$tng_version}\" rel=\"stylesheet\" type=\"text/css\" />\n"; if ($sitever == "mobile") { echo "<link href=\"{$cms['tngpath']}css/tngmobile.css?v={$tng_version}\" rel=\"stylesheet\" type=\"text/css\" />\n"; } if (isset($flags['tabs'])) { echo "<link href=\"{$cms['tngpath']}{$templatepath}css/{$flags['tabs']}?v={$tng_version}\" rel=\"stylesheet\" type=\"text/css\" />\n"; } echo "<link href=\"{$cms['tngpath']}{$templatepath}css/templatestyle.css?v={$tng_version}\" rel=\"stylesheet\" type=\"text/css\" />\n"; if ($sitever == "mobile") { echo "<link href=\"{$cms['tngpath']}{$templatepath}css/tngmobile.css?v={$tng_version}\" rel=\"stylesheet\" type=\"text/css\" />\n"; } echo "<script>\r\n\t\t\t(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\r\n\t\t\t\t})(window,document,'script','//www.google-analytics.com/analytics.js','ga');\r\n\t\t\t\tga('create', 'UA-39683286-1', 'auto');\r\n\t\t\t\tga('send', 'pageview');\r\n\t\t\t</script>"; echo "<script type=\"text/javascript\" src=\"//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js\"></script>\n"; echo "<script type=\"text/javascript\">// <![CDATA[\nwindow.jQuery || document.write(\"<script src='{$cms['tngpath']}js/jquery-1.8.3.min.js?v=910'>\\x3C/script>\")\n//]]></script>\n"; echo "<script type=\"text/javascript\" src=\"//ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js\"></script>\n"; echo "<script type=\"text/javascript\">// <![CDATA[\nwindow.jQuery.ui || document.write(\"<script src='{$cms['tngpath']}js/jquery-ui-1.9.2.js?v=910'>\\x3C/script>\")\n//]]></script>\n"; echo "<script type=\"text/javascript\" src=\"{$cms['tngpath']}js/net.js\"></script>\n"; if (isset($flags['scripting'])) { echo $flags['scripting']; } echo "<link href=\"{$cms['tngpath']}{$templatepath}css/mytngstyle.css?v={$tng_version}\" rel=\"stylesheet\" type=\"text/css\" />\n"; if ($tngconfig['showshare'] && $sitever != "mobile") { echo "<script type=\"text/javascript\" src=\"http://w.sharethis.com/button/buttons.js\"></script>\n"; echo "<script type=\"text/javascript\">stLight.options({publisher: \"be4e16ed-3cf4-460b-aaa4-6ac3d0e3004b\",doNotHash:true,doNotCopy:true,hashAddressBar:false});</script>\n"; } //echo "<script type=\"text/javascript\" src=\"http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4e568cff0f533c7f\"></script>\n"; if ($tngconfig['menu'] < 2 && !$tngprint && $sitever != "mobile") { echo "<script type=\"text/javascript\" src=\"{$cms['tngpath']}js/tngmenuhover2.js\"></script>\n"; } echo "<script type=\"text/javascript\">\n" . "var tnglitbox;\nvar share = 0;\nvar closeimg = \"{$cms['tngpath']}img/tng_close.gif\";\n"; echo "var smallimage_url = '" . getURL("ajx_smallimage", 1) . "';\nvar cmstngpath='{$cms['tngpath']}';\nvar loadingmsg = '{$text['loading']}';\n"; echo "var expand_msg = \"{$text['expand']}\";\nvar collapse_msg = \"{$text['collapse']}\";\n"; if (isset($flags['error']) && $flags['error']) { $login_url = getURL("ajx_login", 1); echo "jQuery(document).ready(function(){openLogin('{$login_url}p=" . urlencode($cms['tngpath']) . "&message={$flags['error']}');});\n"; } echo "</script>\n"; //echo "<style type=\"text/css\">.media-prev {background: transparent url({$cms['tngpath']}img/media-prevbg.png) no-repeat 0 0;}\n.person-prev {background: transparent url({$cms['tngpath']}img/person-prevbg.png) no-repeat 0 0;}</style>\n"; echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS\" href=\"{$cms['tngpath']}tngrss.php\" />\n"; @(include $custommeta); if ($tngprint) { echo "<link href=\"{$cms['tngpath']}css/tngprint.css\" rel=\"stylesheet\" type=\"text/css\" />\n"; } if ($sitever == "mobile") { if (!isset($flags['nomobile']) || !$flags['nomobile']) { $icons = tng_mobileicons($title); $icons .= "<div id=\"mcontent\">\n"; } else { $icons = ""; } echo "<style>\n{$tngconfig['mmenustyle']}</style>\n"; } if (!$cms['support']) { echo "</head>\n"; if ($sitever != "mobile" && !$tngprint && (!isset($flags['noheader']) || !$flags['noheader'])) { include $templatepath . $customheader; } elseif (!$flags['nobody'] || $sitever == "mobile") { echo "<body class=\"publicbody\">\n"; } } if ($sitever != "mobile" && (!isset($flags['noicons']) || !$flags['noicons'])) { $icons = tng_icons(1, $title); } echo $icons; //from above if (!$cms['support'] && $sitever == "mobile" && !$tngprint && (!isset($flags['noheader']) || !$flags['noheader'])) { $ttitle = "t{$templatenum}_maintitle"; if ($tmp[$ttitle]) { $mtitle = str_replace(array("<br />", "<br>"), " ", $text['customtitle']); } else { $ttitle = "t{$templatenum}_headtitle"; $i = 1; $mtitle = ""; while ($tmp[$ttitle . $i]) { $mtitle .= $tmp[$ttitle . $i] . " "; $i++; } } if ($mtitle) { echo "<h3 class=\"mmaintitle\">" . $mtitle . "</h3><hr class=\"mtitlehr\"/><br/>\n"; } } if ($tngconfig['maint']) { echo "<span class=\"fieldnameback yellow\" style=\"padding:3px\"><strong>{$text['mainton']}</strong></span><br /><br />\n"; } }