|
Revision 2, 1.0 kB
(checked in by fabien, 4 years ago)
|
initial import
|
- Property svn:mime-type set to
text/x-php
- Property svn:eol-style set to
native
- Property svn:keywords set to
Id
|
| Line | |
|---|
| 1 |
<?php echo use_helper('Javascript') ?> |
|---|
| 2 |
|
|---|
| 3 |
<div id="list_links" style="text-align:right;"> |
|---|
| 4 |
<?php if($show_order): ?> |
|---|
| 5 |
<?php if($sf_params->get('sort', 'date') == 'popularity'): ?> |
|---|
| 6 |
ordered by popularity |
|---|
| 7 |
<?php echo link_to ('get by date', $rule.'&sort=date') ?> |
|---|
| 8 |
<?php else: ?> |
|---|
| 9 |
ordered by date |
|---|
| 10 |
<?php echo link_to ('get by popularity', $rule.'&sort=popularity') ?> |
|---|
| 11 |
<?php endif; ?> |
|---|
| 12 |
<?php endif; ?> |
|---|
| 13 |
<span id="collapse_all"> |
|---|
| 14 |
<?php echo link_to_function('collapse all', "snippets=document.getElementsByClassName('snippet');snippets.each(function(snippet){snippet.style.display='none'});$('collapse_all').style.display='none';$('expand_all').style.display='inline';return false") ?> |
|---|
| 15 |
</span> |
|---|
| 16 |
<span id="expand_all" style="display:none"> |
|---|
| 17 |
<?php echo link_to_function('expand all', "snippets=document.getElementsByClassName('snippet');snippets.each(function(snippet){snippet.style.display='block'});$('collapse_all').style.display='inline';$('expand_all').style.display='none';return false") ?> |
|---|
| 18 |
</span> |
|---|
| 19 |
</div> |
|---|
| 20 |
|
|---|