@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at recaptime-dev/main 69 lines 1.8 kB view raw
1<?php 2 3final class ConpherenceRoomSettings extends ConpherenceConstants { 4 5 const SOUND_RECEIVE = 'receive'; 6 const SOUND_MENTION = 'mention'; 7 8 const DEFAULT_RECEIVE_SOUND = 'tap'; 9 const DEFAULT_MENTION_SOUND = 'alert'; 10 const DEFAULT_NO_SOUND = 'none'; 11 12 const COLOR_LIGHT = 'light'; 13 const COLOR_BLUE = 'blue'; 14 const COLOR_INDIGO = 'indigo'; 15 const COLOR_PEACH = 'peach'; 16 const COLOR_GREEN = 'green'; 17 const COLOR_PINK = 'pink'; 18 19 public static function getSoundMap() { 20 return array( 21 'none' => array( 22 'name' => pht('No Sound'), 23 'rsrc' => '', 24 ), 25 'alert' => array( 26 'name' => pht('Alert'), 27 'rsrc' => celerity_get_resource_uri('/rsrc/audio/basic/alert.mp3'), 28 ), 29 'bing' => array( 30 'name' => pht('Bing'), 31 'rsrc' => celerity_get_resource_uri('/rsrc/audio/basic/bing.mp3'), 32 ), 33 'pock' => array( 34 'name' => pht('Pock'), 35 'rsrc' => celerity_get_resource_uri('/rsrc/audio/basic/pock.mp3'), 36 ), 37 'tap' => array( 38 'name' => pht('Tap'), 39 'rsrc' => celerity_get_resource_uri('/rsrc/audio/basic/tap.mp3'), 40 ), 41 'ting' => array( 42 'name' => pht('Ting'), 43 'rsrc' => celerity_get_resource_uri('/rsrc/audio/basic/ting.mp3'), 44 ), 45 ); 46 } 47 48 public static function getDropdownSoundMap() { 49 $map = self::getSoundMap(); 50 return ipull($map, 'name'); 51 } 52 53 public static function getThemeMap() { 54 return array( 55 self::COLOR_LIGHT => pht('Light'), 56 self::COLOR_BLUE => pht('Blue'), 57 self::COLOR_INDIGO => pht('Indigo'), 58 self::COLOR_PEACH => pht('Peach'), 59 self::COLOR_GREEN => pht('Green'), 60 self::COLOR_PINK => pht('Pink'), 61 ); 62 } 63 64 public static function getThemeClass($theme) { 65 return 'conpherence-theme-'.$theme; 66 } 67 68 69}