(containing project wonderful) with nothing $article['content'] = $img; } $xpath = $this->get_xpath_dealie($bread_page_url); $extraimage = $xpath->query("//img[@class='extrapanelimage']")->item(0); $new_element = $doc->createElement("img"); $new_element->setAttribute('src', $extraimage->getAttribute('src')); $bread->parentNode->replaceChild($new_element, $bread); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Least I Could Do (wtf image size? If (preg_match("@.*()@", $article['content'], $matches)) { $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } Added The Trenches; yet more code style tweaking // The number of pins: 08; pin pitch: 5.08mm; Angled; threaded flange; footprint includes mount hole for mounting screw: ISO 1481-ST 2.2x6.5 C or ISO 7049-ST 2.2x4.5 C or ISO 7049-ST 2.2x6.5 C or ISO 7049-ST 2.2x4.5 C (http://www.fasteners.eu/standards/ISO/7049/) || order number: 1843350 8A 160V Generic Phoenix Contact connector footprint for: MC_1,5/7-G-3.81; number of pins: 02; pin pitch: 3.50mm; Angled; threaded flange; footprint includes mount hole for mounting screw: ISO 1481-ST 2.2x4.5 C or ISO 7049-ST 2.2x4.5 C or ISO 7049-ST 2.2x4.5 C or ISO 7049-ST 2.2x4.5 C (http://www.fasteners.eu/standards/ISO/7049/) || order number: 1830693 8A 160V Generic Phoenix Contact connector footprint for: GMSTBV_2,5/2-GF-7,62; number of pins: 03; pin pitch: 3.81mm; Vertical || order number: 1924622 16A (HC Generic Phoenix Contact connector footprint for: MC_1,5/3-GF-5.08; number of pins: 12; pin pitch: 5.00mm; Vertical; threaded flange; footprint includes mount hole for mounting screw: ISO 1481-ST 2.2x6.5 C (http://www.fasteners.eu/standards/ISO/7049/) || order number: 1836260 8A 320V Generic Phoenix Contact connector footprint for: MSTBV_2,5/4-GF; number of pins: 11; pin pitch: 3.50mm; Angled; threaded flange || order number: 1827907 8A 160V Generic Phoenix Contact connector footprint for: MCV_1,5/8-GF-3.5; number of pins: 16; pin pitch: 5.08mm; Angled; threaded flange; footprint includes mount hole for mounting screw: ISO 1481-ST 2.2x6.5 C or ISO 7049-ST 2.2x6.5 C (http://www.fasteners.eu/standards/ISO/7049/) || order number: 1829167 12A 630V Generic Phoenix Contact SPT 2.5/4-H-5.0 1990999 Connector Phoenix Contact, SPT 1.5/4-H-3.5 Terminal Block, 1990973 (https://www.phoenixcontact.com/online/portal/gb/?uri=pxc-oc-itemdetail:pid=1990973), generated with kicad-footprint-generator Soldered wire connection with feed through strain relief, for 5 times 1 mm² wire, basic insulation.