/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
class Widget_name { function control(){ echo 'I am a control panel'; } function widget($args){ echo $args['before_widget']; echo $args['before_title'] . 'Your widget title' . $args['after_title']; echo 'I am your widget'; echo $args['after_widget']; } function register(){ } }