예제 #1
0
 /**
  * @return ICWP_DashboardRssWidget
  */
 public static function GetInstance()
 {
     if (is_null(self::$oInstance)) {
         self::$oInstance = new self();
     }
     return self::$oInstance;
 }
 /**
  * Used for admin-only related bootstrap CSS
  */
 public function onWpAdminInit()
 {
     add_filter('mce_css', array($this, 'includeBootstrapInEditor_Filter'));
     add_action('admin_enqueue_scripts', array($this, 'enqueueBootstrapAdminCss'), 99);
     $oWp = $this->loadWpFunctionsProcessor();
     if ($oWp->getIsCurrentPage('index.php') && !$this->getIsOption('hide_dashboard_rss_feed', 'Y')) {
         require_once dirname(__FILE__) . '/icwp-rssfeed-widget.php';
         ICWP_DashboardRssWidget::GetInstance();
     }
 }