Ignore:
Timestamp:
Jan 13, 2013, 7:20:54 PM (11 years ago)
Author:
julien1311
Message:

[piwecard] add the capacity to the choose the size of the image of the ecard

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Piwecard/admin/admin_configuration.php

    r20088 r20103  
    1212    $configuration['validity_default'] = $_POST['ecard_validity_default'];
    1313    $configuration['sender_copy'] = isset($_POST['ecard_sender_copy']);
     14        $configuration['image_size'] = $_POST['ecard_image_size'];
    1415    $configuration['sender_email_change'] = isset($_POST['ecard_sender_email_change']);
    1516       
     
    6566}
    6667
     68$derivative_map = array();
     69foreach(ImageStdParams::get_defined_type_map() as $params) {
     70        $derivative_map[$params->type]['name'] = l10n($params->type);
     71        if ($params->type == $piwecard->config['image_size'])
     72                $derivative_map[$params->type]['selected'] = 'checked="checked"';
     73        else
     74                $derivative_map[$params->type]['selected'] = '';
     75}
     76$template->assign('generate_derivatives_types', $derivative_map);
     77
    6778foreach($piwecard->config['validity'] as $validity) {
    6879        $template->append('ecard_validity', array(
Note: See TracChangeset for help on using the changeset viewer.