source: extensions/PWG_Stuffs/modules/piclenswall/main.inc.php @ 3300

Revision 3300, 2.0 KB checked in by patdenice, 11 years ago (diff)

New extension added:
PWG Stuffs (2.0.o)

Line 
1<?php
2
3if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
4
5global $page;
6
7// RSS Feed only available in category or index gallery
8if (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'];
44}
45else
46{
47  return false;
48}
49       
50?>
Note: See TracBrowser for help on using the repository browser.