Author Topic: get template-path within functions.php  (Read 4887 times)

0 Members and 1 Guest are viewing this topic.

Offline tafferKakao

  • Newbie
  • *
  • Posts: 15
    • View Profile
    • Pixxor.de - Just Funpics
get template-path within functions.php
« on: March 11, 2005, 02:40:32 PM »
hi there!

is it possible to get the template-path within the code of the functions.php (includes/functions.php) ?

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: get template-path within functions.php
« Reply #1 on: March 11, 2005, 03:02:56 PM »
It's the defined constant
Code: [Select]
TEMPLATE_PATH

Offline tafferKakao

  • Newbie
  • *
  • Posts: 15
    • View Profile
    • Pixxor.de - Just Funpics
Re: get template-path within functions.php
« Reply #2 on: March 11, 2005, 03:34:36 PM »
so i just have to write
Code: [Select]
print '<img src="'.TEMPLATE_PATH.'/test.gif">';to show the image "test.gif"? :? no variable like $template_path ?

(besides $template_path won't work ... i already tried it ;) )

i know it's a stupid example ... i try to make an smilie-mod and for this i need to change the bbcode-function ;)

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: get template-path within functions.php
« Reply #3 on: March 11, 2005, 03:50:18 PM »
Code: [Select]
$template_pathis a variable defined in the template class inside includes/template.php

Offline tafferKakao

  • Newbie
  • *
  • Posts: 15
    • View Profile
    • Pixxor.de - Just Funpics
Re: get template-path within functions.php
« Reply #4 on: March 12, 2005, 12:59:15 AM »
TEMPLATE_PATH works pretty fine ... thanks ;)