Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class wpt_widget extends WP_Widget {
- function __construct() {
- // add image sizes and load language file
- add_action( 'init', array(&$this, 'wpt_init') );
- }
- function wpt_init() {
- load_plugin_textdomain('wp-tab-widget', false, dirname(plugin_basename(__FILE__)) . '/languages/' );
- add_image_size( 'wp_review_small', 65, 65, true ); // small thumb
- add_image_size( 'wp_review_large', 320, 9999, false ); // large thumb
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement