当前位置: 首页>>代码示例>>PHP>>正文


PHP dcPage类代码示例

本文整理汇总了PHP中dcPage的典型用法代码示例。如果您正苦于以下问题:PHP dcPage类的具体用法?PHP dcPage怎么用?PHP dcPage使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了dcPage类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: breadcrumb

 public static function breadcrumb($elements = null, $options = array())
 {
     if (method_exists('dcPage', 'breadcrumb')) {
         return dcPage::breadcrumb($elements, $options);
     } else {
         $with_home_link = isset($options['home_link']) ? $options['home_link'] : true;
         $hl = isset($options['hl']) ? $options['hl'] : true;
         $hl_pos = isset($options['hl_pos']) ? $options['hl_pos'] : -1;
         // First item of array elements should be blog's name, System or Plugins
         $res = '<h2>';
         $index = 0;
         if ($hl_pos < 0) {
             $hl_pos = count($elements) + $hl_pos;
         }
         foreach ($elements as $element => $url) {
             if ($hl && $index == $hl_pos) {
                 $element = sprintf('<span class="page-title">%s</span>', $element);
             }
             $res .= ($index == 0 ? ' ' : ' &rsaquo; ') . ($url ? '<a href="' . $url . '">' : '') . $element . ($url ? '</a>' : '');
             $index++;
         }
         $res .= '</h2>';
         return $res;
     }
 }
开发者ID:nikrou,项目名称:tagDescription,代码行数:25,代码来源:tag.description.tpl.php

示例2: gui

 public function gui()
 {
     if ($this->status) {
         dcPage::success(__('Content successfully imported.'));
     }
     echo '<form action="' . $this->getURL(true) . '" method="post">' . '<p>' . sprintf(__('Add a feed content to the current blog: <strong>%s</strong>.'), html::escapeHTML($this->core->blog->name)) . '</p>' . '<p><label for="feed_url">' . __('Feed URL:') . '</label>' . form::field('feed_url', 50, 300, html::escapeHTML($this->feed_url)) . '</p>' . '<p>' . $this->core->formNonce() . form::hidden(array('do'), 1) . '<input type="submit" value="' . __('Import') . '" /></p>' . '</form>';
 }
开发者ID:nikrou,项目名称:dotclear,代码行数:7,代码来源:class.dc.import.feed.php

示例3: adminPopupPosts

 public static function adminPopupPosts($editor = '')
 {
     if (empty($editor) || $editor != 'dcCKEditor') {
         return;
     }
     return dcPage::jsLoad(self::$p_url . '/js/popup_posts.js');
 }
开发者ID:nikrou,项目名称:dotclear,代码行数:7,代码来源:dc.ckeditor.behaviors.php

示例4: jsToolBar

 protected static function jsToolBar()
 {
     $res = dcPage::cssLoad(dcPage::getPF('dcLegacyEditor/css/jsToolBar/jsToolBar.css')) . dcPage::jsLoad(dcPage::getPF('dcLegacyEditor/js/jsToolBar/jsToolBar.js'));
     if (isset($GLOBALS['core']->auth) && $GLOBALS['core']->auth->getOption('enable_wysiwyg')) {
         $res .= dcPage::jsLoad(dcPage::getPF('dcLegacyEditor/js/jsToolBar/jsToolBar.wysiwyg.js'));
     }
     $res .= dcPage::jsLoad(dcPage::getPF('dcLegacyEditor/js/jsToolBar/jsToolBar.dotclear.js')) . '<script type="text/javascript">' . "\n" . "//<![CDATA[\n" . "jsToolBar.prototype.dialog_url = 'popup.php'; " . "jsToolBar.prototype.iframe_css = '" . 'body{' . 'font: 12px "DejaVu Sans","Lucida Grande","Lucida Sans Unicode",Arial,sans-serif;' . 'color : #000;' . 'background: #f9f9f9;' . 'margin: 0;' . 'padding : 2px;' . 'border: none;' . (l10n::getTextDirection($GLOBALS['_lang']) == 'rtl' ? 'direction:rtl;' : '') . '}' . 'pre, code, kbd, samp {' . 'font-family:"Courier New",Courier,monospace;' . 'font-size : 1.1em;' . '}' . 'code {' . 'color : #666;' . 'font-weight : bold;' . '}' . 'body > p:first-child {' . 'margin-top: 0;' . '}' . "'; " . "jsToolBar.prototype.base_url = '" . html::escapeJS($GLOBALS['core']->blog->host) . "'; " . "jsToolBar.prototype.switcher_visual_title = '" . html::escapeJS(__('visual')) . "'; " . "jsToolBar.prototype.switcher_source_title = '" . html::escapeJS(__('source')) . "'; " . "jsToolBar.prototype.legend_msg = '" . html::escapeJS(__('You can use the following shortcuts to format your text.')) . "'; " . "jsToolBar.prototype.elements.blocks.options.none = '" . html::escapeJS(__('-- none --')) . "'; " . "jsToolBar.prototype.elements.blocks.options.nonebis = '" . html::escapeJS(__('-- block format --')) . "'; " . "jsToolBar.prototype.elements.blocks.options.p = '" . html::escapeJS(__('Paragraph')) . "'; " . "jsToolBar.prototype.elements.blocks.options.h1 = '" . html::escapeJS(__('Level 1 header')) . "'; " . "jsToolBar.prototype.elements.blocks.options.h2 = '" . html::escapeJS(__('Level 2 header')) . "'; " . "jsToolBar.prototype.elements.blocks.options.h3 = '" . html::escapeJS(__('Level 3 header')) . "'; " . "jsToolBar.prototype.elements.blocks.options.h4 = '" . html::escapeJS(__('Level 4 header')) . "'; " . "jsToolBar.prototype.elements.blocks.options.h5 = '" . html::escapeJS(__('Level 5 header')) . "'; " . "jsToolBar.prototype.elements.blocks.options.h6 = '" . html::escapeJS(__('Level 6 header')) . "'; " . "jsToolBar.prototype.elements.strong.title = '" . html::escapeJS(__('Strong emphasis')) . "'; " . "jsToolBar.prototype.elements.em.title = '" . html::escapeJS(__('Emphasis')) . "'; " . "jsToolBar.prototype.elements.ins.title = '" . html::escapeJS(__('Inserted')) . "'; " . "jsToolBar.prototype.elements.del.title = '" . html::escapeJS(__('Deleted')) . "'; " . "jsToolBar.prototype.elements.quote.title = '" . html::escapeJS(__('Inline quote')) . "'; " . "jsToolBar.prototype.elements.code.title = '" . html::escapeJS(__('Code')) . "'; " . "jsToolBar.prototype.elements.br.title = '" . html::escapeJS(__('Line break')) . "'; " . "jsToolBar.prototype.elements.blockquote.title = '" . html::escapeJS(__('Blockquote')) . "'; " . "jsToolBar.prototype.elements.pre.title = '" . html::escapeJS(__('Preformated text')) . "'; " . "jsToolBar.prototype.elements.ul.title = '" . html::escapeJS(__('Unordered list')) . "'; " . "jsToolBar.prototype.elements.ol.title = '" . html::escapeJS(__('Ordered list')) . "'; " . "jsToolBar.prototype.elements.link.title = '" . html::escapeJS(__('Link')) . "'; " . "jsToolBar.prototype.elements.link.href_prompt = '" . html::escapeJS(__('URL?')) . "'; " . "jsToolBar.prototype.elements.link.hreflang_prompt = '" . html::escapeJS(__('Language?')) . "'; " . "jsToolBar.prototype.elements.img.title = '" . html::escapeJS(__('External image')) . "'; " . "jsToolBar.prototype.elements.img.src_prompt = '" . html::escapeJS(__('URL?')) . "'; " . "jsToolBar.prototype.elements.img_select.title = '" . html::escapeJS(__('Media chooser')) . "'; " . "jsToolBar.prototype.elements.post_link.title = '" . html::escapeJS(__('Link to an entry')) . "'; " . "jsToolBar.prototype.elements.removeFormat = jsToolBar.prototype.elements.removeFormat || {}; " . "jsToolBar.prototype.elements.removeFormat.title = '" . html::escapeJS(__('Remove text formating')) . "'; ";
     if (!$GLOBALS['core']->auth->check('media,media_admin', $GLOBALS['core']->blog->id)) {
         $res .= "jsToolBar.prototype.elements.img_select.disabled = true;\n";
     }
     $res .= "jsToolBar.prototype.toolbar_bottom = " . (isset($GLOBALS['core']->auth) && $GLOBALS['core']->auth->getOption('toolbar_bottom') ? 'true' : 'false') . ";\n";
     $res .= "\n//]]>\n" . "</script>\n";
     return $res;
 }
