本文整理汇总了PHP中OOAddon::getAuthor方法的典型用法代码示例。如果您正苦于以下问题:PHP OOAddon::getAuthor方法的具体用法?PHP OOAddon::getAuthor怎么用?PHP OOAddon::getAuthor使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OOAddon
的用法示例。
在下文中一共展示了OOAddon::getAuthor方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: rex_pluginManager
$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 />';
}
if ($author) {
$credits .= $I18N->msg('credits_author') . ': <span>' . htmlspecialchars($author) . '</span><br />';
}
if ($supportPage) {
$credits .= $I18N->msg('credits_supportpage') . ': <span><a href="http://' . $supportPage . '" onclick="window.open(this.href); return false;">' . $supportPage . '</a></span><br />';
}
echo '<div class="rex-area">
示例2: foreach
?>
</th>
<th><?php
echo $I18N->msg("credits_supportpage");
?>
</th>
</tr>
</thead>
<tbody>
<?php
foreach (OOAddon::getRegisteredAddons() as $addon) {
$isActive = OOAddon::isActivated($addon);
$version = OOAddon::getVersion($addon);
$author = OOAddon::getAuthor($addon);
$supportPage = OOAddon::getSupportPage($addon);
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');
}
示例3: rex_read_addons_folder
</th>
<th><?php
echo $I18N->msg("credits_supportpage");
?>
</th>
</tr>
</thead>
<tbody>
<?php
$ADDONS = rex_read_addons_folder();
foreach ($ADDONS as $cur) {
$isActive = OOAddon::isActivated($cur);
$version = OOAddon::getVersion($cur);
$author = OOAddon::getAuthor($cur);
$supportPage = OOAddon::getSupportPage($cur);
if ($isActive) {
$cl = 'rex-clr-grn';
} else {
$cl = 'rex-clr-red';
}
echo '<tr><td><span class="' . $cl . '">' . $cur . '</span> [<a href="index.php?page=addon&spage=help&addonname=' . $cur . '">?</a>]</td><td class="' . $cl . '">';
if ($version) {
echo '[' . $version . ']';
}
echo '</td><td class="' . $cl . '">';
if ($author) {
echo $author;
}
if (!$isActive) {