mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
issue 2242, added multilingual on widget style, fixed a bug that does not load css after add widget
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.2@11057 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c1c0a39c72
commit
2e8412c322
4 changed files with 48 additions and 18 deletions
|
|
@ -68,6 +68,10 @@
|
|||
$attribute = $this->arrangeWidgetVars($widget, Context::getRequestVars(), $vars);
|
||||
// Wanted results
|
||||
$widget_code = $this->execute($widget, $vars, true, false);
|
||||
|
||||
$oModuleController = &getController('module');
|
||||
$oModuleController->replaceDefinedLangCode($widget_code);
|
||||
|
||||
$this->add('widget_code', $widget_code);
|
||||
}
|
||||
|
||||
|
|
@ -389,6 +393,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Widgets widgetContent/widgetBox Wanted If you are not content
|
||||
**/
|
||||
|
|
@ -475,7 +480,7 @@
|
|||
foreach($args as $key => $val) {
|
||||
if(in_array($key, array('class','style','widget_padding_top','widget_padding_right','widget_padding_bottom','widget_padding_left','widget','widgetstyle','document_srl'))) continue;
|
||||
if(strpos($val,'|@|')>0) $val = str_replace('|@|',',',$val);
|
||||
$attribute[] = sprintf('%s="%s"', $key, str_replace('"','\"',$val));
|
||||
$attribute[] = sprintf('%s="%s"', $key, htmlspecialchars($val));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -509,7 +514,7 @@
|
|||
if(in_array($key, array('class','style','widget_padding_top','widget_padding_right','widget_padding_bottom','widget_padding_left','widget','widgetstyle','document_srl'))) continue;
|
||||
if(!is_numeric($val) && (!is_string($val) || strlen($val)==0)) continue;
|
||||
if(strpos($val,'|@|')>0) $val = str_replace('|@|',',',$val);
|
||||
$attribute[] = sprintf('%s="%s"', $key, str_replace('"','\"',$val));
|
||||
$attribute[] = sprintf('%s="%s"', $key, htmlspecialchars($val));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -532,7 +537,7 @@
|
|||
if(in_array($key, $allowed_key)) continue;
|
||||
if(!is_numeric($val) && (!is_string($val) || strlen($val)==0)) continue;
|
||||
if(strpos($val,'|@|')>0) $val = str_replace('|@|',',',$val);
|
||||
$attribute[] = sprintf('%s="%s"', $key, str_replace('"','\"',$val));
|
||||
$attribute[] = sprintf('%s="%s"', $key, htmlspecialchars($val));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -673,8 +678,8 @@
|
|||
continue;
|
||||
}
|
||||
if(strpos($val,'|@|') > 0) $val = str_replace('|@|', ',', $val);
|
||||
$vars->{$key} = htmlspecialchars(Context::convertEncodingStr($val));
|
||||
$attribute[] = sprintf('%s="%s"', $key, Context::convertEncodingStr($val));
|
||||
$vars->{$key} = Context::convertEncodingStr($val);
|
||||
$attribute[] = sprintf('%s="%s"', $key, htmlspecialchars(Context::convertEncodingStr($val)));
|
||||
}
|
||||
|
||||
return $attribute;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue