mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
#18973574 : language select for mobile view
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7568 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b44de307e6
commit
c199130aba
4 changed files with 34 additions and 0 deletions
|
|
@ -37,5 +37,7 @@
|
|||
<action name="procModuleAdminModuleGrantSetup" type="controller" standalone="true" />
|
||||
<action name="procModuleAdminInsertLang" type="controller" standalone="true" />
|
||||
<action name="procModuleAdminDeleteLang" type="controller" standalone="true" />
|
||||
|
||||
<action name="dispModuleChangeLang" type="mobile" />
|
||||
</actions>
|
||||
</module>
|
||||
|
|
|
|||
8
modules/module/module.mobile.php
Normal file
8
modules/module/module.mobile.php
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
|
||||
class moduleMobile extends moduleObject {
|
||||
function dispModuleChangeLang() {
|
||||
$this->setTemplatePath(sprintf("%stpl/",$this->module_path));
|
||||
$this->setTemplateFile('lang.html');
|
||||
}
|
||||
}
|
||||
12
modules/module/tpl/css/mlang.css
Normal file
12
modules/module/tpl/css/mlang.css
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
/* Body */
|
||||
.bd{position:relative;overflow:hidden;clear:both}
|
||||
/* GNB */
|
||||
.gn,.gn ul{margin:0;padding:0;list-style:none}
|
||||
.gn li{margin:-1px 0;border:1px solid #999;border-left:0;border-right:0;vertical-align:top}
|
||||
.gn li a{display:block;text-decoration:none;height:45px;line-height:45px;padding:0 10px;color:#000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
||||
.gn li strong{display:block;text-decoration:none;height:45px;line-height:45px;padding:0 10px;color:#000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
||||
.gn li a em{font-weight:normal;color:#f60;font-size:12px}
|
||||
.gn li a:visited{color:#666}
|
||||
.gn li li a{padding:0 10px 0 20px}
|
||||
.gn li li li a{padding:0 10px 0 30px}
|
||||
.gn li li li li a{padding:0 10px 0 50px}
|
||||
12
modules/module/tpl/lang.html
Normal file
12
modules/module/tpl/lang.html
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<!--%import("css/mlang.css")-->
|
||||
<div class="bd">
|
||||
<ul class="gn">
|
||||
<!--@foreach($lang_supported as $key=>$val)-->
|
||||
<!--@if($key != $lang_type)-->
|
||||
<li><a href="{getUrl('act',$oldact,'l',$key)}">{$val}</a></li>
|
||||
<!--@else-->
|
||||
<li><strong>{$val}</strong></li>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
</ul>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue