Project-Id-Version: Trac 0.12
Report-Msgid-Bugs-To: trac-dev@googlegroups.com
POT-Creation-Date: 2008-01-30 09:20+0100
PO-Revision-Date: 2010-07-19 23:05+0200
Last-Translator: Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
Language-Team: en_US <trac-dev@googlegroups.com>
Plural-Forms: nplurals=2; plural=(n != 1)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Generated-By: Babel 0.9.6

Warning: Can't synchronize with repository "(default)" (Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? ). Look in the Trac log for more information.

Ticket #109: diff.media.ctp

File diff.media.ctp, 2.3 KB (added by remy, 10 years ago)
Line 
1--- app/views/explorer/media.ctp.org    2009-12-14 03:12:09.000000000 +0100
2+++ app/views/explorer/media.ctp        2010-06-07 23:30:12.000000000 +0200
3@@ -4,14 +4,6 @@
4   <link><?php echo Router::url('/', true); ?></link>
5   <description>Media RSS of phTagr (<?php echo Router::url('/', true); ?>)</description>
6 <?php $search->initialize(); ?>
7-  <atom:link rel="self" href="<?php echo Router::url($search->getUri(false, false, false, array('baseUri' => '/explorer/media')).'/media.rss', true); ?>" />
8-<?php if ($navigator->hasPrev()): ?>
9-  <atom:link rel="previous" href="<?php echo Router::url($search->getUri(false, array('page' => $search->getPage(1) - 1), false, array('baseUri' => '/explorer/media')).'/media.rss', true); ?>" />
10-<?php endif; ?>
11-<?php if ($navigator->hasNext()): ?>
12-  <atom:link rel="next" href="<?php echo Router::url($search->getUri(false, array('page' => $search->getPage(1) + 1), false, array('baseUri' => '/explorer/media')).'/media.rss', true); ?>" />
13-<?php Logger::debug($search->getUri(false, array('page' => ($search->getPage(1) - 1)), false, array('baseUri' => '/explorer/media'))); ?>
14-<?php endif; ?>
15 <?php
16   $keyParam = "";
17   if ($session->check('Authentication.key')) {
18@@ -23,6 +15,14 @@
19     $quality = 'high';
20   }
21 ?>
22+  <atom:link rel="self" href="<?php echo Router::url($search->getUri(false, false, false, array('baseUri' => '/explorer/media'.($quality == 'high' ? '/quality:high' : ''))).'/media.rss', true); ?>" />
23+<?php if ($navigator->hasPrev()): ?>
24+  <atom:link rel="previous" href="<?php echo Router::url($search->getUri(false, array('page' => $search->getPage(1) - 1), false, array('baseUri' => '/explorer/media'.($quality == 'high' ? '/quality:high' : ''))).'/media.rss', true); ?>" />
25+<?php endif; ?>
26+<?php if ($navigator->hasNext()): ?>
27+  <atom:link rel="next" href="<?php echo Router::url($search->getUri(false, array('page' => $search->getPage(1) + 1), false, array('baseUri' => '/explorer/media'.($quality == 'high' ? '/quality:high' : ''))).'/media.rss', true); ?>" />
28+<?php Logger::debug($search->getUri(false, array('page' => ($search->getPage(1) - 1)), false, array('baseUri' => '/explorer/media'.($quality == 'high' ? '/quality:high' : '')))); ?>
29+<?php endif; ?>
30 <?php foreach ($this->data as $media): ?>
31   <item>
32     <title><?php echo $media['Media']['name']." by ".$media['User']['username']; ?></title>