开发者ID:nikrou,项目名称:dotclear,代码行数:14,代码来源:dc.legacy.editor.behaviors.php

示例5: gui

 public function gui($url)
 {
     $bls = $this->getServers();
     if (isset($_POST['bls'])) {
         try {
             $this->core->blog->settings->addNamespace('antispam');
             $this->core->blog->settings->antispam->put('antispam_dnsbls', $_POST['bls'], 'string', 'Antispam DNSBL servers', true, false);
             dcPage::addSuccessNotice(__('The list of DNSBL servers has been succesfully updated.'));
             http::redirect($url);
         } catch (Exception $e) {
             $core->error->add($e->getMessage());
         }
     }
     /* DISPLAY
     		---------------------------------------------- */
     $res = dcPage::notices();
     $res .= '<form action="' . html::escapeURL($url) . '" method="post" class="fieldset">' . '<h3>' . __('IP Lookup servers') . '</h3>' . '<p><label for="bls">' . __('Add here a coma separated list of servers.') . '</label>' . form::textarea('bls', 40, 3, html::escapeHTML($bls), 'maximal') . '</p>' . '<p><input type="submit" value="' . __('Save') . '" />' . $this->core->formNonce() . '</p>' . '</form>';
     return $res;
 }
开发者ID:nikrou,项目名称:dotclear,代码行数:19,代码来源:class.dc.filter.iplookup.php

示例6: doReorderPages

 public static function doReorderPages($core, dcPostsActionsPage $ap, $post)
 {
     foreach ($post['order'] as $post_id => $value) {
         if (!$core->auth->check('publish,contentadmin', $core->blog->id)) {
             throw new Exception(__('You are not allowed to change this entry status'));
         }
         $strReq = "WHERE blog_id = '" . $core->con->escape($core->blog->id) . "' " . "AND post_id " . $core->con->in($post_id);
         #If user can only publish, we need to check the post's owner
         if (!$core->auth->check('contentadmin', $core->blog->id)) {
             $strReq .= "AND user_id = '" . $core->con->escape($core->auth->userID()) . "' ";
         }
         $cur = $core->con->openCursor($core->prefix . 'post');
         $cur->post_position = (int) $value - 1;
         $cur->post_upddt = date('Y-m-d H:i:s');
         $cur->update($strReq);
         $core->blog->triggerBlog();
     }
     dcPage::addSuccessNotice(__('Selected pages have been successfully reordered.'));
     $ap->redirect(false);
 }
开发者ID:nikrou,项目名称:dotclear,代码行数:20,代码来源:class.actionpage.php

示例7: gui

 public function gui($url)
 {
     global $default_tab;
     $core =& $this->core;
     # Set current type and tab
     $ip_type = 'black';
     if (!empty($_REQUEST['ip_type']) && $_REQUEST['ip_type'] == 'white') {
         $ip_type = 'white';
     }
     $default_tab = 'tab_' . $ip_type;
     # Add IP to list
     if (!empty($_POST['addip'])) {
         try {
             $global = !empty($_POST['globalip']) && $core->auth->isSuperAdmin();
             $this->addIP($ip_type, $_POST['addip'], $global);
             dcPage::addSuccessNotice(__('IP address has been successfully added.'));
             http::redirect($url . '&ip_type=' . $ip_type);
         } catch (Exception $e) {
             $core->error->add($e->getMessage());
         }
     }
     # Remove IP from list
     if (!empty($_POST['delip']) && is_array($_POST['delip'])) {
         try {
             $this->removeRule($_POST['delip']);
             dcPage::addSuccessNotice(__('IP addresses have been successfully removed.'));
             http::redirect($url . '&ip_type=' . $ip_type);
         } catch (Exception $e) {
             $core->error->add($e->getMessage());
         }
     }
     /* DISPLAY
     		---------------------------------------------- */
     $res = dcPage::notices();
     $res .= $this->displayForms($url, 'black', __('Blacklist')) . $this->displayForms($url, 'white', __('Whitelist'));
     return $res;
 }
