header and footer, add PHP code snippets with conditional logic, insert ads pixel, custom content, and more.
* License: GPLv2 or later
*
* Text Domain: insert-headers-and-footers
* Domain Path: /languages
*
* @package WPCode
*/
/*
Copyright 2019 WPBeginner
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Don't allow multiple versions to be active.
if ( function_exists( 'WPCode' ) ) {
if ( ! function_exists( 'wpcode_pro_just_activated' ) ) {
/**
* When we activate a Pro version, we need to do additional operations:
* 1) deactivate a Lite version;
* 2) register option which help to run all activation process for Pro version (custom tables creation, etc.).
*/
function wpcode_pro_just_activated() {
wpcode_deactivate();
add_option( 'wpcode_install', 1 );
}
}
add_action( 'activate_wpcode-premium/wpcode.php', 'wpcode_pro_just_activated' );
if ( ! function_exists( 'wpcode_lite_just_activated' ) ) {
/**
* Store temporarily that the Lite version of the plugin was activated.
* This is needed because WP does a redirect after activation and
* we need to preserve this state to know whether user activated Lite or not.
*/
function wpcode_lite_just_activated() {
set_transient( 'wpcode_lite_just_activated', true );
}
}
add_action( 'activate_insert-headers-and-footers/ihaf.php', 'wpcode_lite_just_activated' );
if ( ! function_exists( 'wpcode_lite_just_deactivated' ) ) {
/**
* Store temporarily that Lite plugin was deactivated.
* Convert temporary "activated" value to a global variable,
* so it is available through the request. Remove from the storage.
*/
function wpcode_lite_just_deactivated() {
global $wpcode_lite_just_activated, $wpcode_lite_just_deactivated;
$wpcode_lite_just_activated = (bool) get_transient( 'wpcode_lite_just_activated' );
$wpcode_lite_just_deactivated = true;
delete_transient( 'wpcode_lite_just_activated' );
}
}
add_action( 'deactivate_insert-headers-and-footers/ihaf.php', 'wpcode_lite_just_deactivated' );
if ( ! function_exists( 'wpcode_deactivate' ) ) {
/**
* Deactivate Lite if WPCode already activated.
*/
function wpcode_deactivate() {
$plugin = 'insert-headers-and-footers/ihaf.php';
deactivate_plugins( $plugin );
do_action( 'wpcode_plugin_deactivated', $plugin );
}
}
add_action( 'admin_init', 'wpcode_deactivate' );
if ( ! function_exists( 'wpcode_lite_notice' ) ) {
/**
* Display the notice after deactivation when Pro is still active
* and user wanted to activate the Lite version of the plugin.
*/
function wpcode_lite_notice() {
global $wpcode_lite_just_activated, $wpcode_lite_just_deactivated;
if (
empty( $wpcode_lite_just_activated ) ||
empty( $wpcode_lite_just_deactivated )
) {
return;
}
// Currently tried to activate Lite with Pro still active, so display the message.
printf(
'
%1$s
%2$s
',
esc_html__( 'Heads up!', 'insert-headers-and-footers' ),
esc_html__( 'Your site already has WPCode Pro activated. If you want to switch to WPCode Lite, please first go to Plugins → Installed Plugins and deactivate WPCode. Then, you can activate WPCode Lite.', 'insert-headers-and-footers' )
);
if ( isset( $_GET['activate'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
unset( $_GET['activate'] ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended
}
unset( $wpcode_lite_just_activated, $wpcode_lite_just_deactivated );
}
}
add_action( 'admin_notices', 'wpcode_lite_notice' );
// Do not process the plugin code further.
return;
}
/**
* Main WPCode Class
*/
class WPCode {
/**
* Holds the instance of the plugin.
*
* @since 2.0.0
*
* @var WPCode The one true WPCode
*/
private static $instance;
/**
* Plugin version.
*
* @since 2.0.0
*
* @var string
*/
public $version = '';
/**
* The auto-insert instance.
*
* @var WPCode_Auto_Insert
*/
public $auto_insert;
/**
* The snippet execution instance.
*
* @var WPCode_Snippet_Execute
*/
public $execute;
/**
* The error handling instance.
*
* @var WPCode_Error
*/
public $error;
/**
* The conditional logic instance.
*
* @var WPCode_Conditional_Logic
*/
public $conditional_logic;
/**
* The conditional logic instance.
*
* @var WPCode_Snippet_Cache
*/
public $cache;
/**
* The snippet library.
*
* @var WPCode_Library
*/
public $library;
/**
* The Snippet Generator.
*
* @var WPCode_Generator
*/
public $generator;
/**
* The plugin settings.
*
* @var WPCode_Settings
*/
public $settings;
/**
* The plugin importers.
*
* @var WPCode_Importers
*/
public $importers;
/**
* The file cache class.
*
* @var WPCode_File_Cache
*/
public $file_cache;
/**
* The notifications instance (admin-only).
*
* @var WPCode_Notifications
*/
public $notifications;
/**
* The admin page loader.
*
* @var WPCode_Admin_Page_Loader
*/
public $admin_page_loader;
/**
* The library auth instance.
*
* @var WPCode_Library_Auth
*/
public $library_auth;
/**
* The admin notices instance.
*
* @var WPCode_Notice
*/
public $notice;
/**
* Instance for logging errors.
*
* @var WPCode_File_Logger
*/
public $logger;
/**
* Load the smart tags.
*
* @var WPCode_Smart_Tags
*/
public $smart_tags;
/**
* Main instance of WPCode.
*
* @return WPCode
* @since 2.0.0
*/
public static function instance() {
if ( ! isset( self::$instance ) && ! ( self::$instance instanceof WPCode ) ) {
self::$instance = new WPCode();
}
return self::$instance;
}
/**
* Constructor.
*/
private function __construct() {
$this->setup_constants();
$this->includes();
add_action( 'plugins_loaded', array( $this, 'load_components' ), - 1 );
}
/**
* Set up global constants.
*
* @return void
*/
private function setup_constants() {
define( 'WPCODE_FILE', __FILE__ );
$plugin_headers = get_file_data( WPCODE_FILE, array( 'version' => 'Version' ) );
define( 'WPCODE_VERSION', $plugin_headers['version'] );
define( 'WPCODE_PLUGIN_BASENAME', plugin_basename( WPCODE_FILE ) );
define( 'WPCODE_PLUGIN_URL', plugin_dir_url( WPCODE_FILE ) );
define( 'WPCODE_PLUGIN_PATH', plugin_dir_path( WPCODE_FILE ) );
$this->version = WPCODE_VERSION;
}
/**
* Require the files needed for the plugin.
*
* @return void
*/
private function includes() {
// Load the safe mode logic first.
require_once WPCODE_PLUGIN_PATH . 'includes/safe-mode.php';
// Plugin helper functions.
require_once WPCODE_PLUGIN_PATH . 'includes/helpers.php';
// Functions for global headers & footers output.
require_once WPCODE_PLUGIN_PATH . 'includes/global-output.php';
// Use the old class name for backwards compatibility.
require_once WPCODE_PLUGIN_PATH . 'includes/legacy.php';
// Add backwards compatibility for older versions of PHP or WP.
require_once WPCODE_PLUGIN_PATH . 'includes/compat.php';
// Register code snippets post type.
require_once WPCODE_PLUGIN_PATH . 'includes/post-type.php';
// The snippet class.
require_once WPCODE_PLUGIN_PATH . 'includes/class-wpcode-snippet.php';
// Auto-insert options.
require_once WPCODE_PLUGIN_PATH . 'includes/class-wpcode-auto-insert.php';
// Execute snippets.
require_once WPCODE_PLUGIN_PATH . 'includes/class-wpcode-snippet-execute.php';
// Handle PHP errors.
require_once WPCODE_PLUGIN_PATH . 'includes/class-wpcode-error.php';
// [wpcode] shortcode.
require_once WPCODE_PLUGIN_PATH . 'includes/shortcode.php';
// Conditional logic.
require_once WPCODE_PLUGIN_PATH . 'includes/class-wpcode-conditional-logic.php';
// Snippet Cache.
require_once WPCODE_PLUGIN_PATH . 'includes/class-wpcode-snippet-cache.php';
// Settings class.
require_once WPCODE_PLUGIN_PATH . 'includes/class-wpcode-settings.php';
// Custom capabilities.
require_once WPCODE_PLUGIN_PATH . 'includes/class-wpcode-capabilities.php';
// Map capabilities for backwards compatibility.
require_once WPCODE_PLUGIN_PATH . 'includes/capabilities.php';
// Install routines.
require_once WPCODE_PLUGIN_PATH . 'includes/class-wpcode-install.php';
// Logging class.
require_once WPCODE_PLUGIN_PATH . 'includes/class-wpcode-file-logger.php';
// Smart tags class.
require_once WPCODE_PLUGIN_PATH . 'includes/class-wpcode-smart-tags.php';
// Admin bar info class.
require_once WPCODE_PLUGIN_PATH . 'includes/class-wpcode-admin-bar-info.php';
if ( is_admin() || ( defined( 'DOING_CRON' ) && DOING_CRON ) ) {
require_once WPCODE_PLUGIN_PATH . 'includes/icons.php'; // This is not needed in the frontend atm.
// Code Editor class.
require_once WPCODE_PLUGIN_PATH . 'includes/admin/class-wpcode-code-editor.php';
require_once WPCODE_PLUGIN_PATH . 'includes/admin/class-wpcode-admin-page-loader.php';
require_once WPCODE_PLUGIN_PATH . 'includes/admin/admin-scripts.php';
require_once WPCODE_PLUGIN_PATH . 'includes/admin/admin-ajax-handlers.php';
// Always used just in the backend.
require_once WPCODE_PLUGIN_PATH . 'includes/class-wpcode-generator.php';
// Snippet Library.
require_once WPCODE_PLUGIN_PATH . 'includes/class-wpcode-library.php';
// Authentication for the library site.
require_once WPCODE_PLUGIN_PATH . 'includes/class-wpcode-library-auth.php';
// Importers.
require_once WPCODE_PLUGIN_PATH . 'includes/admin/class-wpcode-importers.php';
// File cache.
require_once WPCODE_PLUGIN_PATH . 'includes/class-wpcode-file-cache.php';
// The docs.
require_once WPCODE_PLUGIN_PATH . 'includes/admin/class-wpcode-docs.php';
// Notifications class.
require_once WPCODE_PLUGIN_PATH . 'includes/admin/class-wpcode-notifications.php';
// Upgrade page.
require_once WPCODE_PLUGIN_PATH . 'includes/admin/class-wpcode-upgrade-welcome.php';
// Metabox class.
require_once WPCODE_PLUGIN_PATH . 'includes/admin/class-wpcode-metabox-snippets.php';
// Metabox class.
require_once WPCODE_PLUGIN_PATH . 'includes/admin/class-wpcode-admin-notice.php';
// Ask for some love.
require_once WPCODE_PLUGIN_PATH . 'includes/admin/class-wpcode-review.php';
}
// Load lite-specific files.
require_once WPCODE_PLUGIN_PATH . 'includes/lite/loader.php';
}
/**
* Load the Generator on demand.
*
* @return WPCode_Generator
*/
public function generator() {
if ( ! isset( $this->generator ) ) {
$this->generator = new WPCode_Generator();
}
return $this->generator;
}
/**
* Load components in the main plugin instance.
*
* @return void
*/
public function load_components() {
$this->auto_insert = new WPCode_Auto_Insert();
$this->execute = new WPCode_Snippet_Execute();
$this->error = new WPCode_Error();
$this->conditional_logic = new WPCode_Conditional_Logic();
$this->cache = new WPCode_Snippet_Cache();
$this->settings = new WPCode_Settings();
$this->logger = new WPCode_File_Logger();
if ( is_admin() || ( defined( 'DOING_CRON' ) && DOING_CRON ) ) {
$this->file_cache = new WPCode_File_Cache();
$this->library = new WPCode_Library();
$this->library_auth = new WPCode_Library_Auth();
$this->importers = new WPCode_Importers();
$this->notifications = new WPCode_Notifications();
$this->admin_page_loader = new WPCode_Admin_Page_Loader_Lite();
$this->notice = new WPCode_Notice();
$this->smart_tags = new WPCode_Smart_Tags_Lite();
// Metabox class.
new WPCode_Metabox_Snippets_Lite();
// Usage tracking class.
new WPCode_Usage_Tracking_Lite();
}
new WPCode_Admin_Bar_Info_Lite();
do_action( 'wpcode_loaded' );
// Load the pluggable functions late to allow plugins to hook in.
require_once WPCODE_PLUGIN_PATH . 'includes/pluggable.php';
}
}
require_once dirname( __FILE__ ) . '/includes/ihaf.php';
WPCode();
Nấm âm đạo - Big Family PharmacySkip to content
Nấm âm đạo, hay còn gọi là viêm âm đạo do nấm là bệnh lý xảy ra do sự phát triển quá nhiều của nấm men trong âm đạo đến mức gây kích thích. Có rất nhiều nguyên nhân gây bệnh khác nhau, trong số đó nhiễm nấm men Candida Albicans rất thường gặp. Bệnh khá phổ biến ở phụ nữ, có khoảng 75% phụ nữ bị viêm âm đạo do nấm ít nhất một lần và 40 – 45% mắc bệnh từ hai lần trở lên trong đời.
Tìm hiểu chung
Nấm âm đạo là gì?
Nấm âm đạo, hay còn gọi là viêm âm đạo do nấm là bệnh lý xảy ra do sự phát triển quá nhiều của nấm men trong âm đạo đến mức gây kích thích. Có rất nhiều nguyên nhân gây bệnh khác nhau, trong số đó nhiễm nấm men Candida Albicans rất thường gặp. Bệnh khá phổ biến ở phụ nữ, có khoảng 75% phụ nữ bị viêm âm đạo do nấm ít nhất một lần và 40 – 45% mắc bệnh từ hai lần trở lên trong đời.
Nấm âm đạo có thể lây qua quan hệ tình dục, do mặc quần áo lót ẩm ướt, lây qua bệ cầu hay tắm rửa nước bẩn ở ao hồ. Biểu hiện thường gặp nhất của người mắc phải là ngứa âm đạo, có thể gồm các triệu chứng như khí hư trắng và dày, đau khi quan hệ… Bệnh có thể điều trị nhanh chóng và dễ dàng, tuy nhiên rất thường tái phát.
Triệu chứng thường gặp
Những dấu hiệu và triệu chứng của nấm âm đạo
Bệnh thường không nguy hiểm nhưng gây khó chịu, và là bước chuyển sang viêm âm đạo mãn tính nếu không được chữa trị kịp thời. Các triệu chứng thường gặp là:
Ngứa và nóng ở vùng âm hộ và âm đạo;
Dịch tiết âm đạo vón cục, đôi khi hơi dính;
Ngứa dữ dội, cảm giác tăng lên khi sắp hành kinh;
Đi tiểu hôi và buốt;
Khí hư màu xanh hoặc trắng đục;
Bệnh dai dẳng nếu không được điều trị.
Khi nào cần gặp bác sĩ?
Khi phát hiện hoặc nhận thấy có dấu hiệu ngứa âm đạo kèm theo đó là khí hư và xuất hiện dai dẳng, bạn nên đến bệnh viện hoặc cơ sở chuyên khoa để được thăm khám sớm. Bệnh dễ chữa khỏi nhưng rất dễ tái phát và phát triển thành viêm âm đạo mãn tính nên cần được điều trị sớm.
Nguyên nhân gây bệnh
Nguyên nhân dẫn đến nấm âm đạo
Các nguyên nhân chủ yếu dẫn đến nấm âm đạo có thể kể đến như:
Do nấm Candida phát triển nhiều.
Môi trường acid trong âm đạo thường thay đổi trong thời gian hành kinh, mang thai, tiểu đường, dùng kháng sinh, thuốc ngừa thai và các thuốc chứa steroid…
Ứ dịch âm đạo và các kích thích âm đạo.
Thụt rửa âm đạo quá nhiều, chế độ ăn ít dinh dưỡng, thiếu ngủ hoặc hệ thống miễn dịch bị suy yếu.
Lây qua quan hệ tình dục, mặc quần áo lót ẩm ướt, tắm rửa bằng nước bẩn…
Nguy cơ mắc phải
Những ai có nguy cơ mắc bệnh nấm âm đạo?
Mọi phụ nữ đều là đối tượng có nguy cơ mắc bệnh. Đây là bệnh thường gặp, tuy nhiên cũng có thể phòng tránh bệnh bằng cách hạn chế các yếu tố rủi ro sau:
Dùng thuốc kháng sinh lâu dài, bệnh tiểu đường, và HIV/AIDS.
Thường xuyên hoạt động tình dục không an toàn.
Vệ sinh vùng kín không sạch sẽ, thoáng mát.
Suy giảm, rối loạn miễn dịch.
Đặt thuốc âm đạo kéo dài.
Điều trị hiệu quả
Phương pháp xét nghiệm và chẩn đoán nấm âm đạo
Bác sĩ sẽ tiến hành hỏi bệnh sử để xác định bạn có từng bị viêm âm đạo do nấm hay các bệnh lây qua đường tình dục hay không. Sau đó tiến hành khám vùng khung chậu để kiểm tra dấu hiệu nhiễm trùng ở bên ngoài cũng như trong âm đạo và cổ tử cung.
Chẩn đoán sẽ dựa vào dấu hiệu lâm sàng, soi tươi huyết trắng thấy sợi tơ nấm hoặc bào tử nấm, pH < 4.5, whiff test âm tính.
Phương pháp điều trị nấm âm đạo hiệu quả
Tùy theo tình trạng bệnh mà bác sĩ sẽ chỉ định phương pháp điều trị thích hợp. Các thuốc điều trị thường dùng là những loại thuốc kháng sinh đường uống, kem bôi và thuốc đặt phụ khoa, kết hợp với thuốc rửa phụ khoa.
Viêm không biến chứng: viêm không thường xuyên, mức độ viêm từ nhẹ đến trung bình thường được khuyến cáo điều trị ngắn hạn. Nhóm thuốc azol tác dụng tại chỗ cho hiệu quả điều trị tốt.
Viêm có biến chứng: viêm bị tái phát (đáp ứng tốt với nhóm azole), mức độ viêm nặng (azole hoặc fluconazol), nhiễm non – albicans (có thể dùng thuốc nhóm nonfluconazol azol) hay ở những phụ nữ có thai (azol dạng tại chỗ, chống chỉ định với fluconazol)…
Chế độ sinh hoạt phù hợp
Những thói quen sinh hoạt có thể giúp bạn hạn chế diễn tiến của nấm âm đạo
Bệnh sẽ nhanh khỏi và giảm nguy cơ tái phát nếu có chế độ ăn uống, sinh hoạt khoa học và lành mạnh.
Tái khám đúng lịch hẹn để được theo dõi diễn tiến bệnh cũng như tình trạng sức khỏe.
Dùng thuốc theo chỉ định của bác sĩ, không được tự ý uống thuốc hoặc bỏ thuốc.
Nên ăn sữa chua chứa men sống hàng ngày. Sữa chua có thể giúp ngăn nhiễm trùng nấm quay trở lại và là nguồn cung cấp canxi dồi dào.
Không quan hệ tình dục trong khi đang điều trị. Nếu có, bắt buộc phải dùng bao cao su.
Không mặc quần áo chật, không thông thoáng (như quần lót và quần bó quá chặt).
Phương pháp phòng ngừa bệnh hiệu quả
Bệnh có thể phòng ngừa nếu bạn chú ý phòng tránh ngay từ bây giờ bằng các cách:
Giữ vùng kín khô ráo và thoáng mát.
Vệ sinh cá nhân hằng ngày bằng dung dịch vệ sinh phụ nữ dịu nhẹ. Không thụt rửa âm đạo quá nhiều.
Tránh quan hệ tình dục bừa bãi.
Thay băng vệ sinh thường xuyên vào những ngày hành kinh, không để quá lâu.
Kiểm soát lượng đường trong máu.
Mọi thông tin trên đây chỉ mang tính chất tham khảo. Việc sử dụng thuốc phải tuân theo hướng dẫn của bác sĩ chuyên môn.