Closed
Bug 272806
Opened 20 years ago
Closed 19 years ago
Use templates for page displays
Categories
(addons.mozilla.org Graveyard :: Public Pages, enhancement)
addons.mozilla.org Graveyard
Public Pages
Tracking
(Not tracked)
RESOLVED
FIXED
2.0
People
(Reporter: Bugzilla-alanjstrBugs, Assigned: Bugzilla-alanjstrBugs)
References
Details
Attachments
(5 files, 7 obsolete files)
13.34 KB,
text/plain
|
Details | |
5.71 KB,
patch
|
Details | Diff | Splinter Review | |
2.52 KB,
patch
|
Details | Diff | Splinter Review | |
6.83 KB,
patch
|
Details | Diff | Splinter Review | |
5.96 KB,
patch
|
Details | Diff | Splinter Review |
One problem is that we have things hardcoded as themes and plugins, especially in terms of directory structure. This means that for http://update.mozilla.org/themes/ and /extensions/ to work, we have duplicates of a lot of code. We should break these pages down so that code such as showlist.php lives in a central folder and is merely included as a building component for /themes/showlist.php. themes/showlist.php would contain {set variables for themes specific} [header include] [body include] [sidebar include] [footer include] All includes would go in a central directory. We could have [categories_sidebar_include] [developers_sidebar_include] This would basically allow us to make page templates.
Comment 1•20 years ago
|
||
Don't reinvent the wheel. Find a nice template engine and use it, but don't break *anything*. Not going to happen anytime soon.
Target Milestone: 1.0 → Future
I'll need http://sourceforge.net/projects/smarty-gettext/ too.
Status: NEW → ASSIGNED
This is a template for the header that swaps in the variables and also allows localization.
This is a wrapper for the header that would call the template. Also, note that the header template contains all the html headers. Title and optional RSS feed link would be passed in, too. So is this the way to go?
The only thing I'm not sure about is a for loop where you just pass in the end.
Now covers themes and extensions based on $typename
Attachment #169581 -
Attachment is obsolete: true
Replace tabs with 2 spaces. Use if block for RSS link.
Attachment #169541 -
Attachment is obsolete: true
Attachment #169761 -
Attachment mime type: application/octet-stream → text/plain
Attachment #169542 -
Attachment is obsolete: true
Assignee | ||
Comment 10•20 years ago
|
||
Attachment #169590 -
Attachment is obsolete: true
Assignee | ||
Comment 11•20 years ago
|
||
Still not complete, but big steps forward.
Assignee | ||
Comment 12•20 years ago
|
||
Based on feedback from mconnor
Attachment #169761 -
Attachment is obsolete: true
Attachment #169763 -
Attachment is obsolete: true
Assignee | ||
Comment 13•20 years ago
|
||
Assignee | ||
Comment 14•20 years ago
|
||
mconnor: you get to polish it up. And do the php. After that, I'll do the rest.
Attachment #169772 -
Attachment is obsolete: true
Assignee | ||
Comment 15•20 years ago
|
||
Assignee | ||
Comment 16•19 years ago
|
||
Fixed with AMO 2.0
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•