开发者ID:nikrou,项目名称:dotclear,代码行数:37,代码来源:class.dc.filter.ip.php

示例8: adminPageHTMLHead

    public static function adminPageHTMLHead()
    {
        global $core;
        if ($core->blog->settings->system->theme != 'ductile') {
            return;
        }
        echo "\n" . '<!-- Header directives for Ductile configuration -->' . "\n";
        $core->auth->user_prefs->addWorkspace('accessibility');
        if (!$core->auth->user_prefs->accessibility->nodragdrop) {
            echo dcPage::jsLoad('js/jquery/jquery-ui.custom.js') . dcPage::jsLoad('js/jquery/jquery.ui.touch-punch.js');
            echo <<<EOT
<script type="text/javascript">
//<![CDATA[
\$(function() {
\t\$("#stickerslist").sortable({'cursor':'move'});
\t\$("#stickerslist tr").hover(function () {
\t\t\$(this).css({'cursor':'move'});
\t}, function () {
\t\t\$(this).css({'cursor':'auto'});
\t});
\t\$('#theme_config').submit(function() {
\t\tvar order=[];
\t\t\$("#stickerslist tr td input.position").each(function() {
\t\t\torder.push(this.name.replace(/^order\\[([^\\]]+)\\]\$/,'\$1'));
\t\t});
\t\t\$("input[name=ds_order]")[0].value = order.join(',');
\t\treturn true;
\t});
\t\$("#stickerslist tr td input.position").hide();
\t\$("#stickerslist tr td.handle").addClass('handler');
});
//]]>
</script>
EOT;
        }
    }
开发者ID:nikrou,项目名称:dotclear,代码行数:36,代码来源:_prepend.php

示例9: pagesDashboardFavs

 public static function pagesDashboardFavs($core, $favs)
 {
     $favs->register('pages', array('title' => __('Pages'), 'url' => $core->adminurl->get('admin.plugin.pages'), 'small-icon' => dcPage::getPF('pages/icon.png'), 'large-icon' => dcPage::getPF('pages/icon-big.png'), 'permissions' => 'contentadmin,pages', 'dashboard_cb' => array('pagesDashboard', 'pagesDashboardCB'), 'active_cb' => array('pagesDashboard', 'pagesActiveCB')));
     $favs->register('newpage', array('title' => __('New page'), 'url' => $core->adminurl->get('admin.plugin.pages', array('act' => 'page')), 'small-icon' => dcPage::getPF('pages/icon-np.png'), 'large-icon' => dcPage::getPF('pages/icon-np-big.png'), 'permissions' => 'contentadmin,pages', 'active_cb' => array('pagesDashboard', 'newPageActiveCB')));
 }
开发者ID:nikrou,项目名称:dotclear,代码行数:5,代码来源:_admin.php

