[3300] | 1 | <?php |
---|
| 2 | |
---|
| 3 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 4 | |
---|
| 5 | global $page; |
---|
| 6 | |
---|
| 7 | // RSS Feed only available in category or index gallery |
---|
| 8 | if (get_db_plugins('active','piclens') and isset($page['section']) and $page['section'] == 'categories') |
---|
| 9 | { |
---|
| 10 | include_once PHPWG_ROOT_PATH.'plugins/piclens/include/Piclens.class.php'; |
---|
| 11 | |
---|
| 12 | $obj = new Piclens(); |
---|
| 13 | $obj->load_config(); |
---|
| 14 | |
---|
| 15 | $rssfeed = ''; |
---|
| 16 | |
---|
| 17 | if( empty($page['category'])) |
---|
| 18 | { |
---|
| 19 | $rssfeed = get_root_url().PICLENS_PATH.'piclenswall-rss.php?/categories'; |
---|
| 20 | } |
---|
| 21 | else |
---|
| 22 | { |
---|
| 23 | // remplacement naviagation ne doit pas etre active et mis en place sur la page... |
---|
| 24 | if (!@$obj->my_config['piclens_wall_nav'] or !@in_array($page['category']['id'], $obj->my_config['piclens_wall_cat_nav_replace'])) |
---|
| 25 | { |
---|
| 26 | if (@$obj->my_config['piclens_wall_specif'] == 'common') // pas de specificites 3DWall : utilisation des parametres piclens |
---|
| 27 | { |
---|
| 28 | $rssfeed = get_root_url().PICLENS_PATH.'piclens-rss.php?/category/'.(empty($page['category']['permalink']) ? $page['category']['id'] : $page['category']['permalink']); |
---|
| 29 | } |
---|
| 30 | elseif (@in_array($page['category']['id'], $obj->my_config['piclens_wall_categories'])) |
---|
| 31 | { |
---|
| 32 | // categorie pour laquelle le mur est parametre. |
---|
| 33 | $rssfeed = get_root_url().PICLENS_PATH.'piclenswall-rss.php?/category/'.(empty($page['category']['permalink']) ? $page['category']['id'] : $page['category']['permalink']); |
---|
| 34 | } |
---|
| 35 | } |
---|
| 36 | } |
---|
| 37 | $block['RSSFEED'] = $rssfeed; |
---|
| 38 | $block['PIC_HEIGHT'] = @$obj->my_config['piclens_wall_height']; //$datas[0]; |
---|
| 39 | $block['COLOR'] = @$obj->my_config['piclens_wall_color']; //$datas[1]; |
---|
| 40 | $block['SHOWFULLSCREEN'] = (@$obj->my_config['piclens_wall_showfullscreen'] ? "true" : "false"); |
---|
| 41 | $block['SHOWEMBED'] = (@$obj->my_config['piclens_wall_showembed'] ? "true" : "false"); |
---|
| 42 | $block['SHOWSEARCH'] = (@$obj->my_config['piclens_wall_showsearch'] ? "true" : "false"); |
---|
| 43 | $block['TRANSPARENT'] = @$obj->my_config['piclens_wall_transparent']; |
---|
[3563] | 44 | $block['SWF_LINK'] = (@$obj->my_config['piclens_wall_swflocal'] ? @$obj->root_site_piclens.PICLENS_PATH.'swf/cooliris.swf' : 'http://apps.cooliris.com/embed/cooliris.swf'); |
---|
[3535] | 45 | $block['NBLIGNE'] = (isset($obj->my_config['piclens_wall_nb_ligne']) ? @$obj->my_config['piclens_wall_nb_ligne'] : "3"); |
---|
| 46 | |
---|
[3300] | 47 | } |
---|
| 48 | else |
---|
| 49 | { |
---|
| 50 | return false; |
---|
| 51 | } |
---|
| 52 | |
---|
| 53 | ?> |
---|