buf 1785 fixed: the number of related tags is no longer hard coded
git-svn-id: http://piwigo.org/svn/branches/2.1@6715 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
41757b9e1a
commit
a17353b7bb
2 changed files with 4 additions and 3 deletions
|
@ -631,8 +631,9 @@ $conf['full_tag_cloud_items_number'] = 200;
|
||||||
// cloud in the menubar. Only the most represented tags will be shown
|
// cloud in the menubar. Only the most represented tags will be shown
|
||||||
$conf['menubar_tag_cloud_items_number'] = 100;
|
$conf['menubar_tag_cloud_items_number'] = 100;
|
||||||
|
|
||||||
// content_tag_cloud_items_number: number of tags to show in the tag
|
// content_tag_cloud_items_number: number of related tags to show in the tag
|
||||||
// cloud on the content page. Only the most represented tags will be shown
|
// cloud on the content page, when the current section is not a set of
|
||||||
|
// tags. Only the most represented tags will be shown
|
||||||
$conf['content_tag_cloud_items_number'] = 12;
|
$conf['content_tag_cloud_items_number'] = 12;
|
||||||
|
|
||||||
// tags_levels: number of levels to use for display. Each level is bind to a
|
// tags_levels: number of levels to use for display. Each level is bind to a
|
||||||
|
|
|
@ -143,7 +143,7 @@ function initialize_menu()
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$selection = array_slice( $page['items'], $page['start'], $page['nb_image_page'] );
|
$selection = array_slice( $page['items'], $page['start'], $page['nb_image_page'] );
|
||||||
$tags = add_level_to_tags( get_common_tags($selection, 12) );
|
$tags = add_level_to_tags( get_common_tags($selection, $conf['content_tag_cloud_items_number']) );
|
||||||
foreach ($tags as $tag)
|
foreach ($tags as $tag)
|
||||||
{
|
{
|
||||||
$block->data[] =
|
$block->data[] =
|
||||||
|
|
Loading…
Add table
Reference in a new issue