':$addmarx_js_stripped_update_10 );
?>
';
if (get_option('ADDMARX_js') != '') {
$addmarx_content = get_option('ADDMARX_js');
}
if (( !is_page() && !is_single() && ((get_option('ADDMARX_main')=='') || (get_option('ADDMARX_main')=='1'))) || ( !is_page() && is_single() && ((get_option('ADDMARX_posts')=='') || (get_option('ADDMARX_posts')=='1'))) || ( is_page() && ((get_option('ADDMARX_pages')=='') || (get_option('ADDMARX_pages')=='1'))))
$content .= $addmarx_content;
return $content;
}
function ADDMARX_widget($args)
{
// Pre-2.6 compatibility
if(!defined('WP_PLUGIN_URL'))
{
if(!defined('WP_CONTENT_URL'))
{
define('WP_CONTENT_URL', get_option('siteurl') . '/wp-content');
}
define('WP_PLUGIN_URL', WP_CONTENT_URL . '/plugins');
}
if(!defined('WP_PLUGIN_DIR'))
{
if(!defined('WP_CONTENT_DIR'))
{
define('WP_CONTENT_DIR', ABSPATH . 'wp-content');
}
define('WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins');
}
$addmarx_wpurl_widget = get_bloginfo('wpurl');
$addmarx_content_widget = '
';
if (get_option('ADDMARX_js') != '') {
$addmarx_content_widget = get_option('ADDMARX_js');
}
$addmarx_content_widget = preg_replace('/margin-left:.*px/', 'margin-left:-175px' , $addmarx_content_widget, 1);
// Set title to null
$title = "";
// Help widget to conform to the active theme: before_widget, before_title and after_title
extract($args);
echo $before_widget . $before_title . $title . $after_title;
// Display Addmarx
echo $addmarx_content_widget;
// Help widget to conform to the active theme: after_widget
echo $after_widget;
}
function ADDMARX_widget_control()
{
echo 'To edit Addmarx, please see the options page';
}
function ADDMARX_widget_init()
{
if(function_exists('register_sidebar_widget'))
{
register_sidebar_widget(__('Addmarx'), 'ADDMARX_widget');
}
if(function_exists('register_widget_control'))
{
register_widget_control(array(__('Addmarx'), 'widgets'), 'ADDMARX_widget_control');
}
}
add_action("plugins_loaded", "ADDMARX_widget_init");
add_action('the_content', 'ADDMARX_content');
add_action('admin_menu', 'ADDMARX_menu');
?>