public static function preview() { // Output results echo '<h5>' . JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_PREVIEW') . '</h5>'; $sortcode = su_do_shortcode(str_replace('\\"', '"', $_POST['shortcode'])); $sortcode = su_wpautop($sortcode); $sortcode = su_shortcode_unautop($sortcode); $sortcode = su_do_shortcode($sortcode); echo $sortcode; echo '<div style="clear:both"></div>'; die; }
public function onContentPrepare($content, &$article, &$params, $limitstart) { $article->text = su_wpautop($article->text); $article->text = su_shortcode_unautop($article->text); $article->text = su_do_shortcode($article->text); $lang = JFactory::getLanguage(); if ($lang->isRTL()) { JFactory::getDocument()->addStyleSheet(BDT_SU_URI . '/css/rtl.css'); } }