Révision 7e72b748
Ajouté par Assos Assos il y a plus de 6 ans
drupal7/sites/all/modules/ctools/includes/dropbutton.theme.inc | ||
---|---|---|
75 | 75 |
if (!empty($vars['links'])) { |
76 | 76 |
$is_drop_button = (count($vars['links']) > 1); |
77 | 77 |
|
78 |
// Add needed files |
|
78 |
// Add needed files.
|
|
79 | 79 |
if ($is_drop_button) { |
80 | 80 |
ctools_add_js('dropbutton'); |
81 | 81 |
ctools_add_css('dropbutton'); |
... | ... | |
86 | 86 |
static $id = 0; |
87 | 87 |
$id++; |
88 | 88 |
|
89 |
// Wrapping div |
|
89 |
// Wrapping div.
|
|
90 | 90 |
$class = 'ctools-no-js'; |
91 | 91 |
$class .= ($is_drop_button) ? ' ctools-dropbutton' : ''; |
92 | 92 |
$class .= ' ctools-button'; |
... | ... | |
98 | 98 |
|
99 | 99 |
$output .= '<div class="' . $class . '" id="ctools-button-' . $id . '">'; |
100 | 100 |
|
101 |
// Add a twisty if this is a dropbutton |
|
101 |
// Add a twisty if this is a dropbutton.
|
|
102 | 102 |
if ($is_drop_button) { |
103 | 103 |
$vars['title'] = ($vars['title'] ? check_plain($vars['title']) : t('open')); |
104 | 104 |
|
... | ... | |
109 | 109 |
else { |
110 | 110 |
$output .= '<a href="#" class="ctools-twisty ctools-text">' . $vars['title'] . '</a>'; |
111 | 111 |
} |
112 |
$output .= '</div>'; // ctools-link |
|
112 |
// ctools-link. |
|
113 |
$output .= '</div>'; |
|
113 | 114 |
} |
114 | 115 |
|
115 |
// The button content |
|
116 |
// The button content.
|
|
116 | 117 |
$output .= '<div class="ctools-content">'; |
117 | 118 |
|
118 | 119 |
// Check for attributes. theme_links expects an array(). |
Formats disponibles : Unified diff
Weekly update of contrib modules