summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-09-09 19:55:35 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-09-09 19:55:35 +0000
commitb1b42abcbe6a8ff9eec87523caba474f77e60c8d (patch)
tree12bf41a954c3499ae54b7a5799b91a39f7c659d6
parentc375ede23710873780d9e98e3014d95d587d21dc (diff)
downloadliberty-b1b42abcbe6a8ff9eec87523caba474f77e60c8d.tar.gz
liberty-b1b42abcbe6a8ff9eec87523caba474f77e60c8d.tar.bz2
liberty-b1b42abcbe6a8ff9eec87523caba474f77e60c8d.zip
allow plugins to use their own icons and remove plugin icons from quicktags list - users should re-install quicktags to clean up display
-rw-r--r--plugins/data.img.php20
-rw-r--r--plugins/data.maketoc.php22
-rw-r--r--plugins/data.rss.php22
-rw-r--r--plugins/data.toc.php22
4 files changed, 47 insertions, 39 deletions
diff --git a/plugins/data.img.php b/plugins/data.img.php
index 2def2ba..9f29680 100644
--- a/plugins/data.img.php
+++ b/plugins/data.img.php
@@ -1,21 +1,23 @@
<?php
-// $Header: /cvsroot/bitweaver/_bit_liberty/plugins/data.img.php,v 1.6 2006/08/08 14:44:13 squareing Exp $
+// $Header: /cvsroot/bitweaver/_bit_liberty/plugins/data.img.php,v 1.7 2006/09/09 19:55:35 squareing Exp $
// Initialization
define( 'PLUGIN_GUID_DATAIMG', 'dataimg' );
global $gLibertySystem;
$pluginParams = array (
- 'tag' => 'IMG',
+ 'tag' => 'img',
'auto_activate' => TRUE,
'requires_pair' => FALSE,
'load_function' => 'data_img',
- 'title' => 'Image',
- 'help_page' => 'DataPluginImg',
- 'description' => tra( "Allows you to insert an image into your page with little effort and a multitude of styling options." ),
+ 'title' => 'Image',
+ 'help_page' => 'DataPluginImg',
+ 'description' => tra( "Allows you to insert an image into your page with little effort and a multitude of styling options." ),
'help_function' => 'data_img_help',
- 'syntax' => "{img src=http://www.google.at/logos/olympics06_ski_jump.gif}",
- 'path' => LIBERTY_PKG_PATH.'plugins/data.img.php',
- 'security' => 'registered',
- 'plugin_type' => DATA_PLUGIN
+ 'syntax' => "{img src=http://www.google.at/logos/olympics06_ski_jump.gif}",
+ 'path' => LIBERTY_PKG_PATH.'plugins/data.img.php',
+ 'security' => 'registered',
+ 'plugin_type' => DATA_PLUGIN,
+ 'biticon' => '{biticon class="quicktag icon" ipackage=quicktags iname=image iexplain="Image"}',
+ 'taginsert' => '{img src= width= height= align= desc= link=}'
);
$gLibertySystem->registerPlugin( PLUGIN_GUID_DATAIMG, $pluginParams );
$gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATAIMG );
diff --git a/plugins/data.maketoc.php b/plugins/data.maketoc.php
index 8fc395e..6ad5fb7 100644
--- a/plugins/data.maketoc.php
+++ b/plugins/data.maketoc.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Revision: 1.12 $
+ * @version $Revision: 1.13 $
* @package liberty
* @subpackage plugins_data
*/
@@ -15,7 +15,7 @@
// +----------------------------------------------------------------------+
// | Author: xing <xing@synapse.plus.com>
// +----------------------------------------------------------------------+
-// $Id: data.maketoc.php,v 1.12 2006/08/29 23:11:18 squareing Exp $
+// $Id: data.maketoc.php,v 1.13 2006/09/09 19:55:35 squareing Exp $
/**
* definitions
@@ -24,18 +24,20 @@ define( 'PLUGIN_GUID_DATAMAKETOC', 'datamaketoc' );
global $gLibertySystem;
global $gContent;
$pluginParams = array (
- 'tag' => 'MAKETOC',
+ 'tag' => 'maketoc',
'auto_activate' => TRUE,
'requires_pair' => FALSE,
'load_function' => '',
- 'title' => 'Page Table of Contents',
- 'help_page' => 'DataPluginMakeTOC',
- 'description' => tra("Will create a table of contents of the WikiPage based on the headings below."),
+ 'title' => 'Page Table of Contents',
+ 'help_page' => 'DataPluginMakeTOC',
+ 'description' => tra("Will create a table of contents of the WikiPage based on the headings below."),
'help_function' => 'data_maketoc_help',
- 'syntax' => "{MAKETOC}",
- 'path' => LIBERTY_PKG_PATH.'plugins/data.maketoc.php',
- 'security' => 'registered',
- 'plugin_type' => DATA_PLUGIN
+ 'syntax' => "{MAKETOC}",
+ 'path' => LIBERTY_PKG_PATH.'plugins/data.maketoc.php',
+ 'security' => 'registered',
+ 'plugin_type' => DATA_PLUGIN,
+ 'biticon' => '{biticon class="quicktag icon" ipackage=quicktags iname=maketoc iexplain="Page Table of Contents"}',
+ 'taginsert' => '{maketoc}'
);
$gLibertySystem->registerPlugin( PLUGIN_GUID_DATAMAKETOC, $pluginParams );
$gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATAMAKETOC );
diff --git a/plugins/data.rss.php b/plugins/data.rss.php
index dec8592..94f8390 100644
--- a/plugins/data.rss.php
+++ b/plugins/data.rss.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Revision: 1.8 $
+ * @version $Revision: 1.9 $
* @package liberty
* @subpackage plugins_data
*/
@@ -17,7 +17,7 @@
// | Reworked for Bitweaver (& Undoubtedly Screwed-Up)
// | by: StarRider <starrrider@users.sourceforge.net>
// +----------------------------------------------------------------------+
-// $Id: data.rss.php,v 1.8 2006/08/28 07:52:25 jht001 Exp $
+// $Id: data.rss.php,v 1.9 2006/09/09 19:55:35 squareing Exp $
/**
* definitions
@@ -26,18 +26,20 @@ global $gLibertySystem;
define( 'PLUGIN_GUID_DATARSS', 'datarss' );
global $gLibertySystem;
$pluginParams = array (
- 'tag' => 'RSS',
+ 'tag' => 'rss',
'auto_activate' => TRUE,
'requires_pair' => FALSE,
'load_function' => 'rss_parse_data',
- 'title' => 'RSS Feed',
- 'help_page' => 'DataPluginRSS',
- 'description' => tra("Display RSS Feeds"),
+ 'title' => 'RSS Feed',
+ 'help_page' => 'DataPluginRSS',
+ 'description' => tra("Display RSS Feeds"),
'help_function' => 'rss_extended_help',
- 'syntax' => "{RSS id= max= }",
- 'path' => LIBERTY_PKG_PATH.'plugins/data.rss.php',
- 'security' => 'registered',
- 'plugin_type' => DATA_PLUGIN
+ 'syntax' => "{RSS id= max= }",
+ 'path' => LIBERTY_PKG_PATH.'plugins/data.rss.php',
+ 'security' => 'registered',
+ 'plugin_type' => DATA_PLUGIN,
+ 'biticon' => '{biticon class="quicktag icon" ipackage=quicktags iname=rss iexplain="RSS Feed"}',
+ 'taginsert' => '{rss}'
);
$gLibertySystem->registerPlugin( PLUGIN_GUID_DATARSS, $pluginParams );
$gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATARSS );
diff --git a/plugins/data.toc.php b/plugins/data.toc.php
index 118d58f..8a9ff56 100644
--- a/plugins/data.toc.php
+++ b/plugins/data.toc.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Revision: 1.10 $
+ * @version $Revision: 1.11 $
* @package liberty
* @subpackage plugins_data
*/
@@ -15,7 +15,7 @@
// +----------------------------------------------------------------------+
// | Author: Christian Fowler <spiderr@users.sourceforge.net>
// +----------------------------------------------------------------------+
-// $Id: data.toc.php,v 1.10 2006/08/07 22:14:58 squareing Exp $
+// $Id: data.toc.php,v 1.11 2006/09/09 19:55:35 squareing Exp $
/**
* definitions
@@ -26,18 +26,20 @@ define( 'PLUGIN_GUID_DATATOC', 'datatoc' );
global $gLibertySystem;
$pluginParams = array (
- 'tag' => 'toc',
+ 'tag' => 'toc',
'auto_activate' => TRUE,
'requires_pair' => FALSE,
'load_function' => 'data_toc',
- 'title' => 'Structure Table Of Contents',
- 'help_page' => 'DataPluginTOC',
- 'description' => tra("Display a Table Of Contents for Structures"),
+ 'title' => 'Structure Table Of Contents',
+ 'help_page' => 'DataPluginTOC',
+ 'description' => tra("Display a Table Of Contents for Structures"),
'help_function' => 'data_toc_help',
- 'syntax' => '{TOC structure_id= }',
- 'path' => LIBERTY_PKG_PATH.'plugins/data.toc.php',
- 'security' => 'registered',
- 'plugin_type' => DATA_PLUGIN
+ 'syntax' => '{toc structure_id= }',
+ 'path' => LIBERTY_PKG_PATH.'plugins/data.toc.php',
+ 'security' => 'registered',
+ 'plugin_type' => DATA_PLUGIN,
+ 'biticon' => '{biticon class="quicktag icon" ipackage=quicktags iname=toc iexplain="Structure Table of Contents"}',
+ 'taginsert' => '{toc}'
);
$gLibertySystem->registerPlugin( PLUGIN_GUID_DATATOC, $pluginParams );
$gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATATOC );