This forum is for assistance with theme development.

public/private/protected

hi,

every time when i install a them i get these 2 errors,

strict warning: var: Deprecated. Please use the public/private/protected modifiers in C:\Program Files\xampp\htdocs\drupal\themes\engines\phptemplate\template.php on line 27.

strict warning: var: Deprecated. Please use the public/private/protected modifiers in C:\Program Files\xampp\htdocs\drupal\themes\engines\phptemplate\template.php on line 28.

When i open the file this is line 27 and 28:

* @param $hook
* The name of the theme function being executed

Bleeding edge theme development - $directory or path_to_theme()

I have had a user submit a patch to the Meta theme and I am unsure what to do. Here are two articles I just read about the situation of using $directory or path_to_them()

If anyone has any pointers, I would greatly appreciate it. The "Converting 4.6 themes to 4.7" mentioned that base href head tag is dead, but I do see it in my 4.7b4 version and I'm not sure what the plan is. Will it be removed on the next build? Should I use $directory and not path_to_theme()

HTMLArea broken in Civicspace

Hi all

I have been looking at basing my custom theme on the CivicSpace themes but it seems HTMLArea is broken in all the derivitives. I do not want to use TinyMCE because I like the image uploading method of HTMLArea. Anyway, has anyone managed to get HTMLArea to display correctly/at all in CivicSpace based themes?

Cheers

help understanding node_teaser and check_output

I have a question regarding formatting teasers via phptemplate theme files. (v 4.6.5)
I think i get it but would like confirmation.

I am currently using for example:

node_teaser(check_output($node->flexinode_4))

In my tests removing check_output and changing the call as follows produces the same visual results as above.

Problem overriding theme_menu_links

I am trying to customise a PHPtemplate theme and am having problems overriding the 'theme_menu_links' function.

In my template.php I have the following function:

function phptemplate_menu_links($links = array()) {
  return _phptemplate_callback('menu_links', array('links' => $links));
}

I have a file menu_links.tpl.php containing the following:

Changing width of right side bar in Box Grey

hi all,

I'm trying to change the size of the right hand side bar in box grey but when i edit this snippet of the CSS it only affects the left column.

td.sidebar {
vertical-align: top;
padding: 0;
width: 200px;
font-size: 0.8em;
}

Any advice on how to adjust the width of the right side bar?

Thanks
Ken

Pages

Subscribe with RSS Subscribe to RSS - Theme development