зеркало из https://github.com/mozilla/pjs.git
Progress with RSS, fixes for wrappers, comment styles, navigation, etc.
This commit is contained in:
Родитель
c7023ec57f
Коммит
16669e4ae1
|
@ -253,21 +253,19 @@
|
|||
padding: 0;
|
||||
}
|
||||
|
||||
#opinions li {
|
||||
border-top: 1px solid #eee;
|
||||
padding: 1em 0;
|
||||
}
|
||||
|
||||
#opinions h4 {
|
||||
|
||||
border-top: 1px solid #999;
|
||||
clear: right;
|
||||
|
||||
margin: 0;
|
||||
|
||||
padding: .5em 0 0 0;
|
||||
|
||||
margin: 0;
|
||||
padding: .5em 0 0 0;
|
||||
}
|
||||
|
||||
.opinions-info {
|
||||
|
||||
color: #666;
|
||||
color: #666;
|
||||
margin: 0;
|
||||
padding: 0 0 .5em 0;
|
||||
|
||||
|
@ -283,8 +281,7 @@
|
|||
}
|
||||
|
||||
.opinions-text {
|
||||
|
||||
margin: .8em 0 0 0;
|
||||
margin: .8em 0 0 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
|
@ -301,7 +298,6 @@
|
|||
|
||||
}
|
||||
|
||||
|
||||
.opinions-caption {
|
||||
display: block;
|
||||
font-size: x-small;
|
||||
|
@ -311,21 +307,16 @@
|
|||
|
||||
}
|
||||
|
||||
|
||||
.opinions-rating {
|
||||
|
||||
margin: 0;
|
||||
margin: 0;
|
||||
padding: .5em 0;
|
||||
}
|
||||
|
||||
.opinions-helpful {
|
||||
|
||||
font-style: italic;
|
||||
|
||||
border: 1px dashed #eee;
|
||||
font-style: italic;
|
||||
border: 1px dashed #eee;
|
||||
padding: .2em;
|
||||
margin: .7em 0;
|
||||
|
||||
}
|
||||
|
||||
.tooltip {
|
||||
|
|
|
@ -5,4 +5,27 @@
|
|||
* @package amo
|
||||
* @subpackage docs
|
||||
*/
|
||||
|
||||
/**
|
||||
* Pull our input params.
|
||||
*/
|
||||
|
||||
/**
|
||||
* CHECK CACHE
|
||||
*
|
||||
* Check to see if we already have a matching cache_id.
|
||||
* If it exists, we can pull from it and exit; and avoid recompiling.
|
||||
*/
|
||||
$tpl = new AMO_Smarty();
|
||||
|
||||
// Set our cache timeout to 1 hour.
|
||||
$tpl->caching = true;
|
||||
$tpl->cache_timeout = 3600;
|
||||
|
||||
// Determine our cache_id based on the RSS feed's arguments.
|
||||
|
||||
if ($tpl->is_cached('rss.tpl',$cache_id)) {
|
||||
$tpl->display('rss.tpl',$cache_id);
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -9,7 +9,7 @@ released on {$addon->VersionDateAdded|date_format}
|
|||
<ul id="opinions">
|
||||
{section name=comments loop=$addon->Comments max=10}
|
||||
<li>
|
||||
<div class="opinions-vote">{$addon->Comments[comments].CommentVote}<span class="opinions-caption">out of 10</span></div>
|
||||
<div class="opinions-vote">{$addon->Comments[comments].CommentVote}<span class="opinions-caption">out of 5</span></div>
|
||||
<h4 class="opinions-title">{$addon->Comments[comments].CommentTitle}</h4>
|
||||
<p class="opinions-info">by {$addon->Comments[comments].CommentName}, {$addon->Comments[comments].CommentDate|date_format}</p>
|
||||
<p class="opinions-text">{$addon->Comments[comments].CommentNote}</p>
|
||||
|
|
|
@ -4,14 +4,15 @@
|
|||
<ul>
|
||||
<li><a href="./addon.php?id={$addon->ID}">Overview</a></li>
|
||||
{if $addon->PreviewID}
|
||||
<li><a href="./previews.php?id={$addon->ID}">Previews & Screenshots</a></li>
|
||||
<li><a href="./previews.php?id={$addon->ID}">Screenshots</a></li>
|
||||
{/if}
|
||||
<li><a href="./comments.php?id={$addon->ID}">Comments</a></li>
|
||||
<li><a href="./history.php?id={$addon->ID}">Version History</a></li>
|
||||
<li><a href="./addcomment.php?id={$addon->ID}">Add a Comment</a></li>
|
||||
<li><a href="./author.php?id={$addon->UserID}">About the Author</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><span>Find similar Addons...</span>
|
||||
<li><span>Find Similar Add-ons</span>
|
||||
<ul>
|
||||
{section name=cats loop=$addon->AddonCats}
|
||||
<li><a href="./search.php?cat={$addon->AddonCats[cats].CategoryID}" title="See other Addons in this category.">{$addon->AddonCats[cats].CatName}</a></li>
|
||||
|
@ -19,10 +20,5 @@
|
|||
<li><a href="./search.php?app={$addon->AppName}">Other {$addon->AppName} Addons</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><span>More about the author...</span>
|
||||
<ul>
|
||||
<li><a href="./author.php?id={$addon->UserID}">{$addon->UserName}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
<ul id="nav">
|
||||
<li><span>Addons by this author...</span>
|
||||
<li><span>Add-ons by {$user->UserName}</span>
|
||||
<ul>
|
||||
{section name=addons loop=$user->AddOns}
|
||||
<li><a href="./addon.php?id={$user->AddOns[addons].ID}" title="See other Addons in this category.">{$user->AddOns[addons].Name}</a></li>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<h2><strong>{$addon->Name}</strong> » Previews & Screenshots</h2>
|
||||
<h2><strong>{$addon->Name}</strong> » Screenshots</h2>
|
||||
<p class="first">
|
||||
<strong><a href="./addon.php?id={$addon->ID}">{$addon->Name} {$addon->Version}</a></strong>,
|
||||
by <a href="./author.php?id={$addon->UserID}">{$addon->UserName}</a>,
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
<rss version="2.0">
|
||||
<channel>
|
||||
<title>{$listname} :: Mozilla Addons</title>
|
||||
<link>https://{$config.host}/{$config.webpath}</link>
|
||||
<description>Mozilla Addons is the place to get extensions and themes for your Mozilla applications.</description>
|
||||
<language>en-US</language>
|
||||
<copyright>{$smarty.now|date_format:%Y} The Mozilla Foundation</copyright>
|
||||
<lastBuildDate>{$smarty.now|date_format}</lastBuildDate>
|
||||
<ttl>120</ttl>
|
||||
<image>
|
||||
<title>Mozilla Addons</title>
|
||||
<link>https://{$config.host}/{$config.webpath}</link>
|
||||
<url>http://mozilla.org/favicon.ico</url>
|
||||
<width>16</width>
|
||||
<height>16</height>
|
||||
</image>
|
||||
|
||||
{foreach item=row}
|
||||
<item>
|
||||
<pubDate>{$row.dateupdated}</pubDate>
|
||||
<title>{$row.title} {$row.version} for {$app} </title>
|
||||
<link>https://{$config.host}/{$config.webpath}/addon.php?id={$row.id}</link>
|
||||
<description>{$row.description|escape:html}</description>
|
||||
</item>
|
||||
{/foreach}
|
||||
|
||||
</channel>
|
||||
</rss>
|
|
@ -1,3 +1,4 @@
|
|||
<div id="mBody">
|
||||
|
||||
<h1 class="first">Search Engines</h1>
|
||||
<p>We've put a few popular search sites in the Search Bar in the upper-right corner of Firefox. If you'd like to add more, there are hundreds to choose from. Click on a Search Engine to add it to your Firefox Search Bar:</p>
|
||||
|
@ -54,3 +55,4 @@
|
|||
|
||||
<p>Special thanks to the Mycroft Project for their work on Firefox Search Engines.</p>
|
||||
|
||||
</div>
|
||||
|
|
Загрузка…
Ссылка в новой задаче