Load_TextDomain(); // Set Widget Settings $this->WP_Widget( False, $this->t('Feed Text Link Widget'), Array('description' => $this->t('Enables you to add your feed links to a widget area.'))); // Read base $this->base_url = get_option('siteurl').'/'.Str_Replace("\\", '/', SubStr(RealPath(DirName(__FILE__)), Strlen(ABSPATH))); // Get ready to translate $this->Load_TextDomain(); // Add hooks Add_Action ('wp_head', Array($this, 'IncludeCSS')); Add_Action ('widgets_init', Array ($this, 'Register')); } Function Register(){ Register_Widget (get_class($this)); } Function Load_TextDomain(){ $this->text_domain = get_class($this); load_textdomain ($this->text_domain, DirName(__FILE__).'/language/'.get_locale().'.mo'); } Function t ($text, $context = ''){ // Translates the string $text with context $context If ($context == '') return __($text, $this->text_domain); Else return _x($text, $context, $this->text_domain); } Function IncludeCSS(){ Echo ''; } Function widget($args, $settings){ Echo $args['before_widget']; Echo $args['before_title']; Echo $settings['title']; Echo $args['after_title'] ?> t('Title:') ?>

t('Show subscribtion links:') ?>

value="on"/>t('Show a help link.') ?>