'1', 'btn_redo' => '1', 'btn_bold' => '1', 'btn_italic' => '1', 'btn_underline' => '0', 'btn_strikethrough' => '0', 'btn_forecolor' => '0', 'btn_backcolor' => '0', 'btn_link' => '0', 'btn_image' => '0', 'btn_blockquote' => '1', 'btn_code' => '1', 'btn_bullist' => '0', 'btn_numlist' => '0', 'btn_table' => '0', 'btn_emoticons' => '1', 'btn_arkemoticons' => '0', 'btn_arkemoticonssk' => '0', 'btn_arkkbabe' => '0', 'btn_preview' => '1', 'wce_lang' => 'русский', 'wce_width' => '600', 'wce_widthfix' => '0', 'btn_arkbquote' => '0', 'wce_addbquotestyle' => '0', 'wce_edtbquotestyle' => '0', 'box_font' => '0', 'box_fontsize' => '0', 'wce_editor' => 'ckeditor', 'btn_codesnippet' => '0', 'codesnippet_css' => 'idea', 'btn_pastetext' => '0', 'btn_pasteword' => '0', 'btn_hr' => '0', 'btn_justifyleft' => '0', 'btn_justifycenter' => '0', 'btn_justifyright' => '0', 'btn_justifyblock' => '0', 'wce_smileycolumns' => '8', 'tiny_skin' => '0', 'cke_skin' => '0', 'cke_css' => '0', 'btn_video' => '0', 'url_terms_of_privacy' => '', 'url_user_agreements' => '', 'txt_before_terms' => '', 'txt_link_terms' => '', 'txt_link_agreements' => '', ); add_option('ark_wce', $ark_wce_option,'','no'); } // Хук вставки в админ меню add_action('admin_menu', 'ark_wce_add_pages'); // Акция предыдущено хука function ark_wce_add_pages() { // Добавляем новое субменю в Options: add_options_page('ark_commenteditor', 'ark-commenteditor', 'manage_options', 'ark_wce_ostoptions', 'ark_wce_options_page'); } // Вывод страницы опций в субменю function ark_wce_options_page() { echo '

'. __('Settings visual editor comments','arkcommenteditor').'

Пожертвовать
'; ?>
$_POST['btn_undo'], 'btn_redo' => $_POST['btn_redo'], 'btn_bold' => $_POST['btn_bold'], 'btn_italic' => $_POST['btn_italic'], 'btn_underline' => $_POST['btn_underline'], 'btn_strikethrough' => $_POST['btn_strikethrough'], 'btn_forecolor' => $_POST['btn_forecolor'], 'btn_backcolor' => $_POST['btn_backcolor'], 'btn_link' => $_POST['btn_link'], 'btn_image' => $_POST['btn_image'], 'btn_blockquote' => $_POST['btn_blockquote'], 'btn_code' => $_POST['btn_code'], 'btn_bullist' => $_POST['btn_bullist'], 'btn_numlist' => $_POST['btn_numlist'], 'btn_table' => $_POST['btn_table'], 'btn_emoticons' => $_POST['btn_emoticons'], 'btn_arkemoticons' => $_POST['btn_arkemoticons'], 'btn_arkemoticonssk' => $_POST['btn_arkemoticonssk'], 'btn_arkkbabe' => $_POST['btn_arkkbabe'], 'btn_preview' => $_POST['btn_preview'], 'wce_lang' => $_POST['wce_lang'], 'wce_width' => $_POST['wce_width'], 'wce_widthfix' => $_POST['wce_widthfix'], 'btn_arkbquote' => $_POST['btn_arkbquote'], 'wce_addbquotestyle' => $_POST['wce_addbquotestyle'], 'wce_edtbquotestyle' => $_POST['wce_edtbquotestyle'], 'box_font' => $_POST['box_font'], 'box_fontsize' => $_POST['box_fontsize'], 'wce_editor' => $_POST['wce_editor'], 'btn_codesnippet' => $_POST['btn_codesnippet'], 'codesnippet_css' => $_POST['codesnippet_css'], 'btn_pastetext' => $_POST['btn_pastetext'], 'btn_pasteword' => $_POST['btn_pasteword'], 'btn_hr' => $_POST['btn_hr'], 'btn_justifyleft' => $_POST['btn_justifyleft'], 'btn_justifycenter' => $_POST['btn_justifycenter'], 'btn_justifyright' => $_POST['btn_justifyright'], 'btn_justifyblock' => $_POST['btn_justifyblock'], 'wce_smileycolumns' => $_POST['wce_smileycolumns'], 'tiny_skin' => $_POST['tiny_skin'], 'cke_skin' => $_POST['cke_skin'], 'cke_css' => $_POST['cke_css'], 'btn_video' => $_POST['btn_video'], 'url_terms_of_privacy' => $_POST['url_terms_of_privacy'], 'url_user_agreements' => $_POST['url_user_agreements'], 'txt_before_terms' => $_POST['txt_before_terms'], 'txt_link_terms' => $_POST['txt_link_terms'], 'txt_link_agreements' => $_POST['txt_link_agreements'], ); update_option('ark_wce', $ark_wce_option); echo '

