' . __('Settings') . ''; $links[] = '' . __('Donate') . ''; $links[] = '' . __('Support') . ''; $links[] = '' . __('Custom WordPress coding nodig?') . ''; } return $links; } // To implement later function refresh_rewrite() { if(isset($_GET['rwflush'])) { global $wp_rewrite; $wp_rewrite->flush_rules(); } } function disable_social($type = 'sociable') { if($type == 'sociable') { remove_filter( 'the_content', 'auto_sociable' ); } if($type == '1click') { remove_filter ( 'the_content', 'lacands_wp_filter_post_content'); } } /** * Checks if user is admin or has plugin caps. */ function is_admin() { if(is_multisite()) { // TODO fix this, for now rely on WP roles ( I have tested this 07062011 ) return true; } require_once(ABSPATH . WPINC . '/pluggable.php'); $current_user = wp_get_current_user(); $current_user_id = ! empty($current_user) ? $current_user->id : 0; $current_user = new WP_User($current_user_id); if($current_user->has_cap('delete_users')) return true; return false; } /** * Show default message as infobox * @author Ramon Fincken * @param $msg * @return void */ function show_message($msg) { echo '
'; echo $msg; echo '
'; } /** * Start main div for plugin page * @author Ramon Fincken * @return void */ function content_start() { echo '
'; } /** * End main div for plugin page, show sidebar div with credits * @author Ramon Fincken * @return void */ function content_end() { if($this->showcredits) { echo '

Do you like this plugin? PayPal Donations (even as small as $1,- or €1,)- are welcome!.'; } echo '
'; echo '
'; $this->showcredits(); echo '
'; echo '
'; } function return_zero() { return 0; } function return_false() { return false; } function return_true() { return true; } /** * Shows credits or info for developers * @author Ramon Fincken * @return void */ function showcredits() { if($this->showcredits) { mijnpress_plugin_framework_showcredits($this->plugin_title,$this->all_plugins); } if($this->showcredits_fordevelopers) { mijnpress_plugin_framework_showcredits_framework(); } } /** * Generating the url for current Plugin * * @param String $path * @return String */ function get_plugin_url($path = '',$file = __FILE__) { global $wp_version; if (version_compare($wp_version, '2.8', '<')) { // Using WordPress 2.7 $folder = dirname(plugin_basename($file)); if ('.' != $folder) $path = path_join(ltrim($folder, '/'), $path); return plugins_url($path); } return plugins_url($path, $file); } } // Keep these functions below class because we use plain HTML in PHP, and it is ugly function mijnpress_plugin_framework_showcredits_framework() { ?>

Are you a developer?

Feel free to use the framework file included in this plugin.
It is open source and free to use.
For more info visit MijnPress.nl/blog/plugin-framework

About

This plugin was created by Ramon Fincken.
He likes to create WordPress websites and plugins and he is co-admin at the Dutch LinkedIn WordPress group.

Visit his WordPress websites at: MijnPress.nl, ManagedWPHosting.nl
If you are a coder, you might like to visit his WordPress blogposts.

Like this plugin? Donate me a coffee :)

Is this plugin broken? Report it here
0) { ?>

More Plugins

If you like this plugin, you may also like:
0) } // end mijnpress_plugin_framework_showcredits($plugin_title,$all_plugins) ?>