This forum is for assistance with theme development.

Plain PHP templates

Hi,

I am looking at developing a theme and want to try doing it simply using php. Ideally I would like to find an existing plain php template and so that I can see how the theme is implemented just using php.

I have looked in the templated section for downloads but none of them say they are simple php templates. ADC, Goofy and one other don'e thave any description at all (not very useful really).

select dropdown menu

I was curious if anyone has managed to develop a dropdown form/select menu for phptemplate based themes. I would very much like to turn the secondary links into such a dropdown menu, but haven't managed to achieve this.

Does anyone have any advice on how to accomplish this?

Hover (pretty) BreadCrumbs

To get a nice effect with your BreadCrumbs open your /themes/xyz_theme/style.css

>>Find ".breadcrumb"

>>Add below:

.breadcrumb a {
  padding: 2px 6px 2px 6px;
  border: solid 1px #ccc;
  background: #eee;
  color: #666;
  text-decoration: none;
  font-size: 10px;
}

.breadcrumb a:hover {
  color: #eee;
  background: #666;
  border-color: #ccc;
  text-decoration: none;

That's it! Simply use your own background, color, and border for different colors. >-)

How to display date in xtemplate

Hi guys,
I'm trying to display the actual date in a theme based on Pushbutton.
Is there a way to do it?
Moreover are there any other variables than the ones listed in the drupal handbook?
Where can I find them?
Thanks in advance,
Riccardo

Themes - GPL License Bluebeach

OK, I'm a little confused at the minute. Could still be lack of sleep but...

I'm working on a custom theme for my site, which I would like to keep private for the same reasons drupal.org keep bluebeach private. I don't want other sites to look like mine.

However, I am learning the Druapl themeing system, so I started from the Pushbutton PHPTemplate variant and have been modifying from there. Pushbutton is under the GPL, so, I believe I am legally bound to release any derivative work to the public also under the GPL. Which I don't want to do.

phptemplate: Detecting a "page" -vs- a "story"

On my site I use story nodes and page nodes quite differently. The page nodes are used to display static information that is about the site - it's not really content - for example, the about page. On the other hand, I use story nodes for stories - the difference being that a story has attributes that the user needs to see, such as the date it was submitted, who submitted it, etc -- for example http://classfivenews.com/node/25 (note: currently does not display correctly -- its missing information -- see below).

The problem is that I need to display these two different types of nodes differently. For a "page node" I just want to display the content and nothing else. For a "story node" I want to display the submitter, when it was submitted, the taxonomy terms, etc.

The problem is, there doesn't seem to be a way to distinguish between these two types of nodes in node.tpl.php. i.e. what I want is something like this:

<!-- What can I actually put on the line below to get the result I need? -->
<?php if ($node-type == "story"): ?>  
    <?php print $content ?>
<?php else: ?>
  <!-- show the submitter, date, taxonomy terms, etc -->
  <!-- ...ommitted for brevity -->  
<?php endif; ?>

Is there a way to do what I'm trying to do?

Pages

Subscribe with RSS Subscribe to RSS - Theme development