affichage commentaires de page
This commit is contained in:
parent
46dfc0f505
commit
f50689dd38
|
@ -1,7 +1,7 @@
|
||||||
<?php // Commentaires de page, fichier inclus dans showComment() ?>
|
<?php // Commentaires de page, fichier inclus dans showComment() ?>
|
||||||
|
|
||||||
<?php // Style lié au thème du site ?>
|
<?php // Style lié au thème du site ?>
|
||||||
<style>.msgs > hr { --hr_color : <?=$this->getData(['theme', 'block', 'borderColor'])?>; }</style>
|
<style>.msgs .block .dataNameDate { --dataNameDate_font : <?=$this->getData(['theme', 'text', 'font'])?>; }</style>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
// Lexique
|
// Lexique
|
||||||
|
@ -177,21 +177,14 @@ if ( NULL !== $dataPage && is_array($dataPage) && $dataPage !== [] ) {
|
||||||
// Liste des pages
|
// Liste des pages
|
||||||
$pagesComment = $pagination['pages'];
|
$pagesComment = $pagination['pages'];
|
||||||
// Inverse l'ordre du tableau
|
// Inverse l'ordre du tableau
|
||||||
$dataIds = array_reverse(array_keys($dataPage));
|
|
||||||
$dataPage = array_reverse($dataPage);
|
$dataPage = array_reverse($dataPage);
|
||||||
// Données en fonction de la pagination et suppression des adresses e-mail
|
// Données en fonction de la pagination et suppression des adresses e-mail
|
||||||
for($i = $pagination['first']; $i < $pagination['last']; $i++) {
|
for($i = $pagination['first']; $i < $pagination['last']; $i++) {
|
||||||
$content = '';
|
$content = '';
|
||||||
foreach($dataPage[$i] as $input => $value) {
|
$dataKeys = array_keys($dataPage[$i]);
|
||||||
if (!empty($value) && strpos($value, 'Д') === false) $content .= '<div class=\'clef\'>' . $input . '</div> : <div class=\'valeur\'>' . $value . '</div>';
|
$content .= '<div class="msgs"><div class="block"><div class="dataNameDate blockTitle">'. $dataPage[$i][$dataKeys[0]] . '<span>'. $text['core']['showComment'][12] .' </span>' . $dataPage[$i][$dataKeys[2]] .'</div>';
|
||||||
}
|
$content .= '<div class="dataComment">' . $dataPage[$i][$dataKeys[1]] . '</div></div></div><br>';
|
||||||
$horizontalRule = '';
|
$data[] = [$content];
|
||||||
if( $i < $pagination['last'] - 1) : $horizontalRule = '<hr>';
|
|
||||||
else : $horizontalRule = '<br>';
|
|
||||||
endif;
|
|
||||||
$data[] = [
|
|
||||||
$content.$horizontalRule
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -289,7 +282,7 @@ echo template::formOpenFile('commentPageFormForm', $action);
|
||||||
<?php
|
<?php
|
||||||
// Affichage des messages
|
// Affichage des messages
|
||||||
if( $data ){
|
if( $data ){
|
||||||
echo '<div id="commentAnchor" class="block msgs">';
|
echo '<div id="commentAnchor">';
|
||||||
foreach( $data as $key1=>$value1){
|
foreach( $data as $key1=>$value1){
|
||||||
if( is_array($value1)){
|
if( is_array($value1)){
|
||||||
foreach( $value1 as $key2=>$value2){
|
foreach( $value1 as $key2=>$value2){
|
||||||
|
|
|
@ -42,6 +42,7 @@ $text['core']['showComment'][8] = 'Send';
|
||||||
$text['core']['showComment'][9] = 'Name or nickname';
|
$text['core']['showComment'][9] = 'Name or nickname';
|
||||||
$text['core']['showComment'][10] = 'Comment';
|
$text['core']['showComment'][10] = 'Comment';
|
||||||
$text['core']['showComment'][11] = 'Page ';
|
$text['core']['showComment'][11] = 'Page ';
|
||||||
|
$text['core']['showComment'][12] = ' posted this comment on ';
|
||||||
// core.js.php
|
// core.js.php
|
||||||
$text['core_js'][0] = "Updating ?";
|
$text['core_js'][0] = "Updating ?";
|
||||||
// Select File
|
// Select File
|
||||||
|
|
|
@ -42,6 +42,7 @@ $text['core']['showComment'][8] = 'Enviar';
|
||||||
$text['core']['showComment'][9] = 'Nombre o apodo';
|
$text['core']['showComment'][9] = 'Nombre o apodo';
|
||||||
$text['core']['showComment'][10] = 'Comentario';
|
$text['core']['showComment'][10] = 'Comentario';
|
||||||
$text['core']['showComment'][11] = 'Página ';
|
$text['core']['showComment'][11] = 'Página ';
|
||||||
|
$text['core']['showComment'][12] = ' publicó este comentario en ';
|
||||||
// core.js.php
|
// core.js.php
|
||||||
$text['core_js'][0] = "¿Realizar actualización?";
|
$text['core_js'][0] = "¿Realizar actualización?";
|
||||||
// Seleccione Archivo
|
// Seleccione Archivo
|
||||||
|
|
|
@ -42,6 +42,8 @@ $text['core']['showComment'][8] = 'Envoyer';
|
||||||
$text['core']['showComment'][9] = 'Nom ou pseudo';
|
$text['core']['showComment'][9] = 'Nom ou pseudo';
|
||||||
$text['core']['showComment'][10] = 'Commentaire';
|
$text['core']['showComment'][10] = 'Commentaire';
|
||||||
$text['core']['showComment'][11] = 'Page ';
|
$text['core']['showComment'][11] = 'Page ';
|
||||||
|
$text['core']['showComment'][12] = ' a posté ce commentaire le ';
|
||||||
|
|
||||||
// core.js.php
|
// core.js.php
|
||||||
$text['core_js'][0] = "Effectuer la mise à jour ?";
|
$text['core_js'][0] = "Effectuer la mise à jour ?";
|
||||||
// Select File
|
// Select File
|
||||||
|
|
|
@ -32,39 +32,37 @@
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
border: 1px solid;
|
border: 1px solid;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*formulaire*/
|
/*formulaire*/
|
||||||
#commentPageFormForm {
|
#commentPageFormForm {
|
||||||
max-width: 85vw;
|
max-width: 85vw;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* messages */
|
/* messages */
|
||||||
.msgs {
|
.msgs {
|
||||||
max-width: 85vw;
|
max-width: 85vw;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
overflow: hidden;
|
|
||||||
box-sizing: border-box;
|
|
||||||
border: ridge rgba(0,0,0,0.3) 2px;
|
|
||||||
padding: 5px;
|
|
||||||
}
|
}
|
||||||
div.clef {
|
|
||||||
font-weight: 600;
|
.msgs .block .dataNameDate {
|
||||||
display: inline-block;
|
font-family: var(--dataNameDate_font );
|
||||||
margin: 3px 0 2px;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
div.valeur {
|
|
||||||
display: block;
|
.msgs .block .dataNameDate span{
|
||||||
padding: 3px;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
div.valeur > p {
|
|
||||||
|
.msgs .block .dataComment{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.msgs .block .dataComment > p {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.msgs > hr {
|
|
||||||
width: 50%;
|
|
||||||
border: ridge var(--hr_color) 2px;
|
|
||||||
margin: 25px auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
#commentPageFormForm .editorWysiwygComment {
|
#commentPageFormForm .editorWysiwygComment {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
|
Loading…
Reference in New Issue