|
172 | 172 | <i class="fa fa-chevron-left"></i> '.tr("Torna all'elenco").' |
173 | 173 | </a> |
174 | 174 |
|
175 | | - <div class="float-right d-none d-sm-inline"> |
| 175 | + <div class="float-right d-none d-sm-inline">'; |
| 176 | + |
| 177 | + // Pulsanti personalizzati |
| 178 | + $buttons = $structure->filepath('buttons.php'); |
| 179 | + |
| 180 | + if (!empty($buttons)) { |
| 181 | + include $buttons; |
| 182 | + } |
| 183 | + |
| 184 | + echo ' |
176 | 185 | {( "name": "button", "type": "print", "id_module": "'.$id_module.'", "id_plugin": "'.$id_plugin.'", "id_record": "'.$id_record.'" )} |
177 | 186 |
|
178 | 187 | {( "name": "button", "type": "email", "id_module": "'.$id_module.'", "id_plugin": "'.$id_plugin.'", "id_record": "'.$id_record.'" )}'; |
|
225 | 234 | <div class="clearfix"></div> |
226 | 235 | <br>'; |
227 | 236 |
|
228 | | - // Pulsanti personalizzati |
229 | | - $buttons = $structure->filepath('buttons.php'); |
230 | | - if (!empty($buttons)) { |
231 | | - ob_start(); |
232 | | - include $buttons; |
233 | | - $buttons = ob_get_clean(); |
| 237 | + // Eventuale header personalizzato |
| 238 | + $module_header = $structure->filepath('header.php'); |
| 239 | + $module_header_html = ''; |
234 | 240 |
|
235 | | - echo ' |
236 | | - <div class="float-right d-none d-sm-inline" id="pulsanti-modulo"> |
237 | | - '.$buttons.' |
238 | | - </div> |
239 | | -
|
240 | | - <div class="clearfix"></div> |
241 | | - <br>'; |
242 | | - // Eventuale header personalizzato |
243 | | - $module_header = $structure->filepath('header.php'); |
244 | | - $module_header_html = ''; |
245 | | - |
246 | | - if (!empty($module_header)) { |
247 | | - ob_start(); |
248 | | - include $module_header; |
249 | | - $module_header_html = ob_get_clean(); |
250 | | - } |
| 241 | + if (!empty($module_header)) { |
| 242 | + ob_start(); |
| 243 | + include $module_header; |
| 244 | + $module_header_html = ob_get_clean(); |
| 245 | + } |
251 | 246 |
|
252 | | - // Eventuale header personalizzato |
253 | | - if ($module_header_html) { |
254 | | - echo '<div class="module-header">'; |
255 | | - echo $module_header_html; |
256 | | - echo '</div>'; |
257 | | - } |
| 247 | + // Eventuale header personalizzato |
| 248 | + if ($module_header_html) { |
| 249 | + echo '<div class="module-header">'; |
| 250 | + echo $module_header_html; |
| 251 | + echo '</div>'; |
258 | 252 | } |
259 | 253 |
|
260 | 254 | // Contenuti del modulo |
|
0 commit comments