mirror of
https://github.com/e107inc/e107.git
synced 2025-08-07 15:16:30 +02:00
Linkwords - deprecated e_help.php and LAN clean-up
This commit is contained in:
@@ -72,25 +72,24 @@ class linkwords_ui extends e_admin_ui
|
||||
protected $fields = array (
|
||||
'checkboxes' => array ( 'title' => '', 'type' => null, 'data' => null, 'width' => '5%', 'thclass' => 'center', 'forced' => '1', 'class' => 'center', 'toggle' => 'e-multiselect', ),
|
||||
'linkword_id' => array ( 'title' => LAN_ID, 'data' => 'int', 'width' => '5%', 'help' => '', 'readParms' => '', 'writeParms' => '', 'class' => 'left', 'thclass' => 'left', ),
|
||||
'linkword_word' => array ( 'title' => LWLAN_21, 'type' => 'tags', 'data' => 'str', 'width' => 'auto', 'inline' => true, 'help' => '', 'readParms' => '', 'writeParms' => '', 'class' => 'left', 'thclass' => 'left', ),
|
||||
'linkword_link' => array ( 'title' => LWLAN_6, 'type' => 'text', 'data' => 'str', 'width' => 'auto', 'inline' => true, 'help' => '', 'readParms' => '', 'writeParms' => 'size=xxlarge', 'class' => 'left', 'thclass' => 'left', ),
|
||||
'linkword_word' => array ( 'title' => LWLAN_21, 'type' => 'tags', 'data' => 'str', 'width' => 'auto', 'inline' => true, 'help' => LAN_LW_HELP_11, 'readParms' => '', 'writeParms' => '', 'class' => 'left', 'thclass' => 'left', ),
|
||||
'linkword_link' => array ( 'title' => LWLAN_6, 'type' => 'text', 'data' => 'str', 'width' => 'auto', 'inline' => true, 'help' => LAN_LW_HELP_12, 'readParms' => '', 'writeParms' => 'size=xxlarge', 'class' => 'left', 'thclass' => 'left', ),
|
||||
'linkword_active' => array ( 'title' => LAN_ACTIVE, 'type' => 'dropdown', 'data' => 'int', 'width' => 'auto', 'batch' => true, 'filter' => true, 'inline' => true, 'help' => '', 'readParms' => '', 'writeParms' => array(), 'left' => 'center', 'thclass' => 'left', ),
|
||||
'linkword_tooltip' => array ( 'title' => LWLAN_50, 'type' => 'textarea', 'data' => 'str', 'width' => 'auto', 'inline' => true, 'help' => '', 'readParms' => '', 'writeParms' => array('size'=>'xxlarge'), 'class' => 'left', 'thclass' => 'left', ),
|
||||
'linkword_limit' => array ( 'title' => "Max. links/tips", 'type' => 'number', 'data' => 'int', 'width' => '10%', 'help' => LWLAN_63, 'readParms' => '', 'writeParms' => array('default'=>3), 'class' => 'right', 'thclass' => 'right', ),
|
||||
'linkword_tip_id' => array ( 'title' => LAN_ID, 'type' => 'number', 'data' => 'int', 'width' => '5%', 'help' => LWLAN_63, 'readParms' => '', 'writeParms' => '', 'class' => 'right', 'thclass' => 'right', ),
|
||||
'linkword_newwindow' => array ( 'title' => LWLAN_55, 'type' => 'boolean', 'data' => 'int', 'width' => 'auto', 'inline' => true, 'help' => '', 'filter'=>true, 'readParms' => '', 'writeParms' => '', 'class' => 'center', 'thclass' => 'center', ),
|
||||
'linkword_tooltip' => array ( 'title' => LWLAN_50, 'type' => 'textarea', 'data' => 'str', 'width' => 'auto', 'inline' => true, 'help' => LAN_LW_HELP_13, 'readParms' => '', 'writeParms' => array('size'=>'xxlarge'), 'class' => 'left', 'thclass' => 'left', ),
|
||||
'linkword_limit' => array ( 'title' => "Max. links/tips", 'type' => 'number', 'data' => 'int', 'width' => '10%', 'help' => LAN_LW_HELP_15, 'readParms' => '', 'writeParms' => array('default'=>3), 'class' => 'right', 'thclass' => 'right', ),
|
||||
'linkword_tip_id' => array ( 'title' => LAN_ID, 'type' => 'number', 'data' => 'int', 'width' => '5%', 'help' => LAN_LW_HELP_16, 'readParms' => '', 'writeParms' => '', 'class' => 'right', 'thclass' => 'right', ),
|
||||
'linkword_newwindow' => array ( 'title' => LWLAN_55, 'type' => 'boolean', 'data' => 'int', 'width' => 'auto', 'inline' => true, 'help' => LAN_LW_HELP_17, 'filter'=>true, 'readParms' => '', 'writeParms' => '', 'class' => 'center', 'thclass' => 'center', ),
|
||||
'options' => array ( 'title' => LAN_OPTIONS, 'type' => null, 'data' => null, 'width' => '10%', 'thclass' => 'center last', 'class' => 'center last', 'forced' => '1', ),
|
||||
);
|
||||
|
||||
protected $fieldpref = array();
|
||||
|
||||
protected $prefs = array(
|
||||
'lw_context_visibility' => array('title'=> LWLAN_26, 'type'=>'checkboxes', 'help'=>''),
|
||||
'lw_ajax_enable' => array('title'=> LWLAN_59, 'type'=>'boolean', 'data' => 'string','help'=>''),
|
||||
'lw_notsamepage' => array('title'=> LWLAN_64, 'type'=>'boolean', 'data' => 'string','help'=>LWLAN_65),
|
||||
'linkword_omit_pages' => array('title'=> LWLAN_28, 'type'=>'textarea', 'data' => 'string','help'=>''),
|
||||
// 'lw_max_per_word' => array('title'=> "Maximum links/tips per word", 'type'=>'number', 'data' => 'string','help'=>'If the same word is found multiple times in a piece of text.'),
|
||||
'lw_custom_class' => array('title'=> "Custom CSS Class", 'type'=>'text', 'writeParms'=>array('placeholder'=> LAN_OPTIONAL ), 'data' => 'string','help'=>'Will add this class to all generated links.'),
|
||||
'lw_context_visibility' => array('title' => LWLAN_26, 'type' => 'checkboxes', 'help' => LAN_LW_HELP_01),
|
||||
'lw_ajax_enable' => array('title' => LWLAN_59, 'type' => 'boolean', 'data' => 'string', 'help' => LAN_LW_HELP_02),
|
||||
'lw_notsamepage' => array('title' => LWLAN_64, 'type' => 'boolean', 'data' => 'string', 'help' => LAN_LW_HELP_03),
|
||||
'linkword_omit_pages' => array('title' => LWLAN_28, 'type' => 'textarea', 'data' => 'string', 'help' => LAN_LW_HELP_04),
|
||||
'lw_custom_class' => array('title' => LWLAN_66, 'type' => 'text', 'writeParms' => array('placeholder' => LAN_OPTIONAL), 'data' => 'string', 'help' => LAN_LW_HELP_05),
|
||||
);
|
||||
|
||||
public function init()
|
||||
@@ -124,6 +123,14 @@ class linkwords_ui extends e_admin_ui
|
||||
}
|
||||
}
|
||||
|
||||
public function renderHelp()
|
||||
{
|
||||
if($this->getAction() == 'create')
|
||||
{
|
||||
return array('caption' => LAN_HELP, 'text' => LAN_LW_HELP_10);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ------- Customize Create --------
|
||||
|
||||
|
@@ -6,25 +6,14 @@
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
*
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/linkwords/e_help.php,v $
|
||||
* $Revision$
|
||||
* $Date$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
/**
|
||||
* e107 Linkword plugin
|
||||
*
|
||||
* @package e107_plugins
|
||||
* @subpackage linkwords
|
||||
* @version $Id$;
|
||||
*
|
||||
*/
|
||||
// DEPRECATED FILE - moved renderHelp() in admin_config.php
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
return;
|
||||
|
||||
/*
|
||||
|
||||
e107::lan('linkwords',e_LANGUAGE."_admin_linkwords.php");
|
||||
|
||||
@@ -42,4 +31,4 @@ default :
|
||||
}
|
||||
$ns -> tablerender(LAN_LW_HELP_00, $text);
|
||||
unset($text);
|
||||
?>
|
||||
?>*/
|
@@ -13,34 +13,34 @@
|
||||
//define("LWLAN_1", "Field(s) left blank.");
|
||||
//define("LWLAN_2", "Link word saved.");
|
||||
//define("LWLAN_3", "Link word updated.");
|
||||
define("LWLAN_4", "No link words defined yet.");
|
||||
define("LWLAN_4", "No linkwords defined yet.");
|
||||
define("LWLAN_5", "Words");
|
||||
define("LWLAN_6", "Link");
|
||||
define("LWLAN_7", "Active?");
|
||||
//define("LWLAN_8", "Options");
|
||||
//define("LWLAN_9", "yes");
|
||||
//define("LWLAN_10", "no");
|
||||
define("LWLAN_11", "Existing Linkwords");
|
||||
//define("LWLAN_11", "Existing Linkwords");
|
||||
//define("LWLAN_12", "Yes");
|
||||
//define("LWLAN_13", "No");
|
||||
//define("LWLAN_14", "Submit LinkWord");
|
||||
//define("LWLAN_15", "Update LinkWord");
|
||||
//define("LWLAN_16", "Edit");
|
||||
//define("LWLAN_17", "Delete");
|
||||
define("LWLAN_18", "Are you sure you want to delete this linkword?");
|
||||
//define("LWLAN_18", "Are you sure you want to delete this linkword?");
|
||||
//define("LWLAN_19", "Linkword deleted.");
|
||||
define("LWLAN_20", "Unable to find that linkword entry.");
|
||||
//define("LWLAN_20", "Unable to find that linkword entry.");
|
||||
define("LWLAN_21", "Word to autolink (or comma-separated list of words)");
|
||||
define("LWLAN_22", "Activate?");
|
||||
define("LWLAN_23", "Linkwords Administration");
|
||||
define("LWLAN_24", "Manage Words");
|
||||
//define("LWLAN_22", "Activate?");
|
||||
//define("LWLAN_23", "Linkwords Administration");
|
||||
//define("LWLAN_24", "Manage Words");
|
||||
//define("LWLAN_25", "Options");
|
||||
define("LWLAN_26", "Areas in which to enable linkwords");
|
||||
define("LWLAN_27", "This is the 'context' of the displayed text");
|
||||
//define("LWLAN_27", "This is the 'context' of the displayed text");
|
||||
define("LWLAN_28", "Pages on which to disable linkwords");
|
||||
define("LWLAN_29", "Same format as menu visibility control. One match per line. Specify a partial or complete URL. End with '!' for exact match of the end part of the link");
|
||||
//define("LWLAN_29", "Same format as menu visibility control. One match per line. Specify a partial or complete URL. End with '!' for exact match of the end part of the link");
|
||||
//define("LWLAN_30", "Save options");
|
||||
define("LWLAN_31", "Add/edit linkword");
|
||||
//define("LWLAN_31", "Add/edit linkword");
|
||||
//define("LWLAN_32", "Linkword Options");
|
||||
define("LWLAN_33", "Title areas");
|
||||
define("LWLAN_34", "Item summaries");
|
||||
@@ -55,46 +55,81 @@ define("LWLAN_41", "User-entered body text (e.g. forum)");
|
||||
|
||||
|
||||
define("LWLAN_50", "Tooltip");
|
||||
define("LWLAN_51", "Inactive");
|
||||
//define("LWLAN_51", "Inactive"); // LAN_INACTIVE
|
||||
define("LWLAN_52", "Linkword only");
|
||||
define("LWLAN_53", "Tooltip only");
|
||||
define("LWLAN_54", "Linkword and Tooltip");
|
||||
define("LWLAN_55", "Open link in new window");
|
||||
define("LWLAN_56", "Open in new page");
|
||||
//define("LWLAN_56", "Open in new page");
|
||||
//define("LWLAN_57", "Error writing new values");
|
||||
define("LWLAN_58", "Pref hook converted to 0.8 format"); // Used in 0.7-compatible stub only
|
||||
define("LWLAN_59", "Enable Ajax functionality");
|
||||
define("LWLAN_60", "LW ID");
|
||||
//define("LWLAN_60", "LW ID");
|
||||
//define("LWLAN_61", "ID");
|
||||
define("LWLAN_62", "Tooltip ID (LW ID)");
|
||||
define("LWLAN_63", "Positive integers only");
|
||||
//define("LWLAN_62", "Tooltip ID (LW ID)");
|
||||
//define("LWLAN_63", "Positive integers only");
|
||||
define("LWLAN_64", "Suppress link on current page");
|
||||
define("LWLAN_65", "When checked, suppresses clickable link if points to current page");
|
||||
//define("LWLAN_65", "When checked, suppresses clickable link if points to current page");
|
||||
define("LWLAN_66", "Custom CSS class");
|
||||
|
||||
|
||||
// Help text
|
||||
define("LAN_LW_HELP_00","Linkwords Help");
|
||||
|
||||
// Help texts
|
||||
//define("LAN_LW_HELP_00","Linkwords Help");
|
||||
|
||||
// Preferences
|
||||
define("LAN_LW_HELP_01", "Many areas of text have an associated 'context', and linkwords will only be displayed in areas matching that context.");
|
||||
define("LAN_LW_HELP_02", "The tooltips can use Ajax to get information for display. This usually requires some custom coding.");
|
||||
define("LAN_LW_HELP_03", "Usually its pointless for the user to be able to click a link if they're already on the page that it links to. When this option is turned off, the linkwords are not triggered in this case.");
|
||||
define("LAN_LW_HELP_04", "Linkwords may be disabled on specific pages, or pages matching a pattern. Enter these here (same syntax as for menu visbility), one pattern per line. If the pattern ends in '!', this corresponds to 'end of query', and is usually an exact match. Otherwise any URL containing the specified string will match.");
|
||||
define("LAN_LW_HELP_05", "Will add this class to all generated links.");
|
||||
// Reserve numbers for further prefences help texts
|
||||
|
||||
// Create linkwords
|
||||
define("LAN_LW_HELP_10", "Here you can define the words which become clickable links, or which display text on mouseover.");
|
||||
define("LAN_LW_HELP_11", "This is case-insensitive. For multiple words mapping to the same links and tooltips, separate them with commas (no spaces)");
|
||||
define("LAN_LW_HELP_12", "Define a clickable link here. If its an external link, it MUST begin with 'http(s)://'. If its a link within this site, the normal {e_XXX} constants may be used.");
|
||||
define("LAN_LW_HELP_13", "Defines which options are active.");
|
||||
define("LAN_LW_HELP_14", "This defines the text to be displayed when the user's mouse passes over the word.");
|
||||
define("LAN_LW_HELP_15", "Maximum amount of the same linkwords. Must be positive number. Used when the same word is found multiple times in a piece of text.");
|
||||
define("LAN_LW_HELP_16", "This defines an optional numeric ID to be used with Ajax processing. Must be a postiive number. If blank, the database record number is used");
|
||||
define("LAN_LW_HELP_17", "When turned on, the link is opened in new browser tab/window");
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
define("LAN_LW_HELP_01","
|
||||
<b>Areas to enable</b><br />
|
||||
many areas of text have an associated \"context\", and linkwords will only be displayed in areas matching that context.<br /><br />
|
||||
|
||||
<b>Linkwords Disable</b><br />
|
||||
Linkwords may be disabled on specific pages, or pages matching a pattern. Enter these here (same syntax as for menus), one pattern per line.
|
||||
If the pattern ends in \"!\", this corresponds to \"end of query\", and is usually an exact match. Otherwise any URL containing the specified string will match.<br />
|
||||
Note that linkwords are <i>never</i> displayed on admin pages.<br /><br />
|
||||
|
||||
<b>Enable Ajax Functionality</b><br />
|
||||
The tooltips can use Ajax to get information for display. This usually requires some custom coding.<br /><br />
|
||||
|
||||
<b>Suppress link on current page</b><br />
|
||||
Usually its pointless for the user to be able to click a link if they\"re already on the page. Tick this box to remove the option,<br />
|
||||
");
|
||||
|
||||
define("LAN_LW_HELP_02","Define the words which become clickable links, or which display text on mouseover, here<br /><br />
|
||||
|
||||
<b><u>Word to Link</u></b><br />
|
||||
This is case-insensitive. For multiple words mapping to the same links and tooltips, separate them with commas (no spaces)<br /><br />
|
||||
|
||||
<b><u>Link</u></b><br />
|
||||
Define a clickable link here. If its an external link, it [i]must[/i] begin \"http://\". If its a link within this site, the normal {e_XXX} constants may be used.<br /><br />
|
||||
|
||||
<b><u>Tooltip</u></b><br />
|
||||
This defines the text to be displayed when the user\"s mouse passes over the word.<br /><br />
|
||||
|
||||
<b><u>LW ID (Tooltip ID)</u></b><br /><br />
|
||||
This defines an optional numeric ID to be used with Ajax processing. If blank, the database record number is used.<br /><br />
|
||||
|
||||
<b><u>Activate?</u></b><br />
|
||||
Defines which options are active.
|
||||
");
|
||||
");
|
||||
*/
|
Reference in New Issue
Block a user