mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-10 04:03:01 +09:00
네모의 꿈/ 컨텐츠 위젯 스킨 (#712)
## 컨텐츠 모듈 스킨 - 사이트 테마를 따르지 않고 다른 색을 선택할 수 있도록 네모의 꿈 회원 스킨 컬러셋 추가. - 탭이 많을 때 터치 환경이 아니면 좌우로 넘기기 어려운 점을 고려하여서 메뉴를 펼침. - 작은 화면에서 화면을 최대한 활용하도록, 레이아웃 햄버거 메뉴를 부드럽게 나타내고 감춥니다. ## 위젯에서 LESS/SCSS 의 사용 - 변수를 위젯 캐시에도 전달할 수 있도록 해서 LESS 나 SCSS 에 값 전달이 가능하도록 함. - LESS 나 SCSS 를 사용한 경우에 위젯 코드 캐싱 코드가 적절하게 기록되도록 해서 LESS나 SCSS 를 사용 가능하도록 수정. ## 그 외 변화 - Reduce the number of regular expressions.
This commit is contained in:
parent
b1ba031117
commit
5140047b5f
26 changed files with 1286 additions and 27 deletions
|
|
@ -174,7 +174,7 @@ class HTMLDisplayHandler
|
|||
$output = preg_replace_callback('!<meta(.*?)(?:\/|)>!is', array($this, '_moveMetaToHeader'), $output);
|
||||
|
||||
// change a meta fine(widget often put the tag like <!--Meta:path--> to the content because of caching)
|
||||
$output = preg_replace_callback('/<!--(#)?Meta:([a-z0-9\_\-\/\.\@\:]+)-->/is', array($this, '_transMeta'), $output);
|
||||
$output = preg_replace_callback('/<!--(#)?Meta:([a-z0-9\_\-\/\.\@\:]+)(\?\$\_\_Context\-\>[a-z0-9\_\-\/\.\@\:]+)?-->/is', array($this, '_transMeta'), $output);
|
||||
|
||||
// handles a relative path generated by using the rewrite module
|
||||
if(Context::isAllowRewrite())
|
||||
|
|
@ -370,9 +370,17 @@ class HTMLDisplayHandler
|
|||
{
|
||||
return '';
|
||||
}
|
||||
Context::loadFile($matches[2]);
|
||||
if($matches[3])
|
||||
{
|
||||
$vars = Context::get(str_replace('?$__Context->', '', $matches[3]));
|
||||
Context::loadFile(array($matches[2], null, null, null, $vars));
|
||||
}
|
||||
else
|
||||
{
|
||||
Context::loadFile($matches[2]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Add OpenGraph metadata tags.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -805,6 +805,7 @@ class TemplateHandler
|
|||
else
|
||||
{
|
||||
$metafile = $attr['target'];
|
||||
$metavars = ($attr['vars'] ? self::_replaceVar($attr['vars']) : '');
|
||||
$result = "\$__tmp=array('{$attr['target']}','{$attr['media']}','{$attr['targetie']}','{$attr['index']}'," . ($attr['vars'] ? self::_replaceVar($attr['vars']) : 'array()') . ");Context::loadFile(\$__tmp);unset(\$__tmp);";
|
||||
}
|
||||
break;
|
||||
|
|
@ -813,7 +814,15 @@ class TemplateHandler
|
|||
$result = "<?php {$result} ?>";
|
||||
if($metafile)
|
||||
{
|
||||
$result = "<!--#Meta:{$metafile}-->" . $result;
|
||||
if(!$metavars)
|
||||
{
|
||||
$result = "<!--#Meta:{$metafile}-->" . $result;
|
||||
}
|
||||
else
|
||||
{
|
||||
// LESS or SCSS needs the variables to be substituted.
|
||||
$result = "<!--#Meta:{$metafile}?{$metavars}-->" . $result;
|
||||
}
|
||||
}
|
||||
|
||||
return $result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue