plugins/new_user_dialog/localization/de_CH.inc | ●●●●● patch | view | raw | blame | history | |
plugins/new_user_dialog/localization/de_DE.inc | ●●●●● patch | view | raw | blame | history | |
plugins/new_user_dialog/localization/en_US.inc | ●●●●● patch | view | raw | blame | history | |
plugins/new_user_dialog/new_user_dialog.php | ●●●●● patch | view | raw | blame | history | |
plugins/new_user_dialog/newuserdialog.css | ●●●●● patch | view | raw | blame | history |
plugins/new_user_dialog/localization/de_CH.inc
New file @@ -0,0 +1,7 @@ <?php $labels = array(); $labels['identitydialogtitle'] = 'Bitte vervollständigen Sie Ihre Absender-Informationen'; $labels['identitydialoghint'] = 'Dieser Dialog erscheint nur einmal beim ersten Login.'; ?> plugins/new_user_dialog/localization/de_DE.inc
New file @@ -0,0 +1,7 @@ <?php $labels = array(); $labels['identitydialogtitle'] = 'Bitte vervollständigen Sie Ihre Absender-Informationen'; $labels['identitydialoghint'] = 'Dieser Dialog erscheint nur einmal beim ersten Login.'; ?> plugins/new_user_dialog/localization/en_US.inc
New file @@ -0,0 +1,7 @@ <?php $labels = array(); $labels['identitydialogtitle'] = 'Please complete your sender identity'; $labels['identitydialoghint'] = 'This box only appears once at the first login.'; ?> plugins/new_user_dialog/new_user_dialog.php
@@ -31,8 +31,7 @@ function create_identity($p) { // set session flag when a new user was created and the default identity seems to be incomplete $rcmail = rcmail::get_instance(); if ($p['login'] && !$p['complete'] && (empty($p['record']['name']) || $p['record']['name'] == $rcmail->user->data['username'])) if ($p['login'] && !$p['complete']) $_SESSION['plugin.newuserdialog'] = true; } @@ -42,7 +41,9 @@ */ function render_page($p) { if ($_SESSION['plugin.newuserdialog'] && $p['template'] == 'mail') { if ($_SESSION['plugin.newuserdialog']) { $this->add_texts('localization'); $rcmail = rcmail::get_instance(); $identity = $rcmail->user->get_identity(); $identities_level = intval($rcmail->config->get('identities_level', 0)); @@ -61,7 +62,8 @@ html::tag('form', array( 'action' => $rcmail->url('plugin.newusersave'), 'method' => "post"), html::tag('h3', null, 'Please complete your sender identity') . // TODO: localize title html::tag('h3', null, Q($this->gettext('identitydialogtitle'))) . html::p('hint', Q($this->gettext('identitydialoghint'))) . $table->show() . html::p(array('class' => "formbuttons"), html::tag('input', array('type' => "submit", 'class' => "button mainaction", 'value' => $this->gettext('save')))) plugins/new_user_dialog/newuserdialog.css
@@ -8,10 +8,11 @@ bottom: 0; z-index: 10000; background: rgba(0,0,0,0.5) !important; background: black; background: #333; /** IE hacks */ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=85)"; filter: alpha(opacity=90); -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"; width: expression(document.documentElement.clientWidth+'px'); height: expression(document.documentElement.clientHeight+'px'); } @@ -20,14 +21,23 @@ color: #333; font-size: normal; margin-top: 0.5em; margin-bottom: 0; } #newuseroverlay p.hint { margin-top: 0.5em; font-style: italic; } #newuseroverlay form { width: 30em; margin: 6em auto; width: 32em; margin: 8em auto; padding: 1em 2em; background: #F6F6F6; border: 2px solid #999; border: 2px solid #555; border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px; } #newuseroverlay table td.title @@ -44,5 +54,6 @@ } #newuseroverlay .formbuttons { margin-top: 1.5em; text-align: center; }