Add mailstream plugin #109
No reviewers
Labels
No labels
2018.09
2019.01
2019.03
2019.06
2019.09
2019.12
2020.03
2020.06
2020.09
2020.12
2021.03
2021.07
2021.09
2022.02
2022.06
2022.09
2022.12
2023.04
2023.05
2023.09
2024.03
2024.06
2024.09
2024.12
2025.02
2025.05
dependencies
Hackathon 2021
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: friendica/friendica-addons#109
Loading…
Reference in a new issue
No description provided.
Delete branch "mailstream"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
My first plugin. A couple of things where I'm not sure what is the Right Thing to do:
I'm not 100% sure but I think you need to provide the template files also for the smarty3 engine.
I originally wrote this before the shift to smarty3, so it uses the old style templates. It does work. I can port the templates to smarty3, but I wanted to get something working checked in. I don't have a lot of time to spend on this.
There is a Python script to convert Friendica templates to smarty: util/friendica-to-smarty-tpl.py
Converting to smarty3 is not hard. But how do I use it in my PHP code? Is there an example of a plugin that's already using smarty3 I can copy? The all seem to use the old template system.
We use both. A theme decides which template engine it uses, not the addon. If a theme uses smarty. it'll use the templates in addon/addonname/view/smarty3. If the theme uses our internal template engine, it uses the templates in addon/addonname/view. If the smarty templates don't exist, we'll also fall back to the internal engine.
What's a good example of a theme that uses smarty3 that I can test with?