This forum is for assistance with theme development.

phpTemplate Bluemarine

For anyone that hasn't switched from the default Bluemarine xtemplate version to adrian's phpTemplate version, I really encourage you to do it. I've taken adrian's version of Bluemarine and hacked it together with Federico's Negen theme. I don't really like the look of Bluemarine, but the code is really solid, so I kept the way it operates and changed only the style sheet. Maybe if we all beg, Federico will convert his templates from xTemplate to phpTemplate. Pleeeeaaase.

Anyway, here's the site, again:

Help with Creating Theme

I am looking for someone to help me create a theme for my high school.

Multiple templates

Can I use multiple templates with Drupal? For instance, I would like site visitors to see a specific template that has all our ads and stuff in it, and the administrators should get a clean and simple default template. I saw something mentioning multiple templates but it seems whatever template I set is used for both visitors and editors. Then again I've been up way too many hours, so if I'm missing something obvious just slap me in the right direction. :)

best way to wrap images with text

What's the best approach to get content in with images wrapped with text and also, two columns for text?
I suspect you may say htmlarea, but I've had problems getting that to work with 4.6 (not ready?), and in 4.5 on OS X panther.

Generic Theme

I've found a very intersting XHTML/CSS Template here: webproducer.at.

The template is able to generate 1 (left or right),2 or 3 column pure css fluid layouts.

One can change the layout either in code like this:

Combining primary and secondary links in phptemplate (marvin_2k) (a guide)

A lot of the themes for phptemplate only have one set of links (usually the primary links). I know that the SpreadFireFox theme as well as the Marvin_2k theme only allow for one set of links.

I spent a little time today and figured a way to combine primary and secondary links in a fun way. I wanted my primary and secondary links to be on the same row, but simply aligned to different edges of the screen.

I first opened page.tpl.php and found where primary links were rendered. This is what I found.

 <?php if (is_array($primary_links)): ?>
    <ul id="main-nav">
      <?php foreach ($primary_links as $link): ?>
         <li><?php print $link?></li>
      <?php endforeach; ?>
    </ul>
  <?php endif; ?>

I changed it to this:

  <?php if (is_array($primary_links)): ?>
    <ul id="main-nav">
      <?php foreach ($primary_links as $link): ?>
         <li><?php print $link?></li>
      <?php endforeach; ?>
      <?php if (is_array($secondary_links)): ?>
          <?php foreach ($secondary_links as $link): ?>
	     <li2><?php print $link?></li2>
          <?php endforeach; ?>
      <?php endif; ?>
    </ul>
  <?php endif; ?>

By making this change I added a condition that checked for secondary links, and if they existed, they were printed under the div tag "
," which is a new tag I created.

The
tag is exactly the same as the

  • tag except it says, "float: right;" instead of "float: left;"

    the result can be seen here: http://72.9.242.6 (don't judge the site, it's still under heavy development).

    I hope this can help someone else in the future.

    Mateo

  • Pages

    Subscribe with RSS Subscribe to RSS - Theme development