This forum is for assistance with theme development.

Trying to do things right. How do I get the "l" function to stop messing up my attributes - or is it even possible?

I'm mucking around with a phptemplate theme, and I want to build a link myself. The link is going to be text, and I want to add the "onmouseover" and "onmouseout" commands into it. Wanting to do things the right way, I'm trying to use the "l" (pronounced "el") function to do this. Here is the code:

Text Wrapping Around Images On Front Page

Hello,

This may be a general HTML/CSS question, but I'm having trouble with a text wrapping issue. Often in my blog posts, I insert an image with left or right alignment so the text in the post will wrap around the image. Looks great. Problem is when that blog post appears on the front page with a teaser, the title and text from the next down will creep up and wrap around that image too. I could solve this by enclosing each post in a table, but I'm trying to stay with CSS. Any suggestions?

Thanks,
Jim

Changing the format of menu lists to integrate an accordion effect

Hello everybody,

I would like to integrate an accordion effect for my sidebar navigation using Jquery.
Therefore I tried to change the output of the function phptemplate_menu_tree.

But unfortunately I am not able to change the php code to get such a listing:

<ul>
    <li class="expanded"><a href="/">menu1</a></li>

    <ul class="menu">
        <li class="leaf"><a href="/">submenu1</a></li>
        <li class="leaf"><a href="/">submenu2</a></li>
    </ul>
</ul>
<ul>
    <li class="expanded"><a href="/">menu1</a></li>

    <ul class="menu">
        <li class="leaf"><a href="/">submenu1</a></li>
        <li class="leaf"><a href="/">submenu2</a></li>
    </ul>
</ul>

My template.php looks like this:

<?php

function phptemplate_menu_tree($pid = 1) {
$msm = variable_get('menu_secondary_menu', 0);
if ($tree = menu_tree($pid)) {
$output .= "

    ";
    $ul = $msm == $pid ? '
      ' : '

      ";
      return $output;
      }
      }

      function phptemplate_menu_item($mid, $children = '', $leaf = TRUE) {
      $msm = variable_get('menu_secondary_menu', 0);
      $menu = menu_get_menu();
      if (in_array($mid, $menu['visible'][$msm]['children'])) {
      return '

    • '. menu_item_link($mid) . $children ."
    • ";
      } else {

Beta testers

I need beta testers for a theme i just ported, it seems to work fine with firefox 2.1 so i really just need people to view it on IE. But feel free to check on firefox too for me. I would do it my self but run linux and dont have IE. As soon as i get feed back it will be available for download on drupal and my site.

newthread.org/beta

Reply if you find any bugs

Thanks

taxonomy hierarchy question

I'm currently trying to set up my categories to list skills. Each skill will have a level (expert, average, novice) but how do I get these levels to not be a multiple select? Is there a better way to set kind of hierarchy?

Can you attach a vocab item to another vocab item? Currently skills is the only vocab item and everything else is a term underneath that.

Skills

-- graphical
---- web design
------ expert
------ average
------ novice
---- print design
------ expert
------ average
------ novice

Adding a new CVS release

I added a new release of the Combustion theme with a 1.1 tag. It is not showing up underneath the official releases. Did I do something wrong?

Pages

Subscribe with RSS Subscribe to RSS - Theme development