has_cap('write_posts'); if(bb_is_topic() && $cu_can_wp) { global $topic, $page; $add = topic_pages_add(); $last_page = get_page_number($topic->topic_posts + $add); if($last_page == $page) $it = TRUE; } if($it == FALSE && bb_is_topic_edit() && $cu_can_wp) $it = TRUE; global $forum; if($it == FALSE && isset($forum) && !$forum->forum_is_category && $bb_current_user->has_cap('write_topics')) $it = TRUE; if($it == TRUE) { bb_enqueue_script('jquery'); add_action('bb_head', 'za_ed_header_js', 100); } } add_action('bb_topic.php', 'za_ed_header_js_pre'); add_action('bb_edit-post.php', 'za_ed_header_js_pre'); add_action('bb_forum.php', 'za_ed_header_js_pre'); function za_ed_header_js() { global $za_ed_settings; if($za_ed_settings['custom_style']) echo "'; ?>
Settings saved.', ZA_EDITOR_ID)); else if(!empty($_GET['za-editor-invalid-selector'])) { /* Translators: see http://www.w3.org/TR/CSS2/selector.html for the meaning of `selector'. Usually this is not translated */ bb_admin_notice(('The selector you have specified is invalid'), 'error'); } else if(!empty($_GET['za-editor-void-selector'])) { /* Translators: see http://www.w3.org/TR/CSS2/selector.html for the meaning of `selector'. Usually this is not translated */ bb_admin_notice(('The selector you have specified is void'), 'error'); } global $bb_admin_body_class; $bb_admin_body_class = ' bb-admin-settings'; } add_action('za_ed_configuration_page_pre_head', 'za_ed_configuration_page_process'); ?>