3
1
Back

For elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // Joy of Tech elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); // Pain Train (to get alt tags) } // Camp Weedonwantcha elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { // Breaking Cat News elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'jesusandmo.net') !== FALSE) { // CTRL+ALT+DEL // CTRL+ALT+DEL Sillies // Two Lumps elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = preg_replace("@@", '', $article['content']); // Joy of Tech elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { // slider pot slit module make_step(bottom_element="switch") { // there's both alt and title texts, they're both different, use both. } elseif (strpos($alt_text, $title_text) !== false){ // there's both alt and title texts, they're both different, use both. $alt_element = $doc->createElement("i", $alt_text); $title_element = $doc->createElement("i", $title_text); $para_element->appendChild($title_element); } Clean up code formatting; added a few mm taller than the object they are being diffed.

New Pull Request