Changeset 9383


Ignore:
Timestamp:
Feb 26, 2011, 4:28:24 PM (9 years ago)
Author:
patdenice
Message:

Add display option. Optimizations.

Location:
extensions/PWG_Stuffs
Files:
2 added
2 deleted
33 edited
4 moved

Legend:

Unmodified
Added
Removed
  • extensions/PWG_Stuffs/admin/add_module.inc.php

    r9369 r9383  
    3030      $desc = !empty($_POST['module_desc']) ? '"' . $_POST['module_desc'] . '"' : 'NULL';
    3131      $groups = !empty($_POST['groups']) ? '"' . implode(',', $_POST['groups']) . '"' : 'NULL';
    32       $users = !empty($_POST['users']) ? '"' . implode(',', $_POST['users']) . '"' : 'NULL';
     32      $users = 'NULL';
     33      if ($conf['Stuffs']['user_perm'])
     34      {
     35        $users = !empty($_POST['users']) ? '"' . implode(',', $_POST['users']) . '"' : '""';
     36      }
    3337      $show_title = isset($_POST['show_title']) ? '"true"' : '"false"';
    3438      $on_home = isset($_POST['on_home'])  ? '"true"' : '"false"';
     39      $on_root = isset($_POST['on_root'])  ? '"true"' : '"false"';
    3540      $on_cats = isset($_POST['on_cats'])  ? '"true"' : '"false"';
    3641      $on_picture = isset($_POST['on_picture'])  ? '"true"' : '"false"';
     
    4954    show_title=' . $show_title .',
    5055    on_home=' . $on_home .',
     56    on_root=' . $on_root .',
    5157    on_cats=' . $on_cats . ',
    5258    on_picture='. $on_picture . '
     
    6672
    6773        $query = '
    68 INSERT INTO ' . STUFFS_TABLE . ' ( id, pos, name, descr, path, parent, datas, users, groups, show_title, on_home, on_cats, on_picture, id_line, width )
     74INSERT INTO ' . STUFFS_TABLE . ' ( id, pos, name, descr, path, parent, datas, users, groups, show_title, on_home, on_root, on_cats, on_picture, id_line, width )
    6975VALUES (' . $next_element_id . ' ,
    7076  ' . $pos . ',
     
    7884  ' . $show_title . ',
    7985  ' . $on_home . ',
     86  ' . $on_root . ',
    8087  ' . $on_cats . ',
    8188  ' . $on_picture . ',
     
    94101  $module['users'] = array('guest', 'generic', 'normal', 'admin', 'webmaster');
    95102  $module['groups'] = array();
     103
    96104  $template->assign(array(
    97105    'STUFFS_TITLE' => l10n('stuffs_add_mod'),
    98106    'MODULE_NAME' => $modules[$module_path]['name'],
    99     'show_title_CHECKED' => 'checked="checked"',
    100     'on_home_CHECKED' => 'checked="checked"'));
     107    'show_title_CHECKED' => true,
     108    )
     109  );
     110
     111  $template->assign('selected_options', array(
     112    'on_home' => true,
     113    'on_root' => true,
     114    'on_cats' => false,
     115    'on_picture' => false,
     116    )
     117  );
    101118}
    102119
    103120// Users perm
    104 $template->assign('user_perm', array(
    105   'GUEST' => (in_array('guest', $module['users']) ? 'checked="checked"' : ''),
    106   'GENERIC' => (in_array('generic', $module['users']) ? 'checked="checked"' : ''),
    107   'NORMAL' => (in_array('normal', $module['users']) ? 'checked="checked"' : ''),
    108   'ADMIN' => (in_array('admin', $module['users']) ? 'checked="checked"' : ''),
    109   'WEBMASTER' => (in_array('webmaster', $module['users']) ? 'checked="checked"' : '')));
     121if ($conf['Stuffs']['user_perm'])
     122{
     123  $users_id = array('guest', 'generic', 'normal', 'admin', 'webmaster');
     124  $users = array();
     125  foreach ($users_id as $id)
     126  {
     127    $users[$id] = l10n('user_status_'.$id);
     128  }
     129  $template->assign(array(
     130    'users' => $users,
     131    'selected_users' => isset($module['users']) ? $module['users'] : $users_id,
     132    )
     133  );
     134}
    110135
    111136// Groups perm
    112 $groups = get_all_groups();
    113 if (!empty($groups))
     137if ($conf['Stuffs']['group_perm'])
    114138{
    115   $template->assign('group_perm', array('GROUPSELECTION' => get_html_groups_selection($groups, 'groups', $module['groups'])));
     139        $query = 'SELECT id, name FROM '.GROUPS_TABLE.' ORDER BY name ASC;';
     140  $result = pwg_query($query);
     141  $groups = array();
     142  while ($row = pwg_db_fetch_assoc($result))
     143  {
     144    $groups[$row['id']] = $row['name'];
     145  }
     146  $template->assign(array(
     147    'groups' => $groups,
     148    'selected_groups' => isset($module['groups']) ? $module['groups'] : array(),
     149    )
     150  );
    116151}
     152
     153// Level perm
     154if ($conf['Stuffs']['level_perm'])
     155{
     156  foreach ($conf['available_permission_levels'] as $level)
     157  {
     158    $level_options[$level] = l10n(sprintf('Level %d', $level));
     159  }
     160  $template->assign(array(
     161    'level_perm' => $level_options,
     162    'level_selected' => isset($module['level']) ? $module['level'] : 0,
     163    )
     164  );
     165}
     166
     167// Display options
     168$template->assign('display_options', array(
     169  'on_home' => true,
     170  'on_root' => true,
     171  'on_cats' => true,
     172  'on_picture' => true,
     173  )
     174);
    117175
    118176// Module configuration
  • extensions/PWG_Stuffs/admin/admin.php

    r9369 r9383  
    88include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
    99include_once(STUFFS_PATH . 'include/functions.inc.php');
    10 include_once(STUFFS_PATH . 'admin/functions.inc.php');
    1110$my_base_url = get_admin_plugin_menu_link(__FILE__);
    1211
     
    2827if ($page['tab'] == 'edit_module')
    2928{
    30   $tabsheet->add('edit_module', l10n('stuffs_edit_mod'), $my_base_url.'&tab=edit_module');
     29  $tabsheet->add('edit_module', l10n('stuffs_edit_mod'), $my_base_url.'&tab=edit_module&edit='.$_GET['edit']);
    3130}
     31$tabsheet->add('config', l10n('Configuration'), $my_base_url.'&tab=config');
    3232$tabsheet->select($page['tab']);
    3333$tabsheet->assign();
     
    5151
    5252// Include file
    53 include(STUFFS_PATH.'admin/'.$page['tab'].'.php');
     53include(STUFFS_PATH.'admin/'.$page['tab'].'.inc.php');
    5454
    5555?>
  • extensions/PWG_Stuffs/admin/edit_module.inc.php

    r9369 r9383  
    1616  'MODULE_NAME' => $module['name'],
    1717  'DESC_VALUE' => (isset($module['descr']) ? $module['descr'] : ''),
    18   'show_title_CHECKED' => ($module['show_title'] == 'true' ? 'checked="checked"' : ''),
    19   'on_home_CHECKED' => ($module['on_home'] == 'true' ? 'checked="checked"' : ''),
    20   'on_cats_CHECKED' => ($module['on_cats'] == 'true' ? 'checked="checked"' : ''),
    21   'on_picture_CHECKED' => ($module['on_picture'] == 'true' ? 'checked="checked"' : ''),
     18  'show_title_CHECKED' => ($module['show_title'] == 'true'),
     19  )
     20);
     21
     22$template->assign('selected_options', array(
     23  'on_home' => ($module['on_home'] == 'true'),
     24  'on_root' => ($module['on_root'] == 'true'),
     25  'on_cats' => ($module['on_cats'] == 'true'),
     26  'on_picture' => ($module['on_picture'] == 'true'),
    2227  )
    2328);
     
    2530$module_path = $module['path'];
    2631
    27 include('add_module.php');
     32include('add_module.inc.php');
    2833
    2934?>
  • extensions/PWG_Stuffs/admin/template/add_module.tpl

    r7855 r9383  
     1{known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"}
    12{include file='include/autosize.inc.tpl'}
    2 
    3 {$TINYMCE_SCRIPT}
     3{html_head}{literal}
     4<style type="text/css">
     5.groups { margin-top:15px; }
     6.groups input { margin-right:5px; }
     7.groups label { margin-right:10px; display: inline-block; overflow: hidden; white-space: nowrap; line-height:1.3em;}
     8.groups div { float:right; width:74%; line-height:1.3em;}
     9</style>
     10{/literal}{/html_head}
    411
    512<div class="titrePage">
     
    714</div>
    815
    9 <form method="post" action="" class="properties"  ENCTYPE="multipart/form-data">
     16<form method="post" action="" class="properties" ENCTYPE="multipart/form-data">
     17<fieldset id="mainConf" >
     18  <legend>{'stuffs_module_config'|@translate}</legend>
     19        <ul>
     20    <li>
     21      <span class="property">
     22        <label for="module_name">{'stuffs_module_title'|@translate}</label>
     23      </span>
     24      <textarea rows="2" name="module_name" id="module_name" class="description" style="height:2em; width:500px;">{$MODULE_NAME}</textarea>
     25    </li>
     26    <li>
     27      <span class="property">
     28        <label for="module_desc">{'stuffs_desc'|@translate}<br>&nbsp;</label>
     29      </span>
     30      <input type="text" maxlength="255" value="{$DESC_VALUE}" name="module_desc" id="module_desc" style="width:500px;"/><br><i>{'stuffs_only_for_admin'|@translate}</i>
     31    </li>
     32    <li>
     33      <span class="property">
     34        <label for="show_title">{'stuffs_show_title'|@translate}</label>
     35      </span>
     36      <input type="checkbox" name="show_title" id="show_title" value="1" {if $show_title_CHECKED}checked="checked"{/if}>
     37    </li>
    1038
    11 <fieldset>
    12         <legend>{'stuffs_module_config'|@translate}</legend>
    13         <table>
    14 
    15                 <tr><td colspan="3"><br></td></tr>
    16 
    17                 <tr>
    18                         <td><b>{'stuffs_module_title'|@translate}&nbsp;&nbsp;</b></td>
    19                         <td colspan="2"><textarea cols="50" rows="2" name="module_name" id="module_name" class="description" style="height: 2em">{$MODULE_NAME}</textarea></td>
    20                 </tr>
    21 
    22                 <tr><td colspan="3"><br></td></tr>
    23 
    24                 <tr>
    25                         <td><b>{'stuffs_desc'|@translate}&nbsp;&nbsp;</b></td>
    26                         <td colspan="2"><input type="text" size="65" maxlength="255" value="{$DESC_VALUE}" name="module_desc"/></td>
    27                 </tr>
    28                 <tr>
    29                         <td></td>
    30                         <td colspan="2">{'stuffs_only_for_admin'|@translate}</td>
    31                 </tr>
    32 
    33                 <tr><td colspan="3"><br></td></tr>
    34                 <tr>
    35                         <td><b>{'stuffs_authorized_users'|@translate} &nbsp;&nbsp;</b></td>
    36                         <td colspan="2">
    37                                 <div id="users">
    38                                 <input type="checkbox" name="users[]" id="guest" value="guest" {$user_perm.GUEST}><label>&nbsp;{'user_status_guest'|@translate}</label>
    39                                 <input type="checkbox" name="users[]" id="generic" value="generic" {$user_perm.GENERIC}><label>&nbsp;{'user_status_generic'|@translate}</label>
    40                                 <input type="checkbox" name="users[]" id="normal" value="normal" {$user_perm.NORMAL}><label>&nbsp;{'user_status_normal'|@translate}</label>
    41                                 <input type="checkbox" name="users[]" id="admin" value="admin" {$user_perm.ADMIN}><label>&nbsp;{'user_status_admin'|@translate}</label>
    42                                 <input type="checkbox" name="users[]" id="webmaster" value="webmaster" {$user_perm.WEBMASTER}><label>&nbsp;{'user_status_webmaster'|@translate}</label>
    43                                 </div>
    44                         </td>
    45         </tr>
    46 
    47                 {if isset($group_perm)}
    48                 <tr><td colspan="3"><br></td></tr>
    49                 <tr>
    50                         <td><b>{'stuffs_authorized_group'|@translate} &nbsp;&nbsp;</b></td>
    51                         <td colspan="2">{$group_perm.GROUPSELECTION}</td>
    52         </tr>
    53         <tr>
    54                 <td></td>
    55                         <td colspan="2"><i>{'stuffs_public_module'|@translate}</i></td>
    56         </tr>
     39    {if isset($level_perm)}
     40    <li style="margin-top:15px;">
     41      <span class="property">
     42        <label for="level">{'Privacy level'|@translate}</label>
     43      </span>
     44      <select name="level" id="level" size="1">{html_options options=$level_perm selected=$level_selected id=privacy}</select>
     45    </li>
    5746    {/if}
    5847
    59         <tr><td colspan="3"><br></td></tr>
    60         </table>
     48   
     49    {if isset($users)}
     50    <li class="groups" style="margin-top:15px;">
     51      <span class="property">
     52        <label for="users">{'stuffs_authorized_users'|@translate}</label>
     53      </span>
     54      {html_checkboxes options=$users selected=$selected_users name=users}
     55    </li>
     56    {/if}
     57
     58    {if isset($groups)}
     59    <li class="groups" style="margin-top:15px;">
     60      <span class="property">
     61        <label for="groups">{'stuffs_authorized_group'|@translate}</label>
     62      </span>
     63      <div>{html_checkboxes options=$groups selected=$selected_groups name=groups}</div>
     64    </li>
     65    <li class="groups">
     66      <div>
     67        <a href="#" onClick="jQuery('input[name^=\'groups\']').attr('checked', 'checked');return false;">{'stuffs_select_all'|@translate}</a> /
     68        <a href="#" onClick="jQuery('input[name^=\'groups\']').attr('checked', '');return false;">{'stuffs_unselect_all'|@translate}</a> &nbsp;
     69        <i>{'stuffs_guest'|@translate}</i>
     70      </div>
     71    </li>
     72    {/if}
     73  </ul>
    6174</fieldset>
    6275
    63 <fieldset>
    64         <legend>{'stuffs_visual_config'|@translate}</legend>
    65         <table>
    66                 <tr><td colspan="2"><br></td></tr>
    67                 <tr>
    68                         <td colspan="2"><input type="checkbox" name="show_title" value="1" {$show_title_CHECKED}>&nbsp;&nbsp;{'stuffs_show_title'|@translate}</td>
    69                 </tr>
    70                 <tr><td><br></td></tr>
    71                 <tr>
    72                         <td>{'stuffs_show_module_on'|@translate}</td>
    73                         <td>&nbsp;&nbsp;<input type="checkbox" name="on_home" value="1" {$on_home_CHECKED}>&nbsp;&nbsp;<i>{'stuffs_show_on_home'|@translate}</i></td>
    74                 </tr>
    75                 <tr><td></td>
    76                         <td>&nbsp;&nbsp;<input type="checkbox" name="on_cats" value="1" {$on_cats_CHECKED}>&nbsp;&nbsp;<i>{'stuffs_show_on_cats'|@translate}</i></td>
    77                 </tr>
    78                 <tr><td></td>
    79                         <td>&nbsp;&nbsp;<input type="checkbox" name="on_picture" value="1" {$on_picture_CHECKED}>&nbsp;&nbsp;<i>{'stuffs_show_on_pictures'|@translate}</i></td>
    80                 </tr>
    81                 <tr><td colspan="2"><br></td></tr>
    82         </table>
    83 
    84 
     76<fieldset id="indexDisplayConf">
     77        <legend>{'stuffs_show_module_on'|@translate}</legend>
     78  <ul>
     79    {foreach from=$display_options key=option item=value}
     80    {if $value}
     81    <li>
     82      <label>
     83        <span class="property">{'stuffs_show_'|@cat:$option|@translate}</span>
     84        <input type="checkbox" name="{$option}" value="1" {if $selected_options[$option]}checked="checked"{/if}>
     85      </label>
     86    </li>
     87    {/if}
     88    {/foreach}
     89  </ul>
    8590</fieldset>
    8691
  • extensions/PWG_Stuffs/admin/upgrade.inc.php

    r9369 r9383  
    9292  $query = 'ALTER TABLE ' . $prefixeTable . 'stuffs
    9393CHANGE `type` `path` VARCHAR( 255 ) NULL DEFAULT NULL,
    94 ADD `parent` VARCHAR( 255 ) NULL DEFAULT NULL AFTER `path`
     94ADD `parent` VARCHAR( 255 ) NULL DEFAULT NULL AFTER `path`,
     95ADD `level` TINYINT( 3 ) NOT NULL default "0" AFTER `groups`,
     96ADD `on_root` enum(\'true\',\'false\') NOT NULL AFTER `on_home`
     97;';
     98  pwg_query($query);
     99
     100  $query = 'UPDATE ' . $prefixeTable . 'stuffs
     101SET on_root = "false"
     102WHERE on_cats = "false"
    95103;';
    96104  pwg_query($query);
     
    107115;';
    108116  pwg_query($query);
     117
     118  $conf['Stuffs'] = array('level_perm' => false);
     119
     120  $query = 'SELECT id
     121FROM '.$prefixeTable.'stuffs
     122WHERE users <> "guest,generic,normal,admin,webmaster"
     123;';
     124  $ids = array_from_query($query, 'id');
     125  $conf['Stuffs']['user_perm'] = !empty($ids);
     126
     127  $query = 'SELECT id
     128FROM '.$prefixeTable.'stuffs
     129WHERE groups IS NOT NULL
     130;';
     131  $ids = array_from_query($query, 'id');
     132  $conf['Stuffs']['group_perm'] = !empty($ids);
     133
     134  $query = 'INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
     135VALUES ("PWG_Stuffs" , "'.pwg_db_real_escape_string(serialize($conf['Stuffs'])).'" , "PWG Stuffs configuration");';
     136  pwg_query($query); 
    109137}
    110138
    111 $query = '
    112 UPDATE ' . PLUGINS_TABLE . '
    113 SET version=\''.STUFFS_VERSION.'\'
    114 WHERE id=\'PWG_Stuffs\'';
    115 pwg_query($query);
    116 
    117139?>
  • extensions/PWG_Stuffs/include/class.inc.php

    r9369 r9383  
    99  var $blocks = array();
    1010  var $pos = 'begin';
     11  var $template_var = array();
    1112
    1213  function stuffs()
    1314  {
     15    global $page, $template;
     16
     17    if ($page['stuffs_section'] == 'on_picture')
     18    {
     19      $this->template_var['begin'] = 'PLUGIN_PICTURE_BEFORE';
     20      $this->template_var['end'] = 'PLUGIN_PICTURE_AFTER';
     21      $template->set_prefilter('header', array('stuffs', 'prefilter_picture_css'));
     22      pwgs_picture_special_sections();
     23    }
     24    else
     25    {
     26      $this->template_var['begin'] = 'PLUGIN_INDEX_CONTENT_BEFORE';
     27      $this->template_var['end'] = 'PLUGIN_INDEX_CONTENT_AFTER';
     28      $template->set_prefilter( 'header', array('stuffs', 'prefilter_index_css') );
     29    }
     30
    1431    $this->get_user_groups();
    1532    $this->get_modules();
     
    3552    global $page, $user;
    3653
     54    if (!isset($page['stuffs_section'])) return;
     55
    3756    $query = '
    38 SELECT id, name, path, parent, datas, groups, show_title, id_line, width
     57SELECT DISTINCT id, name, path, parent, datas, groups, show_title, id_line, width
    3958FROM ' . STUFFS_TABLE . '
    40 WHERE users LIKE "%' . $user['status'] . '%"
    41 ';
    42 
    43     $script = script_basename();
    44     if ($script == 'index')
    45     {
    46       $query .= !$page['is_homepage'] ?
    47         'AND on_cats = "true"' :
    48         'AND on_home = "true"' ;
    49     }
    50     elseif ($script == 'picture')
    51     {
    52       $query .= 'AND on_picture = "true"';
    53     }
    54     else return;
    55 
    56     $query .= '
    57 ORDER BY pos ASC;';
     59LEFT JOIN ' . USER_GROUP_TABLE . '
     60  ON user_id = '.$user['id'].'
     61WHERE (users IS NULL OR users LIKE "%' . $user['status'] . '%")
     62  AND (groups IS NULL OR groups REGEXP CONCAT("(^|,)",group_id,"(,|$)"))
     63  AND level <= '.$user['level'].'
     64  AND '.$page['stuffs_section'].' = "true"
     65ORDER BY pos ASC
     66;';
    5867
    5968    $result = pwg_query($query);
     
    8695      {
    8796        continue;
    88       }
    89       if (!empty($module['groups']))
    90       {
    91         $authorized_groups = explode(',', $module['groups']);
    92         if (array_intersect($this->user_groups, $authorized_groups) == array()) continue;
    9397      }
    9498
  • extensions/PWG_Stuffs/include/functions.inc.php

    r9369 r9383  
    3737}
    3838
     39function get_default_stuffs_modules($modules)
     40{
     41  $dir = opendir(STUFFS_PATH . 'modules/');
     42  while ($file = readdir($dir))
     43  {
     44    if ($file != '.' and $file != '..' and $file != '.svn')
     45    {
     46      $path = STUFFS_PATH . 'modules/' . $file;
     47      if (is_dir($path) and !is_link($path))
     48      {
     49        array_push($modules, array(
     50          'path' => $path,
     51          'name' => l10n('module_name_' . strtolower($file)),
     52          'description' => l10n('module_desc_' . strtolower($file)),
     53          )
     54        );
     55      }
     56    }
     57  }
     58  closedir($dir);
     59  return $modules;
     60}
     61
    3962function pwgs_picture_special_sections()
    4063{
     
    6184      {
    6285        case 'pwgs_mv': $title = l10n('Most visited'); break;
    63         case 'pwgs_br': $title = l10n('Best rated');   break;
    64         case 'pwgs_re': $title = l10n('Recent pictures');  break;
    65         case 'pwgs_ra': $title = l10n('Random pictures');       break;
     86        case 'pwgs_br': $title = l10n('Best rated'); break;
     87        case 'pwgs_re': $title = l10n('Recent pictures'); break;
     88        case 'pwgs_ra': $title = l10n('Random pictures'); break;
    6689      }
    6790      $page['title'] .= $conf['level_separator'] . $title;
     
    117140  global $page, $template;
    118141
    119   if ($page['is_homepage'])
     142  if ($page['stuffs_section'] == 'on_home')
    120143  {
    121144    $template->set_prefilter('index', 'hide_main_block_prefilter');
  • extensions/PWG_Stuffs/language/ar_SA/plugin.lang.php

    r9369 r9383  
    2929$lang['stuffs_show_on_home'] = 'في الصفحة الرئيسية';
    3030$lang['stuffs_show_on_cats'] = 'في كل صفحات التصنيفات';
    31 $lang['stuffs_show_on_pictures'] = 'في صفحات الصورة';
     31$lang['stuffs_show_on_picture'] = 'في صفحات الصورة';
    3232$lang['stuffs_no_options'] = 'لا خيارات لهذه الموديول';
    3333$lang['Hide on home page'] = 'اخفاء في الصفحة الاولى';
     34
     35/*TODO*/$lang['stuffs_perm'] = 'Activate authorization management:';
     36/*TODO*/$lang['stuffs_group_perm'] = 'by groups';
     37/*TODO*/$lang['stuffs_user_perm'] = 'by user type';
     38/*TODO*/$lang['stuffs_level_perm'] = 'by privacy level';
     39/*TODO*/$lang['stuffs_show_on_root'] = 'On root categories';
    3440
    3541//Messages d'infos
  • extensions/PWG_Stuffs/language/cs_CZ/plugin.lang.php

    r9369 r9383  
    3030$lang['stuffs_show_on_home'] = 'Na hlavní stránce';
    3131$lang['stuffs_show_on_cats'] = 'Ve všech kategoriích';
    32 $lang['stuffs_show_on_pictures'] = 'Na stránkách fotek';
     32$lang['stuffs_show_on_picture'] = 'Na stránkách fotek';
    3333$lang['stuffs_no_options'] = 'Žádné hodnoty k nastavení pro tento modul';
     34
     35/*TODO*/$lang['stuffs_perm'] = 'Activate authorization management:';
     36/*TODO*/$lang['stuffs_group_perm'] = 'by groups';
     37/*TODO*/$lang['stuffs_user_perm'] = 'by user type';
     38/*TODO*/$lang['stuffs_level_perm'] = 'by privacy level';
     39/*TODO*/$lang['stuffs_show_on_root'] = 'On root categories';
    3440
    3541//Messages d'infos
  • extensions/PWG_Stuffs/language/de_DE/plugin.lang.php

    r9369 r9383  
    3030$lang['stuffs_show_on_home'] = 'Nur auf der Indexseite (also die Hauptseite)';
    3131$lang['stuffs_show_on_cats'] = 'Auf allen Seiten der verschiedenen Kategorien';
    32 $lang['stuffs_show_on_pictures'] = 'Auf den Seiten der Bilder und Fotos';
     32$lang['stuffs_show_on_picture'] = 'Auf den Seiten der Bilder und Fotos';
    3333$lang['stuffs_no_options'] = 'Für dieses Modul steht keine Option zur Verfügung';
     34
     35/*TODO*/$lang['stuffs_perm'] = 'Activate authorization management:';
     36/*TODO*/$lang['stuffs_group_perm'] = 'by groups';
     37/*TODO*/$lang['stuffs_user_perm'] = 'by user type';
     38/*TODO*/$lang['stuffs_level_perm'] = 'by privacy level';
     39/*TODO*/$lang['stuffs_show_on_root'] = 'On root categories';
    3440
    3541//Messages d'infos
  • extensions/PWG_Stuffs/language/en_UK/plugin.lang.php

    r9369 r9383  
    2929$lang['stuffs_show_on_home'] = 'On main page';
    3030$lang['stuffs_show_on_cats'] = 'On all categories pages';
    31 $lang['stuffs_show_on_pictures'] = 'On picture pages';
     31$lang['stuffs_show_on_picture'] = 'On picture pages';
    3232$lang['stuffs_no_options'] = 'No options for this module';
    3333$lang['Hide on home page'] = 'Hide on home page';
     34
     35$lang['stuffs_perm'] = 'Activate authorization management:';
     36$lang['stuffs_group_perm'] = 'by groups';
     37$lang['stuffs_user_perm'] = 'by user type';
     38$lang['stuffs_level_perm'] = 'by privacy level';
     39$lang['stuffs_show_on_root'] = 'On root categories';
    3440
    3541//Messages d'infos
  • extensions/PWG_Stuffs/language/es_ES/plugin.lang.php

    r9369 r9383  
    3030$lang['stuffs_show_on_home'] = 'En la página inicial del sitio';
    3131$lang['stuffs_show_on_cats'] = 'En todas las páginas de las categorías';
    32 $lang['stuffs_show_on_pictures'] = 'En las páginas de las imágenes';
     32$lang['stuffs_show_on_picture'] = 'En las páginas de las imágenes';
    3333$lang['stuffs_no_options'] = 'Ninguna opcion disponibles para este módulo';
     34
     35/*TODO*/$lang['stuffs_perm'] = 'Activate authorization management:';
     36/*TODO*/$lang['stuffs_group_perm'] = 'by groups';
     37/*TODO*/$lang['stuffs_user_perm'] = 'by user type';
     38/*TODO*/$lang['stuffs_level_perm'] = 'by privacy level';
     39/*TODO*/$lang['stuffs_show_on_root'] = 'On root categories';
    3440
    3541//Messages d'infos
  • extensions/PWG_Stuffs/language/fr_FR/plugin.lang.php

    r9369 r9383  
    3030$lang['stuffs_show_on_home'] = 'Sur la page d\'accueil du site';
    3131$lang['stuffs_show_on_cats'] = 'Sur toutes les pages des catégories';
    32 $lang['stuffs_show_on_pictures'] = 'Sur les pages des images';
     32$lang['stuffs_show_on_picture'] = 'Sur les pages des images';
    3333$lang['stuffs_no_options'] = 'Pas d\'options disponibles pour ce module';
     34
     35$lang['stuffs_perm'] = 'Activer la gestion des droits d\'accès aux modules:';
     36$lang['stuffs_group_perm'] = 'par groupes';
     37$lang['stuffs_user_perm'] = 'par type d\'utilisateurs';
     38$lang['stuffs_level_perm'] = 'par niveau de confidentialité';
     39$lang['stuffs_show_on_root'] = 'A la racine des catégories';
    3440
    3541//Messages d'infos
  • extensions/PWG_Stuffs/language/hr_HR/plugin.lang.php

    r9369 r9383  
    3030$lang['stuffs_show_on_home'] = 'Na glavnoj stranici';
    3131$lang['stuffs_show_on_cats'] = 'Na stranicama kategorija';
    32 $lang['stuffs_show_on_pictures'] = 'Na stranicama slika';
     32$lang['stuffs_show_on_picture'] = 'Na stranicama slika';
    3333$lang['stuffs_no_options'] = 'Bez opcija za ovaj modul';
     34
     35/*TODO*/$lang['stuffs_perm'] = 'Activate authorization management:';
     36/*TODO*/$lang['stuffs_group_perm'] = 'by groups';
     37/*TODO*/$lang['stuffs_user_perm'] = 'by user type';
     38/*TODO*/$lang['stuffs_level_perm'] = 'by privacy level';
     39/*TODO*/$lang['stuffs_show_on_root'] = 'On root categories';
    3440
    3541//Messages d'infos
  • extensions/PWG_Stuffs/language/hu_HU/plugin.lang.php

    r9369 r9383  
    3030$lang['stuffs_show_on_home'] = 'Fő oldalon';
    3131$lang['stuffs_show_on_cats'] = 'Minden kategória oldalon';
    32 $lang['stuffs_show_on_pictures'] = 'Kép oldalakon';
     32$lang['stuffs_show_on_picture'] = 'Kép oldalakon';
    3333$lang['stuffs_no_options'] = 'A modulhoz nincs egyéb beállítási lehetőség';
     34
     35/*TODO*/$lang['stuffs_perm'] = 'Activate authorization management:';
     36/*TODO*/$lang['stuffs_group_perm'] = 'by groups';
     37/*TODO*/$lang['stuffs_user_perm'] = 'by user type';
     38/*TODO*/$lang['stuffs_level_perm'] = 'by privacy level';
     39/*TODO*/$lang['stuffs_show_on_root'] = 'On root categories';
    3440
    3541//Messages d'infos
  • extensions/PWG_Stuffs/language/it_IT/plugin.lang.php

    r9369 r9383  
    3030$lang['stuffs_show_on_home'] = 'Sulla home page del sito';
    3131$lang['stuffs_show_on_cats'] = 'Su tutte le pagine delle categorie';
    32 $lang['stuffs_show_on_pictures'] = 'Sulle pagine delle immagini';
     32$lang['stuffs_show_on_picture'] = 'Sulle pagine delle immagini';
    3333$lang['stuffs_no_options'] = 'Nessuna opzione per questo modulo';
     34
     35/*TODO*/$lang['stuffs_perm'] = 'Activate authorization management:';
     36/*TODO*/$lang['stuffs_group_perm'] = 'by groups';
     37/*TODO*/$lang['stuffs_user_perm'] = 'by user type';
     38/*TODO*/$lang['stuffs_level_perm'] = 'by privacy level';
     39/*TODO*/$lang['stuffs_show_on_root'] = 'On root categories';
    3440
    3541//Messages d'infos
  • extensions/PWG_Stuffs/language/ja_JP/plugin.lang.php

    r9369 r9383  
    3030$lang['stuffs_show_on_home'] = 'メインメニュー';
    3131$lang['stuffs_show_on_cats'] = 'すべてのカテゴリページ';
    32 $lang['stuffs_show_on_pictures'] = '写真ページ';
     32$lang['stuffs_show_on_picture'] = '写真ページ';
    3333$lang['stuffs_no_options'] = 'このモジュールにオプションはありません。';
     34
     35/*TODO*/$lang['stuffs_perm'] = 'Activate authorization management:';
     36/*TODO*/$lang['stuffs_group_perm'] = 'by groups';
     37/*TODO*/$lang['stuffs_user_perm'] = 'by user type';
     38/*TODO*/$lang['stuffs_level_perm'] = 'by privacy level';
     39/*TODO*/$lang['stuffs_show_on_root'] = 'On root categories';
    3440
    3541//Messages d'infos
  • extensions/PWG_Stuffs/language/lv_LV/plugin.lang.php

    r7356 r9383  
    3030$lang['stuffs_show_on_home'] = 'Galvenajā lapā';
    3131$lang['stuffs_show_on_cats'] = 'Visu kategoriju lapās';
    32 $lang['stuffs_show_on_pictures'] = 'Attēlu lapās';
     32$lang['stuffs_show_on_picture'] = 'Attēlu lapās';
    3333$lang['stuffs_no_options'] = 'Šim modulim nav citu iespēju';
     34
     35/*TODO*/$lang['stuffs_perm'] = 'Activate authorization management:';
     36/*TODO*/$lang['stuffs_group_perm'] = 'by groups';
     37/*TODO*/$lang['stuffs_user_perm'] = 'by user type';
     38/*TODO*/$lang['stuffs_level_perm'] = 'by privacy level';
     39/*TODO*/$lang['stuffs_show_on_root'] = 'On root categories';
    3440
    3541//Informatīvie paziņojumi
  • extensions/PWG_Stuffs/language/no_NO/plugin.lang.php

    r8825 r9383  
    2929$lang['stuffs_show_on_home'] = 'På hoved side';
    3030$lang['stuffs_show_on_cats'] = 'På alle kategori sider';
    31 $lang['stuffs_show_on_pictures'] = 'På bilde sider';
     31$lang['stuffs_show_on_picture'] = 'På bilde sider';
    3232$lang['stuffs_no_options'] = 'Ingen alternativer for denne modulen';
    3333$lang['Hide on home page'] = 'Gjem på hjemme side';
     34
     35/*TODO*/$lang['stuffs_perm'] = 'Activate authorization management:';
     36/*TODO*/$lang['stuffs_group_perm'] = 'by groups';
     37/*TODO*/$lang['stuffs_user_perm'] = 'by user type';
     38/*TODO*/$lang['stuffs_level_perm'] = 'by privacy level';
     39/*TODO*/$lang['stuffs_show_on_root'] = 'On root categories';
    3440
    3541//Messages d'infos
  • extensions/PWG_Stuffs/language/pl_PL/plugin.lang.php

    r9369 r9383  
    2929$lang['stuffs_show_on_home'] = 'Na głównej stronie';
    3030$lang['stuffs_show_on_cats'] = 'Na stronach ze wszystkimi kategoriami';
    31 $lang['stuffs_show_on_pictures'] = 'Na stronach z obrazami';
     31$lang['stuffs_show_on_picture'] = 'Na stronach z obrazami';
    3232$lang['stuffs_no_options'] = 'Nie ma opcji dla tego modułu';
    3333/*translate*/$lang['Hide on home page'] = 'Hide on home page';
     34
     35/*TODO*/$lang['stuffs_perm'] = 'Activate authorization management:';
     36/*TODO*/$lang['stuffs_group_perm'] = 'by groups';
     37/*TODO*/$lang['stuffs_user_perm'] = 'by user type';
     38/*TODO*/$lang['stuffs_level_perm'] = 'by privacy level';
     39/*TODO*/$lang['stuffs_show_on_root'] = 'On root categories';
    3440
    3541//Messages d'infos
  • extensions/PWG_Stuffs/language/pt_PT/plugin.lang.php

    r9369 r9383  
    2929$lang['stuffs_show_on_home'] = 'Na Página Principal';
    3030$lang['stuffs_show_on_cats'] = 'Em todas as páginas de categoria';
    31 $lang['stuffs_show_on_pictures'] = 'Nas páginas de Imagem';
     31$lang['stuffs_show_on_picture'] = 'Nas páginas de Imagem';
    3232$lang['stuffs_no_options'] = 'Este módulo não tem opções';
    3333$lang['Hide on home page'] = 'Esconder na página principal';
     34
     35/*TODO*/$lang['stuffs_perm'] = 'Activate authorization management:';
     36/*TODO*/$lang['stuffs_group_perm'] = 'by groups';
     37/*TODO*/$lang['stuffs_user_perm'] = 'by user type';
     38/*TODO*/$lang['stuffs_level_perm'] = 'by privacy level';
     39/*TODO*/$lang['stuffs_show_on_root'] = 'On root categories';
    3440
    3541//Messages d'infos
  • extensions/PWG_Stuffs/language/ru_RU/plugin.lang.php

    r9369 r9383  
    3131$lang['stuffs_show_on_home'] = 'На главную страницу';
    3232$lang['stuffs_show_on_cats'] = 'На всех страницах этой категории';
    33 $lang['stuffs_show_on_pictures'] = 'На страницах изображения';
     33$lang['stuffs_show_on_picture'] = 'На страницах изображения';
    3434$lang['stuffs_no_options'] = 'Нет вариантов для этого модуля';
     35
     36/*TODO*/$lang['stuffs_perm'] = 'Activate authorization management:';
     37/*TODO*/$lang['stuffs_group_perm'] = 'by groups';
     38/*TODO*/$lang['stuffs_user_perm'] = 'by user type';
     39/*TODO*/$lang['stuffs_level_perm'] = 'by privacy level';
     40/*TODO*/$lang['stuffs_show_on_root'] = 'On root categories';
    3541
    3642//Информация о сообщениях
  • extensions/PWG_Stuffs/language/sk_SK/plugin.lang.php

    r9369 r9383  
    3030$lang['stuffs_show_on_home'] = 'Na hlavnej stránke';
    3131$lang['stuffs_show_on_cats'] = 'Na všetkých stránkach kategórií';
    32 $lang['stuffs_show_on_pictures'] = 'Na stránkach fotografií';
     32$lang['stuffs_show_on_picture'] = 'Na stránkach fotografií';
    3333$lang['stuffs_no_options'] = 'Žiadne možnosti pre tento modul';
     34
     35/*TODO*/$lang['stuffs_perm'] = 'Activate authorization management:';
     36/*TODO*/$lang['stuffs_group_perm'] = 'by groups';
     37/*TODO*/$lang['stuffs_user_perm'] = 'by user type';
     38/*TODO*/$lang['stuffs_level_perm'] = 'by privacy level';
     39/*TODO*/$lang['stuffs_show_on_root'] = 'On root categories';
    3440
    3541//Messages d'infos
  • extensions/PWG_Stuffs/language/sv_SE/plugin.lang.php

    r9369 r9383  
    2929$lang['stuffs_show_on_home'] = 'På huvudsidan';
    3030$lang['stuffs_show_on_cats'] = 'På alla kategoriers sidor';
    31 $lang['stuffs_show_on_pictures'] = 'På bild sidor';
     31$lang['stuffs_show_on_picture'] = 'På bild sidor';
    3232$lang['stuffs_no_options'] = 'Inga alternativ för denna enhet';
    3333$lang['Hide on home page'] = 'Göm på huvudsidan';
     34
     35/*TODO*/$lang['stuffs_perm'] = 'Activate authorization management:';
     36/*TODO*/$lang['stuffs_group_perm'] = 'by groups';
     37/*TODO*/$lang['stuffs_user_perm'] = 'by user type';
     38/*TODO*/$lang['stuffs_level_perm'] = 'by privacy level';
     39/*TODO*/$lang['stuffs_show_on_root'] = 'On root categories';
    3440
    3541//Messages d'infos
  • extensions/PWG_Stuffs/language/tr_TR/plugin.lang.php

    r9369 r9383  
    2929$lang['stuffs_show_on_home'] = 'Ana sayfada';
    3030$lang['stuffs_show_on_cats'] = 'Tüm kategorilerdeki sayfalarda';
    31 $lang['stuffs_show_on_pictures'] = 'Resim sayfalarında';
     31$lang['stuffs_show_on_picture'] = 'Resim sayfalarında';
    3232$lang['stuffs_no_options'] = 'Bu modül için seçenekler yok';
    3333$lang['Hide on home page'] = 'Ana sayfada gizle';
     34
     35/*TODO*/$lang['stuffs_perm'] = 'Activate authorization management:';
     36/*TODO*/$lang['stuffs_group_perm'] = 'by groups';
     37/*TODO*/$lang['stuffs_user_perm'] = 'by user type';
     38/*TODO*/$lang['stuffs_level_perm'] = 'by privacy level';
     39/*TODO*/$lang['stuffs_show_on_root'] = 'On root categories';
    3440
    3541//Bilgi mesajları
  • extensions/PWG_Stuffs/main.inc.php

    r9369 r9383  
    99*/
    1010
    11 define('STUFFS_VERSION', '2.1.m');
    12 
    1311if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    1412
    15 global $prefixeTable;
     13global $prefixeTable, $conf;
    1614
    1715define('STUFFS_DIR' , basename(dirname(__FILE__)));
     
    1917define('STUFFS_TABLE' , $prefixeTable . 'stuffs');
    2018
     19$conf['Stuffs'] = @unserialize($conf['PWG_Stuffs']);
     20
    2121// Need upgrade?
    22 if ($plugin['version'] != STUFFS_VERSION)
     22if ($conf['Stuffs'] === false)
    2323  include('admin/upgrade.inc.php');
    2424
    2525function stuffs_admin_menu($menu)
    2626{
    27     array_push($menu, array(
    28       'NAME' => 'PWG Stuffs',
    29       'URL' => get_admin_plugin_menu_link(STUFFS_PATH . 'admin/admin.php')));
    30     return $menu;
     27  array_push($menu, array(
     28    'NAME' => 'PWG Stuffs',
     29    'URL' => get_admin_plugin_menu_link(STUFFS_PATH . 'admin/admin.php')
     30    )
     31  );
     32  return $menu;
    3133}
    3234
    33 function set_stuffs_on_index()
     35function load_stuffs()
    3436{
    35   global $page;
     37  global $template;
    3638
    37   if (isset($page['section']) and $page['section'] == 'categories')
     39  include(STUFFS_PATH . 'include/class.inc.php');
     40  include(STUFFS_PATH . 'include/functions.inc.php');
     41
     42  $template->set_template_dir(STUFFS_PATH.'theme/template/');
     43  $template->set_filename('stuffs', 'stuffs_blocks.tpl');
     44
     45  $stuffs = new stuffs();
     46
     47  if (!empty($stuffs->blocks['begin']))
    3848  {
    39     include_once(STUFFS_PATH . 'include/stuffs.inc.php');
     49    $template->assign('blocks', $stuffs->blocks['begin']);
     50    $template->concat($stuffs->template_var['begin'],  $template->parse('stuffs', true));
     51  }
     52  if (!empty($stuffs->blocks['end']))
     53  {
     54    $template->assign('blocks', $stuffs->blocks['end']);
     55    $template->concat($stuffs->template_var['end'],  $template->parse('stuffs', true));
    4056  }
    4157}
    4258
    43 function set_stuffs_on_picture()
     59function stuffs_section_init()
    4460{
    45   include_once(STUFFS_PATH . 'include/stuffs.inc.php');
     61  global $tokens, $page;
     62
     63  switch (script_basename())
     64  {
     65    case 'picture':
     66      $page['stuffs_section'] = 'on_picture';
     67      break;
     68
     69    case 'index':
     70      if (count($tokens) == 1 and empty($tokens[0]))
     71      {
     72        $page['stuffs_section'] = 'on_home';
     73        break;
     74      }
     75      elseif (isset($page['section']) and $page['section'] == 'categories')
     76      {
     77        $page['stuffs_section'] = isset($page['category']) ? 'on_cats' : 'on_root';
     78        break;
     79      }
     80
     81      default: return;
     82  }
     83
     84  add_event_handler('loc_begin_page_header', 'load_stuffs');
    4685}
    4786
    4887add_event_handler('get_admin_plugin_menu_links', 'stuffs_admin_menu');
    49 add_event_handler('loc_begin_index', 'set_stuffs_on_index');
    50 add_event_handler('loc_begin_picture', 'set_stuffs_on_picture');
     88add_event_handler('loc_end_section_init', 'stuffs_section_init', 60);
    5189
    52 function set_is_homepage()
    53 {
    54   global $tokens, $page;
    55 
    56   $next_token = 0;
    57   $parsed_url = parse_section_url($tokens, $next_token);
    58   if (!isset($parsed_url['section']) and !isset($page['chronology_field']))
    59   {
    60     $page['is_homepage'] = true;
    61   }
    62   else
    63   {
    64     $page['is_homepage'] = false;
    65   }
    66 }
    67 add_event_handler('loc_end_section_init', 'set_is_homepage');
    6890?>
  • extensions/PWG_Stuffs/maintain.inc.php

    r9369 r9383  
    1616`name` text NOT NULL,
    1717`descr` varchar(255) default NULL,
    18 `type` varchar(255) NOT NULL,
    1918`path` varchar(255) default NULL,
     19`parent` varchar(255) default NULL,
    2020`datas` longtext default NULL,
    2121`users` varchar(255) default NULL,
    2222`groups` varchar(255) default NULL,
     23`level` TINYINT( 3 ) NOT NULL default "0",
    2324`show_title` enum(\'true\',\'false\') NOT NULL,
    2425`on_home` enum(\'true\',\'false\') NOT NULL,
     26`on_root` enum(\'true\',\'false\') NOT NULL,
    2527`on_cats` enum(\'true\',\'false\') NOT NULL,
    2628`on_picture` enum(\'true\',\'false\') NOT NULL,
     
    3436    pwg_query($q);
    3537 
    36     $q = "INSERT INTO `" . $prefixeTable . "stuffs` (`id`, `pos`, `name`, `descr`, `type`, `path`, `datas`, `users`, `groups`, `show_title`, `on_home`, `on_cats`, `on_picture`, `id_line`, `width`)
    37 VALUES (0, 1, 'MainBlock', NULL, 'MainBlock', NULL, NULL, 'guest,generic,normal,admin,webmaster', NULL, 'true', 'true', 'true', 'true', NULL, NULL);";
     38    $q = "INSERT INTO `" . $prefixeTable . "stuffs` (`id`, `pos`, `name`, `users`, `show_title`, `on_home`, `on_cats`, `on_picture`)
     39VALUES (0, 1, 'MainBlock', 'guest,generic,normal,admin,webmaster', 'true', 'true', 'true', 'true');";
    3840    pwg_query($q);
    3941  }
    40 }
    4142
    42 function plugin_activate($id, $version)
    43 {
    44   global $plugins, $prefixeTable;
     43  if (!isset($conf['PWG_Stuffs']))
     44  {
     45    $config = array(
     46      'level_perm' => false,
     47      'group_perm' => false,
     48      'user_perm' => false,
     49    );
    4550
    46   // Check if upgrade is needed
    47   if ($version != $plugins->fs_plugins[$id]['version'])
    48   {
    49     define('STUFFS_VERSION', $plugins->fs_plugins[$id]['version']);
    50     include('admin/upgrade.inc.php');
     51    $query = 'INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
     52VALUES ("PWG_Stuffs" , "'.pwg_db_real_escape_string(serialize($config)).'" , "PWG Stuffs configuration");';
     53    pwg_query($query);
    5154  }
    5255}
     
    5457function plugin_uninstall()
    5558{
    56     global $prefixeTable;
     59  global $prefixeTable;
    5760
    5861  $q = 'DROP TABLE ' . $prefixeTable . 'stuffs;';
    59     pwg_query($q);
     62  pwg_query($q);
     63
     64        $q = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="PWG_Stuffs";';
     65  pwg_query($q);
    6066}
    6167
  • extensions/PWG_Stuffs/modules/BestRated/config.inc.php

    r6415 r9383  
    2929  'NB_IMAGES' => $datas['nb_images'],
    3030  'cat_display' => $datas['cat_display'],
    31   'category_selected' => $datas['cat_selection']
     31  'category_selected' => $datas['cat_selection'],
     32  'on_picture_option' => false,
    3233));
    3334
  • extensions/PWG_Stuffs/modules/BestRated/config.tpl

    r6415 r9383  
    8282  }
    8383}
    84 
    85 jQuery("table:eq(1) tr:eq(5)").hide();
    8684</script>
    8785{/literal}
  • extensions/PWG_Stuffs/modules/MostVisited/config.inc.php

    r6415 r9383  
    2929  'NB_IMAGES' => $datas['nb_images'],
    3030  'cat_display' => $datas['cat_display'],
    31   'category_selected' => $datas['cat_selection']
     31  'category_selected' => $datas['cat_selection'],
     32  'on_picture_option' => false,
    3233));
    3334
  • extensions/PWG_Stuffs/modules/MostVisited/config.tpl

    r6415 r9383  
    8282  }
    8383}
    84 
    85 jQuery("table:eq(1) tr:eq(5)").hide();
    8684</script>
    8785{/literal}
  • extensions/PWG_Stuffs/modules/Random/config.inc.php

    r6415 r9383  
    2929  'NB_IMAGES' => $datas['nb_images'],
    3030  'cat_display' => $datas['cat_display'],
    31   'category_selected' => $datas['cat_selection']
     31  'category_selected' => $datas['cat_selection'],
     32  'on_picture_option' => false,
    3233));
    3334
  • extensions/PWG_Stuffs/modules/Random/config.tpl

    r6415 r9383  
    8282  }
    8383}
    84 
    85 jQuery("table:eq(1) tr:eq(5)").hide();
    8684</script>
    8785{/literal}
  • extensions/PWG_Stuffs/modules/Recent/config.inc.php

    r6415 r9383  
    2929  'NB_IMAGES' => $datas['nb_images'],
    3030  'cat_display' => $datas['cat_display'],
    31   'category_selected' => $datas['cat_selection']
     31  'category_selected' => $datas['cat_selection'],
     32  'on_picture_option' => false,
    3233));
    3334
  • extensions/PWG_Stuffs/modules/Recent/config.tpl

    r6415 r9383  
    8282  }
    8383}
    84 
    85 jQuery("table:eq(1) tr:eq(5)").hide();
    8684</script>
    8785{/literal}
Note: See TracChangeset for help on using the changeset viewer.