$titleProperty = $song->getProprety('Titre');
/** @var Number $orderProperty */
$orderProperty = $song->getProprety('Ordre');
- /** @var RichTextProperty $lyricsProperty */
- $lyricsProperty = $song->getProprety('Paroles');
+ /** @var RichTextProperty $notesProperty */
+ $notesProperty = $song->getProprety('Notes générales');
/** @var \Notion\Pages\Properties\Files $filesProperty */
$filesProperty = $song->getProprety('Files & media');
$s['id'] = $song->id;
$s['order'] = (int)$orderProperty->number;
$s['title'] = $titleProperty->toString();
- $s['lyrics'] = self::_blockToHtml($lyricsProperty);
- $s['notes'] = $pageContents;
+ $s['lyrics'] = $pageContents;
+ $s['notes'] = self::_blockToHtml($notesProperty);
$s['notion_url'] = $song->url;
$res .= self::_richTextToHtml($rt);
}
$res = $start . $res . $end;
- return str_replace('</h3><br />', '</h3>', $res);
+ $res = str_replace('</h3><br />', '</h3>', $res);
+ $res = str_replace('<blockquote><br />', '<blockquote>', $res);
+ return $res;
}
/**
$e = explode('.', $f);
array_pop($e);
$f = implode('.', $e);
+ $f = rawurldecode($f);
return str_replace('_', ' ', $f);
}
font-family: 'Roboto', sans-serif
font-weight: 400
font-size: 16px
- opacity: 0
+
transition: opacity 250ms
touch-action: pan-y !important
border-bottom: 1px solid currentColor
padding-bottom: 20px
+ p
+ margin: 5px 0
+
&.notes
font-family: "Dancing Script", cursive !important
padding-top: 20px
blockquote
border-left: 5px solid var(--theme-color)
- padding-left: 20px
+ padding: 5px 0 5px 20px
opacity: 0.6
+ margin: 0 0
.lyrics