/**
  * Return an instance of this class.
  *
  * @since     2.0
  *
  * @return    object    A single instance of this class.
  */
 public static function get_instance()
 {
     // If the single instance hasn't been set, set it now.
     if (null == self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Ejemplo n.º 2
0
</a>
        <a href="?page=uji-countdown&amp;tab=tab_ujic_set" class="nav-tab <?php 
echo $active_tab == 'tab_ujic_set' ? 'nav-tab-active' : '';
?>
"><i class="dashicons dashicons-admin-tools ujic-mico"></i><?php 
_e('Settings', 'uji-countdown');
?>
</a>
        <a href="http://www.wpmanage.com/uji-countdown" target="_blank" class="nav-tab nav-tab-pro"><i class="dashicons dashicons-plus ujic-mico"></i><?php 
_e('Upgrade', 'uji-countdown');
?>
</a>
    </h2>

    <?php 
$ujicount = new Uji_Countdown();
// print_r($_GET);exit;
if ($active_tab == 'tab_ujic_list') {
    $ujicount->admin_tablelist();
}
if ($active_tab == 'tab_ujic_new') {
    $ujicount->admin_countdown();
}
if ($active_tab == 'tab_ujic_news') {
    $ujicount->admin_subscribers();
}
if ($active_tab == 'tab_ujic_set') {
    $ujicount->admin_timerset();
}
?>
Ejemplo n.º 3
0
Plugin Name: Uji&#32;Countdown
Plugin URI: http://www.wpmanage.com/uji-countdown
Description: HTML5 Customizable Countdown.
Version: 2.0.4
Text Domain: uji-countdown
Domain Path: /lang
Author: Wpmanage.com
Author URI: http://wpmanage.com
Network: True
License: GPLv2
Copyright 2015  WPmanage  (email : info@wpmanage.com)
*/
// If this file is called directly, abort.
defined('WPINC') || exit;
define('UJIC_NAME', 'Uji Countdown');
define('UJIC_VERS', '2.0.4');
define('UJIC_FOLD', 'uji-countdown');
define('UJICOUNTDOWN', trailingslashit(dirname(__FILE__)));
define('UJICOUNTDOWN_URL', plugin_dir_url(__FILE__));
define('UJICOUNTDOWN_BASE', plugin_basename(__FILE__));
define('UJICOUNTDOWN_FILE', __FILE__);
//Google Fonts
require_once plugin_dir_path(__FILE__) . 'assets/googlefonts.php';
// Classes
require_once plugin_dir_path(__FILE__) . 'classes/class-uji-countdown-admin.php';
require_once plugin_dir_path(__FILE__) . 'classes/class-uji-countdown.php';
require_once plugin_dir_path(__FILE__) . 'classes/class-uji-countdown-front.php';
require_once plugin_dir_path(__FILE__) . 'classes/class-uji-widget.php';
// INIT
Uji_Countdown::get_instance();