#1 2021-03-04 02:20:05

Serge D
Member
US
2014-07-15
385

How to get a list of active plugins from within theme's admin

Hello,

In v11 $template->smarty->tpl_vars['plugin_menu_items'] was deprecated https://piwigo.org/doc/doku.php?id=dev:changes_in_2.11

$template->set_filenames(array('theme_admin_content' => dirname(__FILE__) . '/admin.tpl'));
$template->smarty->tpl_vars['plugin_menu_items'] where value in enumerator was a plugin

How can I get list of plugins from within my theme's admin.inc.php?

Offline

 

#2 2021-03-04 06:07:59

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7285

Re: How to get a list of active plugins from within theme's admin

Hi :-)

in function

global $pwg_loaded_plugins;

  if (isset($pwg_loaded_plugins['ExtendedDescription'])){
    // you're are test is plugin ExtendedDescription is activate
  }


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#3 2021-03-04 22:25:36

Serge D
Member
US
2014-07-15
385

Re: How to get a list of active plugins from within theme's admin

That worked. Thank you

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2025 · Contact