| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- require_once dirname(dirname(__FILE__)) . '/index.class.php';
- /**
- * Create controller for Collections Container
- *
- * @package collections
- * @subpackage controller
- */
- class CollectionsHomeManagerController extends CollectionsBaseManagerController {
- public function getLanguageTopics() {
- return array('collections:default', 'collections:selections');
- }
- /**
- * Return the pagetitle
- *
- * @return string
- */
- public function getPageTitle() {
- return $this->modx->lexicon('collections.template.page_title');
- }
- public function process(array $scriptProperties = array()) {}
- public function loadCustomCssJs() {
- $this->addLastJavascript($this->collections->getOption('jsUrl').'mgr/widgets/template/template.window.js');
- $this->addLastJavascript($this->collections->getOption('jsUrl').'mgr/widgets/template/template.grid.js');
- $this->addLastJavascript($this->collections->getOption('jsUrl').'mgr/widgets/template/home.panel.js');
- $this->addLastJavascript($this->collections->getOption('jsUrl').'mgr/sections/template/home.js');
- $this->addHtml('
- <script type="text/javascript">
- Ext.onReady(function() {
- MODx.load({ xtype: "collections-page-template-home"});
- });
- </script>
- ');
- }
- public function getTemplateFile() { return $this->collections->getOption('templatesPath').'template/home.tpl'; }
- }
|