This forum is for assistance with theme development.

I can't get back to admin while using custom theme of user theme

I'm using drupal 5.1.
garland is used in admin theme and a custom theme based on bluebreeze is used in user theme.

This is the code of page.tpl.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language ?>" xml:lang="<?php print $language ?>">

<head>
  <title><?php print $head_title ?></title>
  <?php print $head ?>
  <?php print $styles ?>
  <?php print $scripts ?>
  <script type="text/javascript"><?php /* Needed to avoid Flash of Unstyle Content in IE */ ?> </script>
  </head>

<body>
<?php print $header ?>
<?php  print theme('links', $primary_links) ?>
<?php print $left_top ?>
<?php print $main_content ?>
<?php print $left_bottom ?>
<?php print $footer ?>
</body>
</html>

this is code of template.php

<?php

function ttl_regions() {
  return array(
       'left_top' => t('left top'),
       'left_bottom' => t('left bottom'),
       'main_content' => t('main content'),
       'header' => t('header'),
       'footer' => t('footer')
  );
}

This is code of node.tpl.php
<?php print $content ?>

Looking for a News site theme (sorta like yahoo layout)

Hi,
I am looking for a theme I can work off of for a news website, I want it to have the main page being headlines from the different categories. I am trying to base it along the layout of yahoo, or a different news site.

Thankx

Admin theme not showing on blocks & views

In all my Drupal 5 sites the admin theme gets dropped (the normal site theme shows) on the blocks config pages & when I save a view - anyone else seen this?

I use a modified Blue Marine for admin (css only).

I havent worried about to much but was wondering if this is a bug?

How could I change background image depending on screen size.

My client has full sized images they want to use in the background, so I want to have a 800x600 image for a screen that size, 1024x768 for a screen that size, etc. How would someone recommend doing this? Can jQuery accomplish this? I am a little familiar with jQuery, but thought that it might only be able to operate on DOM objects. Any direction would be appreciated.

link function not rendering html

From the api:
l($text, $path, $options = array())
One of the options available (in the array) is 'html' which according to documentation:

"'html' (default FALSE) Whether the title is HTML, or just plain-text. For example for making an image a link, this must be set to TRUE, or else you will see the escaped HTML."

Except I try this, and the image I'm trying to link still displays escaped html.

Any ideas on how to fix?

styling my primary navigation

I have a problem, this is hard to explain so bear with me. I'm building a drupal5.1 theme using zen as the basis.

I have the primary nav laid out as flat list like this " | home | about | contact " using border-left:1px solid #fff as the delimiter, what I want to do is remove the first border.

Normally in a none drupal site, i'll give the first

  • a ".first" class and simply set border:none to remove it, now the question is how can i do this in a drupal template? (other than hard coding the menu, which is a last resort).

    Thanks in advance.

  • Pages

    Subscribe with RSS Subscribe to RSS - Theme development