Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_browsercompatibility
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8789
Modified Files:
serendipity_event_browsercompatibility.php
Log Message:
why does my komodo suck so bad...
Index: serendipity_event_browsercompatibility.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_browsercompatibility/serendipity_event_browsercompatibility.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- serendipity_event_browsercompatibility.php 5 Jan 2005 11:49:19 -0000 1.2
+++ serendipity_event_browsercompatibility.php 17 Jan 2005 15:22:57 -0000 1.3
@@ -1,78 +1,78 @@
-<?php # $Id$
-
-switch ($serendipity['lang']) {
- case 'de':
- @define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', 'Browser-Kompatibilität');
- @define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', 'Wendet verschiedene (CSS) Methoden an, um maximale Browserkompatibilität zu erreichen');
- break;
-
- case 'en':
- case 'es':
- default:
- @define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', 'Browser Compatibility');
- @define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', 'Uses different (CSS) methods to enforce maximum browser compatibility');
- break;
-}
-
-class serendipity_event_browsercompatibility extends serendipity_event
-{
- var $title = PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE;
-
- function introspect(&$propbag)
- {
- global $serendipity;
-
- $propbag->add('name', PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE);
- $propbag->add('description', PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC);
- $propbag->add('stackable', false);
- $propbag->add('author', 'Garvin Hicking');
- $propbag->add('version', '1.0');
- $propbag->add('event_hooks', array(
- 'css' => true,
- 'css_backend' => true,
- 'external_plugin' => true,
- ));
- }
-
- function generate_content(&$title) {
- $title = PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE;
- }
-
- function event_hook($event, &$bag, &$eventData) {
- global $serendipity;
-
- $hooks = &$bag->get('event_hooks');
- if (isset($hooks[$event])) {
- switch($event) {
- case 'css_backend':
- case 'css':
-?>
-img {
- behavior: url("<?php echo $serendipity['baseURL'] . ($serendipity['rewrite'] == 'none' ? $serendipity['indexFile'] . '?/' : ''); ?>plugin/pngbehavior.htc");
-}
-<?php
- return true;
- break;
-
- case 'external_plugin':
- switch($eventData) {
- case 'pngbehavior.htc':
- header('Content-Type: text/x-component');
- echo str_replace('{blanksrc}', serendipity_getTemplateFile('img/blank.gif'), file_get_contents(dirname(__FILE__) . '/pngbehavior.htc'));
- return true;
- }
- return true;
- break;
-
- default:
- return false;
- break;
- }
- } else {
- return false;
- }
- }
-}
-
-/* vim: set sts=4 ts=4 expandtab : */
-?>
+<?php # $Id$
+
+switch ($serendipity['lang']) {
+ case 'de':
+ @define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', 'Browser-Kompatibilität');
+ @define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', 'Wendet verschiedene (CSS) Methoden an, um maximale Browserkompatibilität zu erreichen');
+ break;
+
+ case 'en':
+ case 'es':
+ default:
+ @define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', 'Browser Compatibility');
+ @define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', 'Uses different (CSS) methods to enforce maximum browser compatibility');
+ break;
+}
+
+class serendipity_event_browsercompatibility extends serendipity_event
+{
+ var $title = PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE;
+
+ function introspect(&$propbag)
+ {
+ global $serendipity;
+
+ $propbag->add('name', PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE);
+ $propbag->add('description', PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC);
+ $propbag->add('stackable', false);
+ $propbag->add('author', 'Garvin Hicking');
+ $propbag->add('version', '1.0');
+ $propbag->add('event_hooks', array(
+ 'css' => true,
+ 'css_backend' => true,
+ 'external_plugin' => true,
+ ));
+ }
+
+ function generate_content(&$title) {
+ $title = PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE;
+ }
+
+ function event_hook($event, &$bag, &$eventData) {
+ global $serendipity;
+
+ $hooks = &$bag->get('event_hooks');
+ if (isset($hooks[$event])) {
+ switch($event) {
+ case 'css_backend':
+ case 'css':
+?>
+img {
+ behavior: url("<?php echo $serendipity['baseURL'] . ($serendipity['rewrite'] == 'none' ? $serendipity['indexFile'] . '?/' : ''); ?>plugin/pngbehavior.htc");
+}
+<?php
+ return true;
+ break;
+
+ case 'external_plugin':
+ switch($eventData) {
+ case 'pngbehavior.htc':
+ header('Content-Type: text/x-component');
+ echo str_replace('{blanksrc}', serendipity_getTemplateFile('img/blank.gif'), file_get_contents(dirname(__FILE__) . '/pngbehavior.htc'));
+ return true;
+ }
+ return true;
+ break;
+
+ default:
+ return false;
+ break;
+ }
+ } else {
+ return false;
+ }
+ }
+}
+
+/* vim: set sts=4 ts=4 expandtab : */
+?>
\ No newline at end of file
|