Dotclear

Changeset 3329


Ignore:
Timestamp:
01/15/15 18:17:20 (9 years ago)
Author:
brol
Message:

voir release.txt

Location:
plugins/efiMetadatas
Files:
2 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • plugins/efiMetadatas/_admin.php

    r2304 r3329  
    1414 
    1515require_once dirname(__FILE__).'/_widgets.php'; 
    16 ?> 
  • plugins/efiMetadatas/_define.php

    r2304 r3329  
    1010# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    1111# -- END LICENSE BLOCK ------------------------------------ 
     12     /* date */          #15-01-2015 
    1213 
    1314if (!defined('DC_RC_PATH')){return;} 
     
    1617     /* Name */               "efiMetadatas", 
    1718     /* Description*/         "Show metadatas of first image of an entry", 
    18      /* Author */             "JC Denis", 
    19      /* Version */            '0.3', 
    20      /* Permissions */        'admin' 
     19     /* Author */             "JC Denis, Pierre Van Glabeke", 
     20     /* Version */            '0.4', 
     21     /* Properties */ 
     22     array( 
     23          'permissions' => 'admin', 
     24          'type' => 'plugin', 
     25          'dc_min' => '2.6', 
     26          'support' => 'http://lab.dotclear.org/wiki/plugin/efiMetadatas', 
     27          'details' => 'http://plugins.dotaddict.org/dc2/details/efiMetadatas' 
     28     ) 
    2129); 
    22      /* date */          #20100605 
    23 ?> 
  • plugins/efiMetadatas/_prepend.php

    r2304 r3329  
    1616 
    1717$__autoload['efiMetadatas'] = dirname(__FILE__).'/inc/class.efimetadatas.php'; 
    18 ?> 
  • plugins/efiMetadatas/_public.php

    r2304 r3329  
    1414 
    1515require_once dirname(__FILE__).'/_widgets.php'; 
    16 ?> 
  • plugins/efiMetadatas/_widgets.php

    r2304 r3329  
    3030           
    3131          $thumbnail_combo = array( 
    32                '-' => '', 
     32      __('none') => '', 
    3333               __('square') => 'sq', 
    3434               __('thumbnail') => 't', 
     
    5252               __('Show empty metadatas'),0,'check' 
    5353          ); 
     54    $w->efim->setting('content_only',__('Content only'),0,'check'); 
     55    $w->efim->setting('class',__('CSS class:'),''); 
     56          $w->efim->setting('offline',__('Offline'),0,'check'); 
    5457     } 
    5558      
    5659     public static function publicEFIM($w) 
    5760     { 
    58           global $core, $_ctx;  
     61          global $core, $_ctx; 
     62 
     63          if ($w->offline) 
     64               return; 
    5965           
    6066          # Not in post context 
     
    8591               // keep empty meta if wanted 
    8692               if (!$w->showmeta && empty($v[1])) continue; 
    87                $content .= '<li class="efi-'.$k.'"><strong>'.$v[0].':</strong><br />'.$v[1].'</li>'; 
     93               $content .= '<li class="efi-'.$k.'"><strong>'.$v[0].'</strong><br />'.$v[1].'</li>'; 
    8894          } 
    8995           
     
    94100          if ($img['thumb']) 
    95101          { 
    96                $thumb =  
    97                '<div class="img-box">'.                 
    98                '<div class="img-thumbnail">'. 
    99                '<img alt="'.$img['title'].'" src="'.$img['thumb'].'" />'. 
    100                '</div>'. 
    101                "</div>\n"; 
     102               $thumb = 
     103               '<li><img class="img-thumbnail" alt="'.$img['title'].'" src="'.$img['thumb'].'" /></li>'; 
    102104          } 
    103            
    104           return  
    105           '<div class="entryFirstImageMetas">'. 
    106           ($w->title ? '<h2>'.html::escapeHTML($w->title).'</h2>' : ''). 
    107           $thumb. 
    108           '<ul>'.$content.'</ul>'. 
    109           '</div>'; 
     105 
     106          $res = 
     107          ($w->title ? $w->renderTitle(html::escapeHTML($w->title)) : ''). 
     108          '<ul>'.$thumb.$content.'</ul>'; 
     109 
     110          return $w->renderDiv($w->content_only,'entryFirstImageMetas '.$w->class,'',$res); 
    110111     } 
    111112} 
    112 ?> 
  • plugins/efiMetadatas/inc/class.efimetadatas.php

    r2304 r3329  
    1010# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    1111# -- END LICENSE BLOCK ------------------------------------ 
     12if (!defined('DC_RC_PATH')) {return;} 
    1213 
    1314class efiMetadatas 
     
    2223          # Image pattern 
    2324          $pattern = '(?:'.preg_quote($p_site,'/').')?'.preg_quote($p_url,'/'); 
    24           $pattern = sprintf('/<img.+?src="%s(.*?\.(?:jpg|gif|png))"[^>]+/msu',$pattern); 
     25          $pattern = sprintf('/<img.+?src="%s(.*?\.(?:jpg|jpeg|png|gif))"[^>]+/msu',$pattern); 
    2526           
    2627          # No image 
     
    2930          $src = $thb = $alt = false; 
    3031          $alt = $metas = $thumb = ''; 
    31           $allowed_ext = array('.jpg','.JPG','.png','.PNG','.gif','.GIF'); 
     32          $allowed_ext = array('.jpg','.JPG','.jpeg','.JPEG','.png','.PNG','.gif','.GIF'); 
    3233           
    3334          # Loop through images 
     
    8586     { 
    8687          $metas = array( 
    87                'Title' => array(__('Title'),''), 
    88                'Description' => array(__('Description'),''), 
    89                'Location' => array(__('Location'),''), 
    90                'DateTimeOriginal' => array(__('Date'),''), 
    91                'Make' => array(__('Manufacturer'),''), 
    92                'Model' => array(__('Model'),''), 
    93                'Lens' => array(__('Lens'),''), 
    94                'ExposureProgram' => array(__('Program'),''), 
    95                'Exposure' => array(__('Speed'),''), 
    96                'FNumber' => array(__('Aperture'),''), 
    97                'ISOSpeedRatings' => array(__('ISO'),''), 
    98                'FocalLength' => array(__('Focal'),''), 
    99                'ExposureBiasValue' => array(__('Exposure Bias'),''), 
    100                'MeteringMode' => array(__('Metering mode'),'') 
     88               'Title' => array(__('Title:'),''), 
     89               'Description' => array(__('Description:'),''), 
     90               'Location' => array(__('Location:'),''), 
     91               'DateTimeOriginal' => array(__('Date:'),''), 
     92               'Make' => array(__('Manufacturer:'),''), 
     93               'Model' => array(__('Model:'),''), 
     94               'Lens' => array(__('Lens:'),''), 
     95               'ExposureProgram' => array(__('Program:'),''), 
     96               'Exposure' => array(__('Speed:'),''), 
     97               'FNumber' => array(__('Aperture:'),''), 
     98               'ISOSpeedRatings' => array(__('ISO:'),''), 
     99               'FocalLength' => array(__('Focal:'),''), 
     100               'ExposureBiasValue' => array(__('Exposure Bias:'),''), 
     101               'MeteringMode' => array(__('Metering mode:'),'') 
    101102          ); 
    102103           
     
    232233     } 
    233234} 
    234 ?> 
  • plugins/efiMetadatas/locales/fr/main.po

    r1989 r3329  
    1 # Language: français 
    2 # Module: efiMetadatas - 0.1 
    3 # Date: 2009-12-18 00:28:47 
    4 # Translated with translater 1.3 
    5  
    61msgid "" 
    72msgstr "" 
     
    149"MIME-Version: 1.0\n" 
    1510"Content-Transfer-Encoding: 8bit\n" 
     11 
     12msgid "Show metadatas of first image of an entry" 
     13msgstr "Afficher les métadonnées de la première image d'un billet" 
    1614 
    1715#: _widgets.php:33 
     
    4745msgstr "Afficher les métadonnées vides" 
    4846 
     47msgid "Description:" 
     48msgstr "Description :" 
     49 
     50msgid "Date:" 
     51msgstr "Date :" 
     52 
    4953#: inc/class.efimetadatas.php:79 
    50 msgid "Location" 
    51 msgstr "Lieu" 
     54msgid "Location:" 
     55msgstr "Lieu :" 
    5256 
    5357#: inc/class.efimetadatas.php:81 
    54 msgid "Manufacturer" 
    55 msgstr "Fabricant" 
     58msgid "Manufacturer:" 
     59msgstr "Fabricant :" 
    5660 
    5761#: inc/class.efimetadatas.php:82 
    58 msgid "Model" 
    59 msgstr "Model" 
     62msgid "Model:" 
     63msgstr "Modèle :" 
    6064 
    6165#: inc/class.efimetadatas.php:83 
    62 msgid "Lens" 
    63 msgstr "Obgectif" 
     66msgid "Lens:" 
     67msgstr "Objectif :" 
    6468 
    6569#: inc/class.efimetadatas.php:84 
    66 msgid "Program" 
    67 msgstr "Programme" 
     70msgid "Program:" 
     71msgstr "Programme :" 
    6872 
    6973#: inc/class.efimetadatas.php:85 
    70 msgid "Speed" 
    71 msgstr "Vitesse" 
     74msgid "Speed:" 
     75msgstr "Vitesse :" 
    7276 
    7377#: inc/class.efimetadatas.php:86 
    74 msgid "Aperture" 
    75 msgstr "Ouverture" 
     78msgid "Aperture:" 
     79msgstr "Ouverture :" 
    7680 
    7781#: inc/class.efimetadatas.php:87 
    78 msgid "ISO" 
    79 msgstr "ISO" 
     82msgid "ISO:" 
     83msgstr "ISO :" 
    8084 
    8185#: inc/class.efimetadatas.php:88 
    82 msgid "Focal" 
    83 msgstr "Focale" 
     86msgid "Focal:" 
     87msgstr "Focale :" 
    8488 
    8589#: inc/class.efimetadatas.php:89 
    86 msgid "Exposure Bias" 
    87 msgstr "Décalage d'exposition" 
     90msgid "Exposure Bias:" 
     91msgstr "Décalage d'exposition :" 
    8892 
    8993#: inc/class.efimetadatas.php:90 
    90 msgid "Metering mode" 
    91 msgstr "Mode de mesure" 
     94msgid "Metering mode:" 
     95msgstr "Mode de mesure :" 
    9296 
    9397#: inc/class.efimetadatas.php:94 
  • plugins/efiMetadatas/release.txt

    r2304 r3329  
     10.4 15-01-2015 Pierre Van Glabeke 
     2 * ajout options dans le widget (class, content only, hors ligne) 
     3 * modifications affichage pour compatibilité currywurst 
     4 * modifications localisation 
     5 
    160.3 20100605 
    2  * Switched to DC 2.2 
     7 * Writed now for DC 2.2 or higher 
    38 
    490.2 20091218 
Note: See TracChangeset for help on using the changeset viewer.

Sites map