From 2643c9ff1f842cd45f7c06e7c670ce0e4307d289 Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Sat, 2 Feb 2019 16:16:13 +0100 Subject: [PATCH] comments --- bl-kernel/abstract/plugin.class.php | 6 ++++++ bl-themes/alternative/blocks.php | 15 --------------- 2 files changed, 6 insertions(+), 15 deletions(-) delete mode 100644 bl-themes/alternative/blocks.php diff --git a/bl-kernel/abstract/plugin.class.php b/bl-kernel/abstract/plugin.class.php index 9a0b1f18..7cd301d5 100644 --- a/bl-kernel/abstract/plugin.class.php +++ b/bl-kernel/abstract/plugin.class.php @@ -82,16 +82,22 @@ class Plugin { return ''.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() { 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() { 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() { return PATH_PLUGINS.$this->directoryName.DS; diff --git a/bl-themes/alternative/blocks.php b/bl-themes/alternative/blocks.php deleted file mode 100644 index 0aad47e1..00000000 --- a/bl-themes/alternative/blocks.php +++ /dev/null @@ -1,15 +0,0 @@ -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'=>'' -)); -?> \ No newline at end of file