芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/public_html/wp-content/plugins/fluentform/app/Modules/EditorButtonModule.php
pageSupportedMediaButtons()) { return; } $this->addMceButtonAssets(); $url = fluentformMix('img/icon_black_small.png'); echo "
" . __('Add Form', 'fluentform') . '
'; } private function addMceButtonAssets() { wp_enqueue_script( 'fluentform_editor_script', fluentformMix('js/fluentform_editor_script.js'), ['jquery'], FLUENTFORM_VERSION ); $forms = wpFluent()->table('fluentform_forms') ->select(['id', 'title']) ->get(); $forms = array_map(function ($item) { return ['value' => $item->id, 'text' => $item->title]; }, $forms); wp_localize_script('fluentform_editor_script', 'fluentform_editor_vars', [ 'forms' => $forms, ]); } private function pageSupportedMediaButtons() { $currentPage = basename(sanitize_text_field(wpFluentForm('request')->server('PHP_SELF'))); $isEligiblePage = in_array($currentPage, [ 'post.php', 'page.php', 'page-new.php', 'post-new.php', 'customize.php', ]); if ($isEligiblePage) { $option = get_option('_fluentform_global_form_settings'); $isEligiblePage = 'yes' == ArrayHelper::get($option, 'misc.classicEditorButton'); } $isEligiblePage = apply_filters_deprecated( 'fluentform_display_add_form_button', [ $isEligiblePage ], FLUENTFORM_FRAMEWORK_UPGRADE, 'fluentform/display_add_form_button', 'Use fluentform/display_add_form_button instead of fluentform_display_add_form_button' ); return apply_filters('fluentform/display_add_form_button', $isEligiblePage); } private function getMenuIcon() { return 'data:image/svg+xml;base64,' . base64_encode('
dashboard_icon
'); } }