From ccb4fb1ad79f26fa1d2ac7f4e49844bbb0f9f7c6 Mon Sep 17 00:00:00 2001 From: rurban Date: Fri, 8 Apr 2005 05:28:54 +0000 Subject: [PATCH] IE size fixes, template perm checks git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@4663 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- themes/smaller/IEFixes.css | 7 ++++ themes/smaller/phpwiki.css | 12 +++++- themes/smaller/templates/actionbar.tmpl | 55 +++++++++++++------------ themes/smaller/templates/info.tmpl | 12 +++--- 4 files changed, 52 insertions(+), 34 deletions(-) create mode 100644 themes/smaller/IEFixes.css diff --git a/themes/smaller/IEFixes.css b/themes/smaller/IEFixes.css new file mode 100644 index 000000000..502bc9b2b --- /dev/null +++ b/themes/smaller/IEFixes.css @@ -0,0 +1,7 @@ +/* +** IE Fixes (5.0, 5.5, 6.0) +*/ + +#actionbuttons { font-size: 80% } + +td, .hint { font-size: 90% } diff --git a/themes/smaller/phpwiki.css b/themes/smaller/phpwiki.css index e19dcabe3..cff1323f9 100644 --- a/themes/smaller/phpwiki.css +++ b/themes/smaller/phpwiki.css @@ -1,5 +1,5 @@ /** - * $Id: phpwiki.css,v 1.1 2004-06-08 13:15:23 rurban Exp $ + * $Id: phpwiki.css,v 1.2 2005-04-08 05:28:54 rurban Exp $ * We have two possibilities to override the default: * 1. import is ns4 incompatible * 2. add a 2nd css in themeinfo.php @@ -28,6 +28,16 @@ body { h1 { margin: 0; font-size: 140% } +/* IE5.0 */ +@media tty { + i{content:"\";/*" "*/}}; @import 'IEFixes.css'; {;}/*";} +} + +/* IE5.5 */ +@media tty { + i{content:"\";/*" "*/}}@m; @import 'IEFixes.css'; /*";} +} + /* For emacs users * * Local Variables: diff --git a/themes/smaller/templates/actionbar.tmpl b/themes/smaller/templates/actionbar.tmpl index 6bd95ad3e..c67be7e74 100644 --- a/themes/smaller/templates/actionbar.tmpl +++ b/themes/smaller/templates/actionbar.tmpl @@ -1,19 +1,16 @@ - - -get('locked') || $user->isAdmin()) - $EditB = Button("edit", - $revision->isCurrent() ? _("Edit") : _("Edit Old Revision")); - else - $EditB = Button("viewsource", _("View Source")); - - $Sep = $WikiTheme->getButtonSeparator(); +get('locked') || $user->isAdmin()) + $EditB = Button("edit", + $revision->isCurrent() ? _("Edit") : _("Edit Old Revision")); +else + $EditB = Button("viewsource", _("View Source")); ?> - + @@ -21,30 +18,34 @@
isSignedIn()) { ?> - isAdmin() or mayAccessPage('change',$page->getName())) { ?> - get('locked') ? 'unlock' : 'lock') ?> - - - + isAdmin() or mayAccessPage('change', $page->getName())) { ?> + get('locked') ? 'unlock' : 'lock') ?> + getName())) { ?> + + - isAdmin() or mayAccessPage('remove',$page->getName())) { ?> - + isAdmin() or mayAccessPage('remove', $page->getName())) { ?> + + - 'PageInfo'),_("Info"),$page->getName()) ?> + 'PageInfo'),_("Info"), $page->getName()) ?> getArg('action') == 'browse')) || $user->isAdmin()) { ?> - - - + + + 'purge'), _("PurgeHtmlCache"), $page->getName()); $PurgeCache->addTooltip(_("Purge HTML cache for this page. Regenerate from WikiMarkup when next accessed.")); ?> - + + + +
diff --git a/themes/smaller/templates/info.tmpl b/themes/smaller/templates/info.tmpl index 225d051c0..2c442c7ce 100644 --- a/themes/smaller/templates/info.tmpl +++ b/themes/smaller/templates/info.tmpl @@ -1,5 +1,6 @@ +
@@ -7,16 +8,15 @@ 'diff','previous' => 'minor'),_("Diff previous Revision"),$page->getName()) ?> 'diff','previous' => 'author'),_("Diff previous Author"),$page->getName()) ?> -isAdmin()) { ?> + isAdmin()) { ?> 'purge'), + $PurgeCache = Button(array('nocache' => 'purge'), _("PurgeHtmlCache"), $page->getName()); - $PurgeCache->addTooltip(_("Purge HTML cache for this page. Regenerate from WikiMarkup when next accessed.")); + $PurgeCache->addTooltip(_("Purge HTML cache for this page. Regenerate from WikiMarkup when next accessed.")); ?> - - -
+ + -- 2.45.0