function my_wdg_newsletter()
 {
     /* INIT CONSTRUCTOR */
     $widget_ops = array('classname' => 'widget_newsletter', 'description' => __('Google FeedBurner Newsletter', 'myThemes'));
     $this->WP_Widget('my_wdg_newsletter', myThemes::group() . ' : ' . __('Newsletter', 'myThemes'), $widget_ops);
 }
コード例 #2
0
 function my_wdg_post_categories()
 {
     /* INIT CONSTRUCTOR */
     $widget_ops = array('classname' => 'widget_post_categories', 'description' => __('Use only for single template', 'myThemes'));
     $this->WP_Widget('my_wdg_post_categories', myThemes::group() . ' : ' . __('Post Categories', 'myThemes'), $widget_ops);
 }
 function my_wdg_website_description()
 {
     /* INIT CONSTRUCTOR */
     $widget_ops = array('classname' => 'website-description', 'description' => __('Website description', 'myThemes'));
     $this->WP_Widget('my_wdg_website_description', myThemes::group() . ' : ' . __('Website Description', 'myThemes'), $widget_ops);
 }