Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add icons for extensions (move to extension folder - file extension.p…

…ng - 32 x 32)
  • Loading branch information...
commit c2d9c53c8c9ffeb74395876ab42dc2baa4789980 1 parent bb7e18b
esclkm authored
Showing with 78 additions and 14 deletions.
  1. BIN  modules/forums/forums.png
  2. BIN  modules/index/index.png
  3. BIN  modules/page/page.png
  4. BIN  modules/pfs/pfs.png
  5. BIN  modules/pm/pm.png
  6. BIN  modules/polls/polls.png
  7. BIN  modules/rss/rss.png
  8. BIN  modules/users/users.png
  9. BIN  modules/view/view.png
  10. BIN  plugins/autocomplete/autocomplete.png
  11. BIN  plugins/banlist/banlist.png
  12. BIN  plugins/bbcode/bbcode.png
  13. BIN  plugins/ckeditor/ckeditor.png
  14. BIN  plugins/cleaner/cleaner.png
  15. BIN  plugins/comments/comments.png
  16. BIN  plugins/contact/contact.png
  17. BIN  plugins/hits/hits.png
  18. BIN  plugins/html/html.png
  19. BIN  plugins/htmlpurifier/htmlpurifier.png
  20. BIN  plugins/i18n/i18n.png
  21. BIN  plugins/ipsearch/ipsearch.png
  22. BIN  plugins/markitup/markitup.png
  23. BIN  plugins/news/news.png
  24. BIN  plugins/ratings/ratings.png
  25. BIN  plugins/recentitems/recentitems.png
  26. BIN  plugins/search/search.png
  27. BIN  plugins/statistics/statistics.png
  28. BIN  plugins/tags/tags.png
  29. BIN  plugins/trashcan/trashcan.png
  30. BIN  plugins/urleditor/urleditor.png
  31. BIN  plugins/userimages/userimages.png
  32. +20 −3 system/admin/admin.config.php
  33. +6 −2 system/admin/admin.extensions.php
  34. +3 −1 system/admin/admin.other.php
  35. +2 −0  system/admin/admin.structure.php
  36. BIN  system/admin/img/plugins32.png
  37. +10 −4 system/admin/tpl/admin.config.tpl
  38. +6 −0 system/admin/tpl/admin.css
  39. +17 −2 system/admin/tpl/admin.extensions.tpl
  40. +7 −1 system/admin/tpl/admin.other.tpl
  41. +7 −1 system/admin/tpl/admin.structure.tpl
View
BIN  modules/forums/forums.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  modules/index/index.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  modules/page/page.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  modules/pfs/pfs.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  modules/pm/pm.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  modules/polls/polls.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  modules/rss/rss.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  modules/users/users.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  modules/view/view.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  plugins/autocomplete/autocomplete.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  plugins/banlist/banlist.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  plugins/bbcode/bbcode.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  plugins/ckeditor/ckeditor.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  plugins/cleaner/cleaner.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  plugins/comments/comments.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  plugins/contact/contact.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  plugins/hits/hits.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  plugins/html/html.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  plugins/htmlpurifier/htmlpurifier.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  plugins/i18n/i18n.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  plugins/ipsearch/ipsearch.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  plugins/markitup/markitup.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  plugins/news/news.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  plugins/ratings/ratings.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  plugins/recentitems/recentitems.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  plugins/search/search.png
Diff not rendered
View
BIN  plugins/statistics/statistics.png
Diff not rendered
View
BIN  plugins/tags/tags.png
Diff not rendered
View
BIN  plugins/trashcan/trashcan.png
Diff not rendered
View
BIN  plugins/urleditor/urleditor.png
Diff not rendered
View
BIN  plugins/userimages/userimages.png
Diff not rendered
View
23 system/admin/admin.config.php
@@ -400,13 +400,18 @@
AND config_type != '".COT_CONFIG_TYPE_HIDDEN."'
ORDER BY config_cat ASC
");
+ $jj = 0;
while ($row = $sql->fetch())
{
+ $jj++;
if($L['core_'.$row['config_cat']])
{
$t->assign(array(
'ADMIN_CONFIG_ROW_URL' => cot_url('admin', 'm=config&n=edit&o=core&p='.$row['config_cat']),
- 'ADMIN_CONFIG_ROW_NAME' => $L['core_'.$row['config_cat']]
+ 'ADMIN_CONFIG_ROW_ICO' => '',
+ 'ADMIN_CONFIG_ROW_NAME' => $L['core_'.$row['config_cat']],
+ 'ADMIN_CONFIG_ROW_NUM' => $jj,
+ 'ADMIN_CONFIG_ROW_ODDEVEN' => cot_build_oddeven($jj)
));
$t->parse('MAIN.DEFAULT.ADMIN_CONFIG_COL.ADMIN_CONFIG_ROW');
}
@@ -419,11 +424,17 @@
AND config_type != '".COT_CONFIG_TYPE_HIDDEN."'
ORDER BY config_cat ASC
");
+ $jj = 0;
while ($row = $sql->fetch())
{
+ $jj++;
+ $icofile = $cfg['modules_dir'] . '/' . $row['config_cat'] . '/' . $row['config_cat'] . '.png';
$t->assign(array(
'ADMIN_CONFIG_ROW_URL' => cot_url('admin', 'm=config&n=edit&o=module&p='.$row['config_cat']),
- 'ADMIN_CONFIG_ROW_NAME' => $row['config_cat']
+ 'ADMIN_CONFIG_ROW_ICO' => (file_exists($icofile)) ? $icofile : '',
+ 'ADMIN_CONFIG_ROW_NAME' => $row['config_cat'],
+ 'ADMIN_CONFIG_ROW_NUM' => $jj,
+ 'ADMIN_CONFIG_ROW_ODDEVEN' => cot_build_oddeven($jj)
));
$t->parse('MAIN.DEFAULT.ADMIN_CONFIG_COL.ADMIN_CONFIG_ROW');
}
@@ -435,11 +446,17 @@
AND config_type != '".COT_CONFIG_TYPE_HIDDEN."'
ORDER BY config_cat ASC
");
+ $jj = 0;
while ($row = $sql->fetch())
{
+ $jj++;
+ $icofile = $cfg['plugins_dir'] . '/' . $row['config_cat'] . '/' . $row['config_cat'] . '.png';
$t->assign(array(
'ADMIN_CONFIG_ROW_URL' => cot_url('admin', 'm=config&n=edit&o=plug&p='.$row['config_cat']),
- 'ADMIN_CONFIG_ROW_NAME' => $row['config_cat']
+ 'ADMIN_CONFIG_ROW_ICO' => (file_exists($icofile)) ? $icofile : '',
+ 'ADMIN_CONFIG_ROW_NAME' => $row['config_cat'],
+ 'ADMIN_CONFIG_ROW_NUM' => $jj,
+ 'ADMIN_CONFIG_ROW_ODDEVEN' => cot_build_oddeven($jj)
));
$t->parse('MAIN.DEFAULT.ADMIN_CONFIG_COL.ADMIN_CONFIG_ROW');
}
View
8 system/admin/admin.extensions.php
@@ -284,11 +284,13 @@
{
include cot_langfile($code, $type);
}
-
+ $icofile = (($type == 'module') ? $cfg['modules_dir'] : $cfg['plugins_dir']) . '/' . $code . '/' . $code . '.png';
+
$t->assign(array(
'ADMIN_EXTENSIONS_NAME' => $info['Name'],
'ADMIN_EXTENSIONS_TYPE' => $type == 'module' ? $L['Module'] : $L['Plugin'],
'ADMIN_EXTENSIONS_CODE' => $code,
+ 'ADMIN_EXTENSIONS_ICO' => (file_exists($icofile)) ? $icofile : '',
'ADMIN_EXTENSIONS_DESCRIPTION' => empty($L['info_desc']) ? $info['Description'] : $L['info_desc'],
'ADMIN_EXTENSIONS_VERSION' => $info['Version'],
'ADMIN_EXTENSIONS_DATE' => $info['Date'],
@@ -625,12 +627,14 @@
$jump_url = cot_url('plug', 'e=' . $x);
$arg = 'pl';
}
-
+ $icofile = (($type == 'module') ? $cfg['modules_dir'] : $cfg['plugins_dir']) . '/' . $x . '/' . $x . '.png';
+
$t->assign(array(
'ADMIN_EXTENSIONS_DETAILS_URL' => cot_url('admin', "m=extensions&a=details&$arg=$x"),
'ADMIN_EXTENSIONS_NAME' => $info['Name'],
'ADMIN_EXTENSIONS_TYPE' => $type == 'module' ? $L['Module'] : $L['Plugin'],
'ADMIN_EXTENSIONS_CODE_X' => $x,
+ 'ADMIN_EXTENSIONS_ICO' => (file_exists($icofile)) ? $icofile : '',
'ADMIN_EXTENSIONS_EDIT_URL' => cot_url('admin', "m=config&n=edit&o=$type&p=$x"),
'ADMIN_EXTENSIONS_PARTSCOUNT' => $info['Partscount'],
'ADMIN_EXTENSIONS_STATUS' => $status[$part_status],
View
4 system/admin/admin.other.php
@@ -126,10 +126,12 @@ function cot_admin_other_cmp($pl_a, $pl_b)
include_once cot_langfile('message', 'core');
$info['Name'] = $pl['pl_code'] . ' : '. $L['msg907_1'];
}
-
+ $icofile = (($type == 'module') ? $cfg['modules_dir'] : $cfg['plugins_dir']) . '/' . $pl['pl_code'] . '/' . $pl['pl_code'] . '.png';
+
$t->assign(array(
'ADMIN_OTHER_EXT_URL' => $type == 'plug' ? cot_url('admin', 'm=other&p=' . $pl['pl_code']) :
cot_url('admin', 'm=' . $pl['pl_code']),
+ 'ADMIN_OTHER_EXT_ICO' => (file_exists($icofile)) ? $icofile : '',
'ADMIN_OTHER_EXT_NAME' => $info['Name']
));
$t->parse('MAIN.SECTION.ROW');
View
2  system/admin/admin.structure.php
@@ -40,8 +40,10 @@
{
foreach ($structure as $code => $mod)
{
+ $icofile = $cfg['modules_dir'] . '/' . $code . '/' . $code . '.png';
$t->assign(array(
'ADMIN_STRUCTURE_EXT_URL' => cot_url('admin', 'm=structure&n='.$code),
+ 'ADMIN_STRUCTURE_EXT_ICO' => (file_exists($icofile)) ? $icofile : '',
'ADMIN_STRUCTURE_EXT_NAME' => htmlspecialchars($cot_modules[$code]['title'])
));
$t->parse('LIST.ADMIN_STRUCTURE_EXT');
View
BIN  system/admin/img/plugins32.png
Diff not rendered
View
14 system/admin/tpl/admin.config.tpl
@@ -49,16 +49,22 @@
<!-- BEGIN: DEFAULT -->
<table class="cells">
<tr>
- <td class="coltop width40">{PHP.L.Core}</td>
- <td class="coltop width30">{PHP.L.Modules}</td>
+ <td class="coltop width35">{PHP.L.Core}</td>
+ <td class="coltop width35">{PHP.L.Modules}</td>
<td class="coltop width30">{PHP.L.Plugins}</td>
</tr>
<tr>
<!-- BEGIN: ADMIN_CONFIG_COL -->
<td>
- <ul class="follow">
+ <ul class="config">
<!-- BEGIN: ADMIN_CONFIG_ROW -->
- <li><a href="{ADMIN_CONFIG_ROW_URL}" class="ajax">{ADMIN_CONFIG_ROW_NAME}</a></li>
+ <li>
+ <!-- IF {ADMIN_CONFIG_ROW_ICO} -->
+ <img src="{ADMIN_CONFIG_ROW_ICO}">
+ <!-- ELSE -->
+ <img src="{PHP.cfg.system_dir}/admin/img/plugins32.png">
+ <!-- ENDIF -->
+ <a href="{ADMIN_CONFIG_ROW_URL}" class="ajax">{ADMIN_CONFIG_ROW_NAME}</a></li>
<!-- END: ADMIN_CONFIG_ROW -->
</ul>
</td>
View
6 system/admin/tpl/admin.css
@@ -13,6 +13,10 @@ ol { list-style-position:outside; margin-bottom:5px; padding-left:20px; }
ul.follow li { padding-left:25px; background:url(img/follow.png) no-repeat 5px 3px; }
ul.follow img { vertical-align:-3px; }
+ul.config li { padding:5px; border-bottom:1px solid #ccc;}
+ul.config img { padding-right:10px;}
+ul.config li:last-child {border-bottom:0px;}
+
a { color:#172973; text-decoration:none; }
a:hover { text-decoration:underline; }
a img { border:0; }
@@ -62,6 +66,8 @@ h4 { font-weight:bold; }
/* 4. Misc
-------------------------------------------------- */
+.odd { background-color:#fff!important; }
+.even { background-color:#f1f1f1!important; }
.small { font-size:.9em; line-height:1.4em; }
.clear { clear:both; }
View
19 system/admin/tpl/admin.extensions.tpl
@@ -10,7 +10,14 @@
<div class="block">
<table class="cells">
<tr>
- <td class="width30">{PHP.L.Code}:</td>
+ <td class="width5" rowspan="9" >
+ <!-- IF {ADMIN_EXTENSIONS_ICO} -->
+ <img src="{ADMIN_EXTENSIONS_ICO}">
+ <!-- ELSE -->
+ <img src="{PHP.cfg.system_dir}/admin/img/plugins32.png">
+ <!-- ENDIF -->
+ </td>
+ <td class="width25">{PHP.L.Code}:</td>
<td class="width70">{ADMIN_EXTENSIONS_CODE}</td>
</tr>
<tr>
@@ -190,7 +197,8 @@
<div class="block">
<table class="cells">
<tr>
- <td class="coltop width25">{PHP.L.Name} {PHP.L.adm_clicktoedit}</td>
+ <td class="coltop width5"></td>
+ <td class="coltop width20">{PHP.L.Name} {PHP.L.adm_clicktoedit}</td>
<td class="coltop width15">{PHP.L.Code}</td>
<td class="coltop width5">{PHP.L.Version}</td>
<td class="coltop width5">{PHP.L.Parts}</td>
@@ -205,6 +213,13 @@
</tr>
<!-- END: ROW_ERROR_EXT -->
<tr>
+ <td>
+ <!-- IF {ADMIN_EXTENSIONS_ICO} -->
+ <img src="{ADMIN_EXTENSIONS_ICO}">
+ <!-- ELSE -->
+ <img src="{PHP.cfg.system_dir}/admin/img/plugins32.png">
+ <!-- ENDIF -->
+ </td>
<td><a href="{ADMIN_EXTENSIONS_DETAILS_URL}"><strong>{ADMIN_EXTENSIONS_NAME}</strong></a></td>
<td>{ADMIN_EXTENSIONS_CODE_X}</td>
<td>{ADMIN_EXTENSIONS_VERSION}</td>
View
8 system/admin/tpl/admin.other.tpl
@@ -45,7 +45,13 @@
<table class="cells">
<!-- BEGIN: ROW -->
<tr>
- <td class="centerall width10">{PHP.R.icon_tool}</td>
+ <td class="centerall width10">
+ <!-- IF {ADMIN_OTHER_EXT_ICO} -->
+ <img src="{ADMIN_OTHER_EXT_ICO}">
+ <!-- ELSE -->
+ <img src="{PHP.cfg.system_dir}/admin/img/plugins32.png">
+ <!-- ENDIF -->
+ </td>
<td class="width90"><a href="{ADMIN_OTHER_EXT_URL}">{ADMIN_OTHER_EXT_NAME}</a></td>
</tr>
<!-- END: ROW -->
View
8 system/admin/tpl/admin.structure.tpl
@@ -4,7 +4,13 @@
<table class="cells">
<!-- BEGIN: ADMIN_STRUCTURE_EXT -->
<tr>
- <td class="centerall width10">{PHP.R.icon_tool}</td>
+ <td class="centerall width10">
+ <!-- IF {ADMIN_STRUCTURE_EXT_ICO} -->
+ <img src="{ADMIN_STRUCTURE_EXT_ICO}">
+ <!-- ELSE -->
+ <img src="{PHP.cfg.system_dir}/admin/img/plugins32.png">
+ <!-- ENDIF -->
+ </td>
<td class="width90"><a href="{ADMIN_STRUCTURE_EXT_URL}">{ADMIN_STRUCTURE_EXT_NAME}</a></td>
</tr>
<!-- END: ADMIN_STRUCTURE_EXT -->
Please sign in to comment.
Something went wrong with that request. Please try again.