Ejemplo n.º 1
0
 /**
  * The singleton method.
  *
  * @return Muut_Shortcodes The instance.
  * @author Paul Hughes
  * @since  3.0
  */
 public static function instance()
 {
     if (!is_a(self::$instance, __CLASS__)) {
         self::$instance = new self();
     }
     return self::$instance;
 }
 /**
  * Initializes the Muut Shortcodes. We will be getting rid of these soon.
  *
  * @return void
  * @author Paul Hughes
  * @since 3.0
  */
 public function initMuutShortcodes()
 {
     $class = 'Muut_Shortcodes';
     if (!in_array($class, $this->alreadyInit)) {
         require_once muut()->getPluginPath() . 'lib/shortcodes.class.php';
         if (class_exists($class)) {
             Muut_Shortcodes::instance();
         }
         $this->alreadyInit[] = $class;
     }
 }