// 链接提交的模态框 - 移除LOGO上传功能 function zib_submit_links_modal($args = array()) { $defaults = array( 'class' => '', 'title' => '申请入驻', 'dec' => '', 'show_title' => true, 'sign' => true, 'cats' => [], ); $args = wp_parse_args((array) $args, $defaults); // 构建模态框标题 $title_html = ''; if (!empty($args['title'])) { $title_html = sprintf( '
%s
', esc_html($args['title']) ); } // 构建模态框内容 $content_html = ''; // 添加描述文本 if (!empty($args['dec'])) { $content_html .= sprintf('
%s
', esc_html($args['dec'])); } // 处理未登录状态 if ($args['sign'] && !is_user_logged_in()) { $content_html .= '
请先登录

'; if (!zib_is_close_signup()) { $content_html .= ''; } $content_html .= '

' . zib_social_login(false) . '
'; } else { // 获取链接分类 $cats_options = ''; $cats_query_args = array( 'taxonomy' => array('link_category'), 'hide_empty' => false, ); if (!empty($args['cats'])) { $cats_query_args['include'] = $args['cats']; $cats_query_args['orderby'] = 'include'; } $cats_query = new WP_Term_Query($cats_query_args); if (!is_wp_error($cats_query) && !empty($cats_query->terms)) { foreach ($cats_query->terms as $term) { $cats_options .= sprintf('', intval($term->term_id), esc_html($term->name) ); } } // 构建分类选择器 $category_selector = !empty($cats_options) ? sprintf('
网站类别
', $cats_options) : ''; // 构建表单 $content_html .= '
网站名称(必填)
网站地址(必填)
网站简介
' . $category_selector . '
提示:您提交的内容将进入审核流程,审核通过后才会显示在网站上。
'; // 人机验证 if (_pz('verification_links_s')) { $verification_input = zib_get_machine_verification_input('frontend_links_submit'); if (!empty($verification_input)) { $content_html .= '
' . $verification_input . '
'; } } $content_html .= ' '; $content_html .= wp_nonce_field('frontend_links_submit', '_wpnonce', false, false); // 安全效验 $content_html .= ''; $content_html .= ''; // 添加待审核状态 $content_html .= '
'; } // 构建完整模态框HTML $modal_html = sprintf(' ', $title_html, $content_html ); return $modal_html; }
Fatal error: Uncaught Error: Call to undefined function _name() in /www/wwwroot/baoge/wp-content/themes/zibll/inc/widgets/widget-more.php:1030 Stack trace: #0 /www/wwwroot/baoge/wp-includes/class-wp-widget-factory.php(62): widget_ui_yiyan->__construct() #1 /www/wwwroot/baoge/wp-includes/widgets.php(123): WP_Widget_Factory->register('widget_ui_yiyan') #2 /www/wwwroot/baoge/wp-content/themes/zibll/inc/widgets/widget-more.php(6): register_widget('widget_ui_yiyan') #3 /www/wwwroot/baoge/wp-includes/class-wp-hook.php(324): widget_register_more('') #4 /www/wwwroot/baoge/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #5 /www/wwwroot/baoge/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /www/wwwroot/baoge/wp-includes/widgets.php(1870): do_action('widgets_init') #7 /www/wwwroot/baoge/wp-includes/class-wp-hook.php(324): wp_widgets_init('') #8 /www/wwwroot/baoge/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #9 /www/wwwroot/baoge/wp-includes/plugin.php(517): WP_Hook->do_act in /www/wwwroot/baoge/wp-content/themes/zibll/inc/widgets/widget-more.php on line 1030