The PHP closing tag?>
should be at the very end of your theme.php, which is not the case. You have copied from include/themes.inc.php instead of doing as suggested and copying from themes/sample/theme.php
Your custom theme file should look like this:<?php
define('THEME_IS_XHTML10_TRANSITIONAL',1);
// HTML template for template sys_menu
$template_sys_menu = <<<EOT
<table cellpadding="0" cellspacing="0" border="0" class="top_menu_bttn">
<tr>
<!-- BEGIN home -->
<td style="background-image:url(themes/clint/images/top_menu_button.gif);">
<a href="index.php" onmouseover="MM_showHideLayers ('Menu1','','show')"><img src="themes/clint/images/home_body.gif" border="0" alt="" /><br /></a>
</td>
<!-- END home -->
<!-- BEGIN my_gallery -->
<td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/clint/images/top_menu_button.gif);">
<a href="{MY_GAL_TGT}" title="{MY_GAL_TITLE}">{MY_GAL_LNK}</a>
</td>
<!-- END my_gallery -->
<!-- BEGIN allow_memberlist -->
<td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/clint/images/top_menu_button.gif);">
<a href="{MEMBERLIST_TGT}" onmouseover="MM_showHideLayers ('Menu1','','hide')" title="{MEMBERLIST_LNK}">{MEMBERLIST_LNK}</a>
</td>
<!-- END allow_memberlist -->
<!-- BEGIN my_profile -->
<td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/clint/images/top_menu_button.gif);">
<a href="{MY_PROF_TGT}" onmouseover="MM_showHideLayers ('Menu1','','hide')" title="{MY_PROF_LNK}">{MY_PROF_LNK}</a>
</td>
<!-- END my_profile -->
<!-- BEGIN faq -->
<td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/clint/images/top_menu_button.gif);">
<a href="{FAQ_TGT}" onmouseover="MM_showHideLayers ('Menu1','','hide')" title="{FAQ_LNK}">{FAQ_LNK}</a>
</td>
<!-- END faq -->
<!-- BEGIN enter_admin_mode -->
<td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/clint/images/top_menu_button.gif);">
<a href="{ADM_MODE_TGT}" onmouseover="MM_showHideLayers ('Menu1','','hide')" title="{ADM_MODE_LNK}">{ADM_MODE_LNK}</a>
</td>
<!-- END enter_admin_mode -->
<!-- BEGIN leave_admin_mode -->
<td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/clint/images/top_menu_button.gif);">
<a href="{USR_MODE_TGT}" onmouseover="MM_showHideLayers ('Menu1','','hide')" title="{USR_MODE_LNK}">{USR_MODE_LNK}</a>
</td>
<!-- END leave_admin_mode -->
<!-- BEGIN upload_pic -->
<td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/clint/images/top_menu_button.gif);">
<a href="{UPL_PIC_TGT}" onmouseover="MM_showHideLayers ('Menu1','','hide')" title="{UPL_PIC_LNK}">{UPL_PIC_LNK}</a>
</td>
<!-- END upload_pic -->
<!-- BEGIN register -->
<td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/clint/images/top_menu_button.gif);">
<a href="{REGISTER_TGT}" onmouseover="MM_showHideLayers ('Menu1','','hide')" title="{REGISTER_LNK}">{REGISTER_LNK}</a>
</td>
<!-- END register -->
<!-- BEGIN login -->
<td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/clint/images/top_menu_button.gif);">
<a href="{LOGIN_TGT}" onmouseover="MM_showHideLayers ('Menu1','','hide')" title="{LOGIN_LNK}">{LOGIN_LNK}</a>
</td>
<!-- END login -->
<!-- BEGIN logout -->
<td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/clint/images/top_menu_button.gif);">
<a href="{LOGOUT_TGT}" onmouseover="MM_showHideLayers ('Menu1','','hide')" title="{LOGOUT_LNK}">{LOGOUT_LNK}</a>
</td>
<!-- END logout -->
</tr>
</table>
EOT;
// HTML template for template sub_menu
$template_sub_menu = <<<EOT
<table cellpadding="0" cellspacing="0" border="0" class="top_menu_bttn">
<tr>
<td>
<!-- BEGIN custom_link -->
<td style="background-image:url(themes/clint/images/top_menu_button.gif);">
<a href="{CUSTOM_LNK_TGT}" title="{CUSTOM_LNK_TITLE}">{CUSTOM_LNK_LNK}</a>
</td>
<td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<!-- END custom_link -->
<td style="background-image:url(themes/clint/images/top_menu_button.gif);">
<a class="top_menu_bttn" href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a>
</td>
<td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/clint/images/top_menu_button.gif);">
<a href="{LASTUP_TGT}" onmouseover="MM_showHideLayers('Menu1','','hide')" title="{LASTUP_LNK}">{LASTUP_LNK}</a>
</td>
<td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/clint/images/top_menu_button.gif);">
<a href="{LASTCOM_TGT}" onmouseover="MM_showHideLayers('Menu1','','hide')" title="{LASTCOM_LNK}">{LASTCOM_LNK}</a>
</td>
<td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/clint/images/top_menu_button.gif);">
<a href="{TOPN_TGT}" onmouseover="MM_showHideLayers('Menu1','','hide')" title="{TOPN_LNK}">{TOPN_LNK}</a>
</td>
<td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/clint/images/top_menu_button.gif);">
<a href="{TOPRATED_TGT}" onmouseover="MM_showHideLayers('Menu1','','hide')" title="{TOPRATED_LNK}">{TOPRATED_LNK}</a>
</td>
<td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/clint/images/top_menu_button.gif);">
<a href="{FAV_TGT}" onmouseover="MM_showHideLayers('Menu1','','hide')" title="{FAV_LNK}">{FAV_LNK}</a>
</td>
<td><img src="themes/clint/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/clint/images/top_menu_button.gif);">
<a href="{SEARCH_TGT}" onmouseover="MM_showHideLayers('Menu1','','hide')" title="{SEARCH_LNK}">{SEARCH_LNK}</a>
</td>
</tr>
</table>
EOT;
// HTML template for title row of the thumbnail view (album title + sort options)
$template_thumb_view_title_row = <<<EOT
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" class="statlink"><h2>{ALBUM_NAME}</h2></td>
<td><img src="images/spacer.gif" width="1" alt="" /></td>
<td class="sortorder_cell">
<!-- Remove this line to display sort options
<table cellpadding="0" cellspacing="0">
<tr>
<td class="sortorder_options">{TITLE}</td>
<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=ta" title="{SORT_TA}"> + </a></span></td>
<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=td" title="{SORT_TD}"> - </a></span></td>
</tr>
<tr>
<td class="sortorder_options">{NAME}</td>
<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=na" title="{SORT_NA}"> + </a></span></td>
<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=nd" title="{SORT_ND}"> - </a></span></td>
</tr>
<tr>
<td class="sortorder_options">{DATE}</td>
<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=da" title="{SORT_DA}"> + </a></span></td>
<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=dd" title="{SORT_DD}"> - </a></span></td>
</tr>
<tr>
<td class="sortorder_options">{POSITION}</td>
<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=pa" title="{SORT_PA}"> + </a></span></td>
<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=pd" title="{SORT_PD}"> - </a></span></td>
</tr>
</table>
remove this line to display sort options -->
</td>
</tr>
</table>
EOT;
?>