This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ class CodeColorerAdmin { function CodeColorerAdmin($codeColorer) { $this->cc = $codeColorer; $this->DisableNotifications(); } function ShowThemeSelectOptions($current_theme) { foreach(CodeColorerOptions::GetThemes() as $theme => $description) { echo ''; } } function ShowLanguageWarning() { $locale = get_locale(); if (!in_array($locale, CodeColorerOptions::GetLanguages())) { $msgFormat = __('Your current locale is %1$s, and CodeColorer has incomplete or does not have a translation into your language. It would be great, if you have a time to help us to translate it.', 'codecolorer'); $this->cc->ShowWarning('language', __('CodeColorer translation is incomplete.', 'codecolorer'), sprintf($msgFormat, $locale, "http://kpumuk.info/projects/wordpress-plugins/codecolorer/#translation")); } } function DisableNotifications() { if (in_array($_GET['disable'], array('concurrent', 'language'))) { update_option('codecolorer_' . $_GET['disable'] . '_notification', false); } } function Show() { ?>

CodeColorer:

ShowLanguageWarning(); ?>
-1 to remove vertical scroll.', 'codecolorer') ?>
em or % suffix. Could be omitted to use whole width.', 'codecolorer') ?>
:

cc->GetSampleCodeHighlighted(); ?>