forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: Sw0rDz on July 23, 2010, 03:58:45 am

Title: {Javascript}'s PHP equavilent
Post by: Sw0rDz on July 23, 2010, 03:58:45 am
I'm designing a custom theme.  Which I have a header function in the theme.php that overrides the default.  However, it won't include the required javascript scripts.  If i have {Javascript} in my header function, it won't show the javascript but just the text "{Javascript}". 
Title: Re: {Javascript}'s PHP equavilent
Post by: Sw0rDz on July 23, 2010, 04:08:42 am
I don't see an edit ability, but I found the solution.
All I did was add this:
Code: [Select]
echo theme_javascript_head();
Title: Re: {Javascript}'s PHP equavilent
Post by: Αndré on July 23, 2010, 09:38:37 am
If i have {Javascript} in my header function, it won't show the javascript but just the text "{Javascript}". 
The correct token name is {JAVASCRIPT}, not {Javascript}.
Title: Re: {Javascript}'s PHP equavilent
Post by: torgasm on September 05, 2010, 03:04:37 pm
I'm having the same issue.

The Pop-Up function doesn't work for full-size and it shows the text {JAVASCRIPT} at the top of my gallery which -all it does is- push the template down.

http://conradfan.com/gallery/index.php
Title: Re: {Javascript}'s PHP equavilent
Post by: Αndré on September 05, 2010, 05:26:24 pm
http://conradfan.com/gallery/index.php
Quote
<!--Coppermine Photo Gallery 1.4.27 (stable)-->

Locking.