Amin Diary Description: This plugin uses the Anetwork Javascript to return the ADs from your account. For more information about Anetwork visit HERE. Copyright 2011 Amin Diary (email: amindiary[at]gmail[dot]com) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ ?> 'Anetwork', 'description' => __('Presents your accounts ads on anetwork website.') ); $this->WP_Widget('placeAnetwork', __('Anetwork Ads'), $widget_ops); } function widget($args, $instance) { // outputs the content of the widget extract($args, EXTR_SKIP); $aduser = empty($instance['aduser']) ? ' ' : apply_filters('widget_title', $instance['aduser']); $size = empty($instance['size']) ? ' ' : apply_filters('size', $instance['size']); $title = empty($instance['title']) ? ' ' : apply_filters('title', $instance['title']); $align = empty($instance['align']) ? ' ' : apply_filters('align', $instance['align']); switch($size){ case 1:$width=125;$height=125;break; case 2:$width=468;$height=60;break; case 3:$width=120;$height=240;break; } ?>