• Resolved dbro

    (@dbro)


    Is there any plan to shift the HTML templates in public/partials to the templates directory so that our themes can interact with the structure and styling of the plugin?

    It seems like a bit of a design flaw IMHO to not have the presentation files as templates.

    The reason why I ask is that I have been asked to bend the style of the plugin to match a website theme. Structurally many things are incomplete or missing. For example proper form label tags for form elements. I also want to wrap the text in button tags with a span. It creates more design flexibility.

    It would not really take much to modify it to use templates by using locate_template() instead of hard including the partials.

    tnx.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I am following this, i prefer to have something like an accept all button or something. Now i can create that myself, but there will still be some kinda hook option needed.

    Thread Starter dbro

    (@dbro)

    Well a good start would be that any files that generate/create browser output are implemented as WordPress templates. That would allow the plugin to integrate better with WordPress themes. Functional hooks would still need to be added where appropriate in the business logic.

    Once the plugin has a good software design structure it will make it more flexible to allow anyone to make all these small custom “cosmetic” changes. It would also reduce the amount of support effort/time of people asking for small custom changes, because everyone could now make the small changes that they need themselves without bothering the plugin developers.

    I see by the activity of this forum that there is a need for a good GDPR solution. IMHO so far this plugin is the best from all of them available as far as GDPR completeness.

    Plugin Author Fernando Claussen

    (@fclaussen)

    I agree that such files should be in the templates folder.
    Can you open a GitHub issue with this request so I can better keep track of it?
    It is hard not to lose a request like this in the sea of support requests.

    Thread Starter dbro

    (@dbro)

    Done.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Shifting Partials to Templates’ is closed to new replies.