1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 12:48:26 +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). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_handlers/theme_handler.php,v $ | $Source: /cvs_backup/e107_0.8/e107_handlers/theme_handler.php,v $
| $Revision: 1.22 $ | $Revision: 1.23 $
| $Date: 2009-07-06 09:17:27 $ | $Date: 2009-07-06 09:28:02 $
| $Author: e107coders $ | $Author: e107coders $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
@@ -371,7 +371,7 @@ class themeHandler{
$itext .= ($val['@attributes']['previewFull']) ? "</a>" : ""; $itext .= ($val['@attributes']['previewFull']) ? "</a>" : "";
$itext .= ($pref['sitetheme_deflayout'] == $key) ? " (default)" : ""; $itext .= ($pref['sitetheme_deflayout'] == $key) ? " (default)" : "";
$itext .= "</td> $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'>"; <td style='vertical-align:top;text-align:center'>";
$itext .= ($val['menuPresets']) ? ADMIN_TRUE_ICON: "&nbsp;"; $itext .= ($val['menuPresets']) ? ADMIN_TRUE_ICON: "&nbsp;";
$itext .= "</td> $itext .= "</td>
@@ -537,7 +537,7 @@ class themeHandler{
$itext .= ($val['@attributes']['previewFull']) ? "</a>" : ""; $itext .= ($val['@attributes']['previewFull']) ? "</a>" : "";
$itext .= ($pref['sitetheme_deflayout'] == $key) ? " (default)" : ""; $itext .= ($pref['sitetheme_deflayout'] == $key) ? " (default)" : "";
$itext .= "</td> $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'>"; <td style='vertical-align:top;text-align:center'>";
$itext .= ($val['menuPresets']) ? ADMIN_TRUE_ICON : "&nbsp;"; $itext .= ($val['menuPresets']) ? ADMIN_TRUE_ICON : "&nbsp;";
$itext .= "</td> $itext .= "</td>
@@ -660,7 +660,7 @@ class themeHandler{
return $text; return $text;
} }
function renderRequiredPlugins($val) function renderPlugins($val)
{ {
$tmp = explode(",",$val); $tmp = explode(",",$val);
$tmp = array_filter($tmp); $tmp = array_filter($tmp);

View File

@@ -4,8 +4,8 @@
| e107 website system - Language File. | e107 website system - Language File.
| |
| $Source: /cvs_backup/e107_0.8/e107_languages/English/admin/lan_theme.php,v $ | $Source: /cvs_backup/e107_0.8/e107_languages/English/admin/lan_theme.php,v $
| $Revision: 1.5 $ | $Revision: 1.6 $
| $Date: 2009-07-06 06:33:29 $ | $Date: 2009-07-06 09:28:02 $
| $Author: e107coders $ | $Author: e107coders $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
@@ -70,7 +70,7 @@ define("TPVLAN_49", "Compliance");
define("TPVLAN_50", "Layouts"); define("TPVLAN_50", "Layouts");
define("TPVLAN_51", "Change Theme"); define("TPVLAN_51", "Change Theme");
define("TPVLAN_52", "Name"); define("TPVLAN_52", "Name");
define("TPVLAN_53", "Requirements"); define("TPVLAN_53", "Suggested Plugins");
define("TPVLAN_54", "Menu Preset"); define("TPVLAN_54", "Menu Preset");
define("TPVLAN_55", "Default"); define("TPVLAN_55", "Default");

View File

@@ -5,8 +5,8 @@
function e107v4a_process() function e107v4a_process()
{ {
global $theme_pref; global $theme_pref;
$theme_pref['something'] = $_POST['e1074a_something']; $theme_pref['example'] = $_POST['e1074a_example'];
$theme_pref['something2'] = $_POST['e1074a_something2']; $theme_pref['example2'] = $_POST['e1074a_example2'];
save_prefs('theme'); save_prefs('theme');
return "Custom Settings Saved Successfully"; return "Custom Settings Saved Successfully";
} }
@@ -16,11 +16,11 @@ function e107v4a_config()
{ {
global $theme_pref; global $theme_pref;
$var[0]['caption'] = "This is a sample theme configuration page"; $var[0]['caption'] = "Sample configuration field";
$var[0]['html'] = "<input type='text' name='e1074a_something' value='".$theme_pref['something']."' />"; $var[0]['html'] = "<input type='text' name='e1074a_example' value='".$theme_pref['example']."' />";
$var[1]['caption'] = "Another Example"; $var[1]['caption'] = "Another Example";
$var[1]['html'] = "<input type='text' name='e1074a_something2' value='".$theme_pref['something2']."' />"; $var[1]['html'] = "<input type='text' name='e1074a_example' value='".$theme_pref['example2']."' />";
return $var; return $var;
} }

View File

@@ -4,7 +4,7 @@
<description>Classic e107 theme</description> <description>Classic e107 theme</description>
<compliance xhtml="true" css="true"/> <compliance xhtml="true" css="true"/>
<layouts> <layouts>
<layout name='3_column' title='3 Columns' preview='preview.jpg' previewFull='preview_full.png' requiredPlugins='chatbox_menu,poll' default='true' > <layout name='3_column' title='3 Columns' preview='preview.jpg' previewFull='preview_full.png' plugins='chatbox_menu,poll' default='true' >
<menuPresets> <menuPresets>
<area id='1' > <area id='1' >
<menu name='login' /> <menu name='login' />