зеркало из https://github.com/mozilla/gecko-dev.git
Messed with paths, search boxes, etc. Nothing here is permanent.
This commit is contained in:
Родитель
7925482e40
Коммит
be846deeeb
|
@ -210,3 +210,50 @@
|
|||
cursor: help;
|
||||
border-bottom: 1px dotted;
|
||||
}
|
||||
|
||||
#search-block:before {
|
||||
line-height: 0.1;
|
||||
font-size: 1px;
|
||||
background: transparent url("../../img/key-point_tr.gif") no-repeat top right;
|
||||
margin: -10px -10px 0 -10px;
|
||||
height: 10px;
|
||||
display: block;
|
||||
border: none;
|
||||
content: url("../../img/key-point_tl.gif");
|
||||
}
|
||||
|
||||
#search-block{
|
||||
background: #EFF8CE url("../../img/key-point_back.gif") right repeat-y;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
#search-block label{
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#search-block select {
|
||||
width: 13em;
|
||||
}
|
||||
|
||||
#search-block input[type=text] {
|
||||
width: 9.2em;
|
||||
}
|
||||
|
||||
.right #search-block select {
|
||||
width: 20em;
|
||||
}
|
||||
|
||||
.right #search-block input[type=text] {
|
||||
width: 16.2em;
|
||||
}
|
||||
|
||||
#search-block:after {
|
||||
display: block;
|
||||
padding-top: 10px;
|
||||
line-height: 0.1;
|
||||
font-size: 1px;
|
||||
content: url("../../img/key-point_bl.gif");
|
||||
margin: -10px;
|
||||
height: 8px;
|
||||
background: transparent url("../../img/key-point_br.gif") scroll no-repeat bottom right ;
|
||||
}
|
||||
|
|
|
@ -156,7 +156,7 @@ class AddOn extends AMO_Object
|
|||
CommentNote IS NOT NULL
|
||||
ORDER BY
|
||||
CommentDate DESC
|
||||
LIMIT 10
|
||||
LIMIT 5
|
||||
", SQL_ALL, SQL_ASSOC);
|
||||
|
||||
$this->setVar('Comments',$this->db->record);
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
/**
|
||||
* Search page. All searches are filtered through this page.
|
||||
*
|
||||
* @package amo
|
||||
* @subpackage docs
|
||||
*/
|
||||
|
||||
$tpl->assign(
|
||||
array(
|
||||
'content' =>'search.tpl',
|
||||
'title' =>'Search',
|
||||
)
|
||||
);
|
||||
|
||||
$wrapper = 'inc/wrappers/nonav.tpl';
|
||||
?>
|
|
@ -11,7 +11,7 @@
|
|||
<link rel="stylesheet" type="text/css" href="{$config.webpath}/css/base/template.css" media="screen">
|
||||
<link rel="stylesheet" type="text/css" href="{$config.webpath}/css/cavendish/template.css" title="Cavendish" media="screen">
|
||||
<link rel="home" title="Home" href="https://addons.mozilla.org/">
|
||||
<link rel="alternate" type="application/rss+xml" title="New Firefox Extensions Additions" href="../rss/?app=firefox&type=E&list=newest">
|
||||
<link rel="alternate" type="application/rss+xml" title="New Firefox Extensions Additions" href="{$config.webpath}/rss/?app=firefox&type=E&list=newest">
|
||||
<link rel="icon" href="/favicon.ico" type="image/png">
|
||||
</head>
|
||||
|
||||
|
@ -29,41 +29,22 @@
|
|||
<li><a href="{$config.webpath}/" title="Addons Home">home</a></li>
|
||||
<li><a href="{$config.webpath}/faq.php" title="Frequently Asked Questions">FAQ</a></li>
|
||||
<li><a href="{$config.webpath}/developers/" title="Tools for Addons Developers">developers</a></li>
|
||||
<li>
|
||||
<form id="search" method="get" action="{$config.webpath}/quicksearch.php" title="Search Mozilla Update">
|
||||
<div>
|
||||
<label for="q" title="Search Mozilla Update">search:</label>
|
||||
<input type="text" id="q" name="q" accesskey="s" size="10">
|
||||
<select name="section" id="sectionsearch">
|
||||
<option value="A">Entire Site</option>
|
||||
|
||||
<option value="E">Extensions</option>
|
||||
<option value="T">Themes</option>
|
||||
{*
|
||||
<option value="P">Plugins</option>
|
||||
<option value="S">Search Engines</option>
|
||||
*}
|
||||
</select>
|
||||
<input type="submit" id="submit" value="Go">
|
||||
</div>
|
||||
</form>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- end key-title -->
|
||||
|
||||
<div id="key-menu">
|
||||
<dl id="menu-firefox">
|
||||
<dt><a href="./overview.php?app=Firefox">Firefox</a>:</dt>
|
||||
<dt><a href="{$config.webpath}/overview.php?app=Firefox">Firefox</a>:</dt>
|
||||
<dd><a href="{$config.webpath}/search.php?app=firefox&type=E" title="Get Extensions for the Firefox Browser">Extensions</a>, <a href="{$config.webpath}/search.php?app=firefox&type=T" title="Get Themes for the Firefox Browser">Themes</a>, <a href="https://pfs.mozilla.org/plugins/" title="Get Plugins for Firefox">Plugins</a></dd>
|
||||
|
||||
</dl>
|
||||
<dl id="menu-thunderbird">
|
||||
<dt><a href="./overview.php?app=Thunderbird">Thunderbird</a>:</dt>
|
||||
<dt><a href="{$config.webpath}/overview.php?app=Thunderbird">Thunderbird</a>:</dt>
|
||||
<dd><a href="{$config.webpath}/search.php?app=thunderbird&type=T" title="Get Extensions for Thunderbird Email">Extensions</a>, <a href="{$config.webpath}/search.php?app=thunderbird&type=T" title="Get Themes for Thunderbird Email">Themes</a></dd>
|
||||
</dl>
|
||||
<dl id="menu-mozillasuite">
|
||||
<dt><a href="./overview.php?app=Mozilla">Mozilla Suite</a>:</dt>
|
||||
<dt><a href="{$config.webpath}/overview.php?app=Mozilla">Mozilla Suite</a>:</dt>
|
||||
|
||||
<dd><a href="{$config.webpath}/search.php?app=mozilla&type=E" title="Get Extensions for the Mozilla Suite">Extensions</a>, <a href="{$config.webpath}/search.php?app=mozilla&type=T" title="Get Themes for the Mozilla Suite">Themes</a>, <a href="https://pfs.mozilla.org/plugins/" title="Get Plugins for Mozilla Suite">Plugins</a></dd>
|
||||
</dl>
|
||||
|
|
|
@ -5,3 +5,4 @@
|
|||
{/section}
|
||||
</ul>
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
|
||||
<div id="search-block">
|
||||
<form id="search" method="get" action="{$config.webpath}/search.php" title="Search Mozilla Update">
|
||||
<div>
|
||||
<label for="q" title="Search Mozilla Update">Search</label>
|
||||
<select name="section" id="sectionsearch">
|
||||
<option value="A">Entire Site</option>
|
||||
<option value="E">Extensions</option>
|
||||
<option value="T">Themes</option>
|
||||
</select>
|
||||
<input type="text" id="q" name="q" accesskey="s" size="10">
|
||||
<input type="submit" id="submit" value="Go">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -11,10 +11,12 @@
|
|||
|
||||
<div id="mBody">
|
||||
|
||||
|
||||
{* sidebar gets included if set *}
|
||||
{if $sidebar}
|
||||
<div id="side">
|
||||
{include file=$sidebar}
|
||||
{include file='inc/search-block.tpl'}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
|
|
|
@ -35,6 +35,9 @@ RealPlayer, and Java. Browse plug-ins for:
|
|||
<!-- end mainContent -->
|
||||
|
||||
<div id="side" class="right">
|
||||
|
||||
{include file='inc/search-block.tpl'}
|
||||
|
||||
<h2>Popular Extensions</h2>
|
||||
<ol class="popularlist">
|
||||
{section name=pe loop=$popularExtensions}
|
||||
|
|
|
@ -43,10 +43,11 @@
|
|||
|
||||
<div id="side" class="right">
|
||||
<h2>What is <kbd>addons.mozilla.org</kbd>?</h2>
|
||||
|
||||
<p><a href="./"><kbd>addons.mozilla.org</kbd></a> is the place to get updates and extras for
|
||||
your <a href="http://www.mozilla.org/">Mozilla</a> products.</p>
|
||||
|
||||
{include file='inc/search-block.tpl'}
|
||||
|
||||
<h2>What can I find here?</h2>
|
||||
<dl>
|
||||
<dt><a href="./search.php?app={$app}&type=E">Extensions</a></dt>
|
||||
|
|
|
@ -0,0 +1,54 @@
|
|||
|
||||
<h2>Find an Addon</h2>
|
||||
|
||||
<div class="key-point">
|
||||
<form action="{$smarty.server.PHP_SELF}" method="post">
|
||||
<fieldset>
|
||||
<legend>Addon {if $advanced}Advanced{/if} Search Options</legend>
|
||||
|
||||
<div>
|
||||
|
||||
<!-- JUST AN EXAMPLE FOR NOW -->
|
||||
<label for="app">App:</label>
|
||||
<select id="app" name="app">
|
||||
<option>Firefox</option>
|
||||
<option>Thunderbird</option>
|
||||
<option>Mozilla</option>
|
||||
</select>
|
||||
|
||||
<label for="type">Addon Type:</label>
|
||||
<select id="app" name="app">
|
||||
<option>Any</option>
|
||||
<option>Extension</option>
|
||||
<option>Theme</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label for="cat">Category: </label>
|
||||
<select id="cat" name="cat">
|
||||
<option>Tools</option>
|
||||
<option>Other Category</option>
|
||||
<option>Blah</option>
|
||||
</select>
|
||||
|
||||
<label for="sort">Sort by:</label>
|
||||
<select id="sort" name="sort">
|
||||
<option>Popularity</option>
|
||||
<option>User Rating</option>
|
||||
<option>Date Submitted</option>
|
||||
<option>Date Updated</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
</fieldset>
|
||||
|
||||
<input type="submit" value="Go">
|
||||
|
||||
</form>
|
||||
|
||||
<a href="./search.php?adv=1" class="right">Advanced Search</a>
|
||||
</div>
|
||||
|
||||
<p>This is just an example...</p>
|
||||
|
Загрузка…
Ссылка в новой задаче