[Phpcms-plugins-cvs] admin4phpCMS/modules/layout class.module_layout.php,1.9,1.10 layout.css,1.3,1.4
Brought to you by:
mjahn
From: Martin J. <mj...@us...> - 2004-08-05 16:38:52
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/modules/layout In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4032/modules/layout Modified Files: class.module_layout.php layout.css layout.xml Log Message: tweaked phpcms::cache-module output Index: layout.xml =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/layout/layout.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- layout.xml 24 Jul 2004 08:58:24 -0000 1.5 +++ layout.xml 5 Aug 2004 16:38:41 -0000 1.6 @@ -1,4 +1,4 @@ -<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?> +<?xml version="1.0" encoding="iso-8859-15" standalone="yes"?> <!DOCTYPE layout SYSTEM "layout.dtd"> <layout name="standard"> @@ -232,4 +232,39 @@ ]]> </layout:insert> + <layout:insert name="cachelist"> + <![CDATA[ + <div class="symbolleiste"> + <img src="modules/phpcms/img/cache/del-all.gif" width="16" height="16" alt="" title="Alle Dateien im Cache löschen" /> + <img src="modules/phpcms/img/cache/del-sel.gif" width="16" height="16" alt="" title="Ausgewählte Dateien im Cache löschen" /> + </div> + <ul id="cacheview"> + <layout:replace name="content" default="" /> + </ul> + ]]> + </layout:insert> + + <layout:insert name="cachedir"> + <![CDATA[ + <li class="subdir"> + <input type="checkbox" name="deletedir[<layout:replace name="cachedir" />]" value="1" /> + <layout:replace name="dirname" /> + <ul> + <layout:replace name="content" default="" /> + </ul> + </li> + ]]> + </layout:insert> + + <layout:insert name="cachefile"> + <![CDATA[ + <li> + <input type="checkbox" name="delete[<layout:replace name="cachefile" />]" value="1" /> + <span title="<layout:replace name="cachefile" />"><layout:replace name="filename" /></span> + <span class="<layout:replace name="cachetype" />">CACHE</span> + <span><layout:replace name="cachetime" /></span> + </li> + ]]> + </layout:insert> + </layout> \ No newline at end of file Index: class.module_layout.php =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/layout/class.module_layout.php,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- class.module_layout.php 24 Jul 2004 08:58:24 -0000 1.9 +++ class.module_layout.php 5 Aug 2004 16:38:41 -0000 1.10 @@ -30,6 +30,9 @@ /* * $Log$ +* Revision 1.10 2004/08/05 16:38:41 mjahn +* tweaked phpcms::cache-module output +* * Revision 1.9 2004/07/24 08:58:24 mjahn * changed some things * @@ -143,6 +146,11 @@ if (!isset ($actiondata['_id'])) { return false; } + + if (isset ($this->_ids [$actiondata ['_id']])) { + return false; + } + $this->_ids[$actiondata['_id']] = $actiondata; //echo '<p>ADD_ELEMENT '.$actiondata ['_id'].'</p>'."\n"; @@ -232,6 +240,7 @@ // get the content $actiondata = array ('_root'=>'content'); $this->_callEvent ('DISPLAY_PARSE_CONTENT', $actiondata); + if (isset ($this->_ids['content']['_sub'])) { $replace[$i] = $this->displayElement ($this->_ids['content']); } Index: layout.css =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/layout/layout.css,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- layout.css 24 Jul 2004 08:58:24 -0000 1.3 +++ layout.css 5 Aug 2004 16:38:41 -0000 1.4 @@ -43,6 +43,7 @@ padding:0; margin:0; background:#eee; + border:2px inset #ddd; } #menu ul li { @@ -52,17 +53,18 @@ #menu ul li a { padding:0.2em 0.5em; - margin:0.5em 0.1em; + margin:0; display:block; - background:#ddd; - border:2px outset #ddd; text-decoration:none; + border-top:1px solid #000; + border-bottom:1px solid #000; } + + #menu ul li.active a, #menu ul li a:hover { background:#ddd; - border:2px inset #ddd; } #menu ul li ul { @@ -215,3 +217,42 @@ padding-right:0.5em; margin-right:0.5em; } + +#cacheview li { + list-style-type:none; + margin-left:0em; + padding-left:0; +} + +#cacheview ul { + margin-left:1.5em; + padding-left:0; +} + +#cacheview li { + background:#ddd; + font-weight:normal; +} + +#cacheview li.subdir { + background:#fff; +} + +#cacheview li.subdir { + font-weight:bold; +} + +#cacheview span.gzip { + color:#0f0; + font-weight:bold; +} + +#cacheview span.statisch { + color:#f80; + font-weight:bold; +} + +#cacheview span.dynamisch { + color:#f00; + font-weight:bold; +} \ No newline at end of file |