'Credit Due', 'url' => 'http://habariproject.org/', 'author' => 'Habari Community', 'authorurl' => 'http://habariproject.org/', 'version' => '0.1', 'description' => 'Allows for output of information for active themes and plugins', 'license' => 'Apache License 2.0', ); } /** * function get_credits * retrieves information about the active theme */ public function show_credits { $theme_credits= Themes::get_active(); $plugin_credits= Plugins::get_active(); echo '

Theme

\n'; echo '\t
    \n'; echo '\t\t
  1. ' . $theme_credits['info']->name . ' version ' . $theme_credits['info']->version . ' by ' . $theme_credits['info']->author . '
  2. \n' echo '\t
\n\n' echo '

Plugins

\n'; echo '\t
    \n'; foreach ($plugin_credits as $plugin) { echo '\t\t
  1. ' . $plugin['info']->name . ' version ' . $plugin['info']->version; echo empty( $plugin['info']->authorurl ) ? ' by ' . $plugin['info']->author : ' by ' . $plugin['info']->author . '' } } } ?>