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(); Tin tức - Big Family Pharmacy

Trang chủ » Tin tức

Tin tức

Thể lệ Chương trình “Combo quà tặng và quay số trúng thưởng” tại hệ thống nhà thuốc Big Family

Thể lệ Chương trình “Combo quà tặng và quay số trúng thưởng” tại hệ thống nhà thuốc Big Family

09/07/2022

Chương trình nhận combo 7 Thẻ quà tặng áp dụng cho khách hàng lần đầu sử dụng ví Momo khi thanh toán hóa đơn với tất cả các sản phẩm thuộc hệ thống nhà thuốc Big Family.  Ngày 09/06/2022, tại Hà Nội đã diễn ra lễ ký kết hợp tác giữa Hệ thống nhà thuốc […]

Hệ thống nhà thuốc Big Family và hành trình về Hà Giang thực hiện chuyến thiện nguyện hè “Nụ cười của bé – Niềm vui của cộng đồng”

Hệ thống nhà thuốc Big Family và hành trình về Hà Giang thực hiện chuyến thiện nguyện hè “Nụ cười của bé – Niềm vui của cộng đồng”

29/06/2022

Trong hai ngày 25-26/06/2022 vừa qua, chuyến thiện nguyện hè của Hệ thống nhà thuốc Big Family đã được tổ chức tại Trung tâm Bảo trợ xã hội Dương Hiển – xã Phú Linh, huyện Vị Xuyên, tỉnh Hà Giang. Với mong muốn đồng hành cùng Chính phủ, các tổ chức thiện nguyện, các trung […]

Big Family bắt tay Ví điện tử Momo đưa dịch vụ nhà thuốc và chăm sóc sức khỏe tới 32 triệu người Việt

Big Family bắt tay Ví điện tử Momo đưa dịch vụ nhà thuốc và chăm sóc sức khỏe tới 32 triệu người Việt

14/06/2022

Ngày 09/06/2022, tại Hà Nội đã diễn ra lễ ký kết hợp tác giữa Hệ thống nhà thuốc Big Family và Ví điện tử MOMO. Buổi lễ có sự tham gia của đại diện cấp cao Momo và lãnh đạo của Công ty Cổ phần Thương mại Dược phẩm BigFam.   Đây là sự kiện […]

Big Family là một trong những đơn vị đầu tiên ký hợp đồng phân phối thuốc Molnupiravir

Big Family là một trong những đơn vị đầu tiên ký hợp đồng phân phối thuốc Molnupiravir

02/03/2022

Hệ thống nhất thuốc Big Family hân hạnh là 1 trong những đơn vị đầu tiên ký hợp đồng phân phối thuốc Molnupiravir. Big Family ký hợp đồng phân phối một triệu viên thuốc trị Covid -19 vào chiều 17/2 chỉ ít giờ sau khi Bộ Y tế cấp phép 3 loại thuốc chứa hợp […]

Big Family tư vấn, cấp phát 1.000 túi thuốc miễn phí cho F0 điều trị tại nhà

Big Family tư vấn, cấp phát 1.000 túi thuốc miễn phí cho F0 điều trị tại nhà

11/01/2022

Nhằm mục tiêu chung tay cùng cộng đồng sống khỏe mạnh và đẩy lùi COVID-19, từ 05/01/2022 đến hết tháng 15/01/2022, hệ thống nhà thuốc Big Family sẽ hỗ trợ miễn phí tư vấn, cấp phát 1.000 túi thuốc miễn phí cho người dân bị F0 điều trị tại nhà trên 63 tỉnh thành. Hà […]

Vượt mốc 800 nhà thuốc – Big Family khẳng định vị thế chuỗi nhà thuốc liên kết Việt

Vượt mốc 800 nhà thuốc – Big Family khẳng định vị thế chuỗi nhà thuốc liên kết Việt

11/01/2022

Hệ thống nhà thuốc Big Family vừa đánh dấu một chặng đường đáng chú ý khi công bố chính thức vượt mốc 8.00 nhà thuốc trong hành trình 1 năm của mình. Tăng trưởng thần tốc, trở thành chuỗi hệ thống nhà thuốc phát triển nhanh nhất Việt nam, đã phủ sóng 63/63 tỉnh thành phố, […]

HỆ SINH THÁI SẢN PHẨM

HỆ SINH THÁI SẢN PHẨM

10/07/2021

I. B-BRAIN Là sản phẩm an thần ứng dụng công nghệ chiết xuất hiện đại giúp phát huy tối đa tác dụng của dược liệu. – Hoạt chất Rotundin chiếc xuất từ cây bình vôi có tác dụng gây ngủ nhanh chóng, kích thích trực tiếp đến hệ thần kinh trung ương. – Hoạt chất […]

MÔ HÌNH NHÀ THUỐC LIÊN KẾT BIG FAMILY

MÔ HÌNH NHÀ THUỐC LIÊN KẾT BIG FAMILY

10/07/2021

