From 7a5e31e40127c401520d62499830a14537cd9c03 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Wed, 6 Nov 2013 15:43:41 +0000 Subject: feature 2995: New email template rewrite pwg_mail_group() and pwg_mail_notification_admins() new function pwg_mail_admins() add complete template management in pwg_mail() TODO : font-size problem in Thunderbird git-svn-id: http://piwigo.org/svn/trunk@25357 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/album_notification.php | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) (limited to 'admin') diff --git a/admin/album_notification.php b/admin/album_notification.php index d4070c2d7..0239dbac8 100644 --- a/admin/album_notification.php +++ b/admin/album_notification.php @@ -80,28 +80,29 @@ SELECT id, file, path, representative_ext $img_url = ''; } - // TODO Mettre un array pour traduction subjet pwg_mail_group( $_POST['group'], - get_str_email_format(true), /* TODO add a checkbox in order to choose format*/ - get_l10n_args('[%s] Visit album %s', - array($conf['gallery_title'], $category['name'])), - 'cat_group_info', - array - ( - 'IMG_URL' => $img_url, - 'CAT_NAME' => $category['name'], - 'LINK' => make_index_url( - array( + array( + 'subject' => l10n('[%s] Visit album %s', $conf['gallery_title'], $category['name']), + // TODO : change this language variable to 'Visit album %s' + // TODO : 'language_selected' => .... + ), + array( + 'filename' => 'cat_group_info', + 'assign' => array( + 'IMG_URL' => $img_url, + 'CAT_NAME' => $category['name'], + 'LINK' => make_index_url(array( 'category' => array( 'id' => $category['id'], 'name' => $category['name'], 'permalink' => $category['permalink'] - ))), - 'CPL_CONTENT' => empty($_POST['mail_content']) - ? '' : stripslashes($_POST['mail_content']) - ), - '' /* TODO Add listbox in order to choose Language selected */); + ) + )), + 'CPL_CONTENT' => empty($_POST['mail_content']) ? '' : stripslashes($_POST['mail_content']), + ) + ) + ); unset_make_full_url(); -- cgit v1.2.3