public static function instance() { if (!self::$instance) { self::$instance = new self(); } return self::$instance; }
/* Copyright 2014 VibeThemes (email : vibethemes@gmail.com) WPLMS Front End is a plugin made for WPLMS Theme. This plugin is only meant to work with WPLMS and can only be used with WPLMS. WPLMS Front End program is not a free software; you can not copy, redistribute it and/or modify the code without permission from VibeThemes. Please consult VibeThemes.com or email us at vibethemes@gmail.com/support@vibethemes.com for more information. */ if (!defined('ABSPATH')) { exit; } if (!class_exists('WPLMS_Front_End')) { //require_once( 'includes/class_wplms_front_end.php' ); require_once trailingslashit(plugin_dir_path(__FILE__)) . 'includes/class.generate_fields.php'; require_once trailingslashit(plugin_dir_path(__FILE__)) . 'includes/class.process_fields.php'; require_once trailingslashit(plugin_dir_path(__FILE__)) . 'includes/class_wplms_front_end.php'; WPLMS_Front_End::instance(); } if (!class_exists('WP_Front_End_Editor')) { $disable = get_option('wplms'); if (empty($disable['disable_front_end_editor'])) { require_once trailingslashit(plugin_dir_path(__FILE__)) . 'front-end-editor/class-wp-front-end-editor.php'; WP_Front_End_Editor::instance(); } } add_action('init', 'wplms_front_end_update'); function wplms_front_end_update() { /* Load Plugin Updater */ require_once trailingslashit(plugin_dir_path(__FILE__)) . 'autoupdate/class-plugin-update.php'; /* Updater Config */ $config = array('base' => plugin_basename(__FILE__), 'dashboard' => true, 'repo_uri' => 'http://www.vibethemes.com/', 'repo_slug' => 'wplms-front-end');