Changeset 19332
- Timestamp:
- Dec 8, 2012, 2:58:11 PM (12 years ago)
- Location:
- extensions/pdf2tab
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/pdf2tab/picture.php
r19310 r19332 1 1 <?php 2 2 add_event_handler('render_element_content','pdf2tab_add_tag_picture',EVENT_HANDLER_PRIORITY_NEUTRAL+10,2); 3 4 load_language('plugin.lang', PDF2TAB_PATH); 3 5 4 6 function pdf2tab_add_tag_picture($content, $element_info) { … … 6 8 preg_match('/<\s*img\s+[^>]*?src\s*=\s*(\'|\")(.*?)\\1[^>]*?\/?\s*>/i',$content,$match); 7 9 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); 9 11 } 10 12 -
extensions/pdf2tab/template/pdf2tab_thumbnails.tpl
r19287 r19332 5 5 function pdf2tab_link() { 6 6 $("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} 7 10 $("img[pdf2tab$=pdf]").closest('a').attr("href",$("img[pdf2tab$=pdf]").attr("pdf2tab")); 8 11 } -
extensions/pdf2tab/thumbnails.php
r19287 r19332 1 1 <?php 2 2 add_event_handler('loc_end_index_thumbnails', 'pdf2tab_thumbnails'); 3 4 load_language('plugin.lang', PDF2TAB_PATH); 3 5 4 6 function pdf2tab_thumbnails($tpl_thumbnails_var) {
Note: See TracChangeset
for help on using the changeset viewer.