IE6 is dead
This commit is contained in:
parent
0b82cb6b67
commit
7fa9ecde6d
@ -7,6 +7,9 @@ Version 1.7 ()
|
||||
Version 1.6 ()
|
||||
------------------------------------------------------------------------
|
||||
|
||||
* Removed browsercompatibilitty plugin because it's outdated and
|
||||
IE6 shall be dead.
|
||||
|
||||
* Fixed Spartauc SF.Net download location (Thanks to christian_boltz)
|
||||
|
||||
* Added new event hook 'backend_loginfail' to track failed logins
|
||||
|
@ -88,7 +88,6 @@ class serendipity_plugin_api
|
||||
serendipity_plugin_api::create_plugin_instance('serendipity_event_s9ymarkup', null, 'event');
|
||||
serendipity_plugin_api::create_plugin_instance('serendipity_event_emoticate', null, 'event');
|
||||
serendipity_plugin_api::create_plugin_instance('serendipity_event_nl2br', null, 'event');
|
||||
serendipity_plugin_api::create_plugin_instance('serendipity_event_browsercompatibility', null, 'event');
|
||||
serendipity_plugin_api::create_plugin_instance('serendipity_event_spamblock', null, 'event');
|
||||
|
||||
/* Register additional plugins? */
|
||||
|
@ -1,9 +0,0 @@
|
||||
<?php # $Id$
|
||||
|
||||
/**
|
||||
* @version $Revision$
|
||||
* @author Ivan Cenov jwalker@hotmail.bg
|
||||
*/
|
||||
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', 'Съвместимост с браузърите');
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', 'Използване на различни (CSS) методи за осигуряване на максимална съвместимост с браузърите');
|
@ -1,4 +0,0 @@
|
||||
<?php
|
||||
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', '浏览器兼容');
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', '使用不同的CSS样式表述方法以最大限度地兼容各种浏览器');
|
@ -1,13 +0,0 @@
|
||||
<?php # $Id: lang_cs.inc.php 1381 2007-11-30 10:10:00 VladaAjgl $
|
||||
|
||||
/**
|
||||
* @version $Revision: 1381 $
|
||||
* @author Vladimir Ajgl <vlada@ajgl.cz>
|
||||
* EN-Revision: Revision of lang_en.inc.php
|
||||
* Translated on 2007-11-30
|
||||
*/
|
||||
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', 'Kompatibilita napříč prohlížeči');
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', 'Používá různé (CSS) metody, aby zajistil nejvyšší možnou kompatibilitu v různých prohlížečích (IE, Mozilla, Opera,...).');
|
||||
|
||||
?>
|
@ -1,13 +0,0 @@
|
||||
<?php # $Id: lang_cz.inc.php 1381 2007-11-30 10:10:00 VladaAjgl $
|
||||
|
||||
/**
|
||||
* @version $Revision: 1381 $
|
||||
* @author Vladimir Ajgl <vlada@ajgl.cz>
|
||||
* EN-Revision: Revision of lang_en.inc.php
|
||||
* Translated on 2007-11-30
|
||||
*/
|
||||
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', 'Kompatibilita napříč prohlížeči');
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', 'Používá různé (CSS) metody, aby zajistil nejvyšší možnou kompatibilitu v různých prohlížečích (IE, Mozilla, Opera,...).');
|
||||
|
||||
?>
|
@ -1,4 +0,0 @@
|
||||
<?php # $Id$
|
||||
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', 'Browser-Kompatibilität');
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', 'Wendet verschiedene (CSS) Methoden an, um maximale Browserkompatibilität zu erreichen');
|
@ -1,11 +0,0 @@
|
||||
<?php # $Id$
|
||||
/**
|
||||
* @version $Revision$
|
||||
* @author Rodrigo Lazo Paz <rlazo.paz@gmail.com>
|
||||
* EN-Revision: 690
|
||||
*/
|
||||
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', 'Compatibilidad con el navegador');
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', 'Utiliza distintos métodos (CSS) para asegurar máxima compatibilidad con el navegador.');
|
||||
|
||||
?>
|
@ -1,20 +0,0 @@
|
||||
<?php # $Id$
|
||||
|
||||
##########################################################################
|
||||
# serendipity - another blogger... #
|
||||
##########################################################################
|
||||
# #
|
||||
# (c) 2003 Jannis Hermanns <J@hacked.it> #
|
||||
# http://www.jannis.to/programming/serendipity.html #
|
||||
# #
|
||||
# Translated by #
|
||||
# Sebastian Mordziol <argh@php-tools.net> #
|
||||
# http://sebastian.mordziol.de #
|
||||
# #
|
||||
##########################################################################
|
||||
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', 'Compatibilité de navigateurs');
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', 'Utilise différentes méthodes (CSS) pour assurer une compatibilité maximum avec le plus de navigateurs possibles.');
|
||||
|
||||
/* vim: set sts=4 ts=4 expandtab : */
|
||||
?>
|
@ -1,12 +0,0 @@
|
||||
<?php # $Id$
|
||||
|
||||
/**
|
||||
* @version $Revision$
|
||||
* @author Tadashi Jokagi <elf2000@users.sourceforge.net>
|
||||
* EN-Revision: 690
|
||||
*/
|
||||
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', 'ブラウザーの互換性');
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', '異なる方法(CSS) を用いて最大限にブラウザーの互換性を強化します。');
|
||||
|
||||
?>
|
@ -1,8 +0,0 @@
|
||||
<?php # $Id$
|
||||
# Translated by: Wesley Hwang-Chung <wesley96@gmail.com>
|
||||
# (c) 2005 http://www.tool-box.info/
|
||||
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', '브라우저 호환성');
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', '브라우저 호환성을 최대화하기 위해 다른 종류의 (CSS) 방식을 사용함');
|
||||
|
||||
?>
|
@ -1,12 +0,0 @@
|
||||
<?php # $Id$
|
||||
|
||||
/**
|
||||
* @version $Revision$
|
||||
* @author Kostas CoSTa Brzezinski <costa@kofeina.net>
|
||||
* EN-Revision: Revision of lang_en.inc.php
|
||||
*/
|
||||
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', 'Kompatybilność z przeglądarkami');
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', 'Używa różnych metod CSS by wymusić maksymalną kompatybilność z różnymi przeglądarkami. Uwaga: stwierdzono problemy używania tej wtyczki przy korzystaniu z plików graficznych PNG. Wtyczka może (ale nie musi) powodować przekłamania wyświetlania plików graficznych PNG w przeglądarce Internet Explorer 6.x i niższe. Sprawdź wygląd strony po włączeniu tej wtyczki. Porada: wyłączenie wtyczki nie powoduje jakichś nieprzewidzianych efektów o ile używa się dobrze zaprojektowanego stylu.');
|
||||
|
||||
?>
|
@ -1,19 +0,0 @@
|
||||
<?php # $Id:$
|
||||
|
||||
##########################################################################
|
||||
# serendipity - another blogger... #
|
||||
##########################################################################
|
||||
# #
|
||||
# (c) 2003 Jannis Hermanns <J@hacked.it> #
|
||||
# http://www.jannis.to/programming/serendipity.html #
|
||||
# #
|
||||
# Translated by #
|
||||
# João P Matos <jmatos@math.ist.utl.pt> #
|
||||
# #
|
||||
##########################################################################
|
||||
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', 'Compatibilidade de navegadores');
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', 'Utiliza diferentes métodos de CSS para assegurar compatibilidade com o maior número de navegadores possível.');
|
||||
|
||||
/* vim: set sts=4 ts=4 expandtab : */
|
||||
?>
|
@ -1,17 +0,0 @@
|
||||
<?php # $id: $
|
||||
##########################################################################
|
||||
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity #
|
||||
# Developer Team) All rights reserved. See LICENSE file for licensing #
|
||||
# details #
|
||||
# #
|
||||
# (c) 2003 Jannis Hermanns <J@hacked.it> #
|
||||
# http://www.jannis.to/programming/serendipity.html #
|
||||
# #
|
||||
# Translated by #
|
||||
# (c) 2004-2005 CapriSkye <admin@capriskye.com> #
|
||||
# http://open.38.com #
|
||||
##########################################################################
|
||||
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', '瀏覽器相容性');
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', '使用各種 CSS 樣式的方法來確定每個瀏覽器都能相容');
|
||||
?>
|
@ -1,4 +0,0 @@
|
||||
<?php
|
||||
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', '浏览器兼容');
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', '使用不同的CSS样式表述方法以最大限度地兼容各种浏览器');
|
@ -1,9 +0,0 @@
|
||||
<?php # $Id$
|
||||
|
||||
/**
|
||||
* @version $Revision$
|
||||
* @author Ivan Cenov jwalker@hotmail.bg
|
||||
*/
|
||||
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', 'Ñúâìåñòèìîñò ñ áðàóçúðèòå');
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', 'Èçïîëçâàíå íà ðàçëè÷íè (CSS) ìåòîäè çà îñèãóðÿâàíå íà ìàêñèìàëíà ñúâìåñòèìîñò ñ áðàóçúðèòå');
|
@ -1,4 +0,0 @@
|
||||
<?php
|
||||
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', '浏览器兼容');
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', '使用不同的CSS样式表述方法以最大限度地兼容各种浏览器');
|
@ -1,13 +0,0 @@
|
||||
<?php # $Id: lang_cs.inc.php 1381 2007-11-30 10:10:00 VladaAjgl $
|
||||
|
||||
/**
|
||||
* @version $Revision: 1381 $
|
||||
* @author Vladimir Ajgl <vlada@ajgl.cz>
|
||||
* EN-Revision: Revision of lang_en.inc.php
|
||||
* Translated on 2007-11-30
|
||||
*/
|
||||
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', 'Kompatibilita napøíè prohlížeèi');
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', 'Používá rùzné (CSS) metody, aby zajistil nejvyšší možnou kompatibilitu v rùzných prohlížeèích (IE, Mozilla, Opera,...).');
|
||||
|
||||
?>
|
@ -1,13 +0,0 @@
|
||||
<?php # $Id: lang_cz.inc.php 1381 2007-11-30 10:10:00 VladaAjgl $
|
||||
|
||||
/**
|
||||
* @version $Revision: 1381 $
|
||||
* @author Vladimir Ajgl <vlada@ajgl.cz>
|
||||
* EN-Revision: Revision of lang_en.inc.php
|
||||
* Translated on 2007-11-30
|
||||
*/
|
||||
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', 'Kompatibilita napøíè prohlí¾eèi');
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', 'Pou¾ívá rùzné (CSS) metody, aby zajistil nejvy¹¹í mo¾nou kompatibilitu v rùzných prohlí¾eèích (IE, Mozilla, Opera,...).');
|
||||
|
||||
?>
|
@ -1,4 +0,0 @@
|
||||
<?php # $Id$
|
||||
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', 'Browser-Kompatibilität');
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', 'Wendet verschiedene (CSS) Methoden an, um maximale Browserkompatibilität zu erreichen');
|
@ -1,12 +0,0 @@
|
||||
<?php # $Id$
|
||||
|
||||
/**
|
||||
* @version $Revision$
|
||||
* @author Translator Name <yourmail@example.com>
|
||||
* EN-Revision: Revision of lang_en.inc.php
|
||||
*/
|
||||
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', 'Browser Compatibility');
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', 'Uses different (CSS) methods to enforce maximum browser compatibility');
|
||||
|
||||
?>
|
@ -1,11 +0,0 @@
|
||||
<?php # $Id$
|
||||
/**
|
||||
* @version $Revision$
|
||||
* @author Rodrigo Lazo Paz <rlazo.paz@gmail.com>
|
||||
* EN-Revision: 690
|
||||
*/
|
||||
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', 'Compatibilidad con el navegador');
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', 'Utiliza distintos métodos (CSS) para asegurar máxima compatibilidad con el navegador.');
|
||||
|
||||
?>
|
@ -1,20 +0,0 @@
|
||||
<?php # $Id$
|
||||
|
||||
##########################################################################
|
||||
# serendipity - another blogger... #
|
||||
##########################################################################
|
||||
# #
|
||||
# (c) 2003 Jannis Hermanns <J@hacked.it> #
|
||||
# http://www.jannis.to/programming/serendipity.html #
|
||||
# #
|
||||
# Translated by #
|
||||
# Sebastian Mordziol <argh@php-tools.net> #
|
||||
# http://sebastian.mordziol.de #
|
||||
# #
|
||||
##########################################################################
|
||||
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', 'Compatibilité de navigateurs');
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', 'Utilise différentes méthodes (CSS) pour assurer une compatibilité maximum avec le plus de navigateurs possibles.');
|
||||
|
||||
/* vim: set sts=4 ts=4 expandtab : */
|
||||
?>
|
@ -1,12 +0,0 @@
|
||||
<?php # $Id$
|
||||
|
||||
/**
|
||||
* @version $Revision$
|
||||
* @author Tadashi Jokagi <elf2000@users.sourceforge.net>
|
||||
* EN-Revision: 690
|
||||
*/
|
||||
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', 'ブラウザーの互換性');
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', '異なる方法(CSS) を用いて最大限にブラウザーの互換性を強化します。');
|
||||
|
||||
?>
|
@ -1,8 +0,0 @@
|
||||
<?php # $Id$
|
||||
# Translated by: Wesley Hwang-Chung <wesley96@gmail.com>
|
||||
# (c) 2005 http://www.tool-box.info/
|
||||
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', '브라우저 호환성');
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', '브라우저 호환성을 최대화하기 위해 다른 종류의 (CSS) 방식을 사용함');
|
||||
|
||||
?>
|
@ -1,12 +0,0 @@
|
||||
<?php # $Id$
|
||||
|
||||
/**
|
||||
* @version $Revision$
|
||||
* @author Kostas CoSTa Brzezinski <costa@kofeina.net>
|
||||
* EN-Revision: Revision of lang_en.inc.php
|
||||
*/
|
||||
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', 'Kompatybilność z przeglądarkami');
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', 'Używa różnych metod CSS by wymusić maksymalną kompatybilność z różnymi przeglądarkami. Uwaga: stwierdzono problemy używania tej wtyczki przy korzystaniu z plików graficznych PNG. Wtyczka może (ale nie musi) powodować przekłamania wyświetlania plików graficznych PNG w przeglądarce Internet Explorer 6.x i niższe. Sprawdź wygląd strony po włączeniu tej wtyczki. Porada: wyłączenie wtyczki nie powoduje jakichś nieprzewidzianych efektów o ile używa się dobrze zaprojektowanego stylu.');
|
||||
|
||||
?>
|
@ -1,19 +0,0 @@
|
||||
<?php # $Id:$
|
||||
|
||||
##########################################################################
|
||||
# serendipity - another blogger... #
|
||||
##########################################################################
|
||||
# #
|
||||
# (c) 2003 Jannis Hermanns <J@hacked.it> #
|
||||
# http://www.jannis.to/programming/serendipity.html #
|
||||
# #
|
||||
# Translated by #
|
||||
# João P Matos <jmatos@math.ist.utl.pt> #
|
||||
# #
|
||||
##########################################################################
|
||||
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', 'Compatibilidade de navegadores');
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', 'Utiliza diferentes métodos de CSS para assegurar compatibilidade com o maior número de navegadores possível.');
|
||||
|
||||
/* vim: set sts=4 ts=4 expandtab : */
|
||||
?>
|
@ -1,17 +0,0 @@
|
||||
<?php # $id: $
|
||||
##########################################################################
|
||||
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity #
|
||||
# Developer Team) All rights reserved. See LICENSE file for licensing #
|
||||
# details #
|
||||
# #
|
||||
# (c) 2003 Jannis Hermanns <J@hacked.it> #
|
||||
# http://www.jannis.to/programming/serendipity.html #
|
||||
# #
|
||||
# Translated by #
|
||||
# (c) 2004-2005 CapriSkye <admin@capriskye.com> #
|
||||
# http://open.38.com #
|
||||
##########################################################################
|
||||
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', '瀏覽器相容性');
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', '使用各種 CSS 樣式的方法來確定每個瀏覽器都能相容');
|
||||
?>
|
@ -1,4 +0,0 @@
|
||||
<?php
|
||||
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_TITLE', '浏览器兼容');
|
||||
@define('PLUGIN_EVENT_BROWSERCOMPATIBILITY_DESC', '使用不同的CSS样式表述方法以最大限度地兼容各种浏览器');
|
@ -1,93 +0,0 @@
|
||||
<public:component lightWeight="true">
|
||||
<public:attach event="onpropertychange" onevent="propertyChanged()" />
|
||||
<public:attach event="onbeforeprint" onevent="beforePrint()" for="window"/>
|
||||
<public:attach event="onafterprint" onevent="afterPrint()" for="window"/>
|
||||
<script>
|
||||
|
||||
/*
|
||||
* PNG Behavior
|
||||
*
|
||||
* This script was created by Erik Arvidsson (http://webfx.eae.net/contact.html#erik)
|
||||
* for WebFX (http://webfx.eae.net)
|
||||
* Copyright 2002-2004
|
||||
*
|
||||
* For usage see license at http://webfx.eae.net/license.html
|
||||
*
|
||||
* Version: 1.02
|
||||
* Created: 2001-??-?? First working version
|
||||
* Updated: 2002-03-28 Fixed issue when starting with a non png image and
|
||||
* switching between non png images
|
||||
* 2003-01-06 Fixed RegExp to correctly work with IE 5.0x
|
||||
* 2004-05-09 When printing revert to original
|
||||
*
|
||||
*/
|
||||
|
||||
var supported = /MSIE ((5\.5)|[6])/.test(navigator.userAgent) &&
|
||||
navigator.platform == "Win32";
|
||||
|
||||
var realSrc;
|
||||
var blankSrc = "{blanksrc}";
|
||||
var isPrinting = false;
|
||||
|
||||
if (supported) fixImage();
|
||||
|
||||
function propertyChanged() {
|
||||
if (!supported || isPrinting) return;
|
||||
|
||||
var pName = event.propertyName;
|
||||
if (pName != "src") return;
|
||||
// if not set to blank
|
||||
if (!new RegExp(blankSrc).test(src))
|
||||
fixImage();
|
||||
};
|
||||
|
||||
function fixImage() {
|
||||
// get src
|
||||
var src = element.src;
|
||||
|
||||
// check for real change
|
||||
if (src == realSrc && /\.png$/i.test(src)) {
|
||||
element.src = blankSrc;
|
||||
return;
|
||||
}
|
||||
|
||||
if ( ! new RegExp(blankSrc).test(src)) {
|
||||
// backup old src
|
||||
realSrc = src;
|
||||
}
|
||||
|
||||
// test for png
|
||||
if (/\.png$/i.test(realSrc)) {
|
||||
// set blank image
|
||||
width = element.width;
|
||||
height = element.height;
|
||||
element.src = blankSrc;
|
||||
// set filter
|
||||
element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='scale')";
|
||||
if (width > 0) {
|
||||
element.runtimeStyle.width = width;
|
||||
}
|
||||
if (height > 0) {
|
||||
element.runtimeStyle.height = height;
|
||||
}
|
||||
}
|
||||
else {
|
||||
// remove filter
|
||||
element.runtimeStyle.filter = "";
|
||||
}
|
||||
}
|
||||
|
||||
function beforePrint() {
|
||||
isPrinting = true;
|
||||
element.src = realSrc;
|
||||
element.runtimeStyle.filter = "";
|
||||
realSrc = null;
|
||||
}
|
||||
|
||||
function afterPrint() {
|
||||
isPrinting = false;
|
||||
fixImage();
|
||||
}
|
||||
|
||||
</script>
|
||||
</public:component>
|
@ -1,72 +0,0 @@
|
||||
<?php # $Id$
|
||||
|
||||
@serendipity_plugin_api::load_language(dirname(__FILE__));
|
||||
|
||||
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('requirements', array(
|
||||
'serendipity' => '0.8',
|
||||
'smarty' => '2.6.7',
|
||||
'php' => '4.1.0'
|
||||
));
|
||||
$propbag->add('version', '1.1');
|
||||
$propbag->add('event_hooks', array(
|
||||
'css' => true,
|
||||
'css_backend' => true,
|
||||
'external_plugin' => true,
|
||||
));
|
||||
$propbag->add('groups', array('BACKEND_TEMPLATES'));
|
||||
}
|
||||
|
||||
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 : */
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user