Changeset 19332 for extensions/pdf2tab


Ignore:
Timestamp:
12/08/12 14:58:11 (7 years ago)
Author:
julien1311
Message:

add tooltip

Location:
extensions/pdf2tab
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/pdf2tab/picture.php

    r19310 r19332  
    11<?php 
    22add_event_handler('render_element_content','pdf2tab_add_tag_picture',EVENT_HANDLER_PRIORITY_NEUTRAL+10,2); 
     3 
     4load_language('plugin.lang', PDF2TAB_PATH); 
    35 
    46function pdf2tab_add_tag_picture($content, $element_info) { 
     
    68                preg_match('/<\s*img\s+[^>]*?src\s*=\s*(\'|\")(.*?)\\1[^>]*?\/?\s*>/i',$content,$match); 
    79                 
    8                 $content = str_replace($match[0],'<a href="'.$element_info['element_url'].'" target="_blank">'.$match[0].'</a>',$content); 
     10                $content = str_replace($match[0],'<a href="'.$element_info['element_url'].'" target="_blank" title="'.l10n('Open the file in a new tab').'">'.$match[0].'</a>',$content); 
    911        } 
    1012         
  • extensions/pdf2tab/template/pdf2tab_thumbnails.tpl

    r19287 r19332  
    55        function pdf2tab_link() { 
    66                $("img[pdf2tab$=pdf]").closest('a').attr("target","_blank"); 
     7{/literal} 
     8                $("img[pdf2tab$=pdf]").attr("title","{'Open the file in a new tab'|@translate}"); 
     9{literal} 
    710                $("img[pdf2tab$=pdf]").closest('a').attr("href",$("img[pdf2tab$=pdf]").attr("pdf2tab")); 
    811        } 
  • extensions/pdf2tab/thumbnails.php

    r19287 r19332  
    11<?php 
    22add_event_handler('loc_end_index_thumbnails', 'pdf2tab_thumbnails'); 
     3 
     4load_language('plugin.lang', PDF2TAB_PATH); 
    35 
    46function pdf2tab_thumbnails($tpl_thumbnails_var) { 
Note: See TracChangeset for help on using the changeset viewer.