remove jquery plugin

This commit is contained in:
Ian 2016-02-03 11:20:12 +01:00
parent 6ad35f87d8
commit 8c08cc0875
13 changed files with 0 additions and 245 deletions

View file

@ -1,8 +0,0 @@
1.13:
* Fetch jQuery without protocol
1.12:
* Fetch jquery via https
1.10:
* Add jquery to s9y backend

View file

@ -1,9 +0,0 @@
<?php
/**
* @author Vladimír Ajgl <vlada@ajgl.cz>
* @translated 2009/05/18
*/
@define('EVENT_JQUERY_TITLE', 'Implementace jQuery');
@define('EVENT_JQUERY_DESC', 'Umožňuje ostatnám pluginům používat jQuery');

View file

@ -1,9 +0,0 @@
<?php
/**
* @author Vladimír Ajgl <vlada@ajgl.cz>
* @translated 2009/05/18
*/
@define('EVENT_JQUERY_TITLE', 'Implementace jQuery');
@define('EVENT_JQUERY_DESC', 'Umožňuje ostatnám pluginům používat jQuery');

View file

@ -1,10 +0,0 @@
<?php #
/**
* @version
* @author Translator Name <yourmail@example.com>
* EN-Revision: Revision of lang_en.inc.php
*/
@define('EVENT_JQUERY_TITLE', 'jQuery');
@define('EVENT_JQUERY_DESC', 'Stellt für andere Plugins jQuery bereit');

View file

@ -1,10 +0,0 @@
<?php #
/**
* @version
* @author Translator Name <yourmail@example.com>
* EN-Revision: Revision of lang_en.inc.php
*/
@define('EVENT_JQUERY_TITLE', 'jQuery');
@define('EVENT_JQUERY_DESC', 'Provides jQuery for use in other plugins');

View file

@ -1,23 +0,0 @@
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1250">
<title>Dokumentace: jQuery</title>
</head>
<body>
<h1>Dokumentace k pluginu 'jQuery'<br />
<small>(serendipity_event_jquery)</small></h1>
<p>Dokumentaci k tomuto pluginu pøeložil do èeštiny Vladimír Ajgl (vlada [zavinac] ajgl [tecka] cz) dne 29.10.2011. Od té doby mohl být plugin pozmìnìn nebo mohly být rozšíøené jeho funkce. Zkontrolujte pro jistotu i <a href="ChangeLog">aktuální anglický ChangeLog</a>.
</p>
<h2>Popis pluginu</h2>
<p>Umožòuje ostatnám pluginùm používat jQuery.</p>
<h2>Historie verzí (ChangeLog)</h2>
<ul>
<li>verze 1.10</li>
<ul>
<li>jQuery pøidáno do backendu Serendipity</li>
</ul>
</ul>
</body>
</html>

View file

@ -1,23 +0,0 @@
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-2">
<title>Dokumentace: jQuery</title>
</head>
<body>
<h1>Dokumentace k pluginu 'jQuery'<br />
<small>(serendipity_event_jquery)</small></h1>
<p>Dokumentaci k tomuto pluginu pøelo¾il do èe¹tiny Vladimír Ajgl (vlada [zavinac] ajgl [tecka] cz) dne 29.10.2011. Od té doby mohl být plugin pozmìnìn nebo mohly být roz¹íøené jeho funkce. Zkontrolujte pro jistotu i <a href="ChangeLog">aktuální anglický ChangeLog</a>.
</p>
<h2>Popis pluginu</h2>
<p>Umo¾òuje ostatnám pluginùm pou¾ívat jQuery.</p>
<h2>Historie verzí (ChangeLog)</h2>
<ul>
<li>verze 1.10</li>
<ul>
<li>jQuery pøidáno do backendu Serendipity</li>
</ul>
</ul>
</body>
</html>

File diff suppressed because one or more lines are too long

View file

