| 1 |
<?php |
| 2 |
/* |
| 3 |
* this file contains pluing meta information and then shared |
| 4 |
* between pluging and admin classes |
| 5 |
* |
| 6 |
* [1] |
| 7 |
* TODO: change this meta as plugin needs |
| 8 |
*/ |
| 9 |
|
| 10 |
$plugin_dir = 'wp-comment-fields'; |
| 11 |
|
| 12 |
$plugin_meta = array('name' => 'Comments Fields', |
| 13 |
'shortname' => 'wpcomments', |
| 14 |
'path' => WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . $plugin_dir, |
| 15 |
'url' => plugins_url( $plugin_dir , dirname(__FILE__) ), |
| 16 |
'db_version' => 3.0, |
| 17 |
'logo' => plugins_url( $plugin_dir.'/images/logo.png' , dirname(__FILE__) ), |
| 18 |
'men_position' => 78); |
| 19 |
|
| 20 |
/* |
| 21 |
* TODO: change the function name |
| 22 |
*/ |
| 23 |
function get_plugin_meta_wpcomment(){ |
| 24 |
|
| 25 |
global $plugin_meta; |
| 26 |
|
| 27 |
//print_r($plugin_meta); |
| 28 |
|
| 29 |
return $plugin_meta; |
| 30 |
} |
| 31 |
|
| 32 |
function wpcomment_pa($arr){ |
| 33 |
|
| 34 |
echo '<pre>'; |
| 35 |
print_r($arr); |
| 36 |
echo '</pre>'; |
| 37 |
} |