本文整理汇总了PHP中dcPage::message方法的典型用法代码示例。如果您正苦于以下问题:PHP dcPage::message方法的具体用法?PHP dcPage::message怎么用?PHP dcPage::message使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dcPage
的用法示例。
在下文中一共展示了dcPage::message方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: serialize
$ductile_user['blog_title_s_m'] = dcThemeConfig::adjustFontSize($_POST['blog_title_s_m']);
$ductile_user['blog_title_c_m'] = dcThemeConfig::adjustColor($_POST['blog_title_c_m']);
$ductile_user['post_title_w_m'] = (int) (!empty($_POST['post_title_w_m']));
$ductile_user['post_title_s_m'] = dcThemeConfig::adjustFontSize($_POST['post_title_s_m']);
$ductile_user['post_title_c_m'] = dcThemeConfig::adjustColor($_POST['post_title_c_m']);
}
$core->blog->settings->addNamespace('themes');
$core->blog->settings->themes->put($core->blog->settings->system->theme . '_style', serialize($ductile_user));
$core->blog->settings->themes->put($core->blog->settings->system->theme . '_stickers', serialize($ductile_stickers));
$core->blog->settings->themes->put($core->blog->settings->system->theme . '_entries_lists', serialize($ductile_lists));
$core->blog->settings->themes->put($core->blog->settings->system->theme . '_entries_counts', serialize($ductile_counts));
// Blog refresh
$core->blog->triggerBlog();
// Template cache reset
$core->emptyTemplatesCache();
dcPage::message(__('Theme configuration upgraded.'), true, true);
} catch (Exception $e) {
$core->error->add($e->getMessage());
}
}
// Legacy mode
if (!$standalone_config) {
echo '</form>';
}
# HTML Tab
echo '<div class="multi-part" id="themes-list' . ($conf_tab == 'html' ? '' : '-html') . '" title="' . __('Content') . '">' . '<h3>' . __('Content') . '</h3>';
echo '<form id="theme_config" action="' . $core->adminurl->get('admin.blog.theme', array('conf' => '1')) . '" method="post" enctype="multipart/form-data">';
echo '<h4>' . __('Header') . '</h4>' . '<p class="field"><label for="subtitle_hidden">' . __('Hide blog description:') . '</label> ' . form::checkbox('subtitle_hidden', 1, $ductile_user['subtitle_hidden']) . '</p>';
echo '<p class="field"><label for="logo_src">' . __('Logo URL:') . '</label> ' . form::field('logo_src', 40, 255, $ductile_user['logo_src']) . '</p>';
if ($core->plugins->moduleExists('simpleMenu')) {
echo '<p>' . sprintf(__('To configure the top menu go to the <a href="%s">Simple Menu administration page</a>.'), $core->adminurl->get('admin.plugin.simpleMenu')) . '</p>';
示例2: __
}
/* DISPLAY
-------------------------------------------------------- */
$form_filter_title = __('Show filters and display options');
$starting_script = dcPage::jsLoad('js/_comments.js');
$starting_script .= dcPage::jsLoad('js/filter-controls.js');
$starting_script .= '<script type="text/javascript">' . "\n" . "//<![CDATA[" . "\n" . dcPage::jsVar('dotclear.msg.show_filters', $show_filters ? 'true' : 'false') . "\n" . dcPage::jsVar('dotclear.msg.filter_posts_list', $form_filter_title) . "\n" . dcPage::jsVar('dotclear.msg.cancel_the_filter', __('Cancel filters and display options')) . "\n" . "//]]>" . "</script>";
dcPage::open(__('Comments and trackbacks'), $starting_script, dcPage::breadcrumb(array(html::escapeHTML($core->blog->name) => '', __('Comments and trackbacks') => '')));
if (!empty($_GET['upd'])) {
dcPage::success(__('Selected comments have been successfully updated.'));
} elseif (!empty($_GET['del'])) {
dcPage::success(__('Selected comments have been successfully deleted.'));
}
if (!$core->error->flag()) {
if (isset($_SESSION['comments_del_spam'])) {
dcPage::message(__('Spam comments have been successfully deleted.'));
unset($_SESSION['comments_del_spam']);
}
$spam_count = $core->blog->getComments(array('comment_status' => -2), true)->f(0);
if ($spam_count > 0) {
echo '<form action="' . $core->adminurl->get("admin.comments") . '" method="post" class="fieldset">';
if (!$with_spam || $status != -2) {
if ($spam_count == 1) {
echo '<p>' . sprintf(__('You have one spam comment.'), '<strong>' . $spam_count . '</strong>') . ' ' . '<a href="' . $core->adminurl->get("admin.comments", array('status' => -2)) . '">' . __('Show it.') . '</a></p>';
} elseif ($spam_count > 1) {
echo '<p>' . sprintf(__('You have %s spam comments.'), '<strong>' . $spam_count . '</strong>') . ' ' . '<a href="' . $core->adminurl->get("admin.comments", array('status' => -2)) . '">' . __('Show them.') . '</a></p>';
}
}
echo '<p>' . $core->formNonce() . '<input name="delete_all_spam" class="delete" type="submit" value="' . __('Delete all spams') . '" /></p>';
# --BEHAVIOR-- adminCommentsSpamForm
$core->callBehavior('adminCommentsSpamForm', $core);
示例3: __
<?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
echo dcPage::breadcrumb(array(html::escapeHTML($core->blog->name) => '', __('Blog appearance') => $core->adminurl->get('admin.blog.theme'), __('Blowup configuration') => '')) . dcPage::notices();
echo '<p><a class="back" href="' . $core->adminurl->get('admin.blog.theme') . '">' . __('Back to Blog appearance') . '</a></p>';
if (!$can_write_images) {
dcPage::message(__('For the following reasons, images cannot be created. You won\'t be able to change some background properties.') . $notices, false, true);
}
echo '<form id="theme_config" action="' . $p_url . '" method="post" enctype="multipart/form-data">';
echo '<div class="fieldset"><h3>' . __('Customization') . '</h3>' . '<h4>' . __('General') . '</h4>';
if ($can_write_images) {
echo '<p class="field"><label for="body_bg_c">' . __('Background color:') . '</label> ' . form::field('body_bg_c', 7, 7, $blowup_user['body_bg_c'], 'colorpicker') . '</p>' . '<p class="field"><label for="body_bg_g">' . __('Background color fill:') . '</label> ' . form::combo('body_bg_g', $gradient_types, $blowup_user['body_bg_g']) . '</p>';
}
echo '<p class="field"><label for="body_txt_f">' . __('Main text font:') . '</label> ' . form::combo('body_txt_f', blowupConfig::fontsList(), $blowup_user['body_txt_f']) . '</p>' . '<p class="field"><label for="body_txt_s">' . __('Main text font size:') . '</label> ' . form::field('body_txt_s', 7, 7, $blowup_user['body_txt_s']) . '</p>' . '<p class="field"><label for="body_txt_c">' . __('Main text color:') . '</label> ' . form::field('body_txt_c', 7, 7, $blowup_user['body_txt_c'], 'colorpicker') . '</p>' . '<p class="field"><label for="body_line_height">' . __('Text line height:') . '</label> ' . form::field('body_line_height', 7, 7, $blowup_user['body_line_height']) . '</p>' . '<h4 class="border-top">' . __('Links') . '</h4>' . '<p class="field"><label for="body_link_c">' . __('Links color:') . '</label> ' . form::field('body_link_c', 7, 7, $blowup_user['body_link_c'], 'colorpicker') . '</p>' . '<p class="field"><label for="body_link_v_c">' . __('Visited links color:') . '</label> ' . form::field('body_link_v_c', 7, 7, $blowup_user['body_link_v_c'], 'colorpicker') . '</p>' . '<p class="field"><label for="body_link_f_c">' . __('Focus links color:') . '</label> ' . form::field('body_link_f_c', 7, 7, $blowup_user['body_link_f_c'], 'colorpicker') . '</p>' . '<h4 class="border-top">' . __('Page top') . '</h4>';
if ($can_write_images) {
echo '<p class="field"><label for="prelude_c">' . __('Prelude color:') . '</label> ' . form::field('prelude_c', 7, 7, $blowup_user['prelude_c'], 'colorpicker') . '</p>';
}
echo '<p class="field"><label for="blog_title_hide">' . __('Hide main title') . '</label> ' . form::checkbox('blog_title_hide', 1, $blowup_user['blog_title_hide']) . '</p>' . '<p class="field"><label for="blog_title_f">' . __('Main title font:') . '</label> ' . form::combo('blog_title_f', blowupConfig::fontsList(), $blowup_user['blog_title_f']) . '</p>' . '<p class="field"><label for="blog_title_s">' . __('Main title font size:') . '</label> ' . form::field('blog_title_s', 7, 7, $blowup_user['blog_title_s']) . '</p>' . '<p class="field"><label for="blog_title_c">' . __('Main title color:') . '</label> ' . form::field('blog_title_c', 7, 7, $blowup_user['blog_title_c'], 'colorpicker') . '</p>' . '<p class="field"><label for="blog_title_a">' . __('Main title alignment:') . '</label> ' . form::combo('blog_title_a', array(__('center') => 'center', __('left') => 'left', __('right') => 'right'), $blowup_user['blog_title_a']) . '</p>' . '<p class="field"><label for="blog_title_p">' . __('Main title position (x:y)') . '</label> ' . form::field('blog_title_p', 7, 7, $blowup_user['blog_title_p']) . '</p>';
if ($can_write_images) {
if ($blowup_user['top_image'] == 'custom' && $blowup_user['uploaded']) {
$preview_image = http::concatURL($core->blog->url, blowupConfig::imagesURL() . '/page-t.png');
} else {
示例4: Copyright
<?php
# -- BEGIN LICENSE BLOCK ---------------------------------------
#
# This file is part of Dotclear 2.
#
# Copyright (c) 2003-2013 Olivier Meunier & Association Dotclear
# Licensed under the GPL version 2.0 license.
# See LICENSE file or
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK -----------------------------------------
if (!defined('DC_CONTEXT_ADMIN')) {
return;
}
l10n::set(dirname(__FILE__) . '/locales/' . $_lang . '/main');
$css_file = path::real($core->blog->public_path) . '/custom_style.css';
if (!is_file($css_file) && !is_writable(dirname($css_file))) {
throw new Exception(sprintf(__('File %s does not exist and directory %s is not writable.'), $css_file, dirname($css_file)));
}
if (isset($_POST['css'])) {
@($fp = fopen($css_file, 'wb'));
fwrite($fp, $_POST['css']);
fclose($fp);
dcPage::message(__('Style sheet upgraded.'), true, true);
}
$css_content = is_file($css_file) ? file_get_contents($css_file) : '';
echo '<p class="area"><label>' . __('Style sheet:') . '</label> ' . form::textarea('css', 60, 20, html::escapeHTML($css_content)) . '</p>';
示例5: adminUserList
$rsStatic = $rs->toStatic();
if ($sortby != 'nb_post') {
// Sort user list using lexical order if necessary
$rsStatic->extend('rsExtUser');
$rsStatic = $rsStatic->toExtStatic();
$rsStatic->lexicalSort($sortby, $order);
}
$user_list = new adminUserList($core, $rsStatic, $counter->f(0));
} catch (Exception $e) {
$core->error->add($e->getMessage());
}
/* DISPLAY
-------------------------------------------------------- */
$form_filter_title = __('Show filters and display options');
$starting_script = dcPage::jsLoad('js/_users.js');
$starting_script .= dcPage::jsLoad('js/filter-controls.js');
$starting_script .= '<script type="text/javascript">' . "\n" . "//<![CDATA[" . "\n" . dcPage::jsVar('dotclear.msg.show_filters', $show_filters ? 'true' : 'false') . "\n" . dcPage::jsVar('dotclear.msg.filter_posts_list', $form_filter_title) . "\n" . dcPage::jsVar('dotclear.msg.cancel_the_filter', __('Cancel filters and display options')) . "\n" . "//]]>" . "</script>";
dcPage::open(__('Users'), $starting_script, dcPage::breadcrumb(array(__('System') => '', __('Users') => '')));
if (!$core->error->flag()) {
if (!empty($_GET['del'])) {
dcPage::message(__('User has been successfully removed.'));
}
if (!empty($_GET['upd'])) {
dcPage::message(__('The permissions have been successfully updated.'));
}
echo '<p class="top-add"><strong><a class="button add" href="' . $core->adminurl->get("admin.user") . '">' . __('New user') . '</a></strong></p>' . '<form action="' . $core->adminurl->get("admin.users") . '" method="get" id="filters-form">' . '<h3 class="out-of-screen-if-js">' . $form_filter_title . '</h3>' . '<div class="table">' . '<div class="cell">' . '<h4>' . __('Filters') . '</h4>' . '<p><label for="q" class="ib">' . __('Search:') . '</label> ' . form::field('q', 20, 255, html::escapeHTML($q)) . '</p>' . '</div>' . '<div class="cell filters-options">' . '<h4>' . __('Display options') . '</h4>' . '<p><label for="sortby" class="ib">' . __('Order by:') . '</label> ' . form::combo('sortby', $sortby_combo, $sortby) . '</p> ' . '<p><label for="order" class="ib">' . __('Sort:') . '</label> ' . form::combo('order', $order_combo, $order) . '</p>' . '<p><span class="label ib">' . __('Show') . '</span> <label for="nb" class="classic">' . form::field('nb', 3, 3, $nb_per_page) . ' ' . __('users per page') . '</label></p> ' . '</div>' . '</div>' . '<p><input type="submit" value="' . __('Apply filters and display options') . '" />' . '<br class="clear" /></p>' . '</form>';
# Show users
$user_list->display($page, $nb_per_page, '<form action="' . $core->adminurl->get("admin.user.actions") . '" method="post" id="form-users">' . '%s' . '<div class="two-cols">' . '<p class="col checkboxes-helpers"></p>' . '<p class="col right"><label for="action" class="classic">' . __('Selected users action:') . ' ' . form::combo('action', $combo_action) . '</label> ' . '<input type="submit" value="' . __('ok') . '" />' . form::hidden(array('q'), html::escapeHTML($q)) . form::hidden(array('sortby'), $sortby) . form::hidden(array('order'), $order) . form::hidden(array('page'), $page) . form::hidden(array('nb'), $nb_per_page) . $core->formNonce() . '</p>' . '</div>' . '</form>', $show_filters);
}
dcPage::helpBlock('core_users');
dcPage::close();
示例6: __
$media_type = 'mp3';
echo '<div class="two-boxes">' . '<h3>' . __('MP3 disposition') . '</h3>';
dcPage::message(__("Please note that you cannot insert mp3 files with visual editor."), false);
$i_align = array('none' => array(__('None'), $media_img_default_alignment == 'none' ? 1 : 0), 'left' => array(__('Left'), $media_img_default_alignment == 'left' ? 1 : 0), 'right' => array(__('Right'), $media_img_default_alignment == 'right' ? 1 : 0), 'center' => array(__('Center'), $media_img_default_alignment == 'center' ? 1 : 0));
echo '<p>';
foreach ($i_align as $k => $v) {
echo '<label class="classic">' . form::radio(array('alignment'), $k, $v[1]) . ' ' . $v[0] . '</label><br /> ';
}
$public_player_style = unserialize($core->blog->settings->themes->mp3player_style);
$public_player = dcMedia::audioPlayer($file->type, $file->file_url, $core->blog->getQmarkURL() . 'pf=player_mp3.swf', $public_player_style, $core->blog->settings->system->media_flash_fallback);
echo form::hidden('public_player', html::escapeHTML($public_player));
echo '</p>';
echo '</div>';
} elseif ($file_type[0] == 'video') {
$media_type = 'flv';
dcPage::message(__("Please note that you cannot insert video files with visual editor."), false);
echo '<div class="two-boxes">' . '<h3>' . __('Video size') . '</h3>' . '<p><label for="video_w" class="classic">' . __('Width:') . '</label> ' . form::field('video_w', 3, 4, $core->blog->settings->system->media_video_width) . ' ' . '<label for="video_h" class="classic">' . __('Height:') . '</label> ' . form::field('video_h', 3, 4, $core->blog->settings->system->media_video_height) . '</p>' . '</div>';
echo '<div class="two-boxes">' . '<h3>' . __('Video disposition') . '</h3>';
$i_align = array('none' => array(__('None'), $media_img_default_alignment == 'none' ? 1 : 0), 'left' => array(__('Left'), $media_img_default_alignment == 'left' ? 1 : 0), 'right' => array(__('Right'), $media_img_default_alignment == 'right' ? 1 : 0), 'center' => array(__('Center'), $media_img_default_alignment == 'center' ? 1 : 0));
echo '<p>';
foreach ($i_align as $k => $v) {
echo '<label class="classic">' . form::radio(array('alignment'), $k, $v[1]) . ' ' . $v[0] . '</label><br /> ';
}
$public_player_style = unserialize($core->blog->settings->themes->flvplayer_style);
$public_player = dcMedia::videoPlayer($file->type, $file->file_url, $core->blog->getQmarkURL() . 'pf=player_flv.swf', $public_player_style, $core->blog->settings->system->media_flash_fallback);
echo form::hidden('public_player', html::escapeHTML($public_player));
echo '</p>';
echo '</div>';
} else {
$media_type = 'default';
echo '<p>' . __('Media item will be inserted as a link.') . '</p>';
示例7: __
echo dcPage::breadcrumb(array(html::escapeHTML($core->blog->name) => '', __('Pages') => $p_url, $edit_entry_title => ''));
if (!empty($_GET['upd'])) {
dcPage::success(__('Page has been successfully updated.'));
} elseif (!empty($_GET['crea'])) {
dcPage::success(__('Page has been successfully created.'));
} elseif (!empty($_GET['attached'])) {
dcPage::success(__('File has been successfully attached.'));
} elseif (!empty($_GET['rmattach'])) {
dcPage::success(__('Attachment has been successfully removed.'));
}
# XHTML conversion
if (!empty($_GET['xconv'])) {
$post_excerpt = $post_excerpt_xhtml;
$post_content = $post_content_xhtml;
$post_format = 'xhtml';
dcPage::message(__('Don\'t forget to validate your XHTML conversion by saving your post.'));
}
if ($post_id && $post->post_status == 1) {
echo '<p><a class="onblog_link outgoing" href="' . $post->getURL() . '" title="' . html::escapeHTML($post_title) . '">' . __('Go to this page on the site') . ' <img src="images/outgoing-blue.png" alt="" /></a></p>';
}
echo '';
if ($post_id) {
echo '<p class="nav_prevnext">';
if ($prev_link) {
echo $prev_link;
}
if ($next_link && $prev_link) {
echo ' | ';
}
if ($next_link) {
echo $next_link;