Changeset 1003
- Timestamp:
- 04/08/09 15:08:01 (14 years ago)
- Location:
- plugins/linkSummarizer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/linkSummarizer/_define.php
r792 r1003 33 33 /* Description*/ 'Extracts links from posts', 34 34 /* Author */ 'Moe (http://gniark.net/)', 35 /* Version */ '0.1. 1',35 /* Version */ '0.1.2', 36 36 /* Permissions */ 'admin,contentadmin' 37 37 ); -
plugins/linkSummarizer/_public.php
r791 r1003 60 60 $size = count($ms[0])-1; 61 61 62 if ($size > 0)62 for ($i = 0;$i <= $size;$i++) 63 63 { 64 for ($i = 0;$i <= $size;$i++) 64 $a = $ms[2][$i]; 65 66 preg_match('/href="(.*?)"/msu',$a,$href); 67 $href = $href[1]; 68 69 if (strpos($href,'#') === 0) 65 70 { 66 $a = $ms[2][$i]; 67 68 preg_match('/href="(.*?)"/msu',$a,$href); 69 $href = $href[1]; 70 71 if (strpos($href,'#') === 0) 72 { 73 continue; 74 } 75 76 $content = html::clean($ms[3][$i]); 77 if (empty($content)) 78 { 79 $content = text::cutString($href,80); 80 } 81 82 $links[] = '<a '.$a.'>'.$content.'</a>'; 71 continue; 83 72 } 73 74 $content = html::clean($ms[3][$i]); 75 if (empty($content)) 76 { 77 $content = text::cutString($href,80); 78 } 79 80 $links[] = '<a '.$a.'>'.$content.'</a>'; 84 81 } 85 82 -
plugins/linkSummarizer/locales/fr/main.po
r792 r1003 4 4 "Report-Msgid-Bugs-To: \n" 5 5 "POT-Creation-Date: 2009-02-19 23:31+0100\n" 6 "PO-Revision-Date: 2009-02-19 23:3 1+0100\n"6 "PO-Revision-Date: 2009-02-19 23:36+0100\n" 7 7 "Last-Translator: Moe <poedit@gniark.net>\n" 8 8 "Language-Team: Moe <poedit@gniark.net>\n" … … 36 36 37 37 #: index.php:84 38 #, fuzzy39 38 msgid "Display the links summary only in post context" 40 39 msgstr "Afficher le résumé des liens seulement dans le contexte d'un billet"
Note: See TracChangeset
for help on using the changeset viewer.