mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 19:59:56 +03:00
removed unused get_html_tag_selection function + css rules
git-svn-id: http://piwigo.org/svn/trunk@28715 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
3c13387dfd
commit
cac256e388
2 changed files with 0 additions and 59 deletions
|
@ -231,54 +231,6 @@ function render_comment_content($content)
|
||||||
return $content;
|
return $content;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns an HTML list of tags. It can be a multi select field or a list of
|
|
||||||
* checkboxes.
|
|
||||||
*
|
|
||||||
* @param string HTML field name
|
|
||||||
* @param array selected tag ids
|
|
||||||
* @return array
|
|
||||||
*/
|
|
||||||
function get_html_tag_selection(
|
|
||||||
$tags,
|
|
||||||
$fieldname,
|
|
||||||
$selecteds = array(),
|
|
||||||
$forbidden_categories = null
|
|
||||||
)
|
|
||||||
{
|
|
||||||
global $conf;
|
|
||||||
|
|
||||||
if (count ($tags) == 0 )
|
|
||||||
{
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
$output = '<ul class="tagSelection">';
|
|
||||||
foreach ($tags as $tag)
|
|
||||||
{
|
|
||||||
$output.=
|
|
||||||
'<li>'
|
|
||||||
.'<label>'
|
|
||||||
.'<input type="checkbox" name="'.$fieldname.'[]"'
|
|
||||||
.' value="'.$tag['id'].'"'
|
|
||||||
;
|
|
||||||
|
|
||||||
if (in_array($tag['id'], $selecteds))
|
|
||||||
{
|
|
||||||
$output.= ' checked="checked"';
|
|
||||||
}
|
|
||||||
|
|
||||||
$output.=
|
|
||||||
'> '
|
|
||||||
.$tag['name']
|
|
||||||
.'</label>'
|
|
||||||
.'</li>'
|
|
||||||
."\n"
|
|
||||||
;
|
|
||||||
}
|
|
||||||
$output.= '</ul>';
|
|
||||||
|
|
||||||
return $output;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Callback used for sorting by name.
|
* Callback used for sorting by name.
|
||||||
|
|
|
@ -589,17 +589,6 @@ FIELDSET {
|
||||||
padding: 0 0.5em 0 0;
|
padding: 0 0.5em 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tagSelection {
|
|
||||||
margin: 1em 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tagSelection LI {
|
|
||||||
display:inline-block;
|
|
||||||
width: 150px;
|
|
||||||
overflow:hidden;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
#fullTagCloud {
|
#fullTagCloud {
|
||||||
font-size: 120%;
|
font-size: 120%;
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue