mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
Tagwords - better multi-language handling
This commit is contained in:
@@ -63,4 +63,6 @@ define("LAN_TAG_OPT_26", "display");
|
||||
define("LAN_TAG_MENU_1", "view complete tagwords cloud");
|
||||
define("LAN_TAG_MENU_2", "Tagwords");
|
||||
|
||||
define("LAN_TAG_CORE_NEWS_1", "News");
|
||||
define("LAN_TAG_CORE_CPAGES_1", "Pages");
|
||||
?>
|
@@ -13,7 +13,7 @@ class e_tagwords_news
|
||||
$this->settings['plugin'] = "";
|
||||
$this->settings['table'] = "news";
|
||||
$this->settings['db_id'] = "news_id";
|
||||
$this->settings['caption'] = "news";
|
||||
$this->settings['caption'] = "LAN_TAG_CORE_NEWS_1";
|
||||
}
|
||||
|
||||
function getLink($id)
|
||||
|
@@ -13,7 +13,7 @@ class e_tagwords_page
|
||||
$this->settings['plugin'] = "";
|
||||
$this->settings['table'] = "page";
|
||||
$this->settings['db_id'] = "page_id";
|
||||
$this->settings['caption'] = "page";
|
||||
$this->settings['caption'] = "LAN_TAG_CORE_CPAGES_1";
|
||||
}
|
||||
|
||||
function getLink($id)
|
||||
|
@@ -9,8 +9,8 @@
|
||||
* Tagwords Shortcodes
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/tagwords/tagwords_shortcodes.php,v $
|
||||
* $Revision: 1.7 $
|
||||
* $Date: 2009-09-25 20:13:12 $
|
||||
* $Revision: 1.8 $
|
||||
* $Date: 2009-10-09 15:07:44 $
|
||||
* $Author: secretr $
|
||||
*
|
||||
*/
|
||||
@@ -99,7 +99,7 @@ class tagwords_shortcodes
|
||||
function sc_tag_area_heading()
|
||||
{
|
||||
global $tag;
|
||||
return varsettrue($tag->area->settings['caption']);
|
||||
return (varsettrue($tag->area->settings['caption']) ? defset($tag->area->settings['caption'], $tag->area->settings['caption']) : '');
|
||||
}
|
||||
|
||||
function sc_tag_link($parm, $sc_mode)
|
||||
|
Reference in New Issue
Block a user