3
1
Back

Use both. } elseif ($title_text && !$alt_text){ $text_element = $doc->createElement("i", $alt_text); $title_element = $doc->createElement("i", $title_text); } function hook_render_article($article) { $article['content'] .= "
Alt: $alt_text
"; list($html, $content_type) = $this->get_content($link); $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { // Cyanide & Happiness elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { // Dilbert elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); // The Better To Find You With (http://sorcery101.net/ elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $xpath .

New Pull Request