Hi there, I've spent a couple of hours scouring the internet now to no avail, attempting to figure out the solution to a problem I'm having.

I am developing my own admin template, just something which is easy on the eyes and site-independent. I have a mockup of it here: http://zygar.co.nz/images/design/admin_theme_final.png

Unfortunately I'm running into a few issues. The structure right now is this:

<div class="admin clear-block">
<div class="compact-link">
</div>
<div class="left clear-block">
<div class="admin-panel">
<h3> Content management </h3>
<div class="body">
<p class="description"> Manage your site's content. </p>

I want it to be something closer to this:

<div class="admin clear-block">
<div class="left clear-block">
<div class="admin-panel">
<div class="admin-panel-header"><h3> Content management </h3>
<p class="description"> Manage your site's content. </p></div>
<div class="body">

My goal is to remove the "compact" link from there and place it inline in the "welcome" text, just like the concept I posted. I also want to have a rounded corner on the admin-panel div, also seen in the concept.

Now, I could probably find some way of hacking around this with CSS and if that was my only issue, I wouldn't be posting this thread. I want to change significant parts of the admin panel around to be easier on the eyes to compact redundant text and be at the very least, easy enough for my Dad to work it! I was unable to override the admin text using the localization feature.

Does anybody have any suggestions? I know a little, but not much about PHP and I am, as you might surmise, new to Drupal. Running Drupal 5.7 and using Zen + PHPtemplate for theming.

Thanks in advance.

PS: I'm also wanting to figure out how to put in custom icons for each sub-page, but that's a question for another thread, I think. However if anybody has any suggestions I'd love to hear them.

Comments

corel’s picture

Find out the "function theme_admin_page($blocks) " function from system.module file, and copy the content to your own theme's template.php file. Then rename the 'theme_admin_page' function name to '_admin_page'(replace the to your theme name). Just modify the function behavior as you want.
Good luck.

Zygar’s picture

Thanks for your reply - so if I were to copy and paste function theme_admin_page($blocks) to my template.php, and rename it to, in my case function admintheme_admin_page($blocks) it would override system.module, just like that? What about overriding function system_help($section)? Specifically:

    case 'admin':
      return '<p>'. t('Welcome to the administration section. Here you may control how your site functions.') .'</p>';