1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 17:14:42 +02:00

Changed "Required plugins" in Theme Manager, to "Suggested Plugins". If required, the theme creator can make mention of it. For everything else, they are optional

This commit is contained in:
CaMer0n
2009-07-06 09:28:02 +00:00
parent aaa44df1b1
commit 9534455844
4 changed files with 15 additions and 15 deletions

View File

@@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_handlers/theme_handler.php,v $
| $Revision: 1.22 $
| $Date: 2009-07-06 09:17:27 $
| $Revision: 1.23 $
| $Date: 2009-07-06 09:28:02 $
| $Author: e107coders $
+----------------------------------------------------------------------------+
*/
@@ -371,7 +371,7 @@ class themeHandler{
$itext .= ($val['@attributes']['previewFull']) ? "</a>" : "";
$itext .= ($pref['sitetheme_deflayout'] == $key) ? " (default)" : "";
$itext .= "</td>
<td style='vertical-align:top'>".$val['@attributes']['requiredPlugins']."&nbsp;</td>
<td style='vertical-align:top'>".$val['@attributes']['plugins']."&nbsp;</td>
<td style='vertical-align:top;text-align:center'>";
$itext .= ($val['menuPresets']) ? ADMIN_TRUE_ICON: "&nbsp;";
$itext .= "</td>
@@ -537,7 +537,7 @@ class themeHandler{
$itext .= ($val['@attributes']['previewFull']) ? "</a>" : "";
$itext .= ($pref['sitetheme_deflayout'] == $key) ? " (default)" : "";
$itext .= "</td>
<td style='vertical-align:top'>".$this->renderRequiredPlugins($val['@attributes']['requiredPlugins'])."&nbsp;</td>
<td style='vertical-align:top'>".$this->renderPlugins($val['@attributes']['plugins'])."&nbsp;</td>
<td style='vertical-align:top;text-align:center'>";
$itext .= ($val['menuPresets']) ? ADMIN_TRUE_ICON : "&nbsp;";
$itext .= "</td>
@@ -660,7 +660,7 @@ class themeHandler{
return $text;
}
function renderRequiredPlugins($val)
function renderPlugins($val)
{
$tmp = explode(",",$val);
$tmp = array_filter($tmp);