Align metadata flow: data.txt-first admin, strict quote_da, teaser support, and modal ordering tweaks
This commit is contained in:
parent
752565a7a4
commit
78212227f3
4 changed files with 135 additions and 60 deletions
|
|
@ -155,10 +155,13 @@ if (is_file($gfile)) {
|
|||
|
||||
$description = '';
|
||||
$teaser = '';
|
||||
$quote_da = '';
|
||||
$tags = [];
|
||||
if (is_array($json)) {
|
||||
$description = isset($json['description']) ? (string)$json['description'] : '';
|
||||
$teaser = isset($json['teaser']) ? (string)$json['teaser'] : '';
|
||||
$quote_da = isset($json['quote_da']) ? (string)$json['quote_da'] : '';
|
||||
$quote_da = trim($quote_da, "\"“”");
|
||||
$tags = isset($json['tags']) && is_array($json['tags']) ? $json['tags'] : [];
|
||||
}
|
||||
|
||||
|
|
@ -166,6 +169,7 @@ if (is_file($gfile)) {
|
|||
'status' => 'ok',
|
||||
'description' => $description,
|
||||
'teaser' => $teaser,
|
||||
'quote_da' => $quote_da,
|
||||
'tags' => $tags,
|
||||
'raw_json' => $json_data, // Send original raw data back for reference
|
||||
'log' => $log,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue