Ignore:
Timestamp:
Nov 6, 2013, 4:43:41 PM (10 years ago)
Author:
mistic100
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/album_notification.php

    r25018 r25357  
    8181  }
    8282
    83   // TODO Mettre un array pour traduction subjet
    8483  pwg_mail_group(
    8584    $_POST['group'],
    86     get_str_email_format(true), /* TODO add a checkbox in order to choose format*/
    87     get_l10n_args('[%s] Visit album %s',
    88       array($conf['gallery_title'], $category['name'])),
    89     'cat_group_info',
    90     array
    91     (
    92       'IMG_URL' => $img_url,
    93       'CAT_NAME' => $category['name'],
    94       'LINK' => make_index_url(
    95           array(
     85    array(
     86      'subject' => l10n('[%s] Visit album %s', $conf['gallery_title'], $category['name']),
     87      // TODO : change this language variable to 'Visit album %s'
     88      // TODO : 'language_selected' => ....
     89    ),
     90    array(
     91      'filename' => 'cat_group_info',
     92      'assign' => array(
     93        'IMG_URL' => $img_url,
     94        'CAT_NAME' => $category['name'],
     95        'LINK' => make_index_url(array(
    9696            'category' => array(
    9797              'id' => $category['id'],
    9898              'name' => $category['name'],
    9999              'permalink' => $category['permalink']
    100               ))),
    101       'CPL_CONTENT' => empty($_POST['mail_content'])
    102                           ? '' : stripslashes($_POST['mail_content'])
    103     ),
    104     '' /* TODO Add listbox in order to choose Language selected */);
     100              )
     101            )),
     102        'CPL_CONTENT' => empty($_POST['mail_content']) ? '' : stripslashes($_POST['mail_content']),
     103        )
     104      )
     105    );
    105106
    106107  unset_make_full_url();
Note: See TracChangeset for help on using the changeset viewer.