Ignore:
Timestamp:
Feb 24, 2011, 4:45:43 PM (13 years ago)
Author:
patdenice
Message:

Plugins can add their own modules.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/PWG_Stuffs/modules/piclenswall/main.inc.php

    r8813 r9369  
    2121  else
    2222  {
    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
     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
    2727      {
    28                                 $rssfeed = $obj->root_site_piclens.PICLENS_PATH.'piclens-rss.php?/category/'.(empty($page['category']['permalink']) ? $page['category']['id'] : $page['category']['permalink']);
     28        $rssfeed = $obj->root_site_piclens.PICLENS_PATH.'piclens-rss.php?/category/'.(empty($page['category']['permalink']) ? $page['category']['id'] : $page['category']['permalink']);
    2929      }
    30                         elseif (@in_array($page['category']['id'], $obj->my_config['piclens_wall_categories']))
    31                         {
    32                                 //  categorie pour laquelle le mur est parametre.
    33                                 $rssfeed = $obj->root_site_piclens.PICLENS_PATH.'piclenswall-rss.php?/category/'.(empty($page['category']['permalink']) ? $page['category']['id'] : $page['category']['permalink']);
    34                         }
    35                 }
     30      elseif (@in_array($page['category']['id'], $obj->my_config['piclens_wall_categories']))
     31      {
     32        //  categorie pour laquelle le mur est parametre.
     33        $rssfeed = $obj->root_site_piclens.PICLENS_PATH.'piclenswall-rss.php?/category/'.(empty($page['category']['permalink']) ? $page['category']['id'] : $page['category']['permalink']);
     34      }
     35    }
    3636  }
    3737  $block['RSSFEED'] = $rssfeed;
     
    7777
    7878    if (isset($obj->my_config['piclens_wall_tutorial']) and !empty($obj->my_config['piclens_wall_tutorial']))
    79         $block['tutorial'] = (empty($obj->my_config['piclens_wall_tutorialtime']) ? "4500" : @$obj->my_config['piclens_wall_tutorialtime']).','.@$obj->my_config['piclens_wall_tutorial'];             
     79        $block['tutorial'] = (empty($obj->my_config['piclens_wall_tutorialtime']) ? "4500" : @$obj->my_config['piclens_wall_tutorialtime']).','.@$obj->my_config['piclens_wall_tutorial'];   
    8080
    8181
    82         if (isset($obj->my_config['piclens_wall_customButtonURL']) and !empty($obj->my_config['piclens_wall_customButtonURL']))
     82  if (isset($obj->my_config['piclens_wall_customButtonURL']) and !empty($obj->my_config['piclens_wall_customButtonURL']))
    8383        $block['customButton'] = @$obj->my_config['piclens_wall_customButtonURL'].(empty($obj->my_config['piclens_wall_customButtonTARGET']) ? ','.PICLENS_PATH : ','.@$obj->my_config['piclens_wall_customButtonTARGET']);
    8484
     
    8686        $block['icons'] = @$obj->my_config['piclens_wall_icons'];
    8787    if (isset($obj->my_config['piclens_wall_linkCSS']) and !empty($obj->my_config['piclens_wall_linkCSS']))
    88         $block['icons'] = @$obj->my_config['piclens_wall_linkCSS']; 
     88        $block['icons'] = @$obj->my_config['piclens_wall_linkCSS'];
    8989
    90  
     90  $block['TEMPLATE'] = 'stuffs_piclenswall.tpl';
    9191}
    92 else
    93 {
    94   return false;
    95 }
    96        
     92
    9793?>
Note: See TracChangeset for help on using the changeset viewer.