Skip to content

Commit

Permalink
Update layout
Browse files Browse the repository at this point in the history
  • Loading branch information
PrestaEdit committed Sep 13, 2024
1 parent dfababb commit 3ace8e9
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
19 changes: 17 additions & 2 deletions extensions/Cecil/Renderer/Extension/MyExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,22 @@ public function formatTypography($content)
'/<h5/',
'/<h6/',
'/<p /',
//'/<p>/',
'/<ul>/',
'/PrestaFlow/',
'#<aside class="note note-tip">([a-zA-Z0-9_\-.,;!=\r\n": <\/>]*)</aside>#',
'#<aside class="note note-warning">([a-zA-Z0-9_\-.,;!=\r\n": <\/>]*)</aside>#'
'#<aside class="note note-warning">([a-zA-Z0-9_\-.,;!=\r\n": <\/>]*)</aside>#',
'#<aside class="note note-danger">([a-zA-Z0-9_\-.,;!=\r\n": <\/>]*)</aside>#'
];
$replacements = [
'<h1 class="text-3xl font-bold dark:text-white pl-4"',
'<h2 class="text-2xl font-bold dark:text-white pl-4 underline underline-offset-4 decoration-2 decoration-sky-500"',
'<h2 class="text-2xl font-bold dark:text-white pl-4 underline underline-offset-4 decoration-2 decoration-sky-500 p-2"',
'<h3 class="text-xl font-bold dark:text-white pl-6"',
'<h4 class="text-lg font-bold dark:text-white pl-8"',
'<h5 class="text-base font-bold dark:text-white pl-10"',
'<h6 class="text-base font-bold dark:text-white pl-12"',
'<p class="text-justify text-base text-gray-800 dark:text-gray-200 p-2"',
//'<p class="text-justify text-base text-gray-800 dark:text-gray-200 p-2">',
'<ul class="marker:text-teal-600 list-disc ps-5 space-y-2 text-sm text-gray-600 dark:text-neutral-400">',
'<span class="bg-clip-text bg-gradient-to-tl from-blue-400 to-teal-600 font-semibold text-transparent">PrestaFlow</span>',
'<div class="my-4 w-full bg-white border border-gray-200 rounded-xl shadow-lg dark:bg-gray-800 dark:border-gray-700" role="alert">
Expand All @@ -51,6 +54,18 @@ public function formatTypography($content)
</div>
</div>
</div>',
'<div class="my-4 w-full bg-white border border-gray-200 rounded-xl shadow-lg dark:bg-gray-800 dark:border-gray-700" role="alert">
<div class="flex p-4">
<div class="flex-shrink-0">
<svg class="flex-shrink-0 size-4 text-orange-500 mt-0.5" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
<path d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"></path>
</svg>
</div>
<div class="note ms-3 text-sm text-gray-700 dark:text-gray-400">
$1
</div>
</div>
</div>',
'<div class="my-4 w-full bg-white border border-gray-200 rounded-xl shadow-lg dark:bg-gray-800 dark:border-gray-700" role="alert">
<div class="flex p-4">
<div class="flex-shrink-0">
Expand Down
4 changes: 4 additions & 0 deletions pages/docs/PHP Library/1-Get Started.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
:::warning
Document in **progress**.
:::

## Title 3.1

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Expand Down
2 changes: 1 addition & 1 deletion pages/docs/PHP Library/2-Console.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Document in **progress**.

Inside the composer.json :

```
```javascript
"scripts": {
"tests": "./vendor/prestaflow/php-library/bin/prestaflow run ./Tests"
},
Expand Down

0 comments on commit 3ace8e9

Please sign in to comment.