Kijin Sung
c54fa8dab1
Use escape more consistently
...
여기저기 htmlspecialchars가 들어 있는 것을 escape로 통일
2018-10-10 15:07:51 +09:00
Kijin Sung
6abd345dcf
Fix autoescape problems
...
- 삼항식 사용시 autoescape 우선순위가 꼬이는 문제 수정
- $lang 변수는 autoescape하지 않도록 변경
- ENT_COMPAT을 ENT_QUOTES로 변경 (자바스크립트에서 사용시 '홑따옴표' 이탈 방지)
2018-10-10 14:43:53 +09:00
conory
eacf1c43f0
디버그 사용자일 경우 발생하는 템플릿 XML 오류 문제 수정
2018-04-16 10:11:31 +09:00
conory
c728250fd7
템플릿 foreach 처리시 디버그 편의를 위해 원래의 엄격한 방식으로 되돌림
2018-03-31 16:59:30 +09:00
conory
3d24c14f7f
object 변수일 경우 템플릿 foreach 문이 작동하지 않는 문제 수정
...
#1023 문제 수정
레이아웃 확장변수 (extra_var)가 object 라서 발생한 warning 수정 (왜 object로 했는 지 모르겠지만, array가 더 맞는 듯함)
Warning: count(): Parameter must be an array or an object that implements Countable in php 7.2
2018-03-30 23:28:44 +09:00
conory
605fcc87df
Fix unit test for template
2018-03-22 17:49:00 +09:00
conory
a8e9c58d7a
inline 템플릿 문법 인식 오류 수정
...
a6e9222fac 보완
잘못 인식된 문법 ex)
<input cond="$a" type="text" value="{'">'|escape}" />
<p id="<!--@if($a)-->a" class="o"<!--@else-->c"<!--@end-->>abc</p><div cond="$c">123</div>
2018-03-22 16:34:19 +09:00
bnu
a6e9222fac
cond, loop 등 템플릿 코드가 컴파일 되지 않고 출력되는 문제
...
- xpressengine/xe-core#2237
- 일부 해결됨을 확인하였으나, 다양한 환경에서 문제가 여전히 나타날 수 있음
2018-03-07 17:45:52 +09:00
Kijin Sung
e0a762d03a
Use $lang as a local variable in template handler
2018-03-03 01:57:16 +09:00
Kijin Sung
9d06f6a9e2
Enable static calling of Context::init() and convert unnecessary instance properties into static properties
2018-03-03 01:44:05 +09:00
Kijin Sung
513f136c34
Isolate user-created template vars (Context::set) from Context instance properties
2018-03-02 21:02:59 +09:00
conory
13ebfbfa8c
Revert "context property의 이름과 템플릿 내의 변수 이름이 같을 경우 덮어쓰지는 문제 수정"
...
This reverts commit 51bd96b66a .
2018-02-01 15:34:00 +09:00
conory
51bd96b66a
context property의 이름과 템플릿 내의 변수 이름이 같을 경우 덮어쓰지는 문제 수정
2018-02-01 15:01:40 +09:00
conory
28dfc44a86
913ccf4a3c 보완
2018-01-29 23:38:19 +09:00
conory
913ccf4a3c
디버그 기능 사용시 템플릿 경로를 표시하는 주석 태그 추가
...
관리자일 경우에만 표시
위젯 캐시 등 사용시 템플릿 주석이 노출될 가능성이 있으므로 HTMLDisplayHandler->prepareToPrint()에서 주석 제거 처리
2018-01-29 22:08:39 +09:00
Kijin Sung
afc0f26d6c
Fix path handling in TemplateHandler
2018-01-29 15:07:00 +09:00
Kijin Sung
9a87376e35
Always get $this->user directly from Rhymix\Framework\Session
...
서드파티 자료가 Context->get('logged_info')에 stdClass를 넣는 경우
$this->user->isAdmin() 등의 메소드를 사용할 수 없게 되는 문제 수정
2018-01-13 14:13:53 +09:00
Kijin Sung
3dbc600aa9
Suppress warnings thrown by count() in template parser
2017-12-09 02:39:14 +09:00
Min-Soo Kim
5140047b5f
네모의 꿈/ 컨텐츠 위젯 스킨 ( #712 )
...
## 컨텐츠 모듈 스킨
- 사이트 테마를 따르지 않고 다른 색을 선택할 수 있도록 네모의 꿈 회원 스킨 컬러셋 추가.
- 탭이 많을 때 터치 환경이 아니면 좌우로 넘기기 어려운 점을 고려하여서 메뉴를 펼침.
- 작은 화면에서 화면을 최대한 활용하도록, 레이아웃 햄버거 메뉴를 부드럽게 나타내고 감춥니다.
## 위젯에서 LESS/SCSS 의 사용
- 변수를 위젯 캐시에도 전달할 수 있도록 해서 LESS 나 SCSS 에 값 전달이 가능하도록 함.
- LESS 나 SCSS 를 사용한 경우에 위젯 코드 캐싱 코드가 적절하게 기록되도록 해서 LESS나 SCSS 를 사용
가능하도록 수정.
## 그 외 변화
- Reduce the number of regular expressions.
2017-02-26 01:05:57 +09:00
Kijin Sung
f338d38538
Improve regexp for template filters
2017-02-23 22:25:13 +09:00
Kijin Sung
d03c64d069
Make the test for filters more strict to prevent unintended parsing
2017-02-23 22:14:51 +09:00
Kijin Sung
5638207fb0
Change behavior of 'autoescape' filter to always escape (but not double-escape)
2017-02-22 21:29:15 +09:00
Kijin Sung
0c4dbc34ff
Add 'trim' filter and adjust some other settings
2017-02-22 21:24:10 +09:00
Kijin Sung
0c20794219
Implement several template filters
2017-02-22 20:58:37 +09:00
Kijin Sung
03866c7777
Populate an empty SessionHelper object if not logged in
2017-02-10 21:26:38 +09:00
Kijin Sung
11883fb965
Populate 'user' property of TemplateHandler instances
2017-02-10 21:18:53 +09:00
Kijin Sung
95a36477b7
Clean up path handling in TemplateHandler
2016-10-01 21:54:25 +09:00
Kijin Sung
b6113b9df8
Allow access to superglobals and constants in template code
2016-10-01 21:39:04 +09:00
Kijin Sung
78a0e857b5
Also trigger warning when template is not found
2016-10-01 21:16:01 +09:00
Kijin Sung
7e5356380f
Fix #579 insufficient information in template error
2016-10-01 21:13:24 +09:00
Kijin Sung
818a39f3e0
Add compiled template filename to Debug class as an alias
2016-05-05 21:53:57 +09:00
Kijin Sung
7709eb97c6
Support passing variables to LESS and SCSS stylesheets
2016-05-03 21:35:42 +09:00
Kijin Sung
25965b5d72
Initial support for LESS and SCSS stylesheets
2016-05-03 21:23:38 +09:00
conory
11a3001c3c
임시파일도 사용할 수 없다면 에러 출력
2016-04-13 12:05:24 +09:00
conory
7f2aa69f3a
임시파일로 사용하도록 개선
2016-04-13 10:34:41 +09:00
conory
57fbc0dd7a
캐시 파일을 쓸 수 없을때 화면 출력이 되지않는 문제 수정
2016-04-12 23:05:28 +09:00
Kijin Sung
ac8460d782
Finalize debug data format and allow all statistics to be collected
2016-02-12 21:31:38 +09:00
Kijin Sung
25eef85d8a
Remove two-tier caching of template files
2016-02-11 10:44:47 +09:00
conory
9f7f955e28
Revert template handler
2016-01-31 16:04:06 +09:00
conory
a840b5fe46
글로벌 변수도 사용할 수 있도록 추가
2016-01-27 20:55:14 +09:00
conory
614cdf3f63
예외 경우 추가 (에러 수정)
2016-01-27 19:50:13 +09:00
conory
8caa495073
대문자 상수 인식, 템플릿에서 $_SERVER 변수를 사용할 수 있도록 개선
2016-01-27 19:03:16 +09:00
Kijin Sung
acf44a3e03
Clean up method signatures in TemplateHandler
2016-01-22 14:43:37 +09:00
Kijin Sung
b0bfb9a364
Set up replacement table for path conversions
2016-01-12 14:02:26 +09:00
Kijin Sung
386e1658a0
Merge branch 'develop' into refactor/functions
2016-01-10 13:52:35 +09:00
Kijin Sung
840b2356f8
Merge branch 'develop' into fix/context-static-this
2016-01-09 15:18:11 +09:00
Kijin Sung
6c5f9aadd1
Don't use home-made JSON encoder in display handlers
2016-01-08 20:38:35 +09:00
Kijin Sung
db87085967
Remove unnecessary calls to getMicroTime()
2016-01-08 14:05:48 +09:00
Kijin Sung
8dac7bc5e9
Fix inconsistent use of static and non-static methods in Context class
2016-01-08 13:14:03 +09:00
conory
ded0e014a2
PHP7 preg_match_all 함수가 값 반환을 제대로 하지못하는 것 같아 변경.
...
메뉴관리 페이지의 cond 속성을 제대로 처리하지못하는 문제 수정.
2016-01-02 14:49:36 +09:00