I inherited a Drupal website from previous "developers". After my initial sweep of the website, I found out they did a very very "interesting" job when creating the website.
As you can see, for reason beyond my understanding, they coded INTO the php files, instead of implementing through the drupal system.
My question is, what do you recommend in this situation?: Re-write the whole page from scratch, or should I try implement these "stray codes" into proper blocks, code them into php etc.
(The thing is there are several other different node files, each of them have the menu system coded into them as html. As result of that, to change the order of the menus I would need to change the code in 17 different php files. Way too many chances to screw up...)
Your thoughts and advices are appriciated!
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="hu" lang="hu">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="home" href="http://www.htconsulting.hu/" title="Home" />
<title><?php print $head_title ?></title>
<?php print $head ?>
<?php print $styles ?>
<?php print $scripts ?>
<link rel="stylesheet" href="<?php print base_path() . path_to_theme(); ?>/zoli.css" type="text/css" media="screen" charset="utf-8">
<script src="http://ajax.googleapis.com/ajax/libs/swfobject/2/swfobject.js" type="text/javascript"></script>
<script src="<?php print base_path() . path_to_theme(); ?>/javascripts/main.js" type="text/javascript"></script>
<!--[if lt IE 7]>
<script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js" type="text/javascript"></script>
<![endif]-->
</head>
<body>
<div id="container_outer">
<div id="container">
<div id="header">
<div id="lang-selector-container">
<div id="lang-selector">
<span class="lang-active">HUN</span>
<span id="lang-sep">|</span>
<a href="/en" class="lang-link">ENG</a>
</div><!-- lang-selector -->
</div><!-- lang-selector-container -->
<!--<a href="#" id="header-search"><span></span>keresés</a> -->
</div> <!-- header -->
<div id="content">
<div id="top-menu">
<ul class="top-menu-left">
<li><a href="/elerhetoseg" class="first">Elérhetőség</a></li>
<li><a href="/search">Keresés </a></li>
</ul>
<ul>
<li><a href="/magunkrol" class="first">Magunkról</a></li>
<li><a href="/referenciak">Referenciák</a></li>
<li><a href="/partnereink">Partnereink</a></li>
</ul>
</div> <!-- top-menu -->
<div class="clear"></div>
<div id="left-menu">
<ul>
<li class="org-dev"><span id="org-dev"><img src="<?php print base_path() . path_to_theme(); ?>/images/fogaskerekek.png" /></span>
<?php print l("Szervezetfejlesztés", 'node/6', array('attributes' => array('class' => 'org-dev'))) ?> </li>
<li class="training"><span id="training"><img src="<?php print base_path() . path_to_theme(); ?>/images/figurak.png" /></span>
<?php print l("Tréningek", 'node/7', array('attributes' => array('class' => 'training'))) ?> </li>
<li class="training-tools"><span id="training-tools"><img src="<?php print base_path() . path_to_theme(); ?>/images/disk.png" /></span>
<?php print l("Képzési eszközök", 'node/8', array('attributes' => array('class' => 'training-tools'))) ?> </li>
<li class="methodology"><span id="methodology"><img src="<?php print base_path() . path_to_theme(); ?>/images/page.png" /></span>
<?php print l("Módszertan", 'node/80', array('attributes' => array('class' => 'methodology'))) ?> </li>
</ul>
<a href="http://flowcsoport.hu/" target="_blank">
<img id="flowlogo" src="/sites/all/themes/htc/pictures/flowlogo_120px.png" border="0">
</a>
<?php include "randomimage.php"; ?>
<br />
<br />
<div id="intro-video" style="visibility: visible">
<script type="text/javascript" style="visibility: visible">
jwplayer("container").setup({
flashplayer: "/flash/jw_html5/player.swf",
file: "/videok/ian.mp4",
height: 260,
width: 195
});
</script>
</div>
<br />
<br />
<!-- <?php print $left; ?> -->
</div> <!-- left-menu -->
<div id="content-main">
<?php if ($tabs): print '<div id="tabs-wrapper" class="clear-block">'; endif; ?>
<?php if ($tabs): print '<ul class="tabs primary">'. $tabs .'</ul></div>'; endif; ?>
<?php if ($tabs2): print '<ul class="tabs secondary">'. $tabs2 .'</ul>'; endif; ?>
<?php if ($show_messages && $messages): print $messages; endif; ?>
<?php print $help; ?>
<div id="content-inner" class="front">
<?php print $content ?>
<?php print $footer ?>
</div>
<div id="content-banner">
<?php print $right; ?>
</div>
</div> <!-- content-main -->
<div class="clear"></div>
<!-- <a href="http://flowcsoport.hu/" target="_blank">
<img id="flowlogo_old" src="/sites/all/themes/htc/pictures/flowlogo_120px.png" border="0">
</a> -->
</div> <!-- content -->
<div id="footer">
<ul>
<li class="company-name">Human Telex Consulting Kft.</li>
<li class="company-address">1015 Budapest, Toldy F. u. 16/c.</li>
<li class="company-tel">Tel.: 214-0204, 225-1576</li>
<li class="right">KMRMK: 01-0122-04; FAT: AL-1416</li>
<!-- <li class="customer-gate"><a href="#">Ügyfélkapu</a></li> -->
</ul>
</div><!-- footer -->
</div><!-- container -->
</div><!-- container outer -->
<?php print $closure ?>
</body>
</html>