mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
remove smartphone class
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7546 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e9ce46a6a6
commit
8bb65beb74
2 changed files with 0 additions and 32 deletions
|
|
@ -1,28 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* @class pageSmartphone
|
||||
* @author zero (skklove@gmail.com)
|
||||
* @brief page 모듈의 SmartPhone class
|
||||
**/
|
||||
|
||||
class pageSPhone extends page {
|
||||
|
||||
function procSmartPhone(&$oSmartPhone)
|
||||
{
|
||||
if(!$this->grant->access) return $oSmartPhone->setContent(Context::getLang('msg_not_permitted'));
|
||||
|
||||
// 위젯을 1렬로 정렬
|
||||
preg_match_all('!(<img)([^\>]*)(widget=)([^\>]*?)(\>)!is', $this->module_info->content, $matches);
|
||||
$content = '';
|
||||
for($i=0,$c=count($matches[0]);$i<$c;$i++) {
|
||||
$content .= preg_replace('/ style\=\"([^\"]+)\" /i',' style="overflow:hidden;clear:both;margin:0 0 20px 0; _margin-right:10px;" ',$matches[0][$i])."\n\n";
|
||||
}
|
||||
Context::set('content', $content);
|
||||
|
||||
$oTemplate = new TemplateHandler();
|
||||
$content = $oTemplate->compile($this->module_path.'tpl','smartphone');
|
||||
|
||||
$oSmartPhone->setContent($content);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
<div class="smartPhoneContent">
|
||||
{$content}
|
||||
</div>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue