1 | <?php /* |
---|
2 | Plugin Name: Front2Back |
---|
3 | Version: 2.0.a |
---|
4 | Description: Postcards back display if there is. / Verso d'une carte. |
---|
5 | Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=183 |
---|
6 | Author: VDigital (PhpWebGallery team) |
---|
7 | Author URI: http://www.phpwebgallery.net |
---|
8 | */ |
---|
9 | |
---|
10 | /* Synopsis |
---|
11 | 1 - If same name file exists in ./thumbnail/verso/ or ... |
---|
12 | 2 - A link is displayed |
---|
13 | 3 - OnMouseOver Front2Back replace the original picture |
---|
14 | |
---|
15 | Localisation of Front2Back, just add: |
---|
16 | $lang['Front2Back'] = 'See back'; |
---|
17 | in your ./language/xxxx/local.lang.php |
---|
18 | |
---|
19 | Requirements/recommendations: |
---|
20 | 1 - Backsize = Frontsize |
---|
21 | 2 - Profile displayed sizes are Null or > Backsided pictures sizes |
---|
22 | 3 - Metadata are synchronized |
---|
23 | |
---|
24 | */ |
---|
25 | /* |
---|
26 | History |
---|
27 | 2008-10-30 2.0.a (stable) |
---|
28 | Smarty version for Piwigo (Don't use it with PhpWebGallery 1.7.x) |
---|
29 | 2007-11-07 Add -r to back filenames if your picture are portrait in one side |
---|
30 | and landscape in the other one. |
---|
31 | 2007-10-10 Additional and optionnal parameters |
---|
32 | $conf['Front2Back_path'] real path if you want them outside ./galleries/ |
---|
33 | Warning: if F2B_path is set then directory tree will not reminded ! |
---|
34 | $conf['Front2Back_parent'] can be set to 'thumbnail/' or 'pwg_high/' |
---|
35 | |
---|
36 | 2007-10-08 Conflict with PY GVideo solved |
---|
37 | (render_element_content usage error: No residual impact) |
---|
38 | 2007-10-07 First release |
---|
39 | */ |
---|
40 | |
---|
41 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
42 | define('F2B_DIR' , basename(dirname(__FILE__))); |
---|
43 | define('F2B_PATH' , PHPWG_PLUGINS_PATH . F2B_DIR . '/'); |
---|
44 | include_once( F2B_PATH . 'Front2Back.php'); |
---|
45 | ?> |
---|