I use Flatpress 1.2.1 and want to create a plugin for a counter (PHP Web Stat).
The plugin must ensure the following:
-Plugin includes a widget
-the widget should load the counter.php via <iframe></iframe> and display it in the navigation on the right.
Code: Select all
<?php
/*
* Plugin Name: Counter
* Version: 1.0
* Plugin URI:
* Author:
* Author URI:
* Description: Counter
*/
function plugin_counter_widget() {
$baseurl = BLOG_BASEURL;
echo '<p><iframe name="stat_counter" src=" . BLOG_BASEURL . /stat/counter.php" style="width:140px; height:150px; border:none; overflow:hidden;"></iframe></p>'
;
}
register_widget('counter', 'Counter', 'plugin_counter_widget');
?>
I apologize for my bad english
Best Regards
Frank