Changeset 11007
- Timestamp:
- Jun 24, 2009, 5:18:29 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/modules/boonex/photos/classes/BxPhotosSearch.php ¶
r11000 r11007 24 24 class BxPhotosSearch extends BxTemplSearchResultSharedMedia { 25 25 function BxPhotosSearch ($sParamName = '', $sParamValue = '', $sParamValue1 = '', $sParamValue2 = '') { 26 $this->aPermalinks = array( 27 'param' => 'bx_photos_permalinks', 28 'enabled' => array( 29 'home' => 'home', 30 'file' => '{siteUrl}photo/gallery/{uri}', 31 'category' => '{siteUrl}photo/gallery/category/{uri}', 32 'browseAll' => '{siteUrl}photo/all/10/1', 33 'browseUserAll' => '{siteUrl}photo/gallery/all/{uri}', 34 'browseAllTop' => '{siteUrl}photo/gallery_top/', 35 'tag' => '{siteUrl}photo/gallery_tag/{uri}', 36 'album' => 'browse/album/{uri}', 37 'add' => 'browse/my/add' 38 ), 39 'disabled' => array( 40 'home' => 'home', 41 'file' => 'view/{uri}', 42 'category' => 'browse/category/{uri}', 43 'browseAll' => 'browse/all', 44 'browseUserAll' => 'browse/owner/{uri}', 45 'browseAllTop' => 'browse/top', 46 'tag' => 'browse/owner/{uri}', 47 'album' => 'browse/album/{uri}', 48 'add' => 'browse/my/add' 49 ) 50 ); 51 parent::BxTemplSearchResultSharedMedia(); 26 parent::BxTemplSearchResultSharedMedia('BxPhotosModule'); 52 27 // main settings 53 28 $this->aCurrent = array( … … 83 58 $this->aAddPartsConfig['favorite']['mainField'] = 'ID'; 84 59 85 $this->sCssPref = 'sharedPhotos';86 $this->oModule = BxDolModule::getInstance('BxPhotosModule');87 60 $this->oTemplate = &$this->oModule->_oTemplate; 88 61 $this->aConstants['filesUrl'] = $this->oModule->_oConfig->getFilesUrl(); -
TabularUnified trunk/modules/boonex/sounds/classes/BxSoundsModule.php ¶
r10995 r11007 70 70 } 71 71 } 72 73 function serviceGetWallData(){ 74 return array( 75 'handlers' => array( 76 array( 77 'alert_unit' => 'bx_sounds', 78 'alert_action' => 'upload', 79 'module_uri' => 'sounds', 80 'module_class' => 'Search', 81 'module_method' => 'get_wall_post' 82 ) 83 ), 84 'alerts' => array( 85 array('unit' => 'bx_sounds', 'action' => 'upload') 86 ) 87 ); 88 } 72 89 } 73 90 -
TabularUnified trunk/modules/boonex/sounds/classes/BxSoundsUploader.php ¶
r11005 r11007 372 372 return MsgBox(_t('_Empty')); 373 373 } 374 375 function serviceGetUploaderForm($aExtras) { 376 $this->sPredefCategory = 'wall'; 377 return $this->GenMainAddMusicForm($aExtras); 378 } 374 379 } 375 380 -
TabularUnified trunk/templates/base/scripts/BxBaseSearchResultSharedMedia.php ¶
r11000 r11007 42 42 var $sCurrentAlbum; 43 43 44 var $sModuleClass; 44 45 var $oModule; 45 46 46 function BxBaseSearchResultSharedMedia ( ) {47 function BxBaseSearchResultSharedMedia ($sModuleClass = '') { 47 48 /* main settings for shared modules 48 49 ownFields - fields which will be got from main table ($this->aCurrent['table']) … … 95 96 parent::BxBaseSearchResult(); 96 97 bx_import('BxTemplVotingView'); 98 $this->sModuleClass = $sModuleClass; 99 $this->oModule = BxDolModule::getInstance($this->sModuleClass); 97 100 $this->oTemplate = $GLOBALS['oSysTemplate']; 98 101 $this->aConstants['linksTempl'] = $this->isPermalinkEnabled() ? $this->aPermalinks['enabled'] : $this->aPermalinks['disabled']; -
TabularUnified trunk/templates/tmpl_uni/scripts/BxTemplSearchResultSharedMedia.php ¶
r8240 r11007 4 4 5 5 class BxTemplSearchResultSharedMedia extends BxBaseSearchResultSharedMedia { 6 function BxTemplSearchResultSharedMedia ( ) {7 parent::BxBaseSearchResultSharedMedia( );6 function BxTemplSearchResultSharedMedia ($sModuleClass = '') { 7 parent::BxBaseSearchResultSharedMedia($sModuleClass); 8 8 } 9 9 }
Note: See TracChangeset
for help on using the changeset viewer.