mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 03:55:18 +00:00
be verbose about what type of element (block, layout, webpage) is beeing installed
This commit is contained in:
parent
5e87bd8843
commit
5641d81f03
1 changed files with 2 additions and 1 deletions
|
@ -173,8 +173,9 @@ function bb_parse_app($match) {
|
|||
|
||||
function bb_parse_element($match) {
|
||||
$j = json_decode(base64url_decode($match[1]),true);
|
||||
print_r($j);
|
||||
if ($j) {
|
||||
$o = EOL . '<a href="#" onclick="importElement(\'' . $match[1] . '\'); return false;" >' . t('Install design element: ') . $j['pagetitle'] . '</a>' . EOL;
|
||||
$o = EOL . '<a href="#" onclick="importElement(\'' . $match[1] . '\'); return false;" >' . t('Install ' . $j['type'] . ' element: ') . $j['pagetitle'] . '</a>' . EOL;
|
||||
}
|
||||
|
||||
return $o;
|
||||
|
|
Loading…
Reference in a new issue