editing phocadownload for 1.3.9 need clues

Phoca Download - download manager
navibd
Phoca Enthusiast
Phoca Enthusiast
Posts: 83
Joined: 18 Jul 2010, 18:10

editing phocadownload for 1.3.9 need clues

Post by navibd »

I have 17 sections, and I want to know how can I change the bg-color of sections header.
I can change it in css, but ,actually I want every of my section have their own color..
How can I do it ?

give me exact clue please...I know css, but i don't know php very much..
thank you
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: editing phocadownload for 1.3.9 need clues

Post by Jan »

Hi, then you need to do some php if clause, e.g. to load specific css, or e.g. to add some style to the html tag, e.g.

Code: Select all

if ($something == 1) {
  $style= 'background: green;';
} else {
  $style= 'background: blue;';
}

echo '<div style="'.$style.'"'> ... </div>';
....

Jan
If you find Phoca extensions useful, please support the project
navibd
Phoca Enthusiast
Phoca Enthusiast
Posts: 83
Joined: 18 Jul 2010, 18:10

Re: editing phocadownload for 1.3.9 need clues

Post by navibd »

Thank you Jan, should I edit css or PHP file? which one ?
Thank you in advanced..
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: editing phocadownload for 1.3.9 need clues

Post by Jan »

Hi, this is a php code, so the php in the view you want to use this css.

Jan
If you find Phoca extensions useful, please support the project
Post Reply