Chris Cook wrote:
On 1/26/06, Nick Lewis <nick@smartcampaigns.com> wrote:
The two javascript includes apparently need to come before misc/drupal.js for the nifty corners technique to work. Any ideas on a cleaner way to include the javascript in the right order without breaking module's ability to extend the template?
I'm probably missing something but why don't use just put the following in your theme:
<head> <title><?php print $head_title ?></title> <script type="text/javascript" src="themes/curved_slate/nifty.js"></script> <script type="text/javascript" src="themes/curved_slate/layout.js"></script> <?php print $head ?> <?php print $styles ?> </head>
The issue is ordering -- the javascript inclusions don't work when placed in front of the drupal.js include. After talking with Ber, I'm beginning to think that using javascript to generate curves around certain div elements might be a good support module. That way, other themes could make use of the javascript. Who knows though... a big factor for me right now is 3 deadlines that are coming up which want "curvy" templates. Best, Nick Lewis http://nicklewis.smartcampaigns.com
Cheers, Chris