home.panel.js 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. GAL.panel.Home = function(config) {
  2. config = config || {};
  3. Ext.apply(config,{
  4. border: false
  5. ,baseCls: 'modx-formpanel'
  6. ,cls: 'container'
  7. ,items: [{
  8. html: '<h2>'+_('gallery')+'</h2>'
  9. ,border: false
  10. ,cls: 'modx-page-header'
  11. },{
  12. xtype: 'modx-tabs'
  13. ,defaults: { border: false ,autoHeight: true }
  14. ,border: true
  15. ,activeItem: 0
  16. ,hideMode: 'offsets'
  17. ,items: [{
  18. title: _('gallery.albums')
  19. ,items: [{
  20. html: '<p>'+_('gallery.intro_msg')+'</p>'
  21. ,border: false
  22. ,bodyCssClass: 'panel-desc'
  23. },{
  24. xtype: 'gal-tree-album'
  25. ,cls: 'main-wrapper'
  26. }]
  27. }]
  28. }]
  29. });
  30. GAL.panel.Home.superclass.constructor.call(this,config);
  31. };
  32. Ext.extend(GAL.panel.Home,MODx.Panel);
  33. Ext.reg('gal-panel-home',GAL.panel.Home);