Version 2.0.2
Place the following code where you want to display chCounter
<?php
$chcounter_widget = new chCounterWidget();
$chcounter_widget->display(array (
'before_widget' => '<li id="chcounter" class="widget chCounterWidget_display">',
'after_widget' => '</li>',
'before_title' => '<h2 class="widgettitle">',
'after_title' => '</h2>',
'widget_title' => 'Visitor statistics',
));
?>
Version 2.1+
You can just put the following code where you want to display chCounter:
<?php chcounter_widget_display("chCounter Widget Title") ?>
The plugin will default to before and after widget tags like in the example for Version 2.0.2. Alternatively you can pass an array of arguments to the function like in Version 2.0.2 to overwrite the defaults.