I. MÔ HÌNH NHÀ THUỐC LIÊN KẾT Thấu hiểu những khó khăn của các nhà thuốc tư đang gặp phải, BIG FAMILY ra đời với mục đích tạo ra 1 sân chơi sòng phẳng, cạnh tranh thị phần với các hệ thống nhà thuốc lớn trên thị trường. BIGFAMILY hợp tác – đồng hành cùng […]

LOA PHÁT THANH – KÊNH TRUYỀN THÔNG MỚI GIÚP NHÀ THUỐC HỆ THỐNG BIGFAMILY “BÙNG NỔ” DOANH SỐ

LOA PHÁT THANH – KÊNH TRUYỀN THÔNG MỚI GIÚP NHÀ THUỐC HỆ THỐNG BIGFAMILY “BÙNG NỔ” DOANH SỐ

10/07/2021

BIG FAMILY đã ký hợp đồng triển khai kênh loa phát thanh với CCMEDIA Việt Nam vào cuối tháng 6 vừa qua với 35 điểm loa phát thanh trên cả nước. Hiện tại các nhà thuốc hệ thống Bigfamily tại 35 tỉnh thành trên cả nước sẽ được quảng cáo nhà thuốc của mình trên […]

3 CÁCH ĐỂ XÂY DỰNG UY TÍN CHO QUẦY THUỐC, NHÀ THUỐC

3 CÁCH ĐỂ XÂY DỰNG UY TÍN CHO QUẦY THUỐC, NHÀ THUỐC

10/07/2021

Uy tín và chất lượng là 2 yếu tố quan trọng quyết định sự sinh tồn của quầy thuốc/ nhà thuốc. Không phải cứ mở nhà thuốc/ quầy thuốc ra là khách mua hàng sẽ tìm đến. Hãy cùng mình tìm hiểu thêm 1 số cách để xây dựng uy tín cho Quầy thuốc/ nhà […]

KINH DOANH NHÀ THUỐC THỜI KỲ CORONA “TRONG NGUY CÓ CƠ”

KINH DOANH NHÀ THUỐC THỜI KỲ CORONA “TRONG NGUY CÓ CƠ”

09/07/2021

Đại dịch Covid-19 đã dẫn đến sự sụp đổ của các đế chế và sự bi thảm của mọi ngành nghề: Công ty phá sản, nhà hàng quán xá đóng cửa, …Kinh doanh nhà thuốc/ quầy thuốc cũng ghi nhận nhiều cửa hàng đóng cửa, sang nhượng lại, sụt giảm lợi nhuận. Bạn chờ đợi […]

BIG FAMILY KÝ KẾT HỢP TÁC CHUYÊN MÔN VỚI CÁC BÁC SĨ CHUYÊN GIA ĐẦU NGÀNH

BIG FAMILY KÝ KẾT HỢP TÁC CHUYÊN MÔN VỚI CÁC BÁC SĨ CHUYÊN GIA ĐẦU NGÀNH

19/06/2021

Chiều ngày 15/06/2021, tại văn phòng BIGFAMILY đã diễn ra lễ ký kết hợp tác chuyên môn giữa BIGFAMILY và Tiến sĩ – Thầy thuốc ưu tú – Bác sĩ cao cấp Phí Thị Thái Hà và Thạc sĩ – Bác sĩ cao cấp Đinh Thị Ngọc Hoa với mục đích hợp tác, hỗ trợ […]

BIG FAMILY – chuỗi nhà thuốc “mang thương hiệu Việt vươn tầm quốc tế”

BIG FAMILY – chuỗi nhà thuốc “mang thương hiệu Việt vươn tầm quốc tế”

15/04/2021

BIG FAMILY là hệ thống nhà thuốc liên kết thuộc Tập đoàn Big Holding. Tập đoàn hiện đang sở hữu 3 nhà máy sản xuất dược hàng đầu Việt Nam, vùng trồng dược liệu chuẩn Organic hàng ngàn hecta, Bigfam và chuỗi nhà thuốc Big Family. Nhà máy Bigfam và những sản phẩm chất lượng […]

BIG FAMILY – Dược phẩm uy tín mang tư tưởng của những người tử tế

BIG FAMILY – Dược phẩm uy tín mang tư tưởng của những người tử tế

15/04/2021

Thương hiệu dược phẩm BigFam được hình thành như thế nào? Trong khi, nền Tây Y ngày càng phát triển thần tốc đã khiến cho những người Việt quên mất rằng đất nước chúng ta có cả một hệ sinh thái dược liệu, cây thuốc quý hàng đầu thế giới. Nền Y học cổ truyền […]

Big Family – Hành trình vì sức khỏe và hạnh phúc người Việt

Big Family – Hành trình vì sức khỏe và hạnh phúc người Việt

15/04/2021

Big Family là thương hiệu do doanh nhân Cao Xuân Thoại sáng lập nên, là hệ thống chuỗi các nhà thuốc liên kết trực thuộc tập đoàn Big Holding. Ra đời trong bối cảnh ngành dược phẩm có nhiều sự cạnh tranh khốc liệt, nhưng Big Family đã nhanh chóng chiếm được niềm tin của […]

Contact Me on Zalo
1800 1126