'.__('Settings saved.','arkcommenteditor').'

'; } else if ( isset($_POST['reset']) ) { // При сбросе: удаляем записи опций из БД delete_option( 'ark_wce' ); ark_wce_init_option(); echo '

' . __('Settings successfully restored the default.','arkcommenteditor') . '

'; } ?>

   
  
  

/>    />    />    />    />    />    />    />   


/>    />   


/>    />    />    />    />    />    />    />   


/>    />    />   

/>    />    />    />    />    />    />    />   
/>         highlight.js demo
  

default  > icy_orange  > kama  >
moonocolor  > moono-dark  > office2013  >

/>          

   />      px
/>   

default  > charcoal  > pepper-grinder  >
xenmce  > tundora  >

/>   
 />   
  
 />   


French translation - Laurent  
Deutsch-Übersetzung - Marcus Brindoepke  

true, 'height' => true,'width' => true, 'alt' => true, 'title' => true, ); $allowedtags['table'] = array( 'border' => true, 'style' => array() ); $allowedtags['iframe'] = array( 'frameborder' => true, 'allowfullscreen' => true, 'src' => true, 'width' => true, 'height' => true); $allowedtags['div'] = array('class' => true); $allowedtags['tbody'] = array('style' => array() ); $allowedtags['tr'] = array('style' => array() ); $allowedtags['td'] = array('style' => array() ); $allowedtags['sub'] = array( ); $allowedtags['sup'] = array(); $allowedtags['pre'] = array('lang' => true, 'line' => true ); $allowedtags['ul'] = array('style' => array()); $allowedtags['ol'] = array('style' => array()); $allowedtags['li'] = array('style' => array()); $allowedtags['span'] = array('class' => true, 'style' => array() ); $allowedtags['noindex'] = array(); $allowedtags['strong'] = array(); $allowedtags['a'] = array('target' => true, 'href' => true, 'title' => true, ); return $string; } add_filter('pre_kses', 'ark_pre_kses'); // Стили function set_style_arkwce() { // Регистрация стилей для плагина: wp_register_style( 'ark-commenteditor', plugins_url( '/plugins/arkbquote/css/arkbquote.css', __FILE__ ), array(), '20131003', 'all' ); wp_enqueue_style( 'ark-commenteditor' ); } $result = get_option('ark_wce'); if ($result['wce_addbquotestyle'] == 1) { add_action( 'wp_enqueue_scripts', 'set_style_arkwce' ); } add_action( 'wp_enqueue_scripts', 'ark_scripts' ); function ark_scripts() { wp_enqueue_script('jquery'); } add_filter( 'comment_reply_link', 'ark_comment_reply_link' ); function ark_comment_reply_link($link) { return str_replace( 'onclick=', 'data-onclick=', $link ); } if ($result['wce_editor'] == 'tinymce') { add_action( 'wp_head', 'ark_wp_head_tiny' ); }else{ add_action( 'wp_head', 'ark_wp_head_ckeditor' ); } function ark_wp_head_tiny() { ?> '.$txtlinkprivacy.''; } else {$txtlinkprivacy='';} if (!empty($urluser)) {$txtagreements =''.$txtagreements.''; } else {$txtagreements='';} if (!empty($urlterm) || !empty($urluser)){$texturl = ''.$txtbeforeterms.' '.$txtlinkprivacy.' '.$txtagreements;}else{$texturl='';} add_filter( 'comment_form_defaults', 'ark_remove_comment_form_allowed_tags' ); function ark_remove_comment_form_allowed_tags( $defaults ) { global $texturl; $defaults['comment_notes_after'] = $texturl; return $defaults; } ?>