1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-17 20:01:47 +02:00

Allow Sitelinks to be switched between auto-generated SEF Urls and regular URLs. Requires link_owner (plugin directory) field value with corresponding e_url.php configuration.

This commit is contained in:
Cameron
2015-03-31 10:21:50 -07:00
parent afb8d290e5
commit 20f2b552da
16 changed files with 218 additions and 25 deletions

View File

@@ -3448,7 +3448,14 @@ class e_form
$mode = preg_replace('/[^\w]/', '', vartrue($_GET['mode'], ''));
$methodParms = call_user_func_array(array($this, $method), array($value, 'inline', $parms));
if(!empty($methodParms['inlineType']))
{
$attributes['inline'] = $methodParms['inlineType'];
$methodParms = (!empty($methodParms['inlineData'])) ? $methodParms['inlineData'] : null;
}
if(is_string($attributes['inline'])) // text, textarea, select, checklist.
{
switch ($attributes['inline'])
@@ -3459,6 +3466,7 @@ class e_form
break;
case 'select':
case 'dropdown':
$xtype = 'select';
break;
@@ -3473,14 +3481,14 @@ class e_form
break;
}
}
if(!empty($xtype))
{
$value = $this->renderInline($field, $id, $attributes['title'], $_value, $value, $xtype, $methodParms);
}
$value = $this->renderInline($field, $id, $attributes['title'], $_value, $value, $xtype, $methodParms);
// $source = str_replace('"',"'",json_encode($methodParms, JSON_FORCE_OBJECT));
// $value = "<a class='e-tip e-editable editable-click' data-type='select' data-value='".$_value."' data-name='".$field."' data-source=\"".$source."\" title=\"".LAN_EDIT." ".$attributes['title']."\" data-pk='".$id."' data-url='".e_SELF."?mode=&amp;action=inline&amp;id={$id}&amp;ajax_used=1' href='#'>".$value."</a>";
}
break;