Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Corentin Bettiol
l3m-website
Commits
1b3c5f46
Commit
1b3c5f46
authored
Jan 18, 2022
by
Corentin Bettiol
💻
Browse files
MAINT: retrocompatibility for older posts
parent
544e8973
Changes
3
Hide whitespace changes
Inline
Side-by-side
site/view/public/blogPostView.php
View file @
1b3c5f46
...
...
@@ -46,10 +46,10 @@
<?php
// si on est sur un post de blog (et pas sur une page listant des posts de blog) on affiche l'article
if
(
isset
(
$_GET
[
'action'
])
&&
$_GET
[
'action'
]
==
'blog'
&&
!
isset
(
$_GET
[
'page'
]))
echo
$parsed
->
text
(
$blogpost
[
'content'
]);
echo
$parsed
->
text
(
html_entity_decode
(
$blogpost
[
'content'
])
)
;
// sinon si on est sur l'accueil ou sur une page listant des posts de blog on affiche le résumé
else
echo
$parsed
->
text
(
$blogpost
[
'shortContent'
]);
echo
$parsed
->
text
(
html_entity_decode
(
$blogpost
[
'shortContent'
])
)
;
?>
</section>
</article>
site/view/public/projectView.php
View file @
1b3c5f46
...
...
@@ -26,6 +26,6 @@
</p>
</section>
<?php
echo
$parsed
->
text
(
$project
[
'content'
]);
echo
$parsed
->
text
(
html_entity_decode
(
$project
[
'content'
])
)
;
?>
</article>
site/view/public/projectsView.php
View file @
1b3c5f46
...
...
@@ -28,7 +28,7 @@
</p>
</section>
<p>
<?php
echo
$parsed
->
text
(
$project
[
'shortContent'
]);
?>
<?php
echo
$parsed
->
text
(
html_entity_decode
(
$project
[
'shortContent'
])
)
;
?>
</p>
<p>
<span
class=
"postInfos"
><a
href=
"/project/
<?php
echo
$project
[
'slug'
];
?>
"
>
Lire la suite.
</a></span>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment