I'm thinking it might be nice to write an extension to enable fine grained configuration of my theme.
So, my thoughts would be that anyone who installed my theme would see a message (to the admin only ideally) suggesting they should install the extension too.
Is this possible, or is there a better way to do this perhaps? Can a theme itself have admin specific pages?
Offline
Ok, answered my own question, noticed some other themes have admin pages so no need for a plugin!
Offline
Hi philb,
Tell us more. Which plugin are you thinking about?
Offline
I wanted to add theme configuration in the admin, but I found out that you don't need to have a separate plugin, just to add admin/admin.inc.php to the theme :)
Offline
OK. What kind of configuration settings do you plan to have in your theme?
Offline
At this stage, hard to say, but some of the things I am thinking of including are...
* Ability to switch between Disqus comments and Piwigo comments
* Turn on/off theme features
* Adding cover images on index page
Really, it all depends on how much free time I have.
Offline
philb wrote:
* Ability to switch between Disqus comments and Piwigo comments
It sounds more like a separate plugin to me. Being able to have Disqus comments on any theme (including yours) would be better.
philb wrote:
* Adding cover images on index page
Can you tell us more? What do you mean by "cover images"?
Offline
plg wrote:
philb wrote:
* Ability to switch between Disqus comments and Piwigo comments
It sounds more like a separate plugin to me. Being able to have Disqus comments on any theme (including yours) would be better.
I've looked into this a little and I'm not sure how it can be achieved without quite a hacky solution that would manipulate the comments HTML and replace it with Disqus as there are no plugin hooks specifically for comments. At least, not in the default theme, did I miss something?
plg wrote:
philb wrote:
* Adding cover images on index page
Can you tell us more? What do you mean by "cover images"?
A landing page, perhaps there are plugins to achieve this though.
Last edited by philb (2015-05-28 14:39:29)
Offline
philb wrote:
I've looked into this a little and I'm not sure how it can be achieved without quite a hacky solution that would manipulate the comments HTML and replace it with Disqus as there are no plugin hooks specifically for comments. At least, not in the default theme, did I miss something?
To achieve this in Piwigo, use the prefilter system : it lets you add some template bloc anywhere you want. You can find an example on https://github.com/plegall/Piwigo-custo … in.inc.php
philb wrote:
plg wrote:
philb wrote:
* Adding cover images on index page
Can you tell us more? What do you mean by "cover images"?
A landing page, perhaps there are plugins to achieve this though.
Maybe just using [extension by P@t] Additional Pages, see a guide on [Github] Piwigo-custom_download_link file main.inc.php">https://github.com/plegall/Piwigo-custo … in.inc.php
philb wrote:
plg wrote:
philb wrote:
* Adding cover images on index page
Can you tell us more? What do you mean by "cover images"?
A landing page, perhaps there are plugins to achieve this though.
Maybe just using [extension by P@t] Additional Pages, see a guide on
Offline