- Posts: 6
- Thank you received: 0
$doc = new DOMDocument();
@$doc->loadHTML($item->introtext);
$tags = $doc->getElementsByTagName('img');
foreach ($tags as $tag) {
$imagesone = "/".$tag->getAttribute('src');
}
JFactory::getLanguage()->load('plg_content_jllike', JPATH_ADMINISTRATOR, null, false, true);
require_once JPATH_ROOT .'/plugins/content/jllike/helper.php';
$helper = PlgJLLikeHelper::getInstance();
$helper->loadScriptAndStyle(1); //1-если в категории, 0-если в контенте
echo $helper->ShowIN($item->id, $link, $item->title, $imagesone);
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Contact:
email: This email address is being protected from spambots. You need JavaScript enabled to view it.