/** * Adding a free extensions to the list * @author Sven Lehnert, Konrad Sroka */ function add_free_extension($name, $slug, $url) { $tpd = new Theme_Plugin_Dependency($slug, $url); ?> <tr class="<?php if ($tpd->check_active()) { echo "active"; } else { echo "inactive"; } ?> "> <td><p> <?php // echo '<pre>'; // print_r($tpd); // echo '/<pre>'; if ($tpd->check_active()) { echo $name . ' is installed and activated!'; } else { if ($tpd->check()) { echo $name . ' is installed, but not activated. <a href="' . $tpd->activate_link() . '">Click here to activate the plugin.</a>'; } else { if ($install_link = $tpd->install_link()) { echo $name . ' is not installed. <a href="' . $install_link . '">Click here to install the plugin.</a>'; } else { echo $name . ' is not installed and could not be found in the plugin directory. Please install this plugin manually.'; } } } ?> </td></p> </tr><?php }