From c501688dbc98428635bdf569dc9c136e24fbd9a9 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Sat, 14 Jan 2012 22:29:10 +0000 Subject: feature:2549 Allow to disable comments for everybody git-svn-id: http://piwigo.org/svn/trunk@12887 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/themes/default/template/admin.tpl | 2 ++ admin/themes/default/template/cat_modify.tpl | 2 ++ admin/themes/default/template/configuration.tpl | 20 ++++++++++++++++++++ admin/themes/default/template/intro.tpl | 2 ++ admin/themes/default/template/profile_content.tpl | 6 ++++-- admin/themes/default/template/user_list.tpl | 2 ++ 6 files changed, 32 insertions(+), 2 deletions(-) (limited to 'admin/themes/default') diff --git a/admin/themes/default/template/admin.tpl b/admin/themes/default/template/admin.tpl index 5bc11c92a..393cf7157 100644 --- a/admin/themes/default/template/admin.tpl +++ b/admin/themes/default/template/admin.tpl @@ -74,7 +74,9 @@ jQuery(document).ready(function(){ldelim}
  • {'Thumbnails'|@translate}
  • {/if}
  • {'Maintenance'|@translate}
  • +{if isset($U_PENDING_COMMENTS)}
  • {'Pending Comments'|@translate}
  • +{/if}
  • {'Updates'|@translate}
  • diff --git a/admin/themes/default/template/cat_modify.tpl b/admin/themes/default/template/cat_modify.tpl index 23c68fe97..91b580998 100644 --- a/admin/themes/default/template/cat_modify.tpl +++ b/admin/themes/default/template/cat_modify.tpl @@ -82,12 +82,14 @@ {html_radios name='visible' values='true,false'|@explode output='No,Yes'|@explode|translate selected=$CAT_VISIBLE} + {if isset($CAT_COMMENTABLE)} {'Comments'|@translate} {html_radios name='commentable' values='false,true'|@explode output='No,Yes'|@explode|translate selected=$CAT_COMMENTABLE} + {/if} diff --git a/admin/themes/default/template/configuration.tpl b/admin/themes/default/template/configuration.tpl index 008dfe4e0..bc64a14ff 100644 --- a/admin/themes/default/template/configuration.tpl +++ b/admin/themes/default/template/configuration.tpl @@ -181,6 +181,15 @@ jQuery(document).ready(function () {
    + +
    +{footer_script}{literal} +$(document).ready(function(){ + $("#activate_comments").change(function(){ + if ($(this).attr('checked')) { + $("#comments_param_warp").css('display', ''); + } else { + $("#comments_param_warp").css('display', 'none'); + } + }); +}); +{/literal}{/footer_script} {/if} diff --git a/admin/themes/default/template/intro.tpl b/admin/themes/default/template/intro.tpl index 7afbd6ab4..679a3565f 100644 --- a/admin/themes/default/template/intro.tpl +++ b/admin/themes/default/template/intro.tpl @@ -72,12 +72,14 @@ jQuery().ready(function(){
  • {$DB_TAGS} ({$DB_IMAGE_TAG})
  • {$DB_USERS}
  • {$DB_GROUPS}
  • + {if isset($DB_COMMENTS)}
  • {$DB_COMMENTS} {if isset($unvalidated)} ({$unvalidated.INFO}) {/if}
  • + {/if}
  • {$DB_RATES}
  • diff --git a/admin/themes/default/template/profile_content.tpl b/admin/themes/default/template/profile_content.tpl index 24cf53abe..33727f7aa 100644 --- a/admin/themes/default/template/profile_content.tpl +++ b/admin/themes/default/template/profile_content.tpl @@ -47,7 +47,7 @@ -{if not $SPECIAL_USER} + {if not $SPECIAL_USER}
  • @@ -60,7 +60,7 @@ {html_options id=language name=language options=$language_options selected=$language_selection}
  • -{/if} + {/if}
  • @@ -71,10 +71,12 @@ {'Expand all albums'|@translate} {html_radios name='expand' options=$radio_options selected=$EXPAND}
  • + {if $ACTIVATE_COMMENTS}
  • {'Show number of comments'|@translate} {html_radios name='show_nb_comments' options=$radio_options selected=$NB_COMMENTS}
  • + {/if}
  • {'Show number of hits'|@translate} {html_radios name='show_nb_hits' options=$radio_options selected=$NB_HITS} diff --git a/admin/themes/default/template/user_list.tpl b/admin/themes/default/template/user_list.tpl index 4458f9792..5bb3f18ed 100644 --- a/admin/themes/default/template/user_list.tpl +++ b/admin/themes/default/template/user_list.tpl @@ -235,6 +235,7 @@ +{if $ACTIVATE_COMMENTS} {'Show number of comments'|@translate} @@ -244,6 +245,7 @@ +{/if} {'Show number of hits'|@translate} -- cgit v1.2.3