示例10: __

                    }
                }
                $res_task .= '</p>';
            }
            if (!empty($res_task)) {
                $res_group .= '<div class="fieldset">' . '<h4 id="' . $group_obj->id() . '">' . $group_obj->name() . '</h4>' . $res_task . '</div>';
            }
        }
        if (!empty($res_group)) {
            echo '<div id="' . $tab_obj->id() . '" class="multi-part" title="' . $tab_obj->name() . '">' . '<h3>' . $tab_obj->name() . '</h3>' . '<form action="' . $p_url . '" method="post">' . $res_group . '<p><input type="submit" value="' . __('Execute task') . '" /> ' . form::hidden(array('tab'), $tab_obj->id()) . $core->formNonce() . '</p>' . '<p class="form-note info">' . __('This may take a very long time.') . '</p>' . '</form>' . '</div>';
        }
    }
    // Advanced tasks (that required a tab)
    foreach ($tasks as $t) {
        if (!$t->id() || $t->group() !== null) {
            continue;
        }
        echo '<div id="' . $t->id() . '" class="multi-part" title="' . $t->name() . '">' . '<h3>' . $t->name() . '</h3>' . '<form action="' . $p_url . '" method="post">' . $t->content() . '<p><input type="submit" value="' . __('Execute task') . '" /> ' . form::hidden(array('task'), $t->id()) . form::hidden(array('tab'), $t->id()) . $core->formNonce() . '</p>' . '</form>' . '</div>';
    }
    // Settings
    echo '<div id="settings" class="multi-part" title="' . __('Alert settings') . '">' . '<h3>' . __('Alert settings') . '</h3>' . '<form action="' . $p_url . '" method="post">' . '<h4 class="pretty-title">' . __('Activation') . '</h4>' . '<p><label for="settings_plugin_message" class="classic">' . form::checkbox('settings_plugin_message', 1, $core->blog->settings->maintenance->plugin_message) . __('Display alert messages on late tasks') . '</label></p>' . '<p class="info">' . sprintf(__('You can place list of late tasks on your %s.'), '<a href="' . $core->adminurl->get('admin.user.preferences') . '#user-favorites">' . __('Dashboard') . '</a>') . '</p>' . '<h4 class="pretty-title vertical-separator">' . __('Frequency') . '</h4>' . '<p class="vertical-separator">' . form::radio(array('settings_recall_type', 'settings_recall_all'), 'all') . ' ' . '<label class="classic" for="settings_recall_all">' . '<strong>' . __('Use one recall time for all tasks') . '</strong></label></p>' . '<p class="field wide vertical-separator"><label for="settings_recall_time">' . __('Recall time for all tasks:') . '</label>' . form::combo('settings_recall_time', $combo_ts, 'seperate', 'recall-for-all') . '</p>' . '<p class="vertical-separator">' . form::radio(array('settings_recall_type', 'settings_recall_separate'), 'separate', 1) . ' ' . '<label class="classic" for="settings_recall_separate">' . '<strong>' . __('Use one recall time per task') . '</strong></label></p>';
    foreach ($tasks as $t) {
        if (!$t->id()) {
            continue;
        }
        echo '<div class="two-boxes">' . '<p class="field wide"><label for="settings_ts_' . $t->id() . '">' . $t->task() . '</label>' . form::combo('settings_ts_' . $t->id(), $combo_ts, $t->ts(), 'recall-per-task') . '</p>' . '</div>';
    }
    echo '<p class="field wide"><input type="submit" value="' . __('Save') . '" /> ' . form::hidden(array('tab'), 'settings') . form::hidden(array('save_settings'), 1) . $core->formNonce() . '</p>' . '</form>' . '</div>';
}
dcPage::helpBlock('maintenance', 'maintenancetasks');
echo '</body></html>';
开发者ID:nikrou,项目名称:dotclear,代码行数:31,代码来源:index.php

示例11: __

