/** * Get definitions for editable params * * @see Plugin::GetDefaultSettings() * @param local params like 'for_editing' => true */ function get_param_definitions($params) { global $use_strict; $r = array_merge(array('title' => array('label' => T_('Title'), 'size' => 40, 'note' => T_('This is the title to display, $icon$ will be replaced by the feed icon'), 'defaultvalue' => T_('All blogs')), 'order_by' => array('label' => T_('Order by'), 'note' => T_('How to sort the blogs'), 'type' => 'select', 'options' => get_coll_sort_options(), 'defaultvalue' => 'ID'), 'order_dir' => array('label' => T_('Direction'), 'note' => T_('How to sort the blogs'), 'type' => 'radio', 'options' => array(array('ASC', T_('Ascending')), array('DESC', T_('Descending'))), 'defaultvalue' => 'ASC')), parent::get_param_definitions($params)); return $r; }
/** * Get definitions for widget specific editable params * * @see Plugin::GetDefaultSettings() * @param local params like 'for_editing' => true */ function get_widget_param_definitions($params) { return array('title' => array('label' => T_('Title'), 'size' => 40, 'note' => T_('This is the title to display, $icon$ will be replaced by the feed icon'), 'defaultvalue' => T_('Select a blog')), 'order_by' => array('label' => T_('Order by'), 'note' => T_('How to sort the blogs'), 'type' => 'select', 'options' => get_coll_sort_options(), 'defaultvalue' => 'order'), 'order_dir' => array('label' => T_('Direction'), 'note' => T_('How to sort the blogs'), 'type' => 'radio', 'options' => array(array('ASC', T_('Ascending')), array('DESC', T_('Descending'))), 'defaultvalue' => 'ASC')); }
* @var User */ global $current_User; /** * @var GeneralSettings */ global $Settings; $Form = new Form(NULL, 'settings_checkchanges'); $Form->begin_form('fform', '', array('onsubmit' => 'var es=this.elements; for( var i=0; i < es.length; i++ ) { es[i].disabled=false; };')); $Form->add_crumb('collectionsettings'); $Form->hidden('ctrl', 'collections'); $Form->hidden('tab', 'blog_settings'); $Form->hidden('action', 'update_settings_blog'); // -------------------------------------------- $Form->begin_fieldset(T_('Display options') . get_manual_link('collections-display-options')); $Form->select_input_options('blogs_order_by', array_to_option_list(get_coll_sort_options(), $Settings->get('blogs_order_by')), T_('Order blogs by'), T_('Select blog list order.')); $Form->select_input_options('blogs_order_dir', array_to_option_list(array('ASC' => T_('Ascending'), 'DESC' => T_('Descending')), $Settings->get('blogs_order_dir')), T_('Order direction'), T_('Select default blog list order direction.')); $Form->end_fieldset(); // -------------------------------------------- $Form->begin_fieldset(T_('Caching') . get_manual_link('collections-caching-settings')); $Form->checkbox_input('general_cache_enabled', $Settings->get('general_cache_enabled'), get_icon('page_cache_on') . ' ' . T_('Enable general cache'), array('note' => T_('Cache rendered pages that are not controlled by a skin. See Blog Settings for skin output caching.'))); $cache_note = '(' . T_('See Blog Settings for existing') . ')'; $Form->checklist(array(array('newblog_cache_enabled', 1, T_('Enable page cache for NEW blogs'), $Settings->get('newblog_cache_enabled'), false, $cache_note), array('newblog_cache_enabled_widget', 1, T_('Enable widget cache for NEW blogs'), $Settings->get('newblog_cache_enabled_widget'), false, $cache_note)), 'new_blogs_cahe', T_('Enable for new blogs')); $Form->end_fieldset(); // -------------------------------------------- $Form->begin_fieldset(T_('After each new post or comment...') . get_manual_link('after_each_post_settings')); $Form->radio_input('outbound_notifications_mode', $Settings->get('outbound_notifications_mode'), array(array('value' => 'off', 'label' => T_('Off'), 'note' => T_('No notification about your new content will be sent out.')), array('value' => 'immediate', 'label' => T_('Immediate'), 'note' => T_('This is guaranteed to work but may create an annoying delay after each post or comment publication.')), array('value' => 'cron', 'label' => T_('Asynchronous'), 'note' => T_('Recommended if you have your scheduled jobs properly set up.'))), T_('Outbound pings & email notifications'), array('lines' => true)); $Form->end_fieldset(); // -------------------------------------------- $Form->begin_fieldset(T_('Categories') . get_manual_link('categories_global_settings'), array('id' => 'categories')); $Form->checkbox_input('allow_moving_chapters', $Settings->get('allow_moving_chapters'), T_('Allow moving categories'), array('note' => T_('Check to allow moving categories accross blogs. (Caution: can break pre-existing permalinks!)')));