Changeset 14528 for extensions/Comments_on_Albums
- Timestamp:
- Apr 29, 2012, 5:09:28 PM (13 years ago)
- 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 46 46 else 47 47 { 48 include_once(COA_PATH.'include/functions_comment.inc.php'); 48 include_once(COA_PATH.'include/functions_comment.inc.php'); // custom functions 49 49 check_input_parameter('comments', $_POST, true, PATTERN_ID); 50 50 … … 109 109 cat.name, 110 110 img.id AS image_id, 111 img.path, 112 img.tn_ext 111 img.path 113 112 FROM '.COA_TABLE.' AS com 114 113 LEFT JOIN '.CATEGORIES_TABLE.' AS cat … … 138 137 139 138 // thumbnail 140 $row['thumb'] = get_thumbnail_url(139 $row['thumb'] = DerivativeImage::thumb_url( 141 140 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'], 145 143 ) 146 144 ); 147 145 148 146 // comment content 149 147 $template->append( … … 151 149 array( 152 150 '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'], 154 152 'CAT_NAME' => trigger_event('render_category_name', $row['name']), 155 153 'TN_SRC' => $row['thumb'], -
extensions/Comments_on_Albums/include/coa_albums.php
r12618 r14528 27 27 case 'edit_comment' : 28 28 { 29 check_pwg_token();30 31 29 include_once(COA_PATH.'include/functions_comment.inc.php'); // custom fonctions 32 33 30 check_input_parameter('comment_to_edit', $_GET, false, PATTERN_ID); 34 35 31 $author_id = get_comment_author_id_albums($_GET['comment_to_edit']); 36 32 … … 39 35 if (!empty($_POST['content'])) 40 36 { 37 check_pwg_token(); 41 38 $comment_action = update_user_comment_albums( 42 39 array( … … 48 45 ); 49 46 50 $infos = array(); 51 47 $perform_redirect = false; 52 48 switch ($comment_action) 53 49 { 54 50 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.'); 56 52 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; 58 55 break; 59 56 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; 62 59 break; 63 60 default: … … 65 62 } 66 63 67 $template->assign( 68 ($comment_action=='reject') ? 'errors' : 'infos', 69 $infos 70 ); 71 64 if ($perform_redirect) 65 { 66 redirect($url_self); 67 } 72 68 unset($_POST['content']); 73 break;74 69 } 75 70 else 76 71 { 77 72 $edit_comment = $_GET['comment_to_edit']; 78 break;79 73 } 74 break; 80 75 } 81 76 } … … 84 79 check_pwg_token(); 85 80 86 include_once(COA_PATH.'include/functions_comment.inc.php'); 81 include_once(COA_PATH.'include/functions_comment.inc.php'); // custom fonctions 87 82 88 83 check_input_parameter('comment_to_delete', $_GET, false, PATTERN_ID); … … 101 96 check_pwg_token(); 102 97 103 include_once(COA_PATH.'include/functions_comment.inc.php'); 98 include_once(COA_PATH.'include/functions_comment.inc.php'); // custom fonctions 104 99 105 100 check_input_parameter('comment_to_validate', $_GET, false, PATTERN_ID); … … 116 111 } 117 112 } 113 118 114 119 115 // +-----------------------------------------------------------------------+ … … 133 129 ); 134 130 135 include_once(COA_PATH.'include/functions_comment.inc.php'); 131 include_once(COA_PATH.'include/functions_comment.inc.php'); // custom fonctions 136 132 137 $comment_action = insert_user_comment_albums($comm, @$_POST['key'], $ infos);133 $comment_action = insert_user_comment_albums($comm, @$_POST['key'], $page['infos']); 138 134 139 135 switch ($comment_action) 140 136 { 141 137 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.')); 143 139 case 'validate': 144 array_push($ infos, l10n('Your comment has been registered'));140 array_push($page['infos'], l10n('Your comment has been registered')); 145 141 break; 146 142 case 'reject': 147 143 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')); 149 145 break; 150 146 default: 151 147 trigger_error('Invalid comment action '.$comment_action, E_USER_WARNING); 152 148 } 153 154 $template->assign(155 ($comment_action=='reject') ? 'errors' : 'infos',156 $infos157 );158 149 159 150 // allow plugins to notify what's going on … … 161 152 array_merge($comm, array('action'=>$comment_action) ) 162 153 ); 163 154 155 $template->assign('DISPLAY_COMMENTS_BLOCK', true); 164 156 } 165 157 else if (isset($_POST['content'])) … … 194 186 $row = pwg_db_fetch_assoc(pwg_query($query)); 195 187 196 // navigation bar creation, c ustom again188 // navigation bar creation, can't use $_GET['start'] because used by thumbnails navigation bar 197 189 if (isset($_GET['start_comments'])) 198 190 { … … 203 195 $page['start_comments'] = 0; 204 196 } 205 include_once(COA_PATH.'include/functions.inc.php'); 197 include_once(COA_PATH.'include/functions.inc.php'); // custom fonctions 206 198 207 199 $navigation_bar = create_comment_navigation_bar( … … 221 213 if ($row['nb_comments'] > 0) 222 214 { 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 223 227 // get comments 224 228 $query = ' … … 237 241 WHERE category_id = '.$category['id'].' 238 242 '.$validated_clause.' 239 ORDER BY date ASC243 ORDER BY date '.$comments_order.' 240 244 LIMIT '.$conf['nb_comment_page'].' OFFSET '.$page['start_comments'].' 241 245 ;'; … … 285 289 'action' => 'edit_comment', 286 290 'comment_to_edit' => $row['id'], 287 'pwg_token' => get_pwg_token(),288 291 ) 289 292 ); 290 293 if (isset($edit_comment) and ($row['id'] == $edit_comment)) 291 294 { 295 $tpl_comment['IN_EDIT'] = true; 292 296 $key = get_ephemeral_key(2, $category['id']); 293 $tpl_comment['IN_EDIT'] = true;294 297 $tpl_comment['KEY'] = $key; 295 298 $tpl_comment['CONTENT'] = $row['content']; 299 $tpl_comment['PWG_TOKEN'] = get_pwg_token(); 296 300 } 297 301 } … … 331 335 $content = htmlspecialchars(stripslashes($comm['content'])); 332 336 } 333 $template->assign( 334 'comment_add', 337 $template->assign('comment_add', 335 338 array( 336 339 'F_ACTION' => $url_self, … … 343 346 344 347 // 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 )); 351 352 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)); 357 358 } 358 359 else 359 360 { 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)); 392 362 } 393 363 } -
extensions/Comments_on_Albums/include/coa_comments_page.php
r12562 r14528 2 2 /* inspired by comments.php */ 3 3 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 4 5 4 load_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 16 5 17 6 // +-----------------------------------------------------------------------+ … … 19 8 // +-----------------------------------------------------------------------+ 20 9 21 if ( !isset($_GET['display_mode']))10 if ( !isset($_GET['display_mode']) or $_GET['display_mode'] != 'albums' ) 22 11 { 23 12 // adds a button for switch page … … 25 14 26 15 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"> </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>'; 48 25 49 26 return str_replace($search, $replacement, $content); … … 58 35 else if ($_GET['display_mode'] == 'albums') 59 36 { 37 include_once(COA_PATH.'include/functions_comment.inc.php'); // custom functions 38 60 39 // reset some template vars 61 40 $template->clear_assign(array('comments', 'navbar', 'sort_by_options')); … … 88 67 if (isset($action)) 89 68 { 90 include_once(COA_PATH.'include/functions_comment.inc.php');91 92 check_pwg_token();93 94 69 $comment_author_id = get_comment_author_id_albums($comment_id); 95 70 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)) 99 72 { 100 73 $perform_redirect = false; … … 102 75 if ('delete_albums' == $action) 103 76 { 77 check_pwg_token(); 104 78 delete_user_comment_albums($comment_id); 105 79 $perform_redirect = true; … … 107 81 if ('validate_albums' == $action) 108 82 { 83 check_pwg_token(); 109 84 validate_user_comment_albums($comment_id); 110 85 $perform_redirect = true; … … 114 89 if (!empty($_POST['content'])) 115 90 { 91 check_pwg_token(); 116 92 update_user_comment_albums( 117 93 array( … … 122 98 $_POST['key'] 123 99 ); 124 //$perform_redirect = true;125 $ edit_comment = null;100 101 $perform_redirect = true; 126 102 } 127 103 else … … 155 131 156 132 $query = ' 157 SELECT 158 COUNT(DISTINCT(com.id)) 133 SELECT COUNT(DISTINCT(com.id)) 159 134 FROM '.COA_TABLE.' AS com 160 135 LEFT JOIN '.USERS_TABLE.' As u … … 165 140 list($counter) = pwg_db_fetch_row(pwg_query($query)); 166 141 167 $url = 168 PHPWG_ROOT_PATH 169 .'comments.php' 142 $url = PHPWG_ROOT_PATH 143 .'comments.php' 170 144 .get_query_string_diff(array('start','delete_albums','validate_albums','edit_albums','pwg_token')); 171 145 … … 177 151 '' 178 152 ); 153 179 154 $template->assign('navbar', $navbar); 180 155 … … 210 185 com.validated 211 186 ORDER BY '.$page['sort_by'].' '.$page['sort_order']; 212 213 214 187 if ('all' != $page['items_number']) 188 { 189 $query.= ' 215 190 LIMIT '.$page['items_number'].' OFFSET '.$start; 216 217 191 } 192 $query.= ' 218 193 ;'; 219 194 $result = pwg_query($query); … … 258 233 foreach ($comments as $comment) 259 234 { 235 // source of the thumbnail picture 236 $comment['src_image'] = new SrcImage($categories[$comment['comment_id']]); 237 260 238 // category url 261 239 $comment['cat_url'] = duplicate_index_url( … … 269 247 ) 270 248 ); 271 272 // category thumbnail273 $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 );280 249 281 250 // comment content … … 284 253 'U_PICTURE' => $comment['cat_url'], 285 254 'ALT' => trigger_event('render_category_name', $categories[$comment['comment_id']]['name']), 286 ' TN_SRC' => $comment['thumb'],255 'src_image' => $comment['src_image'], 287 256 'AUTHOR' => trigger_event('render_comment_author', $comment['author']), 288 257 'DATE' => format_date($comment['date'], true), … … 293 262 if (can_manage_comment('delete', $comment['author_id'])) 294 263 { 295 $url =296 get_root_url()297 .'comments.php'298 .get_query_string_diff(array('delete','validate','edit', 'pwg_token'));299 300 264 $tpl_comment['U_DELETE'] = add_url_params( 301 265 $url, … … 308 272 if (can_manage_comment('edit', $comment['author_id'])) 309 273 { 310 $url =311 get_root_url()312 .'comments.php'313 .get_query_string_diff(array('edit', 'delete','validate', 'pwg_token'));314 315 274 $tpl_comment['U_EDIT'] = add_url_params( 316 275 $url, 317 276 array( 318 277 'edit_albums' => $comment['comment_id'], 319 'pwg_token' => get_pwg_token(),320 278 ) 321 279 ); … … 323 281 if (isset($edit_comment) and ($comment['comment_id'] == $edit_comment)) 324 282 { 283 $tpl_comment['IN_EDIT'] = true; 325 284 $key = get_ephemeral_key(2, $comment['category_id']); 326 $tpl_comment['IN_EDIT'] = true;327 285 $tpl_comment['KEY'] = $key; 328 286 $tpl_comment['IMAGE_ID'] = $comment['category_id']; 329 287 $tpl_comment['CONTENT'] = $comment['content']; 288 $tpl_comment['PWG_TOKEN'] = get_pwg_token(); 330 289 } 331 290 } … … 357 316 358 317 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}">'; 360 319 $replacement = $search.'<br/>{$comment.ALT}'; 361 320 return str_replace($search, $replacement, $content); -
extensions/Comments_on_Albums/include/functions_comment.inc.php
r12601 r14528 3 3 4 4 //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', 5 function 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 35 add_event_handler('user_comment_check_albums', 'user_comment_check_albums', 40 36 EVENT_HANDLER_PRIORITY_NEUTRAL, 2); 41 37 … … 106 102 { 107 103 $comment_action='reject'; 104 $_POST['cr'][] = 'key'; 108 105 } 109 106 … … 125 122 126 123 // perform more spam check 127 $comment_action = trigger_event('user_comment_check ',124 $comment_action = trigger_event('user_comment_check_albums', 128 125 $comment_action, $comm 129 126 ); … … 149 146 $comm['id'] = pwg_db_insert_id(COA_TABLE); 150 147 151 if ( $conf['email_admin_on_comment']148 if ( ($conf['email_admin_on_comment'] && 'validate' == $comment_action) 152 149 or ($conf['email_admin_on_comment_validation'] and 'moderate' == $comment_action)) 153 150 { … … 239 236 $comment_action='reject'; 240 237 } 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 } 241 246 242 247 // perform more spam check … … 256 261 $user_where_clause = ' AND author_id = \''. 257 262 $GLOBALS['user']['id'].'\''; 258 }259 260 // should the updated comment must be validated261 if (!$conf['comments_validation'] or is_admin())262 {263 $comment_action='validate'; //one of validate, moderate, reject264 }265 else266 {267 $comment_action='moderate'; //one of validate, moderate, reject268 263 } 269 264 -
extensions/Comments_on_Albums/language/cs_CZ/plugin.lang.php
r13967 r14528 1 1 <?php 2 2 3 /* common */4 3 $lang['Comments on photos'] = 'Komentáře o fotografiích'; 5 4 $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§ion=albums">totožné webové stránce</a> jako komentáře o fotografiích.';16 17 5 $lang['Display last posted comments on albums'] = 'Zobraz poslední vytvořené komentáře alba'; 18 6 $lang['Last comments on albums'] = 'Poslední komentáře alba'; -
extensions/Comments_on_Albums/language/de_DE/plugin.lang.php
r13056 r14528 1 1 <?php 2 2 3 /* common */4 3 $lang['Comments on photos'] = 'Kommentare zu Fotos'; 5 4 $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§ion=albums">der gleichen Seite</a> wie die Kommentare zu den Fotos.';16 17 5 $lang['Display last posted comments on albums'] = 'Zeigt den zuletzt geposteten Kommentare zu den Alben an'; 18 6 $lang['Last comments on albums'] = 'Letzte Kommentare zu den Alben'; -
extensions/Comments_on_Albums/language/el_GR/plugin.lang.php
r14457 r14528 1 1 <?php 2 2 3 /* common */4 3 $lang['Comments on photos'] = 'Σχόλια σε φωτογραφίες'; 5 4 $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§ion=albums">στην ίδια σελίδα</a> όπως τα σχόλια στις φωτογραφίες.';16 17 5 $lang['Display last posted comments on albums'] = 'Εμφάνιση των τελευταίων δημοσιευμένων σχόλιων στα λευκώματα'; 18 6 $lang['Last comments on albums'] = 'Τελευταία σχόλια σε λευκώματα'; -
extensions/Comments_on_Albums/language/en_UK/plugin.lang.php
r12381 r14528 1 1 <?php 2 2 3 /* common */4 3 $lang['Comments on photos'] = 'Comments on photos'; 5 4 $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§ion=albums">the same page</a> as the comments on pictures.'; 16 17 /* stuffs */ 5 $lang['Display comments on'] = 'Display comments on'; 18 6 $lang['Last comments on albums'] = 'Last comments on albums'; 19 7 $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 1 1 <?php 2 2 3 /* common */4 3 $lang['Comments on photos'] = 'Comentarios sobre las fotos'; 5 4 $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§ion=albums">en la misma pagina</a> que para los comentarios sobre las fotos.';16 17 5 $lang['Display last posted comments on albums'] = 'Mostrar los últimos comentarios hechos en álbums.'; 18 6 $lang['Last comments on albums'] = 'Últimos comentarios en álbums.'; -
extensions/Comments_on_Albums/language/fr_FR/plugin.lang.php
r12381 r14528 1 1 <?php 2 2 3 /* common */4 3 $lang['Comments on photos'] = 'Commentaires sur les photos'; 5 4 $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§ion=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'; 18 6 $lang['Last comments on albums'] = 'Derniers commentaires sur les albums'; 19 7 $lang['Display last posted comments on albums'] = 'Affiche les derniers commentaires postés sur les albums'; 20 21 8 ?> -
extensions/Comments_on_Albums/language/hu_HU/plugin.lang.php
r12572 r14528 1 1 <?php 2 2 3 /* common */4 3 $lang['Comments on photos'] = 'Hozzászólások a kép oldalakon'; 5 4 $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 17 5 $lang['Display last posted comments on albums'] = 'Albumok utolsó hozzászólásainak megjelenítése'; 18 6 $lang['Last comments on albums'] = 'Friss hozzászólások az albumokban'; -
extensions/Comments_on_Albums/language/it_IT/plugin.lang.php
r13342 r14528 1 1 <?php 2 2 3 /* common */4 3 $lang['Comments on photos'] = 'Commenti sulle foto'; 5 4 $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§ion=albums">sulla stessa pagina</a> dei commenti delle foto.';16 17 5 $lang['Display last posted comments on albums'] = 'Mostra ultimi commenti sugli album'; 18 6 $lang['Last comments on albums'] = 'Ultimi commenti sugli album'; -
extensions/Comments_on_Albums/language/lv_LV/plugin.lang.php
r13608 r14528 1 1 <?php 2 2 3 /* common */4 3 $lang['Comments on photos'] = 'Komentari fotografijam'; 5 4 $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 pai 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 paa lapa,</a> kur komentari atteliem.';16 17 /* stuffs */18 5 $lang['Last comments on albums'] = 'Pedejie komentari par albumiem'; 19 6 $lang['Display last posted comments on albums'] = 'Paradit pedejos publicetos komentarus par albumiem'; 20 21 7 ?> -
extensions/Comments_on_Albums/language/nl_NL/plugin.lang.php
r12821 r14528 1 1 <?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 26 3 $lang['Comments on albums'] = 'Commentaar op albums'; 27 4 $lang['Comments on photos'] = 'Commentaar op afbeeldingen'; 28 5 $lang['Display last posted comments on albums'] = 'Geef de laatste commentaren op albums weer'; 29 $lang['Icons pack'] = 'Iconen set';30 6 $lang['Last comments on albums'] = 'De laatste commentaren op albums'; 31 $lang['Over state'] = 'Extra';32 7 ?> -
extensions/Comments_on_Albums/language/pl_PL/plugin.lang.php
r12934 r14528 1 1 <?php 2 /* common */ 2 3 3 $lang['Comments on photos'] = 'Komentarze na temat zdjec'; 4 4 $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§ion=albums">the same page</a> as the comments on pictures.';17 18 /* stuffs */19 5 $lang['Last comments on albums'] = 'Last comments on albums'; 20 6 $lang['Display last posted comments on albums'] = 'Display last posted comments on albums'; 21 22 7 ?> -
extensions/Comments_on_Albums/language/pt_PT/plugin.lang.php
r14010 r14528 1 1 <?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§ion=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 28 3 $lang['Comments on albums'] = 'Comentários em álbums'; 29 4 $lang['Comments on photos'] = 'Comentários em fotos'; 30 5 $lang['Display last posted comments on albums'] = 'Mostrar os últimos cometários feitos em álbums'; 31 $lang['Icons pack'] = 'Conjunto de ícones';32 6 $lang['Last comments on albums'] = 'Últimos comentários em álbums'; 33 $lang['Over state'] = 'Estado pairar';34 7 ?> -
extensions/Comments_on_Albums/language/ru_RU/plugin.lang.php
r14145 r14528 1 1 <?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§ion=albums">на той-же странице</a> что и комментарии для изображений.'; 25 $lang['COA_help_icon_pack'] = 'Выберите иконку для отображение на основной странице Комментариев <br> 26 Вы можете добавлять свои в каталог <i>plugins/comments_on_pictures/template/s26</i>.'; 2 27 3 $lang['Comments on albums'] = 'Комментарии для альбомов'; 28 4 $lang['Comments on photos'] = 'Комментарии для фотографий'; 29 5 $lang['Display last posted comments on albums'] = 'Отображать последние комментарии для альбомов'; 30 $lang['Icons pack'] = 'Архив иконок';31 6 $lang['Last comments on albums'] = 'Последние комментарии для альбомов'; 32 $lang['Over state'] = 'Преувеличенное состояние';33 7 ?> -
extensions/Comments_on_Albums/language/sh_RS/plugin.lang.php
r13875 r14528 1 1 <?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§ion=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 26 3 $lang['Comments on albums'] = 'Komentari albuma'; 27 4 $lang['Comments on photos'] = 'Komentari fotografija'; 28 5 $lang['Display last posted comments on albums'] = 'Prikaži poslednje komentare albuma'; 29 $lang['Icons pack'] = 'Pakovanje ikonica';30 6 $lang['Last comments on albums'] = 'Poslednji komentari albuma'; 31 $lang['Over state'] = 'Iznad stanja';32 7 ?> -
extensions/Comments_on_Albums/language/sk_SK/plugin.lang.php
r13831 r14528 1 1 <?php 2 /* common */ 2 3 3 $lang['Comments on photos'] = 'Komentáre na fotky'; 4 4 $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§ion=albums">rovnakej stránke</a> ako komentáre na fotky.';13 5 $lang['Display last posted comments on albums'] = 'Zobraziť ostatné komentáre v albumoch'; 14 6 $lang['Last comments on albums'] = 'Ostatné komentáre v albumoch'; -
extensions/Comments_on_Albums/language/sv_SE/plugin.lang.php
r12049 r14528 1 1 <?php 2 2 3 /* common */4 3 $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§ion=albums">samma sida</a> som kommentarer till bilder.'; 16 4 $lang['Comments on albums'] = 'Kommentarer till album'; 17 5 ?> -
extensions/Comments_on_Albums/language/tr_TR/plugin.lang.php
r12838 r14528 1 1 <?php 2 2 3 /* common */4 3 $lang['Comments on photos'] = 'Fotograf Yorumları'; 5 4 $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§ion=albums">Aynı sayfadaki</a>Onaylanması beklenen yorumlar.';16 17 /* stuffs */18 5 $lang['Last comments on albums'] = 'Albümlerdeki Son yorumlar'; 19 6 $lang['Display last posted comments on albums'] = 'Albümlerdeki son yorumları görüntüle'; 20 21 7 ?> -
extensions/Comments_on_Albums/language/uk_UA/plugin.lang.php
r13349 r14528 1 1 <?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§ion=albums">тій же сторінці</a>, що і коментарі до зображень.'; 25 $lang['COA_help_icon_pack'] = 'Виберіть який іконки мають бути використані на головній сторінці коментарів.<br> 26 <br> 27 Ви можете додати іконки, які знаходяться в теці <i>plugins/comments_on_pictures/template/s26</i>.'; 2 28 3 $lang['Comments on albums'] = 'Коментарі до альбомів'; 29 4 $lang['Comments on photos'] = 'Коментарі до зображення'; 30 5 $lang['Display last posted comments on albums'] = 'Показати останні коментарі опубліковані до альбомів'; 31 $lang['Icons pack'] = 'Пакет іконок';32 6 $lang['Last comments on albums'] = 'Останні коментарі до альбомів'; 33 $lang['Over state'] = 'Над стан';34 7 ?> -
extensions/Comments_on_Albums/language/zh_CN/plugin.lang.php
r13737 r14528 1 1 <?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 23 3 $lang['Comments on albums'] = '相册评论'; 24 4 $lang['Comments on photos'] = '图片评论'; 25 $lang['Icons pack'] = '图标包';26 $lang['COA_comment_validation_link'] = '相册评论的审核(如果已开启)与图片评论审核在<a href="admin.php?page=comments§ion=albums">同一页面</a>中';27 $lang['COA_help_icon_pack'] = '选择用于主评论页的图标<br>28 <br>你可以把自定义的的图标上传到 <i>plugins/comments_on_pictures/template/s26</i>目录中.29 ';30 5 $lang['Display last posted comments on albums'] = '显示相册最新提交的评论'; 31 6 $lang['Last comments on albums'] = '相册最新评论'; 32 $lang['Basic state'] = '基本图标';33 $lang['Over state'] = '鼠标划过图标';34 7 ?> -
extensions/Comments_on_Albums/main.inc.php
r12618 r14528 8 8 Author URI: http://www.strangeplanet.fr 9 9 */ 10 11 ## TODO ## 12 // compatibility with Simple when updated to 2.4 13 // compatibility with Gally when updated to 2.4 10 14 11 15 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); … … 29 33 { 30 34 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 32 38 if ($user['theme'] == 'luciano' or $user['theme'] == 'stripped_black_bloc') return; 33 39 34 add_event_handler('loc_ end_index', 'COA_albums');40 add_event_handler('loc_begin_page_header', 'COA_albums'); 35 41 add_event_handler('loc_after_page_header', 'COA_comments_page'); 36 42 add_event_handler('loc_begin_admin_page', 'COA_admin_intro'); 37 43 add_event_handler('loc_end_admin', 'COA_admin_comments'); 38 add_event_handler('get_admin_plugin_menu_links', 'COA_admin_menu');39 44 add_event_handler('get_stuffs_modules', 'COA_register_stuffs_module'); 40 45 } … … 49 54 global $template, $page, $conf, $pwg_loaded_plugins; 50 55 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 { 55 58 if (isset($pwg_loaded_plugins['bbcode_bar']) AND !isset($_GET['comment_to_edit'])) 56 59 { … … 102 105 } 103 106 104 function COA_admin_menu($menu)105 {106 array_push($menu, array(107 'NAME' => 'Comments on Albums',108 'URL' => COA_ADMIN109 ));110 return $menu;111 }112 113 107 function COA_register_stuffs_module($modules) 114 108 { … … 124 118 } 125 119 126 127 120 ?> -
extensions/Comments_on_Albums/maintain.inc.php
r11267 r14528 2 2 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 3 3 4 // Default configuration5 define(6 'default_config',7 serialize(array(8 'icon_color' => 'outline_ff3363.png',9 'icon_color_over' => 'outline_ff7700.png',10 ))11 );12 13 // Installation14 4 function plugin_install() 15 5 { … … 29 19 ) DEFAULT CHARSET=utf8 30 20 ;"); 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 ;");40 21 } 41 22 42 // Uninstallation 23 function 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 43 33 function plugin_uninstall() 44 34 { … … 46 36 47 37 pwg_query("DROP TABLE `" . $prefixeTable . "comments_categories`;"); 48 pwg_query("DELETE FROM " . CONFIG_TABLE . " WHERE `param` = 'comments_on_albums';");49 38 } 50 39 ?> -
extensions/Comments_on_Albums/template/admin_comments.tpl
r11327 r14528 1 1 {* this is a copy of admin/theme/defaults/template/comments.tpl a bit modified *} 2 2 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} 4 jQuery(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'); 10 13 } 11 14 }); 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')); 15 40 }); 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; 26 43 }); 27 </script> 28 {/literal} 44 45 }); 46 {/literal}{/footer_script} 29 47 30 48 <div class="titrePage"> 31 <h2>{' Waiting'|@translate}</h2>49 <h2>{'Pending Comments'|@translate} [{'Albums'|@translate}]</h2> 32 50 </div> 33 51 34 <h3>{'User comments validation'|@translate}</h3> 52 {if !empty($comments) } 53 <form method="post" action="{$F_ACTION}" id="pendingComments"> 35 54 36 {if !empty($comments) } 37 <form method="post" action="{$F_ACTION}"> 38 39 <table width="99%"> 55 <table> 40 56 {foreach from=$comments item=comment name=comment} 41 57 <tr valign="top" class="{if $smarty.foreach.comment.index is odd}row2{else}row1{/if}"> … … 52 68 </tr> 53 69 {/foreach} 54 70 </table> 55 71 56 72 <p class="checkActions"> -
extensions/Comments_on_Albums/template/albums.tpl
r11267 r14528 1 1 {* 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\"> </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("↑"); 50 {else} 51 comments.addClass("commentshidden"); 52 comments_button.addClass("comments_toggle").addClass("comments_toggle_off"); 53 switcharrow.html("↓"); 54 {/if}{literal} 55 56 comments_button.click(function() { commentsToggle() }); 57 commentsswicther.click(function() { commentsToggle() }); 58 59 } 2 60 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"); 5 64 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("↑"); 69 } else { 70 comments.addClass("commentshidden").removeClass("commentsshown"); 71 comments_button.addClass("comments_toggle_on").removeClass("comments_toggle_on"); 72 switcharrow.html("↓"); 73 } 74 75 } 76 {/literal}{/footer_script} 77 {/if} 78 7 79 {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> 12 82 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> 18 114 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}32 115 </div> 33 116 {/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 *} 19 2 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> 22 15 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"> </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"> </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> 34 39 35 40 <form class="filter" action="{$F_ACTION}?display_mode=albums" method="get"> … … 38 43 <legend>{'Filter'|@translate}</legend> 39 44 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> 41 46 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> 43 48 44 49 <label> … … 95 100 {if isset($comments)} 96 101 <div id="comments"> 97 {include file='comment_list.tpl' }102 {include file='comment_list.tpl' comment_derivative_params=$derivative_params} 98 103 </div> 99 104 {/if} 100 105 101 106 </div> <!-- content --> 102 107 {if $themeconf.name|strstr:"stripped"}</div></div>{/if}
Note: See TracChangeset
for help on using the changeset viewer.