This commit is contained in:
Diego Najar 2019-02-02 16:16:13 +01:00
parent 75ac3c3400
commit 2643c9ff1f
2 changed files with 6 additions and 15 deletions

View File

@ -82,16 +82,22 @@ class Plugin {
return '<script charset="utf-8" src="'.$this->domainPath().'js/'.$filename.'?version='.BLUDIT_VERSION.'"></script>'.PHP_EOL; return '<script charset="utf-8" src="'.$this->domainPath().'js/'.$filename.'?version='.BLUDIT_VERSION.'"></script>'.PHP_EOL;
} }
// Returns absolute URL and path of the plugin directory
// This function helps to include CSS or Javascript files with absolute URL
public function domainPath() public function domainPath()
{ {
return DOMAIN_PLUGINS.$this->directoryName.'/'; return DOMAIN_PLUGINS.$this->directoryName.'/';
} }
// Returns relative path of the plugin directory
// This function helps to include CSS or Javascript files with relative URL
public function htmlPath() public function htmlPath()
{ {
return HTML_PATH_PLUGINS.$this->directoryName.'/'; return HTML_PATH_PLUGINS.$this->directoryName.'/';
} }
// Returns absolute path of the plugin directory
// This function helps to include PHP libraries or some file at server level
public function phpPath() public function phpPath()
{ {
return PATH_PLUGINS.$this->directoryName.DS; return PATH_PLUGINS.$this->directoryName.DS;

View File

@ -1,15 +0,0 @@
<?php
$blocks->add(array(
'key'=>'google-analitycs',
'title'=>'Google Analytics',
'value'=>'',
'description'=>$language->get('Insert the code for Google Analytics')
));
$blocks->add(array(
'key'=>'level',
'title'=>'Level',
'value'=>'',
'description'=>''
));
?>