Seravo / seravo-plugin

Enhances WordPress with Seravo specific features and integrations
https://seravo.com/
GNU General Public License v2.0
37 stars 17 forks source link

Reorganize Seravo Plugin folder structure #537

Open Moppa5 opened 3 years ago

Moppa5 commented 3 years ago

Description As a part of the cleanup and Up-To-Date project one point was about Seravo Plugin folder structure. We should investigate and reorganize a proper and cleaner folder structure for Seravo Plugin. There are no clear plans yet for this as it's depending mostly on how the new implementation & design will be after the cleanup.

However, we can discuss and document here about the changes.

JoosuaKoskinen commented 3 years ago

@Moppa5 and I decided the folder structure for postboxes to be the following:

/lib
   |
   |__ /postbox
   |          |__ postbox.php
   |          |__ toolpage.php
   |          |__ handler.php
   |          |__ /component
   |          |            |__ component.php
   |          |            |__ templates.php
   |          |__ /templates
   |                       |__ auto_command.php ....
   |
   |__ /ajax
   |       |_____ handler.php
   |       |_____ response.php
           |_____ /templates
                           |__ auto_command.php ....