function _render_blogfilter_active_setting() { require_once 'AuthorAvatarsForm.class.php'; echo '<tr valign="top">'; echo '<th scope="row">' . __('Enable blog filter', 'author-avatars') . '</th><td>'; echo FormHelper::choice('settings_sitewide[blog_filters_enabled]', AuthorAvatarsForm::_getAllBlogs(), $this->settings->get_sitewide('blog_filters_enabled'), array('multiple' => true, 'label' => __('Select the blogs which you would like the blog filter to be enabled. Only blogs selected here can display users from other blogs.', 'author-avatars'))); echo '</td>'; echo '</tr>'; }
/** * Renders the alignment radio fields for the show_avatar wizard * * @param mixed $values the field values * @param string $name the field name * * @return string */ function renderFieldAlignment($values = '', $name = 'alignment') { $alignment_options = array('' => __('None', 'author-avatars'), 'left' => __('Left', 'author-avatars'), 'center' => __('Center', 'author-avatars'), 'right' => __('Right', 'author-avatars')); $attributes = array('id' => $this->_getFieldId($name), 'label' => '<strong>' . __('Alignment', 'author-avatars') . '</strong><br/>', 'expanded' => true, 'inline' => true, 'class' => 'alignment'); $name = $this->_getFieldName($name); return '<p>' . FormHelper::choice($name, $alignment_options, $values, $attributes) . '</p>'; }