From cde5e2be6daa0a5fb33d78cea0d5eb260d3e7760 Mon Sep 17 00:00:00 2001 From: scyrma Date: Wed, 23 Jan 2008 05:53:33 +0000 Subject: [PATCH] MDL-8123 and MDL-11594 : make admin icons themeable. --- blocks/admin_tree/block_admin_tree.php | 10 +++++----- {blocks/admin_tree => pix/i}/closed.gif | Bin {blocks/admin_tree => pix/i}/item.gif | Bin {blocks/admin_tree => pix/i}/open.gif | Bin 4 files changed, 5 insertions(+), 5 deletions(-) rename {blocks/admin_tree => pix/i}/closed.gif (100%) rename {blocks/admin_tree => pix/i}/item.gif (100%) rename {blocks/admin_tree => pix/i}/open.gif (100%) diff --git a/blocks/admin_tree/block_admin_tree.php b/blocks/admin_tree/block_admin_tree.php index ab66723c02..8c403104f9 100644 --- a/blocks/admin_tree/block_admin_tree.php +++ b/blocks/admin_tree/block_admin_tree.php @@ -35,7 +35,7 @@ class block_admin_tree extends block_base { $strfolderopened = s(get_string('folderopened')); $this->tempcontent .= '
'; - $this->tempcontent .= ''.$strfolderopened.' '; + $this->tempcontent .= ''.$strfolderopened.' '; $this->tempcontent .= $visiblename.'
'."\n"; $this->currentdepth++; $this->divcounter++; @@ -61,7 +61,7 @@ class block_admin_tree extends block_base { if ($content->is_hidden()) { $class .= ' hidden'; } - $this->create_item($content->visiblename, $CFG->wwwroot.'/'.$CFG->admin.'/settings.php?section='.$content->name, $CFG->wwwroot.'/blocks/admin_tree/item.gif', $class); + $this->create_item($content->visiblename, $CFG->wwwroot.'/'.$CFG->admin.'/settings.php?section='.$content->name,$CFG->pixpath.'/i/item.gif', $class); } } else if (is_a($content, 'admin_externalpage')) { // show hidden pages in tree if hidden page active @@ -70,7 +70,7 @@ class block_admin_tree extends block_base { if ($content->is_hidden()) { $class .= ' hidden'; } - $this->create_item($content->visiblename, $content->url, $CFG->wwwroot.'/blocks/admin_tree/item.gif', $class); + $this->create_item($content->visiblename, $content->url, $CFG->pixpath.'/i/item.gif', $class); } } else if (is_a($content, 'admin_category')) { if ($content->check_access() and !$content->is_hidden()) { @@ -129,8 +129,8 @@ class block_admin_tree extends block_base { } if ($this->tempcontent !== '') { - $closedimg = ''.s(get_string('folderclosed')).''; - $openedimg = ''.s(get_string('folderopened')).''; + $closedimg = ''.s(get_string('folderclosed')).''; + $openedimg = ''.s(get_string('folderopened')).''; $this->content = new object(); $this->content->text = ' diff --git a/blocks/admin_tree/closed.gif b/pix/i/closed.gif similarity index 100% rename from blocks/admin_tree/closed.gif rename to pix/i/closed.gif diff --git a/blocks/admin_tree/item.gif b/pix/i/item.gif similarity index 100% rename from blocks/admin_tree/item.gif rename to pix/i/item.gif diff --git a/blocks/admin_tree/open.gif b/pix/i/open.gif similarity index 100% rename from blocks/admin_tree/open.gif rename to pix/i/open.gif -- 2.39.5