Ignore:
Timestamp:
Jan 22, 2013, 12:54:05 AM (11 years ago)
Author:
julien1311
Message:

[piwecard] add a border in emails. begins to work on a email preview

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Piwecard/include/piwecard.class.php

    r20284 r20320  
    180180                       
    181181                        if (!empty($page['category'])) {
    182                                 // Gets all upper categories from the image category to test
    183                                 //      - if the upper category is activated for this function
     182                                // Gets all upper categories from the image category
    184183                                $query = 'SELECT * FROM '.CATEGORIES_TABLE.' WHERE id = '.pwg_db_real_escape_string($page['category']['id']).';';
    185184                                $cat = pwg_db_fetch_assoc(pwg_query($query));
     
    477476                global $page, $conf;
    478477               
     478                $border_config = $this->config['image_border'];
    479479                $smarty->assign(array(
     480                                                                'BORDER' => (($border_config['display']) ? 'border-style: '.$border_config['style'].'; border-width: '.$border_config['width'].'; border-color: #'.$border_config['color'].';' : ''),
    480481                                                                'CONTENT_ENCODING' => get_pwg_charset(),
    481482                                                                'GALLERY_URL' => get_absolute_root_url(),
Note: See TracChangeset for help on using the changeset viewer.