ID; $aFWYSIWYM = get_user_meta($aFCrntUsrID,'aFWYSIWYM',true); $aFCancelStyles = get_user_meta($aFCrntUsrID,'aFCancelStyles',true); } function aFWHcss( $mce_css ) { global $aFWYSIWYM, $aFCancelStyles; if ($aFWYSIWYM == 1) { if (!empty($mce_css)) $mce_css .= ','; $mce_css .= plugins_url( 'wysiwym.css', __FILE__ ); } if ($aFCancelStyles == 1) { if (!empty($mce_css)) $mce_css .= ','; $mce_css .= plugins_url( 'overrides.css', __FILE__ ); } return $mce_css; } function aFWHUpgradeNag() { global $aFWHVersion; if ( !current_user_can('install_plugins') ) return; $aFWH_version = 'version'; if(get_bloginfo('version') >= "4.0"){ $aFFavs = network_admin_url('plugin-install.php?tab=favorites&user=addfunc'); $aFFavsTarg = ''; } else { $aFFavs = 'http://profiles.wordpress.org/addfunc'; $aFFavsTarg = ' target="_blank"'; } if ( get_site_option( $aFWH_version ) == $aFWHVersion ) return; $msg = sprintf(__('Thank you for updating AddFunc WYSIWYG Helper! If you like this plugin, please consider rating it and trying out our other plugins!'),'http://wordpress.org/support/view/plugin-reviews/addfunc-wysiwyg-helper',$aFFavs); echo "
$msg
"; update_site_option( $aFWH_version, $aFWHVersion ); } if (is_admin()){ add_filter('mce_css', 'aFWHcss'); add_action('admin_notices', 'aFWHUpgradeNag'); } /* H E L P T A B =============== */ add_action('init','aFWHAddHT'); function aFWHHelpTab() { $screen = get_current_screen(); $screen->add_help_tab( array( 'id' => 'aFWHHelpTab', 'title' => __('Highlighted Content'), 'content' => '

'.__( 'The colored borders and highlighting you see in Visual editing mode are there to reveal for you what and where some of the various HTML elements are that comprise the content you are editing.' ).'

'.__( 'Legend' ).'

', )); } function aFWHAddHT(){ global $aFWYSIWYM; if($aFWYSIWYM == 1) { add_action('load-post.php', 'aFWHHelpTab'); } } /* U S E R P R E F E R E N C E S =============================== */ add_action( 'show_user_profile', 'aFWHUserPref' ); add_action( 'edit_user_profile', 'aFWHUserPref' ); function aFWHUserPref( $user ) { ?>

ID )) == 1) echo "checked"; ?> />

WYSIWYM = What You See Is What You Mean

ID )) == 1) echo "checked"; ?> />