Juraj Puchký Author URI: http://www.devtech.cz/ */ if (!isset($ADSCONTENT_locale)) $ADSCONTENT_locale = ''; // Pre-2.6 compatibility if (!defined('WP_CONTENT_URL')) define('WP_CONTENT_URL', get_option('siteurl') . '/wp-content'); if (!defined('WP_PLUGIN_URL')) define('WP_PLUGIN_URL', WP_CONTENT_URL . '/plugins'); $ADSCONTENT_plugin_basename = plugin_basename(dirname(__FILE__)); if (basename(dirname(__FILE__)) == "mu-plugins") { $ADSCONTENT_plugin_url_path = WPMU_PLUGIN_URL . '/ads-content'; $ADSCONTENT_plugin_dir = WPMU_PLUGIN_DIR . '/ads-content'; } else { $ADSCONTENT_plugin_url_path = WP_PLUGIN_URL . '/' . $ADSCONTENT_plugin_basename; $ADSCONTENT_plugin_dir = WP_PLUGIN_DIR . '/' . $ADSCONTENT_plugin_basename; } load_plugin_textdomain('ads-content', false, $ADSCONTENT_plugin_basename . '/languages'); // Fix SSL if (is_ssl()) $ADSCONTENT_plugin_url_path = str_replace('http:', 'https:', $ADSCONTENT_plugin_url_path); function ADSCONTENT_widget_init() { global $ADSCONTENT_plugin_dir; include_once($ADSCONTENT_plugin_dir . '/include/ads-contentWidget.php'); register_widget('AdsContent_Widget'); } add_action('widgets_init', 'ADSCONTENT_widget_init'); ?>