コード例 #1
0
       $author = $I18N->msg('credits_addon_inactive');
   }
   if ($supportPage) {
       $supportPage = '<a href="http://' . $supportPage . '" onclick="window.open(this.href); return false;">' . $supportPage . '</a>';
   }
   echo '
   	<tr class="rex-addon">
   	  <td class="rex-col-a"><span class="' . $cl . '">' . htmlspecialchars($addon) . '</span> [<a href="index.php?page=addon&amp;subpage=help&amp;addonname=' . $addon . '">?</a>]</td>
   	  <td class="rex-col-b ' . $cl . '">' . $version . '</td>
   	  <td class="rex-col-c' . $cl . '">' . $author . '</td>
   	  <td class="rex-col-d' . $cl . '">' . $supportPage . '</td>
 	  </tr>';
   if ($isActive) {
       foreach (OOPlugin::getAvailablePlugins($addon) as $plugin) {
           $isActive = OOPlugin::isActivated($addon, $plugin);
           $version = OOPlugin::getVersion($addon, $plugin);
           $author = OOPlugin::getAuthor($addon, $plugin);
           $supportPage = OOPlugin::getSupportPage($addon, $plugin);
           if ($isActive) {
               $cl = 'rex-clr-grn';
           } else {
               $cl = 'rex-clr-red';
           }
           if ($version) {
               $version = '[' . $version . ']';
           }
           if ($author) {
               $author = htmlspecialchars($author);
           }
           if (!$isActive) {
               $author = $I18N->msg('credits_addon_inactive');
コード例 #2
0
ファイル: addon.inc.php プロジェクト: Barnhiac/MTW_REDAXO
if ($addonname != '') {
    $pluginname = array_search($pluginname, $PLUGINS[$addonname]) !== false ? $pluginname : '';
} else {
    $pluginname = '';
}
$warning = '';
if ($pluginname != '') {
    $addonManager = new rex_pluginManager($PLUGINS, $addonname);
} else {
    $addonManager = new rex_addonManager($ADDONS);
}
// ----------------- HELPPAGE
if ($subpage == 'help' && $addonname != '') {
    if ($pluginname != '') {
        $helpfile = rex_plugins_folder($addonname, $pluginname);
        $version = OOPlugin::getVersion($addonname, $pluginname);
        $author = OOPlugin::getAuthor($addonname, $pluginname);
        $supportPage = OOPlugin::getSupportPage($addonname, $pluginname);
        $addonname = $addonname . ' / ' . $pluginname;
    } else {
        $helpfile = rex_addons_folder($addonname);
        $version = OOAddon::getVersion($addonname);
        $author = OOAddon::getAuthor($addonname);
        $supportPage = OOAddon::getSupportPage($addonname);
    }
    $helpfile .= DIRECTORY_SEPARATOR . 'help.inc.php';
    $credits = '';
    $credits .= $I18N->msg('credits_name') . ': <span>' . htmlspecialchars($addonname) . '</span><br />';
    if ($version) {
        $credits .= $I18N->msg('credits_version') . ': <span>' . $version . '</span><br />';
    }