@ -1,9 +0,0 @@
<?php
/**
* @author Vladimír Ajgl <vlada@ajgl.cz>
* @translated 2009/05/18
*/
@define('EVENT_JQUERY_TITLE', 'Implementace jQuery');
@define('EVENT_JQUERY_DESC', 'Umožòuje ostatnám pluginùm používat jQuery');

View file

@ -1,9 +0,0 @@
<?php
/**
* @author Vladimír Ajgl <vlada@ajgl.cz>
* @translated 2009/05/18
*/
@define('EVENT_JQUERY_TITLE', 'Implementace jQuery');
@define('EVENT_JQUERY_DESC', 'Umo¾òuje ostatnám pluginùm pou¾ívat jQuery');

View file

@ -1,10 +0,0 @@
<?php #
/**
* @version
* @author Translator Name <yourmail@example.com>
* EN-Revision: Revision of lang_en.inc.php
*/
@define('EVENT_JQUERY_TITLE', 'jQuery');
@define('EVENT_JQUERY_DESC', 'Stellt für andere Plugins jQuery bereit');

View file

@ -1,10 +0,0 @@
<?php #
/**
* @version
* @author Translator Name <yourmail@example.com>
* EN-Revision: Revision of lang_en.inc.php
*/
@define('EVENT_JQUERY_TITLE', 'Implements jQuery');
@define('EVENT_JQUERY_DESC', 'Provides jQuery for use in other plugins');

View file

@ -1,96 +0,0 @@
<?php #
if (IN_serendipity !== true) {
die ("Don't hack!");
}
// Probe for a language include with constants. Still include defines later on, if some constants were missing
$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
if (file_exists($probelang)) {
include $probelang;
}
include dirname(__FILE__) . '/lang_en.inc.php';
class serendipity_event_jquery extends serendipity_event {
var $title = EVENT_JQUERY_TITLE;
function introspect(&$propbag) {
global $serendipity;
$propbag->add('name', EVENT_JQUERY_TITLE);
$propbag->add('description', EVENT_JQUERY_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Malte Paskuda');
$propbag->add('version', '1.13');
$propbag->add('event_hooks', array('frontend_header' => true,
'backend_header' => true,
'backend_plugins_new_instance' => true
));
$propbag->add('groups', array('BACKEND_FEATURES'));
}
function generate_content(&$title) {
$title = $this->title;
}
function install() {
$this->order_to_first();
}
function event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity;
$hooks = &$bag->get('event_hooks');
if (isset($hooks[$event])) {
switch($event) {
case 'frontend_header':
case 'backend_header':
// Serendipity 1.6 has jquery bundled.
if ($serendipity['capabilities']['jquery']) return '';
echo '<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" type="text/javascript"></script>' . "\n";
break;
case 'backend_plugins_new_instance':
$this->order_to_first();
return true;
break;
default:
return false;
}
} else {
return false;
}
}
function order_to_first() {
global $serendipity;
// Fetch minimum sort_order value. This will be the new value of our current plugin.
$q = "SELECT MIN(sort_order) as sort_order_min FROM {$serendipity['dbPrefix']}plugins WHERE placement = '" . $addData['default_placement'] . "'";
$rs = serendipity_db_query($q, true, 'num');
// Fetch current sort_order of current plugin.
$q = "SELECT sort_order FROM {$serendipity['dbPrefix']}plugins WHERE name = '" . $this->instance . "'";
$cur = serendipity_db_query($q, true, 'num');
// Increase sort_order of all plugins before current plugin by one.
$q = "UPDATE {$serendipity['dbPrefix']}plugins SET sort_order = sort_order + 1 WHERE placement = '" . $addData['default_placement'] . "' AND sort_order < " . intval($cur[0]);
serendipity_db_query($q);
// Set current plugin as first plugin in queue.
$q = "UPDATE {$serendipity['dbPrefix']}plugins SET sort_order = " . intval($rs[0]) . " WHERE name = '" . $this->instance . "'";
serendipity_db_query($q);
}
}
/* vim: set sts=4 ts=4 expandtab :
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* indent-tabs-mode: nil
* End:
*/