Changeset 31305 for extensions/charlies_content/main.inc.php
- Timestamp:
- Sep 7, 2015, 10:20:18 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/charlies_content/main.inc.php
r31304 r31305 43 43 { 44 44 $default = array( 45 'autoload' => 1,45 'autoload' => 0, 46 46 'autoplay' => 1, 47 47 'loop' => 1, … … 49 49 'forced_width' => '', 50 50 'forced_height' => '', 51 'video_default_width' => 320,52 'video_default_height' => 240,51 'video_default_width' => '', 52 'video_default_height' => '', 53 53 'volume' => 150, 54 54 'onclick' => 'playpause', … … 61 61 'config' => 0, 62 62 'configxml' => 0, 63 'margin' => 8,63 'margin' => 2, 64 64 'skin' => '', /* './plugins/charlies_content/skin.jpg', */ 65 65 'title' => '/n/n/nCharlies\'s content ', … … 84 84 'curtain' => 'none', 85 85 'start_image' => CHARLIES_PATH . 'background.jpg', 86 'color0' => '#111111',87 'color1' => '#ff7700',88 'color2' => '#444444',89 'color3' => '#ff3333',90 'color4' => '#ff3363',91 'color5' => '#ff7700',92 'color6' => '#111111',93 'color7' => '#ff3333',94 'color8' => '#ff3363',95 'color9' => '#111111',96 'color10' => '#444444',97 'color11' => '#ff3333',98 'color12' => '#ff3363',99 'color13' => '#ff7700',100 'color14' => '#444444',101 'color15' => '#ff3333',102 'color16' => '#111111',103 86 ); 104 87 if (!isset($charlie['version'])) $charlie = $default; 105 88 else $charlie = array_merge( $default, $charlie ); 106 89 if (!isset($charlie['FlvStreamer'])) $charlie['FlvStreamer'] = array('flv',); 90 if (!isset($charlie['html5'])) $charlie['html5'] = array('mp4',); 107 91 if (!isset($charlie['Flash'])) $charlie['Flash'] = array('swf',); 108 92 if (!isset($charlie['Music'])) $charlie['Music'] = array('pls','m3u','wav','mid','au','aif',); … … 111 95 if (!isset($charlie['WMplayer'])) $charlie['WMplayer'] = array('asf','wmv','divx','xvid',); 112 96 if (!isset($charlie['QuickTime'])) $charlie['QuickTime'] = 113 array('aiff','aac','bmp','gsm','mov','mpg','mpeg','m p4','m4a','psd','qt','qtif','qif','qti','snd','tif','tiff','3g2','3pg','3gp');97 array('aiff','aac','bmp','gsm','mov','mpg','mpeg','m4a','psd','qt','qtif','qif','qti','snd','tif','tiff','3g2','3pg','3gp'); 114 98 if (!isset($charlie['Archive'])) $charlie['Archive'] = array('zip','rar',); 115 99 if (!isset($charlie['GPS'])) $charlie['GPS'] = array('gpx',); … … 127 111 * like for Flash => ./plugings/charlies_content/flash_content.tpl 128 112 * 129 * Player name is in lower-case followed by _content.tpl (non )113 * Player name is in lower-case followed by _content.tpl (non c'est charlie_nomplayer) 130 114 */ 131 115 … … 139 123 # $charlie['all'] = $all; 140 124 add_event_handler('render_element_content', 'render_Charlie_element_content', 40, 2 ); 141 #add_event_handler('get_admin_plugin_menu_links', 'Charlie_plugin_admin_menu');142 125 143 function Charlie_plugin_admin_menu($menu)144 {145 array_push($menu, array(146 'NAME' => 'Charlies\'',147 'URL' => get_admin_plugin_menu_link(dirname(__FILE__).'/charlies_config.php'),148 ));149 return $menu;150 }151 152 /**153 * Only if picture.php is active154 */155 126 function render_Charlie_element_content($content, $picture) 156 127 {
Note: See TracChangeset
for help on using the changeset viewer.