echo '</div>';
echo '<h4 class="clear border-top pretty-title">' . __('Titles') . '</h4>';
echo '<div class="two-cols">';
echo '<div class="col">';
echo '<h5>' . __('Blog title') . '</h5>' . '<p class="field"><label for="blog_title_w">' . __('In bold:') . '</label> ' . form::checkbox('blog_title_w', 1, $ductile_user['blog_title_w']) . '</p>' . '<p class="field"><label for="blog_title_s">' . __('Font size (in em by default):') . '</label> ' . form::field('blog_title_s', 7, 7, $ductile_user['blog_title_s']) . '</p>' . '<p class="field picker"><label for="blog_title_c">' . __('Color:') . '</label> ' . form::field('blog_title_c', 7, 7, $ductile_user['blog_title_c'], 'colorpicker') . dcThemeConfig::contrastRatio($ductile_user['blog_title_c'], '#ffffff', !empty($ductile_user['blog_title_s']) ? $ductile_user['blog_title_s'] : '2em', $ductile_user['blog_title_w']) . '</p>';
echo '</div>';
echo '<div class="col">';
echo '<h5>' . __('Post title') . '</h5>' . '<p class="field"><label for="post_title_w">' . __('In bold:') . '</label> ' . form::checkbox('post_title_w', 1, $ductile_user['post_title_w']) . '</p>' . '<p class="field"><label for="post_title_s">' . __('Font size (in em by default):') . '</label> ' . form::field('post_title_s', 7, 7, $ductile_user['post_title_s']) . '</p>' . '<p class="field picker"><label for="post_title_c">' . __('Color:') . '</label> ' . form::field('post_title_c', 7, 7, $ductile_user['post_title_c'], 'colorpicker') . dcThemeConfig::contrastRatio($ductile_user['post_title_c'], '#ffffff', !empty($ductile_user['post_title_s']) ? $ductile_user['post_title_s'] : '2.5em', $ductile_user['post_title_w']) . '</p>';
echo '</div>';
echo '</div>';
echo '<h5>' . __('Titles without link') . '</h5>' . '<p class="field picker"><label for="post_simple_title_c">' . __('Color:') . '</label> ' . form::field('post_simple_title_c', 7, 7, $ductile_user['post_simple_title_c'], 'colorpicker') . dcThemeConfig::contrastRatio($ductile_user['post_simple_title_c'], '#ffffff', '1.1em', false) . '</p>';
echo '<h4 class="border-top pretty-title">' . __('Inside posts links') . '</h4>' . '<p class="field"><label for="post_link_w">' . __('In bold:') . '</label> ' . form::checkbox('post_link_w', 1, $ductile_user['post_link_w']) . '</p>' . '<p class="field picker"><label for="post_link_v_c">' . __('Normal and visited links color:') . '</label> ' . form::field('post_link_v_c', 7, 7, $ductile_user['post_link_v_c'], 'colorpicker') . dcThemeConfig::contrastRatio($ductile_user['post_link_v_c'], '#ffffff', '1em', $ductile_user['post_link_w']) . '</p>' . '<p class="field picker"><label for="post_link_f_c">' . __('Active, hover and focus links color:') . '</label> ' . form::field('post_link_f_c', 7, 7, $ductile_user['post_link_f_c'], 'colorpicker') . dcThemeConfig::contrastRatio($ductile_user['post_link_f_c'], '#ebebee', '1em', $ductile_user['post_link_w']) . '</p>';
echo '<h3 class="border-top">' . __('Mobile specific settings') . '</h3>';
echo '<div class="two-cols">';
echo '<div class="col">';
echo '<h4 class="pretty-title">' . __('Blog title') . '</h4>' . '<p class="field"><label for="blog_title_w_m">' . __('In bold:') . '</label> ' . form::checkbox('blog_title_w_m', 1, $ductile_user['blog_title_w_m']) . '</p>' . '<p class="field"><label for="blog_title_s_m">' . __('Font size (in em by default):') . '</label> ' . form::field('blog_title_s_m', 7, 7, $ductile_user['blog_title_s_m']) . '</p>' . '<p class="field picker"><label for="blog_title_c_m">' . __('Color:') . '</label> ' . form::field('blog_title_c_m', 7, 7, $ductile_user['blog_title_c_m'], 'colorpicker') . dcThemeConfig::contrastRatio($ductile_user['blog_title_c_m'], '#d7d7dc', !empty($ductile_user['blog_title_s_m']) ? $ductile_user['blog_title_s_m'] : '1.8em', $ductile_user['blog_title_w_m']) . '</p>';
echo '</div>';
echo '<div class="col">';
echo '<h4 class="pretty-title">' . __('Post title') . '</h4>' . '<p class="field"><label for="post_title_w_m">' . __('In bold:') . '</label> ' . form::checkbox('post_title_w_m', 1, $ductile_user['post_title_w_m']) . '</p>' . '<p class="field"><label for="post_title_s_m">' . __('Font size (in em by default):') . '</label> ' . form::field('post_title_s_m', 7, 7, $ductile_user['post_title_s_m']) . '</p>' . '<p class="field picker"><label for="post_title_c_m">' . __('Color:') . '</label> ' . form::field('post_title_c_m', 7, 7, $ductile_user['post_title_c_m'], 'colorpicker') . dcThemeConfig::contrastRatio($ductile_user['post_title_c_m'], '#ffffff', !empty($ductile_user['post_title_s_m']) ? $ductile_user['post_title_s_m'] : '1.5em', $ductile_user['post_title_w_m']) . '</p>';
echo '</div>';
echo '</div>';
echo '<p><input type="hidden" name="conf_tab" value="css" /></p>';
echo '<p class="clear border-top"><input type="submit" value="' . __('Save') . '" />' . $core->formNonce() . '</p>';
echo '</form>';
echo '</div>';
// Close tab
dcPage::helpBlock('ductile');
// Legacy mode
if (!$standalone_config) {
    echo '<form style="display:none">';
}
开发者ID:nikrou,项目名称:dotclear,代码行数:31,代码来源:_config.php

