/**
  * Initialize Article Settings Form.
  * Retrieve and return the general portal settings.
  */
 private function _initArticleSettingsForm()
 {
     // instantiate the article form
     $this->_articleSettingsForm = new Settings_Form();
     $config_vars = array(array('check', 'sp_articles_index'), array('int', 'sp_articles_index_per_page'), array('int', 'sp_articles_index_total'), array('int', 'sp_articles_length'), '', array('int', 'sp_articles_per_page'), array('int', 'sp_articles_comments_per_page'));
     return $this->_articleSettingsForm->settings($config_vars);
 }
Exemplo n.º 2
0
 /**
  * Initialize postSettings form with admin configuration settings for posts.
  */
 private function _initPostSettingsForm()
 {
     // Instantiate the form
     $this->_postSettings = new Settings_Form();
     // Initialize it with our settings
     $config_vars = $this->_settings();
     return $this->_postSettings->settings($config_vars);
 }
Exemplo n.º 3
0
 /**
  * This method retrieves and returns avatar settings.
  *
  * - It also returns avatar-related permissions profile_server_avatar,
  * profile_upload_avatar, profile_remote_avatar, profile_gvatar.
  * - Initializes the avatarSettings form.
  */
 private function _initAvatarSettingsForm()
 {
     // Instantiate the form
     $this->_avatarSettings = new Settings_Form();
     // Initialize settings
     $config_vars = $this->_settings();
     return $this->_avatarSettings->settings($config_vars);
 }
Exemplo n.º 4
0
 /**
  * Initialize balancingSettings form.
  */
 private function _initBalancingSettingsForm()
 {
     // Forms, we need them
     $this->_balancingSettingsForm = new Settings_Form();
     // Initialize it with our settings
     $config_vars = $this->_balancingSettings();
     // Set them vars for our settings form
     return $this->_balancingSettingsForm->settings($config_vars);
 }
 /**
  * Initialize settings form with the configuration settings for new members registration.
  */
 private function _init_pwentropySettingsForm()
 {
     // This is really quite wanting.
     require_once SUBSDIR . '/SettingsForm.class.php';
     // Instantiate the form
     $this->_pweSettings = new Settings_Form();
     // Initialize it with our settings
     $config_vars = $this->_settings();
     return $this->_pweSettings->settings($config_vars);
 }
Exemplo n.º 6
0
 /**
  * Initialize the news settings screen in admin area for the forum.
  */
 private function _initNewsSettingsForm()
 {
     // We're working with them settings here.
     require_once SUBSDIR . '/SettingsForm.class.php';
     // Instantiate the form
     $this->_newsSettings = new Settings_Form();
     // Initialize it with our settings
     $config_vars = $this->_settings();
     return $this->_newsSettings->settings($config_vars);
 }
Exemplo n.º 7
0
 /**
  * Initialize Mailist settings form.
  */
 private function _initMaillistSettingsForm()
 {
     // We need some settings! ..ok, some work with our settings :P
     require_once SUBSDIR . '/SettingsForm.class.php';
     // Instantiate the form
     $this->_maillistSettings = new Settings_Form();
     // Initialize it with our settings
     $config_vars = $this->_settings();
     return $this->_maillistSettings->settings($config_vars);
 }
 /**
  * Administration settings for languages area:
  *
  * - the method will initialize the form config array with all settings.
  *
  * Format of the array:
  *  - either, variable name, description, type (constant), size/possible values, helptext.
  *  - or, an empty string for a horizontal rule.
  *  - or, a string for a titled section.
  *
  * Initialize _languageSettings form.
  */
 private function _initLanguageSettingsForm()
 {
     // We'll want to use them someday. That is, right now.
     require_once SUBSDIR . '/SettingsForm.class.php';
     // Make it happen!
     $this->_languageSettings = new Settings_Form();
     // Initialize it with our settings
     $config_vars = $this->_settings();
     // Initialize the little form
     return $this->_languageSettings->settings($config_vars);
 }
Exemplo n.º 9
0
 /**
  * Initializes the personal messages settings admin page.
  */
 private function _initPMSettingsForm()
 {
     global $context;
     // We're working with them settings.
     require_once SUBSDIR . '/SettingsForm.class.php';
     $context['permissions_excluded'] = array(-1);
     // Instantiate the form
     $this->_PMSettings = new Settings_Form();
     // Initialize it with our settings
     $config_vars = $this->_pmSettings();
     return $this->_PMSettings->settings($config_vars);
 }
Exemplo n.º 10
0
    /**
     * Retrieve and return all admin settings for the calendar.
     */
    private function _initCalendarSettingsForm()
    {
        global $txt, $context;
        // Instantiate the form
        $this->_calendarSettings = new Settings_Form();
        // Initialize it with our settings
        $config_vars = $this->_settings();
        // Some important context stuff
        $context['page_title'] = $txt['calendar_settings'];
        $context['sub_template'] = 'show_settings';
        // Lets start off with the premission blocks collapsed
        addInlineJavascript('var legend = $(\'legend\');
			legend.siblings().slideToggle("fast");
			legend.parent().toggleClass("collapsed")', true);
        return $this->_calendarSettings->settings($config_vars);
    }
Exemplo n.º 11
0
 /**
  * Initialize the customSettings form with any custom admin settings for or from addons.
  */
 public function _initAddonSettingsForm()
 {
     global $context, $txt, $scripturl;
     // We're working with them settings.
     require_once SUBSDIR . '/SettingsForm.class.php';
     // instantiate the form
     $this->_addonSettings = new Settings_Form();
     // initialize it with our existing settings. If any.
     $config_vars = $this->_settings();
     if (empty($config_vars)) {
         $context['settings_save_dont_show'] = true;
         $context['settings_message'] = '<div class="centertext">' . $txt['modification_no_misc_settings'] . '</div>';
     }
     $context['post_url'] = $scripturl . '?action=admin;area=addonsettings;save;sa=general';
     $context['settings_title'] = $txt['mods_cat_modifications_misc'];
     return $this->_addonSettings->settings($config_vars);
 }