mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +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_NEWS_1", "News");
|
||||||
define("LAN_TAG_CORE_CPAGES_1", "Pages");
|
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}";
|
$name = "e_tagwords_{$area}";
|
||||||
$selected = (varsettrue($_GET['area'])==$area ? "selected=selected" : '');
|
$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 .= "
|
$text .= "
|
||||||
@@ -401,9 +401,9 @@ class tagwords_shortcodes
|
|||||||
$name = "e_tagwords_{$area}";
|
$name = "e_tagwords_{$area}";
|
||||||
|
|
||||||
$text .= "
|
$text .= "
|
||||||
<label for='".$id."[".$area."]'>
|
<label for='".$id."-".$area."'>
|
||||||
<input type='checkbox' name='".$id."[".$area."]' id='".$id."[".$area."]' value='1' ".$sel." />
|
<input type='checkbox' name='".$id."[".$area."]' id='".$id."-".$area."' value='1' ".$sel." />
|
||||||
".$tag->$name->settings['caption']."
|
".defset($tag->$name->settings['caption'], $tag->$name->settings['caption'])."
|
||||||
</label><br />";
|
</label><br />";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -40,12 +40,13 @@ class plugin_tagwords_url extends eUrlConfig
|
|||||||
public function admin()
|
public function admin()
|
||||||
{
|
{
|
||||||
// static may be used for performance
|
// static may be used for performance
|
||||||
e107::plugLan('pm', 'url', true);
|
e107::plugLan('tagwords');
|
||||||
|
|
||||||
static $admin = array(
|
static $admin = array(
|
||||||
'labels' => array(
|
'labels' => array(
|
||||||
'name' => TAGW_LAN_URL_NAME, // Module name
|
'name' => LAN_TAG_URL_NAME, // Module name
|
||||||
'label' => TAGW_LAN_URL_DEFAULT_LABEL, // Current profile name
|
'label' => LAN_TAG_URL_DEFAULT_LABEL, // Current profile name
|
||||||
'description' => TAGW_LAN_URL_DEFAULT_DESCR, //
|
'description' => LAN_TAG_URL_DEFAULT_DESCR, //
|
||||||
),
|
),
|
||||||
'form' => array(), // Under construction - additional configuration options
|
'form' => array(), // Under construction - additional configuration options
|
||||||
'callbacks' => array(), // Under construction - could be used for e.g. URL generator functionallity
|
'callbacks' => array(), // Under construction - could be used for e.g. URL generator functionallity
|
||||||
|
Reference in New Issue
Block a user