This forum is for assistance with theme development.

How Do I Skip An Empty Breadcrumb

I'm trying to create a modified version of the box_grey theme (a phptemplate-based theme). Currently the template (in page.tpl.php) uses the following code to display a breadcrumb:

<?php print $breadcrumb ?>

This produces the following HTML on the home page (where there is no breadcrumb):

<div class="breadcrumb"></div>

If the breadcrumb class has a border (for example) the finished page shows an empty space. What I'd like to be able to do is conditionally wrap the "print breadcrumb" statement, so that it only displays if there is a breadcrumb. However, the obvious things like is_set($breadcrumb) or "$breadcrumb != null" don't work.

The footer code gives an idea of what I'd like to be able to do:

<?php if ($footer_message) : ?>
  <?php print $footer_message;?>
<?php endif; ?>

Any suggestions?

Also does anyone know why the $breadcrumb variable include the <div> stuff. Shouldn't this be left to the template (eg. like the footer)?

Look at this theme...Need Drupal Designer Input.

http://headsyestailsno.com/mockup_drupal.jpg

I designed a mockup of a theme I would like to have developed. It is a fairly straightforward modification of the marvin theme - cleaner colors, more of a web 2.0 look and feel. Unfortunately, I am css retarded and am unable to make the necessary modifications.

So I am looking for a designer to develop this simple theme for me. The color palette is already selected and there is little to no structural change to the default marvin theme.

how do i change login/password box?

can someone show me how to change/modify login password box... I want to change it to dotted type.. tks

s

How to make second sidebar in Leaf Theme?

Hi

I'd like to have second sidebar on the left side of my page http://www.zarabiaj.mooo.com. Anyone can tell me what do i have to change?

Thx

Need help themeing profile edit and admin forms

Hello, my theme involves adding boxes around each block and node, and it has a drop shadow. It takes two divs wrapped around the existing content. It is working fine, but for some places I can't figure out how to put the box around the content.

I found a tutorial on themeing the profile page by adding code to template.php and making a new tpl file, and got that working. But I can't figure out how to add my special drop shadow box around other middle content areas, such as the edit profile form and admin areas.

I managed to change the style of the edit form in the profile area, but i couldn't apply my css box effect since i never added the two div tags that areas code, wherever it is. I was wondering if I could apply my drop shadow effect to all blocks, nodes, etc without hard coding the div tags in tpl files, by combining styles in the css file somehow.

.boxsh1 { position: relative; background: #BECBCD; margin: 4px; }
.boxsh2 { position: relative; left: -4px; top: -4px; }

.node, .block, .profile {
  border: solid 1px #888;
  margin-bottom: 10px;
  font-size: 0.9em;
  padding: 5px;
  background: #fff;
}

and in use I type

<div style="boxsh1"><div style="boxsh2">
   whatever content here...
</div></div>

Here is a link showing what my boxes look like if you are unsure what I mean. http://www.saila.com/usage/shadow/

t

Posting a banner on the site.

I'm trying to insert a web banner in the top of my drupal site - my project requires me to get that figured that out first.

I'm not sure how to get started with doing up my own theme for the site - yes, for example, I've tried modifying the file xtmpl file in the "Blue Marines" theme, by adding the coding to where the links are supposed to be - tried doing that through dreamweaver, and uploading the file up to my server folder once again, but my banner doesn't appear. I've also downloaded the phpTheme Engine and tried some other themes but it doesn't work either.

Pages

Subscribe with RSS Subscribe to RSS - Theme development