PhpDev.App
elementary/website

elementary/website

Stars: 1209

Forks: 732

Pull Requests: 2276

Issues: 988

Watchers: 70

Last Updated: 2023-09-14 09:08:35

The elementary.io website

License: MIT License

Languages: PHP, JavaScript, CSS, Shell, Dockerfile

https://elementary.io

The New elementary.io

Build Status Translation status

A focused, minimum viable product (hence MVP) for a website that accompanied the release of elementary OS Freya.

Project Organization

  • Issues for individual actionable items, or bugs i.e.:
    • Design home page
    • Implement home page
    • Add payment form
    • Fix link to Wired article
  • Milestones for "releases" or overall steps, i.e.:
    • Single-page site
    • User Documentation
    • Journal
  • Reviews Do all work in branches, then submit pull requests for review when ready
    • No dummy content in master, ever.
    • Small diff is best diff.
    • The reviewer is the gatekeeper. Be kind of a dick.

Architecture/Philosophies

  • HTML, CSS, and JS
  • Super simple PHP-based templating system
  • No/minimal frameworks (keep it simple!)
  • Graceful degradation (don't be held back by crappy browsers)
  • Mobile-first

Templating System

  • PHP-based
  • Pages go in root as .php files
  • require_once '_backend/preload.php';, set any variables, then include $template['header']; (see code-of-conduct for an example) at top of page.
  • include $template['footer']; at bottom of page.
  • Page variables:
    • $page['title']
    • $page['description']
    • $page['author']

Contributing

See guidelines for coding and translating.

Security

Please see SECURITY.md for information about disclosure policy and contact.

License

This project has a MIT license.

OPEN ISSUES

See all