本文整理汇总了PHP中Flash::setFlash方法的典型用法代码示例。如果您正苦于以下问题:PHP Flash::setFlash方法的具体用法?PHP Flash::setFlash怎么用?PHP Flash::setFlash使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Flash
的用法示例。
在下文中一共展示了Flash::setFlash方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: motopressVisualEditor
function motopressVisualEditor()
{
global $motopressSettings;
$lang = getLanguageDict();
wp_register_style('style', plugin_dir_url(__FILE__) . 'includes/css/style.css', null, $motopressSettings['plugin_version']);
wp_enqueue_style('style');
$copyErrors = copyParentFiles();
if (!empty($copyErrors)) {
Flash::setFlash($copyErrors, 'error');
} else {
$initTemplate = new InitTemplate();
$initErrors = $initTemplate->identify();
if (!empty($initErrors)) {
Flash::setFlash($initErrors, 'error');
} else {
?>
<div class="navbar motopress-navbar">
<div class="navbar-inner">
<div id="motopress-logo">
<img src="<?php
echo $motopressSettings['plugin_root_url'] . '/' . $motopressSettings['plugin_name'] . '/images/logo.png?ver=' . $motopressSettings['plugin_version'];
?>
" />
</div>
<div id="motopress-editor-group">
<div class="pull-left navbar-form motopress-navbar">
<ul class="nav">
<li>
<span><?php
echo $lang->page;
?>
</span>
<?php
require_once 'includes/showPageList.php';
?>
</li>
<li id="motopress-page-templates-wrapper">
<!--<span id="motopress-page-templates-wrapper">-->
<span><?php
echo $lang->template;
?>
</span>
<?php
require_once 'includes/showTemplateList.php';
?>
<!--</span>-->
<button class="btn-default" id="motopress-duplicate-template" data-toggle="modal" data-target="#motopress-duplicate-modal"><?php
echo $lang->duplicate;
?>
</button>
</li>
</ul>
</div>
</div>
<div id="motopress-preview-group" style="display: none">
<button class="btn-default pull-left active" data-toggle="button" id="motopress-show-hide-blocks">
<i class="icon-eye-open"></i> <span><?php
echo $lang->showHiddenBlocks;
?>
</span>
</button>
</div>
<div class="pull-right">
<ul class="nav pull-right">
<li>
<button class="btn-blue" id="motopress-save"><?php
echo $lang->save;
?>
</button>
<!--<button class="btn-red" id="motopress-reset"><?php
//echo $lang->reset;
?>
</button>-->
<button class="btn-default" id="motopress-visit-site"><?php
echo $lang->visitSite;
?>
</button>
</li>
<li class="dropdown" id="screenViews">
<a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown">
<div id="currentViewMode" class="screen-views-icon screen-views-editor-icon"></div>
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="javascript:void(0);" id="defaultScreenView"><div class="screen-views-icon screen-views-desktop-icon"></div></a><hr/></li>
<li><a href="javascript:void(0);" id="tabletScreenView"><div class="screen-views-icon screen-views-tablet-icon"></div></a><hr/></li>
<li><a href="javascript:void(0);" id="phoneScreenView"><div class="screen-views-icon screen-views-phone-icon"></div></a><hr/></li>
<li><a href="javascript:void(0);" id="editorView"><div class="screen-views-icon screen-views-editor-icon"></div></a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
<div id="motopress-flash"></div>
//.........这里部分代码省略.........