本文整理汇总了PHP中dcPage::jsColorPicker方法的典型用法代码示例。如果您正苦于以下问题:PHP dcPage::jsColorPicker方法的具体用法?PHP dcPage::jsColorPicker怎么用?PHP dcPage::jsColorPicker使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dcPage
的用法示例。
在下文中一共展示了dcPage::jsColorPicker方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __
dcPage::open(__('Blog appearance'), dcPage::jsPageTabs() . dcPage::jsColorPicker() . $core->callBehavior('themesToolsHeaders', $core, true), dcPage::breadcrumb(array(html::escapeHTML($core->blog->name) => '', __('Blog appearance') => $list->getURL('', false), '<span class="page-title">' . __('Theme configuration') . '</span>' => '')));
# Display previously gathered content
$list->displayConfiguration();
dcPage::helpBlock('core_blog_theme_conf');
dcPage::close();
# Stop reading code here
return;
}
# -- Execute actions --
try {
$list->doActions();
} catch (Exception $e) {
$core->error->add($e->getMessage());
}
# -- Page header --
dcPage::open(__('Themes management'), dcPage::jsLoad('js/_blog_theme.js') . dcPage::jsPageTabs() . dcPage::jsColorPicker() . $core->callBehavior('themesToolsHeaders', $core, false), dcPage::breadcrumb(array(html::escapeHTML($core->blog->name) => '', '<span class="page-title">' . __('Blog appearance') . '</span>' => '')));
# -- Display modules lists --
if ($core->auth->isSuperAdmin()) {
# Updated modules from repo
$modules = $list->store->get(true);
if (!empty($modules)) {
echo '<div class="multi-part" id="update" title="' . html::escapeHTML(__('Update themes')) . '">' . '<h3>' . html::escapeHTML(__('Update themes')) . '</h3>' . '<p>' . sprintf(__('There is one theme to update available from repository.', 'There are %s themes to update available from repository.', count($modules)), count($modules)) . '</p>';
$list->setList('theme-update')->setTab('themes')->setModules($modules)->displayModules(array('checkbox', 'name', 'sshot', 'desc', 'author', 'version', 'current_version', 'parent'), array('update', 'delete'));
echo '<p class="info vertical-separator">' . sprintf(__("Visit %s repository, the resources center for Dotclear."), '<a href="http://themes.dotaddict.org/galerie-dc2/">Dotaddict</a>') . '</p>' . '</div>';
}
}
# Activated modules
$modules = $list->modules->getModules();
if (!empty($modules)) {
echo '<div class="multi-part" id="themes" title="' . __('Installed themes') . '">' . '<h3>' . __('Installed themes') . '</h3>' . '<p>' . __('You can configure and manage installed themes from this list.') . '</p>';
$list->setList('theme-activate')->setTab('themes')->setModules($modules)->displayModules(array('sshot', 'distrib', 'name', 'config', 'desc', 'author', 'version', 'parent'), array('select', 'behavior', 'deactivate', 'delete'));
示例2: catch
} catch (Exception $e) {
$core->error->add($e->getMessage());
}
}
?>
<html>
<head>
<title><?php
echo __('Blowup configuration');
?>
</title>
<?php
echo dcPage::jsLoad(dcPage::getPF('blowupConfig/config.js'));
?>
<?php
echo dcPage::jsColorPicker();
?>
<script type="text/javascript">
//<![CDATA[
<?php
echo dcPage::jsVar('dotclear.blowup_public_url', blowupConfig::imagesURL());
echo dcPage::jsVar('dotclear.msg.predefined_styles', __('Predefined styles'));
echo dcPage::jsVar('dotclear.msg.apply_code', __('Apply code'));
echo dcPage::jsVar('dotclear.msg.predefined_style_title', __('Choose a predefined style'));
?>
//]]>
</script>
</head>
<body>
<?php
示例3: __
if ($has_css) {
$res .= '<a class="theme-css" href="' . $theme_url . '/style.css">' . __('Stylesheet') . '</a>';
}
$res .= '</p>';
$res .= '</div>' . '<div class="theme-actions">';
if ($current && $has_conf) {
$res .= '<p><a href="blog_theme.php?conf=1" class="button">' . __('Theme configuration') . '</a></p>';
}
if ($current) {
# --BEHAVIOR-- adminCurrentThemeDetails
$res .= $core->callBehavior('adminCurrentThemeDetails', $core, $id, $details);
}
$res .= '</div>' . '</div>';
return $res;
}
dcPage::open(__('Blog themes'), dcPage::jsLoad('js/_blog_theme.js') . dcPage::jsPageTabs($default_tab) . dcPage::jsColorPicker());
if (!$theme_conf_mode) {
echo '<h2>' . html::escapeHTML($core->blog->name) . ' › ' . __('Blog aspect') . '</h2>';
if (!empty($_GET['upd'])) {
echo '<p class="message">' . __('Theme has been successfully changed.') . '</p>';
}
if (!empty($_GET['added'])) {
echo '<p class="message">' . ($_GET['added'] == 2 ? __('Theme has been successfully upgraded') : __('Theme has been successfully installed.')) . '</p>';
}
if (!empty($_GET['del'])) {
echo '<p class="message">' . __('Theme has been successfully deleted.') . '</p>';
}
if ($can_install) {
echo '<p><strong>' . sprintf(__('You can find additional themes for your blog on %s.'), '<a href="http://themes.dotaddict.org/galerie-dc2/">Dotaddict</a>') . '</strong> ' . __('To install or upgrade a theme you generally just need to upload it ' . 'in "Install or upgrade a theme" section.') . '</p>';
}
# Themes list