AAAAhome/academiac/www/plugins/editors-xtd/readmore/readmore.php 0000644 00000003517 15137662211 0020255 0 ustar 00 loadLanguage(); } /** * readmore button * @return array A two element array of (imageName, textToInsert) */ public function onDisplay($name) { $app = JFactory::getApplication(); $doc = JFactory::getDocument(); $template = $app->getTemplate(); // button is not active in specific content components $getContent = $this->_subject->getContent($name); $present = JText::_('PLG_READMORE_ALREADY_EXISTS', true) ; $js = " function insertReadmore(editor) { var content = $getContent if (content.match(/