894 posts
  • Europe
  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
  • Most Wanted Bounty Winner
  • Envato Studio (Microlancer) Beta Tester
  • Grew a moustache for the Envato Movember competition
infuse01 says

Hi everybody,

Lately I’ve been wondering how do you create your Site Templates. Sometimes when I create a Site Template I’m rather using PHP for including files or outsource the settings into a separate file.

But how do you do?

Are you also making .php files with your site template. For sure, for a contact form you’re most likely using PHP , isn’t it? Is it allowed in the Site Template Section to upload site templates with PHP Files? Any troubles?

Thanks in advance

199 posts
  • Bought between 1 and 9 items
  • Referred between 1 and 9 users
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 5 000 and 10 000 dollars
  • Romania
DanThemes says

I use only .html for the page of the theme (for the contact page as well, and yes the contact form is working) and .php for the scripts (obviously :D ), because although it takes more time I find it to be a lot easier to customize.

894 posts
  • Europe
  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
  • Most Wanted Bounty Winner
  • Envato Studio (Microlancer) Beta Tester
  • Grew a moustache for the Envato Movember competition
infuse01 says

So I guess it’s allowed to use PHP Files in Site Templates. How do you integrate some sort of settings or when your client has modified the template how can he/she get updates without the need of re-modifying again?

193 posts I'm a Husky Designer
  • Elite Author
  • Has been a member for 4-5 years
  • Sold between 100 000 and 250 000 dollars
  • Has attended an Envato Live event
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Won a Competition
  • United States
  • Bought between 10 and 49 items
+1 more
designcrumbs says

An HTML version of your template is required. You can make it in PHP even as the primary version, but you must include an HTML version as well. Thems the rules.

176 posts The Joomla Guy
  • Won a Competition
  • Power Elite Author
  • Power Elite Author: Sold between 1 000 000 - 1 999 999 dollars
  • Most Wanted Bounty Winner
  • Bought between 100 and 499 items
  • Referred between 500 and 999 users
  • Has been a member for 5-6 years
+4 more
hogash says

Good question!

I always include the html files but also some php “helpers” like: contact form script, a php gallery file (it ease up adding images to gallery), timthumb (php image resizer) etc.

I personally would’ve liked if it was a php version where i could include a single menu.php file, footer.php file, header etc. but there are just few users who use this technique so i think it’s better to have all files html (or mostly).

Good luck!

by
by
by
by
by
by