17 lines
		
	
	
		
			353 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
			
		
		
	
	
			17 lines
		
	
	
		
			353 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
<?php
 | 
						|
 | 
						|
class jPlayerPlugin extends PluginBase{
 | 
						|
	function __construct(){
 | 
						|
		parent::__construct();
 | 
						|
	}
 | 
						|
	public function regiest(){
 | 
						|
		$this->hookRegiest(array(
 | 
						|
			'user.commonJs.insert' => 'jPlayerPlugin.echoJs',
 | 
						|
		));
 | 
						|
	}
 | 
						|
	public function echoJs($st,$act){
 | 
						|
		if($this->isFileExtence($st,$act)){
 | 
						|
			$this->echoFile('static/main.js');
 | 
						|
		}
 | 
						|
	}
 | 
						|
} |