Ignore:
Timestamp:
Apr 29, 2012, 5:09:28 PM (12 years ago)
Author:
mistic100
Message:

update for 2.4
delete useless admin page
now compatible with RV Thumb Scroller

Location:
extensions/Comments_on_Albums
Files:
8 deleted
28 edited

Legend:

Unmodified
Added
Removed
  • extensions/Comments_on_Albums/include/coa_admin_comments.php

    r12601 r14528  
    4646    else
    4747    {
    48       include_once(COA_PATH.'include/functions_comment.inc.php');
     48      include_once(COA_PATH.'include/functions_comment.inc.php'); // custom functions
    4949      check_input_parameter('comments', $_POST, true, PATTERN_ID);
    5050
     
    109109    cat.name,
    110110    img.id AS image_id,
    111     img.path,
    112     img.tn_ext
     111    img.path
    113112  FROM '.COA_TABLE.' AS com
    114113    LEFT JOIN '.CATEGORIES_TABLE.' AS cat
     
    138137   
    139138    // thumbnail
    140     $row['thumb'] = get_thumbnail_url(
     139    $row['thumb'] = DerivativeImage::thumb_url(
    141140      array(
    142         'id' => $row['image_id'],
    143         'path' => $row['path'],
    144         'tn_ext' => @$row['tn_ext'],
     141        'id'=>$row['image_id'],
     142        'path'=>$row['path'],
    145143        )
    146144     );
    147    
     145
    148146    // comment content
    149147    $template->append(
     
    151149      array(
    152150        'ID' => $row['id'],
    153         'CAT_URL' => PHPWG_ROOT_PATH.'admin.php?page=cat_modify&cat_id='.$row['category_id'],
     151        'CAT_URL' => PHPWG_ROOT_PATH.'admin.php?page=album-'.$row['category_id'],
    154152        'CAT_NAME' => trigger_event('render_category_name', $row['name']),
    155153        'TN_SRC' => $row['thumb'],
  • extensions/Comments_on_Albums/include/coa_albums.php

    r12618 r14528  
    2727    case 'edit_comment' :
    2828    {
    29       check_pwg_token();
    30      
    3129      include_once(COA_PATH.'include/functions_comment.inc.php'); // custom fonctions
    32      
    3330      check_input_parameter('comment_to_edit', $_GET, false, PATTERN_ID);
    34      
    3531      $author_id = get_comment_author_id_albums($_GET['comment_to_edit']);
    3632
     
    3935        if (!empty($_POST['content']))
    4036        {
     37          check_pwg_token();
    4138          $comment_action = update_user_comment_albums(
    4239            array(
     
    4845            );
    4946         
    50           $infos = array();
    51          
     47          $perform_redirect = false;
    5248          switch ($comment_action)
    5349          {
    5450            case 'moderate':
    55               array_push($infos, l10n('An administrator must authorize your comment before it is visible.'));
     51              $_SESSION['page_infos'][] = l10n('An administrator must authorize your comment before it is visible.');
    5652            case 'validate':
    57               array_push($infos, l10n('Your comment has been registered'));
     53              $_SESSION['page_infos'][] = l10n('Your comment has been registered');
     54              $perform_redirect = true;
    5855              break;
    5956            case 'reject':
    60               set_status_header(403);
    61               array_push($infos, l10n('Your comment has NOT been registered because it did not pass the validation rules'));
     57              $_SESSION['page_errors'][] = l10n('Your comment has NOT been registered because it did not pass the validation rules');
     58              $perform_redirect = true;
    6259              break;
    6360            default:
     
    6562          }
    6663
    67           $template->assign(
    68               ($comment_action=='reject') ? 'errors' : 'infos',
    69               $infos
    70             );
    71 
     64          if ($perform_redirect)
     65          {
     66            redirect($url_self);
     67          }
    7268          unset($_POST['content']);
    73           break;
    7469        }
    7570        else
    7671        {
    7772          $edit_comment = $_GET['comment_to_edit'];
    78           break;
    7973        }
     74        break;
    8075      }
    8176    }
     
    8479      check_pwg_token();
    8580     
    86       include_once(COA_PATH.'include/functions_comment.inc.php');
     81      include_once(COA_PATH.'include/functions_comment.inc.php'); // custom fonctions
    8782     
    8883      check_input_parameter('comment_to_delete', $_GET, false, PATTERN_ID);
     
    10196      check_pwg_token();
    10297     
    103       include_once(COA_PATH.'include/functions_comment.inc.php');
     98      include_once(COA_PATH.'include/functions_comment.inc.php'); // custom fonctions
    10499     
    105100      check_input_parameter('comment_to_validate', $_GET, false, PATTERN_ID);
     
    116111  }
    117112}
     113
    118114
    119115// +-----------------------------------------------------------------------+
     
    133129  );
    134130
    135   include_once(COA_PATH.'include/functions_comment.inc.php');
     131  include_once(COA_PATH.'include/functions_comment.inc.php'); // custom fonctions
    136132 
    137   $comment_action = insert_user_comment_albums($comm, @$_POST['key'], $infos);
     133  $comment_action = insert_user_comment_albums($comm, @$_POST['key'], $page['infos']);
    138134
    139135  switch ($comment_action)
    140136  {
    141137    case 'moderate':
    142       array_push($infos, l10n('An administrator must authorize your comment before it is visible.'));
     138      array_push($page['infos'], l10n('An administrator must authorize your comment before it is visible.'));
    143139    case 'validate':
    144       array_push($infos, l10n('Your comment has been registered'));
     140      array_push($page['infos'], l10n('Your comment has been registered'));
    145141      break;
    146142    case 'reject':
    147143      set_status_header(403);
    148       array_push($infos, l10n('Your comment has NOT been registered because it did not pass the validation rules'));
     144      array_push($page['errors'], l10n('Your comment has NOT been registered because it did not pass the validation rules'));
    149145      break;
    150146    default:
    151147      trigger_error('Invalid comment action '.$comment_action, E_USER_WARNING);
    152148  }
    153 
    154   $template->assign(
    155       ($comment_action=='reject') ? 'errors' : 'infos',
    156       $infos
    157     );
    158149   
    159150  // allow plugins to notify what's going on
     
    161152      array_merge($comm, array('action'=>$comment_action) )
    162153    );
    163  
     154   
     155  $template->assign('DISPLAY_COMMENTS_BLOCK', true);
    164156}
    165157else if (isset($_POST['content']))
     
    194186  $row = pwg_db_fetch_assoc(pwg_query($query));
    195187
    196   // navigation bar creation, custom again
     188  // navigation bar creation, can't use $_GET['start'] because used by thumbnails navigation bar
    197189  if (isset($_GET['start_comments']))
    198190  {
     
    203195    $page['start_comments'] = 0;
    204196  }
    205   include_once(COA_PATH.'include/functions.inc.php');
     197  include_once(COA_PATH.'include/functions.inc.php'); // custom fonctions
    206198
    207199  $navigation_bar = create_comment_navigation_bar(
     
    221213  if ($row['nb_comments'] > 0)
    222214  {
     215    // comments order (get, session, conf)
     216    if (!empty($_GET['comments_order']) && in_array(strtoupper($_GET['comments_order']), array('ASC', 'DESC')))
     217    {
     218      pwg_set_session_var('comments_order', $_GET['comments_order']);
     219    }
     220    $comments_order = pwg_get_session_var('comments_order', $conf['comments_order']);
     221
     222    $template->assign(array(
     223      'COMMENTS_ORDER_URL' => add_url_params( duplicate_index_url(), array('comments_order'=> ($comments_order == 'ASC' ? 'DESC' : 'ASC') ) ),
     224      'COMMENTS_ORDER_TITLE' => $comments_order == 'ASC' ? l10n('Show latest comments first') : l10n('Show oldest comments first'),
     225      ));
     226     
    223227    // get comments
    224228    $query = '
     
    237241  WHERE category_id = '.$category['id'].'
    238242    '.$validated_clause.'
    239   ORDER BY date ASC
     243  ORDER BY date '.$comments_order.'
    240244  LIMIT '.$conf['nb_comment_page'].' OFFSET '.$page['start_comments'].'
    241245;';
     
    285289            'action' => 'edit_comment',
    286290            'comment_to_edit' => $row['id'],
    287             'pwg_token' => get_pwg_token(),
    288291            )
    289292          );
    290293        if (isset($edit_comment) and ($row['id'] == $edit_comment))
    291294        {
     295          $tpl_comment['IN_EDIT'] = true;
    292296          $key = get_ephemeral_key(2, $category['id']);
    293           $tpl_comment['IN_EDIT'] = true;
    294297          $tpl_comment['KEY'] = $key;
    295298          $tpl_comment['CONTENT'] = $row['content'];
     299          $tpl_comment['PWG_TOKEN'] = get_pwg_token();
    296300        }
    297301      }
     
    331335      $content = htmlspecialchars(stripslashes($comm['content']));
    332336    }
    333     $template->assign(
    334       'comment_add',
     337    $template->assign('comment_add',
    335338      array(
    336339        'F_ACTION' => $url_self,
     
    343346 
    344347  // template
    345   $template->assign(
    346     array(
    347       'COA_PATH' => COA_PATH, // for css
    348       'COA_ABSOLUTE_PATH' => dirname(__FILE__) .'/../', // for template
    349       )
    350     );
     348  $template->assign(array(
     349    'COA_PATH' => COA_PATH, // for css
     350    'COA_ABSOLUTE_PATH' => dirname(__FILE__) .'/../', // for template
     351    ));
    351352 
    352   global $user;
    353   if ( $is_simple = strstr($user['theme'], 'simple') !== false or strstr($user['theme'], 'stripped') !== false )
    354   {
    355     $template->assign('IS_SIMPLE', $is_simple);
    356     $template->set_filename('comments_on_albums', dirname(__FILE__) .'/../template/albums_simple.tpl');
     353  $template->set_filename('comments_on_albums', dirname(__FILE__) .'/../template/albums.tpl');
     354  if (isset($pwg_loaded_plugins['rv_tscroller']) AND count($page['navigation_bar']) != 0)
     355  {
     356    $template->assign('COMMENTS_ON_TOP', true);
     357    $template->concat('PLUGIN_INDEX_CONTENT_BEGIN', $template->parse('comments_on_albums', true));
    357358  }
    358359  else
    359360  {
    360     $template->set_filename('comments_on_albums', dirname(__FILE__) .'/../template/albums.tpl');
    361   }
    362   $template->concat('PLUGIN_INDEX_CONTENT_END', $template->parse('comments_on_albums', true));
    363  
    364   if (isset($infos))
    365   {
    366     $template->set_prefilter('index', 'coa_messages');
    367   }
    368  
    369   function coa_messages($content, &$smarty)
    370   {
    371     $replacement = '
    372 {if !empty($errors)}
    373 <div class="errors">
    374   <ul>
    375     {foreach from=$errors item=error}
    376     <li>{$error}</li>
    377     {/foreach}
    378   </ul>
    379 </div>
    380 {/if}
    381 {if !empty($infos)}
    382 <div class="infos">
    383   <ul>
    384     {foreach from=$infos item=info}
    385     <li>{$info}</li>
    386     {/foreach}
    387   </ul>
    388 </div>
    389 {/if}';
    390 
    391     return str_replace('{$MENUBAR}', $replacement.'{$MENUBAR}', $content);
     361    $template->concat('PLUGIN_INDEX_CONTENT_END', $template->parse('comments_on_albums', true));
    392362  }
    393363}
  • extensions/Comments_on_Albums/include/coa_comments_page.php

    r12562 r14528  
    22/* inspired by comments.php */
    33if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    4 
    54load_language('plugin.lang', COA_PATH);
    6 $conf['comments_on_albums'] = unserialize($conf['comments_on_albums']);
    7 
    8 $template->assign(
    9   array(
    10     'COA_PATH' => COA_PATH,
    11     'ICON_COLOR' => $conf['comments_on_albums']['icon_color'],
    12     'ICON_COLOR_OVER' => $conf['comments_on_albums']['icon_color_over'],
    13     )
    14   );
    15 
    165
    176// +-----------------------------------------------------------------------+
     
    198// +-----------------------------------------------------------------------+
    209
    21 if (!isset($_GET['display_mode']))
     10if ( !isset($_GET['display_mode']) or $_GET['display_mode'] != 'albums' )
    2211
    2312  // adds a button for switch page
     
    2514 
    2615  function coa_add_button($content, &$smarty)
    27   {
    28     $search = '<ul class="categoryActions">';
    29 
    30 $replacement = '
    31 {html_head}
    32   <style type="text/css">
    33     .pwg-icon-comments-albums {ldelim}
    34       background-image: url({$COA_PATH}template/s26/{$ICON_COLOR});
    35       background-position: -26px 0;
    36     }
    37     a:hover .pwg-icon-comments-albums {ldelim}
    38       background-image: url({$COA_PATH}template/s26/{$ICON_COLOR_OVER});
    39       background-position: -26px 0;
    40     }
    41   </style>
    42 {/html_head}
    43 
    44   '.$search.'
    45     <li><a href="comments.php?display_mode=albums" title="' . l10n('Comments on albums') . '" class="pwg-state-default pwg-button">
    46       <span class="pwg-icon pwg-icon-comments-albums">&nbsp;</span><span class="pwg-button-text">' . l10n('Comments on albums') . '</span>
    47     </a></li>';
     16  {   
     17    $search ="{include file='infos_errors.tpl'}";
     18    $replacement = $search.'
     19<form class="filter">
     20<fieldset>
     21  <legend>{\'Display comments on\'|@translate}</legend>
     22  <span style="font-size:1.1em;"><a href="#" style="font-weight:bold;">{\'Photos\'|@translate}</a> | <a href="comments.php?display_mode=albums">{\'Albums\'|@translate}</a></span>
     23</fieldset>
     24</form>';
    4825
    4926    return str_replace($search, $replacement, $content);
     
    5835else if ($_GET['display_mode'] == 'albums')
    5936{
     37  include_once(COA_PATH.'include/functions_comment.inc.php'); // custom functions
     38 
    6039  // reset some template vars
    6140  $template->clear_assign(array('comments', 'navbar', 'sort_by_options'));
     
    8867  if (isset($action))
    8968  {
    90     include_once(COA_PATH.'include/functions_comment.inc.php');
    91    
    92     check_pwg_token();
    93    
    9469    $comment_author_id = get_comment_author_id_albums($comment_id);
    9570   
    96     $true_action = str_replace('_albums', null, $action); // but we must check true action names
    97 
    98     if (can_manage_comment($true_action, $comment_author_id))
     71    if (can_manage_comment(str_replace('_albums', null, $action), $comment_author_id))
    9972    {
    10073      $perform_redirect = false;
     
    10275      if ('delete_albums' == $action)
    10376      {
     77        check_pwg_token();
    10478        delete_user_comment_albums($comment_id);
    10579        $perform_redirect = true;
     
    10781      if ('validate_albums' == $action)
    10882      {
     83        check_pwg_token();
    10984        validate_user_comment_albums($comment_id);
    11085        $perform_redirect = true;
     
    11489        if (!empty($_POST['content']))
    11590        {
     91          check_pwg_token();
    11692          update_user_comment_albums(
    11793            array(
     
    12298            $_POST['key']
    12399            );
    124           //$perform_redirect = true;
    125           $edit_comment = null;
     100         
     101          $perform_redirect = true;
    126102        }
    127103        else
     
    155131
    156132  $query = '
    157 SELECT
    158     COUNT(DISTINCT(com.id))
     133SELECT COUNT(DISTINCT(com.id))
    159134  FROM '.COA_TABLE.' AS com
    160135  LEFT JOIN '.USERS_TABLE.' As u
     
    165140  list($counter) = pwg_db_fetch_row(pwg_query($query));
    166141
    167   $url =
    168     PHPWG_ROOT_PATH
    169     .'comments.php'
     142  $url = PHPWG_ROOT_PATH
     143      .'comments.php'
    170144    .get_query_string_diff(array('start','delete_albums','validate_albums','edit_albums','pwg_token'));
    171145   
     
    177151    ''
    178152    );
     153 
    179154  $template->assign('navbar', $navbar);
    180155
     
    210185    com.validated
    211186  ORDER BY '.$page['sort_by'].' '.$page['sort_order'];
    212   if ('all' != $page['items_number'])
    213   {
    214     $query.= '
     187if ('all' != $page['items_number'])
     188{
     189  $query.= '
    215190  LIMIT '.$page['items_number'].' OFFSET '.$start;
    216   }
    217   $query.= '
     191}
     192$query.= '
    218193;';
    219194  $result = pwg_query($query);
     
    258233    foreach ($comments as $comment)
    259234    {
     235      // source of the thumbnail picture
     236      $comment['src_image'] = new SrcImage($categories[$comment['comment_id']]);
     237   
    260238      // category url
    261239      $comment['cat_url'] = duplicate_index_url(
     
    269247          )
    270248        );
    271        
    272       // category thumbnail
    273       $comment['thumb'] = get_thumbnail_url(
    274         array(
    275           'id' => $categories[$comment['comment_id']]['image_id'],
    276           'path' => $categories[$comment['comment_id']]['path'],
    277           'tn_ext' => @$categories[$comment['comment_id']]['tn_ext'],
    278           )
    279        );
    280249     
    281250      // comment content
     
    284253        'U_PICTURE' => $comment['cat_url'],
    285254        'ALT' => trigger_event('render_category_name', $categories[$comment['comment_id']]['name']),
    286         'TN_SRC' => $comment['thumb'],
     255        'src_image' => $comment['src_image'],
    287256        'AUTHOR' => trigger_event('render_comment_author', $comment['author']),
    288257        'DATE' => format_date($comment['date'], true),
     
    293262      if (can_manage_comment('delete', $comment['author_id']))
    294263      {
    295         $url =
    296           get_root_url()
    297           .'comments.php'
    298           .get_query_string_diff(array('delete','validate','edit', 'pwg_token'));
    299 
    300264        $tpl_comment['U_DELETE'] = add_url_params(
    301265          $url,
     
    308272      if (can_manage_comment('edit', $comment['author_id']))
    309273      {
    310         $url =
    311           get_root_url()
    312           .'comments.php'
    313           .get_query_string_diff(array('edit', 'delete','validate', 'pwg_token'));
    314 
    315274        $tpl_comment['U_EDIT'] = add_url_params(
    316275          $url,
    317276          array(
    318277            'edit_albums' => $comment['comment_id'],
    319             'pwg_token' => get_pwg_token(),
    320278            )
    321279          );
     
    323281        if (isset($edit_comment) and ($comment['comment_id'] == $edit_comment))
    324282        {
     283          $tpl_comment['IN_EDIT'] = true;
    325284          $key = get_ephemeral_key(2, $comment['category_id']);
    326           $tpl_comment['IN_EDIT'] = true;
    327285          $tpl_comment['KEY'] = $key;
    328286          $tpl_comment['IMAGE_ID'] = $comment['category_id'];
    329287          $tpl_comment['CONTENT'] = $comment['content'];
     288          $tpl_comment['PWG_TOKEN'] = get_pwg_token();
    330289        }
    331290      }
     
    357316 
    358317  function coa_change_comments_list($content, &$smarty) {
    359     $search = '<img src="{$comment.TN_SRC}" alt="{$comment.ALT}">';
     318    $search = '<img src="{$pwg->derivative_url($derivative_params, $comment.src_image)}" alt="{$comment.ALT}">';
    360319    $replacement = $search.'<br/>{$comment.ALT}';
    361320    return str_replace($search, $replacement, $content);
  • extensions/Comments_on_Albums/include/functions_comment.inc.php

    r12601 r14528  
    33
    44//returns string action to perform on a new comment: validate, moderate, reject
    5 if (!function_exists('user_comment_check'))
    6 {
    7   function user_comment_check($action, $comment)
    8   {
    9     global $conf,$user;
    10 
    11     if ($action=='reject')
    12     return $action;
    13 
    14     $my_action = $conf['comment_spam_reject'] ? 'reject':'moderate';
    15 
    16     if ($action==$my_action)
    17     return $action;
    18 
    19     // we do here only BASIC spam check (plugins can do more)
    20     if ( !is_a_guest() )
    21     return $action;
    22 
    23     $link_count = preg_match_all( '/https?:\/\//',
    24     $comment['content'], $matches);
    25 
    26     if ( strpos($comment['author'], 'http://')!==false )
    27     {
    28     $link_count++;
    29     }
    30 
    31     if ( $link_count>$conf['comment_spam_max_links'] )
    32     return $my_action;
    33 
    34     return $action;
    35   }
    36 }
    37 
    38 
    39 add_event_handler('user_comment_check', 'user_comment_check',
     5function user_comment_check_albums($action, $comment)
     6{
     7  global $conf,$user;
     8
     9  if ($action=='reject')
     10  return $action;
     11
     12  $my_action = $conf['comment_spam_reject'] ? 'reject':'moderate';
     13
     14  if ($action==$my_action)
     15  return $action;
     16
     17  // we do here only BASIC spam check (plugins can do more)
     18  if ( !is_a_guest() )
     19  return $action;
     20
     21  $link_count = preg_match_all( '/https?:\/\//',
     22  $comment['content'], $matches);
     23
     24  if ( strpos($comment['author'], 'http://')!==false )
     25  {
     26  $link_count++;
     27  }
     28
     29  if ( $link_count>$conf['comment_spam_max_links'] )
     30  return $my_action;
     31
     32  return $action;
     33}
     34
     35add_event_handler('user_comment_check_albums', 'user_comment_check_albums',
    4036  EVENT_HANDLER_PRIORITY_NEUTRAL, 2);
    4137
     
    106102  {
    107103    $comment_action='reject';
     104    $_POST['cr'][] = 'key';
    108105  }
    109106
     
    125122
    126123  // perform more spam check
    127   $comment_action = trigger_event('user_comment_check',
     124  $comment_action = trigger_event('user_comment_check_albums',
    128125      $comment_action, $comm
    129126    );
     
    149146    $comm['id'] = pwg_db_insert_id(COA_TABLE);
    150147
    151     if ($conf['email_admin_on_comment']
     148    if ( ($conf['email_admin_on_comment'] && 'validate' == $comment_action)
    152149        or ($conf['email_admin_on_comment_validation'] and 'moderate' == $comment_action))
    153150    {
     
    239236    $comment_action='reject';
    240237  }
     238  elseif (!$conf['comments_validation'] or is_admin()) // should the updated comment must be validated
     239  {
     240    $comment_action='validate'; //one of validate, moderate, reject
     241  }
     242  else
     243  {
     244    $comment_action='moderate'; //one of validate, moderate, reject
     245  }
    241246
    242247  // perform more spam check
     
    256261      $user_where_clause = '   AND author_id = \''.
    257262  $GLOBALS['user']['id'].'\'';
    258     }
    259    
    260     // should the updated comment must be validated
    261     if (!$conf['comments_validation'] or is_admin())
    262     {
    263       $comment_action='validate'; //one of validate, moderate, reject
    264     }
    265     else
    266     {
    267       $comment_action='moderate'; //one of validate, moderate, reject
    268263    }
    269264
  • extensions/Comments_on_Albums/language/cs_CZ/plugin.lang.php

    r13967 r14528  
    11<?php
    22
    3 /* common */
    43$lang['Comments on photos'] = 'Komentáře o fotografiích';
    54$lang['Comments on albums'] = 'Komentáře o albech';
    6 
    7 /* admin */
    8 $lang['Icons pack'] = 'Balík s ikonami';
    9 $lang['Basic state'] = 'Základní stav';
    10 $lang['Over state'] = 'Přechodný stav';
    11 
    12 $lang['COA_help_icon_pack'] = 'Vyberte, které ikony budou použity na hlavní stránce komentářů.<br>
    13   <br>
    14   Můžeze vložit i vlastní sadu ikon do složky <i>plugins/comments_on_pictures/template/s26</i>.';
    15 $lang['COA_comment_validation_link'] = 'Ověření (pokud je aktivováno) komentářů o albech je na <a href="admin.php?page=comments&section=albums">totožné webové stránce</a> jako komentáře o fotografiích.';
    16 
    175$lang['Display last posted comments on albums'] = 'Zobraz poslední vytvořené komentáře alba';
    186$lang['Last comments on albums'] = 'Poslední komentáře alba';
  • extensions/Comments_on_Albums/language/de_DE/plugin.lang.php

    r13056 r14528  
    11<?php
    22
    3 /* common */
    43$lang['Comments on photos'] = 'Kommentare zu Fotos';
    54$lang['Comments on albums'] = 'Kommentare zu Alben';
    6 
    7 /* admin */
    8 $lang['Icons pack'] = 'Icons Pack';
    9 $lang['Basic state'] = 'Grundzustand';
    10 $lang['Over state'] = 'Over-Status';
    11 
    12 $lang['COA_help_icon_pack'] = 'Wählen Sie welche Icons auf der Hauptseite der Kommentare verwendet werden sollen.<br>
    13   <br>
    14   Sie können Ihre eigene im folgenden Ordner hinzufügen: <i>plugins/comments_on_pictures/template/s26</i>.';
    15 $lang['COA_comment_validation_link'] = 'Die Validierung der Kommentare (falls aktiviert) zu den Alben ist auf <a href="admin.php?page=comments&section=albums">der gleichen Seite</a> wie die Kommentare zu den Fotos.';
    16 
    175$lang['Display last posted comments on albums'] = 'Zeigt den zuletzt geposteten Kommentare zu den Alben an';
    186$lang['Last comments on albums'] = 'Letzte Kommentare zu den Alben';
  • extensions/Comments_on_Albums/language/el_GR/plugin.lang.php

    r14457 r14528  
    11<?php
    22
    3 /* common */
    43$lang['Comments on photos'] = 'Σχόλια σε φωτογραφίες';
    54$lang['Comments on albums'] = 'Σχόλια σε άλμπουμς';
    6 
    7 /* admin */
    8 $lang['Icons pack'] = 'Πακέτο εικονιδίων';
    9 $lang['Basic state'] = 'Βασικό πακέτο';
    10 $lang['Over state'] = 'Επιπλεός πακέτο';
    11 
    12 $lang['COA_help_icon_pack'] = 'Επιλέξτε ποια εικονίδια θα χρησιμοποιηθούν στην κεντρική σελίδα Σχολίων.<br>
    13 <br>
    14 Μπορείτε να προσθέσετε τα δικά σας στο φάκελο <i>plugins/comments_on_pictures/template/s26</i>.';
    15 $lang['COA_comment_validation_link'] = 'Η επικύρωση (αν είναι ενεργοποιημένη) των σχολίων για τα άλμπουμς<a href="admin.php?page=comments&section=albums">στην ίδια σελίδα</a> όπως τα σχόλια στις φωτογραφίες.';
    16  
    175$lang['Display last posted comments on albums'] = 'Εμφάνιση των τελευταίων δημοσιευμένων σχόλιων στα λευκώματα';
    186$lang['Last comments on albums'] = 'Τελευταία σχόλια σε λευκώματα';
  • extensions/Comments_on_Albums/language/en_UK/plugin.lang.php

    r12381 r14528  
    11<?php
    22
    3 /* common */
    43$lang['Comments on photos'] = 'Comments on photos';
    54$lang['Comments on albums'] = 'Comments on albums';
    6 
    7 /* admin */
    8 $lang['Icons pack'] = 'Icons pack';
    9 $lang['Basic state'] = 'Basic state';
    10 $lang['Over state'] = 'Over state';
    11 
    12 $lang['COA_help_icon_pack'] = 'Select which icons must be used on the main Comments page.<br>
    13   <br>
    14   You can add your owns in the folder <i>plugins/comments_on_pictures/template/s26</i>.';
    15 $lang['COA_comment_validation_link'] = 'Validation (if enabled) of comments on albums is on <a href="admin.php?page=comments&section=albums">the same page</a> as the comments on pictures.';
    16 
    17 /* stuffs */
     5$lang['Display comments on'] = 'Display comments on';
    186$lang['Last comments on albums'] = 'Last comments on albums';
    197$lang['Display last posted comments on albums'] = 'Display last posted comments on albums';
  • extensions/Comments_on_Albums/language/es_ES/plugin.lang.php

    r13711 r14528  
    11<?php
    22
    3 /* common */
    43$lang['Comments on photos'] = 'Comentarios sobre las fotos';
    54$lang['Comments on albums'] = 'Comentarios sobre los albumes';
    6 
    7 /* admin */
    8 $lang['Icons pack'] = 'Paqute de iconos';
    9 $lang['Basic state'] = 'Estado bajo';
    10 $lang['Over state'] = 'Etado alto';
    11 
    12 $lang['COA_help_icon_pack'] = 'Seleccione los iconos para usar en la página principal de los comentarios<br>
    13 <br>
    14 Puede agregar sus propios iconos en la carpeta <i>plugins/comments_on_pictures/template/s26</i>.';
    15 $lang['COA_comment_validation_link'] = 'La validación (si activada) de los comentarios sobre los albumes se hace <a href="admin.php?page=comments&section=albums">en la misma pagina</a> que para los comentarios sobre las fotos.';
    16  
    175$lang['Display last posted comments on albums'] = 'Mostrar los últimos comentarios hechos en álbums.';
    186$lang['Last comments on albums'] = 'Últimos comentarios en álbums.';
  • extensions/Comments_on_Albums/language/fr_FR/plugin.lang.php

    r12381 r14528  
    11<?php
    22
    3 /* common */
    43$lang['Comments on photos'] = 'Commentaires sur les photos';
    54$lang['Comments on albums'] = 'Commentaires sur les albums';
    6 
    7 /* admin */
    8 $lang['Icons pack'] = 'Pack d\'icônes';
    9 $lang['Basic state'] = 'Etat bas';
    10 $lang['Over state'] = 'Etat haut';
    11 
    12 $lang['COA_help_icon_pack'] = 'Selectionnez les icônes à utiliser sur la page principale des commentaires<br>
    13   <br>
    14   Vous pouvez ajouter les votres dans le dossier <i>plugins/comments_on_pictures/template/s26</i>.';
    15 $lang['COA_comment_validation_link'] = 'La validation (si activée) des commentaires sur les albums ce fait <a href="admin.php?page=comments&section=albums">sur la même page</a> que pour les commentaires sur les photos.';
    16 
    17 /* stuffs */
     5$lang['Display comments on'] = 'Afficher les commentaires des';
    186$lang['Last comments on albums'] = 'Derniers commentaires sur les albums';
    197$lang['Display last posted comments on albums'] = 'Affiche les derniers commentaires postés sur les albums';
    20  
    218?>
  • extensions/Comments_on_Albums/language/hu_HU/plugin.lang.php

    r12572 r14528  
    11<?php
    22
    3 /* common */
    43$lang['Comments on photos'] = 'Hozzászólások a kép oldalakon';
    54$lang['Comments on albums'] = 'Hozzászólások az album oldalakon';
    6 
    7 /* admin */
    8 $lang['Icons pack'] = 'Ikonkészlet';
    9 $lang['Basic state'] = 'Alap állapot';
    10 $lang['Over state'] = 'Bővített állapot';
    11 
    12 $lang['COA_help_icon_pack'] = 'Ki kell választani a Hozzászólások fő oldalon megjelenítendő ikonokat.<br>
    13   <br>
    14   Hozzáadhat saját mappát a  <i>plugins/comments_on_pictures/template/s26</i> könyvtárhoz.';
    15 $lang['COA_comment_validation_link'] = 'A hozzászólások engedélyezése (ha be van kapcsolva) az albumokhoz és képekhez <a href="admin.php?page=comments§section=albums">közös oldalon</a> történik.';
    16 
    175$lang['Display last posted comments on albums'] = 'Albumok utolsó hozzászólásainak megjelenítése';
    186$lang['Last comments on albums'] = 'Friss hozzászólások az albumokban';
  • extensions/Comments_on_Albums/language/it_IT/plugin.lang.php

    r13342 r14528  
    11<?php
    22
    3 /* common */
    43$lang['Comments on photos'] = 'Commenti sulle foto';
    54$lang['Comments on albums'] = 'Commenti sugli album';
    6 
    7 /* admin */
    8 $lang['Icons pack'] = 'Set d\'icone';
    9 $lang['Basic state'] = 'Stato di base';
    10 $lang['Over state'] = 'Stato elevato';
    11 
    12 $lang['COA_help_icon_pack'] = 'Selezionare le icone da usare nella pagina principale dei Commenti<br>
    13   <br>
    14   Potete aggiungere le vostre icone nella cartella <i>plugins/comments_on_pictures/template/s26</i>.';
    15 $lang['COA_comment_validation_link'] = 'La Validazione (se attivata) dei commenti degli album si trova <a href="admin.php?page=comments&section=albums">sulla stessa pagina</a> dei commenti delle foto.';
    16 
    175$lang['Display last posted comments on albums'] = 'Mostra ultimi commenti sugli album';
    186$lang['Last comments on albums'] = 'Ultimi commenti sugli album';
  • extensions/Comments_on_Albums/language/lv_LV/plugin.lang.php

    r13608 r14528  
    11<?php
    22
    3 /* common */
    43$lang['Comments on photos'] = 'Komentari fotografijam';
    54$lang['Comments on albums'] = 'Komentari albumiem';
    6 
    7 /* admin */
    8 $lang['Icons pack'] = 'Ikonu paka';
    9 $lang['Basic state'] = 'Pamatstavoklis';
    10 $lang['Over state'] = 'Virsstavoklis';
    11 
    12 $lang['COA_help_icon_pack'] = 'Izvelieties. kuras ikonas lietosiet Komentaru galvenaja lapa.<br>
    13 <br>
    14 Varat pievienot paši savas ikonas mape <i>plugins/comments_on_pictures/template/s26</i>.';
    15 $lang['COA_comment_validation_link'] = 'Albuma komentaru validacija (ja iespejota) atrodas <a href="admin.php?page=comments§ion=albums">taja paša lapa,</a> kur komentari atteliem.';
    16 
    17 /* stuffs */
    185$lang['Last comments on albums'] = 'Pedejie komentari par albumiem';
    196$lang['Display last posted comments on albums'] = 'Paradit pedejos publicetos komentarus par albumiem';
    20 
    217?>
  • extensions/Comments_on_Albums/language/nl_NL/plugin.lang.php

    r12821 r14528  
    11<?php
    2 // +-----------------------------------------------------------------------+
    3 // | Piwigo - a PHP based photo gallery                                    |
    4 // +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2008-2009 Piwigo Team                  http://piwigo.org |
    6 // | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
    7 // | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
    8 // +-----------------------------------------------------------------------+
    9 // | This program is free software; you can redistribute it and/or modify  |
    10 // | it under the terms of the GNU General Public License as published by  |
    11 // | the Free Software Foundation                                          |
    12 // |                                                                       |
    13 // | This program is distributed in the hope that it will be useful, but   |
    14 // | WITHOUT ANY WARRANTY; without even the implied warranty of            |
    15 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
    16 // | General Public License for more details.                              |
    17 // |                                                                       |
    18 // | You should have received a copy of the GNU General Public License     |
    19 // | along with this program; if not, write to the Free Software           |
    20 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
    21 // | USA.                                                                  |
    22 // +-----------------------------------------------------------------------+
    23 $lang['Basic state'] = 'Standaard';
    24 $lang['COA_comment_validation_link'] = 'COA_commentaar_validatie_link';
    25 $lang['COA_help_icon_pack'] = 'COA_help_iconen_set';
     2
    263$lang['Comments on albums'] = 'Commentaar op albums';
    274$lang['Comments on photos'] = 'Commentaar op afbeeldingen';
    285$lang['Display last posted comments on albums'] = 'Geef de laatste commentaren op albums weer';
    29 $lang['Icons pack'] = 'Iconen set';
    306$lang['Last comments on albums'] = 'De laatste commentaren op albums';
    31 $lang['Over state'] = 'Extra';
    327?>
  • extensions/Comments_on_Albums/language/pl_PL/plugin.lang.php

    r12934 r14528  
    11<?php
    2 /* common */
     2
    33$lang['Comments on photos'] = 'Komentarze na temat zdjec';
    44$lang['Comments on albums'] = 'Komentarze na temat albumów';
    5 
    6 //
    7 
    8 /* admin */
    9 $lang['Icons pack'] = 'Icons pack';
    10 $lang['Basic state'] = 'Basic state';
    11 $lang['Over state'] = 'Over state';
    12 
    13 $lang['COA_help_icon_pack'] = 'Select which icons must be used on the main Comments page.<br>
    14   <br>
    15   You can add your owns in the folder <i>plugins/comments_on_pictures/template/s26</i>.';
    16 $lang['COA_comment_validation_link'] = 'Validation (if enabled) of comments on albums is on <a href="admin.php?page=comments&section=albums">the same page</a> as the comments on pictures.';
    17 
    18 /* stuffs */
    195$lang['Last comments on albums'] = 'Last comments on albums';
    206$lang['Display last posted comments on albums'] = 'Display last posted comments on albums';
    21 
    227?>
  • extensions/Comments_on_Albums/language/pt_PT/plugin.lang.php

    r14010 r14528  
    11<?php
    2 // +-----------------------------------------------------------------------+
    3 // | Piwigo - a PHP based photo gallery                                    |
    4 // +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2008-2012 Piwigo Team                  http://piwigo.org |
    6 // | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
    7 // | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
    8 // +-----------------------------------------------------------------------+
    9 // | This program is free software; you can redistribute it and/or modify  |
    10 // | it under the terms of the GNU General Public License as published by  |
    11 // | the Free Software Foundation                                          |
    12 // |                                                                       |
    13 // | This program is distributed in the hope that it will be useful, but   |
    14 // | WITHOUT ANY WARRANTY; without even the implied warranty of            |
    15 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
    16 // | General Public License for more details.                              |
    17 // |                                                                       |
    18 // | You should have received a copy of the GNU General Public License     |
    19 // | along with this program; if not, write to the Free Software           |
    20 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
    21 // | USA.                                                                  |
    22 // +-----------------------------------------------------------------------+
    23 $lang['Basic state'] = 'Estado básico';
    24 $lang['COA_comment_validation_link'] = 'Validação (se activada) de comentários em álbums é <a href="admin.php?page=comments&section=albums">na mesma página</a> que os comentários em fotos.';
    25 $lang['COA_help_icon_pack'] = 'Seleccione quais os ícones a serem usados na página principal de Comentários.<br>
    26   <br>
    27   Pode adicionar os seus próprios ícones na pasta <i>plugins/comments_on_pictures/template/s26</i>.';
     2
    283$lang['Comments on albums'] = 'Comentários em álbums';
    294$lang['Comments on photos'] = 'Comentários em fotos';
    305$lang['Display last posted comments on albums'] = 'Mostrar os últimos cometários feitos em álbums';
    31 $lang['Icons pack'] = 'Conjunto de ícones';
    326$lang['Last comments on albums'] = 'Últimos comentários em álbums';
    33 $lang['Over state'] = 'Estado pairar';
    347?>
  • extensions/Comments_on_Albums/language/ru_RU/plugin.lang.php

    r14145 r14528  
    11<?php
    2 // +-----------------------------------------------------------------------+
    3 // | Piwigo - a PHP based photo gallery                                    |
    4 // +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2008-2012 Piwigo Team                  http://piwigo.org |
    6 // | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
    7 // | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
    8 // +-----------------------------------------------------------------------+
    9 // | This program is free software; you can redistribute it and/or modify  |
    10 // | it under the terms of the GNU General Public License as published by  |
    11 // | the Free Software Foundation                                          |
    12 // |                                                                       |
    13 // | This program is distributed in the hope that it will be useful, but   |
    14 // | WITHOUT ANY WARRANTY; without even the implied warranty of            |
    15 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
    16 // | General Public License for more details.                              |
    17 // |                                                                       |
    18 // | You should have received a copy of the GNU General Public License     |
    19 // | along with this program; if not, write to the Free Software           |
    20 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
    21 // | USA.                                                                  |
    22 // +-----------------------------------------------------------------------+
    23 $lang['Basic state'] = 'Основное состояние';
    24 $lang['COA_comment_validation_link'] = 'Проверка (если включена) комментариев для альбомов <a href="admin.php?page=comments&section=albums">на той-же странице</a> что и комментарии для изображений.';
    25 $lang['COA_help_icon_pack'] = 'Выберите иконку для отображение на основной странице Комментариев <br>
    26 Вы можете добавлять свои в каталог <i>plugins/comments_on_pictures/template/s26</i>.';
     2
    273$lang['Comments on albums'] = 'Комментарии для альбомов';
    284$lang['Comments on photos'] = 'Комментарии для фотографий';
    295$lang['Display last posted comments on albums'] = 'Отображать последние комментарии для альбомов';
    30 $lang['Icons pack'] = 'Архив иконок';
    316$lang['Last comments on albums'] = 'Последние комментарии для альбомов';
    32 $lang['Over state'] = 'Преувеличенное состояние';
    337?>
  • extensions/Comments_on_Albums/language/sh_RS/plugin.lang.php

    r13875 r14528  
    11<?php
    2 // +-----------------------------------------------------------------------+
    3 // | Piwigo - a PHP based photo gallery                                    |
    4 // +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2008-2012 Piwigo Team                  http://piwigo.org |
    6 // | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
    7 // | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
    8 // +-----------------------------------------------------------------------+
    9 // | This program is free software; you can redistribute it and/or modify  |
    10 // | it under the terms of the GNU General Public License as published by  |
    11 // | the Free Software Foundation                                          |
    12 // |                                                                       |
    13 // | This program is distributed in the hope that it will be useful, but   |
    14 // | WITHOUT ANY WARRANTY; without even the implied warranty of            |
    15 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
    16 // | General Public License for more details.                              |
    17 // |                                                                       |
    18 // | You should have received a copy of the GNU General Public License     |
    19 // | along with this program; if not, write to the Free Software           |
    20 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
    21 // | USA.                                                                  |
    22 // +-----------------------------------------------------------------------+
    23 $lang['Basic state'] = 'Osnovno stanje';
    24 $lang['COA_comment_validation_link'] = 'Validacije komentara albuma (ako je omogućena) je na <a href="admin.php?page=comments&section=albums">istoj strani</a> gde su i komentari fotografija.';
    25 $lang['COA_help_icon_pack'] = 'Odaberite koje ikonice se moraju koristiti na glavnoj strani komentara.<br><br>Možete dodati Vaše lične u folder <i>plugins/comments_on_pictures/template/s26</i>.';
     2
    263$lang['Comments on albums'] = 'Komentari albuma';
    274$lang['Comments on photos'] = 'Komentari fotografija';
    285$lang['Display last posted comments on albums'] = 'Prikaži poslednje komentare albuma';
    29 $lang['Icons pack'] = 'Pakovanje ikonica';
    306$lang['Last comments on albums'] = 'Poslednji komentari albuma';
    31 $lang['Over state'] = 'Iznad stanja';
    327?>
  • extensions/Comments_on_Albums/language/sk_SK/plugin.lang.php

    r13831 r14528  
    11<?php
    2 /* common */
     2
    33$lang['Comments on photos'] = 'Komentáre na fotky';
    44$lang['Comments on albums'] = 'Komentáre an albumy';
    5 
    6 /* admin */
    7 $lang['Icons pack'] = 'Balík ikon';
    8 $lang['Basic state'] = 'Základné nastavenie';
    9 $lang['Over state'] = 'Rozšírené nastavenie';
    10 
    11 $lang['COA_help_icon_pack'] = 'Označiť ikony, ktoré môžu byť použité na stránke komentárov.<br><br>Môžete pridať vlastné do adresára <i>plugins/comments_on_pictures/template/s26</i>.';
    12 $lang['COA_comment_validation_link'] = 'Kontrola platnosti (ak je povolená) komentárov v albumoch je na <a href="admin.php?page=comments&section=albums">rovnakej stránke</a> ako komentáre na fotky.';
    135$lang['Display last posted comments on albums'] = 'Zobraziť ostatné komentáre v albumoch';
    146$lang['Last comments on albums'] = 'Ostatné komentáre v albumoch';
  • extensions/Comments_on_Albums/language/sv_SE/plugin.lang.php

    r12049 r14528  
    11<?php
    22
    3 /* common */
    43$lang['Comments on photos'] = 'Kommentarer till foton';
    5 $lang['Comments on albums'] = 'Kommentarer till album';
    6 
    7 /* admin */
    8 $lang['Icons pack'] = 'Ikoner';
    9 $lang['Basic state'] = 'Inaktiv';
    10 $lang['Over state'] = 'Aktiv';
    11 
    12 $lang['COA_help_icon_pack'] = 'Välj vilka ikoner som används på Kommentarssidan.<br>
    13   <br>
    14   Du kan lägga till dina egna i mappen <i>plugins/comments_on_pictures/template/s26</i>.';
    15 $lang['COA_comment_validation_link'] = 'Validering (om aktiv) av kommentarer till album är på <a href="admin.php?page=comments&section=albums">samma sida</a> som kommentarer till bilder.';
    16  
     4$lang['Comments on albums'] = 'Kommentarer till album';
    175?>
  • extensions/Comments_on_Albums/language/tr_TR/plugin.lang.php

    r12838 r14528  
    11<?php
    22
    3 /* common */
    43$lang['Comments on photos'] = 'Fotograf Yorumları';
    54$lang['Comments on albums'] = 'Albüm Yorumları';
    6 
    7 /* admin */
    8 $lang['Icons pack'] = 'İkon Paketi';
    9 $lang['Basic state'] = 'Basit durum';
    10 $lang['Over state'] = 'Gelişmiş durum';
    11 
    12 $lang['COA_help_icon_pack'] = 'Yorumlar sayfasında hangi ikonların kullanılacağını seçiniz.<br>
    13   <br>
    14   Kendi simgelerinizi ekleyeceğiniz klasör: <i>plugins/comments_on_pictures/template/s26</i>.';
    15 $lang['COA_comment_validation_link'] = '<a href="admin.php?page=comments&section=albums">Aynı sayfadaki</a>Onaylanması beklenen yorumlar.';
    16 
    17 /* stuffs */
    185$lang['Last comments on albums'] = 'Albümlerdeki Son yorumlar';
    196$lang['Display last posted comments on albums'] = 'Albümlerdeki son yorumları görüntüle';
    20 
    217?>
  • extensions/Comments_on_Albums/language/uk_UA/plugin.lang.php

    r13349 r14528  
    11<?php
    2 // +-----------------------------------------------------------------------+
    3 // | Piwigo - a PHP based photo gallery                                    |
    4 // +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2008-2012 Piwigo Team                  http://piwigo.org |
    6 // | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
    7 // | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
    8 // +-----------------------------------------------------------------------+
    9 // | This program is free software; you can redistribute it and/or modify  |
    10 // | it under the terms of the GNU General Public License as published by  |
    11 // | the Free Software Foundation                                          |
    12 // |                                                                       |
    13 // | This program is distributed in the hope that it will be useful, but   |
    14 // | WITHOUT ANY WARRANTY; without even the implied warranty of            |
    15 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
    16 // | General Public License for more details.                              |
    17 // |                                                                       |
    18 // | You should have received a copy of the GNU General Public License     |
    19 // | along with this program; if not, write to the Free Software           |
    20 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
    21 // | USA.                                                                  |
    22 // +-----------------------------------------------------------------------+
    23 $lang['Basic state'] = 'Основний стан';
    24 $lang['COA_comment_validation_link'] = 'Перевірка(якщо включені) коментарів до альбомів на <a href="admin.php?page=comments&section=albums">тій же сторінці</a>, що і коментарі до зображень.';
    25 $lang['COA_help_icon_pack'] = 'Виберіть який іконки мають бути використані на головній сторінці коментарів.<br>
    26 <br>
    27 Ви можете додати іконки, які знаходяться в теці <i>plugins/comments_on_pictures/template/s26</i>.';
     2
    283$lang['Comments on albums'] = 'Коментарі до альбомів';
    294$lang['Comments on photos'] = 'Коментарі до зображення';
    305$lang['Display last posted comments on albums'] = 'Показати останні коментарі опубліковані до альбомів';
    31 $lang['Icons pack'] = 'Пакет іконок';
    326$lang['Last comments on albums'] = 'Останні коментарі до альбомів';
    33 $lang['Over state'] = 'Над стан';
    347?>
  • extensions/Comments_on_Albums/language/zh_CN/plugin.lang.php

    r13737 r14528  
    11<?php
    2 // +-----------------------------------------------------------------------+
    3 // | Piwigo - a PHP based photo gallery                                    |
    4 // +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2008-2012 Piwigo Team                  http://piwigo.org |
    6 // | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
    7 // | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
    8 // +-----------------------------------------------------------------------+
    9 // | This program is free software; you can redistribute it and/or modify  |
    10 // | it under the terms of the GNU General Public License as published by  |
    11 // | the Free Software Foundation                                          |
    12 // |                                                                       |
    13 // | This program is distributed in the hope that it will be useful, but   |
    14 // | WITHOUT ANY WARRANTY; without even the implied warranty of            |
    15 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
    16 // | General Public License for more details.                              |
    17 // |                                                                       |
    18 // | You should have received a copy of the GNU General Public License     |
    19 // | along with this program; if not, write to the Free Software           |
    20 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
    21 // | USA.                                                                  |
    22 // +-----------------------------------------------------------------------+
     2
    233$lang['Comments on albums'] = '相册评论';
    244$lang['Comments on photos'] = '图片评论';
    25 $lang['Icons pack'] = '图标包';
    26 $lang['COA_comment_validation_link'] = '相册评论的审核(如果已开启)与图片评论审核在<a href="admin.php?page=comments&section=albums">同一页面</a>中';
    27 $lang['COA_help_icon_pack'] = '选择用于主评论页的图标<br>
    28 <br>你可以把自定义的的图标上传到 <i>plugins/comments_on_pictures/template/s26</i>目录中.
    29 ';
    305$lang['Display last posted comments on albums'] = '显示相册最新提交的评论';
    316$lang['Last comments on albums'] = '相册最新评论';
    32 $lang['Basic state'] = '基本图标';
    33 $lang['Over state'] = '鼠标划过图标';
    347?>
  • extensions/Comments_on_Albums/main.inc.php

    r12618 r14528  
    88Author URI: http://www.strangeplanet.fr
    99*/
     10
     11## TODO ##
     12// compatibility with Simple when updated to 2.4
     13// compatibility with Gally when updated to 2.4
    1014
    1115if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
     
    2933{
    3034  global $user;
    31   // luciano doesn't show comments, display is very bad on Stripped & Collumns
     35 
     36  // luciano doesn't use comments
     37  // incompatible with dynamic display of Stripped & Collumns
    3238  if ($user['theme'] == 'luciano' or $user['theme'] == 'stripped_black_bloc') return;
    3339 
    34   add_event_handler('loc_end_index', 'COA_albums');
     40  add_event_handler('loc_begin_page_header', 'COA_albums');
    3541  add_event_handler('loc_after_page_header', 'COA_comments_page');
    3642  add_event_handler('loc_begin_admin_page', 'COA_admin_intro');
    3743  add_event_handler('loc_end_admin', 'COA_admin_comments');
    38   add_event_handler('get_admin_plugin_menu_links', 'COA_admin_menu');
    3944  add_event_handler('get_stuffs_modules', 'COA_register_stuffs_module');
    4045}
     
    4954  global $template, $page, $conf, $pwg_loaded_plugins;
    5055 
    51   if (
    52     $page['section'] == 'categories' AND isset($page['category']) AND
    53     ( !isset($pwg_loaded_plugins['rv_tscroller']) OR count($page['navigation_bar']) == 0 )
    54   ) {   
     56  if ( !empty($page['section']) AND $page['section'] == 'categories' AND isset($page['category']) AND $page['body_id'] == 'theCategoryPage' )
     57  {
    5558    if (isset($pwg_loaded_plugins['bbcode_bar']) AND !isset($_GET['comment_to_edit']))
    5659    {
     
    102105}
    103106
    104 function COA_admin_menu($menu)
    105 {
    106   array_push($menu, array(
    107     'NAME' => 'Comments on Albums',
    108     'URL' => COA_ADMIN
    109   ));
    110   return $menu;
    111 }
    112 
    113107function COA_register_stuffs_module($modules)
    114108{
     
    124118}
    125119
    126 
    127120?>
  • extensions/Comments_on_Albums/maintain.inc.php

    r11267 r14528  
    22if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    33
    4 // Default configuration
    5 define(
    6   'default_config',
    7   serialize(array(
    8     'icon_color' => 'outline_ff3363.png',
    9     'icon_color_over' => 'outline_ff7700.png',
    10     ))
    11   );
    12 
    13 // Installation
    144function plugin_install()
    155{
     
    2919) DEFAULT CHARSET=utf8
    3020;");
    31  
    32   pwg_query("
    33 INSERT INTO " . CONFIG_TABLE . "(param,value,comment)
    34 VALUES(
    35   'comments_on_albums',
    36   '" . default_config . "',
    37   'Comments on Albums plugin'
    38 )
    39 ;");
    4021}
    4122
    42 // Uninstallation
     23function plugin_activate()
     24{
     25  global $conf;
     26 
     27  if (isset($conf['comments_on_albums']))
     28  {
     29    pwg_query('DELETE FROM '.CONFIG_TABLE.' WHERE param="comments_on_albums" LIMIT 1;');
     30  }
     31}
     32
    4333function plugin_uninstall()
    4434{
     
    4636
    4737  pwg_query("DROP TABLE `" . $prefixeTable . "comments_categories`;");
    48   pwg_query("DELETE FROM " . CONFIG_TABLE . " WHERE `param` = 'comments_on_albums';");
    4938}
    5039?>
  • extensions/Comments_on_Albums/template/admin_comments.tpl

    r11327 r14528  
    11{* this is a copy of admin/theme/defaults/template/comments.tpl a bit modified *}
    22 
    3 {literal}
    4 <script type="text/javascript">
    5   $(document).ready(function(){
    6     $(".checkComment").click(function(event) {
    7       if (event.target.type !== 'checkbox') {
    8         var checkbox = $(this).children("input[type=checkbox]");
    9         $(checkbox).attr('checked', !$(checkbox).is(':checked'));
     3{footer_script}{literal}
     4jQuery(document).ready(function(){
     5  function highlighComments() {
     6    jQuery(".checkComment").each(function() {
     7      var parent = jQuery(this).parent('tr');
     8      if (jQuery(this).children("input[type=checkbox]").is(':checked')) {
     9        jQuery(parent).addClass('selectedComment');
     10      }
     11      else {
     12        jQuery(parent).removeClass('selectedComment');
    1013      }
    1114    });
    12     $("#commentSelectAll").click(function () {
    13       $(".checkComment input[type=checkbox]").attr('checked', true);
    14       return false;
     15  }
     16
     17  jQuery(".checkComment").click(function(event) {
     18    if (event.target.type !== 'checkbox') {
     19      var checkbox = jQuery(this).children("input[type=checkbox]");
     20      jQuery(checkbox).attr('checked', !jQuery(checkbox).is(':checked'));
     21      highlighComments();
     22    }
     23  });
     24
     25  jQuery("#commentSelectAll").click(function () {
     26    jQuery(".checkComment input[type=checkbox]").attr('checked', true);
     27    highlighComments();
     28    return false;
     29  });
     30
     31  jQuery("#commentSelectNone").click(function () {
     32    jQuery(".checkComment input[type=checkbox]").attr('checked', false);
     33    highlighComments();
     34    return false;
     35  });
     36
     37  jQuery("#commentSelectInvert").click(function () {
     38    jQuery(".checkComment input[type=checkbox]").each(function() {
     39      jQuery(this).attr('checked', !$(this).is(':checked'));
    1540    });
    16     $("#commentSelectNone").click(function () {
    17       $(".checkComment input[type=checkbox]").attr('checked', false);
    18       return false;
    19     });
    20     $("#commentSelectInvert").click(function () {
    21       $(".checkComment input[type=checkbox]").each(function() {
    22         $(this).attr('checked', !$(this).is(':checked'));
    23       });
    24       return false;
    25     });
     41    highlighComments();
     42    return false;
    2643  });
    27 </script>
    28 {/literal}
     44
     45});
     46{/literal}{/footer_script}
    2947
    3048<div class="titrePage">
    31   <h2>{'Waiting'|@translate}</h2>
     49  <h2>{'Pending Comments'|@translate} [{'Albums'|@translate}]</h2>
    3250</div>
    3351
    34 <h3>{'User comments validation'|@translate}</h3>
     52{if !empty($comments) }
     53<form method="post" action="{$F_ACTION}" id="pendingComments">
    3554
    36 {if !empty($comments) }
    37 <form method="post" action="{$F_ACTION}">
    38 
    39   <table width="99%">
     55<table>
    4056  {foreach from=$comments item=comment name=comment}
    4157    <tr valign="top" class="{if $smarty.foreach.comment.index is odd}row2{else}row1{/if}">
     
    5268    </tr>
    5369  {/foreach}
    54   </table>
     70</table>
    5571
    5672  <p class="checkActions">
  • extensions/Comments_on_Albums/template/albums.tpl

    r11267 r14528  
    11{* this is inspired by theme/defaults/template/picture.tpl *}
     2 
     3{* <!-- need some css modifications, specific to each theme --> *}
     4{html_head}
     5<style type="text/css">
     6#comments .commentElement {ldelim} width:98%;}
     7{if $COMMENTS_ON_TOP}
     8#commentAdd, #pictureCommentList {ldelim} float:none; display:inline-block; width:47.5%; vertical-align:top;}
     9#commentsSwitcher {ldelim} float:none; display:inline-block; margin: 2px 0; cursor:pointer;}
     10.noCommentContent #commentsSwitcher     {ldelim} display: none;}
     11.switchArrow{ldelim} width: 16px; height: 16px; margin: 5px;}
     12.commentshidden #pictureComments {ldelim} display: none;}
     13.commentContent .comments_toggle        {ldelim} cursor: pointer;}
     14{/if}
     15{if $themeconf.name == 'Sylvia'}
     16#comments .description {ldelim} padding: 15px 2px 6px 12px;}
     17#comments .commentElement {ldelim} border: 1px solid #666;}
     18{/if}
     19{if $themeconf.name|strstr:"stripped"}
     20#comments {ldelim} text-align: left;}
     21#comments .description {ldelim} height:auto;}
     22#thumbnails_block2 {ldelim} min-height:0;}
     23{/if}
     24
     25</style>
     26{/html_head}
     27
     28{* <!-- if RV Thumb Scroller is installed comments block is displayed on top with a drop-down --> *}
     29{if $COMMENTS_ON_TOP}
     30{footer_script}{literal}
     31        // comments show/hide
     32        var commentsswicther=jQuery("#commentsSwitcher");
     33        var comments=jQuery("#theCategoryPage #comments");
     34       
     35        commentsswicther.html("<div class=\"switchArrow\">&nbsp;</div>");
     36  {/literal}{if $themeconf.name != 'elegant'}switcharrow = commentsswicther.children(".switchArrow");{else}switcharrow = $("<div></div>");{/if}{literal}
     37       
     38        if (comments.length == 1) {
     39                var comments_button=jQuery("#comments h3");
     40
     41                if (comments_button.length == 0) {
     42                        jQuery("#addComment").before("<h3>Comments</h3>");
     43                        comments_button=jQuery("#comments h3");
     44                }
     45       
     46    {/literal}{if $DISPLAY_COMMENTS_BLOCK}
     47                comments.addClass("commentsshown");
     48                comments_button.addClass("comments_toggle").addClass("comments_toggle_on");
     49    switcharrow.html("&uarr;");
     50    {else}
     51    comments.addClass("commentshidden");
     52                comments_button.addClass("comments_toggle").addClass("comments_toggle_off");
     53    switcharrow.html("&darr;");
     54                {/if}{literal}
     55   
     56                comments_button.click(function() { commentsToggle() });
     57                commentsswicther.click(function() { commentsToggle() });
     58       
     59        }
    260 
    3 {combine_css path=$COA_PATH|@cat:'template/style_albums.css'}
    4 {if $themeconf.name == 'Sylvia'}{combine_css path=$COA_PATH|@cat:'template/style_albums_sylvia.css'}{/if}
     61  function commentsToggle() {
     62    var comments=jQuery("#theCategoryPage #comments");
     63    var comments_button=jQuery("#comments h3");
    564
    6 <a name="comments"></a>
     65    if (comments.hasClass("commentshidden")) {
     66        comments.removeClass("commentshidden").addClass("commentsshown");
     67        comments_button.addClass("comments_toggle_off").removeClass("comments_toggle_off");
     68        switcharrow.html("&uarr;");
     69      } else {
     70        comments.addClass("commentshidden").removeClass("commentsshown");
     71        comments_button.addClass("comments_toggle_on").removeClass("comments_toggle_on");
     72        switcharrow.html("&darr;");
     73      }
     74
     75  }
     76{/literal}{/footer_script}
     77{/if}
     78
    779{if isset($COMMENT_COUNT)}
    8 <div id="comments">
    9   {if $COMMENT_COUNT > 0}
    10     <h3>{$pwg->l10n_dec('%d comment', '%d comments',$COMMENT_COUNT)}</h3>
    11   {/if}
     80<div id="comments" style="margin:10px 0 10px 0;" {if (!isset($comment_add) && ($COMMENT_COUNT == 0))}class="noCommentContent"{else}class="commentContent"{/if}>
     81  <h3 style="margin:0 0 0 5px;"><div id="commentsSwitcher"></div>{$pwg->l10n_dec('%d comment', '%d comments',$COMMENT_COUNT)}</h3>
    1282
    13   {if isset($comments)}
    14     {include file='comment_list.tpl'}
    15   {/if}
    16  
    17   {if !empty($comment_navbar)}{include file=$COA_ABSOLUTE_PATH|@cat:'template/navigation_bar.tpl'}{/if}
     83  <div id="pictureComments"><fieldset>
     84    {if isset($comment_add)}
     85                <div id="commentAdd">
     86                        <h4>{'Add a comment'|@translate}</h4>
     87                        <form method="post" action="{$comment_add.F_ACTION}" id="addComment">
     88                                {if $comment_add.SHOW_AUTHOR}
     89                                        <p><label>{'Author'|@translate} :</label></p>
     90                                        <p><input type="text" name="author"></p>
     91                                        <p><label>{'Comment'|@translate} :</label></p>
     92                                {/if}
     93                                <p><textarea name="content" id="contentid" rows="5" cols="50">{$comment_add.CONTENT}</textarea></p>
     94                                <p><input type="hidden" name="key" value="{$comment_add.KEY}">
     95                                        <input type="submit" value="{'Submit'|@translate}"></p>
     96                        </form>
     97                </div>
     98    {/if}
     99    {if isset($comments)}
     100                <div id="pictureCommentList">
     101                        {if (($COMMENT_COUNT > 2) || !empty($comment_navbar))}
     102                                <div id="pictureCommentNavBar">
     103                                        {if $COMMENT_COUNT > 2}
     104                                                <a href="{$COMMENTS_ORDER_URL}#comments" rel="nofollow" class="commentsOrder">{$COMMENTS_ORDER_TITLE}</a>
     105                                        {/if}
     106                                        {if !empty($comment_navbar) }{include file=$COA_ABSOLUTE_PATH|@cat:'template/navigation_bar.tpl'|@get_extent:'navbar'}{/if}
     107                                </div>
     108                        {/if}
     109      {include file='comment_list.tpl'}
     110                </div>
     111                {/if}
     112                {if not $COMMENTS_ON_TOP}<div style="clear:both"></div>{/if}
     113        </fieldset></div>
    18114
    19   {if isset($comment_add)}
    20   <form method="post" action="{$comment_add.F_ACTION}" class="filter" id="addComment">
    21     <fieldset>
    22       <legend>{'Add a comment'|@translate}</legend>
    23       {if $comment_add.SHOW_AUTHOR}
    24         <label>{'Author'|@translate}<input type="text" name="author"></label>
    25       {/if}
    26       <label>{'Comment'|@translate}<textarea name="content" id="contentid" rows="5" cols="80">{$comment_add.CONTENT}</textarea></label>
    27       <input type="hidden" name="key" value="{$comment_add.KEY}">
    28       <input type="submit" value="{'Submit'|@translate}">
    29     </fieldset>
    30   </form>
    31   {/if}
    32115</div>
    33116{/if}{*comments*}
  • extensions/Comments_on_Albums/template/comments_page.tpl

    r12381 r14528  
    1 {* this is a copy of theme/defaults/template/comments.tpl a bit modified *}
    2  
    3 {html_head}
    4 <style type="text/css">
    5   .thumbnailCategory .category-title {ldelim}
    6     font-size:1.1em;
    7     font-weight:bold;
    8   }
    9   .pwg-icon-comments-images {ldelim}
    10     background-image: url({$COA_PATH}template/s26/{$ICON_COLOR});
    11     background-position: 0 0;
    12   }
    13   a:hover .pwg-icon-comments-images {ldelim}
    14     background-image: url({$COA_PATH}template/s26/{$ICON_COLOR_OVER});
    15     background-position: 0 0;
    16   }
    17 </style>
    18 {/html_head}
     1{* this is a copy of theme/default/template/comments.tpl a bit modified *}
    192
    20 {if isset($MENUBAR)}{$MENUBAR}{/if}
    21 <div id="content" class="content">
     3{* <!-- stripped uses a custom layout -->*}
     4{if $themeconf.name|strstr:"stripped"}
     5  <div class="titrePage">
     6    <div class="browsePath">
     7      <h2>
     8        {if isset($MENUBAR)}
     9          <span id="menuswitcher" title="{'Show/hide menu'|@translate}">{'Menu'|@translate}</span><span class="arrow"> »</span>
     10        {/if}
     11        <a href="{$U_HOME}">{'Home'|@translate}</a>{$LEVEL_SEPARATOR}{'User comments'|@translate}
     12      </h2>
     13    </div>
     14  </div>
    2215
    23 <div class="titrePage">
    24   <ul class="categoryActions">
    25     <li><a href="comments.php" title="{'Comments on photos'|@translate}" class="pwg-state-default pwg-button">
    26       <span class="pwg-icon pwg-icon-comments-images">&nbsp;</span><span class="pwg-button-text">{'Comments on photos'|@translate}</span>
    27     </a></li>
    28     <li><a href="{$U_HOME}" title="{'Home'|@translate}" class="pwg-state-default pwg-button">
    29       <span class="pwg-icon pwg-icon-home">&nbsp;</span><span class="pwg-button-text">{'Home'|@translate}</span>
    30     </a></li>
    31   </ul>
    32   <h2>{'User comments'|@translate}</h2>
    33 </div>
     16  <div id="content">
     17  {if isset($MENUBAR)}{$MENUBAR}{/if}
     18  <div id="content_cell">
     19      <div class="content_block">
     20{else}
     21  {if isset($MENUBAR)}{$MENUBAR}{/if}
     22  <div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}">
     23
     24  <div class="titrePage">
     25    <ul class="categoryActions">
     26    </ul>
     27    <h2><a href="{$U_HOME}">{'Home'|@translate}</a>{$LEVEL_SEPARATOR}{'User comments'|@translate}</h2>
     28  </div>
     29{/if}
     30
     31{include file='infos_errors.tpl'}
     32
     33<form class="filter">
     34<fieldset>
     35  <legend>{'Display comments on'|@translate}</legend>
     36  <span style="font-size:1.1em;"><a href="comments.php">{'Photos'|@translate}</a> | <a href="#" style="font-weight:bold;">{'Albums'|@translate}</a></span>
     37</fieldset>
     38</form>
    3439
    3540<form class="filter" action="{$F_ACTION}?display_mode=albums" method="get">
     
    3843    <legend>{'Filter'|@translate}</legend>
    3944
    40     <label>{'Keyword'|@translate}<input type="text" name="keyword" value="{$F_KEYWORD}"></label>
     45    <label>{'Keyword'|@translate} <input type="text" name="keyword" value="{$F_KEYWORD}"></label>
    4146
    42     <label>{'Author'|@translate}<input type="text" name="author" value="{$F_AUTHOR}"></label>
     47    <label>{'Author'|@translate} <input type="text" name="author" value="{$F_AUTHOR}"></label>
    4348
    4449    <label>
     
    95100{if isset($comments)}
    96101<div id="comments">
    97   {include file='comment_list.tpl'}
     102  {include file='comment_list.tpl' comment_derivative_params=$derivative_params}
    98103</div>
    99104{/if}
    100105
    101106</div> <!-- content -->
    102 
     107{if $themeconf.name|strstr:"stripped"}</div></div>{/if}
Note: See TracChangeset for help on using the changeset viewer.