echo $outFiles; if ($outText != '') { echo "<style type=\"text/css\">\n" . $outText . "\n</style>\n"; } } } function pdf24Plugin_registerWidget() { global $pdf24Plugin; $widgetId = 'Articles To PDF'; if (function_exists('wp_register_sidebar_widget')) { wp_register_sidebar_widget($widgetId, $widgetId, 'pdf24Plugin_widget'); include_once $pdf24Plugin['dir'] . '/inc/widgetControl.php'; wp_register_widget_control($widgetId, $widgetId, 'pdf24Plugin_widgetControl'); } else { register_sidebar_widget($widgetId, 'pdf24Plugin_widget'); include_once $pdf24Plugin['dir'] . '/inc/widgetControl.php'; register_widget_control($widgetId, 'pdf24Plugin_widgetControl'); } } if (pdf24Plugin_isAvailable()) { $isPage ? "true" : "false"; if (pdf24Plugin_isCpInUse()) { add_filter('the_content', 'pdf24Plugin_content', $pdf24Plugin['contentFilterPriority']); } if (pdf24Plugin_isCpInUse() || pdf24Plugin_isSbpInUse() || pdf24Plugin_isTbpInUse() || pdf24Plugin_isLpInUse()) { add_action('wp_head', 'pdf24Plugin_head'); } } add_action('plugins_loaded', 'pdf24Plugin_registerWidget'); add_action('admin_menu', 'pdf24Plugin_adminMenu');
function pdf24Plugin_widget($args) { if (pdf24Plugin_isSbpInUse() && pdf24Plugin_isAvailable()) { if (!(is_page() && pdf24Plugin_isSbpDisabledOnPages())) { extract($args); echo $before_widget . $before_title . pdf24Plugin_getWidgetTitle() . $after_title; echo pdf24Plugin_getSidebarForm(pdf24Plugin_getAllPosts()); } } }