admin/myblocksadmin.php 1 location
|
@@ 221-230 (lines=10) @@
|
218 |
|
$can_clone = true; |
219 |
|
} else { |
220 |
|
$can_clone = false; |
221 |
|
foreach ($block_configs as $bconf) { |
222 |
|
if ($block_arr[$i]->getVar('show_func') == $bconf['show_func'] |
223 |
|
&& $block_arr[$i]->getVar('func_file') == $bconf['file'] |
224 |
|
&& (empty($bconf['template']) || $block_arr[$i]->getVar('template') == $bconf['template']) |
225 |
|
) { |
226 |
|
if (!empty($bconf['can_clone'])) { |
227 |
|
$can_clone = true; |
228 |
|
} |
229 |
|
} |
230 |
|
} |
231 |
|
} |
232 |
|
if ($can_clone) { |
233 |
|
$clone_link = "<br><a href='admin.php?fct=blocksadmin&op=clone&bid=$bid'>" . _CLONE . '</a>'; |
admin/myblocksadmin2.php 1 location
|
@@ 283-291 (lines=9) @@
|
280 |
|
// list block classes for add (not instances) |
281 |
|
foreach ($block_arr as $bid => $block) { |
282 |
|
$description4show = ''; |
283 |
|
foreach ($block_configs as $bconf) { |
284 |
|
if ($block['show_func'] == $bconf['show_func'] && $block['func_file'] == $bconf['file'] |
285 |
|
&& (empty($bconf['template']) || $block['template'] == $bconf['template']) |
286 |
|
) { |
287 |
|
if (!empty($bconf['description'])) { |
288 |
|
$description4show = $myts->htmlSpecialChars($bconf['description']); |
289 |
|
} |
290 |
|
} |
291 |
|
} |
292 |
|
|
293 |
|
echo " |
294 |
|
<tr> |