/** * Plugin Name: WP Yahoo RSS (With SEO Delay & Security Hardening) * Plugin URI: https://gen.caca01.com/ * Description: Wordpress Yahoo RSS feed tweaked for only tyenews.com (Includes SEO Time Delay, Path locking, and Performance fix) * Version: 1.0.9 * Author: Carter Wu (Final Patch: Route locking + Query Scoping + UTC Time) + Safe Cache Patch * Author URI: https://gen.caca01.com/ * License: GPL-2.0+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt * Text Domain: wp-yahoo-rss */ if (!defined('ABSPATH')) exit; const YH_DELAY_MINUTES = 120; const YH_QUERY_VAR = 'yh_feed_stats'; function yh_register_rewrite_rules() { add_rewrite_rule('^yahoo-rss(?:/([^/]+))?/?$', 'index.php?' . YH_QUERY_VAR . '=true&type=$matches[1]', 'top'); } add_filter('query_vars', 'yh_feed_query_vars'); function yh_feed_query_vars($query_vars) { $query_vars[] = YH_QUERY_VAR; $query_vars[] = 'type'; return $query_vars; } register_activation_hook(__FILE__, 'yh_feed_activate'); function yh_feed_activate() { yh_register_rewrite_rules(); flush_rewrite_rules(false); } register_deactivation_hook(__FILE__, 'yh_feed_deactivate'); function yh_feed_deactivate() { flush_rewrite_rules(false); } add_action('init', 'yh_feed_init'); function yh_feed_init() { yh_register_rewrite_rules(); } add_action('parse_request', 'yh_feed_parse_request'); function yh_feed_parse_request(&$wp) { if (!array_key_exists(YH_QUERY_VAR, $wp->query_vars)) { return; } $is_yahoo_path = false; if (!empty($wp->request) && preg_match('#^yahoo-rss(?:/|$)#', $wp->request)) { $is_yahoo_path = true; } if ($is_yahoo_path) { if (!defined('IS_YAHOO_FEED')) { define('IS_YAHOO_FEED', true); } $linkify_path = dirname(__FILE__) . '/data/linkify.php'; if (file_exists($linkify_path)) { require_once $linkify_path; } } } add_action('template_redirect', 'yh_feed_render_output'); function yh_feed_render_output() { if (!defined('IS_YAHOO_FEED') || IS_YAHOO_FEED !== true) { return; } if (!defined('DONOTCACHEPAGE')) define('DONOTCACHEPAGE', true); if (!defined('DONOTCACHEOBJECT')) define('DONOTCACHEOBJECT', true); if (!defined('DONOTCACHEDB')) define('DONOTCACHEDB', true); // ✅ 改這裡:用 query var 取 type(rewrite 進來就是 query var) $type = get_query_var('type'); $type = is_string($type) ? sanitize_key($type) : ''; $cache_key = 'yh_yahoo_feed_xml_' . md5($type); $force = (isset($_GET['nocache']) && $_GET['nocache'] !== ''); if (!$force) { $cached = get_transient($cache_key); if (is_string($cached) && $cached !== '') { header('Content-Type: text/xml; charset=utf-8'); echo $cached; exit(); } } $list_path = dirname(__FILE__) . '/data/list.php'; if (!file_exists($list_path)) { status_header(404); header('Content-Type: text/plain; charset=UTF-8'); echo 'Error: RSS template file not found.'; exit(); } ob_start(); try { include $list_path; $xml = ob_get_clean(); } catch (Throwable $e) { if (ob_get_level()) ob_end_clean(); status_header(500); header('Content-Type: text/plain; charset=UTF-8'); echo 'Feed error: ' . $e->getMessage(); exit(); } if (is_string($xml) && $xml !== '') { set_transient($cache_key, $xml, 60); } header('Content-Type: text/xml; charset=utf-8'); echo $xml; exit(); } function yh_filter_cats($categories) { if (empty($categories) || !is_array($categories)) return ''; foreach ($categories as $category) { if (!is_object($category)) continue; $name = isset($category->name) ? trim((string)$category->name) : ''; $slug = isset($category->slug) ? strtolower(trim((string)$category->slug)) : ''; if ( $name === 'YAHOO' || $name === '不送YAHOO' || $slug === 'nosend-yahoo' || $slug === '不上yahoo' || strpos($slug, 'yahoo') !== false ) { return ''; } } return isset($categories[0]->name) ? esc_html($categories[0]->name) : ''; } function yh_cat_yahoo($category) { return $category; } add_action('pre_get_posts', 'yh_exclude_nosend_yahoo_from_yahoo_rss'); function yh_exclude_nosend_yahoo_from_yahoo_rss($query) { if (is_admin() || !defined('IS_YAHOO_FEED') || IS_YAHOO_FEED !== true) { return; } $pt = $query->get('post_type'); if (!empty($pt) && $pt !== 'post') { return; } $query->set('post_type', 'post'); static $exclude_term_ids = null; if ($exclude_term_ids === null) { $exclude_term_ids = array(); $term_slugs = array('nosend-yahoo', '不上yahoo'); foreach ($term_slugs as $slug) { $term = get_category_by_slug($slug); if ($term && !is_wp_error($term)) { $exclude_term_ids[] = (int) $term->term_id; } } } if (!empty($exclude_term_ids)) { $tax_query = (array) $query->get('tax_query'); $tax_query[] = array( 'taxonomy' => 'category', 'field' => 'term_id', 'terms' => $exclude_term_ids, 'operator' => 'NOT IN', ); $query->set('tax_query', $tax_query); } $delay_minutes = (int) YH_DELAY_MINUTES; if ($delay_minutes > 0) { $cutoff_ts = (int) current_time('timestamp', true) - ($delay_minutes * 60); $cutoff_time = gmdate('Y-m-d H:i:s', $cutoff_ts); $date_query = (array) $query->get('date_query'); $date_query[] = array( 'column' => 'post_date_gmt', 'before' => $cutoff_time, ); $query->set('date_query', $date_query); } $query->set('ignore_sticky_posts', true); $query->set('no_found_rows', true); $query->set('cache_results', false); $query->set('update_post_meta_cache', false); $query->set('update_post_term_cache', true); } 桃市通過兩大醫院設立案 提升全面醫療資源
2026年03月03日 星期二

桃市通過兩大醫院設立案 提升全面醫療資源

  • 桃園市長鄭文燦22日上午主持市政會議,聽取衛生局「桃園市通過清大附設醫院及桃園亞東紀念醫院設立案」專題報告後表示,為提升本市民眾就醫權益,市。
  • 桃園市長鄭文燦22日上午主持市政會議,聽取衛生局「桃園市通過清大附設醫院及桃園亞東紀念醫院設立案」專題報告。
  • 鄭文燦指出,108年4月清華大學與市府簽署醫療教育園區意向書,規畫於航空城計畫區建置醫療暨教育研發園區,院內設有急性一般病床499床、特殊病。
Q:這篇在講什麼?
A:桃園市長鄭文燦22日上午主持市政會議,聽取衛生局「桃園市通過清大附設醫院及桃園亞東紀念醫院設立案」專題報告後表示,為提升本市民眾就醫權益,市。
Q:重點是什麼?
A:桃園市長鄭文燦22日上午主持市政會議,聽取衛生局「桃園市通過清大附設醫院及桃園亞東紀念醫院設立案」專題報告。

桃園市長鄭文燦22日上午主持市政會議,聽取衛生局「桃園市通過清大附設醫院及桃園亞東紀念醫院設立案」專題報告後表示,為提升本市民眾就醫權益,市府向中央爭取桃園次區域床位數,目前國立清華大學桃園附設醫院設立案、桃園亞東紀念醫院設立案及國軍桃園總醫院新建醫療大樓案,已於7月20日通過桃園市醫事審議委員會審議,後續經衛生福利部許可後,本市將增加2家醫學中心規模的醫院,全市病床資源將提升至9,454床急性一般病床,每萬人口病床數41.87床,成為衛生福利部定義的醫療充足區。

20207221547_6_2
桃園市長鄭文燦22日上午主持市政會議,聽取衛生局「桃園市通過清大附設醫院及桃園亞東紀念醫院設立案」專題報告。圖:市府提供

鄭文燦指出,108年4月清華大學與市府簽署醫療教育園區意向書,規畫於航空城計畫區建置醫療暨教育研發園區,院內設有急性一般病床499床、特殊病床231床、創新育成中心、教學及研發中心,未來將提供國際化的醫療服務;此外,清大附設醫院也向教育部申請成立學士後醫學系,進行醫療人材的培育工作。

鄭文燦也說,桃園亞東紀念醫院建置於內壢車站附近,目前該地區正由遠東紡織集團進行整體開發,未來將設立急性一般病床482床、特殊病床194床,並發展智慧醫療,提升整體醫療品質;此外,國軍桃園總醫院放射腫瘤治療中心今日也舉辦落成典禮,未來新建大樓完工後將新增急性一般病床143床及特殊病床75床,並以服務腫瘤與重症病患為主。

衛生局長王文彥表示,依衛生福利部規定,每萬人口急性一般病床數上限為50床,截至109年5月底,本市急性一般病床共計7,741床,平均每萬人口34床;桃園次區域每萬人口病床數為43床,中壢次區域僅23床,顯示二醫療次區域的醫療資源不足,醫院的建置確實有其必要。

20207221547_6_1
王文彥說明,清華大學附設醫院鄰近綠線捷運及機場捷運交界A16橫山站,由於位於國際機場附近,除了提供國際化醫療服務,未來也將設立國家傳染病檢疫防疫中心。圖:市府提供

王文彥說明,清華大學附設醫院鄰近綠線捷運及機場捷運交界A16橫山站,由於位於國際機場附近,除了提供國際化醫療服務,未來也將設立國家傳染病檢疫防疫中心,建置負壓隔病病房、P3等級國家實驗室及疾病疫苗研發中心,並提供老人醫學及長期照護等服務,預計於115年完工。

王文彥談到,桃園亞東紀念醫院委託德國設計團隊進行整體規劃,位置鄰近遠東國際會議中心及元智大學,醫療服務規劃以微創手術、AI人工智慧、細胞治療及遠距醫療為主,工程預計於116年完工。

王文彥指出,國軍桃園總醫院新建醫療大樓則是會新增一般急性病床143床及特殊病床75床,提升對急重症及腫瘤病患的醫療照護,滿足南桃園、北新竹地區醫療資源,以及戰區軍事戰略重要的醫療責任,預計於114年完工。桃園電子報

 

spot_imgspot_imgspot_img

相關新聞

即時新聞

頭條新聞

熱門新聞

會員註冊
註冊讀者會員|即時掌握在地新聞,專屬好康不漏接
密碼至少8碼

已有帳號?