Logo
Explore Help
Sign In
stian/gallery3
1
0
Fork 0
You've already forked gallery3
mirror of https://github.com/Pathduck/gallery3.git synced 2026-05-21 03:49:21 -04:00
Code Issues Actions Packages Projects Releases Wiki Activity
Files
ecdfd1590d4eaa300c7e3ee694e2de23c06364de
gallery3/modules/comment/views/comments.html.php

15 lines
364 B
PHP
Raw Normal View History

Change the preamble for views in two ways: 1) drop unnecessary semicolon 2) start with <?php for extra security in the case that the server itself doesn't have short_tags enabled (the app won't work, but we need to make sure that we're still secure)
2009-01-01 00:23:29 +00:00
<?php defined("SYSPATH") or die("No direct script access.") ?>
Gut the comment module and simplify it. Stop trying to support Atom and XML for now, we have no driver for those technologies so anything we implement is not going to be sufficiently tested and therefore it'll be broken. Change all comment functions to return JSON and update the JS to deal purely with JSON. This is our new protocol for talking to the browser and it should be flexible and portable. Create comments.html.php. This duplicates comment.html.php, but will be more efficient for rendering comments since we won't be creating a new View for every comment we render.
2008-12-25 00:47:40 +00:00
<ul>
<? foreach ($comments as $comment): ?>
<li id="gComment-<?= $comment->id; ?>">
<p>
<a href="#" class="gAuthor"><?= $comment->author ?></a>
<?= date("Y-M-d H:i:s", $comment->created) ?>
</p>
<div>
<?= $comment->text ?>
</div>
</li>
<? endforeach ?>
</ul>
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 73ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API