Changeset 9402
- Timestamp:
- Feb 27, 2011, 10:39:39 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PayPalShoppingCart/main.inc.php
r9269 r9402 2 2 /* 3 3 Plugin Name: PayPal Shopping Cart 4 Version: 1.0. 44 Version: 1.0.5 5 5 Description: Append PayPal Shopping Cart on Piwigo to sell photos 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=499 … … 44 44 Add de_DE and it_IT (par Sugar888) 45 45 46 1.0.5 27/02/2011 47 Correction pb compatibilité avec certains thèmes 48 Déplacement des boutons PayPal en début de table info 49 46 50 */ 47 51 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 48 52 define('PPPPP_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/'); 49 53 include_once (PPPPP_PATH.'/constants.php'); 50 54 51 55 function ppppp_append_form($tpl_source, &$smarty){ 52 $pattern = '#< /table>#';56 $pattern = '#<.*\"infoTable\".*>#'; 53 57 $replacement = ' 54 58 <tr> … … 80 84 </td> 81 85 </tr> 82 </table>83 86 84 87 {literal} … … 92 95 {/literal} 93 96 '; 97 if(!preg_match($pattern,$tpl_source)) { 98 $pattern='#{if isset\(\$COMMENT_IMG\)}#'; 99 $replacement='<table>'.$replacement.'</table>'; 100 $replacement=$replacement.'$0'; 101 } 102 else 103 $replacement='$0'.$replacement; 94 104 return preg_replace($pattern, $replacement, $tpl_source,1); 95 105 }
Note: See TracChangeset
for help on using the changeset viewer.