diff --git a/views/css/d.poi.css b/views/css/d.poi.css index d9c78a8..1b03f18 100755 --- a/views/css/d.poi.css +++ b/views/css/d.poi.css @@ -11,6 +11,11 @@ html, body { min-height: 0; top: 65%; z-index: 10; + pointer-events: none; +} + +#sticky * { + pointer-events: auto; } @keyframes fadeinfadeout { @@ -38,6 +43,95 @@ html, body { top: 0; } +section.archive > * { + opacity: 0.5; +} + +/* Comments of a poi */ + + +#new_comment { + clear: both; + margin: 30px auto 0 auto; + width: 90%; + background: #efefef; + border: 1px solid #ccc; + border-bottom: 3px solid #ccc; +} +#new_comment_label { + background: #ccc; + padding: 15px 10px; + cursor: pointer; + font-weight: 500; + font-size: 1.1em; +} +#new_comment_label p { + margin: 0; +} +#new_comment_label input { + display: none; + margin: -2px; + float: right; + padding: 5px 10px; + position: relative; + top: -7px; + width: 140px; +} +#new_comment_form { + display: none; +} +#new_comment_form textarea { + margin: 0; + border: 0; +} +#new_comment_label.sent { + cursor: default; +} + +section article { + margin: 30px auto 0 auto; + width: 90%; + background: #efefef; + border: 1px solid #ccc; + border-bottom: 2px solid #ccc; + border-bottom-right-radius: 5px; + border-bottom-left-radius: 5px; +} +section .comment_title { + background: #ccc; + padding: 5px 10px; +} + +section .delete_link { + font-variant: small-caps; + font-weight: 500; + padding: 4px 0; + float: right; +} + +section .icon { + border: 1px solid #999; + border-radius: 3px; + margin: 0 3px 0 3px; + padding: 4px 0; + line-height: 20px; + text-align: center; + width: 28px; + background: #ccc; + vertical-align: middle; +} + +section .icon.avatar { + padding: 0; + height: 28px; +} +section .comment_content { + padding: 5px 10px; +} +section article.comment_archive { + opacity: 0.5; +} + /*********************************/ /** Editor page **/ /*********************************/ @@ -206,6 +300,8 @@ form.form input[type="checkbox"]:checked + span:before { Controls of the map *****************************************/ + + /* General */ .leaflet-control-container { diff --git a/views/d.poi.edit.html b/views/d.poi.edit.html index c1904be..f535e58 100755 --- a/views/d.poi.edit.html +++ b/views/d.poi.edit.html @@ -95,10 +95,10 @@ function updateForm(type) { case 'b': var cls = 'intermediate'; var val = 1; - if (existing === 0 || existing === "0") { + if (existing == 0) { cls = 'uncheck'; val = 0; - } else if (existing === 2 || existing === "2") { + } else if (existing == 2) { cls = 'check'; val = 2; } @@ -121,7 +121,8 @@ function updateForm(type) { case 't': html_form += - ' + + + number > 0) { ?>
objs as $comment) { ?> -
-
- author_obj->name?> - creation_date?> +
is_archive == 't' || $comment->is_public == 'f') echo 'class="comment_archive" '; ?>> +
- rankIsHigher("moderator") || $user->id == $comment->author) { ?> - is_public == 't') { ?> - Supprimer - - Restaurer - - -
+ author_obj->is_avatar_present == 't') { ?> + Avatar + + + + + rankIsHigher("blocked")) { ?> + + author_obj->name?> + + + author_obj->name?> + + + le datetime_format, date_create($comment->update_date, new DateTimeZone("UTC"))) ?> + + rankIsHigher("moderator") || $user->id == $comment->author) && $comment->is_public == 't') { ?> + + + Effacer le commentaire + + + + + rankIsHigher("moderator") || $user->id == $comment->author) && $comment->is_public == 'f') { ?> + + + Restaurer le commentaire + + + + +
+ +
+ comment_html?> +
+ -
- comment_html?> -
- - +

Aucun commentaire pour le moment.

- - rankIsHigher("registered")) { ?> -
-

Ajouter un commentaire

- - -
- -

Connectez-vous pour ajouter un commentaire.

- @@ -218,6 +248,24 @@ var root = ""; +rankIsHigher("premium")) { ?> + + + +rankIsHigher("registered") && $poi->is_archive == "f" && $poi->is_public == "t") { ?> + + +