Closed (fixed)
Project:
Tapestry
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
29 Apr 2008 at 05:50 UTC
Updated:
24 Oct 2011 at 00:43 UTC
It would be great if the _phptempate_variables call contained the if statement for the themed logo instead of vice versa. As it is now it makes it confusing for new users to add code to the _phptemplate_variables function. The following is a sample (with advanced forum contained for an extra bonus if it is installed.
function _phptemplate_variables($hook, $variables = array()) {
if (module_exists('advanced_forum')) {
$vars = advanced_forum_addvars($hook, $vars);
}
if (theme_get_setting('tapestry_themelogo')) {
$styled_logo = '/images/' . get_tapestry_style() . '/logo.png';
$variables['logo'] = base_path() . drupal_get_path('theme', 'tapestry') . $styled_logo;
}
return $variables;
}
Comments
Comment #1
roopletheme commentedAgreed (although you've mixed $vars and $variables in your example). I actually have this code in my latest sandbox copy:
I'll commit it as soon as I wrap up a few other changes that have been requested.
Comment #2
excell commentedAh - Thank you! after a while of trying to figure things out I found this post via Google search :) and fixed my own problem according to your data here! Rock and roll Roopletheme, tapestry & Advforum (just making sure those keywords are in)
Comment #3
summit commentedHi,
Are these changes committed on Drupal 5 please?
Thanks a lot in advance for this.
greetings,
Martijn
Comment #4
roopletheme commentedNot yet. I've been working on re-writes of litejazz and newsflash (which do have these changes committed), and I haven't made my way to tapestry yet. I will do so soon, but there are a number of other changes that I want to commit as well (update the theme for 6.x Block Theme module support, etc.) I will do so as soon as I can, but it will probably be after my pending vacation.
Comment #5
summit commentedHi,
Thanks for the update and a good vacation for you!
greetings,
Martijn
Comment #6
kisugiai commentedclosed -- issue fixed for 2 weeks with no activity.