mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-08 14:59:18 +08:00
feat:3.0.0版初次提交,新版将完全推倒重写
This commit is contained in:
parent
e556c4b6d9
commit
39735249ee
293 changed files with 26908 additions and 475 deletions
78
vendor/loco-translate/tpl/admin/layout.php
vendored
Normal file
78
vendor/loco-translate/tpl/admin/layout.php
vendored
Normal file
|
@ -0,0 +1,78 @@
|
|||
<?php
|
||||
/**
|
||||
* Base layout for all admin pages
|
||||
*/
|
||||
?><div class="wrap" id="loco"><?php
|
||||
|
||||
if( $this->has('breadcrumb') ):?>
|
||||
<h1>
|
||||
<ul><?php
|
||||
/* @var Loco_mvc_ViewParams[] $breadcrumb */
|
||||
foreach( $breadcrumb as $item ):?>
|
||||
<li><?php
|
||||
if( $item->href ):?>
|
||||
<a href="<?php $item->e('href')?>">
|
||||
<?php $item->e('name')?>
|
||||
</a><?php
|
||||
else:?>
|
||||
<span>
|
||||
<?php $item->e('name')?>
|
||||
</span><?php
|
||||
endif?>
|
||||
</li><?php
|
||||
endforeach?>
|
||||
</ul>
|
||||
</h1><?php
|
||||
elseif( $this->has('title') ):?>
|
||||
<h1>
|
||||
<?php $params->e('title')?>
|
||||
</h1><?php
|
||||
endif;
|
||||
|
||||
|
||||
if( $this->has('tabs') ):?>
|
||||
<h2 class="nav-tab-wrapper"><?php
|
||||
/* @var Loco_mvc_ViewParams[] $tabs */
|
||||
foreach( $tabs as $item ):?>
|
||||
<a href="<?php $item->e('href')?>" class="nav-tab<?php echo $item->active?' nav-tab-active':''?>">
|
||||
<?php $item->e('name')?>
|
||||
</a><?php
|
||||
endforeach;?>
|
||||
</h2><?php
|
||||
endif?>
|
||||
|
||||
|
||||
<div id="loco-notices">
|
||||
<noscript>
|
||||
<div class="notice inline notice-danger">
|
||||
<p>
|
||||
<strong class="has-icon icon-warn">JavaScript disabled:</strong>
|
||||
<span>Loco Translate requires JavaScript for most functions to work as expected.</span>
|
||||
</p>
|
||||
</div>
|
||||
</noscript><?php
|
||||
// flush message buffer
|
||||
do_action('loco_admin_notices');
|
||||
// standard file system dialogues
|
||||
if( $params->has('fsFields') ):
|
||||
echo $this->render('common/inc-fsconn');
|
||||
endif;?>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="loco-content">
|
||||
<?php echo $this->_content;?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
/* @var Loco_mvc_ViewParams $js */
|
||||
if( $this->has('js') ):?>
|
||||
<script>
|
||||
/*<![CDATA[*/
|
||||
window.locoConf = <?php echo $js->exportJson()?>;
|
||||
/*]]>*/
|
||||
</script><?php
|
||||
endif;
|
Loading…
Add table
Add a link
Reference in a new issue