Standardize Theme structure

Note: We are moving the topics of this forum and it will be deleted at some point

Publish your own request for comments/change or patches for the next version of phpBB. Discuss the contributions and proposals of others. Upcoming releases are 3.2/Rhea and 3.3.
Post Reply
User avatar
hanakin
Front-End Dev Team Lead
Front-End Dev Team Lead
Posts: 968
Joined: Sat Dec 25, 2010 9:02 pm
Contact:

Standardize Theme structure

Post by hanakin »

Proposal
Alter the current theme structure to follow that of HTML Boilerplate which is a growing standard across the web for the folder structure for html/css/js files to be layed out in.

What this means
1. Make sure all js files are being included via the new INCLUDEJS var (curently the editor.js is not)
2. Move all of these outside the template folder into their own folder labeled "js"
3. Move the images folder outside of the theme folder and rename it to "img"
4. Seperate the language specific files into two locations the images inot the new img folder created under the language folder and the css in the current location
5. Rename the "theme" folder to "css"
6. Move all the HTML files out of the template folder into the primary directory.

Proposed structure

Code: Select all

Prosilver
+ js
   - JS files
+ img
   - image files
   + en
      - language specific image files
+ css
   - css files
   + en
      - language specific css files
- attachment.html
- bbcode.html
etc...
Positives
  • This would provide future versions of PHPBB to adhere to an established common practice naming convention/structure for theme related files.
  • Allow for easier navigation and understanding of files for first time designers/developers/users
  • Allow for easier addition of addons such as css grids/frameworks/jquery plugins/etc.
  • Provide common already understood base for the Front-End Development community to work with
Negatives
  • Would break alot of themes from 3.0.11 (3.1 currently does that already)
  • Theme authors would have to familiarize themselves with a new folder structure(Again its already a well documented and support structure so not exactly all that bad)
Donations welcome via Paypal Image

Post Reply