Closed (fixed)
Project:
Zen
Version:
7.x-3.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 May 2011 at 18:42 UTC
Updated:
21 Sep 2011 at 19:51 UTC
Jump to comment: Most recent file
Comments
Comment #1
maartenverbaarschot commentedMight want to include that link as a comment in the .info file too btw... I'll await feedback first.
Comment #2
barrapontoI guess it should be done in template.php, without touching the html.tpl.php file.
Comment #3
maartenverbaarschot commentedl() is a nice addition.
Still I think it wouldn't make sense having to dig into template.php to just customize the link text when there's a setting for the href. They should be either both settings, or both in template.php.
Comment #4
barrapontoSure, let's merge the approaches and expose them in theme-settings.
Comment #5
maartenverbaarschot commentedAdded $_GET['q'] as second parameter for l() and updated variable documentation in html.tpl.php.
Comment #6
maartenverbaarschot commentedComment #7
KrisBulman commentednice addition! but patch fails for me
Comment #8
maartenverbaarschot commentedRight… (Reminder to self: don't indent empty lines :))
Comment #9
KrisBulman commentedi can confirm that the patch does the trick, i applied it, created a new subtheme (via the new drush command).. checked and changed new theme settings, then verified changes through firebug (screenshot below)
https://skitch.com/krisbulman/fn1a8/local-dev-environment-drupal-7
Comment #10
KrisBulman commentedComment #11
johnalbinYou can't pass a variable into the t() function. It requires a string. The i18n module handles converting strings input via an admin form.
Given that, I don't really see the advantage of making the link a variable containing un-alterable HTML snippet.
I do, however, like the idea of making the link text a setting. How about we just print out the setting in the html.tpl.php like we do for the anchor link?
I've committed this patch for 7.x-5.x.
Comment #12
johnalbinWe can't rename the zen_jump_link_target variable in Zen 7.x-3.x, so I had to name the new variable to match that naming convention. :-\
Comment #13
johnalbin