Explain what this does

Associate
Joined
31 Jan 2007
Posts
1,860
Hey,
I'm currently working on a site for a family member and need a news system adding in. In the past I used to use CuteNews, It worked really well but now I want to attempt to make my own version. I have opened one of cutenews .tpl files and don;t understand the code in there.

If possible, could someone look at the file linked to (exact copy of the file from cutenews) and just explain what each bit does? It'd be highly appreciated.

The main bits I want to know about are:

1.) $template_active = <<<HTML

2.) <div>{short-story}</div>

3.) <div style="float: right;">[full-link]

4.) HTML;

5.) $template_comment = <<<HTML

I realise some parts like the bit in curly braces are replaced by other data but my question is HOW?

It would help me tremendously if someone could help me understand those bits highlighted above.

The file is at this link

Thanks

Neil
 
Last edited:
Ok, How do the curly brackets get changed into the proper data from the database?

and what do the bits in square brackets and the bits with several chevrons mean?
 
Back
Top Bottom