示例12: pluginsToolsHeaders

 /**
  * Add javascript for plugin configuration.
  *
  * @param	$core	<b>dcCore</b>	dcCore instance
  * @param	$module	<b>mixed</b>	Module ID or false if none
  * @return	<b>string</b>	Header code for js inclusion
  */
 public static function pluginsToolsHeaders($core, $module)
 {
     if ($module == 'maintenance') {
         return dcPage::jsLoad(dcPage::getPF('maintenance/js/settings.js'));
     }
 }
开发者ID:nikrou,项目名称:dotclear,代码行数:13,代码来源:_admin.php

示例13: postHeaders

 public static function postHeaders()
 {
     global $core;
     return '<script type="text/javascript" src="index.php?pf=dotsphere/js/post.min.js"></script>' . '<script type="text/javascript">' . "\n" . "//<![CDATA[\n" . dcPage::jsVar('jsToolBar.prototype.elements.dotsphere.title', __('Display as a PhotoSphere')) . dcPage::jsVar('jsToolBar.prototype.elements.dotsphere.selectImageError', __('Select an image to display as a PhotoSphere.')) . dcPage::jsVar('jsToolBar.prototype.elements.dotsphere.pluginUrl', html::stripHostURL($core->blog->getQmarkURL() . 'pf=dotsphere/')) . "\n//]]>\n" . "</script>\n";
 }
开发者ID:pcorpet,项目名称:dotsphere,代码行数:5,代码来源:_admin.php

示例14: disableDepModules

 /**
  * Checks all modules dependencies, and disable unmet dependencies
  * @param  string $redir_url URL to redirect if modules are to disable
  * @return boolean, true if a redirection has been performed
  */
 public function disableDepModules($redir_url)
 {
     if (isset($_GET['dep'])) {
         // Avoid infinite redirects
         return false;
     }
     $reason = array();
     foreach ($this->to_disable as $module) {
         try {
             $this->deactivateModule($module['name']);
             $reason[] = sprintf("<li>%s : %s</li>", $module['name'], join(',', $module['reason']));
         } catch (Exception $e) {
         }
     }
     if (count($reason)) {
         $message = sprintf("<p>%s</p><ul>%s</ul>", __('The following extensions have been disabled :'), join('', $reason));
         dcPage::addWarningNotice($message, array('divtag' => true, 'with_ts' => false));
         $url = $redir_url . (strpos($redir_url, "?") ? '&' : '?') . 'dep=1';
         http::redirect($url);
         return true;
     }
     return false;
 }
开发者ID:nikrou,项目名称:dotclear,代码行数:28,代码来源:class.dc.modules.php

示例15: 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 -----------------------------------------
/* ### THIS FILE IS DEPRECATED 					### */
/* ### IT IS ONLY USED FOR PLUGINS COMPATIBILITY ### */
require dirname(__FILE__) . '/../inc/admin/prepend.php';
dcPage::check('usage,contentadmin');
if (isset($_REQUEST['redir'])) {
    $u = explode('?', $_REQUEST['redir']);
    $uri = $u[0];
    if (isset($u[1])) {
        parse_str($u[1], $args);
    }
    $args['redir'] = $_REQUEST['redir'];
} else {
    $uri = $core->adminurl->get("admin.posts");
    $args = array();
}
$posts_actions_page = new dcPostsActionsPage($core, $uri, $args);
$posts_actions_page->setEnableRedirSelection(false);
$posts_actions_page->process();
开发者ID:nikrou,项目名称:dotclear,代码行数:30,代码来源:posts_actions.php


注:本文中的dcPage类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。