mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 12:20:44 +02:00
Retrieve value from language defines for tagwords areas when needed, missing lans added
This commit is contained in:
@@ -65,4 +65,7 @@ define("LAN_TAG_MENU_2", "Tagwords");
|
||||
|
||||
define("LAN_TAG_CORE_NEWS_1", "News");
|
||||
define("LAN_TAG_CORE_CPAGES_1", "Pages");
|
||||
?>
|
||||
|
||||
define("LAN_TAG_URL_NAME", "Tagwords");
|
||||
define("LAN_TAG_URL_DEFAULT_LABEL", "Default");
|
||||
define("LAN_TAG_URL_DEFAULT_DESCR", "Example: http://yoursite.com/tagwords/some-tag");
|
@@ -251,7 +251,7 @@ class tagwords_shortcodes
|
||||
{
|
||||
$name = "e_tagwords_{$area}";
|
||||
$selected = (varsettrue($_GET['area'])==$area ? "selected=selected" : '');
|
||||
$text .= "<option value='".$area."' ".$selected." >".$tag->$name->settings['caption']."</option>";
|
||||
$text .= "<option value='".$area."' ".$selected." >".defset($tag->$name->settings['caption'], $tag->$name->settings['caption'])."</option>";
|
||||
}
|
||||
}
|
||||
$text .= "
|
||||
@@ -401,9 +401,9 @@ class tagwords_shortcodes
|
||||
$name = "e_tagwords_{$area}";
|
||||
|
||||
$text .= "
|
||||
<label for='".$id."[".$area."]'>
|
||||
<input type='checkbox' name='".$id."[".$area."]' id='".$id."[".$area."]' value='1' ".$sel." />
|
||||
".$tag->$name->settings['caption']."
|
||||
<label for='".$id."-".$area."'>
|
||||
<input type='checkbox' name='".$id."[".$area."]' id='".$id."-".$area."' value='1' ".$sel." />
|
||||
".defset($tag->$name->settings['caption'], $tag->$name->settings['caption'])."
|
||||
</label><br />";
|
||||
|
||||
}
|
||||
|
@@ -40,12 +40,13 @@ class plugin_tagwords_url extends eUrlConfig
|
||||
public function admin()
|
||||
{
|
||||
// static may be used for performance
|
||||
e107::plugLan('pm', 'url', true);
|
||||
e107::plugLan('tagwords');
|
||||
|
||||
static $admin = array(
|
||||
'labels' => array(
|
||||
'name' => TAGW_LAN_URL_NAME, // Module name
|
||||
'label' => TAGW_LAN_URL_DEFAULT_LABEL, // Current profile name
|
||||
'description' => TAGW_LAN_URL_DEFAULT_DESCR, //
|
||||
'name' => LAN_TAG_URL_NAME, // Module name
|
||||
'label' => LAN_TAG_URL_DEFAULT_LABEL, // Current profile name
|
||||
'description' => LAN_TAG_URL_DEFAULT_DESCR, //
|
||||
),
|
||||
'form' => array(), // Under construction - additional configuration options
|
||||
'callbacks' => array(), // Under construction - could be used for e.g. URL generator functionallity
|
||||
|
Reference in New Issue
Block a user