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; } if(is_admin()){ add_filter('mce_css','aFWHcss'); } /* 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"; ?> />