Exemplo n.º 1
0
            // Let the plugin handle custom fields:
            // We use call_method to keep track of this call, although calling the plugins PluginSettingsUpdateAction method directly _might_ work, too.
            $ok_to_update = $Plugins->call_method($loop_Plugin->ID, 'PluginSettingsUpdateAction', $tmp_params = array());
            if ($ok_to_update === false) {
                // Rollback settings: the plugin has said they should not get updated.
                $loop_Plugin->Settings->reset();
            } else {
                // Update message settings of the Plugin
                $loop_Plugin->Settings->dbupdate();
            }
        }
        $Messages->add(T_('Settings were updated.'), 'success');
        break;
}
// Init JS to autcomplete the user logins
init_autocomplete_login_js('rsc_url', $AdminUI->get_template('autocomplete_plugin'));
$AdminUI->breadcrumbpath_init(false);
// fp> I'm playing with the idea of keeping the current blog in the path here...
$AdminUI->breadcrumbpath_add(T_('Messages'), '?ctrl=threads');
$AdminUI->breadcrumbpath_add(T_('Settings'), '?ctrl=msgsettings');
// Set an url for manual page:
$AdminUI->set_page_manual_link('messages-settings');
// Display <html><head>...</head> section! (Note: should be done early if actions do not redirect)
$AdminUI->disp_html_head();
// Display title, menu, messages, etc. (Note: messages MUST be displayed AFTER the actions)
$AdminUI->disp_body_top();
$AdminUI->disp_payload_begin();
// Display messaging settings:
$AdminUI->disp_view('messaging/views/_msg_settings.form.php');
$AdminUI->disp_payload_end();
// Display body bottom, debug info and close </html>:
Exemplo n.º 2
0
        // We're displaying a list of posts:
        $AdminUI->title_titlearea = T_('Browse blog');
        // Generate available blogs list:
        $AdminUI->set_coll_list_params('blog_ismember', 'view', array('ctrl' => 'items', 'tab' => $tab, 'filter' => 'restore'));
        /*
         * Add sub menu entries:
         * We do this here instead of _header because we need to include all filter params into regenerate_url()
         */
        attach_browse_tabs();
        break;
}
if (!empty($tab)) {
    $AdminUI->append_path_level($tab);
    if (in_array($tab, array('expert', 'full', 'list', 'pages', 'intros', 'podcasts', 'links', 'ads'))) {
        // Init JS to autcomplete the user logins
        init_autocomplete_login_js('rsc_url');
    }
}
// Load the date picker style for _item_simple.form.php and _item_expert.form.php
require_css('ui.datepicker.css');
// Load the appropriate blog navigation styles (including calendar, comment forms...):
require_css($rsc_url . 'css/blog_base.css');
// Default styles for the blog navigation
// Load jquery ui css for tag autocomplete
require_css($rsc_url . 'css/jquery/smoothness/jquery-ui.css');
require_js('communication.js');
// auto requires jQuery
init_plugins_js();
// Load the appropriate ITEM/POST styles depending on the blog's skin:
// It's possible that we have no Blog on the restricted admin interface, when current User doesn't have permission to any blog
if (!empty($Blog)) {