diff options
author | rvelices <rv-github@modusoptimus.com> | 2014-06-18 20:39:25 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2014-06-18 20:39:25 +0000 |
commit | cac256e388a13e791cbc110d878aa26ed7664145 (patch) | |
tree | 7ada275f0b960a53e0b5842ec5bb713b78ee4fbd | |
parent | 3c13387dfd965afe5c3b2d9bd0e31303599d8784 (diff) |
removed unused get_html_tag_selection function + css rules
git-svn-id: http://piwigo.org/svn/trunk@28715 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r-- | include/functions_html.inc.php | 48 | ||||
-rw-r--r-- | themes/default/theme.css | 11 |
2 files changed, 0 insertions, 59 deletions
diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php index 5827f06a1..8668e68ad 100644 --- a/include/functions_html.inc.php +++ b/include/functions_html.inc.php @@ -231,54 +231,6 @@ function render_comment_content($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. diff --git a/themes/default/theme.css b/themes/default/theme.css index ab298ecb3..99e586b10 100644 --- a/themes/default/theme.css +++ b/themes/default/theme.css @@ -589,17 +589,6 @@ FIELDSET { padding: 0 0.5em 0 0; } -.tagSelection { - margin: 1em 0 !important; -} - -.tagSelection LI { - display:inline-block; - width: 150px; - overflow:hidden; - white-space: nowrap; -} - #fullTagCloud { font-size: 120%; text-align: justify; |