/**
  * @return string loads up all assets needed for magnific
  */
 private function loadMagnificAssets()
 {
     $content = '';
     if (!ShortCode::$echoedMagnificAssets) {
         $css = new CSS($this->lifeCycle, "magnific-popup");
         $content = $css->export();
         $js = new JavaScript($this->lifeCycle, "jquery.magnific-popup.min");
         $content .= $js->export();
         ShortCode::$echoedMagnificAssets = true;
     }
     return $content;
 }
 public function addActionsAndFilters()
 {
     $sc = new ShortCode($this);
     $sc->register('elegant_slider');
 }