mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 14:52:24 +09:00
css 및 js 호출순서 조정기능 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5785 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4f380d9c48
commit
61851f1dfe
2149 changed files with 109090 additions and 18689 deletions
|
|
@ -370,16 +370,31 @@
|
|||
}
|
||||
|
||||
function isExtraVarsExists() {
|
||||
for($i=1;$i<=20;$i++) {
|
||||
if($this->get('extra_vars'.$i)) return true;
|
||||
}
|
||||
return false;
|
||||
if(!$this->get('module_srl')) return false;
|
||||
$oDocumentModel = &getModel('document');
|
||||
$extra_keys = $oDocumentModel->getExtraKeys($this->get('module_srl'));
|
||||
return count($extra_keys)?true:false;
|
||||
}
|
||||
|
||||
function getExtraValue($key) {
|
||||
$val = $this->get('extra_vars'.$key);
|
||||
if(strpos($val,'|@|')!==false) $val = explode('|@|', $val);
|
||||
return $val;
|
||||
function getExtraVars() {
|
||||
if(!$this->get('module_srl') || !$this->document_srl) return null;
|
||||
$oDocumentModel = &getModel('document');
|
||||
return $oDocumentModel->getExtraVars($this->get('module_srl'), $this->document_srl);
|
||||
}
|
||||
|
||||
function getExtraValue($idx) {
|
||||
$extra_vars = $this->getExtraVars();
|
||||
return $extra_vars[$idx]->value;
|
||||
}
|
||||
|
||||
function getExtraValueHTML($idx) {
|
||||
$extra_vars = $this->getExtraVars();
|
||||
if(array_key_exists($idx,$extra_vars)){
|
||||
return $extra_vars[$idx]->getValueHTML();
|
||||
}else{
|
||||
return '';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function getExtraVarsValue($key) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue