Hi to all members,
I am developing a generic plugin and would like to use the baseColour
at one point, which is used for the main background of all journals of an instance. This can be easily retrieved in a theme plugin via $baseColour = $this->getOption('baseColour');
(ojs/DefaultThemePlugin.inc.php at 2f4aed2299aca4b660ce5c5af4a4c210e1e9e93a · pkp/ojs · GitHub, pkp-lib/ThemePlugin.inc.php at 559edb8599e688c1f520a9d68d8ac526f90081b4 · pkp/pkp-lib · GitHub). Or also via the REST API using http://localhost:8000/_/api/v1/contexts/1/theme
.
However, since I am not in the DefaultThemePlugin
class or ThemePlugin
class but in a subclass of GenericPlugin
I cannot access the corresponding $this
to get to the baseColor
. How is it anyway possible that I can read the variable in a generic plugin?
I am currently using version 3.4.0.0 pulled from OJS main branch on github.
I am very glad about any help!
1 post - 1 participant