Changeset e0d7c0e704e5bf97231c4c96a5d4f455b4c5e8ac
- Timestamp:
- 08/21/11 13:36:52 (9 months ago)
- Author:
- Xemle <xemle@phtagr.org>
- Children:
- 726e265f078bf31aa4c2386546da1a2a27a05848
- Parents:
- 6f2d701a200e5c91fdf430394d0f2daaffe00097
- git-committer:
- Xemle <xemle@phtagr.org> / 2011-08-21T13:36:52Z+0200
- Message:
-
Reenable flash slide show (piclens lite)
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r826a77b
|
re0d7c0e
|
|
| 24 | 24 | class ExplorerController extends AppController |
| 25 | 25 | { |
| 26 | | var $components = array('RequestHandler', 'FilterManager', 'Search', 'QueryBuilder', 'FastFileResponder'); |
| | 26 | var $components = array('RequestHandler', 'FilterManager', 'Search', 'QueryBuilder', 'FastFileResponder', 'Feed'); |
| 27 | 27 | var $uses = array('Media', 'MyFile', 'Group', 'Tag', 'Category', 'Location'); |
| 28 | 28 | var $helpers = array('Form', 'Html', 'Ajax', 'ImageData', 'Time', 'ExplorerMenu', 'Rss', 'Search', 'Navigator', 'Tab', 'Breadcrumb', 'Autocomplete'); |
| … |
… |
|
| 59 | 59 | $this->set('crumbs', $this->crumbs); |
| 60 | 60 | $this->params['crumbs'] = $this->crumbs; |
| | 61 | $this->Feed->add('/explorer/media/' . join('/', $this->Search->encodeCrumbs($this->crumbs)), array('title' => __('Slideshow Media RSS', true), 'id' => 'slideshow')); |
| 61 | 62 | parent::beforeRender(); |
| 62 | 63 | } |
-
|
r907a0ba
|
re0d7c0e
|
|
| 16 | 16 | <?php endif; // canWriteAcl ?> |
| 17 | 17 | <?php endif; // canWriteTag ?> |
| | 18 | <li id="p-explorer-button-slideshow"><a><?php __("Slideshow"); ?></a></li> |
| 18 | 19 | </ul> |
| 19 | 20 | <div class="pages"> |
-
|
r9d0c16e
|
re0d7c0e
|
|
| 82 | 82 | $(this).activateExplorerMenu('#p-explorer-button-access', '#p-explorer-edit-access'); |
| 83 | 83 | }); |
| | 84 | $('#p-explorer-button-slideshow').click(function() { |
| | 85 | var feed = $('#slideshow').attr('href'); |
| | 86 | feed += "/quality:high"; |
| | 87 | PicLensLite.start({feedUrl: feed}); |
| | 88 | }); |
| 84 | 89 | $('#explorer').find('.submit input').button(); |
| 85 | 90 | $.fn.placeExplorerMenu = function() { |
| … |
… |
|
| 118 | 123 | $script = preg_replace("/:$name/", $value, $script); |
| 119 | 124 | } |
| | 125 | echo $this->Javascript->link('/piclenslite/piclens_optimized', false); |
| 120 | 126 | echo $this->Html->scriptBlock($script, array('inline' => false)); |
| 121 | 127 | ?> |
-
|
r9cf25c2
|
re0d7c0e
|
|
| 15 | 15 | echo $html->script('jquery-phtagr'); |
| 16 | 16 | echo $scripts_for_layout; |
| | 17 | echo $feeds_for_layout; |
| 17 | 18 | ?> |
| 18 | 19 | </head> |