diff options
| author | 2024-06-06 02:44:38 +0800 | |
|---|---|---|
| committer | 2024-06-05 20:44:38 +0200 | |
| commit | 2ed58f814eab9c3bbdada6b8e2ebfccfc9395894 (patch) | |
| tree | e949b1cce6842490eca9c5490ead7903ca7bfb33 /app/views | |
| parent | e17c2c447906deb471e25cdc889b9f74e1d715d2 (diff) | |
add image and description to user query share (#6541)
* add description to user queries and rss feed
* add image url to user queries and rss feed
* Fix i18n
* remove itunes image tag and xml definition
---------
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/helpers/configure/query.phtml | 8 | ||||
| -rw-r--r-- | app/views/index/rss.phtml | 7 |
2 files changed, 14 insertions, 1 deletions
diff --git a/app/views/helpers/configure/query.phtml b/app/views/helpers/configure/query.phtml index 33122f257..d23a5adfb 100644 --- a/app/views/helpers/configure/query.phtml +++ b/app/views/helpers/configure/query.phtml @@ -20,6 +20,14 @@ <input type="text" class="w100" name="name" id="name" value="<?= $this->query->getName() ?>" /> <input type="hidden" name="query[token]" id="query_token" value="<?= $this->query->getToken() ?>" /> </div> + <label class="group-name" for="description"><?= _t('conf.query.description') ?></label> + <div class="group-controls"> + <input type="text" class="w100" name="query[description]" id="description" value="<?= $this->query->getDescription() ?>" /> + </div> + <label class="group-name" for="imageUrl"><?= _t('conf.query.image_url') ?></label> + <div class="group-controls"> + <input type="text" class="w100" name="query[imageUrl]" id="imageUrl" value="<?= $this->query->getImageUrl() ?>" /> + </div> </div> <fieldset> diff --git a/app/views/index/rss.phtml b/app/views/index/rss.phtml index c811a0354..d37701bbd 100644 --- a/app/views/index/rss.phtml +++ b/app/views/index/rss.phtml @@ -9,10 +9,15 @@ <channel> <title><?= $this->rss_title ?></title> <link><?= $this->html_url ?></link> - <description><?= _t('index.feed.rss_of', $this->rss_title) ?></description> + <description><?= $this->description ?></description> <pubDate><?= date('D, d M Y H:i:s O') ?></pubDate> <lastBuildDate><?= gmdate('D, d M Y H:i:s') ?> GMT</lastBuildDate> <atom:link href="<?= $this->rss_url ?>" rel="self" type="application/rss+xml" /> + <image> + <url><?= $this->image_url ?></url> + <title><?= $this->rss_title ?></title> + <link><?= $this->html_url ?></link> + </image> <?php foreach ($this->entries as $item) { if (!$this->internal_rendering) { |
