/**
  * Metod to get options string
  *
  * @param mixed $id Extra options ID
  *
  * @return string
  */
 function getOptionsTemplate($id = null)
 {
     $addition = '';
     if ($this->params->paramExists('item-tag')) {
         $addition .= "\n\t\t'item-tag':'" . $this->params->getValue('item-tag') . "',";
     }
     //NOTICE: scope == 'MagicScroll'
     return "<script type=\"text/javascript\">\n\tMagicScroll." . ($id == null ? "options" : "extraOptions." . $id) . " = {{$addition}\n\t\t" . $this->params->serialize(true, ",\n\t\t") . "\n\t}\n</script>";
 }
 /**
  * Metod to get options string
  *
  * @return string
  */
 function getOptionsTemplate()
 {
     $addition = '';
     if ($this->params->paramExists('rows')) {
         $addition .= "\n\t\t'rows':" . $this->params->getValue('rows') . ",";
     } else {
         $addition .= "\n\t\t'rows':1,";
     }
     return "<script type=\"text/javascript\">\n\tMagic360.options = {{$addition}\n\t\t" . $this->params->serialize(true, ",\n\t\t") . "\n\t}\n</script>\n" . "<script type=\"text/javascript\">\n\tMagic360.lang = {" . "\n\t\t'loading-text':'" . str_replace('\'', '\\\'', $this->params->getValue('loading-text')) . "'," . "\n\t\t'fullscreen-loading-text':'" . str_replace('\'', '\\\'', $this->params->getValue('fullscreen-loading-text')) . "'," . "\n\t\t'hint-text':'" . str_replace('\'', '\\\'', $this->params->getValue('hint-text')) . "'," . "\n\t\t'mobile-hint-text':'" . str_replace('\'', '\\\'', $this->params->getValue('mobile-hint-text')) . "'," . "\n\t}\n</script>";
 }