public function wrapBlockImgBox($imageId, array $attrs, $content)
 {
     $imageId = trim($imageId);
     $num = $this->getNextImgNum($imageId, true);
     if ($imageId) {
         $attrs['id'] = $this->getImgElId($imageId);
     }
     $content = str_replace(PsConst::NUM_REPLCASE_MACROS, PsConstJs::numeratorItemIndex(self::CSS_NUMERATOR_IMG, $num), trim($content));
     return PsHtml::div($attrs, $content);
 }
 public function wrapFormulaBox($formulaId, $formula)
 {
     $formulaId = trim($formulaId);
     $num = $this->getNextFormulaNum($formulaId, true);
     $elId = $this->getFormulaElId($formulaId);
     $tpl = PSSmarty::template('common/formula_jax_block.tpl');
     $tpl->assign('id', $elId);
     $tpl->assign('text', $formula);
     $tpl->assign('index', PsConstJs::numeratorItemIndex(self::CSS_NUMERATOR_FORMULA, $num));
     return $tpl->fetch();
 }